/* Student Topic Access Manager - mobile-first dashboard. */

.stam-dashboard {
	box-sizing: border-box;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	font-family: inherit;
}

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

.stam-dashboard-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
	padding: 24px;
	border-radius: 18px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.stam-eyebrow {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.65;
}

.stam-dashboard h1,
.stam-dashboard h2,
.stam-dashboard p {
	margin-top: 0;
}

.stam-dashboard h1 {
	margin-bottom: 6px;
	font-size: clamp(24px, 4vw, 34px);
	line-height: 1.15;
}

.stam-dashboard-header p {
	margin-bottom: 0;
	opacity: 0.7;
}

.stam-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 16px;
	border-radius: 10px;
	background: #1f2937;
	color: #ffffff !important;
	text-decoration: none !important;
	font-weight: 700;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.stam-button:hover {
	transform: translateY(-1px);
	opacity: 0.92;
}

.stam-button-secondary {
	background: transparent;
	color: #1f2937 !important;
	border: 1px solid #d1d5db;
}

.stam-dashboard-nav {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 6px;
	margin-bottom: 22px;
	border-radius: 14px;
	background: #f3f4f6;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.stam-nav-item {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 44px;
	padding: 10px 14px;
	border-radius: 10px;
	color: #374151;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.stam-nav-item:hover,
.stam-nav-item.is-active {
	background: #ffffff;
	color: #111827;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.stam-stat-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

.stam-stat-card {
	min-width: 0;
	padding: 20px;
	border-radius: 16px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
}

.stam-stat-icon {
	display: block;
	margin-bottom: 12px;
	font-size: 24px;
}

.stam-stat-label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 700;
	opacity: 0.65;
}

.stam-stat-card strong {
	display: block;
	margin-bottom: 4px;
	font-size: 30px;
	line-height: 1;
}

.stam-stat-card small {
	font-size: 12px;
	opacity: 0.65;
}

.stam-welcome-card {
	margin-top: 18px;
	padding: 24px;
	border-radius: 16px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
}

.stam-welcome-card h2 {
	margin-bottom: 8px;
	font-size: 22px;
}

.stam-welcome-card p {
	margin-bottom: 0;
	line-height: 1.65;
	opacity: 0.75;
}

.stam-access-card {
	max-width: 560px;
	margin: 40px auto;
	padding: 28px;
	text-align: center;
	border-radius: 16px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.stam-access-card h2 {
	margin-top: 0;
}

.stam-access-card p {
	line-height: 1.6;
	opacity: 0.75;
}

@media (min-width: 640px) {
	.stam-dashboard {
		padding: 28px;
	}

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

@media (min-width: 960px) {
	.stam-dashboard {
		padding: 36px;
	}

	.stam-stat-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 639px) {
	.stam-dashboard {
		padding: 12px;
	}

	.stam-dashboard-header {
		align-items: flex-start;
		flex-direction: column;
		padding: 18px;
	}

	.stam-button {
		width: 100%;
	}

	.stam-welcome-card {
		padding: 18px;
	}
}


.stam-panel {
	margin-top: 18px;
	padding: 20px;
	border-radius: 16px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
}

.stam-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 18px;
}

.stam-panel-header h2 {
	margin-bottom: 0;
	font-size: 24px;
}

.stam-student-list {
	display: grid;
	gap: 10px;
}

.stam-student-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 15px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
}

.stam-student-main {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.stam-student-main strong {
	font-size: 16px;
}

.stam-student-main span {
	font-size: 13px;
	opacity: 0.68;
	overflow-wrap: anywhere;
}

.stam-student-meta {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 7px;
	flex-wrap: wrap;
}

.stam-student-meta form {
	margin: 0;
}

.stam-button-small {
	min-height: 38px;
	padding: 7px 11px;
	font-size: 12px;
	border: 0;
	cursor: pointer;
}

.stam-danger {
	background: #991b1b;
}

.stam-status {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 5px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
}

.stam-status-pending {
	background: #fef3c7;
	color: #92400e;
}

.stam-status-approved {
	background: #dcfce7;
	color: #166534;
}

.stam-status-rejected {
	background: #fee2e2;
	color: #991b1b;
}

.stam-empty {
	padding: 25px;
	text-align: center;
	border: 1px dashed #d1d5db;
	border-radius: 12px;
	opacity: 0.7;
}

.stam-registration {
	max-width: 620px;
	margin: 0 auto;
	padding: 20px;
}

.stam-registration-card {
	padding: 25px;
	border-radius: 18px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.stam-registration-card h1 {
	margin-bottom: 20px;
	font-size: clamp(25px, 5vw, 34px);
}

.stam-form {
	display: grid;
	gap: 10px;
}

.stam-form label {
	margin-top: 5px;
	font-size: 13px;
	font-weight: 700;
}

.stam-form input,
.stam-form select {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	background: #ffffff;
	font: inherit;
}

.stam-form input:focus,
.stam-form select:focus {
	outline: 2px solid #9ca3af;
	outline-offset: 1px;
}

.stam-notice {
	margin-bottom: 18px;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.5;
}

.stam-notice-success {
	background: #dcfce7;
	color: #166534;
}

.stam-notice-error {
	background: #fee2e2;
	color: #991b1b;
}

@media (max-width: 639px) {
	.stam-panel {
		padding: 15px;
	}

	.stam-panel-header {
		align-items: stretch;
		flex-direction: column;
	}

	.stam-panel-header .stam-button {
		width: 100%;
	}

	.stam-student-card {
		align-items: stretch;
		flex-direction: column;
	}

	.stam-student-meta {
		justify-content: flex-start;
	}

	.stam-student-meta form,
	.stam-student-meta .stam-button-small {
		width: 100%;
	}

	.stam-registration {
		padding: 12px;
	}

	.stam-registration-card {
		padding: 18px;
	}
}


.stam-student-filters {
	display: grid;
	grid-template-columns: minmax(180px, 2fr) minmax(130px, 1fr) minmax(130px, 1fr) auto;
	gap: 10px;
	margin-bottom: 16px;
	padding: 12px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #f9fafb;
}

.stam-student-filters > div {
	display: grid;
	gap: 5px;
}

.stam-student-filters label {
	font-size: 11px;
	font-weight: 800;
}

.stam-student-filters input,
.stam-student-filters select {
	width: 100%;
	min-height: 40px;
	padding: 7px 9px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	font: inherit;
	font-size: 13px;
}

.stam-filter-actions {
	display: flex !important;
	align-items: end;
	gap: 6px;
}

.stam-text-link {
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}

@media (max-width: 800px) {
	.stam-student-filters {
		grid-template-columns: 1fr 1fr;
	}
	.stam-filter-actions {
		align-items: stretch;
	}
}

@media (max-width: 639px) {
	.stam-student-filters {
		grid-template-columns: 1fr;
	}
	.stam-filter-actions {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
	}
	.stam-filter-actions .stam-button {
		width: 100%;
	}
}


.stam-field-help {
	display: block;
	margin-top: -5px;
	font-size: 12px;
	line-height: 1.45;
	opacity: .72;
}

.stam-form input[readonly] {
	cursor: not-allowed;
	background: #f3f4f6;
}


.stam-student-dashboard {
	max-width: 1100px;
	margin: 0 auto;
	padding: 24px 16px;
}

.stam-student-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.stam-student-header h1 {
	margin: 4px 0 4px;
}

.stam-student-header p {
	margin: 0;
	opacity: .7;
}

.stam-login-card {
	max-width: 480px;
	margin: 40px auto;
	padding: 28px;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 30px rgba(0,0,0,.06);
}

.stam-login-card h1 {
	margin: 6px 0 8px;
}

.stam-login-card > p {
	margin-bottom: 22px;
	opacity: .72;
}

.stam-login-card form {
	display: grid;
	gap: 10px;
}

.stam-login-card form label {
	font-weight: 700;
	font-size: 13px;
}

.stam-login-card form input[type="text"],
.stam-login-card form input[type="password"] {
	width: 100%;
	min-height: 44px;
	padding: 9px 11px;
	border: 1px solid #d1d5db;
	border-radius: 9px;
	font: inherit;
}

.stam-login-card form .login-submit {
	margin-top: 8px;
}

.stam-login-card form input[type="submit"] {
	width: 100%;
	min-height: 44px;
	border: 0;
	border-radius: 9px;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
}

.stam-student-notice {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 22px;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #fff;
}

.stam-student-notice h2 {
	margin: 0 0 5px;
}

.stam-student-notice p {
	margin: 0;
	opacity: .75;
}

.stam-status-icon {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	flex: 0 0 36px;
	border-radius: 50%;
	font-weight: 800;
	background: #f3f4f6;
}

.stam-course-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 24px;
	padding: 18px 20px;
	border-radius: 14px;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
}

.stam-course-banner div {
	display: grid;
	gap: 4px;
}

.stam-course-banner span:first-child {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .05em;
	opacity: .65;
}

.stam-course-banner strong {
	font-size: 20px;
}

.stam-topic-toolbar {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.stam-topic-toolbar h2 {
	margin: 0 0 3px;
}

.stam-topic-toolbar p {
	margin: 0;
	opacity: .7;
	font-size: 13px;
}

.stam-topic-toolbar select {
	min-width: 180px;
	min-height: 40px;
	padding: 7px 10px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	font: inherit;
}

.stam-topic-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.stam-topic-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 20px;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 5px 18px rgba(0,0,0,.04);
}

.stam-topic-card h3 {
	margin: 7px 0 8px;
	font-size: 18px;
	line-height: 1.35;
}

.stam-topic-card h3 a {
	text-decoration: none;
}

.stam-topic-card p {
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 1.6;
	opacity: .72;
}

.stam-topic-subject {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	opacity: .6;
}

.stam-topic-link {
	margin-top: auto;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
}

.stam-topic-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 40px 20px;
}

.stam-topic-empty h3 {
	margin: 0 0 5px;
}

.stam-topic-empty p {
	margin: 0;
	opacity: .7;
}

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

@media (max-width: 639px) {
	.stam-student-dashboard {
		padding: 16px 12px;
	}

	.stam-student-header,
	.stam-topic-toolbar,
	.stam-course-banner {
		align-items: stretch;
		flex-direction: column;
	}

	.stam-student-header .stam-button,
	.stam-course-banner .stam-status {
		align-self: flex-start;
	}

	.stam-topic-toolbar form,
	.stam-topic-toolbar select {
		width: 100%;
	}

	.stam-topic-grid {
		grid-template-columns: 1fr;
	}
}


.stam-subject-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.stam-subject-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 150px;
	padding: 22px;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 6px 22px rgba(0,0,0,.045);
	text-decoration: none !important;
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.stam-subject-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(0,0,0,.08);
	border-color: #d1d5db;
}

.stam-subject-icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 18px;
	border-radius: 12px;
	background: #f3f4f6;
	font-size: 22px;
}

.stam-subject-name {
	color: #111827;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.3;
}

.stam-subject-count {
	margin-top: 6px;
	color: #6b7280;
	font-size: 13px;
	font-weight: 600;
}

.stam-subject-arrow {
	position: absolute;
	right: 20px;
	bottom: 18px;
	color: #374151;
	font-size: 20px;
	font-weight: 800;
}

.stam-learning-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
	padding: 20px;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #fff;
}

.stam-learning-header h2 {
	margin: 3px 0 5px;
	font-size: 28px;
}

.stam-learning-header p {
	margin: 0;
	opacity: .7;
	font-size: 13px;
}

.stam-back-link {
	display: inline-block;
	margin-bottom: 14px;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
}

.stam-topic-number {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: #f3f4f6;
	color: #374151;
	font-size: 12px;
	font-weight: 800;
}

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

@media (max-width: 639px) {
	.stam-subject-grid {
		grid-template-columns: 1fr;
	}

	.stam-learning-header {
		padding: 17px;
	}

	.stam-learning-header h2 {
		font-size: 24px;
	}
}


/* Student-only single Topic page */
.stam-student-topic-page {
	box-sizing: border-box;
	width: 100%;
	padding: 24px 20px 50px;
	font-family: inherit;
}

.stam-student-topic-page *,
.stam-student-topic-page *::before,
.stam-student-topic-page *::after {
	box-sizing: border-box;
}

.stam-student-topic-shell {
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
}

.stam-topic-navigation {
	margin-bottom: 18px;
}

.stam-topic-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 9px 14px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	background: #fff;
	color: #1f2937 !important;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none !important;
}

.stam-topic-back:hover {
	background: #f9fafb;
}

.stam-topic-page-header {
	margin-bottom: 24px;
	padding: 24px;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 28px rgba(15,23,42,.05);
}

.stam-topic-page-header h1 {
	margin: 0;
	font-size: clamp(28px, 5vw, 42px);
	line-height: 1.15;
}

.stam-topic-videos {
	display: grid;
	gap: 22px;
}

.stam-topic-video-card {
	padding: 18px;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 28px rgba(15,23,42,.05);
}

.stam-topic-video-card h2 {
	margin: 0 0 14px;
	font-size: clamp(18px, 3vw, 23px);
	line-height: 1.3;
}

.stam-video-embed {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	overflow: hidden;
	border-radius: 12px;
	background: #000;
}

.stam-video-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.stam-topic-empty-content {
	padding: 32px 24px;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	background: #fff;
	text-align: center;
}

.stam-topic-empty-content h2 {
	margin: 0 0 8px;
	font-size: 22px;
}

.stam-topic-empty-content p {
	margin: 0;
	opacity: .7;
}

.stam-topic-bottom-navigation {
	display: flex;
	justify-content: flex-start;
	margin-top: 24px;
}

@media (max-width: 639px) {
	.stam-student-topic-page {
		padding: 14px 12px 32px;
	}

	.stam-topic-page-header {
		padding: 19px;
		margin-bottom: 16px;
	}

	.stam-topic-video-card {
		padding: 12px;
		border-radius: 13px;
	}

	.stam-topic-videos {
		gap: 14px;
	}
}


/* =========================================================
   STAM 1.8.0 — Modern Theme
   Palette:
   #aed6dc — Aqua Mist
   #ff9a8d — Coral
   #4a536b — Slate
   ========================================================= */

:root {
	--stam-aqua: #aed6dc;
	--stam-coral: #ff9a8d;
	--stam-slate: #4a536b;
	--stam-ink: #30384a;
	--stam-soft: #f4f8f9;
	--stam-white: #ffffff;
	--stam-border: rgba(74, 83, 107, .16);
	--stam-shadow: 0 14px 40px rgba(74, 83, 107, .11);
	--stam-shadow-hover: 0 20px 50px rgba(74, 83, 107, .17);
}

/* Global plugin surfaces */
.stam-dashboard,
.stam-registration,
.stam-student-dashboard,
.stam-student-topic-page {
	color: var(--stam-slate);
}

.stam-dashboard a,
.stam-registration a,
.stam-student-dashboard a,
.stam-student-topic-page a {
	color: var(--stam-slate);
}

.stam-dashboard-header,
.stam-panel,
.stam-stat-card,
.stam-welcome-card,
.stam-access-card,
.stam-registration-card,
.stam-login-card,
.stam-student-notice,
.stam-learning-header,
.stam-topic-page-header,
.stam-topic-video-card,
.stam-topic-empty-content {
	border-color: var(--stam-border);
	background: var(--stam-white);
	box-shadow: var(--stam-shadow);
}

/* Buttons */
.stam-button {
	border: 0;
	background: var(--stam-slate);
	color: #fff !important;
	border-radius: 12px;
	box-shadow: 0 8px 18px rgba(74, 83, 107, .18);
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.stam-button:hover {
	background: #3f475d;
	box-shadow: 0 12px 24px rgba(74, 83, 107, .22);
	transform: translateY(-2px);
	opacity: 1;
}

.stam-button-secondary {
	background: var(--stam-aqua);
	border: 1px solid rgba(74, 83, 107, .08);
	color: var(--stam-slate) !important;
	box-shadow: none;
}

.stam-button-secondary:hover {
	background: #9fcbd1;
	color: var(--stam-slate) !important;
}

.stam-danger {
	background: var(--stam-coral);
	color: var(--stam-slate) !important;
}

.stam-danger:hover {
	background: #f68d80;
}

/* Headings / accent */
.stam-eyebrow {
	color: var(--stam-slate);
	opacity: .68;
}

.stam-dashboard h1,
.stam-dashboard h2,
.stam-dashboard h3,
.stam-registration-card h1,
.stam-login-card h1,
.stam-student-header h1,
.stam-learning-header h2,
.stam-topic-page-header h1,
.stam-topic-video-card h2 {
	color: var(--stam-slate);
}

/* Navigation */
.stam-dashboard-nav {
	background: var(--stam-soft);
	border: 1px solid var(--stam-border);
	padding: 7px;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.stam-nav-item {
	color: var(--stam-slate);
	border-radius: 10px;
}

.stam-nav-item:hover,
.stam-nav-item.is-active {
	background: var(--stam-aqua);
	color: var(--stam-slate);
	box-shadow: none;
}

/* Stats */
.stam-stat-card {
	position: relative;
	overflow: hidden;
}

.stam-stat-card::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 4px;
	background: var(--stam-aqua);
}

.stam-stat-card:nth-child(2)::before {
	background: var(--stam-coral);
}

.stam-stat-card:nth-child(3)::before,
.stam-stat-card:nth-child(4)::before {
	background: var(--stam-slate);
}

.stam-stat-icon {
	color: var(--stam-slate);
}

.stam-stat-card strong {
	color: var(--stam-slate);
}

/* Client student management */
.stam-student-card {
	border-color: var(--stam-border);
	background: #fff;
	border-radius: 14px;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.stam-student-card:hover {
	transform: translateY(-1px);
	border-color: rgba(174,214,220,.9);
	box-shadow: 0 8px 24px rgba(74,83,107,.08);
}

.stam-student-main strong {
	color: var(--stam-slate);
}

.stam-text-link,
.stam-topic-link {
	color: var(--stam-slate) !important;
}

.stam-text-link:hover,
.stam-topic-link:hover {
	color: #30384a !important;
	text-decoration: underline;
}

.stam-status {
	border: 1px solid transparent;
}

.stam-status-pending {
	background: #fff0ed;
	color: #a9584e;
	border-color: rgba(255,154,141,.45);
}

.stam-status-approved {
	background: #e7f4f5;
	color: #4a536b;
	border-color: rgba(174,214,220,.8);
}

.stam-status-rejected {
	background: #fff0ed;
	color: #a9584e;
	border-color: rgba(255,154,141,.45);
}

/* Filters */
.stam-student-filters {
	background: var(--stam-soft);
	border-color: var(--stam-border);
	border-radius: 14px;
}

.stam-student-filters input,
.stam-student-filters select,
.stam-form input,
.stam-form select,
.stam-topic-toolbar select,
.stam-login-card form input[type="text"],
.stam-login-card form input[type="password"] {
	border-color: rgba(74,83,107,.22);
	color: var(--stam-slate);
	background: #fff;
	border-radius: 10px;
}

.stam-student-filters input:focus,
.stam-student-filters select:focus,
.stam-form input:focus,
.stam-form select:focus,
.stam-topic-toolbar select:focus,
.stam-login-card form input:focus {
	outline: 3px solid rgba(174,214,220,.55);
	border-color: var(--stam-aqua);
}

.stam-form input[readonly] {
	background: var(--stam-soft);
	border-color: var(--stam-aqua);
}

/* Registration / login */
.stam-registration-card,
.stam-login-card {
	position: relative;
	overflow: hidden;
}

.stam-registration-card::before,
.stam-login-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 5px;
	background: linear-gradient(90deg, var(--stam-aqua), var(--stam-coral), var(--stam-slate));
}

.stam-form label,
.stam-login-card form label {
	color: var(--stam-slate);
}

.stam-notice-success {
	background: #e7f4f5;
	color: var(--stam-slate);
	border: 1px solid rgba(174,214,220,.85);
}

.stam-notice-error {
	background: #fff0ed;
	color: #9d5148;
	border: 1px solid rgba(255,154,141,.65);
}

/* Student dashboard header */
.stam-student-header {
	padding: 4px 0;
}

.stam-course-banner {
	background: linear-gradient(135deg, #f4f8f9 0%, #e7f4f5 100%);
	border-color: rgba(174,214,220,.75);
	box-shadow: 0 8px 26px rgba(74,83,107,.07);
}

.stam-course-banner strong {
	color: var(--stam-slate);
}

.stam-topic-toolbar {
	border-bottom: 1px solid var(--stam-border);
	padding-bottom: 14px;
}

.stam-topic-grid {
	gap: 18px;
}

.stam-topic-card {
	border-color: var(--stam-border);
	border-radius: 16px;
	box-shadow: 0 8px 26px rgba(74,83,107,.07);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.stam-topic-card:hover {
	transform: translateY(-4px);
	border-color: rgba(174,214,220,.95);
	box-shadow: var(--stam-shadow-hover);
}

.stam-topic-card h3,
.stam-topic-card h3 a {
	color: var(--stam-slate);
}

.stam-topic-subject {
	color: var(--stam-slate);
	opacity: .7;
}

.stam-topic-number {
	background: var(--stam-aqua);
	color: var(--stam-slate);
}

/* Subject cards */
.stam-subject-grid {
	gap: 18px;
}

.stam-subject-card {
	min-height: 175px;
	border-color: var(--stam-border);
	border-radius: 18px;
	background: linear-gradient(145deg, #fff 0%, #f8fbfb 100%);
	box-shadow: 0 9px 28px rgba(74,83,107,.08);
}

.stam-subject-card::after {
	content: "";
	position: absolute;
	right: -35px;
	top: -35px;
	width: 105px;
	height: 105px;
	border-radius: 50%;
	background: rgba(174,214,220,.32);
	pointer-events: none;
}

.stam-subject-card:hover {
	border-color: var(--stam-aqua);
	box-shadow: var(--stam-shadow-hover);
}

.stam-subject-card:nth-child(3n+2)::after {
	background: rgba(255,154,141,.25);
}

.stam-subject-icon {
	background: var(--stam-aqua);
	color: var(--stam-slate);
	border-radius: 14px;
	position: relative;
	z-index: 1;
}

.stam-subject-card:nth-child(3n+2) .stam-subject-icon {
	background: var(--stam-coral);
}

.stam-subject-card:nth-child(3n+3) .stam-subject-icon {
	background: var(--stam-slate);
	color: #fff;
}

.stam-subject-name,
.stam-subject-count {
	position: relative;
	z-index: 1;
}

.stam-subject-name {
	color: var(--stam-slate);
}

.stam-subject-count {
	color: var(--stam-slate);
	opacity: .68;
}

.stam-subject-arrow {
	color: var(--stam-slate);
	z-index: 2;
}

/* Learning / topic list */
.stam-learning-header {
	background: linear-gradient(135deg, #fff 0%, #f4f8f9 100%);
}

.stam-learning-header h2 {
	color: var(--stam-slate);
}

.stam-back-link {
	color: var(--stam-slate) !important;
}

.stam-back-link:hover {
	color: #30384a !important;
}

/* Topic page */
.stam-student-topic-page {
	background: linear-gradient(180deg, #f4f8f9 0%, #fff 420px);
}

.stam-topic-back {
	border-color: rgba(174,214,220,.9);
	background: #fff;
	color: var(--stam-slate) !important;
	border-radius: 12px;
	box-shadow: 0 5px 16px rgba(74,83,107,.06);
}

.stam-topic-back:hover {
	background: var(--stam-aqua);
	border-color: var(--stam-aqua);
}

.stam-topic-page-header {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #fff 0%, #e7f4f5 100%);
}

.stam-topic-page-header::after {
	content: "";
	position: absolute;
	right: -50px;
	top: -70px;
	width: 180px;
	height: 180px;
	border-radius: 50%;
	background: rgba(255,154,141,.24);
	pointer-events: none;
}

.stam-topic-page-header h1 {
	position: relative;
	z-index: 1;
	color: var(--stam-slate);
}

.stam-topic-video-card {
	border-radius: 18px;
	padding: 20px;
}

.stam-topic-video-card h2 {
	color: var(--stam-slate);
}

.stam-video-embed {
	border-radius: 14px;
	box-shadow: 0 8px 25px rgba(74,83,107,.12);
}

.stam-topic-bottom-navigation {
	padding-top: 2px;
}

.stam-topic-bottom-navigation .stam-topic-back {
	background: var(--stam-slate);
	color: #fff !important;
	border-color: var(--stam-slate);
}

.stam-topic-bottom-navigation .stam-topic-back:hover {
	background: #3f475d;
}

/* Empty / access states */
.stam-empty,
.stam-topic-empty,
.stam-topic-empty-content,
.stam-student-notice,
.stam-access-card {
	border-color: rgba(174,214,220,.7);
}

.stam-empty {
	background: var(--stam-soft);
}

.stam-status-icon {
	background: var(--stam-aqua);
	color: var(--stam-slate);
}

/* Small help text */
.stam-field-help {
	color: var(--stam-slate);
}

/* Smooth global feel inside plugin */
.stam-dashboard *,
.stam-registration *,
.stam-student-dashboard *,
.stam-student-topic-page * {
	-webkit-tap-highlight-color: transparent;
}

@media (max-width: 639px) {
	.stam-dashboard-header,
	.stam-panel,
	.stam-registration-card,
	.stam-login-card,
	.stam-topic-page-header,
	.stam-topic-video-card {
		border-radius: 14px;
	}

	.stam-subject-card {
		min-height: 150px;
		padding: 18px;
	}

	.stam-student-topic-page {
		background: linear-gradient(180deg, #f4f8f9 0%, #fff 300px);
	}
}


/* =========================================================
   STAM 1.8.1 — Premium Student Topic Page
   ========================================================= */
.stam-student-topic-page {
	padding: 28px 18px 60px;
	background:
		radial-gradient(circle at 92% 5%, rgba(255,154,141,.16) 0, rgba(255,154,141,0) 260px),
		radial-gradient(circle at 5% 18%, rgba(174,214,220,.20) 0, rgba(174,214,220,0) 300px),
		#f7fafb;
}

.stam-student-topic-shell {
	max-width: 980px;
	margin: 0 auto;
}

.stam-topic-navigation {
	margin-bottom: 14px;
}

.stam-topic-back {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 8px 15px 8px 9px;
	border: 1px solid rgba(174,214,220,.95);
	border-radius: 15px;
	background: rgba(255,255,255,.92);
	color: var(--stam-slate) !important;
	box-shadow: 0 8px 24px rgba(74,83,107,.07);
	text-decoration: none !important;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.stam-topic-back:hover {
	transform: translateY(-2px);
	border-color: var(--stam-coral);
	box-shadow: 0 12px 28px rgba(74,83,107,.11);
}

.stam-topic-back-icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	border-radius: 10px;
	background: var(--stam-aqua);
	color: var(--stam-slate);
	font-size: 20px;
	line-height: 1;
}

.stam-topic-back small,
.stam-topic-back strong {
	display: block;
	line-height: 1.2;
}

.stam-topic-back small {
	margin-bottom: 2px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	opacity: .62;
}

.stam-topic-back strong {
	font-size: 13px;
}

.stam-topic-page-header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 190px;
	margin-bottom: 30px;
	padding: 32px 34px;
	overflow: hidden;
	border: 1px solid rgba(174,214,220,.75);
	border-radius: 26px;
	background: linear-gradient(135deg, #fff 0%, #eef8f9 62%, #e3f2f4 100%);
	box-shadow: 0 18px 48px rgba(74,83,107,.10);
}

.stam-topic-page-header::before,
.stam-topic-page-header::after {
	content: "";
	position: absolute;
	border-radius: 999px;
	pointer-events: none;
}

.stam-topic-page-header::before {
	right: -90px;
	top: -120px;
	width: 300px;
	height: 300px;
	background: rgba(255,154,141,.18);
}

.stam-topic-page-header::after {
	right: 120px;
	bottom: -105px;
	width: 190px;
	height: 190px;
	background: rgba(174,214,220,.30);
}

.stam-topic-header-copy {
	position: relative;
	z-index: 2;
	max-width: 720px;
}

.stam-topic-meta-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.stam-topic-subject-pill,
.stam-topic-video-count,
.stam-topic-total-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .03em;
}

.stam-topic-subject-pill {
	padding: 7px 11px;
	background: var(--stam-slate);
	color: #fff;
}

.stam-topic-subject-pill span {
	color: var(--stam-coral);
	font-size: 8px;
}

.stam-topic-video-count {
	padding: 7px 11px;
	background: rgba(174,214,220,.55);
	color: var(--stam-slate);
}

.stam-topic-page-header h1 {
	position: relative;
	z-index: 2;
	margin: 0;
	color: var(--stam-slate);
	font-size: clamp(30px, 5vw, 48px);
	font-weight: 800;
	letter-spacing: -.025em;
	line-height: 1.08;
}

.stam-topic-header-subtitle {
	position: relative;
	z-index: 2;
	max-width: 600px;
	margin: 12px 0 0;
	color: var(--stam-slate);
	font-size: 15px;
	line-height: 1.65;
	opacity: .72;
}

.stam-topic-header-mark {
	position: relative;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 94px;
	height: 94px;
	flex: 0 0 94px;
	border-radius: 28px;
	background: var(--stam-coral);
	color: var(--stam-slate);
	box-shadow: 0 18px 32px rgba(255,154,141,.32);
	transform: rotate(5deg);
}

.stam-topic-header-mark span {
	font-size: 32px;
	transform: rotate(-5deg);
}

.stam-topic-content-intro {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 18px;
	margin: 0 2px 16px;
}

.stam-topic-section-label {
	display: block;
	margin-bottom: 4px;
	color: #718094;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .15em;
}

.stam-topic-content-intro h2 {
	margin: 0;
	color: var(--stam-slate);
	font-size: 24px;
	line-height: 1.2;
}

.stam-topic-total-badge {
	padding: 8px 12px;
	background: var(--stam-aqua);
	color: var(--stam-slate);
	white-space: nowrap;
}

.stam-topic-videos {
	display: grid;
	gap: 22px;
}

.stam-topic-video-card {
	padding: 0;
	overflow: hidden;
	border: 1px solid rgba(174,214,220,.7);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 14px 38px rgba(74,83,107,.08);
}

.stam-topic-video-heading {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 18px 20px 16px;
}

.stam-topic-video-number {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	border-radius: 13px;
	background: var(--stam-slate);
	color: #fff;
	font-size: 12px;
	font-weight: 900;
}

.stam-topic-video-title-wrap {
	min-width: 0;
}

.stam-topic-video-label {
	display: block;
	margin-bottom: 3px;
	color: var(--stam-coral);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.stam-topic-video-card h2 {
	margin: 0;
	color: var(--stam-slate);
	font-size: clamp(18px, 3vw, 23px);
	font-weight: 800;
	line-height: 1.3;
}

.stam-topic-video-player {
	padding: 0 12px 12px;
}

.stam-topic-video-player .stam-video-embed {
	border-radius: 15px;
	box-shadow: none;
}

.stam-topic-bottom-navigation {
	margin-top: 28px;
}

.stam-topic-bottom-back {
	width: 100%;
	justify-content: center;
	min-height: 64px;
	padding: 9px 18px;
	border-color: var(--stam-slate);
	background: var(--stam-slate);
	color: #fff !important;
}

.stam-topic-bottom-back .stam-topic-back-icon {
	background: var(--stam-coral);
}

.stam-topic-bottom-back small {
	color: rgba(255,255,255,.62);
}

.stam-topic-bottom-back strong {
	color: #fff;
	font-size: 14px;
}

.stam-topic-empty-content {
	padding: 50px 28px;
	border: 1px solid rgba(174,214,220,.7);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 14px 38px rgba(74,83,107,.08);
	text-align: center;
}

.stam-topic-empty-icon {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	margin: 0 auto 15px;
	border-radius: 18px;
	background: var(--stam-aqua);
	color: var(--stam-slate);
	font-size: 20px;
}

.stam-topic-empty-content h2 {
	margin: 0 0 8px;
	color: var(--stam-slate);
}

.stam-topic-empty-content p {
	max-width: 520px;
	margin: 0 auto 22px;
	color: var(--stam-slate);
	opacity: .7;
}

@media (max-width: 700px) {
	.stam-student-topic-page {
		padding: 18px 12px 42px;
	}
	.stam-topic-page-header {
		min-height: 0;
		padding: 25px 22px;
		border-radius: 21px;
	}
	.stam-topic-header-mark {
		width: 66px;
		height: 66px;
		flex-basis: 66px;
		border-radius: 20px;
	}
	.stam-topic-header-mark span {
		font-size: 23px;
	}
	.stam-topic-header-subtitle {
		font-size: 14px;
	}
	.stam-topic-video-card {
		border-radius: 18px;
	}
	.stam-topic-video-heading {
		padding: 15px 15px 13px;
		gap: 11px;
	}
	.stam-topic-video-number {
		width: 38px;
		height: 38px;
		flex-basis: 38px;
		border-radius: 11px;
	}
	.stam-topic-video-player {
		padding: 0 8px 8px;
	}
}

@media (max-width: 480px) {
	.stam-topic-page-header {
		padding: 21px 18px;
	}
	.stam-topic-header-mark {
		display: none;
	}
	.stam-topic-content-intro {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}
	.stam-topic-content-intro h2 {
		font-size: 21px;
	}
	.stam-topic-total-badge {
		font-size: 10px;
	}
	.stam-topic-back {
		max-width: 100%;
	}
}


/* =========================================================
   STAM 1.8.2 — Modern Student Topic Page
   Theme-isolated layout. Uses:
   Aqua  #AED6DC | Coral #FF9A8D | Slate #4A536B
   ========================================================= */

.stam-modern-topic-page,
.stam-modern-topic-page * {
	box-sizing: border-box;
}

.stam-modern-topic-page {
	--stam-m-aqua: #AED6DC;
	--stam-m-coral: #FF9A8D;
	--stam-m-slate: #4A536B;
	--stam-m-bg: #F6FAFB;
	--stam-m-border: rgba(74,83,107,.10);
	width: 100%;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background:
		radial-gradient(circle at 88% 0%, rgba(255,154,141,.14), transparent 300px),
		radial-gradient(circle at 0% 22%, rgba(174,214,220,.18), transparent 340px),
		var(--stam-m-bg);
	color: var(--stam-m-slate);
}

.stam-modern-topic-app {
	width: min(1440px, calc(100% - 40px));
	margin: 0 auto;
	padding: 28px 0 56px;
}

.stam-modern-topic-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 24px;
}

.stam-modern-back-link {
	display: inline-flex !important;
	align-items: center;
	gap: 11px;
	padding: 7px 14px 7px 7px !important;
	border: 1px solid rgba(174,214,220,.9);
	border-radius: 14px !important;
	background: rgba(255,255,255,.94);
	color: var(--stam-m-slate) !important;
	text-decoration: none !important;
	box-shadow: 0 7px 22px rgba(74,83,107,.06);
}

.stam-modern-back-link:hover {
	transform: translateY(-1px);
	border-color: var(--stam-m-coral);
}

.stam-modern-back-arrow {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 11px;
	background: var(--stam-m-aqua);
	font-size: 21px;
}

.stam-modern-back-link small,
.stam-modern-back-link strong {
	display: block;
	line-height: 1.15;
}

.stam-modern-back-link small {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .1em;
	opacity: .6;
}

.stam-modern-back-link strong {
	font-size: 13px;
}

.stam-modern-student-chip {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 6px 12px 6px 6px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--stam-m-border);
	font-size: 13px;
	font-weight: 700;
	color: var(--stam-m-slate);
	box-shadow: 0 7px 20px rgba(74,83,107,.05);
}

.stam-modern-avatar {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--stam-m-aqua);
	color: var(--stam-m-slate);
	font-weight: 900;
}

.stam-modern-topic-layout {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 34px;
	align-items: start;
}

.stam-modern-lesson-sidebar {
	position: sticky;
	top: 20px;
}

.stam-modern-sidebar-card,
.stam-modern-learning-card {
	border: 1px solid var(--stam-m-border);
	border-radius: 22px;
	background: rgba(255,255,255,.96);
	box-shadow: 0 14px 38px rgba(74,83,107,.07);
}

.stam-modern-sidebar-card {
	padding: 18px;
}

.stam-modern-sidebar-heading {
	padding: 3px 5px 15px;
}

.stam-modern-sidebar-heading span {
	display: block;
	color: #6596a0;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .12em;
}

.stam-modern-sidebar-heading strong {
	display: block;
	margin-top: 4px;
	color: var(--stam-m-slate);
	font-size: 13px;
	font-weight: 600;
	opacity: .65;
}

.stam-modern-lesson-list {
	display: grid;
	gap: 8px;
}

.stam-modern-lesson-item {
	display: grid;
	grid-template-columns: 38px minmax(0,1fr) 18px;
	align-items: center;
	gap: 10px;
	padding: 12px 10px;
	border-radius: 15px;
	text-decoration: none !important;
	color: var(--stam-m-slate) !important;
	border: 1px solid transparent;
	transition: .2s ease;
}

.stam-modern-lesson-item:hover {
	background: rgba(174,214,220,.20);
	border-color: rgba(174,214,220,.55);
}

.stam-modern-lesson-item.is-current {
	background: linear-gradient(135deg, rgba(174,214,220,.36), rgba(174,214,220,.16));
	border-color: rgba(174,214,220,.7);
}

.stam-modern-lesson-number {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: var(--stam-m-slate);
	color: #fff;
	font-size: 11px;
	font-weight: 900;
}

.stam-modern-lesson-item.is-current .stam-modern-lesson-number {
	background: #5ca7b3;
}

.stam-modern-lesson-info {
	min-width: 0;
}

.stam-modern-lesson-info strong {
	display: block;
	overflow: hidden;
	font-size: 13px;
	line-height: 1.35;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.stam-modern-lesson-info small {
	display: block;
	margin-top: 3px;
	font-size: 10px;
	opacity: .58;
}

.stam-modern-lesson-chevron {
	font-size: 22px;
	opacity: .4;
}

.stam-modern-learning-card {
	display: flex;
	gap: 12px;
	margin-top: 18px;
	padding: 18px;
}

.stam-modern-learning-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	flex: 0 0 46px;
	border-radius: 50%;
	background: rgba(255,154,141,.18);
	color: var(--stam-m-coral);
	font-size: 20px;
}

.stam-modern-learning-card strong {
	display: block;
	font-size: 14px;
}

.stam-modern-learning-card p {
	margin: 5px 0 0;
	font-size: 12px;
	line-height: 1.55;
	opacity: .65;
}

.stam-modern-topic-main {
	min-width: 0;
	padding: 8px 0;
}

.stam-modern-topic-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	padding: 7px 12px 7px 7px;
	border-radius: 999px;
	background: rgba(174,214,220,.22);
	color: #418c99;
	font-size: 12px;
	font-weight: 800;
}

.stam-modern-video-icon {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #fff;
	color: #4b9ba7;
	box-shadow: 0 4px 12px rgba(74,83,107,.08);
}

.stam-modern-topic-title-row h1 {
	margin: 0 !important;
	color: var(--stam-m-slate) !important;
	font-size: clamp(34px, 4.5vw, 54px) !important;
	font-weight: 800 !important;
	line-height: 1.08 !important;
	letter-spacing: -.035em;
}

.stam-modern-topic-title-row p {
	margin: 10px 0 0 !important;
	color: var(--stam-m-slate);
	font-size: 15px;
	line-height: 1.6;
	opacity: .68;
}

.stam-modern-topic-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 20px 0 38px;
}

.stam-modern-topic-stats span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	border: 1px solid var(--stam-m-border);
	border-radius: 13px;
	background: #fff;
	box-shadow: 0 7px 18px rgba(74,83,107,.05);
	font-size: 13px;
	font-weight: 600;
}

.stam-modern-topic-stats b {
	color: var(--stam-m-coral);
	font-size: 14px;
}

.stam-modern-section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid rgba(74,83,107,.09);
}

.stam-modern-section-heading small {
	display: block;
	margin-bottom: 4px;
	color: #718094;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .15em;
}

.stam-modern-section-heading h2 {
	position: relative;
	margin: 0 !important;
	padding-bottom: 10px;
	color: var(--stam-m-slate) !important;
	font-size: 27px !important;
	font-weight: 800 !important;
}

.stam-modern-section-heading h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 42px;
	height: 4px;
	border-radius: 99px;
	background: var(--stam-m-coral);
}

.stam-modern-section-heading > span {
	padding: 8px 12px;
	border-radius: 999px;
	background: var(--stam-m-aqua);
	font-size: 11px;
	font-weight: 800;
	white-space: nowrap;
}

.stam-modern-video-list {
	display: grid;
	gap: 20px;
}

.stam-modern-video-card {
	display: grid;
	grid-template-columns: minmax(240px, .78fr) minmax(360px, 1.22fr);
	gap: 28px;
	align-items: center;
	padding: 26px;
	border: 1px solid var(--stam-m-border);
	border-radius: 23px;
	background: #fff;
	box-shadow: 0 15px 42px rgba(74,83,107,.08);
}

.stam-modern-video-info {
	padding: 4px 0;
}

.stam-modern-video-label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 15px;
}

.stam-modern-video-label span {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--stam-m-aqua);
	color: var(--stam-m-slate);
	font-size: 11px;
	font-weight: 900;
}

.stam-modern-video-label strong {
	color: #5495a0;
	font-size: 10px;
	letter-spacing: .12em;
}

.stam-modern-video-card h3 {
	margin: 0 !important;
	color: var(--stam-m-slate) !important;
	font-size: clamp(20px, 2.2vw, 28px) !important;
	font-weight: 800 !important;
	line-height: 1.25 !important;
}

.stam-modern-video-card p {
	margin: 12px 0 20px !important;
	color: var(--stam-m-slate);
	font-size: 12px;
	opacity: .58;
}

.stam-modern-video-card p span {
	color: var(--stam-m-coral);
}

.stam-modern-watch-button,
.stam-modern-coral-button {
	display: inline-flex !important;
	align-items: center;
	gap: 9px;
	padding: 12px 18px !important;
	border: 0 !important;
	border-radius: 11px !important;
	background: var(--stam-m-coral) !important;
	color: var(--stam-m-slate) !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	text-decoration: none !important;
	box-shadow: 0 8px 18px rgba(255,154,141,.24);
}

.stam-modern-watch-button:hover,
.stam-modern-coral-button:hover {
	transform: translateY(-1px);
	filter: brightness(.98);
}

.stam-modern-video-player {
	min-width: 0;
	overflow: hidden;
	border-radius: 16px;
	background: #111;
	box-shadow: 0 9px 25px rgba(74,83,107,.15);
	aspect-ratio: 16 / 9;
}

.stam-modern-video-player iframe,
.stam-modern-video-player video,
.stam-modern-video-player embed {
	display: block;
	width: 100% !important;
	height: 100% !important;
	min-height: 0 !important;
	border: 0 !important;
}

.stam-modern-topic-footer-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 28px;
	padding: 12px;
	border: 1px solid var(--stam-m-border);
	border-radius: 17px;
	background: #fff;
}

.stam-modern-outline-button,
.stam-modern-finished-button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 48px;
	padding: 10px 17px !important;
	border-radius: 11px !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	text-decoration: none !important;
}

.stam-modern-outline-button {
	border: 1px solid #65afba !important;
	background: #fff !important;
	color: #438e9a !important;
}

.stam-modern-finished-button {
	border: 1px solid var(--stam-m-coral) !important;
	background: var(--stam-m-coral) !important;
	color: var(--stam-m-slate) !important;
}

.stam-modern-empty {
	padding: 60px 25px;
	border: 1px solid var(--stam-m-border);
	border-radius: 22px;
	background: #fff;
	text-align: center;
	box-shadow: 0 14px 35px rgba(74,83,107,.07);
}

.stam-modern-empty-icon {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	margin: 0 auto 15px;
	border-radius: 18px;
	background: var(--stam-m-aqua);
}

.stam-modern-empty h2 {
	margin: 0 0 8px !important;
	color: var(--stam-m-slate) !important;
}

.stam-modern-empty p {
	margin: 0 auto 20px !important;
	opacity: .65;
}

@media (max-width: 1050px) {
	.stam-modern-topic-layout {
		grid-template-columns: 250px minmax(0, 1fr);
		gap: 24px;
	}
	.stam-modern-video-card {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 760px) {
	.stam-modern-topic-app {
		width: min(100% - 24px, 680px);
		padding-top: 18px;
	}
	.stam-modern-topic-layout {
		grid-template-columns: 1fr;
	}
	.stam-modern-lesson-sidebar {
		position: static;
		order: 2;
	}
	.stam-modern-topic-main {
		order: 1;
	}
	.stam-modern-sidebar-card {
		padding: 14px;
	}
	.stam-modern-lesson-list {
		grid-template-columns: 1fr 1fr;
	}
	.stam-modern-learning-card {
		display: none;
	}
	.stam-modern-topic-stats {
		margin-bottom: 28px;
	}
	.stam-modern-video-card {
		padding: 16px;
		gap: 16px;
		border-radius: 18px;
	}
}

@media (max-width: 520px) {
	.stam-modern-topic-topbar {
		align-items: flex-start;
	}
	.stam-modern-student-chip {
		display: none;
	}
	.stam-modern-topic-title-row h1 {
		font-size: 34px !important;
	}
	.stam-modern-topic-stats span {
		flex: 1 1 calc(50% - 10px);
		justify-content: center;
		padding: 10px 8px;
		font-size: 11px;
	}
	.stam-modern-section-heading {
		align-items: flex-start;
		flex-direction: column;
	}
	.stam-modern-lesson-list {
		grid-template-columns: 1fr;
	}
	.stam-modern-video-card {
		padding: 13px;
	}
	.stam-modern-topic-footer-actions {
		flex-direction: column;
	}
	.stam-modern-outline-button,
	.stam-modern-finished-button {
		width: 100%;
	}
}

/* Neutralize common theme/page-builder constraints around our standalone template. */
body:has(.stam-modern-topic-page) .site-main,
body:has(.stam-modern-topic-page) .content-area,
body:has(.stam-modern-topic-page) .entry-content,
body:has(.stam-modern-topic-page) .elementor,
body:has(.stam-modern-topic-page) .elementor-section-wrap {
	max-width: none !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body:has(.stam-modern-topic-page) .entry-title {
	display: none !important;
}


/* =========================================================
   STAM 1.9.0 — Modern Student Portal
   Palette: #AED6DC / #FF9A8D / #4A536B
   ========================================================= */

.stam-student-dashboard,
.stam-student-dashboard * {
	box-sizing: border-box;
}

.stam-student-dashboard {
	--stam-aqua: #AED6DC;
	--stam-coral: #FF9A8D;
	--stam-slate: #4A536B;
	--stam-bg: #F6FAFB;
	--stam-line: rgba(74,83,107,.10);
	width: min(1180px, calc(100% - 32px)) !important;
	max-width: 1180px !important;
	margin: 0 auto !important;
	padding: 30px 0 60px !important;
	color: var(--stam-slate);
	font-family: inherit;
}

.stam-student-dashboard::before {
	content: "";
	display: block;
	position: fixed;
	z-index: -1;
	inset: 0;
	background:
		radial-gradient(circle at 92% 4%, rgba(255,154,141,.13), transparent 300px),
		radial-gradient(circle at 2% 28%, rgba(174,214,220,.18), transparent 360px),
		#F7FBFC;
	pointer-events: none;
}

/* Header */
.stam-student-dashboard .stam-student-header {
	position: relative;
	align-items: center;
	margin-bottom: 20px;
	padding: 28px 30px;
	border: 1px solid rgba(174,214,220,.65);
	border-radius: 26px;
	background:
		linear-gradient(115deg, rgba(174,214,220,.55), rgba(255,255,255,.96) 58%),
		#fff;
	box-shadow: 0 18px 45px rgba(74,83,107,.09);
	overflow: hidden;
}

.stam-student-dashboard .stam-student-header::after {
	content: "";
	position: absolute;
	width: 170px;
	height: 170px;
	right: -55px;
	top: -70px;
	border-radius: 50%;
	background: rgba(255,154,141,.28);
}

.stam-student-dashboard .stam-eyebrow {
	margin-bottom: 7px;
	color: #5c8992;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .16em;
}

.stam-student-dashboard .stam-student-header h1 {
	position: relative;
	z-index: 1;
	margin: 0 !important;
	color: var(--stam-slate) !important;
	font-size: clamp(27px, 4vw, 42px) !important;
	font-weight: 850 !important;
	line-height: 1.08 !important;
	letter-spacing: -.035em;
}

.stam-student-dashboard .stam-student-header p {
	position: relative;
	z-index: 1;
	margin: 8px 0 0 !important;
	color: var(--stam-slate);
	font-size: 14px;
	opacity: .66;
}

.stam-student-dashboard .stam-button {
	position: relative;
	z-index: 2;
	min-height: 44px;
	padding: 10px 17px;
	border: 0 !important;
	border-radius: 12px;
	background: var(--stam-slate);
	color: #fff !important;
	font-size: 12px;
	font-weight: 800;
	box-shadow: 0 8px 20px rgba(74,83,107,.18);
}

.stam-student-dashboard .stam-button-secondary {
	background: #fff !important;
	color: var(--stam-slate) !important;
	border: 1px solid rgba(74,83,107,.14) !important;
	box-shadow: none;
}

/* Course banner */
.stam-student-dashboard .stam-course-banner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 32px;
	padding: 20px 23px;
	border: 1px solid rgba(74,83,107,.09);
	border-radius: 19px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(74,83,107,.055);
	overflow: hidden;
}

.stam-student-dashboard .stam-course-banner::before {
	content: "";
	width: 5px;
	position: absolute;
	left: 0;
	top: 13px;
	bottom: 13px;
	border-radius: 0 5px 5px 0;
	background: var(--stam-coral);
}

.stam-student-dashboard .stam-course-banner > div {
	padding-left: 7px;
}

.stam-student-dashboard .stam-course-banner > div > span {
	display: block;
	margin-bottom: 4px;
	color: #7a8495;
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .13em;
}

.stam-student-dashboard .stam-course-banner strong {
	font-size: 19px;
	font-weight: 850;
}

.stam-student-dashboard .stam-status-approved {
	background: rgba(174,214,220,.45) !important;
	color: var(--stam-slate) !important;
}

/* Subject screen */
.stam-student-dashboard .stam-topic-toolbar {
	display: flex;
	align-items: end;
	justify-content: space-between;
	margin-bottom: 18px;
}

.stam-student-dashboard .stam-topic-toolbar h2,
.stam-student-dashboard .stam-learning-header h2 {
	margin: 0 !important;
	color: var(--stam-slate) !important;
	font-size: 29px !important;
	font-weight: 850 !important;
	letter-spacing: -.025em;
}

.stam-student-dashboard .stam-topic-toolbar p,
.stam-student-dashboard .stam-learning-header p {
	margin: 6px 0 0 !important;
	color: var(--stam-slate);
	font-size: 13px;
	opacity: .62;
}

.stam-student-dashboard .stam-subject-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0,1fr));
	gap: 16px;
}

.stam-student-dashboard .stam-subject-card {
	position: relative;
	min-height: 185px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	padding: 22px;
	border: 1px solid rgba(74,83,107,.08);
	border-radius: 22px;
	background: #fff;
	color: var(--stam-slate) !important;
	text-decoration: none !important;
	box-shadow: 0 12px 32px rgba(74,83,107,.065);
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.stam-student-dashboard .stam-subject-card::before {
	content: "";
	position: absolute;
	width: 115px;
	height: 115px;
	right: -25px;
	top: -30px;
	border-radius: 50%;
	background: rgba(174,214,220,.42);
}

.stam-student-dashboard .stam-subject-card:nth-child(2n)::before {
	background: rgba(255,154,141,.28);
}

.stam-student-dashboard .stam-subject-card:hover {
	transform: translateY(-4px);
	border-color: rgba(174,214,220,.85);
	box-shadow: 0 20px 42px rgba(74,83,107,.11);
}

.stam-student-dashboard .stam-subject-icon {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: auto;
	border-radius: 15px;
	background: var(--stam-aqua);
	font-size: 21px;
}

.stam-student-dashboard .stam-subject-card:nth-child(2n) .stam-subject-icon {
	background: rgba(255,154,141,.48);
}

.stam-student-dashboard .stam-subject-name {
	position: relative;
	z-index: 1;
	margin-top: 20px;
	font-size: 20px;
	font-weight: 850;
}

.stam-student-dashboard .stam-subject-count {
	position: relative;
	z-index: 1;
	margin-top: 5px;
	color: #7a8495;
	font-size: 12px;
	font-weight: 600;
}

.stam-student-dashboard .stam-subject-arrow {
	position: absolute;
	z-index: 2;
	right: 19px;
	bottom: 18px;
	display: grid;
	place-items: center;
	width: 35px;
	height: 35px;
	border-radius: 50%;
	background: var(--stam-slate);
	color: #fff;
	font-size: 18px;
}

/* Selected subject */
.stam-student-dashboard .stam-learning-header {
	margin-bottom: 22px;
	padding: 5px 0 20px;
	border-bottom: 1px solid rgba(74,83,107,.09);
}

.stam-student-dashboard .stam-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 17px;
	padding: 8px 12px;
	border-radius: 10px;
	background: rgba(174,214,220,.22);
	color: #4f8f99 !important;
	font-size: 11px;
	font-weight: 800;
	text-decoration: none !important;
}

.stam-student-dashboard .stam-topic-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0,1fr));
	gap: 14px;
}

.stam-student-dashboard .stam-topic-card {
	position: relative;
	display: grid;
	grid-template-columns: 46px minmax(0,1fr) 24px;
	align-items: center;
	gap: 15px;
	min-width: 0;
	padding: 19px;
	border: 1px solid rgba(74,83,107,.08);
	border-radius: 19px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(74,83,107,.055);
	transition: transform .18s ease, box-shadow .18s ease;
}

.stam-student-dashboard .stam-topic-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 35px rgba(74,83,107,.09);
}

.stam-student-dashboard .stam-topic-number {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: var(--stam-aqua);
	color: var(--stam-slate);
	font-size: 12px;
	font-weight: 900;
}

.stam-student-dashboard .stam-topic-card:nth-child(2n) .stam-topic-number {
	background: rgba(255,154,141,.48);
}

.stam-student-dashboard .stam-topic-card-body {
	min-width: 0;
}

.stam-student-dashboard .stam-topic-card-label {
	display: block;
	margin-bottom: 4px;
	color: #78919a;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: .13em;
}

.stam-student-dashboard .stam-topic-card h3 {
	margin: 0 !important;
	font-size: 16px !important;
	line-height: 1.35 !important;
	font-weight: 800 !important;
}

.stam-student-dashboard .stam-topic-card h3 a {
	color: var(--stam-slate) !important;
	text-decoration: none !important;
}

.stam-student-dashboard .stam-topic-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 9px;
	color: #4d919d !important;
	font-size: 11px;
	font-weight: 800;
	text-decoration: none !important;
}

.stam-student-dashboard .stam-topic-card-arrow {
	font-size: 25px;
	opacity: .35;
}

/* Empty state */
.stam-student-dashboard .stam-topic-empty {
	grid-column: 1 / -1;
	padding: 50px 25px;
	border: 1px dashed rgba(74,83,107,.18);
	border-radius: 20px;
	background: rgba(255,255,255,.7);
}

.stam-student-dashboard .stam-topic-empty h3 {
	margin: 0 0 7px;
	font-size: 20px;
}

.stam-student-dashboard .stam-topic-empty p {
	margin: 0;
	font-size: 13px;
	opacity: .62;
}

/* Login + pending */
.stam-student-dashboard .stam-login-card {
	max-width: 510px;
	margin: 45px auto;
	padding: 34px;
	border: 1px solid rgba(174,214,220,.65);
	border-radius: 26px;
	background: rgba(255,255,255,.96);
	box-shadow: 0 20px 50px rgba(74,83,107,.10);
}

.stam-student-dashboard .stam-login-card h1 {
	margin: 0 0 9px !important;
	color: var(--stam-slate) !important;
	font-size: 34px !important;
	font-weight: 850 !important;
}

.stam-student-dashboard .stam-login-card > p {
	margin: 0 0 24px !important;
	font-size: 13px;
	line-height: 1.65;
	opacity: .65;
}

.stam-student-dashboard .stam-login-card form input[type="text"],
.stam-student-dashboard .stam-login-card form input[type="password"] {
	min-height: 50px;
	border: 1px solid rgba(74,83,107,.14);
	border-radius: 12px;
	background: #fbfdfe;
}

.stam-student-dashboard .stam-login-card form input[type="submit"] {
	min-height: 50px;
	background: var(--stam-slate);
	color: #fff;
}

.stam-student-dashboard .stam-student-notice {
	border: 1px solid rgba(255,154,141,.35);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 14px 35px rgba(74,83,107,.07);
}

.stam-student-dashboard .stam-status-icon {
	background: rgba(255,154,141,.35);
	color: var(--stam-slate);
}

/* Mobile */
@media (max-width: 900px) {
	.stam-student-dashboard .stam-subject-grid {
		grid-template-columns: repeat(2, minmax(0,1fr));
	}
	.stam-student-dashboard .stam-topic-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.stam-student-dashboard {
		width: min(100% - 20px, 620px) !important;
		padding: 16px 0 40px !important;
	}
	.stam-student-dashboard .stam-student-header {
		align-items: flex-start;
		flex-direction: column;
		padding: 22px;
		border-radius: 22px;
	}
	.stam-student-dashboard .stam-student-header .stam-button {
		width: auto;
	}
	.stam-student-dashboard .stam-course-banner {
		align-items: flex-start;
		flex-direction: column;
	}
	.stam-student-dashboard .stam-subject-grid {
		grid-template-columns: 1fr;
	}
	.stam-student-dashboard .stam-subject-card {
		min-height: 155px;
	}
	.stam-student-dashboard .stam-topic-card {
		grid-template-columns: 42px minmax(0,1fr) 18px;
		padding: 15px;
		gap: 11px;
	}
	.stam-student-dashboard .stam-topic-number {
		width: 42px;
		height: 42px;
	}
	.stam-student-dashboard .stam-login-card {
		padding: 24px 20px;
	}
}

/* =========================================================
   STAM 1.9.1 — Subject Detail Spacing Fix
   ========================================================= */
.stam-student-dashboard .stam-learning-header {
	box-sizing: border-box;
	width: 100%;
	margin: 0 0 24px !important;
	padding: 28px 30px !important;
	border-radius: 22px !important;
	border: 1px solid rgba(74,83,107,.09) !important;
	background: linear-gradient(135deg, #fff 0%, #f4f8f9 100%) !important;
	box-shadow: 0 12px 32px rgba(74,83,107,.065) !important;
}

.stam-student-dashboard .stam-learning-header > div {
	min-width: 0;
	width: 100%;
}

.stam-student-dashboard .stam-learning-header .stam-back-link {
	margin: 0 0 20px !important;
}

.stam-student-dashboard .stam-learning-header .stam-eyebrow {
	display: block;
	margin: 0 0 6px !important;
	padding: 0 !important;
}

.stam-student-dashboard .stam-learning-header h2 {
	margin: 0 !important;
	padding: 0 !important;
	font-size: clamp(28px, 4vw, 38px) !important;
	line-height: 1.12 !important;
}

.stam-student-dashboard .stam-learning-header p {
	margin: 8px 0 0 !important;
	padding: 0 !important;
}

@media (max-width: 640px) {
	.stam-student-dashboard .stam-learning-header {
		margin-bottom: 18px !important;
		padding: 22px 20px !important;
		border-radius: 19px !important;
	}
	.stam-student-dashboard .stam-learning-header .stam-back-link {
		margin-bottom: 16px !important;
	}
}

/* STAM 1.10.0 — Frontend Topic Manager */
.stam-dashboard .stam-panel-subtitle{margin:5px 0 0;color:#7a8495;font-size:12px}
.stam-topic-manager{scroll-margin-top:24px}
.stam-topic-manager-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(340px,.75fr);gap:20px;align-items:start}
.stam-topic-list-panel,.stam-topic-editor-panel{min-width:0;padding:20px;border:1px solid rgba(74,83,107,.08);border-radius:22px;background:#fff;box-shadow:0 12px 32px rgba(74,83,107,.055)}
.stam-topic-editor-panel{position:sticky;top:20px}
.stam-topic-filters{display:grid;grid-template-columns:1.3fr 1fr 1fr auto;align-items:end;gap:10px;margin-bottom:16px;padding:14px;border-radius:16px;background:#f7fbfc}
.stam-topic-filters label,.stam-topic-form label{display:block;margin-bottom:6px;color:#667486;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
.stam-topic-filters input,.stam-topic-filters select,.stam-topic-form input,.stam-topic-form select{width:100%;min-height:44px;padding:9px 12px;border:1px solid rgba(74,83,107,.13);border-radius:11px;background:#fff;color:#4A536B;font:inherit;font-size:13px;outline:none}
.stam-topic-filters input:focus,.stam-topic-filters select:focus,.stam-topic-form input:focus,.stam-topic-form select:focus{border-color:#AED6DC;box-shadow:0 0 0 3px rgba(174,214,220,.22)}
.stam-frontend-topic-list{display:grid;gap:9px}
.stam-frontend-topic-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:13px;padding:13px;border:1px solid rgba(74,83,107,.075);border-radius:15px;background:#fff;transition:transform .18s ease,box-shadow .18s ease}
.stam-frontend-topic-row:hover{transform:translateY(-1px);box-shadow:0 10px 25px rgba(74,83,107,.065)}
.stam-frontend-topic-index{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:rgba(174,214,220,.55);color:#4A536B;font-size:11px;font-weight:900}
.stam-frontend-topic-row:nth-child(2n) .stam-frontend-topic-index{background:rgba(255,154,141,.35)}
.stam-frontend-topic-info{min-width:0}
.stam-frontend-topic-info>strong{display:block;overflow:hidden;color:#4A536B;font-size:14px;font-weight:850;text-overflow:ellipsis;white-space:nowrap}
.stam-frontend-topic-info>div{display:flex;flex-wrap:wrap;gap:5px;margin-top:5px}
.stam-frontend-topic-info>div>span{padding:4px 7px;border-radius:7px;background:#f3f7f8;color:#758190;font-size:9px;font-weight:700}
.stam-topic-status-publish{background:rgba(174,214,220,.45)!important;color:#527c83!important}
.stam-topic-status-draft,.stam-topic-status-pending{background:rgba(255,154,141,.27)!important;color:#9b625a!important}
.stam-frontend-topic-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}
.stam-topic-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:18px;padding-bottom:15px;border-bottom:1px solid rgba(74,83,107,.08)}
.stam-topic-editor-head h3{margin:2px 0 0;color:#4A536B;font-size:21px;font-weight:850}
.stam-topic-editor-badge{padding:6px 9px;border-radius:8px;background:rgba(174,214,220,.42);color:#527c83;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.stam-topic-form{display:grid;gap:13px}
.stam-topic-form-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.stam-topic-video-fields{display:grid;gap:8px;margin-top:3px}
.stam-topic-video-field{display:grid;grid-template-columns:30px 1fr;gap:9px;padding:10px;border:1px solid rgba(74,83,107,.07);border-radius:13px;background:#f9fcfc}
.stam-topic-video-field>div:last-child{grid-column:2}
.stam-topic-video-number{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:rgba(255,154,141,.32);color:#4A536B;font-size:10px;font-weight:900}
.stam-topic-form-actions{display:flex;gap:8px;padding-top:5px}
.stam-topic-form-actions .stam-button{flex:1;text-align:center}
.stam-dashboard .stam-danger{background:#fff1ef!important;color:#a9574d!important;border:1px solid rgba(255,154,141,.35)!important;box-shadow:none}
@media(max-width:1050px){.stam-topic-manager-grid{grid-template-columns:1fr}.stam-topic-editor-panel{position:static}.stam-topic-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.stam-topic-list-panel,.stam-topic-editor-panel{padding:14px;border-radius:18px}.stam-topic-filters{grid-template-columns:1fr;padding:11px}.stam-frontend-topic-row{grid-template-columns:38px minmax(0,1fr)}.stam-frontend-topic-index{width:38px;height:38px}.stam-frontend-topic-actions{grid-column:2;justify-content:flex-start}.stam-topic-form-two{grid-template-columns:1fr}}

/* STAM 1.11.0 — multi-course Topic assignment */
.stam-topic-form select[multiple] {
	min-height: 126px;
	padding: 7px;
}
.stam-topic-form select[multiple] option {
	padding: 8px 9px;
	border-radius: 7px;
}
.stam-field-help {
	display: block;
	margin-top: 6px;
	color: #8993a1;
	font-size: 10px;
	line-height: 1.45;
}

.stam-course-checklist {
	display: grid;
	grid-template-columns: repeat(2, minmax(0,1fr));
	gap: 7px;
	padding: 9px;
	border: 1px solid rgba(74,83,107,.13);
	border-radius: 12px;
	background: #f9fcfc;
	max-height: 190px;
	overflow: auto;
}
.stam-course-check {
	display: flex !important;
	align-items: center;
	gap: 8px;
	margin: 0 !important;
	padding: 9px 10px;
	border: 1px solid transparent;
	border-radius: 9px;
	background: #fff;
	color: #4A536B !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	cursor: pointer;
}
.stam-course-check:hover {
	border-color: rgba(174,214,220,.75);
	background: #f5fbfc;
}
.stam-course-check input {
	width: 15px !important;
	min-height: 15px !important;
	margin: 0;
	accent-color: #4A536B;
}
.stam-course-check input:checked + span {
	font-weight: 850;
}
@media (max-width: 640px) {
	.stam-course-checklist {
		grid-template-columns: 1fr;
		max-height: 230px;
	}
}

/* =========================================================
   STAM 1.12.0 - Topic Course/Subject assignment UX
   The editor sidebar is intentionally narrow, so Course and
   Subject are stacked instead of creating cramped columns.
   ========================================================= */
.stam-topic-assignment-fields {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    width: 100%;
    align-items: start;
}
.stam-topic-assignment-field {
    width: 100%;
    min-width: 0;
}
.stam-topic-assignment-field > label {
    display: block !important;
    margin: 0 0 7px !important;
}
.stam-topic-course-field .stam-course-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-height: 210px;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 9px;
}
.stam-topic-course-field .stam-course-check {
    width: 100% !important;
    min-width: 0;
    min-height: 42px;
    box-sizing: border-box;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 9px !important;
    overflow: hidden;
}
.stam-topic-course-field .stam-course-check input[type="checkbox"] {
    flex: 0 0 16px;
    width: 16px !important;
    height: 16px;
    min-width: 16px;
    min-height: 16px !important;
    margin: 0 !important;
}
.stam-topic-course-field .stam-course-check span {
    min-width: 0;
    flex: 1 1 auto;
    display: block;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.25;
}
.stam-topic-subject-field select {
    width: 100% !important;
    min-height: 48px;
    box-sizing: border-box;
}
.stam-topic-assignment-field .stam-field-help {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 7px;
    line-height: 1.45;
}
@media (max-width: 520px) {
    .stam-topic-assignment-fields { gap: 12px !important; }
    .stam-topic-course-field .stam-course-checklist {
        grid-template-columns: 1fr;
        max-height: 240px;
        gap: 6px;
        padding: 8px;
    }
    .stam-topic-course-field .stam-course-check {
        min-height: 44px;
        padding: 10px !important;
        font-size: 12px !important;
    }
}


/* =========================================================
   STAM 1.13.0 — Student Portal UI
   Palette: #AED6DC / #FF9A8D / #4A536B
   ========================================================= */

.stam-student-dashboard {
	--stam-mist: #aed6dc;
	--stam-coral: #ff9a8d;
	--stam-ink: #4a536b;
	--stam-paper: #ffffff;
	--stam-soft: #f5fafb;
	--stam-line: rgba(74,83,107,.13);
	max-width: 1180px;
	padding: 28px 18px 50px;
	color: var(--stam-ink);
}

.stam-student-dashboard a {
	color: var(--stam-ink);
}

.stam-student-header {
	position: relative;
	overflow: hidden;
	margin-bottom: 22px;
	padding: 28px 30px;
	border: 1px solid var(--stam-line);
	border-radius: 24px;
	background: linear-gradient(135deg, #ffffff 0%, #f4fafb 100%);
	box-shadow: 0 12px 35px rgba(74,83,107,.08);
}

.stam-student-header::after {
	content: "";
	position: absolute;
	right: -50px;
	top: -70px;
	width: 190px;
	height: 190px;
	border-radius: 50%;
	background: var(--stam-mist);
	opacity: .42;
	pointer-events: none;
}

.stam-student-header > div {
	position: relative;
	z-index: 1;
}

.stam-student-header .stam-button {
	position: relative;
	z-index: 2;
}

.stam-student-header h1 {
	color: var(--stam-ink);
	font-size: clamp(25px, 4vw, 36px);
	font-weight: 800;
	letter-spacing: -.025em;
}

.stam-student-header p {
	color: rgba(74,83,107,.68);
	font-size: 14px;
}

.stam-student-header .stam-eyebrow {
	color: var(--stam-coral);
}

.stam-course-banner {
	position: relative;
	margin-bottom: 28px;
	padding: 20px 22px;
	border: 1px solid rgba(74,83,107,.10);
	border-radius: 18px;
	background: var(--stam-ink);
	box-shadow: 0 12px 28px rgba(74,83,107,.16);
	color: #fff;
}

.stam-course-banner span:first-child {
	color: rgba(255,255,255,.68);
}

.stam-course-banner strong {
	color: #fff;
	font-size: 21px;
}

.stam-course-banner .stam-status-approved {
	border: 0;
	background: var(--stam-coral);
	color: #fff;
	padding: 8px 13px;
	border-radius: 999px;
}

.stam-topic-toolbar {
	margin: 8px 0 18px;
	padding: 0 3px;
}

.stam-topic-toolbar h2 {
	color: var(--stam-ink);
	font-size: 27px;
	font-weight: 800;
	letter-spacing: -.02em;
}

.stam-topic-toolbar p,
.stam-learning-header p {
	color: rgba(74,83,107,.62);
}

.stam-subject-grid {
	grid-template-columns: repeat(3, minmax(0,1fr));
	gap: 18px;
}

.stam-subject-card {
	min-height: 176px;
	padding: 22px;
	border: 1px solid var(--stam-line);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 8px 25px rgba(74,83,107,.065);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.stam-subject-card:hover,
.stam-subject-card:focus-visible {
	transform: translateY(-4px);
	border-color: rgba(255,154,141,.55);
	box-shadow: 0 15px 34px rgba(74,83,107,.12);
	outline: none;
}

.stam-subject-icon {
	width: 48px;
	height: 48px;
	margin-bottom: 22px;
	border-radius: 15px;
	background: var(--stam-mist);
	color: var(--stam-ink);
	font-size: 21px;
}

.stam-subject-name {
	color: var(--stam-ink);
	font-size: 20px;
	font-weight: 800;
}

.stam-subject-count {
	color: rgba(74,83,107,.62);
	font-size: 13px;
}

.stam-subject-arrow {
	right: 21px;
	bottom: 18px;
	color: var(--stam-coral);
	font-size: 23px;
}

.stam-learning-header {
	margin-bottom: 18px;
	padding: 24px;
	border: 1px solid var(--stam-line);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 8px 25px rgba(74,83,107,.06);
}

.stam-back-link {
	color: var(--stam-ink) !important;
	padding: 7px 11px;
	border-radius: 9px;
	background: var(--stam-soft);
}

.stam-learning-header .stam-eyebrow {
	color: var(--stam-coral);
}

.stam-learning-header h2 {
	color: var(--stam-ink);
	font-size: clamp(25px,4vw,32px);
	font-weight: 800;
}

.stam-topic-grid {
	grid-template-columns: repeat(2, minmax(0,1fr));
	gap: 16px;
}

.stam-topic-card {
	position: relative;
	min-height: 155px;
	padding: 21px;
	border: 1px solid var(--stam-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 7px 22px rgba(74,83,107,.06);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.stam-topic-card:hover {
	transform: translateY(-3px);
	border-color: rgba(174,214,220,.95);
	box-shadow: 0 13px 30px rgba(74,83,107,.11);
}

.stam-topic-number {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--stam-mist);
	color: var(--stam-ink);
}

.stam-topic-card-label {
	color: var(--stam-coral);
	font-weight: 800;
	letter-spacing: .06em;
}

.stam-topic-card h3 a {
	color: var(--stam-ink);
}

.stam-topic-link {
	color: var(--stam-coral) !important;
}

.stam-topic-card-arrow {
	color: var(--stam-coral);
}

.stam-empty {
	border-color: var(--stam-line);
	border-radius: 18px;
	background: #fff;
	color: var(--stam-ink);
}

.stam-login-card {
	border-color: var(--stam-line);
	border-radius: 22px;
	box-shadow: 0 15px 40px rgba(74,83,107,.10);
}

.stam-login-card h1 {
	color: var(--stam-ink);
}

.stam-login-card form input[type="text"],
.stam-login-card form input[type="password"] {
	border-color: var(--stam-line);
	border-radius: 11px;
}

.stam-login-card form input[type="text"]:focus,
.stam-login-card form input[type="password"]:focus {
	border-color: var(--stam-coral);
	box-shadow: 0 0 0 3px rgba(255,154,141,.18);
	outline: none;
}

.stam-login-card form input[type="submit"] {
	background: var(--stam-ink);
	color: #fff;
	border-radius: 11px;
	transition: transform .15s ease, background .15s ease;
}

.stam-login-card form input[type="submit"]:hover {
	background: #3d455a;
	transform: translateY(-1px);
}

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

@media (max-width: 639px) {
	.stam-student-dashboard {
		padding: 16px 10px 36px;
	}

	.stam-student-header {
		margin-bottom: 16px;
		padding: 22px 18px;
		border-radius: 19px;
	}

	.stam-student-header h1 {
		font-size: 27px;
	}

	.stam-course-banner {
		margin-bottom: 22px;
		padding: 17px;
		border-radius: 16px;
	}

	.stam-topic-toolbar h2 {
		font-size: 24px;
	}

	.stam-subject-grid,
	.stam-topic-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.stam-subject-card {
		min-height: 135px;
		padding: 18px;
		border-radius: 16px;
	}

	.stam-subject-icon {
		width: 42px;
		height: 42px;
		margin-bottom: 15px;
	}

	.stam-subject-name {
		font-size: 18px;
	}

	.stam-learning-header {
		padding: 18px;
		border-radius: 17px;
	}

	.stam-topic-card {
		min-height: 135px;
		padding: 17px;
		border-radius: 16px;
	}

	.stam-student-header .stam-button,
	.stam-course-banner .stam-status {
		align-self: flex-start;
	}
}


/* =========================================================
   STAM 1.14.0 — Student Learning Progress
   ========================================================= */
.stam-course-banner-progress{min-width:180px;margin-left:auto;margin-right:10px}
.stam-course-progress-label{display:block;margin-bottom:6px;color:rgba(255,255,255,.78);font-size:11px;font-weight:800;text-align:right}
.stam-progress-track{height:7px;overflow:hidden;border-radius:999px;background:rgba(74,83,107,.10)}
.stam-course-banner .stam-progress-track{background:rgba(255,255,255,.18)}
.stam-progress-track>span{display:block;height:100%;border-radius:inherit;background:#ff9a8d;transition:width .25s ease}
.stam-subject-progress{margin-top:13px;max-width:430px}
.stam-progress-meta{display:flex;justify-content:space-between;gap:10px;margin-bottom:6px;color:rgba(74,83,107,.62);font-size:11px}
.stam-progress-meta strong{color:#4a536b}
.stam-subject-card .stam-subject-progress-text{display:block;margin-top:9px;color:rgba(74,83,107,.60);font-size:11px;font-weight:700}
.stam-mini-progress{display:block;height:5px;margin-top:5px;overflow:hidden;border-radius:999px;background:rgba(74,83,107,.09)}
.stam-mini-progress>span{display:block;height:100%;border-radius:inherit;background:#aed6dc}
.stam-topic-card.is-completed{border-color:rgba(174,214,220,.9);background:linear-gradient(135deg,#fff 0%,#f8fcfc 100%)}
.stam-topic-card.is-completed .stam-topic-number{background:#4a536b;color:#fff}
.stam-completed-badge{display:inline-flex;align-items:center;gap:4px;margin-left:7px;padding:4px 7px;border-radius:999px;background:rgba(174,214,220,.45);color:#527c83;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;vertical-align:middle}
.stam-topic-complete-notice{margin:0 0 18px;padding:11px 14px;border:1px solid rgba(174,214,220,.65);border-radius:12px;background:rgba(174,214,220,.18);color:#527c83;font-size:13px;font-weight:750}
.stam-modern-complete-form{margin:0}
.stam-modern-completed-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 18px;border-radius:12px;background:#4a536b;color:#fff;font-size:13px;font-weight:800}
.stam-modern-completed-button span{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#aed6dc;color:#4a536b}
.stam-modern-finished-button{border:0;cursor:pointer;font:inherit}
.stam-modern-complete-form .stam-modern-finished-button{display:inline-flex;align-items:center;gap:10px}
.stam-modern-lesson-item.is-current .stam-modern-lesson-info small{color:#ff9a8d}
@media(max-width:800px){
 .stam-course-banner{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}
 .stam-course-banner-progress{grid-column:1/-1;grid-row:2;min-width:0;margin:0}
 .stam-course-progress-label{text-align:left}
}
@media(max-width:520px){
 .stam-course-banner{grid-template-columns:1fr}
 .stam-course-banner .stam-status-approved{justify-self:start}
 .stam-modern-topic-footer-actions{align-items:stretch;flex-direction:column}
 .stam-modern-complete-form,.stam-modern-complete-form .stam-modern-finished-button,.stam-modern-completed-button{width:100%}
 .stam-modern-complete-form .stam-modern-finished-button,.stam-modern-completed-button{justify-content:center}
 .stam-completed-badge{margin:7px 0 0;display:flex;width:max-content}
}


/* =========================================================
   STAM 1.15.0 — Lesson progress + previous/next navigation
   ========================================================= */

.stam-topic-progress-panel {
	margin: 18px 0 26px;
	padding: 16px 18px;
	border: 1px solid rgba(74, 83, 107, .12);
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(174, 214, 220, .22), #fff);
}

.stam-topic-progress-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 10px;
}

.stam-topic-progress-head > div {
	display: grid;
	gap: 3px;
}

.stam-topic-progress-head span {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .12em;
	color: #4a536b;
	opacity: .7;
}

.stam-topic-progress-head strong {
	font-size: 14px;
	color: #4a536b;
}

.stam-topic-progress-head > b {
	font-size: 18px;
	color: #4a536b;
}

.stam-topic-progress-track {
	height: 8px;
	overflow: hidden;
	border-radius: 999px;
	background: rgba(74, 83, 107, .12);
}

.stam-topic-progress-track span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #aed6dc, #ff9a8d);
	transition: width .35s ease;
}

.stam-topic-next-nav {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	gap: 12px;
	align-items: stretch;
	margin-top: 28px;
}

.stam-topic-nav-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	min-height: 78px;
	padding: 13px 15px;
	border: 1px solid rgba(74, 83, 107, .13);
	border-radius: 14px;
	background: #fff;
	color: #4a536b !important;
	text-decoration: none !important;
	box-shadow: 0 5px 18px rgba(74, 83, 107, .06);
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.stam-topic-nav-card:hover,
.stam-topic-nav-card:focus-visible {
	transform: translateY(-2px);
	border-color: #aed6dc;
	box-shadow: 0 9px 24px rgba(74, 83, 107, .1);
	outline: none;
}

.stam-topic-nav-next {
	text-align: right;
}

.stam-topic-nav-label {
	display: block;
	margin-bottom: 5px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #ff7f70;
}

.stam-topic-nav-card strong {
	display: block;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.stam-topic-nav-position {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 64px;
	padding: 8px;
	color: #4a536b;
	text-align: center;
}

.stam-topic-nav-position span {
	font-size: 14px;
	font-weight: 800;
}

.stam-topic-nav-position small {
	margin-top: 3px;
	font-size: 10px;
	opacity: .6;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.stam-topic-nav-disabled {
	visibility: hidden;
	pointer-events: none;
}

@media (max-width: 680px) {
	.stam-topic-progress-panel {
		padding: 14px;
		margin-bottom: 22px;
	}

	.stam-topic-next-nav {
		grid-template-columns: 1fr 1fr;
		gap: 9px;
	}

	.stam-topic-nav-position {
		grid-column: 1 / -1;
		grid-row: 1;
		min-height: 38px;
	}

	.stam-topic-nav-prev {
		grid-column: 1;
		grid-row: 2;
	}

	.stam-topic-nav-next {
		grid-column: 2;
		grid-row: 2;
	}

	.stam-topic-nav-disabled {
		display: none;
	}

	.stam-topic-nav-card {
		min-height: 74px;
		padding: 11px;
	}

	.stam-topic-nav-card strong {
		font-size: 12px;
	}

	.stam-topic-nav-label {
		font-size: 9px;
	}
}

@media (max-width: 420px) {
	.stam-topic-next-nav {
		grid-template-columns: 1fr;
	}

	.stam-topic-nav-position {
		grid-column: 1;
	}

	.stam-topic-nav-prev,
	.stam-topic-nav-next {
		grid-column: 1;
		grid-row: auto;
		text-align: left;
	}

	.stam-topic-nav-next {
		text-align: left;
	}
}

/* v1.16.0 — frontend Course & Subject management */
.stam-taxonomy-manager{scroll-margin-top:24px}
.stam-taxonomy-grid{display:grid;grid-template-columns:minmax(280px,.72fr) minmax(0,1.28fr);gap:20px;align-items:start}
.stam-taxonomy-form-card,.stam-taxonomy-list-card{min-width:0;padding:20px;border:1px solid rgba(74,83,107,.08);border-radius:22px;background:#fff;box-shadow:0 12px 32px rgba(74,83,107,.055)}
.stam-taxonomy-form-card{position:sticky;top:20px}
.stam-term-form{display:grid;gap:10px}
.stam-term-form label{display:block;margin-top:2px;color:#667486;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
.stam-term-form input,.stam-term-form textarea{box-sizing:border-box;width:100%;border:1px solid rgba(74,83,107,.13);border-radius:11px;background:#fff;color:#4A536B;font:inherit;font-size:13px;padding:10px 12px;outline:none}
.stam-term-form textarea{resize:vertical;min-height:100px}
.stam-term-form input:focus,.stam-term-form textarea:focus{border-color:#AED6DC;box-shadow:0 0 0 3px rgba(174,214,220,.22)}
.stam-taxonomy-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin-bottom:14px}
.stam-taxonomy-search input{box-sizing:border-box;width:100%;min-height:44px;padding:9px 12px;border:1px solid rgba(74,83,107,.13);border-radius:11px;background:#fff;color:#4A536B;font:inherit;font-size:13px}
.stam-taxonomy-search input:focus{border-color:#AED6DC;box-shadow:0 0 0 3px rgba(174,214,220,.22);outline:none}
.stam-term-list{display:grid;gap:8px}
.stam-term-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px;border:1px solid rgba(74,83,107,.075);border-radius:15px;background:#fff}
.stam-term-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:rgba(174,214,220,.55);color:#4A536B;font-size:12px;font-weight:900}
.stam-term-row:nth-child(2n) .stam-term-icon{background:rgba(255,154,141,.34)}
.stam-term-info{min-width:0}
.stam-term-info>strong{display:block;overflow:hidden;color:#4A536B;font-size:14px;font-weight:850;text-overflow:ellipsis;white-space:nowrap}
.stam-term-meta{display:flex;flex-wrap:wrap;gap:5px;margin-top:5px}
.stam-term-meta span{padding:4px 7px;border-radius:7px;background:#f3f7f8;color:#758190;font-size:9px;font-weight:700}
@media(max-width:950px){.stam-taxonomy-grid{grid-template-columns:1fr}.stam-taxonomy-form-card{position:static}}
@media(max-width:640px){.stam-taxonomy-form-card,.stam-taxonomy-list-card{padding:14px;border-radius:18px}.stam-taxonomy-search{grid-template-columns:1fr}.stam-term-row{grid-template-columns:36px minmax(0,1fr)}.stam-term-icon{width:36px;height:36px}.stam-term-row .stam-frontend-topic-actions{grid-column:2;justify-content:flex-start}}


/* v1.16.4 - access card actions */
.stam-access-actions {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
}
.stam-access-card .stam-button {
	text-decoration: none;
}
@media (max-width: 520px) {
	.stam-access-actions .stam-button {
		width: 100%;
		max-width: 220px;
	}
}

/* Client multi-page management portal */
.stam-client-page {
	max-width: 1240px;
}

.stam-page-heading {
	margin-bottom: 22px;
}

.stam-page-heading .stam-back-link {
	display: inline-flex;
	align-items: center;
	margin-bottom: 12px;
	font-size: 14px;
	font-weight: 700;
	color: #4a536b;
	text-decoration: none;
}

.stam-page-heading-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 24px;
	border: 1px solid #aed6dc;
	border-radius: 20px;
	background: linear-gradient(135deg, #ffffff 0%, #f6fbfc 100%);
	box-shadow: 0 10px 30px rgba(74, 83, 107, 0.08);
}

.stam-page-heading-row h1 {
	margin: 0 0 6px;
	color: #4a536b;
	font-size: clamp(26px, 4vw, 38px);
}

.stam-page-heading-row p {
	margin: 0;
	color: #6b7280;
}

.stam-dashboard-quick-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-top: 20px;
}

.stam-quick-card {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-height: 130px;
	padding: 22px;
	border: 1px solid #aed6dc;
	border-radius: 18px;
	background: #fff;
	color: #4a536b;
	text-decoration: none !important;
	box-shadow: 0 8px 24px rgba(74, 83, 107, 0.06);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.stam-quick-card:hover {
	transform: translateY(-3px);
	border-color: #ff9a8d;
	box-shadow: 0 12px 28px rgba(74, 83, 107, 0.11);
}

.stam-quick-card strong {
	font-size: 18px;
}

.stam-quick-card span {
	font-size: 13px;
	line-height: 1.55;
	color: #6b7280;
}

.stam-client-page .stam-panel {
	margin-top: 0;
}

.stam-client-page .stam-panel-header {
	align-items: center;
}

.stam-client-page .stam-button:not(.stam-button-secondary) {
	background: #4a536b;
}

.stam-client-page .stam-button:hover {
	background: #ff9a8d;
	color: #4a536b !important;
}

.stam-client-page .stam-button-secondary:hover {
	border-color: #ff9a8d;
	background: #fff4f2;
}

@media (max-width: 960px) {
	.stam-dashboard-quick-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 639px) {
	.stam-page-heading-row {
		align-items: flex-start;
		flex-direction: column;
		padding: 18px;
	}

	.stam-page-heading-row .stam-button {
		width: 100%;
	}

	.stam-dashboard-quick-grid {
		grid-template-columns: 1fr;
	}
}


/* v1.18 client portal breadcrumbs and optional video manager */
.stam-breadcrumbs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 700;
	color: #7a8497;
}
.stam-breadcrumbs a {
	color: #4a536b;
	text-decoration: none;
}
.stam-breadcrumbs a:hover { color: #ff9a8d; }
.stam-breadcrumbs span[aria-hidden="true"] { color: #aed6dc; font-size: 18px; line-height: 1; }
.stam-breadcrumbs .is-current { color: #4a536b; }

.stam-context-assignment {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 16px;
	margin-bottom: 14px;
	border: 1px solid #aed6dc;
	border-radius: 14px;
	background: linear-gradient(135deg, #f7fcfd, #fff);
}
.stam-context-assignment > div { display: grid; gap: 3px; }
.stam-context-assignment strong { color: #4a536b; font-size: 16px; }
.stam-context-assignment span:not(.stam-eyebrow) { color: #737d90; font-size: 13px; }

.stam-extra-videos-panel { margin-top: 20px; }
.stam-extra-videos-form {
	display: grid;
	gap: 16px;
	padding: 18px;
	border: 1px solid #aed6dc;
	border-radius: 18px;
	background: #fff;
}
.stam-extra-videos-topic { max-width: 520px; }
.stam-extra-videos-topic label,
.stam-extra-video-row label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 800;
	color: #4a536b;
}
.stam-extra-videos-topic select,
.stam-extra-video-row input {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #d8e5e8;
	border-radius: 10px;
	background: #fff;
	color: #4a536b;
}
.stam-extra-video-grid { display: grid; gap: 10px; }
.stam-extra-video-row {
	display: grid;
	grid-template-columns: 34px minmax(0,1fr) minmax(0,1fr);
	gap: 12px;
	align-items: end;
	padding: 12px;
	border: 1px solid rgba(74,83,107,.08);
	border-radius: 14px;
	background: #f9fcfc;
}
.stam-extra-video-row .stam-topic-video-number { margin-bottom: 2px; }

@media (max-width: 700px) {
	.stam-extra-video-row { grid-template-columns: 34px 1fr; }
	.stam-extra-video-row > div:last-child { grid-column: 2; }
	.stam-context-assignment { align-items: flex-start; }
}


/* STAM 1.18.1 — Dashboard topic quick-add */
.stam-dashboard-topic-create {
	margin-top: 20px;
}
.stam-dashboard-topic-create .stam-topic-form {
	max-width: 100%;
	padding: 18px;
	border: 1px solid #aed6dc;
	border-radius: 18px;
	background: #fff;
}
.stam-dashboard-topic-create .stam-topic-video-field > div:nth-child(3) {
	grid-column: 2;
}
.stam-dashboard-topic-create .stam-topic-video-field {
	grid-template-columns: 30px minmax(0,1fr);
}
.stam-dashboard-topic-create .stam-topic-video-field > div:nth-child(3) {
	grid-column: 2;
}
@media (min-width: 760px) {
	.stam-dashboard-topic-create .stam-topic-video-field {
		grid-template-columns: 30px minmax(0,1fr) minmax(0,1fr);
		align-items: end;
	}
	.stam-dashboard-topic-create .stam-topic-video-field > div:nth-child(3) {
		grid-column: 3;
	}
}


/* v1.19.0 - unified client portal navigation and Quick Management layout */
.stam-client-page-nav {
	display: flex;
	align-items: center;
	gap: 8px;
	overflow-x: auto;
	padding: 6px;
	margin: 0 0 20px;
	border: 1px solid #aed6dc;
	border-radius: 14px;
	background: #f7fbfc;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}
.stam-client-page-nav .stam-nav-item {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 44px;
	padding: 10px 15px;
	border-radius: 10px;
	color: #4a536b;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	transition: background .18s ease, color .18s ease, transform .18s ease;
}
.stam-client-page-nav .stam-nav-item:hover {
	background: #fff4f2;
	color: #4a536b;
	transform: translateY(-1px);
}
.stam-client-page-nav .stam-nav-item.is-active {
	background: #4a536b;
	color: #fff !important;
	box-shadow: 0 4px 12px rgba(74,83,107,.16);
}
.stam-dashboard .stam-dashboard-quick-grid {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 16px !important;
	width: 100%;
	margin-top: 20px;
}
.stam-dashboard .stam-dashboard-quick-grid .stam-quick-card {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start;
	justify-content: flex-start;
	width: auto;
	min-width: 0;
	min-height: 130px;
	box-sizing: border-box;
	padding: 20px !important;
	border: 1px solid #aed6dc !important;
	border-radius: 18px !important;
	background: #fff !important;
	color: #4a536b !important;
	text-decoration: none !important;
	white-space: normal !important;
	line-height: 1.45;
}
.stam-dashboard .stam-dashboard-quick-grid .stam-quick-card strong,
.stam-dashboard .stam-dashboard-quick-grid .stam-quick-card span {
	display: block;
	width: 100%;
}
.stam-dashboard .stam-dashboard-quick-grid .stam-quick-card strong {
	margin-bottom: 5px;
	font-size: 18px;
	line-height: 1.3;
}
.stam-dashboard .stam-dashboard-quick-grid .stam-quick-card span {
	font-size: 13px;
	color: #6b7280;
}
@media (max-width: 960px) {
	.stam-dashboard .stam-dashboard-quick-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}
@media (max-width: 639px) {
	.stam-client-page-nav {
		gap: 6px;
		padding: 5px;
	}
	.stam-client-page-nav .stam-nav-item {
		min-height: 42px;
		padding: 9px 12px;
		font-size: 13px;
	}
	.stam-dashboard .stam-dashboard-quick-grid {
		grid-template-columns: 1fr !important;
	}
}

/* v1.19.1: contextual actions on client page headers */
.stam-page-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;min-width:0}
@media(max-width:640px){.stam-page-heading-actions{width:100%;justify-content:flex-start}.stam-page-heading-actions .stam-button{width:auto;flex:0 1 auto}}


/* Security: registration honeypot remains invisible to real users. */
.stam-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
