:root {
  color-scheme: light dark;
  --bg: #f3eee4;
  --fg: #211d18;
  --muted: #6a6257;
  --accent: #8c4a1c;
  --line: #d6cdbd;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1814;
    --fg: #ebe4d6;
    --muted: #a89f90;
    --accent: #dba36a;
    --line: #3d372f;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.65 ui-serif, 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
}
main, footer, .top { max-width: 36rem; margin: 0 auto; padding: 0 1.25rem; }
main { padding-top: 5rem; padding-bottom: 2rem; }
a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
code { font: 0.84em ui-monospace, 'SF Mono', Menlo, Consolas, monospace; white-space: nowrap; }
h1, h2 { font-weight: 600; line-height: 1.2; margin: 0; }
h1 { font-size: 2.25rem; letter-spacing: -0.02em; }
h2 { font-size: 1rem; margin-bottom: 0.6rem; }
p { margin: 0 0 1rem; }
section { margin-top: 3.25rem; }
.intro p { font-size: 1.25rem; line-height: 1.5; margin-top: 0.75rem; }
.intro .hosting-note { color: var(--muted); font-size: 1rem; }
.repo-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; margin-top: 1.25rem; font-size: 0.9375rem; }
.repo-links a { display: inline-flex; align-items: center; gap: 0.35rem; }
.pixel-icon { flex: none; color: var(--accent); }
.mascot { display: block; margin-bottom: 1.25rem; overflow: visible; }
/* The mascot idles in pixel steps: hops every 3.2 s (the crumb bounces when it
   lands), blinks and glances on their own clocks so the loop never looks the
   same twice. Hovering makes it hop faster. Transforms are in grid units. */
@media (prefers-reduced-motion: no-preference) {
  .m-body, .m-crumb, .m-eyes, .m-lid { animation: 3.2s step-end infinite; }
  .m-body { animation-name: m-hop; }
  .m-crumb { animation-name: m-crumb; }
  .m-eyes { animation-name: m-look; animation-duration: 7.9s; }
  .m-lid { animation-name: m-blink; animation-duration: 5.3s; }
  .mascot:hover .m-body, .mascot:hover .m-crumb { animation-duration: 1.1s; }
}
@keyframes m-hop { 0% { transform: none; } 72% { transform: translateY(-1px); } 76% { transform: translateY(-2px); } 84% { transform: translateY(-1px); } 88% { transform: none; } }
@keyframes m-crumb { 0% { transform: none; } 88% { transform: translateY(-1px); } 94% { transform: none; } }
@keyframes m-look { 0% { transform: none; } 22% { transform: translateX(-1px); } 36% { transform: none; } 58% { transform: translateX(1px); } 70% { transform: none; } }
@keyframes m-blink { 0% { opacity: 1; } 40% { opacity: 0; } 42% { opacity: 1; } 47% { opacity: 0; } 49% { opacity: 1; } }
ol { margin: 0; padding-left: 1.4rem; }
li { margin-bottom: 0.5rem; padding-left: 0.2rem; }
li::marker { color: var(--muted); }
.muted { color: var(--muted); }
label { display: block; margin-bottom: 1.25rem; }
/* Calls to action (index) and copy lines (index, docs; site/copy.js). */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin: 1.75rem 0 0; }
.button {
  display: inline-block; padding: 0.55rem 1.1rem; border-radius: 6px;
  background: var(--fg); color: var(--bg); font-weight: 600; text-decoration: none;
}
.button:hover { background: var(--accent); }
.copyline {
  display: flex; align-items: center; gap: 0.75rem; margin: 0 0 1rem; padding: 0.5rem 0.5rem 0.5rem 0.9rem;
  border: 1px solid var(--line); border-radius: 6px;
}
.copyline code { flex: 1; min-width: 0; white-space: normal; overflow-wrap: anywhere; font-size: 0.95rem; }
.copyline.is-small { padding: 0.35rem 0.35rem 0.35rem 0.6rem; gap: 0.5rem; }
.copyline.is-small code { font-size: 0.8125rem; }
button.copy {
  flex: none; padding: 0.3rem 0.7rem; font-size: 0.875rem; line-height: 1.4;
  color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 4px; text-decoration: none;
}
button.copy:hover { border-color: var(--accent); color: var(--accent); }
button.copy.is-done { border-color: var(--accent); color: var(--accent); }
input {
  display: block; width: 100%; margin-top: 0.15rem; padding: 0.25rem 0;
  font: inherit; color: inherit; background: transparent;
  border: 0; border-bottom: 1px solid var(--muted); border-radius: 0;
}
input:focus-visible { outline: 0; border-bottom: 2px solid var(--accent); padding-bottom: calc(0.25rem - 1px); }
button {
  padding: 0; font: inherit; font-weight: 600; color: var(--accent);
  background: none; border: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px;
}
button:hover { text-decoration-thickness: 2px; }
button:disabled { color: var(--muted); cursor: wait; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.65em; margin-top: 0.75rem; }
footer { padding-top: 1.5rem; padding-bottom: 3rem; color: var(--muted); font-size: 0.9375rem; }
footer::before { content: ''; display: block; width: 2.5rem; border-top: 1px solid var(--line); margin-bottom: 1.5rem; }
footer p { margin-bottom: 0.5rem; }
footer a { margin-right: 1rem; display: inline-block; }
.top { padding-top: 2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--fg); font-weight: 600; text-decoration: none; }
.top + main { padding-top: 3rem; }
.prose h1 { font-size: 1.75rem; margin-bottom: 1.25rem; }
.prose h2 { margin-top: 2.25rem; }
ol + p { margin-top: 1rem; }
.modules { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 0 0 1rem; }
.modules dt { font: 0.9em ui-monospace, 'SF Mono', Menlo, Consolas, monospace; padding-top: 0.15em; }
.modules dd { margin: 0; }
/* The module directory (modules.html, rendered from modules.json by scripts/build-modules.mjs). */
.m-lead { font-size: 1.125rem; line-height: 1.55; }
.m-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.m-card { margin: 0 0 2rem; padding: 1.25rem 1.25rem 0.75rem; border: 1px solid var(--line); border-radius: 8px; }
.m-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.6rem; margin: 0 0 0.4rem; font: 600 1.2rem ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.m-tag { padding: 0.05rem 0.5rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font: 400 0.8125rem/1.5 ui-serif, Georgia, serif; }
.m-desc { margin: 0 0 0.6rem; }
.m-adds { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--muted); font-size: 0.9375rem; }
.m-adds li { margin-bottom: 0.2rem; }
.m-note { color: var(--muted); font-size: 0.9375rem; }
.m-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.2rem 1rem; margin: 0 0 0.75rem; font-size: 0.9375rem; }
.m-facts dt { color: var(--muted); }
.m-facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 37.99rem) {
  .m-card { padding: 1rem 1rem 0.5rem; }
}
pre { margin: 0.8em 0; padding: 0.8em 1em; overflow-x: auto; border-left: 2px solid var(--accent, #d99a4e); }
pre code { white-space: pre; }
.analytics {
  position: fixed; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 0.75rem 1.25rem; background: var(--bg); color: var(--muted);
  font-size: 0.9375rem; text-align: center;
}
.analytics[hidden] { display: none; }
.analytics button { margin: 0 0.35rem; }
.analytics a { margin-left: 0.5rem; }
/* The quiet link line next to the mascot (index). */
.intro-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.intro-top .mascot { margin-bottom: 0; }
.toplinks { margin: 0; padding-top: 0.25rem; color: var(--muted); font-size: 0.9375rem; white-space: nowrap; }
.crumb { color: var(--muted); margin-left: 0.2rem; }
/* /docs — rendered from drobek's Markdown by scripts/build-docs.mjs: a
   sidebar (pages + this page's sections) beside a 44rem column from 64rem,
   one column with an "On this page" box below that. */
.docs .top, .docs footer, .docs-shell { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.docs .top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 0.25rem; padding-top: 1.5rem; }
.docs-shell main { max-width: 44rem; margin: 0; padding: 2.5rem 0 2rem; }
.docs-shell.is-index main { max-width: none; }
.docs-side { display: none; }
@media (min-width: 64rem) {
  .docs-shell:not(.is-index) { display: grid; grid-template-columns: 13.5rem minmax(0, 44rem); gap: 3.5rem; }
  .docs-side {
    display: block; position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto;
    padding: 2.75rem 0.5rem 2rem 0; font-size: 0.9375rem; line-height: 1.45;
  }
  .doc .toc { display: none; }
}
.docs-side p { margin: 0; }
.docs-side ul { list-style: none; margin: 0 0 0.5rem; padding: 0; }
.docs-side li { margin: 0; padding: 0.2rem 0; }
.docs-side a { color: var(--fg); text-decoration: none; }
.docs-side a:hover { color: var(--accent); text-decoration: underline; }
.docs-side a[aria-current] { color: var(--accent); font-weight: 600; }
.docs-side .side-home { margin-bottom: 0.25rem; }
.side-home a { color: var(--muted); }
.docs-side .side-group { margin: 1.1rem 0 0.3rem; color: var(--muted); font-size: 0.8125rem; letter-spacing: 0.03em; }
.side-toc, .side-toc ol { list-style: none; margin: 0.35rem 0 0.4rem; padding: 0 0 0 0.75rem; border-left: 1px solid var(--line); font-size: 0.875rem; }
.side-toc ol { border: 0; margin: 0.15rem 0 0; }
.side-toc li { padding: 0.15rem 0; }
.side-agent { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.875rem; }
.docs-side .side-agent p { margin-bottom: 0.5rem; }
.side-agent .copyline { flex-wrap: wrap; justify-content: space-between; }
.side-agent .copyline code { flex: 1 0 auto; white-space: nowrap; }
.doc { overflow-wrap: break-word; }
.doc-meta { color: var(--muted); font-size: 0.9375rem; margin-top: -0.5rem; overflow-wrap: anywhere; }
.doc h2 { font-size: 1.25rem; margin: 2.75rem 0 0.75rem; }
.doc h3 { font-size: 1.0625rem; margin: 2rem 0 0.5rem; }
.doc h4 { font-size: 1rem; margin: 1.5rem 0 0.4rem; }
.doc h3, .doc h4 { font-weight: 600; line-height: 1.3; }
.doc .header-anchor { color: inherit; text-decoration: none; }
.doc .header-anchor:hover { text-decoration: underline; text-decoration-color: var(--line); }
.doc code { white-space: normal; overflow-wrap: break-word; }
.doc pre code { white-space: pre; overflow-wrap: normal; }
.doc ul, .doc ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.doc li > ul, .doc li > ol { margin: 0.4rem 0 0; }
.doc li > p { margin-bottom: 0.4rem; }
.doc blockquote { margin: 0 0 1rem; padding-left: 1rem; border-left: 2px solid var(--line); color: var(--muted); }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.doc .table { overflow-x: auto; margin: 0 0 1rem; }
.doc table { border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.4rem 1rem 0.4rem 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; }
.toc { margin: 0 0 2rem; padding: 0.6rem 0.9rem; border: 1px solid var(--line); border-radius: 6px; font-size: 0.9375rem; }
.toc summary { color: var(--muted); cursor: pointer; }
.doc .toc ol { margin: 0.5rem 0 0.25rem; }
.doc .toc ol ol { margin: 0.2rem 0 0; }
.toc li { margin-bottom: 0.15rem; }
.doc-meta a { color: inherit; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; margin: 0 0 1.5rem; }
.doc-actions:not(:has(button:not([hidden]))) { display: none; }
.doc-pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.doc-pager a { display: flex; flex-direction: column; text-decoration: none; font-weight: 600; }
.doc-pager a:hover { text-decoration: underline; }
.doc-pager .muted { font-size: 0.875rem; font-weight: 400; }
.doc-pager .is-next { margin-left: auto; text-align: right; }
/* The docs search (site/docs-search.js): an underline field like the
   gallery's, results in a panel under it. */
.docs-search { position: relative; margin: 0; }
.top .docs-search { flex: 1 1 16rem; max-width: 22rem; margin-left: auto; }
@media (max-width: 40rem) { .top .docs-search { flex-basis: 100%; max-width: none; } }
.docs-search input { padding-right: 1.75rem; font-size: 1rem; }
.docs-search input::placeholder { color: var(--muted); opacity: 0.8; }
.docs-search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.docs-search.is-big { margin: 1.75rem 0 1.25rem; max-width: 36rem; }
.docs-search.is-big input { font-size: 1.1875rem; padding: 0.4rem 1.75rem 0.4rem 0; }
.ds-key {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%); padding: 0 0.35rem;
  font: 0.75rem ui-monospace, 'SF Mono', Menlo, Consolas, monospace; color: var(--muted);
  border: 1px solid var(--line); border-radius: 3px;
}
.docs-search:focus-within .ds-key { display: none; }
@media (hover: none) { .ds-key { display: none; } }
.ds-results {
  position: absolute; top: calc(100% + 0.4rem); left: 0; right: 0; z-index: 10;
  max-height: min(70vh, 34rem); overflow-y: auto; background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 10px 30px rgb(0 0 0 / 0.14);
}
.top .ds-results { left: auto; width: min(34rem, calc(100vw - 2.5rem)); }
.ds-note { margin: 0; padding: 0.45rem 0.9rem; color: var(--muted); font-size: 0.8125rem; }
.ds-results ul { list-style: none; margin: 0; padding: 0; }
.ds-results li { margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ds-results a { display: block; padding: 0.6rem 0.9rem; color: var(--fg); text-decoration: none; }
.ds-results a:hover, .ds-results [aria-selected] a { background: color-mix(in srgb, var(--line) 50%, transparent); }
.ds-where { display: block; color: var(--muted); font-size: 0.875rem; line-height: 1.35; }
.ds-where strong { color: var(--fg); font-weight: 600; }
.ds-snip { display: block; margin-top: 0.2rem; font-size: 0.9rem; line-height: 1.45; overflow-wrap: anywhere; }
.ds-results mark { color: inherit; background: color-mix(in srgb, var(--accent) 24%, transparent); border-radius: 2px; }
/* The docs landing. */
.docs-intro { max-width: 44rem; }
.docs-intro h1 { font-size: 2.25rem; margin-bottom: 0.75rem; }
.lede { font-size: 1.1875rem; line-height: 1.5; }
.hosted-note { color: var(--muted); }
/* "Using an AI agent?" (scripts/build-docs.mjs agentStart, the homepage's
   Connect): the prompt with its copy/open buttons, then the steps an agent
   follows. On the docs landing a card, two columns from 60rem. */
.intro .agent-hint { margin-top: 1.5rem; color: var(--muted); font-size: 0.9375rem; }
.agent-start { margin: 2rem 0 0; padding: 1.25rem 1.25rem 0.25rem; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px; }
.doc .agent-start h2 { margin: 0 0 0.6rem; font-size: 1.25rem; }
@media (max-width: 30rem) { .agent-start { padding: 1rem 0.85rem 0.25rem; } }
@media (min-width: 60rem) { .agent-start.is-wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 2.5rem; } }
.prompt-box { margin: 0 0 1.25rem; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 6px; background: color-mix(in srgb, var(--line) 25%, transparent); }
.prompt-box .prompt-label { margin: 0 0 0.35rem; color: var(--muted); font-size: 0.8125rem; letter-spacing: 0.03em; }
.prompt-box .prompt-text { margin: 0 0 0.75rem; font: 0.875rem/1.55 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.prompt-box .prompt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; margin: 0; font-size: 0.9375rem; }
.prompt-box .prompt-text .muted { white-space: nowrap; }
.prompt-actions a { font-weight: 600; }
.agent-steps-h { margin-bottom: 0.4rem; }
.agent-steps li { margin-bottom: 0.6rem; }
.agent-steps pre { margin: 0.45rem 0 0.55rem; }
.agent-steps pre code { white-space: pre-wrap; overflow-wrap: anywhere; }
.agent-start .muted { font-size: 0.9375rem; }
.docs-find { max-width: 44rem; }
.doc .docs-tasks h2 { margin: 0 0 0.6rem; font-size: 1.125rem; }
.docs-tasks { padding-top: 1.25rem; }
@media (min-width: 56rem) { .doc .tasks { columns: 2; column-gap: 3rem; } .tasks li { break-inside: avoid; } }
.doc .tasks { list-style: none; margin: 0; padding: 0; }
.tasks li { margin: 0; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.tasks .muted { font-size: 0.875rem; }
.docs-group { margin-top: 3rem; }
.doc .docs-group h2 { margin: 0 0 1.25rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); }
.doc .doclist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem 3rem; }
@media (min-width: 48rem) { .doc .doclist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .doc .doclist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.doclist li { margin: 0; padding: 0; }
.doc .doclist h3 { margin: 0 0 0.35rem; font-size: 1.1875rem; }
.doclist p { margin: 0 0 0.5rem; }
.doclist-secs { color: var(--muted); font-size: 0.875rem; line-height: 1.6; }
.doclist-secs a { color: var(--muted); }
.doclist-secs a:hover { color: var(--accent); }
/* /gallery (site/gallery.js): wider than the prose pages, text keeps the prose
   measure. Each card is a live, scaled-down frame of the app (1280×800,
   --g-scale set by the script) over a poster in the app's tint: the initial
   and the crumb, or the hopping mascot while the frame loads. */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wide main, .wide footer, .wide .top { max-width: 88rem; }
.g-head, .g-foot { max-width: 36rem; }
.g-head p { margin: 0.75rem 0 0; color: var(--muted); font-size: 1.125rem; line-height: 1.5; }
.g-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 2rem; margin: 2.75rem 0 2rem; }
.g-controls[hidden] { display: none; }
.g-controls label { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.g-search { flex: 1 1 16rem; max-width: 26rem; }
.g-search input, .g-select select { color: var(--fg); font-size: 1.0625rem; }
.g-search input::placeholder { color: var(--muted); opacity: 0.75; }
.g-search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.g-select { position: relative; display: block; margin-top: 0.15rem; }
.g-select select {
  -webkit-appearance: none; appearance: none; display: block; margin: 0; cursor: pointer;
  padding: 0.25rem 1.6rem 0.25rem 0; font-family: inherit; line-height: inherit;
  background: transparent; border: 0; border-bottom: 1px solid var(--muted); border-radius: 0;
}
.g-select select:focus-visible { outline: 0; border-bottom: 2px solid var(--accent); padding-bottom: calc(0.25rem - 1px); }
.g-select::after {
  content: ''; position: absolute; right: 0.3rem; top: 50%; width: 0.4rem; height: 0.4rem; pointer-events: none;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg);
}
.g-count { flex: 1 0 auto; margin: 0; padding-bottom: 0.3rem; text-align: right; color: var(--muted); font-size: 0.9375rem; }
.g-count:empty { display: none; }
.g-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem 1.5rem; }
.g-grid.is-busy { opacity: 0.45; }
@media (min-width: 38rem) { .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .g-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 2rem; } }
@media (min-width: 84rem) { .g-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.g-card { position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 0; }
.g-preview {
  position: relative; overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 0.9rem;
  background: var(--g-tint); border: 1px solid var(--line); border-radius: 6px;
}
.g-poster { position: absolute; inset: 0; display: grid; place-items: center; }
.g-initial { color: var(--g-ink); font-size: 4rem; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.g-poster::after { content: ''; position: absolute; right: 0.75rem; bottom: 0.75rem; width: 0.5rem; height: 0.5rem; background: #d99a4e; }
.g-poster .g-mascot { display: none; margin: 0; }
.g-preview.is-loading .g-mascot { display: block; }
.g-preview.is-loading .g-initial, .g-preview.is-loading .g-poster::after { display: none; }
.g-preview.is-live .g-poster { visibility: hidden; }
.g-frame {
  position: absolute; top: 0; left: 0; width: 1280px; height: 800px; border: 0;
  background: #fff; opacity: 0; pointer-events: none;
  transform: scale(var(--g-scale, 0.25)); transform-origin: 0 0;
}
.g-preview.is-live .g-frame { opacity: 1; }
.tint-0 { --g-tint: #eadfcb; --g-ink: #97703c; }
.tint-1 { --g-tint: #dfe2d0; --g-ink: #5e6b45; }
.tint-2 { --g-tint: #e8d8cf; --g-ink: #8f5646; }
.tint-3 { --g-tint: #d9dfe0; --g-ink: #4f6570; }
.tint-4 { --g-tint: #ecdcbf; --g-ink: #8c4a1c; }
@media (prefers-color-scheme: dark) {
  .tint-0 { --g-tint: #2d271e; --g-ink: #d3b27a; }
  .tint-1 { --g-tint: #252a20; --g-ink: #a9b88c; }
  .tint-2 { --g-tint: #2e2320; --g-ink: #d69a86; }
  .tint-3 { --g-tint: #21282a; --g-ink: #9db4c0; }
  .tint-4 { --g-tint: #30271a; --g-ink: #dba36a; }
}
.g-name { margin: 0 0 0.3rem; font-size: 1.125rem; line-height: 1.3; overflow-wrap: anywhere; }
.g-link { color: var(--fg); text-decoration: none; }
.g-link::after { content: ''; position: absolute; inset: -0.5rem; z-index: 1; border-radius: 10px; }
.g-link:focus-visible { outline: 0; }
.g-link:focus-visible::after { outline: 2px solid var(--accent); }
.g-card:hover .g-link { text-decoration: underline; }
.g-card:hover .g-preview { border-color: var(--muted); }
.g-desc {
  margin: 0 0 0.75rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.g-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; margin: auto 0 0; color: var(--muted); font-size: 0.875rem; }
.g-modules { display: flex; flex-wrap: wrap; gap: 0.375rem; margin: 0 0 0.875rem; padding: 0; }
.g-mod {
  padding: 0.125rem 0.5rem; border: 1px solid var(--accent); border-radius: 999px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
  font: 600 0.75rem/1.5 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: 0.02em;
}
.g-host { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 0.95em ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.g-side { display: flex; flex: none; gap: 0.75rem; }
.g-report { position: relative; z-index: 2; color: inherit; }
.g-stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem; margin: 0 0 0.75rem; color: var(--muted); font-size: 0.8125rem; line-height: 1.5; }
.g-like { position: relative; z-index: 2; color: inherit; text-decoration: none; }
.g-like:hover, .g-like:focus-visible { color: var(--accent); text-decoration: underline; }
.g-dup { position: relative; z-index: 2; color: var(--accent); font-weight: 600; }
.is-skeleton .g-preview { border-color: transparent; }
.g-bar { width: 55%; height: 0.85rem; margin: 0.2rem 0 0.6rem; border-radius: 3px; background: var(--line); }
.g-bar.is-short { width: 85%; height: 0.6rem; opacity: 0.6; }
.g-status { margin: 0; }
.g-status:empty { display: none; }
.g-status p { margin: 0 0 0.5rem; }
.g-empty { display: flex; align-items: center; gap: 1.25rem; padding: 1rem 0; }
.g-empty .mascot { flex: none; margin: 0; }
.g-empty p { margin: 0; }
.g-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 1.5rem; margin-top: 3.5rem; }
.g-pager[hidden] { display: none; }
.g-pages { display: flex; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.g-pages li { margin: 0; padding: 0; }
.g-num, .g-gap span { display: inline-grid; place-items: center; min-width: 2.25rem; height: 2.25rem; padding: 0 0.4rem; border-radius: 4px; font-variant-numeric: lining-nums tabular-nums; }
.g-num { color: var(--fg); text-decoration: none; }
.g-num:hover { background: var(--line); }
.g-num[aria-current] { background: var(--fg); color: var(--bg); }
.g-gap span { min-width: 1.25rem; padding: 0; color: var(--muted); }
.g-step { display: inline-block; padding: 0.4rem 0; }
.g-step.is-off { color: var(--muted); opacity: 0.6; }
.g-pageof { display: none; color: var(--muted); font-size: 0.9375rem; }
.g-foot { margin-top: 5rem; }
.g-foot h2 { margin-bottom: 0.6rem; }
@media (prefers-reduced-motion: no-preference) {
  .g-frame { transition: opacity 0.4s ease; }
  .g-grid { transition: opacity 0.2s ease; }
  .is-skeleton { animation: g-pulse 1.4s ease-in-out infinite alternate; }
}
@keyframes g-pulse { from { opacity: 1; } to { opacity: 0.55; } }
@media (max-width: 37.99rem) {
  .wide main, .wide footer, .wide .top { padding-left: 1rem; padding-right: 1rem; }
  .g-controls { gap: 0.75rem 1.25rem; margin-top: 2rem; }
  .g-search { flex: 1 1 9rem; max-width: none; }
  .g-count { flex-basis: 100%; text-align: left; padding: 0; }
  .g-pager { justify-content: space-between; }
  .g-pages { display: none; }
  .g-pageof { display: inline; }
}
/* /modules (site/modules.js): the search over both lists, the community list
   from site/community-modules.json. */
.m-search { margin: 2.25rem 0 1.5rem; }
.m-search[hidden], .m-card[hidden] { display: none; }
.m-warn { padding: 0.6rem 0.9rem; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px; }
.m-status p { margin: 0 0 0.5rem; color: var(--muted); }
.m-name .m-pkg { min-width: 0; overflow-wrap: anywhere; }
