/* Pixploder docs — generated by scripts/docs-build.mjs. Ported from docs-src/design-mockup.html.
   Self-contained: system font stack, no external fonts/CDNs. Dark slate theme. */
:root {
  color-scheme: dark;
  --ground: #020617; --panel: #0f172a; --panel-2: #0b1120;
  --line: rgba(148,163,184,.16); --line-soft: rgba(148,163,184,.09);
  --ink: #e2e8f0; --ink-2: #94a3b8; --ink-3: #64748b;
  --accent: #818cf8; --accent-2: #a78bfa; --link: #a5b4fc;
  --ok: #34d399; --tip: #fbbf24; --warn: #fb7185; --key: #e879f9;
  --sans: ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 12px; --toph: 57px;
}
* { box-sizing: border-box; }
html { background: var(--ground); scroll-behavior: smooth; scroll-padding-top: calc(var(--toph) + 16px); }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--ground); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; color: inherit; background: none; border: none; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, html { transition: none !important; scroll-behavior: auto !important; } }

/* ── topbar ── */
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 16px; padding: 10px 20px; height: var(--toph); border-bottom: 1px solid var(--line); background: rgba(2,6,23,.92); backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); flex: none; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 26px; height: 26px; border-radius: 8px; flex: none; background: conic-gradient(from 220deg, #6366f1, #a855f7, #22d3ee, #6366f1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.brand .docs-tag { font: 600 10px/1 var(--mono); letter-spacing: .12em; color: var(--accent); border: 1px solid rgba(129,140,248,.35); padding: 4px 7px; border-radius: 6px; text-transform: uppercase; }
.navtoggle { display: none; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink-2); flex: none; }
.navtoggle:hover { color: var(--ink); border-color: rgba(148,163,184,.4); }
.searchbox { position: relative; flex: 1; max-width: 360px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel-2); border-radius: 9px; padding: 0 12px; color: var(--ink-3); font-size: 13px; }
.searchbox .si { font-size: 15px; }
.searchbox input { flex: 1; min-width: 0; border: none; background: none; color: var(--ink); font: inherit; padding: 8px 0; outline: none; }
.searchbox input::placeholder { color: var(--ink-3); }
.searchbox kbd { font: 500 10px/1 var(--mono); border: 1px solid var(--line); border-radius: 4px; padding: 3px 5px; color: var(--ink-3); flex: none; }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; background: #101a30; border: 1px solid var(--line); border-radius: var(--r); padding: 6px; box-shadow: 0 24px 60px -18px rgba(0,0,0,.85); display: none; max-height: 70vh; overflow-y: auto; }
.search-results.open { display: block; }
.search-results .sr { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 8px; }
.search-results .sr:hover, .search-results .sr.active { background: rgba(99,102,241,.16); text-decoration: none; }
.search-results .sr-t { color: var(--ink); font-size: 13px; font-weight: 600; }
.search-results .sr-h { color: var(--accent); font-size: 11.5px; }
.search-results .sr-h::before { content: "# "; color: var(--ink-3); }
.search-results .sr-s { color: var(--ink-3); font: 500 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.search-results .sr-none { padding: 12px 10px; color: var(--ink-3); font-size: 13px; }
.topbar .spacer { flex: 1; }
.verbadge { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink-2); border-radius: 999px; padding: 7px 12px; font: 550 12px/1 var(--mono); transition: border-color .15s; flex: none; }
.verbadge:hover { border-color: rgba(148,163,184,.4); }
.verbadge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px rgba(52,211,153,.7); }
.verbadge .sha { color: var(--ink); }
.openapp { display: inline-block; border-radius: 9px; padding: 8px 14px; font-size: 13px; font-weight: 600; color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed); flex: none; }
.openapp:hover { text-decoration: none; filter: brightness(1.08); }
.verpop { position: absolute; top: calc(100% + 8px); right: 20px; width: 330px; max-width: calc(100vw - 40px); z-index: 60; background: #101a30; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: 0 20px 50px -12px rgba(0,0,0,.8); display: none; }
.verpop.open { display: block; }
.verpop h4 { margin: 0 0 6px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.verpop h4 .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.verpop p { margin: 0 0 10px; font-size: 12.5px; color: var(--ink-2); }
.verpop b { color: var(--ink); }
.verpop .row { display: flex; justify-content: space-between; font: 500 12px/1.6 var(--mono); color: var(--ink-2); border-top: 1px solid var(--line-soft); padding-top: 8px; }

/* ── layout ── */
.site-body { display: flex; align-items: flex-start; min-height: calc(100vh - var(--toph)); }
.sidenav { position: sticky; top: var(--toph); width: 244px; flex: none; height: calc(100vh - var(--toph)); overflow-y: auto; padding: 18px 12px 32px; border-right: 1px solid var(--line); background: rgba(15,23,42,.35); }
.sidenav h5 { font: 600 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: 18px 10px 8px; }
.sidenav h5:first-child { margin-top: 2px; }
.sidenav a { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); font-size: 13px; transition: background .12s, color .12s; }
.sidenav a:hover { background: rgba(148,163,184,.08); color: var(--ink); text-decoration: none; }
.sidenav a.on { background: rgba(99,102,241,.16); color: #c7d2fe; font-weight: 600; }
.stepnum { width: 19px; height: 19px; flex: none; display: grid; place-items: center; border-radius: 6px; font: 700 10.5px/1 var(--mono); color: #c7d2fe; background: rgba(99,102,241,.18); border: 1px solid rgba(129,140,248,.28); }
.sidenav a.on .stepnum { background: linear-gradient(135deg,#4f46e5,#7c3aed); color: #fff; border-color: transparent; }

.doc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.doc-cols { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; display: flex; gap: 36px; align-items: flex-start; padding: 30px 40px 40px; }
.doc-inner { flex: 1 1 auto; min-width: 0; width: 100%; max-width: 720px; margin: 0 auto; }
.doc-inner.doc-wide { max-width: 880px; }
.doc-cols.with-rail .doc-inner { margin: 0; }
.rail { flex: 0 0 176px; position: sticky; top: calc(var(--toph) + 26px); padding-top: 4px; }
.rail h6 { font: 600 9.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.rail nav { display: flex; flex-direction: column; }
.rail a { display: block; font-size: 12px; color: var(--ink-3); padding: 5px 0 5px 12px; border-left: 2px solid var(--line-soft); transition: color .12s, border-color .12s; }
.rail a.sub { padding-left: 22px; }
.rail a:hover { color: var(--ink); text-decoration: none; }
.rail a.hot { color: var(--accent); border-left-color: var(--accent); }

/* ── doc content ── */
.crumbs { font: 500 11.5px/1.5 var(--mono); color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--ink-2); }
.crumbs b { color: var(--accent); font-weight: 600; }
.doc-inner h1 { font-size: 28px; font-weight: 720; letter-spacing: -.02em; margin: 0 0 10px; line-height: 1.2; text-wrap: balance; }
.doc-inner h2 { font-size: 19px; font-weight: 680; letter-spacing: -.01em; margin: 34px 0 10px; padding-top: 18px; border-top: 1px solid var(--line-soft); scroll-margin-top: calc(var(--toph) + 16px); }
.doc-inner h3 { font-size: 15.5px; font-weight: 650; margin: 22px 0 8px; scroll-margin-top: calc(var(--toph) + 16px); }
.doc-inner p { color: var(--ink-2); margin: 0 0 14px; max-width: 68ch; }
.doc-inner p b, .doc-inner li b, .doc-inner p strong, .doc-inner li strong { color: var(--ink); font-weight: 600; }
.doc-inner em { color: var(--ink); font-style: italic; }
.doc-inner .lead { font-size: 15.5px; color: #b6c2d6; }
.doc-inner a { color: var(--link); }
.doc-inner code { font: 550 .9em var(--mono); color: #c7d2fe; background: rgba(99,102,241,.12); border: 1px solid rgba(129,140,248,.22); border-radius: 6px; padding: 1px 6px; word-break: break-word; }
.doc-inner pre { background: #0a1122; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; margin: 0 0 16px; }
.doc-inner pre code { background: none; border: none; padding: 0; color: var(--ink-2); }
.doc-inner hr { border: none; border-top: 1px solid var(--line); margin: 28px 0; }
.doc-inner ul { color: var(--ink-2); margin: 0 0 16px; padding-left: 22px; }
.doc-inner ul li { margin-bottom: 6px; }
.doc-inner ul li::marker { color: var(--ink-3); }
.doc-inner blockquote { border-left: 3px solid var(--line); margin: 0 0 16px; padding: 2px 0 2px 16px; color: var(--ink-3); }

/* numbered procedure lists */
ol.steps { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: s; }
ol.steps > li { counter-increment: s; position: relative; padding: 3px 0 3px 36px; color: var(--ink-2); margin-bottom: 8px; }
ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font: 700 11px/1 var(--mono); color: #fff; background: linear-gradient(135deg,#4f46e5,#7c3aed); }
ol.steps ul, ol.steps ol { margin: 6px 0 2px; }
.doc-inner li > p { margin: 0 0 6px; max-width: none; }
.doc-inner li > p:last-child { margin-bottom: 0; }
.doc-inner li > p:first-child { display: inline; }

/* callouts */
.callout { border: 1px solid; border-radius: var(--r); padding: 12px 14px 12px 42px; position: relative; font-size: 13.5px; color: var(--ink-2); margin: 0 0 16px; }
.callout::before { position: absolute; left: 13px; top: 12px; font-size: 15px; line-height: 1; }
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
.callout p { color: var(--ink-2); max-width: none; }
.callout b, .callout strong { color: var(--ink); }
.callout code { background: rgba(255,255,255,.06); }
.callout.tip  { border-color: rgba(251,191,36,.32);  background: rgba(251,191,36,.06); }
.callout.tip::before  { content: "💡"; }
.callout.cost { border-color: rgba(52,211,153,.32);  background: rgba(52,211,153,.06); }
.callout.cost::before { content: "🪙"; }
.callout.note { border-color: rgba(129,140,248,.32); background: rgba(129,140,248,.07); }
.callout.note::before { content: "ℹ️"; }
.callout.warn { border-color: rgba(251,113,133,.32); background: rgba(251,113,133,.07); }
.callout.warn::before { content: "⚠️"; }

/* figures / screenshots */
figure.shot { margin: 20px 0 22px; }
.shot-frame { border: 1px solid rgba(148,163,184,.24); border-radius: 12px; overflow: hidden; background: #0a0f1e; }
.shot-frame img { width: 100%; display: block; }
figure.shot figcaption { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }
.shot-ph { border: 1px dashed rgba(148,163,184,.34); border-radius: 12px; background: repeating-linear-gradient(45deg, rgba(148,163,184,.03) 0 10px, transparent 10px 20px), #0a0f1e; min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 26px 20px; text-align: center; }
.shot-ph .cam { width: 30px; height: 30px; color: var(--ink-3); }
.shot-ph .ph-cap { color: var(--ink-2); font-size: 13px; max-width: 46ch; }
.shot-ph .ph-file { font: 500 11px/1 var(--mono); color: var(--ink-3); background: rgba(2,6,23,.6); border: 1px solid var(--line-soft); padding: 4px 8px; border-radius: 6px; }

/* tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); margin: 16px 0 18px; }
table.fmt { width: 100%; border-collapse: collapse; font-size: 13px; }
table.fmt th { text-align: left; font: 600 10.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 11px 14px; border-bottom: 1px solid var(--line); background: rgba(15,23,42,.55); white-space: nowrap; }
table.fmt td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); vertical-align: top; }
table.fmt tr:last-child td { border-bottom: none; }
table.fmt td:first-child { color: var(--ink); }
table.fmt code { font-size: 11.5px; }

/* prev / next */
.pn { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.pn a { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 12.5px; color: var(--ink-2); max-width: 48%; transition: border-color .15s; }
.pn a:hover { border-color: rgba(129,140,248,.5); color: var(--ink); text-decoration: none; }
.pn a span { color: var(--ink-3); }
.pn a b { display: block; color: var(--ink); font-size: 13px; margin-top: 2px; }
.pn a.next { text-align: right; margin-left: auto; }
.pn > span { flex: 0 0 auto; }

/* footer */
.docfoot { border-top: 1px solid var(--line); padding: 14px 40px; display: flex; align-items: center; gap: 8px; font: 500 11px/1.5 var(--mono); color: var(--ink-3); background: rgba(2,6,23,.6); flex-wrap: wrap; }
.docfoot .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex: none; }
.docfoot b { color: var(--ink-2); font-weight: 600; }

/* ── home ── */
.home .home-hero { margin-bottom: 10px; }
.home .eyebrow { font: 600 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.home h1 { font-size: clamp(28px, 4vw, 34px); }
.home .home-hero .sub { font-size: 15.5px; color: #b6c2d6; max-width: 62ch; }
.qcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 6px; }
.qcard { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 15px; background: var(--panel-2); transition: border-color .15s, transform .15s; }
.qcard:hover { border-color: rgba(129,140,248,.45); transform: translateY(-1px); text-decoration: none; }
.qcard .qi { font-size: 18px; }
.qcard b { display: block; font-size: 13.5px; margin: 8px 0 3px; color: var(--ink); }
.qcard span { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.stepgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.stepcard { display: flex; gap: 12px; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; background: var(--panel-2); transition: border-color .15s, transform .15s; }
.stepcard:not(.is-soon):hover { border-color: rgba(129,140,248,.45); transform: translateY(-1px); text-decoration: none; }
.stepcard.is-soon { opacity: .55; cursor: default; }
.thumb { width: 84px; height: 62px; flex: none; border-radius: 8px; border: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.thumb .n { position: absolute; left: 6px; top: 6px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; font: 800 10.5px/1 var(--mono); color: #fff; background: rgba(2,6,23,.65); border: 1px solid rgba(255,255,255,.14); }
.stepcard .tx { min-width: 0; }
.stepcard .tx b { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 3px; }
.stepcard .tx span { font-size: 12px; color: var(--ink-3); display: block; line-height: 1.45; }
.stepcard .tx .soon { color: var(--ink-3); font-style: italic; }
.g1 { background: linear-gradient(135deg, rgba(245,158,11,.4), rgba(225,29,72,.4)), #101a30; }
.g2 { background: linear-gradient(135deg, rgba(16,185,129,.4), rgba(13,148,136,.4)), #101a30; }
.g3 { background: linear-gradient(135deg, rgba(99,102,241,.45), rgba(139,92,246,.45)), #101a30; }
.g4 { background: linear-gradient(135deg, rgba(34,211,238,.4), rgba(37,99,235,.4)), #101a30; }
.g5 { background: linear-gradient(135deg, rgba(217,70,239,.4), rgba(147,51,234,.4)), #101a30; }
.g6 { background: linear-gradient(135deg, rgba(132,204,22,.35), rgba(5,150,105,.4)), #101a30; }
.g7 { background: linear-gradient(135deg, rgba(251,113,133,.35), rgba(168,85,247,.4)), #101a30; }
.g8 { background: linear-gradient(135deg, rgba(56,189,248,.4), rgba(99,102,241,.45)), #101a30; }
.seccards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.seccard { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--panel-2); }
.seccard h3 { font-size: 13px; margin: 0 0 10px; color: var(--ink); text-transform: uppercase; letter-spacing: .08em; font-family: var(--mono); font-weight: 600; }
.seccard ul { list-style: none; margin: 0; padding: 0; }
.seccard li { margin-bottom: 2px; }
.seccard li a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; color: var(--ink-2); font-size: 13px; }
.seccard li a:hover { background: rgba(148,163,184,.08); color: var(--ink); text-decoration: none; }

/* ── mobile ── */
.navback { display: none; }
@media (max-width: 900px) {
  .navtoggle { display: inline-flex; }
  .sidenav { position: fixed; top: var(--toph); left: 0; bottom: 0; z-index: 45; width: 280px; max-width: 84vw; height: auto; transform: translateX(-102%); transition: transform .18s ease; box-shadow: 0 20px 60px rgba(0,0,0,.6); background: #0b1120; }
  .sidenav.open { transform: translateX(0); }
  body.nav-open .navback { display: block; position: fixed; inset: var(--toph) 0 0 0; z-index: 44; background: rgba(2,6,23,.6); }
  .doc-cols { padding: 24px 20px 36px; gap: 24px; }
  .rail { display: none; }
  .searchbox { max-width: none; }
  .searchbox kbd { display: none; }
}
@media (max-width: 1180px) { .doc-cols.with-rail .rail { display: none; } .doc-cols.with-rail .doc-inner { max-width: 720px; margin: 0 auto; } }
@media (max-width: 640px) {
  .qcards, .stepgrid { grid-template-columns: 1fr; }
  .topbar { gap: 10px; padding: 8px 14px; }
  .brand .docs-tag { display: none; }
  .openapp { padding: 8px 10px; }
  .verbadge { display: none; }
  .doc-inner h1 { font-size: 24px; }
  .docfoot { padding: 14px 20px; }
}
