@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; --done: #8250df; --open-badge: #1f883d; --done-badge: #8250df;
  --orchard-bark: #6b4130; --orchard-bloom: #ee7da3;
  --code-keyword: #cf222e; --code-string: #0a3069; --code-comment: #6e7781; --code-constant: #0550ae;
  --code-function: #8250df; --code-type: #953800; --code-tag: #116329; --code-inserted: #116329;
  --code-inserted-surface: #dafbe1; --code-deleted: #82071e; --code-deleted-surface: #ffebe9;
  --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; --done: #a371f7; --open-badge: #238636; --done-badge: #8957e5;
    --orchard-bark: #c38d6c; --orchard-bloom: #f28db0;
    --code-keyword: #ff7b72; --code-string: #a5d6ff; --code-comment: #8b949e; --code-constant: #79c0ff;
    --code-function: #d2a8ff; --code-type: #ffa657; --code-tag: #7ee787; --code-inserted: #aff5b4;
    --code-inserted-surface: #033a16; --code-deleted: #ffdcd7; --code-deleted-surface: #67060c;
    --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; margin: 0 auto; 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; }
.button.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.button.danger:hover { background: var(--danger-surface); }
.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 { display: inline-flex; align-items: center; gap: 8px; 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; }
.settings-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: start; }
.settings-nav { display: flex; flex-direction: column; gap: 2px; }
.settings-nav a { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--radius-control); color: var(--text-secondary);
  font-size: 14px; font-weight: 500; white-space: nowrap; }
.settings-nav a:hover { background: var(--surface-hover); text-decoration: none; }
.settings-nav a.selected { color: var(--text-primary); background: var(--surface-raised); }
.settings-main > h2:first-child, .settings-main > .sectionhead:first-child { margin-top: 0; }
.segmented { display: inline-flex; padding: 2px; gap: 2px; border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control); }
.segmented a { padding: 3px 10px; border-radius: var(--radius-control); color: var(--text-secondary); font-size: 13px; }
.segmented a:hover { text-decoration: none; background: var(--surface-hover); }
.segmented a.selected { color: var(--text-primary); background: var(--surface-raised); }
.audit-fields { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 0; font-size: 13px; }
.audit-fields div { display: flex; gap: 6px; min-width: 0; }
.audit-fields dt { color: var(--text-secondary); }
.audit-fields dd { margin: 0; overflow-wrap: anywhere; }
.audit pre.code { white-space: pre-wrap; overflow-wrap: anywhere; }
.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; }
a.author { color: inherit; }
.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 .menuitem { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 10px; border: 0;
  border-radius: 6px; background: none; color: var(--text-primary); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.dropdown .menu .menuitem:hover { background: var(--surface-hover); }
.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; }
.refmenu-empty { margin: 6px 10px; font-size: 14px; }
.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; }
.toolbar select.input { width: auto; flex: 0 1 240px; 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; }
.files td.name { white-space: nowrap; }
/* Takes the room left over and truncates, so a loaded message never widens the table. */
.files td.last-message { width: 100%; max-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files td.last-message a { color: inherit; }
.files td.size, .files td.last-date { white-space: nowrap; }
.files td.last-date { min-width: 96px; }
.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%; }
.source .k { color: var(--code-keyword); }
.source .s { color: var(--code-string); }
.source .c { color: var(--code-comment); font-style: italic; }
.source .n, .source .a, .source .h { color: var(--code-constant); }
.source .f { color: var(--code-function); }
.source .t { color: var(--code-type); }
.source .g { color: var(--code-tag); }
.source .h, .source .b { font-weight: 600; }
.source .i { font-style: italic; }
/* Highlighted spans only: the diff's rows are tr.del too, and must stay table rows. */
.source span.ins { color: var(--code-inserted); background: var(--code-inserted-surface); }
.source span.del { color: var(--code-deleted); background: var(--code-deleted-surface); }
.source span.ins, .source span.del { display: inline-block; min-width: 100%; }
/* Long lines scroll sideways under the file's header instead of being cut off by the box. */
.box > .scroll { overflow-x: auto; }
/* A file's line numbers stay put while its lines scroll. Diffs have two number columns, so theirs
   scroll with the lines. */
.box:not(.diff) > .scroll .lineno { position: sticky; left: 0; background: var(--surface-page); }
.box:not(.diff) > .scroll tr:target .lineno { background: var(--target); }
.unicode-warning { display: flex; align-items: center; gap: 12px; padding: 10px 16px; font-size: 14px;
  background: color-mix(in srgb, var(--warn) 10%, transparent); border-bottom: 1px solid var(--border-subtle); }
.unicode-warning p { margin: 0; flex: 1; }
.unicode-warning .icon { fill: var(--warn); }
.unicode-warning .button { flex: none; }
.source .uc-line .lineno { color: var(--warn); }
.source .uc-line td.lineno:first-child::before { content: "\26A0\FE0E"; float: left; margin-right: 6px; }
/* Shown, each hidden character becomes its code point, and the character itself, which would
   still reorder or hide text, leaves the page. */
.show-hidden .uc::before { content: "<" attr(data-cp) ">"; padding: 0 3px; border-radius: 3px; font-size: 11px;
  color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.show-hidden .uc-char { display: none; }
.image-view { display: flex; flex-direction: column; align-items: center; padding: 24px 16px; }
/* The width and height attributes reserve the space before the image arrives, and keep its ratio
   as it narrows to the page. The checkerboard shows through transparent pixels. */
.image-view img { display: block; max-width: 100%; height: auto;
  background: repeating-conic-gradient(var(--surface-raised) 0 25%, var(--surface-page) 0 50%) 0 0 / 16px 16px; }
.image-deferred { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 0; }
.image-deferred p { margin: 0; }
.diff .add { background: var(--ok-surface); }
.diff .del { background: var(--danger-surface); }
.diff .hunk { background: var(--hunk); color: var(--text-secondary); }
.diff .lineno { min-width: 32px; padding: 0 8px; font-size: 12px; }
.diff .add .lineno { background: color-mix(in srgb, var(--ok) 10%, var(--ok-surface)); }
.diff .del .lineno { background: color-mix(in srgb, var(--danger) 10%, var(--danger-surface)); }
.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; }
.install { margin: 4px 16px 14px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; padding: 14px 16px; }
.facts dt { color: var(--text-secondary); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.manage details { padding: 4px 16px 12px; }
.manage details summary { cursor: pointer; }
.manage details .inline-form { padding: 12px 0 0; }
.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; }
  /* Auto margins on the cross axis would stop main from stretching to the full width. */
  main { margin: 0; }
  .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; }
}

.pagehead, .sectionhead { display: flex; align-items: center; gap: 12px; }
.pagehead { margin: 8px 0 12px; }
.pagehead h1, .sectionhead h2 { margin: 0; }
.sectionhead { margin: 24px 0 8px; }
dialog.modal { width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 64px); padding: 20px 24px;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-surface); background: var(--surface-page);
  color: var(--text-primary); box-shadow: 0 24px 64px rgb(0 0 0 / .25); }
dialog.modal::backdrop { background: rgb(0 0 0 / .35); }
dialog.share { width: min(560px, calc(100vw - 32px)); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-head h2 { margin: 0; overflow-wrap: anywhere; }
.modal-head .close { padding: 2px 10px; font-size: 20px; line-height: 1; }
.modal > .error { margin: 12px 0 0; }
.modal form.stack { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.modal form.stack label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.modal form.stack label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text-primary); }
.modal form.stack .input { margin: 0; }
.modal form.stack p { margin: 0; font-size: 14px; line-height: 1.45; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.share h3 { font-size: 15px; font-weight: 600; margin: 20px 0 8px; }
.share h4 { font-size: 13px; font-weight: 500; margin: 14px 0 4px; }
.share-add { display: flex; gap: 8px; align-items: center; margin-top: 16px; }
.share-add select { width: auto; }
.share-search { position: relative; flex: 1; min-width: 0; }
.share-search .input { width: 100%; margin: 0; }
.share-results { position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px;
  list-style: none; background: var(--surface-page); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control); box-shadow: 0 8px 24px rgb(0 0 0 / .15); }
.share-results li { display: flex; flex-direction: column; padding: 6px 10px; border-radius: var(--radius-control); cursor: pointer; }
.share-results li[aria-selected="true"] { background: var(--surface-hover); }
.share-note { margin: 8px 0 0; font-size: 13px; }
.share-list { list-style: none; margin: 0; padding: 0; }
.share-list li { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.share-who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.share-who > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-list select { width: auto; margin: 0; }
.share-list.inherited li { opacity: .75; }
.share form select.input { margin: 0; }
.share-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.share-error { margin: 12px 0 0; }
@media (max-width: 640px) { .share-add { flex-wrap: wrap; } .share-search { flex-basis: 100%; } }

.counter { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px;
  background: var(--surface-selected); color: var(--text-primary); font-size: 12px; line-height: 18px; text-align: center; }
.issue-search { flex: 1 1 320px; display: flex; }
.issue-search .input { margin: 0; }
.clear-search { margin: 0 0 12px; font-size: 14px; color: var(--text-secondary); }
.issuehead .statelink { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); }
.issuehead .statelink.selected { color: var(--text-primary); font-weight: 600; }
.issuehead .statelink .icon { fill: currentColor; }
.issuehead summary { cursor: pointer; color: var(--text-secondary); }
.dot { width: 10px; height: 10px; flex: none; vertical-align: -1px; margin-right: 6px; }
.dot circle { stroke: var(--border-default); stroke-width: 1; }
.label { display: inline-flex; align-items: center; padding: 0 8px; border: 1px solid var(--border-default);
  border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 20px; white-space: nowrap; margin: 0 4px 0 0; }
.label .dot { margin-right: 4px; }
.label:hover { text-decoration: none; background: var(--surface-hover); }
.issues { list-style: none; margin: 0; padding: 0; }
.issues li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 16px; border-top: 1px solid var(--border-subtle); }
.issues li:first-child { border-top: none; }
.issues li:hover { background: var(--surface-raised); }
.issues .state { padding-top: 3px; }
.state.open .icon, .state-badge.open, .event-icon.reopened .icon { fill: var(--ok); }
.state.done .icon, .event-icon.closed .icon.issue-closed { fill: var(--done); }
.state.skipped .icon { fill: var(--text-secondary); }
.issue-main { flex: 1; min-width: 0; }
.issue-link { font-weight: 600; margin-right: 6px; overflow-wrap: anywhere; }
.issue-link code, .issue-titlebar h1 code { padding: 1px 5px; border-radius: 6px; background: var(--surface-sunken); font-size: 85%; }
.issue-meta-line { font-size: 12px; margin-top: 2px; }
.issue-meta-line a { color: inherit; }
.issue-side { display: flex; gap: 16px; align-items: center; white-space: nowrap; }
.assignees { display: inline-flex; }
.assignees .avatar { width: 22px; height: 22px; font-size: 9px; margin-left: -4px; border: 2px solid var(--surface-page); }
.comments { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.blank { padding: 48px 16px; text-align: center; color: var(--text-secondary); }
.blank .icon { width: 24px; height: 24px; }
.blank h3 { margin: 8px 0 0; font-size: 18px; color: var(--text-primary); }
.issue-titlebar { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0; }
.issue-titlebar h1 { flex: 1; font-size: 28px; line-height: 36px; font-weight: 400; margin: 0; overflow-wrap: anywhere; }
.issue-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle); font-size: 14px; }
.issue-status strong.plain { color: var(--text-primary); }
.state-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  color: #fff; font-weight: 500; background: var(--open-badge); }
.state-badge.done { background: var(--done-badge); }
.state-badge.skipped { background: var(--gray-600); }
.state-badge .icon { fill: currentColor; }
.issue-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; }
.issue-timeline { min-width: 0; }
.comment { border: 1px solid var(--border-subtle); border-radius: var(--radius-surface); margin-bottom: 16px; overflow: hidden; }
.comment:target { border-color: var(--accent); }
.comment-head { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--surface-raised);
  border-bottom: 1px solid var(--border-subtle); font-size: 14px; }
.comment-head .avatar { width: 24px; height: 24px; font-size: 10px; }
.comment-body { padding: 12px 16px; }
.comment-body > :first-child { margin-top: 0; }
.comment-body > :last-child { margin-bottom: 0; }
.comment-edit { padding: 0 16px 12px; font-size: 14px; }
.comment-edit summary, .sidebar-edit summary { cursor: pointer; color: var(--text-secondary); font-size: 13px; }
.comment-edit form { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 8px; }
.event { display: flex; align-items: center; gap: 10px; margin: 0 0 16px 16px; font-size: 14px; }
.event-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-sunken); flex: none; }
.event del { color: var(--text-secondary); }
.event ins { text-decoration: none; font-weight: 500; }
.comment-form { border: 1px solid var(--border-subtle); border-radius: var(--radius-surface); padding: 12px 16px; }
.comment-form .input { margin: 0 0 8px; }
.comment-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.issue-sidebar section { padding: 0 0 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border-subtle); font-size: 14px; }
.issue-sidebar h3 { font-size: 12px; font-weight: 600; color: var(--text-secondary); margin: 0 0 8px; }
.issue-sidebar p { margin: 4px 0; }
.issue-sidebar .labels { display: flex; flex-wrap: wrap; gap: 4px; }
.person { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.person .avatar { width: 20px; height: 20px; font-size: 9px; }
.person .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkbutton { padding: 0; border: 0; background: none; color: var(--text-secondary); font: inherit; cursor: pointer; }
.linkbutton:hover { color: var(--text-primary); text-decoration: underline; }
.sidebar-edit form { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 8px; }
label.check { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.label-picker { border: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.danger-text { color: var(--danger) !important; }
input.color { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--border-default); border-radius: var(--radius-control);
  background: var(--surface-page); }
.label-list { list-style: none; margin: 0; padding: 0; }
.label-list li { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr 120px auto; gap: 12px; align-items: center;
  padding: 10px 16px; border-top: 1px solid var(--border-subtle); }
.label-list li:first-child { border-top: none; }
.label-description, .label-count { font-size: 13px; }
@media (max-width: 760px) {
  .issue-layout { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; gap: 16px; }
  .files td.last-message, .files td.size { display: none; }
  .settings-nav { flex-direction: row; overflow-x: auto; }
  .label-list li { grid-template-columns: 1fr auto; }
  .label-description, .label-count { display: none; }
  .issue-side .assignees { display: none; }
}
