#mainWrap.splattingWrap {
	width: min(100% - 24px, 1120px);
}

#modelsContainer div {
	margin: unset;
}

.guideLayout {
}

.guideSidebar {
	position: sticky;
	top: 18px;
	margin: 0;
	padding: 18px;
	background: linear-gradient(180deg, rgba(20, 27, 53, 0.92), rgba(8, 11, 24, 0.96));
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--inner-glow);
}

.guideSidebarTitle,
.sectionKicker {
	margin: 0 0 10px;
	color: var(--accent-strong);
	font-family: "Orbitron", sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
}

.guideToc {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.guideToc a {
	display: block;
	padding: 7px 9px;
	color: var(--muted);
	background-color: rgba(86, 106, 238, 0.08);
	border: 1px solid rgba(127, 144, 255, 0.18);
	border-radius: 6px;
	font-size: 15px;
	line-height: 1.25;
}

.guideToc a:hover {
	color: var(--text);
	border-color: var(--accent-strong);
	background-color: rgba(86, 106, 238, 0.18);
}

.guideContent {
	min-width: 0;
	margin: 0;
}

.guideHero,
.guideSection,
.citationBlock {
}

.guideHero {
	padding: clamp(22px, 4vw, 34px);
	margin-bottom: 18px;
}

.guideHero h1 {
	margin: 0 0 12px;
	color: var(--text);
	font-family: "Orbitron", sans-serif;
	font-size: clamp(30px, 5vw, 46px);
	line-height: 1.08;
}

.guideMeta {
	margin: 0 0 16px;
	color: var(--accent-strong);
	font-size: 15px;
	font-weight: 700;
}

.guideLead {
	margin: 0;
	color: var(--muted);
	font-size: clamp(18px, 2vw, 20px);
	line-height: 1.62;
	text-align: left;
}

.guideActions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}

.guideActions .buttonMainPage {
	display: inline-flex;
	width: auto;
	min-height: 44px;
	margin: 0;
	align-items: center;
	justify-content: center;
}

.guideSection {
	margin: 18px 0;
	padding: clamp(18px, 3vw, 26px);
}

.guideSection h2 {
	margin: 0 0 12px;
	color: var(--text);
	font-family: "Orbitron", sans-serif;
	font-size: clamp(23px, 3vw, 30px);
	line-height: 1.2;
}

.guideSection h3 {
	margin: 20px 0 10px;
	color: var(--text);
	font-size: 20px;
	line-height: 1.25;
}

.guideSection p {
	color: var(--muted);
	font-size: clamp(16px, 1.8vw, 18px);
	line-height: 1.65;
}

.guideSection a,
.citationBlock a {
	color: var(--accent-strong);
}

.infoGrid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 18px 0;
}

.infoCard,
.tipBox {
	padding: 16px;
	background-color: rgba(86, 106, 238, 0.12);
	border: 1px solid rgba(127, 144, 255, 0.28);
	border-radius: var(--radius);
}

.infoCard h3 {
	margin-top: 0;
}

.tipBox {
	border-left: 3px solid #9febff;
	color: var(--text);
}

.steps {
	display: grid;
	gap: 16px;
	margin: 18px 0;
}

.guideStep {
	display: grid;
	grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.3fr);
	gap: 18px;
	align-items: start;
	padding: 16px;
	background-color: rgba(3, 5, 12, 0.42);
	border: 1px solid rgba(127, 144, 255, 0.24);
	border-radius: var(--radius);
}

.guideStep img,
.heroImage img {
	display: block;
	width: 100%;
	background-color: #03050c;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 6px;
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
}

.guideStep img {
	aspect-ratio: 16 / 9;
	object-fit: contain;
}

.guideStepText {
	margin: 0;
}

.stepNumber {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	height: 30px;
	margin-right: 8px;
	color: #07111f;
	background: linear-gradient(135deg, #8beaff, #a8b6ff);
	border-radius: 50%;
	font-weight: 800;
}

.heroImage {
	margin-top: 16px;
}

.heroImage img {
	height: auto;
	object-fit: cover;
}

.citationBlock {
	margin-top: 18px;
	padding: 18px;
}

.citationBlock pre,
.citationSnippet {
	overflow-x: auto;
	margin: 10px 0 18px;
	padding: 14px;
	color: var(--text);
	background-color: rgba(3, 5, 12, 0.72);
	border: 1px solid rgba(127, 144, 255, 0.24);
	border-left: 3px solid #9febff;
	border-radius: 6px;
	white-space: pre-wrap;
}

.clickable {
	cursor: zoom-in;
	transition: transform 0.18s ease, border-color 0.18s ease;
}

.clickable:hover {
	border-color: var(--accent-strong);
	transform: translateY(-1px);
}

#lightbox {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 22px;
	background-color: rgba(0, 0, 0, 0.9);
	cursor: zoom-out;
}

#lightbox.active {
	display: flex;
}

#lightbox img {
	max-width: 94vw;
	max-height: 78vh;
	object-fit: contain;
	border-radius: 6px;
}

.lightboxCaption {
	max-width: 900px;
	margin-top: 16px;
	color: var(--text);
	text-align: center;
}

.loadingMessage {
	padding: 20px;
	color: var(--muted);
	text-align: center;
}

.modelLibraryContent {
	display: grid;
	gap: 14px;
}

.modelLibraryHero {
	align-items: end;
	padding: 4px 0 8px;
	margin-bottom: 0;
}

.modelLibraryHero .sectionKicker {
	grid-column: 1 / -1;
	margin-bottom: 0;
}

.modelLibraryHero h1 {
	margin-bottom: 6px;
	font-size: clamp(28px, 4vw, 38px);
}

.modelLibraryHero .guideMeta {
	margin-bottom: 6px;
}

.modelLibraryHero .guideLead {
	font-size: 16px;
	line-height: 1.5;
}

.modelLibraryHero .guideActions {
	align-self: end;
	justify-content: flex-end;
	margin-top: 0;
}

.modelLibraryHero .guideActions .buttonMainPage {
	min-height: 38px;
	padding: 8px 12px;
	font-size: 15px;
	white-space: nowrap;
}

.modelLibrarySection {
	margin: 0;
	padding: 0;
}

.modelLibrarySection h2 {
	margin-bottom: 10px;
	font-size: 22px;
}

.models-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.model-item {
	display: grid;
	grid-template-columns: minmax(280px, 360px) 1fr;
	gap: 22px;
	padding: 16px;
	background-color: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.model-thumbnail img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background-color: #03050c;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--radius);
	box-shadow: none;
}

.model-details h3 {
	margin: 0 0 8px;
	color: var(--text);
	font-size: 1.2rem;
	line-height: 1.25;
}

.model-description {
	margin: 0 0 14px;
	color: var(--muted);
	font-size: 0.9rem;
	line-height: 1.5;
}

.model-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 0;
	font-size: 0.82rem;
}

.model-meta-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
}

.model-meta-label {
	color: var(--muted);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.model-meta-value {
	color: var(--text);
	font-weight: 700;
}

a.model-meta-value:hover {
	color: var(--accent-strong);
}

.model-downloads {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px !important;
}

.download-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	color: var(--accent-strong);
	background-color: var(--surface);
	border: 1px solid var(--border);
	border-radius: 4px;
	font-size: 0.8rem;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.download-link::before {
	content: "↓";
	font-size: 1rem;
	font-weight: 400;
	line-height: 1;
}

.download-link.external-link::before {
	content: "↗";
}

.download-link:hover {
	color: #ffffff;
	background-color: var(--accent-dark);
	border-color: var(--accent-strong);
	transform: translateY(-1px);
}

.compactCitation {
	margin-top: 0;
	padding: 10px 0 0;
}

.compactCitation h2 {
	margin: 0 0 6px;
	color: var(--text);
	font-family: "Orbitron", sans-serif;
	font-size: 22px;
}

.compactCitation h3 {
	margin: 12px 0 4px;
	color: var(--text);
	font-size: 16px;
}

.compactCitation .modelDescription {
	margin: 0 0 8px;
	font-size: 15px;
	line-height: 1.45;
}

.citationGrid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.citationGrid div {
	margin: unset;
}

.compactCitation pre,
.compactCitation .citationSnippet {
	margin: 0;
	padding: 10px;
	font-size: 13px;
	line-height: 1.35;
}

@media screen and (max-width: 900px) {
	.guideLayout {
		grid-template-columns: 1fr;
	}

	.guideSidebar {
		position: static;
		order: 2;
	}

	.guideContent {
		order: 1;
	}

	.guideToc {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.infoGrid,
	.guideStep {
		grid-template-columns: 1fr;
	}

	.modelLibraryHero {
		grid-template-columns: 1fr;
	}

	.modelLibraryHero .guideActions {
		justify-content: flex-start;
	}
}

@media screen and (max-width: 640px) {
	.guideToc {
		grid-template-columns: 1fr;
	}

	.guideActions {
		flex-direction: column;
	}

	.guideActions .buttonMainPage {
		width: 100%;
	}

	.modelLibraryHero .guideActions {
		flex-direction: row;
	}

	.modelLibraryHero .guideActions .buttonMainPage {
		flex: 1 1 150px;
		width: auto;
	}

	.citationGrid {
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 800px) {
	.model-item {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.model-thumbnail {
		max-width: none;
	}
}

@media screen and (max-width: 520px) {
	.model-meta,
	.model-downloads {
		gap: 10px;
	}

	.model-meta-item {
		min-width: calc(50% - 10px);
	}

	.download-link {
		width: 100%;
	}
}
