/* PATCH — a launchpad that ships itself, one patch at a time.
   Look: release notes x jacket patches. Warm paper, ink, and thread colours. Type does the shouting. */

@font-face { font-display: swap; }
:root {
  --paper: #f2efe8;
  --paper-2: #e9e4d9;
  --card: #fbfaf6;
  --ink: #121110;
  --ink-2: #3b3833;
  --muted: #77726a;
  --line: #d6cfc1;
  --line-2: #bfb7a7;
  --hot: #ff5b1f;           /* patch orange: the one loud colour */
  --hot-ink: #1a0d06;
  --good: #0e8f63;
  --bad: #d7262f;
  --edge: var(--ink);       /* heavy card borders and hard shadows: ink on paper, muted in the dark theme */
  /* thread colours for the badges, one per version */
  --t1: #ff5b1f; --t2: #2340ff; --t3: #0e8f63; --t4: #ffb81a; --t5: #d7262f; --t6: #ff6fb5; --t7: #121110;
  --r: 14px;
  --display: 'Archivo', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --wrap: 1280px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.5 var(--display); font-variation-settings: 'wdth' 100;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* a faint twill on the whole page, like the cloth the patches are sewn on */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: repeating-linear-gradient(135deg, rgba(18, 17, 16, .018) 0 2px, transparent 2px 6px);
}
main, header, footer, .subwrap { position: relative; z-index: 1; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--hot); color: var(--hot-ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.label { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.hide, [hidden] { display: none !important; }   /* [hidden] must beat display:grid on .steps */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 20; background: rgba(242, 239, 232, .88);
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; padding: 4px 0; }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand b { font-weight: 900; font-variation-settings: 'wdth' 125; font-size: 20px; letter-spacing: -.02em; }
.ver {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 54px; padding: 3px 8px 3px 7px; border: 1px solid var(--line-2);
  border-radius: 999px; font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--ink-2); background: var(--card);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hot); }
.nav { display: flex; gap: 4px; margin-left: 8px; align-items: center; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; text-decoration: none; font-weight: 600; font-size: 14px; border-radius: 999px; color: var(--ink-2); white-space: nowrap; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current] { background: var(--ink); color: var(--paper); }
.nav .rule { width: 1.5px; height: 20px; background: var(--line-2); margin: 0 4px; }
.top .sp { flex: 1; }
.top .hot .short { display: none; }
.top .hot[aria-current] { display: none; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--b); background: transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--edge); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn.hot { background: var(--hot); color: var(--hot-ink); }
.btn.ink { background: var(--ink); color: var(--paper); }
.btn.sm { height: 44px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .k { font-family: var(--mono); font-size: 12px; font-weight: 600; opacity: .8; }
.acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- hero (home) ---------- */
.hero { padding-top: 36px; padding-bottom: 0; }
.hero .grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: end; }
.version-stamp { position: relative; margin: 0; line-height: .8; }
.version-stamp .v {
  display: block; font-weight: 900; font-variation-settings: 'wdth' 125; letter-spacing: -.055em;
  font-size: clamp(90px, 14.5vw, 205px); color: var(--ink);
}
.version-stamp .v .pre { color: var(--hot); letter-spacing: -.02em; margin-right: .02em; }
.stitch { display: block; width: 100%; height: 22px; margin-top: 10px; overflow: visible; }
.stitch path { fill: none; stroke: var(--hot); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 11 9; }
.stitch .draw { animation: sew 2.4s cubic-bezier(.3, .7, .2, 1) both .2s; }
@keyframes sew { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.hero h1 {
  margin: 22px 0 10px; font-weight: 800; font-variation-settings: 'wdth' 112; letter-spacing: -.03em;
  font-size: clamp(30px, 4.2vw, 56px); line-height: 1.02; max-width: 15ch;
}
.hero .lede { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-2); max-width: 46ch; margin: 0 0 8px; }

/* the two doors: launchpad and agent */
.doors { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: 34px; }
.door {
  background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); padding: 20px; box-shadow: 6px 6px 0 var(--edge);
  display: flex; flex-direction: column; transition: transform .15s;
}
.door.agent { box-shadow: 6px 6px 0 var(--hot); }
.door:hover { transform: translateY(-2px); }
.door h2 { margin: 8px 0 8px; font-weight: 900; font-variation-settings: 'wdth' 125; letter-spacing: -.04em; font-size: clamp(34px, 4.2vw, 52px); line-height: .92; }
.door > .muted { margin: 0 0 14px; max-width: 42ch; color: var(--ink-2); }
.door .rows { margin-top: 18px; }
.door .acts { justify-content: flex-start; margin-top: auto; padding-top: 16px; }

.status {
  background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); padding: 18px 18px 8px;
  box-shadow: 6px 6px 0 var(--edge);
}
.status h2 { margin: 0 0 12px; display: flex; align-items: center; justify-content: space-between; }
.status .row, .door .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line-2); }
.status .row .val, .door .row .val { font-family: var(--mono); font-weight: 600; font-size: 14px; text-align: right; }
.status .now { padding: 4px 0 14px; }
.status .now b { display: block; font-weight: 800; font-variation-settings: 'wdth' 110; font-size: 22px; letter-spacing: -.02em; line-height: 1.1; margin-top: 4px; }
.status .now .stage { display: inline-flex; margin-top: 8px; }
.status .now #pickline { display: block; margin-top: 8px; }
.clock { font-variant-numeric: tabular-nums; }

/* marquee of real counts */
.tape { border-top: 2px solid var(--edge); border-bottom: 2px solid var(--edge); background: var(--ink); color: var(--paper); overflow: hidden; margin-top: 40px; }
.tape .run { display: flex; gap: 42px; width: max-content; padding: 10px 0; animation: tape 38s linear infinite; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.tape .run span::before { content: '✚'; color: var(--hot); margin-right: 14px; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section.block { padding-top: 28px; padding-bottom: 8px; }
.head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.head.row { align-items: center; }
.head h2 { margin: 0; font-weight: 900; font-variation-settings: 'wdth' 125; letter-spacing: -.04em; font-size: clamp(34px, 5vw, 64px); line-height: .9; }
.head h2 small { display: block; font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.head p { margin: 0; max-width: 44ch; color: var(--ink-2); }
.head-lede { margin: -4px 0 18px; max-width: 52ch; color: var(--ink-2); }
.head .side-acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }

.tabs { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); }
.tabs button, .tabs a { border: 0; background: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.tabs button[aria-pressed='true'], .tabs a[aria-current] { background: var(--ink); color: var(--paper); }
.tabs button:hover:not([aria-pressed='true']), .tabs a:hover:not([aria-current]), .seg button:hover:not([aria-pressed='true']):not([disabled]) { background: var(--paper-2); color: var(--ink); }
.subwrap { margin-top: 18px; }
.subnav { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }

/* ---------- the suggestion box ---------- */
.box { background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); padding: 16px; box-shadow: 6px 6px 0 var(--hot); }
.box textarea {
  width: 100%; min-height: 96px; resize: none; border: 0; outline: 0; background: transparent; display: block;
  font-size: 19px; line-height: 1.35; font-weight: 500; font-variation-settings: 'wdth' 100;
}
.box textarea::placeholder { color: #a39d92; }
.box .boxbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px dashed var(--line-2); padding-top: 12px; margin-top: 6px; flex-wrap: wrap; }
.note { font-size: 13px; color: var(--muted); }
.note.err { color: var(--bad); font-weight: 600; }
.note.ok { color: var(--good); font-weight: 600; }

.wall { display: grid; gap: 10px; margin-top: 18px; }
.wall + #more { margin-top: 14px; }
.sug {
  display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; padding: 14px 14px 12px 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; animation: drop .45s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.sug p { margin: 0; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.sug .meta { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.sug .why { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink-2); border-left: 3px solid var(--line-2); padding-left: 10px; }
.vote {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 52px; height: 52px; border-radius: 10px;
  border: 1.5px solid var(--line-2); background: var(--paper); cursor: pointer; font-family: var(--mono); font-weight: 700; font-size: 14px; line-height: 1;
  transition: background .12s, border-color .12s, transform .12s;
}
.vote svg { width: 14px; height: 14px; margin-bottom: 4px; }
.vote:hover { border-color: var(--ink); }
.vote[aria-pressed='true'] { background: var(--hot); border-color: var(--ink); color: var(--hot-ink); }
.vote[disabled] { cursor: default; opacity: .55; }
.vote:active:not([disabled]) { transform: scale(.94); }

.tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; border: 1.5px solid currentColor;
  font: 700 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.tag.new { color: var(--ink-2); }
.tag.picked, .tag.building, .tag.queued, .tag.review, .tag.approved { color: var(--hot); background: rgba(255, 91, 31, .08); }
.tag.shipped { color: var(--good); background: rgba(14, 143, 99, .08); }
.tag.later { color: #9a6a00; }
.tag.no { color: var(--bad); }
.tag.seen { color: var(--muted); }

/* ---------- the agent page grid ---------- */
section.agent {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; padding-top: 28px;
  grid-template-areas: "head status" "box status" "wall round"; align-items: start;
}
section.agent { scroll-margin-top: 130px; }   /* a #suggest deep link keeps the headline under the sticky bar, not behind it */
section.agent .ahead { grid-area: head; }
section.agent .box { grid-area: box; }
section.agent .wallwrap { grid-area: wall; }
section.agent .status { grid-area: status; }
section.agent .lastround { grid-area: round; position: sticky; top: 84px; max-height: calc(100vh - 96px); overflow: auto; scrollbar-width: thin; }
section.agent .ahead .head { margin-bottom: 14px; }
section.agent .wallwrap .head { margin: 0; }
section.agent .lastround .head h2 { font-size: 34px; }
section.agent .lastround > .btn { margin-top: 12px; }

/* ---------- rounds (the agent's decisions) ---------- */
.rounds { display: grid; gap: 14px; }
section.block .rounds { max-width: 820px; }
.roundgrid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; align-items: start; }
.roundgrid .status { position: sticky; top: 84px; }
.round { border: 2px solid var(--edge); border-radius: var(--r); background: var(--card); overflow: hidden; }
.round header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: var(--ink); color: var(--paper); }
.round header b { font-weight: 900; font-variation-settings: 'wdth' 125; letter-spacing: -.02em; font-size: 18px; }
.round .post { padding: 14px 16px 6px; white-space: pre-line; font-size: 16.5px; line-height: 1.45; overflow-wrap: anywhere; }
.round .pick { margin: 8px 16px 14px; padding: 12px 14px; border: 1.5px dashed var(--hot); border-radius: 10px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.round .pick b { font-weight: 800; font-variation-settings: 'wdth' 110; font-size: 18px; }
.round .tail { display: grid; gap: 8px; padding: 0 16px 14px; }
.dec { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: start; font-size: 14px; }
.dec .txt { overflow-wrap: anywhere; }
.dec .why { grid-column: 2; color: var(--muted); font-size: 13px; border-left: 3px solid var(--line-2); padding-left: 10px; }
.tail .mono.muted { font-size: 12px; }
.tail > a.mono { color: var(--ink-2); }
.nextlink {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 28px; padding: 16px 18px;
  border: 2px solid var(--edge); border-radius: var(--r); background: var(--card); text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.nextlink:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 var(--edge); }
.nextlink b { font-weight: 800; font-variation-settings: 'wdth' 112; font-size: 20px; letter-spacing: -.02em; }
.nextlink .mono { margin-left: auto; color: var(--muted); }

.empty {
  border: 2px dashed var(--line-2); border-radius: var(--r); padding: 28px 22px; text-align: center; color: var(--ink-2); background: rgba(251, 250, 246, .6);
}
.empty b { display: block; font-weight: 800; font-variation-settings: 'wdth' 115; font-size: 22px; letter-spacing: -.02em; color: var(--ink); margin-bottom: 6px; }
.empty .btn { margin-top: 14px; }
.facts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 14px 0 18px; }
.facts + .btn { margin-top: 0; }

/* ---------- patch notes: every shipped version is a sewn-on badge ---------- */
.notes { display: grid; gap: 0; }
.note-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); align-items: start; }
.note-row:first-child { border-top: 0; }
.note-row h3 { margin: 4px 0 4px; font-weight: 800; font-variation-settings: 'wdth' 112; letter-spacing: -.02em; font-size: 24px; line-height: 1.1; }
.note-row p { margin: 6px 0 0; color: var(--ink-2); white-space: pre-line; max-width: 62ch; }
.note-row .mono.muted { display: block; }
.badge { width: 116px; height: 116px; filter: drop-shadow(2px 3px 0 rgba(18, 17, 16, .18)); transform: rotate(var(--tilt, -4deg)); transition: transform .3s cubic-bezier(.2, .9, .2, 1.4); }
.note-row:hover .badge { transform: rotate(0deg) scale(1.04); }
.badge.pending { opacity: .55; filter: grayscale(1); }
.nextline { border: 1.5px dashed var(--hot); border-radius: 10px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.nextline .mono { font-size: 13px; }
.failed-row { padding: 14px 0; border-top: 1px solid var(--line); font-size: 13px; }
.nextline a.mono { margin-left: auto; color: var(--ink-2); display: inline-flex; align-items: center; min-height: 44px; }
.ship { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; max-width: 720px; }
.ship li { display: flex; gap: 12px; align-items: center; font-family: var(--mono); font-size: 13px; flex-wrap: wrap; padding: 8px 0; border-top: 1px dashed var(--line-2); }
.ship li:first-child { border-top: 0; }
.ship li b { font-weight: 700; min-width: 28px; }
.ship li .tag { margin-left: auto; }

/* ---------- coins ---------- */
.coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.coin {
  display: grid; grid-template-rows: auto 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  text-decoration: none; overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.coin:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: 4px 4px 0 var(--edge); }
.coin .pic { aspect-ratio: 1; background: var(--paper-2) center/cover no-repeat; border-bottom: 1px solid var(--line); }
.coin .body { padding: 12px 12px 14px; display: grid; gap: 6px; }
.coin .nm { font-weight: 800; font-size: 16px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin .tk { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.coin .mc { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; }
.bar { height: 6px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--hot); border-radius: 99px; }

/* ---------- forms (launch) ---------- */
.launch { padding-top: 34px; padding-bottom: 60px; }
.launch .grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .85fr); gap: 32px; align-items: start; }
.launch h1 { margin: 0 0 6px; font-weight: 900; font-variation-settings: 'wdth' 125; letter-spacing: -.045em; font-size: clamp(44px, 7vw, 92px); line-height: .9; }
.launch .sub { margin: 0 0 26px; color: var(--ink-2); max-width: 52ch; }
.card { background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); padding: 20px; }
.card + .card { margin-top: 16px; }
.card > .label { display: block; margin-bottom: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field > span { font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; gap: 10px; }
.field > span em { font-style: normal; font-weight: 500; color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.in {
  width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--paper);
  font-size: 16px; font-weight: 500; transition: border-color .12s, background .12s;
}
textarea.in { height: auto; min-height: 92px; padding: 12px 14px; resize: vertical; line-height: 1.4; }
.in:focus { border-color: var(--ink); background: #fff; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; margin-bottom: 16px; }
.two > .field { margin-bottom: 0; }   /* a last-child margin rule made the ticker box sit 8px lower than the name */
.drop {
  position: relative; display: grid; place-items: center; gap: 6px; min-height: 180px; border: 2px dashed var(--line-2); border-radius: 12px;
  background: var(--paper); text-align: center; padding: 16px; cursor: pointer; transition: border-color .12s, background .12s; overflow: hidden;
}
.drop:hover, .drop.over { border-color: var(--ink); background: #fff; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop.banner { min-height: 110px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--paper); }
.seg button { border: 0; border-radius: 8px; background: none; height: 44px; font-weight: 700; cursor: pointer; color: var(--ink-2); transition: background .12s; }
.seg button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.seg button[disabled] { opacity: .4; cursor: not-allowed; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 44px; padding: 4px 0; }
.switch input { appearance: none; width: 50px; height: 30px; border-radius: 99px; background: var(--line-2); position: relative; cursor: pointer; flex: none; transition: background .15s; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .18s cubic-bezier(.3, .9, .3, 1.2); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked { background: var(--hot); }
.switch input:checked::after { transform: translateX(20px); }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.launch .costnote { display: none; margin: 14px 0 0; }   /* shown on phones only, where the floating card drops its note */
.buyrow { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.unit { display: grid; place-items: center; height: 48px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--paper-2); font-weight: 600; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.chips button { border: 1.5px solid var(--line-2); background: var(--paper); border-radius: 99px; height: 36px; padding: 0 12px; font: 600 12px var(--mono); cursor: pointer; }
.chips button:hover { border-color: var(--ink); }
@media (pointer: coarse) { .chips button { height: 44px; padding: 0 14px; } }
details.more summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: '+'; font-family: var(--mono); width: 22px; height: 22px; display: inline-grid; place-items: center; border: 1.5px solid var(--edge); border-radius: 6px; }
details.more[open] summary::before { content: '–'; }
details.more .fields { margin-top: 14px; }

.side { position: sticky; top: 84px; display: grid; gap: 16px; }
.preview .pv-banner { height: 92px; border-radius: 10px; background: var(--paper-2) center/cover; margin-bottom: -34px; border: 1px solid var(--line); }
.preview .pv-head { display: flex; gap: 14px; align-items: end; padding: 0 10px; }
.preview .pv-pic { width: 84px; height: 84px; border-radius: 12px; border: 3px solid var(--card); background: var(--paper-2) center/cover; flex: none; box-shadow: 0 0 0 1px var(--line); }
.preview h3 { margin: 0; font-weight: 800; font-size: 22px; line-height: 1.1; overflow-wrap: anywhere; }
.preview .pv-tk { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.preview .pv-desc { margin: 14px 0 0; color: var(--ink-2); font-size: 14.5px; white-space: pre-line; overflow-wrap: anywhere; }
.preview .pv-flags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.go { width: 100%; height: 58px; font-size: 18px; }
.steps { display: grid; gap: 8px; margin-top: 14px; padding: 0; }
.steps li { list-style: none; display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14px; color: var(--muted); }
.steps li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; }
.steps li.on { color: var(--ink); }
.steps li.on::before { border-color: var(--hot); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps li.done { color: var(--ink); }
.steps li.done::before { background: var(--good); border-color: var(--good); }
@keyframes spin { to { transform: rotate(360deg); } }
.done-card { text-align: center; }
.done-card h2 { margin: 6px 0; font-weight: 900; font-variation-settings: 'wdth' 125; font-size: 40px; letter-spacing: -.04em; }
.ca { display: flex; gap: 8px; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12.5px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; overflow-wrap: anywhere; }

/* ---------- coin page ---------- */
.coinpage { padding-top: 28px; padding-bottom: 60px; }
.coinpage .banner { height: clamp(120px, 22vw, 260px); border-radius: var(--r); background: var(--ink) center/cover; border: 2px solid var(--edge); }
.coinpage .idrow { display: flex; gap: 18px; align-items: end; margin-top: 8px; padding: 0; flex-wrap: wrap; }   /* no banner above it anymore */
.coinpage .idrow .pic { width: 124px; height: 124px; border-radius: 18px; border: 4px solid var(--paper); background: var(--paper-2) center/cover; box-shadow: 0 0 0 2px var(--ink); flex: none; }
.coinpage h1 { margin: 0; font-weight: 900; font-variation-settings: 'wdth' 120; letter-spacing: -.04em; font-size: clamp(36px, 5vw, 64px); line-height: .95; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 22px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stat b { display: block; font: 700 20px/1.2 var(--mono); margin-top: 4px; }
/* v0.09 token page: back breadcrumb, star beside the name, small notes under a number, 24h colour */
.crumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; margin-bottom: 10px; }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 700; text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.crumb span { color: var(--muted); overflow-wrap: anywhere; }
.coinpage .namerow { display: flex; align-items: center; gap: 6px; min-width: 0; }
.coinpage .namerow h1 { min-width: 0; overflow-wrap: anywhere; }
.coinpage .namerow .star { border: 1.5px solid var(--line-2); background: var(--card); }
.coinpage .namerow .star:hover, .coinpage .namerow .star[aria-pressed='true'] { border-color: var(--ink); }
.stat small { display: block; margin-top: 4px; font-size: 11.5px; }
.stat b a { color: inherit; }
.stat.chg.up b { color: var(--good); }
.stat.chg.down b { color: var(--bad); }

/* ---------- the centre page: 404 and coin not found ---------- */
.center-page { text-align: center; padding: 90px 20px; }
.center-page h1 { margin: 0; font-weight: 900; font-variation-settings: 'wdth' 125; letter-spacing: -.045em; font-size: clamp(44px, 7vw, 92px); line-height: .9; }
.center-page .sub { margin: 10px auto 26px; color: var(--ink-2); max-width: 44ch; }

/* ---------- footer ---------- */
footer.foot { margin-top: 70px; border-top: 2px solid var(--edge); padding: 24px 0 40px; }
footer.foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: start; }
footer.foot .big { font-weight: 900; font-variation-settings: 'wdth' 125; letter-spacing: -.04em; font-size: clamp(40px, 8vw, 110px); line-height: .8; }
footer.foot .big span { color: var(--hot); }
footer.foot .links { max-width: 46ch; }
footer.foot .links p { margin: 0; font-size: 14px; }
footer.foot .links p a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.footnav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 10px -14px; }
.footnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.footnav a:hover { background: var(--paper-2); color: var(--ink); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0; z-index: 50; background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; max-width: calc(100vw - 32px); transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- small screens ---------- */
@media (max-width: 980px) {
  .hero .grid, .cols, .launch .grid { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  section.agent { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "box" "status" "wall" "round"; }
  section.agent .lastround { position: static; max-height: none; overflow: visible; }
  .roundgrid { grid-template-columns: minmax(0, 1fr); }
  .roundgrid .status { position: static; }
  /* the launch card floats at the bottom while the form scrolls, then settles into its own slot at the end */
  .launch aside.side { display: contents; }
  .launch .preview { order: -1; }   /* the preview sits above the form so you see it while you type */
  #gocard { position: sticky; bottom: 12px; z-index: 5; box-shadow: 0 -10px 0 var(--paper), 6px 6px 0 var(--edge); margin-top: 16px; }
  #gocard .note.idle { display: none; }   /* the cost line lives in #costnote here, so the floating card is just the button */
  .launch.typing #gocard, .launch:has(input:focus, textarea:focus) #gocard { position: static; }   /* never cover the field being typed into */
  .launch .costnote { display: block; }
  #done { margin-top: 16px; }
  .launch .grid { padding-bottom: 12px; }
}
@media (max-width: 720px) {
  .top .wrap { flex-wrap: wrap; height: auto; padding: 6px 16px; gap: 8px; }
  .nav { order: 10; width: 100%; display: flex; gap: 4px; margin: 0; }
  .nav a { flex: 1; justify-content: center; }
  .nav a:not([aria-current]) { border: 1.5px solid var(--line-2); }   /* both doors read as pills, not labels */
  .nav .rule { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .top .wrap { gap: 6px; }
  .btn.sm { padding: 0 12px; }
  .brand { gap: 6px; }
  .brand b { font-size: 18px; }
  .footnav { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin-left: -10px; }   /* two balanced rows: 3 + 2 */
  .footnav a { padding: 0 10px; }
  .ver { display: none; }
  .top .hot .long { display: none; }
  .top .hot .short { display: inline; }
  .version-stamp .v { font-size: 23.5vw; }
  .doors { grid-template-columns: 1fr; gap: 22px; }
  .door, .door.agent { box-shadow: 4px 4px 0 var(--edge); }
  .door.agent { box-shadow: 4px 4px 0 var(--hot); }
  .door h2 { font-size: 36px; }
  .coins { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .note-row { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 18px 0; }
  .badge { width: 72px; height: 72px; }
  .two { grid-template-columns: 1fr; }
  .status { box-shadow: 4px 4px 0 var(--edge); }
  .box { box-shadow: 4px 4px 0 var(--hot); }
  .nextlink .mono, .nextline a.mono { margin-left: 0; width: 100%; }
}
@media (max-width: 336px) {
  .brand b { display: none; }   /* 320 phones: the mark alone keeps brand + Launch + Connect on one row */
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- the cycle clock: one ink strip under the top bar on every page ---------- */
.cycle { display: block; position: relative; z-index: 1; background: var(--ink); color: var(--paper); text-decoration: none; }
.cycle[hidden] { display: none !important; }
.cycle .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; padding-top: 10px; padding-bottom: 12px; }
.cycle .cy-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cycle .cy-n {
  flex: none; font: 700 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); background: var(--hot); padding: 6px 8px; border-radius: 5px;
}
.cycle .cy-head { display: block; font-weight: 800; font-variation-settings: 'wdth' 112; font-size: 17px; letter-spacing: -.01em; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cycle .cy-sub { display: block; font: 500 12px/1.3 var(--mono); color: #b9b3a8; margin-top: 3px; }
.cycle .cy-right { display: flex; align-items: baseline; gap: 12px; flex: none; }
.cycle .cy-label { font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #b9b3a8; }
.cycle .cy-clock { font: 700 34px/1 var(--mono); color: var(--hot); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.cycle .cy-clock.words { font: 800 20px/1 var(--display); font-variation-settings: 'wdth' 112; letter-spacing: -.01em; }
.cycle .cy-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #2c2a27; }
.cycle .cy-bar i { display: block; height: 100%; width: 0; background: var(--hot); transition: width 1s linear; }
.cycle .cy-bar.run i { background: repeating-linear-gradient(90deg, var(--hot) 0 28px, #2c2a27 28px 44px); background-size: 44px 100%; animation: cy-run .9s linear infinite; }
@keyframes cy-run { to { background-position: 44px 0; } }
.cycle:hover .cy-head { text-decoration: underline; text-underline-offset: 3px; }
.cycle:focus-visible { outline: 3px solid var(--hot); outline-offset: -3px; }
@media (max-width: 720px) {
  .cycle .wrap { flex-direction: column; align-items: stretch; gap: 8px; }
  .cycle .cy-right { justify-content: space-between; }
  .cycle .cy-clock { font-size: 28px; }
  .cycle .cy-head { font-size: 15px; white-space: normal; }
}

/* ---------- live build: Claude's steps as they happen ---------- */
.livegrid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr); gap: 24px; align-items: start; margin-top: 22px; }
.term { background: var(--ink); color: var(--paper); border-radius: var(--r); border: 2px solid var(--edge); box-shadow: 6px 6px 0 var(--hot); overflow: hidden; }
.term-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #2c2a27; }
.term-top b { font-weight: 800; font-variation-settings: 'wdth' 112; font-size: 16px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-top .mono { color: #b9b3a8; }
.term-dot { width: 9px; height: 9px; border-radius: 50%; background: #5a564f; flex: none; }
.term-dot.building { background: var(--hot); animation: pulse-hot 1.4s infinite; }
.term-dot.review, .term-dot.approved { background: #ffb81a; }
.term-dot.shipped { background: var(--good); }
@keyframes pulse-hot { 50% { opacity: .35; } }
.term-body { list-style: none; margin: 0; padding: 12px 0 16px; height: 520px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #3b3833 transparent; font: 13px/1.5 var(--mono); }
@media (max-width: 560px) { .term-body { height: 60vh; } }
.ev { display: grid; grid-template-columns: 70px 64px minmax(0, 1fr); gap: 10px; padding: 3px 16px; }
.ev-t { color: #77726a; }
.ev-k { text-transform: uppercase; font-weight: 700; font-size: 11px; letter-spacing: .08em; padding-top: 2px; color: #b9b3a8; }
.ev-x { overflow-wrap: anywhere; }
.ev.think .ev-x { color: #a9a39a; font-style: italic; }
.ev.think .ev-k { color: #8f8a82; }
.ev.write .ev-k, .ev.done .ev-k { color: var(--hot); }
.ev.check .ev-k { color: #7fd6ae; }
.ev.error .ev-k, .ev.error .ev-x { color: #ff8a8f; }
.ev.done .ev-x { font-weight: 700; }
.term-body.running::after { content: '\258D'; display: block; padding: 4px 16px 0 160px; color: var(--hot); animation: pulse-hot 1s steps(1) infinite; }
.livecard { background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); padding: 18px; display: grid; gap: 8px; }
.livecard h3 { margin: 0; font-weight: 800; font-variation-settings: 'wdth' 112; font-size: 22px; letter-spacing: -.02em; }
.livecard p { margin: 0 0 10px; font-size: 14px; white-space: pre-line; }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
@media (max-width: 980px) { .livegrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .ev { grid-template-columns: 56px minmax(0, 1fr); }
  .ev-t { grid-row: span 2; }
  .ev-k, .ev-x { grid-column: 2; }
  .term-body.running::after { padding-left: 82px; }
}

/* ---------- wallet picker ---------- */
.wpick-bg { position: fixed; inset: 0; z-index: 60; background: rgba(18, 17, 16, .55); display: grid; place-items: center; padding: 16px; }
.wpick { width: min(420px, 100%); background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); box-shadow: 6px 6px 0 var(--hot); padding: 18px; display: grid; gap: 10px; }
.wpick-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wpick-head b { font-weight: 900; font-variation-settings: 'wdth' 120; font-size: 24px; letter-spacing: -.03em; }
.wpick p { margin: 0; }
.wpick-list { display: grid; gap: 8px; }
.wopt { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--paper); font: inherit; font-weight: 700; color: var(--ink); text-decoration: none; cursor: pointer; text-align: left; }
.wopt:hover, .wopt:focus-visible { border-color: var(--ink); background: #fff; }
.wopt.off { opacity: .7; font-weight: 600; }

.term-status { border-top: 1px solid #2c2a27; padding: 10px 16px; color: var(--hot); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-status::before { content: 'CF  '; animation: pulse-hot 1.4s infinite; }
.sug .thought { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink-2); font-style: italic; border-left: 3px solid var(--hot); padding-left: 10px; }
.sug .thought b { font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--hot); margin-right: 6px; }

/* ---------- comments under a suggestion ---------- */
.sug .cbtn { margin-left: auto; min-height: 32px; padding: 0 10px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--paper); font: 600 11.5px var(--mono); color: var(--ink-2); cursor: pointer; }
.sug .cbtn:hover, .sug .cbtn[aria-expanded='true'] { border-color: var(--ink); color: var(--ink); }
.thread { grid-column: 1 / -1; border-top: 1px dashed var(--line-2); padding-top: 10px; display: grid; gap: 10px; }
.thread p { margin: 0; }
.clist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.clist li { display: grid; gap: 2px; padding-left: 10px; border-left: 3px solid var(--line); }
.clist li p { font-size: 14.5px; overflow-wrap: anywhere; }
.cform { display: grid; gap: 8px; }
.cform textarea { min-height: 60px; }
.cbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ---------- CA + X in the top bar ---------- */
.top .ca { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--card); cursor: pointer; font: inherit; color: var(--ink); }
.top .ca:hover { border-color: var(--ink); }
.top .ca[hidden], .top .xbtn[hidden] { display: none !important; }
.top .ca-k { font: 700 10.5px var(--mono); letter-spacing: .1em; color: var(--hot); }
.top .ca-v { font-size: 12px; font-weight: 600; }
.top .xbtn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--paper); flex: none; }
.top .xbtn svg { width: 16px; height: 16px; }
.top .xbtn:hover { background: var(--hot); color: var(--ink); }
@media (max-width: 720px) { .top .ca-v { display: none; } .top .ca { padding: 0 10px; } }

/* the claim above the home headline */
.kicker { display: inline-block; margin: 0 0 12px; padding: 5px 10px; border: 1.5px solid var(--edge); border-radius: 6px; background: var(--hot); color: var(--hot-ink); font: 700 11.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- v0.02 top devs: one row per dev, the columns sort ---------- */
.lb { border: 2px solid var(--edge); border-radius: var(--r); background: var(--card); overflow: hidden; }
.lb-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 84px 112px 104px 150px; gap: 10px; align-items: center; padding: 0 14px; min-height: 56px; border-top: 1px solid var(--line); }
.lb-headrow { border-top: 0; background: var(--paper-2); min-height: 48px; }
.lb-row > .mono { font-size: 14px; font-weight: 600; }
.lb-tokens, .lb-mcapUsd, .lb-graduated { text-align: right; justify-self: end; }
.lb-rank { color: var(--muted); }
.lb-first .lb-rank { color: var(--hot); }   /* the real #1, even when a search hides rows above it */
.lb-dev a { display: flex; flex-direction: column; justify-content: center; min-height: 44px; text-decoration: none; min-width: 0; }
.lb-dev a b { font-size: 14px; }
.lb-dev a:hover b { text-decoration: underline; }
.lb-dev .muted { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-top a { display: inline-flex; align-items: center; min-height: 44px; font: 600 13px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.lb-sort { border: 0; background: none; min-height: 44px; padding: 0 4px; font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); cursor: pointer; text-align: right; line-height: 1.25; }
.lb-sort[aria-pressed='true'] { color: var(--ink); }
.lb-sort:hover { color: var(--ink); }
.lb-addr { word-break: break-all; }
/* v0.03 search above the board + what "graduated" means */
.lb-note { margin: 8px 0 0; font-size: 12px; max-width: 60ch; }
.lb-search { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 0 0 14px; }
.lb-search[hidden] { display: none; }
.lb-search .in { min-width: 0; }
.lb-search > .mono { font-size: 12px; white-space: nowrap; }
@media (max-width: 720px) {
  .lb-search { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
@media (max-width: 720px) {
  .lb-row { grid-template-columns: 28px minmax(0, 1fr) 60px 92px; gap: 8px; padding: 0 10px; }
  .lb-graduated, .lb-top { display: none; }
}

/* ---------- v0.06 trending: one row per coin, the whole row opens the coin ---------- */
.tr-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) 88px 96px 84px 76px 96px; gap: 10px; align-items: center; padding: 0 14px; min-height: 60px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.tr-headrow { border-top: 0; background: var(--paper-2); min-height: 48px; }
a.tr-row:hover { background: var(--paper-2); }
a.tr-row:hover .tr-nm b { text-decoration: underline; }
a.tr-row:focus-visible { outline: 3px solid var(--hot); outline-offset: -3px; }
.tr-rank { color: var(--muted); font-size: 14px; }
.tr-coin { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tr-coin .pic { flex: none; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper-2) center/cover no-repeat; }
.tr-headrow .tr-coin { display: block; }
.tr-nm { display: flex; flex-direction: column; min-width: 0; }
.tr-nm b, .tr-nm .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-nm b { font-size: 14px; }
.tr-nm .muted { font-size: 11.5px; }
.tr-inline, .tr-ath-inline { display: none; }
.tr-changePct, .tr-mcapUsd, .tr-fromAth, .tr-at, .tr-creator { text-align: right; justify-self: end; font-size: 14px; font-weight: 600; }
.tr-at, .tr-creator { font-size: 13px; font-weight: 400; white-space: nowrap; }
.tr-changePct, .tr-mcapUsd { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.tr-changePct small, .tr-mcapUsd small { font-size: 10.5px; font-weight: 400; }
.tr-changePct.up b { color: var(--good); }
.tr-changePct.down b { color: var(--bad); }
@media (max-width: 720px) {
  /* phones: launch time and creator move under the name, distance from ATH under the market cap */
  .tr-row { grid-template-columns: 22px minmax(0, 1fr) 72px 70px; gap: 8px; padding: 0 10px; }
  .tr-fromAth, .tr-at, .tr-creator { display: none; }
  .tr-inline, .tr-ath-inline { display: inline; }
  .tr-coin .pic { width: 30px; height: 30px; }
}

/* ---------- v0.08 watchlist: the star on every coin, and the page that lists them ---------- */
.star { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.star svg { width: 20px; height: 20px; }
.star path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.star:hover, .star[aria-pressed='true'] { color: var(--ink); }
.star[aria-pressed='true'] path { fill: var(--hot); }
/* coin cards: the star sits on the corner of the picture, outside the card link */
.coin-w { position: relative; display: grid; min-width: 0; }
.coin-w > .star { position: absolute; top: 8px; right: 8px; background: var(--card); border: 1.5px solid var(--line-2); }
.coin-w > .star:hover, .coin-w > .star[aria-pressed='true'] { border-color: var(--ink); }
/* table rows: the star takes the left edge, the rest of the row stays one link */
.star-row { position: relative; }
.star-row > .star { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); z-index: 1; }
.starred .tr-row, .starred .wl-row { padding-left: 50px; }
.lb-top { display: flex; align-items: center; gap: 2px; justify-self: end; min-width: 0; }
.lb-top .star { margin-right: -4px; }
.lb-headrow .lb-top { display: block; }
/* the watchlist table: name, ticker, market cap, 24h change, curve */
.wl-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 104px 88px 132px; gap: 10px; align-items: center; padding: 0 14px; min-height: 60px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.wl-row.wl-headrow { border-top: 0; background: var(--paper-2); min-height: 48px; }
a.wl-row:hover { background: var(--paper-2); }
a.wl-row:hover .tr-nm b { text-decoration: underline; }
a.wl-row:focus-visible { outline: 3px solid var(--hot); outline-offset: -3px; }
.wl-tk, .wl-mcap, .wl-chg, .wl-curve { text-align: right; justify-self: end; font-size: 14px; font-weight: 600; }
.wl-tk { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.wl-chg { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.wl-chg small { font-size: 10.5px; font-weight: 400; }
.wl-chg.up b { color: var(--good); }
.wl-chg.down b { color: var(--bad); }
.wl-curve { display: flex; align-items: center; gap: 8px; width: 100%; justify-content: flex-end; }
.wl-curve .bar { flex: 1; max-width: 64px; }
.wl-curve .mono { font-size: 12px; white-space: nowrap; }
.wl-headrow .wl-curve { display: block; }
.wl-inline { display: none; }
@media (max-width: 720px) {
  /* phones: the ticker moves under the name, the curve takes its own line under the row */
  .wl-row { grid-template-columns: minmax(0, 1fr) 72px 70px; gap: 4px 8px; padding: 8px 10px; }
  .starred .tr-row, .starred .wl-row { padding-left: 44px; }
  .star-row > .star { left: 0; }
  .lb-top, .lb-headrow .lb-top { display: none; }   /* the top-coin column stays hidden on phones, as before */
  .wl-tk { display: none; }
  .wl-inline { display: inline; }
  .wl-curve { grid-column: 1 / -1; justify-content: flex-start; }
  .wl-curve .bar { max-width: none; }
  .wl-headrow .wl-curve { display: none; }
  .star-row:has(.wl-row) > .star { top: 30px; }
}

/* ---------- v0.05 light / dark: the sun/moon in the top bar ---------- */
.top .theme {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0;
  border: 1.5px solid var(--line-2); border-radius: 50%; background: var(--card); color: var(--ink); cursor: pointer;
}
.top .theme:hover { border-color: var(--ink); }
.top .theme svg { width: 18px; height: 18px; }
@media (max-width: 720px) {
  /* phones: the toggle sits at the end of the Launchpad / The agent row, so the first row keeps its room */
  .top .theme { order: 11; }
  .nav { width: auto; flex: 1 1 calc(100% - 52px); }
}

/* ---------- v0.09 the watchlist star in the top bar, next to the theme toggle, with your star count ---------- */
.top .wlnav {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 1.5px solid var(--line-2); border-radius: 50%; background: var(--card); color: var(--ink); text-decoration: none;
}
.top .wlnav:hover, .top .wlnav[aria-current] { border-color: var(--ink); }
.top .wlnav:focus-visible { outline: 3px solid var(--hot); outline-offset: 2px; }
.top .wlnav svg { width: 18px; height: 18px; }
.top .wlnav path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.top .wlnav.on path { fill: var(--hot); }
.top .wlnav-n {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
  display: grid; place-items: center; background: var(--ink); color: var(--paper); font-size: 10.5px; font-weight: 700; line-height: 1;
}
@media (max-width: 720px) {
  /* phones: the star joins the theme toggle at the end of the Launchpad / The agent row */
  .top .wlnav { order: 11; }
  .nav { flex: 1 1 calc(100% - 104px); min-width: 0; }
}
@media (max-width: 400px) {
  .nav a { padding: 0 10px; }
}

/* the dark theme: near-black cloth, off-white type, muted edges, the same orange */
[data-theme='dark'] {
  --paper: #0a0a0a;
  --paper-2: #1a1918;
  --card: #131312;
  --ink: #ece8e0;
  --ink-2: #c2bdb4;
  --muted: #8e8980;
  --line: #262523;
  --line-2: #3a3835;
  --edge: #3a3835;
  --good: #2fbf86;
  --bad: #ff5a62;
  color-scheme: dark;
}
[data-theme='dark'] body::before { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 6px); }
[data-theme='dark'] .top { background: rgba(10, 10, 10, .88); }
[data-theme='dark'] .btn { --b: var(--line-2); }
[data-theme='dark'] .btn.hot { --b: var(--hot); }
[data-theme='dark'] .btn.ink { --b: var(--ink); }
[data-theme='dark'] .in:focus, [data-theme='dark'] .drop:hover, [data-theme='dark'] .drop.over,
[data-theme='dark'] .wopt:hover, [data-theme='dark'] .wopt:focus-visible { background: var(--card); }
[data-theme='dark'] .empty { background: rgba(19, 19, 18, .6); }
[data-theme='dark'] .tag.later { color: #e0a526; }
[data-theme='dark'] .box textarea::placeholder { color: var(--muted); }
[data-theme='dark'] .coinpage .banner { background-color: var(--paper-2); }
[data-theme='dark'] .coinpage .idrow .pic { box-shadow: 0 0 0 2px var(--edge); }
[data-theme='dark'] .top .xbtn:hover { color: var(--hot-ink); }
/* the ink panels (cycle strip, round headers, tape, live terminal) stay dark instead of flipping to off-white */
[data-theme='dark'] .cycle { background: #151413; color: var(--ink); border-bottom: 1px solid var(--line); }
[data-theme='dark'] .cycle .cy-n { color: var(--hot-ink); }
[data-theme='dark'] .round header { background: var(--paper-2); color: var(--ink); border-bottom: 1px solid var(--line); }
[data-theme='dark'] .tape { background: var(--card); color: var(--ink); }
[data-theme='dark'] .term { background: var(--card); color: var(--ink); }
