/* Тёмная тема в стиле GitHub: верхняя панель и вкладки. Общая для сайта и админки. */
:root {
  --gh-bg: #0d1117; --gh-top: #010409; --gh-card: #151b23; --gh-subtle: #212830;
  --gh-line: #3d444d; --gh-line-soft: #262c36; --gh-fg: #f0f6fc; --gh-muted: #9198a1;
  --gh-link: #4493f8; --gh-active: #f78166; --gh-green: #238636; --gh-green-fg: #3fb950;
  --gh-red: #f85149; --gh-yellow: #d29922; --gh-red-bg: #25171c; --gh-yellow-bg: #272115;
  color-scheme: dark;
}
.gh-top { background: var(--gh-top); border-bottom: 1px solid var(--gh-line); font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif; color: var(--gh-fg); }
.gh-bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px 6px; }
.gh-logo { width: 32px; height: 32px; border-radius: 50%; background: var(--gh-active); color: #0d1117; display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none; }
.gh-brand { color: var(--gh-fg) !important; text-decoration: none; font-weight: 600; font-size: 16px; white-space: nowrap; }
.gh-brand span { color: var(--gh-muted); font-weight: 400; }
.gh-spacer { flex: 1; }
.gh-user { color: var(--gh-muted); font-size: 13px; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.gh-user form { margin: 0; display: inline; }
.gh-user button { background: var(--gh-subtle); color: var(--gh-fg); border: 1px solid var(--gh-line); border-radius: 6px; padding: 3px 10px; font: inherit; cursor: pointer; }
.gh-user button:hover { border-color: var(--gh-muted); }
.gh-tabs { display: flex; gap: 4px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
.gh-tabs::-webkit-scrollbar { display: none; }
.gh-tabs a { display: flex; align-items: center; gap: 8px; padding: 8px 8px 10px; color: var(--gh-fg) !important; text-decoration: none !important; white-space: nowrap; border-bottom: 2px solid transparent; font-size: 14px; position: relative; }
.gh-tabs a::before { content: ""; position: absolute; inset: 4px 0 8px; border-radius: 6px; z-index: 0; }
.gh-tabs a:hover::before { background: var(--gh-subtle); }
.gh-tabs a > * { position: relative; z-index: 1; }
.gh-tabs a.on { border-bottom-color: var(--gh-active); font-weight: 600; }
.gh-tabs svg { width: 16px; height: 16px; fill: none; stroke: var(--gh-muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.gh-tabs a.cta span { color: var(--gh-green-fg); font-weight: 600; }
.gh-tabs a.cta svg { stroke: var(--gh-green-fg); }
.gh-lang { display: flex; margin: 0; border: 1px solid var(--gh-line); border-radius: 6px; overflow: hidden; flex: none; }
.gh-lang button { background: transparent; color: var(--gh-muted); border: 0; padding: 3px 9px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.gh-lang button.on { background: var(--gh-subtle); color: var(--gh-fg); }
.gh-lang button:hover { color: var(--gh-fg); }
.gh-back { display: flex; align-items: center; gap: 4px; background: var(--gh-subtle); color: var(--gh-fg); border: 1px solid var(--gh-line); border-radius: 6px; padding: 4px 10px 4px 6px; font: inherit; font-size: 13px; cursor: pointer; flex: none; }
.gh-back:hover { border-color: var(--gh-muted); }
.gh-back svg, .gh-search svg { width: 16px; height: 16px; fill: none; stroke: var(--gh-muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.gh-search { display: flex; align-items: center; gap: 6px; margin: 0 0 0 12px; flex: 0 1 340px; min-width: 0; background: var(--gh-bg); border: 1px solid var(--gh-line); border-radius: 6px; padding: 0 8px; }
.gh-search:focus-within { border-color: var(--gh-link); box-shadow: 0 0 0 1px var(--gh-link); }
.gh-search input { flex: 1; min-width: 0; background: transparent !important; border: 0 !important; outline: 0; box-shadow: none !important; color: var(--gh-fg) !important; font: inherit; font-size: 14px; padding: 5px 0 !important; margin: 0; height: auto !important; }
@media (max-width: 600px) {
  .gh-brand span, .gh-user .gh-name, .gh-back span { display: none; }
  .gh-bar { flex-wrap: wrap; }
  .gh-search { order: 9; flex: 1 1 100%; margin: 0; }
}
