/* ============ Global header ============ */
.gh-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
}

.gh-header .brand {
  font-size: 15px;
}

.gh-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.gh-nav a {
  color: var(--text);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
}

.gh-nav a:hover {
  background: var(--surface-2);
}

.gh-nav a.active {
  border-color: var(--border);
  background: var(--surface-2);
}

.gh-nav.open {
  display: flex !important;
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 35;
  flex-direction: column;
  align-items: stretch;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  padding: 8px;
}

.gh-search {
  flex: 1;
  max-width: 280px;
  margin: 0 0 0 10px;
  padding: 5px 12px;
}

.gh-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  position: relative;
}

.icon-dot {
  position: relative;
}

.icon-dot::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-elev);
}

.avatar-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.user-menu {
  position: absolute;
  right: 0;
  top: 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 200px;
  padding: 6px;
  z-index: 40;
}

.user-menu a,
.user-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text);
  background: none;
  border: none;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.user-menu a:hover,
.user-menu button:hover {
  background: var(--surface-2);
}

.user-menu .sep {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

/* ============ Page shell ============ */
.gh-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 60px;
}

.gh-page.narrow {
  max-width: 1012px;
}

.gh-columns {
  display: grid;
  grid-template-columns: 296px 1fr;
  gap: 24px;
}

.gh-columns.repo {
  grid-template-columns: 1fr 296px;
}

.gh-columns.feed {
  grid-template-columns: 1fr 320px;
}

.gh-side-nav {
  font-size: 14px;
}

.gh-side-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--text);
  border-left: 2px solid transparent;
}

.gh-side-nav a:hover {
  background: var(--surface-2);
}

.gh-side-nav a.active {
  background: var(--surface-2);
  border-left-color: var(--warning);
  font-weight: 600;
}

.gh-side-nav .group {
  margin-top: 16px;
  padding: 6px 10px;
  color: var(--text-muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
}

/* ============ Repo header ============ */
.repo-header {
  padding: 16px 24px 0;
  max-width: 1280px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}

.repo-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  margin-bottom: 12px;
}

.repo-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.repo-head-row .repo-title {
  margin-bottom: 12px;
}

.repo-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.repo-actions .count {
  background: var(--surface-2);
  border-radius: 999px;
  padding: 0 6px;
  font-size: 11px;
}

.repo-title .owner {
  color: var(--accent);
}

.repo-title .badge {
  font-size: 12px;
  margin-left: 8px;
}

.repo-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.repo-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 14px;
  border-bottom: 2px solid transparent;
  border-radius: 6px 6px 0 0;
}

.repo-tabs a:hover {
  background: var(--surface-2);
}

.repo-tabs a.active {
  border-bottom-color: #f78166;
  font-weight: 600;
}

.repo-tabs .count {
  background: var(--surface-2);
  border-radius: 999px;
  padding: 0 7px;
  font-size: 12px;
  color: var(--text);
}

/* ============ Cards / boxes ============ */
.gh-box {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.gh-box + .gh-box {
  margin-top: 16px;
}

.gh-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}

.gh-box-body {
  padding: 16px;
}

/* ============ Repo list rows (My repositories) ============ */
.repo-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
}

.repo-row:last-child {
  border-bottom: none;
}

.repo-row-title {
  font-size: 17px;
  color: var(--accent);
  font-weight: 600;
}

.repo-row-desc {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 6px;
  max-width: 640px;
}

.repo-row-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 8px;
}

.repo-row-meta .lang-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
  vertical-align: -1px;
}

.sparkline {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 32px;
  width: 150px;
}

.sparkline span {
  flex: 1;
  background: var(--success);
  border-radius: 1px;
  min-height: 3px;
}

.filters-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filters-bar .search {
  flex: 1;
  margin: 0;
}

.pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}

.pill.active {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

/* ============ Profile ============ */
.profile-side {
  text-align: left;
}

.profile-avatar {
  width: 100%;
  aspect-ratio: 1;
  max-width: 260px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 84px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
}

.profile-name {
  font-size: 24px;
  font-weight: 600;
}

.profile-login {
  font-size: 20px;
  color: var(--text-muted);
  font-weight: 300;
}

.profile-bio {
  margin: 14px 0;
  font-size: 14px;
}

.profile-stats {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.profile-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 8px;
}

.pinned-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pinned-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
}

.pinned-card .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pinned-card .name {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

.pinned-card .desc {
  color: var(--text-muted);
  font-size: 12px;
  flex: 1;
}

/* Contribution graph */
.contrib-wrap {
  overflow-x: auto;
}

.contrib-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 11px);
  gap: 3px;
}

.contrib-cell {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: #161b22;
}

.contrib-cell.l1 { background: #0e4429; }
.contrib-cell.l2 { background: #006d32; }
.contrib-cell.l3 { background: #26a641; }
.contrib-cell.l4 { background: #39d353; }

.contrib-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 10px;
}

.contrib-legend .contrib-cell {
  width: 11px;
  height: 11px;
}

/* ============ File list ============ */
.commit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
  font-size: 13px;
}

.commit-bar .msg {
  font-weight: 600;
}

.file-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.file-table td {
  padding: 9px 16px;
  border-bottom: 1px solid var(--border);
}

.file-table tr:last-child td {
  border-bottom: none;
}

.file-table tr:hover {
  background: var(--surface-2);
}

.file-table a {
  color: var(--text);
}

.file-table .commit-msg {
  color: var(--text-muted);
  font-size: 13px;
}

.readme-box {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.readme-box .head {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

.readme-body {
  padding: 24px;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: auto;
}

.readme-body h1,
.readme-body h2 {
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.readme-body pre {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px;
  overflow-x: auto;
}

.about-list {
  font-size: 14px;
}

.about-list a {
  color: var(--accent);
}

.about-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.lang-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin: 10px 0;
}

.lang-bar span {
  height: 100%;
}

.lang-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.lang-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}

/* ============ Issues / PR / Actions lists ============ */
.issue-tabs {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
}

.issue-tabs a {
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.issue-tabs a.active {
  background: var(--surface-2);
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.empty-state .big {
  font-size: 16px;
  color: var(--text);
  font-weight: 600;
  margin: 12px 0 6px;
}

.list-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.list-row:last-child {
  border-bottom: none;
}

.list-row .title {
  font-weight: 600;
  font-size: 14px;
}

.list-row .meta {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 4px;
}

.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.action-row:last-child {
  border-bottom: none;
}

.action-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.status-icon.ok {
  color: #3fb950;
}

.status-icon.fail {
  color: var(--danger);
}

.branch-badge {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
}

/* ============ Settings ============ */
.settings-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 18px 0 6px;
}

.settings-form .hint {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 6px;
}

.settings-form input,
.settings-form textarea,
.settings-form select {
  margin-top: 6px;
}

.settings-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  font-weight: 700;
  color: #fff;
}

.danger-zone {
  border: 1px solid rgba(248, 81, 73, 0.4);
  border-radius: 6px;
}

.danger-zone .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.danger-zone .row:last-child {
  border-bottom: none;
}

.btn-danger-outline {
  background: transparent;
  border-color: rgba(248, 81, 73, 0.5);
  color: var(--danger);
}

.btn-danger-outline:hover {
  background: rgba(248, 81, 73, 0.1);
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.feature-toggle {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.feature-toggle:last-child {
  border-bottom: none;
}

.feature-toggle .txt strong {
  display: block;
  font-size: 14px;
}

.feature-toggle .txt span {
  color: var(--text-muted);
  font-size: 12px;
}

.feature-toggle .txt {
  flex: 1;
}

.feature-toggle input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--surface-2, #30363d);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.feature-toggle input[type='checkbox']::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}

.feature-toggle input[type='checkbox']:checked {
  background: #238636;
  border-color: #238636;
}

.feature-toggle input[type='checkbox']:checked::after {
  transform: translateX(20px);
}

/* ============ Inline code editor (repo explorer) ============ */
.inline-editor {
  border-top: 1px solid var(--border);
}

.ie-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2, rgba(110, 118, 129, 0.1));
}

.ie-topbar .ie-file {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.ie-topbar .ie-msg {
  flex: 1;
  margin: 0;
  font-size: 13px;
  padding: 6px 10px;
}

.ie-body {
  display: flex;
  height: 62vh;
  overflow: hidden;
  background: var(--surface-1, #0d1117);
}

.ie-gutter {
  flex: none;
  width: 52px;
  padding: 10px 8px 10px 0;
  text-align: right;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 20px;
  white-space: pre;
  overflow: hidden;
  user-select: none;
  border-right: 1px solid var(--border);
  opacity: 0.6;
}

.ie-text {
  flex: 1;
  width: auto;
  margin: 0;
  padding: 10px 12px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 20px;
  white-space: pre;
  overflow: auto;
  resize: none;
  box-shadow: none;
  tab-size: 2;
}

.ie-text:focus {
  border: none;
  box-shadow: none;
}

.ie-status {
  padding: 6px 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}

/* ============ Dashboard feed ============ */
.feed-row {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.feed-row:last-child {
  border-bottom: none;
}

.feed-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}

.feed-text {
  font-size: 13px;
}

.feed-detail {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

.feed-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.changelog-row {
  display: flex;
  gap: 10px;
  padding: 8px 0;
}

.changelog-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a371f7;
  margin-top: 5px;
  flex-shrink: 0;
}

.trending-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.trending-row:last-child {
  border-bottom: none;
}

/* ============ Blob / file explorer ============ */
.blob-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg);
}

.files-panel {
  border-right: 1px solid var(--border);
  background: var(--surface);
  padding: 10px;
  max-height: calc(100vh - 210px);
  overflow: auto;
}

.files-panel-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.files-branch {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.stree {
  font-size: 13px;
}

.stree-dir > summary {
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 4px;
  list-style: none;
  color: var(--text);
}

.stree-dir > summary::-webkit-details-marker {
  display: none;
}

.stree-dir > summary::before {
  content: '▸';
  margin-right: 5px;
  color: var(--text-muted);
}

.stree-dir[open] > summary::before {
  content: '▾';
}

.stree-dir > summary:hover {
  background: var(--surface-2);
}

.stree-children {
  padding-left: 14px;
}

.stree-file {
  display: block;
  padding: 3px 6px 3px 18px;
  border-radius: 4px;
  color: var(--text);
}

.stree-file:hover {
  background: var(--surface-2);
}

.stree-file.active {
  background: var(--surface-2);
  font-weight: 600;
}

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

.blob-breadcrumb {
  padding: 10px 14px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.blob-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.blob-tabs {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  font-size: 13px;
}

.blob-tabs span {
  padding: 4px 14px;
  cursor: pointer;
}

.blob-tabs span.active {
  background: var(--surface-2);
  font-weight: 600;
}

.blob-history {
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  display: flex;
  justify-content: flex-end;
}

.code-table {
  width: 100%;
  border-collapse: collapse;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
}

.code-table .ln {
  width: 52px;
  text-align: right;
  padding: 0 12px 0 16px;
  color: var(--text-muted);
  user-select: none;
  vertical-align: top;
  line-height: 1.6;
}

.code-table .lc {
  padding: 0;
  vertical-align: top;
}

.code-table .lc pre {
  margin: 0;
  padding: 0 16px 0 6px;
  white-space: pre;
  line-height: 1.6;
  font-family: inherit;
}

.code-table tr:hover {
  background: var(--surface-2);
}

.upload-status {
  margin: 0 0 12px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 13px;
  color: var(--text);
}

.branch-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 50;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 6px;
}

.admin-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.plan-grid label {
  font-size: 12px;
  color: var(--text-muted);
}

.plan-grid input {
  margin-top: 4px;
}

.badge-verified {
  background: rgba(47, 129, 247, 0.15);
  color: var(--accent);
  border-color: rgba(47, 129, 247, 0.4);
}

.kv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gh-search-wrap {
  position: relative;
  flex: 1;
  max-width: 320px;
  margin-left: 10px;
}

.gh-search-wrap .gh-search {
  max-width: none;
  width: 100%;
  margin: 0;
}

.gh-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 6px;
  max-height: 320px;
  overflow: auto;
}

.gh-search-result {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
}

.gh-search-result:hover {
  background: var(--surface-2);
}

.search-empty {
  padding: 8px 10px;
  font-size: 13px;
}

.profile-stats {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 14px;
}

.profile-stats a {
  color: var(--text-muted);
}

.profile-stats a:hover {
  color: var(--accent);
}

#announce-bar {
  background: rgba(210, 153, 34, 0.14);
  border-bottom: 1px solid rgba(210, 153, 34, 0.4);
  color: var(--text);
  padding: 8px 20px;
  font-size: 13px;
  text-align: center;
}

.branch-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border: none;
  background: none;
  color: var(--text);
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}

.branch-item:hover {
  background: var(--surface-2);
}

.branch-item.active {
  font-weight: 600;
}

@media (max-width: 900px) {
  .blob-layout {
    grid-template-columns: 1fr;
  }
  .files-panel {
    max-height: 240px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 900px) {
  .gh-columns,
  .gh-columns.repo {
    grid-template-columns: 1fr;
  }
  .gh-nav {
    display: none;
  }
  .pinned-grid {
    grid-template-columns: 1fr;
  }
}
