/* TOOLBOX: a package registry. Warm off-black shell, paper (#ede6d6) sheets for content, dark terminals for code,
   one accent (lime #cdf564). Inter for everything; JetBrains Mono for code only. */
:root {
  --bg: #14120f; --bg2: #1b1915; --line: #2c2823; --line2: #3a352e; --dim: #9b9284; --cream: #ede6d6;
  --paper: #ede6d6; --paper2: #e4dcc9; --ink: #1d1a16; --ink2: #5f584c; --rule: #d3c9b4;
  --term: #0e0d0b; --lime: #cdf564; --lime-ink: #1f2a06; --red: #e0664f; --amber: #e6b75a;
  --r: 10px; --r-s: 6px; --top: 58px; --rail: 232px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--cream); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
code, kbd, pre, .mono { font-family: var(--mono); font-size: 0.88em; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
::selection { background: var(--lime); color: var(--lime-ink); }
[hidden], .hide { display: none !important; }
.muted { color: var(--dim); }

/* ---------- buttons, chips, pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--r-s); border: 1px solid var(--lime); background: var(--lime); color: var(--lime-ink); font-weight: 650; font-size: 14px; text-decoration: none; transition: transform .12s, background .15s, box-shadow .15s; }
.btn:hover { box-shadow: 0 0 0 3px rgba(205,245,100,.22); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: transparent; color: inherit; border-color: var(--line2); }
.btn.ghost:hover { border-color: var(--lime); box-shadow: none; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.block { display: flex; width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--line2); background: transparent; font-size: 13px; text-decoration: none; white-space: nowrap; }
.chip:hover { border-color: var(--lime); }
.chip.on { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.chip.off { color: var(--dim); }
.chip code { font-size: 12px; }
.pill { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 99px; font: 600 11px/1 var(--sans); letter-spacing: .02em; border: 1px solid currentColor; opacity: .85; }
.pill.lime { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); opacity: 1; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 4px; font: 600 11px/1 var(--sans); text-transform: lowercase; background: var(--lab, var(--lime)); color: #17150f; }
.ib { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-s); border: 1px solid var(--line); background: transparent; color: var(--cream); text-decoration: none; }
.ib:hover { border-color: var(--lime); color: var(--lime); }
.ib img { width: 18px; height: 18px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 40; height: var(--top); background: rgba(20,18,15,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { height: 100%; display: flex; align-items: center; gap: 18px; padding: 0 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 750; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.ver { font: 600 10px/1 var(--mono); padding: 4px 6px; border-radius: 4px; background: var(--lime); color: var(--lime-ink); text-transform: uppercase; letter-spacing: .06em; }
.find { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: var(--r-s); background: var(--bg2); border: 1px solid var(--line); color: var(--dim); }
.find:focus-within { border-color: var(--lime); }
.find input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; color: var(--cream); font-size: 14px; }
.find kbd { font-size: 11px; padding: 1px 6px; border: 1px solid var(--line2); border-radius: 4px; }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.socials { display: inline-flex; gap: 6px; }
.ca { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: var(--r-s); border: 1px solid var(--line); background: transparent; font-size: 13px; }
.ca b { font-weight: 700; color: var(--lime); }
.ca code { color: var(--cream); }
.ca em { font-style: normal; color: var(--dim); font-size: 12px; }
.ca:hover { border-color: var(--lime); }
.ca.off code { color: var(--dim); }
.wallet.on { background: transparent; color: var(--lime); }
.burger { display: none; }

/* ---------- shell: rail + view ---------- */
.shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: calc(100vh - var(--top)); }
.rail { position: sticky; top: var(--top); align-self: start; height: calc(100vh - var(--top)); overflow: auto; padding: 22px 14px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; }
.rail-g { display: grid; gap: 2px; }
.rail-g h6 { font: 600 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--dim); padding: 0 10px 8px; }
.rail-g a { display: block; padding: 7px 10px; border-radius: var(--r-s); text-decoration: none; font-size: 14px; color: #cfc7b6; border-left: 2px solid transparent; }
.rail-g a:hover { background: var(--bg2); color: var(--cream); }
.rail-g a.on { color: var(--cream); background: var(--bg2); border-left-color: var(--lime); font-weight: 600; }
.rail-cta { margin-top: auto; }
#view { min-width: 0; outline: 0; }
.page-in { animation: pin .28s ease both; }
@keyframes pin { from { opacity: 0; transform: translateY(6px); } }
[data-fade] { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
[data-fade].is-in { opacity: 1; transform: none; }

/* ---------- doc page frame ---------- */
.doc { max-width: 1180px; margin: 0 auto; padding: 34px 36px 60px; }
.crumb { display: flex; gap: 8px; align-items: center; font: 500 12px/1 var(--mono); color: var(--dim); margin-bottom: 14px; }
.crumb a { text-decoration: none; color: var(--dim); }
.crumb a:hover { color: var(--lime); }
.crumb i { font-style: normal; opacity: .5; }
.doc h1 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 750; }
.lede { margin-top: 14px; font-size: 17px; color: #cfc7b6; max-width: 62ch; }
.lede code { color: var(--lime); }
.acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.fine { font-size: 12.5px; color: var(--dim); line-height: 1.55; }
.fine code { color: inherit; }
mark { background: var(--lime); color: var(--lime-ink); padding: 0 .12em; border-radius: 3px; }
.eyebrow { font: 600 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--ink2); margin-bottom: 6px; }

/* paper sheet: shared surface for content panels */
.feat-card, .list, .card, .sec, .prose, .step, .try, .pkg-card, .empty { background: var(--paper); color: var(--ink); border-radius: var(--r); }
.card { padding: 18px; }
.card h6 { font: 600 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--ink2); margin-bottom: 12px; }
.card .fine, .sec .fine, .step .fine, .try .muted, .list .fine { color: var(--ink2); }
.empty { display: grid; justify-items: start; gap: 8px; padding: 26px; }
.empty b { font-size: 16px; }
.empty span { color: var(--ink2); max-width: 56ch; }
.doc > .empty, .doc .empty { margin-top: 10px; }

/* code: dark terminal panes, lime-tinted JSON */
pre.code { margin: 0; padding: 14px 16px; background: var(--term); color: var(--cream); border-radius: var(--r-s); font-size: 12.5px; line-height: 1.6; overflow: auto; white-space: pre; tab-size: 2; }
pre.code.sm { font-size: 11.5px; max-height: 240px; }
.j-k { color: #e9d9a8; }
.j-s { color: var(--lime); }
.j-b { color: #f0a46a; }
.j-p { color: #f0a46a; }
.p { color: var(--lime); user-select: none; }
.caret { display: inline-block; width: 8px; height: 1.05em; vertical-align: -2px; background: var(--lime); animation: blink 1s steps(2) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- install box (streams like a terminal) ---------- */
.install { border: 1px solid var(--line2); border-radius: var(--r); overflow: hidden; background: var(--term); }
.install-tabs { display: flex; gap: 2px; padding: 6px 6px 0; background: var(--bg2); border-bottom: 1px solid var(--line); overflow-x: auto; }
.install-tabs button { border: 0; background: transparent; padding: 8px 12px; font-size: 13px; color: var(--dim); border-radius: 6px 6px 0 0; white-space: nowrap; }
.install-tabs button[aria-selected="true"] { background: var(--term); color: var(--cream); box-shadow: inset 0 2px 0 var(--lime); }
.term-h { display: flex; align-items: center; gap: 6px; padding: 10px 14px 0; }
.term-h i { width: 9px; height: 9px; border-radius: 50%; background: var(--line2); }
.term-h i:first-child { background: var(--lime); }
.term-h span { margin-left: 8px; font: 12px var(--mono); color: var(--dim); }
.term-copy { margin-left: auto; border: 1px solid var(--line2); background: transparent; color: var(--cream); font: 12px var(--mono); padding: 3px 9px; border-radius: 4px; }
.term-copy:hover { border-color: var(--lime); color: var(--lime); }
.term-b { min-height: 172px; background: transparent !important; white-space: pre-wrap !important; word-break: break-all; }

/* ---------- registry header ---------- */
.reg-h { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 36px; align-items: center; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.reg-hl h1 { max-width: 15ch; }
.reg-hr { display: grid; gap: 10px; }
.reg-hr .fine b { color: var(--cream); }

.feat { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; margin-top: 30px; }
.feat-card { padding: 22px; display: flex; flex-direction: column; gap: 14px; background: var(--lime); color: var(--lime-ink); }
.feat-card .eyebrow { color: #4c5f17; }
.feat-top { display: flex; gap: 14px; align-items: center; }
.feat-ico { width: 48px; height: 48px; border-radius: 10px; background: var(--ink); padding: 8px; }
.feat-card h2 { font-size: 24px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.feat-card h2 code { font-size: 13px; font-weight: 500; opacity: .75; }
.feat-card p code { background: rgba(0,0,0,.08); padding: 1px 5px; border-radius: 4px; }
.feat-card .btn.ghost { margin-top: auto; align-self: flex-start; border-color: rgba(31,42,6,.35); }
.feat-card .btn.ghost:hover { border-color: var(--lime-ink); }

/* ---------- Try-it console ---------- */
.try { padding: 16px; display: grid; gap: 12px; }
.try-h { display: flex; align-items: center; gap: 8px; font-size: 14px; flex-wrap: wrap; }
.try-h .muted { font-size: 12.5px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #5d8a12; box-shadow: 0 0 0 3px rgba(93,138,18,.2); }
.try-picks { display: flex; gap: 6px; flex-wrap: wrap; }
.try .chip { border-color: var(--rule); color: var(--ink); }
.try .chip:hover { border-color: var(--ink); }
.try .chip.on { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.try-io { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.try-p { display: grid; grid-template-rows: auto 1fr auto; gap: 8px; min-width: 0; }
.try-l { font: 600 12px var(--sans); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.try-l .muted { font: 500 11.5px var(--mono); }
.try pre.code { min-height: 190px; max-height: 320px; }
.try .btn.block { background: var(--ink); border-color: var(--ink); color: var(--lime); }
.ok { color: #4f7a0c; font-weight: 700; }
.bad { color: #b4412c; font-weight: 700; }
.flash { animation: flash .7s ease; }
@keyframes flash { from { box-shadow: inset 0 0 0 2px var(--lime); } }

/* ---------- package list ---------- */
.list { margin-top: 30px; padding: 6px 0 0; overflow: hidden; }
.list-h { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--rule); }
.list-h h2 { font-size: 20px; display: flex; gap: 10px; align-items: center; }
.count { font: 600 12px var(--mono); padding: 3px 8px; border-radius: 99px; background: var(--ink); color: var(--lime); }
.list-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.list-tools .field input { width: 300px; max-width: 100%; height: 36px; }
.seg { display: inline-flex; padding: 3px; border-radius: 8px; background: var(--paper2); }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.rows { display: grid; }
.row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--rule); position: relative; }
.row:last-child { border-bottom: 0; }
.row::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--lab, var(--lime)); }
.row:hover { background: var(--paper2); }
.row-ico, .pk-ico, .pkg-ico { width: 44px; height: 44px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; background: var(--ink); color: var(--lime); font-weight: 700; flex: none; }
.row-ico img, .pk-ico img, .pkg-ico img { width: 100%; height: 100%; object-fit: cover; }
.row-main { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.row-link { text-decoration: none; font-size: 16px; }
.row-link::after { content: ""; position: absolute; inset: 0; }
.row-link:hover b { text-decoration: underline; text-decoration-color: var(--ink2); text-underline-offset: 3px; }
.row-t { font-size: 12.5px; color: var(--ink2); }
.row-main p { flex-basis: 100%; color: var(--ink2); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-num { display: flex; gap: 22px; margin: 0; }
.row-num div { text-align: right; min-width: 60px; }
.row-num dt { font: 600 10.5px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink2); }
.row-num dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.row-cp { position: relative; z-index: 1; border: 1px solid var(--rule); background: var(--paper); border-radius: var(--r-s); padding: 7px 10px; font: 500 12px var(--mono); color: var(--ink); }
.row-cp:hover { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.row.skel, .tcard.skel { min-height: 76px; background: linear-gradient(90deg, var(--paper) 0, var(--paper2) 40%, var(--paper) 80%) 0 0 / 200% 100%; animation: sk 1.3s linear infinite; }
.row.skel::before { display: none; }
@keyframes sk { to { background-position: -200% 0; } }
.list .empty { border-radius: 0; }
.more { padding: 16px; display: flex; justify-content: center; border-top: 1px solid var(--rule); }
.list .btn.ghost, .empty .btn.ghost { border-color: var(--rule); color: var(--ink); }
.list .btn.ghost:hover, .empty .btn.ghost:hover { border-color: var(--ink); }

/* ---------- fields ---------- */
.field { display: grid; gap: 6px; }
.field > span { font: 600 13px var(--sans); }
.field em { font-style: normal; font-weight: 400; color: var(--ink2); font-size: 12px; margin-left: 4px; }
.field input, .field textarea { width: 100%; height: 40px; padding: 0 12px; border-radius: var(--r-s); border: 1px solid var(--rule); background: #f6f1e6; color: var(--ink); outline: 0; }
.field textarea { height: auto; padding: 10px 12px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(205,245,100,.6); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.status { padding: 11px 14px; border-radius: var(--r-s); font-size: 13.5px; background: var(--paper2); color: var(--ink); border: 1px solid var(--rule); }
.status.err { background: #f4d9cf; border-color: #e3a693; color: #6d2112; }
.status.ok { background: #e4f3bf; border-color: #b6d76a; color: #2f450a; }
.doc > .status { margin-top: 18px; }
.status a, .status .link { color: inherit; font-weight: 600; }

/* ---------- package page ---------- */
.pk-h { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.pk-id { display: flex; gap: 16px; align-items: center; }
.pk-ico { width: 64px; height: 64px; border-radius: 14px; box-shadow: 0 0 0 3px var(--lab, var(--lime)); }
.pk-h h1 { font-size: clamp(28px, 3.4vw, 40px); display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.pk-tk { font-size: 18px; color: var(--lime); font-weight: 500; }
.pk-sub { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.pk-sub code { color: var(--dim); font-size: 13px; }
.pk-sub .pill { color: var(--cream); }
.pk-sub .pill.lime { color: var(--lime-ink); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.pk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; margin-top: 26px; align-items: start; }
.pk-main { display: grid; gap: 18px; min-width: 0; }
.sec { padding: 22px; }
.sec h2 { font-size: 21px; display: flex; gap: 10px; align-items: center; }
.hn { font: 600 11px var(--mono); padding: 3px 6px; border-radius: 4px; background: var(--ink); color: var(--lime); }
.sec-p { color: var(--ink2); margin: 6px 0 16px; font-size: 14px; }
.sec .try { padding: 0; margin-top: 14px; }
.pk-side { display: grid; gap: 14px; position: sticky; top: calc(var(--top) + 18px); }
.ep { display: flex; width: 100%; align-items: center; gap: 8px; text-align: left; padding: 10px 12px; border-radius: var(--r-s); border: 1px solid var(--rule); background: #f6f1e6; color: var(--ink); margin-bottom: 10px; }
.ep code { flex: 1; min-width: 0; font-size: 11.5px; word-break: break-all; }
.ep em { font-style: normal; font-size: 12px; color: var(--ink2); }
.ep:hover { border-color: var(--ink); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; }
.facts li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 0; border-top: 1px solid var(--rule); font-size: 13.5px; }
.facts li:first-child { border-top: 0; padding-top: 0; }
.facts span { color: var(--ink2); }
.facts b { font-weight: 650; text-align: right; }
.facts .big { font-size: 22px; letter-spacing: -0.02em; }
.facts a { text-decoration: none; border-bottom: 1px dotted var(--ink2); }
.card code, .sec code, .prose code { background: var(--paper2); padding: 1px 5px; border-radius: 4px; }
pre.code code, .chip code { background: none; padding: 0; }

/* tool cards: hover or tap flips to the JSON schema */
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tcard { position: relative; height: 262px; padding: 0; border: 0; background: transparent; perspective: 1100px; text-align: left; color: var(--ink); }
.tcard.skel { border-radius: var(--r); height: 262px; }
.tc-in { position: absolute; inset: 0; display: block; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3,.7,.2,1); }
.tcard.flip .tc-in { transform: rotateY(180deg); }
@media (hover: hover) { .tcard:hover .tc-in { transform: rotateY(180deg); } .tcard.flip:hover .tc-in { transform: rotateY(180deg); } }
.tc-f, .tc-b { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.tc-f { background: var(--paper2); border: 1px solid var(--rule); }
.tc-b { background: var(--term); color: var(--cream); transform: rotateY(180deg); border: 1px solid var(--lime); }
.tc-ico { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--ink); color: var(--lime); font: 700 17px var(--mono); }
.tc-n { font-size: 13px; color: var(--ink2); background: none !important; padding: 0 !important; }
.tc-t { font-size: 17px; letter-spacing: -0.01em; }
.tc-d { font-size: 13px; color: var(--ink2); line-height: 1.5; }
.tc-meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--ink2); }
.tc-bh { display: flex; justify-content: space-between; font: 12px var(--mono); color: var(--dim); }
.tc-bh code { color: var(--lime); background: none !important; padding: 0 !important; }
.tc-b pre.code { flex: 1; padding: 0; font-size: 11px; background: transparent; }

/* ---------- docs ---------- */
.docs-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; margin-top: 30px; align-items: start; }
.toc { position: sticky; top: calc(var(--top) + 20px); display: grid; gap: 2px; }
.toc h6 { font: 600 11px var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin-bottom: 8px; }
.toc a { padding: 5px 0 5px 12px; border-left: 1px solid var(--line2); text-decoration: none; font-size: 13.5px; color: #cfc7b6; }
.toc a:hover { color: var(--lime); border-left-color: var(--lime); }
.prose { padding: 34px 40px; max-width: 820px; }
.prose section + section { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--rule); }
.prose h2 { font-size: 24px; margin-bottom: 12px; }
.prose h3 { font-size: 15px; margin: 20px 0 8px; }
.prose p, .prose ul { margin: 0 0 12px; color: #2f2b25; }
.prose pre.code { margin: 8px 0 14px; }
.prose .acts { margin-top: 34px; }
.prose .btn.ghost { border-color: var(--rule); }
.tbl { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl th { font: 600 11px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink2); }
.tbl td:first-child { white-space: nowrap; }

/* ---------- publish ---------- */
.doc-h { margin-bottom: 8px; }
.pub-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; margin-top: 28px; align-items: start; }
.pub-form { display: grid; gap: 14px; min-width: 0; }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 22px; }
.step-n { font: 600 12px var(--mono); width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--ink); color: var(--lime); }
.step-b { display: grid; gap: 12px; min-width: 0; }
.step-b h2 { font-size: 19px; }
.sub { color: var(--ink2); font-size: 14px; margin-top: -6px; }
.drop { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1.5px dashed var(--rule); border-radius: var(--r); cursor: pointer; background: #f6f1e6; }
.drop:hover, .drop.over { border-color: var(--ink); background: #eef5d6; }
.drop.has { border-style: solid; }
.drop small { display: block; color: var(--ink2); font-size: 12.5px; }
.th { width: 60px; height: 60px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: var(--lime); font-size: 26px; overflow: hidden; flex: none; }
.th img { width: 100%; height: 100%; object-fit: cover; }
.tick-in { display: flex; align-items: center; border: 1px solid var(--rule); border-radius: var(--r-s); background: #f6f1e6; padding-left: 12px; }
.tick-in i { font-style: normal; color: var(--ink2); font-weight: 600; }
.tick-in input { border: 0 !important; background: transparent !important; box-shadow: none !important; text-transform: uppercase; padding-left: 4px; }
.tick-in:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(205,245,100,.6); }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cats button { text-align: left; padding: 11px 12px; border-radius: var(--r-s); border: 1px solid var(--rule); background: #f6f1e6; color: var(--ink); display: grid; gap: 2px; }
.cats button span { font-size: 12px; color: var(--ink2); line-height: 1.4; }
.cats button:hover { border-color: var(--ink); }
.cats button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cats button.on span { color: #bdb4a2; }
.cats button.on b { color: var(--lime); }
.lbl { font: 600 13px var(--sans); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.swatches button.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--paper) inset; }
.devbuy { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.devbuy .chip { border-color: var(--rule); color: var(--ink); }
.devbuy .chip.on { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.devbuy input { width: 110px !important; height: 30px !important; }
.check { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink2); }
.check span { display: inline-flex; align-items: center; gap: 6px; }
.check i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--rule); }
.check .ok { color: var(--ink); font-weight: 500; }
.check .ok i { background: #5d8a12; border-color: #5d8a12; }
.step .btn.block { background: var(--ink); border-color: var(--ink); color: var(--lime); height: 46px; }
.pub-side .sticky { position: sticky; top: calc(var(--top) + 18px); display: grid; gap: 12px; }
.pkg-card { display: flex; gap: 12px; align-items: center; padding: 16px; box-shadow: inset 4px 0 0 var(--lab, var(--lime)); }
.pkg-card > div { flex: 1; min-width: 0; display: grid; }
.pkg-card small { color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pkg-card.big .pkg-ico { width: 52px; height: 52px; }
.code-box { border: 1px solid var(--line2); border-radius: var(--r); overflow: hidden; background: var(--term); }
.code-h { display: flex; justify-content: space-between; padding: 9px 14px; font: 12px var(--mono); color: var(--dim); border-bottom: 1px solid var(--line); }
.code-box pre.code { border-radius: 0; white-space: pre-wrap; word-break: break-all; }

/* ---------- footer, toasts ---------- */
.foot { margin-top: 30px; border-top: 1px solid var(--line); padding: 24px 36px 30px; }
.foot-in { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.foot-in nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-in nav a { text-decoration: none; color: #cfc7b6; font-size: 14px; }
.foot-in nav a:hover { color: var(--lime); }
.foot-in .socials { margin-left: auto; }
.foot-note { margin-top: 16px; font-size: 12.5px; color: var(--dim); }
.toasts { position: fixed; z-index: 90; right: 18px; bottom: 18px; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.toast { pointer-events: auto; padding: 10px 14px; border-radius: var(--r-s); background: var(--paper); color: var(--ink); font-size: 13.5px; font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,.4); border-left: 4px solid var(--lime); animation: tin .25s ease both; max-width: 380px; }
.toast.err { border-left-color: var(--red); }
.toast.out { opacity: 0; transform: translateY(6px); transition: .4s; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .ca em, .socials { display: none; }
  .top-end .socials { display: none; }
}
@media (max-width: 1020px) {
  .reg-h, .feat, .pk-grid, .pub-grid { grid-template-columns: minmax(0, 1fr); }
  .pk-side, .pub-side .sticky { position: static; }
  .tools { grid-template-columns: minmax(0, 1fr); }
  .tcard, .tcard.skel { height: 236px; }
  .row-num div:nth-child(3) { display: none; }
}
@media (max-width: 860px) {
  :root { --top: 54px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; position: fixed; z-index: 35; top: var(--top); left: 0; right: 0; height: auto; max-height: calc(100vh - var(--top)); background: var(--bg); border-right: 0; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0,0,0,.5); }
  .rail.open { display: flex; }
  .burger { display: inline-grid; }
  .find { display: none; }
  .ca { display: none; }
  .top-in { padding: 0 14px; gap: 10px; }
  .doc { padding: 24px 16px 40px; }
  .docs-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .toc h6 { width: 100%; }
  .toc a { border: 1px solid var(--line2); border-radius: 99px; padding: 4px 10px; }
  .prose { padding: 22px 18px; }
  .foot { padding: 22px 16px; }
}
@media (max-width: 640px) {
  .try-io, .fields { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: 40px minmax(0, 1fr); gap: 10px 12px; padding: 14px 16px; }
  .row-num { grid-column: 2; gap: 16px; }
  .row-num div { text-align: left; min-width: 0; }
  .row-cp { grid-column: 2; justify-self: start; }
  .row-ico { width: 40px; height: 40px; }
  .list-h { padding: 14px 16px; }
  .list-tools, .list-tools .field, .list-tools .field input { width: 100%; }
  .step { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .sec { padding: 18px; }
  .wallet { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-fade] { opacity: 1; transform: none; }
}
