/* ============================================================
   OmniPad — institutional app shell
   Warm bone neutrals, near-black brand, hairline warm borders,
   tiny tracked uppercase labels, dense data-first surfaces.
   Sidebar + topbar shell.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ============================================================
   Palette sampled from the omni brand assets — iridescent
   pastels over pearl, with a deep plum ink for legibility.
   ============================================================ */
:root {
  /* surfaces */
  --bg-page:     #faf7fa;
  --bg-app:      #ffffff;
  --bg-card:     #f5f1f7;
  --bg-inverse:  #2a2333;
  --bg-scrim:    #2a233359;

  /* content */
  --ink:         #2a2333;
  --ink-hover:   #4a4058;
  --ink-2:       #6b6377;
  --ink-3:       #948ca0;
  --ink-disabled:#c3bcce;
  --ink-inverse: #fdfbfe;

  /* borders */
  --line:        #e2daea;
  --line-subtle: #eee9f2;
  --line-hover:  #cfc4dc;
  --line-active: #2a2333;

  /* fills */
  --fill-brand:       #2a2333;
  --fill-brand-hover: #453c55;
  --fill-subtle:      #f0ebf4;
  --fill-subtle-hover:#e4dcec;
  --fill-hover:       #ded3ea4d;
  --fill-selected:    #efe9f5;
  --fill-track:       #ede7f2;

  /* status — kept in the pastel world but held to readable contrast */
  --up:           #3f8f6f;
  --up-fill:      #e4f2eb;
  --up-line:      #a8d8c2;
  --down:         #c2536a;
  --down-strong:  #b8425c;
  --down-fill:    #fbe7ec;
  --down-line:    #f0b7c5;
  --warn:         #9a6b2f;
  --warn-fill:    #fbefdc;
  --warn-line:    #ebc99b;
  --info-fill:    #f0eaf8;
  --info-line:    #d6c8ea;
  --accent:       #7a5ea8;

  /* iridescent accents lifted straight off the artwork */
  --a-rose:       #f6b8c6;
  --a-blush:      #e8c0d8;
  --a-peach:      #f8cdb4;
  --a-apricot:    #fae0d7;
  --a-sand:       #efd9a8;
  --a-mint:       #c8e6d0;
  --a-seafoam:    #a9dce6;
  --a-sky:        #c8e0f4;
  --a-periwinkle: #b6c4ee;
  --a-orchid:     #d9b8e4;
  --a-lilac:      #e2c0e2;
  --a-violet:     #c6c0cc;
  --a-teal:       #83bbc7;
  --a-steel:      #8ea6be;
  --a-plum:       #97809d;
  --a-pearl:      #e3e2de;

  /* the signature gradient — brand mark, progress, active states */
  --grad: linear-gradient(100deg,
    #f6b8c6 0%, #f8cdb4 20%, #efd9a8 38%,
    #a9dce6 60%, #b6c4ee 80%, #d9b8e4 100%);

  /* type */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;

  /* metrics */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 6px;
  --r-full: 9999px;
  --shadow-sm: 0 1px 2px 0 #3a383208, 0 2px 4px 0 #3a38320a;
  --shadow-md: 0 6px 12px -2px #3a383205, 0 12px 24px -4px #3a383208;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --fast: .15s;
  --base: .2s;

  --sidebar-w: 15.25rem;
  --topbar-h: 4.25rem;
  --gut: clamp(1rem, 2.4vw, 1.5rem);

  color-scheme: light;
}

/* dark counterpart — same tokens, plum-black ground */
:root[data-theme="dark"] {
  --bg-page:     #14111a;
  --bg-app:      #1c1825;
  --bg-card:     #231e2e;
  --bg-inverse:  #f4f0f8;
  --bg-scrim:    #0a0710a6;

  --ink:         #f0ecf5;
  --ink-hover:   #d6cfe2;
  --ink-2:       #a79fb8;
  --ink-3:       #7e7690;
  --ink-disabled:#564e66;
  --ink-inverse: #1c1825;

  --line:        #332c42;
  --line-subtle: #26202f;
  --line-hover:  #473d59;
  --line-active: #f0ecf5;

  --fill-brand:       #f0ecf5;
  --fill-brand-hover: #d6cfe2;
  --fill-subtle:      #26202f;
  --fill-subtle-hover:#332c42;
  --fill-hover:       #ffffff0f;
  --fill-selected:    #2b2438;
  --fill-track:       #2b2438;

  --up:         #79c9a5;
  --up-fill:    #16281f;
  --up-line:    #2f5844;
  --down:       #f093a6;
  --down-strong:#e87e95;
  --down-fill:  #2c1620;
  --down-line:  #5c2b3a;
  --warn:       #e0be86;
  --warn-fill:  #2a2115;
  --warn-line:  #564428;
  --info-fill:  #241e33;
  --info-line:  #443a5c;
  --accent:     #b9a3de;

  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--ink-inverse); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: var(--r-full); border: 3px solid var(--bg-page); }
::-webkit-scrollbar-thumb:hover { background: var(--line-hover); }

/* ============================================================
   APP SHELL
   ============================================================ */
.app-shell { display: flex; flex-direction: column; height: 100svh; overflow: hidden; background: var(--bg-page); }

.app-topbar {
  position: relative; z-index: 12;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  height: var(--topbar-h); flex: 0 0 var(--topbar-h);
  padding: 0 var(--gut);
  border-bottom: 1px solid var(--line-subtle);
  background: color-mix(in srgb, var(--bg-page) 94%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.app-topbar__l { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.app-topbar__r { display: flex; align-items: center; gap: .5rem; }

.brand { display: flex; align-items: center; gap: .625rem; min-width: 0; }
.brand__mark {
  width: 1.75rem; height: 1.75rem; flex: none;
  border-radius: var(--r-full);
  display: block; object-fit: cover;
}
.brand__word { font-size: .9375rem; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.brand__word span { color: var(--ink-3); font-weight: 500; }
.brand__page {
  padding-left: .75rem; margin-left: .125rem;
  border-left: 1px solid var(--line);
  font-size: .6875rem; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.app-body { display: flex; flex: 1; min-height: 0; }

/* ---------- sidebar ---------- */
.app-sidebar {
  position: relative; z-index: 20;
  display: flex; flex-direction: column;
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w); min-height: 0;
  border-right: 1px solid var(--line-subtle);
  background: var(--bg-app);
}
.app-nav { flex: 1; min-height: 0; overflow-y: auto; padding: 1.25rem .75rem; }
.app-nav__label {
  margin: 0 0 .5rem; padding: 0 .625rem;
  font-size: .6875rem; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-2);
}
.app-nav__grp + .app-nav__grp { margin-top: 1.5rem; }
.app-nav__item {
  display: flex; align-items: center; gap: .625rem;
  width: 100%; min-height: 2.5rem; margin-bottom: .1875rem;
  padding: 0 .625rem; border-radius: var(--r-sm);
  background: transparent; color: var(--ink-2);
  font-size: .8125rem; font-weight: 500;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.app-nav__item:hover { background: var(--fill-hover); color: var(--ink); }
.app-nav__item.is-active { background: var(--fill-selected); color: var(--ink); font-weight: 600; }
.app-nav__glyph { width: 1rem; height: 1rem; flex: none; opacity: .8; }
.app-nav__glyph svg { width: 100%; height: 100%; }
.app-nav__tag {
  margin-left: auto; padding: .0625rem .375rem;
  border-radius: var(--r-xs); background: var(--fill-subtle);
  font-family: var(--mono); font-size: .625rem; color: var(--ink-3);
}

.app-sidebar__foot { padding: .75rem; border-top: 1px solid var(--line-subtle); }
.app-sidebar__legal { padding: .5rem .625rem 0; font-size: .6875rem; line-height: 1.45; color: var(--ink-3); }

.app-sidebar__close { display: none; }
.app-scrim { display: none; }

/* ---------- main ---------- */
.app-main { flex: 1; min-width: 0; overflow-y: auto; overflow-x: hidden; }
.wrap { width: 100%; max-width: 78rem; margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.section--tight { padding-block: clamp(1rem, 2vw, 1.5rem); }
.pagehead { padding-block: clamp(1.5rem, 3vw, 2.25rem) 1.25rem; }

/* ============================================================
   TYPE
   ============================================================ */
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; letter-spacing: -.02em; }
.display { font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.06; letter-spacing: -.04em; font-weight: 600; }
/* one serif-italic accent per headline, as a counterweight to the grotesque */
.display em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.h1 { font-size: clamp(1.375rem, 2.4vw, 1.875rem); line-height: 1.12; letter-spacing: -.03em; }
.h2 { font-size: 1.125rem; line-height: 1.22; letter-spacing: -.02em; }
.h3 { font-size: .9375rem; line-height: 1.3; letter-spacing: -.015em; }
.h4 { font-size: .8125rem; font-weight: 600; letter-spacing: -.005em; }

.eyebrow {
  font-size: .6875rem; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-2);
}
.lede { font-size: .9375rem; line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.up { color: var(--up); }
.down { color: var(--down); }
.center { text-align: center; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.25rem; padding: 0 .875rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg-app); color: var(--ink);
  font-size: .8125rem; font-weight: 500; letter-spacing: -.005em;
  cursor: pointer; white-space: nowrap;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.btn:hover { border-color: var(--line-hover); background: var(--fill-subtle); }
.btn:focus-visible { outline: 2px solid var(--line-active); outline-offset: 2px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn--primary { background: var(--fill-brand); border-color: var(--fill-brand); color: var(--ink-inverse); }
.btn--primary:hover { background: var(--fill-brand-hover); border-color: var(--fill-brand-hover); color: var(--ink-inverse); }
.btn--ink { background: var(--fill-brand); border-color: var(--fill-brand); color: var(--ink-inverse); }
.btn--ink:hover { background: var(--fill-brand-hover); border-color: var(--fill-brand-hover); color: var(--ink-inverse); }
.btn--warnstate { background: var(--warn-fill); border-color: var(--warn-line); color: var(--warn); }
.btn--warnstate:hover { background: var(--warn-fill); border-color: var(--warn); color: var(--warn); }
.btn--ghost { background: transparent; border-color: transparent; }
.btn--ghost:hover { background: var(--fill-hover); border-color: transparent; }
.btn--up { background: var(--up); border-color: var(--up); color: #fff; }
.btn--up:hover { background: var(--up); border-color: var(--up); filter: brightness(1.12); color: #fff; }
.btn--down { background: var(--down-strong); border-color: var(--down-strong); color: #fff; }
.btn--down:hover { background: var(--down); border-color: var(--down); color: #fff; }
.btn--lg { min-height: 2.75rem; padding: 0 1.25rem; font-size: .875rem; }
.btn--sm { min-height: 1.875rem; padding: 0 .625rem; font-size: .75rem; }
.btn--block { width: 100%; }

.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; flex: none;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg-app); color: var(--ink-2); cursor: pointer;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.iconbtn:hover { color: var(--ink); border-color: var(--line-hover); background: var(--fill-subtle); }
.iconbtn svg { width: .875rem; height: .875rem; }

/* ============================================================
   CHIPS / TAGS
   ============================================================ */
.chip {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .125rem .5rem; border-radius: var(--r-full);
  border: 1px solid var(--line); background: var(--bg-app);
  font-size: .6875rem; font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-2);
}
.chip--live { border-color: var(--up-line); background: var(--up-fill); color: var(--up); }
.chip--accent { border-color: var(--info-line); background: var(--info-fill); color: var(--warn); }
.chip--warn { border-color: var(--warn-line); background: var(--warn-fill); color: var(--warn); }
.dot { width: .375rem; height: .375rem; border-radius: var(--r-full); background: currentColor; flex: none; }
.dot--pulse { animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.tag {
  display: inline-block; padding: .0625rem .375rem;
  border: 1px solid var(--line-subtle); border-radius: var(--r-xs);
  background: var(--fill-subtle);
  font-family: var(--mono); font-size: .625rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-2);
}

/* ============================================================
   PANELS / GRIDS
   ============================================================ */
.panel { background: var(--bg-app); border: 1px solid var(--line-subtle); border-radius: var(--r-md); }
.panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .875rem 1.125rem; border-bottom: 1px solid var(--line-subtle);
  flex-wrap: wrap;
}
.panel__body { padding: 1.125rem; }

.grid { display: grid; gap: 1px; background: var(--line-subtle); border: 1px solid var(--line-subtle); border-radius: var(--r-md); overflow: hidden; }
.grid > * { background: var(--bg-app); padding: 1rem 1.125rem; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.stat__k { font-size: .6875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.stat__v { font-size: 1.5rem; line-height: 1.15; letter-spacing: -.035em; font-weight: 600; margin-top: .375rem; font-variant-numeric: tabular-nums; }
.stat__sub { font-size: .75rem; color: var(--ink-3); margin-top: .125rem; }

.sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.rule { height: 1px; background: var(--line-subtle); border: 0; margin: 0; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-block: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 2.5vw, 2rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,.65fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: end; }
.hero__sub { margin-top: 1.125rem; }
.hero__cta { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero__aside { border-left: 1px solid var(--line-subtle); padding-left: clamp(1rem, 2vw, 1.75rem); }
.hero__aside dl { margin: 0; display: grid; gap: 1rem; }
.hero__aside dt { font-size: .6875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.hero__aside dd { margin: .25rem 0 0; font-size: 1.375rem; font-weight: 600; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }

/* ---------- venue rail ---------- */
.ticker { border-block: 1px solid var(--line-subtle); background: var(--bg-app); overflow: hidden; }
.ticker__inner { display: flex; width: max-content; animation: slide 52s linear infinite; }
.ticker:hover .ticker__inner { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker__set { display: flex; align-items: center; }
.ticker__item {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .625rem 1.125rem; border-right: 1px solid var(--line-subtle);
  font-size: .6875rem; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-2); white-space: nowrap;
}
.ticker__item b { font-weight: 600; color: var(--ink); }
.ticker__item .sq { width: .4375rem; height: .4375rem; flex: none; border-radius: var(--r-xs); }
@media (prefers-reduced-motion: reduce) { .ticker__inner { animation: none; } }

/* ============================================================
   TABS / CONTROLS
   ============================================================ */
.tabs { display: flex; border-bottom: 1px solid var(--line-subtle); flex-wrap: wrap; }
.tab {
  appearance: none; border: 0; background: none; cursor: pointer;
  padding: .625rem .875rem; margin-bottom: -1px;
  font-size: .8125rem; font-weight: 500; color: var(--ink-2);
  border-bottom: 2px solid transparent;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--line-active); }
.tab .cnt { font-family: var(--mono); font-size: .6875rem; color: var(--ink-3); margin-left: .3125rem; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.selectwrap { display: inline-flex; align-items: center; gap: .5rem; }
.selectwrap label { font-size: .6875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }

select.ctl, input.ctl, textarea.ctl {
  appearance: none; background: var(--bg-app);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  min-height: 2.25rem; padding: .375rem 1.75rem .375rem .625rem;
  font-size: .8125rem; color: var(--ink); cursor: pointer;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2385837e' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .625rem center;
}
input.ctl, textarea.ctl { background-image: none; padding-right: .625rem; cursor: text; }
select.ctl:hover, input.ctl:hover, textarea.ctl:hover { border-color: var(--line-hover); }
select.ctl:focus, input.ctl:focus, textarea.ctl:focus {
  outline: none; border-color: var(--line-active);
  box-shadow: 0 0 0 3px var(--fill-hover);
}
input.ctl::placeholder, textarea.ctl::placeholder { color: var(--ink-3); }

/* ============================================================
   TABLE
   ============================================================ */
.tablewrap { overflow-x: auto; }
table.board { width: 100%; border-collapse: collapse; min-width: 54rem; }
table.board thead th {
  text-align: right; padding: .625rem .875rem;
  font-size: .6875rem; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-2);
  border-bottom: 1px solid var(--line-subtle); white-space: nowrap;
  background: var(--bg-app);
}
table.board thead th:first-child, table.board thead th.l { text-align: left; }
table.board tbody td { padding: .75rem .875rem; border-bottom: 1px solid var(--line-subtle); text-align: right; vertical-align: middle; }
table.board tbody td:first-child, table.board tbody td.l { text-align: left; }
table.board tbody tr { transition: background var(--fast) var(--ease); }
table.board tbody tr:hover { background: var(--fill-hover); }
table.board tbody tr:last-child td { border-bottom: 0; }

.rank { font-family: var(--mono); font-size: .75rem; color: var(--ink-3); width: 2.75rem; font-variant-numeric: tabular-nums; }
.coincell { display: flex; align-items: center; gap: .625rem; min-width: 0; }
.avatar {
  width: 2rem; height: 2rem; flex: none; border-radius: var(--r-sm);
  display: grid; place-items: center;
  font-size: .75rem; font-weight: 600; letter-spacing: -.02em;
  color: #2a2333; border: 1px solid #2a233314;
}
.coincell__t { min-width: 0; }
.coincell__n { font-weight: 600; font-size: .8125rem; display: flex; align-items: center; gap: .4375rem; letter-spacing: -.01em; }
.coincell__n:hover { color: var(--ink-hover); }
.coincell__s { font-family: var(--mono); font-size: .6875rem; color: var(--ink-3); letter-spacing: .02em; }
.star { background: none; border: 0; cursor: pointer; color: var(--ink-disabled); padding: .125rem; line-height: 0; transition: color var(--fast) var(--ease); }
.star:hover { color: var(--ink-3); }
.star svg { width: .8125rem; height: .8125rem; }
.star.on { color: var(--warn-line); }
.star.on svg path { fill: currentColor; }

.bar { height: .25rem; background: var(--fill-track); border-radius: var(--r-full); overflow: hidden; width: 4.5rem; margin-left: auto; margin-top: .3125rem; }
.bar > i { display: block; height: 100%; background: var(--grad); border-radius: var(--r-full); }

/* ---------- iridescent accents ---------- */
.app-nav__item.is-active { position: relative; }
.app-nav__item.is-active::before {
  content: ''; position: absolute; left: 0; top: .4375rem; bottom: .4375rem;
  width: 2px; border-radius: var(--r-full); background: var(--grad);
}
.tab[aria-selected="true"] { border-bottom-color: transparent; background-image: var(--grad); background-repeat: no-repeat; background-position: bottom; background-size: 100% 2px; }
.gradrule { height: 2px; border: 0; margin: 0; background: var(--grad); }

.empty { padding: 3.5rem 1.25rem; text-align: center; color: var(--ink-3); }
.empty .h3 { color: var(--ink); margin-bottom: .5rem; }
.skel { display: inline-block; height: .8em; width: 4rem; border-radius: var(--r-xs); background: linear-gradient(90deg, var(--fill-subtle), var(--line), var(--fill-subtle)); background-size: 200% 100%; animation: sk 1.4s var(--ease) infinite; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============================================================
   CARD GRID BOARD
   ============================================================ */
.viewtoggle { display: flex; gap: .125rem; padding: .1875rem; background: var(--bg-card); border: 1px solid var(--line-subtle); border-radius: var(--r-sm); }
.viewtoggle button {
  display: inline-flex; align-items: center; gap: .375rem;
  border: 0; background: none; cursor: pointer;
  padding: .25rem .5rem; border-radius: var(--r-xs);
  font-size: .6875rem; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.viewtoggle button:hover { color: var(--ink); }
.viewtoggle button[aria-selected="true"] { background: var(--bg-app); color: var(--ink); box-shadow: var(--shadow-sm); }
.viewtoggle svg { width: .8125rem; height: .8125rem; }

.cardgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: .875rem;
}

.coincard {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  min-height: 17.5rem;
  background: var(--bg-app);
  border: 1px solid var(--line-subtle);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.coincard:hover { border-color: var(--line-hover); box-shadow: var(--shadow-sm); }

.coincard__top { display: flex; align-items: center; gap: .625rem; padding: .875rem 1rem .5rem; }
.coincard__id { min-width: 0; flex: 1; }
.coincard__name {
  display: block; font-size: .875rem; font-weight: 600; letter-spacing: -.015em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.coincard__name:hover { color: var(--ink-hover); }
.coincard__sym { font-family: var(--mono); font-size: .6875rem; color: var(--ink-3); letter-spacing: .02em; }

.coincard__px { display: flex; align-items: baseline; gap: .5rem; padding: 0 1rem .5rem; flex-wrap: wrap; }
.coincard__val { font-size: 1.375rem; font-weight: 600; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.coincard__chg { font-family: var(--mono); font-size: .75rem; font-variant-numeric: tabular-nums; }
.coincard__k { font-size: .625rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); width: 100%; }

.coincard__spark { height: 3.75rem; padding: 0 0 .25rem; }
.coincard__spark svg { width: 100%; height: 100%; display: block; }

.coincard__raise { padding: .25rem 1rem 1rem; align-self: center; }
.coincard__raise .bar { width: 100%; margin: .5rem 0 0; height: .3125rem; }
.coincard__raisenums { display: flex; justify-content: space-between; gap: .5rem; font-size: .75rem; }

.coincard__stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; margin: 0; background: var(--line-subtle); border-top: 1px solid var(--line-subtle); }
.coincard__stats > div { background: var(--bg-app); padding: .5625rem .75rem; min-width: 0; }
.coincard__stats dt { font-size: .625rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.coincard__stats dd { margin: .125rem 0 0; font-family: var(--mono); font-size: .75rem; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.coincard__foot {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .625rem 1rem .75rem; border-top: 1px solid var(--line-subtle);
  background: var(--bg-card);
}
.coincard__venues { display: flex; gap: .25rem; flex-wrap: wrap; min-width: 0; overflow: hidden; }

/* ============================================================
   STEPS
   ============================================================ */
.steps { display: grid; }
.step { display: grid; grid-template-columns: 2rem 1fr; gap: .875rem; padding: .9375rem 0; border-bottom: 1px solid var(--line-subtle); }
.step:last-child { border-bottom: 0; }
.step__n {
  display: grid; place-items: center;
  width: 1.5rem; height: 1.5rem; border-radius: var(--r-full);
  background: var(--fill-subtle); color: var(--ink);
  font-size: .6875rem; font-weight: 600;
}
.step__t { font-weight: 600; font-size: .8125rem; margin-bottom: .1875rem; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--ink-2); font-size: .8125rem; max-width: 66ch; }

/* ============================================================
   FORMS
   ============================================================ */
.field { display: block; margin-bottom: 1.125rem; }
.field__label { display: flex; align-items: baseline; justify-content: space-between; gap: .625rem; margin-bottom: .375rem; }
.field__label span:first-child { font-size: .6875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.field__hint { font-size: .75rem; color: var(--ink-3); }
.field input.ctl, .field select.ctl, .field textarea.ctl { width: 100%; }
.field textarea.ctl { min-height: 5.5rem; resize: vertical; line-height: 1.55; padding-block: .5rem; }
.field__note { font-size: .75rem; color: var(--ink-3); margin-top: .375rem; }
.field__err { font-size: .75rem; color: var(--down); margin-top: .375rem; }

.inputgroup { display: flex; }
.inputgroup input.ctl { border-radius: var(--r-sm) 0 0 var(--r-sm); flex: 1; min-width: 0; }
.inputgroup .suffix {
  display: inline-flex; align-items: center; padding: 0 .625rem;
  border: 1px solid var(--line); border-left: 0; border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--fill-subtle); font-family: var(--mono); font-size: .6875rem;
  letter-spacing: .04em; color: var(--ink-2);
}

.optset { display: flex; flex-wrap: wrap; gap: .375rem; }
.opt {
  position: relative;
  display: inline-flex; align-items: center; gap: .4375rem;
  min-height: 2rem; padding: 0 .6875rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg-app); cursor: pointer;
  font-size: .78125rem; font-weight: 500; color: var(--ink-2);
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease), color var(--fast) var(--ease);
  user-select: none;
}
.opt:hover { border-color: var(--line-hover); color: var(--ink); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt.is-on { border-color: var(--line-active); background: var(--fill-selected); color: var(--ink); font-weight: 600; }
.opt .sq { width: .5rem; height: .5rem; border-radius: var(--r-xs); flex: none; }

.dropzone {
  border: 1px dashed var(--line); border-radius: var(--r-md);
  background: var(--bg-card); padding: 1.5rem; text-align: center;
  cursor: pointer; transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.dropzone:hover, .dropzone.is-over { border-color: var(--line-active); background: var(--fill-subtle); }
.dropzone__prev { width: 5rem; height: 5rem; margin: 0 auto .75rem; border-radius: var(--r-sm); border: 1px solid var(--line); object-fit: cover; display: none; }
.dropzone.has-img .dropzone__prev { display: block; }
.dropzone.has-img .dropzone__ph { display: none; }

.wizard__head { display: flex; align-items: center; gap: .375rem; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .1875rem .625rem; border-radius: var(--r-full);
  border: 1px solid var(--line-subtle); background: var(--bg-app);
  font-size: .6875rem; font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-3);
}
.pill.is-on { border-color: var(--line-active); background: var(--fill-brand); color: var(--ink-inverse); }
.pill.is-done { color: var(--up); border-color: var(--up-line); background: var(--up-fill); }

.summary { display: grid; }
.summary__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line-subtle); }
.summary__row:last-child { border-bottom: 0; }
.summary__k { font-size: .6875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.summary__v { font-size: .8125rem; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }

.callout {
  border: 1px solid var(--info-line); border-radius: var(--r-md);
  background: var(--info-fill);
  padding: .875rem 1rem; font-size: .8125rem; line-height: 1.55; color: var(--ink-2);
}
.callout strong { color: var(--ink); font-weight: 600; }
.callout--warn { border-color: var(--warn-line); background: var(--warn-fill); }

/* ============================================================
   LAUNCH WIZARD
   ============================================================ */
.wiz { display: grid; grid-template-columns: 13.5rem minmax(0,1fr); gap: 1.5rem; align-items: start; padding-block: 1.5rem 3.5rem; }

.wizsteps { position: sticky; top: 0; display: grid; gap: .25rem; }
.wizstep {
  display: flex; align-items: center; gap: .625rem;
  width: 100%; text-align: left;
  padding: .625rem .75rem; border: 1px solid transparent; border-radius: var(--r-sm);
  background: transparent; color: var(--ink-2);
  font-size: .8125rem; font-weight: 500; cursor: pointer;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.wizstep:hover:not(.is-on) { background: var(--fill-hover); color: var(--ink); }
.wizstep__n {
  display: grid; place-items: center; flex: none;
  width: 1.375rem; height: 1.375rem; border-radius: var(--r-xs);
  border: 1px solid var(--line); background: var(--bg-app);
  font-family: var(--mono); font-size: .6875rem; color: var(--ink-3);
  transition: inherit;
}
.wizstep.is-on { background: var(--fill-selected); color: var(--ink); font-weight: 600; border-color: var(--line); }
.wizstep.is-on .wizstep__n { background: var(--fill-brand); border-color: var(--fill-brand); color: var(--ink-inverse); }
.wizstep.is-done .wizstep__n { background: var(--up-fill); border-color: var(--up-line); color: var(--up); }
.wizstep[disabled] { opacity: .55; cursor: not-allowed; }

.wizpanel { background: var(--bg-app); border: 1px solid var(--line-subtle); border-radius: var(--r-md); }
.wizpanel__head { padding: 1.25rem 1.375rem .5rem; }
.wizpanel__head h2 { font-size: 1.125rem; letter-spacing: -.025em; }
.wizpanel__head p { margin: .375rem 0 0; font-size: .8125rem; line-height: 1.6; color: var(--ink-2); max-width: 74ch; }
.wizpanel__body { padding: 1rem 1.375rem 1.375rem; }
.wizpanel__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .875rem 1.375rem; border-top: 1px solid var(--line-subtle);
  background: var(--bg-card); border-radius: 0 0 var(--r-md) var(--r-md);
}
.wizpanel__foot .k { font-size: .6875rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- identity marks ----------
   Ticker logos are transparent 250px PNGs. They get a light tile and
   are contained with a little breathing room; the coloured letterform
   underneath is only ever the fallback and is hidden once a real logo
   paints. Layering a transparent logo straight onto the brand colour
   is what made these read as coloured blobs at 16px. */
.mark {
  position: relative; display: inline-block; flex: none;
  border-radius: var(--r-xs); overflow: hidden; vertical-align: middle;
  line-height: 0;
}
.mark--logo {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(26, 26, 24, .10);
}
:root[data-theme="dark"] .mark--logo { background: #f4f2ee; }
/* white-artwork logos need a dark ground to be visible at all */
.mark--logo.mark--onDark { background: #1d1b17; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
:root[data-theme="dark"] .mark--logo.mark--onDark { background: #26231e; }

.mark__l {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--sans); font-weight: 700; letter-spacing: -.03em; line-height: 1;
}
.mark--logo.has-img .mark__l { display: none; }

.mark__g { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-2); }
.mark__i {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 9%; box-sizing: border-box;
}
.mark--chain { border-radius: 50%; }
.mark--chain .mark__i { padding: 0; object-fit: cover; }
.mark--chain.has-img { background: transparent !important; }

.mark--plain { background: transparent; box-shadow: none; }
.mark--plain .mark__i { padding: 0; }

/* real product photography over the generated plate */
.itemwrap { position: relative; display: inline-block; flex: none; line-height: 0; }
.itemwrap .itemart { position: absolute; inset: 0; }
.itemwrap__i {
  position: relative; width: 100%; height: 100%;
  object-fit: contain; display: block;
}
.itemwrap.has-img .itemart { opacity: 0; }

.itemart { border-radius: var(--r-sm); flex: none; display: block; }

/* ---------- pair asset picker ---------- */
.pairrow { display: flex; flex-wrap: wrap; gap: .375rem; }
.pairbtn {
  display: inline-flex; align-items: center; gap: .4375rem;
  min-height: 2.375rem; padding: 0 .75rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg-app); cursor: pointer;
  font-size: .8125rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink-2);
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.pairbtn:hover { border-color: var(--line-hover); color: var(--ink); }
.pairbtn.is-on { border-color: var(--line-active); background: var(--fill-selected); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-active); }
.pairbtn .mark { border-radius: var(--r-xs); flex: none; }
.pairnote { margin: .625rem 0 0; font-size: .8125rem; color: var(--ink-2); }
.pairnote b { color: var(--ink); font-weight: 600; }

/* ---------- optional pairings ---------- */
.pairprops { display: grid; gap: 1px; background: var(--line-subtle); border: 1px solid var(--line-subtle); border-radius: var(--r-md); overflow: hidden; margin-top: 1.125rem; }
.pairprop { display: flex; align-items: center; gap: .875rem; padding: .875rem 1rem; background: var(--bg-app); }
.pairprop__i {
  display: grid; place-items: center; flex: none;
  width: 2.125rem; height: 2.125rem; border-radius: var(--r-sm);
  background: var(--bg-card); border: 1px solid var(--line-subtle); color: var(--ink-2);
}
.pairprop__i svg { width: 1rem; height: 1rem; }
.pairprop__t { flex: 1; min-width: 0; }
.pairprop__t b { display: block; font-size: .8125rem; font-weight: 600; letter-spacing: -.01em; }
.pairprop__t small { display: block; font-size: .78125rem; color: var(--ink-2); line-height: 1.5; }
.pairprop__b { display: flex; gap: .375rem; flex: none; }
.pairprop.is-set .pairprop__i { background: var(--fill-selected); border-color: var(--line); color: var(--ink); }

/* ---------- "how it works" ---------- */
.howpanel { margin-top: 1.125rem; border: 1px solid var(--line-subtle); border-radius: var(--r-md); overflow: hidden; }
.howpanel__h { padding: .625rem 1rem; background: var(--bg-card); border-bottom: 1px solid var(--line-subtle); font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.howrow { display: flex; gap: .75rem; padding: .8125rem 1rem; border-bottom: 1px solid var(--line-subtle); background: var(--bg-app); }
.howrow:last-child { border-bottom: 0; }
.howrow__n { flex: none; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: var(--r-xs); background: var(--fill-subtle); font-family: var(--mono); font-size: .625rem; color: var(--ink-2); }
.howrow p { margin: 0; font-size: .8125rem; line-height: 1.55; color: var(--ink-2); }
.howrow p b { color: var(--ink); font-weight: 600; }

/* ---------- thesis cards ---------- */
.thesisgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr)); gap: .625rem; }
.thesiscard {
  display: grid; grid-template-rows: auto 1fr auto; gap: .375rem;
  padding: .875rem; min-height: 7.25rem; text-align: left;
  border: 1px solid var(--line-subtle); border-radius: var(--r-md);
  background: var(--bg-app); cursor: pointer;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.thesiscard:hover { border-color: var(--line-hover); }
.thesiscard.is-on { border-color: var(--line-active); background: var(--fill-selected); box-shadow: inset 0 0 0 1px var(--line-active); }
.thesiscard b { font-size: .875rem; font-weight: 600; letter-spacing: -.015em; }
.thesiscard small { font-size: .78125rem; color: var(--ink-2); line-height: 1.5; }
.thesiscard__marks { display: flex; gap: .25rem; flex-wrap: wrap; align-items: center; min-height: 1.25rem; }
.thesiscard__marks .mark { border-radius: var(--r-xs); }
.thesiscard__marks .none { font-family: var(--mono); font-size: .8125rem; color: var(--ink-disabled); }

/* ---------- governance presets ---------- */
.govgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .625rem; }
.govcard {
  text-align: left; padding: .875rem; border: 1px solid var(--line-subtle);
  border-radius: var(--r-md); background: var(--bg-app); cursor: pointer;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.govcard:hover { border-color: var(--line-hover); }
.govcard.is-on { border-color: var(--line-active); background: var(--fill-selected); box-shadow: inset 0 0 0 1px var(--line-active); }
.govcard b { display: block; font-size: .875rem; font-weight: 600; letter-spacing: -.015em; }
.govcard small { display: block; font-size: .78125rem; color: var(--ink-2); line-height: 1.5; margin: .1875rem 0 .625rem; min-height: 2.25rem; }
.govcard dl { display: grid; gap: 1px; margin: 0; background: var(--line-subtle); border: 1px solid var(--line-subtle); border-radius: var(--r-xs); overflow: hidden; }
.govcard dl > div { display: flex; justify-content: space-between; gap: .5rem; padding: .3125rem .5rem; background: var(--bg-app); }
.govcard dt { font-size: .6875rem; color: var(--ink-3); }
.govcard dd { margin: 0; font-family: var(--mono); font-size: .6875rem; font-weight: 600; color: var(--ink); }

.caps { display: flex; flex-wrap: wrap; gap: .3125rem; margin-top: .875rem; }
.cap {
  padding: .1875rem .5rem; border-radius: var(--r-xs);
  border: 1px solid var(--line-subtle); background: var(--bg-card);
  font-size: .6875rem; color: var(--ink-2);
}
.cap.is-off { opacity: .4; text-decoration: line-through; }

/* ---------- rules ---------- */
.rules { margin-top: 1.125rem; border: 1px solid var(--line-subtle); border-radius: var(--r-md); overflow: hidden; }
.rules__h { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; padding: .625rem 1rem; background: var(--bg-card); border-bottom: 1px solid var(--line-subtle); }
.rules__h b { font-size: .8125rem; font-weight: 600; }
.rules__h span { font-size: .75rem; color: var(--ink-3); }
.rulerow { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr) 3.5rem; gap: 1rem; align-items: center; padding: .875rem 1rem; border-bottom: 1px solid var(--line-subtle); background: var(--bg-app); }
.rulerow:last-of-type { border-bottom: 0; }
.rulerow__t b { display: block; font-size: .8125rem; font-weight: 600; }
.rulerow__t small { display: block; font-size: .75rem; color: var(--ink-2); line-height: 1.45; }
.rulerow__v { text-align: right; font-family: var(--mono); font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.rules__foot { padding: .75rem 1rem; background: var(--bg-card); border-top: 1px solid var(--line-subtle); font-size: .78125rem; line-height: 1.55; color: var(--ink-2); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--line); border-radius: var(--r-full); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line); border-radius: var(--r-full); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; margin-top: -6px;
  width: 14px; height: 14px; border-radius: var(--r-xs);
  background: var(--bg-app); border: 1px solid var(--ink);
  box-shadow: var(--shadow-sm);
}
input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: var(--r-xs);
  background: var(--bg-app); border: 1px solid var(--ink);
}
input[type="range"]:focus-visible { outline: 2px solid var(--line-active); outline-offset: 4px; }

.segmented { display: inline-flex; gap: .125rem; padding: .1875rem; background: var(--bg-card); border: 1px solid var(--line-subtle); border-radius: var(--r-sm); flex-wrap: wrap; }
.segmented button {
  border: 0; background: none; cursor: pointer;
  padding: .3125rem .625rem; border-radius: var(--r-xs);
  font-size: .75rem; font-weight: 500; color: var(--ink-3);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-selected="true"] { background: var(--bg-app); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }

/* ---------- review ---------- */
.reviewboard { border: 1px solid var(--line-subtle); border-radius: var(--r-md); overflow: hidden; }
.reviewboard__h { padding: .625rem 1rem; background: var(--bg-card); border-bottom: 1px solid var(--line-subtle); font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.reviewcoin { display: flex; align-items: center; gap: .875rem; padding: 1rem; background: var(--bg-app); }
.reviewcoin__img { width: 2.75rem; height: 2.75rem; flex: none; border-radius: var(--r-sm); object-fit: cover; border: 1px solid var(--line-subtle); }
.reviewcoin__t { flex: 1; min-width: 0; }
.reviewcoin__t b { display: block; font-size: .9375rem; font-weight: 600; letter-spacing: -.015em; }
.reviewcoin__t small { display: block; font-family: var(--mono); font-size: .75rem; color: var(--ink-3); }
.reviewdesc { padding: 0 1rem 1rem; background: var(--bg-app); font-size: .8125rem; color: var(--ink-2); }

.srow { display: grid; grid-template-columns: 9.5rem minmax(0,1fr) auto; gap: 1rem; align-items: center; padding: .75rem 1rem; border-bottom: 1px solid var(--line-subtle); background: var(--bg-app); }
.srow:last-child { border-bottom: 0; }
.srow__k { font-size: .75rem; font-weight: 500; color: var(--ink-2); }
.srow__v { font-size: .8125rem; display: flex; align-items: center; gap: .4375rem; flex-wrap: wrap; }
.srow__v .mark { border-radius: var(--r-xs); }

/* ---------- picker modal ---------- */
.modal--wide { max-width: 30rem; }
.picker__tabs { display: flex; align-items: center; gap: .5rem; padding: 0 1.25rem .75rem; flex-wrap: wrap; }
.picker__tabs .segmented { flex: none; }
.picker__kind {
  font-size: .75rem; font-weight: 600; color: var(--ink);
  padding: .25rem .5rem; border: 1px solid var(--line-subtle);
  border-radius: var(--r-sm); background: var(--bg-card);
}
.picker__count { margin-left: auto; font-family: var(--mono); font-size: .6875rem; color: var(--ink-3); }
.picker__note { padding: 0 1.25rem .75rem; font-size: .78125rem; line-height: 1.55; color: var(--ink-2); }
.picker__list { max-height: 19rem; overflow-y: auto; border-block: 1px solid var(--line-subtle); background: var(--bg-card); }
.pickitem {
  display: flex; align-items: center; gap: .75rem; width: 100%; text-align: left;
  padding: .625rem 1.25rem; border: 0; border-bottom: 1px solid var(--line-subtle);
  background: var(--bg-app); cursor: pointer; font: inherit;
  transition: background var(--fast) var(--ease);
}
.pickitem:last-child { border-bottom: 0; }
.pickitem:hover { background: var(--fill-subtle); }
.pickitem.is-on { background: var(--fill-selected); box-shadow: inset 2px 0 0 var(--ink); }
.pickitem__i { display: grid; place-items: center; width: 2rem; height: 2rem; flex: none; border-radius: var(--r-sm); background: var(--bg-card); border: 1px solid var(--line-subtle); color: var(--ink-2); }
.pickitem__i svg { width: 1rem; height: 1rem; }
/* generated artwork and real provider marks are self-contained */
.pickitem__i--art { background: transparent; border: 0; width: 2rem; height: 2rem; }
.pickitem__i--art svg { width: 100%; height: 100%; }
.pickitem__i--art .mark svg { width: 70%; height: 70%; }

/* ============================================================
   MULTI-CHAIN
   ============================================================ */
.mcgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1px; background: var(--line-subtle); border: 1px solid var(--line-subtle); border-radius: var(--r-md); overflow: hidden; }
.mcstep { background: var(--bg-app); padding: .875rem 1rem; }
.mcstep__n { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: var(--r-xs); background: var(--fill-subtle); font-family: var(--mono); font-size: .625rem; color: var(--ink-2); margin-bottom: .5rem; }
.mcstep b { display: block; font-size: .8125rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: .1875rem; }
.mcstep p { margin: 0; font-size: .78125rem; line-height: 1.5; color: var(--ink-2); }

.mcwhy { margin-top: .75rem; padding: .875rem 1rem; border: 1px solid var(--info-line); border-radius: var(--r-md); background: var(--info-fill); font-size: .8125rem; line-height: 1.55; color: var(--ink-2); }
.mcwhy b { color: var(--ink); font-weight: 600; }

.mcfilters { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.chainchip {
  display: inline-flex; align-items: center; gap: .375rem;
  min-height: 2rem; padding: 0 .625rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg-app); cursor: pointer;
  font-size: .75rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-2);
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.chainchip:hover { border-color: var(--line-hover); color: var(--ink); }
.chainchip[aria-selected="true"] { border-color: var(--line-active); background: var(--fill-selected); color: var(--ink); }
.chainchip .sq { width: .5rem; height: .5rem; border-radius: 2px; flex: none; }

table.mctable { width: 100%; border-collapse: collapse; min-width: 44rem; }
table.mctable thead th {
  text-align: left; padding: .5rem .875rem;
  font-size: .6875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); background: var(--bg-card); border-bottom: 1px solid var(--line-subtle);
}
table.mctable tbody td { padding: .5625rem .875rem; border-bottom: 1px solid var(--line-subtle); vertical-align: middle; }
table.mctable tbody tr:last-child td { border-bottom: 0; }
table.mctable tbody tr:hover { background: var(--fill-hover); }
/* each data cell carries its own mini-label, as on the reference */
.mccell small { display: block; font-size: .6875rem; color: var(--ink-3); line-height: 1.2; }
.mccell b { display: block; font-family: var(--mono); font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.mcticker { display: flex; align-items: center; gap: .375rem; flex-wrap: wrap; }
.mcticker .tag { font-size: .625rem; padding: .0625rem .3125rem; }
.tag--chain { display: inline-flex; align-items: center; gap: .1875rem; }

/* the open-raise footer: live summary beside the action */
.mcsubmit { margin-top: 1rem; border: 1px solid var(--line-subtle); border-radius: var(--r-md); overflow: hidden; }
.mcsubmit__h {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem .875rem; background: var(--bg-card);
  border-bottom: 1px solid var(--line-subtle);
  font-size: .75rem; font-weight: 600; color: var(--ink);
}
.mcsubmit__h svg { width: .875rem; height: .875rem; color: var(--ink-3); }
.mcsubmit__b { padding: .625rem .875rem; background: var(--bg-app); }
.mcsubmit__a { display: flex; justify-content: flex-end; padding: 0 .875rem .75rem; background: var(--bg-app); }
.mcsubmit__sum { flex: 1; min-width: 12rem; font-size: .75rem; color: var(--ink-2); line-height: 1.5; }
.mcsubmit__sum b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.mcraise { min-width: 12rem; }
.mcraise__n { display: flex; justify-content: space-between; gap: .75rem; font-size: .78125rem; margin-bottom: .3125rem; }
.mcraise .bar { width: 100%; margin: 0; height: .3125rem; }
.mcchains { display: flex; gap: .25rem; flex-wrap: wrap; margin-top: .25rem; }

/* ---------- chain checklist ---------- */
.chainlist { display: grid; gap: .0625rem; }
.chainopt {
  display: flex; align-items: center; gap: .5rem;
  padding: .3125rem .25rem; border: 0; border-radius: var(--r-xs);
  background: transparent; cursor: pointer; font-size: .8125rem;
  transition: background var(--fast) var(--ease);
}
.chainopt:hover { background: var(--fill-hover); }
.chainopt.is-on { background: transparent; }
.chainopt.is-on .chainopt__n { font-weight: 600; color: var(--ink); }
.chainopt input { position: absolute; opacity: 0; pointer-events: none; }
.chainopt__box {
  display: grid; place-items: center; flex: none;
  width: 1rem; height: 1rem; border-radius: 3px;
  border: 1px solid var(--line-hover); background: var(--bg-app); color: transparent;
}
.chainopt.is-on .chainopt__box { background: var(--fill-brand); border-color: var(--fill-brand); color: var(--ink-inverse); }
.chainopt__box svg { width: .625rem; height: .625rem; }
.chainopt__n { font-weight: 500; }
.chainopt__venues { display: flex; gap: .25rem; margin-left: .375rem; }
.venuebtn, .daybtn {
  padding: .1875rem .5rem; border: 1px solid var(--line); border-radius: var(--r-xs);
  background: var(--bg-app); cursor: pointer;
  font-size: .6875rem; font-weight: 600; color: var(--ink-3);
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.venuebtn:hover, .daybtn:hover { color: var(--ink); border-color: var(--line-hover); }
.venuebtn[aria-selected="true"], .daybtn[aria-selected="true"] { border-color: var(--line-active); background: var(--fill-selected); color: var(--ink); }
.daybtn { min-height: 2rem; padding: 0 .875rem; font-size: .78125rem; border-radius: var(--r-sm); }

.formrow { display: grid; grid-template-columns: 6.5rem minmax(0,1fr); gap: 1rem; align-items: start; padding: .5625rem 0; border-bottom: 1px solid var(--line-subtle); }
.formrow:last-of-type { border-bottom: 0; }
.formrow > .k { font-size: .75rem; font-weight: 500; color: var(--ink-2); padding-top: .5rem; }
.formrow__note { font-size: .75rem; color: var(--ink-3); margin-top: .375rem; line-height: 1.5; }
.formrow__note b { color: var(--ink-2); font-weight: 600; }

.artdrop {
  display: grid; place-items: center; gap: .1875rem;
  width: 5rem; height: 5rem; flex: none;
  border: 1px dashed var(--line); border-radius: var(--r-sm);
  background: var(--bg-card); cursor: pointer; color: var(--ink-3);
  font-size: .6875rem; text-align: center;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
  overflow: hidden;
}
.artdrop:hover, .artdrop.is-over { border-color: var(--line-active); background: var(--fill-subtle); }
.artdrop img { width: 100%; height: 100%; object-fit: cover; }
.artdrop span { font-size: 1rem; line-height: 1; }
.pickitem__t { flex: 1; min-width: 0; }
.pickitem__t b { display: block; font-size: .8125rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pickitem__t small { display: block; font-size: .71875rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pickitem__r { text-align: right; flex: none; }
.pickitem__r b { display: block; font-family: var(--mono); font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pickitem__r small { display: block; font-size: .6875rem; color: var(--ink-3); }
.pickitem__tier {
  display: inline-block; padding: .0625rem .375rem; border-radius: var(--r-xs);
  font-size: .625rem; font-weight: 600; letter-spacing: .02em; color: #2a2333; flex: none;
}
.picker__foot { display: flex; align-items: center; gap: .75rem; padding: .875rem 1.25rem; flex-wrap: wrap; }
.picker__src { font-size: .71875rem; color: var(--ink-3); line-height: 1.4; max-width: 15rem; }
.picker__src b { color: var(--ink-2); font-weight: 600; }
.picker__btns { margin-left: auto; display: flex; gap: .5rem; }
.picker__custody { margin: .75rem 1.25rem 0; padding: .625rem .75rem; display: flex; gap: .5rem; border: 1px solid var(--line-subtle); border-radius: var(--r-sm); background: var(--bg-card); font-size: .71875rem; line-height: 1.5; color: var(--ink-2); }
.picker__custody svg { width: .875rem; height: .875rem; flex: none; margin-top: .125rem; color: var(--ink-3); }

/* ============================================================
   MODAL
   ============================================================ */
.backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg-scrim); backdrop-filter: blur(2px);
  display: grid; place-items: center; padding: 1.25rem;
  animation: fade .16s var(--ease);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 25rem; background: var(--bg-app);
  border: 1px solid var(--line-subtle); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); animation: rise .2s var(--ease);
  max-height: calc(100svh - 2.5rem); overflow-y: auto;
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.modal__head { padding: 1.125rem 1.25rem 0; }
.modal__title { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.02em; }
.modal__body { padding: .875rem 1.25rem 1.25rem; }
.modal__foot { padding: 0 1.25rem 1.25rem; display: flex; gap: .5rem; }

.walletlist { display: grid; gap: 1px; background: var(--line-subtle); border: 1px solid var(--line-subtle); border-radius: var(--r-md); overflow: hidden; margin: .875rem 0; }
.walletrow {
  display: flex; align-items: center; gap: .75rem; padding: .75rem .875rem;
  background: var(--bg-app); transition: background var(--fast) var(--ease); cursor: pointer;
  border: 0; width: 100%; text-align: left; font: inherit;
}
.walletrow:hover { background: var(--fill-subtle); }
.walletrow__i { width: 1.625rem; height: 1.625rem; border-radius: var(--r-sm); display: grid; place-items: center; font-size: .6875rem; font-weight: 600; color: #2a2333; flex: none; }
.walletrow__img { width: 1.625rem; height: 1.625rem; border-radius: var(--r-sm); flex: none; object-fit: contain; }
.walletrow.is-busy { opacity: .7; pointer-events: none; }
.walletrow__n { flex: 1; font-weight: 500; font-size: .8125rem; }
.walletrow__a { font-family: var(--mono); font-size: .6875rem; color: var(--ink-2); letter-spacing: .02em; }

.mobnotice { display: none; }
@media (max-width: 53.75rem) { .mobnotice.is-open { display: grid; } }

/* ---------- toast ---------- */
.toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 300; display: grid; gap: .5rem; max-width: min(21rem, calc(100vw - 2rem)); }
.toast {
  background: var(--bg-inverse); color: var(--ink-inverse);
  border-radius: var(--r-md); padding: .6875rem .875rem;
  font-size: .8125rem; box-shadow: var(--shadow-md);
  animation: rise .18s var(--ease);
}
.toast b { display: block; font-weight: 600; margin-bottom: .0625rem; }

/* ============================================================
   STATUS BAR + COLOPHON
   ============================================================ */
.statusbar {
  border-top: 1px solid var(--line-subtle);
  background: var(--bg-app);
}
.statusbar__in { display: flex; align-items: center; justify-content: space-between; gap: .875rem; padding-block: .5rem; flex-wrap: wrap; }
.statusbar__g { display: flex; align-items: center; gap: .875rem; flex-wrap: wrap; }
.statusbar a, .statusbar button.linky {
  font-size: .6875rem; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3);
  background: none; border: 0; cursor: pointer; padding: 0;
  transition: color var(--fast) var(--ease);
}
.statusbar a:hover, .statusbar button.linky:hover { color: var(--ink); }
.statusbar__m { font-family: var(--mono); font-size: .6875rem; letter-spacing: .02em; color: var(--ink-3); }
.statusbar__m b { color: var(--ink); font-weight: 500; }

.colophon { border-top: 1px solid var(--line-subtle); background: var(--bg-app); }
.colophon__in { display: grid; grid-template-columns: minmax(0,1.6fr) repeat(3, minmax(0,1fr)); gap: 2rem; padding-block: 2.25rem 1.75rem; }
.colophon h5 { margin: 0 0 .75rem; font-size: .6875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.colophon ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4375rem; }
.colophon ul a { font-size: .8125rem; color: var(--ink-2); }
.colophon ul a:hover { color: var(--ink); }
.colophon__fine { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: .875rem; border-top: 1px solid var(--line-subtle); font-size: .75rem; color: var(--ink-3); }

/* ============================================================
   DOCS
   ============================================================ */
.docs { display: grid; grid-template-columns: 14rem minmax(0,1fr); gap: clamp(1.5rem, 3.5vw, 3rem); align-items: start; padding-block: 1.75rem 3.5rem; }
.docnav { position: sticky; top: 0; max-height: calc(100svh - var(--topbar-h) - 2rem); overflow-y: auto; padding-right: .5rem; }
.docnav__h { font-size: .6875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 .5rem; padding: 0 .625rem; }
.docnav__grp { margin-bottom: 1.25rem; }
.docnav ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .125rem; }
.docnav li a {
  display: flex; gap: .5rem; padding: .375rem .625rem; border-radius: var(--r-sm);
  font-size: .78125rem; color: var(--ink-2); line-height: 1.4;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.docnav li a:hover { background: var(--fill-hover); color: var(--ink); }
.docnav li a.is-active { background: var(--fill-selected); color: var(--ink); font-weight: 600; }
.docnav li a i { font-family: var(--mono); font-style: normal; font-size: .6875rem; color: var(--ink-3); flex: none; width: .9375rem; }

.docpager { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.5rem; }
.docpager__c { font-size: .6875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

article.prose { max-width: 70ch; }
.prose > .eyebrow { display: block; margin-bottom: .5rem; }
.prose h1 { font-size: clamp(1.5rem, 3vw, 2.125rem); line-height: 1.08; letter-spacing: -.035em; margin-bottom: 1rem; font-weight: 600; }
.prose h2 { font-size: 1.125rem; line-height: 1.25; letter-spacing: -.02em; margin: 2.5rem 0 .75rem; padding-top: 1.25rem; border-top: 1px solid var(--line-subtle); font-weight: 600; }
.prose h3 { font-size: .875rem; font-weight: 600; margin: 1.5rem 0 .4375rem; letter-spacing: -.01em; }
.prose p { margin: 0 0 .875rem; color: var(--ink-2); font-size: .875rem; line-height: 1.65; }
.prose p.intro { font-size: .9375rem; line-height: 1.62; color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-style: italic; }
.prose a:not(.btn) { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-hover); }
.prose a:not(.btn):hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { margin: 0 0 .875rem; padding-left: 1.125rem; color: var(--ink-2); font-size: .875rem; }
.prose li { margin-bottom: .375rem; line-height: 1.6; }
.prose li::marker { color: var(--ink-disabled); }
.prose code {
  font-family: var(--mono); font-size: .8125em; padding: .0625rem .25rem;
  border-radius: var(--r-xs); background: var(--fill-subtle);
  border: 1px solid var(--line-subtle); color: var(--ink); word-break: break-word;
}
.prose hr { border: 0; border-top: 1px solid var(--line-subtle); margin: 2rem 0; }
.prose .callout { margin: 0 0 1.25rem; }
.prose .steps { margin-bottom: 1.25rem; }

.spec { display: grid; grid-template-columns: minmax(8rem, 13rem) 1fr; gap: 1px; background: var(--line-subtle); border: 1px solid var(--line-subtle); border-radius: var(--r-md); overflow: hidden; margin: 0 0 1.25rem; }
.spec dt { background: var(--bg-card); padding: .625rem .875rem; font-family: var(--mono); font-size: .75rem; color: var(--ink); font-weight: 500; word-break: break-word; }
.spec dd { background: var(--bg-app); padding: .625rem .875rem; margin: 0; font-size: .8125rem; color: var(--ink-2); line-height: 1.55; }

.codeblock { background: var(--bg-card); border: 1px solid var(--line-subtle); border-radius: var(--r-md); margin: 0 0 1.25rem; overflow: hidden; }
.codeblock__h {
  padding: .5rem .875rem; border-bottom: 1px solid var(--line-subtle);
  font-size: .625rem; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-2); background: var(--bg-app);
}
.codeblock pre { margin: 0; padding: .875rem; overflow-x: auto; }
.codeblock code { font-family: var(--mono); font-size: .75rem; line-height: 1.7; background: none; border: 0; padding: 0; white-space: pre; color: var(--ink); }

.readon { display: grid; gap: 1px; background: var(--line-subtle); border: 1px solid var(--line-subtle); border-radius: var(--r-md); overflow: hidden; margin: 1.25rem 0 0; }
.readon a { display: block; background: var(--bg-app); padding: .8125rem 1rem; transition: background var(--fast) var(--ease); text-decoration: none !important; }
.readon a:hover { background: var(--fill-subtle); }
.readon b { display: block; font-size: .8125rem; color: var(--ink); font-weight: 600; }
.readon span { font-size: .78125rem; color: var(--ink-2); }

.docfoot { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line-subtle); }
.docfoot a { display: block; padding: .875rem 1rem; border: 1px solid var(--line-subtle); border-radius: var(--r-md); background: var(--bg-app); transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease); }
.docfoot a:hover { border-color: var(--line-hover); background: var(--fill-subtle); }
.docfoot .k { font-size: .625rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.docfoot .t { font-size: .875rem; font-weight: 600; margin-top: .1875rem; line-height: 1.3; letter-spacing: -.015em; }
.docfoot a.next { text-align: right; }
.docfoot .ph { visibility: hidden; }

/* ============================================================
   COIN PAGE
   ============================================================ */
.coinhead { display: flex; align-items: flex-start; gap: 1.125rem; flex-wrap: wrap; justify-content: space-between; padding-block: 1.5rem 1.25rem; }
.coinhead__l { display: flex; gap: .875rem; align-items: center; }
.coinhead .avatar { width: 3rem; height: 3rem; font-size: 1.0625rem; border-radius: var(--r-md); }
.coinhead__px { text-align: right; }
.coinhead__px .p { font-size: 1.75rem; line-height: 1; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }

.coinlayout { display: grid; grid-template-columns: minmax(0,1fr) 21rem; gap: 1.25rem; align-items: start; padding-bottom: 3.5rem; }
.coincol { display: grid; gap: 1.25rem; align-content: start; }
.chartbox { height: 18rem; padding: .875rem 1rem 0; }
.chartbox svg { width: 100%; height: 100%; display: block; overflow: visible; }
.rangebtns { display: flex; gap: .125rem; }
.rangebtns .tab { padding: .25rem .5rem; font-size: .6875rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; margin: 0; border-bottom: 0; border-radius: var(--r-sm); }
.rangebtns .tab[aria-selected="true"] { background: var(--fill-selected); color: var(--ink); }

.tradetabs { display: grid; grid-template-columns: 1fr 1fr; gap: .125rem; padding: .1875rem; background: var(--bg-card); border: 1px solid var(--line-subtle); border-radius: var(--r-sm); margin-bottom: 1rem; }
.tradetabs button { border: 0; background: none; padding: .4375rem; border-radius: var(--r-xs); cursor: pointer; font-size: .8125rem; font-weight: 600; color: var(--ink-3); transition: background var(--fast) var(--ease), color var(--fast) var(--ease); }
.tradetabs button[aria-selected="true"] { background: var(--bg-app); box-shadow: var(--shadow-sm); }
.tradetabs button[data-side="buy"][aria-selected="true"] { color: var(--up); }
.tradetabs button[data-side="sell"][aria-selected="true"] { color: var(--down); }

.qrow { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; padding: .3125rem 0; font-size: .78125rem; }
.qrow span:first-child { color: var(--ink-3); }
.qrow span:last-child { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.proposal { border-bottom: 1px solid var(--line-subtle); padding: .9375rem 0; }
.proposal:first-child { padding-top: 0; }
.proposal:last-child { border-bottom: 0; padding-bottom: 0; }
.proposal__h { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .3125rem; }
.votebar { display: flex; height: .3125rem; border-radius: var(--r-full); overflow: hidden; background: var(--fill-track); margin-top: .5625rem; }
.votebar i { display: block; height: 100%; }
.votebar .f { background: var(--up); }
.votebar .a { background: var(--down-strong); }

.chatlog { max-height: 19rem; overflow-y: auto; display: grid; gap: .9375rem; padding-right: .25rem; }
.msg { font-size: .8125rem; }
.msg__w { font-family: var(--mono); font-size: .6875rem; letter-spacing: .02em; color: var(--ink-3); margin-bottom: .1875rem; }
.msg__q { color: var(--ink); font-weight: 600; margin-bottom: .25rem; }
.msg__a { color: var(--ink-2); border-left: 2px solid var(--line); padding-left: .6875rem; line-height: 1.6; }

.holdrow { display: flex; align-items: center; gap: .875rem; padding: .875rem 0; border-bottom: 1px solid var(--line-subtle); }
.holdrow:last-child { border-bottom: 0; }
.holdrow__m { flex: 1; min-width: 0; }
.holdrow__v { text-align: right; font-variant-numeric: tabular-nums; }

.actrow { display: grid; grid-template-columns: 6rem 1fr auto; gap: .875rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--line-subtle); }
.actrow:last-child { border-bottom: 0; }
.actrow__t { font-family: var(--mono); font-size: .6875rem; color: var(--ink-3); }
.actrow__x { font-family: var(--mono); font-size: .6875rem; color: var(--ink-2); }
.actrow__x:hover { color: var(--ink); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 68rem) {
  .coinlayout { grid-template-columns: 1fr; }
  .colophon__in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 60rem) {
  .docs { grid-template-columns: 1fr; }
  .docnav { position: static; max-height: none; border-bottom: 1px solid var(--line-subtle); padding-bottom: 1rem; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__aside { border-left: 0; border-top: 1px solid var(--line-subtle); padding-left: 0; padding-top: 1.25rem; }
  .hero__aside dl { grid-template-columns: repeat(3, 1fr); }
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* sidebar becomes a drawer */
@media (max-width: 53.75rem) {
  :root { --topbar-h: 3.75rem; }
  .app-sidebar {
    position: fixed; top: var(--topbar-h); bottom: 0; left: 0;
    width: min(18rem, 86vw); flex-basis: auto;
    transform: translateX(-105%);
    box-shadow: var(--shadow-md);
    transition: transform .22s var(--ease);
  }
  .app-shell.nav-open .app-sidebar { transform: translateX(0); }
  .app-scrim {
    display: block; position: fixed; inset: var(--topbar-h) 0 0 0; z-index: 19;
    background: var(--bg-scrim); opacity: 0; pointer-events: none;
    transition: opacity .22s var(--ease);
  }
  .app-shell.nav-open .app-scrim { opacity: 1; pointer-events: auto; }
  .navtoggle { display: inline-flex !important; }
  .brand__page { display: none; }
  .g3, .g2 { grid-template-columns: 1fr; }
  .docfoot { grid-template-columns: 1fr; }
  .colophon__in { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero__aside dl { grid-template-columns: 1fr; }
  .actrow { grid-template-columns: 1fr auto; }
  .actrow__t { grid-column: 1 / -1; }
}
.navtoggle { display: none; }

@media (max-width: 35rem) {
  .g4 { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; }
  .spec dt { border-top: 1px solid var(--line-subtle); }
  .coinhead { flex-direction: column; }
  .coinhead__px { text-align: left; }
  .brand__word { display: none; }
}

/* the multi-chain page follows the reference's sentence-case labelling */
.mck { text-transform: none; letter-spacing: 0; font-size: .75rem; }

/* ============================================================
   LAUNCH FLOW — treasury editor, asset picker, socials
   ============================================================ */
.linkbtn {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-size: .78125rem; color: var(--accent);
  text-decoration: underline; text-underline-offset: 2px;
}
.linkbtn:hover { color: var(--ink); }
.iconbtn--sm { width: 1.5rem; height: 1.5rem; font-size: .875rem; line-height: 1; }

/* ---- Your treasury ---- */
.holdspanel { margin-top: 1rem; border: 1px solid var(--line-subtle); border-radius: var(--r-md); overflow: hidden; }
.holdspanel__h {
  display: flex; align-items: center; gap: .625rem; flex-wrap: wrap;
  padding: .5625rem .875rem; background: var(--bg-card);
  border-bottom: 1px solid var(--line-subtle);
}
.holdspanel__h b { font-size: .8125rem; font-weight: 600; }
.holdspanel__h span { flex: 1; font-size: .75rem; color: var(--ink-3); }

.holdslist { list-style: none; margin: 0; padding: 0; }
.holdrowx {
  display: grid;
  grid-template-columns: 1.5rem minmax(6rem, 10rem) minmax(0, 1fr) 3.25rem 1.5rem;
  gap: .75rem; align-items: center;
  padding: .5rem .875rem; border-bottom: 1px solid var(--line-subtle);
  background: var(--bg-app);
}
.holdrowx:last-child { border-bottom: 0; }
.holdrowx__n { min-width: 0; }
.holdrowx__n strong { display: block; font-size: .8125rem; font-weight: 600; letter-spacing: -.01em; }
.holdrowx__n small { display: block; font-size: .71875rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.holdrowx__p { text-align: right; font-family: var(--mono); font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---- add / remove assets ---- */
.morepanel { margin-top: .875rem; }
.morepanel__b {
  margin-top: .625rem; padding: .875rem;
  border: 1px solid var(--line-subtle); border-radius: var(--r-md); background: var(--bg-card);
}
.assetgrid { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .75rem; }
.assetchip {
  display: inline-flex; align-items: center; gap: .375rem;
  min-height: 1.875rem; padding: 0 .625rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg-app); cursor: pointer;
  font-family: var(--mono); font-size: .71875rem; font-weight: 600; color: var(--ink-2);
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.assetchip:hover { border-color: var(--line-hover); color: var(--ink); }
.assetchip.is-on { border-color: var(--line-active); background: var(--fill-selected); color: var(--ink); }

/* ---- socials ---- */
.sociallist { display: grid; gap: .375rem; margin-top: .75rem; }
.socialrow { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .75rem; align-items: center; }
.socialrow span { font-size: .75rem; color: var(--ink-2); }

@media (max-width: 53.75rem) {
  .holdrowx { grid-template-columns: 1.5rem minmax(0,1fr) 3.25rem 1.5rem; }
  .holdrowx input[type="range"] { grid-column: 1 / -1; }
  .socialrow { grid-template-columns: 1fr; gap: .25rem; }
}
