@font-face {
  font-family: "Host Grotesk"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(host-grotesk-v5-latin.woff2) format("woff2");
}
:root {
  --gray-000: #fff; --gray-50: #fafafa; --gray-100: #f5f5f5; --gray-200: #ebebeb; --gray-300: #d9d9d9;
  --gray-400: #bdbdbd; --gray-500: #949494; --gray-600: #5d5d5d; --gray-650: #6e6e6e; --gray-700: #3d3d3d;
  --gray-750: #2d2d2d; --gray-800: #1f1f1f; --gray-850: #141414; --gray-875: #111; --gray-900: #000;
  --surface-page: var(--gray-000); --surface-raised: var(--gray-50); --surface-sunken: var(--gray-100);
  --surface-nav: var(--gray-50); --surface-selected: var(--gray-200); --surface-hover: var(--gray-100);
  --text-primary: var(--gray-900); --text-secondary: var(--gray-600); --text-inverse: var(--gray-000);
  --border-subtle: var(--gray-200); --border-default: var(--gray-300); --border-focus: var(--gray-900);
  --brand-accent: var(--gray-900); --brand-accent-text: var(--gray-000);
  --accent: #2563eb; --danger: #b91c1c; --danger-surface: #fef2f2; --ok: #047857; --ok-surface: #ecfdf5;
  --warn: #b45309; --target: #fffbeb; --hunk: #eff6ff;
  --orchard-bark: #6b4130; --orchard-bloom: #ee7da3;
  --shadow-menu: 0 4px 12px #0000001a; --shadow-card: 0 0 6px #0000001a;
  --font-sans: "Host Grotesk", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius-control: 8px; --radius-surface: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface-page: var(--gray-850); --surface-raised: var(--gray-800); --surface-sunken: var(--gray-875);
    --surface-nav: var(--gray-875); --surface-selected: var(--gray-700); --surface-hover: var(--gray-750);
    --text-primary: var(--gray-000); --text-secondary: var(--gray-400); --text-inverse: var(--gray-900);
    --border-subtle: var(--gray-750); --border-default: var(--gray-650); --border-focus: var(--gray-000);
    --brand-accent: var(--gray-000); --brand-accent-text: var(--gray-900);
    --accent: #60a5fa; --danger: #ff6467; --danger-surface: #2a1618; --ok: #34d399; --ok-surface: #10261d;
    --warn: #fbbf24; --target: #2e2a1a; --hunk: #15203a;
    --orchard-bark: #c38d6c; --orchard-bloom: #f28db0;
    --shadow-menu: 0 4px 12px #00000066; --shadow-card: 0 0 6px #00000066;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--surface-page); color: var(--text-primary);
  font: 400 15px/1.5 var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }
h1 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; line-height: 26px; margin: 8px 0; }
h2 { font-size: 17px; font-weight: 600; letter-spacing: -.005em; margin: 24px 0 8px; }
code, pre, .sha, .code, .source, .body { font-family: var(--font-mono); font-size: 13px; }
.muted { color: var(--text-secondary); }
.error { color: var(--danger); }
.spacer { flex: 1; }
.right { text-align: right; white-space: nowrap; }
.icon { width: 16px; height: 16px; fill: var(--text-secondary); vertical-align: text-bottom; flex: none; }

.shell { display: flex; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; width: 240px; flex: none; display: flex; flex-direction: column;
  gap: 4px; padding: 16px 12px; background: var(--surface-nav); border-right: 1px solid var(--border-subtle); }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; font-size: 18px; font-weight: 600;
  letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand .icon { width: 24px; height: 24px; fill: var(--text-primary); }
.brand .icon .bark { fill: var(--orchard-bark); }
.brand .icon .bloom { fill: var(--orchard-bloom); }
.sidenav { display: flex; flex-direction: column; gap: 2px; }
.sidenav a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--radius-control);
  font-weight: 500; }
.sidenav a:hover { background: var(--surface-hover); text-decoration: none; }
.sidenav .icon { width: 20px; height: 20px; fill: var(--text-primary); }
.account { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.account .who { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.account a { color: var(--text-secondary); font-size: 14px; }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%;
  background: var(--surface-selected); color: var(--text-secondary); font-size: 11px; font-weight: 500; }
main { flex: 1; min-width: 0; max-width: 1200px; padding: 24px 40px 64px; }

.badge { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--surface-sunken);
  color: var(--text-secondary); font-size: 12px; font-weight: 500; line-height: 20px; vertical-align: middle; }
.badge.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 14px;
  border: 1px solid var(--border-default); border-radius: var(--radius-control); background: var(--surface-page);
  color: var(--text-primary); font: inherit; font-size: 14px; font-weight: 500; line-height: 20px; cursor: pointer; }
.button:hover { background: var(--surface-hover); text-decoration: none; }
.button.primary { background: var(--brand-accent); color: var(--brand-accent-text); border-color: transparent; }
.button.primary:hover { opacity: .85; }
.button.wide { display: flex; padding: 10px; }
.input { width: 100%; padding: 8px 12px; border: 1px solid var(--border-default); border-radius: var(--radius-control);
  background: var(--surface-page); color: var(--text-primary); font: inherit; margin: 8px 0; }
.input:focus { outline: none; border-color: var(--border-focus); }
textarea.input { font-family: var(--font-mono); font-size: 13px; }
.narrow { max-width: 420px; margin: 72px auto; }
.narrow h1 { font-size: 28px; font-weight: 400; letter-spacing: -.02em; line-height: 34px; }

.location { color: var(--text-secondary); display: flex; align-items: center; gap: 4px; font-size: 14px; }
.sep { color: var(--text-secondary); margin: 0 2px; }
.repohead { border-bottom: 1px solid var(--border-subtle); margin: -24px -40px 20px; padding: 20px 40px 0; }
.repohead h1 { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.repohead h1 a { font-weight: 600; }
.repohead h1 .icon { width: 20px; height: 20px; }
.tabs { display: flex; gap: 4px; padding: 8px 0 10px; overflow-x: auto; }
.tabs a { padding: 5px 12px; border: 1px solid transparent; border-radius: var(--radius-control);
  color: var(--text-secondary); font-size: 14px; font-weight: 500; white-space: nowrap; }
.tabs a:hover { background: var(--surface-hover); text-decoration: none; }
.tabs a.selected { color: var(--text-primary); background: var(--surface-raised); border-color: var(--border-subtle); }
.tabrow { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tabrow .tabs { min-width: 0; }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar .count { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 14px; }
.toolbar .count strong { color: var(--text-primary); font-weight: 600; }
.button .icon { fill: currentColor; }
.button .icon.caret { width: 14px; height: 14px; margin: 0 -4px 0 -2px; }
.filebox { margin-top: 0; }
.latestbar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--surface-raised);
  border-bottom: 1px solid var(--border-subtle); font-size: 14px; white-space: nowrap; }
.latestbar .avatar { width: 24px; height: 24px; font-size: 10px; }
.latestbar .subject { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--text-secondary); }
.latestbar .spacer { min-width: 8px; }
.latestbar .when .sha { color: inherit; }
.history { display: inline-flex; align-items: center; gap: 6px; margin-left: 16px; font-weight: 500; white-space: nowrap; }
.history .icon { fill: var(--text-primary); }
.breadcrumb { font-weight: 600; }

.dropdown { position: relative; }
.dropdown summary { list-style: none; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown .menu { position: absolute; z-index: 10; min-width: 200px; max-height: 360px; overflow: auto; margin-top: 6px;
  padding: 4px; background: var(--surface-page); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control); box-shadow: var(--shadow-menu); }
.dropdown.right .menu { right: 0; text-align: left; }
.dropdown .menu.wide { min-width: 420px; padding: 8px; }
.dropdown .menu.clone { width: 460px; padding: 12px 14px; font-size: 14px; white-space: normal; }
.dropdown .menu.clone strong { display: block; margin: 4px 0 6px; }
.dropdown .menu.clone p { margin: 8px 0 14px; line-height: 1.45; }
.dropdown .menu.clone a { display: inline; padding: 0; color: var(--text-primary); text-decoration: underline; }
.dropdown .menu.clone code { font-size: 12px; background: var(--surface-sunken); padding: 1px 4px; border-radius: 4px; }
.dropdown .menu a { display: block; padding: 6px 10px; border-radius: 6px; font-size: 14px; }
.dropdown .menu a:hover { background: var(--surface-hover); text-decoration: none; }
.dropdown .menu a.selected { font-weight: 600; }
.dropdown .menu.refmenu { width: 320px; max-height: 420px; }
.refmenu form .input { margin: 0 0 4px; }
.refmenu a { overflow-wrap: anywhere; line-height: 1.3; }
.menufoot { border-top: 1px solid var(--border-subtle); margin-top: 4px; padding-top: 4px; }
.menufoot a { color: var(--text-secondary); }
.toolbar .input.search { width: auto; flex: 0 1 360px; margin: 0; }

table { border-collapse: collapse; width: 100%; }
.files, .commits, .box, .listing { border: 1px solid var(--border-subtle); border-radius: var(--radius-surface); }
.files, .commits { border-collapse: separate; border-spacing: 0; overflow: hidden; }
.files td, .commits td { padding: 10px 16px; border-top: 1px solid var(--border-subtle); vertical-align: top; }
.files tr:first-child td, .commits tr:first-child td { border-top: none; }
.files tr:hover td, .commits tr:hover td { background: var(--surface-raised); }
.files td.muted, .commits .muted { font-size: 14px; }
.listing { list-style: none; padding: 0; margin: 16px 0; overflow: hidden; }
.listing li { padding: 12px 16px; border-top: 1px solid var(--border-subtle); display: flex; gap: 12px; align-items: center; }
.listing li:first-child { border-top: none; }
.listing li:hover { background: var(--surface-raised); }
.listing li > a { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.box { margin: 16px 0; overflow: hidden; }
.boxhead { display: flex; gap: 12px; align-items: center; padding: 10px 16px; background: var(--surface-raised);
  border-bottom: 1px solid var(--border-subtle); margin: 0; font-size: 14px; flex-wrap: wrap; }
.boxhead a:not(.sha) { color: var(--text-secondary); }
pre.code { background: var(--surface-sunken); padding: 10px 12px; border-radius: var(--radius-control);
  overflow-x: auto; margin: 0; }
.box > pre.code, .box > h2:not(.boxhead) { margin: 16px; }
.box .commits, .box .files { border: none; border-radius: 0; }
.source td { padding: 0 12px; white-space: pre; line-height: 20px; }
.source .lineno { width: 1%; text-align: right; color: var(--text-secondary); user-select: none; }
.source .lineno a { color: var(--text-secondary); }
.source tr:target { background: var(--target); }
.source .line { width: 99%; }
.diff .add { background: var(--ok-surface); }
.diff .del { background: var(--danger-surface); }
.diff .hunk { background: var(--hunk); color: var(--text-secondary); }
.diff .meta { color: var(--text-secondary); }
.notice { padding: 16px; color: var(--text-secondary); }
.pad { padding: 0 16px 8px; margin: 0; }
form.pad { padding: 8px 16px 16px; }
.secret { margin: 12px 16px 8px; user-select: all; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 16px; }
.inline-form .input { width: auto; flex: 1 1 160px; margin: 0; }
.inline-form label { display: flex; gap: 6px; align-items: center; font-size: 14px; }
label.muted { font-size: 14px; }
details.box > summary { cursor: pointer; list-style: none; }
details.box > summary::-webkit-details-marker { display: none; }
details.box:not([open]) > summary { border-bottom: none; }
.commitmsg { padding: 12px 16px; }
.commitmsg h2 { margin: 0 0 8px; }
.commitmsg pre { white-space: pre-wrap; margin: 0 0 8px; }
.pager { display: flex; gap: 8px; justify-content: center; margin: 16px; }
.markdown { padding: 16px 32px; line-height: 1.6; overflow-x: auto; }
.markdown a { color: var(--accent); }
.markdown pre { background: var(--surface-sunken); padding: 12px; border-radius: var(--radius-control); overflow-x: auto; }
.markdown code { font-size: 85%; }
.markdown table td, .markdown table th { border: 1px solid var(--border-subtle); padding: 6px 13px; }
.markdown img { max-width: 100%; }
math { font-family: "STIX Two Math", "Cambria Math", "Latin Modern Math", math; font-size: 1.1em; }
math[display="block"] { margin: 1em 0; overflow-x: auto; overflow-y: hidden; }

@media (max-width: 760px) {
  .shell { flex-direction: column; }
  .sidebar { position: static; height: auto; width: auto; flex-direction: row; align-items: center; gap: 4px;
    padding: 8px 16px; border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .brand { padding: 4px 8px 4px 0; }
  .sidenav { flex-direction: row; }
  .sidenav a { padding: 6px 8px; }
  .sidenav .icon, .account .who { display: none; }
  .account { padding: 0 0 0 4px; }
  main { padding: 16px 16px 48px; }
  .repohead { margin: -16px -16px 16px; padding: 16px 16px 0; }
  .dropdown .menu.wide { min-width: 280px; }
  .dropdown .menu.clone { width: min(460px, calc(100vw - 32px)); }
  .markdown { padding: 16px; }
  .latestbar .subject, .latestbar .when { display: none; }
}
