/* units app: warm off-white surface, ink type, beige
   pills, purple call to action, squircle corners. One theme, light. Tokens first; the dashboard's older
   token names are aliases of the short ones so every page keeps working. Suisse Intl for text, KMR Apparat for display (headings, figures, wordmark),
   self-hosted from /fonts/ (see public/fonts/OFL.txt: these two are not OFL). No monospace face: --mono
   is the text face with tabular figures. */

@font-face { font-family: "Suisse Intl"; src: url("/fonts/SuisseIntl-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Suisse Intl"; src: url("/fonts/SuisseIntl-Regular-WebS.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Suisse Intl"; src: url("/fonts/SuisseIntl-Medium-WebS.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Suisse Intl"; src: url("/fonts/SuisseIntl-SemiBold-WebS.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Suisse Works"; src: url("/fonts/SuisseWorks-BookItalic-WebS.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "KMR Apparat"; src: url("/fonts/KMR-Apparat-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "KMR Apparat"; src: url("/fonts/KMR-Apparat-Medium.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }

/* design tokens; the app has one theme (light) */
:root {
  color-scheme: light;
  --bg: #f8f8f8;
  --bg2: #e6e5e1;
  --bg3: #dcdad4;
  --border: #d3d0c9;
  --border-h: #1a1a1938;
  --tp: #1a1a19;
  --ts: #33332f;
  --tt: #6c6962;
  --tt-aa: #6c6962;
  --ac: #7b54f5;
  --ac-soft: #47146e;
  --sel: #d9cdff;
  --sel-ink: #1a1a19;
  --ac-dim: #a68aff26;
  --ac-b: #a68aff66;
  --sb-hover: #1a1a190a;
  --hdr-bg: #f8f8f8;
  --btn-p-bg: #1a1a19;
  --btn-p-fg: #f8f8f8;
  --pill: #e6e3dc;
  --pill-hover: #d1cbbd;
  --pill-ink: #1a1a19;
  --cta: #a68aff;
  --cta-hover: #7b54f5;
  --cta-ink: #47146e;
  --scan: transparent;
  --glass-bg: var(--pill);
  --glass-border: transparent;
  --glass-shadow: none;
  --float-shadow: 0 12px 32px #18140e22, 0 2px 8px #18140e14;
  --card-glow: inset 0 0 16px 0 #f8f8f8;

  --good: #4f7a12;
  --bad: #c62828;
  --warn: #9a6b00;
  --sans: "Suisse Intl", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "KMR Apparat", var(--sans);
  --serif: "Suisse Works", "Times New Roman", serif; /* italic quotes only */
  --mono: var(--sans);
  --wordmark: var(--display);

  /* aliases used throughout the pages */
  --page: var(--bg);
  --panel: var(--bg2);
  --panel-2: var(--bg3);
  --panel-3: #d1cfc9;
  --line: var(--border);
  --line-soft: var(--border);
  --text: var(--tp);
  --dim: var(--ts);
  --faint: var(--tt-aa);
  --accent: var(--ac);
  --accent-ink: var(--ac-soft);
  --accent-soft: var(--ac-dim);
  --good-soft: color-mix(in srgb, var(--good) 14%, transparent);
  --warn-soft: color-mix(in srgb, var(--warn) 14%, transparent);
  --bad-soft: color-mix(in srgb, var(--bad) 14%, transparent);
  --info-soft: var(--ac-dim);
  --series-1: #2ba1f2;
  --series-2: var(--ac);
  --grid: var(--border);
  --axis: var(--border-h);
  --diff-add: color-mix(in srgb, var(--good) 16%, var(--bg2));
  --diff-add-ink: #3d5f0c;
  --diff-del: color-mix(in srgb, var(--bad) 14%, var(--bg2));
  --diff-del-ink: #a0111f;
  --diff-hunk: var(--ac-dim);
  --shadow: none;
  --radius: 14px;
  --radius-sm: 10px;
  --font: var(--sans);
  --pad-x: 24px;
  --hdr-h: 68px;
  --ease-soft: cubic-bezier(.16, 1, .3, 1);
  --ease-back: cubic-bezier(.34, 2.4, .64, 1);
}


* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-width: thin; scrollbar-color: var(--bg3) transparent; }
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-thumb { background: var(--bg3); }
::selection { background: var(--sel); color: var(--sel-ink); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tp);
  font: 400 14.5px/1.5 var(--sans);
  letter-spacing: -.005em;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a.link, .link { color: var(--tp); text-decoration: underline; text-decoration-color: var(--border-h); text-underline-offset: .18em; text-decoration-thickness: 1px; transition: text-decoration-color .15s, color .15s; }
a.link:hover { text-decoration-color: var(--tp); }
:focus { outline: none; }
:focus-visible { outline: 1px solid var(--ac); outline-offset: 4px; border-radius: 2px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.03em; color: var(--tp); }
h1 { font-family: var(--display); letter-spacing: -0.04em; line-height: 1; }
h1 em { color: var(--tt); font-style: italic; }
strong, b { font-weight: 500; }

.num { font-variant-numeric: tabular-nums; }
.dim { color: var(--ts); }
.faint { color: var(--tt-aa); }
.unit { color: var(--tt); font-weight: 400; margin-left: 3px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.eyebrow, .sec-lbl { font: 500 12px/1.2 var(--sans); letter-spacing: -.01em; color: var(--tt); }
.hash { font-family: var(--mono); font-size: 0.92em; letter-spacing: 0.01em; color: var(--ts); }
.hash.full { word-break: break-all; }
code { font-family: var(--mono); color: var(--ts); background: var(--pill); border-radius: 6px; padding: 1px 6px; font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- shell */

/* The header: wordmark then beige nav pills on the left, the actions on the right. At the top of the
   page it is a flat bar on the page surface. Once the page scrolls (main.ts toggles .is-scrolled) it closes
   in to a shorter floating pill (narrower, smaller pills and wordmark) over a masked blur of the content
   under it. Its total height never changes (8px above and below the shorter pill), so the page stays put. */
.top { position: sticky; top: 0; z-index: 100; padding: 0; font-family: var(--display); transition: padding .34s var(--ease-soft); }
.top::before, .top::after { content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .32s var(--ease-soft); }
.top::before { bottom: -30px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 var(--hdr-h), transparent calc(var(--hdr-h) + 30px)); mask-image: linear-gradient(to bottom, #000 0, #000 var(--hdr-h), transparent calc(var(--hdr-h) + 30px)); }
.top::after { bottom: -60px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 var(--hdr-h), transparent calc(var(--hdr-h) + 60px)); mask-image: linear-gradient(to bottom, #000 0, #000 var(--hdr-h), transparent calc(var(--hdr-h) + 60px)); }
.top.is-scrolled::before, .top.is-scrolled::after { opacity: 1; }
.top-in {
  position: relative; display: flex; align-items: center; gap: 10px; height: var(--hdr-h); padding: 0 max(var(--pad-x), calc((100vw - 1440px) / 2 + var(--pad-x)));
  border-radius: 0; corner-shape: squircle; background: transparent; box-shadow: 0 0 0 0 transparent;
  transition: height .34s var(--ease-soft), padding .34s var(--ease-soft), gap .34s var(--ease-soft), border-radius .34s var(--ease-soft), background .34s var(--ease-soft), box-shadow .34s var(--ease-soft);
}
.top.is-scrolled { padding: 8px max(var(--pad-x), calc((100vw - 1180px) / 2)); }
.top.is-scrolled .top-in { height: calc(var(--hdr-h) - 16px); padding: 0 10px 0 18px; gap: 8px; border-radius: 26px; background: color-mix(in srgb, var(--bg2) 88%, transparent); box-shadow: inset 0 0 0 1px #fff8, 0 12px 32px -14px #1a1a1933; }
.brand { display: inline-flex; align-items: center; gap: 9px; margin-right: 18px; font: 500 20px/1 var(--display); letter-spacing: -.03em; white-space: nowrap; color: var(--tp); transition: font-size .34s var(--ease-soft), margin .34s var(--ease-soft), gap .34s var(--ease-soft); }
.brand svg, .brand-logo { width: 26px; height: 26px; flex: none; transition: width .34s var(--ease-soft), height .34s var(--ease-soft); }
.brand .ph { display: none; }
.top.is-scrolled .brand { font-size: 17px; margin-right: 10px; gap: 7px; }
.top.is-scrolled .brand svg, .top.is-scrolled .brand-logo { width: 22px; height: 22px; }
.nav { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; transition: gap .34s var(--ease-soft); }
.nav::-webkit-scrollbar { display: none; }
.nav a, .eco-btn, .iconbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 14px; border: 0; border-radius: 18px; corner-shape: squircle;
  background: var(--pill); color: var(--pill-ink); font: 500 14px/1 var(--display); letter-spacing: -.01em; white-space: nowrap; cursor: pointer;
  transition: background .18s var(--ease-soft), color .18s var(--ease-soft), transform .18s var(--ease-soft), height .34s var(--ease-soft), padding .34s var(--ease-soft), font-size .34s var(--ease-soft), width .34s var(--ease-soft);
}
.nav a:hover, .eco-btn:hover, .iconbtn:hover { background: var(--pill-hover); }
.nav a[aria-current="page"], .eco-btn[aria-current="page"], .eco-btn[aria-expanded="true"] { background: var(--tp); color: var(--bg); }
.top.is-scrolled .nav { gap: 6px; }
.top.is-scrolled .nav a, .top.is-scrolled .eco-btn, .top.is-scrolled .iconbtn { height: 30px; padding: 0 12px; font-size: 13px; }
.top.is-scrolled .nav a:not([aria-current="page"]), .top.is-scrolled .eco-btn:not([aria-current="page"]):not([aria-expanded="true"]) { background: color-mix(in srgb, var(--pill) 70%, var(--bg)); }
.top.is-scrolled .nav a:not([aria-current="page"]):hover, .top.is-scrolled .eco-btn:not([aria-current="page"]):not([aria-expanded="true"]):hover { background: var(--pill-hover); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; transition: gap .34s var(--ease-soft); }
.top.is-scrolled .top-right { gap: 6px; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.iconbtn { width: 34px; padding: 0; }
.iconbtn svg { width: 16px; height: 16px; }
.top.is-scrolled .iconbtn { width: 30px; padding: 0; }

main { position: relative; padding: 28px var(--pad-x) 80px; min-height: calc(100vh - var(--hdr-h)); }
/* the home page (Explorer) lines up with the header: full width up to 1440px screens, centred beyond */
#ex-root { position: relative; z-index: 1; max-width: calc(1440px - 2 * var(--pad-x)); margin: 0 auto; }
/* the agent pages (directory, agent page, profile), Projects, Generations and Analytics at the Explorer's width; the deck keeps the full width */
main[data-section="/agents"] > :not(.deck-shell), main[data-section="/projects"] > *, main[data-section="/generations"] > *, main[data-section="/analytics"] > * { max-width: calc(1440px - 2 * var(--pad-x)); margin-left: auto; margin-right: auto; }
.foot { border-top: 0; padding: 28px var(--pad-x); color: var(--tt); font: 500 12px/1.6 var(--sans); display: flex; gap: 10px 24px; flex-wrap: wrap; justify-content: space-between; }
.foot .num { font-family: var(--mono); }

/* ---------------------------------------------------------------- page header */

/* hand-drawn doodles (public/doodles), pinned beside a title; hidden on narrow screens */
.dd-wrap { position: relative; display: inline-block; }
.dd { position: absolute; z-index: 4; display: block; height: auto; max-width: none; pointer-events: none; user-select: none; }
.dd-wow { width: 140px; left: calc(100% + 14px); top: -38px; }
@media (max-width: 860px) { .dd { display: none; } }

.ph-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 24px 0 32px; flex-wrap: wrap; }
.ph-title { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ph-title h1 { font-size: clamp(40px, 5.2vw, 72px); word-break: break-word; }
.ph-sub { color: var(--tt); font-size: clamp(16px, 1.5vw, 20px); line-height: 1.4; display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; }
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--tt); font: 500 12px/1.2 var(--sans); letter-spacing: -.01em; flex-wrap: wrap; }
.crumbs a:hover { color: var(--tp); }

/* ---------------------------------------------------------------- panels */

.panel { background: var(--bg2); border: 0; border-radius: 22px; corner-shape: squircle; box-shadow: var(--card-glow); min-width: 0; overflow: hidden; }
.panel + .panel { margin-top: 20px; }
.panel-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px 12px; border-bottom: 1px solid var(--border); min-height: 48px; background: transparent; }
.panel-h h2 { font: 500 12px/1.2 var(--sans); letter-spacing: -.01em; color: var(--ts); }
.panel-h .count { color: var(--tt); font-family: var(--mono); }
.panel-h .aside { margin-left: auto; color: var(--tt); font-size: 12px; display: flex; gap: 10px; align-items: center; }
.panel-b { padding: 16px; }
.panel-note { padding: 10px 16px; border-top: 1px solid var(--border); color: var(--tt); font-size: 12px; }
.milled { position: relative; }
.milled::after { content: none; }

.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.grid-side { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.stack > * + * { margin-top: 20px; }
.sticky { position: sticky; top: calc(var(--hdr-h) + 16px); }

/* ---------------------------------------------------------------- stat strip */

.stats { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); background: var(--border); gap: 1px; border-radius: inherit; }
.stat { padding: 14px 16px 16px; min-width: 0; background: var(--bg2); }
.stat .v { font-family: var(--display); font-size: 30px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.stat .v.sm { font-size: 20px; font-family: var(--sans); font-weight: 500; }
.stat .s { color: var(--tt); font-size: 12px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats-2 { border-top: 1px solid var(--border); }
.stat-btn { display: block; width: 100%; border: 0; border-radius: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: background .18s var(--ease-soft); }
.stat-btn:hover { background: var(--sb-hover); }
.stat-btn[aria-pressed="true"] { background: var(--pill); }
.stat-btn[aria-pressed="true"] .eyebrow { color: var(--tp); }

/* ---------------------------------------------------------------- tables */

.tw { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.t th { text-align: left; font: 500 12px/1.2 var(--sans); letter-spacing: -.01em; color: var(--tt); padding: 10px 12px; background: color-mix(in srgb, var(--bg3) 60%, transparent); border-bottom: 1px solid var(--border); white-space: nowrap; }
.t td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--ts); }
.t td a, .t td b, .t td .eff { color: var(--tp); }
.t tr:last-child td { border-bottom: 0; }
.t th:first-child, .t td:first-child { padding-left: 16px; }
.t th:last-child, .t td:last-child { padding-right: 16px; }
.t th.right, .t td.right { text-align: right; }
.t tbody tr.rowlink { cursor: pointer; transition: background .15s; }
.t tbody tr.rowlink:hover { background: var(--sb-hover); }
.t .sub { color: var(--tt); font-size: 12px; margin-top: 2px; }
.t td.wrap { white-space: normal; }
.t tr.reverted td { opacity: 0.62; }
.t tr.reverted td .eff { text-decoration: line-through; text-decoration-color: var(--tt); }

/* key/value lists */
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0; }
.kv > div { padding: 11px 16px; border-bottom: 1px solid var(--border); min-width: 0; }
.kv > div:nth-child(odd) { font: 500 12px/1.6 var(--sans); letter-spacing: -.01em; color: var(--tt); padding-right: 6px; white-space: nowrap; }
.kv > div:nth-child(even) { word-break: break-word; color: var(--ts); }
.kv > div:nth-last-child(-n + 2) { border-bottom: 0; }

/* ---------------------------------------------------------------- badges */

.b { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 10px; corner-shape: squircle; font: 500 12px/1 var(--sans); letter-spacing: -.01em; white-space: nowrap; background: var(--panel-3); border: 0; color: var(--ts); vertical-align: middle; }
.b svg { width: 11px; height: 11px; flex: none; }
.b.good { color: var(--good); background: color-mix(in srgb, var(--good) 10%, transparent); border-color: color-mix(in srgb, var(--good) 28%, transparent); }
.b.bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); border-color: color-mix(in srgb, var(--bad) 28%, transparent); }
.b.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); border-color: color-mix(in srgb, var(--warn) 28%, transparent); }
.b.info { color: var(--ac); background: var(--ac-dim); border-color: var(--ac-b); }
.b.outline { background: transparent; }
.b.kind { background: var(--pill); color: var(--ts); letter-spacing: -.01em; }

/* effect */
.eff { font-weight: 500; white-space: nowrap; color: var(--tp); }
.eff.good { color: var(--good); }
.eff.bad { color: var(--bad); }
.ratio { color: var(--ts); font-weight: 400; }
.pr { display: flex; gap: 4px 10px; flex-wrap: wrap; color: var(--tt); font-size: 12px; margin-top: 3px; }

/* ---------------------------------------------------------------- feed */

.feed { max-height: calc(100vh - 160px); overflow-y: auto; overscroll-behavior: contain; }
.feed-item { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--border); align-items: start; }
.feed-item:last-child { border-bottom: 0; }
.feed-item.fresh { animation: fresh 1.6s ease-out; }
@keyframes fresh { from { background: var(--ac-dim); } to { background: transparent; } }
.feed-ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--bg3); border: 1px solid var(--border); color: var(--tt); }
.feed-ic svg { width: 11px; height: 11px; }
.feed-ic.good { color: var(--good); border-color: color-mix(in srgb, var(--good) 30%, transparent); }
.feed-ic.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.feed-ic.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.feed-ic.info { color: var(--ac); border-color: var(--ac-b); background: var(--ac-dim); }
.feed-t { min-width: 0; }
.feed-t .h { color: var(--tp); }
.feed-t .d { color: var(--ts); font-size: 12.5px; margin-top: 1px; word-break: break-word; }
.feed-time { color: var(--tt); font: 500 12px/1.6 var(--sans); white-space: nowrap; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; background: var(--pill); border-radius: 16px; corner-shape: squircle; }
.panel .seg { background: var(--bg3); }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 12px; corner-shape: squircle; cursor: pointer; color: var(--tt); font: 400 12px/1.4 var(--mono); transition: color .15s, border-color .15s, background .15s; }
.seg button:hover { color: var(--tp); }
.seg button[aria-pressed="true"] { background: var(--tp); color: var(--bg); }

/* ---------------------------------------------------------------- chain */

.chain { position: relative; }
.chain-node { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0; }
.chain-rail { position: relative; display: flex; justify-content: center; }
.chain-rail::before { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border-h); }
.chain-node:first-child .chain-rail::before { top: 22px; }
.chain-node:last-child .chain-rail::before { bottom: calc(100% - 22px); }
.chain-dot { position: relative; margin-top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg2); border: 1px solid var(--ac); }
.chain-dot.genesis { border-color: var(--tt); }
.chain-dot.revert { border-color: var(--bad); }
.chain-dot.reverted { border-color: var(--tt); background: var(--bg3); }
.chain-dot.tip { background: var(--ac); box-shadow: 0 0 8px color-mix(in srgb, var(--ac) 60%, transparent), 0 0 0 4px var(--ac-dim); }
.chain-body { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.chain-node:last-child .chain-body { border-bottom: 0; }
.chain-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chain-head .h { color: var(--tp); font-weight: 500; }
.chain-meta { display: flex; gap: 4px 14px; flex-wrap: wrap; color: var(--tt); font-size: 12px; margin-top: 4px; }
.chain-body:hover .h { color: var(--ac-soft); }

/* ---------------------------------------------------------------- hero */

.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); background: var(--border); gap: 1px; }
.hero > div { padding: 20px; min-width: 0; background: var(--bg2); }
.hero .big { font-family: var(--display); font-size: clamp(36px, 4vw, 50px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; margin-top: 10px; font-variant-numeric: tabular-nums; }
.hero .mid { font-family: var(--display); font-size: 26px; font-weight: 500; margin-top: 10px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero .s { color: var(--ts); margin-top: 6px; font-size: 13px; }

/* ---------------------------------------------------------------- diff and code */

.diff { font: 400 13px/1.8 var(--mono); font-variant-ligatures: none; font-variant-numeric: tabular-nums; overflow-x: auto; tab-size: 4; color: var(--ts); }
.diff table { border-collapse: collapse; min-width: 100%; }
.diff td { padding: 0 14px; white-space: pre; vertical-align: top; }
.diff td.ln { width: 1%; color: var(--tt); text-align: right; user-select: none; padding: 0 8px; font-size: 11px; }
.diff td.sg { width: 1%; padding: 0 2px 0 8px; user-select: none; color: var(--tt); }
.diff tr.add { background: var(--diff-add); }
.diff tr.add td.code, .diff tr.add td.sg { color: var(--diff-add-ink); }
.diff tr.del { background: var(--diff-del); }
.diff tr.del td.code, .diff tr.del td.sg { color: var(--diff-del-ink); }
.diff tr.hunk td { background: var(--diff-hunk); color: var(--ac-soft); padding-top: 3px; padding-bottom: 3px; font-size: 11.5px; }
.diff tr.file td { background: color-mix(in srgb, var(--bg3) 60%, transparent); color: var(--tp); padding-top: 8px; padding-bottom: 8px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 12px; letter-spacing: .02em; }
.diff tr.file:first-child td { border-top: 0; }

/* ---------------------------------------------------------------- replays */

.replay { border-top: 1px solid var(--border); }
.replay:first-child { border-top: 0; }
.replay-h { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 14px 16px 8px; }
.replay-h .h { color: var(--tp); font-weight: 500; }
.replay-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0; }
.replay-grid > div { padding: 4px 16px 16px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.testlist { margin: 6px 0 0; padding: 0; list-style: none; color: var(--ts); font-size: 12.5px; font-family: var(--mono); }
.testlist li { padding: 2px 0; word-break: break-all; }

.chart { width: 100%; display: block; }
.chart text { font-family: var(--mono); font-size: 10.5px; fill: var(--tt); font-variant-numeric: tabular-nums; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .axis { stroke: var(--axis); stroke-width: 1; }
.chart .base { fill: var(--series-1); stroke: var(--bg2); stroke-width: 1.5; }
.chart .cand { fill: var(--series-2); stroke: var(--bg2); stroke-width: 1.5; }
.chart .med { stroke-width: 2; stroke-linecap: round; }
.chart .med.base { stroke: var(--series-1); }
.chart .med.cand { stroke: var(--series-2); }
.chart .lbl { fill: var(--ts); }
.chart .hit { fill: transparent; cursor: default; }
.legend { display: flex; gap: 14px; align-items: center; color: var(--tt); font: 500 12px/1.6 var(--sans); letter-spacing: -.01em; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.legend i.base { background: var(--series-1); }
.legend i.cand { background: var(--series-2); }
.metric-block + .metric-block { margin-top: 12px; }
.metric-block .mh { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 2px; }
.metric-block .mh .n { color: var(--tp); font-weight: 500; }

#tip {
  position: fixed; z-index: 150; pointer-events: none; padding: 8px 12px; border-radius: 8px;
  background: var(--bg2); border: 1px solid var(--border); color: var(--ts); font: 500 12px/1.5 var(--sans); max-width: 300px;
  font-variant-numeric: tabular-nums; box-shadow: var(--float-shadow);
}

/* ---------------------------------------------------------------- misc */

.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 18px; corner-shape: squircle; border: 0; border-left: 3px solid var(--border); background: var(--bg2); box-shadow: var(--card-glow); margin-bottom: 20px; }
.banner svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--tt); }
.banner.warn { border-left-color: var(--warn); }
.banner.warn svg { color: var(--warn); }
.banner.bad { border-left-color: var(--bad); }
.banner.bad svg { color: var(--bad); }
.banner.info { border-left-color: var(--ac); }
.banner.info svg { color: var(--ac); }
.banner .t1 { color: var(--tp); }
.banner .t2 { color: var(--ts); margin-top: 2px; }
.empty { padding: 28px 16px; color: var(--ts); text-align: center; overflow-wrap: anywhere; }
.empty .t1 { font-family: var(--display); font-size: 22px; font-weight: 500; color: var(--tp); letter-spacing: -0.03em; }
.empty code, .errorbox code { font-family: var(--mono); background: var(--bg3); padding: 1px 6px; border-radius: 4px; color: var(--ts); }
.errorbox { max-width: 640px; margin: 64px auto; padding: 28px; }
.errorbox h1 { font-size: 30px; margin-bottom: 10px; }
.errorbox p { color: var(--ts); margin: 8px 0; }
.skel { height: 12px; border-radius: 4px; background: linear-gradient(90deg, var(--bg3), var(--panel-3), var(--bg3)); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: 0 0; } }
.paths { display: flex; flex-wrap: wrap; gap: 6px; }
.paths span { padding: 5px 10px; border-radius: 6px; background: var(--bg2); border: 1px solid var(--border); font: 500 12px/1 var(--sans); color: var(--tt-aa); }
.paths.prot span { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.bar { position: relative; height: 6px; border-radius: 3px; background: var(--bg3); border: 1px solid var(--border); overflow: hidden; min-width: 60px; }
.bar i { position: absolute; inset: 0 auto 0 0; background: var(--ac); }
details.more summary { cursor: pointer; color: var(--ac-soft); padding: 10px 16px; list-style: none; font: 500 12px/1.4 var(--sans); letter-spacing: -.01em; }
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary { border-bottom: 1px solid var(--border); }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  .grid-main, .grid-side { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
  .feed { max-height: 520px; }
  .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --pad-x: 16px; }
  .top-in { gap: 6px 8px; height: auto; min-height: 60px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 10px; }
  .top.is-scrolled { padding: 6px 8px; }
  .top.is-scrolled .top-in { height: auto; min-height: 48px; padding: 6px 8px 8px 14px; border-radius: 22px; }
  .top::before { -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 100%, transparent); mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 30px), transparent); }
  .nav { order: 3; width: 100%; }
  main { padding: 20px var(--pad-x) 56px; }
  .foot { padding: 24px var(--pad-x); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat .v { font-size: 22px; }
  .hero .big { font-size: 34px; }
  .replay-grid { grid-template-columns: minmax(0, 1fr); }
  .ph-title h1 { font-size: 26px; }
  .kv { grid-template-columns: minmax(0, 1fr); }
  .kv > div:nth-child(odd) { padding-bottom: 0; border-bottom: 0; }
  .kv > div:nth-last-child(2) { border-bottom: 0; }
  .t .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

a .ic, .ic { width: 12px; height: 12px; display: inline-block; vertical-align: -1px; }
a.link svg { width: 12px; height: 12px; vertical-align: -1px; }
.mlist { border-top: 1px solid var(--border); }
.mrow { padding: 10px 16px; border-top: 1px solid var(--border); }
.mrow:first-of-type { border-top: 0; }
.mrow-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mrow .sub { color: var(--tt); font-size: 12px; margin-top: 2px; }
.panel-note, .hash, .kv > div, .banner .t2, .t .sub { overflow-wrap: anywhere; }
.show-sm { display: none; }
@media (max-width: 760px) {
  .show-sm { display: block; }
  .stat .s { white-space: normal; }
  .t th, .t td { padding-left: 10px; padding-right: 10px; }
}
.b.kind { white-space: normal; height: auto; min-height: 22px; padding-top: 3px; padding-bottom: 3px; overflow-wrap: anywhere; }
.chain-body, .eff + .sub, .sub { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .panel-h { flex-wrap: wrap; row-gap: 4px; }
  .panel-h .aside { margin-left: 0; width: 100%; }
  .panel-h:has(.seg) .aside { width: auto; margin-left: auto; }
  .stats .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- live wall */

.min0 { min-width: 0; }
pre { font-family: var(--mono); }
.chgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; align-items: start; }
.chgrid .panel + .panel { margin-top: 0; }
.ch { display: flex; flex-direction: column; overflow: hidden; transition: border-color .18s; }
.ch.active { border-color: color-mix(in srgb, var(--ac) 30%, transparent); box-shadow: inset 0 -6px 12px -6px color-mix(in srgb, var(--ac) 35%, transparent); }
.ch-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px 0; }
.ch-t { font-size: 15px; font-weight: 500; color: var(--tp); display: flex; align-items: center; gap: 8px; min-width: 0; }
.ch-t a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-s { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; }
.ch-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; padding: 4px 16px 12px; color: var(--tt); font: 500 12px/1.6 var(--sans); letter-spacing: -.01em; font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--border); }
.ch-who { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 8px 16px; font-size: 12px; color: var(--ts); border-bottom: 1px solid var(--border); background: var(--ac-dim); }
.ch-who svg { width: 11px; height: 11px; vertical-align: -1px; }
.ch-last { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 12px 16px; align-items: start; }
.ch-last b, .ch-trail b, .ch-note b { color: var(--tp); font-weight: 500; overflow-wrap: anywhere; }
.ch-note { padding: 0 16px 10px 52px; color: var(--tt); font-size: 12px; }
.ch-idle { padding: 20px 16px 22px; color: var(--ts); }
.ch-trail { list-style: none; margin: 0; padding: 4px 0; border-top: 1px solid var(--border); }
.ch-trail li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 8px; padding: 5px 16px; font-size: 12.5px; color: var(--ts); align-items: baseline; }
.ch-trail .ic svg { width: 11px; height: 11px; color: var(--tt); vertical-align: -1px; }
.code-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 16px; background: color-mix(in srgb, var(--bg3) 60%, transparent); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font: 500 12px/1.6 var(--sans); letter-spacing: -.01em; color: var(--ts); }
.code-h svg { width: 12px; height: 12px; vertical-align: -1px; color: var(--tt); }
.code-h .b { margin-left: auto; }
.codeview { font: 400 13px/1.8 var(--mono); font-variant-ligatures: none; font-variant-numeric: tabular-nums; tab-size: 4; overflow-x: auto; background: var(--bg); color: var(--ts); }
.codeview table { border-collapse: collapse; min-width: 100%; }
.codeview td { padding: 0 14px; white-space: pre; vertical-align: top; }
.codeview td.ln { width: 1%; text-align: right; color: var(--tt); user-select: none; padding: 0 10px 0 16px; font-size: 11px; border-right: 1px solid var(--border); }
.codeview tr.hit td { background: var(--ac-dim); }
.codeview tr.hit td.ln { color: var(--ac); box-shadow: inset 2px 0 0 var(--ac); }
.codeview.none { padding: 16px; color: var(--ts); background: var(--bg); border-top: 1px solid var(--border); font: inherit; }
.code-more { padding: 6px 16px; color: var(--tt); font: 500 12px/1.6 var(--sans); border-top: 1px solid var(--border); }

/* machine wall */
.t.htop tr.asleep td { opacity: 0.55; }
.t.htop td { vertical-align: middle; }
.t.htop svg { width: 11px; height: 11px; vertical-align: -1px; }

/* spawn */
.kit { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.cmd { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--bg); }
.cmd-h { display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 14px; background: color-mix(in srgb, var(--bg3) 60%, transparent); border-bottom: 1px solid var(--border); font: 500 12px/1.6 var(--sans); letter-spacing: -.01em; color: var(--ts); }
.cmd-h span { min-width: 0; }
.copy { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border); background: color-mix(in srgb, var(--tt) 8%, transparent); border-radius: 9999px; padding: 3px 10px; font: 500 12px/1.4 var(--sans); cursor: pointer; color: var(--ts); transition: color .15s, border-color .15s; }
.copy:hover { color: var(--tp); border-color: var(--border-h); }
.copy svg { width: 11px; height: 11px; }
.cmd pre, pre.json, pre.block { margin: 0; padding: 14px 16px; font: 400 13px/1.8 var(--mono); font-variant-ligatures: none; white-space: pre; overflow-x: auto; color: var(--ts); tab-size: 4; }
pre.json, pre.block { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; }
.kit-note { margin-top: 14px; color: var(--ts); font-size: 13px; }
.launch { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-bottom: 1px solid var(--border); }
.launch label { display: flex; flex-direction: column; gap: 6px; }
.launch select, .launch input[type="url"] { font: 400 15px/1.4 var(--sans); letter-spacing: -.01em; color: var(--tp); background: var(--bg); border: 2px solid var(--tp); border-radius: 16px; corner-shape: squircle; padding: 9px 12px; min-width: 0; width: 100%; }
.launch fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.launch legend { padding: 0; margin-bottom: 4px; }
.launch label.radio { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--ts); }
.launch label.radio input { margin-top: 3px; accent-color: var(--ac); }
.launch label.radio b { color: var(--tp); font-weight: 500; }

/* manual, docs */
.manual { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.toc { position: sticky; top: calc(var(--hdr-h) + 16px); max-height: calc(100vh - var(--hdr-h) - 32px); overflow-y: auto; }
.toc nav { display: flex; flex-direction: column; padding: 8px 0; }
.toc a { padding: 5px 16px; color: var(--tt); font-size: 13px; transition: color .15s; }
.toc a.sub { padding-left: 28px; font-size: 12px; }
.toc a:hover { color: var(--tp); }
.prose { padding: 8px 28px 28px; font-size: 15px; line-height: 1.55; max-width: 760px; color: var(--ts); }
.prose h3 { font-family: var(--display); font-weight: 500; font-size: 26px; letter-spacing: -.03em; line-height: 1.25; margin: 36px 0 12px; padding-top: 24px; border-top: 1px solid var(--border); scroll-margin-top: calc(var(--hdr-h) + 16px); }
.prose h3:first-child { border-top: 0; margin-top: 12px; padding-top: 0; }
.prose h4 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; margin: 24px 0 8px; scroll-margin-top: calc(var(--hdr-h) + 16px); }
.prose h5 { font: 500 12px/1.4 var(--sans); letter-spacing: -.01em; color: var(--tt); margin: 18px 0 6px; }
.prose p { margin: 10px 0; color: var(--ts); }
.prose p strong { color: var(--tp); font-weight: 400; }
.prose ul, .prose ol { margin: 10px 0; padding-left: 22px; }
.prose li { margin: 5px 0; }
.prose code { font-family: var(--mono); background: var(--bg3); padding: 1px 6px; border-radius: 4px; font-size: 12.5px; color: var(--ts); }
.prose pre.block { margin: 14px 0; font-size: 12.5px; }
.prose .tw { margin: 14px 0; border: 1px solid var(--border); border-radius: 8px; }
.prose .t.spec td { font-size: 13px; }
.prose blockquote, .pullquote { margin: 16px 0; padding-left: 16px; border-left: 2px solid var(--border-h); font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--tp); }
.cfg { display: inline-flex; align-items: baseline; border-radius: 5px; overflow: hidden; border: 1px solid var(--ac-b); font: 400 0.85em/1.6 var(--mono); white-space: nowrap; }
.cfg .k { padding: 0 6px; background: var(--bg3); color: var(--ts); }
.cfg .v { padding: 0 6px; background: var(--ac-dim); color: var(--ac); font-variant-numeric: tabular-nums; }
.params { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--border); gap: 1px; }
.params > div { display: flex; justify-content: space-between; gap: 10px; padding: 11px 16px; background: var(--bg2); font-size: 13px; min-width: 0; }
.params .k { font: 500 12px/1.6 var(--sans); letter-spacing: -.01em; color: var(--tt); overflow: hidden; text-overflow: ellipsis; }
.params .v { color: var(--tp); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) {
  .chgrid { grid-template-columns: minmax(0, 1fr); }
  .manual { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: 260px; }
  .params { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .params { grid-template-columns: minmax(0, 1fr); }
  .prose { padding: 4px 16px 16px; }
  .code-h .b { margin-left: 0; }
  .ch-note { padding-left: 16px; }
}
.grid-2 > .panel + .panel, .grid-main > .panel + .panel { margin-top: 0; }
.cmd pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.mark { display: inline-flex; align-items: center; gap: 3px; font: 500 12px/1 var(--sans); letter-spacing: -.01em; white-space: nowrap; margin-left: 4px; }
.mark svg { width: 10px; height: 10px; }
.mark.good { color: var(--good); }
.mark.warn { color: var(--warn); }

/* ---------------------------------------------------------------- buttons, wallet */

.wl-tabs { margin: 20px 0 14px; }
.wl-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wl-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 18px; corner-shape: squircle; border: 2px solid var(--tp); background: transparent; color: var(--tp); font: 500 14.5px/1 var(--sans); letter-spacing: -.01em; cursor: pointer; white-space: nowrap; transition: background .18s var(--ease-soft), color .18s var(--ease-soft), transform .18s var(--ease-soft), opacity .15s; }
.wl-btn:hover:not(:disabled) { background: var(--tp); color: var(--bg); text-decoration: none; }
.wl-btn svg { width: 11px; height: 11px; }
.wl-btn.primary { background: var(--btn-p-bg); border-color: var(--btn-p-bg); color: var(--btn-p-fg); }
.wl-btn.primary:hover:not(:disabled) { background: #000; color: var(--btn-p-fg); }
.wl-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.wl-btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.wl-why { color: var(--tt); font-size: 12px; }
.wl-fine { color: var(--ts); font-size: 13px; line-height: 1.55; }
.wl-help { color: var(--tt); font-size: 12px; line-height: 1.5; }
.wl-wallets { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-wallet { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 10px; border-radius: 18px; corner-shape: squircle; border: 0; background: var(--pill); color: var(--tp); cursor: pointer; transition: background .15s; }
.wl-wallet:hover { background: var(--pill-hover); }
.wl-wallet img { border-radius: 50%; }
.wl-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.wl-form input:not([type="radio"]):not([type="checkbox"]), .wl-field input, .wl-field textarea, .wl-form select {
  font: 400 15px/1.4 var(--sans); letter-spacing: -.01em; color: var(--tp); background: var(--bg); border: 2px solid var(--tp); border-radius: 16px; corner-shape: squircle; padding: 9px 12px; min-width: 0; width: 100%; font-variant-numeric: tabular-nums; caret-color: var(--ac); }
.wl-form input:disabled { background: var(--bg3); color: var(--tt); border-color: var(--border); }
.wl-field { display: flex; flex-direction: column; gap: 6px; }
.wl-field textarea { resize: vertical; }
/* selects outside the wallet forms (the trade box's Pay with): a beige pill with its own chevron, no native chrome */
.wl-field select, .mk-trade select {
  appearance: none; -webkit-appearance: none; width: 100%; min-width: 0; height: 42px; padding: 0 40px 0 14px; border: 0; border-radius: 16px; corner-shape: squircle; cursor: pointer;
  background: var(--pill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath d='M4.563 6.2246C4.271 6.5175 4.27 6.9923 4.563 7.2851L6.762 9.4833C7.445 10.1665 8.553 10.1665 9.236 9.4833L11.435 7.2851C11.728 6.9923 11.728 6.5174 11.435 6.2246C11.143 5.9317 10.668 5.9319 10.375 6.2246L8.176 8.4228C8.078 8.5201 7.92 8.5201 7.822 8.4228L5.624 6.2246C5.331 5.9317 4.856 5.9317 4.563 6.2246Z' fill='%231a1a19'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--tp); font: 500 14px/1 var(--sans); letter-spacing: -.01em; transition: background-color .18s var(--ease-soft);
}
.wl-field select:hover, .mk-trade select:hover { background-color: var(--pill-hover); }
.wl-field select:focus-visible, .mk-trade select:focus-visible { outline: 2px solid var(--tp); outline-offset: 1px; }
.wl-field select:disabled, .mk-trade select:disabled { cursor: not-allowed; color: var(--tt); }
.wl-custody { border-left: 2px solid var(--border); padding-left: 12px; display: flex; flex-direction: column; gap: 8px; }
.wl-custody label { display: flex; flex-direction: column; gap: 6px; }
.wl-steps { margin: 12px 0 0; padding-left: 18px; color: var(--ts); font-size: 13px; line-height: 1.55; }
.wl-steps li { margin: 5px 0; }
.wl-acc td { font-size: 13px; }
.wl-hash { overflow-wrap: anywhere; font-family: var(--mono); font-size: 12px; color: var(--ts); }
.wl-sub { padding: 12px 16px 0; }
.wl-logs { margin-top: 8px; font-size: 12px; max-height: 220px; overflow: auto; white-space: pre-wrap; }
.wl-quote { margin-top: 12px; font-size: 13px; color: var(--ts); }
.wl-quote b { color: var(--tp); }
.wl-crank { border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.wl-trade { border-top: 1px solid var(--border); }
.wl-selrow td { background: var(--ac-dim); }
.wl-cosign { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.wl-cosign .banner { margin-bottom: 0; }
pre.wl-wrap { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 140px; overflow-y: auto; }
.wl-bal { border-bottom: 1px solid var(--border); }
.wl-params { border-bottom: 1px solid var(--border); }
#w-launch-out .banner, #w-trade-out .banner, #w-vout .banner, #w-claim-out .banner, #w-conn .banner { margin-bottom: 0; }
#w-launch-out .kv, #w-trade .kv { border-bottom: 1px solid var(--border); }
@media (max-width: 760px) {
  .wl-2 { grid-template-columns: minmax(0, 1fr); }
  .wl-bal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wl-bal .stat { padding: 10px 10px 12px; }
}
.wl-params { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (max-width: 760px) {
  .stats.wl-bal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats.wl-bal .stat:first-child { grid-column: 1 / -1; }
  .wl-stats2 .stat .v { font-size: 18px; }
  .wl-params { grid-template-columns: minmax(0, 1fr) !important; }
}

/* souls */
.wl-soul { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); display: grid; gap: 8px; }
.wl-soul p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ts); }
.wl-soul-h { font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: -.03em; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.wl-soul-list { margin: 4px 0 0; padding-left: 16px; font-size: 13.5px; line-height: 1.5; color: var(--ts); }
.wl-soul-edit { width: 100%; margin-top: 6px; font: 400 12.5px/1.6 var(--mono); padding: 10px; border-radius: 8px; border: 1px solid var(--border-h); background: var(--bg); color: var(--tp); }
.wl-form textarea { width: 100%; font: 400 15px/1.5 var(--sans); letter-spacing: -.01em; padding: 9px 12px; border-radius: 16px; corner-shape: squircle; border: 2px solid var(--tp); background: var(--bg); color: var(--tp); }
.soul { padding: 14px 16px; display: grid; gap: 12px; }
.soul p { margin: 2px 0 0; font-size: 14px; line-height: 1.6; color: var(--ts); }
.soul .eyebrow { margin-bottom: 2px; }
.soul ul { margin: 2px 0 0; padding-left: 16px; font-size: 14px; line-height: 1.55; color: var(--ts); }
.soul-sample { border-left: 2px solid var(--border-h); padding-left: 12px; color: var(--tp); font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.45; white-space: pre-wrap; }
@media (max-width: 640px) { .wl-soul .wl-2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- launchpad (mk- prefix) */

.mk-tok { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; }
.mk-sym { font-weight: 500; color: var(--tp); }
.mk-name { color: var(--tt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.mk-rowlink:hover .mk-sym { color: var(--ac-soft); }
.mk-list tbody tr { cursor: pointer; }
.mk-progcell { min-width: 130px; }
.mk-prog { display: inline-flex; align-items: center; gap: 8px; width: 100%; }
.mk-prog .bar { flex: 1; min-width: 56px; }
.mk-prog .num { color: var(--ts); font: 500 12px/1.6 var(--sans); min-width: 52px; text-align: right; }
.mk-chg.up { color: var(--good); }
.mk-chg.down { color: var(--bad); }
.mk-sort { flex-wrap: wrap; }
.mk-h1sym { font-family: var(--mono); color: var(--tt); font-weight: 400; font-size: 0.45em; letter-spacing: -.01em; margin-left: 8px; vertical-align: middle; }
.mk-statspanel .stat .v { font-size: 24px; }
.mk-statspanel .stat .s { white-space: nowrap; }
.mk-live { padding: 12px; }
.mk-livepanel .panel-h h2::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ac); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 6px color-mix(in srgb, var(--ac) 80%, transparent); animation: pulse 2.5s ease-in-out infinite; }
.mk-chartwrap { padding: 12px 8px 8px 12px; }
.mk-chart { width: 100%; position: relative; }
.mk-chart-empty { height: 100%; display: grid; place-items: center; color: var(--tt); }
.mk-svg { display: block; }
.mk-svg text { font: 400 10.5px var(--mono); fill: var(--tt); font-variant-numeric: tabular-nums; }
.mk-svg text.ref { fill: var(--ts); }
.mk-svg .grid { stroke: var(--grid); stroke-width: 1; }
.mk-svg .axis { stroke: var(--axis); stroke-width: 1; }
.mk-svg .ref { stroke: var(--axis); stroke-dasharray: 3 3; }
.mk-svg .c line { stroke-width: 1.2; }
.mk-svg .c.up line { stroke: var(--good); }
.mk-svg .c.up rect { fill: var(--good); }
.mk-svg .c.down line { stroke: var(--bad); }
.mk-svg .c.down rect { fill: var(--bad); }
.mk-svg .c rect.v { opacity: 0.28; }
.mk-svg .c rect.hit { fill: transparent; }
.mk-svg .c:hover rect.v { opacity: 0.5; }
.mk-tf button { min-width: 30px; }
.mk-trades td, .mk-holders td, .mk-fees td { vertical-align: middle; }
.mk-side { font-weight: 500; }
.mk-side.buy { color: var(--good); }
.mk-side.sell { color: var(--bad); }
.mk-curve-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.mk-curve-bar .bar { height: 8px; border-radius: 4px; }
.mk-curve-bar .num { font-family: var(--display); font-weight: 500; font-size: 18px; color: var(--tp); }
.mk-curve-n { margin-top: 10px; font-size: 13px; color: var(--ts); }
.mk-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.mk-steps li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--tt); }
.mk-steps li.done { color: var(--tp); }
.mk-steps li i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--border-h); display: grid; place-items: center; margin-top: 1px; }
.mk-steps li.done i { border-color: var(--ac); background: var(--ac-dim); color: var(--ac); }
.mk-steps li i svg { width: 11px; height: 11px; }
.mk-steps .sub { font-size: 12px; margin-top: 1px; display: flex; gap: 8px; flex-wrap: wrap; }
.mk-lins { display: inline-flex; flex-direction: column; gap: 2px; }
.mk-copy { border: 0; background: transparent; color: var(--tt); cursor: pointer; padding: 2px; vertical-align: -2px; }
.mk-copy:hover { color: var(--tp); }
.mk-tb { display: grid; gap: 14px; }
.mk-tb-venue { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.mk-tb-acct { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ts); font-size: 13px; }
.mk-tb-acct .wl-btn { height: 28px; padding: 0 12px; font-size: 12px; }
.mk-tb-bal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border); background: var(--border); gap: 1px; border-radius: 8px; overflow: hidden; }
.mk-tb-bal > div { padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; background: var(--bg); }
.mk-tb-bal b { font-weight: 500; font-size: 14px; color: var(--tp); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-tb-side { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mk-tb-side button { padding: 7px 9px; font-size: 13px; }
.mk-tb-side button[data-side="buy"][aria-pressed="true"] { color: var(--good); background: color-mix(in srgb, var(--good) 10%, transparent); border-color: color-mix(in srgb, var(--good) 30%, transparent); }
.mk-tb-side button[data-side="sell"][aria-pressed="true"] { color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.mk-tb-in { position: relative; display: block; }
.mk-tb-in input { width: 100%; padding-right: 60px !important; }
.mk-tb-f input { font: 400 16px/1 var(--mono); height: 42px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border-h); background: var(--bg); color: var(--tp); width: 100%; font-variant-numeric: tabular-nums; caret-color: var(--ac); }
.mk-tb-max { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 1px solid var(--border); background: var(--bg3); color: var(--ts); border-radius: 9999px; font: 500 12px/1 var(--sans); padding: 5px 9px; cursor: pointer; }
.mk-tb-max:hover { color: var(--tp); border-color: var(--border-h); }
.mk-tb-quote { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; font-size: 13px; }
.mk-tb-quote > div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; background: var(--bg); }
.mk-tb-quote span { font: 500 12px/1.6 var(--sans); letter-spacing: -.01em; color: var(--tt); }
.mk-tb-quote b { font-weight: 500; color: var(--tp); text-align: right; overflow-wrap: anywhere; }
.mk-tb-go { display: flex; gap: 8px; }
.mk-tb-go .wl-btn { height: 42px; flex: 1; justify-content: center; font-size: 14px; }
.mk-tb-go .wl-btn:not(.primary) { flex: 0 0 auto; }
.mk-tb-msg .banner { margin: 0; }
@media (max-width: 760px) {
  .hide-xs { display: none !important; }
  .mk-live { padding: 8px; }
  .mk-name { max-width: 120px; }
  .mk-statspanel .stat .v { font-size: 19px; }
  .mk-progcell { min-width: 96px; }
  .mk-sort button { padding: 3px 8px; }
}
.mk-list th, .mk-list td { padding-left: 10px; padding-right: 10px; }
@media (max-width: 1360px) { .mk-list .hide-md { display: none; } }
.mk-gradtag { color: var(--good); font-family: var(--mono); font-size: 11px; letter-spacing: -.01em; }

/* model picker (plan M): provider monograms, then models with prices */
.wl-prov { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.wl-prov-i, .launch label.wl-prov-i { position: relative; display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: var(--panel); min-width: 0; }
.wl-prov-i input { position: absolute; opacity: 0; pointer-events: none; }
.wl-prov-i.on { border-color: var(--accent, var(--text)); box-shadow: inset 0 0 0 1px var(--accent, var(--text)); }
.wl-prov-i.off { opacity: .62; }
.wl-prov-i:focus-within { outline: 2px solid var(--accent, var(--text)); outline-offset: 1px; }
.wl-mono { flex: none; width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; font-size: 10.5px; font-weight: 650; letter-spacing: .02em; color: #fff; background: hsl(var(--h) 42% 42%); }
.wl-mono.is-logo { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.wl-mono.is-logo img { display: block; width: 20px; height: 20px; }
.prov-logo { flex: none; vertical-align: -2px; }
.wl-prov-t { display: grid; min-width: 0; font-size: 12.5px; line-height: 1.3; }
.wl-prov-t b, .wl-prov-t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-models { display: grid; gap: 6px; margin-top: 10px; }
.wl-model, .launch label.wl-model { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: var(--panel); }
.wl-model.on { border-color: var(--accent, var(--text)); }
.wl-model.off { cursor: not-allowed; opacity: .62; }
.wl-model input { margin-top: 3px; }
.wl-model-t { display: grid; gap: 2px; min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.wl-model-p { font-size: 12.5px; text-align: right; white-space: nowrap; }
@media (max-width: 640px) {
  .wl-prov { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wl-model { grid-template-columns: auto minmax(0, 1fr); }
  .wl-model-p { grid-column: 2; text-align: left; white-space: normal; }
}

/* social (plan L, F, S): leaderboard, agent chat feed, agent profiles */
.seg .seg-b { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 12px; corner-shape: squircle; color: var(--tt); font-size: 13px; font-weight: 500; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.seg .seg-b:hover { color: var(--text); text-decoration: none; }
.seg .seg-b[aria-pressed="true"] { background: var(--tp); color: var(--bg); }
.seg .seg-b:focus-visible, .rx-b:focus-visible, .lb-sel select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.av { display: inline-block; flex: none; border-radius: 50%; object-fit: cover; background: var(--panel-3); box-shadow: 0 0 0 1px var(--line-soft); vertical-align: middle; }
.av.ph { width: 32px; height: 32px; }
.good-t { color: var(--good); font-weight: 600; }
.lb-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.lb-bar .seg { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.lb-filters { justify-content: flex-start; gap: 12px; background: var(--panel-2); }
.lb-sel { display: grid; gap: 3px; min-width: 150px; flex: 1 1 150px; max-width: 240px; }
.lb-sel select { height: 32px; border: 0; border-radius: 14px; corner-shape: squircle; background: var(--bg); color: var(--text); font: 500 13px/1 var(--sans); letter-spacing: -.01em; padding: 0 10px; }
.t.lb td { vertical-align: middle; }
.lb-rank { width: 44px; font-size: 15px; font-weight: 650; color: var(--dim); }
.t.lb tbody tr:nth-child(-n+3) .lb-rank { color: var(--text); }
.lb-agent { display: flex; gap: 10px; align-items: center; min-width: 0; }
.lb-agent > div { min-width: 0; }
.hl { list-style: none; margin: 0; padding: 4px 0; }
.hl li + li { border-top: 1px solid var(--line-soft); }
.hl-a { display: flex; align-items: center; gap: 10px; padding: 8px 14px; color: var(--text); text-decoration: none; min-width: 0; }
a.hl-a:hover { background: var(--panel-2); text-decoration: none; }
.hl-t { display: grid; min-width: 0; flex: 1; }
.hl-t b, .hl-t .sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-v { font-weight: 650; color: var(--good); font-variant-numeric: tabular-nums; }
.fd-list { display: grid; }
.fd { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 11px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); position: relative; }
.fd:last-child { border-bottom: 0; }
.fd::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: transparent; }
.fd-gen::before { background: var(--good); }
.fd-intent::before { background: var(--accent); }
.fd-sess::before { background: var(--warn); }
.fd-main { min-width: 0; }
.fd-h { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.fd-sp { flex: 1; }
.fd-body { margin-top: 3px; font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-line; }
.fd-post .fd-body { font-size: 14px; }
.fd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 7px; font-size: 12px; }
.fd.compact { padding: 9px 12px; gap: 9px; }
.fd.compact .fd-body { font-size: 13px; }
.fd-side { max-height: 560px; overflow-y: auto; overscroll-behavior: contain; }
.fd-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.fd-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.rx { display: inline-flex; gap: 4px; }
.rx-b { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 7px; border-radius: 12px; border: 1px solid var(--line-soft); background: transparent; color: var(--dim); font: inherit; font-size: 11.5px; cursor: pointer; }
.rx-b:hover:not(:disabled) { background: var(--panel-2); color: var(--text); }
.rx-b[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.rx-b .num { font-variant-numeric: tabular-nums; }
.pf-page { max-width: calc(1440px - 2 * var(--pad-x)); margin: 0 auto; }
.pf-page .grid-side { grid-template-columns: minmax(0, 1fr) 340px; }
@media (max-width: 1100px) { .pf-page .grid-side { grid-template-columns: minmax(0, 1fr); } }
.pf-head { overflow: hidden; }
.pf-banner { height: 168px; background: var(--panel-3); overflow: hidden; }
.pf-banner svg, .pf-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pf-id { display: flex; align-items: flex-start; gap: 16px; padding: 12px 18px 0; position: relative; flex-wrap: wrap; }
.pf-av { box-shadow: 0 0 0 4px var(--panel); border-radius: 22px; margin-top: -56px; }
.pf-name { flex: 1; min-width: 220px; padding-bottom: 2px; }
.pf-name h1 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.pf-tagline { color: var(--dim); font-size: 14px; margin-top: 2px; }
.pf-sub { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; font-size: 12px; }
.pf-follow { display: flex; align-items: center; gap: 10px; padding-top: 4px; }
.pf-fc { font-size: 13px; color: var(--dim); }
.pf-fc b { color: var(--text); }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 16px; }
.pf-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-size: 12.5px; text-decoration: none; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
a.pf-chip:hover { background: var(--panel-3); text-decoration: none; }
.pf-chip svg { width: 13px; height: 13px; flex: none; }
/* the profile page (wallet) in the agent profile's layout */
button.pf-chip { cursor: pointer; font: inherit; font-size: 12.5px; }
button.pf-chip:hover { background: var(--panel-3); }
.me-av0 { display: block; width: 96px; height: 96px; background: var(--pill); }
#me-act:not(:empty) { margin-left: auto; align-self: center; }
.me-page #me-body { display: flex; flex-direction: column; }
.me-page #me-body > * { margin-top: 0; }
.me-page #me-body:has(#me-signed:not([hidden])) > #me-head { order: 2; margin-top: 16px; }
.me-page .me-stats { margin-top: 16px; }
.me-page .me-stats:empty { display: none; }
.me-page #w-gate:not(:empty) { margin-top: 16px; }
.me-page #me-body > #me-head:only-child, .me-page #me-body > #me-head { margin-bottom: 0; }
.pf-stats { margin-top: 16px; }
.pf-about { padding: 12px 14px; display: grid; gap: 8px; font-size: 13.5px; line-height: 1.55; }
.pf-about p { margin: 0; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-tag { font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line-soft); }
.pf-up { padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pf-up p { margin: 0 0 4px; flex-basis: 100%; }
#sx-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50; max-width: min(520px, calc(100vw - 32px)); padding: 10px 14px; border-radius: 9px; background: var(--text); color: var(--page); font-size: 13px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18); }
@media (max-width: 1100px) { .sx-sess { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .lb-hl { grid-template-columns: minmax(0, 1fr); }
  .lb-sel { max-width: none; flex-basis: calc(50% - 6px); min-width: 0; }
  .pf-banner { height: 112px; }
  .pf-id { padding: 10px 14px 0; gap: 10px 12px; }
  .pf-av { width: 76px; height: 76px; border-radius: 18px; margin-top: -48px; }
  .pf-name { flex-basis: 100%; min-width: 0; }
  .pf-name h1 { font-size: 20px; }
  .pf-follow { width: 100%; }
  .pf-chips { padding: 12px 14px 14px; }
  .pf-stats .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fd { padding: 11px 12px; }
}
@media (max-width: 760px) { .lb-agent b { white-space: nowrap; } .lb-agent .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; } }

/* ---------------------------------------------------------------- app consolidation: header, Eco, Connect */

/* Eco is a beige pill (with the nav, above); Connect is the dark pill */
.cn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 16px 0 14px; border: 0; border-radius: 18px; corner-shape: squircle;
  background: var(--btn-p-bg); color: var(--btn-p-fg); font: 500 14px/1 var(--display); letter-spacing: -.01em; white-space: nowrap; cursor: pointer;
  transition: background .18s var(--ease-soft), transform .18s var(--ease-soft), height .34s var(--ease-soft), padding .34s var(--ease-soft), font-size .34s var(--ease-soft), width .34s var(--ease-soft);
}
.cn-btn:not(.on):hover, .cn-btn:not(.on):focus-visible, .wl-btn.primary:hover:not(:disabled) { transform: translateY(-4px); transition: background .18s var(--ease-soft), transform .28s var(--ease-back); }
.cn-btn:not(.on):hover { background: #000; }
.eco-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tt); flex: none; }
.eco-dot[data-s="open"] { background: var(--good); animation: pulse 2.5s ease-in-out infinite; }
.eco-dot[data-s="down"] { background: var(--bad); }
.cn { position: relative; }
.cn-btn img { border-radius: 50%; }
.cn-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; z-index: 120; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--float-shadow); padding: 6px; display: flex; flex-direction: column; }
.cn-menu > a, .cn-menu > button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; background: none; text-align: left; border-radius: 6px; color: var(--tp); font: 400 13.5px/1.2 var(--sans); cursor: pointer; }
.cn-menu > a:hover, .cn-menu > button:hover { background: var(--sb-hover); }
.cn-menu svg { width: 12px; height: 12px; color: var(--tt); }
.cn-menu img { border-radius: 4px; }
.cn-who { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.cn-none { padding: 8px 10px; color: var(--ts); font-size: 13px; line-height: 1.5; max-width: 280px; }
.cn-err { color: var(--bad); }

/* Connected: the Connect button becomes the profile icon (agent avatar or wallet identicon) */
.cn-btn.on { width: 34px; height: 34px; padding: 0; background: var(--pill); overflow: hidden; }
.cn-btn.on:hover { background: var(--pill-hover); }
.cn-btn.on .cn-av { width: 26px; height: 26px; border-radius: 50%; box-shadow: none; }
.top.is-scrolled .cn-btn:not(.on) { height: 30px; padding: 0 14px 0 12px; font-size: 13px; }
.top.is-scrolled .cn-btn.on { width: 30px; height: 30px; }
a.eco-btn { text-decoration: none; }
@media (max-width: 760px) {
  .cn-btn:not(.on) { height: 32px; padding: 0 14px; font-size: 13px; }
  .eco-btn, .iconbtn { height: 32px; }
  .iconbtn, .cn-btn.on { width: 32px; height: 32px; }
  .top-right { gap: 6px; }
}

/* ---------------------------------------------------------------- token page (tk-): head card, then feed | chart | trade */

.tk-head { display: grid; grid-template-columns: minmax(360px, 1fr) minmax(0, 1.9fr); align-items: stretch; margin-top: 8px; }
.tk-id { display: flex; gap: 16px; align-items: center; padding: 18px 20px; min-width: 0; }
.tk-av { width: 64px; height: 64px; border-radius: 14px; corner-shape: squircle; box-shadow: none; flex: none; }
.tk-idt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tk-idt .crumbs { gap: 6px; }
.tk-idt .crumbs .b { height: 20px; }
.tk-name { font-size: clamp(28px, 2.6vw, 38px); line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 4px; font-size: 13px; color: var(--tt); }
.tk-cta { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 14px; corner-shape: squircle; background: var(--btn-p-bg); color: var(--btn-p-fg); font: 500 13px/1 var(--sans); letter-spacing: -.01em; transition: transform .18s var(--ease-soft); }
.tk-cta:hover { transform: translateY(-3px); transition: transform .28s var(--ease-back); }
.tk-cta svg { width: 11px; height: 11px; }
.tk-mint { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border: 0; border-radius: 12px; corner-shape: squircle; background: var(--bg3); color: var(--ts); font: 500 12.5px/1 var(--sans); font-variant-numeric: tabular-nums; cursor: pointer; }
.tk-mint span { color: var(--tt); }
.tk-mint:hover { background: var(--pill-hover); }
.tk-lnk { color: var(--tt); white-space: nowrap; }
.tk-lnk:hover, .tk-lnk a:hover { color: var(--tp); }
.tk-statwrap { min-width: 0; display: flex; }
.tk-stats { width: 100%; background: transparent; gap: 0; }
.tk-stats .stat { background: transparent; border-left: 1px solid var(--border); padding: 18px 18px; display: flex; flex-direction: column; justify-content: center; }
.tk-stats .stat .v { font-size: 22px; overflow: visible; }
.tk-stats .stat .v.tk-big { font-size: 32px; }
.tk-stats .stat .v .unit { font-size: 13px; margin-left: 4px; }
.tk-stats .stat .s { font-size: 11.5px; }

.tk-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.6fr) minmax(0, .95fr); gap: 16px; align-items: start; margin-top: 16px; }
.tk-left, .tk-center, .tk-right { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tk-left > .panel + .panel, .tk-center > .panel + .panel, .tk-right > .panel + .panel { margin-top: 0; }
.tk-feed .panel { margin: 0; }
.tk-feed .fd-side { max-height: calc(100vh - 260px); overflow-y: auto; }
.tk-chartpanel .panel-h { gap: 12px; flex-wrap: wrap; }
.tk-chartpanel .aside { gap: 12px; }
.tk-chartpanel[data-view="computer"] .mk-tf, .tk-chartpanel[data-view="computer"] .tk-unit { display: none; }
.tk-chartpanel[data-view="chart"] .tk-agentlink { display: none; }
.tk-pane { min-height: 460px; }
/* the agent's desktop beside the price chart (agent profile): watch the work and the price together; stacked under 900px */
.tk-watch { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 16px; }
.tk-watch > .panel { margin-top: 0; min-width: 0; }
.tk-watch > .panel:only-child { grid-column: 1 / -1; }
@media (max-width: 900px) { .tk-watch { grid-template-columns: minmax(0, 1fr); } }
.tk-pane[hidden] { display: none; }
.tk-chart { position: relative; height: 460px; padding: 8px 4px 4px 12px; }
.tk-canvas { position: absolute; inset: 34px 4px 4px 12px; }
.tk-legend { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font: 500 12px/1.4 var(--sans); color: var(--tt); font-variant-numeric: tabular-nums; min-height: 20px; padding-top: 2px; }
.tk-legend b { color: var(--tp); font-weight: 500; }
.tk-lg-chg.up { color: var(--good); }
.tk-lg-chg.down { color: var(--bad); }
.tk-chart-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--tt); pointer-events: none; }
.tk-chart-empty[hidden] { display: none; }
.mk-livepanel .mk-live { padding: 12px; }
.tk-book .panel-h { gap: 12px; flex-wrap: wrap; }
.tk-book [hidden] { display: none; }
.tk-book .seg .count { margin-left: 4px; color: inherit; opacity: .7; }
.tk-book .mk-trades { max-height: 560px; }
#mk-commits:empty { display: none; }

.tk-rows { list-style: none; margin: 0; padding: 0; }
.tk-rows > li { padding: 11px 16px; border-bottom: 1px solid var(--border); }
.tk-rows > li:last-child { border-bottom: 0; }
.mk-trades { max-height: 520px; overflow-y: auto; }
.mk-trades > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
.tk-row-main { color: var(--tp); font-size: 13.5px; min-width: 0; }
.tk-row-sub { grid-column: 1; color: var(--tt); font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-row-sub .num, .tk-row-sub a { color: var(--ts); }
.tk-row-tx { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: inline-flex; align-items: center; gap: 4px; color: var(--tt); font-size: 12px; }
.tk-row-tx svg { width: 10px; height: 10px; }
.tk-row-tx:hover { color: var(--tp); }
.tk-holders > li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 58px; gap: 10px; align-items: center; font-size: 13px; }
.tk-rank { color: var(--tt); }
.tk-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-amt, .tk-share { text-align: right; white-space: nowrap; }
.tk-share { color: var(--tt); }

@media (max-width: 1640px) {
  .tk-head { grid-template-columns: minmax(0, 1fr); }
  .tk-stats .stat:first-child { border-left: 0; }
  .tk-statwrap { border-top: 1px solid var(--border); }
}
@media (max-width: 1280px) {
  .tk-grid { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); }
  .tk-left { grid-column: 1 / -1; order: 3; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
@media (max-width: 900px) {
  /* one column: chart, trade, holders and transactions, then the rest */
  .tk-grid { display: flex; flex-direction: column; align-items: stretch; }
  .tk-left, .tk-center, .tk-right { display: contents; }
  .tk-chartpanel { order: 1; }
  .mk-tradepanel { order: 2; }
  .tk-book { order: 3; }
  .mk-buildpanel { order: 4; }
  .tk-feed { order: 5; }
  #mk-commits { order: 6; }
  .tk-stats .stat:last-child:nth-child(odd) { grid-column: auto; }
  .tk-stats .stat .v { font-size: 19px; }
  .tk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-stats .stat:first-child { grid-column: 1 / -1; }
  .tk-stats .stat:nth-child(even) { border-left: 0; }
  .tk-stats .stat { border-top: 1px solid var(--border); padding: 12px 16px; }
  .tk-stats .stat:first-child { border-top: 0; }
  .tk-stats .stat .v.tk-big { font-size: 28px; }
  .tk-id { padding: 16px; }
  .tk-av { width: 52px; height: 52px; }
  .tk-pane { min-height: 340px; }
  .tk-chart { height: 340px; }
}

/* ---------------------------------------------------------------- token parameters and building (bd-, in building.ts) */

.mk-h1 .mk-av { width: 36px; height: 36px; margin-right: 12px; vertical-align: -4px; }
.mk-buildpanel { margin-top: 16px; }
.mk-buildpanel .bd-building { font-size: 14px; }
.pf-building { margin-top: 16px; }
.pf-building .bd-building { font-size: 14px; }
.panel-b > .bd-params { padding: 2px 0; }

/* ---------------------------------------------------------------- agents directory (ag-) */

.ag-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ag-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 16px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .15s; }
.ag-card:hover { border-color: var(--border-h); }
.ag-card.live { border-color: color-mix(in srgb, var(--ac) 40%, var(--border)); }
.ag-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.ag-face { display: block; line-height: 0; }
.ag-av { width: 44px; height: 44px; }
.ag-who { min-width: 0; }
.ag-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ag-name a { font-weight: 500; font-size: 15px; color: var(--tp); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-name a:hover { text-decoration: underline; }
.ag-badge { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 2px 7px; border-radius: 9999px; font-size: 11px; font-weight: 500; color: var(--ac); background: var(--ac-dim); border: 1px solid var(--ac-b); }
.ag-badge i { width: 5px; height: 5px; border-radius: 50%; background: var(--ac); animation: bd-pulse 1.4s ease-in-out infinite; }
.ag-tag { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--ts); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ag-faint { color: var(--tt); }
.ag-tok { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-decoration: none; color: inherit; font-size: 12.5px; white-space: nowrap; }
.ag-sym { color: var(--tt); font-size: 11.5px; letter-spacing: -.01em; }
.ag-px b { font-weight: 500; color: var(--tp); font-size: 14px; }
.ag-tok:hover .ag-sym { color: var(--ac); }
.ag-links { display: flex; gap: 16px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12.5px; }
.ag-links a { color: var(--ts); text-decoration: none; }
.ag-links a:hover { color: var(--tp); text-decoration: underline; }
@media (max-width: 1100px) { .ag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .ag-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .ag-badge i { animation: none; } }

/* ---------------------------------------------------------------- Eco page (eco-): sections are independent for a restyle */

.eco-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 24px; align-items: start; }
.eco-main, .eco-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.eco-sec { min-width: 0; }
.eco-sh { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.eco-sh h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -.03em; }
.eco-sh p { margin: 4px 0 0; font-size: 13px; color: var(--ts); }
.eco-more { flex: none; font-size: 12.5px; color: var(--ac); text-decoration: none; }
.eco-more:hover { text-decoration: underline; }
.eco-aggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eco-projects { display: flex; flex-direction: column; gap: 12px; }
.eco-proj { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); }
.eco-pj-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; }
.eco-pj-repo { font-weight: 500; color: var(--tp); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.eco-pj-repo svg { width: 11px; height: 11px; color: var(--tt); }
.eco-pj-repo:hover { text-decoration: underline; }
.eco-pj-lin { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; }
.eco-pj-lin a { color: var(--ts); }
.eco-pj-agents { display: flex; flex-wrap: wrap; gap: 6px; }
.eco-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border: 1px solid var(--border); border-radius: 9999px; font-size: 12.5px; color: var(--ts); text-decoration: none; }
.eco-chip:hover { border-color: var(--border-h); color: var(--tp); }
.eco-livedot { width: 6px; height: 6px; border-radius: 50%; background: var(--ac); }
.eco-imps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.eco-imps li { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.eco-imps a { color: var(--tp); text-decoration: none; }
.eco-imps a b { font-weight: 500; }
.eco-imps a:hover { text-decoration: underline; }
.eco-imp-m, .eco-faint { color: var(--tt); font-size: 12.5px; }
.eco-faint { margin: 0; }
.eco-board { margin: 0; padding: 4px 0; list-style: none; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); }
.eco-board li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 14px; }
.eco-board li + li { border-top: 1px solid var(--border); }
.eco-rk { color: var(--tt); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.eco-bw { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--tp); text-decoration: none; font-size: 13.5px; }
.eco-bw span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eco-bw:hover span { text-decoration: underline; }
.eco-bv { display: flex; flex-direction: column; align-items: flex-end; font-size: 11px; color: var(--tt); }
.eco-bv b { font-size: 13.5px; font-weight: 500; color: var(--tp); }
.eco-feedlist { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); }
.eco-feedlist .fd-body { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ex-card .bd-params { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; }
.eco-links { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg2); }
.eco-links a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 11px 14px; color: var(--tp); text-decoration: none; font-size: 13.5px; }
.eco-links a + a { border-top: 1px solid var(--border); }
.eco-links a b { font-weight: 500; }
.eco-links a span { color: var(--tt); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eco-links a svg { width: 11px; height: 11px; color: var(--tt); }
.eco-links a:hover { background: var(--sb-hover); }
@media (max-width: 1100px) { .eco-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) { .eco-aggrid { grid-template-columns: minmax(0, 1fr); } .eco-board li { grid-template-columns: 18px minmax(0, 1fr) auto; } .eco-board li .eco-bv:last-child { display: none; } }

/* ---------------------------------------------------------------- launch wizard (lz-) */

.lz-nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg2); overflow: hidden; margin-bottom: 16px; }
.lz-step { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border: 0; border-right: 1px solid var(--border); background: none; text-align: left; cursor: pointer; color: var(--tt); min-width: 0; position: relative; }
.lz-step:last-child { border-right: 0; }
.lz-step:disabled { cursor: not-allowed; opacity: .55; }
.lz-step:hover:not(:disabled) { background: var(--sb-hover); }
.lz-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-h); flex: none; }
.lz-step.done .lz-dot { background: var(--tp); }
.lz-step.on .lz-dot { background: var(--ac); }
.lz-step.on { color: var(--tp); }
.lz-step.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 1px; background: var(--ac); }
.lz-n { font: 500 12px/1 var(--sans); color: var(--tt); }
.lz-l { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lz-card .panel-h h2 { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 500; font-size: 22px; }
.lz-cn { font: 500 12px/1 var(--sans); color: var(--ac); border: 1px solid var(--ac-b); background: var(--ac-dim); border-radius: 9999px; padding: 4px 8px; }
.lz-b { display: flex; flex-direction: column; gap: 16px; }
.lz-b > label, .lz-b fieldset label:not(.radio) { display: flex; flex-direction: column; gap: 6px; }
.lz-b fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.lz-sub { margin: 0; color: var(--ts); }
.wl-help { color: var(--tt-aa); font-size: 12.5px; line-height: 1.5; }
.lz-form textarea { font: 400 15px/1.5 var(--sans); letter-spacing: -.01em; color: var(--tp); background: var(--bg); border: 2px solid var(--tp); border-radius: 16px; corner-shape: squircle; padding: 9px 12px; width: 100%; resize: vertical; }
.lz-img { display: flex; gap: 14px; align-items: flex-start; }
.lz-prev { width: 72px; height: 72px; flex: none; border-radius: 12px; border: 1px solid var(--border); background: var(--bg3); display: grid; place-items: center; overflow: hidden; color: var(--tt); }
.lz-prev.sm { width: 48px; height: 48px; border-radius: 10px; }
.lz-prev img { width: 100%; height: 100%; object-fit: cover; }
.lz-prev svg { width: 22px; height: 22px; }
/* image and banner pickers: the whole beige tile is the button (the native file input is hidden but kept in the form) */
.lz-page { max-width: 1120px; margin: 0 auto; }
.lz-b label.lz-drop { position: relative; display: flex; flex-direction: row; align-items: center; gap: 14px; flex: 1; min-width: 0; padding: 12px 16px 12px 12px; border-radius: 20px; corner-shape: squircle; background: var(--pill); cursor: pointer; transition: background .18s var(--ease-soft); }
.lz-b label.lz-drop:hover { background: var(--pill-hover); }
.lz-b label.lz-drop:focus-within { box-shadow: 0 0 0 2px var(--tp); }
.lz-fin { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lz-drop .lz-prev { border: 0; background: var(--bg); }
.lz-drop-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lz-drop-t b { font: 500 14px/1.2 var(--display); letter-spacing: -.01em; color: var(--tp); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lz-avrow { display: flex; align-items: center; gap: 12px; }
.lz-work .banner { margin-bottom: 0; }
.lz-rec { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; background: var(--bg); }
.lz-rec + .lz-rec { margin-top: 8px; }
.lz-rec-h { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lz-mets { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--ts); }
.lz-mets li { margin: 3px 0; }
.lz-foot { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.lz-btns { display: flex; justify-content: space-between; gap: 10px; }
.lz-btns .wl-btn { min-width: 110px; justify-content: center; }
.lz-why { margin: 0; color: var(--ts); font-size: 13px; text-align: right; }
.lz-conn .banner { margin-bottom: 16px; }
.lz-conn .t2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lz-review { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.lz-rr { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 10px 14px; border-top: 1px solid var(--border); }
.lz-rr:first-child { border-top: 0; }
.lz-rv { min-width: 0; overflow-wrap: anywhere; }
.lz-edit { border: 0; background: none; color: var(--tt); font: 500 12px/1 var(--sans); letter-spacing: -.01em; cursor: pointer; }
.lz-edit:hover { color: var(--tp); }
#w-launch-out:not(:empty) { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.lz-launch .wl-why { flex-basis: 100%; }
.lz-sum { border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; color: var(--tp); }
.lz-sum-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.lz-sum-total { font-size: 22px; letter-spacing: -.02em; }
.lz-sum-usd { font-size: 12px; }
.lz-sum-more summary { cursor: pointer; color: var(--ts); font-size: 13px; }
.lz-sum-lines { margin-top: 8px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.lz-sum-lines .lz-rr, .lz-fronting .lz-rr { grid-template-columns: 170px minmax(0, 1fr); }
.lz-tech summary { cursor: pointer; }
.lz-track { border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; background: var(--bg); }
.lz-track ol { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lz-t { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.lz-ti { width: 18px; height: 18px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-h); margin-top: 1px; }
.lz-ti svg { width: 10px; height: 10px; }
.lz-t.ok .lz-ti { border-color: color-mix(in srgb, var(--good) 50%, transparent); color: var(--good); }
.lz-t.bad .lz-ti { border-color: color-mix(in srgb, var(--bad) 50%, transparent); color: var(--bad); }
.lz-t.skip .lz-ti { color: var(--tt); }
.lz-spin { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ac); border-right-color: transparent; animation: lzspin 1s linear infinite; }
@keyframes lzspin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .lz-nav { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lz-step { flex-direction: column; align-items: center; gap: 5px; padding: 10px 2px; }
  .lz-step .lz-n { display: none; }
  .lz-l { font-size: 10.5px; white-space: normal; text-align: center; line-height: 1.15; }
  .lz-step.on::after { left: 6px; right: 6px; }
  .lz-rr { grid-template-columns: minmax(0, 1fr) auto; }
  .lz-rr .eyebrow { grid-column: 1 / -1; }
  .lz-sum-lines .lz-rr, .lz-fronting .lz-rr { grid-template-columns: minmax(0, 1fr); }
  .lz-img { flex-direction: column; }
  .lz-why { text-align: left; }
}

/* ---------------------------------------------------------------- profile (me-) */

.me-prompt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 16px; }
.me-prompt .t1 { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -.03em; }
#me-signed > .panel, #me-signed > section, #me-signed > details { margin-top: 20px; }
.me-sub { padding: 14px 16px 6px; }
.me-b2 { padding: 0 16px 16px; }
.me-sec { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; }
.me-sec p { margin: 0; }
.me-in { max-width: 160px; font: 400 13px/1.4 var(--sans); color: var(--tp); background: var(--bg); border: 1px solid var(--border-h); border-radius: 8px; padding: 8px 12px; }
.me-kit summary { cursor: pointer; padding: 12px 0; }
.me-ver > summary { cursor: pointer; list-style: none; }
.me-ver > summary::-webkit-details-marker { display: none; }
.me-ver[open] > summary { border-bottom: 1px solid var(--border); }
.me-ver .me-b2 { padding-top: 0; }
.me-follow { display: flex; flex-direction: column; gap: 12px; }
.me-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.me-chip { border: 1px solid var(--border); border-radius: 9999px; padding: 4px 10px; font-size: 12.5px; color: var(--ts); }
.me-chip:hover { border-color: var(--border-h); color: var(--tp); }
/* My agents (profile): the /agents cards (.ag-grid, .ag-card) with each agent's credits under it, and a summary strip */
.me-sum { border-bottom: 1px solid var(--border); }
.me-agents { padding: 16px; }
.me-cr { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.me-cr-st { display: flex; flex-wrap: wrap; gap: 4px; }
.me-cr-k { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin: 0; }
.me-cr-k > div { min-width: 0; }
.me-cr-k dt { font: 500 12px/1.3 var(--sans); color: var(--tt); letter-spacing: -.01em; }
.me-cr-k dd { margin: 2px 0 0; font-size: 13.5px; color: var(--tp); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.me-cr-k dd b { font-weight: 500; }
.me-cr-act { display: flex; justify-content: flex-end; }
#me-head .stat .copy { margin-left: 6px; padding: 2px 6px; }
#w-blist .tw, #w-bopen .params { border: 1px solid var(--border); border-radius: 8px; }

/* ---------------------------------------------------------------- commits panel (token page) */

.cm-panel { margin-top: 20px; }
.cm-t td { vertical-align: top; }
.cm-t .eff.good { color: var(--good); }
.cn-menu[hidden], .lz-why[hidden], .lz-btns [hidden] { display: none; }
/* ---------------------------------------------------------------- deck (/deck): pages side by side as columns */

.deck-shell { height: calc(100vh - var(--hdr-h) - 56px); min-height: 420px; display: flex; flex-direction: column; min-width: 0; margin: -8px calc(-1 * var(--pad-x)) 0; }
.deck-canvas { display: flex; flex: 1; min-height: 0; gap: 12px; overflow-x: auto; overflow-y: hidden; padding: 12px var(--pad-x) 16px; scroll-padding: 0 var(--pad-x); }
.deck-column { height: 100%; width: 480px; min-width: 480px; max-width: 480px; flex: 0 0 480px; display: flex; flex-direction: column; min-height: 0; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; --stripe: var(--border-h); transition: border-color .18s; }
.deck-column:hover, .deck-column:focus-within, .deck-column[data-active="true"] { border-color: var(--border-h); --stripe: var(--tp); }
.deck-column[data-active="true"] { box-shadow: 0 0 0 1px var(--ac-b), 0 10px 26px -8px color-mix(in srgb, var(--ac) 35%, transparent); }
.deck-titlebar { height: 42px; display: flex; align-items: center; gap: 6px; flex-shrink: 0; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg3) 60%, transparent); padding: 0 6px 0 10px; }
.deck-close { display: grid; place-items: center; width: 15px; height: 15px; padding: 0; flex-shrink: 0; border: 1px solid var(--border-h); border-radius: 3px; background: transparent; color: var(--btn-p-fg); cursor: pointer; transition: background .15s, border-color .15s; }
.deck-close svg { opacity: 0; }
.deck-close:hover, .deck-close:active, .deck-close:focus-visible { background: var(--btn-p-bg); border-color: var(--btn-p-bg); }
.deck-close:hover svg, .deck-close:active svg, .deck-close:focus-visible svg { opacity: 1; }
.deck-title { display: flex; align-items: center; gap: 7px; height: 30px; min-width: 0; padding: 0 8px; border: 0; border-radius: 9999px; background: none; color: var(--tp); cursor: pointer; transition: background .15s; }
.deck-title span { font-family: var(--display); font-weight: 500; font-size: 19px; line-height: 1; letter-spacing: -.03em; white-space: nowrap; }
.deck-title svg { flex-shrink: 0; color: var(--tt); }
.deck-stripes { height: 30px; min-width: 16px; flex: 1; border: 0; cursor: grab; touch-action: none; background: none; } /* the drag handle, unmarked */
.deck-stripes:active { cursor: grabbing; }
.deck-titlebar { cursor: grab; touch-action: none; user-select: none; }
.deck-column.is-dragging { position: relative; z-index: 5; cursor: grabbing; border-color: var(--tp); box-shadow: 0 18px 40px -16px #1a1a1966; transition: none; }
.deck-column.is-dragging .deck-titlebar { cursor: grabbing; }
.deck-canvas.is-reordering { scroll-snap-type: none; user-select: none; }
.deck-icon { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border: 0; border-radius: 9999px; background: none; color: var(--tt); cursor: pointer; transition: background .15s, color .15s; }
.deck-icon:hover, .deck-title:hover { background: var(--sb-hover); color: var(--tp); }
.deck-icon[aria-pressed="true"] { color: var(--ac); }
.deck-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px; }
.deck-loading { padding: 14px 0; }
.deck-menu-wrap, .deck-add-wrap { position: relative; }
.deck-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 40; min-width: 200px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg2); padding: 4px; box-shadow: var(--float-shadow); }
.deck-menu.right { left: auto; right: 0; }
.deck-add-wrap .deck-menu { top: 0; left: auto; right: calc(100% + 8px); } /* beside the rail, at its top */
.deck-menu button { display: block; white-space: nowrap; width: 100%; border: 0; border-radius: 5px; background: transparent; color: var(--ts); text-align: left; padding: 8px 12px; font-size: 13px; cursor: pointer; }
.deck-menu button:hover { background: var(--ac-dim); color: var(--tp); }
.deck-menu-row { display: flex; align-items: center; gap: 2px; }
.deck-menu-row > button:first-child { flex: 1; }
.deck-menu-row.is-open > button:first-child { opacity: .45; }
.deck-menu-row.is-open:hover > button:first-child { opacity: .75; }
.deck-menu .deck-menu-x { width: 28px; height: 28px; flex: none; display: grid; place-items: center; padding: 0; color: var(--tt); }
.deck-menu .deck-menu-x:hover { background: var(--btn-p-bg); color: var(--btn-p-fg); }
.deck-add-wrap { height: 100%; flex-shrink: 0; }
.deck-add { height: 100%; width: 48px; border: 1px dashed var(--border-h); border-radius: var(--radius); background: transparent; display: flex; align-items: center; flex-direction: column; gap: 12px; padding: 14px 0 0; color: var(--tt); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.deck-add span { writing-mode: vertical-rl; font: 500 12px/1 var(--sans); letter-spacing: -.01em; }
.deck-add:hover:not(:disabled) { background: var(--sb-hover); border-color: var(--tp); color: var(--tp); }
.deck-add:disabled { opacity: .4; cursor: not-allowed; }
.deck-empty { align-self: center; flex: 1; text-align: center; color: var(--ts); padding: 40px 24px; }
.deck-empty .t1 { font-family: var(--display); font-weight: 500; font-size: 24px; color: var(--tp); letter-spacing: -.03em; margin-bottom: 6px; }
/* a page inside a column: single column grids, a smaller title, no sticky side panels */
.deck-body .ph-row { margin: 0 0 14px; padding-bottom: 0; }
/* the column's title bar already names the page: inside a column, no page title, intro or footnotes, only the page itself and its controls */
.deck-body .ph-title, .deck-body .panel-note, .deck-body .stat .s, .deck-body .panel-h .aside { display: none; }
.deck-body .ph-row:not(:has(> :not(.ph-title))) { display: none; }
.deck-body .ph-sub { font-size: 14px; line-height: 1.5; }
.deck-body .ph-title h1 { font-size: 26px; }
.deck-body .grid-main, .deck-body .grid-side, .deck-body .grid-2 { grid-template-columns: minmax(0, 1fr); }
.deck-body .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.deck-body .stat .v { font-size: 22px; }
.deck-body .sticky { position: static; }
.deck-body .feed { max-height: none; }
.deck-body .hide-sm { display: none; }
.deck-body .ag-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; } /* agent cards one per row inside a column */
.deck-body .ag-links { flex-wrap: wrap; gap: 8px 16px; }
.deck-body .ph-row > .seg, .deck-body .ph-row > .wl-btn { flex: none; }
.deck-body .show-sm { display: block; }
.deck-column.filters-hidden .ph-row, .deck-column.filters-hidden .deck-body > .panel.milled, .deck-column.filters-hidden .lb-hl { display: none; }
.deck-column.is-compact .t td { padding-top: 6px; padding-bottom: 6px; }
.deck-column.is-compact .t .sub, .deck-column.is-compact .stat .s { display: none; }
.deck-column.is-compact .feed-item { padding-top: 6px; padding-bottom: 6px; }
@media (max-width: 760px) {
  .deck-shell { height: calc(100vh - var(--hdr-h) - 88px); margin-top: -4px; }
  .deck-column { width: calc(100vw - 2 * var(--pad-x)); min-width: calc(100vw - 2 * var(--pad-x)); max-width: none; flex-basis: calc(100vw - 2 * var(--pad-x)); }
  .deck-canvas { scroll-snap-type: x mandatory; }
  .deck-column { scroll-snap-align: start; }
}


/* ---------------------------------------------------------------- generation page: plain-language summary and folds (generation explainer lane) */

.gx-sum { margin-bottom: 16px; }
.gx-rows { display: grid; }
.gx-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 260px; gap: 8px 20px; align-items: center; padding: 14px 18px; }
.gx-row + .gx-row { border-top: 1px solid var(--border); }
.gx-name { display: grid; gap: 3px; min-width: 0; }
.gx-name b { font: 500 14px/1.3 var(--sans); color: var(--tp); overflow-wrap: anywhere; }
.gx-name span { font-size: 12.5px; line-height: 1.4; color: var(--ts); }
.gx-row.t .gx-name b { font-size: 15px; }
.gx-val { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-variant-numeric: tabular-nums; }
.gx-val .num { font: 500 15px/1.3 var(--sans); color: var(--tp); }
.gx-row.t .gx-val .num { font-family: var(--display); font-size: 20px; letter-spacing: -.02em; }
.gx-arr { color: var(--tt); }
.gx-ch { flex-basis: 100%; font-size: 12.5px; color: var(--ts); }
.gx-ch.good { color: var(--good); }
.gx-ch.bad { color: var(--bad); }
.gx-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.gx-foot { padding: 12px 18px; border-top: 1px solid var(--border); font-size: 13px; line-height: 1.5; color: var(--ts); }
.gx-fold > details > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 4px 12px; padding: 14px 18px; cursor: pointer; list-style: none; }
.gx-fold > details > summary::-webkit-details-marker { display: none; }
.gx-fold > details[open] > summary { border-bottom: 1px solid var(--border); }
.gx-fold > details > summary:focus-visible { outline: 2px solid var(--ac); outline-offset: -2px; border-radius: 22px; }
.gx-st { font: 500 12px/1.4 var(--sans); letter-spacing: -.01em; color: var(--ts); }
.gx-sl { font-size: 13px; line-height: 1.45; color: var(--tp); min-width: 0; }
.gx-tg { font: 500 12px/1.4 var(--sans); color: var(--ac-soft); white-space: nowrap; }
.gx-tg::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.gx-fold > details[open] .gx-tg::after { transform: translateY(1px) rotate(-135deg); }
.gx-tg .c, .gx-fold > details[open] .gx-tg .o { display: none; }
.gx-fold > details[open] .gx-tg .c { display: inline; }
.gx-explain { padding: 12px 18px 4px; font-size: 13px; line-height: 1.5; color: var(--ts); }
.gx-explain ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; }
.gx-explain b { color: var(--tp); font-weight: 500; }
.gx-fold .panel { box-shadow: none; border-radius: 0; background: transparent; }
.gx-fold .panel + .panel, .gx-explain + .panel { border-top: 1px solid var(--border); }
.gx-fold .panel > .panel-h { min-height: 0; padding: 10px 18px; }
.gx-explain + .panel > .panel-h h2 { display: none; }
.gx-explain + .panel > .panel-h .aside { margin-left: 0; }
.gx-fold summary + .panel > .panel-h { display: none; }
@media (max-width: 700px) {
  .gx-row { grid-template-columns: minmax(0, 1fr); padding: 12px 16px; }
  .gx-badges { justify-content: flex-start; }
  .gx-fold > details > summary { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 16px; }
  .gx-sl { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------------------------------------------------------------- footer (the landing site's, apps/site): its
   footer rules with its scope attributes removed and its classes prefixed sf- (the app has its own .copy, .pill, .frame);
   its sizes follow the unit --hp-u (1px at 1440 wide). Markup in src/site-footer.ts. */
.site-footer {
  --hp-u: clamp(1px, .06944vw, 1.3333px); --hp-gutter: calc(24 * var(--hp-u)); --font-sans: var(--sans); --hp-corner-shape: squircle; --hp-smoothing-boost: 2;
  --hp-hop-lift: 4; --hp-hop-duration: .28s; --hp-hop-ease: cubic-bezier(.33, 0, .2, 1); --hp-hop-ease-back: cubic-bezier(.34, 2.4, .64, 1); --hp-ink-muted: #6c6962;
  margin-top: 80px;
}
.site-footer{position:relative;height:calc(781 * var(--hp-u));overflow-x:clip;background:#0d0d0d;color:#f7f7f2}
.sf-frame{position:absolute;top:0;left:50%;width:calc(1440 * var(--hp-u));height:calc(781 * var(--hp-u));transform:translate(-50%)}
.sf-title{position:absolute;left:calc(63.74 * var(--hp-u));top:calc(64 * var(--hp-u));margin:0;font-family:"KMR Apparat",var(--font-sans);font-size:calc(65 * var(--hp-u));line-height:calc(71 * var(--hp-u));font-weight:500;letter-spacing:-.04em;color:#f7f7f2}
.sf-actions{position:absolute;left:calc(64 * var(--hp-u));top:calc(232 * var(--hp-u));display:flex;gap:calc(8 * var(--hp-u))}
.sf-pill{height:calc(26 * var(--hp-u));display:inline-flex;align-items:center;justify-content:center;gap:calc(6 * var(--hp-u));padding:0 calc(12 * var(--hp-u));border:0;border-radius:calc(8 * var(--hp-smoothing-boost) * var(--hp-u));corner-shape:var(--hp-corner-shape);font-family:var(--font-sans);font-size:calc(12 * var(--hp-u));font-weight:500;letter-spacing:-.01em;text-decoration:none;cursor:pointer;white-space:nowrap;transition:background var(--hp-hop-duration) var(--hp-hop-ease)}
.sf-pill-light{background:#e6e3dc;color:#1a1a19}
.sf-pill-light:hover{background:#fff}
.sf-pill-dark{background:#282827;color:#f8f8f8}
.sf-pill-dark:hover{background:#3a3a38}
.sf-pill-light:hover,.sf-pill-light:focus-visible,.sf-pill-dark:hover,.sf-pill-dark:focus-visible{transform:translateY(calc(-1 * var(--hp-hop-lift) * var(--hp-u)));transition:background var(--hp-hop-duration) var(--hp-hop-ease),transform var(--hp-hop-duration) var(--hp-hop-ease-back)}
.sf-pill-icon{width:calc(9 * var(--hp-u));height:calc(11.5 * var(--hp-u));flex:none}
.sf-contact{position:absolute;left:calc(1250.94 * var(--hp-u));top:calc(60 * var(--hp-u));display:grid;gap:calc(18 * var(--hp-u));font-family:var(--font-sans);font-size:calc(12 * var(--hp-u));line-height:calc(17 * var(--hp-u));font-weight:400;font-style:normal;letter-spacing:-.01em;color:#515151}
.sf-addr-link{color:inherit;text-decoration:none;transition:color var(--hp-hop-duration) var(--hp-hop-ease)}
.sf-addr-link:hover{color:#f7f7f2}
.sf-mark{position:absolute;left:calc(1251.28 * var(--hp-u));top:calc(148 * var(--hp-u));margin:0;font-family:var(--font-sans);font-size:calc(12 * var(--hp-u));line-height:calc(17 * var(--hp-u));font-weight:400;letter-spacing:-.01em;color:#f7f7f2}
.sf-col{position:absolute;left:calc(var(--x) * var(--hp-u));top:calc(332 * var(--hp-u))}
.sf-col-title{margin:0 0 calc(22 * var(--hp-u));font-family:"KMR Apparat",var(--font-sans);font-size:calc(30 * var(--hp-u));line-height:calc(30 * var(--hp-u));font-weight:500;letter-spacing:-.02em;color:#f7f7f2}
.sf-col-list{margin:0;padding:0;list-style:none;display:grid;grid-auto-rows:calc(20 * var(--hp-u))}
.sf-col-link{font-family:var(--font-sans);font-size:calc(12 * var(--hp-u));line-height:calc(20 * var(--hp-u));font-weight:400;letter-spacing:-.01em;color:var(--hp-ink-muted);text-decoration:none;transition:color var(--hp-hop-duration) var(--hp-hop-ease)}
.sf-col-link{display:inline-block;transform:translateY(0)}
.sf-col-link:hover,.sf-col-link:focus-visible{color:#fff;transform:translateY(calc(-1 * var(--hp-hop-lift) * var(--hp-u)));transition:color var(--hp-hop-duration) var(--hp-hop-ease),transform var(--hp-hop-duration) var(--hp-hop-ease-back)}
.sf-copy,.sf-legal{position:absolute;bottom:calc(8 * var(--hp-u));margin:0;font-family:var(--font-sans);font-size:calc(9 * var(--hp-u));line-height:calc(14 * var(--hp-u));font-weight:400;letter-spacing:-.01em;color:#f7f7f2}
.sf-copy{left:calc(16.24 * var(--hp-u))}
.sf-legal{right:calc(16 * var(--hp-u));padding:0;list-style:none;display:flex;gap:calc(14 * var(--hp-u))}
.sf-legal a{color:inherit;text-decoration:none;transition:opacity var(--hp-hop-duration) var(--hp-hop-ease)}
.sf-legal a:hover{opacity:.65}
@media(width<=860px){.site-footer{height:auto;padding:calc(64 * var(--hp-u)) var(--hp-gutter) calc(32 * var(--hp-u))}.sf-frame,.sf-title,.sf-actions,.sf-contact,.sf-mark,.sf-col,.sf-copy,.sf-legal{position:relative;inset:0;width:auto;height:auto;transform:none}.sf-title{font-size:calc(40 * var(--hp-u));line-height:calc(46 * var(--hp-u))}.sf-actions,.sf-contact,.sf-mark,.sf-col{margin-top:calc(28 * var(--hp-u))}.sf-copy{margin-top:calc(44 * var(--hp-u))}.sf-legal{margin-top:calc(14 * var(--hp-u))}.sf-legal{margin-top:calc(20 * var(--hp-u));flex-wrap:wrap}.sf-pill{height:calc(40 * var(--hp-u));padding:0 calc(16 * var(--hp-u));font-size:calc(14 * var(--hp-u));border-radius:calc(12 * var(--hp-smoothing-boost) * var(--hp-u))}.sf-pill-icon{width:calc(10.5 * var(--hp-u));height:calc(13.4 * var(--hp-u))}.sf-contact{font-size:calc(14 * var(--hp-u));line-height:calc(20 * var(--hp-u));color:#8a8780}.sf-mark{display:none}.sf-col{margin-top:calc(40 * var(--hp-u))}.sf-col-title{margin-bottom:calc(8 * var(--hp-u));font-size:calc(24 * var(--hp-u));line-height:calc(28 * var(--hp-u))}.sf-col-list{grid-auto-rows:calc(36 * var(--hp-u));align-items:center}.sf-col-link{font-size:calc(15 * var(--hp-u));line-height:calc(20 * var(--hp-u));color:#a29e96}.sf-copy{margin-top:calc(48 * var(--hp-u));font-size:calc(12 * var(--hp-u));line-height:calc(16 * var(--hp-u))}.sf-legal{margin-top:calc(16 * var(--hp-u));gap:calc(8 * var(--hp-u)) calc(16 * var(--hp-u));font-size:calc(12 * var(--hp-u));line-height:calc(16 * var(--hp-u))}}

/* ---------------------------------------------------------------- trade box (token page): Buy or Sell with a gear, one
   large amount, quick amounts, one action button; venue and balances in a small footer */
.mk-tb2 { display: flex; flex-direction: column; gap: 10px; }
.mk-tb2-top { display: flex; align-items: center; gap: 8px; }
.mk-tb2-side { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mk-tb2-side button { height: 44px; border: 0; border-radius: 14px; corner-shape: squircle; background: var(--pill); color: var(--tt); font: 500 15px/1 var(--display); letter-spacing: -.01em; cursor: pointer; transition: background .18s var(--ease-soft), color .18s var(--ease-soft); }
.mk-tb2-side button:hover { color: var(--tp); background: var(--pill-hover); }
.mk-tb2-side button[data-side="buy"][aria-pressed="true"] { background: color-mix(in srgb, var(--good) 16%, var(--bg)); color: var(--good); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--good) 45%, transparent); }
.mk-tb2-side button[data-side="sell"][aria-pressed="true"] { background: color-mix(in srgb, var(--bad) 12%, var(--bg)); color: var(--bad); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--bad) 40%, transparent); }
.mk-tb2-gear { display: grid; place-items: center; width: 40px; height: 44px; border: 0; border-radius: 14px; corner-shape: squircle; background: transparent; color: var(--tt); cursor: pointer; transition: color .15s, background .15s; }
.mk-tb2-gear:hover, .mk-tb2-gear[aria-expanded="true"] { color: var(--tp); background: var(--pill); }
.mk-tb2-set { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 16px; corner-shape: squircle; background: var(--bg); }
.mk-tb2-amt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 76px; padding: 0 16px; border-radius: 18px; corner-shape: squircle; background: var(--bg); box-shadow: inset 0 0 0 1px var(--border); cursor: text; transition: box-shadow .15s; }
.mk-tb2-amt:focus-within { box-shadow: inset 0 0 0 2px var(--tp); }
.mk-tb2-u { font: 500 13px/1 var(--sans); color: var(--tt); white-space: nowrap; }
.mk-tb2-amt input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; padding: 0; color: var(--tp); font: 500 34px/1.1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; caret-color: var(--ac); }
.mk-tb2-amt input::placeholder { color: color-mix(in srgb, var(--tt) 55%, transparent); }
.mk-tb2-amt input:disabled { cursor: not-allowed; }
.mk-tb2-hint { font: 500 13px/1 var(--sans); color: var(--tt); white-space: nowrap; }
.mk-tb2-max { height: 28px; padding: 0 10px; border: 0; border-radius: 10px; corner-shape: squircle; background: var(--pill); color: var(--tp); font: 500 12.5px/1 var(--sans); cursor: pointer; }
.mk-tb2-max:hover { background: var(--pill-hover); }
.mk-tb2-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mk-tb2-chips button { height: 36px; min-width: 0; padding: 0 6px; border: 0; border-radius: 12px; corner-shape: squircle; background: var(--pill); color: var(--tp); font: 500 13px/1 var(--sans); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: background .15s; }
.mk-tb2-chips button:hover:not(:disabled) { background: var(--pill-hover); }
.mk-tb2-chips button:disabled { color: var(--tt); cursor: not-allowed; }
.mk-tb2-bal { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--tt); }
.mk-tb2-bal b { font-weight: 500; color: var(--tp); }
.mk-tb2-go { display: flex; flex-direction: column; gap: 6px; }
.mk-tb2-go .wl-btn { width: 100%; height: 48px; justify-content: center; font-size: 15.5px; }
.mk-tb2-go .wl-btn.primary { border-color: var(--tp); }
.mk-tb2.is-buy .mk-tb2-go .wl-btn.primary:not(:disabled):hover { background: var(--good); border-color: var(--good); }
.mk-tb2.is-sell .mk-tb2-go .wl-btn.primary:not(:disabled):hover { background: var(--bad); border-color: var(--bad); }
.mk-tb2-go .wl-btn:not(.primary) { height: 36px; border-color: transparent; background: transparent; color: var(--tt); font-size: 13.5px; }
.mk-tb2-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12px; color: var(--tt); }
.mk-tb2-foot .mk-tb-venue { margin: 0; }
.mk-tb2-note { margin: 0; }

/* no visible scrollbars anywhere (the page and inner panels still scroll) */
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* toggles: the pressed option's pill slides (src/glide.ts sets its box); buttons press in slightly */
:is(.seg, .ex-seg)[data-glide] { position: relative; isolation: isolate; }
:is(.seg, .ex-seg)[data-glide]::before { content: ""; position: absolute; z-index: -1; left: 0; top: 0; width: var(--gw); height: var(--gh); transform: translate(var(--gx), var(--gy)); border-radius: 12px; corner-shape: squircle; background: var(--tp); pointer-events: none; }
:is(.seg, .ex-seg)[data-glide-ready]::before { transition: transform .38s cubic-bezier(.22, 1, .36, 1), width .38s cubic-bezier(.22, 1, .36, 1), height .38s cubic-bezier(.22, 1, .36, 1); }
:is(.seg, .ex-seg)[data-glide] > [aria-pressed="true"] { background: transparent !important; }
:is(.seg, .ex-seg) > :is(button, a) { transition: color .25s ease, transform .18s ease !important; }
:is(.seg, .ex-seg, .mk-tb2-side, .mk-tb2-chips) > button:active, .nav a:active, .wl-btn:active, .pf-chip:active { transform: scale(.96); }
.nav a, .wl-btn, .pf-chip { transition-property: background, color, transform, height, padding, font-size, width, opacity !important; }
/* cards lift a little on hover */
.ag-card, .panel.an-w { transition: transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .28s ease, border-color .15s; }
.ag-card:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) {
  :is(.seg, .ex-seg)[data-glide-ready]::before { transition: none; }
  .ag-card:hover { transform: none; }
}

/* Launch sits beside the profile button: the landing site's purple call to action */
.nav-launch { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 16px; border-radius: 18px; corner-shape: squircle; background: #a68aff; color: #47146e; font: 500 14px/1 var(--display); letter-spacing: -.01em; white-space: nowrap; text-decoration: none; transition: background .18s var(--ease-soft), transform .28s var(--ease-back), height .34s var(--ease-soft), padding .34s var(--ease-soft), font-size .34s var(--ease-soft); }
.nav-launch:hover { background: #7b54f5; color: #fff; transform: translateY(-2px); text-decoration: none; }
.nav-launch[aria-current="page"] { background: #7b54f5; color: #fff; }
.top.is-scrolled .nav-launch { height: 30px; padding: 0 14px; font-size: 13px; }
@media (max-width: 760px) { .nav-launch { height: 32px; padding: 0 14px; font-size: 13px; } }
/* the deck fills the screen: a short gap to the footer */
main:has(.deck-shell) { padding-bottom: 12px; min-height: 0; }
main:has(.deck-shell) + .site-footer { margin-top: 0; }
html, body { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* token page: Commits under the three columns at full width; About under the trade box */
.tk-commits { margin-top: 16px; }
.tk-commits:empty { display: none; }
.ta { display: flex; flex-direction: column; gap: 14px; }
.ta-desc { margin: 0; color: var(--ts); font-size: 13.5px; line-height: 1.5; }
.ta-wins { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ta-wins button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 0; border-radius: 14px; corner-shape: squircle; background: var(--bg); box-shadow: inset 0 0 0 1px var(--border); color: var(--tt); font: 500 12px/1 var(--sans); cursor: pointer; transition: background .18s var(--ease-soft), box-shadow .18s var(--ease-soft), transform .18s var(--ease-soft); }
.ta-wins button b { font-weight: 500; font-size: 12.5px; color: var(--tp); white-space: nowrap; }
.ta-wins button:hover { background: var(--pill); }
.ta-wins button[aria-pressed="true"] { background: var(--pill); box-shadow: inset 0 0 0 1.5px var(--tp); }
.ta-wins button:active { transform: scale(.96); }
.ta .up { color: var(--good); }
.ta .down { color: var(--bad); }
.ta-bar { display: flex; flex-direction: column; gap: 6px; }
.ta-bar-h { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--tt); }
.ta-bar-h b { font-weight: 500; color: var(--tp); }
.ta-bar-t { display: flex; gap: 4px; height: 6px; }
.ta-bar-t i { display: block; flex: none; height: 6px; border-radius: 3px; transition: width .5s cubic-bezier(.22, 1, .36, 1); min-width: 4px; }
.ta-bar-t .ta-g { background: #5cbf5f; }
.ta-bar-t .ta-r { background: #ee6a3e; flex: 1 1 0; }
.ta-bar-t.ta-off i { background: var(--border); }
.ta-wait { font-size: 13px; }
.ta-links { display: flex; flex-wrap: wrap; gap: 6px; }
.ta-facts { margin: 0; display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--border); }
.ta-facts > div { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.ta-facts dt { color: var(--tt); flex: none; }
.ta-facts dd { margin: 0 0 0 auto; color: var(--tp); text-align: right; display: inline-flex; align-items: center; gap: 4px; }
.ta-facts > div { background: repeating-linear-gradient(to right, var(--border-h) 0 2px, transparent 2px 6px) left 62% / 100% 1px no-repeat; }
.ta-facts dt, .ta-facts dd { background: var(--bg2); padding: 0 6px 0 0; }
.ta-facts dd { padding: 0 0 0 6px; }

/* the app's own pickers (src/pickers.ts): the native select or date field stays, transparent, under a button */
.cs { position: relative; display: inline-flex; min-width: 0; width: 100%; }
.cs > .cs-native { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0 !important; pointer-events: none !important; margin: 0 !important; }
.cs-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-width: 0; height: 36px; padding: 0 10px 0 12px; border: 0; border-radius: 12px; corner-shape: squircle; background: var(--bg); box-shadow: inset 0 0 0 1px var(--border); color: var(--tp); font: 500 13px/1 var(--sans); letter-spacing: -.01em; text-align: left; cursor: pointer; transition: box-shadow .18s var(--ease-soft), background .18s var(--ease-soft), transform .18s var(--ease-soft); }
.cs-btn:hover { background: var(--pill); }
.cs-btn[aria-expanded="true"], .cs-btn:focus-visible { outline: 0; box-shadow: inset 0 0 0 1.5px var(--tp); }
.cs-btn:active { transform: scale(.98); }
.cs-btn:disabled { color: var(--tt); cursor: not-allowed; }
.cs-btn.is-empty .cs-v { color: var(--tt); }
.cs-btn .cs-v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-btn svg { flex: none; color: var(--tt); transition: transform .2s var(--ease-soft); }
.cs-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.wl-form .cs-btn, .launch .cs-btn { height: 44px; border-radius: 16px; box-shadow: inset 0 0 0 2px var(--tp); font-size: 15px; }
.cs-pop { position: fixed; z-index: 400; max-height: 300px; overflow-y: auto; padding: 6px; border-radius: 16px; corner-shape: squircle; background: var(--bg2); box-shadow: 0 0 0 1px var(--border), 0 18px 40px -16px #1a1a1940; animation: cs-in .18s cubic-bezier(.22, 1, .36, 1); }
@keyframes cs-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.cs-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--tp); font: 400 13.5px/1.25 var(--sans); text-align: left; cursor: pointer; }
.cs-opt:hover, .cs-opt:focus-visible { outline: 0; background: var(--pill); }
.cs-opt[aria-selected="true"] { font-weight: 500; }
.cs-opt:disabled { color: var(--tt); cursor: not-allowed; background: transparent; }
.cs-cal { width: 260px; padding: 10px; }
.cs-cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font: 500 14px/1 var(--display); letter-spacing: -.01em; }
.cs-nav { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 9px; background: transparent; color: var(--tp); cursor: pointer; }
.cs-nav:hover { background: var(--pill); }
.cs-nav[data-m="-1"] svg { transform: rotate(90deg); }
.cs-nav[data-m="1"] svg { transform: rotate(-90deg); }
.cs-wk, .cs-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cs-wk span { text-align: center; font: 500 11px/24px var(--sans); color: var(--tt); }
.cs-day { height: 32px; border: 0; border-radius: 9px; background: transparent; color: var(--tp); font: 400 13px/1 var(--sans); font-variant-numeric: tabular-nums; cursor: pointer; transition: background .15s; }
.cs-day:hover { background: var(--pill); }
.cs-day.today { box-shadow: inset 0 0 0 1px var(--border-h); }
.cs-day.on { background: var(--tp); color: var(--bg); }
.cs-day:disabled { color: var(--border-h); cursor: not-allowed; background: transparent; }
.cs-cal-f { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.cs-link { border: 0; background: none; color: var(--ts); font: 500 12.5px/1 var(--sans); cursor: pointer; padding: 6px 4px; }
.cs-link:hover { color: var(--tp); }

/* deck: a scroll rail under the canvas (deck.ts rail) and fades at the edges where more columns wait */
.deck-rail { position: relative; flex: none; height: 8px; margin: 2px var(--pad-x) 0; border-radius: 4px; background: var(--pill); cursor: pointer; transition: height .2s var(--ease-soft); }
.deck-rail:hover, .deck-rail.is-drag { height: 10px; }
.deck-rail[hidden] { display: none; }
.deck-thumb { position: absolute; top: 0; left: 0; height: 100%; border-radius: 4px; background: var(--tp); opacity: .55; cursor: grab; transition: opacity .2s; }
.deck-rail:hover .deck-thumb, .deck-rail.is-drag .deck-thumb { opacity: .85; }
.deck-rail.is-drag .deck-thumb { cursor: grabbing; }
.deck-shell[data-more-r] .deck-canvas { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 64px), transparent); }
.deck-shell[data-more-l] .deck-canvas { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 64px), transparent); }
.deck-shell[data-more-l][data-more-r] .deck-canvas { -webkit-mask-image: linear-gradient(to right, transparent, #000 64px, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(to right, transparent, #000 64px, #000 calc(100% - 64px), transparent); }

/* agent profile: the desktop and the price chart side by side at the same size (both 16:10 under their headers) */
.tk-watch { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.tk-watch > .panel { display: flex; flex-direction: column; }
.tk-watch .mk-live { padding: 12px; flex: 1; }
.tk-watch .tk-pane { min-height: 0; }
.tk-watch .tk-chart { height: auto; aspect-ratio: 16 / 10; }
@media (max-width: 900px) { .tk-watch { grid-template-columns: minmax(0, 1fr); } }
/* agent profile timeline: the newest few, past events behind a toggle */
.pf-tl-more > summary { list-style: none; display: flex; justify-content: center; padding: 12px 16px; border-top: 1px solid var(--border); cursor: pointer; font: 500 13px/1 var(--sans); color: var(--ts); }
.pf-tl-more > summary::-webkit-details-marker { display: none; }
.pf-tl-more > summary:hover { color: var(--tp); background: var(--sb-hover); }
.pf-tl-more .when-open { display: none; }
.pf-tl-more[open] .when-open { display: inline; }
.pf-tl-more[open] .when-closed { display: none; }
.pf-tl-more[open] > summary { border-bottom: 1px solid var(--border); }
.lp-deck[hidden] { display: none !important; }

/* US dollars (usd.ts): a figure whose dollar price could not be read */
.usd-na { color: var(--tt); font-weight: 400; }
/* in a stat tile the words are set small and may wrap: at a figure's size a narrow tile would cut them to "$..." */
.stat .v .usd-na { display: block; font-family: var(--sans); font-size: 13px; line-height: 1.25; letter-spacing: -0.02em; white-space: normal; overflow-wrap: break-word; padding: 4px 0; }
#pf-tok-stats .stat .v .usd-na { font-size: 10.5px; } /* four tiles in the agent profile's side column */

/* deck: each window shows its own scrollbar when its body overflows, one colour per window */
.deck-column { --dk-sc: #5cbf5f; }
.deck-column:nth-of-type(4n+2) { --dk-sc: #8b6cff; }
.deck-column:nth-of-type(4n+3) { --dk-sc: #ee6a3e; }
.deck-column:nth-of-type(4n+4) { --dk-sc: #3d8bff; }
.deck-column { position: relative; }
.deck-column[data-scrolls]::after { content: ""; position: absolute; right: 3px; top: 0; width: 4px; height: 28px; background: var(--dk-sc); transform: translateY(var(--dk-y, 0)); pointer-events: none; z-index: 2; }
