
        /* Oak design tokens — warm paper, ink, moss.
           Light mode: 'washi'-style off-white, with restrained green accent.
           Dark mode: deep, near-black with the same accents desaturated. */
        /* Stored as space-separated RGB triplets so Tailwind's
           opacity-modifier syntax (`bg-oak-moss/30`) can plug them into the
           v4 theme variables defined in crates/oak-web/tailwind/input.css.
           Every CSS usage wraps the var in `rgb(...)`. */
        :root {
            /* Core is black on white — whiter whites, reversed in dark mode.
               Accent is a vibrant solar orange (brand/primary) plus an electric
               teal (secondary), both tuned to clear WCAG AA on the paper behind
               them. Stored as `R G B` triplets for Tailwind's opacity modifier. */
            --oak-paper: 255 255 255;      /* page bg — pure white */
            --oak-paper-2: 245 245 245;    /* subtle panel bg — neutral grey */
            --oak-ink: 10 10 10;           /* primary text — near-black */
            --oak-ink-soft: 74 74 74;      /* secondary text — neutral grey */
            --oak-line: 218 218 218;       /* hairline — neutral grey (matches homepage --home-border) */
            --oak-line-strong: 184 184 184;
            /* The 2026-06 redesign leans hard into black & white: hue is reserved
               for genuinely semantic states (destructive red, warning gold) and
               the brand mark. The workhorse accent --oak-moss is repointed from
               solar orange to ink, which turns every button / link / active state
               that references it monochrome without editing 300+ call sites. */
            --oak-moss: 10 10 10;          /* primary accent — ink (was solar orange) */
            --oak-moss-soft: 64 64 64;     /* hover / rings — soft ink */
            --oak-moss-pale: 240 240 240;  /* active-row tint — pale grey */
            --oak-vermilion: 198 40 40;    /* red — regressions / destructive (sparing) */
            --oak-amber: 156 76 8;        /* gold — warning / "behind" (sparing) */
            --oak-cyan: 15 118 110;        /* teal — sparing semantic accent */
            --oak-brand: #6ca232;          /* brand green — the Merge button (the mark itself is ink) */
            --oak-green: 62 110 20;        /* diff-add / success ink — AA on white, #3E6E14 (sparing) */

            /* Shared monospace stack — the redesign's terminal aesthetic uses it
               site-wide for body, chrome, and titles (matches the homepage
               --hp-mono). JetBrains Mono stays the fallback for older glyphs. */
            --oak-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
            /* Square corners everywhere (buttons, cards, inputs, panels). Only
               circles survive (rounded-full → avatars, dots). Overriding these
               theme vars unlayered beats Tailwind's @layer theme defaults, so
               every rounded-xs/sm/md/lg/xl/2xl/3xl utility collapses to 0. */
            --radius-xs: 0px; --radius-sm: 0px; --radius-md: 0px;
            --radius-lg: 0px; --radius-xl: 0px; --radius-2xl: 0px; --radius-3xl: 0px;

            /* Canonical page width. The gallery theme block below sets the
               frame every page uses (80rem); this full-width default is only
               for pages outside it. `REPO_CONTENT_MAX_W` and the
               `.oak-page-frame` utility both point here. */
            --oak-page-w: 100%;
        }
        html.dark {
            --oak-paper: 0 0 0;            /* page bg — pure black (matches homepage --home-bg) */
            --oak-paper-2: 20 20 20;       /* subtle panel bg — neutral */
            --oak-ink: 245 245 245;        /* whiter whites */
            --oak-ink-soft: 160 160 160;
            --oak-line: 64 64 64;          /* hairline — neutral (matches homepage --home-border) */
            --oak-line-strong: 90 90 90;
            /* Ink accent, near-white on black. Used as a *text* colour (links,
               active states, focus rings). Solid `bg-oak-moss` buttons hardcode
               white text, so they get force-darkened to charcoal in the dark
               override block below (same trick as bg-oak-ink). */
            --oak-moss: 245 245 245;       /* primary accent — ink */
            --oak-moss-soft: 200 200 200;
            --oak-moss-pale: 28 28 28;     /* active-row tint */
            --oak-vermilion: 240 130 120;  /* red — sparing */
            --oak-amber: 230 170 90;       /* warning — sparing */
            --oak-cyan: 45 226 200;        /* teal — sparing */
            --oak-brand: #8fce46;          /* brand green — the Merge button (the mark itself is ink) */
            --oak-green: 143 206 70;       /* diff-add / success — matches the mark, #8FCE46 (sparing) */
        }
        /* Canonical page frame. A page's top-level content region spans the
           full width the header and footer use (`--oak-page-w` = 100%) and is
           left-aligned, so the header, body, and footer edges line up flush on
           every view. Replaces the assorted `max-w-*xl mx-auto` page wrappers.
           Inner cards / forms can still self-constrain narrower within this
           frame. */
        .oak-page-frame {
            max-width: var(--oak-page-w);
            margin-inline: 0;
            width: 100%;
        }
        /* The whole app is set in the one monospace face (`--oak-mono`).
           Tailwind's text-sm/text-base/font-medium/font-semibold utilities
           still apply on top: they set size/weight, not family. */
        body {
            font-family: var(--oak-mono);
            font-size: 13.5px;
            line-height: 1.55;
            background-color: rgb(var(--oak-paper));
            color: rgb(var(--oak-ink));
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: optimizeLegibility;
        }
        /* Inline link affordance in the monochrome scheme: links coloured with
           the (now ink) accent are otherwise indistinguishable from body text,
           so underline anchors that opt into the accent colour. */
        
        .bg-oak-paper { background-color: rgb(var(--oak-paper)); }
        
        .text-oak-ink { color: rgb(var(--oak-ink)); }
        .text-oak-ink-soft { color: rgb(var(--oak-ink-soft)); }
        .border-oak-line { border-color: rgb(var(--oak-line)); }

        /* Shared *terminal* surface for monospace output blocks (one-time
           secret reveals) — not a themed panel: it stays dark in both modes
           with its own light foreground. Blocks like these used to ride on
           `bg-oak-ink text-oak-paper`, which reverses in dark mode — the block
           lightened to the #2f2e29 override while the text flipped to pure
           black, leaving uncoloured output at ~1.6:1. Reach for this class on
           any new <pre>/<code> block instead of that pair. */
        .term-surface { background-color: #161513; color: #e6e4df; }
        code, pre, .font-mono, .tabular-nums { font-family: var(--oak-mono); }

        /* Base size for any SVG marked `.ico` — used by sidebar links, the
           header tab pills, branch pills, and other inline-icon callouts.
           Without this rule the SVGs fall back to the browser default
           (300×150), which either overflows the row or gets clipped. */
        .ico {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
        }

        /* Subtle inner panel — used for file-list / diff / commit-list cards. */
        .surface {
            background-color: rgb(var(--oak-paper));
            border: 1px solid rgb(var(--oak-line));
            border-radius: 0;
        }
        

        /* File-list row inside diff/commit panes — selected = green accent. */
        .file-row {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.35rem 0.75rem;
            font-size: 0.8125rem;
            color: rgb(var(--oak-ink-soft));
            border-left: 2px solid transparent;
            cursor: pointer;
            transition: background-color 0.1s ease, color 0.1s ease;
        }
        .file-row:hover { color: rgb(var(--oak-ink)); }
        .file-row.is-active {
            background-color: rgb(var(--oak-moss-pale));
            color: rgb(var(--oak-ink));
            border-left-color: rgb(var(--oak-ink));
        }
        
        /* Diff add/remove keep their semantic green/red — the canonical "sparing
           colour" the redesign still allows. (oak-moss is now ink, so badge-A
           points at oak-green to stay green.) */

        /* Tree details chevron rotation */

        /* Tree item hover (repo file browser) */
        .tree-entry { transition: background-color 0.1s ease; }
        .tree-entry.active { background-color: rgb(var(--oak-moss-pale)); box-shadow: inset 3px 0 0 rgb(var(--oak-ink)); }
        /* Skip link: off-screen until a keyboard user tabs to it. The click
           `site_layout` gives the page's first `<main>` its target id. */
        .skip-link {
            position: fixed; top: 8px; left: 8px; z-index: 2147483646;
            padding: 8px 14px; font-size: 14px;
            background: rgb(var(--oak-ink)); color: rgb(var(--oak-paper));
            transform: translateY(-200%);
        }
        .skip-link:focus { transform: none; }
        main:focus { outline: none; }
        /* Baseline focus ring for anything without its own. `:where` keeps
           specificity at zero so per-control focus styles still win. */
        :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
            outline: 2px solid rgb(var(--oak-moss)); outline-offset: 2px;
        }
        /* Keyboard-nav focus states (see /keyboard-nav.js): same ring the
           branch rows use (`.b-list-row:focus-within`), inset so it never
           clips against the pane edge. #file-content is a tabbable scroll
           pane — the inset outline marks it active. */
        .tree-entry:focus-visible { outline: 2px solid rgb(var(--oak-moss)); outline-offset: -2px; }
                .file-row:focus-visible { outline: 2px solid rgb(var(--oak-moss)); outline-offset: -2px; }
        #file-content:focus-visible { outline: 2px solid rgb(var(--oak-moss)); outline-offset: -2px; }

        /* Code line numbers */

        /* ---- Mobile responsiveness baseline ----
           Guard rails so a single overflowing element can't break the
           whole page layout on narrow screens. Most app pages already
           use sm: breakpoints for their own structure; these rules
           catch the common edge cases (long URLs, wide tables, big
           code blocks) that creep in via markdown content or third-
           party HTML.

           Note: we deliberately avoid `overflow-x: hidden` on html/body
           — that would break `position: sticky` on the top nav. Each
           overflow source is contained at its own boundary instead. */
        /* Markdown images shouldn't blow past the prose column on
           narrow screens. Scoped so layout icons (sized SVGs) are left
           alone. */
        .markdown-body img { max-width: 100%; height: auto; }
        /* Long URLs / inline code shouldn't push prose pages wider than
           the viewport. `anywhere` lets the browser break mid-word at
           any character when nothing else fits. */
        .markdown-body { overflow-wrap: anywhere; }
        /* When prose is a flex/grid item (chat bubbles, branch-description
           rail, sidebar+content splits), it must be allowed to shrink below
           its content's intrinsic width — otherwise a wide `pre` code block
           sets the item's min-content size and blows the column out past the
           viewport instead of letting `pre { overflow-x: auto }` scroll it.
           `min-width: 0` is a no-op in normal block flow, so it's safe to
           apply globally to every prose surface. */
        .markdown-body { min-width: 0; }
        /* Pre/code blocks scroll horizontally rather than forcing the
           page wider. Most explicit pre blocks already have
           overflow-x-auto via Tailwind; this catches the rest. */
        pre { max-width: 100%; overflow-x: auto; }
        /* Markdown tables become a horizontally scrollable wrapper so a
           wide data table doesn't blow out the prose column. `display:
           block` flips them from layout-table to scrollable container. */
        .markdown-body table { display: block; max-width: 100%; overflow-x: auto; }
        @media (max-width: 640px) {
            /* Page-level h1's set with Tailwind text-4xl+ can push the
               chrome wider than 375px for wordy titles. Soft clamp so
               the title shrinks to fit on phones without affecting
               desktop sizing. */
            
            /* Settings / docs / repo tabs use `nav class="flex gap-6"`
               — 5+ tabs overflow past 375px. Make the row horizontally
               scrollable on mobile and prevent each tab from being
               squished. The scrollbar is the browser's own. */
            nav.flex.gap-6 {
                overflow-x: auto;
                flex-wrap: nowrap;
                -webkit-overflow-scrolling: touch;
            }
            nav.flex.gap-6 > * { white-space: nowrap; flex-shrink: 0; }
        }
        /* Hide details marker */
        details > summary { list-style: none; }
        details > summary::-webkit-details-marker { display: none; }

        /* Highlight.js overrides */
        .hljs { background: transparent !important; padding: 0 !important; }

        /* ─── Text diffs (repo_pages::diff_render) ──────────────────────────
           Diff rows wrap their content in `<code class="language-…">` so the
           same highlight.js pass the file view uses tokenizes them too, and
           `oakHighlightDiff` then re-applies the server-computed intraline
           (word-level) ranges as `.oak-il` spans on top of the tokens.

           Two things have to hold for that to read well:

           1. Nothing inside a row may paint its own background — the +/- row
              tint *is* the diff signal. highlight.js' `.hljs` wrapper, the bare
              `<code>` element (which dark mode otherwise gives a chip
              background), and hljs' own `.hljs-addition`/`.hljs-deletion`
              colours (which fire when the diffed file is itself a `.diff` /
              `.patch`) all have to be flattened, or a diff of a patch file
              renders green boxes inside green rows.
           2. Contrast. Syntax tokens sit on a tinted row and, where a word
              changed, on the *intraline* tint on top of that — the darkest
              background any diff text sees. Every colour below was checked
              against that worst case: light mode needs relative luminance
              ≤ 0.124 to clear 4.5:1 on the intraline red/green, which four of
              the stock github-light token groups (comment, built_in, keyword,
              name/quote) miss, so they are darkened here. The dark-mode
              github-dark palette (further down, `html.dark .hljs-*`) already
              clears 4.5:1 on our dark intraline tints with margin, so it is
              left alone; only the intraline alphas were chosen to keep it
              there. Scoped to `.oak-diff` on purpose: file views sit on flat
              paper and don't need the extra headroom. */
        .oak-diff code { background: transparent !important; padding: 0 !important; border: 0; }
        .oak-diff .hljs-addition, .oak-diff .hljs-deletion { background: transparent !important; }
        /* github.min.css tokens that miss 4.5:1 on the code panel greys. */
        html:not(.dark) .hljs-comment, html:not(.dark) .hljs-code, html:not(.dark) .hljs-formula { color: #5a6169; }
        html:not(.dark) .hljs-doctag, html:not(.dark) .hljs-keyword, html:not(.dark) .hljs-template-tag,
        html:not(.dark) .hljs-template-variable, html:not(.dark) .hljs-type, html:not(.dark) .hljs-variable.language_ { color: #a40e26; }
        html:not(.dark) .hljs-built_in, html:not(.dark) .hljs-symbol { color: #8a3d00; }
        html:not(.dark) .hljs-name, html:not(.dark) .hljs-quote, html:not(.dark) .hljs-selector-tag,
        html:not(.dark) .hljs-selector-pseudo { color: #116329; }
        .oak-diff .hljs-comment, .oak-diff .hljs-code, .oak-diff .hljs-formula { color: #5a6169; }
        .oak-diff .hljs-doctag, .oak-diff .hljs-keyword, .oak-diff .hljs-meta .hljs-keyword,
        .oak-diff .hljs-template-tag, .oak-diff .hljs-template-variable, .oak-diff .hljs-type,
        .oak-diff .hljs-variable.language_, .oak-diff .hljs-deletion { color: #a40e26; }
        .oak-diff .hljs-built_in, .oak-diff .hljs-symbol { color: #8a3d00; }
        .oak-diff .hljs-name, .oak-diff .hljs-quote, .oak-diff .hljs-selector-tag,
        .oak-diff .hljs-selector-pseudo, .oak-diff .hljs-addition { color: #116329; }
        /* Intraline marks: a light wash plus a solid underline. The wash alone
           would have to be strong enough to see, which is exactly what eats the
           contrast budget above; the underline carries the signal instead. */
        .oak-il { border-radius: 2px; }
        .oak-diff-del .oak-il { background: rgba(207,34,46,0.13); box-shadow: inset 0 -0.15em 0 rgba(207,34,46,0.6); }
        .oak-diff-ins .oak-il { background: rgba(26,127,55,0.16); box-shadow: inset 0 -0.15em 0 rgba(26,127,55,0.6); }
        html.dark .oak-diff code { background: transparent !important; }
        html.dark .oak-diff .hljs-addition, html.dark .oak-diff .hljs-deletion { background: transparent !important; }
        html.dark .oak-diff .hljs-addition { color: #7ee787 !important; }
        html.dark .oak-diff .hljs-deletion { color: #ff7b72 !important; }
        html.dark .oak-diff-del .oak-il { background: rgba(248,81,73,0.28); box-shadow: inset 0 -0.15em 0 rgba(248,81,73,0.75); }
        html.dark .oak-diff-ins .oak-il { background: rgba(63,185,80,0.24); box-shadow: inset 0 -0.15em 0 rgba(63,185,80,0.75); }

        /* Marketing card hover */

        /* Markdown rendered content */
        .markdown-body { color: rgb(var(--oak-ink)); line-height: 1.75; }
        .markdown-body h1 { font-size: 1.75em; font-weight: 700; border-bottom: 1px solid rgb(var(--oak-line)); padding-bottom: 0.3em; margin: 0.5em 0 0.75em; color: rgb(var(--oak-ink)); }
        .markdown-body > h1:first-child { margin-top: 0; }
        .markdown-body h2 { font-size: 1.4em; font-weight: 600; border-bottom: 1px solid rgb(var(--oak-line)); padding-bottom: 0.3em; margin: 1.25em 0 0.6em; color: rgb(var(--oak-ink)); }
        .markdown-body h3 { font-size: 1.15em; font-weight: 600; margin: 1em 0 0.5em; color: rgb(var(--oak-ink)); }
        .markdown-body h4, .markdown-body h5, .markdown-body h6 { font-weight: 600; margin: 1em 0 0.5em; color: rgb(var(--oak-ink)); }
        .markdown-body p { margin: 0.75em 0; }
        .markdown-body a { color: rgb(var(--oak-moss)); text-decoration: underline; text-underline-offset: 2px; }
        .markdown-body a:hover { text-decoration: underline; }
        .markdown-body code { background: rgb(var(--oak-paper-2)); padding: 0.15em 0.35em; border-radius: 0; font-size: 0.9em; }
        .markdown-body pre { border: 1px solid rgb(var(--oak-line-strong)); border-radius: 0; padding: 1em; overflow-x: auto; margin: 1em 0; }
        .markdown-body pre code { background: transparent; padding: 0; font-size: 0.85em; }
        .markdown-body ul, .markdown-body ol { padding-left: 1.5em; margin: 0.5em 0; }
        .markdown-body li { margin: 0.25em 0; }
        .markdown-body ul { list-style-type: disc; }
        .markdown-body ol { list-style-type: decimal; }
        .markdown-body blockquote { border-left: 3px solid rgb(var(--oak-line-strong)); padding-left: 1em; color: rgb(var(--oak-ink-soft)); margin: 0.75em 0; }
        .markdown-body table { border-collapse: collapse; width: 100%; margin: 1em 0; }
        .markdown-body th, .markdown-body td { border: 1px solid rgb(var(--oak-line)); padding: 0.5em 0.75em; text-align: left; }
        /* Override the prose-wide `overflow-wrap: anywhere` (set above for
           long URLs) inside table cells. `anywhere` collapses each column's
           min-content width to a single character, so `width: 100%` in a
           narrow pane squashes columns and breaks words mid-token ("Pat h").
           `break-word` keeps min-content at the longest word, so columns size
           to their content and the table scrolls via its `overflow-x: auto`
           instead of squashing. */
        .markdown-body th, .markdown-body td { overflow-wrap: break-word; }
        .markdown-body th { background: rgb(var(--oak-paper-2)); font-weight: 600; }
        .markdown-body hr { border: none; border-top: 1px solid rgb(var(--oak-line)); margin: 1.5em 0; }
        .markdown-body img { max-width: 100%; border-radius: 0; }

        /* Tighter spacing for markdown rendered inside chat bubbles. */
        .chat-md.markdown-body { line-height: 1.5; }
        .chat-md.markdown-body p { margin: 0.35em 0; }
        .chat-md.markdown-body p:first-child { margin-top: 0; }
        .chat-md.markdown-body p:last-child { margin-bottom: 0; }
        .chat-md.markdown-body h1, .chat-md.markdown-body h2, .chat-md.markdown-body h3,
        .chat-md.markdown-body h4, .chat-md.markdown-body h5, .chat-md.markdown-body h6 {
            font-size: 1em; font-weight: 600; margin: 0.5em 0 0.25em; border: 0; padding: 0;
        }
        .chat-md.markdown-body ul, .chat-md.markdown-body ol { margin: 0.35em 0; }
        .chat-md.markdown-body pre { margin: 0.5em 0; padding: 0.6em 0.8em; }
        .chat-md.markdown-body code { font-size: 0.85em; }

        /* ---- Dark mode ---- */
        html.dark { color-scheme: dark; }
        html.dark body { background: rgb(var(--oak-paper)); color: rgb(var(--oak-ink)); }

        /* .term-surface keeps its light-on-dark terminal colours here; it only
           lifts off the pure-black page so the block still reads as a panel. */
        html.dark .term-surface { background-color:#1c1b18; border:1px solid #34322c; }
        /* Solid moss-accent buttons hardcode white text. --oak-moss is near-white
           in dark (for text/link use), so force the *background* utilities to
           charcoal here, mirroring bg-oak-ink, to keep the label readable. */

        html.dark .bg-gray-50 { background: rgb(var(--oak-paper-2)) !important; }

        html.dark .text-gray-700 { color:#a3a3a3 !important; }
        
        html.dark .text-gray-400, html.dark .text-gray-300 { color:#525252 !important; }
        
        html.dark .border-gray-200 { border-color:#404040 !important; }
        
        /* Brand-action greens → solar orange. Tailwind green-600/700 are used
           across the app for interactive affordances (links, primary buttons,
           focus rings); remap them to the brand accent so every page tracks the
           theme. Success/status greens stay green on purpose: green-50/100
           backgrounds, green-500 progress bars, green-800/900 success text, and
           the hljs diff-addition palette are all left untouched. Authored
           unlayered so they win over the Tailwind `utilities` layer. */
        .text-green-700 { color: rgb(var(--oak-moss)); }

        html.dark .bg-green-50 { background:rgba(45,138,78,0.1) !important; }
        html.dark .bg-green-100 { background:rgba(45,138,78,0.15) !important; }
        html.dark .text-green-700 { color:rgb(var(--oak-moss)) !important; }
        html.dark .text-green-800 { color:#86efac !important; }

        html.dark .hover\:bg-gray-50:hover { background:#262626 !important; }

        html.dark .bg-red-50 { background:rgba(127,29,29,0.16) !important; }
        html.dark .bg-red-100 { background:rgba(127,29,29,0.24) !important; }
        
        html.dark .hover\:bg-red-100\/60:hover { background:rgba(127,29,29,0.28) !important; }
        html.dark .text-red-700 { color:#f87171 !important; }
        html.dark .bg-red-50 p { color:rgba(252,165,165,0.86) !important; }
        html.dark .text-red-800 { color:#fca5a5 !important; }

        html.dark .bg-blue-50 { background:rgba(30,64,175,0.18) !important; }
        html.dark .border-blue-100 { border-color:rgba(96,165,250,0.24) !important; }
        html.dark .text-blue-600 { color:#93c5fd !important; }

        html.dark .markdown-body code { background:rgba(255,255,255,0.06) !important; color:#d4d4d4; }
        html.dark pre code { background:transparent !important; }
        
        html.dark img { opacity:0.92; }
        html.dark .hljs { color: #d4d4d4 !important; }
        /* highlight.js ships the *light* github.min.css; in dark mode its token
           colors (dark navy strings, dark-blue sections, …) sink into the
           near-black code background and fail contrast. Repaint every token with
           the github-dark palette — every color here clears 4.5:1 on
           rgb(var(--oak-paper)), with .hljs-section lifted to a brighter blue so
           even bold section headers (e.g. TOML `[dependencies]`) pass. */
        html.dark .hljs-doctag, html.dark .hljs-keyword, html.dark .hljs-meta .hljs-keyword,
        html.dark .hljs-template-tag, html.dark .hljs-template-variable, html.dark .hljs-type,
        html.dark .hljs-variable.language_ { color: #ff7b72 !important; }
        html.dark .hljs-title, html.dark .hljs-title.class_,
        html.dark .hljs-title.function_ { color: #d2a8ff !important; }
        html.dark .hljs-attr, html.dark .hljs-attribute, html.dark .hljs-literal,
        html.dark .hljs-meta, html.dark .hljs-number, html.dark .hljs-operator,
        html.dark .hljs-variable, html.dark .hljs-selector-attr, html.dark .hljs-selector-class,
        html.dark .hljs-selector-id { color: #79c0ff !important; }
        html.dark .hljs-regexp, html.dark .hljs-string, html.dark .hljs-meta .hljs-string { color: #a5d6ff !important; }
        html.dark .hljs-built_in, html.dark .hljs-symbol { color: #ffa657 !important; }
        html.dark .hljs-comment, html.dark .hljs-code, html.dark .hljs-formula { color: #9aa4ae !important; }
        html.dark .hljs-name, html.dark .hljs-quote, html.dark .hljs-selector-tag,
        html.dark .hljs-selector-pseudo { color: #7ee787 !important; }
        html.dark .hljs-subst { color: #d4d4d4 !important; }
        html.dark .hljs-section { color: #58a6ff !important; font-weight: 600; }
        html.dark .hljs-bullet { color: #f2cc60 !important; }
        html.dark .hljs-emphasis { color: #d4d4d4 !important; font-style: italic; }
        html.dark .hljs-strong { color: #d4d4d4 !important; font-weight: 600; }
        html.dark .hljs-addition { color: #aff5b4 !important; background-color: #033a16 !important; }
        html.dark .hljs-deletion { color: #ffdcd7 !important; background-color: #67060c !important; }

        /* ==== The gallery theme (2026-11) ==================================
           The app follows the public home page: one centred column with room
           either side, one monospace face at one small size, plain links, and
           no rules or boxes around things. The page is the wall and the work
           hangs on it.

           Everything a page needs is in the vocabulary below (`g-*`). A
           template uses those classes and layout utilities (flex, gap,
           hidden, sr-only, truncate); it does not carry borders, fills,
           radii, shadows, text sizes or colours of its own. "App design" in
           CLAUDE.md has the list. */
        :root { --oak-page-w: 80rem; --g-col: 80ch; --g-gap: clamp(1.25rem, 4.5vh, 3rem); --g-fs: 0.8125rem; --g-fs-small: 0.75rem; --g-gutter: 1.5rem; }
        body.g { font-size: var(--g-fs); line-height: 1.7; }
        /* Links take the colour of the text around them, as on the home page
           (`site.css`). Tailwind's reset does the same, but this sheet is
           inline, so a page whose tailwind.css is slow, stale or missing
           still never shows the browser's blue. Plain `a` keeps it below
           every class rule here. */
        a { color: inherit; text-decoration: inherit; }
        body.g > main, body.g > nav.g-top, body.g > .g-head, body.g > .g-foot {
            width: 100%; max-width: var(--oak-page-w); margin-inline: auto;
            padding-inline: var(--g-gutter);
        }
        body.g > main { padding-bottom: 4rem; }
        /* Every page sits in one frame (`--oak-page-w`), centred in the
           window, and everything in it starts at its left edge: the top
           line, what the head carries under it, and the page. Running text
           (a README, Markdown on Files, prose) keeps to 80 characters
           (`--g-col`). Overview's README reads narrower still: its
           paragraphs, lists and quotes keep to 66 characters, while its
           tables and code blocks may use the 80. Files, Branches and
           History end without the footer. */
        main.is-reading > #oak-main-pane { max-width: var(--g-col); }
        main.is-reading .markdown-body :is(p, ul, ol, dl, blockquote, h1, h2, h3, h4, h5, h6) { max-width: 66ch; }
        body.g:has(> main.no-foot) > .g-foot { display: none; }

        /* The top line: where you are on the left, a few links on the right. */
        .g-top {
            display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
            gap: 0.35rem 2rem; padding-top: var(--g-gap);
        }
        .g-head { padding-bottom: var(--g-gap); }
        nav.g-top { padding-bottom: var(--g-gap); }
        .g-path { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.6rem; min-width: 0; }
        .g-path a, .g-path span { overflow-wrap: anywhere; }
        .g-path a { color: rgb(var(--oak-ink-soft)); text-decoration: none; }
        .g-path a:hover { color: rgb(var(--oak-ink)); text-decoration: underline; text-underline-offset: 3px; }
        .g-path [aria-current] { color: rgb(var(--oak-ink)); font-weight: 600; }
        .g-sep { color: rgb(var(--oak-line-strong)); }
        .g-mark { display: inline-flex; align-self: center; font-size: 1.25rem; line-height: 1; color: rgb(var(--oak-ink)) !important; }
        .g-mark svg { display: block; }
        .repo-visibility, .g-note { color: rgb(var(--oak-ink-soft)); font-size: var(--g-fs-small); margin-left: 0.4rem; }
        .g-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1.5rem; }
        .g-links a { color: rgb(var(--oak-ink-soft)); text-decoration: none; }
        .g-links a:hover, .g-links [aria-current] { color: rgb(var(--oak-ink)); text-decoration: underline; text-underline-offset: 3px; }
        .g-inline { display: inline; }

        /* Section links under the path (a repo's tabs, an org's, a settings
           page's sections): words, the current one underlined. A button in
           the row is a link that changes the page in place. */
        /* A repo's intro between the top line and its tabs (description,
           websites), the same on every tab. */
        .g-intro { margin-top: 1.25rem; display: grid; gap: 0.75rem; }
        .g-intro > * { margin: 0; }
        .g-sections { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 1.25rem; }
        .g-tabs { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; }
        .g-tabs > :is(a, button) {
            padding: 0; border: 0; background: none; font: inherit; font-weight: 600; text-align: left;
            color: rgb(var(--oak-ink-soft)); text-decoration: none; cursor: pointer;
        }
        .g-tabs > :is(a, button):hover { color: rgb(var(--oak-ink)); }
        .g-tabs > :is([aria-current], [aria-pressed="true"], [aria-selected="true"], .is-active) {
            color: rgb(var(--oak-ink)); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
        }
        .g-tabs > .g-tab-quiet { font-weight: 400; }
        .g-subtabs { margin-bottom: var(--g-gap); }

        /* The foot: the public site's, centred and small. */
        .g-foot {
            display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline;
            gap: 0.4rem 2.5rem; margin-top: auto; padding-top: 2rem; padding-bottom: 2.25rem;
            font-size: var(--g-fs-small); color: rgb(var(--oak-ink-soft));
        }
        .g-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.25rem; }
        .g-foot a { text-decoration: none; }
        .g-foot a:hover, .g-foot button:hover { color: rgb(var(--oak-ink)); text-decoration: underline; }
        .g-foot button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }

        /* ---- Text ---- */
        /* Headings are sparing: the same size as the text around them, a
           little heavier. A README keeps its own, smaller, scale. */
        body.g :is(h1, h2, h3, h4, h5):not(.markdown-body *) {
            font-size: inherit; line-height: inherit; font-weight: 600; letter-spacing: 0; text-transform: none;
        }
        body.g .markdown-body :is(h1, h2) { border-bottom: 0; padding-bottom: 0; }
        body.g .markdown-body h1 { font-size: 1.25em; }
        body.g .markdown-body h2 { font-size: 1.1em; }
        body.g .markdown-body h3 { font-size: 1em; }
        .g-dim { color: rgb(var(--oak-ink-soft)); }
        .g-small { font-size: var(--g-fs-small); }
        .g-strong, .g-name { font-weight: 600; }
        .g-nowrap { white-space: nowrap; }
        /* A link in running text. Links in lists and rows underline on hover. */
        .g-a, .g-prose a, .g-help a, .g-flash a { text-decoration: underline; text-underline-offset: 3px; }
        a.g-name { text-decoration: none; }
        a.g-name:hover { text-decoration: underline; text-underline-offset: 3px; }
        /* A commit on History: the day heading above it is the bold line. */
        a.hist-msg { text-decoration: none; }
        a.hist-msg:hover { text-decoration: underline; text-underline-offset: 3px; }
        /* The branch it came from counts as short when the line wraps, then
           grows to its full name only if there's room, cut off otherwise
           (the full name is its title), so a long name never pushes the
           rest of the line onto a second one. */
        .hist-branch { flex: 1 1 8ch; min-width: 0; max-width: max-content; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        /* Marks on History, the marks page and a mark's page. --mk-c is the
           owner group's colour. */
        /* A mark: its name in its owner group's colour (`--mk-c`), after a
           dot, so it reads as a label and not as more of the line. */
        a.g-mk-chip { color: rgb(var(--mk-c, var(--oak-ink))); text-decoration: none; white-space: nowrap; }
        a.g-mk-chip::before { content: "\25CF"; font-size: 0.7em; vertical-align: 0.12em; margin-right: 0.4em; }
        a.g-mk-chip:hover { text-decoration: underline; text-underline-offset: 3px; }
        /* A mark log: one line (the toggle, name, headline, who, when) and,
           when there's more to it, its whole text under it, opened from the
           line itself. The toggle is a quiet + or -, empty when there's
           nothing more to open. */
        .g-mk-logs { margin: 0; }
        .g-mk-log > summary { cursor: pointer; list-style: none; }
        .g-mk-log > summary::-webkit-details-marker { display: none; }
        .g-mk-tog { flex: none; width: 1ch; color: rgb(var(--oak-ink-soft)); }
        details.g-mk-log > summary > .g-mk-tog::before { content: "+"; }
        details.g-mk-log[open] > summary > .g-mk-tog::before { content: "\2212"; }
        .g-mk-log > .g-pre { margin: 0.25rem 0 0.75rem calc(1ch + 0.9rem); max-height: 24em; overflow: auto; white-space: pre-wrap; }
        /* A mark's page: the commits it has been at, each with its reports
           under it, indented to its message. */
        .g-mk-step > .g-mk-logs { padding-left: calc(8ch + 0.9rem); }
        .g-mk-note { flex: 0 1 auto; max-width: 30ch; }
        /* Above History's commits: Find a mark, the owner groups, Moved lately. */
        .g-mk-head { display: grid; gap: 0.5rem; margin-bottom: var(--g-gap); }
        .g-mk-head > * { margin: 0; }
        .g-mk-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1.25rem; }
        .g-mk-line > a { text-decoration: none; }
        .g-mk-line > a:hover { text-decoration: underline; text-underline-offset: 3px; }
        .g-mk-line > a.g-a { text-decoration: underline; }
        .g-mk-line > a[aria-current] { font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
        a.g-mk-group { color: rgb(var(--mk-c, var(--oak-ink))); }
        /* History's marks column: the same width on every row, so the marks
           (and the messages after them) line up. */
        .hist-marks { flex: none; width: 21ch; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.9rem; }
        .hist-marks > .g-mk-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
        /* The marks page: name and where in columns, then the message. */
        .g-mk-row > .g-mk-chip { flex: none; width: 21ch; overflow: hidden; text-overflow: ellipsis; }
        .g-mk-row > .g-mk-where { flex: none; width: 11ch; }
        .g-list-tools + .g-table-wrap { margin-top: 1rem; }
        /* A status is a coloured word. */
        .g-ok { color: rgb(var(--oak-green)); }
        .g-warn { color: rgb(var(--oak-amber)); }
        .g-bad { color: rgb(var(--oak-vermilion)); }
        /* What an action answered with, at the top of the page it landed on. */
        .g-flash { margin: 0 0 var(--g-gap); font-weight: 600; }
        .g-flash.is-error { color: rgb(var(--oak-vermilion)); }
        /* A page of prose: the legal pages, an error, a notice. */
        .g-prose { max-width: 38rem; text-wrap: pretty; }
        .g-prose :is(p, ul, ol) { margin: 0 0 0.9rem; }
        .g-prose :is(ul, ol) { padding-left: 1.4rem; list-style: revert; }
        .g-prose li { margin: 0.2rem 0; }
        .g-prose :is(h1, h2, h3) { margin: 0 0 0.5rem; }
        .g-prose section + section, .g-prose * + :is(h2, h3) { margin-top: var(--g-gap); }

        /* ---- Blocks ---- */
        /* A section of a page: its heading, then what follows. Space sets
           one apart from the next. */
        .g-block { margin-top: var(--g-gap); }
        .g-block:first-child { margin-top: 0; }
        .g-stack { display: flex; flex-direction: column; gap: var(--g-gap); }
        .g-stack > .g-block { margin-top: 0; }
        /* A heading with the links that belong to it beside it. */
        .g-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1.25rem; margin: 0 0 0.6rem; font-weight: 600; }
        .g-h > :is(a, button, span, .g-dim) { font-weight: 400; }
        .g-h > a, .g-h > button { color: rgb(var(--oak-ink-soft)); text-decoration: underline; text-underline-offset: 3px; }
        .g-h > a:hover, .g-h > button:hover { color: rgb(var(--oak-ink)); }
        .g-h > a.g-name { font-weight: 600; color: rgb(var(--oak-ink)); text-decoration: none; }
        .g-h > a.g-name:hover { text-decoration: underline; }
        .g-help { margin: 0.2rem 0 0.6rem; max-width: 38rem; font-size: var(--g-fs-small); color: rgb(var(--oak-ink-soft)); }
        .g-empty { max-width: 34rem; color: rgb(var(--oak-ink-soft)); }
        .g-empty :is(h2, h3) { color: rgb(var(--oak-ink)); }
        .g-empty p { margin: 0.25rem 0 0.9rem; }

        /* ---- Lists ---- */
        /* A line per item. `.g-list` for a few fields that can wrap,
           `table.g-table` when the fields line up in columns. The first field
           is the item's name; `.g-end` pushes what follows to the right. */
        .g-list { list-style: none; margin: 0; padding: 0; }
        .g-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 1.25rem; padding: 0.12rem 0; }
        .g-row > .g-end { margin-left: auto; }
        .g-row > .g-grow { flex: 1 1 12rem; min-width: 0; }
        /* A list of items to read, not scan across: each item's title is a
           full-width line of its own, with a quiet small line of details
           under it (`.g-end` pushes the last one right). A thin hairline
           separates items; it's the one ruled list, for long triage queues
           where space alone runs the items together. */
        .g-items { list-style: none; margin: 0; padding: 0; }
        .g-items > li { padding: 0.7rem 0; }
        .g-items > li + li { border-top: 1px solid rgb(var(--oak-line)); }
        .g-item-title { display: block; color: rgb(var(--oak-ink)); text-decoration: none; line-height: 1.5; overflow-wrap: anywhere; }
        a.g-item-title:hover { text-decoration: underline; text-underline-offset: 3px; }
        .g-item-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 1rem; margin-top: 0.2rem; font-size: var(--g-fs-small); color: rgb(var(--oak-ink-soft)); }
        .g-item-meta > .g-end { margin-left: auto; }
        .g-item-status { color: rgb(var(--oak-ink)); }
        .g-mono { font-family: var(--oak-mono); font-variant-numeric: tabular-nums; font-size: var(--g-fs-small); }
        .g-table { width: 100%; border-collapse: collapse; }
        .g-table :is(td, th) { padding: 0.18rem 1.25rem 0.18rem 0; vertical-align: baseline; text-align: left; font-weight: 400; }
        .g-table th { color: rgb(var(--oak-ink-soft)); }
        .g-table :is(td, th):last-child { padding-right: 0; }
        .g-table .g-end { text-align: right; white-space: nowrap; }
        .g-table .g-nowrap { white-space: nowrap; }
        .g-table .g-fill { width: 100%; max-width: 0; }
        .g-table .g-fill > * { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .g-table-wrap { overflow-x: auto; }
        /* A tree of files: folders open and close, the current file is marked. */
        .g-tree :is(a, summary) { padding: 0.05rem 0; }
        .g-tree summary { cursor: pointer; }
        .g-tree a { text-decoration: none; }
        .g-tree a:hover { text-decoration: underline; text-underline-offset: 3px; }
        .g-tree a:is([aria-current], .is-active) { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
        .g-tree-group + .g-tree-group { margin-top: 0.6rem; }
        /* A name that wraps where it must instead of being cut off. */
        .g-break { min-width: 0; overflow-wrap: anywhere; }
        .g-seg { display: inline-block; max-width: 100%; }
        /* Label and value pairs. */
        .g-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.12rem 1.25rem; margin: 0; }
        .g-dl dt { color: rgb(var(--oak-ink-soft)); }
        .g-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
        /* The repo lists (home, an org's page, Explore). */
        .g-repos { width: 100%; border-collapse: collapse; }
        .g-repos td { padding: 0.18rem 1.25rem 0.18rem 0; vertical-align: baseline; white-space: nowrap; }
        .g-repos td:last-child { padding-right: 0; }
        .g-repo-name a { text-decoration: none; }
        .g-repo-name a:hover .g-name { text-decoration: underline; text-underline-offset: 3px; }
        .g-repo-desc { width: 100%; max-width: 0; color: rgb(var(--oak-ink-soft)); }
        .g-repo-desc span { display: block; overflow: hidden; text-overflow: ellipsis; }
        .g-repo-vis, .g-repo-when { color: rgb(var(--oak-ink-soft)); }
        .g-repo-vis a { text-decoration: none; }
        .g-repo-vis a:hover { text-decoration: underline; }
        .g-repo-when { text-align: right; }
        @media (max-width: 640px) {
            .g-repo-desc, .g-repo-vis { display: none; }
        }

        /* ---- Controls ---- */
        /* Things you type in or press are the only things with an outline,
           as the install command is on the home page. */
        body.g :is(input:not([type="checkbox"], [type="radio"], [type="file"], [type="range"], [type="color"]), select, textarea) {
            padding: 0.3rem 0.55rem; border: 1px solid rgb(var(--oak-line-strong)); border-radius: 0;
            background-color: rgb(var(--oak-paper)); color: rgb(var(--oak-ink)); font: inherit; box-shadow: none;
        }
        /* A picker's chevron (tailwind/input.css) gets room of its own, so a
           choice never runs under it. */
        body.g select:not([multiple]):not([size]) { padding-right: 1.9rem; background-position: right 0.5rem center; background-size: 0.85rem 0.85rem; }
        body.g :is(input, select, textarea):focus { border-color: rgb(var(--oak-ink)); outline: none; }
        body.g :is(input, select, textarea)[readonly], body.g :is(input, select, textarea, button):disabled { color: rgb(var(--oak-ink-soft)); }
        body.g textarea { display: block; width: 100%; }
        /* A filter box in a row of links: outlined like any input, but no
           taller than the words beside it. */
        body.g input.g-filter {
            padding: 0 0.45rem; line-height: inherit; border: 1px solid rgb(var(--oak-line-strong));
            background-color: rgb(var(--oak-paper));
        }
        body.g input.g-filter { width: 11rem; max-width: 100%; }
        body.g input.g-filter:focus { border-color: rgb(var(--oak-ink)); }
        .g-input { width: 100%; }
        /* A button is an outlined word that fills when you point at it. */
        .g-btn {
            display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.65rem;
            border: 1px solid rgb(var(--oak-ink)); background: rgb(var(--oak-paper)); color: rgb(var(--oak-ink));
            font: inherit; font-size: var(--g-fs-small); font-weight: 600; line-height: 1.4; white-space: nowrap;
            text-decoration: none; cursor: pointer;
        }
        .g-btn:hover, .g-btn.is-active { background: rgb(var(--oak-ink)); color: rgb(var(--oak-paper)); }
        .g-btn:disabled { border-color: rgb(var(--oak-line-strong)); color: rgb(var(--oak-ink-soft)); background: rgb(var(--oak-paper)); cursor: default; }
        .g-btn.is-danger { border-color: rgb(var(--oak-vermilion)); color: rgb(var(--oak-vermilion)); }
        .g-btn.is-danger:hover { background: rgb(var(--oak-vermilion)); color: rgb(var(--oak-paper)); }
        .g-btn.is-go { border-color: var(--oak-brand); color: var(--oak-brand); }
        .g-btn.is-go:hover { background: var(--oak-brand); color: rgb(var(--oak-paper)); }
        /* A button that reads as a link: the lesser action beside a button,
           or one in a line of text. */
        .g-link {
            padding: 0; border: 0; background: none; font: inherit; color: rgb(var(--oak-ink-soft));
            text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
        }
        .g-link:hover { color: rgb(var(--oak-ink)); }
        .g-link.is-danger { color: rgb(var(--oak-vermilion)); }
        .g-links .g-link, .g-tabs .g-link { text-decoration: none; }
        .g-links .g-link:hover { text-decoration: underline; }
        /* A form: fields stacked, each a label over its control, then the
           actions in a row. */
        .g-form { display: flex; flex-direction: column; gap: 0.9rem; max-width: 34rem; }
        .g-form.is-wide { max-width: none; }
        .g-field { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
        .g-field > label, .g-label { color: rgb(var(--oak-ink-soft)); }
        .g-field > .g-help { margin: 0; }
        .g-check { display: flex; align-items: baseline; gap: 0.5rem; }
        .g-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
        /* A control and its button on one line (rename, add a member). */
        .g-inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; max-width: 34rem; }
        /* The tools for the list under a row of links (a filter box, New repo), at the row's end. */
        /* The buttons that get a repo, on the Files listing. */
        .g-get { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
        .g-list-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
        /* Under the home page's org row, from the left: Filter, New repo,
           Org Settings. */
        .g-home-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; margin-top: 1rem; }
        .g-inline-form > :is(input, select) { flex: 1 1 12rem; min-width: 0; }
        /* A picker keeps the width of its longest choice rather than cutting it off. */
        .g-inline-form > select { flex: 0 0 auto; }
        /* A stack of inline forms under a list (a group's Add, Add agent,
           New sub-group): the fields share one width so the buttons line up. */
        .g-forms { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; margin-top: 0.75rem; }
        .g-forms > .g-inline-form { flex-wrap: nowrap; max-width: none; }
        .g-forms > .g-inline-form > :is(input:not([type=checkbox]), select) { flex: 0 0 16rem; width: 16rem; }
        /* A destructive action that ends a block (Delete group), on its own line. */
        .g-delete { margin-top: 0.75rem; }
        /* An inline form that may use the whole column (a URL and a secret). */
        .g-inline-form.g-inline-wide { max-width: none; }
        /* Settings as label and control pairs: a `.g-dl` whose values are
           inline forms, with a line of help under one where it needs it. */
        .g-dl.g-settings { gap: 0.9rem 1.5rem; align-items: baseline; }
        .g-dl.g-settings dd > .g-help { margin: 0.3rem 0 0; }
        .g-dl.g-settings .g-inline-form { flex-wrap: nowrap; }
        /* A table whose cells are controls, edited in place (Settings →
           Access): the controls fill their cells and keep a usable width. */
        .g-table-edit td { vertical-align: middle; padding-top: 0.25rem; padding-bottom: 0.25rem; }
        .g-table-edit td :is(input:not([type=checkbox]), select) { width: 100%; min-width: 6.5rem; }
        .g-table-edit td:first-child :is(input, select) { min-width: 8rem; }
        /* Who can reach a repo (Settings → Access): a line per group or
           person, each group's members under it, edited in place, then the
           forms to add more (a `.g-forms`). */
        .g-access-who > li + li { margin-top: 0.6rem; }
        .g-access-who .g-row > select { flex: 0 0 auto; }
        .g-access-members { margin: 0.15rem 0 0 1.5rem; }
        .g-table-edit td input[type=checkbox] { vertical-align: middle; }
        /* A command to copy, as on the home page. */
        .g-cmd { display: inline-flex; align-items: center; gap: 0.5rem; max-width: 100%; padding: 0.4rem 0.5rem 0.4rem 0.8rem; border: 1px solid rgb(var(--oak-line-strong)); }
        .g-cmd code { white-space: nowrap; overflow-x: auto; }
        /* A `.g-cmd` that is itself the button: click the line to copy it. */
        button.g-cmd { background: none; font: inherit; color: inherit; text-align: left; cursor: copy; }
        button.g-cmd code { white-space: normal; overflow-wrap: anywhere; }
        button.g-cmd:hover { border-color: rgb(var(--oak-ink)); }
        /* A log is a terminal surface (`.term-surface`): this is its padding. */
        .g-log { margin: 0.25rem 0 0.5rem; padding: 0.6rem 0.9rem; }
        .g-pre { display: block; max-width: 100%; margin: 0; padding: 0.6rem 0.9rem; overflow-x: auto; border: 1px solid rgb(var(--oak-line-strong)); }
        body.g code:not(pre code, .markdown-body code) { font: inherit; }

        /* A person's picture: round, sized by the place that shows it. */
        .g-avatar { display: inline-block; flex: none; overflow: hidden; border-radius: 50%; vertical-align: middle; }
        img.g-avatar, .g-avatar > :is(img, svg) { display: block; width: 100%; height: 100%; object-fit: cover; }

        /* How far along something is: an ink bar in an outline. */
        .g-meter { display: block; width: 100%; height: 0.5rem; appearance: none; border: 1px solid rgb(var(--oak-line-strong)); background: none; }
        .g-meter::-webkit-progress-bar { background: none; }
        .g-meter::-webkit-progress-value { background: rgb(var(--oak-ink)); }
        .g-meter::-moz-progress-bar { background: rgb(var(--oak-ink)); }

        /* Somewhere to drop a file: outlined while one is held over it. */
        .g-drop.is-over { outline: 1px solid rgb(var(--oak-ink)); outline-offset: 0.4rem; }

        /* ---- The sign-in pages ---- */
        /* Log in, sign up, password reset, authorizing the CLI: a narrow
           column in the middle of the wall, centred the way the home page's
           install command is, with room between its parts. The heading, the
           notes and the line under the form are centred; the form keeps its
           labels on the left, and its button fills the column. */
        body.g > main.g-auth {
            max-width: 25rem; display: flex; flex-direction: column; gap: 1.75rem;
            padding-top: clamp(1rem, 9vh, 5.5rem); text-align: center;
        }
        .g-auth > * { margin: 0; }
        .g-auth > :empty { display: none; }
        .g-auth > .g-h { display: block; }
        .g-auth > .g-help { max-width: none; }
        .g-auth :is(.g-form, .g-dl, .g-field) { text-align: left; }
        .g-auth .g-form { max-width: none; gap: 1.1rem; }
        .g-auth .g-field { gap: 0.35rem; }
        body.g .g-auth :is(input:not([type="checkbox"], [type="radio"], [type="hidden"]), textarea) { padding: 0.5rem 0.65rem; }
        .g-auth .g-btn { justify-content: center; padding: 0.5rem 0.65rem; font-size: inherit; }
        .g-auth .g-actions { flex-direction: column; align-items: stretch; gap: 0.9rem; text-align: center; }
        .g-auth .g-form > .g-help { max-width: none; text-align: center; }
        .g-auth-or { color: rgb(var(--oak-ink-soft)); }
        /* A label with a link at the other end of its line ("Forgot password?"). */
        .g-field-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 1rem; }
        .g-field-head > :is(label, a) { color: rgb(var(--oak-ink-soft)); }
        .g-field-head > a:hover { color: rgb(var(--oak-ink)); }

        /* ---- Things that float over the page ---- */
        /* The batch-merge bar, the hint shown while a file is dragged over
           the home page: paper with an ink outline. Nothing here is a modal. */
        .g-dialog, .g-float { border: 1px solid rgb(var(--oak-ink)); background: rgb(var(--oak-paper)); }
        .g-dialog { width: 100%; max-width: 30rem; padding: 1.5rem; }
        /* A form that takes the page's place while it shows ([data-view]):
           an import, a typed confirmation. Never a modal. */
        .g-view-body { max-width: 34rem; }
        .g-view-body > .g-h:first-child { margin-bottom: 1rem; }

        /* ---- The repo page (`repo_pages::overview`) ---- */
        .repo-pane { display: block; }
        .repo-ov-main { display: flex; flex-direction: column; gap: var(--g-gap); min-width: 0; }
        .repo-ov-main > :empty { display: none; }
        .repo-ov-pin { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: 0; }
        .repo-ov-pin a { text-decoration: underline; text-underline-offset: 3px; }
        .g-about { max-width: 34rem; text-wrap: pretty; }
        .g-about p { margin: 0; }
        .g-about p + p { margin-top: 0.4rem; }
        /* Two sides: a list on the left (a folder's files, a branch's changed
           files), what was picked from it on the right. Stacked on a phone,
           the picked file first once there is one. */
        .g-split { display: grid; gap: var(--g-gap) 0.75rem; align-items: start; }
        .g-split-side, .g-split-main { min-width: 0; }
        /* The divider between the sides (added by `CHROME_SCRIPTS`): drag it,
           or focus it and use the arrow keys, to widen the list; double-click
           puts it back. The width is remembered. */
        .g-split-handle { display: none; }
        @media (min-width: 900px) {
            .g-split { grid-template-columns: var(--g-split-side, 13rem) 1rem minmax(0, 1fr); }
            .g-split > .g-split-side { grid-column: 1; position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
            .g-split > .g-split-main { grid-column: 3; }
            .g-split-handle {
                display: block; grid-column: 2; grid-row: 1; align-self: stretch; cursor: col-resize; touch-action: none;
                background: linear-gradient(rgb(var(--oak-line)), rgb(var(--oak-line))) center / 1px 100% no-repeat;
            }
            .g-split-handle:hover, .g-split-handle:focus-visible, .g-split-handle.is-dragging {
                background-image: linear-gradient(rgb(var(--oak-ink)), rgb(var(--oak-ink)));
            }
        }
        @media (max-width: 899px) { .g-split.is-file > .g-split-main { order: -1; } }
        .g-split-main > * + * { margin-top: var(--g-gap); }
        /* The list's own scrollbar is thin and quiet, a line-coloured thumb on
           no track. Only a list's inner scroll is styled: the page's
           scrollbar stays the browser's own. */
        .g-split-side { scrollbar-width: thin; scrollbar-color: rgb(var(--oak-line)) transparent; }
        .g-split-side:hover { scrollbar-color: rgb(var(--oak-line-strong)) transparent; }
        @supports not (scrollbar-color: auto) {
            .g-split-side::-webkit-scrollbar { width: 6px; height: 6px; }
            .g-split-side::-webkit-scrollbar-track { background: transparent; }
            .g-split-side::-webkit-scrollbar-thumb { background: rgb(var(--oak-line)); }
            .g-split-side:hover::-webkit-scrollbar-thumb { background: rgb(var(--oak-line-strong)); }
        }
        /* A branch's actions, first on its page. */
        .g-detail-actions { margin-bottom: 1rem; }
        /* Files: a line per entry. Name, then who owns it when path rules are
           on. The open file is marked. */
        .repo-ov-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 1.25rem; align-items: baseline; padding: 0.05rem 0; min-height: 24px; }
        .repo-ov-row[aria-current] .repo-ov-name { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
        .repo-ov-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .repo-ov-row.is-dir .repo-ov-name { font-weight: 600; }
        .repo-ov-row.is-dir .repo-ov-name::after { content: "/"; }
        a.repo-ov-row:hover .repo-ov-name { text-decoration: underline; text-underline-offset: 3px; }
        /* The Files tree: folders open in place, their entries a step in.
           Names wrap rather than cut off; a folder chain breaks only after a
           `/`. The quiet marker in the gutter says open or closed. */
        .repo-ov-tree { padding-left: 1.1em; }
        .repo-ov-tree .repo-ov-name { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
        .repo-ov-tree .repo-ov-row.is-dir .repo-ov-name::after { content: none; }
        .repo-ov-dir > summary { position: relative; cursor: pointer; }
        .repo-ov-dir > summary::before { content: "\25B8"; position: absolute; left: -1.1em; color: rgb(var(--oak-ink-soft)); }
        .repo-ov-dir[open] > summary::before { content: "\25BE"; }
        .repo-ov-dir > summary:hover .repo-ov-name { text-decoration: underline; text-underline-offset: 3px; }
        .repo-ov-kids { padding-left: 1.25rem; }
        .repo-ov-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
        .repo-ov-head { display: grid; gap: 0.75rem; }
        .repo-ov-head:empty { display: none; }
        .repo-ov-crumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.5rem; color: rgb(var(--oak-ink-soft)); }
        .repo-ov-crumbs a:hover { color: rgb(var(--oak-ink)); text-decoration: underline; }
        .repo-ov-crumbs strong { color: rgb(var(--oak-ink)); font-weight: 600; }
        .repo-ov-readme, .repo-ov-file { min-width: 0; }
        /* Rendered Markdown on Files keeps to the reading column too. */
        .g-split-main .markdown-body { max-width: var(--g-col); }
        /* Overview's README is the page: whatever header a non-Markdown
           preview brings stays out of it. */
        .repo-ov-readme.is-bare [data-oak-file-header-actions] { display: none; }
        /* On Files the listing already names the open file: its header keeps
           only its switches (Rendered | Source) and actions, at
           the right. */
        .repo-ov-file [data-oak-file-header-actions] { justify-content: flex-end; }
        .repo-ov-file [data-oak-file-header-actions] > :is(.file-icon, .g-name, .g-dim) { display: none; }
        /* A file whose preview is a frame (a PDF) needs a height of its own. */
        .repo-ov-file > .oak-frame-preview { min-height: 70vh; }
        /* Code wider than its view: the cut-off side shades in
           (`CHROME_SCRIPTS` marks `is-clip-l` / `is-clip-r`), and Wrap folds
           long lines instead. */
        /* State set by script over code blocks whose own styles reset their
           background, hence !important. */
        .is-clip-r { background-image: linear-gradient(to left, rgb(var(--oak-ink) / .06), transparent 1rem) !important; }
        .is-clip-l { background-image: linear-gradient(to right, rgb(var(--oak-ink) / .06), transparent 1rem) !important; }
        .is-clip-l.is-clip-r { background-image: linear-gradient(to left, rgb(var(--oak-ink) / .06), transparent 1rem), linear-gradient(to right, rgb(var(--oak-ink) / .06), transparent 1rem) !important; }
        .is-wrapped pre, .is-wrapped pre.whitespace-pre { white-space: pre-wrap; overflow-wrap: anywhere; }
        /* A form that is one control and its button stays on its line in a row. */
        .g-row .g-inline-form { flex-wrap: nowrap; max-width: none; }

        /* ---- Phones ---- */
        /* The same wall on a narrow screen: the text a step larger (13px
           monospace is hard to read held in a hand), the gutter narrower,
           and anything laid out in columns becomes lines. Inputs are 16px
           so iOS Safari doesn't zoom the page when one takes focus
           (`tailwind/input.css` has the same rule, but `font: inherit`
           above would win over it). */
        @media (max-width: 640px) {
            :root { --g-fs: 0.875rem; --g-fs-small: 0.8125rem; --g-gutter: 1rem; --g-gap: 2rem; }
            body.g :is(input:not([type="checkbox"], [type="radio"], [type="file"], [type="range"], [type="color"], [type="submit"], [type="button"]), select, textarea) { font-size: 16px; }
            body.g input.g-filter { width: 12rem; padding: 0.15rem 0.5rem; }
            .g-access-members { margin-left: 0.75rem; }

            /* Tabs and section links: a little closer together, and more
               room between lines so each is easy to tap. */
            .g-tabs { gap: 0.6rem 1.25rem; }
            .g-sections { justify-content: flex-start; gap: 0.6rem 1.25rem; }
            .g-sections > .g-tabs { display: contents; }
            .g-links { gap: 0.4rem 1.25rem; }
            .g-foot { gap: 0.5rem 1.5rem; }
            .g-foot nav { gap: 0.4rem 1.25rem; }

            /* A line of fields: the item's name takes the line, the rest
               (who, when, a hash) follow on the next. */
            .g-row { gap: 0 0.9rem; padding: 0.3rem 0; }
            /* History on a phone: the message gets the first line, then the
               marks, where it came from and when; the hash and author are
               on the commit's page. */
            .hist-row > .hist-msg { order: -1; }
            .hist-row > .hist-marks { width: auto; max-width: 60%; }
            .hist-row > .hist-marks:empty, .hist-row > .hist-hash, .hist-row > .hist-author { display: none; }
            /* A mark on the marks page: its name, where it is and when on
               one line, the commit's message under it. */
            .g-mk-row > .g-mk-chip, .g-mk-row > .g-mk-where { width: auto; }
            .g-mk-row > .g-grow { order: 2; }
            .g-mk-row > .g-mk-hash { display: none; }
            .g-row > .g-grow { flex-basis: 100%; }
            .g-row > :not(.g-grow):not(.g-end) { font-size: var(--g-fs-small); }
            .g-row > .g-grow ~ .g-end { font-size: var(--g-fs-small); }

            /* The repo lists: the name on a line of its own (whole, not cut
               off), then when it changed and Pin under it. */
            .g-repos, .g-repos tbody { display: block; }
            .g-repos tr {
                display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline;
                gap: 0 1.25rem; padding: 0.35rem 0;
            }
            .g-repos td { padding: 0; }
            .g-repos td.g-repo-name { grid-column: 1 / -1; white-space: normal; overflow-wrap: anywhere; }
            .g-repos td.g-repo-when { text-align: left; font-size: var(--g-fs-small); }
            .g-repos td.g-repo-act { font-size: var(--g-fs-small); }
            .g-repos td.g-repo-act:empty { display: none; }

            /* Settings as label and control pairs: the label over its
               control, so the control gets the whole width. */
            .g-dl.g-settings { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
            .g-dl.g-settings dd { margin-bottom: 1rem; }
            .g-dl.g-settings .g-inline-form { flex-wrap: wrap; max-width: none; }

            /* A stack of forms: each field takes the width, its button under it. */
            .g-forms { align-items: stretch; }
            .g-forms > .g-inline-form { flex-wrap: wrap; }
            .g-forms > .g-inline-form > :is(input:not([type=checkbox]), select) { flex: 1 1 100%; width: auto; }

            /* Label and value pairs stay side by side only while both fit. */
            .g-dl:not(.g-settings) { gap: 0.15rem 1rem; }

            /* A form's buttons: a size you can hit with a thumb. */
            .g-btn { padding: 0.45rem 0.8rem; }
        }
        /* A branch's or commit's changed files, a run's jobs: stacked on a
           phone, a long list would push what was picked a long way down the
           page, so the list scrolls in a box of its own (the Files listing
           doesn't: there the list is what you came for). */
        @media (max-width: 899px) {
            .g-split:not(.is-files) > .g-split-side { max-height: 45vh; overflow-y: auto; }
        }


        @font-face { font-family: 'seti'; src: url('/seti.woff?v=9782730d') format('woff'); font-display: block; }
        .file-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            width: 1rem;
            height: 1rem;
            font-family: 'seti';
            font-size: 21px;
            font-style: normal;
            font-weight: normal;
            line-height: 1;
            -webkit-font-smoothing: antialiased;
            user-select: none;
            color: var(--fi-light, currentColor);
        }
        html.dark .file-icon { color: var(--fi-dark, currentColor); }
