div#cgit {
	font-size: inherit;
	color: inherit;
	background: inherit;
}

div#cgit a {
	color: #216fdb;
}

div#cgit table#header td.main {
	font-size: 1.5rem;
	font-weight: bold;
	padding: 0;
	position: relative;
}

div#cgit table#header td.main a:first-child {
	display: none;
}

div#cgit table#header td.main a {
	position: absolute;
	left: 0;
	background-color: #fff;
	font-size: 1.5rem;
}

div#cgit table#header td.sub {
	border-top: none;
	padding-left: 0;
}

div#cgit div.content {
	overflow-x: auto;
	border-bottom: none;
}

div#cgit table.list td a.ls-dir {
	color: inherit;
}

div#cgit table.list td a:hover {
	color: inherit;
}

div#cgit div.cgit-panel table {
	border: none;
	background-color: inherit;
}

div#cgit table.diffstat {
	border: none;
	background-color: inherit;
}

div#cgit table.diff td div.add {
	color: #000;
	background-color: #d7e8b7;
}

div#cgit table.diff td div.del {
	color: #000;
	background-color: #ffb1ae;
}

div#cgit table.tabs {
	margin-top: 0;
}

div#cgit table.blob pre {
	display: block;
	overflow: hidden;
	background: none;
	border-radius: 0;
}

.markdown-body .highlight pre,
.markdown-body pre,
.markdown-body code,
.markdown-body tt {
	background-color: #f6f8fa !important;
	border: none !important;
	border-radius: 6px !important;
}

@media (prefers-color-scheme: dark) {
	div#cgit a {
		color: #8cb4ff
	}

	div#cgit table#header td.sub {
		color: #abb1b7;
	}

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

	div#cgit table.list tr:nth-child(odd) {
		background: #18191a;
	}

	div#cgit table.list td a {
		color: #e4e6eb;
	}

	div#cgit table.list tr.nohover,
	div#cgit table.list tr.nohover:hover {
		background: #18191a;
	}

	div#cgit table.list td.reposection {
		color: #bbbbbb;
	}

	div#cgit span.age-months {
		color: #bbbbbb;
	}

	div#cgit span.age-days {
		color: #027c02;
	}

	div#cgit span.age-hours {
		color: #0c0;
	}

	div#cgit table.tabs {
		margin-top: 0;
		border-bottom: solid 3px #e4e6eb;
	}

	div#cgit table.tabs td a {
		color: #e4e6eb;
	}

	div#cgit table.tabs td a.active {
		color: #18191a;
		background-color: #e4e6eb;
	}

	div#cgit table#header td.main a {
		color: #e4e6eb;
		background-color: #18191a;
	}

	div#cgit table.diffstat td.add a {
		color: #73c991;
	}
	
	div#cgit table.diffstat td.upd a {
		color: #e2c08d;
	}

	div#cgit table.diffstat td.del a {
		color: #c74e39;
	}

	div#cgit a.deco {
		background-color: #b00;
	}

	div#cgit a.branch-deco {
		background-color: #080;
	}

	div#cgit table.diff td div.head {
		color: #e4e6eb;
	}

	div#cgit table.diff td div.hunk {
		color: #216fdb;
	}

	div#cgit table.diff td div.del {
		color: #e4e6eb;
		background-color: #721a19;
	}

	div#cgit table.diff td div.add {
		color: #e4e6eb;
		background-color: #4c582c;
	}

	div#cgit table.diffstat td.graph td.add {
	  background-color: #73c991;
	}

	div#cgit table.diffstat td.graph td.rem {
	  background-color: #c74e39;
	}

	div#cgit div.path {
		color: #e4e6eb;
		background-color: inherit;
	}

	div#cgit table.blob {
		border-top: 1px solid gray;
	}

	div#cgit table.blob pre {
		color: #d0d0d0;
		background-color: #18191a;
	}

	.highlight {
		background: inherit !important;
	}

	.markdown-body .highlight pre,
	.markdown-body pre,
	.markdown-body code,
	.markdown-body tt {
		background-color: #343434 !important;
		border: none !important;
	}

	div#cgit .markdown-body h1 a.toclink,
	div#cgit .markdown-body h2 a.toclink,
	div#cgit .markdown-body h3 a.toclink,
	div#cgit .markdown-body h4 a.toclink,
	div#cgit .markdown-body h5 a.toclink,
	div#cgit .markdown-body h6 a.toclink {
		color: #e4e6eb !important;
	}

	.markdown-body table tr {
		border-top: 1px solid #e4e6eb !important;
		background-color: inherit !important;
	}

	.markdown-body table th,
	.markdown-body table td {
		border: 1px solid #e4e6eb !important;
	}

	.markdown-body h2 {
		border-bottom: 1px solid #e4e6eb !important;
	}
}

@media only screen and (max-width: 864px) {
	div#cgit div.content {
		padding: 10px 0;
		overflow-x: auto;
	}
}

@media only screen and (max-width: 832px) {
	div#cgit table[summary="repository list"] tr:first-child {
		display: none;
	}

	div#cgit table[summary="repository list"] tr {
		display: flex;
		flex-direction: column;
		padding: 10px;
	}

	div#cgit table[summary="repository list"] td {
		padding: 0;
		white-space: normal;
	}

	div#cgit table[summary="repository list"] td.sublevel-repo {
		padding: 0;
		font-weight: bold;
	}

	div#cgit table.tabs td {
		display: flex;
		flex-wrap: wrap;
	}

	div#cgit table.tabs td.form form {
		margin-left: auto;
		padding: 20px 0 10px 0;
	}

	div#cgit table[summary="tree listing"] tr {
		white-space: nowrap;
	}

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