:root {
	color-scheme: light;
	--text: #101828;
	--text-2: #475467;
	--text-3: #667085;
	--text-body: #344054;
	--mark: #98a2b3;
	--bg: #f6f7f9;
	--card: #fff;
	--line: #e4e7ec;
	--line-soft: #f2f4f7;
	--link: #c4320a;
	--link-hover: #93370d;
	--focus: #e8590c;
	--tile: #2e90fa;
	--tile-muted: #f2f4f7;
	--current-bg: #eff8ff;
	--current-line: #b2ddff;
	--current-text: #175cd3;
	--added: #12b76a;
	--changed: #2e90fa;
	--removed: #f04438;
	--fixed: #f79009;
	font-family: Inter, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	color: var(--text);
}

.tile img,
.more img,
.back-link img,
.back-bar img { display: block; flex: none; }

.back-bar { display: none; }

.sheet {
	flex: 1;
	display: flex;
	justify-content: center;
	padding: 32px 40px 120px;
}

.sheet.missing { align-items: center; }

.column {
	width: 100%;
	max-width: 880px;
	display: flex;
	flex-direction: column;
}

.column.list { gap: 32px; }
.column.detail { gap: 24px; }

.page-head {
	display: flex;
	gap: 16px;
	align-items: center;
}

.page-head h1,
.title-row h1 {
	margin: 0;
	font-size: 28px;
	line-height: 36px;
	font-weight: 700;
}

.title-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.page-head p {
	margin: 4px 0 0;
	color: var(--text-2);
	font-size: 15px;
	line-height: 22px;
}

.tile {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 10px;
	background: var(--tile);
}

.tile-muted { background: var(--tile-muted); }

.feed {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.release,
.groups,
.missing-card,
.neighbor {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 12px;
}

.release {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px 28px;
}

.release-head {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.release h2,
.groups h2 {
	margin: 0;
	font-weight: 600;
}

.release h2 {
	font-size: 20px;
	line-height: 28px;
}

.release time {
	color: var(--text-3);
	font-size: 14px;
	line-height: 20px;
}

.current {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border: 1px solid var(--current-line);
	border-radius: 999px;
	background: var(--current-bg);
	color: var(--current-text);
	font-size: 12px;
	line-height: 18px;
	font-weight: 500;
}

.release ul,
.groups ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.release li,
.groups li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	color: var(--text-body);
	font-size: 15px;
	line-height: 24px;
}

.release li::before,
.groups li::before {
	content: "";
	flex: none;
	width: 5px;
	height: 5px;
	margin-top: 9.5px;
	border-radius: 50%;
	background: var(--mark);
}

.release li span,
.groups li span {
	flex: 1;
	min-width: 0;
	overflow-wrap: break-word;
}

.release footer {
	border-top: 1px solid var(--line-soft);
	padding-top: 16px;
}

.more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--link);
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
	text-decoration: none;
}

.more:hover {
	color: var(--link-hover);
	text-decoration: underline;
}

.groups { padding: 8px 0; }

.groups section {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px 28px;
}

.groups section + section { border-top: 1px solid var(--line-soft); }

.groups h2 {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	line-height: 24px;
}

.dot {
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.dot.added { background: var(--added); }
.dot.changed { background: var(--changed); }
.dot.removed { background: var(--removed); }
.dot.fixed { background: var(--fixed); }

.count {
	color: var(--mark);
	font-size: 14px;
	line-height: 20px;
	font-weight: 400;
}

code {
	font-family: "Fira Mono", ui-monospace, monospace;
	font-size: 14px;
	line-height: inherit;
}

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
	padding: 2px 6px 2px 4px;
	border-radius: 4px;
	color: var(--text-2);
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
	text-decoration: none;
}

.back-link:hover {
	color: var(--text);
	text-decoration: underline;
}

.neighbors {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.neighbor {
	display: flex;
	flex-direction: column;
	gap: 2px;
	align-items: flex-start;
	padding: 14px 20px;
	text-decoration: none;
	color: inherit;
}

.neighbor.next {
	grid-column: 2;
	align-items: flex-end;
	text-align: right;
}

.neighbor-kicker {
	color: var(--text-3);
	font-size: 13px;
	line-height: 20px;
}

.neighbor-title {
	color: var(--text);
	font-size: 15px;
	line-height: 22px;
	font-weight: 600;
}

.neighbor:hover {
	background: #f9fafb;
	border-color: #d0d5dd;
}

.missing-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	width: 100%;
	padding: 40px;
	text-align: center;
}

.missing-copy {
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: center;
}

.missing-card h1 {
	margin: 0;
	font-size: 20px;
	line-height: 28px;
	font-weight: 600;
}

.missing-card p {
	margin: 0;
	color: var(--text-2);
	font-size: 15px;
	line-height: 22px;
	white-space: nowrap;
}

:focus { outline: none; }

:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
}

@media (max-width: 1279px) {
	.sheet { padding-left: 32px; padding-right: 32px; }
}

@media (max-width: 1023px) {
	.sheet { padding: 24px 24px 120px; }
	.column { max-width: none; }
}

@media (max-width: 767px) {
	.back-link,
	.page-head .tile { display: none; }

	.back-bar {
		display: flex;
		align-items: center;
		gap: 4px;
		height: 48px;
		padding: 0 16px 0 10px;
		background: var(--card);
		border-bottom: 1px solid var(--line);
		color: var(--text-body);
		font-size: 16px;
		line-height: 24px;
		font-weight: 500;
		text-decoration: none;
	}

	.sheet { padding: 20px 16px 120px; }
	.column.list,
	.column.detail { gap: 16px; }
	.page-head h1,
	.title-row h1 { font-size: 22px; line-height: 28px; }
	.feed { gap: 12px; }
	.release { padding: 16px; }
	.groups section { padding: 16px; }
	.neighbors { grid-template-columns: 1fr; gap: 12px; }
	.neighbor.next { grid-column: auto; }
	.more { min-height: 44px; }
	.missing-card { padding: 32px 16px; }
	.missing-card p { white-space: normal; }
}
