.app {
	min-width: 0;
	min-height: calc(100vh - var(--top));
	display: flex;
	flex-direction: column;
}

.bar {
	position: sticky;
	top: var(--top);
	z-index: 20;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0 20px;
	padding: 14px var(--gutter) 0;
	background: var(--bg);
	border-bottom: 1px solid var(--line-strong);
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	font-size: 23px;
	font-weight: 400;
	line-height: 1.3;
}

.logo {
	width: 30px;
	height: 30px;
	border-radius: 4px;
	display: grid;
	place-content: center;
	background: var(--accent);
	color: var(--on-accent);
}

.tabs {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	scrollbar-width: none;
	flex: 1 1 auto;
	min-width: 0;
	margin-bottom: -1px;
}

.tabs::-webkit-scrollbar {
	display: none;
}

.tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 38px;
	padding: 0 12px;
	border: 1px solid var(--line-strong);
	border-radius: 0;
	background: var(--tab);
	color: var(--tab-ink);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.tab:hover {
	background: var(--surface);
	color: var(--ink);
}

.tab[aria-selected="true"] {
	background: var(--bg);
	color: var(--ink);
	border-bottom-color: var(--bg);
}

.tab-count {
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--bad-fill);
	color: var(--on-accent);
	font-size: 11px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
}

.bar-right {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
	margin-bottom: 10px;
}

@media (max-width: 640px) {
	.tabs {
		order: 3;
		flex-basis: 100%;
	}
}

.main {
	width: 100%;
	max-width: 1240px;
	padding-block: 28px 72px;
	padding-inline: var(--gutter);
}

.view {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.view-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 20px;
}

.display {
	font: 600 clamp(21px, 2.4vw, 26px) / 1.3 var(--font-body);
	text-wrap: balance;
}

.lede {
	color: var(--muted);
	font-size: 14px;
	max-width: 64ch;
}

h2.title {
	font: 600 14px/1.4 var(--font-body);
}
