/* Strak terminal. Dense, monospaced, instrument-like, in the landing's violet and green. */

:root {
  --bg: #0B0B10;
  --bg2: #110D1C;
  --bg3: #1A1330;
  --deep: #120A24;
  --line: rgba(225, 215, 255, .09);
  --line2: rgba(225, 215, 255, .16);
  --text: #FFFFFF;
  --dim: rgba(225, 215, 255, .68);
  --dim2: rgba(225, 215, 255, .42);
  --violet: #9945FF;
  --green: #14F195;
  --mint: #3CFFAA;
  --hot: #C9A6FF;
  --up: #14F195;
  --down: #FF5C85;
  --dot-backpack: #14F195;
  --dot-xstocks: #BE8CFF;
  --dot-ondo: #8FA8FF;
  --dot-pre: #FFB35C;
  --dot-tes: #FF7BC4;
  --mono: 'Ubuntu Sans Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
body {
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(153,69,255,.16), transparent 70%),
    radial-gradient(900px 420px at 100% 100%, rgba(20,241,149,.08), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
}
::selection { background: var(--violet); color: #fff; }

.idot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--dot-backpack); flex: none; }
.idot.xstocks { background: var(--dot-xstocks); }
.idot.ondo { background: var(--dot-ondo); }
.idot.prestocks { background: var(--dot-pre); }
.idot.tessera { background: var(--dot-tes); }

/* ── header ───────────────────────────────────── */
.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 0 20px; height: 56px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); }
.brand img { height: 22px; width: auto; }
.brand .name { font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.brand .sub { color: var(--dim2); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-left: 2px; }

.status { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pill {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  padding: 5px 10px; border: 1px solid var(--line2); border-radius: 999px; color: var(--dim);
}
.pill.open { color: var(--mint); border-color: rgba(60,255,170,.35); }
.stat { display: flex; align-items: baseline; gap: 6px; font-family: var(--mono); font-size: 12px; }
.stat i { color: var(--dim2); font-style: normal; text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; }
.stat b { color: var(--text); font-weight: 500; }
.stat.hot b { color: var(--hot); }
.docs-link { font-family: var(--mono); font-size: 12px; color: var(--dim); text-decoration: none; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line2); }
.docs-link:hover { color: #fff; border-color: rgba(153,69,255,.6); }
@media (max-width: 760px) {
  .top { flex-wrap: nowrap; padding: 0 14px; gap: 10px; }
  .status { flex-wrap: nowrap; gap: 10px; }
  .status .stat { display: none; }
  .status .stat.hot { display: flex; }
  .status .pill { display: none; }          /* the market session is a detail; it cost the header a second row */
  .brand .sub { display: none; }
}

/* ── tape ─────────────────────────────────────── */
.tape-strip {
  border-bottom: 1px solid var(--line);
  background: rgba(17, 13, 28, .7);
  overflow: hidden; height: 32px;
  display: flex; align-items: center;
}
.tape-track {
  display: flex; gap: 28px; white-space: nowrap; font-family: var(--mono); font-size: 12px;
  padding-left: 20px; animation: tape 90s linear infinite;
}
.tape-strip:hover .tape-track { animation-play-state: paused; }
.tape-track a { color: var(--dim); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.tape-track a:hover b { color: var(--text); }
.tape-track b { font-weight: 500; color: var(--text); }
.tape-track .hot { color: var(--hot); }
.tape-track .printed { color: var(--mint); }
@keyframes tape { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tape-track { animation: none; } }

/* ── tabs: issuers ────────────────────────────── */
.tabs { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; padding: 0 6px; }
.tabs button {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; border-bottom: 2px solid transparent;
  color: var(--dim2); font-family: var(--mono); font-size: 12.5px;
  letter-spacing: .03em; padding: 12px 14px; cursor: pointer; white-space: nowrap;
}
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); border-bottom-color: var(--violet); }
.tabs .tab-pre { margin-left: auto; }
.tabs .tab-pre.on { border-bottom-color: var(--dot-pre); }
.no-ref {
  margin: 0; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(255,179,92,.28); background: rgba(255,179,92,.07);
  color: var(--dim); font-size: 13px; line-height: 20px;
}
.compare-note { margin: 8px 0 0; font-family: var(--mono); font-size: 11px; color: var(--dim2); line-height: 16px; }
.tabs em { font-style: normal; color: var(--dim2); font-size: 11px; }

/* ── layout ───────────────────────────────────── */
.wrap { display: grid; grid-template-columns: minmax(380px, 560px) 1fr; min-height: 60vh; }
.board { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.detail { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.back { display: none; }

/* ── board ────────────────────────────────────── */
.board-head { padding: 12px 14px 10px; display: flex; flex-direction: column; gap: 10px; }
.search input {
  width: 100%; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); padding: 9px 12px; font-family: var(--mono); font-size: 13px; outline: none;
}
.search input:focus { border-color: rgba(153,69,255,.5); }
.search input::placeholder { color: var(--dim2); }

.sorts { display: flex; gap: 6px; flex-wrap: wrap; }
.sorts button {
  background: transparent; border: 1px solid var(--line); color: var(--dim);
  border-radius: 999px; padding: 5px 11px; font-size: 11.5px; font-family: var(--mono);
  letter-spacing: .03em; cursor: pointer;
}
.sorts button:hover { color: var(--text); border-color: var(--line2); }
.sorts button.on { color: #0B0B10; background: #fff; border-color: #fff; }
.sorts .flt { margin-left: auto; border-style: dashed; }
.sorts .flt.on { background: rgba(153,69,255,.2); border: 1px solid rgba(153,69,255,.6); color: var(--hot); }

.thead, .row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) repeat(4, minmax(0, 1fr));
  gap: 8px; align-items: center; padding: 0 14px;
}
.thead {
  height: 30px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--dim2); font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em;
}
.r { text-align: right; }
/* column headers are buttons: click to sort, again to flip */
.thead button { background: transparent; border: 0; padding: 0; height: 100%; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; text-align: left; white-space: nowrap; }
.thead button.r { text-align: right; }
.thead button:hover { color: var(--dim); }
.thead button.on { color: var(--text); }
.thead button i { font-style: normal; margin-left: 4px; color: var(--hot); }
/* watchlist star */
.row .star { flex: none; width: 18px; margin-right: -4px; padding: 0; border: 0; background: transparent; color: var(--dim2); font-size: 14px; line-height: 1; cursor: pointer; }
.row .star:hover { color: var(--text); }
.row .star.on { color: #F7C948; }
.tabs .fav-ico { color: #F7C948; margin-right: 6px; font-size: 12px; }
.rows { overflow-y: auto; flex: 1; max-height: calc(100vh - 262px); min-height: 300px; }
.row {
  position: relative;
  height: 48px; border-bottom: 1px solid rgba(225,215,255,.05);
  cursor: pointer; font-family: var(--mono); font-size: 12.5px;
}
.row:hover { background: rgba(255,255,255,.03); }
/* row colour follows turnover */
.row.hot { background: linear-gradient(90deg, rgba(153,69,255,.12), transparent 70%); }
.row.printed { background: linear-gradient(90deg, rgba(20,241,149,.13), transparent 70%); }
.row.hot::before, .row.printed::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--violet); }
.row.printed::before { background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.row.on { background: var(--bg3); box-shadow: inset 2px 0 0 #fff; }
.row .tk { display: flex; align-items: center; gap: 10px; min-width: 0; }
.row .ico { width: 24px; height: 24px; border-radius: 50%; flex: none; background: rgba(255,255,255,.07); object-fit: cover; }
.row .tk div { min-width: 0; }
.row .tk b { display: flex; align-items: center; gap: 7px; font-family: var(--sans); font-weight: 600; font-size: 13px; }
.row .tk i {
  display: block; margin-top: 2px;
  font-style: normal; color: var(--dim2); font-size: 10.5px; font-family: var(--sans);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.up { color: var(--up); }
.down { color: var(--down); }
.muted { color: var(--dim2); }

/* the turnover cell is the point of the whole table */
.turn { font-weight: 500; color: var(--dim); }
.turn.hot { color: var(--hot); }
.turn.printed { color: var(--mint); text-shadow: 0 0 12px rgba(60,255,170,.5); }

.board-foot {
  display: flex; justify-content: space-between; padding: 9px 14px;
  border-top: 1px solid var(--line); color: var(--dim2);
  font-family: var(--mono); font-size: 11px;
}
.empty-rows { padding: 30px 14px; color: var(--dim2); font-family: var(--mono); font-size: 12px; }

/* ── detail ───────────────────────────────────── */
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.detail-id { display: flex; align-items: center; gap: 14px; }
.d-ico { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.07); }
.detail-head h1 { margin: 0; font-family: var(--sans); font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.detail-head p { margin: 4px 0 0; color: var(--dim); font-size: 13px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.iss-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line2); color: var(--dim);
}
.iss-badge:empty { display: none; }
.price-block { text-align: right; }
.px { font-family: var(--mono); font-size: 26px; font-weight: 500; }
.chg { font-family: var(--mono); font-size: 13px; margin-top: 2px; color: var(--dim); }

/* verdict strip */
.verdict { border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); padding: 14px 16px; }
.verdict-bar { position: relative; height: 6px; background: rgba(255,255,255,.06); border-radius: 3px; overflow: hidden; }
.verdict-bar i { display: block; height: 100%; background: rgba(225,215,255,.55); border-radius: 3px; transition: width .5s cubic-bezier(.16,1,.3,1); }
.verdict-bar s { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.35); }
.verdict-scale { position: relative; height: 14px; margin-top: 4px; }
.verdict-scale span { position: absolute; transform: translateX(-50%); font-family: var(--mono); font-size: 10px; color: var(--dim2); }
.verdict.hot .verdict-bar i { background: linear-gradient(90deg, rgba(153,69,255,.5), var(--violet)); }
.verdict.printed { border-color: rgba(60,255,170,.25); }
.verdict.printed .verdict-bar i { background: linear-gradient(90deg, var(--violet), var(--green)); box-shadow: 0 0 12px var(--green); }
.verdict-text { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.verdict-text b { font-family: var(--mono); font-size: 20px; font-weight: 600; }
.verdict.hot b { color: var(--hot); }
.verdict.printed b { color: var(--mint); }
.verdict-text span { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.verdict-text em { font-style: normal; color: var(--dim2); font-size: 12.5px; flex: 1 1 240px; }

.history { border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); padding: 12px 14px 8px; }
.hist-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.hist-title { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim2); }
.hist-sum { font-family: var(--mono); font-size: 11.5px; color: var(--dim); text-align: right; }
.hist-svg { width: 100%; height: 132px; display: block; margin-top: 6px; overflow: visible; }
.hist-rule { font-family: var(--mono); font-size: 9px; fill: var(--dim2); }
.hist-axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--dim2); padding: 2px 2px 4px; }
.hist-empty { margin: 10px 2px; font-family: var(--mono); font-size: 11.5px; line-height: 17px; color: var(--dim2); }

/* ── the chart, in the GMGN / TradingView layout: toolbar, drawing rail, pane, range bar ── */
.chart-wrap {
  --cbg: #0F0F10; --cpanel: #121213; --cline: #1E1E21; --ctext: rgba(255,255,255,.86); --cdim: rgba(255,255,255,.45);
  --cup: #089981; --cdown: #F23645;
  position: relative; border: 1px solid var(--cline); border-radius: 12px; background: var(--cpanel); overflow: hidden;
}
.cbar, .cfoot { display: flex; align-items: center; gap: 4px; padding: 0 8px; background: var(--cpanel); font-family: var(--sans); }
.cbar { height: 42px; border-bottom: 1px solid var(--cline); }
.cfoot { height: 36px; border-top: 1px solid var(--cline); }
.cgrow { flex: 1; }
.csep { width: 1px; height: 20px; background: var(--cline); margin: 0 6px; flex: none; }
.tfs, .ranges, .cscale { display: flex; flex: none; }
.tfs button, .ranges button, .cscale button {
  background: transparent; border: 0; color: var(--cdim); cursor: pointer; white-space: nowrap;
  border-radius: 6px; padding: 6px 9px; font: 500 13px/1 var(--sans);
}
.tfs button:hover, .ranges button:hover, .cscale button:hover { color: var(--ctext); background: rgba(255,255,255,.05); }
.tfs button.on { color: #fff; font-weight: 600; }
.cscale button.on { color: var(--mint); }
.cpm { flex: none; display: flex; align-items: center; gap: 2px; font: 500 13px/1 var(--sans); color: var(--cdim); }
.cpm button { background: transparent; border: 0; color: var(--cdim); cursor: pointer; padding: 6px 4px; font: inherit; }
.cpm button:hover { color: var(--ctext); }
.cpm button.on { color: #fff; font-weight: 600; }
.cbtn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--ctext); cursor: pointer; font: 500 13px/1 var(--sans); }
.cbtn:hover, .cbtn[aria-expanded="true"] { background: rgba(255,255,255,.06); }
.cbtn svg, .ctools svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#cType .ico-line { display: none; }
.chart-wrap.as-line #cType .ico-line { display: block; }
.chart-wrap.as-line #cType .ico-candles { display: none; }
.cind { position: relative; flex: none; }
.cmenu { position: absolute; top: 36px; left: 0; z-index: 20; min-width: 170px; padding: 6px; border: 1px solid var(--cline); border-radius: 10px; background: #18181B; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.cmenu[hidden] { display: none; }
.cmenu label { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 7px; color: var(--ctext); font: 500 13px/1 var(--sans); cursor: pointer; }
.cmenu label:hover { background: rgba(255,255,255,.05); }
.cmenu input { accent-color: var(--violet); margin: 0; }
.cmenu i { width: 14px; height: 3px; border-radius: 2px; }
.cbody { display: flex; background: var(--cbg); }
.ctools { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 44px; padding: 8px 0; border-right: 1px solid var(--cline); background: var(--cpanel); }
.ctools button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--cdim); cursor: pointer; }
.ctools button:hover { color: var(--ctext); background: rgba(255,255,255,.06); }
.ctools button.on { color: #fff; background: rgba(153,69,255,.28); }
.cmain { position: relative; flex: 1; min-width: 0; }
.chart-wrap.drawing #chart { cursor: crosshair; }
.chart-live { flex: none; display: flex; align-items: center; gap: 7px; margin-right: 6px; font-family: var(--mono); font-size: 11px; color: var(--cdim); }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(60,255,170,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(60,255,170,0); } 100% { box-shadow: 0 0 0 0 rgba(60,255,170,0); } }
.cclock { flex: none; font: 500 12.5px/1 var(--mono); color: var(--ctext); margin-right: 8px; font-variant-numeric: tabular-nums; }
.legend { position: absolute; left: 12px; top: 8px; z-index: 3; pointer-events: none; display: flex; flex-direction: column; gap: 5px; font: 500 12.5px/1.25 var(--sans); color: var(--cdim); }
.legend .lg-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.legend .lg-id { color: var(--ctext); font-size: 13.5px; }
.legend .lg-id b { color: #fff; font-weight: 600; }
.legend em { font-style: normal; font-family: var(--mono); }
.legend .up { color: var(--cup); }
.legend .down { color: var(--cdown); }
#chart { width: 100%; height: 440px; }
.chart-wrap:fullscreen { border-radius: 0; border: 0; display: flex; flex-direction: column; }
.chart-wrap:fullscreen .cbody { flex: 1; }
.chart-wrap:fullscreen #chart { height: calc(100vh - 80px); }
.chart-empty {
  position: absolute; inset: 0;
  display: none; align-items: center; justify-content: center;
  color: var(--cdim); font-family: var(--mono); font-size: 12px; background: var(--cbg);
}
.chart-wrap.empty .chart-empty, .chart-wrap.loading .chart-empty { display: flex; }

.flash-up { animation: flashUp 1.6s ease; }
.flash-down { animation: flashDown 1.6s ease; }
@keyframes flashUp { 0%, 30% { color: #2EBD85; } }
@keyframes flashDown { 0%, 30% { color: #F6465D; } }

.who { border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); padding: 12px 14px; }
.who-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border-radius: 8px; overflow: hidden; }
.who-stats div { background: #0D0A17; padding: 10px 12px; }
.who-stats i { display: block; font-style: normal; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim2); }
.who-stats b { display: block; margin-top: 6px; font-family: var(--mono); font-size: 15px; font-weight: 500; }
.who-stats b.hot { color: var(--hot); }
.who-top { margin-top: 10px; display: grid; gap: 6px; }
.who-top a { position: relative; display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 7px 10px; border-radius: 7px; overflow: hidden; font-family: var(--mono); font-size: 12px; color: var(--text); text-decoration: none; background: rgba(255,255,255,.02); }
.who-top a:hover { background: rgba(255,255,255,.04); }
.who-top em { font-style: normal; color: var(--dim2); font-size: 11px; }
.who-top b { font-weight: 500; }
.who-top i { position: absolute; left: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, #6E3BE8, #C9A6FF); }
.who-note { margin: 10px 0 0; font-family: var(--mono); font-size: 11px; color: var(--dim2); }
.who .muted { font-family: var(--mono); font-size: 12px; margin: 4px 0; }
@media (max-width: 900px) {
  .who-stats { grid-template-columns: repeat(2, 1fr); }
  .who-stats div:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* five stats: the fifth takes the whole row */
  #chart { height: 320px; }
  /* a phone has no room for a drawing rail, and the toolbars scroll sideways instead of wrapping */
  .ctools { display: none; }
  .cbar, .cfoot { overflow-x: auto; scrollbar-width: none; }
  .cbar::-webkit-scrollbar, .cfoot::-webkit-scrollbar { display: none; }
  .cbtn span, .cclock { display: none; }
  /* price or market cap is the first thing to read, so on a phone it leads the toolbar */
  .cbar .csep { display: none; }
  .cpm { order: -1; padding-right: 8px; margin-right: 4px; border-right: 1px solid var(--cline); }
  .tfs button { padding: 6px 7px; }
  .legend { position: static; padding: 8px 10px 4px; font-size: 11px; }
  .legend .lg-id { font-size: 12px; }
}

.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.metric { border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; background: var(--bg2); }
.metric i { display: block; font-style: normal; color: var(--dim2); font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; }
.metric b { display: block; font-family: var(--mono); font-size: 17px; font-weight: 500; margin-top: 6px; }

.compare { border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); padding: 12px 14px; }
.compare-title { margin: 0 0 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim2); }
.compare-rows button {
  width: 100%; display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 8px; align-items: center;
  background: none; border: 0; border-top: 1px solid var(--line); color: var(--text);
  font-family: var(--mono); font-size: 12.5px; padding: 9px 0; cursor: pointer; text-align: left;
}
.compare-rows button:first-child { border-top: 0; }
.compare-rows button:hover { color: #fff; background: rgba(255,255,255,.02); }
.compare-rows button.self { cursor: default; color: var(--dim); }
.compare-rows .nm { display: flex; align-items: center; gap: 8px; }

.links { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; }
.links a { color: var(--dim); text-decoration: none; border-bottom: 1px solid var(--line2); }
.links a:hover { color: var(--text); border-color: var(--violet); }
.links .quote { color: var(--dim2); margin-left: auto; }

/* ── foot ─────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--line); padding: 13px 20px;
  display: flex; justify-content: space-between; gap: 16px;
  color: var(--dim2); font-size: 11.5px; flex-wrap: wrap;
}

.rows::-webkit-scrollbar { width: 9px; }
.rows::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 5px; }
.rows::-webkit-scrollbar-track { background: transparent; }

/* ── phone: board and chart cannot share one screen ── */
@media (max-width: 900px) {
  .wrap { grid-template-columns: 1fr; }
  .board { border-right: 0; }
  .rows { max-height: none; }
  .detail { display: none; }
  body.has-detail .board { display: none; }
  body.has-detail .detail { display: flex; }
  .back {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: 1px solid var(--line2); color: var(--dim);
    font-family: var(--mono); font-size: 12px; padding: 7px 12px;
    border-radius: 999px; cursor: pointer; align-self: flex-start;
  }
  .thead, .row { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); font-size: 11.5px; }
  .thead .c-chg, .row .c-chg { display: none; }
  .links .quote { margin-left: 0; }
}

.foot a { color: var(--dim); text-decoration: none; }
.foot a:hover { color: #fff; }
