.atlas-course-library {
	--acl-accent: #ff8a00;
	--acl-accent-dark: #d96f00;
	--acl-ink: #101828;
	--acl-muted: #667085;
	--acl-line: #e4e7ec;
	--acl-surface: #ffffff;
	--acl-soft: #f7f9fc;
	--acl-shadow: 0 18px 40px rgba(16, 24, 40, 0.1);
	color: var(--acl-ink);
	margin: 30px auto 52px;
	max-width: 1160px;
	width: min(100%, calc(100vw - 32px));
}

.atlas-course-library * {
	box-sizing: border-box;
}

.acl-toolbar {
	align-items: end;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: space-between;
	margin: 0 0 20px;
}

.acl-control {
	display: grid;
	gap: 6px;
	min-width: 210px;
}

.acl-control label {
	color: var(--acl-muted);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
}

.acl-search,
.acl-type-filter {
	appearance: none;
	background: #fff;
	border: 1px solid var(--acl-line);
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
	color: var(--acl-ink);
	font: inherit;
	min-height: 44px;
	outline: none;
	padding: 10px 13px;
	transition: border-color 160ms ease, box-shadow 160ms ease;
	width: 100%;
}

.acl-type-filter {
	background-image: linear-gradient(45deg, transparent 50%, var(--acl-muted) 50%), linear-gradient(135deg, var(--acl-muted) 50%, transparent 50%);
	background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
	background-repeat: no-repeat;
	background-size: 5px 5px, 5px 5px;
	padding-right: 38px;
}

.acl-search:focus,
.acl-type-filter:focus {
	border-color: var(--acl-accent);
	box-shadow: 0 0 0 4px rgba(255, 138, 0, 0.16);
}

.acl-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(var(--acl-columns), minmax(0, 1fr));
}

.acl-card {
	background: var(--acl-surface);
	border: 1px solid var(--acl-line);
	border-radius: 8px;
	box-shadow: 0 10px 26px rgba(16, 24, 40, 0.06);
	display: flex;
	flex-direction: column;
	min-height: 100%;
	overflow: hidden;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.acl-card:hover {
	border-color: rgba(255, 138, 0, 0.42);
	box-shadow: var(--acl-shadow);
	transform: translateY(-2px);
}

.acl-card[hidden] {
	display: none;
}

.acl-thumb {
	aspect-ratio: 4 / 3;
	background: var(--acl-soft);
	position: relative;
}

.acl-thumb img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.acl-thumb-fallback {
	align-items: center;
	color: var(--acl-muted);
	display: flex;
	font-size: 15px;
	font-weight: 800;
	height: 100%;
	justify-content: center;
	letter-spacing: 0;
	text-transform: uppercase;
	width: 100%;
}

.acl-badge {
	background: rgba(16, 24, 40, 0.84);
	border-radius: 999px;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	padding: 7px 10px;
	position: absolute;
	right: 12px;
	top: 12px;
}

.acl-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 18px 18px 8px;
}

.acl-category {
	color: var(--acl-accent-dark);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
}

.acl-title {
	color: var(--acl-ink);
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.34;
	margin: 0;
}

.acl-excerpt {
	color: var(--acl-muted);
	font-size: 15px;
	line-height: 1.55;
	margin: 0;
}

.acl-card-actions {
	display: grid;
	gap: 10px;
	padding: 18px;
}

.acl-button {
	align-items: center;
	border-radius: 8px;
	cursor: pointer;
	display: inline-flex;
	font-size: 15px;
	font-weight: 800;
	gap: 9px;
	justify-content: center;
	line-height: 1.2;
	min-height: 42px;
	padding: 10px 13px;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
	width: 100%;
}

.acl-button:hover {
	transform: translateY(-1px);
}

.acl-button-primary {
	background: var(--acl-accent);
	border: 1px solid var(--acl-accent);
	color: #111827;
}

.acl-button-primary:hover,
.acl-button-primary:focus {
	background: #ffa129;
	border-color: #ffa129;
	color: #111827;
}

.acl-button-secondary {
	background: #fff;
	border: 1px solid var(--acl-line);
	color: var(--acl-ink);
}

.acl-button-secondary:hover,
.acl-button-secondary:focus {
	border-color: var(--acl-accent);
	color: var(--acl-ink);
}

.acl-button-icon,
.acl-download-icon,
.acl-modal-close::before,
.acl-modal-close::after {
	display: inline-block;
	position: relative;
}

.acl-button-icon {
	border: 2px solid currentColor;
	border-radius: 50%;
	height: 16px;
	width: 16px;
}

.acl-button-icon::after {
	background: currentColor;
	content: "";
	height: 7px;
	position: absolute;
	right: -5px;
	top: 10px;
	transform: rotate(45deg);
	width: 2px;
}

.acl-download-icon {
	border: 2px solid currentColor;
	border-top: 0;
	height: 14px;
	width: 16px;
}

.acl-download-icon::before {
	background: currentColor;
	content: "";
	height: 12px;
	left: 5px;
	position: absolute;
	top: -8px;
	width: 2px;
}

.acl-download-icon::after {
	border-bottom: 2px solid currentColor;
	border-right: 2px solid currentColor;
	content: "";
	height: 7px;
	left: 3px;
	position: absolute;
	top: -2px;
	transform: rotate(45deg);
	width: 7px;
}

.acl-empty {
	background: var(--acl-soft);
	border: 1px dashed var(--acl-line);
	border-radius: 8px;
	color: var(--acl-muted);
	font-weight: 700;
	margin: 18px 0 0;
	padding: 18px;
	text-align: center;
}

.acl-modal {
	align-items: center;
	display: none;
	justify-content: center;
	padding: 22px;
	position: fixed !important;
	inset: 0 !important;
	height: 100vh;
	width: 100vw;
	z-index: 2147483000;
}

.acl-modal.is-open {
	display: flex;
}

.acl-modal-backdrop {
	background: rgba(16, 24, 40, 0.72);
	border: 0;
	cursor: pointer;
	inset: 0;
	position: absolute;
}

.acl-modal-panel {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	margin: auto;
	max-height: min(88vh, 880px);
	max-width: 1080px;
	overflow: hidden;
	position: relative;
	width: min(100%, 1080px);
	z-index: 1;
}

.acl-modal-header {
	align-items: center;
	border-bottom: 1px solid var(--acl-line);
	display: flex;
	gap: 16px;
	justify-content: space-between;
	min-height: 58px;
	padding: 14px 18px;
}

.acl-modal-title {
	color: var(--acl-ink);
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.25;
	margin: 0;
}

.acl-modal-close {
	background: #fff;
	border: 1px solid var(--acl-line);
	border-radius: 8px;
	cursor: pointer;
	flex: 0 0 38px;
	height: 38px;
	position: relative;
	width: 38px;
}

.acl-modal-close::before,
.acl-modal-close::after {
	background: var(--acl-ink);
	content: "";
	height: 2px;
	left: 10px;
	position: absolute;
	top: 17px;
	width: 16px;
}

.acl-modal-close::before {
	transform: rotate(45deg);
}

.acl-modal-close::after {
	transform: rotate(-45deg);
}

.acl-modal-body {
	background: #101828;
	min-height: 64vh;
	overflow: auto;
}

.acl-modal-body iframe {
	border: 0;
	display: block;
	height: 72vh;
	width: 100%;
}

.acl-modal-image {
	display: block;
	margin: 0 auto;
	max-height: 72vh;
	max-width: 100%;
	object-fit: contain;
}

.acl-modal-actions {
	border-top: 1px solid var(--acl-line);
	padding: 14px 18px;
}

body.acl-modal-open {
	overflow: hidden;
}

.atlas-course-auth {
	--acl-accent: #ff8a00;
	--acl-accent-dark: #d96f00;
	--acl-ink: #101828;
	--acl-muted: #667085;
	--acl-line: #e4e7ec;
	--acl-soft: #f7f9fc;
	box-sizing: border-box;
	color: var(--acl-ink);
	margin: 28px auto 58px;
	max-width: 1160px;
	width: min(100%, calc(100vw - 32px));
}

.atlas-course-auth *,
.atlas-course-auth *::before,
.atlas-course-auth *::after {
	box-sizing: border-box;
}

.acl-auth-shell {
	background: linear-gradient(135deg, #fff7ed 0%, #eef8f7 100%);
	border: 1px solid #f0d9bd;
	border-radius: 8px;
	display: grid;
	gap: 28px;
	grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
	min-height: 560px;
	padding: 34px;
}

.acl-auth-shell-compact {
	grid-template-columns: minmax(0, 520px);
	justify-content: center;
	min-height: 0;
}

.acl-auth-intro {
	align-content: center;
	display: grid;
	gap: 18px;
	padding: 20px 22px;
}

.acl-auth-kicker {
	color: var(--acl-accent-dark);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.2;
	margin: 0;
	text-transform: uppercase;
}

.acl-auth-intro h1,
.acl-auth-card h1 {
	color: var(--acl-ink);
	font-size: 38px;
	font-weight: 850;
	letter-spacing: 0;
	line-height: 1.08;
	margin: 0;
	max-width: 560px;
}

.acl-auth-intro p,
.acl-auth-copy {
	color: var(--acl-muted);
	font-size: 17px;
	line-height: 1.65;
	margin: 0;
	max-width: 560px;
}

.acl-auth-points {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 8px;
}

.acl-auth-points span {
	background: rgba(255, 255, 255, 0.78);
	border: 1px solid rgba(16, 24, 40, 0.08);
	border-radius: 999px;
	color: var(--acl-ink);
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	padding: 10px 13px;
}

.acl-auth-card {
	align-self: center;
	background: #fff;
	border: 1px solid rgba(16, 24, 40, 0.1);
	border-radius: 8px;
	box-shadow: 0 22px 50px rgba(16, 24, 40, 0.14);
	display: grid;
	gap: 18px;
	padding: 26px;
}

.acl-auth-tabs {
	background: var(--acl-soft);
	border: 1px solid var(--acl-line);
	border-radius: 8px;
	display: grid;
	gap: 4px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	padding: 4px;
}

.acl-auth-tabs a {
	border-radius: 6px;
	color: var(--acl-muted);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	min-height: 40px;
	padding: 11px 14px;
	text-align: center;
	text-decoration: none;
}

.acl-auth-tabs a.is-active {
	background: #fff;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
	color: var(--acl-ink);
}

.acl-auth-notice {
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 8px;
	color: #9a3412;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0;
	padding: 12px 14px;
}

.acl-auth-form {
	display: grid;
	gap: 15px;
}

.acl-auth-form label {
	display: grid;
	gap: 7px;
}

.acl-auth-form label span {
	color: var(--acl-ink);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
}

.acl-auth-form input[type="text"],
.acl-auth-form input[type="email"],
.acl-auth-form input[type="password"] {
	background: #fff;
	border: 1px solid var(--acl-line);
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
	color: var(--acl-ink);
	font: inherit;
	min-height: 46px;
	outline: none;
	padding: 11px 13px;
	transition: border-color 160ms ease, box-shadow 160ms ease;
	width: 100%;
}

.acl-auth-form input:focus {
	border-color: var(--acl-accent);
	box-shadow: 0 0 0 4px rgba(255, 138, 0, 0.16);
}

.acl-auth-row {
	align-items: center;
	display: flex;
	gap: 12px;
	justify-content: space-between;
}

.acl-auth-check {
	align-items: center;
	display: inline-flex !important;
	gap: 8px !important;
}

.acl-auth-check input {
	height: 16px;
	margin: 0;
	width: 16px;
}

.acl-auth-row a {
	color: var(--acl-accent-dark);
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
}

.acl-auth-submit {
	align-items: center;
	background: var(--acl-accent);
	border: 1px solid var(--acl-accent);
	border-radius: 8px;
	color: #111827;
	cursor: pointer;
	display: inline-flex;
	font-size: 15px;
	font-weight: 850;
	justify-content: center;
	line-height: 1.2;
	min-height: 46px;
	padding: 12px 16px;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
	width: 100%;
}

.acl-auth-submit:hover,
.acl-auth-submit:focus {
	background: #ffa129;
	border-color: #ffa129;
	color: #111827;
	transform: translateY(-1px);
}

.acl-auth-link-button {
	margin-top: 4px;
}

@media (max-width: 900px) {
	.acl-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.acl-auth-shell {
		grid-template-columns: 1fr;
		min-height: 0;
		padding: 22px;
	}

	.acl-auth-intro {
		padding: 8px 4px 0;
	}

	.acl-auth-intro h1,
	.acl-auth-card h1 {
		font-size: 32px;
	}
}

@media (max-width: 640px) {
	.atlas-course-library {
		margin-top: 22px;
		width: min(100%, calc(100vw - 22px));
	}

	.acl-toolbar {
		display: grid;
	}

	.acl-control {
		min-width: 0;
	}

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

	.acl-modal {
		padding: 10px;
	}

	.acl-modal-panel {
		max-height: 94vh;
	}

	.acl-modal-body,
	.acl-modal-body iframe {
		min-height: 66vh;
	}

	.atlas-course-auth {
		margin-top: 22px;
		width: min(100%, calc(100vw - 22px));
	}

	.acl-auth-shell {
		gap: 18px;
		padding: 14px;
	}

	.acl-auth-card {
		padding: 18px;
	}

	.acl-auth-intro h1,
	.acl-auth-card h1 {
		font-size: 28px;
	}

	.acl-auth-intro p,
	.acl-auth-copy {
		font-size: 15px;
	}

	.acl-auth-row {
		align-items: flex-start;
		display: grid;
	}
}
