/* plantpad · design tokens (validated reference palette, light and dark modes).
   Do not add new hues: every colour comes from --s1…--s4, --seq-* and the status colours. */
:root {
  color-scheme: light;
  --page: #f9f9f7;
  --surface: #fcfcfb;
  --surface-2: #f3f3ef;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --border: rgba(11, 11, 11, 0.10);
  --accent: #2a78d6;
  --accent-ink: #ffffff;
  --accent-wash: rgba(42, 120, 214, 0.10);
  --seq-250: #86b6ef; --seq-400: #3987e5; --seq-450: #2a78d6; --seq-550: #1c5cab;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --good: #0ca30c; --warning: #fab219; --serious: #ec835a; --critical: #d03b3b;
  --good-text: #006300;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -18px rgba(0,0,0,.22);
  --shadow-lift: 0 2px 6px rgba(0,0,0,.05), 0 24px 48px -24px rgba(0,0,0,.28);
  --glass: rgba(252, 252, 251, 0.72);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-family: var(--font);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d0d0d; --surface: #1a1a19; --surface-2: #222221;
    --ink: #ffffff; --ink-2: #c3c2b7; --muted: #898781; --grid: #2c2c2a; --axis: #383835;
    --border: rgba(255,255,255,0.10);
    --accent: #3987e5; --accent-wash: rgba(57, 135, 229, 0.16);
    --seq-250: #184f95; --seq-400: #3987e5; --seq-450: #3987e5; --seq-550: #6da7ec;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
    --good-text: #0ca30c;
    --shadow: none; --shadow-lift: 0 0 0 1px rgba(255,255,255,.06);
    --glass: rgba(26, 26, 25, 0.66);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d; --surface: #1a1a19; --surface-2: #222221;
  --ink: #ffffff; --ink-2: #c3c2b7; --muted: #898781; --grid: #2c2c2a; --axis: #383835;
  --border: rgba(255,255,255,0.10);
  --accent: #3987e5; --accent-wash: rgba(57, 135, 229, 0.16);
  --seq-250: #184f95; --seq-400: #3987e5; --seq-450: #3987e5; --seq-550: #6da7ec;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --good-text: #0ca30c;
  --shadow: none; --shadow-lift: 0 0 0 1px rgba(255,255,255,.06);
  --glass: rgba(26, 26, 25, 0.66);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--page); color: var(--ink); line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mint { font-family: var(--mono); font-size: .85em; }
h1 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); margin: 0 0 .25rem; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: 1rem; margin: 0; font-weight: 600; letter-spacing: -.005em; }
h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: .8rem; }
[hidden] { display: none !important; }
::selection { background: var(--accent-wash); }

/* background glow (fixed, very subtle, palette hues only) */
.bg-glow { position: fixed; inset: -20vh -10vw auto; height: 70vh; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 60% at 20% 20%, color-mix(in srgb, var(--s1) 14%, transparent), transparent 70%),
              radial-gradient(50% 55% at 85% 10%, color-mix(in srgb, var(--s3) 12%, transparent), transparent 70%);
  filter: blur(10px); }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--glass); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--border); }
.topbar-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: .55rem 16px; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { position: relative; display: grid; place-items: center; width: 40px; height: 40px; font-size: 1.25rem; border-radius: 13px; background: linear-gradient(145deg, color-mix(in srgb, var(--s3) 22%, var(--surface)), var(--surface)); border: 1px solid var(--border); box-shadow: var(--shadow); transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.brand:hover .brand-mark { transform: rotateY(18deg) rotateX(-8deg); }
.brand-orb { position: absolute; inset: 4px; border-radius: 10px; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--s3) 45%, transparent), transparent 65%); animation: orb 6s ease-in-out infinite alternate; }
@keyframes orb { from { transform: translate(-1px, 1px) scale(.95); } to { transform: translate(1px, -1px) scale(1.05); } }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-weight: 800; letter-spacing: -.02em; font-size: 1.05rem; }
.brand-text .tld { background: linear-gradient(90deg, var(--s3), var(--s1)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.brand-text small { color: var(--muted); font-size: .68rem; }
.nav { position: relative; display: flex; flex-wrap: nowrap; justify-content: center; gap: .1rem; padding: .25rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); justify-self: center; max-width: 100%; }
.nav a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .4rem; padding: .42rem .8rem; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: .9rem; white-space: nowrap; transition: color .2s, background .2s; }
.nav a svg { width: 14px; height: 14px; fill: currentColor; opacity: .7; }
.nav a:hover { text-decoration: none; color: var(--ink); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.nav a.active { color: var(--ink); }
.nav a.active svg { opacity: 1; color: var(--accent); }
.nav-ind { position: absolute; top: .25rem; height: calc(100% - .5rem); left: 0; width: 0; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--border); transition: left .35s cubic-bezier(.2,.8,.2,1), width .35s cubic-bezier(.2,.8,.2,1), top .35s, opacity .2s; opacity: 0; }
.nav-ind.on { opacity: 1; }
.topbar-right { display: flex; align-items: center; gap: .45rem; justify-self: end; }
.wallet-btn { gap: .45rem; padding: .42rem .75rem; font-size: .82rem; font-family: var(--mono); font-weight: 600; }
.wallet-btn .live-dot { width: 8px; height: 8px; }
.wallet-btn.connected .live-dot { background: var(--good); }
.net-badge { display: inline-flex; align-items: center; gap: .45rem; font-size: .75rem; font-weight: 600; color: var(--ink-2); padding: .3rem .65rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-family: var(--mono); height: 36px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 0 transparent; transition: background .3s; }
.live-dot.on { background: var(--good); animation: ping 2.2s ease-out infinite; }
.live-dot.off { background: var(--critical); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 45%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.icon-btn { border: 1px solid var(--border); background: var(--surface); color: var(--ink); border-radius: 10px; width: 36px; height: 36px; cursor: pointer; font-size: 1rem; transition: transform .2s, background .2s; }
.icon-btn.small { width: 26px; height: 26px; font-size: .8rem; border-radius: 8px; }
.icon-btn:hover { background: var(--surface-2); transform: translateY(-1px); }
@media (max-width: 1480px) { .nav a svg { display: none; } }
@media (max-width: 1280px) { .brand-text small { display: none; } .nav a { padding: .42rem .7rem; font-size: .88rem; } }
@media (max-width: 1080px) { .topbar-inner { grid-template-columns: auto auto; } .nav { grid-column: 1 / -1; justify-self: stretch; } .nav-ind { display: none; } .nav a.active { background: var(--surface); box-shadow: var(--shadow); } }
@media (max-width: 640px) { .wallet-btn #wallet-label { display: none; } .wallet-btn { padding: .42rem .6rem; } .net-badge span:not(.live-dot) { display: none; } .net-badge { padding: .3rem .5rem; } }

/* layout */
.view { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 1.25rem 16px 3rem; display: flex; flex-direction: column; gap: 1.25rem; }
.footer { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .9rem 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: .8rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); min-width: 0; transition: box-shadow .35s, transform .35s; }
.card.narrow { max-width: 760px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.span-2 { grid-column: span 2; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-3 .span-2 { grid-column: span 1; } }
.reveal { visibility: hidden; }
.reveal.shown { visibility: visible; }
.glass { background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tilt { will-change: transform; transform-style: preserve-3d; }

/* 3D hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); grid-template-rows: auto auto; gap: 1.25rem 1.5rem; align-items: center; padding: 2rem clamp(1rem, 3vw, 2.4rem) 1.6rem; border-radius: calc(var(--radius) + 6px); border: 1px solid var(--border); overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 90% at 85% 30%, color-mix(in srgb, var(--s3) 14%, transparent), transparent 70%), linear-gradient(135deg, color-mix(in srgb, var(--surface) 88%, var(--s1) 12%), var(--surface) 55%); box-shadow: var(--shadow); }
.hero-scene { position: relative; z-index: 0; height: 400px; border-radius: var(--radius); overflow: hidden; }
.hero-scene .scene-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.hero-scene-tag { position: absolute; right: .8rem; bottom: .7rem; z-index: 1; font-size: .72rem; color: var(--muted); font-family: var(--mono); background: var(--glass); padding: .2rem .55rem; border-radius: 999px; border: 1px solid var(--border); }
.hero-copy { position: relative; z-index: 1; max-width: 600px; }
.eyebrow { margin: 0 0 .6rem; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-family: var(--mono); }
.hero-title { font-size: clamp(2rem, 1.4rem + 3vw, 3.6rem); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 .9rem; font-weight: 800; }
.hero-title .grad { background: linear-gradient(90deg, var(--s3), var(--s1)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin: 0 0 1.2rem; color: var(--ink-2); font-size: 1.05rem; max-width: 52ch; }
.hero-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.hero-points { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; gap: 1.2rem; flex-wrap: wrap; color: var(--ink-2); font-size: .88rem; }
.hero-points strong { color: var(--ink); font-size: 1.05rem; margin-right: .3rem; font-variant-numeric: tabular-nums; }
.hero-stats { position: relative; z-index: 1; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero-scene { height: 300px; } }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .9rem 1rem; box-shadow: var(--shadow); }
.tile-label { color: var(--ink-2); font-size: .78rem; }
.tile-value { font-size: 1.9rem; font-weight: 700; margin-top: .1rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* 3D scenes */
.scene { position: relative; width: 100%; border-radius: var(--radius-sm); overflow: hidden; background: radial-gradient(80% 90% at 50% 40%, color-mix(in srgb, var(--surface-2) 70%, transparent), var(--surface-2)); border: 1px solid var(--border); }
.scene .scene-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.scene.helix { height: 340px; }
.scene.plant { height: 340px; }
.scene-row { margin-bottom: 1.25rem; grid-template-columns: minmax(280px, 1fr) minmax(280px, 1.5fr); }
@media (max-width: 760px) { .scene-row { grid-template-columns: 1fr; } }
.scene.terrain { height: 260px; }
.scene.gauge { height: 180px; background: transparent; border: 0; border-radius: 0; }
.scene.scene-fallback::after { content: "3D is not available in this browser"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .85rem; }
.scene-card { margin-bottom: 1.25rem; }
.gauge-wrap { position: relative; margin: -.2rem 0 .4rem; }
.gauge-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; transform: translateY(6px); }
.gauge-center strong { font-size: 1.5rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.gauge-center small { color: var(--muted); font-size: .72rem; }

/* lists */
.plant-list { display: flex; flex-direction: column; }
.plant-row { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; padding: .65rem 0; border-top: 1px solid var(--grid); color: inherit; transition: background .2s, padding .2s; }
.plant-row:first-child { border-top: 0; }
.plant-row:hover { text-decoration: none; background: var(--surface-2); margin: 0 -1.2rem; padding-left: 1.2rem; padding-right: 1.2rem; border-radius: 8px; }
.plant-row .name { font-weight: 600; }
.plant-row .sub { color: var(--muted); font-size: .8rem; }
.feed { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; }
.feed li { display: grid; grid-template-columns: 70px 1fr; gap: .6rem; padding: .45rem 0; border-top: 1px solid var(--grid); font-size: .9rem; }
.feed li:first-child { border-top: 0; }
.feed time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .8rem; font-family: var(--mono); }
.feed .kind { font-weight: 600; margin-right: .3rem; }
.feed li.new { animation: flash 1.2s ease-out; }
@keyframes flash { from { background: var(--accent-wash); } to { background: transparent; } }

/* table */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; color: var(--muted); font-weight: 500; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; padding: .45rem .6rem; border-bottom: 1px solid var(--axis); white-space: nowrap; }
.table td { padding: .6rem .6rem; border-bottom: 1px solid var(--grid); vertical-align: top; }
.table tr:hover td { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 1.5rem 0; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; }
.filters input, .filters select, .form-grid input, .form-grid select, .form-grid textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--axis); border-radius: 10px; padding: .5rem .7rem; transition: border-color .2s, box-shadow .2s; }
.filters input { min-width: 240px; }
:is(.filters, .form-grid) :is(input, select, textarea):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }

/* chips and statuses */
.chip { display: inline-block; padding: .12rem .55rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: .74rem; color: var(--ink-2); font-weight: 500; }
.status { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--ink-2); white-space: nowrap; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.status.done::before { background: var(--good); }
.status.queued::before, .status.analyzing::before { background: var(--warning); }
.status.pending_sequence::before { background: var(--serious); }
.status.error::before { background: var(--critical); }
.status.analyzing::before { animation: pulse 1s infinite alternate; }
@keyframes pulse { from { opacity: .4; } to { opacity: 1; } }

/* plant detail */
.crumbs { color: var(--muted); font-size: .85rem; display: flex; gap: .4rem; }
.plant-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.plant-head-main { flex: 1; min-width: 240px; }
.plant-art { width: 96px; height: 96px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 8px 14px rgba(0,0,0,.25)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
.meta-line { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.mint { color: var(--ink-2); word-break: break-all; }
.species-line { margin: .4rem 0 0; color: var(--ink-2); }
.species-line em { color: var(--ink); font-weight: 600; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--border); background: var(--surface); color: var(--ink); border-radius: 10px; padding: .55rem .95rem; font: inherit; font-weight: 600; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { background: var(--surface-2); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary { background: linear-gradient(135deg, var(--seq-450), var(--seq-550)); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; }
.btn[disabled] { opacity: .55; cursor: wait; transform: none; }

.market { display: flex; flex-direction: column; gap: .8rem; }
.market .big { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.market .big small { font-size: .8rem; color: var(--muted); font-weight: 400; margin-left: .3rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.meter { height: 10px; border-radius: 999px; background: var(--seq-250); overflow: hidden; }
.meter > span { display: block; height: 100%; background: linear-gradient(90deg, var(--seq-400), var(--seq-550)); border-radius: 999px; transition: width .6s ease; }
.meter-label { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ink-2); }

.trades { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow: auto; font-size: .88rem; }
.trades li { display: grid; grid-template-columns: 64px 54px 1fr 1fr auto; gap: .6rem; align-items: center; padding: .4rem 0; border-top: 1px solid var(--grid); font-variant-numeric: tabular-nums; }
.trades li:first-child { border-top: 0; }
.trades li.new { animation: flash 1.2s ease-out; }
.side { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; }
.side::before { content: ""; width: 8px; height: 8px; border-radius: 2px; }
.side.buy::before { background: var(--good); }
.side.sell::before { background: var(--critical); }
.trades .sig { color: var(--muted); font-size: .78rem; font-family: var(--mono); }
.trades-stats { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .85rem; color: var(--ink-2); margin-bottom: .5rem; }
.trades-stats strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.delta-up { color: var(--good-text); }
.delta-down { color: var(--critical); }

/* card */
.sheet { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.sheet .card-head h2 { font-size: .95rem; }
.legend { display: flex; gap: .9rem; flex-wrap: wrap; font-size: .8rem; color: var(--ink-2); margin-top: .5rem; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; background: var(--sw); }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; background: var(--sw); }
.table.small { font-size: .82rem; max-width: 420px; }
.stack { display: flex; height: 22px; border-radius: 6px; overflow: hidden; gap: 2px; background: var(--surface); }
.stack > span { display: block; height: 100%; position: relative; transition: width .6s ease; }
.stack > span:first-child { border-radius: 6px 0 0 6px; }
.stack > span:last-child { border-radius: 0 6px 6px 0; }
.stack > span > i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: .72rem; font-weight: 600; color: #fff; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .axis { stroke: var(--axis); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--seq-450); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--seq-450); fill-opacity: .10; }
.chart .dot { fill: var(--seq-450); stroke: var(--surface); stroke-width: 2; }
.chart .label { fill: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.chart .label.strong { fill: var(--ink-2); font-weight: 600; }
.chart .hit { fill: transparent; }
.chart .cross { stroke: var(--axis); stroke-width: 1; }
.chart .bar { fill: var(--seq-450); }
.tooltip { position: fixed; z-index: 20; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: 8px; padding: .35rem .55rem; font-size: .78rem; box-shadow: var(--shadow-lift); font-variant-numeric: tabular-nums; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .6rem; }
.stat { background: var(--surface-2); border-radius: 10px; padding: .55rem .75rem; }
.stat .l { color: var(--muted); font-size: .72rem; }
.stat .v { font-weight: 600; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.orf { display: grid; grid-template-columns: 34px 1fr 70px; gap: .6rem; align-items: center; font-size: .85rem; padding: .3rem 0; }
.orf .track { position: relative; height: 10px; background: var(--surface-2); border-radius: 4px; }
.orf .track > span { position: absolute; top: 0; bottom: 0; background: var(--seq-450); border-radius: 4px; min-width: 3px; }
.orf .track > span.minus { background: var(--seq-250); }
.orf .aa { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.notes { color: var(--muted); font-size: .8rem; font-style: italic; margin: .6rem 0 0; }
.bars { display: flex; flex-direction: column; gap: .5rem; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 48px; gap: .8rem; align-items: center; font-size: .9rem; }
.bar-row .track { height: 14px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.bar-row .track > span { display: block; height: 100%; background: linear-gradient(90deg, var(--seq-400), var(--seq-550)); border-radius: 0 6px 6px 0; }
.bar-row .n { text-align: right; font-variant-numeric: tabular-nums; }

/* species: 3D cards */
.species-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; margin-top: .9rem; }
.species-card { position: relative; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .9rem 1rem .8rem; display: flex; flex-direction: column; gap: .35rem; overflow: hidden; transition: box-shadow .3s; }
.species-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--sw); }
.species-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: color-mix(in srgb, var(--sw) 16%, transparent); filter: blur(6px); }
.species-card:hover { box-shadow: var(--shadow-lift); }
.species-art { position: absolute; right: -6px; bottom: -10px; width: 96px; height: 96px; object-fit: contain; opacity: .9; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); transform: translateZ(20px); }
.brand-logo { width: 24px; height: 24px; object-fit: contain; position: relative; }
.species-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.species-card h3 em { font-weight: 600; }
.species-foot { margin-top: auto; font-size: .82rem; }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: span 1; } }
.form-grid label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; color: var(--ink-2); }
.form-grid label.check { flex-direction: row; align-items: center; }
.form-grid textarea { font-family: var(--mono); font-size: .8rem; resize: vertical; }
.row-end { display: flex; justify-content: flex-end; }
.msg { padding: .6rem .8rem; border-radius: 10px; background: var(--accent-wash); margin: .8rem 0 0; }
.msg.err { background: color-mix(in srgb, var(--critical) 14%, transparent); }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 30; background: var(--ink); color: var(--page); padding: .6rem 1rem; border-radius: 999px; font-size: .88rem; box-shadow: var(--shadow-lift); animation: toast-in .35s cubic-bezier(.2,.8,.2,1); }
@keyframes toast-in { from { transform: translate(-50%, 12px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* launchpad */
.launch-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .launch-grid { grid-template-columns: 1fr; } }
.launch-side { display: grid; gap: 1.25rem; }
.launch-config { display: flex; flex-wrap: wrap; gap: .5rem; margin: -.2rem 0 1rem; }
.launch-config .chip { font-family: var(--mono); }
.launch-config .chip.ok { border-color: color-mix(in srgb, var(--good) 50%, transparent); color: var(--good-text); }
.launch-config .chip.warn { border-color: color-mix(in srgb, var(--warning) 60%, transparent); }
.drop { display: flex; align-items: center; justify-content: center; gap: .8rem; min-height: 120px; padding: .8rem; border: 1.5px dashed var(--axis); border-radius: var(--radius-sm); background: var(--surface-2); cursor: pointer; transition: border-color .2s, background .2s; text-align: center; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-wash); }
.drop img { width: 96px; height: 96px; border-radius: 18px; object-fit: cover; box-shadow: var(--shadow-lift); }
.launch-actions { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; align-items: center; }
.btn.lg { padding: .7rem 1.3rem; font-size: 1rem; }
.wallet-chip { font-family: var(--mono); font-size: .8rem; }
.coin-preview { display: flex; align-items: center; gap: .9rem; }
.coin-preview img, .coin-preview-fallback { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; flex: 0 0 auto; }
.coin-preview-fallback { display: grid; place-items: center; font-size: 1.6rem; background: var(--surface-2); border: 1px solid var(--border); }
.coin-preview-symbol { font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.preview-group-art { width: 120px; height: 120px; object-fit: contain; margin: .6rem auto 0; display: block; filter: drop-shadow(0 8px 14px rgba(0,0,0,.25)); }
.steps { margin: 0; padding-left: 1.2rem; color: var(--ink-2); font-size: .9rem; line-height: 1.6; display: grid; gap: .35rem; }
.register-existing summary { cursor: pointer; font-weight: 600; }
.register-existing[open] summary { margin-bottom: .6rem; }
.progress-steps { display: grid; gap: .3rem; margin: .6rem 0 0; font-size: .85rem; }
.progress-steps .step { display: flex; gap: .5rem; align-items: center; color: var(--muted); }
.progress-steps .step.on { color: var(--ink); }
.progress-steps .step.done { color: var(--good-text); }
.progress-steps .step::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.progress-steps .step.on::before { animation: pulse 1s infinite alternate; }

/* system status, features, research */
.x-link { text-decoration: none; font-weight: 700; display: grid; place-items: center; }
.x-link:hover { text-decoration: none; }
.sys-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .6rem .9rem; }
.sys { display: flex; gap: .6rem; align-items: flex-start; padding: .5rem .6rem; border-radius: 10px; background: var(--surface-2); }
.sys-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); margin-top: .35rem; flex: 0 0 auto; }
.sys-dot.on { background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 20%, transparent); }
.sys-dot.off { background: var(--critical); }
.sys-label { font-weight: 600; font-size: .9rem; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.feature { padding: 1rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
.feature img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.2)); }
.feature h3 { margin: .5rem 0 .25rem; }
.feature p { margin: 0; color: var(--ink-2); font-size: .9rem; }
.pipeline { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .6rem; }
.pipeline li { display: grid; grid-template-columns: 200px 1fr; gap: 1rem; padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--surface-2); border-left: 4px solid var(--seq-450); }
.pipeline li span { color: var(--ink-2); font-size: .92rem; }
@media (max-width: 700px) { .pipeline li { grid-template-columns: 1fr; } }
.glossary { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.glossary h3 { margin: 0 0 .3rem; font-size: .95rem; }
.glossary p { margin: 0; color: var(--ink-2); font-size: .9rem; }
