/* GitTree: white repository surfaces, cool gray chrome, indigo navigation,
   forest actions. Compact data rows share a single readable type system. */
:root {
  --background: #ffffff;
  --surface: #f6f8fa;
  --surface-hover: #f3f5f9;
  --text: #242a35;
  --heading: #141c2e;
  --muted: #687386;
  --border: #d9dfe7;
  --border-soft: #e7ebf0;
  --link: #4945aa;
  --link-hover: #312a86;
  --accent-soft: #f0f2fc;
  --green: #1c724d;
  --green-hover: #155d3e;
  --red: #a6323c;
  --radius: 7px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--background);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-padding-top: 18px; }
body { margin: 0; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid #6660bc; outline-offset: 3px; }
button:disabled, input:disabled, select:disabled, textarea:disabled { cursor: default; opacity: .55; }
button:disabled:hover { background: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--heading); }
h1 { font-size: 26px; font-weight: 650; line-height: 1.3; letter-spacing: -.55px; }
h2 { font-size: 18px; font-weight: 650; line-height: 1.4; letter-spacing: -.2px; }
h3 { font-size: 15px; font-weight: 650; }
p { margin-bottom: 14px; }
code, pre { font-family: var(--mono); }
pre { margin: 0; }
input, select, textarea { color: var(--text); background: white; border: 1px solid var(--border); border-radius: 6px; }
input { height: 36px; min-width: 0; padding: 7px 11px; font-size: 14px; line-height: 20px; }
input::placeholder, textarea::placeholder { color: #7a8597; opacity: 1; }
textarea { display: block; width: 100%; min-height: 160px; resize: vertical; padding: 12px 14px; line-height: 1.6; }
select { height: 36px; padding: 6px 28px 6px 10px; }
::selection { color: #202449; background: #dfe2f9; }
.page-width { width: calc(100% - 144px); max-width: 1360px; margin-inline: auto; }
.page-main { min-height: calc(100vh - 295px); padding-block: 28px 56px; outline: none; }
.icon { flex: 0 0 auto; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: 12px; line-height: 1.5; }
.small-link { font-size: 12px; white-space: nowrap; }
.inline-label { display: inline-flex; align-items: center; gap: 8px; }
.wrap { flex-wrap: wrap; overflow-wrap: anywhere; }
.meta-dot { padding-inline: 1px; color: #9aa2b0; }
.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; }
.skip-link { position: fixed; z-index: 100; left: 20px; top: -60px; padding: 10px 15px; border-radius: 5px; color: white; background: var(--link); }
.skip-link:focus { top: 12px; color: white; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 6px 13px; color: #35425a; background: #fff; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; font-weight: 550; line-height: 22px; white-space: nowrap; text-decoration: none; transition: background-color .12s, border-color .12s; }
.button:hover { color: #27314b; background: var(--surface-hover); border-color: #c5ceda; text-decoration: none; }
.button-primary { color: #fff; background: var(--green); border-color: var(--green); }
.button-primary:hover { color: #fff; background: var(--green-hover); border-color: var(--green-hover); }
.button-danger { color: var(--red); }
.button-danger:hover { color: #852b33; background: #fff1f2; border-color: #e9bdc1; }
.icon-button { width: 36px; min-width: 36px; padding: 6px; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.button-group { display: inline-flex; align-items: stretch; }
.button-group > .button { border-radius: 0; }
.button-group > .button + .button { margin-left: -1px; }
.button-group > .button:first-child { border-radius: 6px 0 0 6px; }
.button-group > .button:last-child { border-radius: 0 6px 6px 0; }
.button-group > .button:only-child { border-radius: 6px; }
.text-link { font-weight: 500; }
.center { justify-content: center; }
.global-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.global-inner { display: flex; align-items: center; gap: 26px; min-height: 56px; }
.brand { font-size: 24px; font-weight: 720; line-height: 1; letter-spacing: -.8px; color: #121a2b; }
.brand:hover { color: #121a2b; text-decoration: none; }
.global-divider { width: 1px; height: 24px; background: #bdc7d4; }
.global-nav-link { display: flex; align-items: center; gap: 9px; padding-block: 13px; color: #40506b; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.global-nav-link:hover { color: #252f45; }
.global-spacer { flex: 1; }
.header-search { position: relative; width: 300px; }
.search-field { display: flex; align-items: center; gap: 9px; border: 1px solid var(--border); background: #fff; border-radius: 6px; color: #61718b; padding-left: 12px; }
.search-field:focus-within { border-color: #7f7aba; box-shadow: 0 0 0 2px #efedf9; }
.search-field input { flex: 1; width: 100%; border: 0; background: transparent; padding-left: 0; outline: none; box-shadow: none; }
.header-search .search-field { background: #fbfcfe; }
.dropdown { position: relative; }
.dropdown > summary { list-style: none; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-panel { position: absolute; top: calc(100% + 7px); right: 0; z-index: 30; width: 256px; padding: 6px; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 30px #26365b1c, 0 2px 5px #26365b0a; }
.repository-picker .dropdown-panel { right: auto; left: -12px; min-width: 280px; }
.menu-heading { padding: 9px 11px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border-soft); font-size: 12px; font-weight: 600; }
.menu-empty { padding: 10px; margin: 0; font-size: 13px; }
.repository-menu-item { display: flex; align-items: center; gap: 10px; min-height: 37px; padding: 8px 10px; border-radius: 4px; color: var(--text); font-size: 13px; }
.repository-menu-item span { flex: 1; overflow-wrap: anywhere; }
.repository-menu-item:hover, .repository-menu-item.selected { background: var(--accent-soft); color: var(--link); text-decoration: none; }
.repository-search-results { width: 100%; padding: 5px; top: calc(100% + 6px); }
.menu-action { justify-content: flex-start; width: 100%; border: 0; border-radius: 4px; font-weight: 450; min-height: 37px; }
.repo-title-row { display: flex; align-items: center; gap: 12px; padding-block: 25px 20px; min-height: 80px; }
.repo-title-icon { color: #6e798c; }
.repository-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; font-size: 23px; line-height: 1.35; font-weight: 600; letter-spacing: -.45px; min-width: 0; }
.repository-title a { overflow-wrap: anywhere; }
.repository-namespace { color: var(--link); font-weight: 500; }
.repository-name { color: #151d2c; font-weight: 650; }
.repository-slash { color: #8992a1; font-weight: 400; }
.visibility-badge { display: inline-flex; align-items: center; padding: 2px 9px; border: 1px solid var(--border); border-radius: 20px; color: #617086; background: #f9fbfd; font-size: 12px; font-weight: 500; line-height: 19px; }
.repo-tabs-wrap { border-bottom: 1px solid var(--border); }
.repo-tabs { display: flex; align-items: stretch; gap: 18px; min-height: 47px; }
.repo-tab { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 13px 12px; color: #47526a; white-space: nowrap; border-bottom: 2px solid transparent; font-size: 14px; }
.repo-tab:hover { color: var(--link); text-decoration: none; background: #fafbfc; }
.repo-tab.active { color: var(--link); border-bottom-color: #5b4ed0; }
.tab-count { min-width: 19px; padding: 0 6px; border-radius: 20px; font-size: 11px; background: #e9edf3; color: #566379; line-height: 18px; }
.repo-tab.active .tab-count { color: #514496; background: #eeebfa; }
.repository-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 42px; }
.repository-content, .conversation-main, .wiki-layout > div, .file-page { min-width: 0; }
.code-toolbar, .list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; min-height: 36px; }
.toolbar-group { display: flex; align-items: center; gap: 20px; min-width: 0; }
.toolbar-end { gap: 12px; margin-left: auto; }
.toolbar-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #4d5d7a; white-space: nowrap; }
.branch-control { display: flex; align-items: center; gap: 8px; position: relative; min-width: 112px; max-width: 210px; color: #50607a; }
.branch-control > .icon:first-child { position: absolute; left: 12px; pointer-events: none; }
.branch-control > .icon:last-child { position: absolute; right: 11px; pointer-events: none; }
.branch-control select { appearance: none; width: 100%; padding: 6px 34px 6px 35px; color: #263247; font-weight: 550; background: #f8fafc; }
.go-to-file { min-width: 145px; justify-content: flex-start; font-weight: 450; color: #748198; }
.code-dropdown > summary { min-width: 106px; justify-content: space-between; padding-inline: 15px; font-size: 14px; }
.clone-menu { width: 355px; padding: 18px; }
.clone-menu h3 { margin-bottom: 17px; }
.clone-menu .small { margin: 10px 0 13px; line-height: 1.6; }
.clone-menu .menu-action { border-top: 1px solid var(--border-soft); border-radius: 0; padding-top: 14px; margin-top: 4px; }
.copy-field { display: flex; align-items: stretch; margin-top: 6px; }
.copy-field input { flex: 1; width: 0; border-radius: 5px 0 0 5px; font-family: var(--mono); font-size: 11px; }
.copy-field .button { border-radius: 0 5px 5px 0; margin-left: -1px; }
.panel { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 45px; padding: 10px 20px; background: var(--surface); border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 550; }
.panel-heading h1 { margin: 0; font-size: 18px; letter-spacing: -.2px; }
.panel-heading .icon { color: #5f6c81; }
.latest-commit { display: flex; align-items: center; gap: 11px; min-height: 48px; padding: 11px 18px; border-bottom: 1px solid var(--border); background: var(--surface); }
.latest-commit > .icon { color: #65738b; }
.latest-commit-text { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex: 1; font-size: 12px; }
.commit-author { color: #344159; white-space: nowrap; }
.commit-summary { color: #56637a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.latest-commit-meta { display: flex; align-items: center; gap: 13px; white-space: nowrap; font-size: 11px; color: var(--muted); }
.oid-link { font-family: var(--mono); font-size: 12px; }
.file-table-wrap { overflow: auto; }
.file-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.file-table tr { border-bottom: 1px solid var(--border-soft); }
.file-table tr:last-child { border-bottom: 0; }
.file-table tr:hover { background: #f8fafe; }
.file-table td { padding: 9px 20px; height: 41px; vertical-align: middle; font-size: 13px; }
.file-table .file-name-cell { width: 57%; }
.file-name { display: inline-flex; align-items: center; gap: 16px; max-width: 100%; min-width: 0; font-size: 14px; color: #4247a0; }
.file-name span { overflow-wrap: anywhere; }
.file-name .icon { color: #68768a; }
.file-name .folder-icon { color: #3f96f6; fill: #63acfa; stroke-width: 1.2; }
.file-name.static { color: #506176; }
.file-type-cell { color: #8992a1; font-size: 12px !important; width: 27%; }
.file-oid-cell { width: 16%; text-align: right; color: #949eae; font-family: var(--mono); font-size: 11px !important; }
.parent-row td { color: var(--muted); }
.load-more { width: 100%; border: 0; border-top: 1px solid var(--border); border-radius: 0; min-height: 42px; font-size: 13px; color: var(--link); }
.readme-panel { margin-top: 20px; }
.readme-panel .panel-heading { padding-inline: 20px; }
.verified-caption { display: flex; align-items: center; gap: 6px; padding: 9px 21px; border-top: 1px solid var(--border-soft); color: #7b8797; font-size: 11px; }
.verified-caption .icon { color: #508267; }
.repository-sidebar { padding-top: 0; color: #53617a; font-size: 14px; line-height: 1.6; }
.repository-sidebar h2, .wiki-sidebar h2 { font-size: 17px; line-height: 1.5; margin: 0 0 11px; font-weight: 650; color: #172033; }
.sidebar-section + .sidebar-section { border-top: 1px solid var(--border); margin-top: 26px; padding-top: 20px; }
.sidebar-section p:last-child { margin-bottom: 0; }
.about-description { color: #43506a; line-height: 1.6; margin-bottom: 20px; overflow-wrap: anywhere; }
.about-description.muted { color: #8090a2; font-style: italic; }
.about-links { display: flex; flex-direction: column; gap: 14px; }
.sidebar-link { display: flex; align-items: center; gap: 11px; font-size: 14px; }
.sidebar-link .icon { color: #65758d; }
.repository-facts { margin: 0; }
.repository-facts > div { margin-top: 14px; }
.repository-facts dt { color: #7a879a; font-size: 13px; margin-bottom: 2px; }
.repository-facts dd { margin: 0; color: #445169; font-size: 13px; }
.breadcrumbs { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; min-width: 0; margin-bottom: 17px; font-size: 14px; overflow-wrap: anywhere; }
.breadcrumb-slash { color: #8390a1; padding-inline: 1px; }
.breadcrumb-file { font-weight: 600; color: #344057; }
.markdown-body { padding: 25px; font-size: 15px; line-height: 1.7; color: #364157; overflow-wrap: anywhere; }
.markdown-body > :first-child { margin-top: 0; }
.markdown-body > :last-child { margin-bottom: 0; }
.markdown-body h1 { font-size: 32px; line-height: 1.25; font-weight: 680; letter-spacing: -.8px; margin: 26px 0 17px; }
.markdown-body h2 { font-size: 24px; line-height: 1.35; font-weight: 630; letter-spacing: -.5px; border-bottom: 1px solid var(--border); padding-bottom: 8px; margin: 28px 0 14px; }
.markdown-body h3 { font-size: 19px; line-height: 1.4; margin: 23px 0 12px; }
.markdown-body h4, .markdown-body h5, .markdown-body h6 { font-size: 15px; margin: 20px 0 10px; font-weight: 650; }
.markdown-body p { margin: 0 0 17px; }
.markdown-body ul, .markdown-body ol { padding-left: 25px; margin: 0 0 17px; }
.markdown-body li { padding-left: 3px; margin: 4px 0; }
.markdown-body li > p { margin: 5px 0; }
.markdown-body li > ul, .markdown-body li > ol { margin-block: 6px; }
.markdown-body a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.markdown-body code { font-size: .87em; padding: .15em .35em; border-radius: 4px; background: #eef1f5; color: #39465b; white-space: break-spaces; }
.markdown-body pre { padding: 15px 17px; margin: 16px 0 21px; border-radius: 6px; background: #f4f6f9; overflow-x: auto; line-height: 1.55; }
.markdown-body pre code { padding: 0; background: none; white-space: pre; font-size: 12px; color: #354158; }
.markdown-body blockquote { margin: 18px 0; padding: 0 18px; border-left: 3px solid #c5cedc; color: #647188; }
.markdown-body blockquote > :last-child { margin-bottom: 0; }
.markdown-body hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }
.markdown-body img { max-width: 100%; height: auto; vertical-align: middle; }
.markdown-table { margin: 18px 0; overflow-x: auto; }
.markdown-body table { width: 100%; border-collapse: collapse; font-size: 13px; }
.markdown-body th, .markdown-body td { padding: 9px 13px; border: 1px solid var(--border); text-align: left; }
.markdown-body [align="center"] { text-align: center; }
.markdown-body [align="right"] { text-align: right; }
.markdown-body th { background: var(--surface); font-weight: 600; }
.markdown-body tbody tr:nth-child(even) { background: #fafbfd; }
.markdown-body .task-list { list-style: none; padding-left: 4px; }
.markdown-body .task-list-item { display: block; }
.markdown-body input[type="checkbox"] { width: 14px; height: 14px; margin: 0 9px 0 0; vertical-align: middle; accent-color: var(--green); }
.file-page .code-toolbar { margin-bottom: 22px; }
.file-page .breadcrumbs { margin-bottom: 17px; }
.blob-heading { padding: 10px 15px; font-weight: 450; }
.blob-heading .button { min-height: 30px; line-height: 18px; padding-block: 5px; font-size: 12px; }
.blob-heading .icon-button { width: 31px; min-width: 31px; }
.document-tabs { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--border); background: #fff; padding-inline: 12px; }
.text-tab { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: #fff; min-height: 42px; padding: 8px 17px; font-size: 13px; font-weight: 500; color: #5a6780; }
.text-tab.active { color: var(--link); border-bottom-color: #5b4ed0; }
.text-tab:hover { border-color: transparent; background: #f8f9fc; }
.text-tab.active:hover { border-bottom-color: #5b4ed0; }
.source-scroll { max-width: 100%; overflow-x: auto; padding-block: 15px; }
.source-table { border-collapse: collapse; width: 100%; font-family: var(--mono); font-size: 12px; line-height: 21px; }
.source-table td { vertical-align: top; }
.line-number { min-width: 54px; padding: 0 16px; text-align: right; user-select: none; }
.line-number a { color: #9ba6b5; font-size: 11px; }
.source-line { padding: 0 22px 0 5px; white-space: pre; color: #35435c; }
.source-line code { font-size: 12px; white-space: pre; }
.source-table tr:target { background: #fff6cc; }
.source-table tr:hover { background: #f6f8fc; }
.preview-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 12px 18px; font-size: 12px; background: #f8faff; border-bottom: 1px solid var(--border-soft); color: #67788f; }
.image-preview { padding: 30px; text-align: center; background: #fafbfd; }
.repository-image { max-width: 100%; max-height: 700px; width: auto; height: auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-heading h1 { margin: 0; }
.page-heading p { margin: 7px 0 0; font-size: 13px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 13px; }
.commit-row, .branch-row, .thread-row { display: flex; align-items: flex-start; gap: 14px; min-height: 78px; padding: 17px 20px; border-bottom: 1px solid var(--border-soft); }
.commit-row:last-child, .branch-row:last-child, .thread-row:last-child { border-bottom: 0; }
.commit-row:hover, .branch-row:hover, .thread-row:hover { background: #fbfcfe; }
.commit-row > .icon, .branch-row > .icon, .thread-row > .icon { color: #718198; margin-top: 3px; }
.commit-row-main, .branch-row-main, .thread-row-main { min-width: 0; flex: 1; }
.row-title { display: inline-block; color: #2d3b54; font-size: 14px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.row-title:hover { color: var(--link); }
.row-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 5px; color: #7b8798; font-size: 12px; line-height: 1.65; }
.author-name { color: #596a82; }
.commit-row-actions { display: flex; align-items: center; gap: 10px; align-self: center; }
.commit-row-actions .button { min-height: 30px; line-height: 19px; padding-block: 5px; }
.commit-row-actions .icon-button { width: 30px; min-width: 30px; }
.oid-button { font-family: var(--mono); color: #64718a; font-size: 11px; min-width: 91px; }
.commit-detail-title { padding: 23px 25px; background: var(--surface); border-bottom: 1px solid var(--border); }
.commit-detail-title h1 { font-size: 23px; margin: 0 0 11px; overflow-wrap: anywhere; }
.commit-detail-title p { margin: 0; font-size: 13px; }
.commit-message { white-space: pre-wrap; overflow-wrap: anywhere; padding: 24px; font-size: 13px; line-height: 1.65; border-bottom: 1px solid var(--border); color: #586881; }
.commit-details-grid { padding: 24px; display: grid; gap: 21px; }
.commit-details-grid code { font-size: 12px; overflow-wrap: anywhere; }
.field-label { display: block; font-size: 12px; font-weight: 600; color: #46546c; margin-bottom: 6px; }
.panel-actions { padding: 17px 24px; background: #fbfcfe; border-top: 1px solid var(--border); }
.branch-search { max-width: 430px; flex: 1; }
.branch-row { align-items: center; }
.branch-row > .icon { margin-top: 0; }
.branch-row-main > code { display: block; margin-top: 6px; }
.subtle-badge { border: 1px solid var(--border); border-radius: 20px; padding: 0 7px; color: #68778f; font-size: 11px; line-height: 20px; font-weight: 450; }
.activity-page { max-width: 1000px; }
.activity-list { margin-left: 10px; border-left: 1px solid var(--border); }
.activity-row { position: relative; display: flex; gap: 20px; margin: 0 0 0 -17px; padding-block: 0 25px; }
.activity-symbol { display: flex; align-items: center; justify-content: center; width: 33px; height: 33px; border: 1px solid var(--border); background: #fff; border-radius: 50%; flex: 0 0 auto; color: #79859b; }
.activity-main { padding: 1px 0 19px; border-bottom: 1px solid var(--border-soft); flex: 1; min-width: 0; }
.activity-main .row-meta { margin: 0 0 6px; }
.activity-main p { margin: 6px 0 0; }
.activity-note { margin-left: 48px; }
.thread-search { flex: 1; margin: 0; }
.list-panel-header { display: flex; align-items: center; min-height: 54px; background: var(--surface); border-bottom: 1px solid var(--border); padding: 9px 15px; }
.list-filters { display: flex; align-items: center; gap: 6px; }
.list-filter { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid transparent; border-radius: 5px; color: #65738a; font-size: 12px; }
.list-filter:hover { color: var(--link); text-decoration: none; }
.list-filter.active { background: #fff; border-color: #d3dbe9; color: var(--link); }
.thread-row { min-height: 80px; padding: 17px 20px; }
.thread-row > .open-color, .open-color { color: #2b9368; }
.thread-row > .closed-color, .closed-color { color: #8270b9; }
.comment-count { display: flex; align-items: center; gap: 5px; color: #8390a2; font-size: 12px; margin-top: 3px; }
.search-summary { color: #708098; margin: -4px 0 15px; font-size: 13px; }
.thread-detail-heading { margin-bottom: 25px; border-bottom: 1px solid var(--border); padding-bottom: 21px; }
.thread-title-row { display: flex; align-items: center; gap: 20px; justify-content: space-between; }
.thread-title-row h1 { font-size: 28px; font-weight: 550; letter-spacing: -.5px; margin: 0 0 16px; overflow-wrap: anywhere; }
.thread-title-row .button { align-self: flex-start; }
.thread-number { color: #919aa9; font-weight: 400; }
.thread-detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: #7b879a; font-size: 12px; }
.state-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 18px; font-size: 12px; line-height: 19px; font-weight: 550; }
.state-badge.is-open { color: #246c4f; background: #e5f4eb; }
.state-badge.is-closed { color: #7560a6; background: #f0eafb; }
.conversation-comment { margin-bottom: 21px; }
.comment-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; padding: 12px 18px; background: var(--surface); border-bottom: 1px solid var(--border); font-size: 12px; color: #5f6e86; }
.comment-heading > strong { color: #465671; font-weight: 600; }
.comment-heading .time { white-space: nowrap; }
.comment-permalink { margin-left: auto; color: #94a0b1; font-size: 11px; }
.conversation-comment .markdown-body { padding: 22px; font-size: 14px; }
.conversation-comment .markdown-body h1 { font-size: 25px; }
.conversation-comment .markdown-body h2 { font-size: 20px; }
.empty-description { margin: 0; padding: 24px; font-size: 14px; }
.reply-form { margin-top: 30px; padding-top: 23px; border-top: 1px solid var(--border); }
.reply-form h2 { font-size: 17px; margin-bottom: 14px; }
.reply-form .markdown-editor { border: 1px solid var(--border); border-radius: 7px; padding: 0 13px 4px; overflow: hidden; }
.compose-form { padding: 23px; }
.compose-form .field { margin-bottom: 19px; }
.field > label { display: block; margin-bottom: 7px; color: #344259; font-size: 13px; font-weight: 600; }
.field input { width: 100%; }
.markdown-editor .document-tabs { padding: 0; margin-bottom: 11px; }
.markdown-editor textarea { min-height: 220px; font-size: 14px; }
.markdown-editor .editor-hint { font-size: 12px; color: #8a95a8; margin: 8px 0 0; }
.editor-preview { min-height: 220px; border: 1px solid var(--border); border-radius: 6px; padding: 14px; font-size: 14px; }
.editor-preview .markdown-body { padding: 0; font-size: 14px; }
.form-actions { margin-top: 18px; }
.form-feedback { padding: 12px 0 0 !important; }
.wiki-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.wiki-sidebar { padding: 18px; overflow: visible; }
.wiki-sidebar .search-field { margin-top: 15px; padding-left: 10px; }
.wiki-sidebar .search-field input { font-size: 13px; }
.wiki-pages { display: flex; flex-direction: column; gap: 4px; margin-top: 17px; }
.wiki-page-link { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 8px 9px; border-radius: 5px; color: #4d5e78; font-size: 13px; overflow-wrap: anywhere; }
.wiki-page-link .icon { color: #71829b; }
.wiki-page-link:hover, .wiki-page-link.active { color: var(--link); background: var(--accent-soft); text-decoration: none; }
.wiki-page-link.active .icon { color: #7776a9; }
.wiki-toolbar { padding: 10px 18px; min-height: 54px; }
.wiki-toolbar .breadcrumbs { margin: 0; font-size: 13px; }
.wiki-toolbar .button { min-height: 33px; font-size: 12px; padding-block: 5px; }
.wiki-article { padding: 26px 25px; }
.wiki-article > h1 { font-size: 32px; line-height: 1.3; margin: 0 0 19px; letter-spacing: -.8px; font-weight: 650; }
.wiki-article .markdown-body { padding: 0; }
.page-details { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 20px; }
.slug-field { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.slug-field > span { padding: 8px 10px; color: #7a879a; background: var(--surface); border-right: 1px solid var(--border); font-size: 12px; white-space: nowrap; }
.slug-field input { flex: 1; border: 0; border-radius: 0; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 280px; padding: 42px 26px; text-align: center; }
.empty-state > .icon { color: #8491a4; margin-bottom: 18px; stroke-width: 1.45; }
.empty-state h2 { margin: 0 0 9px; font-size: 20px; letter-spacing: -.4px; font-weight: 650; }
.empty-state p { max-width: 450px; color: #76859b; font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
.empty-state .button-row:empty { display: none; }
.inline-error { padding: 20px; color: #a34851; font-size: 13px; line-height: 1.6; }
.loading-state { display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 280px; padding: 45px 20px; color: #7a8799; font-size: 14px; }
.spinner { width: 17px; height: 17px; border: 2px solid #e0e5ee; border-top-color: #7371a6; border-radius: 50%; animation: spin .85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 11px 15px; background: #f7f9fd; border: 1px solid #dce3ef; border-radius: 6px; color: #627491; font-size: 12px; }
.notice.offline { color: #7c7048; background: #fffbef; border-color: #eee2bd; }
.notice.error { color: #93404b; background: #fff5f6; border-color: #edcfd4; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: flex; align-items: center; gap: 10px; max-width: min(560px, calc(100% - 32px)); padding: 12px 17px; color: #fff; background: #263750; border-radius: 7px; font-size: 13px; box-shadow: 0 6px 25px #1f2b3c25; }
.toast.error { background: #883d48; }
.site-footer { display: flex; align-items: center; gap: 16px; padding-block: 23px 30px; border-top: 1px solid var(--border-soft); font-size: 11px; color: #94a0b0; }
.footer-brand { font-size: 14px; font-weight: 650; color: #7a879b; letter-spacing: -.3px; }
.footer-verification { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; }
.footer-verification .icon { color: #7a9a88; }
.error-home { margin-top: 18px; }
dialog { color: var(--text); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 20px 80px #15284930; }
dialog::backdrop { background: #20304f48; backdrop-filter: blur(1px); }
.finder-dialog { width: min(620px, calc(100vw - 32px)); padding: 0; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; }
.dialog-heading h2 { margin: 0; font-size: 17px; }
.dialog-heading .icon-button { border: 0; background: none; }
.finder-search { margin: 0 20px 15px; }
.finder-results { max-height: min(460px, 65vh); overflow-y: auto; border-top: 1px solid var(--border); padding: 7px; }
.finder-item { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 5px; color: #53617a; font-size: 13px; }
.finder-item:hover { color: var(--link); background: var(--accent-soft); text-decoration: none; }
.finder-item span { overflow-wrap: anywhere; }
.finder-empty, .finder-hint { padding: 16px; margin: 0; color: var(--muted); font-size: 12px; text-align: center; }
.form-dialog { width: min(450px, calc(100vw - 32px)); padding: 26px; }
.form-dialog h2 { margin-bottom: 22px; }
.form-dialog input { display: block; width: 100%; margin-top: 7px; font-weight: 400; }
.form-dialog .small { margin-top: 13px; }
.form-dialog .button-row { justify-content: flex-end; margin-top: 22px; }
@media (min-width: 1700px) {
  .page-width { max-width: 1440px; }
  .repository-layout { grid-template-columns: minmax(0, 1fr) 305px; gap: 48px; }
  .wiki-layout { grid-template-columns: minmax(0, 1fr) 305px; }
}
@media (max-width: 1150px) {
  .page-width { width: calc(100% - 64px); }
  .repository-layout { grid-template-columns: minmax(0, 1fr) 235px; gap: 27px; }
  .wiki-layout { grid-template-columns: minmax(0, 1fr) 235px; gap: 22px; }
  .toolbar-group { gap: 13px; }
  .go-to-file { min-width: 36px; font-size: 0; gap: 0; padding-inline: 9px; }
  .header-search { width: 250px; }
  .latest-commit-text { gap: 7px; }
  .latest-commit-meta .time { display: none; }
  .file-table .file-name-cell { width: 62%; }
  .file-type-cell { width: 22%; }
  .repository-title { font-size: 22px; }
}
@media (max-width: 850px) {
  .page-width { width: calc(100% - 40px); }
  .header-search { display: none; }
  .global-inner { gap: 20px; }
  .repository-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .repository-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; border-top: 1px solid var(--border); padding-top: 22px; }
  .repository-sidebar .sidebar-section + .sidebar-section { margin: 0; padding: 0; border: 0; }
  .thread-sidebar { display: block; }
  .thread-sidebar .sidebar-section + .sidebar-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
  .wiki-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .wiki-sidebar { padding: 21px; }
  .wiki-sidebar .page-details .repository-facts { display: flex; gap: 35px; flex-wrap: wrap; }
  .wiki-sidebar .page-details { margin-top: 19px; padding-top: 17px; }
  .wiki-sidebar .page-details h2 { margin-bottom: 0; }
  .wiki-pages { display: flex; flex-direction: row; flex-wrap: wrap; }
  .wiki-page-link { min-width: 130px; }
  .go-to-file { min-width: 115px; font-size: 12px; gap: 7px; }
  .repo-tabs { gap: 8px; }
  .repo-tab { padding-inline: 11px; }
  .latest-commit-meta .time { display: inline; }
  .footer-note { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 13px; }
  .page-width { width: calc(100% - 32px); }
  .page-main { padding-top: 20px; padding-bottom: 38px; }
  .global-inner { position: relative; min-height: 54px; gap: 14px; }
  .repository-picker { position: static; }
  .repository-picker .dropdown-panel { left: 0; right: 0; width: auto; min-width: 0; }
  .brand { font-size: 22px; }
  .global-nav-link { font-size: 12px; gap: 5px; }
  .global-divider { height: 21px; }
  .global-spacer { min-width: 0; }
  .repo-title-row { min-height: 78px; gap: 9px; padding-block: 20px; }
  .repo-title-icon { display: none; }
  .repository-title { font-size: 19px; gap: 7px; }
  .visibility-badge { font-size: 10px; line-height: 17px; padding: 1px 7px; }
  .repo-tabs-wrap { overflow-x: auto; scrollbar-width: none; }
  .repo-tabs-wrap::-webkit-scrollbar { display: none; }
  .repo-tabs { width: max-content; min-width: calc(100% - 32px); margin-inline: 16px; gap: 3px; min-height: 44px; }
  .repo-tab { padding: 10px 12px 11px; font-size: 12px; gap: 6px; }
  .repo-tab .icon { width: 15px; height: 15px; }
  .tab-count { font-size: 10px; min-width: 16px; padding-inline: 5px; line-height: 16px; }
  .code-toolbar { flex-wrap: wrap; gap: 13px 8px; margin-bottom: 16px; }
  .toolbar-group { gap: 13px; }
  .toolbar-end { gap: 8px; }
  .toolbar-link { font-size: 12px; gap: 5px; }
  .toolbar-link .icon { width: 14px; height: 14px; }
  .branch-control { min-width: 99px; max-width: 165px; }
  .branch-control select { font-size: 12px; height: 35px; padding-left: 30px; padding-right: 28px; }
  .branch-control > .icon:first-child { left: 9px; width: 14px; }
  .branch-control > .icon:last-child { right: 8px; }
  .go-to-file { width: 35px; min-width: 35px; font-size: 0; gap: 0; padding-inline: 8px; }
  .code-dropdown > summary { min-width: 79px; font-size: 12px; padding: 6px 10px; }
  .code-dropdown > summary .icon { width: 13px; }
  .clone-menu { width: min(345px, calc(100vw - 32px)); right: 0; padding: 16px; }
  .latest-commit { padding: 10px 13px; gap: 8px; min-height: 47px; }
  .latest-commit-text { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.6; }
  .commit-author { font-size: 10px; }
  .commit-summary { font-size: 11px; display: block; max-width: 100%; }
  .latest-commit-meta { gap: 0; font-size: 10px; }
  .latest-commit-meta .time { display: none; }
  .latest-commit-meta .oid-link { font-size: 10px; }
  .file-table td { padding: 9px 14px; }
  .file-table .file-name-cell { width: 100%; }
  .file-type-cell, .file-oid-cell { display: none; }
  .file-name { gap: 12px; font-size: 13px; }
  .file-name .icon { width: 16px; height: 16px; }
  .panel-heading { padding-inline: 15px; }
  .readme-panel .panel-heading { padding-inline: 15px; }
  .markdown-body { padding: 20px 17px; font-size: 14px; line-height: 1.65; }
  .markdown-body h1 { font-size: 27px; }
  .markdown-body h2 { font-size: 21px; margin-top: 24px; }
  .markdown-body h3 { font-size: 17px; }
  .markdown-body pre { padding: 13px; margin-inline: -2px; }
  .markdown-body pre code { font-size: 11px; }
  .markdown-body th, .markdown-body td { padding: 7px 9px; }
  .verified-caption { padding-inline: 16px; font-size: 10px; }
  .repository-sidebar { grid-template-columns: 1fr; gap: 24px; }
  .repository-sidebar h2 { font-size: 16px; }
  .repository-sidebar .sidebar-section + .sidebar-section { border-top: 1px solid var(--border-soft); padding-top: 20px; }
  .breadcrumbs { font-size: 12px; gap: 5px; }
  .blob-heading { padding: 10px; align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .blob-heading > .inline-label { font-size: 11px; }
  .blob-heading .button { font-size: 11px; padding-inline: 9px; }
  .source-table, .source-line code { font-size: 11px; }
  .line-number { min-width: 39px; padding-inline: 11px; }
  .preview-note { font-size: 11px; padding: 11px 13px; }
  .page-heading { gap: 15px; margin-bottom: 19px; align-items: flex-start; }
  .page-heading h1 { font-size: 23px; }
  .page-heading p { font-size: 12px; }
  .page-heading .button { font-size: 12px; min-height: 33px; padding-block: 5px; }
  .commit-row, .branch-row, .thread-row { padding: 15px 13px; gap: 10px; }
  .row-title { font-size: 13px; }
  .row-meta { font-size: 10px; line-height: 1.7; gap: 3px; }
  .commit-row { flex-wrap: wrap; }
  .commit-row-main { flex-basis: calc(100% - 34px); }
  .commit-row-actions { margin-left: 30px; margin-top: 0; }
  .commit-row-actions .button { min-height: 27px; padding-block: 3px; }
  .commit-row-actions .icon-button { width: 27px; min-width: 27px; }
  .commit-row-actions .oid-button { font-size: 10px; }
  .commit-detail-title { padding: 20px 18px; }
  .commit-detail-title h1 { font-size: 20px; }
  .commit-details-grid { padding: 20px 18px; }
  .commit-details-grid code { font-size: 10px; }
  .commit-message { padding: 20px 18px; font-size: 11px; }
  .branch-row { flex-wrap: wrap; }
  .branch-row-main { flex-basis: calc(100% - 34px); }
  .branch-row > .button-row { margin-left: 30px; }
  .branch-row .button { min-height: 30px; font-size: 11px; padding-block: 3px; }
  .thread-search input { font-size: 12px; }
  .list-toolbar { gap: 8px; }
  .list-toolbar > .button { padding-inline: 10px; font-size: 12px; }
  .list-panel-header { padding-inline: 10px; min-height: 49px; }
  .list-filter { font-size: 11px; padding: 5px 8px; gap: 5px; }
  .comment-count { font-size: 11px; }
  .empty-state { min-height: 245px; padding: 32px 20px; }
  .empty-state h2 { font-size: 18px; }
  .empty-state p { font-size: 12px; line-height: 1.65; }
  .empty-state > .icon { width: 35px; height: 35px; }
  .thread-title-row h1 { font-size: 24px; margin-bottom: 13px; }
  .thread-title-row { gap: 10px; }
  .thread-title-row .button { min-height: 29px; padding: 3px 10px; font-size: 11px; }
  .thread-detail-meta { gap: 8px; font-size: 11px; }
  .state-badge { font-size: 11px; padding: 3px 8px; }
  .comment-heading { font-size: 11px; padding: 11px 13px; }
  .conversation-comment .markdown-body { padding: 18px 15px; font-size: 13px; }
  .compose-form { padding: 18px 15px; }
  .compose-panel .panel-heading h1 { font-size: 17px; }
  .markdown-editor textarea { font-size: 13px; padding: 11px; }
  .text-tab { font-size: 12px; min-height: 39px; padding-inline: 13px; }
  .wiki-article { padding: 23px 18px; }
  .wiki-article > h1 { font-size: 27px; }
  .wiki-toolbar { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .wiki-toolbar .button { font-size: 11px; }
  .wiki-sidebar { padding: 18px; }
  .wiki-page-link { font-size: 12px; min-width: 115px; }
  .wiki-sidebar .page-details .repository-facts { gap: 19px; }
  .slug-field > span { max-width: 50%; overflow: hidden; text-overflow: ellipsis; font-size: 10px; }
  .slug-field input { font-size: 12px; }
  .site-footer { padding-block: 20px 25px; gap: 10px; flex-wrap: wrap; font-size: 10px; }
  .footer-verification { font-size: 9px; }
  .notice { align-items: flex-start; font-size: 11px; padding: 10px 12px; }
  .toast { font-size: 12px; width: max-content; }
  .activity-main { padding-bottom: 16px; }
}
@media (max-width: 390px) {
  .code-toolbar > .toolbar-group:first-child { width: 100%; }
  .toolbar-end { width: 100%; }
  .go-to-file { font-size: 12px; gap: 7px; flex: 1; justify-content: flex-start; }
  .workspace-menu .global-nav-link { font-size: 11px; }
  .global-inner { gap: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
