/* Barge · one stylesheet for every page. Industrial, monochrome, sharp. */
@font-face { font-family: 'Source Sans'; src: url('../fonts/sans-var.woff') format('woff'); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Anon'; src: url('../fonts/mono-400.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --bg: #0f0f0f;
  --raise: #151515;
  --raise-2: #1b1b1b;
  --line: rgba(236, 231, 221, .09);
  --line-2: rgba(236, 231, 221, .18);
  --ivory: #ece7dd;
  --text: #c9c5bc;
  --steel: #8f8f93;
  --dim: #626266;
  --sans: 'Source Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: var(--sans);
  --mono: 'Anon', ui-monospace, SFMono-Regular, Menlo, monospace;
  --w: 1200px;
  --r: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ivory); color: var(--bg); }
:focus-visible { outline: 1px solid var(--ivory); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(var(--w), calc(100% - 56px)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; }
.dim { color: var(--dim); }
.mono-val { font-family: var(--mono); font-size: 13px; word-break: break-all; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); margin: 0 0 18px; }
h1, h2, h3 { font-family: var(--sans); font-weight: 650; color: var(--ivory); margin: 0; letter-spacing: -.02em; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--steel); }
p { margin: 0; }
.arrow { font-family: var(--sans); }

/* Display weights for figures and names that used to be set in a serif */
.drop-title, .sample .n, .card-name, .empty-title, .pp-no, .pp-card b, .stats dd, .land .tally b, .d-kinds b, .f-text b, .name-field input, .slip-agent h3, .union .term { font-weight: 650; letter-spacing: -.015em; }
.pp-id h2 { font-style: normal; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border: 1px solid var(--line-2); border-radius: var(--r); background: transparent; color: var(--ivory); font-size: 15px; font-weight: 600; letter-spacing: .01em; cursor: pointer; transition: background .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn:hover { border-color: var(--ivory); }
.btn.solid { background: var(--ivory); color: var(--bg); border-color: var(--ivory); }
.btn.solid:hover { background: #fff; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.link { background: none; border: 0; padding: 0; color: var(--steel); font-size: 14px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.link:hover { color: var(--ivory); }
.link.danger:hover { color: #e2a79c; }

/* Mark */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mark { width: 22px; height: 26px; flex: none; }

/* Header: wordmark left, everything else right */
.top { position: sticky; top: 0; z-index: 30; background: rgba(15, 15, 15, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; height: 64px; gap: 28px; }
.top .brand { order: -1; }
.top .left { margin-left: auto; }
.top nav { display: flex; gap: 26px; font-size: 15px; color: var(--steel); }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ivory); }
.top .right { display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ivory); font-family: var(--sans); font-weight: 700; font-size: 18px; letter-spacing: .26em; }
.top .tools { display: flex; align-items: center; gap: 14px; }
.wallet-on { display: inline-flex; align-items: center; gap: 12px; }
.wallet-on .mono { color: var(--ivory); }
.local { display: inline-flex; align-items: center; gap: 8px; color: var(--steel); }
.lock { width: 7px; height: 7px; background: var(--ivory); opacity: .75; }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: 120px; padding: 36px 0 52px; }
.foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 24px; color: var(--steel); font-size: 15px; }
.foot nav a:hover { color: var(--ivory); }
.foot small { color: var(--dim); font-family: var(--mono); font-size: 12px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); background: var(--ivory); color: var(--bg); padding: 10px 18px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 60; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Status squares */
.sq { display: inline-block; width: 10px; height: 10px; flex: none; }
.sq.as-is { background: var(--ivory); }
.sq.converted { background: linear-gradient(135deg, var(--steel) 50%, transparent 50%); border: 1px solid var(--steel); }
.sq.none { border: 1px solid var(--dim); }

/* ---------- Landing ---------- */
.h-hero { padding: 64px 0 0; }
.h-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.h-top .kicker { margin: 0; }
.h-hero h1 { margin-top: 48px; font-size: clamp(48px, 8vw, 112px); line-height: .98; letter-spacing: -.035em; font-weight: 700; }
.h-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 56px; align-items: start; }
.h-grid > * { min-width: 0; }
.h-hero .lede { font-size: 20px; line-height: 1.55; max-width: 30em; color: var(--text); }
.h-hero .cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-ca { display: flex; width: fit-content; align-items: center; gap: 12px; max-width: 100%; padding: 9px 14px; border: 1px solid var(--line-2); background: var(--raise); color: var(--text); font: 400 13px/1.3 var(--mono); letter-spacing: .02em; cursor: pointer; transition: border-color .2s; text-align: left; }
.hero-ca:disabled { cursor: default; }
.hero-ca:disabled .hero-ca-val { color: var(--steel); }
.hero-ca:not(:disabled):hover { border-color: var(--ivory); }
.hero-ca-tag { color: var(--ivory); flex: none; }
.hero-ca-lbl { flex: none; color: var(--dim); padding-left: 12px; border-left: 1px solid var(--line-2); }
.hero-ca-val { flex: 1 1 auto; color: var(--ivory); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hero-ca-copy { flex: none; color: var(--steel); padding-left: 12px; border-left: 1px solid var(--line-2); }
.hero-ca:hover .hero-ca-copy { color: var(--ivory); }
.facts-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 72px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.facts-strip > div { padding: 24px 0 22px 24px; border-left: 1px solid var(--line); }
.facts-strip > div:first-child { border-left: 0; padding-left: 0; }
.facts-strip b { display: block; font-size: 44px; font-weight: 700; color: var(--ivory); line-height: 1; letter-spacing: -.03em; }
.facts-strip span { display: block; margin-top: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }

/* Manifest: live preview */
.slip { border: 1px solid var(--line-2); background: var(--raise); padding: 24px; }
.slip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.slip-head .mono:first-child { color: var(--ivory); letter-spacing: .18em; text-transform: uppercase; font-size: 12px; }
.slip-route { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; margin-top: 18px; }
.slip-route label { display: grid; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.slip-route .join { padding-bottom: 11px; color: var(--steel); font-size: 18px; }
select { appearance: none; -webkit-appearance: none; width: 100%; height: 44px; padding: 0 34px 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238f8f93' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 12px center; cursor: pointer; font-size: 15px; color: var(--ivory); text-transform: none; letter-spacing: 0; font-family: var(--sans); }
select:hover { border-color: var(--steel); }
.slip-agent { margin-top: 20px; }
.slip-agent h3 { font-size: 26px; }
.slip-agent p { color: var(--steel); font-size: 15px; margin-top: 2px; }
.ledger { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line); }
.ledger li { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; animation: fadeIn .4s both; }
.ledger .k { color: var(--ivory); }
.ledger .sqs { display: flex; gap: 4px; flex-wrap: wrap; }
.ledger .s { font-family: var(--mono); font-size: 12px; color: var(--steel); text-align: right; }
.slip .tally { display: flex; gap: 22px; margin-top: 14px; font-size: 14px; color: var(--steel); }
.slip .tally b { color: var(--ivory); font-weight: 600; margin-right: 6px; }
.slip-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; gap: 12px; flex-wrap: wrap; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Sections */
.sec { padding: 120px 0 0; }
.sec-head { margin-bottom: 44px; max-width: 760px; }
.sec-head h2 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.03em; font-weight: 700; }
.sec-head > p:not(.kicker) { margin-top: 18px; color: var(--text); max-width: 34em; }
.sec-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.sec-head.row > p { max-width: 26em; color: var(--steel); font-size: 16px; }

/* Route: load, cross, land */
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ivory); }
.route li { position: relative; padding: 30px 34px 0 0; }
.route li + li { padding-left: 34px; border-left: 1px solid var(--line); }
.route li::before { content: ''; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; background: var(--bg); border: 2px solid var(--ivory); }
.route li + li::before { left: 34px; }
.route li:last-child::before { background: var(--ivory); }
.route .stop { display: block; font-size: 28px; font-weight: 700; color: var(--ivory); letter-spacing: -.02em; margin-bottom: 12px; }
.route p { font-size: 16px; color: var(--text); }

/* Cargo */
.cargo { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.cargo .sec-head { margin: 0; position: sticky; top: 104px; }
.cargo-list { margin: 0; border-top: 1px solid var(--line-2); }
.cargo-list > div { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cargo-list dt { color: var(--ivory); font-weight: 600; font-size: 18px; }
.cargo-list dd { margin: 0; color: var(--steel); font-size: 16px; }

/* Matrix */
.matrix-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line-2); }
.matrix { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 14px; }
.matrix th, .matrix td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.matrix thead th { position: sticky; top: 0; background: var(--raise); font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--steel); letter-spacing: .08em; text-transform: uppercase; }
.matrix tbody th { text-align: left; font-weight: 500; color: var(--ivory); white-space: nowrap; }
.matrix tbody tr:hover td, .matrix tbody tr:hover th { background: var(--raise); }
.matrix td .sq { vertical-align: middle; }
.legend { display: flex; gap: 22px; margin-top: 16px; font-size: 14px; color: var(--steel); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }

/* Harbor + lineage */
.dock { border: 1px solid var(--line-2); }
.dock-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line-2); }
.dock-stats > div { padding: 28px 30px; border-left: 1px solid var(--line); }
.dock-stats > div:first-child { border-left: 0; }
.dock-stats b { display: block; font-size: 52px; font-weight: 700; color: var(--ivory); line-height: 1; letter-spacing: -.03em; }
.dock-stats span { display: block; margin-top: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.dock-cols { display: grid; grid-template-columns: 1fr 1fr; }
.dock-cols > div { padding: 32px 30px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.dock-cols > div + div { border-left: 1px solid var(--line); }
.dock-cols h3 { font-size: 28px; }
.dock-cols p { color: var(--text); font-size: 16px; }
.dock-cols .btn { margin-top: auto; }
.feed { margin-top: 24px; border: 1px solid var(--line-2); padding: 24px 30px 12px; }
.feed-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.feed-head .kicker { margin: 0; display: inline-flex; align-items: center; gap: 10px; }
.live { width: 7px; height: 7px; background: var(--ivory); animation: livePulse 2.4s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { opacity: .9; } 50% { opacity: .25; } }
.feed-list { list-style: none; margin: 0; padding: 0; }
.feed-list li { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto auto; gap: 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.feed-list li:last-child { border-bottom: 0; }
.f-kind { color: var(--steel); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.f-text { color: var(--text); min-width: 0; }
.f-text b { color: var(--ivory); font-size: 17px; }
.f-when { color: var(--dim); font-size: 12px; white-space: nowrap; }
.f-link { color: var(--steel); font-size: 14px; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.f-link:hover { color: var(--ivory); }

/* Promises */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.promises > div { padding: 30px 30px 30px 0; }
.promises > div + div { padding-left: 30px; border-left: 1px solid var(--line); }
.promises h3 { font-size: 20px; }
.promises p { margin-top: 8px; color: var(--steel); font-size: 16px; }

/* Token */
.token { background: var(--ivory); color: var(--bg); padding: 48px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.token .kicker { color: #5d5b56; }
.token h2 { color: var(--bg); font-size: clamp(48px, 6vw, 84px); font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.token .copy { margin-top: 16px; max-width: 30em; color: #2b2a27; }
.ca-box { background: var(--bg); color: var(--text); padding: 20px; }
.ca-row { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
#ca { flex: 1; min-width: 0; font-family: var(--mono); font-size: 14px; color: var(--ivory); word-break: break-all; }
#ca.pending { color: var(--steel); }
.ca-links { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.ca-links .btn[aria-disabled="true"] { opacity: .35; }

/* Closing */
.closing { padding: 120px 0 0; display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.closing h2 { font-size: clamp(40px, 6vw, 84px); line-height: 1; letter-spacing: -.035em; font-weight: 700; }

/* GitHub field (landing + app) */
.gh { margin-top: 18px; border: 1px solid var(--line-2); background: var(--raise); padding: 22px 24px; }
.gh-label { display: flex; align-items: center; gap: 12px; color: var(--ivory); }
.gh-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; background: var(--ivory); color: var(--bg); }
.gh-row { display: flex; gap: 12px; margin-top: 14px; }
.gh-field { flex: 1; min-width: 0; }
.gh-field input { width: 100%; min-height: 46px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); color: var(--ivory); font: 400 15px var(--mono); }
.gh-field input::placeholder { color: var(--dim); }
.gh-field input:focus { outline: none; border-color: var(--ivory); }
.hero-gh { margin-top: 32px; max-width: 560px; padding: 18px 20px; }
.hero-gh .gh-row { margin-top: 12px; }
.gh-hint { margin: 10px 0 0; color: var(--steel); font-size: 14px; }

/* ---------- App ---------- */
.load { padding: 72px 0 0; }
.load-head { max-width: 760px; }
.load-head h1, .orch-head h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.14; }
.sub { margin-top: 18px; font-size: 18px; color: var(--text); max-width: 36em; }
.drop { position: relative; margin-top: 40px; border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--raise); min-height: 300px; display: grid; place-items: center; text-align: center; padding: 40px 24px; cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--ivory); background: var(--raise-2); }
.drop-mark { width: 54px; height: 54px; margin: 0 auto 22px; opacity: .9; }
.drop-title { font-family: var(--serif); font-size: 26px; color: var(--ivory); }
.drop-hint { margin-top: 8px; color: var(--steel); font-size: 15px; }
.drop-actions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.drop-busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; background: rgba(12, 12, 11, .9); border-radius: var(--r); color: var(--ivory); }
.spinner { width: 16px; height: 16px; border: 1.5px solid var(--line-2); border-top-color: var(--ivory); border-radius: 0; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.gh { margin-top: 18px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--raise); padding: 22px 24px; }
.gh-label { display: flex; align-items: center; gap: 12px; color: var(--ivory); }
.gh-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 0; background: var(--ivory); color: var(--bg); }
.gh-row { display: flex; gap: 12px; margin-top: 14px; }
.gh-field { flex: 1; min-width: 0; }
.gh-field input { width: 100%; box-sizing: border-box; min-height: 46px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); color: var(--ivory); font: 400 15px var(--mono); }
.gh-field input::placeholder { color: var(--dim); }
.gh-field input:focus { outline: none; border-color: var(--ivory); }
.btn.everywhere { gap: 10px; }
.btn.everywhere .gh-tag { font-size: 10px; padding: 2px 6px; }
.passport { max-width: 820px; margin: 48px auto 0; border: 1px solid var(--line-2); border-radius: 0; background: linear-gradient(160deg, #161614, #0f0f0e 60%); padding: 34px 40px 28px; position: relative; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.passport::before { content: ''; position: absolute; inset: 8px; border: 1px solid var(--line); border-radius: 0; pointer-events: none; }
.pp-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.pp-brand { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13px; letter-spacing: .24em; color: var(--ivory); }
.pp-brand .mark { width: 22px; height: 22px; }
.pp-main { display: flex; gap: 30px; align-items: center; padding: 28px 0 22px; }
.pp-seal { width: 118px; height: 118px; flex: none; border: 1px solid var(--line-2); border-radius: 0; display: grid; place-items: center; background: radial-gradient(circle, rgba(231, 226, 214, .06), transparent 70%); }
.pp-seal svg { width: 64px; height: 64px; }
.pp-no { margin: 4px 0 0; font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--ivory); letter-spacing: .04em; }
.pp-id h2 { margin-top: 10px; font-size: 32px; color: var(--steel); font-style: italic; }
.pp-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.pp-fields > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.pp-fields dt { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.pp-fields dd { margin: 6px 0 0; color: var(--ivory); font-size: 16px; }
.pp-fields a { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.pp-lineage { margin-top: 22px; }
.pp-lineage ol { list-style: none; margin: 10px 0 0; padding: 0; }
.pp-lineage li { display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.pp-mrz { margin-top: 26px; padding: 14px 16px; border-radius: 0; background: rgba(231, 226, 214, .05); color: var(--steel); font-size: 14px; letter-spacing: .18em; white-space: pre; overflow-x: auto; }
.pp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 36px; }
.pp-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--raise); transition: border-color .2s; }
.pp-card:hover { border-color: var(--ivory); }
.pp-card b { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--ivory); }
.pp-empty { max-width: 620px; margin: 56px auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pp-empty h3 { font-size: 34px; }
.pp-empty p { color: var(--steel); margin: 0; }
.cli-hint { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cli-hint .gh-tag { font-size: 10px; padding: 2px 6px; }
.cli-hint code { font-family: var(--mono); font-size: 12px; color: var(--ivory); background: var(--bg); border: 1px solid var(--line-2); border-radius: 0; padding: 2px 6px; }
.badge-box { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.badge-box img { display: block; }
.badge-code { margin: 0; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); color: var(--steel); font: 400 11px/1.5 var(--mono); white-space: pre-wrap; word-break: break-all; }
.hero-gh { margin-top: 28px; max-width: 560px; padding: 18px 20px; }
.hero-gh .gh-row { margin-top: 12px; }
.gh-hint { margin: 10px 0 0; color: var(--steel); font-size: 14px; }
.error { margin-top: 16px; padding: 12px 16px; border: 1px solid rgba(226, 167, 156, .4); border-radius: var(--r); color: #e2a79c; font-size: 15px; }
.samples { margin-top: 44px; }
.sample-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.sample { text-align: left; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: transparent; cursor: pointer; transition: border-color .2s; display: grid; gap: 2px; }
.sample:hover { border-color: var(--ivory); }
.sample .p { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .06em; }
.sample .n { font-family: var(--serif); font-size: 20px; color: var(--ivory); }
.sample .b { font-size: 13px; color: var(--steel); line-height: 1.4; }
.reads { margin-top: 56px; }
.reads dl { margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.reads dl > div { display: grid; grid-template-columns: 140px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.reads dt { color: var(--ivory); font-size: 15px; }
.reads dd { margin: 0; color: var(--steel); font-family: var(--mono); font-size: 12px; line-height: 1.6; }

.work { padding: 48px 0 0; display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }
.side { display: grid; gap: 14px; position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.card { border: 1px solid var(--line); border-radius: var(--r); background: var(--raise); padding: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.name-field input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); padding: 4px 0 8px; font-family: var(--serif); font-size: 28px; color: var(--ivory); }
.name-field input:focus { outline: none; border-bottom-color: var(--ivory); }
.facts { margin: 14px 0 0; display: grid; }
.facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--steel); }
.facts dd { margin: 0; color: var(--ivory); text-align: right; min-width: 0; }
.dest { display: grid; max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r); }
.dest button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; font-size: 14px; }
.dest button:last-child { border-bottom: 0; }
.dest button:hover { background: var(--raise-2); }
.dest button .r { width: 12px; height: 12px; border: 1px solid var(--steel); border-radius: 0; flex: none; }
.dest button[aria-checked="true"] { background: var(--raise-2); color: var(--ivory); }
.dest button[aria-checked="true"] .r { background: var(--ivory); border-color: var(--ivory); box-shadow: inset 0 0 0 2px var(--raise-2); }
.dest .lbl { flex: 1; display: flex; align-items: center; gap: 10px; }
.dest .tag { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.land .tally { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--r); }
.land .tally > div { padding: 10px; border-right: 1px solid var(--line); }
.land .tally > div:last-child { border-right: 0; }
.land .tally b { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--ivory); }
.land .tally span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--steel); }
.land .btn + .btn, .share .btn + .btn, .share .publish + .btn { margin-top: 8px; }
.receipt { margin-top: 12px; font-size: 13px; color: var(--steel); }
.receipt a { color: var(--ivory); text-decoration: underline; text-underline-offset: 3px; }
.receipt code { font-family: var(--mono); }
.publish { display: grid; gap: 10px; margin-top: 10px; }
.desc-field { display: grid; gap: 6px; }
.desc-field textarea { width: 100%; resize: vertical; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px; font-size: 14px; }
.desc-field textarea:focus { outline: none; border-color: var(--ivory); }
.hint { font-size: 13px; color: var(--dim); margin-top: 8px; line-height: 1.5; }
.wallet-line { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; }
.wallet-line .mono { color: var(--ivory); flex: 1; }
.main { min-width: 0; border: 1px solid var(--line); border-radius: var(--r); }
.tabs { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 16px 20px; border: 0; background: transparent; color: var(--steel); cursor: pointer; font-size: 15px; position: relative; }
.tab:hover { color: var(--ivory); }
.tab[aria-selected="true"] { color: var(--ivory); }
.tab[aria-selected="true"]::after { content: ''; position: absolute; left: 20px; right: 20px; bottom: -1px; height: 1px; background: var(--ivory); }
.count { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-left: 6px; }
.panel { padding: 22px; }
.panel-intro { font-size: 15px; color: var(--steel); margin-bottom: 18px; }
.panel-intro b { color: var(--ivory); font-weight: 500; }
.group + .group { margin-top: 26px; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.group-head h3 { font-size: 22px; }
.group-head h3 span { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-left: 8px; }
.item { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.item.off { opacity: .45; }
.check { appearance: none; -webkit-appearance: none; width: 15px; height: 15px; margin: 3px 0 0; border: 1px solid var(--steel); border-radius: 0; cursor: pointer; }
.check:checked { background: var(--ivory); border-color: var(--ivory); box-shadow: inset 0 0 0 3px var(--bg); }
.item-main { min-width: 0; }
.item-name { color: var(--ivory); font-size: 15px; word-break: break-word; }
.item-detail { color: var(--steel); font-size: 13px; margin-top: 2px; line-height: 1.5; }
.item-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--steel); white-space: nowrap; }
.item-status b { font-weight: 400; }
.files { display: grid; grid-template-columns: 260px 1fr; gap: 16px; }
.file-list { list-style: none; margin: 0; padding: 0; max-height: 560px; overflow-y: auto; border-right: 1px solid var(--line); }
.file-list button { display: block; width: 100%; text-align: left; padding: 6px 10px; border: 0; background: transparent; color: var(--steel); font-family: var(--mono); font-size: 12px; cursor: pointer; word-break: break-all; }
.file-list button:hover, .file-list button[aria-current="true"] { color: var(--ivory); background: var(--raise); }
.file-list .dir { color: var(--dim); }
.viewer { min-width: 0; }
.viewer-head { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.viewer pre { margin: 12px 0 0; max-height: 520px; overflow: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.rows li .r1 { color: var(--ivory); word-break: break-all; }
.rows li .r2 { color: var(--steel); text-align: right; }
.rows li code { font-family: var(--mono); font-size: 12px; }
.rows .empty { color: var(--dim); grid-template-columns: 1fr; }

/* ---------- Harbor ---------- */
.orch-head { padding: 72px 0 40px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border: 1px solid var(--line); border-radius: var(--r); }
.stats > div { padding: 16px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats dt { font-size: 13px; color: var(--steel); }
.stats dd { margin: 4px 0 0; font-family: var(--serif); font-size: 30px; color: var(--ivory); }
.toolbar { display: flex; gap: 10px; align-items: center; padding: 22px 0; flex-wrap: wrap; }
.search { flex: 1; min-width: 220px; }
.search input { width: 100%; height: 44px; padding: 0 14px; background: transparent; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 15px; }
.search input:focus { outline: none; border-color: var(--ivory); }
.search input::placeholder { color: var(--dim); }
.tb-select { width: 180px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--steel); cursor: pointer; padding: 0 6px; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.tg { width: 34px; height: 18px; border: 1px solid var(--steel); border-radius: 0; position: relative; transition: background .2s; }
.tg::after { content: ''; position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; border-radius: 0; background: var(--steel); transition: transform .2s, background .2s; }
.toggle input:checked + .tg { background: var(--ivory); border-color: var(--ivory); }
.toggle input:checked + .tg::after { transform: translateX(16px); background: var(--bg); }
.toggle input:focus-visible + .tg { outline: 1px solid var(--ivory); outline-offset: 3px; }
.note { padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--r); color: var(--steel); font-size: 14px; margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid:empty { display: none; }
.grid .card { text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 10px; padding: 20px; transition: border-color .2s; }
.grid .card:hover, .grid .card:focus-visible { border-color: var(--steel); }
.card-top { display: flex; justify-content: space-between; gap: 10px; }
.card-name { font-family: var(--serif); font-size: 24px; color: var(--ivory); line-height: 1.15; }
.card-desc { font-size: 14px; color: var(--steel); line-height: 1.5; }
.card-desc.none { color: var(--dim); font-style: italic; }
.kinds { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--steel); font-family: var(--mono); }
.kinds span { display: inline-flex; gap: 5px; align-items: center; }
.kinds i { font-style: normal; color: var(--ivory); }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-family: var(--mono); font-size: 11px; padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 0; color: var(--steel); }
.badge.holder { color: var(--bg); background: var(--ivory); border-color: var(--ivory); }
.empty { text-align: center; padding: 80px 20px; border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty svg { width: 48px; height: 48px; margin: 0 auto 20px; }
.empty-title { font-family: var(--serif); font-size: 30px; color: var(--ivory); }
.empty-sub { margin: 8px auto 26px; color: var(--steel); max-width: 30em; }
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--raise); border-left: 1px solid var(--line-2); z-index: 50; transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.drawer-body { padding: 26px 24px 40px; overflow-y: auto; display: grid; gap: 18px; align-content: start; }
.drawer-body h2 { font-size: 34px; line-height: 1.1; }
.d-desc { color: var(--text); font-size: 15px; }
.d-facts { margin: 0; }
.d-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.d-facts dt { color: var(--steel); }
.d-facts dd { margin: 0; color: var(--ivory); text-align: right; }
.d-facts a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); font-family: var(--mono); font-size: 13px; }
.d-label { margin-top: 6px; }
.d-kinds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.d-kinds li { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; color: var(--steel); }
.d-kinds b { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--ivory); }
.d-actions { display: grid; gap: 8px; margin-top: 6px; }
.d-actions .link { justify-self: start; margin-top: 8px; }

/* ---------- 404 ---------- */
.lost { min-height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 40px 24px; gap: 18px; }
.lost .mark { width: 64px; height: 64px; margin-bottom: 10px; }
.lost h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.16; }
.lost .cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }

/* Calm reveal */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .h-grid, .token, .orch-head, .cargo { grid-template-columns: 1fr; gap: 44px; }
  .cargo .sec-head { position: static; }
  .work { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; overflow: visible; }
  .grid { grid-template-columns: 1fr 1fr; }
  .sample-row { grid-template-columns: repeat(3, 1fr); }
  .top .left { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 36px); }
  .top .wrap { height: 58px; gap: 16px; }
  .top .right { margin-left: auto; }
  .top .right nav { display: none; }
  .brand { font-size: 16px; }
  .h-hero { padding-top: 40px; }
  .h-hero h1 { margin-top: 36px; }
  .facts-strip { grid-template-columns: 1fr 1fr; }
  .facts-strip > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts-strip b { font-size: 36px; }
  .route, .dock-stats, .dock-cols, .promises { grid-template-columns: 1fr; }
  .route { border-top: 0; border-left: 2px solid var(--ivory); }
  .route li, .route li + li { padding: 0 0 28px 28px; border-left: 0; }
  .route li::before, .route li + li::before { top: 4px; left: -7px; }
  .dock-stats > div, .dock-cols > div + div, .promises > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .promises > div, .promises > div + div { padding: 24px 0; }
  .dock-stats > div, .dock-cols > div { padding: 24px 22px; }
  .dock-stats b { font-size: 40px; }
  .cargo-list > div { grid-template-columns: 1fr; gap: 4px; }
  .sec-head.row { display: block; }
  .sec-head.row > p { margin-top: 14px; }
  .feed { padding: 20px 20px 8px; }
  .feed-list li { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; }
  .feed-list .f-kind, .feed-list .f-text { grid-column: 1 / -1; }
  .feed-list .f-when { grid-column: 1; grid-row: 3; }
  .feed-list .f-link { grid-column: 2; grid-row: 3; justify-self: end; }
  .grid, .reads dl, .files, .d-kinds { grid-template-columns: 1fr; }
  .reads dl > div { grid-template-columns: 1fr; gap: 2px; }
  .sample-row { grid-template-columns: 1fr 1fr; }
  .token { padding: 28px; }
  .slip { padding: 18px; }
  .slip-route { grid-template-columns: 1fr; }
  .slip-route .join { display: none; }
  .ledger li { grid-template-columns: 92px 1fr auto; gap: 10px; font-size: 14px; }
  .file-list { border-right: 0; border-bottom: 1px solid var(--line); max-height: 220px; }
  .item { grid-template-columns: 22px 1fr; }
  .passport { padding: 24px 20px; }
  .pp-main { gap: 18px; }
  .pp-seal { width: 84px; height: 84px; }
  .pp-no { font-size: 40px; }
  .pp-fields { grid-template-columns: 1fr 1fr; }
  .pp-mrz { font-size: 11px; letter-spacing: .08em; }
  .gh-row { flex-direction: column; }
  .item-status { grid-column: 2; white-space: normal; align-items: flex-start; min-width: 0; }
  .sec { padding-top: 88px; }
  .stats dd { font-size: 24px; }
  .foot .wrap { flex-direction: column; align-items: flex-start; }
  .closing { padding-top: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  .live { animation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
