/* Avie - layout and components modelled on modrinth.com, in pink, purple and dark gray. */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("/assets/fonts/inter-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	color-scheme: dark;

	--bg: #0e0c11;
	--bg-raised: #17141c;
	--bg-raised-2: #201c27;
	--bg-input: #1c1922;
	--button: #29242f;
	--button-hover: #342e3c;
	--divider: #2a2531;

	--text: #c9c1d3;
	--text-strong: #f7f0fb;
	--text-muted: #8e859c;

	--pink: #ffa6d3;
	--pink-strong: #ff80c3;
	--pink-soft: rgb(255 166 211 / 0.13);
	--purple: #b897ff;
	--purple-strong: #9566ff;
	--purple-soft: rgb(184 151 255 / 0.14);
	--gradient: linear-gradient(120deg, var(--pink) 0%, var(--purple) 100%);
	--on-brand: #1c0f22;

	--danger: #ff6f8b;
	--danger-soft: rgb(255 111 139 / 0.12);
	--success: #82e0b0;
	--warning: #ffd27a;

	--radius-sm: 8px;
	--radius: 12px;
	--radius-lg: 16px;
	--shadow: 0 1px 2px rgb(0 0 0 / 0.35), 0 6px 20px rgb(0 0 0 / 0.25);

	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
	--page-width: 1280px;
}

/* ---------------------------------------------------------------- base */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 24px;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background-color: var(--bg);
	background-image:
		radial-gradient(900px 420px at 12% -120px, rgb(255 166 211 / 0.10), transparent 70%),
		radial-gradient(900px 420px at 88% -120px, rgb(184 151 255 / 0.12), transparent 70%);
	background-repeat: no-repeat;
	color: var(--text);
	font: 400 15px/1.55 var(--font);
	font-feature-settings: "cv11", "ss01";
	-webkit-font-smoothing: antialiased;
}

/* Only the chosen language is shown */
html[lang="de"] [data-lang="en"],
html[lang="en"] [data-lang="de"] {
	display: none !important;
}

[hidden] {
	display: none !important;
}

a {
	color: var(--purple);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

h1,
h2,
h3,
h4 {
	color: var(--text-strong);
	line-height: 1.25;
	margin: 0;
}

img {
	max-width: 100%;
}

:focus-visible {
	outline: 2px solid var(--pink);
	outline-offset: 2px;
	border-radius: 4px;
}

::selection {
	background: rgb(255 166 211 / 0.35);
	color: var(--text-strong);
}

code,
pre,
kbd {
	font-family: var(--mono);
	font-size: 0.9em;
}

.container {
	width: 100%;
	max-width: var(--page-width);
	margin: 0 auto;
	padding: 0 16px;
}

@media (min-width: 720px) {
	.container {
		padding: 0 24px;
	}
}

.page {
	flex: 1;
	padding-top: 8px;
	padding-bottom: 48px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.muted {
	color: var(--text-muted);
}

.gradient-text {
	background: var(--gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.icon {
	width: 1.15em;
	height: 1.15em;
	flex: none;
}

/* ---------------------------------------------------------------- buttons */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 40px;
	padding: 0.5rem 1rem;
	border: 0;
	border-radius: var(--radius);
	background: var(--button);
	color: var(--text-strong);
	font: 600 0.95rem/1.2 var(--font);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.12s, filter 0.12s, transform 0.06s;
}

.btn:hover {
	background: var(--button-hover);
	text-decoration: none;
}

.btn:active {
	transform: scale(0.97);
}

.btn:disabled,
.btn[aria-disabled="true"] {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.btn.brand {
	background: var(--pink);
	color: var(--on-brand);
}

.btn.brand:hover {
	background: var(--pink-strong);
}

.btn.purple {
	background: var(--purple);
	color: var(--on-brand);
}

.btn.purple:hover {
	background: var(--purple-strong);
}

.btn.ghost {
	background: transparent;
	color: var(--text);
}

.btn.ghost:hover {
	background: var(--button);
	color: var(--text-strong);
}

.btn.danger {
	background: var(--danger-soft);
	color: var(--danger);
}

.btn.danger:hover {
	background: rgb(255 111 139 / 0.2);
}

.btn.small {
	min-height: 32px;
	padding: 0.35rem 0.75rem;
	font-size: 0.875rem;
	border-radius: 10px;
}

.btn.large {
	min-height: 48px;
	padding: 0.65rem 1.4rem;
	font-size: 1rem;
}

.btn.square {
	width: 40px;
	padding: 0;
}

.btn.small.square {
	width: 32px;
}

.btn.large.square {
	width: 48px;
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

/* ---------------------------------------------------------------- header */

.site-header {
	position: relative;
	z-index: 20;
}

.site-header .container {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: 72px;
	flex-wrap: wrap;
	padding-top: 10px;
	padding-bottom: 10px;
}

.brand:not(.btn) {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--text-strong);
	font-weight: 800;
	font-size: 1.25rem;
	letter-spacing: -0.01em;
}

.brand:not(.btn):hover {
	text-decoration: none;
}

.brand:not(.btn) img {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	object-fit: cover;
}

.main-nav {
	display: flex;
	gap: 0.25rem;
	flex: 1;
	justify-content: center;
}

.nav-link {
	display: inline-flex;
	white-space: nowrap;
	align-items: center;
	gap: 0.45rem;
	padding: 0.5rem 0.9rem;
	border-radius: 999px;
	color: var(--text);
	font-weight: 600;
	font-size: 0.95rem;
}

.nav-link:hover {
	background: var(--button);
	color: var(--text-strong);
	text-decoration: none;
}

.nav-link[aria-current="page"] {
	background: var(--pink-soft);
	color: var(--pink);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--button);
	object-fit: cover;
	flex: none;
}

@media (max-width: 760px) {
	.main-nav {
		order: 3;
		flex-basis: 100%;
		justify-content: flex-start;
		overflow-x: auto;
	}

	.header-actions {
		margin-left: auto;
	}

	.user-button .name {
		display: none;
	}
}

/* ---------------------------------------------------------------- dropdown menus */

.menu {
	position: relative;
}

.menu-list {
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	min-width: 200px;
	padding: 6px;
	margin: 0;
	list-style: none;
	background: var(--bg-raised-2);
	border: 1px solid var(--divider);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	z-index: 30;
}

.menu-list a,
.menu-list button {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	width: 100%;
	padding: 0.55rem 0.7rem;
	border: 0;
	border-radius: var(--radius-sm);
	background: none;
	color: var(--text);
	font: 500 0.92rem var(--font);
	text-align: left;
	cursor: pointer;
}

.menu-list a:hover,
.menu-list button:hover,
.menu-list [aria-selected="true"] {
	background: var(--button);
	color: var(--text-strong);
	text-decoration: none;
}

.menu-list .menu-head {
	padding: 0.5rem 0.7rem 0.6rem;
	border-bottom: 1px solid var(--divider);
	margin-bottom: 6px;
	color: var(--text-muted);
	font-size: 0.8rem;
}

.menu-list .menu-head strong {
	display: block;
	color: var(--text-strong);
	font-size: 0.95rem;
}

.flag {
	width: 20px;
	height: 14px;
	border-radius: 2px;
	object-fit: cover;
}

/* ---------------------------------------------------------------- cards, chips */

.card {
	background: var(--bg-raised);
	border-radius: var(--radius-lg);
	padding: 1.25rem;
	box-shadow: var(--shadow);
}

.card + .card {
	margin-top: 1rem;
}

.card > h2,
.card > h3,
.card-title {
	font-size: 1.1rem;
	margin-bottom: 0.75rem;
	color: var(--text-strong);
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	background: var(--bg-raised-2);
	color: var(--text);
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.5;
}

.chip.pink {
	background: var(--pink-soft);
	color: var(--pink);
}

.chip.purple {
	background: var(--purple-soft);
	color: var(--purple);
}

.chip.warning {
	background: rgb(255 210 122 / 0.12);
	color: var(--warning);
}

.chip .icon {
	width: 14px;
	height: 14px;
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.9rem;
	color: var(--text-muted);
	font-size: 0.85rem;
	font-weight: 500;
}

.tags span {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}

.tags .icon {
	width: 15px;
	height: 15px;
}

.stat {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--text-muted);
	font-size: 0.9rem;
}

.stat strong {
	color: var(--text-strong);
	font-weight: 700;
}

.project-icon {
	width: 96px;
	height: 96px;
	border-radius: var(--radius-lg);
	background: var(--bg-raised-2);
	object-fit: cover;
	flex: none;
	image-rendering: auto;
}

.project-icon.small {
	width: 48px;
	height: 48px;
	border-radius: var(--radius);
}

.project-icon.tiny {
	width: 32px;
	height: 32px;
	border-radius: var(--radius-sm);
}

div.project-icon {
	display: grid;
	place-items: center;
	color: var(--text-muted);
}

/* ---------------------------------------------------------------- home */

.hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	align-items: center;
	padding: 40px 0 32px;
}

@media (min-width: 900px) {
	.hero {
		grid-template-columns: 1.3fr 1fr;
		padding: 64px 0 48px;
	}
}


.hero h1 {
	font-size: clamp(2.2rem, 6vw, 3.6rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.05;
}

.hero .lead {
	margin: 1rem 0 1.5rem;
	font-size: 1.08rem;
	max-width: 60ch;
}

.hero .lead p {
	margin: 0 0 0.75rem;
}

.hero-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

.hero-stat {
	padding: 1.25rem;
	border-radius: var(--radius-lg);
	background: var(--bg-raised);
	box-shadow: var(--shadow);
}

.hero-stat .value {
	display: block;
	font-size: 2rem;
	font-weight: 800;
	color: var(--text-strong);
	letter-spacing: -0.02em;
}

.hero-stat .label {
	color: var(--text-muted);
	font-weight: 500;
	font-size: 0.9rem;
}

.hero-stat.accent {
	background: var(--gradient);
}

.hero-stat.accent .value,
.hero-stat.accent .label {
	color: var(--on-brand);
}

.section {
	margin-top: 40px;
}

.section-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
	flex-wrap: wrap;
}

.section-head h2 {
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -0.01em;
}

/* Project tiles (grid view) */
.tile-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1rem;
}

.project-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--bg-raised);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	overflow: hidden;
	color: var(--text);
	transition: transform 0.15s, box-shadow 0.15s;
}

.project-tile:hover {
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 0 0 1px var(--divider), 0 10px 30px rgb(0 0 0 / 0.35);
}

.project-tile .banner {
	height: 84px;
	background: var(--gradient);
	opacity: 0.9;
}

.project-tile .body {
	padding: 0 1.1rem 1.1rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	flex: 1;
}

.project-tile .project-icon {
	position: relative;
	z-index: 1;
	width: 72px;
	height: 72px;
	margin-top: -36px;
	border: 4px solid var(--bg-raised);
	border-radius: 18px;
}

.project-tile h3 {
	font-size: 1.15rem;
}

.project-tile .description {
	flex: 1;
	font-size: 0.92rem;
}

/* Project rows (list view, like the Modrinth search) */
.project-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.project-row {
	display: grid;
	grid-template-columns: 96px 1fr auto;
	grid-template-areas: "icon info stats";
	gap: 0.6rem 1rem;
	padding: 1rem;
	background: var(--bg-raised);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	color: var(--text);
	transition: box-shadow 0.15s;
}

.project-row:hover {
	text-decoration: none;
	box-shadow: 0 0 0 1px var(--divider), var(--shadow);
}

.project-row .project-icon {
	grid-area: icon;
}

.project-row .info {
	grid-area: info;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 0;
}

.project-row .title-line {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.4rem;
}

.project-row h3 {
	font-size: 1.2rem;
}

.project-row .description,
.project-tile .description {
	margin: 0;
}

.project-row .author {
	color: var(--text-muted);
	font-size: 0.9rem;
}

.project-row .stats {
	grid-area: stats;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.3rem;
	text-align: right;
}

.project-row .stats .updated {
	margin-top: auto;
	color: var(--text-muted);
	font-size: 0.85rem;
}

@media (max-width: 640px) {
	.project-row {
		grid-template-columns: 64px 1fr;
		grid-template-areas: "icon info" "stats stats";
	}

	.project-row .project-icon {
		width: 64px;
		height: 64px;
	}

	.project-row .stats {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 0.4rem 1rem;
	}

	.project-row .stats .updated {
		margin: 0;
	}
}

/* ---------------------------------------------------------------- browse page */

.browse {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	align-items: start;
}

@media (min-width: 960px) {
	.browse {
		grid-template-columns: 280px 1fr;
	}
}

.filters h3 {
	font-size: 0.95rem;
	margin: 0 0 0.5rem;
}

.filters fieldset {
	border: 0;
	margin: 0 0 1.1rem;
	padding: 0;
}

.filters fieldset:last-child {
	margin-bottom: 0;
}

.filter-option {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.4rem 0.55rem;
	border-radius: var(--radius-sm);
	cursor: pointer;
	font-weight: 500;
	user-select: none;
}

.filter-option:hover {
	background: var(--bg-raised-2);
}

.filter-option input {
	accent-color: var(--pink);
	width: 16px;
	height: 16px;
	margin: 0;
}

.filter-option .count {
	margin-left: auto;
	color: var(--text-muted);
	font-size: 0.82rem;
}

.toolbar {
	display: flex;
	gap: 0.6rem;
	flex-wrap: wrap;
	margin-bottom: 0.75rem;
}

.search {
	position: relative;
	flex: 1 1 260px;
}

.search .icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-muted);
	pointer-events: none;
}

.search input {
	padding-left: 38px;
}

/* ---------------------------------------------------------------- form fields */

.input,
.select,
.textarea {
	width: 100%;
	min-height: 40px;
	padding: 0.5rem 0.8rem;
	border: 1px solid transparent;
	border-radius: var(--radius);
	background: var(--bg-input);
	color: var(--text-strong);
	font: 500 0.95rem/1.4 var(--font);
	box-shadow: inset 0 0 0 1px var(--divider);
	transition: box-shadow 0.12s;
}

.input:focus,
.select:focus,
.textarea:focus {
	outline: none;
	box-shadow: inset 0 0 0 2px var(--purple);
}

.input::placeholder,
.textarea::placeholder {
	color: var(--text-muted);
}

.select {
	width: auto;
	appearance: none;
	padding-right: 2.2rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%238e859c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 12px;
	cursor: pointer;
}

.select option {
	background: var(--bg-raised-2);
}

.textarea {
	min-height: 120px;
	resize: vertical;
	font-family: var(--mono);
	font-size: 0.88rem;
	line-height: 1.5;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin-bottom: 1rem;
}

.field > label,
.field-label {
	font-weight: 600;
	color: var(--text-strong);
	font-size: 0.9rem;
}

.field .hint {
	color: var(--text-muted);
	font-size: 0.82rem;
}

.field-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0 1rem;
}

/* Toggle switch: <label class="switch"><input type="checkbox"><span></span> Text</label> */
.switch {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	cursor: pointer;
	font-weight: 600;
	user-select: none;
}

.switch input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.switch .track {
	position: relative;
	width: 40px;
	height: 22px;
	border-radius: 999px;
	background: var(--button-hover);
	transition: background-color 0.15s;
	flex: none;
}

.switch .track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--text);
	transition: transform 0.15s, background-color 0.15s;
}

.switch input:checked + .track {
	background: var(--pink);
}

.switch input:checked + .track::after {
	transform: translateX(18px);
	background: var(--on-brand);
}

.switch input:focus-visible + .track {
	outline: 2px solid var(--purple);
	outline-offset: 2px;
}

/* ---------------------------------------------------------------- project page */

.project-header {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas: "icon info" "actions actions";
	gap: 1rem 1.25rem;
	align-items: center;
	margin-top: 1rem;
}

@media (min-width: 820px) {
	.project-header {
		grid-template-columns: auto 1fr auto;
		grid-template-areas: "icon info actions";
	}
}

.project-header .project-icon {
	grid-area: icon;
}

.project-header .info {
	grid-area: info;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	min-width: 0;
}

.project-header h1 {
	font-size: 1.9rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.project-header .summary {
	margin: 0;
	color: var(--text);
	font-size: 1rem;
}

.project-header .actions {
	grid-area: actions;
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.tabs {
	display: flex;
	gap: 0.3rem;
	padding: 0.35rem;
	margin: 1rem 0;
	border-radius: var(--radius-lg);
	background: var(--bg-raised);
	box-shadow: var(--shadow);
	overflow-x: auto;
}

.tab {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.5rem 0.95rem;
	border-radius: var(--radius);
	color: var(--text);
	font-weight: 600;
	white-space: nowrap;
}

.tab:hover {
	background: var(--button);
	color: var(--text-strong);
	text-decoration: none;
}

.tab[aria-current="page"] {
	background: var(--pink-soft);
	color: var(--pink);
}

.tab .count {
	padding: 0 0.45rem;
	border-radius: 999px;
	background: var(--bg-raised-2);
	font-size: 0.78rem;
	color: var(--text-muted);
}

.project-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	align-items: start;
}

@media (min-width: 1024px) {
	.project-layout {
		grid-template-columns: minmax(0, 1fr) 320px;
	}
}

.sidebar .card h3 {
	font-size: 1rem;
	margin-bottom: 0.7rem;
}

.sidebar .group + .group {
	margin-top: 0.9rem;
}

.sidebar .group-label {
	display: block;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--text-muted);
	margin-bottom: 0.4rem;
}

.link-list {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.link-list a {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.4rem 0.5rem;
	margin: 0 -0.5rem;
	border-radius: var(--radius-sm);
	color: var(--text);
	font-weight: 500;
}

.link-list a:hover {
	background: var(--bg-raised-2);
	color: var(--text-strong);
	text-decoration: none;
}

.detail-list {
	display: grid;
	gap: 0.55rem;
	margin: 0;
}

.detail-list div {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 0.92rem;
}

.detail-list .icon {
	color: var(--text-muted);
}

.creator {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	color: var(--text-strong);
	font-weight: 600;
}

.creator small {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	color: var(--text-muted);
	font-weight: 500;
}

.creator small .icon {
	width: 0.9em;
	height: 0.9em;
	color: var(--warning);
}

.creator-list {
	display: grid;
	gap: 0.75rem;
}

.creator .avatar {
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	color: var(--text-muted);
}

/* Organizations have square icons on Modrinth, people round ones */
.creator.organization .avatar {
	border-radius: var(--radius);
}

.creator:hover {
	text-decoration: none;
}

.creator:hover > span {
	text-decoration: underline;
}

.coming-soon {
	text-align: center;
	padding: 2.5rem 1.5rem;
}

.coming-soon .title {
	font-size: 1.6rem;
	font-weight: 800;
	margin-bottom: 0.5rem;
}

/* ---------------------------------------------------------------- markdown (Modrinth descriptions, admin texts, wiki) */

.markdown,
.prose {
	color: var(--text);
	overflow-wrap: break-word;
}

.markdown > :first-child,
.prose > :first-child,
.prose > div > :first-child {
	margin-top: 0;
}

.markdown > :last-child,
.prose > :last-child,
.prose > div > :last-child {
	margin-bottom: 0;
}

.markdown h1,
.markdown h2,
.markdown h3,
.markdown h4,
.markdown h5,
.markdown h6,
.prose h2,
.prose h3 {
	margin: 1.6rem 0 0.7rem;
	font-weight: 700;
}

.markdown h1 {
	font-size: 1.7rem;
}

.markdown h2,
.prose h2 {
	font-size: 1.4rem;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid var(--divider);
}

.markdown h3,
.prose h3 {
	font-size: 1.15rem;
}

.markdown p,
.markdown ul,
.markdown ol,
.markdown blockquote,
.markdown pre,
.markdown table,
.prose p,
.prose ul,
.prose ol,
.prose pre {
	margin: 0 0 1rem;
}

.markdown ul,
.markdown ol,
.prose ul,
.prose ol {
	padding-left: 1.5rem;
}

.markdown li + li,
.prose li + li {
	margin-top: 0.25rem;
}

.markdown img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius);
}

.markdown a img {
	border-radius: var(--radius);
}

.markdown :not(pre) > code,
.prose :not(pre) > code {
	padding: 0.15em 0.4em;
	border-radius: 6px;
	background: var(--bg-raised-2);
	color: var(--pink);
}

.markdown pre,
.prose pre,
pre {
	padding: 1rem 1.1rem;
	border-radius: var(--radius);
	background: #0a090c;
	border: 1px solid var(--divider);
	overflow-x: auto;
	line-height: 1.5;
	color: var(--text-strong);
}

.markdown blockquote {
	margin-left: 0;
	padding: 0.25rem 1rem;
	border-left: 4px solid var(--purple);
	background: var(--purple-soft);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.markdown hr {
	border: 0;
	border-top: 1px solid var(--divider);
	margin: 1.5rem 0;
}

.markdown table,
table.doc {
	border-collapse: collapse;
	width: 100%;
	font-size: 0.92rem;
}

.markdown th,
.markdown td,
table.doc th,
table.doc td {
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--divider);
	text-align: left;
	vertical-align: top;
}

.markdown th,
table.doc th {
	background: var(--bg-raised-2);
	color: var(--text-strong);
}

.markdown details {
	margin: 0 0 1rem;
	padding: 0.6rem 0.9rem;
	border-radius: var(--radius);
	background: var(--bg-raised-2);
}

.markdown summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--text-strong);
}

.markdown [align="center"] {
	text-align: center;
}

.table-scroll {
	overflow-x: auto;
	margin: 0 0 1rem;
}

.note {
	padding: 0.9rem 1.1rem;
	margin: 0 0 1rem;
	border-radius: var(--radius);
	background: var(--purple-soft);
	border-left: 4px solid var(--purple);
}

.toc {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 1.5rem;
}

/* ---------------------------------------------------------------- gallery */

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1rem;
}

.gallery-item {
	display: flex;
	flex-direction: column;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: var(--radius-lg);
	background: var(--bg-raised);
	box-shadow: var(--shadow);
	color: var(--text);
	text-align: left;
	font: inherit;
	cursor: zoom-in;
}

.gallery-item img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: var(--bg-raised-2);
	display: block;
}

.gallery-item .caption {
	padding: 0.75rem 1rem;
}

.gallery-item .caption strong {
	display: block;
	color: var(--text-strong);
}

.gallery-item .caption span {
	font-size: 0.88rem;
	color: var(--text-muted);
}

.gallery-item.featured {
	box-shadow: 0 0 0 2px var(--pink), var(--shadow);
}

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 56px 16px 16px;
	background: rgb(6 5 8 / 0.92);
	backdrop-filter: blur(6px);
}

.lightbox img {
	max-width: min(1400px, 100%);
	max-height: calc(100vh - 160px);
	border-radius: var(--radius);
	object-fit: contain;
}

.lightbox img.pixelated {
	image-rendering: pixelated;
}

.lightbox .caption {
	text-align: center;
	max-width: 70ch;
}

.lightbox .caption strong {
	color: var(--text-strong);
}

.lightbox .controls {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	gap: 0.4rem;
}

.lightbox .nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.lightbox .nav.prev {
	left: 12px;
}

.lightbox .nav.next {
	right: 12px;
}

/* ---------------------------------------------------------------- versions */

.version-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
	align-items: center;
}

.versions {
	display: flex;
	flex-direction: column;
}

.version-row {
	display: grid;
	grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto;
	gap: 0.5rem 1rem;
	align-items: center;
	padding: 0.85rem 0.5rem;
	border-top: 1px solid var(--divider);
}

.version-row:first-child {
	border-top: 0;
}

.version-row.head {
	color: var(--text-muted);
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding-top: 0;
}

.version-row .name {
	color: var(--text-strong);
	font-weight: 700;
}

.version-row .sub {
	color: var(--text-muted);
	font-size: 0.85rem;
}

.version-type {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-weight: 800;
	font-size: 0.85rem;
}

.version-type.release {
	background: rgb(130 224 176 / 0.14);
	color: var(--success);
}

.version-type.beta {
	background: rgb(255 210 122 / 0.14);
	color: var(--warning);
}

.version-type.alpha {
	background: var(--danger-soft);
	color: var(--danger);
}

.version-row details {
	grid-column: 2 / -1;
}

.version-row summary {
	cursor: pointer;
	color: var(--text-muted);
	font-size: 0.85rem;
}

.version-row .changelog {
	margin-top: 0.6rem;
	padding: 0.8rem 1rem;
	border-radius: var(--radius);
	background: var(--bg-raised-2);
	font-size: 0.9rem;
}

@media (max-width: 720px) {
	.version-row {
		grid-template-columns: auto minmax(0, 1fr) auto;
	}

	.version-row .col-mc,
	.version-row .col-date {
		grid-column: 2 / 3;
	}

	.version-row.head {
		display: none;
	}
}

/* ---------------------------------------------------------------- modal */

.modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 90;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 10vh 16px 16px;
	background: rgb(6 5 8 / 0.7);
	backdrop-filter: blur(4px);
	overflow-y: auto;
}

.modal {
	width: 100%;
	max-width: 520px;
	background: var(--bg-raised);
	border-radius: var(--radius-lg);
	box-shadow: 0 20px 60px rgb(0 0 0 / 0.5);
	border: 1px solid var(--divider);
}

.modal-head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--divider);
}

.modal-head h2 {
	font-size: 1.15rem;
	flex: 1;
}

.modal-body {
	padding: 1.25rem;
}

.modal-body .select {
	width: 100%;
}

.download-result {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.9rem 1rem;
	margin-top: 1rem;
	border-radius: var(--radius);
	background: var(--bg-raised-2);
}

.download-result .file {
	flex: 1;
	min-width: 0;
}

.download-result .file strong {
	display: block;
	color: var(--text-strong);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---------------------------------------------------------------- settings pages (account, project settings, admin) */

.settings-header {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 24px 0 20px;
}

.settings-header .project-icon,
.settings-header .avatar {
	width: 56px;
	height: 56px;
	border-radius: var(--radius);
}

.settings-header .avatar {
	border-radius: 50%;
}

.settings-header .text {
	min-width: 0;
}

.settings-header h1 {
	font-size: 1.6rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	overflow-wrap: anywhere;
}

.settings-header p {
	margin: 0.15rem 0 0;
	color: var(--text-muted);
	font-weight: 500;
}

.settings-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	align-items: start;
}

@media (min-width: 960px) {
	.settings-layout {
		grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr);
		gap: 1.5rem;
	}

	.settings-nav {
		position: sticky;
		top: 16px;
	}
}

.settings-nav {
	padding: 0.75rem 1rem;
}

.settings-nav .nav-heading {
	margin: 0.9rem 0 0.25rem;
	color: var(--text-muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.settings-nav .nav-heading:first-child {
	margin-top: 0.25rem;
}

.settings-nav .link-list a {
	padding: 0.55rem 0.65rem;
	margin: 0 -0.5rem;
	font-weight: 600;
}

.settings-nav .link-list a[aria-current="page"] {
	background: var(--pink-soft);
	color: var(--pink);
}

.settings-nav .link-list .trailing {
	margin-left: auto;
	width: 0.85em;
	height: 0.85em;
	color: var(--text-muted);
}

.settings-nav .nav-field {
	margin: 1rem 0 0.25rem;
	padding-top: 1rem;
	border-top: 1px solid var(--divider);
}

.settings-content {
	min-width: 0;
}

.settings-card > h2 {
	margin-bottom: 0.25rem;
}

.settings-card > .description {
	margin: 0 0 1.1rem;
	font-size: 0.92rem;
}

.settings-card > .field:last-child,
.settings-card > :last-child {
	margin-bottom: 0;
}

.small-note {
	margin: 0;
	font-size: 0.88rem;
}

/* Toggle with title and explanation */
.toggle-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--divider);
	cursor: pointer;
}

.toggle-row:first-of-type {
	padding-top: 0;
}

.toggle-row + .field {
	margin-top: 1rem;
}

.toggle-row .text {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.toggle-row strong {
	color: var(--text-strong);
}

.toggle-row .muted {
	font-size: 0.88rem;
}

/* Markdown editor with write / preview tabs */
.markdown-editor {
	display: grid;
	gap: 0.5rem;
}

.markdown-editor .lang-tabs {
	justify-self: start;
}

.markdown-editor .textarea {
	min-height: 220px;
}

.markdown-editor .preview {
	margin-top: 0;
	min-height: 220px;
}

/* Link editor */
.link-rows {
	display: grid;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.link-row {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) minmax(0, 2fr) auto;
	align-items: center;
	gap: 0.5rem;
}

.link-row > .icon {
	color: var(--text-muted);
}

@media (max-width: 640px) {
	.link-row {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.link-row > .icon {
		display: none;
	}

	.link-row .input:nth-of-type(2) {
		grid-column: 1;
	}

	.link-row .btn {
		grid-row: 1 / span 2;
		grid-column: 2;
	}
}

.btn.danger-ghost {
	background: transparent;
	color: var(--text-muted);
}

.btn.danger-ghost:hover {
	background: var(--danger-soft);
	color: var(--danger);
}

/* Project list in the admin area */
.admin-rows {
	display: grid;
}

.admin-row {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.75rem 0;
	border-top: 1px solid var(--divider);
}

.admin-row:first-child {
	border-top: 0;
	padding-top: 0;
}

.admin-row .title {
	flex: 1;
	min-width: 0;
	color: var(--text-strong);
	font-weight: 700;
}

.admin-row .title small {
	display: block;
	color: var(--text-muted);
	font-weight: 500;
}

.admin-row .actions {
	display: flex;
	gap: 0.4rem;
}

@media (max-width: 640px) {
	.admin-row {
		flex-wrap: wrap;
	}

	.admin-row .chips {
		order: 3;
		width: 100%;
	}
}

/* Account page */
.radio-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 0.6rem;
}

.radio-card {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.85rem 1rem;
	border-radius: var(--radius);
	background: var(--bg-input);
	border: 2px solid transparent;
	color: var(--text-strong);
	font-weight: 600;
	cursor: pointer;
}

.radio-card:has(input:checked) {
	border-color: var(--pink);
	background: var(--pink-soft);
}

.radio-card input {
	accent-color: var(--pink);
	margin: 0;
}

.profile-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

.profile-row .text {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.profile-row strong {
	color: var(--text-strong);
	font-size: 1.25rem;
}

.avatar.medium,
.avatar.large {
	display: grid;
	place-items: center;
	color: var(--text-muted);
}

.avatar.large {
	width: 80px;
	height: 80px;
}

.info-list {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.4rem 1rem;
	margin: 0 0 1rem;
	font-size: 0.92rem;
}

.info-list dt {
	color: var(--text-muted);
	font-weight: 600;
}

.info-list dd {
	margin: 0;
}

.settings-card form {
	margin-top: 1rem;
}

.lang-tabs {
	display: inline-flex;
	gap: 0.2rem;
	padding: 0.2rem;
	border-radius: 10px;
	background: var(--bg-input);
}

.lang-tabs button {
	padding: 0.25rem 0.7rem;
	border: 0;
	border-radius: 8px;
	background: none;
	color: var(--text-muted);
	font: 600 0.82rem var(--font);
	cursor: pointer;
}

.lang-tabs button[aria-pressed="true"] {
	background: var(--button-hover);
	color: var(--text-strong);
}

.save-bar {
	position: sticky;
	bottom: 16px;
	z-index: 10;
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 1rem;
	padding: 0.8rem 1rem;
	border-radius: var(--radius-lg);
	background: var(--bg-raised-2);
	border: 1px solid var(--divider);
	box-shadow: 0 10px 40px rgb(0 0 0 / 0.5);
}

.save-bar .status {
	flex: 1;
	color: var(--text-muted);
	font-weight: 500;
}

.save-bar .status.dirty {
	color: var(--warning);
}

.save-bar .status.error {
	color: var(--danger);
}

.save-bar .status.ok {
	color: var(--success);
}

.preview {
	margin-top: 0.5rem;
	padding: 1rem;
	border-radius: var(--radius);
	border: 1px dashed var(--divider);
}

/* ---------------------------------------------------------------- misc */

.page-title {
	padding: 24px 0 8px;
}

.page-title h1 {
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.page-title p {
	margin: 0.35rem 0 0;
	color: var(--text-muted);
}

.loading {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1.5rem 0;
	color: var(--text-muted);
}

.spinner {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 3px solid var(--button-hover);
	border-top-color: var(--pink);
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.empty {
	padding: 2rem 1rem;
	text-align: center;
	color: var(--text-muted);
}

.error-box {
	padding: 0.9rem 1.1rem;
	border-radius: var(--radius);
	background: var(--danger-soft);
	color: var(--danger);
	font-weight: 500;
}

.toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 200;
	transform: translateX(-50%);
	padding: 0.75rem 1.1rem;
	border-radius: var(--radius);
	background: var(--bg-raised-2);
	border: 1px solid var(--divider);
	box-shadow: var(--shadow);
	color: var(--text-strong);
	font-weight: 600;
}

.toast.error {
	color: var(--danger);
}

/* ---------------------------------------------------------------- footer */

.site-footer {
	margin-top: auto;
	padding: 32px 0 40px;
	border-top: 1px solid var(--divider);
	background: rgb(0 0 0 / 0.2);
	color: var(--text-muted);
	font-size: 0.88rem;
}

.site-footer .container {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
}

@media (min-width: 760px) {
	.site-footer .container {
		grid-template-columns: 1.4fr repeat(2, 1fr);
	}
}

.site-footer h4 {
	font-size: 0.9rem;
	margin-bottom: 0.6rem;
}

.site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.35rem;
}

.site-footer a {
	color: var(--text);
}

.site-footer .legal {
	font-size: 0.78rem;
	line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

/* ---------------------------------------------------------------- static documents (wiki, privacy) */

.doc-card {
	margin-top: 1.25rem;
	padding: 1.5rem;
}

.doc-card > h2,
.doc-card h2 {
	margin: 2rem 0 0.8rem;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid var(--divider);
	font-size: 1.4rem;
	scroll-margin-top: 16px;
}

.doc-card > h3,
.doc-card h3 {
	margin: 1.4rem 0 0.6rem;
	font-size: 1.1rem;
}

.doc-card > .toc + h2,
.doc-card .prose > h2:first-child,
.doc-card > h2:first-child {
	margin-top: 0;
}


/* ---------------------------------------------------------------- editing on Modrinth (project settings) */

.connection-box {
	display: grid;
	gap: 0.45rem;
	margin-top: 1rem;
	padding: 0.85rem;
	border-radius: var(--radius);
	background: var(--bg-raised-2);
	font-size: 0.88rem;
}

.connection-box .line {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	color: var(--text-strong);
}

.connection-box.connected .line .icon {
	color: var(--success);
}

.connection-box .btn {
	justify-self: start;
}

.settings-content .connection-box {
	margin-top: 0;
	background: var(--bg-input);
}

.textarea.tall {
	min-height: 420px;
}

.icon-editor {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.icon-editor .project-icon {
	width: 96px;
	height: 96px;
}

/* Checkbox chips for loaders and Minecraft versions */
.check-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.check-grid.scroll {
	max-height: 220px;
	overflow-y: auto;
	padding: 0.6rem;
	border-radius: var(--radius);
	background: var(--bg-input);
}

.check-chip {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: var(--button);
	color: var(--text);
	font-size: 0.86rem;
	font-weight: 600;
	cursor: pointer;
	user-select: none;
}

.check-chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.check-chip:has(input:checked) {
	background: var(--pink-soft);
	color: var(--pink);
	box-shadow: inset 0 0 0 1px var(--pink);
}

.check-chip:has(input:focus-visible) {
	outline: 2px solid var(--purple);
	outline-offset: 2px;
}

.check-chip.snapshot {
	font-weight: 500;
	font-style: italic;
}

.version-picker {
	display: grid;
	gap: 0.5rem;
}

.picker-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
}

.picker-tools .input {
	max-width: 220px;
}

.inline-check {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.9rem;
	cursor: pointer;
}

.inline-check input {
	accent-color: var(--pink);
}

/* Upload */
.upload-card {
	box-shadow: 0 0 0 1px var(--pink-soft), var(--shadow);
}

.drop-zone {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	width: 100%;
	padding: 1.4rem 1rem;
	border: 2px dashed var(--divider);
	border-radius: var(--radius);
	background: var(--bg-input);
	color: var(--text-muted);
	font: 600 0.95rem var(--font);
	cursor: pointer;
	transition: border-color 0.12s, color 0.12s;
}

.drop-zone:hover,
.drop-zone.over {
	border-color: var(--pink);
	color: var(--pink);
}

.file-list {
	display: grid;
	gap: 0.35rem;
}

.file-list:empty {
	display: none;
}

.file-row {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.45rem 0.6rem;
	border-radius: var(--radius-sm);
	background: var(--bg-raised-2);
	font-size: 0.9rem;
}

.file-row .name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--text-strong);
	font-weight: 600;
}

.progress {
	height: 8px;
	margin: 0.5rem 0 1rem;
	border-radius: 999px;
	background: var(--bg-input);
	overflow: hidden;
}

.progress > span {
	display: block;
	width: 0;
	height: 100%;
	background: var(--gradient);
	transition: width 0.2s;
}

.form-buttons {
	justify-content: flex-end;
	margin-top: 1rem;
}

/* Version list */
.mr-versions {
	display: grid;
	margin-top: 1rem;
}

.mr-version {
	border-top: 1px solid var(--divider);
}

.mr-version:first-child {
	border-top: 0;
}

.mr-version > .line {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.75rem 0;
}

.mr-version .info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.mr-version .info strong {
	color: var(--text-strong);
	overflow-wrap: anywhere;
}

.mr-version .info .muted {
	font-size: 0.86rem;
}

.mr-version .meta {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.86rem;
	white-space: nowrap;
}

.mr-version .actions {
	display: flex;
	gap: 0.35rem;
}

.mr-version .actions .btn[aria-pressed="true"] {
	background: var(--pink-soft);
	color: var(--pink);
}

.version-edit {
	margin: 0 0 1rem;
	padding: 1rem;
	border-radius: var(--radius);
	background: var(--bg-raised-2);
}

@media (max-width: 760px) {
	.mr-version > .line {
		flex-wrap: wrap;
	}

	.mr-version .meta {
		order: 3;
		width: 100%;
		flex-wrap: wrap;
	}
}

/* Activity log (admin area) */
.log-list {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.log-list li {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.65rem 0;
	border-top: 1px solid var(--divider);
}

.log-list li:first-child {
	border-top: 0;
}

.log-list .text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.log-list .text strong {
	color: var(--text-strong);
}

.log-list .text .muted,
.log-list .when {
	font-size: 0.86rem;
	overflow-wrap: anywhere;
}

.log-icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--button);
	color: var(--text-muted);
	flex: none;
}

.log-icon.upload,
.log-icon.connect {
	background: rgb(130 224 176 / 0.12);
	color: var(--success);
}

.log-icon.delete {
	background: var(--danger-soft);
	color: var(--danger);
}

/* Confirm dialog */
.confirm-text {
	margin: 0 0 1rem;
}

.confirm-buttons {
	justify-content: flex-end;
	margin-top: 1.25rem;
}

.modal .info-list dd {
	overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------- wiki overview and maven picker */

.wiki-list {
	display: grid;
	gap: 1rem;
	margin-top: 1rem;
}

.wiki-card {
	display: flex;
	align-items: center;
	gap: 1.1rem;
	color: var(--text);
	transition: box-shadow 0.15s, transform 0.15s;
}

.wiki-card + .wiki-card {
	margin-top: 0;
}

.wiki-card:hover {
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 0 0 1px var(--divider), 0 10px 30px rgb(0 0 0 / 0.35);
}

.wiki-card .project-icon {
	width: 72px;
	height: 72px;
	border-radius: var(--radius);
}

.wiki-card .text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.wiki-card strong {
	color: var(--text-strong);
	font-size: 1.2rem;
}

.wiki-card .arrow {
	color: var(--text-muted);
	flex: none;
}

.maven-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin: 0.75rem 0 0.5rem;
}

.maven-tools label {
	color: var(--text-strong);
	font-weight: 600;
	font-size: 0.9rem;
}

.maven-tools .select {
	width: auto;
	min-width: 140px;
}

.maven-tools .muted {
	flex: 1;
	font-size: 0.88rem;
}
