/* Post, v2. Cream light system. */

:root {
  --ground: #fef4ef;
  --panel: #ffffff;
  --panel-2: #fef8f5;
  --raise: #ffffff;
  --line: rgba(0, 0, 0, 0.10);
  --line-soft: rgba(0, 0, 0, 0.07);
  --ink: #1a0f1f;
  --ink-2: rgba(26, 15, 31, 0.72);
  --ink-3: rgba(26, 15, 31, 0.62);
  --white: #ffffff;
  --band: #150c18;
  --lilac: #b48ae8;
  --sky: #86b6ff;
  --mint: #8fe3b8;
  --butter: #ffd84a;
  --pink: #ff8ad0;
  --live: #137a48;
  --warn: #8a6a00;
  --down: #c92a45;
  --grad: linear-gradient(135deg, #a06be0 0%, #86b6ff 30%, #8fe3b8 55%, #ffd84a 78%, #ff8ad0 100%);
  --grad-soft: linear-gradient(135deg, rgba(160, 107, 224, 0.16), rgba(134, 182, 255, 0.16), rgba(143, 227, 184, 0.16), rgba(255, 216, 74, 0.16));
  --shadow: 0 1.25rem 2.5rem rgba(26, 15, 31, 0.06);
  --shadow-lift: 0 1.5rem 3rem rgba(26, 15, 31, 0.10);
  --radius: 1.5rem;
  --radius-sm: 1rem;
  --radius-xs: 0.625rem;
  --sidebar: 256px;
  --topbar: 64px;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  --sans: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(180, 138, 232, 0.35); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
svg { flex: none; }
.icon { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.gtext { background-image: var(--grad); color: transparent; -webkit-text-fill-color: transparent; -webkit-background-clip: text; background-clip: text; }

/* ---------- shell ---------- */

.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; gap: 0; }

.sidebar {
  position: sticky; top: 12px; align-self: start;
  height: calc(100vh - 24px); margin: 12px 0 12px 12px;
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.brand { display: flex; align-items: center; height: var(--topbar); padding: 0 18px; border-bottom: 1px solid var(--line-soft); }
.brand .wordmark { display: block; height: 28px; width: auto; }

.nav { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.nav-label { padding: 16px 12px 6px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 999px;
  color: var(--ink-2); font-size: 14px; font-weight: 500;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.nav a:hover { background: var(--panel-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--grad-soft); color: var(--ink); }

.side-foot { padding: 12px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 8px; }
.ca-pill {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12px; color: var(--ink-3); background: var(--panel-2);
}
.ca-pill b { color: var(--ink); font-weight: 500; letter-spacing: 0.02em; }
.ca-pill span { font-family: var(--mono); }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  height: var(--topbar); padding: 12px 24px 0;
  background: rgba(254, 244, 239, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

.search { position: relative; flex: 1; max-width: 520px; margin: 0 auto; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search input {
  width: 100%; height: 40px; padding: 0 14px 0 38px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); outline: none; box-shadow: 0 1px 2px rgba(26, 15, 31, 0.04);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { border-color: rgba(0, 0, 0, 0.22); box-shadow: 0 0 0 4px rgba(180, 138, 232, 0.18); }
.results {
  position: absolute; top: 46px; left: 0; right: 0; z-index: 40;
  max-height: 340px; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
}
.results button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 14px; text-align: left; }
.results button:hover { background: var(--panel-2); }
.results .sym { font-weight: 600; min-width: 62px; }
.results .nm { color: var(--ink-3); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel);
  font-size: 12.5px; color: var(--ink-2); white-space: nowrap;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); flex: none; }
.status-pill[data-state="live"] .dot { background: var(--mint); box-shadow: 0 0 0 3px rgba(143, 227, 184, 0.35); }
.status-pill[data-state="degraded"] .dot { background: var(--butter); }
.status-pill[data-state="offline"] .dot { background: var(--pink); }
.status-pill[data-state="connecting"] .dot { background: var(--ink-3); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--panel);
  font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap;
  box-shadow: 0 1px 2px rgba(26, 15, 31, 0.04);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease), opacity 0.2s var(--ease);
}
.btn:hover { border-color: rgba(0, 0, 0, 0.2); transform: translateY(-2px); box-shadow: 0 0.75rem 1.5rem rgba(26, 15, 31, 0.08); }
/* Ink on the candy gradient: white failed contrast on the mint and butter stops (1.4:1), ink passes on every stop (4.6:1 or better). */
.btn-primary { background-image: var(--grad); background-color: #a06be0; color: var(--ink); border-color: transparent; box-shadow: 0 0.5rem 1.25rem rgba(160, 107, 224, 0.35); font-weight: 600; }
.btn-primary:hover { color: var(--ink); border-color: transparent; box-shadow: 0 0.9rem 1.75rem rgba(160, 107, 224, 0.45); }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary:disabled { opacity: 1; background-image: none; background-color: rgba(26, 15, 31, 0.08); color: var(--ink-3); text-shadow: none; }
.btn-ghost { background: none; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn-ghost:hover { background: var(--panel); color: var(--ink); box-shadow: none; transform: none; }

/* ---------- layout ---------- */

.main { min-width: 0; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 26px 24px 48px; }
.grid > * { min-width: 0; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; justify-content: space-between; margin-bottom: 22px; }
.eyebrow { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; font-weight: 500; }
h1 { font-size: 32px; line-height: 1.1; font-weight: 500; letter-spacing: -0.025em; margin: 0; }
.h1-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.lede { color: var(--ink-2); margin: 10px 0 0; max-width: 62ch; font-size: 15.5px; line-height: 1.5; }
h2 { font-size: 18px; font-weight: 500; margin: 0; letter-spacing: -0.015em; }
h3 { font-size: 15px; font-weight: 500; margin: 0; }

.chain-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7); font-size: 12.5px; color: var(--ink-2);
}
.chain-chip i { font-style: normal; color: var(--ink-3); display: inline-flex; }

.swap-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; align-items: start; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.card-body { padding: 20px; }
.section { margin-top: 30px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head .more { font-size: 13.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat .k { font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.stat .v { font-size: 22px; font-weight: 500; margin-top: 6px; letter-spacing: -0.02em; }
.stat .s { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }

/* ---------- hero ---------- */

.hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px 40px; align-items: center; margin-bottom: 26px; }
.hero-copy { min-width: 0; }
.hero .h1-row { flex-direction: column-reverse; align-items: flex-start; gap: 14px; }
.hero h1 { font-size: 44px; line-height: 1.04; letter-spacing: -0.03em; max-width: 14ch; }
.hero .lede { max-width: 56ch; font-size: 16.5px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-art { position: relative; width: 300px; aspect-ratio: 1; justify-self: end; }
.hero-art .tile {
  position: absolute; display: block; border-radius: 1.4rem;
  box-shadow: 0 1.4rem 2.6rem -1.2rem rgba(26, 15, 31, 0.32), inset 0 -0.4rem 0.1rem rgba(0, 0, 0, 0.08), inset 0.12rem 0.3rem 0.2rem rgba(255, 255, 255, 0.35);
  animation: bob 11s ease-in-out infinite;
}
.tile-lilac { width: 40%; height: 40%; left: 4%; top: 12%; transform: rotate(-9deg); background: linear-gradient(150deg, #c9a6f2, var(--lilac) 55%, #9a6fd6); animation-delay: 0s; }
.tile-sky { width: 34%; height: 34%; right: 6%; top: 4%; transform: rotate(8deg); background: linear-gradient(150deg, #b3d0ff, var(--sky) 55%, #6a9eef); animation-delay: -3.7s; }
.tile-butter { width: 36%; height: 36%; right: 12%; bottom: 6%; transform: rotate(-6deg); background: linear-gradient(150deg, #ffe680, var(--butter) 55%, #f0bf2c); animation-delay: -7.3s; }
.hero-art .plane {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  filter: drop-shadow(0 1.4rem 1.8rem rgba(26, 15, 31, 0.18));
  animation: float 7s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -0.5rem; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3%; } }

/* ---------- terminal ---------- */

.terminal { display: grid; grid-template-columns: 1fr 1fr; }
.terminal > .side { padding: 20px 22px; }
.terminal > .side + .side { border-left: 1px solid var(--line-soft); }
.side-label { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }

.toggle { display: inline-flex; padding: 3px; gap: 2px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; }
.toggle button { padding: 5px 12px; border-radius: 999px; font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.toggle button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(26, 15, 31, 0.1); }

.identity { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad-soft); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.identity b { display: block; font-weight: 500; }
.identity span { color: var(--ink-3); font-size: 12.5px; }

.amount-row { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 4px; }
.amount-row .cur { font-size: 26px; color: var(--ink-3); }
.amount-input { width: 100%; min-width: 0; background: none; border: 0; outline: none; font-size: 34px; font-weight: 500; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.amount-input::placeholder { color: rgba(26, 15, 31, 0.28); }
.hr { height: 1px; background: var(--line-soft); margin: 16px 0; }

.field {
  width: 100%; height: 40px; padding: 0 14px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink); outline: none;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field::placeholder { color: var(--ink-3); }
.field:focus { border-color: rgba(0, 0, 0, 0.22); box-shadow: 0 0 0 4px rgba(180, 138, 232, 0.18); }
.field:disabled { color: var(--ink-3); cursor: not-allowed; }
select.field, select.btn { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a0f1f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; padding-right: 34px; }

.pick {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.pick:hover { border-color: rgba(0, 0, 0, 0.2); background: var(--panel); }
.pick .sym { font-weight: 600; }
.pick .nm { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick .px { margin-left: auto; color: var(--ink-2); font-family: var(--mono); }

.logo-badge { width: 28px; height: 28px; border-radius: 50%; background: var(--grad-soft); display: grid; place-items: center; font-size: 8px; letter-spacing: -0.02em; font-weight: 600; color: var(--ink-2); overflow: hidden; }
.logo-badge img { width: 100%; height: 100%; object-fit: cover; }

.kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 13.5px; }
.kv .k { color: var(--ink-3); }
.kv .v { font-family: var(--mono); text-align: right; min-width: 0; overflow-wrap: anywhere; }
.kv + .kv { border-top: 1px solid var(--line-soft); }

.terminal-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line-soft); }
.terminal-foot p { margin: 0; color: var(--ink-3); font-size: 13px; max-width: 58ch; }

.swap-arrow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(26, 15, 31, 0.08);
  display: grid; place-items: center; color: var(--ink-2);
}
.terminal-shell { position: relative; }

/* ---------- route strip ---------- */

.route-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: stretch; }
.route-step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; position: relative; box-shadow: var(--shadow); }
.route-step .k { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.route-step .v { font-weight: 500; margin-top: 7px; }
.route-step .s { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }

/* ---------- tabs, tables, rows ---------- */

.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs button { padding: 6px 13px; border-radius: 999px; border: 1px solid transparent; color: var(--ink-3); font-size: 13px; font-weight: 500; transition: background 0.18s var(--ease), color 0.18s var(--ease); }
.tabs button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.7); }
.tabs button[aria-selected="true"] { background: var(--panel); border-color: var(--line); color: var(--ink); box-shadow: 0 1px 3px rgba(26, 15, 31, 0.08); }

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th {
  text-align: left; font-weight: 500; font-size: 11.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-3); padding: 11px 20px; border-bottom: 1px solid var(--line-soft); white-space: nowrap;
}
tbody td { padding: 12px 20px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--panel-2); }
td.num, th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sym-cell { display: flex; align-items: center; gap: 10px; }
.sym-cell b { font-weight: 600; }
.sym-cell span { color: var(--ink-3); font-size: 12.5px; }

.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
  border-radius: 999px; border: 1px solid transparent; background: var(--panel-2);
  font-size: 11.5px; font-weight: 500; color: var(--ink-2); white-space: normal; text-align: right;
  border-color: var(--line);
}
.tag-live { color: var(--live); background: rgba(143, 227, 184, 0.28); border-color: rgba(143, 227, 184, 0.5); }
.tag-warn { color: var(--warn); background: rgba(255, 216, 74, 0.3); border-color: rgba(255, 216, 74, 0.6); }
.tag-down { color: var(--down); background: rgba(255, 138, 208, 0.22); border-color: rgba(255, 138, 208, 0.5); }

.empty { padding: 36px 20px; text-align: center; color: var(--ink-3); }
.empty b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 6px; }
.empty p { margin: 0 auto; max-width: 46ch; font-size: 13.5px; }

.rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.asset-card { display: flex; align-items: center; gap: 11px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease); }
.asset-card:hover { border-color: rgba(0, 0, 0, 0.16); transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.asset-card .col { min-width: 0; }
.asset-card b { display: block; font-weight: 600; }
.asset-card span { display: block; color: var(--ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-card .px { margin-left: auto; text-align: right; font-family: var(--mono); font-size: 13px; }
.asset-card .px small { display: block; color: var(--ink-3); font-size: 11px; font-family: var(--sans); }

.cover { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.cover .card { padding: 18px 20px; }
.cover b { display: block; margin-bottom: 5px; font-weight: 500; font-size: 15px; }
.cover p { margin: 0; color: var(--ink-3); font-size: 13.5px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; counter-reset: s; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.step b { font-weight: 500; font-size: 15.5px; }
.step i { font-style: normal; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background-image: var(--grad); color: var(--ink); font-size: 12.5px; font-weight: 500; margin-bottom: 12px; }

/* ---------- mechanism band ---------- */

.band {
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.78);
  --ink-3: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.12);
  --panel: rgba(255, 255, 255, 0.06);
  --shadow: none;
  --shadow-lift: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.3);
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--band); color: #fff; border-radius: var(--radius); padding: 30px 28px 28px;
}
.band .glow {
  position: absolute; z-index: -1; top: -14rem; right: -10rem; width: 34rem; height: 34rem; border-radius: 50%;
  opacity: 0.4; filter: blur(28px); pointer-events: none;
  background: conic-gradient(from 200deg, #a06be0, #86b6ff, #8fe3b8, #ffd84a, #ff8ad0, #a06be0);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 66%); mask-image: radial-gradient(circle, #000 0%, transparent 66%);
}
.band .section-head .more { color: var(--ink-2); }
.band .step { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.band .step i { color: #1a0f1f; }

/* ---------- sheet ---------- */

.sheet-back { position: fixed; inset: 0; z-index: 60; background: rgba(26, 15, 31, 0.42); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: grid; place-items: center; padding: 18px; }
.sheet { width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.sheet-body { padding: 20px; }
.sheet-body p { margin: 0 0 14px; color: var(--ink-2); }
.sheet-list { max-height: 60vh; overflow-y: auto; }
.sheet-list button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 11px 20px; text-align: left; }
.sheet-list button:hover { background: var(--panel-2); }

.note { display: flex; gap: 10px; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2); color: var(--ink-2); font-size: 13.5px; }
.note .icon { color: var(--ink-3); margin-top: 2px; }

/* ---------- docs prose ---------- */

.prose { max-width: 74ch; }
.prose h2 { margin: 34px 0 10px; font-size: 20px; }
.prose h3 { margin: 24px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 18px; }
.prose li { margin: 6px 0; }
.prose li b { color: var(--ink); font-weight: 500; }
.prose code { font-family: var(--mono); font-size: 12.5px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
pre { margin: 0; padding: 16px 18px; overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
pre b { color: var(--ink); font-weight: 500; }
.method { font-family: var(--mono); font-size: 12px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--line); padding: 22px 24px 36px; color: var(--ink-3); font-size: 12.5px; }
.foot-in { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 14px 22px; justify-content: space-between; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-2); font-weight: 500; }
.foot p { margin: 0; max-width: 78ch; }

.side-x { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-size: 13px; text-decoration: none; }
.side-x:hover { color: var(--ink); background: var(--panel-2); }
.side-x .icon, .foot-links .icon { width: 14px; height: 14px; vertical-align: -2px; }

/* ---------- mobile ---------- */

.mobile-bar { display: none; }
.drawer-btn { display: none; }

@media (max-width: 1040px) {
  .swap-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .terminal { grid-template-columns: 1fr; }
  .terminal > .side + .side { border-left: 0; border-top: 1px solid var(--line-soft); }
  .route-strip { grid-template-columns: repeat(2, 1fr); }
  .swap-arrow { top: 50%; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-art { width: 220px; justify-self: start; order: -1; }
  .hero h1 { font-size: 36px; }
}

@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; z-index: 70; left: 0; top: 0; bottom: 0; width: 272px; height: 100vh; margin: 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    transform: translateX(-100%); transition: transform 0.22s var(--ease);
  }
  body[data-drawer="open"] .sidebar { transform: none; }
  body[data-drawer="open"]::after { content: ""; position: fixed; inset: 0; z-index: 65; background: rgba(26, 15, 31, 0.4); }
  .drawer-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); }
  .wrap { padding: 18px 16px 96px; }
  .topbar { padding: 10px 16px 0; gap: 10px; }
  .topbar .btn { padding: 0 12px; }
  .section-head { flex-wrap: wrap; }
  .section-head .tabs { flex-basis: 100%; }
  .search { max-width: none; margin: 0; }
  .topbar .status-pill { display: none; }
  h1 { font-size: 26px; }
  .hero { gap: 18px; margin-bottom: 20px; }
  .hero h1 { font-size: 30px; max-width: none; }
  .hero .lede { font-size: 15px; }
  .hero-art { width: 160px; }
  .mobile-bar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a { display: grid; justify-items: center; gap: 4px; padding: 10px 2px 11px; font-size: 10.5px; color: var(--ink-3); font-weight: 500; }
  .mobile-bar a[aria-current="page"] { color: var(--ink); }
  .foot { padding: 20px 16px 100px; }
  .route-strip { grid-template-columns: 1fr; }
  .swap-arrow { position: static; transform: none; margin: 2px auto; }
  .band { padding: 22px 18px 20px; border-radius: var(--radius-sm); }
  .band .glow { width: 22rem; height: 22rem; top: -9rem; right: -7rem; }
  .card-head, .card-body { padding-left: 16px; padding-right: 16px; }
  .terminal > .side { padding: 18px 16px; }
  thead th, tbody td { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art .tile, .hero-art .plane, .status-pill .dot { animation: none; }
  .btn, .step, .asset-card, .nav a { transition: none; }
  .btn:hover, .step:hover, .asset-card:hover { transform: none; }
}
