/* MYCELIUM — a field notebook: paper, ink and pigment */
@font-face { font-family: "Mona"; src: url(/fonts/mona.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Azeret"; src: url(/fonts/azeret-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Azeret"; src: url(/fonts/azeret-500.woff2) format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Instrument"; src: url(/fonts/instrument-i.woff2) format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  --paper: #f1efe8;
  --paper-2: #e8e5db;
  --sheet: #fbfaf6;
  --ink: #151815;
  --ink-2: #3a403a;
  --soft: #4f564f;
  --muted: #7c8178;
  --dim: #a3a69c;
  --line: rgba(21, 24, 21, .12);
  --line-2: rgba(21, 24, 21, .24);
  --grid: rgba(21, 24, 21, .045);
  --moss: #2d6e3e;
  --moss-2: #3f8f54;
  --spore: #b8740f;
  --rot: #b1452c;
  --sell: #b1452c;
  --cobalt: #2c4fd1;
  --glow: #2d6e3e;
  --font: "Mona", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Azeret", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --serif: "Instrument", Georgia, serif;
  --side: 248px;
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/1.5 var(--font); letter-spacing: -.008em; min-height: 100vh; overflow-x: hidden;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: rgba(45, 110, 62, .2); }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.up { color: var(--moss); }
.down { color: var(--sell); }
.amber { color: var(--spore); }
[hidden] { display: none !important; }

/* ---------- the side column ---------- */
.side { position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; width: var(--side); display: flex; flex-direction: column; gap: 26px; padding: 26px 22px 22px;
  background: var(--sheet); border-right: 1px solid var(--line-2); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-word { display: flex; flex-direction: column; font: 400 27px/1 var(--serif); font-style: italic; letter-spacing: -.02em; }
.brand-word small { font: 500 9.5px var(--mono); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.nav a { position: relative; display: flex; align-items: baseline; gap: 12px; padding: 11px 4px 11px 0; border-bottom: 1px solid var(--line); color: var(--soft); font-size: 15px; font-weight: 500; transition: color .2s, padding .25s; }
.nav a em { font: 500 10.5px var(--mono); font-style: normal; color: var(--dim); width: 18px; }
.nav a:hover { color: var(--ink); padding-left: 4px; }
.nav a.on { color: var(--ink); padding-left: 10px; }
.nav a.on::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; background: var(--ink); }
.nav a.on em { color: var(--moss); }
.nav-thread { display: none; }
.clock { position: relative; flex: none; width: 168px; height: 168px; margin: 4px auto 0; display: grid; place-items: center; }
.clock-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.clock-track { fill: none; stroke: var(--line); stroke-width: .7; }
.clock-fill { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 94.25; stroke-dashoffset: 94.25; transition: stroke-dashoffset 1s linear; }
.clock-ticks line { stroke: var(--line-2); stroke-width: .35; }
.clock-ticks line.big { stroke: var(--ink-2); stroke-width: .5; }
.clock-txt { position: relative; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.clock-txt small { font: 500 9.5px var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-bottom: 8px; }
.clock-txt b { font: 400 40px var(--serif); font-style: italic; letter-spacing: -.02em; }
.clock.hot .clock-fill { stroke: var(--moss); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.side-meta { display: flex; justify-content: space-between; align-items: center; min-height: 20px; }
.net-badge { font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--spore); border: 1px solid currentColor; padding: 3px 7px; }
.x-link { font: 500 11px var(--mono); color: var(--soft); }
.x-link:hover { color: var(--ink); }

/* the wallet: a specimen tag on a string */
.tag { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; height: 58px; padding: 0 14px 0 30px; cursor: pointer; text-align: left;
  background: var(--paper); border: 1px solid var(--ink); clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); transition: background .2s; }
.tag:hover { background: var(--paper-2); }
.tag-hole { position: absolute; left: 13px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; border: 1px solid var(--ink); background: var(--sheet); }
.spore-c { width: 34px; height: 34px; flex: none; }
.tag-label { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.tag-label small { font: 500 9.5px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.tag-label b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag.awake { background: var(--ink); color: var(--paper); }
.tag.awake .tag-label small { color: #b9c9b6; }
.tag.awake .tag-hole { border-color: var(--paper); background: var(--ink); }

/* ---------- page ---------- */
.page { margin-left: var(--side); min-height: 100vh; display: flex; flex-direction: column; }
.view { flex: 1; outline: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 36px; }
.sec { padding-top: 54px; padding-bottom: 54px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.eyebrow { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border: 1px solid var(--ink); border-radius: 50%; background: var(--moss); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.03em; }
h1 { font: 400 clamp(44px, 6vw, 84px)/.95 var(--serif); font-style: italic; letter-spacing: -.035em; }
h2 { font: 400 clamp(32px, 3.4vw, 46px)/1 var(--serif); font-style: italic; letter-spacing: -.03em; }
h3 { font-size: 17px; letter-spacing: -.02em; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
.lede { color: var(--soft); font-size: 17px; line-height: 1.55; max-width: 540px; }
.card { background: var(--sheet); border: 1px solid var(--line-2); }
.fig { font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }

/* ---------- buttons: ink stamps ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; cursor: pointer; border: 1px solid var(--ink);
  font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; white-space: nowrap; transition: transform .12s, box-shadow .15s, background .2s, color .2s; border-radius: 0; }
.btn-main { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--moss); }
.btn-main:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--moss); }
.btn-main:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--moss); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sell { background: var(--rot); border-color: var(--ink); color: #fff7f2; box-shadow: 4px 4px 0 var(--ink); }
.btn-sell:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-2); border: 1px solid var(--line-2); background: var(--sheet); white-space: nowrap; }
.chip.glow { color: var(--moss); border-color: var(--moss); }
.chip.amber { color: var(--spore); border-color: var(--spore); }
.chip.rot { color: var(--rot); border-color: var(--rot); }
.chip.violet { color: var(--cobalt); border-color: var(--cobalt); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- home: the culture plate ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 0; border-bottom: 1px solid var(--line-2); }
.plate-wrap { position: relative; border-right: 1px solid var(--line-2); padding: 34px 36px 30px; min-height: 720px; display: flex; flex-direction: column; }
.plate-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; position: relative; z-index: 2; }
.plate-head h1 { max-width: 640px; }
.plate-head h1 b { font-weight: 400; color: var(--moss); }
.plate { position: relative; flex: 1; margin-top: 10px; min-height: 480px; }
.plate canvas.field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.plate-cap { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.plate-cap p { margin: 0; max-width: 480px; color: var(--soft); font-size: 15px; line-height: 1.55; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.readout { display: flex; flex-direction: column; background: var(--sheet); }
.readout-head { padding: 34px 28px 16px; border-bottom: 1px solid var(--line-2); }
.stats { display: flex; flex-direction: column; }
.stat { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 15px 28px; border-bottom: 1px solid var(--line); }
.stat small { font: 500 10px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .14em; }
.stat b { font: 500 21px var(--mono); letter-spacing: -.04em; white-space: nowrap; }
.stat b em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 5px; letter-spacing: 0; }
.signals { flex: 1; padding: 18px 28px 26px; display: flex; flex-direction: column; min-height: 0; }
.signals-head { display: flex; justify-content: space-between; align-items: center; font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 8px; }
.signals-head .live { color: var(--moss); display: inline-flex; gap: 6px; align-items: center; }
.signals-head .live .dot { animation: blink 1.6s steps(2) infinite; }
.signal { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed var(--line-2); font: 400 12px var(--mono); animation: rise .45s ease-out; }
.signal i { font-style: normal; color: var(--dim); }
.signal .who { color: var(--muted); }
.signal b { font-family: var(--font); font-weight: 600; font-size: 13px; letter-spacing: -.01em; }
.signal .amt { font-weight: 500; }
.signals-empty { color: var(--soft); font-size: 14px; line-height: 1.55; padding-top: 6px; }
.signals-empty b { display: block; font: 400 24px var(--serif); font-style: italic; color: var(--ink); margin-bottom: 6px; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes blink { 50% { opacity: .2; } }
.plate-scale { position: absolute; z-index: 2; right: 0; bottom: 12px; display: flex; align-items: center; gap: 8px; font: 500 10px var(--mono); color: var(--muted); }
.plate-scale i { display: block; width: 60px; height: 6px; border: 1px solid var(--ink); border-top: 0; }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--ink); white-space: nowrap; background: var(--sheet); }
.table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; background: var(--sheet); }
.table tbody tr.click { cursor: pointer; }
.table tbody tr.click:hover td { background: var(--paper-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; }
.table-card { overflow: hidden; }
.table-scroll { overflow-x: auto; }
.tok { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tok img { width: 38px; height: 38px; border-radius: 50%; background: #0b120e; border: 1px solid var(--ink); flex: none; }
.tok b { font-weight: 600; font-size: 15px; }
.tok small { display: block; font: 400 11px var(--mono); color: var(--muted); }
.tok .house { color: var(--moss); font: 500 9.5px var(--mono); letter-spacing: .12em; margin-left: 8px; border: 1px solid var(--moss); padding: 1px 4px; }

.grow-bar { position: relative; width: 150px; height: 8px; border: 1px solid var(--ink); background: var(--sheet); }
.grow-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: repeating-linear-gradient(-45deg, var(--moss) 0 3px, var(--moss-2) 3px 6px); }
.grow-bar.fruit i { background: repeating-linear-gradient(-45deg, var(--spore) 0 3px, #d39a3b 3px 6px); }
.grow-cell { display: flex; align-items: center; gap: 10px; }
.grow-cell .num { font-size: 12px; color: var(--soft); min-width: 46px; }
.depthbar { display: inline-flex; gap: 2px; vertical-align: middle; }
.depthbar i { width: 5px; height: 12px; border: 1px solid var(--line-2); }
.depthbar i.on { background: var(--moss); border-color: var(--moss); }
.depthbar i.on.deep { background: var(--ink); border-color: var(--ink); }

/* ---------- method steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-2); background: var(--sheet); }
.step { padding: 22px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step svg { width: 100%; height: 110px; margin-bottom: 14px; border-bottom: 1px dashed var(--line-2); }
.step em { font: 500 10px var(--mono); font-style: normal; color: var(--muted); letter-spacing: .14em; }
.step h3 { margin: 8px 0 8px; font: 400 25px/1.05 var(--serif); font-style: italic; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--soft); font-size: 14px; line-height: 1.6; }
.step.card { border: 0; }
.split { display: flex; height: 46px; border: 1px solid var(--ink); }
.split div { display: flex; align-items: center; justify-content: space-between; padding: 0 14px; font-size: 13px; gap: 8px; white-space: nowrap; overflow: hidden; border-right: 1px solid var(--ink); }
.split div:last-child { border-right: 0; }
.split div b { font-family: var(--mono); font-weight: 500; }
.split .s-h { background: var(--moss); color: #f3f7f1; }
.split .s-s { background: var(--spore); color: #fff8ea; }
.split .s-c { background: repeating-linear-gradient(-45deg, var(--sheet) 0 4px, var(--paper-2) 4px 8px); color: var(--ink); }
.split .s-p { background: var(--sheet); color: var(--soft); }
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; color: var(--soft); font-size: 13.5px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border: 1px solid var(--ink); }

/* ---------- network page ---------- */
.net-head { display: flex; gap: 24px; align-items: center; padding: 38px 0 26px; flex-wrap: wrap; }
.net-emblem { width: 104px; height: 104px; border-radius: 50%; border: 1px solid var(--ink); background: #0b120e; outline: 6px solid var(--sheet); box-shadow: 0 0 0 7px var(--ink); flex: none; }
.net-title h1 { font-size: clamp(40px, 5vw, 64px); display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.net-title h1 small { font: 500 15px var(--mono); font-style: normal; color: var(--muted); letter-spacing: -.02em; }
.net-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.copy { cursor: pointer; }
.copy:hover { background: var(--ink); color: var(--paper); }
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); }
.kpi { padding: 16px 18px; border-right: 1px solid var(--line); min-width: 0; }
.kpi:last-child { border-right: 0; }
.kpi small { display: block; font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 6px; white-space: nowrap; }
.kpi b { font: 500 20px var(--mono); letter-spacing: -.04em; white-space: nowrap; }
.kpi b em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.net-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; margin-top: 22px; align-items: start; }
.stage { position: relative; height: 540px; overflow: hidden; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-cap { position: absolute; left: 16px; top: 14px; z-index: 2; display: flex; gap: 8px; flex-wrap: wrap; }
.stage-key { position: absolute; left: 16px; bottom: 14px; z-index: 2; display: flex; gap: 16px; font: 400 11px var(--mono); color: var(--muted); flex-wrap: wrap; }
.stage-key span { display: inline-flex; gap: 6px; align-items: center; }
.stage-key i { width: 8px; height: 8px; border-radius: 50%; }
.fruiting { padding: 20px 22px; margin-top: 22px; }
.fruiting-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.fruiting h3 { font: 400 28px var(--serif); font-style: italic; }
.fruit-track { position: relative; height: 14px; border: 1px solid var(--ink); background: var(--sheet); }
.fruit-track i { position: absolute; left: 0; top: 0; bottom: 0; background: repeating-linear-gradient(-45deg, var(--moss) 0 4px, var(--moss-2) 4px 8px); }
.fruit-track b { position: absolute; right: -9px; top: -6px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--ink); background: var(--spore); }
.panel { padding: 20px; }
.panel + .panel { margin-top: 18px; }
.panel h3 { font: 400 24px var(--serif); font-style: italic; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); }
.seg button { height: 42px; border: 0; background: var(--sheet); cursor: pointer; color: var(--muted); font-weight: 600; transition: .15s; }
.seg button + button { border-left: 1px solid var(--ink); }
.seg button.on.b { background: var(--moss); color: #f3f7f1; }
.seg button.on.s { background: var(--rot); color: #fff7f2; }
.fld { position: relative; margin-top: 16px; }
.fld label { display: flex; justify-content: space-between; font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 7px; }
.input { width: 100%; height: 52px; padding: 0 64px 0 14px; border: 0; border-bottom: 2px solid var(--ink); background: var(--paper); font: 500 22px var(--mono); letter-spacing: -.03em; outline: none; border-radius: 0; transition: background .2s; }
.input:focus { background: #e3efe0; }
/* the creator's picture: a specimen slide you drop a sample on */
.pic-drop { display: flex; align-items: center; gap: 16px; padding: 12px 14px; background: var(--paper); border: 1px dashed var(--ink); cursor: pointer; transition: background .2s, border-color .2s; }
.pic-drop:hover, .pic-drop:focus-visible, .pic-drop.over { background: #e3efe0; border-style: solid; outline: none; }
.pic-drop.has { border-style: solid; }
.pic-drop img, .pic-ph { width: 64px; height: 64px; border-radius: 50%; flex: none; border: 1px solid var(--ink); box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--ink); object-fit: cover; }
.pic-ph { background: radial-gradient(circle, transparent 0 5px, var(--ink) 5px 6px, transparent 6px), linear-gradient(var(--line-2), var(--line-2)) center / 1px 100% no-repeat, linear-gradient(var(--line-2), var(--line-2)) center / 100% 1px no-repeat, var(--sheet); }
.pic-txt { display: grid; gap: 3px; min-width: 0; }
.pic-txt b { font: 400 21px var(--serif); font-style: italic; color: var(--ink); }
.pic-txt small { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.pic-x { margin-top: 8px; }
.tok img, .net-emblem, .preview img { object-fit: cover; }
.input-unit { position: absolute; right: 12px; bottom: 16px; font: 500 12px var(--mono); color: var(--muted); }
.presets { display: flex; gap: 0; margin-top: 10px; border: 1px solid var(--line-2); }
.presets button { flex: 1; height: 32px; border: 0; background: var(--sheet); color: var(--soft); font: 500 12px var(--mono); cursor: pointer; }
.presets button + button { border-left: 1px solid var(--line-2); }
.presets button:hover { background: var(--ink); color: var(--paper); }
.quote { margin: 16px 0; padding: 12px 0; border-top: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2); font-size: 13px; color: var(--soft); }
.quote div { display: flex; justify-content: space-between; gap: 10px; }
.quote div + div { margin-top: 4px; }
.quote b { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.panel .btn { width: 100%; }
.venue-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.venue-row .btn { width: auto; padding: 0 8px; }
.mine { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.mine div small { display: block; font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.mine div b { font: 500 17px var(--mono); }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--ink); margin: 36px 0 0; overflow-x: auto; }
.tabs button { position: relative; padding: 12px 18px; background: none; border: 0; color: var(--muted); font-weight: 600; cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--paper); background: var(--ink); }
.tab-body { padding-top: 18px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding: 18px 18px 0; border-bottom: 1px solid var(--ink); margin: 0 18px; }
.bars div { flex: 1; display: flex; flex-direction: column-reverse; gap: 0; min-width: 4px; height: 100%; }
.bars div i { display: block; border: 1px solid var(--ink); border-bottom: 0; }
.bars .f { background: var(--moss); }
.bars .o { background: var(--cobalt); }
.bars .n { background: var(--spore); }
.about { padding: 22px; color: var(--soft); line-height: 1.65; white-space: pre-wrap; word-break: break-word; font-size: 15.5px; }

/* ---------- forms ---------- */
.form { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.form .panel { padding: 24px; }
.form .input { font: 500 16px var(--font); letter-spacing: -.01em; height: 46px; padding: 0 12px; }
.form textarea.input { height: 100px; padding: 12px; resize: vertical; line-height: 1.5; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.preview { padding: 24px; text-align: center; }
.preview img { width: 220px; height: 220px; border-radius: 50%; margin: 8px auto 16px; display: block; background: #0b120e; border: 1px solid var(--ink); box-shadow: 0 0 0 8px var(--sheet), 0 0 0 9px var(--ink); }
.preview b { font: 400 30px var(--serif); font-style: italic; }
.notice { padding: 14px 16px; border: 1px solid var(--spore); border-left-width: 4px; background: #f7eedd; color: #6d4709; font-size: 13.5px; line-height: 1.5; }
.notice.glow { border-color: var(--moss); background: #e5efe1; color: #234e2d; }

/* ---------- pulse log ---------- */
.pulse-row { display: grid; grid-template-columns: 120px 1fr 140px 140px 120px 28px; gap: 12px; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--line); cursor: pointer; background: var(--sheet); }
.pulse-row:hover { background: var(--paper-2); }
.pulse-row .no { font: 400 22px var(--serif); font-style: italic; }
.pulse-row .no small { display: block; color: var(--muted); font: 400 11px var(--mono); font-style: normal; }
.pulse-detail { padding: 6px 18px 18px; border-bottom: 1px solid var(--line); background: var(--paper); }
.flowline { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--soft); padding: 4px 0; }
.flowline .wire { flex: 1; height: 0; border-top: 1px dashed var(--cobalt); max-width: 120px; }

.me-top { display: grid; grid-template-columns: repeat(4, 1fr); }
.empty { padding: 50px 24px; text-align: center; color: var(--soft); }
.empty h3 { margin-bottom: 8px; color: var(--ink); font: 400 30px var(--serif); font-style: italic; }

/* ---------- method ---------- */
.how { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 44px; padding: 44px 0 70px; }
.how-nav { position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.how-nav a { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--soft); font-size: 14px; }
.how-nav a:hover { color: var(--ink); padding-left: 4px; }
.how article section { padding: 24px 0 28px; border-bottom: 1px solid var(--line-2); }
.how article h2 { margin-bottom: 12px; }
.how article p, .how article li { color: var(--soft); line-height: 1.72; font-size: 15.5px; max-width: 720px; }
.how article b { color: var(--ink); font-weight: 600; }
.how article code { font: 500 13px var(--mono); color: var(--moss); background: #e3eedf; padding: 1px 5px; }
.formula { margin: 14px 0; padding: 16px 18px; font: 500 15px var(--mono); border: 1px solid var(--ink); background: var(--sheet); overflow-x: auto; white-space: nowrap; box-shadow: 4px 4px 0 var(--paper-2); }
.dtable { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.dtable td { padding: 9px 12px; border-bottom: 1px solid var(--line); color: var(--soft); }
.dtable td:last-child { text-align: right; font-family: var(--mono); color: var(--ink); }

/* ---------- sheets, toasts, tip ---------- */
.sheet { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(241, 239, 232, .78); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .15s; }
.sheet-box { width: min(400px, calc(100vw - 32px)); padding: 24px; background: var(--sheet); border: 1px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.sheet-box h3 { font: 400 28px var(--serif); font-style: italic; margin-bottom: 4px; }
.sheet-box p { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; word-break: break-all; }
.sheet-box p a { color: var(--moss); text-decoration: underline; }
.wallet-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1px solid var(--line-2); border-bottom: 0; background: var(--sheet); cursor: pointer; text-align: left; transition: .15s; }
.wallet-opt:last-child { border-bottom: 1px solid var(--line-2); }
.wallet-opt:hover { background: var(--ink); color: var(--paper); }
.wallet-opt img { width: 28px; height: 28px; }
.wallet-opt span { font-weight: 600; }
@keyframes fade { from { opacity: 0; } }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 36px)); }
.toast { padding: 12px 14px; background: var(--sheet); border: 1px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font-size: 13.5px; animation: rise .25s; word-break: break-word; }
.toast.ok { box-shadow: 4px 4px 0 var(--moss); }
.toast.err { box-shadow: 4px 4px 0 var(--rot); }
.toast a { color: var(--moss); text-decoration: underline; text-underline-offset: 3px; }
.tip { position: fixed; z-index: 70; pointer-events: none; padding: 10px 12px; min-width: 180px; background: var(--sheet); border: 1px solid var(--ink); font-size: 12.5px; box-shadow: 4px 4px 0 rgba(21, 24, 21, .15); }
.tip b { display: block; font-size: 14px; margin-bottom: 4px; }
.tip div { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); }
.tip div span:last-child { font-family: var(--mono); color: var(--ink); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line-2); margin-top: 40px; background: var(--sheet); }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 26px 36px 34px; display: grid; grid-template-columns: 230px 1fr auto; gap: 30px; align-items: start; }
.foot-brand { font: 400 22px var(--serif); font-style: italic; }
.foot-brand span { display: block; font: 400 12px var(--font); font-style: normal; color: var(--muted); margin-top: 4px; }
.foot-note { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; max-width: 620px; }
.foot-links { display: flex; gap: 16px; font: 400 12px var(--mono); color: var(--soft); }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.loading { padding: 80px 0; text-align: center; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; }
  .plate-wrap { border-right: 0; border-bottom: 1px solid var(--line-2); min-height: 640px; }
  .net-body, .form { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .kpi:nth-child(3) { border-right: 0; }
  .kpi:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .side { position: sticky; top: 0; bottom: auto; width: auto; height: 62px; flex-direction: row; align-items: center; gap: 10px; padding: 0 14px; border-right: 0; border-bottom: 1px solid var(--line-2); }
  .brand-word small, .brand-word { display: none; }
  .brand-mark { width: 32px; height: 32px; }
  .nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; flex-direction: row; justify-content: space-around; height: 58px; padding: 0 4px env(safe-area-inset-bottom); background: var(--sheet); border-top: 1px solid var(--ink); }
  .nav a { flex-direction: column; align-items: center; gap: 2px; padding: 9px 2px; border: 0; font-size: 11.5px; }
  .nav a em { width: auto; }
  .nav a:hover { padding-left: 2px; }
  .nav a.on { padding-left: 2px; }
  .nav a.on::before { left: 20%; right: 20%; top: 0; bottom: auto; width: auto; height: 3px; }
  .nav a[data-v="how"] { display: none; }
  .clock { width: auto; height: 44px; margin: 0 0 0 auto; display: flex; align-items: center; gap: 8px; }
  .clock-ring { position: relative; width: 38px; height: 38px; inset: auto; }
  .clock-txt { align-items: flex-start; }
  .clock-txt small { font-size: 8.5px; margin-bottom: 3px; }
  .clock-txt b { font-size: 22px; }
  .side-foot { margin: 0; }
  .side-meta { display: none; }
  .tag { width: auto; height: 44px; padding: 0 12px 0 24px; clip-path: polygon(11px 0, 100% 0, 100% 100%, 11px 100%, 0 50%); }
  .tag-hole { left: 9px; width: 6px; height: 6px; margin-top: -3px; }
  .spore-c { width: 26px; height: 26px; }
  .tag-label small { display: none; }
  .tag-label b { font-size: 13px; max-width: 92px; }
  .page { margin-left: 0; padding-bottom: 58px; }
  .wrap { padding: 0 16px; }
  .plate-wrap { padding: 22px 16px; min-height: 0; }
  .plate { min-height: 380px; height: 62vw; max-height: 480px; }
  .readout-head { padding: 22px 16px 12px; }
  .stat { padding: 13px 16px; }
  .signals { padding: 14px 16px 22px; }
  .plate-scale, #plate-fig { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .stage { height: 400px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi { border-bottom: 1px solid var(--line); }
  .kpi:nth-child(2n) { border-right: 0; }
  .kpi:nth-child(3) { border-right: 1px solid var(--line); }
  .how { grid-template-columns: 1fr; }
  .how-nav { display: none; }
  .me-top { grid-template-columns: 1fr 1fr; }
  .pulse-row { grid-template-columns: 90px 1fr 90px 20px; }
  .pulse-row .hide-m { display: none; }
  .foot-in { grid-template-columns: 1fr; gap: 14px; padding: 22px 16px 30px; }
  .form .row2 { grid-template-columns: 1fr; }
  .split div span { display: none; }
  .t-hide { display: none; }
  .sec { padding-top: 38px; padding-bottom: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
