@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/figtree-5.3.0-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/figtree-5.3.0-latin-ext-wght.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-2.5.0-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-2.5.0-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-2.5.0-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-2.5.0-400-italic.woff2") format("woff2");
}
:root {
  --bg: #F6F8F5;
  --surface: #FFFFFF;
  --surface-2: #EEF2EC;
  --text: #1E2420;
  --text-2: #3A433D;
  --muted: #69736B;
  --border: #DDE3DB;
  --border-strong: #C5CFC3;
  --accent: #5E7D63;
  --accent-ink: #4A6750;
  --accent-soft: #E4ECE3;
  --accent-text: #FFFFFF;
  --focus: #4A6750;
  --ok: #1D7A62;
  --warn: #9A6200;
  --bad: #B0413A;
  --danger: #B0413A;
  --caution: #B0413A;
  --danger-bg: #F8E1DE;
  --alert-bg: #F8E1DE;
  --alert-text: #7D2B25;
  --code-bg: #EEF2EC;
  --public-bg: #E4ECE3;
  --public-text: #4A6750;
  --private-bg: #EEF2EC;
  --private-text: #3A433D;
  --add-bg: #DCF2EA;
  --add-text: #174D3F;
  --add-mark: #1D7A62;
  --del-bg: #F8E1DE;
  --del-text: #7D2B25;
  --del-mark: #B0413A;
  --hunk-bg: #EDF1EB;
  --hunk-text: #3F5F46;
  --ln-text: #69736B;
  --row-target: #FFF4C2;
  --note: #4A6750;
  --tip: #1D7A62;
  --important: #6A4BB0;
  --warning: #9A6200;
  --h0: #E6ECE4;
  --h1: #C6D9C8;
  --h2: #9DBDA2;
  --h3: #6F9676;
  --h4: #3F5F46;
  --shadow: 0 10px 28px rgba(30, 36, 32, .10);
  --radius: 10px;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --topbar-h: 52px;
  --sidebar-w: 232px;
  color-scheme: light;
  accent-color: var(--accent);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --bg: #121613;
    --surface: #191E1A;
    --surface-2: #1F261F;
    --text: #E3E8E2;
    --text-2: #C4CCC3;
    --muted: #97A198;
    --border: #2A322C;
    --border-strong: #3A443C;
    --accent: #9DBEA2;
    --accent-ink: #B5D2B9;
    --accent-soft: #233026;
    --accent-text: #0F1510;
    --focus: #9DBEA2;
    --ok: #7CCBAE;
    --warn: #E6B765;
    --bad: #F09A90;
    --danger: #F09A90;
    --caution: #F09A90;
    --danger-bg: #3A1E1C;
    --alert-bg: #3A1E1C;
    --alert-text: #F2B8B0;
    --code-bg: #1F261F;
    --public-bg: #233026;
    --public-text: #B5D2B9;
    --private-bg: #1F261F;
    --private-text: #C4CCC3;
    --add-bg: #143029;
    --add-text: #A6E3CF;
    --add-mark: #7CCBAE;
    --del-bg: #3A1E1C;
    --del-text: #F2B8B0;
    --del-mark: #F09A90;
    --hunk-bg: #1E2620;
    --hunk-text: #9DBEA2;
    --ln-text: #97A198;
    --row-target: #3A3510;
    --note: #B5D2B9;
    --tip: #7CCBAE;
    --important: #C4A7FF;
    --warning: #E6B765;
    --h0: #1F2722;
    --h1: #2D3D31;
    --h2: #41604A;
    --h3: #628A6C;
    --h4: #9DBEA2;
    --shadow: 0 10px 28px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
:root[data-theme=light] {
  color-scheme: light;
}

:root[data-theme=dark] {
  --bg: #121613;
  --surface: #191E1A;
  --surface-2: #1F261F;
  --text: #E3E8E2;
  --text-2: #C4CCC3;
  --muted: #97A198;
  --border: #2A322C;
  --border-strong: #3A443C;
  --accent: #9DBEA2;
  --accent-ink: #B5D2B9;
  --accent-soft: #233026;
  --accent-text: #0F1510;
  --focus: #9DBEA2;
  --ok: #7CCBAE;
  --warn: #E6B765;
  --bad: #F09A90;
  --danger: #F09A90;
  --caution: #F09A90;
  --danger-bg: #3A1E1C;
  --alert-bg: #3A1E1C;
  --alert-text: #F2B8B0;
  --code-bg: #1F261F;
  --public-bg: #233026;
  --public-text: #B5D2B9;
  --private-bg: #1F261F;
  --private-text: #C4CCC3;
  --add-bg: #143029;
  --add-text: #A6E3CF;
  --add-mark: #7CCBAE;
  --del-bg: #3A1E1C;
  --del-text: #F2B8B0;
  --del-mark: #F09A90;
  --hunk-bg: #1E2620;
  --hunk-text: #9DBEA2;
  --ln-text: #97A198;
  --row-target: #3A3510;
  --note: #B5D2B9;
  --tip: #7CCBAE;
  --important: #C4A7FF;
  --warning: #E6B765;
  --h0: #1F2722;
  --h1: #2D3D31;
  --h2: #41604A;
  --h3: #628A6C;
  --h4: #9DBEA2;
  --shadow: 0 10px 28px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-ink);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

h1,
h2 {
  line-height: 1.25;
  margin: 0 0 0.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 {
  font-size: 1.625rem;
}

h2 {
  font-size: 1rem;
}

code,
pre {
  font-family: var(--mono);
  font-size: 0.875rem;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.8125rem;
}

.lead {
  font-size: 1.0625rem;
  color: var(--muted);
}

.menu {
  position: relative;
}
.menu summary {
  cursor: pointer;
  list-style: none;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu[open] summary {
  border-color: var(--accent);
}

.menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 200px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 10;
}
.menu-list li a,
.menu-list .link-button {
  display: block;
  width: 100%;
  padding: 8px 14px;
  color: var(--text);
  text-align: left;
}

main {
  padding-top: 24px;
  padding-bottom: 48px;
  min-height: 70vh;
}

.site-footer {
  color: var(--muted);
  font-size: 0.8125rem;
  padding-top: 16px;
  padding-bottom: 24px;
  border-top: 1px solid var(--border);
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.repo-title {
  word-break: break-all;
}

.hero {
  padding: 48px 0;
  text-align: left;
}
.hero h1 {
  font-size: 2rem;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.card.narrow {
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
.card.notice {
  border-color: var(--accent);
}

.button,
button {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}
.button:hover,
button:hover {
  text-decoration: none;
  background: var(--surface-2);
}
.button:disabled,
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.button.primary,
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}
.button.primary:hover,
button.primary:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
}
.button.danger,
button.danger {
  color: var(--danger);
  border-color: var(--danger);
  background: transparent;
}
.button.danger:hover,
button.danger:hover {
  background: var(--danger-bg);
}

.link-button,
button.link-button {
  display: inline;
  height: auto;
  padding: 0;
  margin: 0;
  gap: 0;
  background: none;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  white-space: normal;
  cursor: pointer;
  color: var(--accent-ink);
}
.link-button:hover,
button.link-button:hover {
  background: none;
  text-decoration: underline;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
label.inline {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
label > span {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-2);
}

input,
select,
textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 8px 12px;
  width: 100%;
  max-width: 100%;
}
input::placeholder,
select::placeholder,
textarea::placeholder {
  color: var(--muted);
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

input[type=radio],
input[type=checkbox] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  min-width: 16px;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  accent-color: var(--accent);
  box-shadow: none;
}

select option,
select optgroup {
  background: var(--surface);
  color: var(--text);
}

@supports (appearance: base-select) {
  select:not([multiple]):not([size]),
select:not([multiple]):not([size])::picker(select) {
    appearance: base-select;
  }
  select:not([multiple]):not([size])::picker-icon {
    color: var(--muted);
    transition: rotate 0.2s ease;
  }
  select:not([multiple]):not([size]):open::picker-icon {
    rotate: 180deg;
  }
  select:not([multiple]):not([size])::picker(select) {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 4px;
    margin-top: 4px;
    max-height: 320px;
    overflow-y: auto;
    outline: none;
  }
  select:not([multiple]):not([size]) option {
    padding: 7px 10px;
    border-radius: 6px;
    color: var(--text);
    background: transparent;
    font: inherit;
  }
  select:not([multiple]):not([size]) option:hover,
select:not([multiple]):not([size]) option:focus-visible {
    background: var(--surface-2);
  }
  select:not([multiple]):not([size]) option:checked {
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-weight: 600;
  }
  select:not([multiple]):not([size]) option::checkmark {
    display: none;
  }
  select:not([multiple]):not([size]) option:disabled {
    color: var(--muted);
  }
}
input[type=file] {
  width: auto;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.875rem;
  color: var(--text-2);
}

input[type=file]::file-selector-button,
input[type=file]::-webkit-file-upload-button {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  height: 34px;
  padding: 0 14px;
  margin-right: 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}
input[type=file]::file-selector-button:hover,
input[type=file]::-webkit-file-upload-button:hover {
  background: var(--border);
}

textarea {
  font-family: var(--mono);
  font-size: 0.875rem;
  resize: vertical;
}

fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
fieldset legend {
  font-weight: 600;
  padding: 0 6px;
}

.inline-form {
  display: inline-block;
}

.alert {
  background: var(--alert-bg);
  color: var(--alert-text);
  border: 1px solid var(--bad);
  padding: 10px 14px;
  border-radius: var(--radius);
  margin: 0 0 12px;
}

pre.code {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin: 6px 0 14px;
  overflow-x: auto;
  white-space: pre;
}
pre.code code {
  background: none;
  padding: 0;
}

code {
  background: var(--code-bg);
  padding: 1px 5px;
  border-radius: 4px;
  word-break: break-all;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
  border: 1px solid transparent;
  padding: 0 9px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}
.badge.public {
  background: var(--public-bg);
  color: var(--public-text);
}
.badge.private {
  background: var(--private-bg);
  color: var(--private-text);
  border-color: var(--border-strong);
}

.repo-list,
.branch-list,
.item-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.repo-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.repo-item:last-child {
  border-bottom: 0;
}
.repo-item p {
  margin: 4px 0 0;
}

.repo-name {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text);
}

.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.item:last-child {
  border-bottom: 0;
}
.item .item-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  word-break: break-word;
}

.branch-list li {
  padding: 6px 0;
}

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.table th,
.table td {
  text-align: left;
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table th {
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 0.78125rem;
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 600px) {
  .card {
    padding: 16px;
  }
  .page-head h1 {
    font-size: 1.25rem;
  }
  .item {
    align-items: flex-start;
  }
}
.repo-search {
  margin: 0 0 12px;
}
.repo-search input {
  width: 100%;
  max-width: 360px;
}

.search-form {
  margin: 0 0 16px;
}

.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 8px;
}
.search-row input[type=search] {
  flex: 1 1 280px;
}
.search-row input[type=text] {
  width: 200px;
}

.search-options label {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.search-file {
  margin: 0 0 16px;
}

.search-file-name {
  font-size: 1rem;
  margin: 0 0 4px;
}

.search-hits {
  list-style: none;
  margin: 0;
  padding: 0;
}
.search-hits li {
  display: flex;
  gap: 8px;
  padding: 2px 0;
}

.search-line {
  white-space: pre-wrap;
  word-break: break-word;
  min-width: 0;
}

.search-results mark {
  background: var(--row-target);
  color: inherit;
  border-radius: 2px;
}

.repo-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin: 0 0 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.repo-tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  padding: 8px 12px;
  margin-bottom: 0;
  box-shadow: inset 0 -2px 0 transparent;
  color: var(--muted);
  white-space: nowrap;
}
.tab:hover {
  color: var(--text);
  text-decoration: none;
}
.tab.active {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
  font-weight: 600;
}

.browse-bar {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  min-width: 0;
}

.archive-links {
  display: flex;
  gap: 12px;
  margin-left: auto;
  font-size: 0.875rem;
}

.ref-select {
  position: relative;
}
.ref-select summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.ref-select summary::-webkit-details-marker {
  display: none;
}
.ref-select[open] summary {
  border-color: var(--accent);
}
.ref-select code {
  background: none;
  padding: 0;
}

.ref-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 10;
  min-width: 240px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 8px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ref-heading {
  margin: 6px 14px 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ref-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ref-list a {
  display: block;
  padding: 6px 14px;
  color: var(--text);
  word-break: break-all;
}
.ref-list a.current {
  color: var(--accent);
  font-weight: 600;
}

.crumbs {
  min-width: 0;
  font-size: 0.9375rem;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.crumbs li {
  display: flex;
  align-items: center;
  min-width: 0;
}
.crumbs li + li::before {
  content: "/";
  color: var(--muted);
  padding: 0 6px;
}
.crumbs a,
.crumbs span {
  word-break: break-all;
}
.crumbs span[aria-current] {
  font-weight: 600;
}

.tree-table,
.refs-table {
  table-layout: auto;
}
.tree-table .age,
.refs-table .age {
  width: 1%;
  white-space: nowrap;
  text-align: right;
  color: var(--muted);
  font-size: 0.8125rem;
}
.tree-table th.age,
.refs-table th.age {
  text-align: right;
}

.tree-name {
  white-space: nowrap;
  max-width: 50vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tree-name a,
.tree-name span:not(.kind) {
  white-space: nowrap;
}

.tree-commit {
  max-width: 0;
  width: 100%;
}
.tree-commit a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.tree-label {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}

.mono {
  font-family: var(--mono);
}

.commit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.commit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.commit-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 260px;
  min-width: 0;
}

.commit-summary {
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}

.commit-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.commit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.commit-oid {
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--code-bg);
  color: var(--text);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.commit-oid:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.kind {
  display: inline-block;
  min-width: 4.5em;
  margin-right: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.readme {
  margin-top: 16px;
}

.readme-name {
  margin: 0 0 12px;
  font-family: var(--mono);
}

.readme-text {
  margin: 0;
  white-space: pre-wrap;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.875rem;
}

.markdown-body {
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  min-width: 0;
}
.markdown-body > *:first-child {
  margin-top: 0;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  margin: 1.4em 0 0.6em;
  line-height: 1.25;
  font-weight: 600;
  scroll-margin-top: 72px;
}
.markdown-body h1 {
  font-size: 1.75rem;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--border);
}
.markdown-body h2 {
  font-size: 1.375rem;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--border);
}
.markdown-body h3 {
  font-size: 1.125rem;
}
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  font-size: 1rem;
  color: var(--muted);
}
.markdown-body p,
.markdown-body ul,
.markdown-body ol,
.markdown-body blockquote,
.markdown-body table,
.markdown-body pre,
.markdown-body details {
  margin: 0 0 1em;
}
.markdown-body ul,
.markdown-body ol {
  padding-left: 2em;
}
.markdown-body li + li {
  margin-top: 0.25em;
}
.markdown-body li > ul,
.markdown-body li > ol {
  margin-top: 0.25em;
  margin-bottom: 0;
}
.markdown-body .task-list-item {
  list-style: none;
}
.markdown-body .task-list-item input[type=checkbox] {
  width: auto;
  margin: 0 0.4em 0 -1.4em;
  vertical-align: middle;
}
.markdown-body a {
  overflow-wrap: anywhere;
}
.markdown-body img {
  max-width: 100%;
  height: auto;
  background: var(--surface);
}
.markdown-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1.5em 0;
}
.markdown-body blockquote {
  padding: 0 1em;
  color: var(--muted);
  border-left: 0.25em solid var(--border);
}
.markdown-body code {
  padding: 0.15em 0.35em;
  font-size: 0.85em;
  word-break: normal;
}
.markdown-body pre {
  padding: 14px;
  overflow-x: auto;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  line-height: 1.45;
}
.markdown-body pre code {
  padding: 0;
  background: none;
  font-size: 0.875rem;
  word-break: normal;
}
.markdown-body table {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}
.markdown-body table th,
.markdown-body table td {
  padding: 6px 13px;
  border: 1px solid var(--border);
  text-align: left;
}
.markdown-body table th {
  font-weight: 600;
  background: var(--code-bg);
}
.markdown-body details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
}
.markdown-body details summary {
  cursor: pointer;
  font-weight: 600;
}
.markdown-body .markdown-alert {
  padding: 0.5em 1em;
  margin: 0 0 1em;
  color: var(--text);
  border-left: 0.25em solid var(--alert-accent, var(--border));
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
}
.markdown-body .markdown-alert > :last-child {
  margin-bottom: 0;
}
.markdown-body .markdown-alert-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 0.3em;
  font-weight: 600;
  color: var(--alert-accent, var(--text));
}
.markdown-body .markdown-alert-note {
  --alert-accent: var(--note);
}
.markdown-body .markdown-alert-tip {
  --alert-accent: var(--tip);
}
.markdown-body .markdown-alert-important {
  --alert-accent: var(--important);
}
.markdown-body .markdown-alert-warning {
  --alert-accent: var(--warning);
}
.markdown-body .markdown-alert-caution {
  --alert-accent: var(--caution);
}

.file {
  min-width: 0;
}

.file-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
}

.file-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  margin-left: auto;
}

.file-view,
.diff-file-body {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
}

.file-table,
.diff-table {
  min-width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.file-table td,
.diff-table td {
  padding: 0;
  vertical-align: top;
}
.file-table tbody tr:target td,
.diff-table tbody tr:target td {
  background: var(--row-target);
}

.file-table {
  width: max-content;
}
.file-table .ln {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 1%;
  min-width: 3.5em;
  padding: 0 10px 0 12px;
  text-align: right;
  white-space: nowrap;
  user-select: none;
  background: var(--code-bg);
  border-right: 1px solid var(--border);
}
.file-table .ln a {
  color: var(--ln-text);
}
.file-table .code {
  padding: 0 16px 0 14px;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
}
.file-table tr[id]:target .ln {
  color: var(--text);
  font-weight: 600;
}

.file-image {
  display: flex;
  justify-content: center;
  padding: 16px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: auto;
}
.file-image img {
  max-width: 100%;
  height: auto;
}

.notice {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  overflow-wrap: anywhere;
}
.notice code {
  color: var(--text);
}

.diff-file {
  min-width: 0;
  margin: 0 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.diff-file-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.875rem;
  word-break: break-all;
  min-width: 0;
}

.diff-stats {
  display: inline-flex;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  white-space: nowrap;
}
.diff-stats .add {
  color: var(--add-text);
}
.diff-stats .del {
  color: var(--del-text);
}

.diff-file-body {
  border: 0;
  border-radius: 0;
}

.diff-table {
  width: max-content;
}
.diff-table .diff-line td {
  white-space: pre;
}
.diff-table .diff-line.add {
  background: var(--add-bg);
}
.diff-table .diff-line.add .diff-code {
  color: var(--add-text);
}
.diff-table .diff-line.del {
  background: var(--del-bg);
}
.diff-table .diff-line.del .diff-code {
  color: var(--del-text);
}
.diff-table .diff-line.hunk {
  background: var(--hunk-bg);
  color: var(--hunk-text);
}
.diff-table .diff-line.hunk .diff-code {
  color: var(--hunk-text);
}
.diff-table .diff-ln {
  width: 1%;
  min-width: 3.5em;
  padding: 0 8px;
  text-align: right;
  white-space: nowrap;
  user-select: none;
  color: var(--ln-text);
  background: var(--code-bg);
  border-right: 1px solid var(--border);
  position: sticky;
  left: 0;
  z-index: 1;
}
.diff-table .diff-code {
  padding: 0 14px;
  white-space: pre;
}

.diff-collapsed {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.875rem;
  background: var(--code-bg);
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}

@media (max-width: 600px) {
  .tree-name {
    max-width: 60vw;
  }
  .archive-links {
    margin-left: 0;
  }
  .file-actions {
    margin-left: 0;
  }
  .ref-menu {
    max-width: calc(100vw - 32px);
  }
}
.profile-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.profile-head h1 {
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}
.profile-head p {
  margin: 0;
}

.profile-avatar {
  width: 160px;
  height: 160px;
  max-width: 100%;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  object-fit: cover;
}

.profile-about {
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-wrap: anywhere;
}

.profile-repos h2 {
  font-size: 1.125rem;
  margin: 0 0 8px;
}

@media (max-width: 600px) {
  .profile-avatar {
    width: 112px;
    height: 112px;
  }
  .profile-about {
    padding: 12px 14px;
  }
}
.avatar {
  display: inline-block;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  vertical-align: middle;
}

.avatar-sm {
  width: 24px;
  height: 24px;
  margin-right: 0.4em;
}

.avatar-lg {
  width: 96px;
  height: 96px;
}

.avatar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
}

.settings-layout {
  display: grid;
  gap: 1rem;
}

.settings-layout textarea {
  width: 100%;
  max-width: 40rem;
  box-sizing: border-box;
}

.settings-layout select {
  max-width: 24rem;
}

@media (max-width: 600px) {
  .avatar-row {
    flex-direction: column;
  }
}
.branch-rules .remove-form {
  margin: 0;
}
.branch-rules tr.muted td {
  color: var(--muted);
}

.branch-form {
  max-width: 40rem;
}
.branch-form input[type=text] {
  max-width: 24rem;
}

.label-list,
.milestone-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.label-row,
.milestone-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.label-row:last-child,
.milestone-row:last-child {
  border-bottom: none;
}
.label-row h3,
.milestone-row h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}
.label-row p,
.milestone-row p {
  margin: 4px 0;
}

.label-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.label-chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.label-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
}
.label-actions details {
  flex: 1 1 20rem;
}
.label-actions summary {
  cursor: pointer;
  color: var(--accent);
}
.label-actions .remove-form {
  margin: 0;
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 12px 0;
  border-bottom: 1px solid var(--border);
}

.subnav-link {
  padding: 6px 0;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.subnav-link.current {
  color: var(--text);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.milestone-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}
.milestone-progress progress {
  width: 16rem;
  max-width: 100%;
  height: 0.75rem;
  accent-color: var(--accent);
}

.badge.overdue {
  background: var(--danger-bg);
  color: var(--danger);
  margin-left: 0;
}

.label-row .remove-form,
.milestone-row .remove-form {
  margin: 0;
}

.milestone-row .markdown-body {
  margin: 4px 0;
}

@media (max-width: 600px) {
  .milestone-progress progress {
    width: 100%;
  }
}
.tab-count {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 0.4em;
  border-radius: 999px;
  background: var(--code-bg);
  color: var(--muted);
  font-size: 0.85em;
  text-align: center;
}

.issue-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1rem 0 0.75rem;
}

.issue-tabs {
  display: flex;
  gap: 0.25rem;
}
.issue-tabs a {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
}
.issue-tabs a:hover {
  color: var(--text);
}
.issue-tabs a.current {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}

.issue-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.issue-search input[type=search] {
  flex: 1 1 14rem;
  max-width: 32rem;
}
.issue-search select {
  width: auto;
}

.issue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.issue-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.issue-row:first-child {
  border-top: 0;
}

.issue-state {
  flex: none;
  width: 0.9rem;
  height: 0.9rem;
  margin-top: 0.3rem;
  border: 2px solid;
  border-radius: 50%;
}

.issue-state-open {
  border-color: var(--public-text);
  background: var(--public-bg);
}

.issue-state-closed {
  border-color: var(--important);
  background: var(--private-bg);
}

.pinned-issues {
  margin-bottom: 1rem;
}
.pinned-issues h2 {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pinned-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pinned-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.pinned-card .pinned-title {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.issue-main {
  flex: 1 1 auto;
  min-width: 0;
}

.issue-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.issue-title {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.issue-title:hover {
  text-decoration: underline;
}

.issue-meta {
  margin-top: 0.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.issue-aside {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.label-chip {
  display: inline-block;
  padding: 0 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
}

.issue-new {
  max-width: 48rem;
}
.issue-new textarea {
  min-height: 14rem;
  font-family: var(--mono);
}

.issue-heading {
  margin: 0.25rem 0;
  font-size: 1.5rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.issue-number {
  color: var(--muted);
  font-weight: 400;
}

.issue-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0.25rem 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.issue-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.issue-badge.issue-badge-open {
  background: var(--add-bg);
  color: var(--add-text);
}
.issue-badge.issue-badge-completed {
  background: var(--hunk-bg);
  color: var(--important);
}
.issue-badge.issue-badge-not-planned {
  background: var(--private-bg);
  color: var(--private-text);
}

.issue-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: 1.5rem;
  align-items: start;
}

.issue-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

@media (max-width: 700px) {
  .issue-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
.issue-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.issue-item {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.issue-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--code-bg);
  font-size: 0.9rem;
}

.issue-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}
.issue-item-actions form {
  margin: 0;
}

.issue-item-body {
  padding: 0.75rem 1rem;
  overflow-wrap: anywhere;
}

.reactions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0 1rem 0.75rem;
}

.reaction-form {
  display: inline;
  margin: 0;
}

.reaction {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.4;
  cursor: pointer;
}
.reaction:hover {
  border-color: var(--accent);
}

span.reaction {
  cursor: default;
}

.reaction-active {
  border-color: var(--accent);
  background: var(--public-bg);
}

.reaction-count {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.reaction-picker {
  position: relative;
}
.reaction-picker > summary {
  list-style: none;
  padding: 0.15rem 0.5rem;
  border: 1px dashed var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
}
.reaction-picker > summary::-webkit-details-marker {
  display: none;
}

.reaction-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.issue-edited {
  color: var(--muted);
  font-size: 0.85rem;
}

.issue-event {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.issue-comment h2,
.issue-edit h2 {
  margin-top: 0;
}

.issue-comment-form textarea,
.issue-edit textarea {
  width: 100%;
  min-height: 8rem;
  box-sizing: border-box;
  font: inherit;
}

.issue-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.issue-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.issue-side-section {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.issue-side-section h2 {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.issue-side-section input[type=text],
.issue-side-section select {
  width: 100%;
  box-sizing: border-box;
}

.issue-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.2rem 0;
}

.issue-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.issue-names {
  margin: 0;
  padding: 0;
  list-style: none;
}

.issue-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.issue-tools nav {
  display: flex;
  gap: 0.5rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fork-form,
.star-form {
  margin: 0;
}

.issue-badge.issue-badge-closed {
  background: var(--danger-bg);
  color: var(--danger);
}

.issue-badge.issue-badge-merged {
  background: var(--important);
  color: var(--accent-text);
}

.issue-state.pull-state-closed {
  border-color: var(--danger);
  background: var(--danger-bg);
}

.issue-state.pull-state-merged {
  border-color: var(--important);
  background: var(--important);
}

.merge-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.merge-box.merge-ok {
  border-color: var(--add-text);
  background: var(--add-bg);
}
.merge-box.merge-bad {
  border-color: var(--danger);
  background: var(--danger-bg);
}
.merge-box.merge-muted {
  color: var(--muted);
}
.merge-box.merge-merged {
  border-color: var(--important);
}

.merge-headline {
  margin: 0;
  font-weight: 600;
}

.merge-error {
  margin: 0;
}

.merge-files {
  margin: 0;
  padding-left: 1.25rem;
}

.merge-form {
  margin: 0;
}

.merge-styles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  border: 0;
}
.merge-styles legend {
  width: 100%;
  padding: 0;
  font-weight: 600;
}

.diff-table .diff-plus {
  width: 1%;
  padding: 0 4px;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  background: var(--code-bg);
  border-right: 1px solid var(--border);
}
.diff-table .diff-plus a {
  display: inline-block;
  width: 18px;
  line-height: 18px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--mono);
  text-decoration: none;
  text-align: center;
  opacity: 0;
}
.diff-table .diff-plus a:hover,
.diff-table .diff-plus a:focus-visible {
  opacity: 1;
}
.diff-table tr:hover .diff-plus a {
  opacity: 1;
}
.diff-table .review-row > td {
  white-space: normal;
  padding: 8px 12px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.review-threads {
  display: grid;
  gap: 12px;
  width: min(760px, 90vw);
  max-width: 100%;
  padding: 4px 0;
}

.review-thread {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.review-thread summary {
  cursor: pointer;
  padding: 8px 12px;
  font-size: 0.875rem;
  color: var(--muted);
}

.review-thread-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--code-bg);
  font-size: 0.875rem;
  word-break: break-all;
}

.review-hunk {
  margin: 0;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--code-bg);
  font-family: var(--mono);
  font-size: 0.8125rem;
  overflow-x: auto;
}

.review-comment {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.review-comment:last-child {
  border-bottom: 0;
}

.review-comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted);
}
.review-comment-head strong {
  color: var(--text);
}

.review-comment-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.review-comment-body {
  margin-top: 6px;
}

.review-thread-actions {
  display: flex;
  gap: 12px;
  padding: 6px 12px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}

.review-reply {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
}

.review-inline {
  display: inline;
  margin: 0;
}

.review-badge {
  display: inline-block;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 20px;
}

.review-badge-outdated {
  background: var(--private-bg);
  color: var(--private-text);
}

.review-badge-pending {
  background: var(--hunk-bg);
  color: var(--hunk-text);
}

.review-bar {
  margin: 0 0 16px;
}
.review-bar h2 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.review-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}
.review-choices legend {
  padding: 0;
  margin-bottom: 4px;
  font-size: 0.875rem;
  color: var(--muted);
}
.review-choices label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.review-inline-form {
  padding: 10px 12px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  white-space: normal;
}

.review-item > .review-thread {
  margin-top: 8px;
}
.review-item .review-verb {
  font-weight: 600;
}
.review-item .review-verb-dismissed {
  color: var(--muted);
  text-decoration: line-through;
}

.review-dismissed {
  margin: 0 0 8px;
  font-size: 0.875rem;
  color: var(--muted);
}

.review-box {
  display: grid;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.review-summary {
  margin: 0;
  font-size: 0.9rem;
}

.review-dismiss {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}
.review-dismiss label {
  flex: 1 1 240px;
  display: grid;
  gap: 4px;
}

.recent-pushes {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

.recent-push {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  margin: 0;
  padding: 10px 12px;
}

.recent-push a {
  font-weight: 600;
  white-space: nowrap;
}

.mirror-line {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.mirror-fields {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.mirror-fields legend {
  font-weight: 600;
  margin-bottom: 6px;
  padding: 0;
}
.mirror-fields input[type=url],
.mirror-fields input[type=password] {
  max-width: 32rem;
}

.mirrors td code {
  overflow-wrap: anywhere;
}
.mirrors details summary {
  cursor: pointer;
}
.mirrors .mirror-error {
  font-family: var(--mono);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.mirror-form {
  max-width: 40rem;
}
.mirror-form input[type=url],
.mirror-form input[type=password] {
  max-width: 32rem;
}

.webhooks td code {
  overflow-wrap: anywhere;
}

.webhook-form {
  max-width: 40rem;
}
.webhook-form input[type=url],
.webhook-form input[type=password] {
  max-width: 32rem;
}

.event-choices {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.event-choices legend {
  font-weight: 600;
  margin-bottom: 6px;
  padding: 0;
}

.hook-state {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--private-bg);
  color: var(--private-text);
}
.hook-state.ok {
  background: var(--public-bg);
  color: var(--public-text);
}
.hook-state.failed, .hook-state.pending {
  background: var(--private-bg);
  color: var(--warning);
}
.hook-state.gave_up {
  background: var(--danger-bg);
  color: var(--danger);
}

.delivery {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0 0 8px;
  padding: 8px 12px;
}
.delivery summary {
  cursor: pointer;
  overflow-wrap: anywhere;
}
.delivery .delivery-body {
  margin-top: 10px;
}
.delivery .delivery-body h4 {
  margin: 12px 0 4px;
  font-size: 0.875rem;
}
.delivery .delivery-body .code-block {
  background: var(--code-bg);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.8125rem;
  margin: 0;
  max-height: 24rem;
  overflow: auto;
  padding: 8px 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25em;
  font-weight: 700;
  line-height: 1;
}
.status-icon.status-success {
  color: var(--add-text);
}
.status-icon.status-failure {
  color: var(--danger);
}
.status-icon.status-pending {
  color: var(--warning);
}

.commit-status {
  position: relative;
}
.commit-status > summary {
  cursor: pointer;
  list-style: none;
  padding: 2px 4px;
  border-radius: 4px;
}
.commit-status > summary::-webkit-details-marker {
  display: none;
}
.commit-status > summary:hover {
  background: var(--code-bg);
}
.commit-status[open] > .status-list {
  position: absolute;
  z-index: 10;
  right: 0;
  top: 100%;
  min-width: 280px;
  max-width: 420px;
  margin-top: 4px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.status-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-size: 0.9rem;
}

.checks-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.checks-summary.status-success > .status-icon {
  color: var(--add-text);
}
.checks-summary.status-failure > .status-icon {
  color: var(--danger);
}
.checks-summary.status-pending > .status-icon {
  color: var(--warning);
}
.checks-summary .checks-details {
  flex-basis: 100%;
}
.checks-summary .checks-details > summary {
  cursor: pointer;
}
.checks-summary .checks-details > .status-list {
  margin-top: 8px;
}

.bell {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text);
  text-decoration: none;
}

.bell-count {
  display: inline-block;
  min-width: 1.4rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 0.75rem;
  line-height: 1.4rem;
  text-align: center;
}

.notif-tabs {
  display: flex;
  gap: 1rem;
  margin: 0.75rem 0 1rem;
  border-bottom: 1px solid var(--border);
}
.notif-tabs a {
  padding: 0.4rem 0;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.notif-tabs a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.notif-group {
  margin-bottom: 1rem;
  padding: 0;
  overflow: hidden;
}

.notif-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  background: var(--code-bg);
  border-bottom: 1px solid var(--border);
}

.notif-repo {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notif-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--border);
}
.notif-row:last-child {
  border-bottom: none;
}
.notif-row.unread .notif-title {
  font-weight: 600;
}

.notif-title {
  flex: 1 1 18rem;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  text-decoration: none;
}
.notif-title:hover {
  color: var(--accent);
  text-decoration: underline;
}

.notif-icon {
  flex: 0 0 auto;
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 2px solid var(--muted);
}
.notif-icon.issue-open, .notif-icon.pull-open {
  border-color: var(--public-text);
  background: var(--public-bg);
}
.notif-icon.issue-closed, .notif-icon.pull-closed {
  border-color: var(--danger);
  background: var(--danger-bg);
}

.notif-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.notif-inline-form {
  display: inline;
  margin: 0;
}

.notif-more {
  text-align: center;
}

.notif-box h2 {
  font-size: 1rem;
}
.notif-box p {
  margin: 0.4rem 0 0.6rem;
}

.watch-form {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}
.watch-form select {
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

@media (max-width: 40rem) {
  .notif-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
.sig-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
}

.sig-verified {
  background: var(--public-bg);
  color: var(--public-text);
}

.sig-unverified {
  background: var(--private-bg);
  color: var(--private-text);
}

.release-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.release-card {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.release-card:first-of-type {
  border-top: 0;
}
.release-card h3 {
  margin: 0 0 4px;
}

.release-asset-list {
  margin: 8px 0;
  padding-left: 20px;
}

.release-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.release-form {
  max-width: 720px;
}
.release-form textarea {
  width: 100%;
  font-family: inherit;
}

.release-assets td code {
  word-break: break-all;
}

.badge.latest {
  background: var(--public-bg);
  color: var(--public-text);
}

.badge.draft {
  background: var(--private-bg);
  color: var(--private-text);
}

.ci-state {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--private-bg);
  color: var(--private-text);
}
.ci-state::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
}
.ci-state.ci-success {
  background: var(--public-bg);
  color: var(--public-text);
}
.ci-state.ci-queued, .ci-state.ci-running, .ci-state.ci-blocked, .ci-state.ci-waiting_approval {
  background: var(--private-bg);
  color: var(--warning);
}
.ci-state.ci-failure, .ci-state.ci-error {
  background: var(--danger-bg);
  color: var(--danger);
}

.ci-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.ci-manual-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ci-config-error {
  white-space: pre-wrap;
  color: var(--danger);
}

.ci-log {
  max-height: 70vh;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.85rem;
  margin: 0;
}

.ci-artifacts {
  margin: 0;
  padding-left: 20px;
}

/* Theme and language preferences (T1). The palettes live at the top of this file: the dark
   variables apply under :root:not([data-theme="light"]) and under :root[data-theme="dark"]. */
.theme-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.theme-picker label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.theme-picker label span {
  color: var(--muted);
}

.snippet-list .item-main a {
  text-decoration: none;
}

.snippet-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: fit-content;
  min-width: min(880px, 100%);
  max-width: 100%;
}
.snippet-form svg {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.snippet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.snippet-head h1 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.25;
}

.snippet-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.snippet-visibility {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.snippet-segmented {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 32px;
  box-sizing: border-box;
  max-width: 100%;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
}

.snippet-segmented .segment {
  position: relative;
  display: inline-flex;
  margin: 0;
  cursor: pointer;
}
.snippet-segmented .segment input[type=radio] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
}
.snippet-segmented .segment > span {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
}
.snippet-segmented .segment > svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.snippet-segmented .segment > span {
  padding-left: 32px;
}
.snippet-segmented .segment:hover > span {
  color: var(--text);
}
.snippet-segmented .segment input[type=radio]:checked ~ span {
  background: var(--surface);
  color: var(--accent-ink);
  box-shadow: 0 1px 2px rgba(30, 36, 32, 0.12);
}
.snippet-segmented .segment input[type=radio]:checked ~ svg {
  color: var(--accent-ink);
}
.snippet-segmented .segment input[type=radio]:focus-visible ~ span {
  box-shadow: 0 0 0 2px var(--focus);
}

.snippet-doc {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.snippet-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px 22px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.snippet-meta:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow);
}

.snippet-form .snippet-title,
.snippet-form .snippet-desc {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  font: inherit;
  outline: none;
}
.snippet-form .snippet-title:focus,
.snippet-form .snippet-desc:focus {
  border: 0;
  box-shadow: none;
  outline: none;
}
.snippet-form .snippet-title::placeholder,
.snippet-form .snippet-desc::placeholder {
  color: var(--muted);
  opacity: 1;
}

.snippet-form .snippet-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.snippet-form .snippet-desc {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.snippet-form .snippet-files {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.snippet-form .snippet-files:has(.snippet-name:focus, .snippet-content:focus) {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow);
}

.snippet-tabbar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0 12px;
  padding-right: 12px;
  background: var(--surface-2);
  contain: inline-size;
}

.snippet-tabs {
  display: flex;
  align-items: flex-end;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-left: 6px;
  scrollbar-width: thin;
}

.snippet-count {
  flex: none;
  margin-left: auto;
  align-self: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.snippet-tab-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  outline: none;
}

.snippet-form .snippet-tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  max-width: 200px;
  height: 36px;
  margin: 0 1px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  user-select: none;
}
.snippet-form .snippet-tab:hover {
  color: var(--text);
}

.snippet-tab-radio:checked + .snippet-tab {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: inset 0 2px 0 var(--accent);
  color: var(--text);
}

.snippet-tab-radio:focus-visible + .snippet-tab {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.snippet-form .snippet-tab-add {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 30px;
  height: 30px;
  margin: 0 0 3px 4px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}
.snippet-form .snippet-tab-add:hover {
  background: var(--surface);
  color: var(--text);
}
.snippet-form .snippet-tab-add:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--focus);
}

.snippet-form .snippet-panel {
  display: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.snippet-form .snippet-slot-head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  box-sizing: border-box;
  padding: 0 6px 0 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.snippet-form .snippet-name {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8125rem;
  outline: none;
}
.snippet-form .snippet-name:focus {
  border: 0;
  box-shadow: none;
  outline: none;
}
.snippet-form .snippet-name::placeholder {
  color: var(--muted);
  opacity: 1;
}

.snippet-form .snippet-remove {
  align-self: auto;
  flex: none;
  width: 28px;
  height: 28px;
  padding: 0;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}
.snippet-form .snippet-remove:hover {
  background: var(--surface-2);
  color: var(--text);
}
.snippet-form .snippet-remove:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--focus);
}

.snippet-form .snippet-content {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 480px;
  height: clamp(240px, 100dvh - 400px, 720px);
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-radius: 0;
  background: var(--surface-2);
  box-shadow: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  tab-size: 4;
  resize: both;
  outline: none;
}
.snippet-form .snippet-content:focus {
  border: 0;
  box-shadow: none;
  outline: none;
}

.snippet-files:has(#snippet-tab-0:checked) .snippet-panel-0 {
  display: block;
}

.snippet-files:has(#snippet-tab-1:checked) .snippet-panel-1 {
  display: block;
}

.snippet-files:has(#snippet-tab-2:checked) .snippet-panel-2 {
  display: block;
}

.snippet-files:has(#snippet-tab-3:checked) .snippet-panel-3 {
  display: block;
}

.snippet-files:has(#snippet-tab-4:checked) .snippet-panel-4 {
  display: block;
}

.snippet-files:has(#snippet-tab-5:checked) .snippet-panel-5 {
  display: block;
}

.snippet-files:has(#snippet-tab-6:checked) .snippet-panel-6 {
  display: block;
}

.snippet-files:has(#snippet-tab-7:checked) .snippet-panel-7 {
  display: block;
}

.snippet-files:has(#snippet-tab-8:checked) .snippet-panel-8 {
  display: block;
}

.snippet-files:has(#snippet-tab-9:checked) .snippet-panel-9 {
  display: block;
}

@media (max-width: 599px) {
  .snippet-form .snippet-content {
    resize: vertical;
  }
}
@media (max-width: 480px) {
  .snippet-head-actions {
    justify-content: space-between;
    margin-left: 0;
    width: 100%;
  }
  .snippet-segmented .segment > span {
    width: 26px;
    padding: 0;
    font-size: 0;
    line-height: 0;
  }
  .snippet-segmented .segment > svg {
    left: 9px;
  }
  .snippet-form .snippet-meta {
    padding: 16px 16px 14px;
  }
  .snippet-form .snippet-slot-head {
    padding-left: 12px;
  }
}
.snippet-description {
  color: var(--muted);
}

.snippet-file {
  margin-top: 16px;
}

.snippet-code {
  margin: 0;
  overflow-x: auto;
  padding: 12px;
}

.inline-form {
  display: inline;
}

/* Discussions: threads of comments, replies indented under their parent, the accepted answer. */
.discussion-thread {
  margin-bottom: 0.5rem;
}

.discussion-replies {
  margin-left: 2rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--border);
}

.discussion-accepted {
  border-left: 3px solid var(--ok);
  padding-left: 0.75rem;
}

.discussion-reply {
  display: inline-block;
  margin-right: 0.75rem;
}

.discussion-reply > form {
  margin-top: 0.5rem;
}

.discussion-new label {
  display: block;
}

.ico {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  height: var(--topbar-h);
  min-width: 0;
  padding: 0 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.wordmark:hover {
  text-decoration: none;
}

.wordmark-mark {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.topbar .crumbs {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}
.topbar .crumbs::before {
  content: "/";
  margin-right: 10px;
  color: var(--border-strong);
}
.topbar .crumbs ol {
  flex-wrap: nowrap;
}

.top-search {
  position: relative;
  flex: 0 1 340px;
  min-width: 0;
  margin: 0 0 0 auto;
}
.top-search input {
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  min-width: 0;
  margin: 0;
  padding: 0 12px 0 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.top-search input::placeholder {
  color: var(--muted);
}
.top-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.top-search-icon {
  position: absolute;
  top: 10px;
  left: 11px;
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.topbar .icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-2);
  font: inherit;
  list-style: none;
  cursor: pointer;
}
.topbar .icon-btn:hover {
  background: var(--surface-2);
  text-decoration: none;
}
.topbar .icon-btn::-webkit-details-marker {
  display: none;
}

.theme-form {
  display: flex;
  flex: none;
  margin: 0;
}

.topbar .bell {
  color: var(--text-2);
}

.topbar .bell-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 1.2rem;
  padding: 0 0.3rem;
  box-shadow: 0 0 0 2px var(--bg);
  font-size: 0.6875rem;
  line-height: 1.2rem;
}

.topbar .button {
  align-self: center;
  flex: none;
}

.topbar-link {
  flex: none;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
}
.topbar-link:hover {
  color: var(--text);
  text-decoration: none;
}

.topbar .menu {
  flex: none;
}
.topbar .menu summary {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
}
.topbar .menu summary img {
  display: block;
  width: 28px;
  height: 28px;
}
.topbar .menu[open] summary {
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.topbar .menu-list {
  top: calc(100% + 8px);
}

.nav-toggle {
  flex: none;
}

.nav-panel {
  position: absolute;
  top: 100%;
  left: 12px;
  z-index: 30;
  box-sizing: border-box;
  width: 280px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - var(--topbar-h));
  padding: 12px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(100vh - var(--topbar-h));
}

.shell-sidebar {
  display: none;
}

.side-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}
.side-link:hover {
  background: var(--surface-2);
  text-decoration: none;
}
.side-link .ico {
  color: var(--muted);
}
.side-link .count {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.side-link.on {
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
}
.side-link.on .ico,
.side-link.on .count {
  color: var(--accent-ink);
}

.side-group {
  margin-top: 24px;
}

.side-h {
  margin: 0 12px 8px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--muted);
}

.side-empty {
  margin: 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.side-repos {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.side-repos a {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  overflow: hidden;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--text-2);
  white-space: nowrap;
  text-decoration: none;
}
.side-repos a:hover {
  background: var(--surface-2);
  text-decoration: none;
}

.shell > main {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  padding: 14px 16px 20px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

@media (max-width: 699px) {
  .topbar .crumbs {
    display: none;
  }
  .top-search {
    flex: 1 1 0;
  }
}
.topbar .top-search-link {
  display: none;
}

@media (max-width: 639px) {
  .top-search {
    display: none;
  }
  .topbar .top-search-link {
    display: grid;
    margin-left: auto;
  }
}
@media (min-width: 700px) {
  .shell > main {
    padding: 28px 28px 48px;
  }
  .site-footer {
    padding: 14px 28px 20px;
  }
}
@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
  .shell:has(> .shell-sidebar) {
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  }
  .shell-sidebar {
    position: sticky;
    top: var(--topbar-h);
    align-self: start;
    display: block;
    box-sizing: border-box;
    height: calc(100vh - var(--topbar-h));
    min-width: 0;
    padding: 16px 12px 24px;
    overflow-y: auto;
    background: var(--surface);
    border-right: 1px solid var(--border);
  }
  .shell:has(.repo-tabs) .shell-sidebar .side-links,
.shell:has(.repo-tabs) .shell-sidebar .side-group {
    display: none;
  }
  .shell:has(> .shell-sidebar) .repo-tabs {
    position: fixed;
    top: var(--topbar-h);
    bottom: 0;
    left: 0;
    z-index: 5;
    box-sizing: border-box;
    width: var(--sidebar-w);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 16px 12px 24px;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--surface);
    border-right: 1px solid var(--border);
    border-bottom: 0;
  }
  .shell:has(> .shell-sidebar) .repo-tabs .tab {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: var(--radius);
    box-shadow: none;
    color: var(--text-2);
    font-size: 14.5px;
    font-weight: 500;
  }
  .shell:has(> .shell-sidebar) .repo-tabs .tab:hover {
    background: var(--surface-2);
    color: var(--text);
  }
  .shell:has(> .shell-sidebar) .repo-tabs .tab.active {
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-weight: 600;
    box-shadow: none;
  }
  .shell:has(> .shell-sidebar) .repo-tabs .tab-count {
    margin-left: auto;
    padding: 0;
    background: none;
    font-size: 12.5px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
  }
}
html[aria-busy=true] body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1000;
  background: var(--accent);
  transform-origin: left center;
  pointer-events: none;
  animation: soft-nav-progress 1.1s ease-in-out infinite;
}

@keyframes soft-nav-progress {
  0% {
    transform: scaleX(0);
  }
  50% {
    transform: scaleX(0.7);
  }
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html[aria-busy=true] body::before {
    animation: none;
    transform: scaleX(1);
    opacity: 0.45;
  }
}
.heat {
  container-type: inline-size;
  --cell: 11px;
  margin-top: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 0;
}
.heat h2 {
  font-size: 18px;
}

.heat-head {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 22px;
  min-width: 0;
}

.heat-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
  min-width: 0;
}

.heat-stat b {
  display: block;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.heat-stat b.accent {
  color: var(--accent-ink);
}
.heat-stat span {
  font-size: 13px;
  color: var(--muted);
}

.heat-scroll {
  --cell: clamp(11px, calc((100cqi - 200px) / 53), 16px);
  overflow-x: auto;
  padding: 4px 2px 12px;
  max-width: 100%;
}

.heat-body {
  display: grid;
  grid-template-columns: 32px max-content;
  column-gap: 8px;
  width: max-content;
}

.heat-days {
  display: grid;
  grid-template-rows: repeat(7, var(--cell));
  row-gap: 3px;
  margin-top: 18px;
  font-size: 11px;
  line-height: var(--cell);
  color: var(--muted);
}
.heat-days span {
  white-space: nowrap;
}

.heat-months {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--cell);
  column-gap: 3px;
  height: 18px;
  font-size: 12px;
  line-height: 18px;
  color: var(--muted);
}
.heat-months span {
  white-space: nowrap;
}

.heat-grid {
  display: grid;
  grid-template-rows: repeat(7, var(--cell));
  grid-auto-flow: column;
  grid-auto-columns: var(--cell);
  gap: 3px;
}

.cell {
  display: block;
  width: var(--cell);
  height: var(--cell);
  border-radius: 3px;
}

.l0 {
  background: var(--h0);
}

.l1 {
  background: var(--h1);
}

.l2 {
  background: var(--h2);
}

.l3 {
  background: var(--h3);
}

.l4 {
  background: var(--h4);
}

.heat-grid .cell:hover {
  outline: 1px solid var(--muted);
  outline-offset: 0;
}

.cell.blank {
  visibility: hidden;
}

.heat-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  min-width: 0;
}
.heat-foot p {
  margin: 0;
}

.legend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}
.legend span:not(.cell) {
  padding: 0 4px;
}

@media (max-width: 600px) {
  .heat {
    padding: 18px;
  }
  .heat-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    width: 100%;
  }
  .heat-stat b {
    font-size: 20px;
  }
}
.page-head {
  align-items: flex-start;
  gap: 16px 24px;
  margin-bottom: 12px;
}

.repo-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.repo-title-row .badge {
  padding: 0 9px;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}

.repo-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-actions {
  gap: 8px;
  align-items: center;
}
.header-actions .fork-button,
.header-actions .star-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
}
.header-actions .fork-button:hover,
.header-actions .star-button:hover {
  background: var(--surface-2);
}
.header-actions .fork-button:focus-visible,
.header-actions .star-button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.header-actions .fork-form,
.header-actions .star-form,
.header-actions .watch-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.header-actions .watch-label {
  display: inline-flex;
}
.header-actions .watch-form select {
  height: 28px;
  padding: 0 26px 0 8px;
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}
.header-actions .watch-form .button {
  height: 28px;
  padding: 0 10px;
  font-size: 13px;
}
.header-actions .watch-form .muted,
.header-actions .star-control .muted,
.header-actions > .muted {
  font-size: 13px;
  white-space: nowrap;
}

.lead {
  margin: 0 0 16px;
  max-width: 70ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
}

.repo-search {
  margin: 0 0 16px;
}
.repo-search input {
  height: 34px;
  max-width: 360px;
  font-size: 14px;
}

.browse-bar {
  margin: 20px 0 0;
  padding: 12px 0;
  font-size: 14px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.browse-bar code {
  padding: 3px 10px;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}

.archive-links {
  font-size: 14px;
  color: var(--text-2);
}

.clone {
  position: relative;
  margin-left: 0;
}
.clone > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  list-style: none;
  cursor: pointer;
}
.clone > summary::-webkit-details-marker {
  display: none;
}
.clone > summary::marker {
  content: "";
}
.clone > summary svg {
  flex: none;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.clone > summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.clone .pop-panel {
  width: 100%;
  margin-top: 8px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.clone label {
  display: block;
  margin: 14px 0 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.clone label:first-child {
  margin-top: 0;
}
.clone input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.clone input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
.clone .small {
  margin: 12px 0 0;
}

@media (max-width: 819px) {
  .clone {
    order: 1;
    flex: 1 1 100%;
  }
}
@media (min-width: 820px) {
  .clone .pop-panel {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 30;
    width: min(420px, 100vw - 32px);
    margin-top: 0;
  }
}
.repo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  margin-top: 16px;
}

.repo-main {
  min-width: 0;
}

.repo-meta {
  display: grid;
  gap: 28px;
  align-content: start;
  min-width: 0;
}
.repo-meta h2 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.repo-meta .branch-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.repo-meta .branch-list code {
  font-family: var(--mono);
  font-size: 13.5px;
  word-break: break-all;
}

@media (min-width: 1100px) {
  .repo-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 40px;
    align-items: start;
  }
}
.repo-tabs .tab-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tree-table .kind {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  margin-right: 10px;
  vertical-align: middle;
  color: var(--muted);
}
.tree-table .kind-icon {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tree-table th {
  padding: 10px 12px 10px 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.tree-table td {
  padding: 11px 12px 11px 0;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}
.tree-table tbody tr:hover td {
  background: var(--surface-2);
}
.tree-table .tree-label > a,
.tree-table .tree-label > span {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text);
}
.tree-table .tree-label > a:hover {
  color: var(--accent-ink);
  text-decoration: none;
}
.tree-table .tree-commit a {
  font-size: 14px;
  color: var(--muted);
}
.tree-table .tree-commit a:hover {
  color: var(--text);
  text-decoration: none;
}
.tree-table .age {
  font-size: 13px;
  color: var(--muted);
}

.refs-table .tree-label {
  flex-wrap: nowrap;
  align-items: center;
}
.refs-table .tree-label a {
  min-width: 0;
  overflow-wrap: anywhere;
}
.refs-table .tree-label .badge {
  flex: none;
}

.readme {
  margin-top: 24px;
  padding: 0;
  overflow: hidden;
}
.readme .readme-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.readme .markdown-body,
.readme .readme-text {
  padding: 20px 24px 24px;
}
.readme .readme-text {
  margin: 0;
  font-size: 14px;
}

.file-head {
  padding: 10px 16px;
  font-size: 14px;
  background: var(--surface-2);
}

.commit-info > p {
  margin: 0 0 10px;
}
.commit-info > p:last-child {
  margin-bottom: 0;
}

.settings-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--border);
}
.settings-nav a {
  margin-bottom: -1px;
  padding: 8px 2px 10px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.settings-nav a:hover {
  color: var(--text);
}
.settings-nav a[aria-current=page] {
  color: var(--text);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.commit-list {
  border-top: 1px solid var(--border);
}

.commit-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.commit-summary {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.commit-meta {
  font-size: 13px;
  color: var(--muted);
}

.commit-actions {
  font-size: 13.5px;
  color: var(--text-2);
}

.commit-oid {
  padding: 2px 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent-ink);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.commit-oid:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.role-list {
  display: grid;
  gap: 4px 0;
  margin: 0;
}
.role-list dt {
  font-weight: 600;
  color: var(--text);
}
.role-list dd {
  margin: 0 0 8px;
  color: var(--muted);
}
@media (min-width: 640px) {
  .role-list {
    grid-template-columns: max-content 1fr;
    gap: 8px 24px;
    align-items: baseline;
  }
  .role-list dd {
    margin: 0;
  }
}

.newrepo-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 880px;
  width: 100%;
  min-width: 0;
}
.newrepo-form svg {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.newrepo-form textarea {
  font-family: inherit;
  font-size: inherit;
}
.newrepo-form .newrepo-mono {
  font-family: var(--mono);
  font-size: 0.875rem;
}

.newrepo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.newrepo-head h1 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.25;
}

.newrepo-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.newrepo-visibility {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.newrepo-card,
.newrepo-mirror {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.newrepo-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px;
}

.newrepo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
}

.newrepo-slug {
  flex-wrap: nowrap;
  gap: 8px;
}

.newrepo-owner {
  flex: 0 1 200px;
  min-width: 0;
}

.newrepo-name {
  flex: 1 1 auto;
  min-width: 0;
}

.newrepo-slash {
  flex: none;
  padding-bottom: 9px;
  font-family: var(--mono);
  font-size: 1.125rem;
  line-height: 1;
  color: var(--muted);
}

.newrepo-options .newrepo-branch {
  flex: 0 1 240px;
  min-width: 0;
}
.newrepo-options .newrepo-labels {
  align-self: flex-end;
  min-height: 38px;
}

.newrepo-mirror > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-2);
  border-radius: 12px;
}
.newrepo-mirror > summary::-webkit-details-marker {
  display: none;
}
.newrepo-mirror > summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}
.newrepo-mirror[open] > summary {
  border-bottom: 1px solid var(--border);
}
.newrepo-mirror .newrepo-chev {
  color: var(--muted);
  transition: transform 0.15s ease;
}
.newrepo-mirror[open] .newrepo-chev {
  transform: rotate(180deg);
}

.newrepo-mirror-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 22px 20px;
}
.newrepo-mirror-body .newrepo-half {
  flex: 1 1 220px;
  min-width: 0;
}
.newrepo-mirror-body .newrepo-interval {
  max-width: 320px;
}

@media (max-width: 560px) {
  .newrepo-slug {
    flex-direction: column;
    align-items: stretch;
  }
  .newrepo-slash {
    display: none;
  }
  .newrepo-owner {
    flex-basis: auto;
  }
}
@media (max-width: 480px) {
  .newrepo-head-actions {
    justify-content: space-between;
    margin-left: 0;
    width: 100%;
  }
  .newrepo-card {
    padding: 16px;
  }
  .newrepo-mirror > summary {
    padding: 14px 16px;
  }
  .newrepo-mirror-body {
    padding: 16px;
  }
}
:root {
  --merged: #6b4fa0;
  --merged-soft: #efeaf6;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --merged: #c7b3ee;
    --merged-soft: #2b2440;
  }
}
:root[data-theme=dark] {
  --merged: #c7b3ee;
  --merged-soft: #2b2440;
}

.subnav {
  flex-wrap: nowrap;
  gap: 26px;
  margin: 16px 0 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.subnav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 12px;
  border-bottom: 0;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
.subnav-link:hover {
  color: var(--text);
  text-decoration: none;
}
.subnav-link.current {
  color: var(--text);
  font-weight: 600;
}
.subnav-link.current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.issue-heading {
  margin: 0.25rem 0 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.issue-number {
  font-family: var(--mono);
  font-size: 0.9em;
  font-weight: 500;
}

.issue-byline {
  gap: 8px 12px;
  margin: 12px 0 0;
  font-size: 14px;
}
.issue-byline strong {
  color: var(--text);
  font-weight: 600;
}
.issue-byline code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12.5px;
}

.issue-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
}
.issue-badge.issue-badge-open {
  color: var(--ok);
  background: var(--surface);
}
.issue-badge.issue-badge-closed {
  color: var(--bad);
  background: var(--surface);
}
.issue-badge.issue-badge-merged {
  border-color: transparent;
  color: var(--merged);
  background: var(--merged-soft);
}
.issue-badge.issue-badge-completed {
  border-color: transparent;
  color: var(--merged);
  background: var(--merged-soft);
}
.issue-badge.issue-badge-not-planned {
  color: var(--muted);
}

.issue-list {
  border-color: var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
}

.issue-row {
  padding: 14px 16px;
  border-top-color: var(--border);
  transition: background 0.12s ease;
}
.issue-row:hover {
  background: var(--surface-2);
}

.issue-title {
  color: var(--text);
  font-weight: 600;
}

.issue-meta {
  font-size: 13.5px;
}

.issue-state {
  width: 14px;
  height: 14px;
  margin-top: 0.2rem;
  border-width: 2px;
}

.issue-state-open {
  border-color: var(--ok);
  background: var(--surface);
}

.issue-state-closed {
  border-color: var(--merged);
  background: var(--merged);
}

.issue-state.pull-state-closed {
  border-color: var(--bad);
  background: var(--bad);
}

.issue-state.pull-state-merged {
  border-color: var(--merged);
  background: var(--merged);
}

.issue-layout {
  align-items: start;
}

@media (min-width: 1000px) {
  .issue-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 40px;
  }
}
.issue-head + .issue-layout,
.subnav + .issue-layout {
  margin-top: 16px;
}

.issue-sidebar {
  gap: 0;
  align-content: start;
  min-width: 0;
  font-size: 14px;
}
.issue-sidebar h2 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.issue-side-section {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.issue-side-section input[type=text],
.issue-side-section select {
  height: 32px;
  box-sizing: border-box;
  padding: 0 8px;
  font-size: 13px;
}
.issue-side-section button {
  height: 28px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  white-space: nowrap;
}
.issue-side-section form.stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.issue-side-section form.stack > * {
  grid-column: 1/-1;
}
.issue-side-section form.stack > input[type=text],
.issue-side-section form.stack > select {
  grid-column: 1;
  grid-row: 1;
}
.issue-side-section form.stack > input[type=text] + p,
.issue-side-section form.stack > select + p {
  margin-top: -4px;
}
.issue-side-section form.stack:has(> input[type=text], > select) > div {
  grid-column: 2;
  grid-row: 1;
}

.issue-item,
.review-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.issue-item-head {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 13.5px;
}

.issue-item-body {
  padding: 14px 16px;
  line-height: 1.6;
}

.merge-box {
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.merge-box.merge-ok {
  border-left-color: var(--ok);
  background: var(--surface);
}
.merge-box.merge-bad {
  border-left-color: var(--bad);
  background: var(--surface);
}
.merge-box.merge-muted {
  border-left-color: var(--border-strong);
  color: var(--muted);
}
.merge-box.merge-merged {
  border-left-color: var(--merged);
}

.merge-headline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.merge-headline::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.merge-ok .merge-headline {
  color: var(--ok);
}

.merge-bad .merge-headline {
  color: var(--bad);
}

.merge-merged .merge-headline {
  color: var(--merged);
}

.merge-muted .merge-headline {
  color: var(--muted);
}

.merge-box button[type=submit] {
  width: 100%;
  height: 38px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  cursor: pointer;
}
.merge-box button[type=submit]:hover {
  border-color: var(--accent-ink);
  background: var(--accent-ink);
}

.checks-summary {
  gap: 8px;
  font-size: 14px;
}
.checks-summary.status-success > .status-icon {
  color: var(--ok);
}
.checks-summary.status-failure > .status-icon {
  color: var(--bad);
}
.checks-summary.status-pending > .status-icon {
  color: var(--warn);
}

.status-icon.status-success {
  color: var(--ok);
}
.status-icon.status-failure {
  color: var(--bad);
}
.status-icon.status-pending {
  color: var(--warn);
}

.status-list {
  gap: 10px;
}

.status-item {
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.diff-file {
  max-width: 100%;
  margin: 0 0 24px;
  border-color: var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: visible;
}

.diff-file-header {
  position: sticky;
  top: var(--topbar-h);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 10px 14px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--surface-2);
  font-size: 13.5px;
}

.diff-path {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  color: var(--text);
}

.diff-file-meta {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
}

.diff-file-body {
  border: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--surface);
  overflow-x: auto;
  overflow-y: hidden;
}

.diff-stats {
  font-size: 13px;
}
.diff-stats .add {
  color: var(--add-mark);
}
.diff-stats .del {
  color: var(--del-mark);
}

.diff-table {
  font-size: 12.5px;
  line-height: 20px;
}
.diff-table .diff-line > .diff-ln {
  background: var(--surface);
}
.diff-table .diff-line.add {
  background: var(--add-bg);
}
.diff-table .diff-line.add > .diff-ln {
  background: var(--add-bg);
}
.diff-table .diff-line.add > td:first-child {
  box-shadow: inset 3px 0 0 var(--add-mark);
}
.diff-table .diff-line.add .diff-code {
  color: var(--add-text);
}
.diff-table .diff-line.del {
  background: var(--del-bg);
}
.diff-table .diff-line.del > .diff-ln {
  background: var(--del-bg);
}
.diff-table .diff-line.del > td:first-child {
  box-shadow: inset 3px 0 0 var(--del-mark);
}
.diff-table .diff-line.del .diff-code {
  color: var(--del-text);
}
.diff-table .diff-line.ctx .diff-code {
  color: var(--text);
}
.diff-table .diff-line.hunk {
  background: var(--hunk-bg);
}
.diff-table .diff-line.hunk > td {
  background: var(--hunk-bg);
  color: var(--muted);
}
.diff-table .diff-line.hunk .diff-code {
  padding-top: 4px;
  padding-bottom: 4px;
  color: var(--muted);
}
.diff-table .diff-ln {
  min-width: 3.5em;
  padding: 0 10px;
  color: var(--ln-text);
  border-right: 1px solid var(--border);
}
.diff-table .diff-code {
  padding: 0 18px 0 12px;
}

.diff-collapsed {
  margin: 0;
  padding: 12px 14px;
  border: 0;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}

.diff-index {
  list-style: none;
  margin: 8px 0 16px;
  padding: 0;
  font-size: 13px;
}
.diff-index li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  padding: 5px 0;
  min-width: 0;
  border-bottom: 1px solid var(--border);
}
.diff-index li:last-child {
  border-bottom: 0;
}
.diff-index a {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  color: var(--text);
}
.diff-index a:hover {
  color: var(--accent-text);
}

.label-picker {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.label-picker label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}
.label-picker input[type=checkbox] {
  width: auto;
  margin: 0;
}

.review-bar .review-choices {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 22px;
}
.review-bar .review-choices label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}
.review-bar .review-choices input[type=radio] {
  width: auto;
  margin: 0;
}
.review-bar .review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 14px;
}
.review-bar .review-actions .review-inline .link-button {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.review-bar .review-actions .review-inline .link-button:hover {
  color: var(--text);
}

@media (max-width: 600px) {
  .subnav {
    gap: 20px;
  }
  .diff-file-header {
    padding: 8px 12px;
  }
  .diff-table .diff-code {
    padding-right: 14px;
  }
}
.greet {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

.dash-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  margin-top: 44px;
}
@media (min-width: 1000px) {
  .dash-cols {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 40px;
  }
}

.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.sec-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.sec-head .small {
  margin-right: auto;
  color: var(--muted);
}

.dash-repos {
  min-width: 0;
}
.dash-repos .table {
  min-width: 520px;
  font-size: 14.5px;
}
.dash-repos .table th {
  padding: 12px 12px 10px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}
.dash-repos .table td {
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.dash-repos .table td .badge {
  margin-left: 8px;
  vertical-align: middle;
}

@media (max-width: 639px) {
  .dash-repos .table {
    min-width: 0;
    width: 100%;
  }
  .dash-repos .dash-desc {
    display: none;
  }
}
.dash-attention {
  min-width: 0;
}
.dash-attention .attn {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.dash-attention .attn li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
.dash-attention .attn li:last-child {
  border-bottom: 0;
}
.dash-attention .attn a {
  color: var(--text);
  text-decoration: none;
}
.dash-attention .attn a:hover {
  text-decoration: underline;
}
.dash-attention .attn .sub {
  color: var(--muted);
  font-size: 13px;
}
.dash-attention > p.small {
  margin: 14px 0 0;
}

.explore-search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 18px 0 0;
}
.explore-search input[type=search] {
  flex: 1 1 240px;
  width: auto;
  min-width: 0;
}
.explore-search button {
  flex: 0 0 auto;
}
@media (max-width: 479px) {
  .explore-search input[type=search] {
    flex: 1 1 100%;
  }
}

.explore-sort {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  margin: 14px 0 0;
  font-size: 13px;
}
.explore-sort a,
.explore-sort .current {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  text-decoration: none;
}
.explore-sort a:hover {
  background: var(--surface-2);
  text-decoration: none;
}
.explore-sort .current {
  border-color: transparent;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
}
