:root {
  --bg: #0a0b08;
  --bg-2: #0f110c;
  --panel: #13150f;
  --panel-2: #181b13;
  --line: #262a1e;
  --line-2: #33382a;
  --text: #eef1e6;
  --muted: #9aa08e;
  --faint: #6c7262;
  --lime: #c8f544;
  --lime-ink: #10140a;
  --lime-dim: rgba(200, 245, 68, 0.12);
  --side-a: #c8f544;
  --side-b: #ff6a3d;
  --side-b-dim: rgba(255, 106, 61, 0.12);
  --sol: #a9b1ff;
  --up: #c8f544;
  --down: #ff6a3d;
  --warn: #ffc542;
  --err: #ff5a5a;
  --ok: #7ee28d;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 500px at 50% -120px, rgba(200, 245, 68, 0.07), transparent 70%), var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.01em; margin: 0 0 0.4em; line-height: 1.15; }
h1 { font-size: clamp(30px, 4.6vw, 54px); }
h2 { font-size: clamp(22px, 2.6vw, 30px); }
h3 { font-size: 18px; }
p { margin: 0 0 0.8em; }
img { max-width: 100%; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
small, .small { font-size: 13px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.up { color: var(--up); }
.down { color: var(--down); }
.a-color { color: var(--side-a); }
.b-color { color: var(--side-b); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
[hidden] { display: none !important; }

.wrap { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.wrap-narrow { width: min(820px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 36px 0; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row-tight { flex-wrap: nowrap; }
.row-tight > input { flex: 1 1 auto; min-width: 0; }
.grid > *, .clash-layout > *, .hero > *, .docs > * { min-width: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.eyebrow {
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}
.lede { font-size: 17px; color: var(--muted); max-width: 680px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(10, 11, 8, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { width: min(1200px, calc(100% - 32px)); margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; text-decoration: none !important; }
.brand-logo { height: 30px; width: auto; }
.brand-word { font: 700 20px/1 var(--display); letter-spacing: 0.04em; color: var(--lime); }
.brand-word.sm { font-size: 17px; }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a { color: var(--muted); padding: 8px 12px; border-radius: 9px; font-weight: 500; text-decoration: none; }
.nav-links a:hover { color: var(--text); background: var(--panel); }
.nav-links a.on { color: var(--lime-ink); background: var(--lime); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 9px; padding: 6px 10px; font-size: 18px; cursor: pointer; margin-left: auto; }
.wallet-box { margin-left: auto; }
@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-2); flex-direction: column; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .wallet-box { margin-left: 0; }
}
.banner { background: var(--warn); color: #1d1600; text-align: center; padding: 8px 16px; font-weight: 600; font-size: 14px; }

/* ---------- buttons, inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text);
  font: 600 14px/1 var(--font); padding: 12px 18px; border-radius: 11px; cursor: pointer;
  text-decoration: none !important; transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { border-color: var(--lime); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.btn-primary:hover { background: #d6ff5c; }
.btn-b { background: var(--side-b); border-color: var(--side-b); color: #1a0a04; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 15px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

label { display: block; font-weight: 600; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input[type=text], input[type=number], input[type=password], input[type=url], textarea, select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text);
  border-radius: 10px; padding: 11px 13px; font: 15px/1.3 var(--font); outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-dim); }
textarea { min-height: 96px; resize: vertical; }
.field { margin-bottom: 14px; }
.hint { font-size: 12.5px; color: var(--faint); margin-top: 5px; }
.input-amount { font: 600 24px/1.2 var(--mono) !important; padding: 14px !important; }

/* ---------- panels ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.grid > .panel + .panel { margin-top: 0; }
.panel-title { font: 600 13px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.cell { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.cell-k { font: 500 11.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin-bottom: 7px; }
.cell-v { font: 600 18px/1.25 var(--mono); overflow-wrap: anywhere; }
.cell-s { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.flash { padding: 12px 16px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--panel); }
.flash-ok { border-color: rgba(126, 226, 141, 0.4); }
.flash-err { border-color: rgba(255, 90, 90, 0.5); color: #ffb3b3; }
.flash-warn { border-color: rgba(255, 197, 66, 0.5); color: #ffe19b; }
.note { font-size: 13px; color: var(--muted); background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: 10px; padding: 10px 12px; }
.pill { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px/1 var(--mono); padding: 5px 9px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); background: var(--bg-2); text-transform: uppercase; letter-spacing: 0.05em; }
.pill-lime { color: var(--lime-ink); background: var(--lime); border-color: var(--lime); }
.pill-b { color: #1a0a04; background: var(--side-b); border-color: var(--side-b); }
.pill-warn { color: #1d1600; background: var(--warn); border-color: var(--warn); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--faint); }
.dot.live { background: var(--ok); box-shadow: 0 0 0 4px rgba(126, 226, 141, 0.15); }
.dot.stale { background: var(--warn); }
.dot.off { background: var(--err); }

/* ---------- coins ---------- */
.coin { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; flex: none; background: var(--panel-2); border: 2px solid var(--side-a); }
.coin img { width: 100%; height: 100%; object-fit: cover; }
.coin b { font: 700 11px/1 var(--display); color: var(--text); }
.coin-b { border-color: var(--side-b); }
.coin-sm { width: 26px; height: 26px; }
.coin-md { width: 40px; height: 40px; }
.coin-lg { width: 64px; height: 64px; }
.coin-xl { width: 92px; height: 92px; }
.coin-lg b, .coin-xl b { font-size: 16px; }
.vs { font: 700 13px/1 var(--display); color: var(--faint); letter-spacing: 0.1em; }
.pair { display: inline-flex; align-items: center; }
.pair .coin + .coin { margin-left: -10px; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 30px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); padding-top: 36px; } }
.hero h1 .lime { color: var(--lime); }
.hero-card { background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.ca-box { display: flex; align-items: center; gap: 10px; margin-top: 22px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 8px 8px 8px 14px; max-width: 520px; }
.ca-box .ca-k { font: 600 12px/1 var(--mono); color: var(--faint); letter-spacing: 0.08em; }
.ca-box .ca-v { font: 600 14px/1.2 var(--mono); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-box .ca-soon { color: var(--warn); letter-spacing: 0.08em; }

.faceoff { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; text-align: center; }
.faceoff .side-name { font: 700 22px/1.1 var(--display); margin-top: 10px; }
.faceoff .side-sub { font-size: 12.5px; color: var(--muted); }
.faceoff .vs-big { font: 700 26px/1 var(--display); color: var(--faint); }
.ratio { text-align: center; margin-top: 20px; font: 600 16px/1.4 var(--mono); }

.steps { counter-reset: s; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font: 700 14px/44px var(--mono); text-align: center; color: var(--lime-ink); background: var(--lime); border-radius: 12px; }
.step h4 { margin: 2px 0 4px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- clash cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: block; color: var(--text); text-decoration: none !important; transition: border-color 0.15s ease, transform 0.15s ease; }
.card:hover { border-color: var(--lime); transform: translateY(-2px); }
.card-head { display: flex; align-items: center; gap: 12px; }
.card-title { font: 700 17px/1.2 var(--display); }
.card-meta { font-size: 12.5px; color: var(--muted); }
.card-ratio { margin-top: 14px; font: 600 15px/1.3 var(--mono); }
.card-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.bar { height: 6px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--lime); border-radius: 99px; }
.bar.b > i { background: var(--side-b); }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { background: var(--panel); border: 1px solid var(--line); color: var(--muted); padding: 8px 13px; border-radius: 9px; font: 600 13px/1 var(--font); cursor: pointer; text-decoration: none !important; }
.tab:hover { color: var(--text); }
.tab.on { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.tab.on-b { background: var(--side-b); border-color: var(--side-b); color: #1a0a04; }

/* ---------- clash page ---------- */
.clash-head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; justify-content: space-between; padding: 26px 0 10px; }
.clash-title { display: flex; align-items: center; gap: 16px; }
.clash-title h1 { font-size: clamp(26px, 3.4vw, 40px); margin: 0; }
.clash-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
@media (max-width: 1020px) { .clash-layout { grid-template-columns: minmax(0, 1fr); } .trade { position: static; max-height: none; overflow: visible; order: -1; } }
.price-big { font: 700 clamp(22px, 3vw, 32px)/1.1 var(--mono); }
.chart-box { position: relative; height: 430px; border-radius: 12px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.chart-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.chart-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 30px; color: var(--muted); }
.chart-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.legend-item { display: inline-flex; gap: 6px; align-items: center; }

.trade { position: sticky; top: 80px; max-height: calc(100vh - 96px); overflow-y: auto; overscroll-behavior: contain; }
.trade .seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.trade .seg .tab { text-align: center; }
.swap-box { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; }
.swap-box + .swap-box { margin-top: 8px; }
.swap-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.swap-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.swap-row input { flex: 1 1 140px; width: auto; background: transparent; border: 0; padding: 4px 0; font: 600 24px/1.2 var(--mono); box-shadow: none !important; min-width: 0; }
.tok-select { display: flex; flex-wrap: wrap; gap: 4px; flex: 0 1 auto; max-width: 100%; }
.tok-btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tok-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text); border-radius: 99px; padding: 6px 10px 6px 6px; font: 600 13px/1 var(--font); cursor: pointer; }
.tok-btn.on { border-color: var(--lime); box-shadow: 0 0 0 2px var(--lime-dim); }
.tok-btn .coin { width: 22px; height: 22px; border-width: 1.5px; }
.flip-arrow { display: flex; justify-content: center; margin: -4px 0; position: relative; z-index: 2; }
.flip-arrow button { width: 36px; height: 36px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text); cursor: pointer; font-size: 16px; }
.quote-lines { margin-top: 12px; font-size: 13px; display: grid; gap: 6px; }
.quote-lines .ql { display: flex; justify-content: space-between; gap: 10px; }
.quote-lines .ql span:first-child { color: var(--muted); }
.quote-lines .ql span:last-child { font-family: var(--mono); text-align: right; }
.route { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font: 600 12.5px/1 var(--mono); }
.route i { color: var(--faint); font-style: normal; }
.slip { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.slip .tab { padding: 6px 9px; font-size: 12px; }
.slip input { width: 70px; padding: 6px 8px; font-size: 12px; }

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font: 600 11.5px/1 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--faint); padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { font-family: var(--mono); text-align: right; white-space: nowrap; }
.table-wrap { overflow-x: auto; }

.addr { font-family: var(--mono); font-size: 12.5px; background: var(--bg-2); border: 1px solid var(--line); padding: 3px 7px; border-radius: 7px; }
.copy { cursor: pointer; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: var(--mono); overflow-wrap: anywhere; }

.feed { display: grid; gap: 2px; }
.feed-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.feed-row:last-child { border-bottom: 0; }
.feed-time { font: 500 12px/1 var(--mono); color: var(--faint); white-space: nowrap; }

.empty { text-align: center; padding: 44px 20px; border: 1px dashed var(--line-2); border-radius: 16px; background: var(--panel); }
.empty-t { font: 700 20px/1.2 var(--display); margin-bottom: 8px; }

/* ---------- wizard ---------- */
.wizard-steps { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.wizard-steps span { font: 600 12px/1 var(--mono); padding: 8px 12px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.wizard-steps span.on { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.side-card { border-radius: 16px; padding: 18px; border: 1px solid var(--line-2); background: var(--panel); }
.side-card.a { box-shadow: inset 4px 0 0 var(--side-a); }
.side-card.b { box-shadow: inset 4px 0 0 var(--side-b); }
.logo-drop { display: flex; align-items: center; gap: 14px; }
.logo-drop .coin { cursor: pointer; }
.log-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font: 12.5px/1.55 var(--mono); white-space: pre-wrap; max-height: 240px; overflow: auto; color: var(--muted); }

/* ---------- modal, picker, toasts ---------- */
.wallet-picker, .modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.65); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.wp-box, .modal-box { background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 22px; width: min(440px, 100%); box-shadow: var(--shadow); max-height: 90vh; overflow: auto; }
.modal-box.wide { width: min(680px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.modal-x { background: none; border: 0; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; }
.wp-list { display: grid; gap: 8px; }
.wp-item { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; color: var(--text); cursor: pointer; text-align: left; font: 600 15px/1.2 var(--font); text-decoration: none !important; }
.wp-item:hover { border-color: var(--lime); }
.wp-icon { width: 36px; height: 36px; border-radius: 9px; }
.wp-icon-blank { display: block; background: var(--line-2); }
.wp-tag { font: 500 11px/1 var(--mono); color: var(--faint); }
.wp-note { font-size: 12.5px; color: var(--faint); margin-top: 14px; }
.wp-err { color: #ffb3b3; font-size: 13px; }
.wallet-wrap { position: relative; display: inline-block; }
.wallet-btn { gap: 8px; }
.wallet-icon { width: 18px; height: 18px; border-radius: 5px; }
.wallet-menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px; width: 290px; box-shadow: var(--shadow); display: grid; gap: 6px; z-index: 60; }
.wallet-menu-k { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin-top: 4px; }
.wallet-addr { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.wallet-acts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.toast-stack { position: fixed; left: 18px; bottom: 18px; display: grid; gap: 10px; z-index: 120; width: min(380px, calc(100% - 36px)); pointer-events: none; }
.toast { background: var(--panel-2); border: 1px solid var(--line-2); border-left: 4px solid var(--lime); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; box-shadow: var(--shadow); pointer-events: auto; cursor: pointer; }
.toast.err { border-left-color: var(--err); }
.toast.warn { border-left-color: var(--warn); }
.toast a { font-weight: 600; }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 30px; align-items: start; }
@media (max-width: 860px) { .docs { grid-template-columns: minmax(0, 1fr); } .docs-nav { position: static !important; display: flex !important; flex-wrap: wrap; gap: 4px; } .docs-nav a { background: var(--panel); border: 1px solid var(--line); } }
.docs-nav { position: sticky; top: 84px; display: grid; gap: 2px; }
.docs-nav a { color: var(--muted); padding: 7px 10px; border-radius: 8px; font-size: 14px; text-decoration: none; }
.docs-nav a:hover { color: var(--text); background: var(--panel); }
.docs article section { padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.docs article h2 { scroll-margin-top: 90px; }
.docs article li { margin-bottom: 6px; }
.formula { font-family: var(--mono); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 10px 0; overflow-x: auto; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 60px; background: var(--bg-2); }
.foot-inner { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.foot-cols a, .foot-cols span { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; }
.foot-h { font: 600 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.foot-base { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 16px 0 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--faint); }

.spinner { width: 16px; height: 16px; border: 2px solid rgba(0, 0, 0, 0.2); border-top-color: currentColor; border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 50%, var(--panel) 100%); background-size: 200% 100%; animation: sk 1.4s linear infinite; border-radius: 8px; color: transparent !important; }
@keyframes sk { to { background-position: -200% 0; } }

@media (max-width: 640px) {
  input, select, textarea { font-size: 16px; }
  .slip input { font-size: 16px; width: 80px; }
}
