:root {
  color-scheme: light;
  --bg: #f6f5f1; --surface: #ffffff; --surface-2: #efeee9; --surface-3: #e5e4de;
  --line: rgba(18, 18, 22, .08); --line-strong: rgba(18, 18, 22, .15);
  --strong: #121216; --text: #3f3e46; --fog: #6c6b74; --label: #8b8a92;
  --accent: #ff5a1f; --accent-text: #d9480f; --accent-soft: rgba(255, 90, 31, .1);
  --pos: #0b9a6a; --neg: #d63a52;
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 12px; --r-lg: 16px;
  --shadow: 0 1px 2px rgba(18, 18, 22, .04), 0 10px 28px -14px rgba(18, 18, 22, .16);
  --w: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); scroll-behavior: smooth; }
body { position: relative; display: flex; flex-direction: column; min-width: 320px; min-height: 100vh; margin: 0; color: var(--text);
       font: 15px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent-soft); color: var(--strong); }
:where(a, button, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
main { flex: 1 0 auto; width: min(var(--w), calc(100% - 36px)); margin: 0 auto; padding: 44px 0 96px; }

a { color: var(--strong); text-decoration: underline; text-decoration-color: rgba(255, 90, 31, .5);
    text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
a:hover { text-decoration-color: var(--accent); }
p { margin: 0 0 14px; }
strong { color: var(--strong); }
h1, h2 { color: var(--strong); font-family: var(--display); font-weight: 400; letter-spacing: -.015em; }
h1 { margin: 0 0 14px; font-size: clamp(40px, 5vw, 64px); line-height: 1; }
h2 { margin: 0 0 8px; font-size: clamp(32px, 3.4vw, 42px); line-height: 1.05; }
h3 { margin: 0 0 6px; color: var(--strong); font: 600 16.5px/1.3 var(--body); letter-spacing: -.01em; }
.dim { color: var(--fog); }
.pos { color: var(--pos) !important; }
.neg { color: var(--neg) !important; }
.k { margin: 0; color: var(--label); font: 500 10.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }

/* header: one thin bar */
header.site { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(246, 245, 241, .88);
              backdrop-filter: saturate(1.4) blur(12px); }
header.site .bar { display: flex; align-items: center; gap: 24px; width: min(var(--w), calc(100% - 36px)); height: 52px; margin: 0 auto; }
.brand { display: inline-flex; flex: none; align-items: center; text-decoration: none; }
.brand img { display: block; width: auto; height: 17px; }
.actions { display: flex; align-items: center; gap: 6px; min-width: 0; margin-left: auto; }
.ca-pill { display: inline-flex; align-items: center; gap: 8px; min-width: 0; height: 32px; padding: 0 3px 0 10px;
           border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--label);
           font: 600 10.5px/1 var(--mono); letter-spacing: .06em; }
.ca { overflow: hidden; color: var(--strong); font-weight: 500; letter-spacing: 0; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.copy { flex: none; margin-left: auto; padding: 6px 8px; border: 0; border-radius: 6px; background: var(--surface-2);
        color: var(--text); font: 600 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.copy:hover { background: var(--surface-3); color: var(--strong); }
.icon-link { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px;
             border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--strong);
             text-decoration: none; transition: border-color .15s, background .15s; }
.icon-link:hover, .icon-link[aria-current] { border-color: var(--line-strong); background: var(--surface-2); }

/* buttons, badges, chips */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 16px;
          border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--strong);
          font: 600 13.5px/1 var(--body); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.button:hover { border-color: rgba(18, 18, 22, .28); }
.button.primary { border-color: var(--strong); background: var(--strong); color: #fff; }
.button.primary:hover { background: #000; }
.button.icon { width: 38px; padding: 0; }
.badge { display: inline-flex; flex: none; align-items: center; gap: 7px; min-height: 24px; padding: 0 10px; border-radius: 999px;
         background: var(--surface-2); color: var(--fog); font: 600 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
         white-space: nowrap; }
.badge i { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--label); color: var(--accent); }
.badge.live { background: var(--accent-soft); color: var(--accent-text); }
.badge.live i { background: var(--accent); }
.badge.live i::after { content: ""; position: absolute; inset: -3px; border: 1px solid currentColor; border-radius: 50%;
                       animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.8); } }
/* home: a dark hero card, the latest swaps, then the pals */
main.home { padding: 24px 0 64px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; padding: 28px 32px;
        border-radius: var(--r-lg); background: #121216; color: rgba(255, 255, 255, .68); }
.eyebrow { margin: 0 0 12px; color: rgba(255, 255, 255, .5); font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { margin: 0 0 10px; color: #fff; font: 600 clamp(28px, 3.2vw, 38px)/1.08 var(--body); letter-spacing: -.035em; }
.hero-text > p:not(.eyebrow) { max-width: 560px; margin: 0; font-size: 14.5px; line-height: 1.55; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 22px 0 24px; }
.hero-stats dt { color: rgba(255, 255, 255, .45); font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.hero-stats dd { margin: 7px 0 0; color: #fff; font: 600 15px/1 var(--mono); font-variant-numeric: tabular-nums; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero .button.ghost { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; }
.hero .button.ghost:hover { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); }
/* The first button showing is the white one. */
.hero .button.light, .hero .button[hidden] + .button { border-color: #fff; background: #fff; color: var(--strong); }
.hero .button.light:hover, .hero .button[hidden] + .button:hover { background: #e9e8e4; }
.text-link { padding: 0 6px; color: rgba(255, 255, 255, .6); font: 500 13px/1 var(--body); text-decoration: none; }
.text-link:hover { color: #fff; }
.hero-art { display: grid; justify-items: center; gap: 10px; }
.hero-art:empty { display: none; }
.split-names { display: flex; justify-content: space-between; width: 100%; color: rgba(255, 255, 255, .55);
               font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

/* a pal's photo split down the middle: the real trader in grey on the left, the AI in orange on the right */
.split { position: relative; flex: none; overflow: hidden; background: #000; }
.split img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.split-ai { position: absolute; inset: 0; background: var(--accent); clip-path: inset(0 0 0 50%); }
.split-ai img { mix-blend-mode: multiply; }
.split::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 1px); width: 2px; background: var(--split-line, #fff); }
.split.lg { width: 220px; height: 220px; border-radius: 14px; --split-line: #121216; }
.split.sm { width: 44px; height: 44px; border-radius: 10px; }

.sec { margin-top: 36px; scroll-margin-top: 72px; }
.home h2 { margin: 0 0 14px; font: 600 17px/1.2 var(--body); letter-spacing: -.01em; }

.tag { display: inline-flex; flex: none; align-items: center; height: 18px; padding: 0 6px; border-radius: 5px;
       font: 600 9.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.tag.real { background: var(--surface-2); color: var(--text); }
.tag.ai { background: var(--accent-soft); color: var(--accent-text); }
.tag.lead { background: rgba(11, 154, 106, .1); color: var(--pos); }
.avatar.sm.ai { outline: 2px solid var(--accent); outline-offset: 1px; }

/* the latest swaps from both wallets, scrolling past */
.ticker { margin-top: 12px; overflow: hidden; border-block: 1px solid var(--line);
          -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-set { display: flex; }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-right: 1px solid var(--line); color: var(--fog);
               font: 500 12px/1 var(--mono); white-space: nowrap; }
.ticker-item b { color: var(--strong); font-weight: 600; }
.ticker-item .buy, .ticker-item .sell { font-weight: 600; text-transform: uppercase; }
.ticker-item .buy { color: var(--pos); }
.ticker-item .sell { color: var(--neg); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* home: the pals */
.avatar { display: grid; flex: none; place-items: center; width: 52px; height: 52px; overflow: hidden; border-radius: 14px;
          background: linear-gradient(145deg, #2a2a31, var(--strong)); color: #fff; font: 600 15px/1 var(--mono); letter-spacing: .04em; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 10px; }
.pals { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.pal-card { display: grid; align-content: start; gap: 14px; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--r);
            background: var(--surface); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.pal-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.pal-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pal-top > div { min-width: 0; }
.pal-top h3 { margin: 0 0 2px; font-size: 16px; }
.versus { margin: 0 2px; color: var(--label); font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.pal-top .badge { margin-left: auto; }
.pal-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pal-sides > div { display: grid; justify-items: start; gap: 6px; min-width: 0; }
.pal-sides .label { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pal-sides b { color: var(--strong); font: 600 24px/1 var(--mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pal-sides b.dim { color: var(--label); }
.pal-sides .range { color: var(--label); font: 500 10px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.pal-chart { height: 56px; }
.pal-card .foot { display: flex; justify-content: flex-end; padding-top: 12px; border-top: 1px solid var(--line); }
.go { flex: none; color: var(--strong); font: 600 13px/1 var(--body); }
.go::after { content: " \2192"; }
.pal-card.next { place-content: center; justify-items: center; gap: 10px; min-height: 200px; border: 1.5px dashed var(--line-strong);
                 background: transparent; text-align: center; }
.pal-card.next h3 { margin: 0; }
.pal-card.next p { max-width: 240px; margin: 0; color: var(--fog); font-size: 13.5px; line-height: 1.5; }
.mark { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
        background: var(--strong); color: #fff; font: 400 24px/1 var(--display); }
.mark::after { content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border: 2px solid var(--bg);
               border-radius: 50%; background: var(--accent); }
/* docs: grouped contents in a card beside one long page */
main.docs { display: grid; grid-template-columns: 220px minmax(0, 860px); gap: 24px; align-items: start; padding: 24px 0 64px; }
.docs-nav { position: sticky; top: 76px; display: grid; gap: 18px; padding: 16px 10px; border: 1px solid var(--line); border-radius: var(--r);
            background: var(--surface); }
.docs-nav div { display: grid; gap: 1px; }
.docs-nav .k { margin-bottom: 6px; padding-left: 10px; }
.docs-nav a { position: relative; padding: 7px 10px; border-radius: 7px; color: var(--text); font: 500 13.5px/1.3 var(--body); text-decoration: none;
              transition: color .15s, background .15s; }
.docs-nav a:hover { background: rgba(18, 18, 22, .04); color: var(--strong); }
.docs-nav a[aria-current] { background: var(--surface-2); color: var(--strong); }
.docs-nav a[aria-current]::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 3px; width: 2px; border-radius: 2px; background: var(--strong); }
.docs-body { min-width: 0; padding: 36px 44px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.doc { scroll-margin-top: 72px; }
.doc + .doc { margin-top: 34px; padding-top: 34px; border-top: 1px solid var(--line); }
.doc h2 { margin: 0 0 14px; font: 600 22px/1.25 var(--body); letter-spacing: -.02em; }
.doc p { margin: 0 0 14px; color: var(--text); font-size: 15px; line-height: 1.75; }
.doc p:last-child { margin-bottom: 0; }
.doc p b { color: var(--strong); font-weight: 600; }
.doc-list { margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.doc-list > * + * { border-top: 1px solid var(--line); }
.pal-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 11px 14px;
           color: inherit; text-decoration: none; transition: background .15s; }
.pal-row:hover { background: #fbfaf8; }
.pal-row div { display: grid; gap: 2px; min-width: 0; }
.pal-row strong { font-size: 14px; }
.pal-row div span { color: var(--fog); font-size: 13px; }
.wallet-row { display: grid; grid-template-columns: 170px auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 14px; }
.wallet-row .who { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--strong); font-size: 14px; font-weight: 600; }
.wallet-row a { overflow: hidden; color: var(--strong); font: 500 12.5px/1.4 var(--mono); text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.wallet-row a:hover { color: var(--accent-text); }

/* pal page: a full-screen trading terminal, where each panel scrolls on its own */
body.terminal { height: 100vh; height: 100dvh; overflow: hidden; }
main.term { display: grid; flex: 1 1 0; grid-template-columns: minmax(250px, 1fr) minmax(0, 2.5fr) minmax(250px, 1fr);
            grid-template-rows: minmax(0, 1.15fr) minmax(0, 1fr); gap: 10px; width: min(1600px, calc(100% - 36px));
            min-height: 0; padding: 12px 0; }
.t-books { grid-column: 1 / -1; }
.t-head .button { min-height: 30px; padding: 0 12px; font-size: 12.5px; }
.t-lead { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px;
          background: var(--surface); color: var(--text); font: 500 12px/1 var(--mono); white-space: nowrap; }
.t-lead.ai { border-color: transparent; background: var(--accent-soft); color: var(--accent-text); }
.t-lead.real { border-color: var(--strong); background: var(--strong); color: #fff; }
.t-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; border: 1px solid var(--line); border-radius: 14px;
           background: var(--surface); box-shadow: 0 1px 2px rgba(18, 18, 22, .04); }
.t-head { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 6px 7px 6px 12px;
          border-bottom: 1px solid var(--line); }
.t-who { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--strong); font: 600 13.5px/1.2 var(--body); white-space: nowrap; }
.t-who strong { overflow: hidden; text-overflow: ellipsis; }
.t-credit { display: inline-flex; flex: none; align-items: center; gap: 5px; margin-left: 2px; padding-left: 10px;
            border-left: 1px solid var(--line); color: var(--label); font: 500 11.5px/1 var(--body); text-decoration: none; white-space: nowrap; }
.t-credit:hover { color: var(--strong); }
.t-credit img { display: block; }
.t-wallets { display: grid; flex: none; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); }
.t-wallet { display: flex; align-items: center; gap: 8px; min-width: 0; }
.chain { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 34px; height: 20px; border-radius: 5px;
         background: var(--surface-2); color: var(--text); font: 600 9.5px/1 var(--mono); letter-spacing: .06em; }
.t-addr { min-width: 0; color: var(--strong); font: 500 12px/1.4 var(--mono); text-decoration: none; overflow-wrap: anywhere; }
.t-addr:hover { color: var(--accent-text); }
.t-more { display: grid; gap: 6px; }
.t-more .t-wallet { padding-right: 46px; }
.t-more-toggle { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 3px; width: 38px; padding: 6px 0;
                 border: 0; border-radius: 6px; background: var(--surface-2); color: var(--text); font: 600 10px/1 var(--mono); cursor: pointer; }
.t-more-toggle::after { content: ""; width: 4px; height: 4px; margin-top: -2px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
                        transform: rotate(45deg); transition: transform .15s; }
.t-more-toggle[aria-expanded="true"]::after { margin-top: 2px; transform: rotate(-135deg); }
.t-more-toggle:hover { background: var(--surface-3); color: var(--strong); }
.t-big { display: grid; flex: none; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.t-big > div { display: grid; gap: 6px; min-width: 0; padding: 12px; }
.t-big > div + div { border-left: 1px solid var(--line); }
.t-big .k { display: flex; align-items: center; gap: 6px; }
.t-big b { overflow: hidden; color: var(--strong); font: 400 30px/1 var(--display); font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.t-stats { flex: 1; min-height: 0; margin: 0; padding: 6px 0; overflow: auto; }
.t-stats div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 12px; }
.t-stats dt { flex: none; color: var(--fog); font-size: 12.5px; line-height: 1.5; }
.t-stats dd { min-width: 0; margin: 0; overflow: hidden; color: var(--strong); font: 500 12px/1.6 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.t-chart .chart { flex: 1; min-height: 0; margin: 8px 4px 6px 12px; }
.t-live { display: flex; flex: 1; min-height: 0; overflow: hidden; border-radius: 0 0 13px 13px; }
.t-live .chart, .t-stream { min-width: 0; }
.t-stream { flex: 1; min-height: 0; background: #000; }
.t-stream iframe { display: block; width: 100%; height: 100%; border: 0; }
.t-talk { display: flex; flex: none; flex-direction: column; width: 270px; min-height: 0; border-left: 1px solid var(--line); }
.t-msgs { display: flex; flex: 1; flex-direction: column; gap: 6px; min-height: 0; padding: 10px 12px; overflow-y: auto; }
.t-msgs > :first-child { margin-top: auto; }
.t-msg { margin: 0; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.t-msg b { margin-right: 6px; color: var(--strong); font-weight: 600; }
.t-say { display: grid; flex: none; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); }
.t-row { display: flex; gap: 6px; }
.t-as { overflow: hidden; color: var(--fog); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.t-as b { color: var(--strong); font-weight: 600; }
.t-change { padding: 0; border: 0; background: none; color: var(--fog); font: inherit; text-decoration: underline; cursor: pointer; }
.t-change:hover { color: var(--strong); }
.t-say input { flex: 1; width: 100%; min-width: 0; height: 32px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px;
               background: var(--surface); color: var(--strong); font: 13px/1 var(--body); }
.t-say input:focus { border-color: var(--strong); outline: none; }
.t-say .button { min-height: 32px; padding: 0 12px; font-size: 12.5px; }
.t-note { color: var(--neg); font-size: 12px; }
.t-note:empty { display: none; }
.t-empty { display: grid; place-items: center; height: 100%; min-height: 120px; padding: 20px; color: var(--fog); font-size: 13.5px; text-align: center; }
.t-books { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-height: 0; }
.t-book .t-head, .t-chart .t-head { flex-wrap: wrap; row-gap: 6px; }
.t-body { flex: 1; min-height: 0; overflow: auto; }
.t-body, .t-stats { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
/* hover or focus the "i" to read more */
.tip { position: relative; display: inline-flex; }
.info { display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%;
        background: var(--surface); color: var(--fog); font: 600 10px/1 var(--mono); text-transform: none; cursor: help; }
.tip:hover .info, .info:focus-visible { border-color: var(--strong); color: var(--strong); }
.pop { position: absolute; top: calc(100% + 8px); left: -10px; z-index: 60; width: max-content; max-width: min(360px, 80vw); padding: 12px 14px;
       border-radius: 12px; background: var(--strong); color: rgba(255, 255, 255, .86); font: 400 13px/1.5 var(--body); letter-spacing: 0;
       text-transform: none; white-space: pre-line; box-shadow: 0 12px 32px -12px rgba(18, 18, 22, .5); opacity: 0; visibility: hidden; transform: translateY(-4px);
       transition: opacity .15s, transform .15s, visibility .15s; pointer-events: none; }
.pop.end { right: -10px; left: auto; }
.tip:hover .pop, .tip:focus-within .pop { opacity: 1; visibility: visible; transform: none; }

table { width: 100%; margin: 0; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
:is(th, td):first-child { padding-left: 12px; }
:is(th, td):last-child { padding-right: 12px; }
tr:last-child > * { border-bottom: 0; }
th { position: sticky; top: 0; z-index: 1; border-bottom: 0; background: #fbfaf8; box-shadow: inset 0 -1px var(--line); color: var(--label);
     font: 500 10px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
td { color: var(--text); line-height: 1.5; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.num, td.t { color: var(--strong); font: 500 12px/1.6 var(--mono); }
td.t, td.num.dim { color: var(--fog); }
td.t a { color: inherit; text-decoration: none; }
td.t a:hover { color: var(--strong); }
td a.tx { color: var(--strong); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
td a.tx:hover { color: var(--accent-text); text-decoration-color: currentColor; }
td.said { max-width: 240px; overflow: hidden; color: var(--text); font: 400 13.5px/1.55 var(--body); text-overflow: ellipsis; }
td.said.wrap { min-width: 280px; max-width: 560px; white-space: normal; }
tr.noted > td { border-bottom: 0; padding-bottom: 4px; }
td.notes { padding-top: 0; padding-bottom: 12px; white-space: normal; }
td.notes .note { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: baseline; }
td.notes .note + .note { margin-top: 6px; }
td.notes .k { color: var(--label); font: 500 10px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
td.notes .said { color: var(--text); font: 400 13.5px/1.55 var(--body); }
td.said.wrap div + div, td.decision div + div { margin-top: 6px; }
td.decision { color: var(--strong); font: 500 12px/1.6 var(--mono); }
td.decision .buy { color: var(--pos); }
td.decision .sell { color: var(--neg); }
/* lightweight-charts lays itself out with a table, which mustn't pick up the site's table styles */
.tv-lightweight-charts td { padding: 0; border: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; min-width: 0; }
.legend .item { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font: 500 13px/1.2 var(--body); white-space: nowrap; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.legend b { color: var(--strong); font: 600 12.5px/1 var(--mono); font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; flex: none; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.seg button { height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--fog);
              font: 500 12.5px/1 var(--body); white-space: nowrap; cursor: pointer; transition: color .15s, background .15s; }
.seg button:hover { color: var(--strong); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--strong); box-shadow: 0 1px 2px rgba(18, 18, 22, .1), 0 0 0 1px var(--line); }
td.coin a { display: inline-flex; align-items: center; gap: 8px; color: var(--strong); font-weight: 600; text-decoration: none; }
td.coin a:hover { color: var(--accent-text); }
td.coin .sym { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.logo { position: relative; display: grid; flex: none; place-items: center; width: 20px; height: 20px; overflow: hidden; border-radius: 50%;
        background: var(--surface-2); color: var(--fog); font: 600 9px/1 var(--mono); }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
td.side { font: 600 11px/1.6 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
td.side.buy { color: var(--pos); }
td.side.sell { color: var(--neg); }
.button.more { display: flex; min-height: 34px; margin: 10px auto 12px; font-size: 12.5px; }

footer.site { border-top: 1px solid var(--line); color: var(--fog); font: 500 12px/1.4 var(--mono); }
footer.site .foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px;
                    width: min(var(--w), calc(100% - 36px)); margin: 0 auto; padding: 14px 0; }
footer.site b { color: var(--strong); font-weight: 600; }
footer.site a { color: var(--fog); text-decoration: none; }
footer.site a:hover { color: var(--strong); }
footer.site .links { display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* too small to fit the terminal on one screen: stack the panels and let the page scroll */
@media (max-width: 1100px), (max-height: 680px) {
  body.terminal { height: auto; overflow: visible; }
  main.term { flex: none; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .t-chart { grid-column: 1 / -1; order: 1; height: 360px; }
  .t-books { order: 2; }
  .t-book { height: 520px; }
}
@media (max-width: 960px) {
  main.docs { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .docs-nav { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .docs-nav .k { padding-left: 8px; }
  .docs-nav a { padding: 6px 8px; font-size: 13px; }
}
@media (max-width: 760px) {
  main { padding: 28px 0 64px; }
  .sec { margin-top: 28px; }
  main.docs { padding-top: 16px; }
  .docs-body { padding: 24px 20px; }
  .wallet-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .wallet-row .who { grid-column: 1 / -1; }
  main.term { grid-template-columns: minmax(0, 1fr); width: calc(100% - 24px); }
  .t-books { grid-template-columns: minmax(0, 1fr); }
  .t-chart { height: auto; }
  .t-chart .t-head > .seg { order: -1; }
  .t-chart .chart { flex: none; height: 220px; }
  .t-stream { flex: none; aspect-ratio: 16 / 9; }
  .t-live { flex-direction: column; }
  .t-talk { width: auto; height: 300px; border-top: 1px solid var(--line); border-left: 0; }
  .t-say input { font-size: 16px; }
  .t-book { height: 460px; }
  main.home { padding-top: 16px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; }
  .hero-art { display: none; }
  .hero-stats { gap: 14px 28px; }
}
@media (max-width: 560px) {
  header.site .bar { gap: 12px; width: calc(100% - 24px); }
  .ca-pill { max-width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
