/* Base Sepolia TEST screens. A teal tag marks real test-network data, apart from the amber demo data and the sample board. */

.ch-tag { border-color: rgba(126,232,212,0.6); color: var(--signal); }
.ch-flag { border-color: rgba(126,232,212,0.6); color: var(--signal); }
.chain-zone { margin-bottom: 28px; padding: 18px 20px 20px; border: 1px solid rgba(126,232,212,0.3); border-radius: var(--r-card); background: rgba(126,232,212,0.02); }
.chain-zone[hidden] { display: none; }
.card-token.is-chain { position: relative; border-color: rgba(126,232,212,0.3); }
.card-token.is-chain:hover { border-color: rgba(126,232,212,0.65); }
.card-token.is-chain .ct-mcap .v { font: 600 15px var(--f-mono); letter-spacing: 0; white-space: nowrap; }
.ch-state { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 4px; font-size: 13.5px; color: var(--text-2); grid-column: 1 / -1; }
.ch-state b { color: var(--text); font-weight: 600; }
.ch-state.is-error { color: var(--text-3); flex-direction: column; align-items: flex-start; gap: 4px; }

/* Trade page: live test tokens in the main list */
.card-token.is-live .ct-mcap .v { font: 600 15px var(--f-mono); letter-spacing: 0; white-space: nowrap; }
.card-token.is-live .ct-meta { flex-wrap: wrap; row-gap: 6px; }
.board-note { margin: 0 0 14px; font-size: 12.5px; line-height: 1.5; color: var(--text-3); }
.sp-empty button { margin-left: 8px; color: var(--text); font: 600 13px var(--f-ui); text-decoration: underline; text-decoration-color: var(--text-3); text-underline-offset: 3px; }

/* token page */
.ch-banner { border-color: rgba(126,232,212,0.5); background: rgba(126,232,212,0.04); }
.ch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.ch-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start; }
.ch-side { position: sticky; top: 84px; }
.ch-left, .ch-market { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ch-chartcard .sect-h { margin-bottom: 8px; }
.ch-chartcard .chart-wrap { min-height: 60px; }
.ch-chartcard .chart-wrap svg { height: auto; }
.ch-chartcard .chart-tip { flex-wrap: wrap; gap: 2px 12px; max-width: 100%; }
.chart-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 56px 12px; text-align: center; font-size: 13.5px; color: var(--text-3); }
.chart-empty b { color: var(--text-2); font-weight: 600; font-size: 14px; }
.ch-tradescard .tabs { margin-bottom: 8px; }
.ch-more { margin-top: 12px; }
.ch-empty { margin: 14px 0 4px; }
.tbl td a { color: inherit; text-decoration: underline; text-decoration-color: var(--text-3); text-underline-offset: 3px; }
.tbl td a:hover { text-decoration-color: var(--text-2); }
.ch-tradescard .chart-foot { margin-top: 10px; }
#ch-trade-tbl .t-short { display: none; }
/* phones: each trade becomes two short lines instead of a table that has to be scrolled sideways */
@media (max-width: 720px) {
  #ch-trade-tbl thead { display: none; }
  #ch-trade-tbl, #ch-trade-tbl tbody { display: block; }
  #ch-trade-tbl tr { background: none; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: 'side amt time' 'side px tx'; align-items: center; gap: 1px 12px; padding: 9px 4px; border-bottom: 1px solid var(--border); }
  #ch-trade-tbl tr:last-child { border-bottom: 0; }
  #ch-trade-tbl td { display: block; height: auto; padding: 0; min-width: 0; }
  #ch-trade-tbl td:nth-child(1) { grid-area: time; text-align: right; font-size: 12px; }
  #ch-trade-tbl .t-long { display: none; }
  #ch-trade-tbl .t-short { display: inline; }
  #ch-holder-tbl .hbar { display: none; }
  #ch-holder-tbl td, #ch-holder-tbl th { padding-left: 6px; padding-right: 6px; white-space: normal; }
  #ch-holder-tbl .tag { margin-left: 6px; }
  #ch-trade-tbl td:nth-child(2) { grid-area: side; }
  #ch-trade-tbl td:nth-child(3) { grid-area: px; color: var(--text-2); font-size: 12px; }
  #ch-trade-tbl td:nth-child(3)::before { content: 'at '; color: var(--text-3); }
  #ch-trade-tbl td:nth-child(4) { grid-area: amt; text-align: left; }
  #ch-trade-tbl td:nth-child(4)::after { content: ' tZRO'; color: var(--text-3); font-size: 12px; }
  #ch-trade-tbl td:nth-child(5), #ch-trade-tbl td:nth-child(6) { display: none; }
  #ch-trade-tbl td:nth-child(7) { grid-area: tx; text-align: right; font-size: 12px; }
}
@media (max-width: 360px) {
  #ch-trade-tbl tr { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 1px 8px; padding-left: 0; padding-right: 0; }
  #ch-trade-tbl td:nth-child(1), #ch-trade-tbl td:nth-child(3), #ch-trade-tbl td:nth-child(7) { font-size: 11px; }
}
.ch-bar { height: 8px; border-radius: 999px; background: var(--elevated); overflow: hidden; margin: 2px 0 12px; }
.ch-bar i { display: block; height: 100%; background: var(--signal); border-radius: 999px; transition: width .5s var(--ease); }
.dm-head .copy { margin-left: 4px; }
.dm-list .btn { margin-left: 10px; }
.dm-list a { color: var(--text); text-decoration: underline; text-decoration-color: var(--text-3); text-underline-offset: 3px; }
.dim { color: var(--text-3); }
.ch-side .tk-note b { display: block; font: 600 12.5px var(--f-ui); margin-bottom: 2px; }
.ch-side #ch-mint { align-self: center; }
.ticket .tk-note.hide { display: none; }
.ticket .btn:disabled { opacity: .5; cursor: not-allowed; }

/* create-token confirmation */
.ch-review .ch-rv-note { display: flex; align-items: center; gap: 10px; border-color: rgba(126,232,212,0.4); color: var(--text-2); }
.ch-review .rv-list a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.ch-status { min-height: 1.4em; color: var(--text-2); }
.ch-status a { color: var(--signal); }

/* launch page */
.chain-launch { display: flex; flex-direction: column; gap: 8px; }
.chain-launch .hint button { color: var(--signal); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }

@media (max-width: 1000px) {
  .ch-grid { grid-template-columns: minmax(0, 1fr); }
  .ch-side { position: static; order: -1; }
  .ch-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .chain-zone { padding: 14px 14px 16px; }
}

/* link inside a small footnote on the token page */
.dm-foot a { color: var(--text); text-decoration: underline; text-decoration-color: var(--text-3); text-underline-offset: 3px; }
