/* Trench Terminal (/momentum/). Builds on /assets/v2/site.css tokens. */
.term main { padding-top: 28px; padding-bottom: 40px; }
.t-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.t-head h1 { font: 800 clamp(28px, 3.4vw, 40px)/1.1 var(--sans); letter-spacing: -.02em; margin: 0; }
.t-sub { color: var(--text-2); margin: 6px 0 0; }
.t-status { display: flex; align-items: center; gap: 4px; color: var(--muted); font: 13px var(--mono); }
.t-refresh { min-height: 34px; font-size: 13px; padding: 0 12px; margin-left: 10px; }
.t-disclaimer { margin: 18px 0; padding: 10px 14px; border-left: 3px solid var(--gold-dim); background: var(--ink-2); color: var(--text-2); font-size: 13.5px; border-radius: 0 8px 8px 0; }
.t-tools { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; position: sticky; top: 60px; z-index: 5; background: var(--ink); padding: 8px 0; }
.t-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.t-filters button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font: 600 13.5px var(--sans); cursor: pointer; }
.t-filters button span { color: var(--muted); font: 12px var(--mono); }
.t-filters button[aria-checked="true"] { background: var(--surface-2); color: var(--text); border-color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.many { background: var(--risk-many); } .dot.some { background: var(--risk-some); } .dot.fewer { background: var(--risk-fewer); }
.t-right { display: flex; gap: 8px; }
.t-right input, .t-right select { min-height: 38px; background: var(--surface); border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; padding: 0 12px; font: 14px var(--sans); }
.t-right input { width: 220px; }
.t-board { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--ink-2); }
.t-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.t-table th { text-align: left; font: 600 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.t-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t-table tbody tr:last-child td { border-bottom: 0; }
.t-table tbody tr:hover { background: rgba(255,255,255,.02); }
.t-table .n { color: var(--muted); font-family: var(--mono); width: 36px; }
.t-table .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tok b { display: block; font-size: 15px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tok small { color: var(--muted); font: 12px var(--mono); }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--muted); }
.flags { display: flex; flex-wrap: wrap; gap: 4px; max-width: 320px; }
.flag { font-size: 12.5px; line-height: 1.35; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line-2); }
.flag.hot { color: #ffd2cd; border-color: rgba(255,93,80,.35); background: var(--risk-many-bg); }
.flags .none { color: var(--muted); font-size: 13px; }
.more { color: var(--muted); font-size: 12.5px; padding: 3px 4px; }
.links { white-space: nowrap; text-align: right; }
.links a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 600; }
.links .open { background: var(--gold); color: var(--gold-ink); }
.links .ext { color: var(--text-2); }
.links .ext:hover { color: #fff; background: var(--surface-2); }
.t-empty { text-align: center; color: var(--muted); padding: 40px 14px !important; }
.t-foot { margin-top: 24px; color: var(--text-2); font-size: 14.5px; max-width: 60em; }
.t-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.t-src { color: var(--muted); font-size: 13px; }

/* mobile: each row becomes a card */
@media (max-width: 860px) {
  .t-tools { position: static; }
  .t-right { width: 100%; } .t-right input { flex: 1; width: auto; min-width: 0; }
  .t-filters { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 2px; }
  .t-filters button { flex: none; }
  .t-board { border: 0; background: transparent; overflow: visible; }
  .t-table thead { display: none; }
  .t-table, .t-table tbody { display: block; }
  .t-table tr { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "tok score" "stats stats" "flags flags" "links links"; gap: 10px 12px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 10px; }
  .t-table td { border: 0; padding: 0; }
  .t-table td.n { display: none; }
  .t-table td.tok { grid-area: tok; } .t-table td.score { grid-area: score; justify-self: end; }
  .t-table td.stats-m5, .t-table td.stats-h1, .t-table td.stats-vol, .t-table td.stats-liq { display: none; }
  .t-table td.stats { grid-area: stats; display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .t-table td.flagcell { grid-area: flags; } .t-table td.links { grid-area: links; text-align: left; display: flex; gap: 6px; }
  .links .open { flex: 1; justify-content: center; min-height: 42px; }
  .links .ext { border: 1px solid var(--line-2); min-height: 42px; }
  .stat { background: var(--ink-2); border-radius: 8px; padding: 6px 8px; font: 13px var(--mono); text-align: left; }
  .stat small { display: block; color: var(--muted); font: 600 10.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; }
  .flags { max-width: none; }
}
@media (min-width: 861px) { .t-table td.stats { display: none; } }

/* v2 (2026-11-22): Trench feed (brief + market mood) above the board; Watch in Telegram per row */
.t-feed { margin: 0 0 14px; }
.links .watch { min-height: 32px; font-size: 13px; padding: 0 10px; margin: 0 2px; border-color: var(--line-2); }
@media (max-width: 860px) {
  .t-table td.links { flex-wrap: wrap; }
  .links .open { flex: 1 1 100%; }
  .links .watch { flex: 1; min-height: 42px; margin: 0; }
}
@media (min-width: 861px) { .links .watch .w-more { display: none; } }
.brief-list.skel li { color: transparent; background: linear-gradient(90deg, var(--surface-2), var(--line) 60%, transparent); border-radius: 6px; max-width: 360px; list-style: none; }
.term .mood { min-height: 178px; }
@media (max-width: 860px) {
  .term main { display: flex; flex-direction: column; }
  .term .t-feed { order: 1; margin-top: 16px; }   /* phones: the board first; the brief follows it, so nothing above it jumps */
  .term .t-foot { order: 2; }
  .t-board.is-loading { min-height: 110vh; }   /* the feed below starts off-screen until the cards arrive */
}
