/* =====================================================================
   Prime Koders — GitHub-style look for the job workspace and project lists
   (everything is scoped under .gh so the rest of the site keeps its Upwork look).
   Colours follow GitHub's Primer palette, light and dark.
   ===================================================================== */
.gh {
    --gh-fg: #1f2328; --gh-muted: #59636e; --gh-border: #d1d9e0; --gh-border-soft: #d1d9e0b3; --gh-canvas: #ffffff; --gh-subtle: #f6f8fa;
    --gh-accent: #0969da; --gh-accent-soft: #ddf4ff; --gh-btn: #f6f8fa; --gh-btn-hover: #eff2f5; --gh-btn-border: #d1d9e0;
    --gh-green: #1f883d; --gh-green-hover: #1c8139; --gh-green-text: #1a7f37; --gh-red: #d1242f; --gh-purple: #8250df; --gh-amber: #9a6700;
    --gh-add-bg: #dafbe1; --gh-add-num: #aceebb; --gh-del-bg: #ffebe9; --gh-del-num: #ffcecb; --gh-hunk: #ddf4ff; --gh-hunk-num: #b6e3ff;
    --gh-shadow: 0 1px 0 rgba(31, 35, 40, 0.04); --gh-overlay: 0 8px 24px rgba(66, 74, 83, 0.12), 0 1px 3px rgba(31, 35, 40, 0.12);
    --gh-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
    --gh-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    font-family: var(--gh-font); color: var(--gh-fg); font-size: 14px; line-height: 1.5; background: var(--gh-canvas);
    margin: -1px 0 0;
}
[data-theme="dark"] .gh {
    --gh-fg: #f0f6fc; --gh-muted: #9198a1; --gh-border: #3d444d; --gh-border-soft: #3d444db3; --gh-canvas: #0d1117; --gh-subtle: #151b23;
    --gh-accent: #4493f8; --gh-accent-soft: #388bfd1a; --gh-btn: #212830; --gh-btn-hover: #262c36; --gh-btn-border: #3d444d;
    --gh-green: #238636; --gh-green-hover: #29903b; --gh-green-text: #3fb950; --gh-red: #f85149; --gh-purple: #ab7df8; --gh-amber: #d29922;
    --gh-add-bg: #2ea04326; --gh-add-num: #3fb9504d; --gh-del-bg: #f851491a; --gh-del-num: #f851494d; --gh-hunk: #388bfd1a; --gh-hunk-num: #388bfd66;
    --gh-shadow: none; --gh-overlay: 0 8px 24px rgba(1, 4, 9, 0.6);
}
body.page-jobs-workspace { background: var(--surface); }
[data-theme="dark"] body.page-jobs-workspace { background: #0d1117; }
.gh a { color: var(--gh-accent); }
.gh a:hover { text-decoration: underline; color: var(--gh-accent); }
.gh h1, .gh h2, .gh h3 { font-family: var(--gh-font); letter-spacing: 0; color: var(--gh-fg); }
.gh code, .gh .gh-mono, .gh kbd { font-family: var(--gh-mono); }
.gh-container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.gh-muted { color: var(--gh-muted); }
.gh-sep { color: var(--gh-muted); padding: 0 4px; }
.gh .small { font-size: 12px; }
.gh .mb-0 { margin-bottom: 0; }

/* ---------- Repository header + underline tabs ---------- */
.gh-repohead { background: var(--gh-subtle); border-bottom: 1px solid var(--gh-border); padding-top: 16px; }
[data-theme="dark"] .gh-repohead { background: #010409; }
.gh-repohead-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.gh-title { display: flex; align-items: center; gap: 6px; font-size: 20px; flex-wrap: wrap; min-width: 0; }
.gh-title a { color: var(--gh-accent); word-break: break-all; }
.gh-title .gh-repo strong { font-weight: 600; }
.gh-label { display: inline-block; padding: 0 7px; font-size: 12px; font-weight: 500; line-height: 18px; border: 1px solid var(--gh-border); border-radius: 2em; color: var(--gh-muted); white-space: nowrap; }
.gh-label-in_progress { color: var(--gh-green-text); border-color: currentColor; }
.gh-label-completed { color: var(--gh-purple); border-color: currentColor; }
.gh-label-cancelled { color: var(--gh-red); border-color: currentColor; }
.gh-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gh-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.gh-tabs::-webkit-scrollbar { display: none; }
.gh-tabs a { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 8px 12px; color: var(--gh-fg); font-size: 14px; white-space: nowrap; border-radius: 6px 6px 0 0; }
.gh-tabs a i { color: var(--gh-muted); font-size: 13px; }
.gh-tabs a:hover { text-decoration: none; color: var(--gh-fg); }
.gh-tabs a:hover::before { content: ''; position: absolute; inset: 4px 0 8px; border-radius: 6px; background: var(--gh-btn-hover); z-index: -1; }
.gh-tabs a.selected { font-weight: 600; }
.gh-tabs a.selected::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 6px; background: #fd8c73; }
.gh-tabs a { isolation: isolate; }
.gh-counter { display: inline-block; min-width: 20px; padding: 0 6px; font-size: 12px; font-weight: 500; line-height: 18px; text-align: center; border-radius: 2em; background: #818b981f; color: var(--gh-fg); }
.gh-body { padding-top: 24px; padding-bottom: 48px; }

/* ---------- Buttons ---------- */
.gh-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; font: 500 14px/20px var(--gh-font); color: var(--gh-fg); background: var(--gh-btn); border: 1px solid var(--gh-btn-border); border-radius: 6px; cursor: pointer; white-space: nowrap; box-shadow: var(--gh-shadow); text-decoration: none; transition: background 0.12s, border-color 0.12s; }
.gh .gh-btn { color: var(--gh-fg); }
.gh-btn:hover { background: var(--gh-btn-hover); text-decoration: none !important; color: var(--gh-fg); }
.gh-btn i { color: var(--gh-muted); font-size: 12px; }
.gh-btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }
.gh .gh-btn-primary, .gh-btn-primary { background: var(--gh-green); border-color: rgba(31, 35, 40, 0.15); color: #fff; }
.gh .gh-btn-primary:hover { background: var(--gh-green-hover); color: #fff; }
.gh-btn-primary i { color: #fff; }
.gh .gh-btn-danger { color: var(--gh-red); }
.gh .gh-btn-danger:hover { background: var(--gh-red); color: #fff; border-color: var(--gh-red); }
.gh-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.gh-iconbtn { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; border: 0; background: transparent; color: var(--gh-muted); cursor: pointer; }
.gh-iconbtn:hover { background: var(--gh-btn-hover); color: var(--gh-fg); text-decoration: none !important; }
.gh-iconbtn.gh-danger:hover { color: var(--gh-red); }
.gh-btnrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.gh-btngroup { display: inline-flex; }
.gh-btngroup .gh-btn { border-radius: 0; }
.gh-btngroup .gh-btn:first-child { border-radius: 6px 0 0 6px; }
.gh-btngroup .gh-btn:last-child { border-radius: 0 6px 6px 0; margin-left: -1px; }
.gh-inline { display: inline; margin: 0; }
.gh-mono { font-family: var(--gh-mono); font-size: 12px; }

/* ---------- Dropdown menus ---------- */
.gh .dropdown { position: relative; }
.gh .gh-menu { right: 0; left: auto; top: calc(100% + 4px); width: 280px; padding: 6px; border-radius: 12px; border: 1px solid var(--gh-border); background: var(--gh-canvas); box-shadow: var(--gh-overlay); font-family: var(--gh-font); }
.gh .gh-branch .gh-menu { left: 0; right: auto; }
.gh .gh-menu > a, .gh .gh-menu .dropdown-btn { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; color: var(--gh-fg); font-size: 14px; }
.gh .gh-menu > a:hover, .gh .gh-menu .dropdown-btn:hover { background: var(--gh-btn-hover); text-decoration: none; }
.gh .gh-menu i { width: 16px; color: var(--gh-muted); }
.gh-menu-head { padding: 6px 8px; font-size: 12px; font-weight: 600; color: var(--gh-muted); }
.gh-menu-sub { padding: 8px 8px 4px; font-size: 12px; color: var(--gh-muted); border-top: 1px solid var(--gh-border); margin-top: 6px; }
.gh-clone { display: flex; gap: 4px; padding: 0 8px 6px; }
.gh-clone input { flex: 1; min-width: 0; height: 28px; padding: 0 8px; font: 12px var(--gh-mono); border: 1px solid var(--gh-border); border-radius: 6px; background: var(--gh-subtle); color: var(--gh-fg); }

/* ---------- Boxes ---------- */
.gh-box { border: 1px solid var(--gh-border); border-radius: 6px; background: var(--gh-canvas); margin-bottom: 16px; overflow: hidden; }
.gh-box-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 16px; min-height: 44px; background: var(--gh-subtle); border-bottom: 1px solid var(--gh-border); }
.gh-box-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--gh-border); background: var(--gh-subtle); font-size: 13px; }
.gh-blank { padding: 40px 16px; text-align: center; }
.gh-blank > i { font-size: 28px; color: var(--gh-muted); margin-bottom: 8px; }
.gh-blank h3 { font-size: 20px; margin: 4px 0; }
.gh-blank .gh-btnrow { justify-content: center; margin-top: 12px; }
.gh-pad { padding: 16px; margin: 0; }
.gh-flash { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 16px; border: 1px solid #54aeff66; border-radius: 6px; background: var(--gh-accent-soft); color: var(--gh-fg); }
.gh-flash > i { color: var(--gh-accent); }
.gh-flash-warn { border-color: #d4a72c66; background: #fff8c5; }
[data-theme="dark"] .gh-flash-warn { background: #bb800926; }
.gh-flash-warn > i { color: var(--gh-amber); }
.gh-flash-done { border-color: #4ac26b66; background: #dafbe1; }
[data-theme="dark"] .gh-flash-done { background: #2ea04326; }
.gh-flash .gh-inline { margin-left: auto; }

/* ---------- Code tab ---------- */
.gh-layout { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 24px; align-items: start; }
.gh-filebar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.gh-filebar-right { display: flex; gap: 8px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.gh-branchmeta { font-size: 14px; }
.gh-branchmeta i { margin: 0 2px 0 8px; }
.gh-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 0; font-size: 16px; min-width: 0; word-break: break-all; }
.gh-crumbs-lg { font-size: 20px; }
.gh-crumbs strong { font-weight: 600; }
.gh-finder { position: relative; }
.gh-finder > i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--gh-muted); }
.gh-finder input { height: 32px; width: 220px; padding: 0 30px 0 30px; font: 14px var(--gh-font); color: var(--gh-fg); background: var(--gh-canvas); border: 1px solid var(--gh-border); border-radius: 6px; min-height: 0; }
.gh-finder input:focus { outline: 2px solid var(--gh-accent); outline-offset: -1px; border-color: transparent; box-shadow: none; }
.gh-finder kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 11px; padding: 0 5px; border: 1px solid var(--gh-border); border-radius: 4px; color: var(--gh-muted); background: var(--gh-subtle); line-height: 16px; }
.gh-finder-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 40; width: min(460px, 86vw); max-height: 360px; overflow: auto; padding: 6px; border-radius: 12px; border: 1px solid var(--gh-border); background: var(--gh-canvas); box-shadow: var(--gh-overlay); }
.gh-finder-list a { display: block; padding: 6px 8px; border-radius: 6px; color: var(--gh-fg); font-size: 14px; word-break: break-all; }
.gh-finder-list a:hover, .gh-finder-list a.active { background: var(--gh-btn-hover); text-decoration: none; }
.gh-finder-list a i { color: var(--gh-muted); margin-right: 6px; }
.gh-finder-list .ws-finder-none { padding: 8px; color: var(--gh-muted); }
.gh-av { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; vertical-align: middle; box-shadow: 0 0 0 1px var(--gh-border-soft); }
.gh-av-xs { width: 20px; height: 20px; }
.gh-av-lg { width: 40px; height: 40px; }
.gh-commitbar { font-size: 14px; flex-wrap: nowrap; }
.gh-commitbar-who { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; }
.gh-commitbar-who strong { white-space: nowrap; }
.gh .gh-commit-msg { color: var(--gh-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh .gh-commit-msg:hover { color: var(--gh-accent); }
.gh-commitbar-meta { display: flex; align-items: center; gap: 6px; color: var(--gh-muted); font-size: 12px; white-space: nowrap; }
.gh .gh-sha { font-family: var(--gh-mono); font-size: 12px; color: var(--gh-muted); }
.gh .gh-commitcount { margin-left: 10px; color: var(--gh-fg); font-size: 14px; }
.gh-commitcount i { color: var(--gh-muted); }
.gh-commitbar-solo { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; background: var(--gh-canvas); }
.gh-files { width: 100%; border-collapse: collapse; font-size: 14px; }
.gh-files td { padding: 8px 16px; border-top: 1px solid var(--gh-border); }
.gh-files tr:first-child td { border-top: 0; }
.gh-files tr:hover td { background: var(--gh-subtle); }
.gh-fname { width: 34%; }
.gh-fname a { color: var(--gh-fg); display: inline-flex; align-items: center; gap: 10px; word-break: break-all; }
.gh-fname a:hover { color: var(--gh-accent); }
.gh-folder { color: #54aeff; }
[data-theme="dark"] .gh-folder { color: #7d8590; }
.gh-fileicon { color: var(--gh-muted); width: 16px; text-align: center; }
.gh-fmsg a { color: var(--gh-muted); }
.gh-fmsg { max-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-ftime { color: var(--gh-muted); text-align: right; white-space: nowrap; width: 1%; }
.gh-readme .gh-box-header { background: var(--gh-canvas); }
.gh-markdown { padding: 24px 32px; font-size: 16px; line-height: 1.5; word-wrap: break-word; }
.gh-markdown h1, .gh-markdown h2 { padding-bottom: 0.3em; border-bottom: 1px solid var(--gh-border-soft); margin: 24px 0 16px; font-weight: 600; }
.gh-markdown h1 { font-size: 2em; } .gh-markdown h2 { font-size: 1.5em; } .gh-markdown h3 { font-size: 1.25em; margin: 24px 0 16px; } .gh-markdown h4 { font-size: 1em; }
.gh-markdown > :first-child { margin-top: 0; }
.gh-markdown p, .gh-markdown ul { margin: 0 0 16px; }
.gh-markdown ul { padding-left: 2em; }
.gh-markdown code { padding: 0.2em 0.4em; font-size: 85%; border-radius: 6px; background: #818b981f; }
.gh-markdown pre { padding: 16px; overflow: auto; font-size: 85%; line-height: 1.45; border-radius: 6px; background: var(--gh-subtle); }
.gh-markdown pre code { padding: 0; background: none; font-size: 100%; }
.gh-readme-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px; flex-wrap: wrap; }
.gh-folder-delete { text-align: right; }

/* About sidebar */
.gh-side-h { font-size: 16px; font-weight: 600; margin: 0 0 12px; padding-top: 16px; border-top: 1px solid var(--gh-border-soft); display: flex; align-items: center; gap: 6px; }
.gh-sidebar > .gh-side-h:first-child { border-top: 0; padding-top: 0; }
.gh-about { font-size: 16px; margin: 0 0 16px; }
.gh-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.gh .gh-topic { padding: 0 10px; font-size: 12px; font-weight: 500; line-height: 22px; border-radius: 2em; background: var(--gh-accent-soft); color: var(--gh-accent); }
.gh .gh-topic:hover { background: var(--gh-accent); color: #fff; text-decoration: none; }
.gh-side-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--gh-muted); }
.gh-side-list i { width: 16px; margin-right: 6px; }
.gh-side-list a { color: var(--gh-muted); }
.gh-side-list a:hover { color: var(--gh-accent); }
progress.gh-progress { display: block; width: 100%; height: 8px; margin: 0 0 16px; border: 0; border-radius: 6px; background: #818b9833; overflow: hidden; appearance: none; -webkit-appearance: none; }
progress.gh-progress::-webkit-progress-bar { background: #818b9833; border-radius: 6px; }
progress.gh-progress::-webkit-progress-value { background: var(--gh-green); border-radius: 6px; }
progress.gh-progress::-moz-progress-bar { background: var(--gh-green); border-radius: 6px; }
.gh-progress-lg { height: 10px; margin: 8px 0; }
.gh-people { display: flex; gap: 6px; margin-bottom: 16px; }
.gh-langbar { display: flex; height: 8px; border-radius: 6px; overflow: hidden; margin-bottom: 8px; background: #818b9833; }
.gh-langbar span { display: block; height: 100%; outline: 2px solid var(--gh-canvas); }
.gh-langs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; }
.gh-langs strong { font-weight: 600; }
.gh-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--gh-muted); }

/* ---------- File (blob) view ---------- */
.gh-blobtop { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.gh-blob-header { flex-wrap: wrap; }
.gh-blob-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gh-blobmeta { font-size: 12px; }
.gh-blob-actions { display: flex; align-items: center; gap: 4px; }
.gh-segment { display: inline-flex; padding: 2px; border-radius: 6px; background: #818b981a; border: 1px solid var(--gh-border); }
.gh-segment > span { padding: 0 12px; line-height: 24px; font-size: 12px; font-weight: 500; border-radius: 5px; }
.gh-segment > span a { color: var(--gh-fg); text-decoration: none !important; }
.gh-segment > span.on { background: var(--gh-canvas); box-shadow: 0 0 0 1px var(--gh-border); font-weight: 600; }
.gh-code { overflow: auto; max-height: 78vh; font: 12px/20px var(--gh-mono); }
.gh-code table { border-collapse: collapse; min-width: 100%; }
.gh-code td { padding: 0; vertical-align: top; }
.gh-code .ln { position: sticky; left: 0; width: 1%; min-width: 50px; padding: 0 16px 0 10px; text-align: right; user-select: none; background: var(--gh-canvas); }
.gh-code .ln a { color: var(--gh-muted); text-decoration: none; }
.gh-code .ln a:hover { color: var(--gh-fg); }
.gh-code .lc { padding: 0 16px 0 10px; white-space: pre; color: var(--gh-fg); tab-size: 4; }
.gh-code tr:first-child td { padding-top: 8px; }
.gh-code tr:last-child td { padding-bottom: 8px; }
.gh-code tr.hl td { background: #fff8c5; }
[data-theme="dark"] .gh-code tr.hl td { background: #bb800926; }
.gh-image { padding: 24px; text-align: center; background: repeating-conic-gradient(var(--gh-subtle) 0% 25%, var(--gh-canvas) 0% 50%) 50% / 20px 20px; }
.gh-image img { max-width: 100%; max-height: 70vh; }
.gh-zip-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--gh-border); }
.gh-zip-head > i { color: var(--gh-muted); }
.gh-extract { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-wrap: wrap; }
.gh-zip-list { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; font-size: 13px; }
.gh-zip-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; padding: 5px 16px; border-top: 1px solid var(--gh-border-soft); }
.gh-zip-list li span:first-of-type { word-break: break-all; font-family: var(--gh-mono); font-size: 12px; }
.gh-check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--gh-fg); cursor: pointer; }
.gh-check input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; }

/* ---------- Editor ---------- */
.gh-editor-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.gh-pathedit { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 16px; min-width: 0; flex: 1 1 420px; }
.gh-pathedit input { flex: 1 1 240px; min-width: 160px; height: 32px; padding: 0 12px; font: 14px var(--gh-font); color: var(--gh-fg); background: var(--gh-canvas); border: 1px solid var(--gh-border); border-radius: 6px; min-height: 0; }
.gh-pathedit input:focus { outline: 2px solid var(--gh-accent); outline-offset: -1px; box-shadow: none; }
.gh-in { font-size: 14px; white-space: nowrap; }
.gh-branchpill { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; font: 12px/22px var(--gh-mono); color: var(--gh-accent); background: var(--gh-accent-soft); border-radius: 6px; }
.gh-hint { font-size: 12px; margin: 0 0 12px; }
.gh-editor { margin-bottom: 0; }
.gh-editor-tabs { min-height: 40px; }
.gh-editor-body { display: grid; grid-template-columns: auto minmax(0, 1fr); background: var(--gh-canvas); }
.gh-gutter { padding: 12px 10px 12px 16px; min-width: 52px; text-align: right; font: 12px/20px var(--gh-mono); color: var(--gh-muted); white-space: pre; overflow: hidden; user-select: none; height: 64vh; border-right: 1px solid var(--gh-border-soft); }
.gh-textarea { display: block; width: 100%; height: 64vh; min-height: 360px; padding: 12px 16px; border: 0; border-radius: 0; resize: vertical; background: var(--gh-canvas); color: var(--gh-fg); font: 12px/20px var(--gh-mono); tab-size: 4; white-space: pre; overflow-wrap: normal; overflow: auto; box-shadow: none; }
.gh-textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gh-accent); }
.gh-editor-preview { min-height: 300px; }
.gh-preview-pre { margin: 0; padding: 0; background: none; font: 12px/20px var(--gh-mono); white-space: pre-wrap; }
.gh-dialog { width: min(480px, 92vw); padding: 0; border: 1px solid var(--gh-border); border-radius: 12px; background: var(--gh-canvas); color: var(--gh-fg); box-shadow: var(--gh-overlay); font-family: var(--gh-font); }
.gh-dialog::backdrop { background: rgba(1, 4, 9, 0.45); }
.gh-dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--gh-border); font-size: 14px; }
.gh-dialog-body { display: grid; gap: 8px; padding: 16px; }
.gh-dialog-body label { font-size: 14px; font-weight: 600; }
.gh-dialog-body input[type="text"], .gh-dialog-body textarea { width: 100%; padding: 5px 12px; min-height: 32px; font: 14px var(--gh-font); color: var(--gh-fg); background: var(--gh-canvas); border: 1px solid var(--gh-border); border-radius: 6px; box-shadow: none; }
.gh-dialog-body input:focus, .gh-dialog-body textarea:focus { outline: 2px solid var(--gh-accent); outline-offset: -1px; }
.gh-radio { display: flex; gap: 8px; align-items: center; font-weight: 400 !important; color: var(--gh-fg); margin-top: 4px; }
.gh-radio input { width: 16px; height: 16px; min-height: 0; }
.gh-dialog-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--gh-border); }

/* ---------- Upload ---------- */
.gh-upload .gh-crumbs { margin-bottom: 16px; }
.gh-dropzone { position: relative; display: grid; justify-items: center; gap: 6px; padding: 56px 16px; margin-bottom: 12px; border: 1px dashed var(--gh-border); border-radius: 6px; background: var(--gh-canvas); text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.gh-dropzone > i { font-size: 32px; color: var(--gh-muted); }
.gh-dropzone strong { font-size: 20px; font-weight: 400; }
.gh-dropzone.dragging, .gh-dropzone:hover { border-color: var(--gh-accent); background: var(--gh-accent-soft); }
.gh-dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.gh-dropnames { color: var(--gh-accent); font-weight: 600; font-size: 14px; }
.gh-upload-opts { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 16px; font-size: 14px; }
.gh-upload-opts input[type="file"] { font-size: 12px; max-width: 220px; }
.gh-commitbox { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; }
.gh-upload-actions { margin-left: 56px; }

/* ---------- Commits ---------- */
.gh-pagehead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 8px; margin-bottom: 16px; border-bottom: 1px solid var(--gh-border-soft); }
.gh-pagehead h1 { font-size: 24px; font-weight: 400; margin: 0; word-break: break-all; }
.gh-commitday { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 400; color: var(--gh-muted); margin: 16px 0 8px; }
.gh-commitlist { margin-bottom: 8px; }
.gh-commitrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 16px; border-top: 1px solid var(--gh-border); }
.gh-commitrow:first-child { border-top: 0; }
.gh-commitrow:hover { background: var(--gh-subtle); }
.gh-commitrow-main { min-width: 0; }
.gh .gh-commit-title { color: var(--gh-fg); font-weight: 600; font-size: 16px; word-break: break-word; }
.gh .gh-commit-title:hover { color: var(--gh-accent); }
.gh-commitrow-side { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.gh-addel { font: 12px var(--gh-mono); }
.gh-add { color: var(--gh-green-text); }
.gh-del { color: var(--gh-red); }
.gh-pager { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.gh-commithead-body { padding: 16px; position: relative; }
.gh-commithead-body h1 { font-size: 20px; font-weight: 600; margin: 0 120px 4px 0; word-break: break-word; }
.gh-commitdesc { margin: 8px 0 0; font: 13px/1.5 var(--gh-mono); white-space: pre-wrap; color: var(--gh-muted); background: none; padding: 0; }
.gh-browse { position: absolute; right: 16px; top: 16px; }
.gh-sha-full { font-size: 12px; }
.gh-diffsummary { font-size: 14px; margin: 16px 0; }
.gh-diff > summary { cursor: pointer; list-style: none; position: sticky; top: 0; z-index: 2; }
.gh-diff > summary::-webkit-details-marker { display: none; }
.gh-diff:not([open]) > summary { border-bottom: 0; }
.gh-diff:not([open]) .gh-chev { transform: rotate(-90deg); }
.gh-chev { font-size: 11px; color: var(--gh-muted); transition: transform 0.15s; width: 14px; }
.gh-diff-name { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; font-size: 12px; }
.gh-diff-path { font: 12px var(--gh-mono); color: var(--gh-fg); word-break: break-all; }
.gh-diffstat { display: inline-flex; align-items: center; gap: 2px; font: 12px var(--gh-mono); }
.gh-diffstat .sq { display: inline-block; width: 8px; height: 8px; margin-left: 1px; }
.gh-diffstat .sq.g { background: var(--gh-green-text); }
.gh-diffstat .sq.r { background: var(--gh-red); }
.gh-diffstat .sq.n { background: #818b9833; }
.gh-change { font-size: 11px; font-weight: 600; text-transform: uppercase; padding: 0 6px; border-radius: 2em; line-height: 18px; border: 1px solid var(--gh-border); color: var(--gh-muted); }
.gh-change-added, .gh-change-extracted { color: var(--gh-green-text); border-color: currentColor; }
.gh-change-deleted { color: var(--gh-red); border-color: currentColor; }
.gh-change-renamed, .gh-change-restored { color: var(--gh-purple); border-color: currentColor; }
.gh-diff-body { overflow-x: auto; }
.gh-diff-note { padding: 16px; color: var(--gh-muted); text-align: center; font-size: 14px; }
.gh-difftable { border-collapse: collapse; min-width: 100%; font: 12px/20px var(--gh-mono); }
.gh-difftable td { padding: 0; vertical-align: top; }
.gh-difftable .dn { width: 1%; min-width: 50px; padding: 0 10px; text-align: right; color: var(--gh-muted); user-select: none; }
.gh-difftable .dc { padding: 0 10px; white-space: pre; color: var(--gh-fg); }
.gh-difftable .ds { display: inline-block; width: 16px; user-select: none; color: var(--gh-muted); }
.gh-difftable tr.add .dc { background: var(--gh-add-bg); }
.gh-difftable tr.add .dn { background: var(--gh-add-num); color: var(--gh-fg); }
.gh-difftable tr.del .dc { background: var(--gh-del-bg); }
.gh-difftable tr.del .dn { background: var(--gh-del-num); color: var(--gh-fg); }
.gh-difftable tr.gh-hunk td { background: var(--gh-hunk); color: var(--gh-muted); padding-top: 4px; padding-bottom: 4px; }
.gh-difftable tr.gh-hunk .dn { background: var(--gh-hunk-num); text-align: center; }

/* ---------- Objectives (issues) ---------- */
.gh-milestone { margin-bottom: 16px; font-size: 14px; }
.gh-issues-head { min-height: 52px; }
.gh-states { display: flex; gap: 16px; }
.gh .gh-states a { color: var(--gh-muted); font-size: 14px; }
.gh .gh-states a.on { color: var(--gh-fg); font-weight: 600; }
.gh-issue { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--gh-border); scroll-margin-top: 120px; }
.gh-issue:first-of-type { border-top: 0; }
.gh-issue:hover { background: var(--gh-subtle); }
.gh-issue:target { background: var(--gh-accent-soft); }
.gh-issue-icon { padding-top: 2px; color: var(--gh-green-text); }
.gh-issue-done .gh-issue-icon { color: var(--gh-amber); }
.gh-issue-approved .gh-issue-icon { color: var(--gh-purple); }
.gh-issue-title { font-size: 16px; font-weight: 600; margin-right: 6px; }
.gh-issuelabel { display: inline-block; padding: 0 7px; font-size: 12px; font-weight: 500; line-height: 18px; border-radius: 2em; vertical-align: 2px; }
.gh-issuelabel-review { background: #fff8c5; color: #7d4e00; border: 1px solid #d4a72c66; }
.gh-issuelabel-done { background: #fbefff; color: var(--gh-purple); border: 1px solid #c297ff66; }
[data-theme="dark"] .gh-issuelabel-review { background: #bb800926; color: #e3b341; }
[data-theme="dark"] .gh-issuelabel-done { background: #ab7df81a; }
.gh-issue-note { margin-top: 6px; padding: 6px 10px; font-size: 13px; border-left: 3px solid var(--gh-border); background: var(--gh-subtle); border-radius: 0 6px 6px 0; }
.gh-issue-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: flex-start; }
.gh-issue-actions form { margin: 0; }
.gh-issue-form { display: flex; gap: 6px; }
.gh-issue-form input { width: 200px; height: 28px; min-height: 0; padding: 0 8px; font: 12px var(--gh-font); color: var(--gh-fg); background: var(--gh-canvas); border: 1px solid var(--gh-border); border-radius: 6px; }
.gh-newissue > summary { cursor: pointer; list-style: none; }
.gh-newissue > summary::-webkit-details-marker { display: none; }
.gh-finish { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px; flex-wrap: wrap; }
.gh-finish form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0; }

/* ---------- Insights ---------- */
.gh-pulse { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.gh-pulse > div { padding: 16px; text-align: center; border-left: 1px solid var(--gh-border); }
.gh-pulse > div:first-child { border-left: 0; }
.gh-pulse strong { display: block; font-size: 24px; font-weight: 400; }
.gh-pulse span { color: var(--gh-muted); font-size: 12px; }
.gh-section-h { font-size: 16px; font-weight: 600; margin: 24px 0 8px; }
.gh-contrib { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--gh-border); }
.gh-contrib:first-child { border-top: 0; }
.gh-contrib-main { display: grid; gap: 4px; }
.gh-contrib progress.gh-progress { margin: 0; height: 6px; }
.gh-timeline { position: relative; padding-left: 4px; }
.gh-tl { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 8px 0; font-size: 14px; }
.gh-tl::before { content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: var(--gh-border-soft); }
.gh-tl-badge { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gh-subtle); border: 2px solid var(--gh-canvas); color: var(--gh-muted); font-size: 13px; }

/* ---------- Repository lists (developer projects, my jobs, posted jobs) ---------- */
.gh-dash { border: 1px solid var(--gh-border); border-radius: 12px; padding: 8px 24px 16px; margin: 0 0 24px; }
.gh-dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; padding: 16px 0 8px; }
.gh-dash-head h1 { font-size: 24px; font-weight: 600; margin: 0; }
.gh-dash-head p { margin: 2px 0 0; color: var(--gh-muted); }
.gh-tabs-line { border-bottom: 1px solid var(--gh-border-soft); margin: 0 -24px 16px; padding: 8px 16px 0; }
.gh-repolist { list-style: none; margin: 0; padding: 0; }
.gh-repolist .gh-repo-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--gh-border-soft); }
.gh-repo-title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0; font-size: 20px; line-height: 1.3; }
.gh .gh-repo-name { font-size: 20px; font-weight: 600; word-break: break-word; }
.gh-repo-owner { font-weight: 400; }
.gh-h2 { font-size: 20px; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 8px; }
.gh-h2 i { color: var(--gh-muted); font-size: 16px; }
.gh-repo-desc { color: var(--gh-muted); margin: 6px 0 8px; font-size: 14px; max-width: 760px; }
.gh-repo-note { margin: 0 0 8px; font-size: 13px; color: var(--gh-amber); }
.gh-repo-note-red { color: var(--gh-red); }
.gh-repo-row .gh-topics { margin: 0 0 10px; }
.gh-repo-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--gh-muted); font-size: 12px; align-items: center; }
.gh-repo-meta > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.gh-repo-meta a { color: var(--gh-muted); }
.gh-repo-meta a:hover { color: var(--gh-accent); }
.gh-repo-meta .gh-dot { margin-right: 2px; }
.gh-repo-meta .gh-platforms { gap: 8px; }
.gh-repo-meta .gh-progress { width: 110px; height: 8px; margin: 0; }
.gh-repo-actions { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }
.gh-repo-actions .inline-form { margin: 0; }
.gh-repo-cover { width: 120px; height: 68px; object-fit: cover; border-radius: 6px; border: 1px solid var(--gh-border); }
.gh-btngroup .gh-btn + .gh-btn { margin-left: -1px; }
.gh-btn-danger { color: var(--gh-red); }
.gh .gh-btn-danger:hover { background: var(--gh-red); border-color: var(--gh-red); color: #fff; }
.gh-label-pending { color: var(--gh-amber); border-color: currentColor; }
.gh-label-featured { color: var(--gh-amber); border-color: currentColor; }
.gh-label-open { color: var(--gh-accent); border-color: currentColor; }
.gh-filterbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--gh-border-soft); }
.gh-filterbar input[type="search"] { flex: 1 1 180px; min-width: 0; height: 32px; min-height: 0; padding: 0 12px; font: 14px var(--gh-font); border: 1px solid var(--gh-border); border-radius: 6px; background: var(--gh-canvas); color: var(--gh-fg); box-shadow: none; }
.gh-filterbar input[type="search"]:focus { outline: 2px solid var(--gh-accent); outline-offset: -1px; border-color: var(--gh-accent); }
.gh-select { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 0 0 12px; font: 500 14px var(--gh-font); color: var(--gh-muted); background: var(--gh-btn); border: 1px solid var(--gh-btn-border); border-radius: 6px; margin: 0; cursor: pointer; }
.gh-select:hover { background: var(--gh-btn-hover); }
.gh-select select { height: 30px; min-height: 0; padding: 0 26px 0 2px; border: 0; background: transparent; color: var(--gh-fg); font: 500 14px var(--gh-font); box-shadow: none; cursor: pointer; width: auto; }
.gh-select select:focus { outline: none; }
.gh-select:focus-within { outline: 2px solid var(--gh-accent); outline-offset: -1px; }
[data-theme="dark"] .gh-select select option { background: #151b23; color: #f0f6fc; }
.gh-filterinfo { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--gh-border-soft); font-size: 14px; }
.gh-pagerwrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 16px; }
.gh-pagerwrap .pagination { margin: 0; }
.gh-section-title { font-size: 16px; font-weight: 600; margin: 24px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--gh-border-soft); display: flex; align-items: center; gap: 8px; }
.gh-proposals { width: 100%; border-collapse: collapse; font-size: 14px; }
.gh-proposals th { text-align: left; font-weight: 600; font-size: 12px; color: var(--gh-muted); padding: 8px 16px; background: var(--gh-subtle); border-bottom: 1px solid var(--gh-border); }
.gh-proposals td { padding: 10px 16px; border-bottom: 1px solid var(--gh-border-soft); vertical-align: top; }
.gh-proposals tr:last-child td { border-bottom: 0; }
.gh-proposals .text-right { text-align: right; }
.gh-box > .gh-proposals { border-radius: 6px; overflow: hidden; }

@media (max-width: 1012px) {
    .gh-layout { grid-template-columns: minmax(0, 1fr); }
    .gh-sidebar { order: -1; border-bottom: 1px solid var(--gh-border-soft); padding-bottom: 8px; }
    .gh-pulse { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gh-pulse > div:nth-child(4) { border-left: 0; }
    .gh-pulse > div:nth-child(n+4) { border-top: 1px solid var(--gh-border); }
}
@media (max-width: 768px) {
    .gh-container { padding: 0 16px; }
    .gh-title { font-size: 16px; }
    .gh-body { padding-top: 16px; }
    .gh-fmsg { display: none; }
    .gh-files td { padding: 8px 12px; }
    .gh-filebar-right { margin-left: 0; width: 100%; }
    .gh-finder { flex: 1 1 100%; }
    .gh-finder input { width: 100%; }
    .gh-commitbar { flex-wrap: wrap; }
    .gh-commitbar-meta .gh-commitcount { margin-left: 0; }
    .gh-markdown { padding: 16px; font-size: 15px; }
    .gh-issue { grid-template-columns: 22px minmax(0, 1fr); }
    .gh-issue-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .gh-issue-form { flex-wrap: wrap; width: 100%; }
    .gh-issue-form input { flex: 1 1 160px; width: auto; }
    .gh-commitrow { flex-direction: column; align-items: flex-start; }
    .gh-commithead-body h1 { margin-right: 0; }
    .gh-browse { position: static; margin-top: 8px; }
    .gh-gutter { display: none; }
    .gh-editor-body { grid-template-columns: 1fr; }
    .gh-textarea { height: 56vh; }
    .gh-upload-actions { margin-left: 0; }
    .gh-commitbox { grid-template-columns: 1fr; }
    .gh-commitbox > img { display: none; }
    .gh-pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gh-pulse > div { border-left: 0; border-top: 1px solid var(--gh-border); }
    .gh-repolist .gh-repo-row { grid-template-columns: 1fr; gap: 12px; padding: 16px 0; }
    .gh-repo-actions { justify-content: flex-start; }
    .gh-dash { padding: 4px 16px 12px; border-radius: 10px; }
    .gh-tabs-line { margin: 0 -16px 12px; padding: 4px 8px 0; }
    .gh-filterbar input[type="search"] { flex-basis: 100%; }
    .gh-filterbar .gh-select { flex: 1 1 auto; }
    .gh .gh-repo-name, .gh-repo-title { font-size: 17px; }
    .gh-proposals th:nth-child(4), .gh-proposals td:nth-child(4) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .gh * { transition: none !important; } }
.gh img.gh-av { display: inline-block; margin-right: 4px; }
.gh-repolist .gh-repo-row:last-child { border-bottom: 0; padding-bottom: 8px; }
.gh-tl > div { min-width: 0; overflow-wrap: anywhere; }
.gh-main { min-width: 0; }
.gh-filebar .gh-crumbs { flex: 1 1 160px; }
