@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap");

/* Nesoi, v9 "plates": the page is the same deep green as debt's printed statues, so they sit straight on it with no box.
   Bone ink, faint misprinted streak lines, horizontal rules only. Cormorant for names and headings,
   Plex Sans to read, Plex Mono for labels, numbers and addresses. One accent: the orange of the sea line in the logo. */
:root {
  --bg: #04302a;
  --bg-2: rgba(1, 22, 19, 0.5);
  --ink: #dcdccb;
  --ink-2: rgba(220, 220, 203, 0.74);
  --ink-3: rgba(220, 220, 203, 0.5);
  --line: rgba(220, 220, 203, 0.15);
  --line-2: rgba(220, 220, 203, 0.3);
  --wash: rgba(220, 220, 203, 0.045);
  --accent: #f07c3e;
  --up: #eeeedd;
  --down: var(--accent);
  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --serif: var(--display);
  --pad: 30px;
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0; color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
/* The ground: a few misprinted dashed lines, like the ones on the plates, and a fine grain. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.86 0 0 0 0 0.86 0 0 0 0 0.8 0.22 0 0 0 -0.08'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1280' height='960'%3E%3Cg stroke='%23dcdccb' fill='none'%3E%3Cpath d='M40 96H420' stroke-width='1.2' stroke-dasharray='2 3 9 4 1 6' stroke-opacity='.075'/%3E%3Cpath d='M790 188H1220' stroke-width='1' stroke-dasharray='5 4 1 3' stroke-opacity='.065'/%3E%3Cpath d='M120 352H330' stroke-width='2' stroke-dasharray='1 2 3 2 12 5' stroke-opacity='.05'/%3E%3Cpath d='M560 438H1010' stroke-width='1' stroke-dasharray='3 5 1 2' stroke-opacity='.06'/%3E%3Cpath d='M0 611H230' stroke-width='1.4' stroke-dasharray='8 3 2 4' stroke-opacity='.06'/%3E%3Cpath d='M880 676H1280' stroke-width='1' stroke-dasharray='2 2 6 5' stroke-opacity='.07'/%3E%3Cpath d='M300 832H720' stroke-width='1.6' stroke-dasharray='1 4 4 2 10 6' stroke-opacity='.05'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(ellipse 120% 80% at 50% 0%, transparent 55%, rgba(0, 10, 8, 0.28)),
    var(--bg);
  background-size: 220px 220px, 1280px 960px, 100% 100%, auto;
}
a { color: inherit; }
img { display: block; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #1a0d05; }
.mono { font-family: var(--mono); }
.dim { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.up { color: var(--up); }
.down { color: var(--down); }
.num { font-variant-numeric: lining-nums tabular-nums; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ type */
.lbl, .kicker, .eyebrow, .crumbs { font: 500 11.5px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.lbl { color: var(--ink-3); }
.kicker, .eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 11px; color: var(--ink-2); }
.kicker > i:first-child, .eyebrow > i:first-child { width: 7px; height: 7px; background: var(--accent); }
.eyebrow span i, .kicker span i { display: inline-block; width: 4px; height: 4px; margin: 0 10px 2px 0; background: var(--ink-3); transform: rotate(45deg); vertical-align: middle; }
.eyebrow span { display: inline-flex; align-items: center; }
.h-wide { margin: 0; font: 600 clamp(38px, 3.5vw, 54px)/1 var(--display); letter-spacing: -0.01em; }
.pill { display: inline-block; padding: 3px 9px 2px; border: 1px solid var(--line-2); font: 500 10.5px/1.5 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.tag { margin-left: 7px; padding: 0 5px; border: 1px solid var(--line-2); font: 500 10px/1.6 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.ul { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: var(--accent); }
.ul:hover { color: var(--accent); }

/* ------------------------------------------------------------ the page: one column, ruled across */
.frame { width: min(1380px, calc(100% - 72px)); margin: 0 auto; }
.row { border-top: 1px solid var(--line); }
.frame > .row:first-child { border-top: 0; }
.cells { display: grid; }

/* the bar */
.nav { display: flex; align-items: center; gap: 36px; height: 78px; }
.logo { position: relative; display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.logo .mark { width: 46px; height: 46px; flex: none; margin: -6px -2px -6px -4px; }
/* Hidden while the serpent swims in (serpent.js takes this over); shows by itself if that never happens. */
.logo .mark.pending { opacity: 0; animation: mark-in 0.4s 6s forwards; }
@keyframes mark-in { to { opacity: 1; } }
.logo b { font: 600 32px/1 var(--display); letter-spacing: 0.005em; }
.nav .links { display: flex; flex-wrap: nowrap; gap: 28px; }
.nav .links a { padding: 7px 0 5px; border-bottom: 1px solid transparent; font: 500 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); text-decoration: none; white-space: nowrap; transition: color 0.2s; }
.nav .links a i { margin-right: 8px; font-style: normal; color: var(--ink-3); opacity: 0.7; }
.nav .links a:hover { color: var(--ink); }
.nav .links a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
.chain { margin-left: auto; display: flex; align-items: center; gap: 9px; font: 12px var(--mono); color: var(--ink-3); white-space: nowrap; }
.chain::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 2.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.xl { display: flex; flex: none; align-items: center; justify-content: center; width: 34px; height: 34px; margin: 0 -14px 0 -18px; color: var(--ink-3); transition: color 0.2s; }
.xl:hover { color: var(--ink); }
.xl svg { display: block; width: 15px; height: 15px; }
.wc { position: relative; }
.wbtn {
  display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 15px; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--line-2); background: transparent; font: 500 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.wbtn:hover { border-color: var(--ink); }
.wbtn .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.wbtn .addr { letter-spacing: 0.02em; text-transform: none; }
.wbtn .dis { display: none; }
.wbtn.on:hover .addr { display: none; }
.wbtn.on:hover .dis { display: inline; }
.wbtn .kind { color: var(--ink-3); letter-spacing: 0.06em; }
.wc .msg { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; width: max-content; max-width: 280px; padding: 6px 10px; background: #021d19; border: 1px solid var(--line-2); font: 12.5px/1.4 var(--sans); color: var(--accent); }

/* the foot */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; padding: 28px 0 44px; font: 500 11.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.foot .f-logo { display: flex; align-items: center; gap: 9px; margin-right: auto; font: 600 22px/1 var(--display); letter-spacing: 0; text-transform: none; color: var(--ink-2); text-decoration: none; }
.foot .f-logo .mark { width: 30px; height: 30px; margin: -4px 0; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .mono { letter-spacing: 0.02em; text-transform: none; }

/* ------------------------------------------------------------ plates: debt's statues and paintings, printed live */
.plate { position: relative; margin: 0; }
.plate .frm, .art { position: relative; }
.plate .frm { aspect-ratio: 1035 / 1280; }
.painting { position: absolute; inset: 0; background: var(--bg) no-repeat; background-size: cover; }
.painting.print { background-blend-mode: luminosity; opacity: 0.55; }
.painting canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.1s ease; }
.painting canvas.on { opacity: 1; }
.painting:has(canvas.on) { opacity: 1; }
/* registration marks at two corners */
.plate .frm::before, .plate .frm::after, .art::before, .art::after {
  content: ""; position: absolute; z-index: 2; width: 26px; height: 26px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' fill='none' stroke='%23dcdccb' stroke-opacity='.55' stroke-width='1'%3E%3Ccircle cx='13' cy='13' r='6'/%3E%3Cpath d='M13 0v26M0 13h26'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.plate .frm::before, .art::before { left: -13px; top: -13px; }
.plate .frm::after, .art::after { right: -13px; bottom: -13px; }
.plate figcaption, .art-cap { display: flex; justify-content: space-between; gap: 18px; margin-top: 16px; font: 500 11px/1.5 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.plate figcaption b { font-weight: 500; color: var(--ink-2); }

/* ------------------------------------------------------------ home: hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(36px, 5.5vw, 96px); align-items: center; padding: clamp(30px, 3.2vw, 48px) 0 clamp(34px, 3.4vw, 50px); }
.hero h1 { margin: 24px 0 0; font: 600 clamp(56px, 6.5vw, 108px)/0.88 var(--display); letter-spacing: -0.018em; }
.hero h1 em, .page-h h1 em, .about h2 em { font-style: italic; font-weight: 600; color: var(--accent); }
.lede { max-width: 540px; margin: 28px 0 0; font-size: 18px; line-height: 1.62; color: var(--ink-2); }
.hero .note { margin-top: 18px; font: 12px/1.5 var(--mono); letter-spacing: 0.04em; color: var(--ink-3); }
.hero .note a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); }
.hero .note a:hover { color: var(--ink); }
.hero .plate { justify-self: end; width: 100%; max-width: min(540px, calc((100vh - 230px) * 0.81)); }

/* the line to give an agent */
.prompt { margin-top: 32px; max-width: 610px; border: 1px solid var(--line-2); background: var(--bg-2); }
.p-head { display: flex; border-bottom: 1px solid var(--line); }
.p-tab, .p-head .copy { padding: 11px 15px 10px; border: 0; background: none; cursor: pointer; font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); transition: color 0.2s; }
.p-tab { border-right: 1px solid var(--line); }
.p-tab:hover, .p-head .copy:hover { color: var(--ink); }
.p-tab[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.p-head .copy { margin-left: auto; color: var(--ink-2); }
.p-body { display: flex; gap: 11px; padding: 15px 16px 16px; font: 14px/1.65 var(--mono); color: var(--ink); }
.p-body .c { flex: none; color: var(--accent); }
.p-body .t { overflow-wrap: anywhere; }
.how .prompt { margin-top: 18px; }

/* the tape: every trade and launch, running past */
.tape { display: flex; align-items: center; height: 50px; }
.tape-l { flex: none; display: flex; align-items: center; gap: 9px; padding-right: 20px; margin-right: 4px; font: 500 11.5px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.tape-l i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 2s ease-in-out infinite; }
.tape-v { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 70px), transparent); mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 70px), transparent); }
.tape-in { display: flex; flex: none; white-space: nowrap; will-change: transform; }
.ti { display: inline-flex; align-items: center; gap: 7px; padding-right: 30px; font: 13px var(--mono); color: var(--ink-3); }
.ti::before { content: ""; width: 4px; height: 4px; margin-right: 8px; background: var(--ink-3); transform: rotate(45deg); }
.ti b { font-weight: 500; color: var(--ink-2); }
.ti a { color: var(--ink); text-decoration: none; }
.ti a:hover { color: var(--accent); }
.ti .up { color: var(--ink); }
.ti .k { color: var(--accent); }
.ti time { color: var(--ink-3); opacity: 0.8; }
.ti.new a { color: var(--accent); }
.tape-empty { font: 13px var(--mono); color: var(--ink-3); }

/* ------------------------------------------------------------ markets */
.sec-h { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; padding: 50px 0 20px; }
.sec-h .pill { align-self: center; }
.sec-h .sub { margin-left: auto; font-size: 15px; color: var(--ink-3); }
.mk-tools { display: flex; align-items: center; gap: 0 26px; flex-wrap: wrap; }
.mk-tabs { display: flex; gap: 28px; }
.mk-tabs button {
  display: flex; align-items: baseline; gap: 8px; padding: 18px 0 15px; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer;
  font: 500 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); transition: color 0.2s;
}
.mk-tabs button:hover { color: var(--ink); }
.mk-tabs button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.mk-tabs .n { font: 11px var(--mono); letter-spacing: 0; color: var(--ink-3); }
.mk-search { flex: 1; max-width: 460px; margin-left: auto; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border: 1px solid var(--line); cursor: text; transition: border-color 0.2s; }
.mk-search svg { width: 16px; height: 16px; flex: none; color: var(--ink-3); }
.mk-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; outline: none; font: 15px var(--sans); }
.mk-search input::placeholder { color: var(--ink-3); }
.mk-search input::-webkit-search-cancel-button { display: none; }
.mk-search:focus-within { border-color: var(--ink-3); }
.mk-search kbd { font: 11px var(--mono); color: var(--ink-3); border: 1px solid var(--line); padding: 0 5px; }
.mk-sort { position: relative; display: flex; align-items: center; gap: 10px; }
.mk-sort select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; padding: 10px 22px 10px 0; cursor: pointer; outline: none; font: 15px var(--sans); color: var(--ink); }
.mk-sort select option { background: #06261f; color: var(--ink); }
.mk-sort svg { position: absolute; right: 0; width: 14px; height: 14px; pointer-events: none; color: var(--ink-2); }

.mk-wrap { container: mk / inline-size; }
.mk { width: 100%; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; }
.mk th { padding: 15px 14px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.mk td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; font: 14.5px var(--mono); color: var(--ink-2); }
.mk th:first-child, .mk td:first-child { padding-left: 0; }
.mk th:last-child, .mk td:last-child { padding-right: 0; }
.mk tbody tr:last-child td { border-bottom: 0; }
.mk th.r, .mk td.r { text-align: right; }
.mk tbody tr[data-href] { cursor: pointer; transition: background 0.15s; }
.mk tbody tr[data-href]:hover { background: var(--wash); }
.tok { display: flex; align-items: center; gap: 16px; min-width: 0; }
.tok-img { width: 48px; height: 48px; flex: none; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line-2); background: rgba(220, 220, 203, 0.06); }
.tok-img img { width: 100%; height: 100%; object-fit: cover; }
.tok-img b { font: 500 11px var(--mono); color: var(--ink-2); }
.tok-t { min-width: 0; }
.tok-t a { font: 600 23px/1.05 var(--display); color: var(--ink); text-decoration: none; }
.tok-t a:hover { color: var(--accent); }
.tok-sym { margin-top: 3px; font: 11.5px var(--mono); letter-spacing: 0.04em; color: var(--ink-3); }
.who { display: inline-flex; align-items: center; gap: 9px; font: 14.5px var(--sans); color: var(--ink-2); text-decoration: none; }
.who:hover { color: var(--ink); }
.who .face { width: 22px; height: 22px; flex: none; overflow: hidden; border: 1px solid var(--line-2); }
.who .face img, .who .face svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk .mc { font-size: 15px; color: var(--ink); }
.mk .chg { margin-top: 2px; font-size: 12px; }
.mk .fee b { font-weight: 500; color: var(--ink); }
.mk .fee span { display: block; margin-top: 1px; font: 13px var(--sans); color: var(--ink-3); }
.mk td.c-when { font-size: 13px; color: var(--ink-3); }
.mk tr.flash td { animation: tick 1.1s ease-out; }
@keyframes tick { 0% { background: rgba(220, 220, 203, 0.08); } 100% { background: transparent; } }
.mk tr.fresh td { animation: surface 1.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.mk tr.fresh .tok-img { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes surface { 0% { background: rgba(240, 124, 62, 0.14); } 100% { background: transparent; } }
@keyframes rise { 0% { transform: translateY(10px) scale(0.7); opacity: 0; } 100% { transform: none; opacity: 1; } }
.mk:has(.mk-empty) thead { display: none; }
.mk-empty td { padding: 70px 0 74px; text-align: center; white-space: normal; cursor: default; font: 15px var(--sans); color: var(--ink-3); }
.mk-empty b { display: block; margin-bottom: 8px; font: 600 30px var(--display); color: var(--ink); }
.mk.one-agent .c-agent { display: none; }
.mk-more td { padding: 0; }
.mk-more button { width: 100%; padding: 17px 0 16px; border: 0; background: none; cursor: pointer; font: 500 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); transition: color 0.2s, background 0.2s; }
.mk-more button:hover { color: var(--ink); background: var(--wash); }
.mk-more button::after { content: "  ↓"; letter-spacing: 0; color: var(--accent); }

/* numbers under the table */
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 30px 0 34px; }
.nums .v { margin-top: 10px; font: 600 46px/1 var(--display); font-variant-numeric: lining-nums tabular-nums; }
.nums .v small { margin-left: 9px; font: 500 11.5px var(--mono); letter-spacing: 0.08em; color: var(--ink-3); }

/* how it works on home: the Victory plate beside six plain statements */
.about { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 104px); align-items: start; padding: 64px 0 70px; }
.about .plate { position: sticky; top: 28px; }
.about h2 { margin: 18px 0 0; font: 600 clamp(44px, 4.4vw, 72px)/0.92 var(--display); letter-spacing: -0.015em; }
.rules { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.rules li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; padding: 20px 0 21px; border-bottom: 1px solid var(--line); }
.rules .rn { font: italic 600 26px/1.05 var(--display); color: var(--ink-3); }
.rules h3 { margin: 0; font: 600 26px/1.1 var(--display); color: var(--ink); }
.rules p { margin: 7px 0 0; max-width: 600px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.more-l { display: inline-block; margin-top: 26px; padding-bottom: 4px; border-bottom: 1px solid var(--accent); font: 500 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.more-l:hover { color: var(--accent); }
.more-l::after { content: "  →"; letter-spacing: 0; }

/* ------------------------------------------------------------ page headers (agents, how it works) */
.page-h { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding: 50px 0 52px; }
.page-h h1 { margin: 20px 0 0; font: 600 clamp(50px, 5.4vw, 92px)/0.9 var(--display); letter-spacing: -0.016em; }
.page-h p { margin: 22px 0 0; max-width: 560px; font-size: 17px; line-height: 1.62; color: var(--ink-2); }
.page-h .art { aspect-ratio: 16 / 10; }
.crumbs { color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ------------------------------------------------------------ token page */
.tk-top { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 30px; align-items: center; padding: 34px 0 36px; }
.tk-top .crumbs { grid-column: 1 / -1; }
.tk-img { width: 128px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line-2); background: rgba(220, 220, 203, 0.06); }
.tk-img img { width: 100%; height: 100%; object-fit: cover; }
.tk-img span { font: 500 18px var(--mono); color: var(--ink-2); }
.tk-top h1 { display: inline; margin: 0; font: 600 clamp(46px, 4.6vw, 76px)/0.95 var(--display); letter-spacing: -0.012em; }
.tk-top .sym { display: inline-block; margin-left: 14px; font: 13px var(--mono); letter-spacing: 0.04em; color: var(--ink-3); vertical-align: 0.7em; }
.tk-top .desc { margin: 12px 0 0; max-width: 720px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.tk-top .desc:empty { display: none; }
.tk-meta { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.byline a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--accent); }
.byline br { display: none; }
.byline br + .faint::before { content: " · "; }
.links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.links a { color: var(--ink-2); text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.links a:hover { color: var(--ink); }

.tk { display: grid; grid-template-columns: minmax(0, 1fr) 400px; }
.tk-main { min-width: 0; padding-right: var(--pad); }
.tk-side { padding-left: var(--pad); border-left: 1px solid var(--line); }
.tk-main > * + *, .tk-side > * + * { border-top: 1px solid var(--line); }
.cells-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cell { min-width: 0; padding: 22px 0 20px; }
.cell .k { font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.cell .v { margin-top: 9px; font: 500 21px/1.1 var(--mono); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.cell .v small { margin-left: 6px; font: 11px var(--mono); letter-spacing: 0.06em; color: var(--ink-3); }
.cell .s { margin-top: 6px; font-size: 13.5px; line-height: 1.4; color: var(--ink-3); }
.chart-wrap { padding: 22px 0 16px; }
.chart { position: relative; height: 320px; }
.chart svg { width: 100%; height: 100%; display: block; }
.chart .ch-area { fill: rgba(220, 220, 203, 0.06); }
.chart .ch-start { stroke: var(--ink-3); stroke-dasharray: 3 5; }
.chart .ch-line { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: miter; }
.chart .ch-dot { fill: var(--accent); }
.chart .ch-tick { font: 11.5px var(--mono); fill: var(--ink-3); }
.chart .ch-axis { stroke: var(--line); }
.chart .ch-hair { stroke: var(--ink); stroke-opacity: 0.3; }
.chart .tip { position: absolute; display: none; pointer-events: none; padding: 2px 8px; background: var(--ink); color: var(--bg); font: 12px var(--mono); white-space: nowrap; transform: translate(-50%, -135%); }
.chart-note { margin-top: 8px; font-size: 13.5px; color: var(--ink-3); }
.trades { padding: 24px 0 10px; }
.head { display: flex; align-items: baseline; gap: 14px; margin: 0 0 10px; }
.head h2 { margin: 0; font: 600 34px/1 var(--display); }
.head .note { font-size: 14px; color: var(--ink-3); }

.trade .tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); }
.trade .tabs button { padding: 20px 0 14px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; cursor: pointer; font: 500 12px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.trade .tabs button:hover { color: var(--ink); }
.trade .tabs button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.trade .body { padding: 20px 0 22px; }
.trade label { display: flex; justify-content: space-between; font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.trade label #bal { letter-spacing: 0.02em; text-transform: none; font: 13px var(--sans); }
.amount { display: flex; margin: 9px 0 10px; border: 1px solid var(--line-2); background: var(--bg-2); }
.amount:focus-within { border-color: var(--ink-2); }
.amount input { flex: 1; min-width: 0; padding: 12px 13px; border: 0; background: transparent; outline: none; font: 19px var(--mono); }
.amount span { align-self: center; padding: 0 13px; font: 12px var(--mono); color: var(--ink-3); }
.quick { display: flex; gap: 6px; margin-bottom: 16px; }
.quick button { padding: 3px 9px; border: 1px solid var(--line); background: transparent; cursor: pointer; font: 12px var(--mono); color: var(--ink-2); }
.quick button:hover { border-color: var(--line-2); color: var(--ink); }
.quote { display: grid; gap: 3px; margin-bottom: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.quote div { display: flex; justify-content: space-between; gap: 10px; }
.quote b { font: 400 13.5px var(--mono); color: var(--ink); }
.btn-p {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; border: 1px solid var(--ink); background: var(--ink); color: #062a24; cursor: pointer;
  font: 500 13px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-p:hover { background: var(--accent); border-color: var(--accent); color: #1a0d05; }
.btn-p:disabled { opacity: 0.38; cursor: default; background: var(--ink); border-color: var(--ink); color: #062a24; }
.trade .msg { min-height: 20px; margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
.trade .msg.err { color: var(--down); }
.trade-foot { padding: 14px 0; font-size: 14px; color: var(--ink-3); }
.trade-foot:empty { display: none; }
.earn { padding: 8px 0; font-size: 14.5px; }
.earn div { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.earn div + div { border-top: 1px solid var(--line); }
.earn span { flex: 1; color: var(--ink-2); }
.earn b { font: 400 13.5px var(--mono); }
.side-sec { padding: 20px 0 22px; }
.kv-title { margin: 0 0 10px; font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.kv { font-size: 14.5px; }
.kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv > div > span:first-child { color: var(--ink-3); }
.kv > div > span:last-child { text-align: right; font-family: var(--mono); font-size: 13.5px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kv small { margin-left: 4px; font: 11px var(--mono); color: var(--ink-3); }
.kv a { color: var(--ink); }
.kv b { font-weight: 500; color: var(--ink); }
.kv .sub > span:first-child { padding-left: 14px; color: var(--ink-2); }
.kv-note { margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
.kv-note b { font-weight: 500; color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; cursor: pointer;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink); text-decoration: none;
  font: 500 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
}
.btn:hover { border-color: var(--ink); }
.btn:disabled { opacity: 0.4; cursor: default; border-color: var(--line-2); }
.btn.small { height: 30px; padding: 0 11px; font-size: 11px; }
.btn.solid { background: var(--ink); border-color: var(--ink); color: #062a24; }
.btn.solid:hover { background: var(--accent); border-color: var(--accent); color: #1a0d05; }

.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th { padding: 10px 10px 9px 0; border-bottom: 1px solid var(--line-2); text-align: left; font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.table td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); font: 13px var(--mono); color: var(--ink-2); }
.table tr:last-child td { border-bottom: 0; }
.table td.r, .table th.r { text-align: right; }
.table td.up { color: var(--up); }
.table td.down { color: var(--down); }
.table a { color: var(--ink); text-decoration: none; }
.table a:hover { color: var(--accent); }

/* ------------------------------------------------------------ agents */
.agent-list .agent-row { display: grid; grid-template-columns: 54px minmax(0, 1.1fr) minmax(0, 2fr) 90px 140px; gap: 22px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); text-decoration: none; transition: background 0.15s; }
.agent-list .agent-row:first-child { border-top: 0; }
.agent-row:hover { background: var(--wash); }
.agent-row .avatar { width: 54px; height: 54px; }
.agent-row .nm { font: 600 26px/1.05 var(--display); color: var(--ink); }
.agent-row .md { margin-top: 3px; font: 12px var(--mono); color: var(--ink-3); }
.agent-row .ab { font-size: 15px; line-height: 1.5; color: var(--ink-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.agent-row .n { text-align: right; font: 14.5px var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.agent-cols { padding-top: 16px !important; padding-bottom: 12px !important; }
.agent-cols:hover { background: none; }
.agent-row.agent-cols > span { font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.avatar { width: 120px; height: 120px; overflow: hidden; border: 1px solid var(--line-2); background: rgba(220, 220, 203, 0.06); }
.avatar img, .avatar svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.agent-head { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 28px; align-items: start; padding: 34px var(--pad) 36px 0; }
.agent-head .crumbs { grid-column: 1 / -1; }
.agent-head h1 { margin: 0; font: 600 clamp(46px, 4.6vw, 76px)/0.95 var(--display); letter-spacing: -0.012em; }
.agent-head .who-line { margin-top: 10px; font: 12.5px var(--mono); color: var(--ink-2); }
.agent-head .about { margin: 12px 0 0; max-width: 640px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.agent-head .links { margin-top: 10px; font-size: 14.5px; }
.agent-split { display: grid; grid-template-columns: minmax(0, 1fr) 400px; }
.agent-split > aside { padding-left: var(--pad); border-left: 1px solid var(--line); }
.row-empty { padding: 22px 0; font-size: 15px; color: var(--ink-3); }

/* ------------------------------------------------------------ how it works */
.how { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 2.15fr); gap: var(--pad); }
.how > .k { padding: 34px 0; }
.how > .k .n { display: block; margin-bottom: 10px; font: 500 12px var(--mono); letter-spacing: 0.08em; color: var(--accent); }
.how > .k h2 { margin: 0; font: 600 36px/1 var(--display); letter-spacing: -0.008em; }
.how > .v { padding: 36px 0 38px; }
.how > .v > p { margin: 0 0 12px; max-width: 760px; font-size: 17px; line-height: 1.62; color: var(--ink-2); }
.how > .v > p:last-child { margin-bottom: 0; }
.how a { color: var(--ink); }
.how[id] { scroll-margin-top: 20px; }
.how > .k .plate { margin-top: 36px; max-width: 300px; }
.how > .k .plate .art { aspect-ratio: 4 / 5; }
.steps-list { border-top: 1px solid var(--line); counter-reset: s; }
.step { display: grid; grid-template-columns: 44px 130px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.55; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); padding-top: 3px; font: 12px var(--mono); color: var(--ink-3); }
.step b { font: 600 22px/1.15 var(--display); }
.step span { color: var(--ink-2); }
.gatebox { position: relative; margin-top: 18px; max-width: 880px; border: 1px solid var(--line-2); background: var(--bg-2); }
.gatebox::before, .calc::before { content: ""; position: absolute; left: -13px; top: -13px; width: 26px; height: 26px; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' fill='none' stroke='%23dcdccb' stroke-opacity='.55' stroke-width='1'%3E%3Ccircle cx='13' cy='13' r='6'/%3E%3Cpath d='M13 0v26M0 13h26'/%3E%3C/svg%3E") center / 100% no-repeat; }
.gatebox .top { display: flex; align-items: center; gap: 18px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.gatebox .clock { min-width: 96px; font: 500 30px var(--mono); letter-spacing: -0.02em; }
.gatebox .clock.over { color: var(--down); }
.gatebox .top .dim { font-size: 14.5px; }
.gatebox .top .btn { margin-left: auto; }
.tasks { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.tasks li { display: grid; grid-template-columns: 28px minmax(0, 1fr) 230px; gap: 10px; align-items: center; padding: 9px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.tasks li:last-child { border-bottom: 0; }
.tasks li::before { counter-increment: t; content: counter(t); font: 11.5px var(--mono); color: var(--ink-3); }
.tasks .q { font: 13px var(--mono); color: var(--ink-2); overflow-wrap: anywhere; }
.tasks .q b { margin-right: 8px; font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.tasks input { width: 100%; padding: 6px 8px; border: 1px solid var(--line-2); background: transparent; outline: none; font: 13px var(--mono); }
.tasks input:focus { border-color: var(--ink-2); }
.tasks .ans { font: 12px/1.45 var(--mono); word-break: break-all; }
.verdict { display: none; padding: 13px 16px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.verdict b { color: var(--ink); font-weight: 600; }
.gate-idle { padding: 30px 16px; font-size: 14.5px; color: var(--ink-3); }
.tasks li.gate-idle::before { content: none; }
.calls { border-top: 1px solid var(--line); }
.calls div { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.55; }
.calls code { font: 13px var(--mono); color: var(--ink); padding-top: 2px; }
.calls span { color: var(--ink-2); }
.calls span b { font-weight: 500; color: var(--ink); }
.cant { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; font-size: 15.5px; }
.cant h3 { margin: 0 0 10px; font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.cant ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.cant li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }

/* ------------------------------------------------------------ docs: contents on the left, the reference on the right */
.page-h.docs-h { grid-template-columns: minmax(0, 1fr) minmax(0, 450px); align-items: end; }
.glance { padding-bottom: 4px; }
.cp { padding: 0; border: 0; background: none; cursor: copy; font: inherit; color: var(--ink); text-align: right; overflow-wrap: anywhere; text-decoration: underline dotted var(--line-2); text-underline-offset: 4px; transition: color 0.2s; }
.cp:hover, .cp.done { color: var(--accent); }
.kv a { text-decoration: none; }
.kv a:hover { color: var(--accent); }

.docs { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); }
.toc { position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; padding: 40px 0 30px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: c; border-top: 1px solid var(--line); }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: flex; gap: 12px; padding: 9px 0 8px; font: 500 11.5px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); text-decoration: none; transition: color 0.2s; }
.toc a::before { counter-increment: c; content: counter(c, decimal-leading-zero); flex: none; width: 20px; opacity: 0.7; }
.toc a:hover, .toc a.on { color: var(--ink); }
.toc a.on::before { color: var(--accent); opacity: 1; }
.doc { min-width: 0; }
.doc > section { padding: 40px 0 46px; border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.doc > section:first-child { border-top: 0; }
.doc > section > :last-child { margin-bottom: 0; }
.doc .n { display: block; font: 500 12px var(--mono); letter-spacing: 0.08em; color: var(--accent); }
.doc h2 { margin: 10px 0 20px; font: 600 clamp(36px, 3vw, 46px)/1 var(--display); letter-spacing: -0.01em; }
.doc h3 { margin: 30px 0 12px; font: 600 25px/1.1 var(--display); }
.doc p { max-width: 720px; margin: 0 0 14px; font-size: 16.5px; line-height: 1.66; color: var(--ink-2); }
.doc p b { font-weight: 500; color: var(--ink); }
.doc p.aside { margin-top: 18px; font: 12.5px/1.6 var(--mono); color: var(--ink-3); }
.doc > section > ul { max-width: 780px; margin: 6px 0 18px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.doc > section > ul li { position: relative; padding: 10px 0 10px 24px; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.doc > section > ul li::before { content: ""; position: absolute; left: 3px; top: 19px; width: 5px; height: 5px; background: var(--ink-3); transform: rotate(45deg); }
.doc code, .dt code { font: 13px var(--mono); color: var(--ink); }
.doc p code, .doc li code, .doc .step span code, .dt td + td code, .calls span code { padding: 1px 5px; border: 1px solid var(--line); background: var(--wash); font-size: 12.5px; white-space: nowrap; }
.doc .prompt { margin: 4px 0 8px; }
.doc .steps-list, .doc .cant { max-width: 900px; }
.doc .more-l { margin-top: 12px; }
.doc .cant h3 { margin: 0 0 10px; font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.doc-kv { max-width: 720px; margin: 4px 0 8px; }
.doc-kv > div { justify-content: flex-start; align-items: flex-start; }
.doc-kv > div > span:first-child { flex: none; width: 130px; }
.doc-kv > div > span:last-child, .doc-kv .cp { text-align: left; }
.code { position: relative; max-width: 880px; margin: 8px 0 20px; border: 1px solid var(--line-2); background: var(--bg-2); }
.code pre { margin: 0; padding: 18px 20px; overflow-x: auto; font: 13.5px/1.75 var(--mono); color: var(--ink); }
.code .copy { position: absolute; top: 0; right: 0; padding: 9px 13px 8px; border: 0; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #03271f; cursor: pointer; font: 500 10.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); transition: color 0.2s; }
.code .copy:hover { color: var(--ink); }
.dt { width: 100%; max-width: 900px; margin: 8px 0 20px; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; }
.dt th { padding: 0 18px 10px 0; border-bottom: 1px solid var(--line-2); text-align: left; white-space: nowrap; font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.dt td { padding: 11px 18px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.dt td:first-child { color: var(--ink); }
.dt td:first-child code { white-space: nowrap; }
.dt td:last-child, .dt th:last-child { padding-right: 0; }
.dt .r { text-align: right; }
.dt.api td:first-child { font: 500 11px/2.1 var(--mono); letter-spacing: 0.08em; color: var(--ink-3); }

/* ------------------------------------------------------------ fees */
.page-h.fees-h { grid-template-columns: minmax(0, 1fr) minmax(0, 470px); align-items: start; }
.fees-h p.fine { margin-top: 16px; font: 12.5px/1.5 var(--mono); color: var(--ink-3); }
.paid { max-width: 600px; margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); }
.paid .kv-title { margin: 0; }
.paid .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; padding: 20px 0 0; }
.paid .nums .v { font-size: 42px; }
.paid-note { margin-top: 18px; font: 12.5px/1.5 var(--mono); color: var(--ink-3); }
.calc { position: relative; border: 1px solid var(--line-2); background: var(--bg-2); }
.calc .c-title { margin-left: auto; padding: 11px 15px 10px; font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.c-body { padding: 18px 18px 20px; }
.c-l { display: block; margin: 16px 0 8px; font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.c-body > .c-l:first-child { margin-top: 0; }
.calc .amount { margin: 0; }
.seg { display: flex; border: 1px solid var(--line-2); }
.seg button { flex: 1; min-width: 0; padding: 9px 4px 8px; border: 0; border-left: 1px solid var(--line); background: none; cursor: pointer; font: 500 12px var(--mono); letter-spacing: 0.04em; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s, background 0.2s; }
.seg button:first-child { border-left: 0; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { color: var(--ink); background: var(--wash); box-shadow: inset 0 -2px 0 var(--accent); }
/* the fee, split: hatched = the protocol, bone = the agent, orange = holders */
.split { display: flex; gap: 3px; height: 16px; margin: 24px 0 10px; }
.split i, .mini i { display: block; flex: 1 1 0; min-width: 3px; transition: flex-grow 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 500 10.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; }
.split .pr, .mini .pr, .legend .pr { background: repeating-linear-gradient(135deg, rgba(220, 220, 203, 0.55) 0 1px, transparent 1px 4px); box-shadow: inset 0 0 0 1px rgba(220, 220, 203, 0.3); }
.split .ag, .mini .ag, .legend .ag { background: var(--ink); }
.split .ho, .mini .ho, .legend .ho { background: var(--accent); }
.c-rows { margin-top: 18px; border-top: 1px solid var(--line); }
.c-rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; font-size: 14.5px; color: var(--ink-2); }
.c-rows .tot { padding-top: 12px; }
.c-rows b { font: 400 14px var(--mono); color: var(--ink); white-space: nowrap; }
.c-rows small { margin-left: 8px; font: 11px var(--mono); color: var(--ink-3); }
.c-rows .sub span { padding-left: 16px; color: var(--ink-3); }
.c-rows .sub b { color: var(--ink-2); }
.c-rows .end { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink); }
.c-rows .end b { font-size: 16px; }
.levels td { vertical-align: middle; font: 14px var(--mono); }
.levels .lv { font: 600 28px/1 var(--display); color: var(--ink); }
.mini { display: flex; gap: 2px; width: 170px; height: 10px; }
.snipe-pick { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.snipe-pick .seg { width: 300px; }
.snipe { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 900px; margin-top: 18px; border-top: 1px solid var(--line); }
.snipe div { min-width: 0; padding: 16px 14px 0 0; }
.snipe b { display: block; font: 600 34px/1 var(--display); color: var(--ink); }
.snipe span { display: block; margin-top: 7px; font: 500 10.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.snipe i { display: block; height: 3px; margin-top: 14px; background: var(--accent); }
.how .more-l { margin-top: 20px; }

/* ------------------------------------------------------------ launch a token: the brief for an agent */
.page-h.lt-h { grid-template-columns: minmax(0, 1fr) minmax(0, 470px); align-items: end; padding-bottom: 46px; }
.page-h.lt-h p { margin: 0; font-size: 16.5px; }
.lt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: clamp(32px, 5vw, 84px); padding: 40px 0 64px; }
.lt-form { min-width: 0; max-width: 680px; }
.chooser { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); }
.chooser button { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; padding: 17px 18px 16px; border: 0; background: none; cursor: pointer; text-align: left; color: var(--ink-3); transition: background 0.2s, color 0.2s; }
.chooser button + button { border-left: 1px solid var(--line-2); }
.chooser button i { grid-row: span 2; padding-top: 7px; font: 500 11.5px var(--mono); font-style: normal; letter-spacing: 0.06em; color: var(--ink-3); }
.chooser button b { font: 600 29px/1.05 var(--display); color: var(--ink-2); transition: color 0.2s; }
.chooser button span { font-size: 14px; line-height: 1.45; }
.chooser button:hover b { color: var(--ink); }
.chooser button[aria-pressed="true"] { background: var(--wash); box-shadow: inset 0 -2px 0 var(--accent); color: var(--ink-2); }
.chooser button[aria-pressed="true"] b { color: var(--ink); }
.chooser button[aria-pressed="true"] i { color: var(--accent); }
.grp { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.grp .kv-title { margin: 0 0 4px; color: var(--ink-2); }
.grp-p { margin: 10px 0 0; font-size: 15.5px; color: var(--ink-2); }
.lt-form .c-l .opt { margin-left: 6px; letter-spacing: 0.06em; text-transform: none; color: var(--ink-3); opacity: 0.75; }
.inp { display: block; width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); background: var(--bg-2); outline: none; font: 15px/1.45 var(--sans); color: var(--ink); transition: border-color 0.2s; }
.inp::placeholder, .amount input::placeholder { color: var(--ink-3); opacity: 0.7; }
.inp:focus { border-color: var(--ink-2); }
textarea.inp { resize: vertical; min-height: 48px; }
.inp-pre { display: flex; border: 1px solid var(--line-2); background: var(--bg-2); }
.inp-pre:focus-within { border-color: var(--ink-2); }
.inp-pre span { align-self: center; padding: 0 0 0 13px; font: 15px var(--mono); color: var(--ink-3); }
.inp-pre .inp { border: 0; background: none; padding-left: 6px; font-family: var(--mono); letter-spacing: 0.04em; }
.inp-pre.to { margin-top: 8px; }
.ident { display: grid; grid-template-columns: 142px minmax(0, 1fr); gap: 20px; margin-top: 16px; }
.ident .c-l:first-child { margin-top: 0; }
.drop { position: relative; display: grid; place-items: center; width: 142px; aspect-ratio: 1; overflow: hidden; cursor: pointer; border: 1px dashed var(--line-2); background: var(--bg-2); transition: border-color 0.2s; }
.drop:hover, .drop.over { border-color: var(--ink-2); }
.drop.over { border-style: solid; border-color: var(--accent); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop .ph { display: grid; justify-items: center; gap: 4px; padding: 10px; text-align: center; font: 500 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.drop .ph b { font: 400 34px/0.8 var(--display); color: var(--ink-3); }
.drop .ph small { margin-top: 4px; font-size: 10px; letter-spacing: 0.04em; text-transform: none; color: var(--ink-3); }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop.has { border-style: solid; }
.drop.has::after { content: "Change"; position: absolute; left: 0; right: 0; bottom: 0; padding: 5px 0 4px; background: rgba(2, 24, 21, 0.82); text-align: center; font: 500 10px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity 0.2s; }
.drop.has:hover::after { opacity: 1; }
.img-note { margin-top: 10px; font-size: 13.5px; color: var(--accent); }
.lk { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lk .inp { padding: 9px 12px; font-size: 14px; }
/* A link: its name, a fixed "https://", then the rest of it. */
.lki { display: flex; align-items: center; min-width: 0; border: 1px solid var(--line-2); background: var(--bg-2); cursor: text; }
.lki:focus-within { border-color: var(--ink-2); }
.lki .k { flex: none; width: 94px; padding-left: 12px; font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.lki .pre { flex: none; font: 14px var(--mono); color: var(--ink-3); }
.lki input { flex: 1; min-width: 0; padding: 9px 12px 9px 1px; border: 0; background: none; outline: 0; font: 14px var(--mono); color: var(--ink); }
.lki input::placeholder { color: var(--ink-3); opacity: 0.6; }
@media (max-width: 640px) {
  .lk { grid-template-columns: 1fr; }
  .lki .k { width: 84px; }
}
.ap-seg button .s { display: none; }
.ap-seg button.ap { flex: 1.45; font-style: italic; }
.ap-seg button.ap[aria-pressed="true"] { box-shadow: inset 0 -2px 0 var(--ink-3); }
.lt-form .amount { margin: 0; }
.lt-form .amount input { font-size: 16px; padding: 10px 13px; }
.lt-form .fine { margin: 18px 0 0; font: 12.5px/1.5 var(--mono); color: var(--ink-3); }
.lt-out { position: sticky; top: 22px; align-self: start; min-width: 0; }
.lt-pv { position: relative; padding: 18px 20px 6px; border: 1px solid var(--line-2); background: var(--bg-2); }
.lt-pv::before { content: ""; position: absolute; left: -13px; top: -13px; width: 26px; height: 26px; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' fill='none' stroke='%23dcdccb' stroke-opacity='.55' stroke-width='1'%3E%3Ccircle cx='13' cy='13' r='6'/%3E%3Cpath d='M13 0v26M0 13h26'/%3E%3C/svg%3E") center / 100% no-repeat; }
.pv-k { font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.pv-top { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px 0 16px; }
.pv-top .tk-img { width: 84px; }
.pv-top .tk-img b { font: 600 30px var(--display); color: var(--ink-3); }
.pv-name { font: 600 38px/0.98 var(--display); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.pv-name.none { font-style: italic; font-weight: 500; font-size: 30px; color: var(--ink-3); }
.pv-sym { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font: 13px var(--mono); letter-spacing: 0.04em; color: var(--ink-2); }
.pv-sym span { color: var(--ink-3); letter-spacing: 0.02em; }
.pv-d { margin: 9px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lt-pv .kv { display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; border-top: 1px solid var(--line); font-size: 14px; }
.lt-pv .kv > div { padding: 7px 0; }
.lt-pv .kv small { color: var(--ink-3); }
.ap-v { font: italic 400 13px var(--sans); color: var(--ink-3); }
.brief { max-width: none; margin-top: 18px; }
.brief .p-title { padding: 11px 15px 10px; font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.brief .p-body { font-size: 13.5px; line-height: 1.7; }
.brief .t { min-width: 0; }
.brief .ln { display: block; overflow-wrap: anywhere; }
.brief .ln.gap { height: 0.85em; }
.brief .ln.new { animation: ln-new 1.6s ease-out; }
@keyframes ln-new { from { color: var(--accent); background: rgba(240, 124, 62, 0.13); } 40% { color: var(--accent); } }
.then { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); counter-reset: th; }
.then li { display: grid; grid-template-columns: 28px 104px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; }
.then li::before { counter-increment: th; content: counter(th, decimal-leading-zero); padding-top: 2px; font: 11.5px var(--mono); color: var(--accent); }
.then b { font: 600 20px/1.15 var(--display); }
.then span { color: var(--ink-2); }
.lt-out > .fine { margin: 14px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-3); }

/* ------------------------------------------------------------ narrower screens */
@container mk (max-width: 860px) { .mk .c-vol { display: none; } }
@container mk (max-width: 700px) { .mk .c-agent { display: none; } }
@container mk (max-width: 540px) {
  .mk .c-when, .mk .c-fee { display: none; }
  .tok-img { width: 42px; height: 42px; }
  .tok-t a { font-size: 21px; }
}
@media (max-width: 1240px) {
  .tk, .agent-split { grid-template-columns: minmax(0, 1fr) 360px; }
  .nav .links { gap: 22px; }
  .nav { gap: 28px; }
  .chain { display: none; }
  .nav .links { margin-left: auto; }
  .xl { margin-left: -8px; }
}
@media (max-width: 1040px) {
  .tk, .agent-split { grid-template-columns: minmax(0, 1fr); }
  .tk-main { padding-right: 0; }
  .tk-side, .agent-split > aside { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .agent-head { padding-right: 0; }
  .tk-side { order: -1; }
  .how { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .how > .k { padding-bottom: 0; }
  .how > .v { padding-top: 18px; }
  .how > .k .plate { margin-top: 26px; max-width: 580px; }
  .how > .k .plate .art { aspect-ratio: 16 / 10; }
  .nav .links a i { display: none; }
  .docs { grid-template-columns: 190px minmax(0, 1fr); }
  .lt { grid-template-columns: minmax(0, 1fr); }
  .lt-out { position: static; max-width: 680px; }
}
@media (max-width: 980px) {
  .hero, .page-h, .about { grid-template-columns: minmax(0, 1fr); }
  .hero .plate { justify-self: center; max-width: 520px; }
  .about .plate { position: static; max-width: 440px; }
  .about .plate { order: 2; }
  .page-h .art { aspect-ratio: 16 / 9; }
  .page-h.docs-h, .page-h.fees-h, .page-h.lt-h { grid-template-columns: minmax(0, 1fr); }
  .page-h.lt-h { gap: 22px; }
  .calc, .glance { max-width: 580px; }
  .docs { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { position: static; max-height: none; padding: 28px 0 10px; }
  .toc ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; border-top: 0; }
}
@media (max-width: 900px) {
  :root { --pad: 18px; }
  .frame { width: calc(100% - 40px); }
  .sec-h .sub { margin-left: 0; flex-basis: 100%; }
  .mk-tabs { flex-basis: 100%; }
  .mk-search { margin-left: 0; max-width: none; margin-bottom: 12px; }
  .mk-sort { margin-bottom: 12px; }
  .mk-search kbd { display: none; }
  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
  .nums .v { font-size: 38px; }
  .cells-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .cells-4 .cell:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .cell .v { font-size: 19px; }
  .agent-list .agent-row { grid-template-columns: 46px minmax(0, 1fr) 60px; gap: 14px; }
  .agent-row .ab, .agent-row .n:last-child { display: none; }
  .agent-row .avatar { width: 46px; height: 46px; }
  .step { grid-template-columns: 34px minmax(0, 1fr); }
  .step span { grid-column: 2; }
  .calls div, .cant { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .cant > div + div { margin-top: 20px; }
  .foot .f-logo { flex-basis: 100%; margin-bottom: 6px; }
  .mini { width: 110px; }
}
/* narrow bar: name and wallet on top, the pages in a row below */
@media (max-width: 820px) {
  .nav { flex-wrap: wrap; height: auto; gap: 0; padding-top: 14px; }
  .xl { margin: 0 4px 0 auto; }
  .nav .links { order: 3; flex-basis: 100%; margin: 12px 0 0; padding: 2px 0 0; gap: 30px; border-top: 1px solid var(--line); }
  .nav .links a { padding: 12px 0 10px; }
}
@media (max-width: 640px) {
  .frame { width: calc(100% - 32px); }
  .logo b { font-size: 28px; }
  .logo .mark { width: 40px; height: 40px; }
  .wbtn { height: 34px; padding: 0 11px; font-size: 11px; }
  .wbtn .kind { display: none; }
  .wbtn.on:hover .addr { display: inline; }
  .wbtn.on:hover .dis { display: none; }
  .nav .links { justify-content: space-between; gap: 0; }
  .nav .links a { font-size: 11px; letter-spacing: 0.06em; }
  .hero h1 { font-size: clamp(48px, 14vw, 64px); }
  .lede { font-size: 16.5px; }
  .p-tab, .p-head .copy { padding: 10px 11px 9px; font-size: 10.5px; letter-spacing: 0.06em; }
  .p-body { padding: 13px 13px 14px; font-size: 13px; }
  .tape { height: 46px; }
  .tape-l { padding-right: 12px; }
  .ti { font-size: 12px; }
  .ti time { display: none; }
  .sec-h { padding-top: 38px; }
  .mk-tabs { gap: 20px; }
  .mk-tabs .n { display: none; }
  .mk-tabs button { font-size: 11.5px; white-space: nowrap; }
  .mk-sort .lbl { display: none; }
  .about { padding: 44px 0 50px; }
  .rules li { grid-template-columns: 44px minmax(0, 1fr); }
  .rules h3 { font-size: 24px; }
  .page-h { padding: 34px 0 40px; }
  .tk-top, .agent-head { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: start; }
  .tk-top h1, .agent-head h1 { font-size: 40px; }
  .tk-top .sym { display: block; margin: 8px 0 0; }
  .tk-top .desc { font-size: 16px; }
  .tk-img, .agent-head .avatar { width: 76px; height: 76px; }
  .tasks li { grid-template-columns: 22px minmax(0, 1fr); }
  .tasks li > :last-child { grid-column: 2; }
  .trades .table th:nth-child(6), .trades .table td:nth-child(6) { display: none; }
  .trades .table th { letter-spacing: 0.06em; font-size: 10.5px; }
  .trades .table td { padding-right: 8px; font-size: 12px; white-space: nowrap; }
  .trades .table td:nth-child(2) .tag { display: block; width: fit-content; margin: 3px 0 1px; }
  .trades .table td:last-child, .trades .table th:last-child, .trades .table td:nth-child(5), .trades .table th:nth-child(5) { padding-right: 0; }
  .plate figcaption span:last-child { display: none; }
  /* docs and fees */
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .toc a { gap: 8px; font-size: 10.5px; letter-spacing: 0.06em; }
  .toc a::before { width: 16px; }
  .doc > section { padding: 30px 0 34px; }
  .doc p { font-size: 16px; }
  .doc > section > ul li { font-size: 15.5px; }
  .doc .dt thead { display: none; }
  .doc .dt, .doc .dt tbody, .doc .dt tr, .doc .dt td { display: block; }
  .doc .dt tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .doc .dt tr:first-child { border-top: 1px solid var(--line); }
  .doc .dt td { padding: 2px 0; border: 0; font-size: 14.5px; }
  .doc .dt.api td:first-child, .doc .dt.api td:nth-child(2) { display: inline-block; margin-right: 10px; }
  .code pre { padding: 14px 14px; font-size: 12px; }
  .snipe-pick { flex-wrap: wrap; gap: 10px; }
  .snipe-pick .seg { width: 100%; }
  .snipe { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .snipe div:nth-child(n + 4) { margin-top: 8px; }
  .snipe b { font-size: 30px; }
  .levels .c-bar, .levels .c-vol { display: none; }
  .levels th { white-space: normal; vertical-align: bottom; padding-right: 12px; letter-spacing: 0.06em; }
  .levels td { padding-right: 12px; }
  .c-body { padding: 16px 14px 18px; }
  .calc .c-title { display: none; }
  .seg button { font-size: 11px; letter-spacing: 0; }
  /* launch a token */
  .chooser button { grid-template-columns: minmax(0, 1fr); padding: 14px 13px 13px; }
  .chooser button i { grid-row: auto; padding: 0; }
  .chooser button b { font-size: 25px; }
  .chooser button span { font-size: 13px; }
  .ident { grid-template-columns: 108px minmax(0, 1fr); gap: 14px; }
  .drop { width: 108px; }
  .drop .ph small { display: none; }
  .ap-seg button .l { display: none; }
  .ap-seg button .s { display: inline; }
  .ap-seg button.ap { flex: 1; }
  .lt { padding-top: 28px; }
  .lt-pv { padding: 16px 14px 4px; }
  .pv-top { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .pv-top .tk-img { width: 72px; }
  .pv-name { font-size: 30px; }
  .pv-name.none { font-size: 25px; }
  .brief .p-body { font-size: 12.5px; }
  .then li { grid-template-columns: 26px minmax(0, 1fr); }
  .then li span { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .mk tr.fresh td, .mk tr.fresh .tok-img, .mk tr.flash td, .chain::before, .tape-l i { animation: none; }
}
