/* Styles für Erweiterung „github“ */
.gh-badge {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; font-family: var(--mono);
  padding: 1px 7px; border-radius: var(--radius-pill); background: var(--info-soft); color: var(--info);
  text-decoration: none; white-space: nowrap; line-height: 1.6;
}
.gh-badge:hover, .gh-badge:focus-visible { text-decoration: underline; }
.gh-badge.is-closed { background: var(--ok-soft); color: var(--ok); }

.gh-form, .gh-repo-field .row { flex-wrap: wrap; }
.gh-grow { flex: 1 1 220px; min-width: 0; }
.gh-repo-field select { margin-top: 6px; max-width: 100%; }

.gh-toolbar { margin-bottom: 6px; }
.gh-spacer { flex: 1; }
.gh-list {
  list-style: none; margin: 0 0 10px; padding: 0; max-height: 46vh; overflow-y: auto;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.gh-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.gh-row:first-child { border-top: 0; }
.gh-pick { display: flex; align-items: center; gap: 8px; flex: 1 1 200px; min-width: 0; cursor: pointer; font-weight: 400; }
.gh-title { overflow-wrap: anywhere; }
.gh-meta { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }

.gh-preview {
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2);
  padding: 10px 12px; margin-bottom: 10px;
}
.gh-preview-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.gh-preview pre {
  margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: 12px;
  color: var(--text-2); max-height: 30vh; overflow-y: auto;
}
.gh-link-row { gap: 8px; }
.gh-link-row a { overflow-wrap: anywhere; }
