/* The terminal: built on the site's own sheet (its tokens, .nav, .panel, .seg, .tbl, .btn, .field look), nothing new in colour or type. */
.is-hidden { display: none !important; }
.tr-body { min-height: 100svh; }
.tr-body .nav { background: #000000f2; }
.tr-body .nav-links { display: flex; }
.tr-body .nav-ticker { display: flex; }
.tr-nav-home { margin-left: 4px; }
.tr-muted { color: var(--muted); font-style: normal; }
.tr-label { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

.tr { padding: 84px var(--gutter) 40px; max-width: 1760px; margin: 0 auto; display: grid; gap: 12px; }

/* ---- the strip */
.tr-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--surface); border-radius: 14px; padding: 12px 14px 12px 18px; }
.tr-strip-l { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; min-width: 0; }
.tr-kv { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tr-kv > span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.tr-kv > b { font-weight: 500; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.tr-stage { background: var(--surface-3); color: var(--ink); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.tr-stage.funded { background: var(--accent); color: var(--accent-ink); }
.tr-stage.failed { background: #f2807f26; color: var(--down); }
.tr-ca { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: 999px; padding: 4px; max-width: 100%; min-width: 0; }
.tr-ca-chain { display: flex; align-items: center; gap: 8px; padding: 0 10px 0 6px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.tr-ca-chain img { border-radius: 50%; }
.tr-ca-addr { display: flex; align-items: center; gap: 8px; min-width: 0; height: 32px; padding: 0 6px 0 12px; border: 0; border-radius: 999px; background: var(--surface-3); color: var(--ink); font: 500 13px/1 var(--font); cursor: copy; }
.tr-ca-addr:hover:not(:disabled) { background: var(--surface-4); }
.tr-ca-addr:disabled { cursor: default; color: var(--muted); padding-right: 12px; }
.tr-ca-addr > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tr-ca-copy { flex: none; font-style: normal; font-size: 12px; background: var(--ink); color: #000; border-radius: 999px; padding: 5px 10px; }
.tr-ca-link { flex: none; font-size: 12px; padding: 9px 12px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.tr-ca-link:hover { background: var(--surface-4); color: var(--ink); }
.tr-practice { background: #c9b98a14; color: var(--flat); border-radius: 12px; padding: 10px 16px; font-size: 14px; }

/* ---- the grid */
.tr-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr) 340px; gap: 12px; align-items: start; }
.tr-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.tr-head b { font-weight: 500; font-size: 15px; }
.tr-head .tr-muted { font-size: 12px; }

.tr-markets { padding: 14px 8px 8px; position: sticky; top: 84px; max-height: calc(100svh - 96px); display: flex; flex-direction: column; }
.tr-markets .tr-head { padding: 0 8px; }
.tr-mlist { overflow-y: auto; min-height: 0; display: grid; gap: 2px; }
.tr-m { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 9px 10px; border-radius: 10px; cursor: pointer; border: 0; background: transparent; color: var(--ink); text-align: left; font: inherit; }
.tr-m:hover { background: var(--surface-2); }
.tr-m.on { background: var(--surface-3); }
.tr-m-s { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 7px; min-width: 0; }
.tr-m-s i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); flex: none; }
.tr-m-s i.up { background: var(--up); } .tr-m-s i.down { background: var(--down); } .tr-m-s i.flat { background: var(--flat); }
.tr-m-p { font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.tr-m-n { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-m-c { font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }

.tr-center { display: grid; gap: 12px; min-width: 0; }
.tr-chartbox { padding: 0; overflow: hidden; }
.tr-charthead { display: flex; align-items: center; gap: 18px; padding: 14px 16px 6px; flex-wrap: wrap; }
.tr-sym { display: flex; align-items: baseline; gap: 8px; }
.tr-sym b { font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.tr-sym span { font-size: 13px; }
.tr-px { display: flex; align-items: baseline; gap: 10px; margin-right: auto; }
.tr-px b { font-size: 20px; font-weight: 500; }
.tr-px span { font-size: 13px; }
.tr-seg { position: relative; }
.tr-seg button { position: relative; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 8px; cursor: pointer; transition: color .2s, background .2s; }
.tr-seg button:hover { color: var(--ink); }
.tr-seg button.on { background: var(--ink); color: #000; }
.tr-chart { height: clamp(320px, 48svh, 560px); }

.tr-read { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.tr-read-l { display: grid; gap: 4px; min-width: 0; flex: 1 1 320px; }
.tr-read-call { font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.tr-read-why { color: var(--ink-2); font-size: 14px; }
.tr-read-r { display: flex; gap: 26px; flex-wrap: wrap; }

/* ---- ticket */
.tr-right { display: grid; gap: 12px; min-width: 0; position: sticky; top: 84px; }
.tr-ticket { display: grid; gap: 12px; }
.tr-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--surface-2); border-radius: 12px; padding: 4px; }
.tr-sides button { border: 0; border-radius: 9px; height: 40px; font: inherit; font-size: 15px; font-weight: 500; background: transparent; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; }
.tr-sides button:hover { color: var(--ink); }
.tr-sides button.on.long { background: var(--up); color: #03140d; }
.tr-sides button.on.short { background: var(--down); color: #1a0505; }
.tr-type { justify-self: start; }
.tr-field { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); min-width: 0; }
.tr-field > span { display: flex; justify-content: space-between; gap: 8px; }
.tr-field input:not([type=range]) { border: 1px solid var(--surface-4); background: var(--bg); width: 100%; height: 42px; color: var(--ink); font: inherit; font-size: 15px; border-radius: 10px; outline: none; padding: 0 12px; font-variant-numeric: tabular-nums; box-sizing: border-box; }
.tr-field input:not([type=range]):focus { border-color: var(--accent); }
.tr-field input[type=range] { width: 100%; accent-color: var(--ink); }
.tr-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tr-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: -4px; }
.tr-quick button { border: 0; border-radius: 8px; height: 30px; background: var(--surface-2); color: var(--ink-2); font: inherit; font-size: 12px; cursor: pointer; }
.tr-quick button:hover { background: var(--surface-3); color: var(--ink); }
.tr-sum { display: grid; grid-template-columns: auto auto; justify-content: space-between; gap: 6px 12px; margin: 0; font-size: 13px; }
.tr-sum dt { color: var(--muted); }
.tr-sum dd { margin: 0; text-align: right; color: var(--ink-2); }
.tr-go { width: 100%; height: 48px; }
.tr-go.long { background: var(--up); color: #03140d; }
.tr-go.long:hover { background: #7ee0bb; }
.tr-go.short { background: var(--down); color: #1a0505; }
.tr-go.short:hover { background: #f7a3a2; }
.tr-go:disabled { opacity: .45; cursor: default; }

/* ---- account */
.tr-acct { display: grid; gap: 12px; }
.tr-acct .tr-head { margin-bottom: 0; }
.tr-acct-note { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.tr-meter { position: relative; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #f2807f40 0 var(--zero, 38%), #57d3a440 var(--zero, 38%) 100%); }
.tr-meter-zero { position: absolute; top: -3px; bottom: -3px; left: var(--zero, 38%); width: 1px; background: var(--muted); }
.tr-meter-pos { position: absolute; top: -4px; width: 4px; height: 16px; border-radius: 2px; background: var(--ink); left: var(--at, 38%); transform: translateX(-50%); transition: left .4s var(--ease); }
.tr-meter-legend { display: flex; justify-content: space-between; font-size: 12px; margin-top: -4px; }
.tr-note { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.tr-wd { display: grid; gap: 8px; background: var(--surface-2); border-radius: 12px; padding: 12px; }
.tr-wd-amt { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tr-wd-amt b { font-size: 22px; font-weight: 500; }
.tr-wd-btn { width: 100%; }
.tr-wd-btn:disabled { opacity: .45; cursor: default; }
.tr-why { margin: 0; font-size: 13px; color: var(--muted); }
.tr-restart { width: 100%; }
.tr-addr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.tr-addr .btn { height: 42px; }
.tr-acct-foot { margin: 0; font-size: 13px; color: var(--muted); }
.tr-link { border: 0; background: none; color: var(--accent); font: inherit; font-size: inherit; cursor: pointer; padding: 0; }
.tr-link:hover { color: #a3c0ff; }

/* ---- tabs */
.tr-tabs { padding: 8px 8px 12px; }
.tr-tabbar { display: flex; gap: 4px; overflow-x: auto; padding: 4px; background: var(--surface-2); border-radius: 12px; margin-bottom: 8px; }
.tr-tabbar button { flex: none; border: 0; border-radius: 9px; padding: 9px 14px; background: transparent; color: var(--ink-2); font: inherit; font-size: 14px; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.tr-tabbar button:hover { color: var(--ink); }
.tr-tabbar button.on { background: var(--surface-4); color: var(--ink); }
.tr-tabbar i { font-style: normal; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tr-tab { padding: 0 6px; }
.tr-tbl { width: 100%; font-size: 14px; }
.tr-tbl td { padding: 10px 12px; border-bottom: 1px solid var(--surface-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tr-tbl tbody tr { cursor: default; }
.tr-tbl tbody tr:hover { background: var(--surface-2); }
.tr-tbl .r { text-align: right; }
.tr-tbl .tr-sm { font-size: 12px; color: var(--muted); }
.tr-btn-x { border: 0; border-radius: 8px; padding: 6px 12px; background: var(--surface-3); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.tr-btn-x:hover { background: var(--surface-4); }
.tr-empty { color: var(--muted); font-size: 14px; padding: 14px 12px; margin: 0; }
.tr-h3 { font-size: 14px; font-weight: 500; margin: 8px 12px 6px; color: var(--ink-2); }
.tr-boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.tr-tape { list-style: none; margin: 0; padding: 0 12px; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.tr-tape li { display: flex; gap: 10px; }
.tr-tape time { color: var(--muted); font-size: 12px; flex: none; width: 46px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.tr-bank { display: grid; gap: 14px; }
.tr-bank-k { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.tr-bank-k > div { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; }
.tr-bank-k span { color: var(--muted); font-size: 12px; }
.tr-bank-k b { font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.tr-rules { max-width: 860px; padding: 6px 12px 4px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.tr-rules h3 { color: var(--ink); font-size: 16px; font-weight: 500; margin: 18px 0 6px; }
.tr-rules h3:first-child { margin-top: 4px; }
.tr-rules p { margin: 0 0 8px; }
.tr-rules b { color: var(--ink); font-weight: 500; }

/* ---- sheet + toast */
.tr-sheet { position: fixed; inset: 0; z-index: 90; background: #000000b3; display: grid; place-items: center; padding: 20px; }
.tr-sheet-box { width: min(440px, 100%); display: grid; gap: 14px; padding: 22px; }
.tr-sheet-box h2 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.tr-sheet-box p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.tr-sheet-box .tr-big { font-size: 40px; font-weight: 500; letter-spacing: -.03em; }
.tr-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.tr-steps li { color: var(--muted); display: flex; gap: 8px; align-items: center; }
.tr-steps li.done { color: var(--ink); }
.tr-steps li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--surface-4); flex: none; }
.tr-steps li.done::before { background: var(--up); }
.tr-steps li.bad::before { background: var(--down); }
.tr-sheet-row { display: flex; gap: 8px; }
.tr-sheet-row .btn { flex: 1; }
.tr-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 95; background: var(--surface-4); color: var(--ink); border-radius: 999px; padding: 11px 18px; font-size: 14px; pointer-events: none; transition: opacity .25s, transform .35s var(--ease); max-width: calc(100vw - 32px); }
.tr-toast.show { opacity: 1; transform: translate(-50%, 0); }
.tr-toast.bad { background: #3a1716; color: #ffd0cf; }

/* ---- sizes */
@media (max-width: 1280px) { .tr-grid { grid-template-columns: 220px minmax(0, 1fr) 310px; } .tr-strip-l { gap: 20px; } }
@media (max-width: 1080px) {
  .tr-body .nav-center { display: none; }
  .tr-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .tr-markets { grid-column: 1 / -1; position: static; max-height: none; padding: 10px; }
  .tr-mlist { display: flex; overflow-x: auto; gap: 6px; }
  .tr-m { flex: none; min-width: 132px; background: var(--surface-2); }
  .tr-hide-m { display: none; }
  .tr-boards { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .tr { padding-top: 80px; }
  .tr-grid { grid-template-columns: minmax(0, 1fr); }
  .tr-right { position: static; }
  .tr-hide-s { display: none; }
  .tr-chart { height: 340px; }
  .tr-ca { width: 100%; }
  .tr-ca-addr { flex: 1; }
  .tr-body .nav-ticker { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tr-meter-pos, .tr-toast { transition: none; } }

/* ---- memecoins: the mode switch, the memescope board (Axiom Pulse anatomy on the site's own tokens), one coin, the bag ticket */
.tr-modes { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tr-mode { width: min(340px, 100%); }
.tr-mode button.on { background: var(--ink); color: #000; }
.tr-modes .tr-muted { font-size: 13px; }
.tr-grid.memes { grid-template-columns: minmax(0, 1fr) 340px; }
.tr-grid.memes .tr-markets, .tr-grid.memes .tr-center { display: none; }
.tr-memes { display: grid; gap: 12px; min-width: 0; }
.tr-scope { padding: 12px 10px 10px; }
.tr-scope-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 6px 10px; flex-wrap: wrap; }
.tr-scope-pick { display: none; }
.tr-scope-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tr-col { background: var(--surface-2); border-radius: 12px; min-width: 0; display: flex; flex-direction: column; }
.tr-col-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--surface-3); }
.tr-col-head b { font-weight: 500; font-size: 14px; }
.tr-col-head i { font-style: normal; font-size: 12px; color: var(--muted); background: var(--surface-3); border-radius: 999px; padding: 2px 8px; }
.tr-col-list { display: grid; gap: 2px; padding: 4px; max-height: calc(100svh - 300px); min-height: 240px; overflow-y: auto; align-content: start; }
.tr-card { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.tr-card:hover { background: var(--surface-3); }
.tr-card.no .tr-card-buy { opacity: .4; }
.tr-card-pic { position: relative; width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: var(--surface-3); }
.tr-card-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-card-main { display: grid; gap: 3px; min-width: 0; }
.tr-card-l1 { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.tr-card-l1 b { font-weight: 600; font-size: 14px; white-space: nowrap; }
.tr-card-l1 span { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-card-l2 { display: flex; gap: 9px; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.tr-card-l2 .age { color: var(--up); }
.tr-card-bar { height: 3px; border-radius: 999px; background: var(--surface-4); overflow: hidden; }
.tr-card-bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--ink-2); }
.tr-card-r { display: grid; gap: 3px; justify-items: end; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tr-card-r b { color: var(--ink); font-weight: 500; font-size: 13px; }
.tr-card-buy { font-size: 11px; background: var(--surface-4); color: var(--ink); border-radius: 999px; padding: 3px 9px; }
.tr-card:hover .tr-card-buy { background: var(--ink); color: #000; }
.tr-coin { display: grid; gap: 12px; min-width: 0; }
.tr-coin-img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; background: var(--surface-3); }
.tr-coin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.tr-coin-stats > div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; display: grid; gap: 3px; }
.tr-coin-stats span { color: var(--muted); font-size: 12px; }
.tr-coin-stats b { font-size: 16px; font-weight: 500; }
.tr-mtape { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 280px; overflow-y: auto; font-size: 13px; }
.tr-mtape li { display: grid; grid-template-columns: 56px 52px minmax(0, 1fr) auto; gap: 10px; padding: 6px 8px; border-radius: 8px; }
.tr-mtape li:hover { background: var(--surface-2); }
.tr-mtape time, .tr-mtape .who { color: var(--muted); }
.tr-mtape .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-mt-coin { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 14px; }
.tr-mt-coin img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; background: var(--surface-3); }
.tr-mt-coin b { font-weight: 500; }
.tr-mt-pane { display: grid; gap: 12px; }
.tr-quick button.on { background: var(--surface-4); color: var(--ink); }
.tr-go.short:disabled, .tr-go.long:disabled { opacity: .45; }
.tr-bagtag { font-size: 11px; color: var(--muted); background: var(--surface-3); border-radius: 999px; padding: 2px 7px; margin-left: 6px; font-weight: 400; }
@media (max-width: 1280px) { .tr-grid.memes { grid-template-columns: minmax(0, 1fr) 310px; } }
@media (max-width: 1080px) {
  .tr-grid.memes { grid-template-columns: minmax(0, 1fr) 320px; }
  .tr-scope-pick { display: flex; }
  .tr-scope-grid { grid-template-columns: minmax(0, 1fr); }
  .tr-col { display: none; }
  .tr-col.on { display: flex; }
}
@media (max-width: 820px) {
  .tr-grid.memes { grid-template-columns: minmax(0, 1fr); }
  .tr-col-list { max-height: 70svh; }
  .tr-mode { width: 100%; }
}
