/* AdminLTE bridge styles for existing view markup */

:root {
	--lpms-brand: #1e6bd6;
	--lpms-brand-dark: #0f4b9a;
	--lpms-bg: #f4f6f9;
}

.help-page,
.help-article-page {
	max-width: 1180px;
	width: 100%;
	min-width: 0;
	margin: 0 auto;
	padding: 2rem 1.25rem 3rem;
	box-sizing: border-box;
	overflow-x: clip;
}

.content-wrapper:has(.help-page),
.content-wrapper:has(.help-article-page) {
	min-width: 0;
	overflow-x: hidden;
}

.help-intro,
.help-article-header,
.help-section-heading,
.help-card-grid,
.help-topic-grid,
.help-steps,
.help-step,
.help-step-copy,
.help-step-figure,
.help-card,
.help-topic-card,
.help-card-content {
	min-width: 0;
	max-width: 100%;
}

.help-intro,
.help-article-header {
	border-left: 5px solid var(--lpms-brand);
	padding: 0.25rem 0 0.25rem 1.25rem;
	margin-bottom: 2.25rem;
	box-sizing: border-box;
}

.help-kicker {
	color: var(--lpms-brand-dark);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.help-intro h1,
.help-article-header h1 {
	margin: 0.35rem 0 0.45rem;
	font-size: 2rem;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.help-intro p,
.help-article-header p,
.help-section-heading p {
	color: #52606d;
	margin: 0;
	overflow-wrap: anywhere;
}

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

.help-section-heading h2 {
	margin: 0 0 0.25rem;
	font-size: 1.25rem;
	overflow-wrap: anywhere;
}

.help-role-heading {
	margin-top: 2.75rem;
}

.help-card-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.help-card {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	min-height: 145px;
	padding: 1.25rem;
	border: 1px solid #dbe3ec;
	border-radius: 6px;
	background: #fff;
	color: #1f2933;
	box-shadow: 0 3px 12px rgba(31, 54, 78, 0.06);
	text-decoration: none;
	box-sizing: border-box;
	transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.help-card:hover,
.help-card:focus {
	border-color: var(--lpms-brand);
	box-shadow: 0 7px 18px rgba(31, 81, 132, 0.13);
	color: #173d68;
	text-decoration: none;
	transform: translateY(-2px);
}

.help-card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	border-radius: 50%;
	background: #e8f1fb;
	color: var(--lpms-brand-dark);
	font-size: 1.1rem;
}

.help-card-content {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	flex: 1 1 auto;
}

.help-card-content strong {
	font-size: 1.05rem;
	overflow-wrap: anywhere;
}

.help-card-content span {
	color: #52606d;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.help-card-content em {
	margin-top: auto;
	color: var(--lpms-brand-dark);
	font-size: 0.82rem;
	font-style: normal;
	font-weight: 700;
}

.help-card-content em i {
	margin-left: 0.25rem;
}

.help-role-card {
	min-height: 125px;
	border-top: 3px solid #79a9d8;
}

.help-topic-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.help-topic-card {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	min-height: 135px;
	padding: 1.1rem;
	border: 1px solid #dbe3ec;
	border-radius: 6px;
	background: #fff;
	color: #1f2933;
	box-shadow: 0 3px 12px rgba(31, 54, 78, 0.06);
	text-decoration: none;
	box-sizing: border-box;
	transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.help-topic-card:hover,
.help-topic-card:focus {
	border-color: var(--lpms-brand);
	box-shadow: 0 7px 18px rgba(31, 81, 132, 0.13);
	color: #173d68;
	text-decoration: none;
	transform: translateY(-2px);
}

.help-topic-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	border-radius: 50%;
	background: #e8f1fb;
	color: var(--lpms-brand-dark);
	font-weight: 700;
}

.help-back-link {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	max-width: 100%;
	margin-bottom: 1.5rem;
	color: var(--lpms-brand-dark);
	font-weight: 700;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.help-back-link i {
	margin-right: 0.35rem;
}

.help-steps {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

.help-step {
	max-width: 760px;
	width: 100%;
	box-sizing: border-box;
}

.help-step-copy {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 0.55rem;
	align-items: start;
}

.help-step-copy h2 {
	margin: 0;
	font-size: 1.25rem;
	overflow-wrap: anywhere;
}

.help-step-copy p {
	grid-column: 1 / -1;
	max-width: 100%;
	margin: 0.7rem 0 1rem;
	color: #52606d;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.help-step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-right: 0;
	border-radius: 50%;
	background: var(--lpms-brand);
	color: #fff;
	font-weight: 700;
}

.help-step-figure {
	width: 100%;
	max-width: 100%;
	margin: 0;
	overflow: hidden;
}

.help-screenshot-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 0.35rem;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	box-sizing: border-box;
	border: 2px dashed #9eb6ce;
	background: #edf4fb;
	color: #55718d;
	text-align: center;
}

.help-screenshot-placeholder i {
	font-size: 2rem;
}

.help-screenshot-placeholder small {
	font-size: 0.75rem;
}

.help-screenshot {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	object-fit: contain;
	object-position: left top;
}

.help-screenshot-match-height {
	aspect-ratio: 1024 / 764;
	object-fit: contain;
	object-position: center top;
	background: #edf4fb;
}

.help-step-figure figcaption {
	margin-top: 0.45rem;
	color: #6b7785;
	font-size: 0.78rem;
	overflow-wrap: anywhere;
}

@media (max-width: 900px) {
	.help-page,
	.help-article-page {
		padding: 1.25rem 0.85rem 2rem;
	}

	.help-card-grid,
	.help-topic-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.help-intro h1,
	.help-article-header h1 {
		font-size: 1.65rem;
	}
}

@media (max-width: 480px) {
	.help-page,
	.help-article-page {
		padding: 1rem 0.7rem 1.75rem;
	}

	.help-intro,
	.help-article-header {
		padding-left: 0.85rem;
		margin-bottom: 1.5rem;
	}

	.help-card,
	.help-topic-card {
		min-height: 0;
		padding: 1rem;
		gap: 0.75rem;
	}

	.help-card-icon {
		width: 36px;
		height: 36px;
		flex-basis: 36px;
		font-size: 1rem;
	}

	.help-intro h1,
	.help-article-header h1 {
		font-size: 1.4rem;
	}

	.help-step-copy h2 {
		font-size: 1.1rem;
	}

	.help-steps {
		gap: 1.75rem;
	}
}

html {
	font-size: 93.75%;
}

html,
body {
	margin: 0;
	padding: 0;
	background: var(--lpms-bg);
}

body.login-page {
	align-items: center;
	justify-content: center;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0 18%, transparent 18% 100%),
		linear-gradient(315deg, rgba(30, 107, 214, 0.06) 0 22%, transparent 22% 100%),
		linear-gradient(rgba(31, 91, 147, 0.055) 1px, transparent 1px),
		linear-gradient(90deg, rgba(31, 91, 147, 0.055) 1px, transparent 1px),
		#edf4fb;
	background-size: auto, auto, 32px 32px, 32px 32px, auto;
}

.app-shell {
	min-height: 100vh;
}

.main-header.navbar {
	margin: 0;
	border-radius: 0;
	border-left: 0;
	border-right: 0;
}

#topNav.navbar-primary {
	background-color: #007bff;
}

#topNav .nav-link,
#topNav .nav-link i {
	color: #ffffff;
}

#topNav .nav-link:hover,
#topNav .nav-link:focus {
	color: #eaf4ff;
}

.nav-actions {
	gap: 0.5rem;
}

.navbar-sidebar-toggle-wrap {
	display: none;
	margin-right: 0.5rem;
}

@media (max-width: 991.98px) {
	.navbar-sidebar-toggle-wrap {
		display: flex;
	}

	#topNav {
		position: relative;
		z-index: 1051;
	}

	#mobileNavToggle {
		border: 0;
		min-width: 44px;
		min-height: 44px;
		position: relative;
		z-index: 1052;
		justify-content: center;
		cursor: pointer;
	}

	/* pins the sidebar as its own off-canvas panel, independent of AdminLTE's responsive layout rules;
	   full height, covering the top bar, so only the in-panel hamburger shows while open */
	.main-sidebar {
		position: fixed !important;
		top: 0 !important;
		bottom: 0 !important;
		left: 0 !important;
		margin-left: 0 !important;
		width: 250px !important;
		height: auto !important;
		z-index: 1050;
		overflow-y: auto;
		scrollbar-width: none;
		-ms-overflow-style: none;
		transition: transform 0.22s ease !important;
	}

	.main-sidebar::-webkit-scrollbar {
		display: none;
	}

	body:not(.mobile-nav-open) .main-sidebar {
		transform: translateX(-100%) !important;
	}

	body.mobile-nav-open .main-sidebar {
		transform: translateX(0) !important;
	}

	/* the off-canvas panel is always full width, so ignore the desktop mini-sidebar collapsed layout */
	body.sidebar-collapse .main-sidebar,
	body.sidebar-collapse .main-sidebar .nav-sidebar,
	body.sidebar-collapse .main-sidebar .nav-link,
	body.sidebar-collapse .main-sidebar .menu-item-row,
	body.sidebar-collapse .main-sidebar .brand-link {
		width: 250px !important;
	}

	body.sidebar-collapse .main-sidebar .nav-sidebar .menu-item p,
	body.sidebar-collapse .main-sidebar .brand-link .brand-text {
		display: block !important;
		width: auto !important;
		opacity: 1 !important;
		visibility: visible !important;
	}

	body.mobile-nav-open::before {
		content: "";
		position: fixed;
		inset: 0;
		z-index: 1049;
		background: rgba(15, 23, 42, 0.42);
		pointer-events: auto;
	}

	/* AdminLTE pushmenu overlay stays out of the mobile off-canvas flow */
	#sidebar-overlay {
		display: none !important;
		pointer-events: none !important;
	}
}

.top-action-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.6rem !important;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.86rem;
	line-height: 1;
	background: rgba(255, 255, 255, 0.12);
}

@media (min-width: 992px) {
	.main-header,
	.content-wrapper {
		margin-left: 250px;
		transition: margin-left 0.3s ease;
	}

	body.sidebar-collapse .main-header,
	body.sidebar-collapse .content-wrapper {
		margin-left: 4.6rem;
	}
}

.top-action-link:hover,
.top-action-link:focus {
	background: rgba(255, 255, 255, 0.22);
	text-decoration: none;
}

.top-action-link i {
	font-size: 0.95rem;
}

.effective-term-nav-item {
	margin-right: 0.15rem;
}

.effective-term-nav-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.3rem 0.55rem;
	border-radius: 8px;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1;
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	white-space: nowrap;
}

.effective-term-nav-title {
	text-transform: uppercase;
	font-size: 0.68rem;
	letter-spacing: 0.04em;
	opacity: 0.85;
}

.effective-term-nav-term {
	padding: 0.18rem 0.45rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.2);
	font-size: 0.75rem;
	font-weight: 800;
}

.effective-term-nav-status {
	font-size: 0.7rem;
	padding: 0.16rem 0.42rem;
	border-radius: 999px;
}

.avatar {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	font-weight: 700;
	font-size: 0.82rem;
	letter-spacing: 0.03em;
	background: #ffffff;
	color: #0d4ca3;
	border: 1px solid rgba(255, 255, 255, 0.45);
}

.user-menu .nav-link {
	padding-top: 0.25rem;
	padding-bottom: 0.25rem;
}

@media (max-width: 900px) {
	.top-action-link span {
		display: none;
	}

	.effective-term-nav-title,
	.effective-term-nav-status {
		display: none;
	}
}

@media (max-width: 767.98px) {
	body.page-lesson-plans-section .effective-term-nav-item {
		display: none !important;
	}

	body.page-users-section .effective-term-nav-item {
		margin-left: 0.5rem;
		margin-right: 0.35rem;
	}

	body.page-users-section .effective-term-nav-chip {
		padding: 0.2rem 0.38rem;
	}

	body.page-users-section .effective-term-nav-term {
		padding: 0.12rem 0.34rem;
		font-size: 0.68rem;
	}
}

.user-dropdown {
	min-width: 280px;
	background: linear-gradient(180deg, #1a75e8 0%, #0f58c8 100%);
	border: 0;
	border-radius: 12px;
	padding: 0.45rem;
	box-shadow: 0 16px 30px rgba(8, 43, 102, 0.28);
}

.user-dropdown .dropdown-item {
	border-radius: 8px;
	color: #f4f9ff;
	font-size: 0.9rem;
	padding: 0.58rem 0.7rem;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	white-space: normal;
}

.user-dropdown .dropdown-item i {
	width: 1rem;
	text-align: center;
	color: #e0efff;
}

.user-meta-row {
	cursor: default;
	font-weight: 600;
}

.user-meta-row:hover,
.user-meta-row:focus {
	background: transparent;
	color: #f4f9ff;
}

.user-action-row {
	font-weight: 700;
}

.user-action-row:hover,
.user-action-row:focus {
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff;
}

.user-divider {
	border-top-color: rgba(255, 255, 255, 0.28);
	margin: 0.25rem 0.2rem;
}

.main-sidebar .brand-link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.brand-toggle {
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 0.35rem;
	background: transparent;
	color: #0d4ca3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	position: relative;
}

.brand-toggle:hover,
.brand-toggle:focus {
	background: transparent;
	color: #0b3f86;
	outline: none;
}

.brand-toggle i {
	display: none;
}

.brand-toggle::before {
	content: "";
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.main-sidebar {
	background: #ffffff;
	border-right: 1px solid #dee2e6;
}

.main-sidebar .brand-link .brand-text {
	font-weight: 600;
	color: #1f2a37;
}

.main-sidebar .nav-sidebar .nav-link.active {
	background-color: #e9f2ff;
	color: #0d4ca3;
}

.main-sidebar .nav-sidebar .nav-link.active-sub {
	background-color: #f3f8ff;
	color: #1f4f95;
	box-shadow: inset 3px 0 0 #8fb8f3;
}

.main-sidebar .nav-sidebar .nav-link.active-sub p {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.16em;
}

.main-sidebar .nav-sidebar .nav-link {
	color: #344054;
}

.main-sidebar .nav-sidebar > .nav-item > .nav-link:hover,
.main-sidebar .nav-sidebar > .nav-item > .nav-link:focus,
.main-sidebar .nav-sidebar > .nav-item > .menu-item-row > .nav-link:hover,
.main-sidebar .nav-sidebar > .nav-item > .menu-item-row > .nav-link:focus {
	background-color: #e9f2ff;
	color: #0d4ca3;
}

.main-sidebar .menu-item {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.main-sidebar .menu-item .nav-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.2rem;
	height: 1.2rem;
	min-width: 1.2rem;
	margin-right: 0;
	visibility: visible;
	opacity: 1;
	font-size: 1rem;
	line-height: 1;
	transition: transform 0.18s ease;
}

.main-sidebar .menu-item:hover .nav-icon,
.main-sidebar .menu-item:focus .nav-icon {
	transform: scale(1.22);
}

.main-sidebar .menu-item p {
	margin: 0;
}

.main-sidebar .has-submenu {
	position: relative;
}

.main-sidebar .menu-item-row {
	display: flex;
	align-items: stretch;
	gap: 0.35rem;
}

.main-sidebar .menu-item-row .menu-item {
	flex: 1 1 auto;
	margin: 0;
}

.main-sidebar .submenu-toggle {
	border: 0;
	background: transparent;
	color: #6b7280;
	padding: 0 0.55rem;
	border-radius: 0.35rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.main-sidebar .submenu-toggle:hover,
.main-sidebar .submenu-toggle:focus {
	background: #eef4ff;
	color: #0d4ca3;
	outline: none;
}

.main-sidebar .has-submenu.menu-open .submenu-toggle i {
	transform: rotate(180deg);
}

.main-sidebar .submenu-toggle i {
	transition: transform 0.18s ease;
}

.main-sidebar .submenu-list {
	display: none;
	list-style: none;
	margin: 0.2rem 0 0.35rem;
	padding: 0;
	border-left: 2px solid #e6eefc;
	margin-left: 1.05rem;
}

.main-sidebar .submenu-list .nav-link {
	padding-left: 0.95rem;
	font-size: 0.9rem;
	color: #465569;
}

.main-sidebar .submenu-list .nav-link:hover,
.main-sidebar .submenu-list .nav-link:focus {
	background: #f3f8ff;
	color: #1f4f95;
	outline: none;
}

.main-sidebar .submenu-list .nav-icon {
	font-size: 0.45rem;
	min-width: 0.8rem;
	width: 0.8rem;
	height: 0.8rem;
}

.main-sidebar .has-submenu.menu-open > .submenu-list {
	display: block;
}

@media (min-width: 768px) {
	body.sidebar-collapse .main-sidebar .has-submenu > .submenu-list {
		display: block;
		position: absolute;
		top: 0;
		left: calc(100% + 0.4rem);
		min-width: 14.5rem;
		margin: 0;
		padding: 0.35rem;
		border: 1px solid #d9e5f7;
		border-left: 0;
		border-radius: 0 0.55rem 0.55rem 0;
		background: #ffffff;
		box-shadow: 0 12px 30px rgba(15, 43, 94, 0.18);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateX(0.35rem);
		z-index: 1050;
		transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
	}

	body.sidebar-collapse .main-sidebar .has-submenu > .submenu-list .nav-link {
		padding-top: 0.42rem;
		padding-bottom: 0.42rem;
		border-radius: 0.35rem;
	}

	body.sidebar-collapse .main-sidebar .has-submenu.menu-open > .submenu-list,
	body.sidebar-collapse .main-sidebar .has-submenu:focus-within > .submenu-list {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateX(0);
		transition-delay: 0s, 0s, 0s;
	}
}


.ghost-link {
	text-decoration: none;
	font-weight: 600;
	color: #344054;
}

.app-main.content-wrapper {
	background: transparent;
	min-height: calc(100vh - 57px);
}

.modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	justify-content: center;
	align-items: center;
}

.modal-content {
	box-sizing: border-box;
	width: min(90vw, 600px);
	max-height: 80vh;
	overflow-y: auto;
	padding: 1.5rem;
	background: #ffffff;
	border: 1px solid #dfe7f2;
	border-radius: 0.5rem;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.modal-overlay.advanced-filter-overlay,
.modal-overlay:has(> .advanced-filter-dialog) {
	padding: 1rem;
	z-index: 2200;
}

.modal-content.advanced-filter-dialog {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 0;
	width: min(92vw, 680px);
	max-width: 680px;
}

.advanced-filter-dialog > .modal-header {
	flex: 0 0 auto;
	position: sticky;
	top: 0;
	z-index: 2;
	margin: 0;
	padding: 1.5rem 1.5rem 0.9rem;
	border-bottom: 1px solid #e8edf5;
	background: #fff;
}

.advanced-filter-dialog > .modal-header h3 {
	margin: 0;
	font-size: 1.15rem;
	color: #1f2d3d;
	font-weight: 700;
}

.advanced-filter-dialog > .modal-header > .modal-close-btn {
	box-sizing: border-box;
	width: 2.1rem;
	height: 2.1rem;
	min-width: 2.1rem;
	min-height: 2.1rem;
	padding: 0;
	border: 1px solid #c9d8ea;
	border-radius: 0.45rem;
	background: #f8fbff;
	color: #24507f;
	font-size: 0;
	line-height: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.advanced-filter-dialog > .modal-header > .modal-close-btn i {
	font-size: 0.8rem;
	line-height: 1;
	width: 1em;
	height: 1em;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.advanced-filter-dialog > .modal-header > .modal-close-btn:hover,
.advanced-filter-dialog > .modal-header > .modal-close-btn:focus {
	background: #eaf3ff;
	border-color: #4f8fdc;
	color: #1768c0;
	outline: none;
}

.advanced-filter-dialog > .modal-header > .modal-close-btn:focus-visible {
	box-shadow: 0 0 0 2px rgba(79, 143, 220, 0.25);
}

.advanced-filter-dialog > form {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 0.85rem 1rem !important;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	margin: 0 !important;
	padding: 1.25rem 1.5rem 1.5rem;
	align-items: start;
}

.advanced-filter-dialog > form > .plan-form-actions,
.advanced-filter-dialog > form > .filter-actions,
.advanced-filter-dialog > form > div[style*="grid-column"] {
	grid-column: 1 / -1 !important;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	padding-top: 0.5rem;
	margin-top: 0.25rem;
	border-top: 1px solid #edf1f7;
}

.advanced-filter-dialog .filter-actions-right {
	margin-left: 0;
	gap: 0.75rem;
}

.advanced-filter-dialog .filter-reset-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

@media (max-width: 767.98px) {
	.modal-content.advanced-filter-dialog {
		width: 100% !important;
		max-height: calc(100vh - 2rem);
	}

	.advanced-filter-dialog > .modal-header {
		padding: 1rem 1rem 0.75rem;
	}

	.advanced-filter-dialog > form {
		grid-template-columns: 1fr !important;
		padding: 1rem;
	}

	.advanced-filter-dialog > form > .plan-span-2,
	.advanced-filter-dialog > form > .plan-form-actions,
	.advanced-filter-dialog > form > .filter-actions,
	.advanced-filter-dialog > form > div[style*="grid-column"] {
		grid-column: 1 !important;
	}
}

.table-search-input {
	box-sizing: border-box;
	width: 100%;
	padding: 0.5rem;
	border: 1px solid #cfd9e6;
	border-radius: 0.35rem;
	background: #ffffff;
	font: inherit;
	font-size: 0.9rem;
}

.table-search-actions {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: nowrap;
}

.chat-date-separator {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0.15rem 0 0.05rem;
}

.chat-date-separator span {
	display: inline-flex;
	align-items: center;
	background: #eef2f7;
	color: #4b5563;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	padding: 0.18rem 0.7rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.3;
	box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04);
}

.table-wrap.is-live-searching tbody tr:not(#searchRow):not(#lessonPlanSearchRow):not(#teacherPlanSearchRow) {
	opacity: 0.55;
	transition: opacity 0.15s ease;
}

.detail-layout-grid {
	height: auto;
	max-height: none;
	min-height: 760px;
}

.popup-action-link {
	padding: 0;
	border: 0;
	background: transparent;
	color: #2563eb;
	cursor: pointer;
	font: inherit;
	font-size: 0.75rem;
}

.popup-action-link.danger {
	color: #b91c1c;
}

.popup-item-action {
	width: 1.65rem;
	height: 1.65rem;
	padding: 0;
	border: 0;
	border-radius: 0.25rem;
	background: transparent;
	color: #2563eb;
	cursor: pointer;
	font-size: 0.75rem;
}

.popup-item-action.danger {
	color: #b91c1c;
}

.popup-item-action:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.detail-layout-grid > aside:first-child {
	min-height: 0;
	height: calc(100vh - 2rem);
	max-height: calc(100vh - 2rem);
	align-self: start;
	box-sizing: border-box;
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-gutter: stable;
}

.detail-layout-grid > main {
	min-width: 0;
	min-height: 760px;
	overflow: visible;
}

#monitorReflectionsList {
	min-height: 0;
	max-height: 100%;
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-gutter: stable;
}

@media (max-width: 900px) {
	.detail-layout-grid {
		display: grid !important;
		height: auto;
		max-height: none;
		min-height: 0 !important;
		grid-template-columns: 1fr !important;
	}

	.detail-layout-grid > main {
		max-height: none;
		min-height: 0;
		overflow: visible;
		min-width: 0;
	}

	.detail-layout-grid > aside:first-child {
		height: auto;
		max-height: 42vh;
		border-right: 0 !important;
		border-bottom: 1px solid #e5e7eb;
	}

	.detail-layout-grid > aside:last-child,
	.detail-layout-grid > #teacherDetailSidebar,
	.detail-layout-grid > #monitorDetailSidebar {
		border-left: 0 !important;
		border-top: 1px solid #e5e7eb;
		width: 100% !important;
	}

	#monitorReflectionsList {
		max-height: 38vh;
	}
}

.page {
	display: grid;
	gap: 1rem;
}

.hero {
	background: linear-gradient(120deg, var(--lpms-brand-dark) 0%, var(--lpms-brand) 68%, #66b4ff 100%);
	color: #fff;
	border-radius: 0.5rem;
	padding: 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1rem;
}

.eyebrow {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.9;
	margin-bottom: 0.5rem;
}

.hero h2,
.hero p {
	margin: 0;
}

.hero h2 {
	margin-bottom: 0.5rem;
}

.hero p {
	color: #e8f2ff;
}

.hero-metrics {
	display: flex;
	gap: 0.75rem;
}

.hero-metrics div {
	background: rgba(255, 255, 255, 0.16);
	border-radius: 0.5rem;
	padding: 0.625rem 0.75rem;
	min-width: 120px;
}

.hero-metrics strong {
	display: block;
	font-size: 1.5rem;
	line-height: 1.1;
}

.hero-metrics span {
	font-size: 0.75rem;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.stat-card,
.card {
	background: #fff;
	border: 1px solid #d9e3f0;
	border-radius: 0.5rem;
	padding: 1rem;
	box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.08);
}

.stat-card h3 {
	margin: 0;
	font-size: 0.9rem;
	color: #6e7e94;
}

.stat-card p {
	margin: 0.5rem 0;
	font-size: 1.75rem;
	font-weight: 700;
	color: #133e75;
}

.stat-card small {
	color: #6e7e94;
}

.my-plan-cards-grid {
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.my-plans-stats-grid {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	gap: 1rem;
	margin-bottom: 1rem;
}

.my-plans-stats-grid .user-summary-card {
	flex: 0 0 12.2rem;
}

.my-summary-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.my-summary-link:hover,
.my-summary-link:focus {
	text-decoration: none;
}

.my-plan-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.my-plan-card-link:hover,
.my-plan-card-link:focus {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(15, 79, 153, 0.14);
	border-color: #9cc1f0;
	text-decoration: none;
}

.my-plan-card-active {
	border-color: #0f4f99;
	box-shadow: inset 0 0 0 2px rgba(15, 79, 153, 0.22);
}

.my-plan-actions {
	display: flex;
	gap: 0.45rem;
	align-items: center;
	flex-wrap: wrap;
}

.assignment-summary-grid {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	gap: 1rem;
	margin-top: 1rem;
}

.assignment-summary-grid .user-summary-card {
	flex: 0 0 13rem;
}

.assignment-progress-value {
	font-size: 1.15rem;
	line-height: 1.25;
}

.content-grid {
	display: grid;
	grid-template-columns: 1.7fr 1fr;
	gap: 1rem;
}

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

.card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.625rem;
	margin-bottom: 0.75rem;
}

.card-head h2,
.card-head h3,
.card h2,
.card h3 {
	margin: 0;
}

.card-head a {
	font-weight: 600;
}

.column-picker {
	position: relative;
}

.column-picker summary {
	list-style: none;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	line-height: 1;
	gap: 0;
}

.column-visibility-summary {
	width: auto;
	min-width: 0;
	gap: 0.4rem !important;
	padding-right: 1.3rem !important;
	justify-content: flex-start !important;
	white-space: nowrap;
}

.column-visibility-label {
	color: #6e7e94;
	font-size: 0.9rem;
	font-weight: 400;
}

.page-size-label {
	color: #6e7e94;
	font-size: 0.9rem;
	font-weight: 400;
	white-space: nowrap;
}

.col-config {
	width: 2.75rem;
	text-align: center;
}

.col-select {
	width: auto;
	min-width: 2.75rem;
	text-align: left;
	white-space: nowrap;
}

.select-all-label {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	font-family: inherit;
	font-size: 0.64rem;
	font-weight: inherit;
	line-height: inherit;
	color: inherit;
	white-space: nowrap;
	cursor: pointer;
}

#usersTable .col-select {
	width: 2.75rem;
	max-width: 2.9rem;
	text-align: center;
	white-space: normal;
	padding-left: 0.3rem;
	padding-right: 0.3rem;
}

#usersTable .select-all-label {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.1rem;
	max-width: 2.6rem;
	font-size: 0.5rem;
	line-height: 1.05;
	white-space: normal;
	text-align: center;
}

#usersTable th.sortable-header {
	white-space: nowrap;
}

.column-icon-btn {
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 1px solid #cfd9e6;
	border-radius: 0.45rem;
	background: #f8fbff;
	color: #0f4f99;
	cursor: pointer;
}

.column-icon-btn:hover,
.column-icon-btn:focus {
	background: #e9f2ff;
}

.column-picker summary::-webkit-details-marker {
	display: none;
}

.column-picker summary::after {
	content: '\25BE';
	position: absolute;
	right: 0.1rem;
	bottom: 0.08rem;
	font-size: 0.75rem;
	line-height: 1;
	opacity: 0.85;
	pointer-events: none;
}

.column-picker[open] summary::after {
	content: '\25B4';
}

.column-picker-menu {
	position: absolute;
	left: 0;
	top: calc(100% + 0.4rem);
	min-width: 190px;
	background: #ffffff;
	border: 1px solid #d9e3f0;
	border-radius: 0.5rem;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
	padding: 0.65rem;
	display: grid;
	gap: 0.35rem;
	z-index: 30;
}

.column-picker-menu label {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.85rem;
	color: #334155;
}

.filter-dropdown {
	position: absolute;
	left: 0;
	top: calc(100% + 0.4rem);
	min-width: 200px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #ffffff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	z-index: 30;
}

.filter-dropdown a {
	display: block;
	padding: 0.5rem;
	cursor: pointer;
	text-decoration: none;
	color: #333;
	border-bottom: 1px solid #f0f0f0;
	transition: background-color 0.2s;
}

.filter-dropdown a:hover,
.filter-dropdown a:focus {
	background: #f5f5f5;
}

.lesson-plan-column-menu {
	right: 0;
	left: auto;
}

.lesson-plan-table-search {
	width: 100%;
	min-width: 5rem;
	height: 2rem;
	padding: 0.35rem 0.55rem;
	border: 1px solid #cfd9e6;
	border-radius: 0.35rem;
	background: #ffffff;
	color: #1f2937;
	font: inherit;
	font-size: 0.8rem;
	box-sizing: border-box;
}

.lesson-plan-table-search::placeholder {
	color: #94a3b8;
}

.lesson-plan-table-search:focus {
	border-color: #5b9bd5;
	box-shadow: 0 0 0 3px rgba(91, 155, 213, 0.16);
	outline: none;
}

.search-select {
	position: relative;
}

.search-select-menu {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 0.4rem);
	max-height: 260px;
	overflow-y: auto;
	background: #ffffff;
	border: 1px solid #d9e3f0;
	border-radius: 0.6rem;
	box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
	padding: 0.4rem;
	display: grid;
	gap: 0.3rem;
	z-index: 35;
}

.search-select-option {
	width: 100%;
	border: 0;
	border-radius: 0.5rem;
	background: #ffffff;
	padding: 0.55rem 0.65rem;
	text-align: left;
	cursor: pointer;
	display: grid;
	gap: 0.15rem;
}

.search-select-option:hover,
.search-select-option:focus {
	background: #eef5ff;
	outline: none;
}

.search-select-primary {
	font-size: 0.9rem;
	font-weight: 700;
	color: #153a69;
	line-height: 1.25;
}

.search-select-meta {
	font-size: 0.78rem;
	color: #6e7e94;
	line-height: 1.25;
}

.search-select-empty {
	margin: 0;
	padding: 0.65rem;
	font-size: 0.82rem;
	color: #6e7e94;
}

.assignment-scope-divider {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 0.1rem;
	margin-bottom: -0.1rem;
	color: #24507f;
	font-size: 0.82rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.assignment-scope-divider::after {
	content: '';
	flex: 1 1 auto;
	height: 1px;
	background: linear-gradient(90deg, rgba(36, 80, 127, 0.28) 0%, rgba(36, 80, 127, 0.08) 100%);
}

.table-wrap {
	overflow-x: auto;
}

table {
	width: 100%;
	border-collapse: collapse;
}

table tbody tr:hover {
	background: rgba(16, 78, 160, 0.05);
}

th,
td {
	text-align: left;
	padding: 0.75rem 0.5rem;
	border-bottom: 1px solid #e9eff7;
	font-size: 0.9rem;
}

th {
	color: #6e7e94;
	font-weight: 700;
}

.sort-link {
	color: inherit;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}

.sort-link:hover,
.sort-link:focus {
	text-decoration: underline;
}

.badge {
	border-radius: 999px;
	padding: 0.25rem 0.625rem;
	font-size: 0.75rem;
	font-weight: 700;
	white-space: nowrap;
}

th.col-status,
td.col-status {
	white-space: nowrap;
}

.badge.green {
	background: #def7e5;
	color: #1f9d55;
}

.badge.amber {
	background: #fdf1dc;
	color: #b7791f;
}

.badge.blue {
	background: #e3efff;
	color: #0f4f99;
}

.badge.red {
	background: #fee2e2;
	color: #c53030;
}

.timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
}

.timeline li {
	background: #f8fbff;
	border: 1px solid #e5eef8;
	border-radius: 0.5rem;
	padding: 0.625rem 0.75rem;
	display: grid;
	gap: 0.25rem;
}

.timeline span,
.muted {
	color: #6e7e94;
	font-size: 0.825rem;
}

.pill-btn,
.mini-btn,
.full {
	display: inline-block;
	border: 0;
	background: linear-gradient(180deg, #2485f2 0%, #1768c0 100%);
	color: #fff;
	border-radius: 999px;
	padding: 0.55rem 1rem;
	font-weight: 700;
	cursor: pointer;
}

.mini-btn {
	padding: 0.45rem 0.8rem;
}

.view-toggle {
	width: 2.2rem;
	height: 2.2rem;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.view-toggle.active {
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.lesson-plan-toolbar {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.view-switch {
	display: inline-flex;
	gap: 0.4rem;
}

.filter-actions {
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.filter-actions-left,
.filter-actions-right {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: nowrap;
}

.filter-actions-right .prefill-btn {
	min-width: 0;
}

.filter-actions-right {
	margin-left: auto;
	flex-wrap: nowrap;
}

.filter-actions-right .prefill-btn {
	min-width: 0;
}

.filter-reset-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

/* Settings Filter/Reset, Add, and drawer Save/Cancel match Audit Logs Apply + Reset. */
body.page-settings-section .filter-actions-right {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

body.page-settings-section .plan-form-actions {
	gap: 0.75rem;
}

body.page-settings-section .filter-actions-right .prefill-btn,
body.page-settings-section .plan-form-actions .prefill-btn,
body.page-settings-section .plan-form-actions .pill-btn,
body.page-settings-section .card-head > .pill-btn,
body.page-settings-section .page-actions .pill-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	box-sizing: border-box;
}

body.page-settings-section .plan-form-actions .pill-btn,
body.page-settings-section .card-head > .pill-btn,
body.page-settings-section .page-actions .pill-btn {
	height: 2.2rem;
	border-radius: 0.55rem;
	padding: 0 0.8rem;
	font-weight: 700;
	font-size: 0.85rem;
	border: 1px solid transparent;
	line-height: 1;
}

@media (max-width: 767.98px) {
	body.page-settings-section .filter-actions-right {
		width: 100%;
		margin-left: 0;
	}

	body.page-settings-section .filter-actions-right .prefill-btn {
		flex: 1 1 auto;
		min-width: 8rem;
	}

	body.page-settings-section .plan-form-actions {
		width: 100%;
	}

	body.page-settings-section .plan-form-actions .prefill-btn,
	body.page-settings-section .plan-form-actions .pill-btn {
		flex: 1 1 auto;
		min-width: 8rem;
	}
}

.bulk-select-all {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.85rem;
	color: #24507f;
	font-weight: 600;
	line-height: 1;
	padding: 0.45rem 0.7rem;
	border: 1px solid #c9d8ea;
	border-radius: 0.55rem;
	background: #ffffff;
}

.bulk-select-all input {
	width: 1rem;
	height: 1rem;
	margin: 0;
	accent-color: #1768c0;
}

.bulk-select-all span {
	display: inline-flex;
	align-items: center;
}

.bulk-publish-btn {
	border-radius: 0.55rem;
	height: 2.2rem;
	padding: 0 0.85rem;
	background: linear-gradient(180deg, #12a36a 0%, #0d8456 100%);
}

.bulk-unpublish-btn {
	border-radius: 0.55rem;
	height: 2.2rem;
	padding: 0 0.85rem;
	background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

.bulk-delete-btn {
	border-radius: 0.55rem;
	height: 2.2rem;
	padding: 0 0.85rem;
	background: linear-gradient(180deg, #e53e3e 0%, #b91c1c 100%);
}

.plan-open-link {
	border: 0;
	background: none;
	padding: 0;
	margin: 0;
	font: inherit;
	font-weight: 700;
	color: #0f4f99;
	text-align: left;
	cursor: pointer;
}

.plan-open-link:hover,
.plan-open-link:focus {
	text-decoration: underline;
}

.download-link {
	color: #0f4f99;
	font-weight: 600;
	text-decoration: underline;
}

.download-link:hover,
.download-link:focus {
	color: #0d3f7a;
}

.rubric-topic-list {
	max-height: 11rem;
	overflow-y: auto;
	border: 1px solid #d9e3f0;
	border-radius: 0.7rem;
	padding: 0.6rem;
	background: linear-gradient(180deg, #fcfdff 0%, #f5faff 100%);
	display: grid;
	gap: 0.45rem;
}

.rubric-topic-item {
	display: inline-flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.88rem;
	line-height: 1.3;
	color: #2e3f58;
	padding: 0.5rem 0.55rem;
	border: 1px solid #dbe6f4;
	border-radius: 0.55rem;
	background: #ffffff;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.rubric-topic-item input {
	margin-top: 0.12rem;
	accent-color: #1768c0;
}

.rubric-topic-item span {
	flex: 1;
}

.rubric-topic-item:hover {
	border-color: #b8cde6;
	background: #f7fbff;
}

.rubric-topic-item:focus-within {
	border-color: #1768c0;
	box-shadow: 0 0 0 2px rgba(23, 104, 192, 0.16);
}

.rubric-topic-empty {
	margin: 0;
	padding: 0.35rem 0.25rem;
}

.rubric-topic-field {
	align-self: start;
	background: #f8fbff;
	border: 1px solid #dde9f6;
	border-radius: 0.75rem;
	padding: 0.75rem;
}

.rubric-topic-header {
	margin-bottom: 0.45rem;
}

.rubric-topic-header > label {
	margin-bottom: 0.15rem;
}

.rubric-topic-caption {
	margin: 0;
	font-size: 0.8rem;
	line-height: 1.35;
	color: #5c6f87;
}

.bulk-rubric-picker {
	position: relative;
	display: inline-block;
}

.bulk-rubric-picker > summary {
	list-style: none;
	cursor: pointer;
}

.bulk-rubric-picker > summary::-webkit-details-marker {
	display: none;
}

.bulk-rubric-panel {
	position: absolute;
	left: 0;
	top: calc(100% + 0.45rem);
	width: min(760px, 88vw);
	background: #ffffff;
	border: 1px solid #d9e3f0;
	border-radius: 0.65rem;
	box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
	padding: 0.75rem;
	display: grid;
	gap: 0.6rem;
	z-index: 35;
}

.bulk-rubric-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

.bulk-rubric-title {
	margin: 0 0 0.35rem;
	font-size: 0.82rem;
	font-weight: 700;
	color: #1f3f67;
}

.bulk-rubric-topic-list {
	max-height: 12rem;
}

.reflection-stats-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reflection-assignment-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

.reflection-assignment-item {
	border: 1px solid #dce7f4;
	border-radius: 0.65rem;
	padding: 0.7rem 0.8rem;
	background: #f8fbff;
	display: grid;
	gap: 0.2rem;
}

.reflection-assignment-item .muted {
	margin: 0;
	font-size: 0.78rem;
}

.reflection-assignment-item strong {
	font-size: 0.92rem;
	line-height: 1.3;
	color: #1f2a37;
}

.reflection-assignment-item small {
	line-height: 1.2;
}

.reflection-assignment-item-wide {
	grid-column: 1 / -1;
}

.reflection-question-card {
	border: 1px solid #d2dfef;
	border-radius: 0.7rem;
	padding: 0.8rem 0.9rem;
	background: #fbfdff;
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.reflection-question-title {
	display: block;
	font-weight: 700;
	font-size: 0.9rem;
	margin-bottom: 0.55rem;
	color: #173d66;
	padding-bottom: 0.35rem;
	border-bottom: 1px solid #e2ebf7;
}

.reflection-options-grid {
	display: grid;
	gap: 0.45rem;
}

.reflection-option-item {
	display: grid;
	grid-template-columns: 1rem minmax(0, 1fr);
	align-items: start;
	column-gap: 0.6rem;
	width: 100%;
	box-sizing: border-box;
	line-height: 1.25;
	font-size: 0.88rem;
	padding: 0.5rem 0.6rem;
	border: 1px solid #d5e2f2;
	border-radius: 0.5rem;
	background: #ffffff;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.reflection-option-item:hover {
	border-color: #b8cfe9;
	background: #f6fbff;
}

.reflection-option-item input {
	margin: 0;
	width: 1rem;
	height: 1rem;
	flex: 0 0 auto;
	align-self: start;
	margin-top: 0.12rem;
	accent-color: #1768c0;
}

.reflection-option-item span {
	display: block;
	max-width: 100%;
	min-width: 0;
	color: #1f2937;
	font-weight: 600;
	line-height: 1.3;
	white-space: normal;
	word-break: normal;
	overflow-wrap: break-word;
}

.reflection-option-item input:checked + span {
	color: #0f4f99;
}

.reflection-option-item:focus-within {
	border-color: #1768c0;
	box-shadow: 0 0 0 2px rgba(23, 104, 192, 0.16);
}

.reflection-option-item:has(input:checked) {
	border-color: #83aedd;
	background: #eaf3ff;
}

.reflection-form-actions {
	margin-top: 0.2rem;
}

.reflection-page .card > .muted {
	font-size: 0.86rem;
}

.reflection-form {
	margin-top: 0.8rem;
}

.reflection-empty-note {
	margin-top: 0.8rem;
	margin-bottom: 0;
}

.reflection-empty-option {
	margin: 0;
}

.reflection-page .table-wrap {
	border: 1px solid #dde8f5;
	border-radius: 0.65rem;
	background: #ffffff;
}

.reflection-page .table-wrap table {
	border-radius: 0.65rem;
	overflow: hidden;
}

.reflection-row-action {
	min-width: 4.8rem;
	text-align: center;
}

.reflection-answer-card,
.reflection-answer-card .reflection-answer-label,
.reflection-answer-card .reflection-answer-question,
.reflection-answer-card .reflection-answer-text,
.reflection-answer-table th,
.reflection-answer-table td {
	text-align: left !important;
}

.reflection-answer-text {
	display: block;
	overflow-wrap: anywhere;
	word-break: break-word;
	text-align: left;
}

.reflection-answer-text .muted {
	display: inline;
	text-align: left;
}

.reflection-answer-table .reflection-answer-text {
	white-space: pre-wrap;
	vertical-align: top;
}

@media (max-width: 900px) {
	.rubric-topic-field {
		grid-column: 1 / -1;
	}

	.reflection-stats-grid {
		grid-template-columns: 1fr;
	}

	.reflection-assignment-grid {
		grid-template-columns: 1fr;
	}
}

.assign-subject-filter-form .plan-field {
	align-self: start;
	text-align: left;
}

.assign-subject-filter-form .plan-field > label {
	font-weight: 700;
	color: #1f3f67;
	margin-bottom: 0.2rem;
}

.filter-checkbox-list {
	max-height: 11rem;
	overflow-y: auto;
	border: 1px solid #d9e3f0;
	border-radius: 0.6rem;
	background: linear-gradient(180deg, #fbfdff 0%, #f6faff 100%);
	padding: 0.5rem;
	display: grid;
	gap: 0.35rem;
	text-align: left;
}

.filter-checkbox-option {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.5rem;
	width: 100%;
	padding: 0.42rem 0.5rem;
	border: 1px solid transparent;
	border-radius: 0.5rem;
	font-size: 0.88rem;
	color: #334155;
	line-height: 1.2;
	cursor: pointer;
	text-align: left;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.filter-checkbox-option:hover {
	background: #eef5ff;
	border-color: #d6e5f7;
}

.filter-checkbox-option input {
	margin: 0;
	width: 0.95rem;
	height: 0.95rem;
	accent-color: #1768c0;
	flex: 0 0 auto;
}

.filter-checkbox-option span {
	flex: 1 1 auto;
	display: block;
	color: #1f2937;
	font-weight: 600;
	white-space: normal;
	overflow-wrap: anywhere;
}

.filter-checkbox-option input:focus-visible {
	outline: 2px solid #6aa2df;
	outline-offset: 1px;
	border-radius: 0.2rem;
}

.filter-checkbox-option input:checked + span {
	color: #0f4f99;
	font-weight: 700;
}

.drawer-backdrop {
	position: fixed;
	top: var(--lpms-top-nav-height, 57px);
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(15, 23, 42, 0.45);
	z-index: 1030;
}

.drawer-panel {
	position: fixed;
	top: var(--lpms-top-nav-height, 57px);
	right: -460px;
	width: min(460px, 92vw);
	height: calc(100vh - var(--lpms-top-nav-height, 57px));
	max-height: calc(100vh - var(--lpms-top-nav-height, 57px));
	background: #ffffff;
	box-shadow: -12px 0 32px rgba(15, 23, 42, 0.26);
	z-index: 1031;
	padding: 0;
	overflow-x: hidden;
	overflow-y: auto;
	transition: right 0.22s ease;
	box-sizing: border-box;
}

.drawer-panel.open {
	right: 0;
}

.reflection-view-drawer {
	width: min(760px, 96vw);
	right: -760px;
}

.reflection-view-drawer.open {
	right: 0;
}

.drawer-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	position: sticky;
	top: 0;
	margin: 0;
	padding: 0.9rem 1rem;
	background: #ffffff;
	border-bottom: 1px solid #e2e8f0;
	z-index: 5;
}

.drawer-panel > form,
.drawer-panel > .login-form {
	padding: 1rem;
	box-sizing: border-box;
}

.drawer-panel > :not(.drawer-head):not(form):not(.login-form) {
	padding-left: 1rem;
	padding-right: 1rem;
	box-sizing: border-box;
}

.drawer-panel > .drawer-head + :not(form):not(.login-form) {
	padding-top: 0.75rem;
}

.drawer-panel > :not(.drawer-head):last-child {
	padding-bottom: 1rem;
}

.drawer-prefill-row {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 0.5rem;
	align-items: center;
	margin-bottom: 0.25rem;
	padding: 0.55rem;
	border: 1px solid #d9e3f0;
	border-radius: 0.65rem;
	background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.prefill-select {
	width: 100%;
	height: 2.2rem;
	border: 1px solid #c6d4e7;
	border-radius: 0.55rem;
	background: #ffffff;
	color: #1f2a37;
	padding: 0 0.7rem;
	font-size: 0.9rem;
}

.prefill-select:focus {
	outline: none;
	border-color: #4f8fdc;
	box-shadow: 0 0 0 2px rgba(79, 143, 220, 0.2);
}

#planDrawerForm > select {
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid #ced4da;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a6b82' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.8rem center;
	background-size: 0.75rem;
	border-radius: 0.45rem;
	padding: 0.72rem 2.2rem 0.72rem 0.8rem;
	font-size: 0.95rem;
	color: #1f2a37;
	line-height: 1.3;
	transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

#planDrawerForm > select:focus {
	border-color: var(--lpms-brand);
	background-color: #fbfdff;
	box-shadow: 0 0 0 0.2rem rgba(30, 107, 214, 0.14);
	outline: 0;
}

.prefill-btn {
	border: 1px solid transparent;
	border-radius: 0.55rem;
	height: 2.2rem;
	padding: 0 0.8rem;
	font-weight: 700;
	font-size: 0.85rem;
	cursor: pointer;
}

.prefill-btn-secondary {
	background: #ffffff;
	color: #24507f;
	border-color: #c9d8ea;
}

.prefill-btn-secondary:hover,
.prefill-btn-secondary:focus {
	background: #f4f9ff;
}

.prefill-btn-primary {
	background: linear-gradient(180deg, #2485f2 0%, #1768c0 100%);
	color: #ffffff;
}

.prefill-btn-primary:hover,
.prefill-btn-primary:focus {
	filter: brightness(0.96);
}

.report-control-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-top: 1rem;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.report-export-actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.report-segmented-control,
.report-scope-control {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.2rem;
	padding: 0.2rem;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	border: 1px solid #d5e1ef;
	border-radius: 0.65rem;
	background: #f5f8fc;
}

.report-segment,
.report-scope-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2rem;
	min-width: 0;
	padding: 0.35rem 0.75rem;
	border-radius: 0.45rem;
	color: #53677f;
	font-size: 0.82rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	box-sizing: border-box;
}

.report-segment:hover,
.report-scope-btn:hover,
.report-segment:focus,
.report-scope-btn:focus {
	color: #164f91;
	background: #e9f2ff;
	text-decoration: none;
}

.report-segment.active {
	color: #ffffff;
	background: #1768c0;
	box-shadow: 0 2px 5px rgba(23, 104, 192, 0.2);
}

.report-scope-label {
	padding: 0.35rem 0.65rem;
	color: #24507f;
	font-size: 0.8rem;
	font-weight: 700;
	white-space: nowrap;
}

.report-export-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 2.2rem;
	padding: 0.4rem 0.75rem;
	border: 1px solid #1768c0;
	border-radius: 0.45rem;
	background: #1768c0;
	color: #ffffff;
	font-size: 0.82rem;
	font-weight: 700;
	text-decoration: none;
}

.report-export-btn:hover,
.report-export-btn:focus {
	background: #0f4f99;
	color: #ffffff;
	text-decoration: none;
}

@media (max-width: 767.98px) {
	.report-control-row,
	.report-segmented-control,
	.report-scope-control,
	.report-export-actions {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		justify-content: center;
		box-sizing: border-box;
	}

	.report-segment,
	.report-scope-btn,
	.report-scope-label {
		flex: 1 1 7.5rem;
		min-width: 0;
		white-space: normal;
		text-align: center;
		line-height: 1.2;
	}

	.report-export-actions .pill-btn,
	.report-export-btn {
		width: 100%;
		max-width: 100%;
		white-space: normal;
		justify-content: center;
		box-sizing: border-box;
	}
}

.drawer-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.drawer-close-text {
	border: 0;
	background: transparent;
	padding: 0;
	color: #0d4ca3;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.drawer-close-text:hover,
.drawer-close-text:focus {
	color: #083a7b;
	outline: none;
}

.page-actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.no-underline {
	text-decoration: none;
}

.inline-badge {
	display: inline-block;
}

.plan-page-intro {
	margin: 0 0 1rem;
}

.effective-term-banner {
	margin-top: 0.35rem;
	padding: 0.65rem 0.75rem;
	border: 1px solid #d6e3f3;
	border-radius: 0.7rem;
	background: linear-gradient(170deg, #ffffff 0%, #f4f9ff 100%);
}

.effective-term-label {
	margin: 0 0 0.35rem;
	font-size: 0.76rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-weight: 800;
}

.effective-term-content {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.effective-term-name {
	display: inline-flex;
	align-items: center;
	height: 1.8rem;
	padding: 0 0.62rem;
	border-radius: 999px;
	font-weight: 800;
	color: #0f4f99;
	background: #e8f1ff;
	border: 1px solid #c7dbf7;
}

.plan-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem 1rem;
}

.plan-form-with-top-gap {
	margin-top: 0.5rem;
}

.plan-field {
	display: flex;
	flex-direction: column;
	gap: 0.28rem;
}

.plan-field label {
	margin: 0;
	font-size: 0.82rem;
	color: #3f4f66;
	font-weight: 700;
}

.plan-field input,
.plan-field textarea,
.plan-field select {
	width: 100%;
	border: 1px solid #ced4da;
	background: #fff;
	border-radius: 0.35rem;
	padding: 0.55rem 0.7rem;
	font-size: 0.9rem;
}

.plan-field textarea {
	resize: vertical;
	min-height: 92px;
}

.plan-span-1 {
	grid-column: span 1;
}

.plan-span-2 {
	grid-column: span 2;
}

.plan-span-3 {
	grid-column: 1 / -1;
}

.plan-span-4 {
	grid-column: 1 / -1;
}

.field-help {
	margin: 0;
	color: #6e7e94;
	font-size: 0.8rem;
}

.password-field-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.45rem;
	align-items: center;
}

.password-toggle-btn {
	width: 2.2rem;
	height: 2.2rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #c9d8ea;
	border-radius: 0.55rem;
	background: #ffffff;
	color: #24507f;
	cursor: pointer;
	padding: 0;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus {
	background: #f4f9ff;
	outline: none;
}

.plan-form-actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.2rem;
	flex-wrap: wrap;
}

.filter-actions-row {
	justify-content: flex-start;
	flex-wrap: nowrap;
	gap: 0.5rem;
}

.filter-actions-row .prefill-btn {
	min-width: 0;
	flex: 0 1 auto;
}

.table-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	justify-content: flex-start;
}

.table-actions form {
	display: inline-flex;
	margin: 0;
}

.table-actions .row-action-btn,
.table-actions .row-action-btn-danger {
	padding: 0 0.75rem;
	min-width: 4.5rem;
	white-space: nowrap;
}

.row-action-btn-danger {
	min-width: 5.5rem;
}

.table-actions td,
.table-actions th,
.row-action-btn,
.table-actions form {
	margin-bottom: 0;
}

.table td:last-child,
.table th:last-child {
	width: 13rem;
	max-width: 14rem;
}

th,
td {
	text-align: left;
	padding: 0.75rem 0.5rem;
	border-bottom: 1px solid #f0f3f8;
	font-size: 0.9rem;
}

.row-action-btn-danger,
.row-action-btn.row-action-btn-danger {
	color: #b42318;
	border-color: #f3c2bf;
	background: #fff5f4;
}

.row-action-btn-danger:hover,
.row-action-btn-danger:focus,
.row-action-btn.row-action-btn-danger:hover,
.row-action-btn.row-action-btn-danger:focus {
	background: #ffe6e4;
}

.user-filter-form .plan-form-actions {
	margin-bottom: 0.65rem;
}

.user-filter-form {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.user-filter-form .user-filter-search,
.user-filter-form .user-filter-actions {
	grid-column: 1 / -1;
}

.lesson-plan-filter-form {
	grid-template-columns: repeat(7, minmax(0, 1fr));
}

.lesson-plan-filter-form .lesson-filter-search,
.lesson-plan-filter-form .lesson-filter-actions {
	grid-column: 1 / -1;
}

.universal-filter-form {
	grid-template-columns: repeat(7, minmax(0, 1fr));
}

.universal-filter-form .universal-filter-search,
.universal-filter-form .plan-form-actions,
.universal-filter-form .filter-actions {
	grid-column: 1 / -1;
}

.my-plans-inline-filter-wrap {
	overflow-x: visible;
	padding-bottom: 0;
	margin-bottom: 1rem;
}

.my-plans-inline-filter-form {
	display: grid !important;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	align-items: flex-end;
	gap: 0.65rem;
	margin-top: 0.85rem;
}

.my-plans-inline-filter-form .plan-field {
	margin: 0;
}

.my-plans-inline-filter-form .my-plans-search-field {
	grid-column: 1 / -1;
}

.my-plans-inline-filter-actions {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	margin: 0;
	padding-bottom: 0;
	grid-column: 1 / -1;
	white-space: nowrap;
}

.my-plans-inline-filter-actions .prefill-btn {
	white-space: nowrap;
}

@media (max-width: 767.98px) {
	.my-plans-inline-filter-form {
		display: grid !important;
		grid-template-columns: 1fr;
	}

	.my-plans-inline-filter-actions {
		white-space: normal;
		flex-wrap: wrap;
	}
}

.inline-form {
	display: inline;
}

.hidden-panel-section {
	display: none !important;
}

.pill-btn:disabled,
.prefill-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.page-loading-overlay {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(15, 23, 42, 0.58);
}

.page-loading-overlay[hidden] {
	display: none;
}

.page-loading-panel {
	width: min(26rem, 100%);
	padding: 1.5rem;
	border-radius: 0.6rem;
	background: #ffffff;
	box-shadow: 0 1rem 3rem rgba(15, 23, 42, 0.22);
	text-align: center;
}

.page-loading-spinner {
	display: inline-block;
	width: 2.25rem;
	height: 2.25rem;
	margin-bottom: 0.9rem;
	border: 0.25rem solid #dbe5f0;
	border-top-color: #2563eb;
	border-radius: 50%;
	animation: page-loading-spin 0.8s linear infinite;
}

.page-loading-title {
	display: block;
	color: #172033;
	font-size: 1.05rem;
	font-weight: 700;
}

.page-loading-message {
	margin: 0.4rem 0 0;
	color: #526174;
	font-size: 0.9rem;
}

@keyframes page-loading-spin {
	to { transform: rotate(360deg); }
}

.settings-hero {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem 1.35rem;
	border: 1px solid #dce7f5;
	border-radius: 1rem;
	background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
	box-shadow: 0 8px 20px rgba(15, 79, 153, 0.08);
}

.settings-hero__content h2 {
	margin: 0.2rem 0 0.35rem;
	color: #12355d;
}

.settings-hero__content p {
	margin: 0;
	color: #51627f;
	max-width: 48rem;
}

.settings-hero__badge {
	display: inline-flex;
	align-items: center;
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
	background: #e3efff;
	color: #0f4f99;
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.settings-hero__stats {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.settings-hero__stats div {
	min-width: 7.5rem;
	padding: 0.7rem 0.8rem;
	border-radius: 0.8rem;
	background: #ffffff;
	border: 1px solid #d7e5f7;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.settings-hero__stats strong {
	display: block;
	font-size: 1rem;
	color: #12355d;
}

.settings-hero__stats span {
	font-size: 0.75rem;
	color: #6e7e94;
}

.settings-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.settings-card {
	display: flex;
	align-items: flex-start;
	padding: 1rem 1rem 1.05rem;
	border: 1px solid #dce7f5;
	border-radius: 0.95rem;
	background: #ffffff;
	color: inherit;
	text-decoration: none;
	box-shadow: 0 6px 16px rgba(15, 79, 153, 0.06);
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.settings-card:hover,
.settings-card:focus {
	transform: translateY(-2px);
	box-shadow: 0 12px 22px rgba(15, 79, 153, 0.12);
	border-color: #bcd4f0;
	text-decoration: none;
}

.settings-card h3 {
	margin: 0 0 0.25rem;
	color: #12355d;
	font-size: 1rem;
}

.settings-card p {
	margin: 0;
	color: #5b6b80;
	font-size: 0.9rem;
	line-height: 1.45;
}

.settings-panel {
	border: 1px solid #dce7f5;
	box-shadow: 0 10px 24px rgba(15, 79, 153, 0.07);
}

.settings-panel__eyebrow {
	margin: 0 0 0.2rem;
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #4b73a8;
}

.settings-panel__chip {
	display: inline-flex;
	align-items: center;
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
	background: #eef5ff;
	color: #0f4f99;
	font-size: 0.78rem;
	font-weight: 700;
}

.settings-panel__intro {
	margin: 0 0 0.8rem;
	color: #5b6b80;
}

@media (max-width: 640px) {
	.drawer-prefill-row {
		grid-template-columns: 1fr;
	}

	.plan-form {
		grid-template-columns: 1fr;
	}

	.plan-span-2 {
		grid-column: span 1;
	}

	.settings-hero {
		flex-direction: column;
		align-items: flex-start;
	}

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

.row-actions {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.plan-card {
	display: flex;
	flex-direction: column;
}

.card-select-row {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 0.35rem;
}

.card-select-row label {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.card-actions-bottom {
	margin-top: auto;
	display: flex;
	justify-content: flex-end;
}

.user-stats-grid {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	gap: 1rem;
	margin-bottom: 1rem;
}

.user-stats-grid .user-summary-card {
	flex: 0 0 11rem;
}

.user-summary-card {
	position: relative;
	overflow: hidden;
	padding: 1rem 0.95rem 1.05rem;
	border: 1px solid #cfe0f5;
	border-radius: 0.85rem;
	box-shadow: 0 6px 16px rgba(15, 79, 153, 0.08);
	background: linear-gradient(160deg, #ffffff 0%, #f2f8ff 46%, #e7f1ff 100%);
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.user-summary-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 0.24rem;
	background: linear-gradient(90deg, #1768c0 0%, #2c94ff 100%);
}

.user-summary-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(15, 79, 153, 0.14);
	border-color: #bfd5ef;
}

.user-summary-icon {
	width: 3rem;
	height: 3rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 0.8rem;
	font-size: 2.1rem;
	line-height: 1;
	color: #0f4f99;
	background: linear-gradient(165deg, #ffffff 0%, #dcecff 100%);
	box-shadow: inset 0 0 0 1px rgba(44, 148, 255, 0.22);
	margin-bottom: 0.55rem;
}

.user-summary-icon i {
	display: inline-block;
}

.user-stats-grid .user-summary-card:nth-child(3n + 1) .user-summary-icon {
	color: #0f4f99;
	background: linear-gradient(165deg, #ffffff 0%, #d9ebff 100%);
}

.user-stats-grid .user-summary-card:nth-child(3n + 2) .user-summary-icon {
	color: #0a6b48;
	background: linear-gradient(165deg, #ffffff 0%, #d7f7e7 100%);
}

.user-stats-grid .user-summary-card:nth-child(3n + 3) .user-summary-icon {
	color: #8f3a06;
	background: linear-gradient(165deg, #ffffff 0%, #ffe6d4 100%);
}

.user-summary-card .muted {
	display: block;
	margin-bottom: 0.22rem;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.user-summary-value {
	margin: 0;
	font-size: 1.75rem;
	color: #0f4f99;
	font-weight: 900;
}

.user-role-tabs {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-bottom: 0.75rem;
}

.user-role-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.2rem;
	padding: 0 0.85rem;
	border: 1px solid #c9d8ea;
	border-radius: 0.55rem;
	background: #ffffff;
	color: #24507f;
	font-weight: 700;
	text-decoration: none;
}

.user-role-tab:hover,
.user-role-tab:focus {
	background: #f4f9ff;
	text-decoration: none;
}

.user-role-tab.active {
	background: linear-gradient(180deg, #2485f2 0%, #1768c0 100%);
	border-color: #1768c0;
	color: #ffffff;
}

.user-table-actions {
	white-space: nowrap;
}

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

.user-card {
	padding: 1rem;
	gap: 0.75rem;
}

.user-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 0.75rem;
}

.user-card-role {
	margin: 0.2rem 0 0;
}

.user-card-line {
	margin: 0;
}

.user-card-actions {
	margin-top: auto;
}

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

.grade-checklist {
	max-height: 220px;
	overflow: auto;
	border: 1px solid #d7e2ef;
	border-radius: 0.65rem;
	padding: 0.4rem;
	background: linear-gradient(180deg, #fbfdff 0%, #f4f9ff 100%);
}

.grade-checklist-empty {
	margin: 0.35rem 0.25rem;
	font-size: 0.82rem;
}

.grade-checklist-item {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.38rem 0.45rem;
	border-radius: 0.45rem;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.grade-checklist-item:hover {
	background: #eaf3ff;
}

.grade-checklist-item input[type="checkbox"] {
	width: 1rem;
	height: 1rem;
	margin: 0;
	accent-color: #1768c0;
	flex-shrink: 0;
}

.grade-checklist-item span {
	font-size: 0.88rem;
	color: #183a63;
	line-height: 1.3;
}

.grade-checklist-item input[type="checkbox"]:checked + span {
	font-weight: 700;
	color: #0f4f99;
}

.grade-checklist-actions {
	justify-content: flex-start;
	gap: 0.45rem;
	margin-top: 0.45rem;
}

.grade-checklist-actions .prefill-btn {
	height: 2rem;
	font-size: 0.8rem;
	padding: 0 0.72rem;
}

.grade-subject-pickers {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.9rem;
}

.status-actions-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.card-actions-inline {
	margin-left: auto;
}

.row-action-btn {
	width: 1.95rem;
	height: 1.95rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #d4deeb;
	border-radius: 0.45rem;
	background: #f8fbff;
	color: #0f4f99;
	cursor: pointer;
	text-decoration: none;
	padding: 0;
}

.row-action-btn:hover,
.row-action-btn:focus {
	background: #e9f2ff;
	color: #0d3f7a;
}

.row-action-btn.danger {
	color: #b42318;
	border-color: #f3c2bf;
	background: #fff5f4;
}

.row-action-btn.danger:hover,
.row-action-btn.danger:focus {
	background: #ffe6e4;
}

.row-action-btn.success {
	color: #067647;
	border-color: #b7e5cf;
	background: #f0fff7;
}

.row-action-btn.success:hover,
.row-action-btn.success:focus {
	background: #dbfbe9;
}

.row-action-btn.warning {
	color: #b54708;
	border-color: #f7d6a8;
	background: #fff8eb;
}

.row-action-btn.warning:hover,
.row-action-btn.warning:focus {
	background: #ffefcf;
}

.bulk-status-btn {
	width: auto;
	min-width: 2rem;
	padding: 0 0.65rem;
	gap: 0.35rem;
	font-size: 0.85rem;
}

.bulk-status-btn:disabled,
.bulk-status-btn:disabled:hover,
.bulk-status-btn:disabled:focus {
	color: #64748b;
	border-color: #cbd5e1;
	background: #e2e8f0;
	opacity: 1;
	cursor: not-allowed;
	pointer-events: none;
}

.row-action-btn.disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

.full {
	width: 100%;
	margin-top: 0.375rem;
}

.login-main {
	display: grid;
	place-items: center;
	min-height: 100vh;
}

.login-page {
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: 2rem 1.5rem;
}

.login-card {
	width: min(480px, 100%);
	background: #fff;
	border: 1px solid #d5e2f0;
	border-radius: 0.75rem;
	box-shadow: 0 1.5rem 3.5rem rgba(24, 59, 97, 0.12), 0 0.25rem 0.75rem rgba(24, 59, 97, 0.06);
	padding: 2.25rem;
	position: relative;
	overflow: hidden;
}

.login-card::before {
	content: '';
	position: absolute;
	inset: 0 0 auto;
	height: 0.3rem;
	background: linear-gradient(90deg, var(--lpms-brand-dark), var(--lpms-brand), #52a8f5);
}

.login-brand {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	color: var(--lpms-brand-dark);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.login-brand__mark {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 0.55rem;
	background: #e8f2ff;
	color: var(--lpms-brand);
	font-size: 1rem;
}

.login-heading {
	margin: 2rem 0 1.5rem;
}

.login-eyebrow {
	margin: 0 0 0.4rem;
	color: var(--lpms-brand);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.login-card h1 {
	margin: 0 0 0.55rem;
	color: #183b61;
	font-size: clamp(1.65rem, 4vw, 2.1rem);
	line-height: 1.15;
}

.login-heading > p:last-child {
	margin: 0;
	color: #6e7e94;
	line-height: 1.55;
}

.login-form {
	display: grid;
	gap: 0.625rem;
}

.login-error {
	background: #fee2e2;
	border: 1px solid #fecaca;
	color: #991b1b;
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	border-radius: 0.45rem;
	padding: 0.75rem;
	font-size: 0.86rem;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: 1.25rem;
}

.login-form label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.84rem;
	color: #3f4f66;
	font-weight: 700;
}

.login-form {
	gap: 1rem;
}

.login-field {
	min-width: 0;
}

.login-form input,
.login-form textarea,
.search-wrap input {
	width: 100%;
	border: 1px solid #ced4da;
	background: #fff;
	border-radius: 0.45rem;
	padding: 0.72rem 0.8rem;
	font-size: 0.95rem;
	transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.login-form input:focus {
	border-color: var(--lpms-brand);
	background: #fbfdff;
	box-shadow: 0 0 0 0.2rem rgba(30, 107, 214, 0.14);
	outline: 0;
}

.password-field {
	position: relative;
}

.password-field input {
	padding-right: 3rem;
}

.password-toggle {
	position: absolute;
	top: 50%;
	right: 0.45rem;
	width: 2.25rem;
	height: 2.25rem;
	transform: translateY(-50%);
	border: 0;
	border-radius: 0.35rem;
	background: transparent;
	color: #58718e;
	cursor: pointer;
}

.password-toggle:hover {
	background: #edf5ff;
	color: var(--lpms-brand-dark);
}

.password-toggle:focus-visible,
.login-form button:focus-visible {
	outline: 2px solid var(--lpms-brand);
	outline-offset: 2px;
}

.login-form .pill-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 2.8rem;
	margin-top: 0.25rem;
	font-size: 0.95rem;
}

.login-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	margin: 1.5rem 0 0;
	color: #71839a;
	font-size: 0.78rem;
}

.login-footer i {
	color: #4a91d9;
}

.login-form textarea {
	resize: vertical;
	min-height: 92px;
}

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

	.user-stats-grid {
		display: flex;
		flex-wrap: nowrap;
	}

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

	.content-grid,
	.dashboard-charts-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767.98px) {
	.login-page {
		padding: 1rem;
	}

	.login-card {
		padding: 1.75rem 1.25rem;
	}

	.login-heading {
		margin-top: 1.5rem;
	}

	.card-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.lesson-plan-filter-form {
		grid-template-columns: 1fr !important;
	}

	.lesson-plan-filter-form input[name="q"] {
		grid-column: span 1 !important;
	}

	.lesson-plan-filter-form .filter-actions {
		grid-column: span 1 !important;
	}

	.filter-actions {
		justify-content: flex-start;
	}

	.hero {
		flex-direction: column;
		align-items: flex-start;
	}

	.hero-metrics {
		width: 100%;
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

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

	.user-stats-grid {
		flex-wrap: nowrap;
	}

	.user-drawer-form {
		grid-template-columns: 1fr;
	}

	.grade-checklist {
		max-height: 190px;
	}

	.grade-subject-pickers {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}

	/* Larger, easier mobile next/previous controls */
	.list-pager-footer .pager-nav,
	.users-toolbar .pager-nav,
	.reflection-monitor-toolbar .pager-nav,
	.reflections-toolbar-pagination .pager-nav,
	[id$="PaginationNav"] {
		display: flex !important;
		align-items: stretch;
		gap: 0.55rem !important;
		width: 100%;
		max-width: 100%;
		margin-left: 0 !important;
		box-sizing: border-box;
		min-width: 0;
	}

	.list-pager-footer .pager-nav > a.pill-btn,
	.list-pager-footer .pager-nav > button.pill-btn,
	.users-toolbar .pager-nav > a.pill-btn,
	.users-toolbar .pager-nav > button.pill-btn,
	.reflection-monitor-toolbar .pager-nav > a.pill-btn,
	.reflection-monitor-toolbar .pager-nav > button.pill-btn,
	.reflections-toolbar-pagination .pager-nav > a.pill-btn,
	.reflections-toolbar-pagination .pager-nav > button.pill-btn,
	[id$="PaginationNav"] > a.pill-btn,
	[id$="PaginationNav"] > button.pill-btn {
		flex: 1 1 0;
		min-width: 0;
		min-height: 2.85rem;
		padding: 0.7rem 0.85rem !important;
		font-size: 1.05rem !important;
		line-height: 1 !important;
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
		text-decoration: none;
	}

	.list-pager-footer .pager-nav > button.pill-btn:disabled,
	.users-toolbar .pager-nav > button.pill-btn:disabled,
	.reflection-monitor-toolbar .pager-nav > button.pill-btn:disabled,
	.reflections-toolbar-pagination .pager-nav > button.pill-btn:disabled,
	[id$="PaginationNav"] > button.pill-btn:disabled {
		opacity: 0.45;
		background: #94a3b8;
		cursor: not-allowed;
		pointer-events: none;
	}

	.detail-nav-btn,
	.teacher-detail-header a[title="Previous plan"],
	.teacher-detail-header a[title="Next plan"] {
		min-width: 2.85rem !important;
		min-height: 2.85rem !important;
		padding: 0.7rem 0.85rem !important;
		font-size: 1.05rem !important;
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
	}

	.list-pager-footer {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		justify-content: flex-start !important;
		gap: 0.65rem !important;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	.list-pager-footer > .muted,
	.list-pager-footer > .page-size-selector {
		width: 100%;
	}

	.list-pager-footer .page-size-selector {
		justify-content: space-between;
	}

	.list-pager-footer .page-size-label {
		white-space: nowrap;
	}

	.users-toolbar .page-size-selector,
	.reflection-monitor-toolbar .page-size-selector,
	.reflections-toolbar-pagination .page-size-selector {
		flex: 0 0 auto;
		width: 100%;
		max-width: 100%;
		justify-content: flex-start;
		gap: 0.5rem;
		box-sizing: border-box;
	}

	.users-toolbar .page-size-selector select,
	.reflections-toolbar-pagination .page-size-selector select {
		margin-left: auto;
	}

	.users-toolbar .page-size-label {
		font-size: 0.82rem;
	}

	[id$="PaginationInfo"],
	.reflections-toolbar-pagination > .muted {
		flex: 1 1 100%;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}
}
