/* cgit CSS - Dark theme inspired by Ne System (Ne.org) */

:root {
	--bg-primary: #0f1117;
	--bg-secondary: #1a1d27;
	--bg-card: #1e2130;
	--bg-hover: #252840;
	--border-color: #2e3250;
	--border-light: #3a3f60;
	--text-primary: #e8eaf0;
	--text-secondary: #8b90a8;
	--text-muted: #5a5f7a;
	--accent-blue: #4a9eff;
	--accent-blue-hover: #6ab4ff;
	--accent-green: #4ecb71;
	--accent-red: #e05c5c;
	--accent-yellow: #f0c040;
	--code-bg: #151821;
	--tab-active-bg: #252840;
	--shadow: 0 4px 24px rgba(0,0,0,0.4);
}

div#cgit {
	padding: 0em;
	margin: 0em;
	font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace, sans-serif;
	font-size: 10pt;
	color: var(--text-primary);
	background: var(--bg-primary);
	padding: 4px;
	min-height: 100vh;
}

div#cgit a {
	color: var(--accent-blue);
	text-decoration: none;
	transition: color 0.15s ease;
}

div#cgit a:hover {
	color: var(--accent-blue-hover);
	text-decoration: underline;
}

div#cgit table {
	border-collapse: collapse;
}

/* ── HEADER ── */
div#cgit table#header {
	width: 100%;
	margin-bottom: 1em;
	background: var(--bg-secondary);
	border-bottom: 1px solid var(--border-color);
}

div#cgit table#header td.logo {
	width: 96px;
	vertical-align: top;
	padding: 1em;
}

div#cgit table#header td.main {
	font-size: 200%;
	font-weight: 700;
	padding-left: 10px;
	white-space: nowrap;
	letter-spacing: -0.02em;
	color: var(--text-primary);
}

div#cgit table#header td.main a {
	color: var(--text-primary);
}

div#cgit table#header td.form {
	text-align: right;
	vertical-align: bottom;
	padding-right: 1.5em;
	padding-bottom: 6px;
	white-space: nowrap;
}

div#cgit table#header td.form form,
div#cgit table#header td.form input,
div#cgit table#header td.form select {
	font-size: 90%;
	background: var(--bg-card);
	color: var(--text-primary);
	border: 1px solid var(--border-color);
	border-radius: 4px;
	padding: 3px 8px;
}

div#cgit table#header td.sub {
	color: var(--text-secondary);
	border-top: solid 1px var(--border-color);
	padding-left: 10px;
	padding: 0.4em 10px;
	font-size: 90%;
}

/* ── TABS ── */
div#cgit table.tabs {
	border-bottom: solid 1px var(--border-color);
	border-collapse: collapse;
	margin-top: 0;
	margin-bottom: 0px;
	width: 100%;
	background: var(--bg-secondary);
}

div#cgit table.tabs td {
	padding: 0px 0.5em;
	vertical-align: bottom;
}

div#cgit table.tabs td a {
	display: inline-block;
	padding: 6px 14px;
	color: var(--text-secondary);
	font-size: 100%;
	border: 1px solid transparent;
	border-bottom: none;
	border-radius: 4px 4px 0 0;
	transition: color 0.15s, background 0.15s;
	font-family: inherit;
}

div#cgit table.tabs td a:hover {
	color: var(--text-primary);
	background: var(--bg-hover);
	text-decoration: none;
}

div#cgit table.tabs td a.active {
	color: var(--text-primary);
	background-color: var(--tab-active-bg);
	border-color: var(--border-color);
	border-bottom: 1px solid var(--tab-active-bg);
	font-weight: 600;
}

div#cgit table.tabs a[href^="http://"]:after,
div#cgit table.tabs a[href^="https://"]:after {
	content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfgAhcJDQY+gm2TAAAAHWlUWHRDb21tZW50AAAAAABDcmVhdGVkIHdpdGggR0lNUGQuZQcAAABbSURBVAhbY2BABs4MU4CwhYHBh2Erww4wrGFQZHjI8B8IgUIscJWyDHcggltQhI4zGDCcRwhChPggHIggP1QoAVmQkSETrGoHsiAEsACtBYN0oDAMbgU6EBcAAL2eHUt4XUU4AAAAAElFTkSuQmCC);
	opacity: 0.3;
	margin: 0 0 0 5px;
	filter: invert(1);
}

div#cgit table.tabs td.form {
	text-align: right;
}

div#cgit table.tabs td.form form {
	padding-bottom: 4px;
	font-size: 90%;
	white-space: nowrap;
}

div#cgit table.tabs td.form input,
div#cgit table.tabs td.form select {
	font-size: 90%;
	background: var(--bg-card);
	color: var(--text-primary);
	border: 1px solid var(--border-color);
	border-radius: 4px;
	padding: 3px 8px;
}

/* ── PATH ── */
div#cgit div.path {
	margin: 0px;
	padding: 6px 2em;
	color: var(--text-secondary);
	background-color: var(--bg-secondary);
	border-bottom: 1px solid var(--border-color);
	font-size: 90%;
	font-family: 'JetBrains Mono', monospace;
}

/* ── CONTENT ── */
div#cgit div.content {
	margin: 0px;
	padding: 2em;
	border-bottom: solid 1px var(--border-color);
	background: var(--bg-primary);
}

/* ── LIST TABLE ── */
div#cgit table.list {
	width: 100%;
	border: 1px solid var(--border-color);
	border-collapse: collapse;
	border-radius: 8px;
	overflow: hidden;
}

div#cgit table.list tr {
	background: var(--bg-secondary);
}

div#cgit table.list tr.logheader {
	background: var(--bg-card);
}

div#cgit table.list tr:nth-child(even) {
	background: var(--bg-secondary);
}

div#cgit table.list tr:nth-child(odd) {
	background: var(--bg-card);
}

div#cgit table.list tr:hover {
	background: var(--bg-hover);
}

div#cgit table.list tr.nohover {
	background: var(--bg-secondary);
}

div#cgit table.list tr.nohover:hover {
	background: var(--bg-secondary);
}

div#cgit table.list tr.nohover-highlight:hover:nth-child(even) {
	background: var(--bg-secondary);
}

div#cgit table.list tr.nohover-highlight:hover:nth-child(odd) {
	background: var(--bg-card);
}

div#cgit table.list th {
	font-weight: 600;
	color: var(--text-secondary);
	padding: 0.5em 0.75em;
	vertical-align: baseline;
	background: var(--bg-card);
	border-bottom: 1px solid var(--border-color);
	font-size: 85%;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

div#cgit table.list td {
	border: none;
	border-bottom: 1px solid var(--border-color);
	padding: 0.35em 0.75em;
	color: var(--text-primary);
}

div#cgit table.list td.commitgraph {
	font-family: monospace;
	white-space: pre;
}

div#cgit table.list td.commitgraph .column1 { color: #e06060; }
div#cgit table.list td.commitgraph .column2 { color: #60c060; }
div#cgit table.list td.commitgraph .column3 { color: #c0c040; }
div#cgit table.list td.commitgraph .column4 { color: #6090e0; }
div#cgit table.list td.commitgraph .column5 { color: #c060c0; }
div#cgit table.list td.commitgraph .column6 { color: #40b0b0; }

div#cgit table.list td.logsubject {
	font-family: 'JetBrains Mono', monospace;
	font-weight: 600;
}

div#cgit table.list td.logmsg {
	font-family: 'JetBrains Mono', monospace;
	white-space: pre;
	padding: 0 0.5em;
	color: var(--text-secondary);
}

div#cgit table.list td a {
	color: var(--text-primary);
}

div#cgit table.list td a.ls-dir {
	font-weight: 700;
	color: var(--accent-blue);
}

div#cgit table.list td a:hover {
	color: var(--accent-blue-hover);
}

/* ── GENERAL ── */
div#cgit img {
	border: none;
}

div#cgit input#switch-btn {
	margin: 2px 0px 0px 0px;
	background: var(--bg-card);
	color: var(--text-primary);
	border: 1px solid var(--border-color);
	border-radius: 4px;
}

div#cgit td#sidebar input.txt {
	width: 100%;
	margin: 2px 0px 0px 0px;
	background: var(--bg-card);
	color: var(--text-primary);
	border: 1px solid var(--border-color);
	border-radius: 4px;
	padding: 4px 8px;
}

div#cgit table#grid {
	margin: 0px;
}

div#cgit td#content {
	vertical-align: top;
	padding: 1em 2em 1em 1em;
	border: none;
}

div#cgit div#summary {
	vertical-align: top;
	margin-bottom: 1em;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 1.25em 1.5em;
}

div#cgit table#downloads {
	float: right;
	border-collapse: collapse;
	border: solid 1px var(--border-color);
	margin-left: 0.5em;
	margin-bottom: 0.5em;
	border-radius: 6px;
	overflow: hidden;
}

div#cgit table#downloads th {
	background-color: var(--bg-card);
	color: var(--text-secondary);
	font-size: 85%;
	padding: 0.4em 0.75em;
	border-bottom: 1px solid var(--border-color);
}

div#cgit div#blob {
	border: solid 1px var(--border-color);
	border-radius: 6px;
	overflow: hidden;
	background: var(--code-bg);
}

div#cgit div.error {
	color: var(--accent-red);
	font-weight: bold;
	margin: 1em 2em;
	background: rgba(224, 92, 92, 0.1);
	border: 1px solid rgba(224, 92, 92, 0.3);
	border-radius: 6px;
	padding: 0.75em 1em;
}

/* ── FILE TREE ── */
div#cgit a.ls-blob, div#cgit a.ls-dir, div#cgit .ls-mod {
	font-family: 'JetBrains Mono', monospace;
}

div#cgit td.ls-size {
	text-align: right;
	font-family: 'JetBrains Mono', monospace;
	width: 10em;
	color: var(--text-secondary);
}

div#cgit td.ls-mode {
	font-family: 'JetBrains Mono', monospace;
	width: 10em;
	color: var(--text-muted);
}

/* ── BLOB / CODE VIEW ── */
div#cgit table.blob {
	margin-top: 0.5em;
	border-top: solid 1px var(--border-color);
	background: var(--code-bg);
	width: 100%;
}

div#cgit table.blob td.hashes,
div#cgit table.blob td.lines {
	margin: 0; padding: 0 0 0 0.5em;
	vertical-align: top;
	color: var(--text-primary);
}

div#cgit table.blob td.linenumbers {
	margin: 0; padding: 0 0.75em;
	vertical-align: top;
	text-align: right;
	border-right: 1px solid var(--border-color);
	background: var(--bg-card);
	user-select: none;
}

div#cgit table.blob pre {
	padding: 0; margin: 0;
	font-family: 'JetBrains Mono', monospace;
	font-size: 93%;
	line-height: 1.5;
}

div#cgit table.blob td.linenumbers a,
div#cgit table.ssdiff td.lineno a {
	color: var(--text-muted);
	text-align: right;
	text-decoration: none;
}

div#cgit table.blob td.linenumbers a:hover,
div#cgit table.ssdiff td.lineno a:hover {
	color: var(--text-secondary);
}

/* ── BLAME ── */
div#cgit table.blame td.hashes,
div#cgit table.blame td.lines,
div#cgit table.blame td.linenumbers {
	padding: 0;
}

div#cgit table.blame td.hashes div.alt,
div#cgit table.blame td.lines div.alt {
	padding: 0 0.5em;
}

div#cgit table.blame td.linenumbers div.alt {
	padding: 0 0.5em 0 0;
}

div#cgit table.blame div.alt:nth-child(even) {
	background: var(--bg-card);
}

div#cgit table.blame div.alt:nth-child(odd) {
	background: var(--code-bg);
}

div#cgit table.blame td.lines > div {
	position: relative;
}

div#cgit table.blame td.lines > div > pre {
	padding: 0 0 0 0.5em;
	position: absolute;
	top: 0;
}

/* ── BIN BLOB ── */
div#cgit table.bin-blob {
	margin-top: 0.5em;
	border: solid 1px var(--border-color);
	border-radius: 6px;
	overflow: hidden;
}

div#cgit table.bin-blob th {
	font-family: 'JetBrains Mono', monospace;
	white-space: pre;
	border: solid 1px var(--border-color);
	padding: 0.5em 1em;
	background: var(--bg-card);
	color: var(--text-secondary);
}

div#cgit table.bin-blob td {
	font-family: 'JetBrains Mono', monospace;
	white-space: pre;
	border-left: solid 1px var(--border-color);
	padding: 0em 1em;
	color: var(--text-primary);
}

div#cgit table.nowrap td {
	white-space: nowrap;
}

/* ── COMMIT INFO ── */
div#cgit table.commit-info {
	border-collapse: collapse;
	margin-top: 1.5em;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	overflow: hidden;
	width: 100%;
}

div#cgit div.cgit-panel {
	float: right;
	margin-top: 1.5em;
}

div#cgit div.cgit-panel table {
	border-collapse: collapse;
	border: solid 1px var(--border-color);
	background-color: var(--bg-card);
	border-radius: 6px;
	overflow: hidden;
}

div#cgit div.cgit-panel th {
	text-align: center;
	background: var(--bg-hover);
	color: var(--text-secondary);
	padding: 0.4em 1em;
	font-size: 85%;
	font-weight: 600;
	border-bottom: 1px solid var(--border-color);
}

div#cgit div.cgit-panel td {
	padding: 0.25em 0.75em;
	color: var(--text-primary);
}

div#cgit div.cgit-panel td.label {
	padding-right: 0.5em;
	color: var(--text-secondary);
	font-size: 90%;
}

div#cgit div.cgit-panel td.ctrl {
	padding-left: 0.5em;
}

div#cgit table.commit-info th {
	text-align: left;
	font-weight: normal;
	padding: 0.4em 1.25em 0.4em 1em;
	vertical-align: top;
	color: var(--text-secondary);
	font-size: 90%;
	border-bottom: 1px solid var(--border-color);
	background: var(--bg-hover);
	width: 12em;
}

div#cgit table.commit-info td {
	font-weight: normal;
	padding: 0.4em 1em;
	border-bottom: 1px solid var(--border-color);
	color: var(--text-primary);
}

div#cgit div.commit-subject {
	font-weight: 700;
	font-size: 120%;
	margin: 1.5em 0em 0.5em 0em;
	padding: 0.75em 1em;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	color: var(--text-primary);
	letter-spacing: -0.01em;
}

div#cgit div.commit-msg {
	white-space: pre;
	font-family: 'JetBrains Mono', monospace;
	color: var(--text-secondary);
	font-size: 93%;
	line-height: 1.6;
	margin-top: 1em;
}

div#cgit div.notes-header {
	font-weight: bold;
	padding-top: 1.5em;
	color: var(--text-secondary);
}

div#cgit div.notes {
	white-space: pre;
	font-family: 'JetBrains Mono', monospace;
	border: solid 1px #5a4a00;
	background-color: #1e1a00;
	color: #d4b840;
	padding: 0.5em 1.5em;
	float: left;
	border-radius: 6px;
}

div#cgit div.notes-footer {
	clear: left;
}

/* ── DIFFSTAT ── */
div#cgit div.diffstat-header {
	font-weight: 600;
	padding-top: 1.5em;
	color: var(--text-secondary);
	font-size: 90%;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

div#cgit table.diffstat {
	border-collapse: collapse;
	border: solid 1px var(--border-color);
	background-color: var(--bg-card);
	border-radius: 6px;
	overflow: hidden;
	width: 100%;
	margin-top: 0.5em;
}

div#cgit table.diffstat th {
	font-weight: 600;
	text-align: left;
	padding: 0.4em 1em;
	font-size: 90%;
	color: var(--text-secondary);
	background: var(--bg-hover);
	border-bottom: 1px solid var(--border-color);
}

div#cgit table.diffstat td {
	padding: 0.3em 0.75em;
	font-size: 93%;
	border: none;
	border-bottom: 1px solid var(--border-color);
	color: var(--text-primary);
}

div#cgit table.diffstat td.mode {
	white-space: nowrap;
	color: var(--text-secondary);
}

div#cgit table.diffstat td span.modechange {
	padding-left: 1em;
	color: var(--accent-red);
}

div#cgit table.diffstat td.add a { color: var(--accent-green); }
div#cgit table.diffstat td.del a { color: var(--accent-red); }
div#cgit table.diffstat td.upd a { color: var(--accent-blue); }

div#cgit table.diffstat td.graph {
	width: 500px;
	vertical-align: middle;
}

div#cgit table.diffstat td.graph table {
	border: none;
}

div#cgit table.diffstat td.graph td {
	padding: 0px;
	border: 0px;
	height: 7pt;
	border-radius: 2px;
}

div#cgit table.diffstat td.graph td.add {
	background-color: var(--accent-green);
}

div#cgit table.diffstat td.graph td.rem {
	background-color: var(--accent-red);
}

div#cgit div.diffstat-summary {
	color: var(--text-muted);
	padding-top: 0.5em;
	font-size: 88%;
}

/* ── DIFF VIEW ── */
div#cgit table.diff {
	width: 100%;
	background: var(--code-bg);
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid var(--border-color);
}

div#cgit table.diff td {
	font-family: 'JetBrains Mono', monospace;
	white-space: pre;
	font-size: 92%;
	line-height: 1.5;
}

div#cgit table.diff td div.head {
	font-weight: bold;
	margin-top: 1em;
	color: var(--text-primary);
	background: var(--bg-hover);
	padding: 0.25em 1em;
}

div#cgit table.diff td div.hunk {
	color: #7090c0;
	background: rgba(70, 90, 160, 0.15);
	padding: 0.1em 0.5em;
}

div#cgit table.diff td div.add {
	color: var(--accent-green);
	background: rgba(78, 203, 113, 0.08);
}

div#cgit table.diff td div.del {
	color: var(--accent-red);
	background: rgba(224, 92, 92, 0.08);
}

/* ── SHA / UTIL ── */
div#cgit .sha1 {
	font-family: 'JetBrains Mono', monospace;
	font-size: 88%;
	color: var(--text-secondary);
}

div#cgit .left  { text-align: left; }
div#cgit .right { text-align: right; }

div#cgit table.list td.reposection {
	font-style: italic;
	color: var(--text-muted);
}

/* ── BUTTONS ── */
div#cgit a.button {
	font-size: 80%;
	padding: 3px 10px;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 4px;
	color: var(--text-secondary);
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

div#cgit a.button:hover {
	background: var(--bg-hover);
	border-color: var(--border-light);
	color: var(--text-primary);
	text-decoration: none;
}

div#cgit a.primary   { font-size: 100%; }
div#cgit a.secondary { font-size: 90%; }

div#cgit td.toplevel-repo {}

div#cgit table.list td.sublevel-repo {
	padding-left: 1.5em;
}

/* ── PAGER ── */
div#cgit ul.pager {
	list-style-type: none;
	text-align: center;
	margin: 1.5em 0em 0em 0em;
	padding: 0;
}

div#cgit ul.pager li {
	display: inline-block;
	margin: 0.25em 0.25em;
}

div#cgit ul.pager a {
	color: var(--text-secondary);
	padding: 4px 10px;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	background: var(--bg-card);
	transition: background 0.15s, color 0.15s;
}

div#cgit ul.pager a:hover {
	color: var(--text-primary);
	background: var(--bg-hover);
	text-decoration: none;
}

div#cgit ul.pager .current {
	font-weight: bold;
	color: var(--text-primary);
	background: var(--bg-hover);
	padding: 4px 10px;
	border: 1px solid var(--border-light);
	border-radius: 4px;
}

/* ── AGE COLORS ── */
div#cgit span.age-mins   { font-weight: bold; color: #5de85d; }
div#cgit span.age-hours  { color: #5de85d; }
div#cgit span.age-days   { color: #7abf7a; }
div#cgit span.age-weeks  { color: var(--text-secondary); }
div#cgit span.age-months { color: var(--text-muted); }
div#cgit span.age-years  { color: #3a3f60; }

div#cgit span.insertions { color: var(--accent-green); }
div#cgit span.deletions  { color: var(--accent-red); }

/* ── FOOTER ── */
div#cgit div.footer {
	margin-top: 1em;
	padding: 1em 2em;
	text-align: center;
	font-size: 80%;
	color: var(--text-muted);
	background: var(--bg-secondary);
	border-top: 1px solid var(--border-color);
}

div#cgit div.footer a {
	color: var(--text-muted);
	text-decoration: none;
}

div#cgit div.footer a:hover {
	color: var(--text-secondary);
	text-decoration: underline;
}

/* ── DECORATORS (branch/tag/remote) ── */
div#cgit a.branch-deco {
	color: #0f1117;
	margin: 0px 0.5em;
	padding: 1px 6px;
	background-color: #4ecb71;
	border: solid 1px #2a8f4e;
	border-radius: 3px;
	font-size: 85%;
	font-weight: 600;
}

div#cgit a.tag-deco {
	color: #0f1117;
	margin: 0px 0.5em;
	padding: 1px 6px;
	background-color: #f0c040;
	border: solid 1px #a08020;
	border-radius: 3px;
	font-size: 85%;
	font-weight: 600;
}

div#cgit a.tag-annotated-deco {
	color: #0f1117;
	margin: 0px 0.5em;
	padding: 1px 6px;
	background-color: #e09050;
	border: solid 1px #906030;
	border-radius: 3px;
	font-size: 85%;
	font-weight: 600;
}

div#cgit a.remote-deco {
	color: #e8eaf0;
	margin: 0px 0.5em;
	padding: 1px 6px;
	background-color: #2a3a7a;
	border: solid 1px #4a9eff;
	border-radius: 3px;
	font-size: 85%;
	font-weight: 600;
}

div#cgit a.deco {
	color: #e8eaf0;
	margin: 0px 0.5em;
	padding: 1px 6px;
	background-color: #5a1a1a;
	border: solid 1px #e05c5c;
	border-radius: 3px;
	font-size: 85%;
	font-weight: 600;
}

div#cgit div.commit-subject a.branch-deco,
div#cgit div.commit-subject a.tag-deco,
div#cgit div.commit-subject a.tag-annotated-deco,
div#cgit div.commit-subject a.remote-deco,
div#cgit div.commit-subject a.deco {
	margin-left: 1em;
	font-size: 72%;
}

/* ── STATS ── */
div#cgit table.stats {
	border: solid 1px var(--border-color);
	border-collapse: collapse;
	border-radius: 6px;
	overflow: hidden;
}

div#cgit table.stats th {
	text-align: left;
	padding: 4px 0.75em;
	background-color: var(--bg-card);
	color: var(--text-secondary);
	border: solid 1px var(--border-color);
	font-size: 85%;
}

div#cgit table.stats td {
	text-align: right;
	padding: 4px 0.75em;
	border: solid 1px var(--border-color);
	color: var(--text-primary);
}

div#cgit table.stats td.total {
	font-weight: bold;
	text-align: left;
}

div#cgit table.stats td.sum {
	color: var(--accent-red);
	font-weight: bold;
}

div#cgit table.stats td.left {
	text-align: left;
}

/* ── GRAPHS ── */
div#cgit table.vgraph {
	border-collapse: separate;
	border: solid 1px var(--border-color);
	height: 200px;
	background: var(--bg-card);
	border-radius: 6px;
	overflow: hidden;
}

div#cgit table.vgraph th {
	background-color: var(--bg-hover);
	font-weight: 600;
	border: solid 1px var(--border-color);
	padding: 4px 0.75em;
	color: var(--text-secondary);
	font-size: 85%;
}

div#cgit table.vgraph td {
	vertical-align: bottom;
	padding: 0px 10px;
}

div#cgit table.vgraph div.bar {
	background-color: var(--accent-blue);
	opacity: 0.7;
	border-radius: 2px 2px 0 0;
}

div#cgit table.hgraph {
	border: solid 1px var(--border-color);
	width: 800px;
	background: var(--bg-card);
	border-radius: 6px;
	overflow: hidden;
}

div#cgit table.hgraph th {
	background-color: var(--bg-hover);
	font-weight: 600;
	border: solid 1px var(--border-color);
	padding: 4px 0.75em;
	color: var(--text-secondary);
}

div#cgit table.hgraph td {
	vertical-align: middle;
	padding: 2px 2px;
}

div#cgit table.hgraph div.bar {
	background-color: var(--accent-blue);
	height: 1em;
	opacity: 0.7;
	border-radius: 2px;
}

/* ── SIDE-BY-SIDE DIFF ── */
div#cgit table.ssdiff {
	width: 100%;
	background: var(--code-bg);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	overflow: hidden;
}

div#cgit table.ssdiff td {
	font-size: 90%;
	font-family: 'JetBrains Mono', monospace;
	white-space: pre;
	padding: 1px 6px;
	border-left: solid 1px var(--border-color);
	border-right: solid 1px var(--border-color);
	color: var(--text-primary);
}

div#cgit table.ssdiff td.add      { color: var(--text-primary); background: rgba(78, 203, 113, 0.10); min-width: 50%; }
div#cgit table.ssdiff td.add_dark { color: var(--text-primary); background: rgba(78, 203, 113, 0.20); min-width: 50%; }
div#cgit table.ssdiff span.add    { background: rgba(78, 203, 113, 0.30); font-weight: bold; }

div#cgit table.ssdiff td.del      { color: var(--text-primary); background: rgba(224, 92, 92, 0.10); min-width: 50%; }
div#cgit table.ssdiff td.del_dark { color: var(--text-primary); background: rgba(224, 92, 92, 0.20); min-width: 50%; }
div#cgit table.ssdiff span.del    { background: rgba(224, 92, 92, 0.30); font-weight: bold; }

div#cgit table.ssdiff td.changed      { color: var(--text-primary); background: rgba(240, 192, 64, 0.10); min-width: 50%; }
div#cgit table.ssdiff td.changed_dark { color: var(--text-primary); background: rgba(240, 192, 64, 0.20); min-width: 50%; }

div#cgit table.ssdiff td.lineno {
	color: var(--text-muted);
	background: var(--bg-card);
	text-align: right;
	width: 3em;
	min-width: 3em;
	user-select: none;
	border-right: 1px solid var(--border-color);
}

div#cgit table.ssdiff td.hunk {
	color: #7090c0;
	background: rgba(70, 90, 160, 0.15);
	border-top: solid 1px var(--border-color);
	border-bottom: solid 1px var(--border-color);
}

div#cgit table.ssdiff td.head {
	border-top: solid 1px var(--border-color);
	border-bottom: solid 1px var(--border-color);
	background: var(--bg-hover);
}

div#cgit table.ssdiff td.head div.head {
	font-weight: bold;
	color: var(--text-primary);
}

div#cgit table.ssdiff td.foot {
	border-top: solid 1px var(--border-color);
	border-left: none;
	border-right: none;
	border-bottom: none;
}

div#cgit table.ssdiff td.space {
	border: none;
	background: var(--bg-primary);
}

div#cgit table.ssdiff td.space div {
	min-height: 3em;
}

/* ── RESPONSIVE ── */
@media only screen and (max-width: 800px) {
	div#cgit table#header td.logo { display: none; }
	div#cgit table#header td.main { white-space: normal; }
	div#cgit table#header td { display: block; }
	div#cgit table#header td.form { text-align: left; }
	div#cgit table#header td.sub.right { display: none; }

	div#cgit table.tabs td { display: block; }
	div#cgit table.tabs td a {
		display: block;
		text-align: right;
	}

	div#cgit div.content {
		overflow-x: auto;
		padding: 0.75em;
	}

	td.ls-mode { white-space: nowrap; }
	div#cgit div.cgit-panel { float: left; }

	div#cgit table.ssdiff td { font-size: 80%; }
	div#cgit table.diff td   { font-size: 80%; }
}
