.mod-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mod-catalog-filter { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px; }
.mod-catalog-filter label { flex: 0 1 240px; min-width: 0; }
.mod-card .livery-card-meta { align-items: flex-start; }
.mod-card h3 { margin: 0; font-size: 1rem; color: var(--text); overflow-wrap: anywhere; }
.mod-description { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.mod-description summary { cursor: pointer; }
.mod-description-label, .mod-description[open] .mod-description-preview { display: none; }
.mod-description[open] .mod-description-label { display: inline; }
.mod-description p { margin-bottom: 0; }
.mod-type.is-track { color: var(--blue-2); border-color: rgba(99, 214, 255, .6); background: rgba(27, 47, 64, .94); }
.mod-type.is-car { color: var(--green); border-color: rgba(82, 241, 164, .6); background: rgba(22, 48, 37, .94); }
.mod-status { align-self: flex-start; }
.mod-status.is-active { color: var(--green); border-color: rgba(82, 241, 164, .6); background: rgba(22, 48, 37, .94); }
.mod-card .livery-card-actions { flex-wrap: wrap; }
.mod-card .racing-driver-identity { min-width: 130px; }
.mod-card .driver-flag-slot, .mod-card .driver-flag { width: 18px; height: 16px; flex: 0 0 18px; }
.mod-card button.section-action { font: inherit; font-size: .7rem; cursor: pointer; }
.mod-download-restricted { color: var(--muted); font-size: .75rem; }
.mod-form input[type="text"], .mod-form textarea { width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; background: var(--panel); color: var(--text); font: inherit; }
.mod-form textarea { resize: vertical; }
.mod-form-message { margin: 0; font-size: .85rem; color: var(--blue-2); overflow-wrap: anywhere; }
.mod-form-message.is-error { color: var(--red); }
.mod-upload-progress { width: 100%; height: 8px; accent-color: var(--blue-2); }
.mod-edit-preview { width: 100%; max-height: 160px; object-fit: contain; }
.mod-archive-help { min-width: 0; overflow-wrap: anywhere; }
.mods-profile-table .mod-profile-name { white-space: normal; overflow-wrap: anywhere; min-width: 130px; }
.mods-profile-table .livery-table-preview { width: 84px; height: 52px; object-fit: contain; }
.mods-profile-table td { vertical-align: middle; }
@media (min-width: 1025px) {
	.mods-public-catalog .mod-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
	#home-latest-mods .livery-catalog-heading { align-items: flex-start; }
	.mod-catalog-grid { grid-template-columns: minmax(0, 1fr); }
	.mod-catalog-filter label { flex: 1 1 180px; }
	.mods-profile-table thead { display: none; }
	.mods-profile-table, .mods-profile-table tbody { display: block; width: 100%; min-width: 0; }
	.mods-profile-table tbody tr { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
	.mods-profile-table td { border: 0; padding: 0; white-space: normal; grid-column: 2; }
	.mods-profile-table td:first-child { grid-column: 1; grid-row: 1 / span 4; }
	.mods-profile-table td:nth-child(5) { display: none; }
	.mods-profile-table .mod-profile-name { min-width: 0; }
}
