.repo-listing-shell {
	--repo-accent: var(--syscolor2, #15738f);
	--repo-accent-soft: color-mix(in srgb, var(--repo-accent) 11%, Canvas);
	--repo-border: color-mix(in srgb, CanvasText 15%, transparent);
	--repo-border-strong: color-mix(in srgb, CanvasText 24%, transparent);
	--repo-muted: color-mix(in srgb, CanvasText 62%, transparent);
	--repo-surface: Canvas;
	--repo-surface-soft: color-mix(in srgb, Canvas 96%, CanvasText 4%);
	--repo-success: #287a51;
	--repo-warning: #946200;
	--repo-danger: #a32b35;
	box-sizing: border-box;
	width: 100%;
}

.repo-listing-shell *,
.repo-listing-shell *::before,
.repo-listing-shell *::after {
	box-sizing: border-box;
}

/* Keep the original Listing UI, but hide only its result table block. */
.repo-listing-shell > [class^="xlst_"],
.repo-listing-shell > [class*=" xlst_"] {
	display: none !important;
}

/* Light visual cleanup for the original Listing form and toolbar. */
.repo-listing-shell > form.full_flex,
.repo-listing-shell > form[class*="full_flex"] {
	width: 100%;
	margin: 0 0 1.1rem;
	padding: .85rem 1rem;
	border: 1px solid var(--repo-border);
	border-radius: .8rem;
	background: var(--repo-surface-soft);
	box-shadow: 0 .15rem .7rem rgba(0, 0, 0, .035);
}

.repo-listing-shell .hu_form1_sdiv,
.repo-listing-shell .hu_form1_tdiv {
	margin-top: .55rem;
}

.repo-listing-shell input[type="submit"],
.repo-listing-shell input[type="button"],
.repo-listing-shell button {
	border-radius: .45rem;
}

.repo-view-switch {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	padding: 0.25rem;
	border: 1px solid #d9e0e7;
	border-radius: 0.65rem;
	background: #f5f7f9;
}

.repo-view-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;

	min-height: 2.25rem;
	padding: 0.45rem 0.75rem;

	border: 0;
	border-radius: 0.45rem;

	color: #64748b;
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 650;

	background: transparent;
	box-shadow: none;
	cursor: pointer;

	transition:
		color 140ms ease,
		background 140ms ease,
		box-shadow 140ms ease;
}

.repo-view-button:hover {
	color: #26364a;
	background: rgb(255 255 255 / 75%);
}

.repo-view-button.is-active {
	color: #172033;
	background: #fff;
	box-shadow:
		0 1px 2px rgb(15 23 42 / 8%),
		0 2px 7px rgb(15 23 42 / 7%);
}

.repo-view-button i {
	font-size: 0.8rem;
}

.repo-archive-view[hidden] {
	display: none !important;
}

.repo-archive-table-view {
	width: 100%;
}

.repo-table-scroll {
	width: 100%;
	overflow-x: auto;
	border: 1px solid #e1e6eb;
	border-radius: 0.85rem;
	background: #fff;
	box-shadow:
		0 1px 2px rgb(15 23 42 / 4%),
		0 6px 20px rgb(15 23 42 / 4%);
}

.repo-archive-table {
	width: 100%;
	min-width: 1120px;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: auto;
	background: #fff;
}

.repo-archive-table th,
.repo-archive-table td {
	box-sizing: border-box;
	padding: 0.85rem 0.8rem;
	border: 0;
	border-bottom: 1px solid #edf0f3;
	text-align: left;
	vertical-align: middle;
}

.repo-archive-table thead th {
	position: sticky;
	z-index: 2;
	top: 0;

	padding-top: 0.7rem;
	padding-bottom: 0.7rem;

	color: #738095;
	font-size: 0.7rem;
	font-weight: 750;
	letter-spacing: 0.055em;
	text-transform: uppercase;
	white-space: nowrap;

	background: #f8fafb;
	box-shadow: inset 0 -1px 0 #e4e9ee;
}

.repo-archive-table tbody tr:last-child td {
	border-bottom: 0;
}

.repo-archive-table-row {
	outline: none;
	cursor: pointer;
	transition:
		background 130ms ease,
		box-shadow 130ms ease;
}

.repo-archive-table-row:hover {
	background: #f8fbfd;
}

.repo-archive-table-row:focus-visible {
	position: relative;
	z-index: 1;
	background: #f5faff;
	box-shadow:
		inset 3px 0 0 var(--syscolor2, #39adf7),
		inset 0 0 0 2px rgb(57 173 247 / 22%);
}

.repo-table-archive {
	width: 29%;
	min-width: 300px;
}

.repo-table-archive-main {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.repo-table-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;

	width: 2.4rem;
	height: 2.4rem;
	border-radius: 0.65rem;

	color: var(--syscolor5, #15738f);
	background: rgb(21 115 143 / 9%);
}

.repo-table-title {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.repo-table-title-line {
	display: flex;
	align-items: baseline;
	gap: 0.45rem;
	min-width: 0;
}

.repo-table-title-line strong {
	overflow: hidden;
	color: #1e293b;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.repo-table-id {
	flex: 0 0 auto;
	color: #94a3b8;
	font-size: 0.72rem;
	font-weight: 650;
}

.repo-table-description {
	display: block;
	overflow: hidden;
	max-width: 360px;
	color: #7b8798;
	font-size: 0.77rem;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.repo-table-description.is-empty,
.repo-table-empty {
	color: #a8b1bd;
	font-style: italic;
}

.repo-table-badges {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.3rem;
	min-width: 150px;
}

.repo-table-badges .repo-badge {
	padding: 0.25rem 0.45rem;
	font-size: 0.65rem;
}

.repo-table-state {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 1.55rem;
	height: 1.55rem;
	border-radius: 50%;

	color: #4b6476;
	font-size: 0.7rem;
	background: #edf2f5;
}

.repo-table-value,
.repo-table-version,
.repo-table-date,
.repo-table-number {
	color: #4d5c6d;
	font-size: 0.8rem;
	white-space: nowrap;
}

.repo-table-version {
	display: inline-flex;
	padding: 0.3rem 0.48rem;
	border-radius: 0.4rem;
	color: #475569;
	font-family: monospace;
	font-size: 0.75rem;
	background: #f1f4f6;
}

.repo-table-tags {
	min-width: 150px;
}

.repo-table-tag-list {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	max-width: 220px;
}

.repo-table-tag-list span {
	display: inline-block;
	overflow: hidden;
	max-width: 95px;
	padding: 0.27rem 0.45rem;
	border-radius: 999px;

	color: #536678;
	font-size: 0.68rem;
	font-weight: 600;
	line-height: 1;

	text-overflow: ellipsis;
	white-space: nowrap;
	background: #eef2f5;
}

.repo-table-tag-list .repo-table-tag-more {
	flex: 0 0 auto;
	color: #6e7c8c;
	background: #e8edf1;
}

.repo-table-number {
	text-align: right !important;
	font-variant-numeric: tabular-nums;
}

.repo-table-activity {
	white-space: nowrap;
}

.repo-table-activity span {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	margin-right: 0.55rem;
	color: #687789;
	font-size: 0.73rem;
	font-variant-numeric: tabular-nums;
}

.repo-table-activity span:last-child {
	margin-right: 0;
}

.repo-table-activity i {
	color: #98a4b2;
	font-size: 0.68rem;
}

.repo-table-open {
	width: 2.8rem;
	text-align: center !important;
}

.repo-table-open i {
	color: #a2acb8;
	font-size: 0.75rem;
	transition:
		color 130ms ease,
		transform 130ms ease;
}

.repo-archive-table-row:hover .repo-table-open i {
	color: var(--syscolor5, #15738f);
	transform: translateX(2px);
}

.repo-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	border: 0 !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
}

.repo-archive-browser {
	width: 100%;
}

.repo-archive-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 0 .9rem;
	padding: 0 .1rem;
}

.repo-archive-summary-count {
	display: grid;
	gap: .15rem;
}

.repo-archive-summary-count strong {
	font-size: 1rem;
	font-weight: 650;
}

.repo-archive-summary-count span,
.repo-card-view {
	color: var(--repo-muted);
	font-size: .78rem;
}

.repo-card-view {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .38rem .58rem;
	border: 1px solid var(--repo-border);
	border-radius: 999px;
	background: var(--repo-surface);
	white-space: nowrap;
}

.repo-archive-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
	gap: .9rem;
}

.repo-archive-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 18.5rem;
	padding: 1rem;
	overflow: hidden;
	border: 1px solid var(--repo-border);
	border-radius: .9rem;
	background: var(--repo-surface);
	box-shadow: 0 .2rem .8rem rgba(0, 0, 0, .045);
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.repo-archive-card::before {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: .22rem;
	background: var(--repo-accent);
	content: '';
	opacity: .78;
}

.repo-archive-card:hover,
.repo-archive-card:focus-visible {
	border-color: color-mix(in srgb, var(--repo-accent) 62%, var(--repo-border));
	box-shadow: 0 .55rem 1.35rem rgba(0, 0, 0, .10);
	transform: translateY(-2px);
	outline: none;
}

.repo-card-top {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: .75rem;
	align-items: center;
}

.repo-file-icon {
	display: grid;
	place-items: center;
	width: 2.7rem;
	height: 2.7rem;
	border-radius: .7rem;
	background: var(--repo-accent-soft);
	color: var(--repo-accent);
	font-size: 1.15rem;
}

.repo-card-title {
	min-width: 0;
}

.repo-card-title h3 {
	overflow: hidden;
	margin: .12rem 0 0;
	font-size: 1.04rem;
	font-weight: 650;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.repo-card-id {
	color: var(--repo-muted);
	font-size: .7rem;
	letter-spacing: .04em;
}

.repo-card-chevron {
	color: var(--repo-muted);
	font-size: .8rem;
	transition: transform .15s ease;
}

.repo-archive-card:hover .repo-card-chevron,
.repo-archive-card:focus-visible .repo-card-chevron {
	color: var(--repo-accent);
	transform: translateX(2px);
}

.repo-badges,
.repo-tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
}

.repo-badges {
	margin-top: .8rem;
}

.repo-badge,
.repo-tag-list span {
	display: inline-flex;
	align-items: center;
	gap: .28rem;
	max-width: 100%;
	padding: .2rem .48rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: .7rem;
	line-height: 1.25;
}

.repo-badge {
	color: var(--repo-muted);
	background: var(--repo-surface-soft);
	border-color: var(--repo-border);
	text-transform: capitalize;
}

.repo-badge.status-published,
.repo-badge.tested,
.repo-badge.signed {
	color: var(--repo-success);
	background: color-mix(in srgb, var(--repo-success) 10%, Canvas);
	border-color: color-mix(in srgb, var(--repo-success) 20%, transparent);
}

.repo-badge.status-blocked,
.repo-badge.status-deleted {
	color: var(--repo-danger);
	background: color-mix(in srgb, var(--repo-danger) 10%, Canvas);
	border-color: color-mix(in srgb, var(--repo-danger) 20%, transparent);
}

.repo-badge.status-deprecated,
.repo-badge.visibility-unlisted {
	color: var(--repo-warning);
	background: color-mix(in srgb, var(--repo-warning) 10%, Canvas);
	border-color: color-mix(in srgb, var(--repo-warning) 20%, transparent);
}

.repo-card-description {
	display: -webkit-box;
	min-height: 3.9rem;
	margin: .8rem 0;
	overflow: hidden;
	color: var(--repo-muted);
	font-size: .84rem;
	line-height: 1.48;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.repo-card-meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .62rem .9rem;
	margin: 0;
	padding: .75rem;
	border: 1px solid var(--repo-border);
	border-radius: .65rem;
	background: var(--repo-surface-soft);
}

.repo-card-meta div {
	min-width: 0;
}

.repo-card-meta dt {
	margin: 0 0 .12rem;
	color: var(--repo-muted);
	font-size: .63rem;
	font-weight: 600;
	letter-spacing: .045em;
	text-transform: uppercase;
}

.repo-card-meta dd {
	overflow: hidden;
	margin: 0;
	font-size: .79rem;
	font-weight: 500;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.repo-tag-list {
	margin-top: .75rem;
}

.repo-tag-list span {
	overflow: hidden;
	max-width: 11rem;
	color: var(--repo-muted);
	background: var(--repo-surface-soft);
	border-color: var(--repo-border);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.repo-card-footer {
	display: flex;
	align-items: center;
	gap: .85rem;
	margin-top: auto;
	padding-top: .85rem;
	color: var(--repo-muted);
	font-size: .75rem;
}

.repo-card-footer span {
	display: inline-flex;
	align-items: center;
	gap: .32rem;
}

.repo-card-footer i {
	color: var(--repo-accent);
}

.repo-empty {
	display: grid;
	justify-items: center;
	gap: .45rem;
	padding: 3.6rem 1rem;
	border: 1px dashed var(--repo-border-strong);
	border-radius: .9rem;
	background: var(--repo-surface-soft);
	color: var(--repo-muted);
	text-align: center;
}

.repo-empty-icon {
	display: grid;
	place-items: center;
	width: 3.2rem;
	height: 3.2rem;
	margin-bottom: .25rem;
	border-radius: 50%;
	background: var(--repo-accent-soft);
	color: var(--repo-accent);
	font-size: 1.3rem;
}

.repo-empty strong {
	color: CanvasText;
	font-size: 1rem;
}

.repo-pagination {
	margin-top: 1rem;
	padding-top: .8rem;
	border-top: 1px solid var(--repo-border);
}

/* Popup additions remain unchanged functionally. */
.repo-popup-extras {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--repo-border);
}

.repo-popup-section h3 {
	margin: 0 0 .75rem;
}

.repo-screenshot-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
	gap: .65rem;
	margin-bottom: .85rem;
}

.repo-screenshot-item {
	overflow: hidden;
	margin: 0;
	border: 1px solid var(--repo-border);
	border-radius: .65rem;
	background: var(--repo-surface-soft);
}

.repo-screenshot-item img,
.repo-screenshot-placeholder {
	display: block;
	width: 100%;
	height: 6rem;
	object-fit: cover;
}

.repo-screenshot-placeholder {
	display: grid;
	place-items: center;
	color: var(--repo-muted);
	font-size: 1.5rem;
}

.repo-screenshot-item figcaption {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .4rem;
	padding: .4rem .5rem;
	font-size: .75rem;
}

.repo-screenshot-item figcaption span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.repo-screenshot-item button {
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.repo-upload-label,
.repo-upload-title {
	display: grid;
	gap: .3rem;
	margin-top: .6rem;
	font-size: .8rem;
}

.repo-popup-extras input {
	box-sizing: border-box;
	width: 100%;
	min-height: 2.45rem;
	padding: .5rem .65rem;
	border: 1px solid var(--repo-border);
	border-radius: .45rem;
	background: Canvas;
	color: CanvasText;
	font: inherit;
}

.repo-popup-message {
	min-height: 1.2rem;
	margin-top: .65rem;
	color: var(--repo-success);
	font-size: .82rem;
}

.repo-popup-message.is-error {
	color: var(--repo-danger);
}

@media (max-width: 700px) {
	.repo-archive-summary {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.9rem;
	}

	.repo-card-view {
		display: none;
	}

	.repo-view-switch {
		align-self: stretch;
	}

	.repo-view-button {
		flex: 1 1 50%;
	}

	.repo-table-scroll {
		border-radius: 0.65rem;
	}

	.repo-archive-table {
		min-width: 980px;
	}

	.repo-archive-grid {
		grid-template-columns: 1fr;
	}

	.repo-card-meta {
		grid-template-columns: 1fr;
	}

	.repo-carousel-stage {
		height: 280px;
	}

	.repo-carousel-thumbnails {
		padding-bottom: 2.3rem;
	}

	.repo-editor-card {
		width: calc(100% - 1rem);
		max-width: none;
		margin-top: -1.25rem;
		margin-bottom: 1rem;
		border-radius: 0.75rem;
	}

	.repo-editor-card-header,
	.repo-editor-card-body {
		padding-right: 1rem;
		padding-left: 1rem;
	}

	.repo-screenshot-upload-fields {
		grid-template-columns: 1fr;
	}

	.repo-carousel-button {
		width: 2.5rem;
		height: 2.5rem;
	}

	.repo-carousel-previous {
		left: 0.5rem;
	}

	.repo-carousel-next {
		right: 0.5rem;
	}

	.repo-editor-card-header {
		flex-wrap: wrap;
	}

	.repo-editor-header-actions {
		width: 100%;
		justify-content: stretch;
	}

	.repo-archive-download {
		width: 100%;
	}
}

/*
 * Make the popup content scrollable.
 */
.ws-content {
	max-height: 90vh;
	overflow-y: auto !important;
	overflow-x: hidden !important;
	background: transparent !important;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

/*
 * Popup editor shell.
 */
.repo-editor-form {
	background: transparent !important;
}

.repo-editor-layout {
	position: relative;
	min-height: 100%;
	padding-bottom: 3rem;
	background: transparent !important;
}

/*
 * Carousel header.
 */
.repo-editor-carousel {
	position: relative;
	width: 100%;
	background: #151b23;
}

.repo-carousel-stage {
	position: relative;
	height: clamp(280px, 42vh, 520px);
	overflow: hidden;
	background:
		radial-gradient(
			circle at 50% 40%,
			#334155,
			#111827 75%
		);
}

.repo-carousel-slides {
	position: absolute;
	inset: 0;
}

.repo-carousel-slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: scale(1.02);
	transition:
		opacity 220ms ease,
		transform 300ms ease,
		visibility 220ms ease;
}

.repo-carousel-slide.is-active {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
}

.repo-carousel-slide img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #111827;
}

.repo-carousel-slide figcaption {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	left: 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 0.9rem;
	border-radius: 0.8rem;
	color: #fff;
	background: rgb(15 23 42 / 78%);
	backdrop-filter: blur(8px);
}

.repo-carousel-slide figcaption span {
	overflow: hidden;
	font-size: 0.9rem;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.repo-carousel-delete {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 2.2rem;
	height: 2.2rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: #fff;
	background: rgb(220 38 38 / 88%);
	cursor: pointer;
}

.repo-carousel-delete:hover {
	background: #dc2626;
}

.repo-carousel-placeholder,
.repo-carousel-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #cbd5e1;
}

.repo-carousel-empty {
	position: absolute;
	inset: 0;
	flex-direction: column;
	gap: 0.5rem;
	text-align: center;
}

.repo-carousel-empty[hidden] {
	display: none;
}

.repo-carousel-empty i {
	margin-bottom: 0.4rem;
	font-size: 3rem;
	opacity: 0.65;
}

.repo-carousel-empty strong {
	font-size: 1.1rem;
	color: #f8fafc;
}

.repo-carousel-empty span {
	font-size: 0.9rem;
	color: #94a3b8;
}

.repo-carousel-button {
	position: absolute;
	z-index: 3;
	top: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 1px solid rgb(255 255 255 / 25%);
	border-radius: 50%;
	color: #fff;
	background: rgb(15 23 42 / 60%);
	box-shadow: 0 8px 24px rgb(0 0 0 / 25%);
	cursor: pointer;
	transform: translateY(-50%);
	backdrop-filter: blur(6px);
}

.repo-carousel-button:hover {
	background: rgb(15 23 42 / 88%);
}

.repo-carousel-button[hidden] {
	display: none;
}

.repo-carousel-previous {
	left: 1rem;
}

.repo-carousel-next {
	right: 1rem;
}

.repo-carousel-counter {
	position: absolute;
	z-index: 3;
	top: 1rem;
	right: 1rem;
	min-width: 3.5rem;
	padding: 0.45rem 0.7rem;
	border-radius: 999px;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	text-align: center;
	background: rgb(15 23 42 / 65%);
	backdrop-filter: blur(6px);
}

.repo-carousel-thumbnails {
	display: flex;
	gap: 0.55rem;
	padding: 0.8rem 1rem 2.8rem;
	overflow-x: auto;
	background: #151b23;
	scrollbar-width: thin;
}

.repo-carousel-thumbnail {
	flex: 0 0 72px;
	width: 72px;
	height: 52px;
	padding: 0;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: 0.55rem;
	color: #94a3b8;
	background: #293241;
	cursor: pointer;
	opacity: 0.62;
	transition:
		border-color 150ms ease,
		opacity 150ms ease,
		transform 150ms ease;
}

.repo-carousel-thumbnail:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

.repo-carousel-thumbnail.is-active {
	border-color: var(--syscolor2, #39adf7);
	opacity: 1;
}

.repo-carousel-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/*
 * White form card overlapping the carousel.
 */
.repo-editor-card {
	position: relative;
	z-index: 5;

	box-sizing: border-box;
	width: 90%;
	max-width: 1200px;
	margin: -2rem auto 3rem;

	overflow: hidden;
	border: 1px solid rgb(148 163 184 / 28%);
	border-radius: 1rem;

	background: #fff;
	box-shadow:
		0 24px 65px rgb(15 23 42 / 18%),
		0 6px 18px rgb(15 23 42 / 10%);
}

.repo-editor-card-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.5rem 1.75rem 1.2rem;
	border-bottom: 1px solid #e5e7eb;
	background:
		linear-gradient(
			180deg,
			#fff,
			#fbfcfd
		);
}

.repo-editor-card-header h2 {
	margin: 0.2rem 0 0;
	color: #172033;
	font-size: clamp(1.3rem, 2vw, 1.8rem);
	line-height: 1.2;
}

.repo-editor-eyebrow {
	display: block;
	color: #64748b;
	font-size: 0.72rem;
	font-weight: 750;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.repo-editor-id {
	flex: 0 0 auto;
	padding: 0.4rem 0.7rem;
	border-radius: 999px;
	color: #475569;
	font-size: 0.8rem;
	font-weight: 700;
	background: #f1f5f9;
}

.repo-editor-card-body {
	padding: 1.5rem 1.75rem 1.75rem;
	background: #fff;
}

.repo-screenshot-upload {
	margin-top: 1.5rem;
	padding-top: 1.4rem;
	border-top: 1px solid #e5e7eb;
}

.repo-section-heading {
	margin-bottom: 1rem;
}

.repo-section-heading h3 {
	margin: 0.2rem 0 0;
	color: #1e293b;
	font-size: 1.05rem;
}

.repo-screenshot-upload-fields {
	display: grid;
	grid-template-columns:
		minmax(0, 1fr)
		minmax(220px, 0.7fr);
	gap: 1rem;
}

.repo-upload-label,
.repo-upload-title {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	color: #475569;
	font-size: 0.85rem;
	font-weight: 600;
}

.repo-upload-label input,
.repo-upload-title input {
	box-sizing: border-box;
	width: 100%;
	min-height: 2.7rem;
	padding: 0.65rem 0.75rem;
	border: 1px solid #cbd5e1;
	border-radius: 0.55rem;
	background: #fff;
}

.repo-upload-label input:focus,
.repo-upload-title input:focus {
	border-color: var(--syscolor2, #39adf7);
	outline: none;
	box-shadow:
		0 0 0 3px rgb(57 173 247 / 18%);
}

.repo-popup-message {
	min-height: 1.4rem;
	margin-top: 1rem;
	color: #15803d;
	font-size: 0.9rem;
	font-weight: 600;
}

.repo-popup-message.is-error {
	color: #b91c1c;
}


.repo-editor-header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
	margin-left: auto;
}

.repo-archive-download {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;

	min-height: 2.5rem;
	padding: 0.55rem 0.9rem;

	border: 1px solid var(--syscolor2, #39adf7);
	border-radius: 0.55rem;

	color: #fff;
	font-size: 0.86rem;
	font-weight: 650;
	text-decoration: none;

	background: var(--syscolor2, #39adf7);
	box-shadow: 0 5px 14px rgb(15 23 42 / 12%);

	transition:
		background 150ms ease,
		box-shadow 150ms ease,
		transform 150ms ease;
}

.repo-archive-download:hover {
	color: #fff;
	text-decoration: none;
	background: var(--syscolor5, #15738f);
	box-shadow: 0 7px 18px rgb(15 23 42 / 18%);
	transform: translateY(-1px);
}

.repo-archive-download[hidden] {
	display: none !important;
}
