/* Oddlings — Midnight observatory. Semantic tokens shared by every route. */
:root {
  --vit:#080B14; --vit-2:#101522; --vit-3:#192132;
  --vit-line:#293144; --vit-text:#F3F1EB; --vit-dim:#A5AEC2;
  --brass-1:#E9C987; --brass-2:#E9C987; --brass-3:#7F6B43; --brass-ink:#221C12;
  --jelly:#F6A4DA; --jelly-ink:#261426; --jelly-soft:#302032; --light:170,195,246;
  --paper:#080B14; --sheet:#101522; --sheet-2:#151C2B; --line:#283145; --line-2:#48556D;
  --text:#F3F1EB; --text-2:#BAC1D0; --text-3:#A5AEC2;
  --btn:#F3F1EB; --btn-text:#101522; --btn-hover:#FFFFFF;
  --good:#6DE6BC; --good-soft:#142C29; --warn:#FFC36B; --warn-soft:#342918; --bad:#FF929B; --bad-soft:#37202B;
  --lift:0 1px 0 #ffffff04 inset; --focus:#B9A5FF;
  --ui:'Manrope',ui-sans-serif,system-ui,sans-serif;
  --voice:var(--ui);
  --w:1440px; --w-narrow:1040px; color-scheme:dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--vit); }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--text); font: 400 16px/1.5 var(--ui); -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; opacity: .5; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
p, h1, h2, h3 { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sheet); padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.ico { flex: none; }
.muted { color: var(--text-2); }
.fine { font-size: .8125rem; color: var(--text-3); }
.na { color: var(--text-3); font-weight: 500; font-size: .9375rem; }
.up { color: var(--good); } .down { color: var(--bad); }
.voice { font-family: var(--voice); font-weight: 500; font-size: 1.0625rem; line-height: 1.45; color: var(--text); }
.h2 { font-size: 1.75rem; font-weight: 760; font-variation-settings: 'wdth' 82; letter-spacing: -.025em; margin: 0 0 26px; }
.h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--vit) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--vit-text); border-bottom: 1px solid var(--vit-line); }
.top-inner { max-width: var(--w); margin: 0 auto; padding: 12px 40px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.brand-mark { width: 34px; height: 34px; display: block; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-word { font-size: 1.5rem; font-weight: 780; font-variation-settings: 'wdth' 76; letter-spacing: -.045em; line-height: 1; }
.search { flex: 1; min-width: 0; max-width: 440px; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px 0 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--vit-line); color: var(--vit-dim); }
.search:focus-within { border-color: rgba(var(--light), .5); background: rgba(255,255,255,.09); }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--vit-text); }
.search input::placeholder { color: var(--vit-dim); }
.search kbd { font: 600 .75rem/1 var(--ui); padding: 4px 7px; border-radius: 6px; border: 1px solid var(--vit-line); color: var(--vit-dim); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.coin-chip { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 14px; border-radius: 999px; border: 1px solid var(--vit-line); font-size: .875rem; }
.coin-label { color: var(--vit-dim); }
.coin-chip code { font: 650 .875rem/1 var(--ui); font-variant-numeric: tabular-nums; }
.top .mini { color: var(--vit-dim); }
.top .mini:hover { background: rgba(255,255,255,.08); color: var(--vit-text); }
.icon-btn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--vit-line); color: var(--vit-text); text-decoration: none; }
.icon-btn:hover { background: rgba(255,255,255,.08); }
.avatar { display: block; border-radius: 50%; box-shadow: 0 0 0 1px var(--vit-line); }
.top :focus-visible { outline-color: var(--brass-1); }

/* ---------- dock ---------- */
.dock { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 2px; padding: 6px; border-radius: 24px; background: color-mix(in srgb, var(--vit) 88%, transparent); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 28px 50px -18px rgba(3,14,11,.7); }
.dock a, .more-btn, .dock-summon { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border-radius: 18px; color: var(--vit-dim); font-weight: 580; font-size: .9375rem; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.dock > a:hover, .more-btn:hover { color: var(--vit-text); background: rgba(255,255,255,.07); }
.dock > a[aria-current="page"], .more-btn.current { background: var(--vit-text); color: #0D2621; }
.dock-summon { margin-left: 6px; background: var(--jelly); color: var(--jelly-ink); }
.dock-summon:hover { background: #F78FB2; }
.dock :focus-visible { outline-color: var(--brass-1); }
.more { position: relative; }
.more-menu { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); min-width: 230px; padding: 6px; border-radius: 20px; background: var(--vit); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 60px -20px rgba(3,14,11,.8); display: flex; flex-direction: column; animation: pop .18s ease-out; }
.more-menu a, .more-menu button { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; border-radius: 14px; color: var(--vit-dim); font-weight: 560; text-decoration: none; text-align: left; }
.more-menu a:hover, .more-menu button:hover { background: rgba(255,255,255,.07); color: var(--vit-text); }
.more-menu a[aria-current="page"] { color: var(--vit-text); background: rgba(255,255,255,.1); }
@keyframes pop { from { opacity: 0; translate: 0 6px; } }

/* ---------- the vitrine ---------- */
.vitrine { position: relative; isolation: isolate; overflow: hidden; background: var(--vit); color: var(--vit-text); }
.vitrine::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.vitrine::after { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(70% 90% at 50% -20%, rgba(var(--light), .12), transparent 70%), linear-gradient(180deg, transparent 60%, rgba(0,0,0,.18)); }
.vit-inner { max-width: var(--w-narrow); margin: 0 auto; padding: 44px 40px 48px; }
.vitrine.tall .vit-inner, .vit-launch .vit-inner, .portrait-vit .vit-inner { max-width: var(--w); }
.vitrine.tall .vit-inner { padding-bottom: 0; }
.vit-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.vit-title { font-size: clamp(3.5rem, 8vw, 7rem); font-weight: 800; font-variation-settings: 'wdth' 76; letter-spacing: -.04em; line-height: .86; color: var(--vit-text); }
.vit-lede { margin-top: 18px; font-size: 1.125rem; line-height: 1.5; color: var(--vit-dim); max-width: 52ch; }
.vit-side { flex: none; margin-bottom: -48px; padding-top: 50px; }
.vit-actions { margin-top: 28px; }
.vit-fine { color: var(--vit-dim); font-size: .8125rem; }

/* a creature under its own light */
.lit { position: relative; display: inline-flex; flex-direction: column; align-items: center; width: var(--size); }
.lit svg { position: relative; z-index: 1; width: var(--size); height: var(--size); }
.spot { position: absolute; z-index: 0; left: 50%; top: calc(var(--size) * -.75); width: calc(var(--size) * 1.35); height: calc(var(--size) * 1.65); transform: translateX(-50%); pointer-events: none; background: radial-gradient(ellipse 46% 100% at 50% 0%, rgba(var(--light), .3), rgba(var(--light), .08) 60%, transparent 85%); clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); filter: blur(12px); }
.plate { position: relative; z-index: 2; display: inline-block; padding: 4px 14px 5px; border-radius: 5px; background: linear-gradient(180deg, var(--brass-1) 0%, var(--brass-2) 58%, var(--brass-3) 100%); color: var(--brass-ink); font: 650 .95rem/1.2 var(--voice); letter-spacing: .01em; white-space: nowrap; text-shadow: 0 1px 0 rgba(255,255,255,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(0,0,0,.22), 0 4px 8px -3px rgba(0,0,0,.55); }
.lit .plate { margin-top: 4px; }

/* the feed's display case: lights come on one by one */
.case { position: relative; margin-top: 30px; }
.case::before { content: ""; position: absolute; left: -40px; right: -40px; bottom: 14px; height: 58px; background: linear-gradient(180deg, var(--vit-3), var(--vit-2)); border-top: 1px solid rgba(255,255,255,.07); }
.case-ledge { position: relative; height: 14px; margin: 0 -40px; background: linear-gradient(180deg, var(--brass-2), var(--brass-3) 30%, #5E4517); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset; }
.case-row { position: relative; display: flex; gap: 6px; overflow-x: auto; padding: 96px 8px 26px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.case-row::-webkit-scrollbar { display: none; }
.case-row > :first-child { margin-left: auto; }
.case-row > :last-child { margin-right: auto; }
.exhibit { --size: 150px; --d: calc(var(--i) * 160ms + 150ms); position: relative; flex: none; width: 196px; display: flex; flex-direction: column; align-items: center; scroll-snap-align: center; border-radius: 16px; }
.exhibit svg { position: relative; z-index: 1; width: var(--size); height: var(--size); margin-bottom: -14px; filter: brightness(.32) saturate(.4); transition: filter .7s ease var(--d), transform .3s cubic-bezier(.34,1.56,.64,1); }
.exhibit .spot { opacity: 0; transition: opacity .7s ease var(--d); }
.exhibit .plate { opacity: .55; transition: opacity .7s ease var(--d), box-shadow .2s; }
.case.on .exhibit svg { filter: none; }
.case.on .exhibit .spot, .case.on .exhibit .plate { opacity: 1; }
.case.on.focused .exhibit:not([aria-pressed="true"]) svg { filter: brightness(.4) saturate(.45); transition-delay: 0s; }
.case.on.focused .exhibit:not([aria-pressed="true"]) .spot { opacity: 0; transition-delay: 0s; }
.case.on.focused .exhibit:not([aria-pressed="true"]) .plate { opacity: .5; transition-delay: 0s; }
.exhibit:hover svg { transform: translateY(-5px); }
.exhibit[aria-pressed="true"] .plate { box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 0 0 2px var(--jelly), 0 4px 10px -2px rgba(0,0,0,.5); }
.exhibit:focus-visible { outline-color: var(--brass-1); }

/* ---------- paper ---------- */
main { outline: none; }
.page { max-width: var(--w-narrow); margin: 0 auto; padding: 48px 40px 150px; }
.page.wide { max-width: var(--w); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 22px; border-radius: 999px; background: var(--btn); color: var(--btn-text); font-weight: 620; text-decoration: none; white-space: nowrap; transition: background .15s, transform .1s; }
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background: var(--sheet); }
.btn.jelly { background: var(--jelly); color: var(--jelly-ink); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset; }
.btn.jelly:hover { background: #F78FB2; }
.btn.light { background: var(--vit-text); color: #0D2621; }
.btn.light:hover { background: #fff; }
.btn.glass { background: rgba(255,255,255,.1); color: var(--vit-text); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); backdrop-filter: blur(6px); }
.btn.sm { height: 36px; padding: 0 15px; font-size: .875rem; gap: 7px; }
.btn.block { width: 100%; }
.mini { width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--text-2); text-decoration: none; flex: none; }
.mini:hover { background: var(--sheet-2); color: var(--text); }
.link { color: var(--text); font-weight: 600; font-size: .875rem; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration-color: currentColor; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line); font-size: .875rem; font-weight: 560; color: var(--text-2); }
.chip:hover { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); }
.sample { display: inline-flex; align-items: center; padding: 1px 9px; border-radius: 999px; font: 600 .72rem/1.6 var(--ui); color: var(--text-3); border: 1px dashed var(--line-2); vertical-align: middle; }

.toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 12px 0 13px; font-weight: 620; color: var(--text-3); white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--text); }
.toolbar .tabs { flex: 1; }
.filter-note { margin: -18px 0 28px; color: var(--text-2); }

/* ---------- the field log ---------- */
.feed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 56px; align-items: start; }
.log { position: relative; display: flex; flex-direction: column; gap: 44px; }
.log::before { content: ""; position: absolute; left: 99.5px; top: 30px; bottom: 90px; width: 1px; background: linear-gradient(var(--line-2), var(--line-2) 85%, transparent); }
.log-item { display: grid; grid-template-columns: 60px 48px minmax(0, 1fr); column-gap: 16px; align-items: start; }
.log-time { display: flex; flex-direction: column; align-items: flex-end; padding-top: 6px; line-height: 1.25; }
.log-time b { font-weight: 680; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.log-time span { font-size: .75rem; color: var(--text-3); white-space: nowrap; }
.log-node { position: relative; display: block; border-radius: 50%; box-shadow: 0 0 0 6px var(--paper); }
.kind-dot { position: absolute; right: -5px; bottom: -5px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--vit); color: var(--brass-1); box-shadow: 0 0 0 3px var(--paper); }
.kind-launch .kind-dot { background: var(--jelly); color: var(--jelly-ink); }
.log-line { font-size: 1.1875rem; line-height: 1.4; margin: 9px 0 16px; color: var(--text-2); }
.log-line .who { color: var(--text); font-weight: 720; text-decoration: none; }
.log-line .who:hover { text-decoration: underline; }
.log-line b { color: var(--text); font-weight: 650; }
.log-end { display: flex; align-items: center; gap: 18px; padding-left: 76px; color: var(--text-2); }
.log-end svg { width: 88px; height: 88px; flex: none; }
.empty, .loading { padding: 48px 24px; text-align: center; color: var(--text-2); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.loading { flex-direction: row; justify-content: center; }
.empty.wide { grid-column: 1 / -1; }

/* ---------- specimen sheets ---------- */
.portrait { --s: 44px; width: var(--s); height: var(--s); flex: none; display: inline-block; border-radius: 50%; background: radial-gradient(circle at 50% 72%, var(--tint), color-mix(in srgb, var(--tint) 50%, var(--sheet-2))); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(15,43,37,.1); }
.portrait svg { width: 100%; height: 100%; }
.token-art { --s: 72px; width: var(--s); height: var(--s); flex: none; display: block; border-radius: 28%; background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.55), transparent 60%), var(--tint); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(15,43,37,.1), 0 14px 24px -14px rgba(13,38,33,.45); }
.token-art svg { width: 100%; height: 100%; }

.tok { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 9px; border-radius: 6px 999px 999px 6px; background: linear-gradient(180deg, #F7E094, #E1B94C); color: #352802; font-weight: 740; font-size: .875rem; line-height: 1.4; letter-spacing: .01em; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -1px 0 rgba(120,85,10,.3), 0 1px 2px rgba(60,40,0,.18); }
.tok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 1px rgba(60,40,0,.45); }
.tname { font-weight: 650; }
.tname.big { font-size: 1.375rem; font-weight: 760; font-variation-settings: 'wdth' 84; letter-spacing: -.02em; }

.sheet { background: var(--sheet); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--lift); }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.sheet-head .watch { margin-left: auto; }
.watch[aria-pressed="true"] { color: var(--brass-3); }
.watch[aria-pressed="true"] svg path { fill: var(--brass-1); }
.figures { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.fig { padding: 14px 18px 16px; min-width: 0; }
.figures .fig + .fig { border-left: 1px solid var(--line); }
.fig dt { font-size: .78rem; color: var(--text-3); }
.fig dd { margin: 5px 0 0; font-size: 1.5rem; font-weight: 720; font-variation-settings: 'wdth' 80; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fig dd small { display: block; margin-top: 4px; font-size: .78rem; font-weight: 620; letter-spacing: 0; font-variation-settings: normal; }
.sheet-pad { padding: 14px 18px; border-top: 1px solid var(--line); }
.stamps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stamp { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 8px; border-radius: 8px; font-size: .84rem; font-weight: 580; border: 1px solid transparent; }
.stamp.good { color: var(--good); background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 25%, transparent); }
.stamp.warn { color: var(--warn); background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.stamp.unknown { color: var(--text-3); border: 1px dashed var(--line-2); }
.sheet-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 9px 18px; background: var(--sheet-2); border-top: 1px solid var(--line); }
.sheet-foot .mini { margin-left: -10px; }
.sheet-foot .src { margin-left: auto; }
.sheet-head.flat, .sheet-foot.flat { padding: 0; background: none; border: 0; }
.addr { font-size: .84rem; font-weight: 620; font-variant-numeric: tabular-nums; color: var(--text-2); }
.limits { flex-basis: 100%; font-size: .84rem; color: var(--text-2); }
.limits summary { cursor: pointer; color: var(--text-3); width: max-content; max-width: 100%; }
.limits p { margin: 6px 0 4px; max-width: 70ch; }
.rule { display: flex; align-items: center; gap: 7px; font-size: .875rem; color: var(--text-2); }

.sheet.birth { display: grid; grid-template-columns: 168px minmax(0, 1fr); }
.birth-art { display: grid; place-items: center; padding: 18px; background: radial-gradient(circle at 50% 38%, rgba(255,255,255,.7), transparent 62%), linear-gradient(160deg, var(--jelly-soft), color-mix(in srgb, var(--jelly) 32%, var(--sheet))); }
.birth-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.born { display: flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--text-2); }
.birth .sheet-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.sheet.birth.preview { grid-template-columns: 1fr; }
.sheet.birth.preview > .token-art { margin: 18px auto 0; }

.trade-side { margin-left: auto; font-size: .78rem; font-weight: 720; padding: 3px 11px; border-radius: 999px; background: var(--good-soft); }
.trade-side.down { background: var(--bad-soft); }
.swap-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) minmax(0, 1fr); align-items: center; border-top: 1px solid var(--line); }
.swap-arrow { color: var(--text-3); padding: 0 4px; }
.swap-row .fig:last-child { border-left: 1px solid var(--line); }

/* ---------- side rail ---------- */
.rail { display: flex; flex-direction: column; gap: 16px; }
@media (min-height: 880px) { .rail { position: sticky; top: 86px; } }
.rail-card { background: var(--sheet); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; box-shadow: var(--lift); }
.rail-title { font-size: 1rem; font-weight: 720; margin-bottom: 14px; }
.rail-card.mine { position: relative; overflow: hidden; isolation: isolate; background: var(--vit); color: var(--vit-text); border-color: transparent; text-align: center; padding-bottom: 20px; }
.rail-card.mine .rail-title { margin: 4px 0 6px; font-size: 1.125rem; }
.rail-card.mine .fine { color: var(--vit-dim); margin-bottom: 16px; }
.mini-stage { display: flex; justify-content: center; padding-top: 34px; }
.tally { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.tally div + div { border-left: 1px solid var(--line); padding-left: 14px; }
.tally dt { font-size: .78rem; color: var(--text-3); }
.tally dd { margin: 2px 0 0; font-size: 2.25rem; font-weight: 780; font-variation-settings: 'wdth' 76; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.tally.dark { margin-top: 26px; max-width: 420px; }
.tally.dark div + div { border-left-color: var(--vit-line); }
.tally.dark dt { color: var(--vit-dim); }
.rail-tokens { list-style: none; margin: 0 -8px; padding: 0; }
.rail-tokens button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; text-align: left; }
.rail-tokens button:hover { background: var(--sheet-2); }
.rail-tokens .tname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9375rem; font-weight: 560; }
.rail-n { font-size: .8125rem; font-weight: 650; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* ---------- an oddling's portrait page ---------- */
.portrait-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.portrait-vit .vit-inner { padding-top: 20px; padding-bottom: 64px; }
.stage { --size: 100%; position: relative; width: 100%; max-width: 470px; aspect-ratio: 1; justify-self: center; }
.stage-spot { position: absolute; left: 50%; top: -42%; width: 118%; height: 140%; transform: translateX(-50%); pointer-events: none; background: radial-gradient(ellipse 46% 100% at 50% 0%, rgba(var(--light), .28), rgba(var(--light), .07) 60%, transparent 85%); clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); filter: blur(14px); }
.stage-creature { position: absolute; inset: 4% 4% 2%; z-index: 1; cursor: grab; }
.stage-creature:active { cursor: grabbing; }
.stage-creature svg { width: 100%; height: 100%; }
.stage-ui { position: absolute; z-index: 2; left: 0; right: 0; bottom: -10px; display: flex; justify-content: space-between; align-items: center; color: var(--vit-dim); font-size: .8125rem; }
.stage-ui span { display: inline-flex; align-items: center; gap: 6px; }
.plate-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.lock { display: inline-flex; align-items: center; gap: 6px; color: var(--vit-dim); font-size: .8125rem; }
.portrait-text .vit-title { font-size: clamp(4rem, 9vw, 8rem); letter-spacing: -.025em; font-variation-settings: 'wdth' 82; }
.kind-line { margin: 14px 0 26px; color: var(--brass-1); font-weight: 620; font-size: 1.0625rem; }
.voice-quote { position: relative; margin: 0 0 18px; font-family: var(--voice); font-weight: 400; font-size: clamp(1.5rem, 2.5vw, 2.125rem); line-height: 1.22; letter-spacing: -.01em; color: var(--vit-text); max-width: 26ch; }
.voice-quote::before { content: "“"; position: absolute; left: -.5em; color: var(--brass-2); }
.portrait-text .vit-lede { margin: 0 0 26px; }
.portrait-text .row { gap: 16px; }

.ledger { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 16px; margin-bottom: 48px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border-radius: 20px; background: var(--sheet); border: 1px solid var(--line); text-decoration: none; box-shadow: var(--lift); }
a.tile:hover { border-color: var(--line-2); }
.tile-k { display: flex; align-items: center; gap: 7px; font-size: .875rem; font-weight: 620; color: var(--text-2); margin-bottom: 10px; }
.tile-v { font-size: 2.75rem; font-weight: 790; font-variation-settings: 'wdth' 76; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.tile-v.small { font-size: 1.375rem; letter-spacing: -.015em; line-height: 1.3; }
.tile-s { font-size: .8125rem; color: var(--text-3); margin-top: auto; padding-top: 6px; }
.label-card { padding: 18px 22px; border-radius: 20px; background: var(--sheet); border: 1px solid var(--line); box-shadow: var(--lift); }
.swatch { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(15,43,37,.15); }
.traits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; margin: 14px 0 0; }
.traits dt { font-size: .78rem; color: var(--text-3); }
.traits dd { margin: 0; font-family: var(--voice); font-weight: 650; font-size: 1rem; letter-spacing: -.01em; }
.tabs-big { margin-bottom: 28px; }
.card { background: var(--sheet); border: 1px solid var(--line); border-radius: 20px; padding: 24px 26px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--lift); }
.card + .card, .card + .gate, .gate + .card { margin-top: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tasks { list-style: none; margin: 0; padding: 0; }
.tasks li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.tasks li > div { flex: 1; display: flex; flex-direction: column; }
.tasks span { font-size: .875rem; color: var(--text-3); }
.task-ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--vit); color: var(--brass-1); flex: none; }
.note { display: flex; gap: 8px; align-items: center; font-size: .875rem; color: var(--text-2); padding: 12px 14px; border-radius: 12px; background: var(--sheet-2); }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; font-weight: 620; font-size: .9375rem; }
.field input, .field textarea, textarea, .add-row input, .sort select { width: 100%; padding: 12px 15px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--sheet); outline: none; font-weight: 450; }
.field input:focus, textarea:focus, .add-row input:focus, .sort select:focus { border-color: var(--text-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--text-2) 15%, transparent); }
textarea { resize: vertical; line-height: 1.5; }
.input-unit { display: flex; align-items: center; border-radius: 14px; border: 1px solid var(--line-2); background: var(--sheet); }
.input-unit:focus-within { border-color: var(--text-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--text-2) 15%, transparent); }
.input-unit input { border: 0 !important; box-shadow: none !important; background: none; }
.input-unit em { font-style: normal; color: var(--text-3); padding: 0 15px 0 0; font-weight: 620; }
.input-unit.pre em { padding: 0 0 0 15px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 6px 0; }
.fields.col { grid-template-columns: 1fr; margin: 0; }
.toggles { border: 0; padding: 0; margin: 4px 0 8px; display: flex; flex-direction: column; }
.toggle { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); font-weight: 540; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.knob { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--line-2); flex: none; transition: background .2s; }
.knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .22s cubic-bezier(.34,1.56,.64,1); }
.toggle input:checked + .knob { background: var(--vit-3); }
.toggle input:checked + .knob::after { transform: translateX(18px); }
.toggle input:focus-visible + .knob { outline: 2.5px solid var(--focus); outline-offset: 2px; }

/* ---------- chat ---------- */
.chat { height: min(72vh, 760px); min-height: 460px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--sheet); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--lift); }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--line); }
.msgs { overflow-y: auto; padding: 26px 22px; display: flex; flex-direction: column; gap: 16px; }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 88%; }
.msg.me { align-self: flex-end; }
.msg-body { padding: 12px 17px; border-radius: 22px; line-height: 1.45; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.msg.odd .msg-body { background: var(--sheet-2); border-bottom-left-radius: 6px; font-family: var(--voice); font-size: 1.0625rem; }
.msg.me .msg-body { background: var(--vit); color: var(--vit-text); border-bottom-right-radius: 6px; }
.msg .sheet { font-family: var(--ui); font-size: 1rem; box-shadow: none; }
.msg .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.msg .figures .fig:nth-child(3) { border-left: 0; }
.msg .figures .fig:nth-child(n+3) { border-top: 1px solid var(--line); }
.dots { display: inline-flex; gap: 4px; padding: 5px 0; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: dot 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 40% { transform: translateY(-4px); opacity: .5; } }
.composer { padding: 12px 14px 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.compose-row { display: flex; gap: 10px; align-items: flex-end; }
.compose-row textarea { flex: 1; resize: none; min-height: 50px; max-height: 160px; border-radius: 18px; }
.btn.send { width: 50px; height: 50px; padding: 0; }

/* ---------- launches ---------- */
.trio { display: flex; align-items: flex-end; }
.trio .lit { margin: 0 -10px; }
.sort { display: flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--text-3); }
.sort select { width: auto; padding: 9px 14px; border-radius: 999px; }
.launch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.cert { display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--lift); }
.cert-art { position: relative; display: grid; place-items: center; padding: 30px; background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.65), transparent 62%), var(--sheet-2); border-bottom: 1px solid var(--line); }
.sample.on-art { position: absolute; top: 14px; right: 14px; background: var(--sheet); }
.cert-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 22px 18px; }
.cert-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cert-cap { font-size: .8125rem; color: var(--text-3); }
.cert-cap b { color: var(--text); font-weight: 720; font-variant-numeric: tabular-nums; }
.cert-name { font-size: 1.75rem; font-weight: 780; font-variation-settings: 'wdth' 80; letter-spacing: -.03em; line-height: 1.02; }
.cert-by { display: flex; align-items: center; gap: 12px; font-size: .8125rem; color: var(--text-3); flex-wrap: wrap; }
.cert-by a { display: inline-flex; gap: 7px; align-items: center; color: var(--text-2); text-decoration: none; font-weight: 620; }
.cert .sheet-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- gates, watchlist, updates ---------- */
.gate { background: var(--sheet); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 20px; box-shadow: var(--lift); }
.gate-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gate-points li { display: flex; gap: 12px; align-items: center; font-weight: 540; font-size: 1.0625rem; }
.gate-points svg { color: var(--good); }
.meter { height: 12px; border-radius: 999px; background: var(--sheet-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--vit-3), var(--brass-2)); }
.brains { list-style: none; padding: 0; margin: 0; }
.brains li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.brains span { color: var(--text-2); }
.add-row { display: flex; gap: 10px; margin: 0 0 24px; }
.add-row input { flex: 1; border-radius: 999px; padding-left: 20px; }
.watch-list { list-style: none; padding: 0; margin: 0 0 12px; background: var(--sheet); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--lift); }
.watch-list li { display: grid; grid-template-columns: minmax(0, 1.6fr) 1fr .6fr 1fr auto; gap: 12px; align-items: center; padding: 15px 18px; border-top: 1px solid var(--line); }
.watch-list li:first-child { border-top: 0; }
.w-id { display: flex; gap: 10px; align-items: center; min-width: 0; }
.w-id .tname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-price { font-weight: 720; font-variant-numeric: tabular-nums; }
.w-ch { font-weight: 650; font-size: .875rem; font-variant-numeric: tabular-nums; }
.w-mc { font-size: .875rem; color: var(--text-3); }
.w-act { display: flex; align-items: center; gap: 2px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 30px; }
.note-entry { position: relative; }
.note-entry::before { content: ""; position: absolute; left: -34.5px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--brass-2); box-shadow: 0 0 0 4px var(--paper); }
.note-entry time { font-size: .875rem; font-weight: 680; color: var(--text-3); }
.note-card { margin-top: 10px; padding: 20px 22px; border-radius: 20px; background: var(--sheet); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; box-shadow: var(--lift); }
.note-card p { color: var(--text-2); max-width: 64ch; }
.tag-new, .tag-fix, .tag-tune { font-size: .75rem; font-weight: 720; padding: 2px 10px; border-radius: 999px; }
.tag-new { background: var(--jelly-soft); color: var(--text); } .tag-fix { background: var(--good-soft); color: var(--good); } .tag-tune { background: var(--warn-soft); color: var(--warn); }

/* ---------- modals & toast ---------- */
#modal-root { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.backdrop { position: absolute; inset: 0; background: rgba(4,16,13,.62); backdrop-filter: blur(4px); animation: fade .2s; }
.modal { position: relative; width: min(100%, 500px); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--sheet); border-radius: 28px; padding: 32px 30px 26px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 40px 90px -24px rgba(3,14,11,.7); animation: rise .34s cubic-bezier(.2,.9,.3,1.12); outline: none; }
.modal.wide { width: min(100%, 640px); }
.modal-x { position: absolute; z-index: 3; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); background: var(--sheet); }
.modal-title { font-size: 2rem; font-weight: 780; font-variation-settings: 'wdth' 80; letter-spacing: -.03em; line-height: 1.02; padding-right: 36px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.summon-stage { position: relative; isolation: isolate; overflow: hidden; display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin: -32px -30px 10px; padding: 70px 0 22px; background: var(--vit); border-bottom: 10px solid var(--brass-3); }
.summon-stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46px; z-index: -1; background: var(--vit-2); }
.handle-row { display: flex; gap: 10px; }
.handle-row .input-unit { flex: 1; border-radius: 999px; }
.handle-row input { padding: 12px 15px 12px 4px; width: 100%; outline: none; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, var(--brass-1), var(--brass-2)); color: var(--brass-ink); font: 700 1rem/1 var(--voice); }
.steps span { color: var(--text-2); }
.launch-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; margin-top: 6px; }
.launch-split .full { grid-column: 1 / -1; }
.preview-col { display: flex; flex-direction: column; gap: 8px; }
#toast { position: fixed; left: 50%; bottom: 96px; z-index: 90; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; padding: 12px 20px; border-radius: 999px; background: var(--vit); color: var(--vit-text); font-weight: 580; box-shadow: 0 18px 40px -12px rgba(3,14,11,.6); transition: opacity .2s, transform .25s cubic-bezier(.2,.9,.3,1.2); max-width: calc(100% - 32px); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- creatures ---------- */
svg.oddling { display: block; overflow: visible; touch-action: none; }
.odd-pupil { transform: translate(calc(var(--gx, 0) * var(--pm, 3px)), calc(var(--gy, 0) * var(--pm, 3px))); transition: transform .14s ease-out; }
.odd-face { transform: translate(calc(var(--gx, 0) * 3.5px), calc(var(--gy, 0) * 2.5px)); transition: transform .2s ease-out; }
.odd-eye { transform-box: fill-box; transform-origin: center; }
.blink .odd-eye { animation: blink .17s ease-in-out; }
@keyframes blink { 50% { transform: scaleY(.08); } }
.odd-body { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .55s cubic-bezier(.34,1.8,.5,1); }
.odd-body.held { transition: transform .06s linear; }
.hello .odd-body { animation: wiggle .8s cubic-bezier(.36,.07,.19,.97); }
@keyframes wiggle { 15% { transform: rotate(-7deg) scaleY(1.04); } 35% { transform: rotate(6deg); } 55% { transform: rotate(-4deg) translateY(-6px); } 75% { transform: rotate(2deg); } }
.live .odd-bob { animation: bob 3.4s ease-in-out infinite alternate; animation-delay: var(--delay, 0s); }
@keyframes bob { to { transform: translateY(-5px); } }
.vitrine .odd-shadow, .rail-card.mine .odd-shadow, .summon-stage .odd-shadow { opacity: .5; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .feed-layout { grid-template-columns: 1fr; }
  .rail { display: none; }
  .feed-main { width: 100%; max-width: 820px; margin-inline: auto; }
  .profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  .coin-label { display: none; }
  .dock > a span, .more-btn span { display: none; }
  .dock > a, .more-btn { padding: 0 14px; }
}
@media (max-width: 900px) {
  .portrait-grid { grid-template-columns: 1fr; gap: 20px; }
  .stage { max-width: 340px; }
  .ledger { grid-template-columns: 1fr 1fr; }
  .ledger .label-card { grid-column: 1 / -1; }
  .vit-side { display: none; }
}
@media (max-width: 680px) {
  .top-inner { padding: 10px 16px; gap: 12px; }
  .brand-word, .coin-chip, .search kbd { display: none; }
  .vit-inner { padding: 30px 16px 34px; }
  .page { padding: 32px 16px 130px; }
  .case::before { left: -16px; right: -16px; }
  .case-ledge { margin: 0 -16px; }
  .exhibit { width: 128px; --size: 108px; }
  .toolbar { flex-wrap: nowrap; gap: 10px; }
  .tabs { gap: 18px; }
  #refresh span { display: none; }
  #refresh { padding: 0 11px; }
  .log::before { left: 21.5px; }
  .log-item { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "node time" "node body"; column-gap: 12px; }
  .log-node { grid-area: node; }
  .log-node .portrait { --s: 44px !important; }
  .log-time { grid-area: time; flex-direction: row; gap: 8px; align-items: baseline; padding-top: 0; }
  .log-body { grid-area: body; }
  .log-line { margin-top: 2px; font-size: 1.0625rem; }
  .log-end { padding-left: 0; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures .fig:nth-child(3) { border-left: 0; }
  .figures .fig:nth-child(n+3) { border-top: 1px solid var(--line); }
  .fig dd { font-size: 1.25rem; }
  .sheet.birth { grid-template-columns: 1fr; }
  .swap-row { grid-template-columns: 1fr 1fr; }
  .swap-arrow { display: none; }
  .swap-row .fig:nth-child(3) { border-left: 1px solid var(--line); }
  .swap-row .fig:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .sheet-foot .src { margin-left: 0; flex-basis: 100%; }
  .fields, .launch-split, .ledger { grid-template-columns: 1fr; }
  .traits { grid-template-columns: 1fr 1fr; }
  .watch-list li { grid-template-columns: 1fr auto; }
  .w-mc { display: none; }
  .w-act { grid-column: 1 / -1; }
  .add-row { flex-direction: column; }
  .modal { padding: 28px 18px 18px; }
  .summon-stage { margin: -28px -18px 8px; gap: 2px; }
  .summon-stage .lit { --size: 84px !important; }
  .summon-stage .s1 { --size: 116px !important; }
  .dock { left: 10px; right: 10px; bottom: 10px; transform: none; justify-content: space-between; border-radius: 22px; }
  .dock > a, .more-btn, .dock-summon { flex-direction: column; justify-content: center; gap: 2px; height: 54px; padding: 0 4px; flex: 1; font-size: .6875rem; border-radius: 16px; }
  .dock > a span, .more-btn span, .dock-summon span { display: block; }
  .dock-summon { margin-left: 2px; }
  .more { flex: 1; display: flex; }
  .more-btn { width: 100%; }
  .more-menu { left: auto; right: -60px; transform: none; }
  .chat { height: calc(100vh - 290px); border-radius: 20px; }
  .msg { max-width: 96%; }
  #toast { bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}

/* ---------- midnight observatory composition ---------- */
html { background:var(--paper); }
body { font-size:15px; }
input,textarea { min-width:0; }
input::placeholder,textarea::placeholder { color:var(--text-3); opacity:1; }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
.top { background:none; border-bottom:0; backdrop-filter:none; -webkit-backdrop-filter:none; padding:10px 16px 0; }
/* no full-width bar: only the inner row is a floating frosted-glass bar */
.top-inner { position:relative; isolation:isolate; }
.top-inner::before { content:""; position:absolute; inset:0; z-index:-1; border-radius:16px; border:1px solid color-mix(in srgb, var(--line) 70%, transparent); background:color-mix(in srgb, var(--paper) 55%, transparent); backdrop-filter:blur(22px) saturate(1.4); -webkit-backdrop-filter:blur(22px) saturate(1.4); transition:background .25s, border-color .25s; }
.top.scrolled .top-inner::before { background:color-mix(in srgb, var(--sheet) 62%, transparent); border-color:var(--line); box-shadow:0 10px 30px -12px rgba(0,0,0,.6); }
.top-inner { padding:16px 48px; gap:36px; }
.brand-word { font-size:26px; letter-spacing:-1.5px; font-weight:800; }
.brand-mark { width:30px; height:30px; }
/* wordmark: "Pills" with the i's dot and both l's drawn as capsules */
.brand-word { display:inline-block; white-space:nowrap; font-size:38px; font-weight:800; letter-spacing:-.04em; line-height:1; color:var(--text); }
.bw-i { position:relative; display:inline-block; margin-left:.02em; }
.bw-i i { position:absolute; left:50%; top:.02em; width:.2em; height:.2em; border-radius:50%; transform:translateX(-50%); background:var(--jelly); box-shadow:0 0 10px color-mix(in srgb, var(--jelly) 60%, transparent); }
.bw-cap { display:inline-block; width:.2em; height:.74em; margin:0 .045em; vertical-align:baseline; border-radius:.1em; background:linear-gradient(180deg, var(--jelly) 0 50%, #ECEFF7 50% 100%); box-shadow:inset .03em .04em 0 rgba(255,255,255,.45), inset -.025em -.03em 0 rgba(0,0,0,.18); }
.bw-cap + .bw-cap { transform:rotate(14deg); transform-origin:50% 100%; margin-left:.07em; margin-right:.09em; }
.brand:hover .bw-cap + .bw-cap { transform:rotate(0deg); transition:transform .25s cubic-bezier(.3,1.6,.5,1); }
.bw-cap + .bw-cap { transition:transform .25s cubic-bezier(.3,1.6,.5,1); }
.search { height:44px; border-radius:10px; max-width:410px; background:#111624; }
.search input { font-size:13px; }
.coin-chip { border:0; height:44px; padding:0; gap:12px; }
.coin-chip code { color:var(--brass-1); font-size:12px; border:1px solid var(--line); padding:9px 12px; border-radius:7px; }
.coin-label { font-size:12px; }
.avatar { min-width:44px; min-height:44px; display:grid; place-items:center; }
.icon-btn,.mini { min-width:44px; min-height:44px; }
.dock { position:sticky; top:77px; left:auto; bottom:auto; transform:none; margin:auto; width:100%; border:0; border-bottom:1px solid var(--line); border-radius:0; padding:8px max(48px, calc((100vw - var(--w))/2 + 48px)); background:#080b14f2; box-shadow:none; gap:10px; z-index:35; }
.dock a,.more-btn,.dock-summon { height:44px; border-radius:8px; font-size:13px; padding:0 15px; }
.dock > a[aria-current="page"],.more-btn.current { background:var(--sheet-2); color:var(--text); box-shadow:inset 0 0 0 1px var(--line); }
.dock > a span,.more-btn span { display:block; }
.dock-summon { margin-left:auto; background:transparent; color:var(--jelly); }
.dock-summon:hover { background:var(--jelly-soft); }
/* single-row header: nav lives inside .top-inner */
.top-inner { max-width:none; padding:12px 24px; gap:20px; }
.search { flex:0 1 300px; }
.top-inner > .dock { position:static; flex:1 0 auto; width:auto; margin:0; padding:0; border:0; background:none; gap:4px; z-index:auto; }
.top-inner > .top-right { margin-left:0; }
/* hairline between the wordmark and the menu */
.top-inner > .brand::after { content:""; width:1px; height:22px; margin-left:22px; background:linear-gradient(180deg, transparent, var(--line-2) 30% 70%, transparent); opacity:.7; }
.top-inner > .dock .search { flex:0 1 340px; min-width:150px; max-width:340px; height:32px; margin-left:40px; padding:0 5px 0 11px; gap:8px; border-radius:8px; }
.top-inner > .dock .search kbd { padding:2px 6px; font-size:.6875rem; }
.top-inner > .dock .search input { font-size:12.5px; }
/* CA + X: compact chip on the right; give it room by trimming other things first */
@media(min-width:761px) {
  .top-inner .coin-chip { gap:4px; }
  .top-inner .coin-chip code { padding:7px 10px; }
  .top-inner .coin-chip .mini, .top-inner [data-site="twitter"] { min-width:34px; min-height:34px; }
  .top-inner .top-right { gap:6px; }
}
@media(max-width:1600px) and (min-width:761px) { .top-inner .coin-label { display:none; } }
@media(max-width:1500px) and (min-width:761px) {
  .top-inner:has(.coin-chip:not([hidden])) > .dock > a span, .top-inner:has(.coin-chip:not([hidden])) > .dock .more-btn span { display:none; }
  .top-inner:has(.coin-chip:not([hidden])) > .dock > a, .top-inner:has(.coin-chip:not([hidden])) > .dock .more-btn { padding-inline:12px; }
}
@media(max-width:1060px) and (min-width:761px) {
  .top-inner:has(.coin-chip:not([hidden])) .dock-summon span { display:none; }
  .top-inner:has(.coin-chip:not([hidden])) [data-site="buy"] { display:none; }
}
@media(max-width:960px) and (min-width:761px) { .top-inner:has(.coin-chip:not([hidden])) .search { display:none; } }
@media(max-width:1180px) and (min-width:761px) {
  .top-inner { gap:14px; padding-inline:24px; }
  .top-inner > .dock > a span, .top-inner > .dock .more-btn span, .top-inner > .dock .dock-summon span { display:none; }
  .top-inner > .dock > a, .top-inner > .dock .more-btn, .top-inner > .dock .dock-summon { padding-inline:12px; }
}
.more-menu { top:calc(100% + 16px); bottom:auto; background:var(--sheet); border-color:var(--line-2); border-radius:12px; }
.vitrine { background:var(--paper); border-bottom:1px solid var(--line); }
.vitrine::before { display:none; }
.vitrine::after { background:radial-gradient(ellipse 60% 75% at 60% 85%,#17213770,transparent); }
.vit-inner { padding:48px 48px; }
.vit-title { font-size:clamp(48px,5.1vw,74px); letter-spacing:-.06em; line-height:1.06; font-weight:500; font-variation-settings:normal; }
.vit-lede { font-size:16px; line-height:1.7; max-width:48ch; margin-top:20px; }
.vit-side { padding:0; margin:0; }
.vit-head { align-items:center; }
.vit-feed .vit-inner { padding-top:44px; }
.vit-feed .vit-lede { max-width:53ch; }
.feed-invite { display:flex; flex-direction:column; align-items:center; gap:12px; margin:0 18px 0 0; }
.feed-invite .fine { font-size:11px; margin-top:1px; }
.btn { border-radius:10px; height:46px; font-size:13px; font-weight:700; }
.btn.sm { min-height:44px; }
.btn.jelly { color:var(--jelly-ink); background:linear-gradient(120deg,#F7B4DD,#C5B7ED); box-shadow:inset 0 1px 0 #fff8,0 4px 22px #f6a4da14; }
.btn.jelly:hover { background:linear-gradient(120deg,#FFD0E9,#D6CCF5); }
.btn.light { color:var(--btn-text); }
.btn.glass { background:#192132; box-shadow:inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background:var(--sheet-2); }
.link { min-height:44px; }
.plate { background:none; color:var(--text); font:750 22px/1.2 var(--ui); padding:5px 12px; border-radius:0; box-shadow:none; text-shadow:none; letter-spacing:-.03em; }
.spot { clip-path:none; filter:none; top:0; width:110%; height:105%; background:radial-gradient(ellipse at 50% 65%,rgba(var(--light),.09),transparent 65%); }
.case { margin-top:14px; }
.case::before,.case-ledge { display:none; }
.case-row { gap:12px; padding:10px 4px 24px; }
.exhibit { --size:200px; --d:calc(var(--i)*120ms); flex:1 0 0; min-width:140px; width:auto; border-radius:0; }
.exhibit svg { margin-bottom:-12px; max-width:100%; transition:filter .85s ease var(--d),transform .3s ease; }
.exhibit .plate { font-size:24px; }
.exhibit-caption { font-size:11px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--text-3); padding:0 0 6px; }
.exhibit[aria-pressed="true"] .plate { box-shadow:none; color:var(--jelly); text-decoration:underline; text-underline-offset:6px; }
.case.on.focused .exhibit:not([aria-pressed="true"]) .plate { opacity:1; color:var(--text-3); }
.page { padding:40px 48px 88px; }
.feed-section-head { display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin:0 0 26px; }
.feed-section-head h2 { font-weight:500; letter-spacing:-.03em; font-size:25px; }
.feed-section-head p { color:var(--text-3); font-size:12px; }
.feed-layout { grid-template-columns:minmax(0,1fr) 292px; gap:40px; }
.feed-main { min-width:0; }
.toolbar { margin-bottom:28px; }
.tabs { gap:24px; }
.tabs button { font-size:13px; min-height:48px; }
.log { gap:32px; }
.log::before { left:21.5px; background:linear-gradient(var(--line),var(--line) 85%,transparent); }
.log-item { grid-template-columns:44px minmax(0,1fr); grid-template-areas:"node body" "time body"; gap:0 18px; }
.log-node { grid-area:node; }
.log-node .portrait { --s:44px !important; }
.log-time { grid-area:time; padding-top:12px; align-items:center; gap:4px; }
.log-time b { font-size:11px; font-weight:500; }
.log-time span { font-size:9px; white-space:normal; text-align:center; }
.log-body { grid-area:body; min-width:0; }
.log-line { font-size:13px; margin:8px 0 14px; }
.log-line .who { font-weight:750; }
.kind-dot { background:var(--sheet-2); color:var(--text-2); }
.sheet { border-radius:12px; box-shadow:none; }
.sheet-head { padding:14px 16px; }
.tok { color:var(--brass-1); background:#282518; border:1px solid #e9c98729; border-radius:5px; font-size:12px; }
.fig { padding:16px; }
.fig dt { font-size:11px; color:var(--text-3); }
.fig dd { font-size:clamp(16px,1.55vw,23px); font-weight:650; letter-spacing:-.04em; overflow:visible; text-overflow:clip; white-space:normal; overflow-wrap:anywhere; }
.fig dd small { font-size:11px; line-height:1.5; margin-top:6px; }
.sheet-foot { background:#0d121e; padding:8px 16px; gap:4px 12px; }
.sheet-foot .fine,.addr { font-size:11px; }
.sheet-foot .link { font-size:12px; }
.limits { font-size:12px; }
.limits summary { min-height:44px; display:list-item; padding-top:11px; }
.stamp { border:0 !important; border-radius:5px; font-size:11px; padding:6px 8px; }
.stamp.unknown { background:var(--sheet-2); }
.stamps { gap:6px; }
.portrait { background:radial-gradient(circle at 40% 20%,color-mix(in srgb,var(--tint) 22%,#1a2030),#0d1423); border:1px solid #ffffff12; }
.token-art { background:radial-gradient(circle at 40% 20%,color-mix(in srgb,var(--tint) 20%,#1a2030),#101522); border:1px solid #ffffff24; }
.rail { position:static; gap:20px; }
.rail-card { border-radius:12px; box-shadow:none; padding:20px; }
.rail-card.mine { background:radial-gradient(ellipse at 50% 25%,#243049,#101522 70%); border:1px solid var(--line); }
.mini-stage { padding-top:0; }
.rail-card.mine .rail-title { font:700 26px var(--voice); letter-spacing:-.03em; }
.rail-card.mine .fine { font-size:12px; }
.rail-title { font-weight:600; font-size:13px; }
.tally dd { font-size:30px; font-weight:500; padding-top:5px; }
.tally dt { font-size:10px; }
.rail-tokens button { min-height:48px; }
.rail-tokens .tname { font-size:12px; }
.log-end { padding-left:52px; font-size:13px; }
.portrait-vit .vit-inner { padding-top:40px; padding-bottom:54px; }
.portrait-grid { gap:70px; }
.stage { max-width:470px; background:radial-gradient(ellipse at 50% 50%,#25344c66,transparent 67%); }
.stage-spot { clip-path:none; filter:none; top:0; left:0; width:100%; height:100%; transform:none; background:radial-gradient(ellipse at 50% 60%,#7b91d712,transparent 65%); }
.stage-creature { inset:-3% 0 6%; }
.stage-ui { bottom:0; padding:0 25px; font-size:11px; }
.portrait-text .vit-title { font-family:var(--voice); font-size:clamp(76px,8vw,116px); font-weight:400; letter-spacing:-.05em; }
.plate-row { margin-bottom:18px; }
.plate-row .plate { font:500 12px var(--ui); border:1px solid var(--line-2); border-radius:5px; padding:7px 10px; }
.lock { font-size:11px; }
.kind-line { color:var(--text-2); margin:12px 0 24px; font-size:14px; }
.voice-quote { font-size:28px; max-width:30ch; }
.voice-quote::before { color:var(--text-3); }
.portrait-text .vit-lede { font-size:14px; max-width:45ch; }
.portrait-text .vit-fine { font-size:11px; max-width:25ch; }
.tile,.label-card,.card,.gate { border-radius:12px; }
.ledger { gap:18px; margin-bottom:36px; }
.tile-v { font-size:44px; font-weight:500; }
.tile-k { font-size:12px; }
.traits dd { font-size:17px; padding-top:3px; }
.traits dt,.tile-s { font-size:11px; }
.tile-v.small { font-size:20px; }
.toggle input:checked + .knob { background:#B9A5FF; }
.toggle input:checked + .knob::after { background:#151725; }
.chip { min-height:44px; font-size:12px; border-radius:8px; }
.field input,.field textarea,textarea,.add-row input,.sort select,.input-unit { border-radius:8px; }
.vit-chat .vit-inner { padding-top:36px; padding-bottom:28px; }
.vit-chat .vit-title { font-size:52px; }
.vit-chat .vit-lede { font-size:14px; }
.vit-chat .lit { --size:112px !important; }
body[data-page="chat"] .page { padding-top:24px; }
.chat { height:min(62vh,650px); min-height:440px; border-radius:14px; background:linear-gradient(135deg,#121a29,#101522); }
.chat-head { padding:10px 20px; }
.msgs { padding:30px; gap:22px; }
.msg.odd .msg-body { font-size:22px; background:#1b2435; border-radius:2px 18px 18px 18px; padding:20px 22px; }
.msg.me .msg-body { background:#2d2842; font-size:14px; border-radius:18px 2px 18px 18px; }
.msg .sheet { font-size:13px; }
.msg .sheet .fig dd { font-size:18px; }
.composer { background:#0c111d; padding:16px; }
.compose-row textarea { border-radius:9px; font-size:14px; padding-top:14px; }
.btn.send { border-radius:9px; }
.cert { border-radius:14px; box-shadow:none; }
.cert-art { padding:12px 30px; min-height:245px; background:radial-gradient(ellipse at 50% 40%,#28364f,#131c2c 55%,#101522); }
.coin-specimen { width:240px; max-width:100%; position:relative; }
.coin-specimen svg { width:100%; height:240px; }
.cert-body { padding:24px; gap:15px; }
.cert-name { font-size:29px; font-weight:500; letter-spacing:-.04em; }
.cert .voice { color:var(--text-2); font-size:20px; }
.cert-top { flex-wrap:wrap; }
.cert-by { margin-top:auto; }
.cert-by a { min-height:44px; }
.cert-cap { font-size:11px; }
.birth-art { background:radial-gradient(ellipse,#28354c,#151c2b); }
.birth-art .token-art { background:none; border:0; border-radius:0; box-shadow:none; overflow:visible; }

.birth .voice { font-size:20px; }
.sort select { min-height:44px; font-size:12px; }
.vit-launch .vit-title { font-size:64px; }
.vit-launch .trio .lit { --size:160px !important; }
.vit-launch .trio .lit:nth-child(2) { --size:190px !important; }
.vit-launch .vit-lede { max-width:49ch; }
.modal { border:1px solid #4a536a; border-radius:20px; box-shadow:0 40px 120px #000a; padding:32px; }
.modal.wide { width:min(100%,650px); }
.modal-title { font-size:30px; line-height:1.16; font-weight:500; letter-spacing:-.045em; }
.modal-x { width:44px; height:44px; border-color:var(--line-2); background:#111827; }
.backdrop { background:#030610c7; backdrop-filter:blur(14px); }
.summon-stage { margin:-32px -32px 8px; padding:30px 0 24px; gap:24px; background:radial-gradient(ellipse at 50% 80%,#2e304b,#101725 70%); border-bottom:1px solid var(--line); }
.summon-stage::after { height:23px; background:linear-gradient(#69748a22,#0c111e); border-top:1px solid #ffffff0f; }
.summon-stage .s1 { --size:205px !important; }
.summon-stage .s0,.summon-stage .s2 { --size:135px !important; }
.summon-stage .s0 { transform:rotate(-9deg); }
.summon-stage .s2 { transform:rotate(9deg); }
.gate-points li { font-size:13px; }
.modal .gate-points { padding:5px 0; gap:12px; }
.handle-row { margin-top:4px; }
.handle-row .input-unit { border-radius:8px; }
.handle-row input { border:0; background:transparent; }
#toast { bottom:24px; background:#222c40; border:1px solid #54647e; border-radius:10px; font-size:13px; }
.meter span { background:linear-gradient(90deg,#688aac,#bdd9ec); }
.note-card { border-radius:12px; }
.note-entry::before { background:var(--text-3); }
.watch-list { border-radius:12px; }
.w-mc { color:var(--text-2); }
.refreshing svg { animation:refresh .7s linear infinite; }
@keyframes refresh { to {transform:rotate(360deg)} }
.live .odd-bob { animation:none; }
.live.in-view .odd-bob { animation:breathe 3.8s ease-in-out infinite alternate; animation-delay:var(--delay,0s); transform-origin:100px 180px; }
@keyframes breathe { to { transform:translateY(-1.5px) scale(1.005,1.016); } }
.vitrine .odd-shadow,.rail-card.mine .odd-shadow,.summon-stage .odd-shadow { opacity:1; }

@media(min-width:1600px) {
  .vit-feed .vit-title { font-size:84px; }
  .case-row { padding-top:24px; }
  .exhibit { --size:220px; }
  .feed-layout { grid-template-columns:minmax(0,1fr) 330px; gap:56px; }
}
@media(max-width:1240px) {
  .top-inner { gap:24px; padding-inline:32px; }
  .dock { padding-inline:32px; }
  .vit-inner,.page { padding-left:32px; padding-right:32px; }
  .feed-layout { grid-template-columns:minmax(0,1fr) 270px; gap:24px; }
  .rail { display:flex; }
  .feed-main { max-width:none; }
  .exhibit { --size:175px; }
  .feed-invite { margin-right:0; }
  .vit-launch .trio .lit { --size:105px !important; }
  .vit-launch .trio .lit:nth-child(2) { --size:140px !important; }
}
@media(max-width:1000px) {
  .dock { gap:3px; }
  .dock a,.more-btn,.dock-summon { padding-inline:11px; }
  .feed-layout { grid-template-columns:1fr; }
  .rail { display:grid; grid-template-columns:1fr 1fr; }
  .rail-card.mine { grid-row:span 2; }
  .vit-feed .vit-side { display:block; }
  .feed-invite .fine { display:none; }
  .feed-invite .btn { padding:0 14px; }
  .portrait-grid { gap:30px; }
}
@media(max-width:760px) {
  .top-inner { gap:14px; padding:12px 20px; flex-wrap:wrap; }
  .brand-word { display:inline-block; }
  .search { order:3; max-width:none; flex-basis:100%; }
  .coin-chip { display:flex; }
  .coin-label { display:none; }
  .top-right { gap:10px; }
  .top, .top.scrolled { position:relative; backdrop-filter:none; -webkit-backdrop-filter:none; }
  .top-inner > .top-right { margin-left:auto; }
  .top-inner > .dock .search { display:none; }
  .top-inner > .brand::after { display:none; }
  .top { padding:0; }
  .top-inner::before { display:none; }
  .top-inner { border-bottom:1px solid var(--vit-line); }
  .top-inner > .dock { position:fixed; flex:none; width:auto; padding:6px; border:1px solid var(--line-2); background:#111725f5; z-index:50; }
  .dock { position:fixed; top:auto; left:8px; right:8px; bottom:8px; width:auto; padding:6px; border:1px solid var(--line-2); border-radius:15px; gap:0; justify-content:space-between; background:#111725f5; box-shadow:0 8px 25px #0009; }
  .dock > a,.more-btn,.dock-summon { flex:1; min-width:44px; height:52px; padding:0 2px; flex-direction:column; justify-content:center; font-size:9px; gap:5px; border-radius:9px; }
  .dock .ico { width:18px; height:18px; }
  .dock-summon { margin-left:2px; color:var(--jelly); }
  .dock > a span,.more-btn span,.dock-summon span { display:block; }
  .more { flex:1; }
  .more-btn { width:100%; }
  .more-menu { top:auto; bottom:calc(100% + 16px); left:auto; right:-48px; transform:none; }
  .more-menu a { flex-direction:row; font-size:13px; }
  .vit-inner,.page { padding:30px 20px; }
  .page { padding-bottom:108px; }
  .vit-title { font-size:48px; }
  .vit-feed .vit-inner { padding-top:30px; }
  .vit-feed .vit-head { display:block; }
  .vit-feed .vit-title { font-size:clamp(39px,8vw,58px); letter-spacing:-.065em; }
  .vit-feed .vit-lede { font-size:14px; line-height:1.7; margin-top:16px; }
  .vit-feed .vit-side { margin-top:22px; }
  .feed-invite { flex-direction:row; justify-content:flex-start; gap:18px; }
  .feed-invite .link { font-size:12px; }
  .feed-invite .btn { font-size:12px; }
  .case { margin-top:2px; }
  .case-row { padding:6px 0 22px; gap:4px; }
  .case-row > :first-child { margin-left:0; }
  .case-row > :last-child { margin-right:0; }
  .exhibit { flex:none; width:138px; min-width:138px; --size:148px; }
  .exhibit .plate { font-size:21px; }
  .exhibit-caption { font-size:9px; }
  .feed-section-head { display:block; margin-bottom:14px; }
  .feed-section-head h2 { font-size:23px; }
  .feed-section-head p { font-size:11px; margin-top:6px; }
  .toolbar { gap:8px; flex-wrap:wrap; }
  .tabs { gap:17px; }
  .tabs button { font-size:11px; }
  #refresh { padding:0; width:44px; }
  #refresh span { display:none; }
  .log-item { grid-template-columns:32px minmax(0,1fr); grid-template-areas:"node body" "time body"; column-gap:10px; }
  .log-node .portrait { --s:32px !important; }
  .log-node { min-width:44px; min-height:44px; box-shadow:none; }
  .kind-dot { right:5px; bottom:5px; width:17px; height:17px; }
  .log::before { left:15px; }
  .log-time { flex-direction:column; font-size:9px; padding-top:4px; gap:3px; }
  .log-time b { font-size:9px; }
  .log-time span { font-size:8px; }
  .log-line { font-size:12px; margin-top:2px; }
  .sample { font-size:9px; padding-inline:6px; }
  .figures { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .figures .fig:nth-child(3) { border-left:0; }
  .figures .fig:nth-child(n+3) { border-top:1px solid var(--line); }
  .fig { padding:12px; }
  .fig dd { font-size:18px; }
  .fig dt { font-size:10px; }
  .sheet-head { padding:10px 12px; gap:8px; flex-wrap:wrap; }
  .sheet-head .tname { font-size:12px; }
  .sheet-pad { padding:12px; }
  .sheet-foot { padding:6px 12px; gap:0 8px; }
  .stamp { font-size:10px; padding:5px 6px; }
  .sheet-foot .src { flex-basis:100%; }
  .sheet.birth { grid-template-columns:1fr; }
  .birth-art { padding:16px; }
  .birth-body { padding:14px; }
  .born { font-size:11px; }
  .rail { display:flex; }
  .rail-card.mine { display:none; }
  .log-end { padding-left:0; gap:6px; font-size:12px; }
  .portrait-vit .vit-inner { padding-top:10px; padding-bottom:32px; }
  .portrait-grid { grid-template-columns:1fr; gap:30px; }
  .stage { max-width:340px; }
  .stage-ui { padding:0; }
  .portrait-text .vit-title { font-size:76px; }
  .portrait-text .vit-lede { font-size:14px; }
  .voice-quote { font-size:26px; padding-left:10px; }
  .voice-quote::before { left:-2px; }
  .portrait-text .vit-fine { max-width:none; }
  .kind-line { margin:8px 0 20px; }
  .plate-row { margin-bottom:12px; }
  .ledger { grid-template-columns:1fr 1fr; gap:12px; }
  .ledger .label-card { grid-column:1/-1; }
  .tile { padding:16px; }
  .tile-v.small { font-size:17px; }
  .traits { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .card,.gate { padding:20px; }
  .note { align-items:flex-start; font-size:12px; }
  .fields { grid-template-columns:1fr; }
  .tasks li { gap:10px; }
  .tasks strong { font-size:13px; }
  .tasks span { font-size:11px; }
  .vit-chat .vit-inner { padding-top:28px; padding-bottom:24px; }
  .vit-chat .vit-title { font-size:40px; }
  .vit-chat .vit-lede { font-size:12px; margin-top:12px; }
  body[data-page="chat"] .page { padding:16px 12px 94px; }
  .chat { height:calc(100svh - 338px); min-height:420px; border-radius:12px; }
  .msgs { padding:18px 12px; }
  .msg { max-width:100%; gap:7px; }
  .msg.odd .msg-body { font-size:19px; padding:14px; }
  .msg .portrait { --s:26px !important; }
  .composer { padding:10px; }
  .composer .chips { flex-wrap:nowrap; overflow-x:auto; padding-bottom:3px; }
  .composer .chip { flex:none; font-size:10px; padding-inline:10px; }
  .compose-row { gap:7px; }
  .compose-row textarea { font-size:12px; }
  .msg .sheet-head .tname { width:100%; }
  .msg .fig dd { font-size:14px; }
  .msg .sheet { margin-inline:-7px; }
  .msg .fig { padding:8px; }
  .vit-launch .vit-title { font-size:48px; }
  .vit-launch .vit-lede { font-size:14px; }
  .sort { gap:5px; font-size:11px; }
  .sort select { padding:8px; max-width:155px; font-size:11px; }
  .launch-grid { gap:20px; }
  .cert-art { min-height:235px; }
  .cert-body { padding:20px; }
  .w-mc { display:block; grid-column:1; }
  .w-ch { grid-column:2; grid-row:2; }
  .w-act { flex-wrap:wrap; }
  .watch-list li { gap:8px; padding:14px; }
  .modal { padding:24px 18px; border-radius:16px; max-height:calc(100svh - 24px); }
  #modal-root { padding:12px; }
  .modal-title { font-size:26px; }
  .modal .muted { font-size:12px; }
  .summon-stage { margin:-24px -18px 4px; gap:4px; padding:38px 0 20px; }
  .summon-stage .s1 { --size:132px !important; }
  .summon-stage .s0,.summon-stage .s2 { --size:92px !important; }
  .modal .gate-points li { font-size:11px; gap:8px; }
  .handle-row { gap:8px; }
  .handle-row .btn { font-size:11px; padding-inline:12px; }
  .handle-row .input-unit { min-width:0; }
  .handle-row input { font-size:13px; }
  .modal .fine { font-size:11px; }
  .modal-x { top:10px; right:10px; }
  .launch-split { grid-template-columns:1fr; }
  #toast { bottom:88px; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
  .odd-face,.odd-pupil { transform:none !important; }
}
/* Quiet finishing details: tokens carry value, never a metallic badge. */
.tok { background:#24251F; box-shadow:none; text-shadow:none; }
.tok::before { display:none; }
@media(max-width:760px) {
  .chat { height:calc(100svh - 400px); }
  .watch-list .w-id { flex-wrap:wrap; }
  .watch-list .w-id .tname { white-space:normal; }
}
@media(max-width:760px) {
  /* A configured contract and X link get their own row instead of squeezing search. */
  .top-inner:has([data-act="copy-ca"]:not([hidden])),
  .top-inner:has([data-site="twitter"]:not([hidden])) { display:grid; grid-template-columns:minmax(0,1fr) 44px 44px; gap:10px; }
  .top-inner:has([data-act="copy-ca"]:not([hidden])) .top-right,
  .top-inner:has([data-site="twitter"]:not([hidden])) .top-right { display:contents; }
  .top-inner:has([data-act="copy-ca"]:not([hidden])) .search,
  .top-inner:has([data-site="twitter"]:not([hidden])) .search { grid-column:1/-1; grid-row:2; }
  .top-inner:has([data-act="copy-ca"]:not([hidden])) .coin-chip,
  .top-inner:has([data-site="twitter"]:not([hidden])) .coin-chip { grid-column:1/-1; grid-row:3; justify-content:flex-end; }
  .top-inner:has([data-act="copy-ca"]:not([hidden])) .avatar,
  .top-inner:has([data-site="twitter"]:not([hidden])) .avatar { grid-column:3; grid-row:1; }
  .top [data-site="twitter"] { grid-column:2; grid-row:1; }
  .dock { bottom:max(8px,env(safe-area-inset-bottom)); }
}
.lost { padding-top:20px; gap:22px; }
.lost-creature { width:220px; max-width:70%; background:radial-gradient(ellipse at 50% 60%,#23314966,transparent 70%); }
.lost-creature svg { width:100%; }
.lost h1 { color:var(--text); font-size:clamp(28px,4vw,48px); font-weight:500; letter-spacing:-.045em; line-height:1.12; max-width:17ch; }

/* Timeline: just the creature on the page background, no disc behind it. */
.log-node, .log-node:hover { box-shadow: none; background: none; }
.log-node .portrait { background: none; border: 0; box-shadow: none; overflow: visible; }
/* The timeline line stops just before each creature and picks up again after it. */
.log-node { z-index: 1; isolation: isolate; }
.log-node::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -10px; bottom: -10px; width: 9px; transform: translateX(-50%); background: var(--paper); pointer-events: none; }
/* Real 3D vinyl figures: shared WebGL output is composited inside each SVG. */
.studio-rendered { isolation:isolate; }
.studio-body { transform-origin:50% 91%; }
.studio-body canvas { pointer-events:none; }
.hello .studio-body { animation:toy-wave .85s ease-in-out; }
@keyframes toy-wave { 18% { transform:rotate(-5deg) translateY(-3px); } 42% { transform:rotate(5deg) translateY(-6px); } 68% { transform:rotate(-3deg); } }
@media(prefers-reduced-motion:reduce) { .hello .studio-body { animation:none !important; } }
