:root, .app-shell {
  --bg: #f6f3ea;
  --surface: #fffcf5;
  --surface-2: #e9ecdf;
  --surface-3: #eff0e7;
  --border: #b8c0ae;
  --text: #283e34;
  --muted: #535f54;
  --accent: #48664b;
  --accent-2: #48664b;
  --accent-contrast: #fffcf5;
  --forest: #243f34;
  --tree-text: #e7ecdf;
  --tree-muted: #bacab8;
  --tree-border: #607166;
  --tree-hover: #365447;
  --tree-selected: #dae4d1;
  --tree-selected-text: #243f34;
  --tree-focus: #dae4d1;
  --hover: #e9ecdf;
  --selected: #dce5d5;
  --focus: #48664b;
  --primary-bg: #243f34;
  --primary-text: #fffcf5;
  --success: #41683f;
  --danger: #963e2b;
  --info: #315f52;
  --code-bg: #eff0e7;
  --code-text: #283e34;
  --code-gutter: #59615b;
  --code-keyword: #8b4933;
  --code-function: #69552c;
  --code-string: #41683f;
  --code-comment: #59615b;
  --code-literal: #7b5200;
  --code-type: #315f52;
  --code-property: #586431;
  --code-tag: #8b4933;
  --code-attribute: #7b5200;
  --code-selection: #dce5d5;
  --code-selection-strong: #cfddc7;
  --diff-add-bg: #dce8d5;
  --diff-delete-bg: #f0ddd3;
  --diff-hunk-bg: #e5e5d6;
  --diff-hunk-text: #535b3c;
  --diff-line-number: #59615b;
  --media-bg: #182b23;
  --shadow: none;
  --backdrop: rgba(24, 43, 35, .6);
  color-scheme: light;
}
:root[data-theme="dark"], .app-shell[data-theme="dark"] {
  --bg: #1c1b19;
  --surface: #272623;
  --surface-2: #32312d;
  --surface-3: #22211f;
  --border: #68645d;
  --text: #f2f0eb;
  --muted: #c3bfb6;
  --accent: #b3c99d;
  --accent-2: #b3c99d;
  --accent-contrast: #1c1b19;
  --forest: #242320;
  --tree-text: #f2f0eb;
  --tree-muted: #c3bfb6;
  --tree-border: #68645d;
  --tree-hover: #373530;
  --tree-selected: #b3c99d;
  --tree-selected-text: #20251c;
  --tree-focus: #d0dfbf;
  --hover: #3a3833;
  --selected: #394332;
  --focus: #c3d6ae;
  --primary-bg: #b3c99d;
  --primary-text: #20251c;
  --success: #b4cea2;
  --danger: #e8aaa0;
  --info: #aec5dc;
  --code-bg: #22211f;
  --code-text: #f2f0eb;
  --code-gutter: #b5afa4;
  --code-keyword: #d4b3d9;
  --code-function: #e2c28e;
  --code-string: #b4cea2;
  --code-comment: #b5afa4;
  --code-literal: #e1b296;
  --code-type: #aec5dc;
  --code-property: #d9d4c8;
  --code-tag: #d4b3d9;
  --code-attribute: #e2c28e;
  --code-selection: #394332;
  --code-selection-strong: #46533d;
  --diff-add-bg: #303c2b;
  --diff-delete-bg: #46312c;
  --diff-hunk-bg: #30353b;
  --diff-hunk-text: #c3cddd;
  --diff-line-number: #c3bfb6;
  --media-bg: #171614;
  --shadow: none;
  --backdrop: rgba(15, 14, 12, .75);
  color-scheme: dark;
}

.app-shell { min-height: 100vh; background: var(--bg); color: var(--text); }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ubuntu/Ubuntu-Regular-latin.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/space-mono/i7dPIFZifjKcF5UAWdDRYEF8RQ.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/space-mono/i7dMIFZifjKcF5UAWdDRaPpZUFWaHg.woff2") format("woff2"); }
:root { font-family: "Ubuntu", Arial, sans-serif; font-synthesis: none; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-width: 0; min-height: 100vh; background: var(--bg); color: var(--text); }
button, input { font: inherit; }
a { color: inherit; }
.boot { display: grid; min-height: 100vh; place-items: center; color: var(--muted); }
.skip-link { position: fixed; top: .6rem; left: .6rem; z-index: 30; padding: .7rem 1rem; transform: translateY(-150%); border-radius: .5rem; background: var(--accent); color: var(--bg); }
.skip-link:focus { transform: none; }
.wordmark { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.wordmark strong, .wordmark small { display: block; line-height: 1.08; }
.topnav a, .topnav button { min-height: 2.65rem; padding: .6rem .75rem; border: 1px solid transparent; border-radius: .55rem; background: transparent; color: var(--muted); text-decoration: none; cursor: pointer; }
.nav-link { display: inline-flex; align-items: center; gap: .45rem; }
.lucide { width: 1.05rem; height: 1.05rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mark .lucide { width: 1.35rem; height: 1.35rem; }
.topnav a:hover, .topnav button:hover { background: var(--hover); color: var(--text); }
.breadcrumbs a { color: var(--accent); text-decoration: none; }
.crumb-separator { opacity: .45; }
.eyebrow { color: var(--accent); font: 700 .72rem "Space Mono", monospace; letter-spacing: .16em; text-transform: uppercase; }
.section { display: grid; gap: 1rem; }
.section-heading, .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.section-heading h2, .panel-heading h2 { margin: 0; font-size: 1rem; letter-spacing: -.01em; }
.section-heading span, .panel-heading span { color: var(--muted); font: .8rem "Space Mono", monospace; }
.repo-search { width: min(24rem, 45vw); margin-left: auto; padding: .72rem .9rem; border: 1px solid var(--border); border-radius: .25rem; background: var(--surface-3); color: var(--text); transition: background .16s ease, box-shadow .16s ease; }
.repo-search:focus { background: var(--surface); box-shadow: var(--shadow); }
.repo-search::placeholder { color: var(--muted); }
.repo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: .9rem; }
.repo-card-title { align-self: start; margin: 0 0 .55rem; color: var(--text); font-size: 1.4rem; font-weight: 750; letter-spacing: -.03em; text-decoration: none; }
.repo-card-title:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.repo-preview { display: block; min-width: 0; margin: .25rem 0 1rem; }
.repo-preview img { display: block; width: 100%; height: auto; aspect-ratio: 784 / 471; object-fit: contain; border: 1px solid var(--border); border-radius: .25rem; }
.repo-card:has(.repo-preview) { align-content: start; }
.repo-card > p { margin: 0; color: var(--muted); line-height: 1.55; }
.repo-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1.2rem; color: var(--muted); font-size: .8rem; }
.repo-meta code, code { font-family: "Space Mono", monospace; }
.latest { display: grid; align-self: end; gap: .2rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.latest strong { overflow: hidden; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.latest span { color: var(--muted); font-size: .8rem; }
.card-feature-actions, .page-feature-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.card-feature-actions { align-self: end; padding-top: 1rem; border-top: 1px solid var(--border); }
.feature-button { background: var(--surface-2); color: var(--accent); font-weight: 700; }
.feature-button:hover { background: var(--surface-2); }
.external-indicator { width: .78rem; height: .78rem; opacity: .8; }
.page-header-icon { display: grid; width: 3.25rem; height: 3.25rem; place-items: center; border: 1px solid var(--accent); border-radius: .85rem; color: var(--accent); }
.page-header-icon .lucide { width: 1.5rem; height: 1.5rem; }
.page-header-copy { min-width: 0; }
.page-feature-actions { grid-column: 2; }
.page-header h1, .file-header h1, .commit-header h1 { margin: .45rem 0 .7rem; font-size: clamp(2rem, 4vw, 3.8rem); letter-spacing: -.055em; line-height: 1; }
.page-header p { max-width: 720px; margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.6; }
.repository-overview-header { display: grid; gap: .25rem; }
.repository-summary-icon { display: grid; width: 2.2rem; height: 2.2rem; flex: 0 0 auto; place-items: center; border: 1px solid var(--border); border-radius: .6rem; background: var(--surface-2); color: var(--accent); }
.repo-nav a[aria-current="page"] { border-color: var(--accent); color: var(--text); }
.split-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, .75fr); gap: 1rem; align-items: start; }
.panel { overflow: hidden; border: 1px solid var(--border); border-radius: 1rem; background: var(--surface); box-shadow: var(--shadow); }
.about-panel > p { padding: 0 1.15rem; color: var(--muted); line-height: 1.6; }
.about-feature-actions { display: grid; gap: .5rem; padding: 0 1rem .2rem; }
.about-feature-actions .button { min-height: 2.35rem; justify-content: flex-start; padding: .45rem .65rem; font-size: .78rem; }
.clone-box { display: block; overflow: auto; margin: 1rem; padding: .8rem; border: 1px solid var(--border); border-radius: .5rem; background: var(--bg); color: var(--accent); font-size: .78rem; white-space: nowrap; }
.clone-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; margin: 1rem; overflow: hidden; border: 1px solid var(--border); border-radius: .55rem; background: var(--bg); }
.clone-control code { overflow: hidden; padding: .8rem; color: var(--accent); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.icon-copy-button { display: grid; min-width: 2.85rem; place-items: center; border: 0; border-left: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; }
.icon-copy-button:hover { background: var(--surface-2); color: var(--accent); }
.media-panel { display: grid; }
.media-copy { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; }
.media-copy p { margin: 0; color: var(--muted); }
.media-panel video { display: block; width: 100%; max-height: min(72vh, 52rem); border-top: 1px solid var(--border); background: var(--media-bg); }
.readme-content h1, .readme-content h2 { line-height: 1.25; padding-bottom: .45rem; border-bottom: 1px solid var(--border); letter-spacing: -.035em; }
.readme-content h2 { margin-top: 2rem; font-size: 1.45rem; }
.readme-content h3 { margin-top: 1.7rem; }
.readme-content p, .readme-content li, .readme-content blockquote { color: var(--muted); }
.readme-content a { color: var(--accent); text-underline-offset: .18em; }
.readme-content :not(pre) > code { padding: .12rem .3rem; border-radius: .3rem; background: var(--surface-2); font-size: .86em; }
.readme-content blockquote { margin-left: 0; padding-left: 1rem; border-left: 3px solid var(--border); }
.readme-code-toolbar { display: flex; min-height: 3rem; align-items: center; justify-content: space-between; gap: 1rem; padding: .35rem .45rem .35rem .85rem; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.readme-code-title, .readme-code-actions { display: inline-flex; align-items: center; gap: .55rem; }
.readme-code-title { color: var(--text); }
.readme-code-title strong { font-size: .78rem; letter-spacing: .01em; }
.readme-code-language { color: var(--muted); font: 700 .68rem "Space Mono", monospace; letter-spacing: .05em; text-transform: uppercase; }
.code-copy-button { display: grid; width: 2.75rem; height: 2.75rem; padding: 0; place-items: center; border: 1px solid transparent; border-radius: .45rem; background: transparent; color: var(--muted); cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.code-copy-button:hover { border-color: var(--border); background: var(--hover); color: var(--accent); }
.code-copy-button[data-copy-state="success"] { border-color: var(--border); background: var(--surface-2); color: var(--accent); }
.code-copy-button[data-copy-state="error"] { border-color: var(--border); background: var(--surface-2); color: var(--danger); }
.readme-code { max-width: 100%; margin: 0; overflow: auto; padding: 1rem; border: 0; border-radius: 0; background: var(--code-bg); color: var(--code-text); font: .82rem/1.65 "Space Mono", monospace; tab-size: 2; white-space: pre; }
.readme-code:focus-visible { outline-offset: -3px; }
.readme-table-wrap { overflow-x: auto; margin: 1rem 0; }
.readme-table { width: 100%; min-width: 36rem; overflow-wrap: normal; border-collapse: collapse; font-size: .88rem; }
.readme-table th, .readme-table td { padding: .65rem .75rem; border: 1px solid var(--border); text-align: left; }
.readme-table th { background: var(--surface-2); }
.readme-table td:not(:first-child) { font-variant-numeric: tabular-nums; }
.readme-image { display: block; max-width: 100%; max-height: 38rem; margin: 1rem auto; object-fit: contain; }
.readme-image[src$="/assets/branding/neuralyzed-logo.png"] { width: auto; height: auto; max-height: 8rem; margin: .5rem auto; }
.file-finder { width: min(720px, calc(100vw - 2rem)); max-height: min(720px, calc(100vh - 2rem)); padding: 0; border: 1px solid var(--border); border-radius: 1rem; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.file-finder::backdrop { background: var(--backdrop); backdrop-filter: blur(5px); }
.file-finder header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border-bottom: 1px solid var(--border); }
.file-finder h2 { margin: .2rem 0 0; font-size: 1.15rem; }
.file-finder-input { width: calc(100% - 2rem); margin: 1rem; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: .55rem; background: var(--bg); color: var(--text); }
.file-finder-results { display: grid; overflow: auto; max-height: 28rem; padding: 0 1rem 1rem; }
.file-finder-result { overflow: hidden; padding: .7rem .8rem; border-radius: .4rem; color: var(--text); font: .8rem "Space Mono", monospace; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.file-finder-result:hover { background: var(--surface-2); color: var(--accent); }
.finder-hint { margin: 0; padding: .8rem; color: var(--muted); font-size: .8rem; }
.ref-switcher { width: min(620px, calc(100vw - 2rem)); max-height: min(720px, calc(100vh - 2rem)); padding: 0; border: 1px solid var(--border); border-radius: 1rem; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.ref-switcher::backdrop { background: var(--backdrop); backdrop-filter: blur(5px); }
.ref-switcher header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border-bottom: 1px solid var(--border); }
.ref-switcher h2 { margin: .2rem 0 0; font-size: 1.15rem; }
.ref-switcher-list { display: grid; overflow: auto; max-height: 32rem; padding: .65rem; }
.ref-switcher-row { display: grid; min-height: 2.9rem; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .55rem .65rem; border-radius: .45rem; color: inherit; text-decoration: none; }
.ref-switcher-row:hover { background: var(--hover); }
.ref-switcher-row.current { background: var(--selected); }
.ref-switcher-row.current { box-shadow: inset 2px 0 var(--accent); }
.ref-switcher-row code { color: var(--muted); font-size: .72rem; }
.ref-switcher-all { padding: .8rem; color: var(--accent); font-size: .8rem; text-align: center; }
.tree-list, .commit-list, .refs-list, .changes-list { display: grid; }
.tree-list { container: files / inline-size; --file-columns: 1.25rem minmax(0, 1fr) minmax(0, 1.15fr) 7rem; }
.tree-columns { display: grid; grid-template-columns: var(--file-columns); gap: .75rem; padding: .55rem 1rem .5rem; border-bottom: 1px solid var(--border); color: var(--muted); font-size: .75rem; }
.tree-columns::before { content: ""; }
.tree-columns > span:last-child, .file-date { text-align: right; }
.file-name, .file-commit { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; text-decoration: none; font-weight: 400; }
.file-name:hover, .file-commit:hover { text-decoration: underline; }
.file-commit { text-align: left; }
.file-date { white-space: nowrap; }
.file-commit, .file-date { color: var(--muted); font-size: .875rem; }
.latest-commit:hover { background: var(--surface-2); }
.commit-avatar { display: grid; width: 1.8rem; height: 1.8rem; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--accent); font: 800 .68rem "Space Mono", monospace; }
.latest-commit strong { font-size: .78rem; }
.latest-subject { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.latest-commit code, .latest-commit time { color: var(--muted); font-size: .7rem; }
.tree-row, .commit-row, .ref-row, .change-row { display: grid; min-height: 3.1rem; align-items: center; gap: .75rem; padding: .65rem 1rem; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; }
.tree-row:last-child, .commit-row:last-child, .ref-row:last-child, .change-row:last-child { border-bottom: 0; }
.tree-row:hover, .commit-row:hover, .ref-row:hover { background: var(--hover); }
.tree-row { grid-template-columns: var(--file-columns); font-size: .9375rem; border-bottom: 0; }
.tree-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-row code, .tree-row .size { color: var(--muted); font-size: .78rem; }
.repository-icon { display: block; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.file-icon { width: 1.125rem; height: 1.125rem; color: var(--accent); }
.file-icon.tree { color: var(--accent-2); }
.commit-row { grid-template-columns: minmax(0, 1fr) auto; }
.commit-row > div { display: grid; min-width: 0; gap: .25rem; }
.commit-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.commit-row span { color: var(--muted); font-size: .75rem; }
.commit-row code { color: var(--accent); font-size: .72rem; }
.ref-row { grid-template-columns: auto minmax(10rem, .5fr) minmax(0, 1fr) auto; }
.ref-name { overflow: hidden; font-weight: 700; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.ref-name:hover { color: var(--accent); text-decoration: underline; }
.ref-actions { display: flex; align-items: center; gap: .4rem; }
.ref-actions .button { min-height: 2rem; padding: .3rem .55rem; font-size: .72rem; }
.ref-row > span:nth-child(3) { overflow: hidden; color: var(--muted); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.ref-kind { padding: .25rem .4rem; border-radius: .3rem; background: var(--surface-2); color: var(--accent); font: 700 .62rem "Space Mono", monospace; text-transform: uppercase; }
.ref-kind.tag { background: var(--surface-2); color: var(--accent-2); }
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .8rem; padding: 1rem; border-top: 1px solid var(--border); }
.pagination > :last-child { justify-self: end; }
.page-number { color: var(--muted); font: .78rem "Space Mono", monospace; }
.button:hover { border-color: var(--accent); background: var(--surface-2); }
.button.primary { border-color: var(--primary-bg); background: var(--primary-bg); color: var(--primary-text); font-weight: 750; }
.file-header, .commit-header { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding: 1.4rem 0; }
.source-main, .file-view, .source-main-stack { min-width: 0; }
.source-main-stack { display: grid; gap: 1rem; }
.file-tree-sidebar[hidden], .show-file-tree[hidden] { display: none; }
.file-tree-header code { color: var(--muted); font-size: .72rem; }
.tree-finder { position: relative; padding: .55rem .6rem; border-bottom: 1px solid var(--border); }
.tree-finder-results { position: absolute; top: calc(100% - .2rem); right: .6rem; left: .6rem; z-index: 12; display: grid; overflow: auto; max-height: min(24rem, 55vh); padding: .35rem; border: 1px solid var(--border); border-radius: .5rem; background: var(--surface); box-shadow: var(--shadow); }
.tree-finder-results[hidden] { display: none; }
.tree-finder-results .file-finder-result { padding: .55rem .6rem; font-size: .72rem; }
.side-tree-row:hover { background: var(--hover); }
.side-tree-row.current .side-tree-link { color: var(--accent); font-weight: 650; }
.tree-toggle { display: grid; flex: 0 0 1.25rem; width: 1.25rem; height: 1.75rem; padding: 0; place-items: center; border: 0; border-radius: .3rem; background: transparent; color: var(--muted); cursor: pointer; }
.tree-chevron { width: .75rem; height: .75rem; transition: transform .12s ease; }
.tree-toggle[aria-expanded="true"] .tree-chevron { transform: rotate(90deg); }
.tree-toggle-spacer { flex: 0 0 1.25rem; width: 1.25rem; }
.side-tree-icon { flex: 0 0 1rem; width: 1rem; height: 1rem; color: var(--muted); }
.side-tree-icon.folder { color: var(--accent-2); }
.side-tree-icon.file { color: var(--muted); }
.side-tree-children { margin-left: .625rem; padding-left: .625rem; border-left: 1px solid var(--border); }
.side-tree-children[hidden] { display: none; }
.tree-loading, .tree-more { display: block; padding: .5rem .7rem; color: var(--muted); font-size: .8rem; }
.tree-more { color: var(--accent); text-decoration: none; }
.file-stats { display: flex; flex: 0 0 auto; gap: .8rem; color: var(--muted); font-size: .8rem; }
.code-panel { overflow: hidden; border: 1px solid var(--border); border-radius: .75rem; background: var(--code-bg); color: var(--code-text); box-shadow: var(--shadow); }
.file-view { overflow: hidden; }
.file-header { min-height: 3.3rem; align-items: center; padding: .65rem 1rem; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.file-title-group { display: flex; min-width: 0; flex: 1; align-items: center; gap: .7rem; }
.file-header h1 { overflow: hidden; margin: 0; font-size: 1.05rem; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.code-panel.embedded { border: 0; border-radius: 0; box-shadow: none; }
.image-preview { display: grid; min-height: 18rem; place-items: center; padding: clamp(1rem, 4vw, 3rem); background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface-3) 0 50%) 50% / 22px 22px; }
.image-preview img { display: block; max-width: 100%; max-height: 72vh; object-fit: contain; }
.view[aria-busy="true"] { cursor: progress; }
.source-code { overflow: auto; max-height: 74vh; margin: 0; padding: .8rem 0; color: var(--code-text); font: 14px/1.65 "Space Mono", monospace; tab-size: 4; }
.paged-source { display: grid; }
.large-file-toolbar { display: flex; min-height: 3rem; align-items: center; justify-content: space-between; gap: 1rem; padding: .45rem .75rem .45rem 1rem; border-bottom: 1px solid var(--border); color: var(--code-gutter); font-size: .8rem; }
.large-file-toolbar .button { min-height: 2rem; border-color: var(--border); border-radius: .35rem; background: transparent; color: var(--code-text); font-size: .75rem; }
.source-pagination { border-top-color: var(--border); color: var(--code-text); }
.source-pagination .button { background: transparent; color: var(--code-text); }
.source-pagination { display: flex; justify-content: center; gap: .75rem; padding: .65rem .75rem; }
.source-pagination .button, .source-pagination .page-unavailable { display: inline-flex; flex: 0 0 6rem; align-items: center; justify-content: center; min-height: 2rem; padding: .3rem .5rem; font-size: .78rem; white-space: nowrap; }
.source-pagination .page-unavailable { color: var(--muted); border: 1px solid transparent; cursor: default; }
.source-pagination .page-number { flex: 0 0 auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 820px) {
  .source-pagination { gap: .4rem; padding: .5rem; }
  .source-pagination .button, .source-pagination .page-unavailable { flex-basis: 5.5rem; min-height: 2.75rem; }
}
.code-line { display: grid; min-width: max-content; grid-template-columns: 4.5rem auto; }
.code-line:target { background: var(--code-selection); }
.code-line.selected { background: var(--code-selection-strong); box-shadow: inset 2px 0 var(--accent); }
.line-number { position: sticky; left: 0; z-index: 1; padding: 0 1rem; background: var(--code-bg); color: var(--code-gutter); text-align: right; text-decoration: none; user-select: none; }
.line-code { padding-right: 2rem; white-space: pre; }
.tok-text, .tok-variable { color: var(--code-text); }
.tok-keyword, .tok-operator { color: var(--code-keyword); }
.tok-function { color: var(--code-function); }
.tok-string { color: var(--code-string); }
.tok-comment { color: var(--code-comment); font-style: italic; }
.tok-constant, .tok-escape { color: var(--code-literal); }
.tok-type, .tok-constructor, .tok-namespace { color: var(--code-type); }
.tok-variable-builtin, .tok-variable-parameter, .tok-variable-other-member, .tok-label { color: var(--code-property); }
.tok-punctuation { color: var(--code-gutter); }
.tok-tag, .tok-special { color: var(--code-tag); }
.tok-attribute, .tok-markup { color: var(--code-attribute); }
.tok-diff-plus { color: var(--code-string); }
.tok-diff-minus { color: var(--danger); }
.tok-diff-delta { color: var(--code-function); }
.commit-identity { padding: clamp(1.1rem, 3vw, 2rem); }
.commit-title { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.commit-title h1 { max-width: 1050px; margin: .4rem 0 0; font-size: clamp(1.45rem, 3vw, 2.35rem); letter-spacing: -.035em; line-height: 1.2; }
.commit-title > code { flex: 0 0 auto; padding: .35rem .55rem; border: 1px solid var(--border); border-radius: .4rem; color: var(--accent); font-size: .78rem; }
.commit-message { max-width: 1000px; margin: 1.25rem 0 0; padding: 1rem; border: 1px solid var(--border); border-radius: .5rem; background: var(--bg); color: var(--text); font: .9rem/1.65 "Space Mono", monospace; white-space: pre-wrap; }
.commit-authorship { display: grid; gap: .45rem; margin-top: 1.25rem; }
.identity-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: .55rem; color: var(--muted); font-size: .84rem; }
.identity-line strong { color: var(--text); }
.identity-label { width: 5.5rem; color: var(--muted); font: 700 .7rem "Space Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.commit-references { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.15rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.commit-parents, .commit-tree-ref { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; color: var(--muted); font-size: .8rem; }
.commit-reference { padding: .25rem .45rem; border-radius: .35rem; background: var(--surface-2); color: var(--accent); font: .75rem "Space Mono", monospace; text-decoration: none; }
.commit-reference:hover { text-decoration: underline; }
.commit-full-oid { display: flex; min-width: 0; align-items: center; gap: .7rem; margin-top: .85rem; color: var(--muted); font-size: .75rem; }
.commit-full-oid code { overflow: hidden; color: var(--text); text-overflow: ellipsis; }
.commit-summary { display: flex; flex-wrap: wrap; overflow: visible; padding: .85rem 1rem; gap: .6rem 1.5rem; }
.commit-stat { display: flex; align-items: baseline; gap: .4rem; }
.commit-stat strong { font: 750 .95rem "Space Mono", monospace; }
.commit-stat span { color: var(--muted); font-size: .8rem; }
.commit-stat.addition strong, .diff-count.additions { color: var(--success); }
.commit-stat.deletion strong, .diff-count.deletions { color: var(--danger); }
.commit-files-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-top: .5rem; }
.commit-files-heading h2 { margin: 0; font-size: 1.15rem; }
.commit-files-heading span { color: var(--muted); font-size: .8rem; }
.commit-file-filter { width: min(26rem, 45vw); margin-left: auto; padding: .6rem .75rem; border: 1px solid var(--border); border-radius: .5rem; background: var(--surface); color: var(--text); }
.commit-files { display: grid; gap: 1rem; }
.diff-file { content-visibility: auto; contain-intrinsic-size: 3.5rem 28rem; }
.diff-file-header { display: grid; min-height: 3.5rem; grid-template-columns: auto auto minmax(0, 1fr) auto auto auto; align-items: center; gap: .7rem; padding: .65rem .8rem; background: var(--surface-2); cursor: pointer; list-style: none; }
.diff-file-header::-webkit-details-marker { display: none; }
.diff-file-header::before { color: var(--muted); content: "›"; font-size: 1.1rem; transform: rotate(0); transition: transform .15s ease; }
.diff-file[open] > .diff-file-header::before { transform: rotate(90deg); }
.diff-path { overflow: hidden; font: .84rem "Space Mono", monospace; text-overflow: ellipsis; white-space: nowrap; }
.diff-count { font: 700 .74rem "Space Mono", monospace; }
.diff-file-action { min-height: 2rem; padding: .35rem .6rem; font-size: .75rem; }
.change-kind { min-width: 2rem; padding: .25rem .38rem; border-radius: .3rem; background: var(--surface-2); color: var(--accent-2); font: 800 .68rem "Space Mono", monospace; text-align: center; }
.change-kind.added { color: var(--success); }
.change-kind.deleted { color: var(--danger); }
.change-kind.renamed, .change-kind.copied { color: var(--info); }
.diff-body { overflow: auto; max-height: min(72vh, 54rem); background: var(--code-bg); color: var(--code-text); }
.diff-loading, .diff-unavailable { display: flex; min-height: 7rem; align-items: center; justify-content: center; gap: .8rem; padding: 1rem; color: var(--muted); font-size: .82rem; }
.diff-unavailable { flex-direction: column; }
.diff-table { display: grid; min-width: max-content; padding: .55rem 0; font: 13.5px/1.55 "Space Mono", monospace; }
.diff-line { display: grid; min-width: 100%; grid-template-columns: 4rem 4rem minmax(max-content, 1fr); }
.diff-line.addition { background: var(--diff-add-bg); }
.diff-line.deletion { background: var(--diff-delete-bg); }
.diff-line.hunk { background: var(--diff-hunk-bg); color: var(--diff-hunk-text); }
.diff-line.meta { color: var(--muted); }
.diff-line-number { padding: 0 .75rem; border-right: 1px solid var(--border); color: var(--diff-line-number); text-align: right; text-decoration: none; user-select: none; }
a.diff-line-number:hover { color: var(--accent); text-decoration: underline; }
.diff-code { min-height: 1.55em; padding: 0 1rem 0 .55rem; white-space: pre; }
.diff-marker { display: inline-block; width: 1.2rem; color: var(--muted); user-select: none; }
.loading-card, .empty-state { display: grid; min-height: 19rem; place-content: center; justify-items: center; gap: 1rem; padding: 3rem; text-align: center; }
.standalone-state { border: 1px solid var(--border); border-radius: 1rem; background: var(--surface); }
.empty-state.embedded-state { border: 0; border-radius: 0; background: transparent; }
.code-panel.embedded > .empty-state { color: var(--code-text); }
.code-panel.embedded > .empty-state p { color: var(--muted); }
.empty-state.embedded-list-state { min-height: 8rem; padding: 1.25rem; border: 0; border-radius: 0; background: transparent; }
.loading-card { grid-template-columns: auto auto; min-height: 10rem; justify-items: start; text-align: left; }
.loading-card p, .empty-state p { max-width: 560px; margin: .35rem 0 0; color: var(--muted); }
.loader { width: 1.2rem; height: 1.2rem; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
.empty-glyph { display: grid; width: 3rem; height: 3rem; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--danger); font: 800 1.2rem "Space Mono", monospace; }
.empty-state h1 { margin: 0; }
footer a { color: var(--accent); }
.focus-ring:focus-visible, a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.latest-commit:focus-visible, .tree-row:focus-visible, .commit-row:focus-visible, .diff-file-header:focus-visible { outline-offset: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }



.topbar { top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(1rem, 4vw, 4.5rem); border-bottom: 1px solid var(--border); position: relative; min-height: 5.5rem; background: var(--bg); backdrop-filter: none; border-color: var(--border); }
.wordmark strong { letter-spacing: -.02em; font-size: 1.5rem; font-weight: 400; }
.wordmark small { margin-top: .25rem; color: var(--muted); font: 700 .72rem "Space Mono", monospace; text-transform: uppercase; font-weight: 400; letter-spacing: .04em; }
.wordmark .mark { display: grid; width: 2.75rem; height: 2.75rem; place-items: center; border-radius: .25rem; color: var(--accent); border: 0; background: transparent; box-shadow: none; }
.wordmark .mark .lucide { width: 2rem; height: 2rem; stroke-width: 1.5; }
.topnav { display: flex; align-items: center; gap: .3rem; padding: .28rem; border-radius: .25rem; background: transparent; box-shadow: none; }
.context-bar { display: flex; min-height: 3.5rem; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem clamp(1rem, 4vw, 4.5rem); border-bottom: 1px solid var(--border); background: var(--bg); backdrop-filter: none; flex-wrap: wrap; }
.context-actions { display: flex; flex: 0 0 auto; gap: .5rem; flex-wrap: wrap; min-width: 0; }
.breadcrumbs { display: flex; min-width: 0; align-items: center; gap: .5rem; color: var(--muted); font-size: .9rem; flex: 1 1 16rem; flex-wrap: wrap; overflow: visible; }
.breadcrumbs a, .breadcrumbs span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
main { min-height: calc(100vh - 12rem); margin: 0 auto; width: min(1600px, 100%); padding: 1.5rem clamp(1rem, 3vw, 2.625rem) 2.5rem; }
.view { display: grid; gap: 1.25rem; }
.button, .repo-search, .panel, .code-panel, .standalone-state, .clone-control, .file-finder, .ref-switcher { border-radius: .25rem; box-shadow: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .55rem .9rem; border: 1px solid var(--border); border-radius: .25rem; background: var(--surface); color: var(--text); font-size: .86rem; text-decoration: none; cursor: pointer; min-height: 2.75rem; font-weight: 400; }
.repo-card { position: relative; display: grid; min-height: 19rem; padding: 1.5rem; overflow: hidden; border: 1px solid var(--border); color: inherit; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; border-radius: .25rem; background: var(--surface); box-shadow: none; }
.repo-card::before { position: absolute; inset: 0 0 auto; content: ""; background: var(--forest); height: 3px; }
.repo-card:hover { border-color: var(--accent); transform: none; box-shadow: none; }
.repository-summary-icon { border-radius: .25rem; }
.page-header { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem 1.25rem; padding: 1.25rem 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.page-header h1 { font-size: 2rem; font-weight: 400; }
.repository-summary { display: flex; align-items: center; gap: .65rem; min-height: 3rem; flex-wrap: wrap; }
.repository-summary h1 { min-width: 0; margin: 0; overflow: hidden; letter-spacing: -.035em; line-height: 1.15; text-overflow: ellipsis; font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 400; white-space: normal; overflow-wrap: anywhere; }
.repository-visibility { padding: .2rem .45rem; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font: 700 .62rem "Space Mono", monospace; letter-spacing: .04em; text-transform: uppercase; font-size: .75rem; font-weight: 400; }
.repo-nav { display: flex; overflow-x: auto; border-bottom: 1px solid var(--border); gap: 1.25rem; }
.repo-nav a { flex: 0 0 auto; padding: .7rem .85rem; border-bottom: 2px solid transparent; color: var(--muted); text-decoration: none; padding-inline: 0; }
.source-workspace { display: grid; min-width: 0; align-items: start; grid-template-columns: 16rem minmax(0, 1fr) 15rem; gap: 1.25rem; }
.source-workspace.tree-hidden { grid-template-columns: minmax(0, 1fr) 15rem; }
.file-tree-sidebar { --bg: var(--forest); --surface: var(--forest); --surface-2: var(--tree-hover); --surface-3: var(--tree-hover); --text: var(--tree-text); --muted: var(--tree-muted); --border: var(--tree-border); --accent: var(--tree-text); --accent-2: var(--tree-text); --hover: var(--tree-hover); --selected: var(--tree-selected); --focus: var(--tree-focus); color-scheme: dark; overflow: hidden; position: sticky; top: 1rem; max-height: calc(100vh - 2rem); border: 0; border-radius: .25rem; background: var(--bg); color: var(--text); }
.file-tree-header { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .5rem; padding: .55rem .65rem .55rem .85rem; border-bottom: 1px solid var(--border); background: transparent; min-height: 3.5rem; }
.file-tree-header strong { font: .8rem "Space Mono", monospace; }
.file-tree-header button { padding: .35rem .55rem; border: 0; border-radius: .4rem; background: transparent; font-size: .75rem; cursor: pointer; color: var(--text); min-width: 2.75rem; min-height: 2.75rem; }
.file-tree-body { overflow: auto; max-height: calc(100vh - 10rem); padding: .5rem; }
.tree-finder-input { width: 100%; padding: .42rem .65rem .42rem 1.9rem; border: 1px solid var(--border); border-radius: .42rem; background: var(--bg); color: var(--text); min-height: 2.75rem; font-size: .875rem; }
.tree-finder-input::placeholder { color: var(--muted); opacity: 1; }
.tree-search-icon { position: absolute; left: 1.15rem; z-index: 1; width: .9rem; height: .9rem; color: var(--muted); pointer-events: none; top: 1.45rem; }
.side-tree-link { overflow: hidden; flex: 1; padding: .38rem .2rem .38rem 0; color: var(--text); font-size: .9375rem; line-height: 1.4; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; font: .9375rem/1.5 "Space Mono", monospace; }
.side-tree-row { display: flex; min-width: 0; align-items: center; gap: .35rem; min-height: 2.25rem; border-radius: .2rem; }
.side-tree-row.current { background: var(--tree-selected); box-shadow: none; }
.side-tree-row.current .side-tree-link, .side-tree-row.current .side-tree-icon { color: var(--tree-selected-text); }
.tree-toggle:hover { color: var(--text); background: var(--tree-hover); }
.repository-context { min-width: 0; background: transparent; border: 0; border-left: 1px solid var(--border); border-radius: 0; }
.repository-context .panel-heading { background: transparent; border: 0; min-height: 2.75rem; }
.repository-context .panel-heading h2 { font: .75rem "Space Mono", monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.context-repository-name { display: block; padding: .25rem 1rem; overflow-wrap: anywhere; font-size: 1.05rem; text-decoration: none; }
.repository-context p { font-size: .875rem; color: var(--muted); line-height: 1.8; padding: 0 1rem; }
.repository-facts { margin: 1.25rem 1rem; font-size: .8rem; }
.repository-facts dt { margin-top: .9rem; color: var(--muted); }
.repository-facts dd { margin: .2rem 0 0; overflow-wrap: anywhere; }
.repository-facts dd a { font-family: "Space Mono", monospace; }
.repository-context .clone-control { margin-top: .25rem; }
.repository-context .clone-control code { white-space: normal; overflow-wrap: anywhere; font-size: .75rem; }
.readme-content { max-width: 980px; line-height: 1.7; padding: clamp(1.25rem, 2.5vw, 2.25rem); overflow-wrap: anywhere; }
.readme-content h1 { font-weight: 400; font-size: 2rem; }
.readme-code-frame { margin: 1.25rem 0; overflow: hidden; border: 1px solid var(--border); background: var(--code-bg); border-radius: .25rem; box-shadow: none; }
.panel-heading { min-height: 3.3rem; padding: .8rem 1rem; border-bottom: 1px solid var(--border); background: var(--surface-2); flex-wrap: wrap; }
.latest-commit { display: grid; min-height: 3.3rem; align-items: center; gap: .65rem; padding: .65rem 1rem; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; grid-template-columns: auto minmax(0, 1fr) auto; }
.latest-commit .latest-subject { grid-column: 1 / -1; grid-row: 2; }
.latest-commit > time { grid-column: 2; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 2rem clamp(1rem, 4vw, 4.5rem); border-top: 1px solid var(--border); color: var(--muted); padding-block: 1rem; font-size: .75rem; }


/* Shared interaction roles apply to tables, dialogs, and reading controls. */
input::placeholder { color: var(--muted); opacity: 1; }
input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: var(--selected); color: var(--text); }
.button.primary:hover { background: var(--primary-bg); outline: 1px solid var(--focus); }
.code-copy-button[data-copy-state="success"] { background: var(--selected); color: var(--success); border-color: var(--success); }
.code-copy-button[data-copy-state="error"] { background: var(--diff-delete-bg); color: var(--danger); border-color: var(--danger); }
.file-tree-header button:hover { background: var(--hover); }
.side-tree-row.current .tree-toggle { color: var(--tree-selected-text); }
.side-tree-row.current .tree-toggle:hover { background: var(--tree-selected); }
.side-tree-row.current a:focus-visible { outline-color: var(--tree-selected-text); outline-offset: -2px; }
.tree-columns { background: var(--surface-3); }
.readme-content hr { border: 0; border-top: 1px solid var(--border); }

/* Botanical reference: contiguous columns, section rules, unruled file entries. */
main:has(.source-workspace) { display: grid; width: 100%; margin: 0; padding: 0; }
.view:has(> .source-workspace) { gap: 0; }
.repository-summary { padding: 1.5rem 2.625rem 1rem; }
.repository-overview-header .repo-nav { padding-inline: 2.625rem; }
.source-workspace { gap: 0; align-items: stretch; grid-template-columns: 252px minmax(0, 1fr) 235px; }
.source-workspace.tree-hidden { grid-template-columns: minmax(0, 1fr) 235px; }
.source-main { padding: 1.5rem 1.75rem 2.2rem; }
.file-tree-sidebar { position: relative; top: auto; max-height: none; border-radius: 0; border-right: 1px solid var(--border); padding: 1rem .5rem; }
.file-tree-header, .tree-finder { border-bottom: 0; }
.repository-context { padding: 1.5rem .4rem; }
.context-section { margin: 0 1rem 1.4rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--border); }
.context-section:last-child { margin-bottom: 0; }
.context-section:empty { display: none; }
.context-section .panel-heading { padding: 0 0 .8rem; min-height: 0; }
.context-section .context-repository-name, .context-section p, .context-section .about-feature-actions { padding-inline: 0; }
.context-section .repository-facts { margin: 1rem 0 0; }
.context-section .clone-control { margin: .25rem 0 0; }

/* Responsive geometry; theme roles stay unchanged at every width. */
@media (max-width: 820px) { .topbar { min-height: 4rem; }
.topnav > a { display: none; }
.context-bar { align-items: start; flex-direction: column; }
.breadcrumbs { width: 100%; }
.context-actions { width: 100%; overflow-x: auto; }
.context-actions .button { min-height: 2.75rem; flex: 1 0 auto; }
main { padding: 1rem; }
.section-heading { align-items: stretch; flex-wrap: wrap; }
.repo-search { order: 3; width: 100%; }
.split-layout { grid-template-columns: 1fr; }
.source-workspace { grid-template-columns: 1fr; }
.file-tree-sidebar { position: static; max-height: 22rem; }
.file-tree-body { max-height: 18rem; }
.side-tree-row { min-height: 2.75rem; }
.tree-toggle, .tree-toggle-spacer { flex-basis: 2.5rem; width: 2.5rem; height: 2.5rem; }
.file-tree-header button { min-height: 2.5rem; }
.side-tree-link { padding-block: .55rem; }
.page-header { grid-template-columns: 1fr; }
.page-header-icon { width: 2.8rem; height: 2.8rem; }
.page-feature-actions { grid-column: 1; }
.media-copy { align-items: stretch; flex-direction: column; }
.file-header { align-items: center; }
.commit-title { align-items: stretch; flex-direction: column; }
.commit-title > code { align-self: start; }
.identity-label { width: 100%; }
.commit-files-heading { align-items: stretch; flex-wrap: wrap; }
.commit-file-filter { order: 3; width: 100%; }
.diff-file-header { grid-template-columns: auto auto minmax(0, 1fr) auto auto; }
.diff-file-action { display: none; }
.diff-count.deletions { display: none; }
.diff-line { grid-template-columns: 3rem 3rem minmax(max-content, 1fr); }
.ref-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.ref-row > span:nth-child(3) { display: none; }
.ref-actions .button { display: none; }
.tree-list { --file-columns: 1.25rem minmax(0, 1fr) 7rem; }
.tree-row .file-commit { display: none; }
.tree-columns span:nth-child(2) { display: none; }
.code-line { grid-template-columns: 3.5rem auto; }
.large-file-toolbar { align-items: start; flex-direction: column; }
footer { align-items: start; flex-direction: column; } }
@media (max-width: 480px) { .file-stats code { display: none; }
.file-header { padding-inline: .75rem; }
.commit-summary { gap: .6rem 1rem; }
.commit-page-total { display: none; }
.diff-file-header { grid-template-columns: auto auto minmax(0, 1fr); }
.diff-count { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; } }
@container files (max-width: 460px) {
  .tree-columns, .tree-row { grid-template-columns: 1.25rem minmax(0, 1fr) 7rem; }
  .tree-row .file-commit, .tree-columns span:nth-child(2) { display: none; }
}
@media (max-width: 1200px) { .source-workspace { grid-template-columns: 15rem minmax(0, 1fr); }
.source-workspace.tree-hidden { grid-template-columns: minmax(0, 1fr); }
.repository-context { grid-column: 2; border-left: 0; border-top: 1px solid var(--border); }
.tree-hidden .repository-context { grid-column: 1; } }
@media (max-width: 820px) { .topbar { min-height: 4.75rem; }
.context-bar { gap: .75rem; }
.breadcrumbs { flex: none; }
.context-actions { overflow: visible; }
.context-actions .button { flex: 1 1 auto; }
.source-workspace, .source-workspace.tree-hidden { grid-template-columns: minmax(0, 1fr); }
.repository-context { grid-column: 1; }
.file-tree-sidebar { position: static; max-height: 24rem; }
.file-tree-body { max-height: 15rem; }
.side-tree-row { min-height: 2.75rem; }
.repo-nav { gap: 1rem; }
.repo-nav a { font-size: .875rem; }
.file-header { flex-wrap: wrap; }
.file-stats { flex-wrap: wrap; }
.topnav { padding: 0; }
.ref-actions { flex-wrap: wrap; }
.ref-actions .button { display: inline-flex; } }
@media (max-width: 1200px) and (min-width: 821px) {
  .source-workspace { grid-template-columns: 220px minmax(0, 1fr); }
  .file-tree-sidebar { grid-row: 1 / 3; }
}
@media (max-width: 820px) {
  .repository-summary { padding: 1.25rem 1rem .75rem; }
  .repository-overview-header .repo-nav { padding-inline: 1rem; }
  .source-main { padding: 1.125rem 1rem; }
  .file-tree-sidebar { border-right: 0; border-bottom: 1px solid var(--border); }
  .repository-context { padding: 1.5rem .5rem; }
}

/* Compact reading rhythm: retain section boundaries, spend space on content. */
.source-workspace { position: relative; }
.files-resizer { position: absolute; z-index: 15; top: 0; bottom: 0; left: calc(var(--files-width, 252px) - 4px); width: 8px; cursor: col-resize; touch-action: none; }
.files-resizer::after { content: ""; position: absolute; inset: 0 3px; background: transparent; }
.files-resizer:hover::after, .files-resizer:focus-visible::after, .files-resizing .files-resizer::after { background: var(--focus); }
.files-resizer:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.files-resizing, .files-resizing * { cursor: col-resize !important; user-select: none !important; }
.tree-hidden .files-resizer, .files-resizer[hidden] { display: none; }
@media (min-width: 821px) { .source-workspace:not(.tree-hidden) { grid-template-columns: var(--files-width, 252px) minmax(0, 1fr) 235px; } }
@media (min-width: 821px) and (max-width: 1200px) { .source-workspace:not(.tree-hidden) { grid-template-columns: var(--files-width, 220px) minmax(0, 1fr); } }
@media (max-width: 820px) { .files-resizer { display: none; } }
.topbar { min-height: 4rem; padding-inline: 1.25rem; }
.wordmark strong { font-size: 1.25rem; }
.wordmark small { font-size: .65rem; }
.context-bar { min-height: 3.25rem; padding: .3rem 1.25rem; gap: .5rem; }
.source-main { padding: 1rem 1.25rem; }
.tree-row { min-height: 2.25rem; padding-block: .35rem; }
.repository-summary { padding: 1rem 2.625rem .5rem; }
.repository-summary h1 { font-size: 1.8rem; }
.panel-heading, .file-header { min-height: 2.5rem; padding-block: .45rem; }
.file-tree-sidebar { padding-top: .5rem; }
.file-tree-header { min-height: 2.75rem; padding-block: 0; }
.repository-context { padding-top: 1rem; }

/* Only the repository overview reserves an About column. */
@media (min-width: 1201px) {
  .source-workspace:has(.repository-context) { --about-width: clamp(280px, 22vw, 360px); grid-template-columns: var(--files-width, 252px) minmax(0, 1fr) var(--about-width); }
  .source-workspace.tree-hidden:has(.repository-context) { grid-template-columns: minmax(0, 1fr) var(--about-width); }
}
@media (min-width: 821px) {
  .source-workspace:not(:has(.repository-context)) { grid-template-columns: var(--files-width, 252px) minmax(0, 1fr); }
  .source-workspace.tree-hidden:not(:has(.repository-context)) { grid-template-columns: minmax(0, 1fr); }
}
.context-section { margin-bottom: 1rem; padding-bottom: 1rem; }
.context-section p { margin: 0 0 .75rem; }
.repository-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem .75rem; }
.repository-facts dt, .repository-facts dd { margin: 0; }
.repository-facts dd { text-align: right; }
.readme-content { padding: 1.5rem; }
@media (max-width: 820px) {
  .topbar { min-height: 3.75rem; padding-inline: 1rem; }
  .context-bar { padding-inline: 1rem; }
  .source-main { padding: .75rem 1rem; }
  .tree-row { min-height: 2.75rem; }
  .repository-summary { padding: .75rem 1rem .25rem; }
  .readme-content { padding: 1.25rem; }
}
