/**
 * RNMindsetPrep — Design v2 (cheat-sheet exam prep portal polish)
 */

:root {
	--nip-font-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--nip-font-display: 'Fraunces', Georgia, serif;
	--nip-gradient-hero: linear-gradient(135deg, #0f1f3d 0%, #1a3a6b 42%, #2d6bb3 100%);
	--nip-gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
	--nip-glow: 0 20px 50px rgba(26, 45, 90, 0.12);
	--nip-radius-lg: 20px;
	--nip-radius-sm: 10px;
	--nip-app-max: 1680px;
	--nip-lesson-max: 100%;
	--nip-portal-sticky-top: 0px;
}

@supports (width: min(1px, 2px)) {
	:root {
		--nip-app-max: min(96vw, 1680px);
	}
}

body.nip-theme-portal {
	background: linear-gradient(180deg, #eef3fa 0%, var(--nip-bg, #f4f7fb) 35%);
}

/* —— LMS app shell (portal pages) —— */
.nip-lms-app {
	font-family: var(--nip-font-sans);
	max-width: var(--nip-app-max);
	padding: 1.25rem 1.25rem calc(1.25rem + var(--nip-safe-bottom, 0px));
	background: transparent;
	border-radius: 0;
}

.nip-lms-app__title {
	font-family: var(--nip-font-display);
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--nip-navy, #1a2d5a);
}

.nip-lms-shell {
	display: grid;
	gap: 1.5rem;
}

.nip-lms-shell__main {
	min-width: 0;
}

.nip-lms-topic-article,
.nip-lms-lesson-body {
	max-width: var(--nip-lesson-max);
	width: 100%;
}

.nip-lms-shell--portal {
	--nip-lesson-max: 100%;
	--nip-portal-rail: min(30%, 260px);
	max-width: min(96vw, 1680px);
	margin-inline: auto;
}

@media (min-width: 1024px) {
	.nip-lms-shell--portal {
		grid-template-columns: var(--nip-portal-rail) minmax(0, 1fr);
		align-items: start;
		max-width: min(96vw, 1680px);
		margin-inline: auto;
		padding-inline: 1rem;
		gap: 1.25rem;
	}

	.nip-lms-shell--portal .nip-lms-shell__main {
		max-width: none;
		width: 100%;
	}

	.nip-lms-shell--portal .nip-portal-topnav {
		display: none;
	}

	.nip-lms-shell--topic .nip-lms-shell__main {
		max-width: none;
	}

	.nip-lms-shell--portal .nip-lms-sidebar--portal-rail {
		display: block;
		position: sticky;
		top: var(--nip-portal-sticky-top);
		align-self: start;
		width: 100%;
		max-width: var(--nip-portal-rail);
		height: auto;
		max-height: calc(100vh - var(--nip-portal-sticky-top));
		overflow-y: auto;
		transform: none;
		box-shadow: none;
		z-index: auto;
	}

	.nip-lms-sidebar {
		display: block;
		position: sticky;
		top: var(--nip-portal-sticky-top);
		align-self: start;
		max-height: calc(100vh - var(--nip-portal-sticky-top));
		overflow-y: auto;
	}
}

.nip-portal-topnav {
	position: sticky;
	top: var(--nip-portal-sticky-top);
	z-index: 40;
	margin: 0 0 1rem;
	padding: 0.35rem 0;
	background: rgba(244, 247, 251, 0.92);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--nip-border, #e2e8f0);
}

.nip-portal-mobile-bar {
	position: sticky;
	top: var(--nip-portal-sticky-top);
	z-index: 41;
	background: rgba(244, 247, 251, 0.95);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	padding-bottom: 0.35rem;
	margin-bottom: 0.5rem;
}

.nip-portal-scroll-top {
	position: fixed;
	right: 1rem;
	bottom: calc(1.25rem + var(--nip-safe-bottom, 0px));
	z-index: 60;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	border: none;
	background: var(--nip-navy, #1a2d5a);
	color: #fff;
	font-size: 1.25rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: var(--nip-glow);
}

.nip-lms-activity-pulse__chart {
	display: flex;
	align-items: flex-end;
	gap: 0.5rem;
	min-height: 140px;
	padding: 0.5rem 0;
}

.nip-lms-activity-pulse__bar {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 0.25rem;
	min-width: 0;
	padding: 0;
	border: none;
	background: transparent;
	cursor: default;
}

.nip-lms-activity-pulse__fill {
	display: block;
	width: 100%;
	max-width: 2.5rem;
	min-height: 8px;
	border-radius: 6px 6px 2px 2px;
	background: linear-gradient(180deg, #3d7ebf 0%, #1a3a6b 100%);
	transition: height 0.35s ease;
}

.nip-lms-activity-pulse__label {
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--nip-muted, #64748b);
}

.nip-lms-activity-pulse__count {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--nip-navy, #1a2d5a);
}

.nip-lms-site-footer {
	margin-top: 2rem;
	padding: 1.25rem 0 0.5rem;
	border-top: 1px solid var(--nip-border, #e2e8f0);
}

.nip-lms-site-footer--minimal {
	margin-top: 2.5rem;
	padding: 1.35rem 0 calc(1.35rem + var(--nip-safe-bottom, env(safe-area-inset-bottom, 0px)));
	background: linear-gradient(165deg, #0c182f 0%, #1a2d5a 48%, #243b6e 100%);
	border-top: none;
	color: rgba(255, 255, 255, 0.82);
}

.nip-lms-site-footer--minimal .nip-lms-site-footer__inner {
	max-width: var(--nip-app-max, 1680px);
	margin-inline: auto;
	padding-inline: 1.25rem;
	align-items: flex-start;
	gap: 0.5rem 1.5rem;
}

.nip-lms-site-footer--minimal .nip-lms-site-footer__copy {
	margin: 0;
	color: #fff;
	font-weight: 600;
	font-size: 0.9rem;
}

.nip-lms-site-footer--minimal .nip-lms-site-footer__disclaimer {
	color: rgba(255, 255, 255, 0.62);
	font-size: 0.76rem;
	line-height: 1.5;
}

.nip-lms-site-footer--minimal .nip-lms-site-footer__legal a {
	color: rgba(255, 255, 255, 0.88);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.8rem;
}

.nip-lms-site-footer--minimal .nip-lms-site-footer__legal a:hover {
	text-decoration: underline;
}

.nip-lms-site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	align-items: center;
	justify-content: space-between;
	font-size: 0.88rem;
	color: var(--nip-muted, #64748b);
}

.nip-lms-site-footer__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
}

.nip-lms-site-footer__nav a {
	color: var(--nip-navy, #1a2d5a);
	text-decoration: none;
	font-weight: 500;
}

.nip-lms-site-footer__nav a:hover {
	text-decoration: underline;
}

/* —— NGN Bow-tie (3-column) —— */
.nip-bowtie {
	margin: 1rem 0;
}

.nip-bowtie-scenario {
	background: #eef2f7;
	border-left: 5px solid #2b6cb0;
	padding: 1rem 1.1rem;
	border-radius: 8px;
	margin-bottom: 1rem;
	font-size: 0.95rem;
	line-height: 1.55;
}

.nip-bowtie-instructions {
	margin: 0 0 0.5rem;
	font-weight: 600;
	color: var(--nip-navy, #1a2d5a);
}

.nip-bowtie-lead {
	margin: 0 0 1rem;
	color: var(--nip-muted, #64748b);
	font-size: 0.92rem;
}

.nip-bowtie-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.nip-bowtie-grid--two-col {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
	.nip-bowtie-grid {
		grid-template-columns: 1fr;
	}
}

.nip-bowtie-col {
	border-radius: 12px;
	padding: 1rem 1.1rem;
	box-shadow: 0 2px 8px rgba(15, 31, 61, 0.06);
}

.nip-bowtie-col--actions {
	background: #ebf8ff;
	border: 2px solid #bee3f8;
}

.nip-bowtie-col--condition {
	background: #fffaf0;
	border: 2px solid #feebc8;
}

.nip-bowtie-col--monitor {
	background: #faf5ff;
	border: 2px solid #e9d8fd;
}

.nip-bowtie-col h3 {
	margin: 0 0 0.75rem;
	font-size: 1rem;
	text-align: center;
	line-height: 1.35;
}

.nip-bowtie-col--actions h3 {
	color: #2b6cb0;
}

.nip-bowtie-col--condition h3 {
	color: #dd6b20;
}

.nip-bowtie-col--monitor h3 {
	color: #6b46c1;
}

.nip-bowtie-col__hint {
	display: block;
	font-size: 0.78rem;
	font-weight: 500;
	opacity: 0.85;
}

.nip-bowtie-col__options {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.nip-bowtie-option {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	background: #fff;
	padding: 0.65rem 0.75rem;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.nip-bowtie-option:hover {
	transform: translateY(-1px);
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.nip-bowtie-option input {
	margin-top: 0.2rem;
	flex-shrink: 0;
	transform: scale(1.15);
}

.nip-bowtie-option__text {
	flex: 1;
	font-size: 0.92rem;
	line-height: 1.4;
}

.nip-bowtie-option__mark::after {
	content: '';
}

.nip-bowtie-option.is-correct {
	background: #c6f6d5 !important;
	border-color: #38a169 !important;
	color: #22543d;
}

.nip-bowtie-option.is-correct .nip-bowtie-option__mark::after {
	content: ' ✓';
	font-weight: 700;
}

.nip-bowtie-option.is-incorrect {
	background: #fed7d7 !important;
	border-color: #e53e3e !important;
	color: #742a2a;
}

.nip-bowtie-option.is-incorrect .nip-bowtie-option__mark::after {
	content: ' ✗';
	font-weight: 700;
}

.nip-bowtie-option.is-missed {
	border: 2px dashed #38a169 !important;
	background: #f0fff4 !important;
}

.nip-bowtie-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	margin-top: 0.5rem;
}

.nip-bowtie-check {
	background: #319795 !important;
	border-color: #319795 !important;
}

.nip-bowtie-rationale {
	margin-top: 1.25rem;
	padding: 1.1rem 1.25rem;
	background: #fffaf0;
	border: 1px solid #feebc8;
	border-radius: 10px;
}

.nip-bowtie-rationale h4 {
	margin: 0 0 0.5rem;
	color: #dd6b20;
}

.nip-bowtie-rationale__body {
	font-size: 0.94rem;
	line-height: 1.55;
}

.nip-lms-exam-review__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
	gap: 0.75rem;
	margin: 1rem 0 1.25rem;
}

.nip-lms-exam-review__stat {
	padding: 0.75rem 1rem;
	border-radius: var(--nip-radius-sm, 10px);
	border: 1px solid var(--nip-border, #e2e8f0);
	text-align: center;
	background: #fff;
}

.nip-lms-exam-review__stat-num {
	display: block;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
}

.nip-lms-exam-review__stat--bad {
	background: #fff5f5;
	border-color: #feb2b2;
}

.nip-lms-exam-review__stat--good {
	background: #f0fff4;
	border-color: #9ae6b4;
}

.nip-lms-exam-review__stat--neutral {
	background: #ebf8ff;
	border-color: #90cdf4;
}

.nip-lms-results-layout {
	display: grid;
	gap: 1.25rem;
	margin-top: 1rem;
}

@media (min-width: 960px) {
	.nip-lms-results-layout {
		grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
		align-items: start;
	}
}

.nip-lms-results-strategic {
	position: sticky;
	top: 1rem;
	padding: 1rem;
	border: 1px solid var(--nip-border, #e2e8f0);
	border-radius: var(--nip-radius-md, 14px);
	background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
}

.nip-lms-results-strategic h4 {
	margin: 0 0 0.5rem;
}

.nip-lms-exam-review__items {
	display: grid;
	gap: 1rem;
}

.nip-lms-exam-review__item {
	padding: 1rem 1.1rem;
	border: 1px solid var(--nip-border, #e2e8f0);
	border-radius: var(--nip-radius-md, 14px);
	background: #fff;
}

.nip-lms-exam-review__item--incorrect {
	border-left: 4px solid #e53e3e;
}

.nip-lms-exam-review__item--correct {
	border-left: 4px solid #38a169;
}

.nip-lms-exam-review__item-head h5 {
	margin: 0 0 0.65rem;
}

.nip-lms-exam-review__stem {
	margin-bottom: 0.75rem;
	overflow-x: auto;
}

.nip-lms-exam-review__answers {
	display: grid;
	gap: 0.35rem 1rem;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	margin: 0 0 0.75rem;
}

.nip-lms-exam-review__answers dt {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--nip-muted, #64748b);
}

.nip-lms-exam-review__answers dd {
	margin: 0.15rem 0 0;
	font-weight: 600;
}

.nip-lms-exam-review__correct-wrap {
	margin-top: 1rem;
}

@media (max-width: 1023px) {
	.nip-lms-shell--portal > .nip-lms-sidebar {
		display: none;
	}
}

.nip-lms-practice-hub__grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	margin-bottom: 1rem;
}

@media (min-width: 640px) {
	.nip-lms-practice-hub__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.nip-lms-practice-hub__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.nip-lms-practice-hub__featured {
	border-color: rgba(61, 126, 191, 0.45);
	background: rgba(61, 126, 191, 0.06);
}

.nip-lms-qbank-hero {
	border: 1px solid var(--nip-border);
	border-radius: var(--nip-radius-lg);
	padding: 1.25rem;
}

.nip-portal-mobile-bar {
	display: flex;
	align-items: center;
	margin-bottom: 0.75rem;
}

@media (min-width: 1024px) {
	.nip-portal-mobile-bar {
		display: none;
	}
}

.nip-portal-menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 2.5rem;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	border: 1px solid rgba(61, 126, 191, 0.22);
	background: linear-gradient(180deg, #fff 0%, #f4f8fc 100%);
	color: var(--nip-navy, #1a2d5a);
	font-weight: 600;
	font-size: 0.86rem;
	letter-spacing: 0.01em;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(15, 31, 61, 0.08);
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	transition: transform 0.08s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.nip-portal-menu-toggle:active {
	transform: scale(0.96);
}

.nip-portal-menu-toggle__icon {
	width: 1rem;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
	box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.nip-portal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 9998;
	background: rgba(15, 31, 61, 0.45);
}

body.nip-portal-nav-open {
	overflow: hidden;
}

@media (max-width: 1023px) {
	.nip-lms-sidebar--drawer {
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		z-index: 9999;
		width: min(86vw, 320px);
		height: 100%;
		max-height: 100dvh;
		overflow-y: auto;
		transform: translateX(-105%);
		transition: transform 0.22s ease;
		box-shadow: 0 0 40px rgba(15, 31, 61, 0.2);
	}

	.nip-lms-sidebar--drawer.is-open {
		transform: translateX(0);
	}

	.nip-lms-sidebar--drawer .nip-lms-sidebar__nav {
		border-radius: 0;
		min-height: 100%;
		box-shadow: none;
	}

	.nip-lms-sidebar__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0.85rem 1rem;
		border-bottom: 1px solid var(--nip-border);
		background: var(--nip-card, #fff);
	}

	.nip-lms-sidebar__title {
		font-size: 0.95rem;
		color: var(--nip-navy);
	}

	.nip-portal-drawer__close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 2.25rem;
		height: 2.25rem;
		border: none;
		border-radius: var(--nip-radius-sm);
		background: transparent;
		color: var(--nip-muted);
		font-size: 1.5rem;
		line-height: 1;
		cursor: pointer;
	}
}

@media (min-width: 1024px) {
	.nip-lms-sidebar__head {
		display: none;
	}

	.nip-portal-backdrop {
		display: none !important;
	}
}

.nip-portal-topnav {
	margin-bottom: 1rem;
	padding: 0.5rem 0.25rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.nip-portal-topnav__list {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	min-width: min-content;
}

.nip-portal-topnav__link {
	display: inline-block;
	padding: 0.45rem 0.75rem;
	border-radius: var(--nip-radius-sm);
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--nip-muted);
	background: var(--nip-card, #fff);
	border: 1px solid var(--nip-border);
	white-space: nowrap;
}

.nip-portal-topnav__link:hover,
.nip-portal-topnav__link.is-active {
	color: var(--nip-navy);
	border-color: rgba(61, 126, 191, 0.35);
	background: rgba(61, 126, 191, 0.08);
}

@media (min-width: 1024px) {
	.nip-lms-shell--topic .nip-portal-topnav {
		display: none;
	}
}

.nip-lms-quiz__options {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	margin: 0.75rem 0 1rem;
}

.nip-lms-quiz__option {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	width: 100%;
	text-align: left;
}

.nip-lms-quiz__option.is-correct {
	border-color: #16a34a;
	background: rgba(22, 163, 74, 0.08);
	box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.15);
}

.nip-lms-quiz__option.is-incorrect {
	border-color: #dc2626;
	background: rgba(220, 38, 38, 0.06);
	box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12);
}

.nip-lms-progress-report--loading .nip-progress-report__summary-grid,
.nip-nclex-readiness--loading .nip-lms-readiness-breakdown {
	opacity: 0.55;
}

.nip-header-search__form {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.3rem 0.35rem 0.3rem 0.85rem;
	background: #fff;
	border: 1px solid var(--nip-border);
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba(26, 45, 90, 0.08);
}

.nip-header-search__form:focus-within {
	border-color: rgba(61, 126, 191, 0.55);
	box-shadow: 0 0 0 3px rgba(61, 126, 191, 0.12);
}

.nip-header-search__icon {
	flex-shrink: 0;
	width: 1.1rem;
	height: 1.1rem;
	opacity: 0.55;
	background: var(--nip-navy);
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6.5 1a5.5 5.5 0 104.2 9.1l3 3 1.4-1.4-3-3A5.5 5.5 0 006.5 1zm0 2a3.5 3.5 0 110 7 3.5 3.5 0 010-7z'/%3E%3C/svg%3E") center/contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6.5 1a5.5 5.5 0 104.2 9.1l3 3 1.4-1.4-3-3A5.5 5.5 0 006.5 1zm0 2a3.5 3.5 0 110 7 3.5 3.5 0 010-7z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.nip-header-search__input {
	flex: 1;
	border: none;
	background: transparent;
	font: inherit;
	font-size: 0.95rem;
	padding: 0.5rem 0;
	min-width: 0;
}

.nip-header-search__input:focus {
	outline: none;
}

@media (min-width: 1024px) {
	.nip-lms-sidebar {
		display: block;
		position: sticky;
		top: 5.5rem;
	}
}

.nip-lms-sidebar__nav {
	list-style: none;
	margin: 0;
	padding: 0.75rem;
	background: var(--nip-card, #fff);
	border-radius: var(--nip-radius-lg);
	border: 1px solid var(--nip-border);
	box-shadow: var(--nip-glow);
}

.nip-lms-sidebar__nav a {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.65rem 0.85rem;
	border-radius: var(--nip-radius-sm);
	text-decoration: none;
	color: var(--nip-muted);
	font-weight: 500;
	font-size: 0.92rem;
}

.nip-lms-sidebar__nav a:hover,
.nip-lms-sidebar__nav a.is-active {
	background: rgba(61, 126, 191, 0.1);
	color: var(--nip-navy);
}

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

@media (min-width: 640px) {
	.nip-lms-stat-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.nip-lms-stat-card {
	background: var(--nip-gradient-card);
	border: 1px solid var(--nip-border);
	border-radius: var(--nip-radius-lg);
	padding: 1rem 1.1rem;
	box-shadow: var(--nip-glow);
}

.nip-lms-stat-card__label {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--nip-muted);
	margin: 0 0 0.25rem;
}

.nip-lms-stat-card__value {
	font-family: var(--nip-font-display);
	font-size: 1.65rem;
	font-weight: 600;
	color: var(--nip-navy);
	margin: 0;
	line-height: 1.1;
}

.nip-lms-card {
	border-radius: var(--nip-radius-lg);
	box-shadow: var(--nip-glow);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nip-lms-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 24px 48px rgba(26, 45, 90, 0.14);
}

.nip-lms-button {
	font-family: var(--nip-font-sans);
	letter-spacing: 0.01em;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nip-lms-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(26, 45, 90, 0.25);
}

.nip-lms-readiness-ring {
	width: 5.5rem;
	height: 5.5rem;
	border-radius: 50%;
	background: conic-gradient(var(--nip-gold) calc(var(--pct, 0) * 1%), rgba(226, 232, 240, 0.9) 0);
	display: grid;
	place-items: center;
	box-shadow: var(--nip-glow);
}

.nip-lms-readiness-ring__value {
	width: 4.25rem;
	height: 4.25rem;
	border-radius: 50%;
	background: #fff;
	display: grid;
	place-items: center;
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--nip-navy);
}

/* Course catalog — section cards */
.nip-lms-section-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.nip-lms-section-card {
	background: var(--nip-card);
	border: 1px solid var(--nip-border);
	border-radius: var(--nip-radius-lg);
	padding: 1.35rem;
	box-shadow: var(--nip-glow);
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.nip-lms-section-card__num {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--nip-blue);
}

.nip-lms-section-card__title {
	font-family: var(--nip-font-display);
	font-size: 1.15rem;
	margin: 0;
	color: var(--nip-navy);
	line-height: 1.25;
}

.nip-lms-section-card__meta {
	font-size: 0.88rem;
	color: var(--nip-muted);
	margin: 0;
}

.nip-lms-section-card__topics {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.85rem;
	color: var(--nip-muted);
}

.nip-lms-section-card__topics li {
	padding: 0.2rem 0;
	border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.nip-lms-course-row {
	border-radius: var(--nip-radius-sm);
	padding: 0.65rem 0.75rem;
}

/* Progress trail polish */
.nip-course-trail {
	background: var(--nip-card);
	border-radius: var(--nip-radius-lg);
	padding: 0.85rem 1rem;
	box-shadow: var(--nip-glow);
	border: 1px solid var(--nip-border);
}

/* Quiz workspace */
.nip-lms-quiz__option {
	border-radius: var(--nip-radius-sm);
	border: 2px solid var(--nip-border);
	transition: border-color 0.15s, background 0.15s;
}

.nip-lms-quiz__option:hover {
	border-color: var(--nip-blue);
	background: rgba(61, 126, 191, 0.06);
}

/* Elementor canvas — full width, no double chrome */
body.nip-lms-elementor-canvas .nip-lms-app {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

.elementor-widget-nip_lms_dashboard .nip-lms-app,
.elementor-widget-nip_lms_courses .nip-lms-app {
	max-width: none;
}

/* Continue learning page */
.nip-lms-continue__hero h2 {
	font-family: var(--nip-font-display);
	font-size: 1.35rem;
	margin: 0.5rem 0 1rem;
	color: var(--nip-navy);
}

/* Paywall / trial nudge (site-wide) */
.nip-paywall-nudge {
	position: sticky;
	top: 0;
	z-index: 200;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	padding: 0.65rem 1.25rem;
	background: linear-gradient(90deg, #fff8e6, #fff);
	border-bottom: 1px solid #f0d78c;
	color: var(--nip-navy, #1a2d5a);
}

.nip-paywall-nudge--lapsed {
	background: linear-gradient(90deg, #fde8e8, #fff);
	border-bottom-color: #f5c2c2;
}

.nip-paywall-nudge p {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 500;
}

.nip-paywall-nudge .nip-btn {
	flex-shrink: 0;
	min-height: 2.25rem;
	padding: 0.35rem 1rem;
	font-size: 0.88rem;
}

/* Functional cookie notice (theme footer) */
.nip-fn-cookie {
	position: fixed;
	bottom: 1rem;
	left: 1rem;
	right: 1rem;
	max-width: 28rem;
	margin: 0 auto;
	z-index: 9999;
	background: #fff;
	border: 1px solid var(--nip-border);
	border-radius: var(--nip-radius-lg);
	padding: 1rem 1.15rem;
	box-shadow: var(--nip-glow);
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.nip-fn-cookie[hidden] {
	display: none !important;
}

.nip-fn-cookie p {
	margin: 0;
	font-size: 0.88rem;
	color: var(--nip-muted);
}

/* Bottom nav glass */
.nip-lms-bottom-nav {
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(12px);
	border-top: 1px solid var(--nip-border);
	box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.08);
}

/* Onboarding wizard */
.nip-lms-onboarding {
	max-width: 40rem;
	margin: 0 auto;
}

.nip-lms-onboarding__progress {
	display: flex;
	gap: 0.35rem;
	margin-bottom: 1.25rem;
}

.nip-lms-onboarding__progress span {
	flex: 1;
	height: 4px;
	border-radius: 999px;
	background: var(--nip-border);
}

.nip-lms-onboarding__progress span.is-active {
	background: var(--nip-primary);
}

.nip-lms-onboarding__panel[hidden] {
	display: none !important;
}

.nip-lms-onboarding__option {
	display: block;
	margin: 0.5rem 0;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--nip-border);
	border-radius: var(--nip-radius);
	cursor: pointer;
}

.nip-lms-onboarding__tour {
	margin: 1rem 0 1.25rem;
	padding-left: 1.25rem;
	list-style: decimal;
}

.nip-lms-onboarding__tour-item {
	margin-bottom: 1rem;
}

.nip-lms-onboarding__tour-item h3 {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
}

.nip-lms-onboarding__suggest {
	font-size: 0.9rem;
	color: var(--nip-muted);
}

.nip-lms-onboarding-banner {
	margin-bottom: 1rem;
	border-left: 4px solid var(--nip-primary);
}

/* Dashboard checklist */
.nip-lms-checklist__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nip-lms-checklist__list li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.65rem 0;
	border-bottom: 1px solid var(--nip-border);
}

.nip-lms-checklist__list li.is-done .nip-lms-checklist__label {
	color: var(--nip-muted);
	text-decoration: line-through;
}

.nip-lms-checklist__mark {
	font-weight: 700;
	width: 1.25rem;
}

.nip-lms-checklist__label {
	flex: 1;
}

/* Paywall preview */
.nip-lms-paywall-preview__badge {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--nip-primary);
	margin-bottom: 0.5rem;
}

.nip-lms-paywall-preview__sample {
	margin-top: 1rem;
	padding: 1rem;
	background: var(--nip-surface);
	border-radius: var(--nip-radius-lg);
	border: 1px dashed var(--nip-border);
}

.nip-lms-paywall-preview__lock-note {
	font-size: 0.88rem;
	color: var(--nip-muted);
}

.nip-lms-section-card__locked {
	font-size: 0.88rem;
	color: var(--nip-muted);
	margin: 0.5rem 0 0;
}

/* PWA install strip */
.nip-lms-pwa-install {
	margin: 1rem 0;
	padding: 1rem 1.15rem;
	background: linear-gradient(135deg, #eef3ff, #f8fafc);
	border: 1px solid var(--nip-border);
	border-radius: var(--nip-radius-lg);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.nip-lms-pwa-install[hidden] {
	display: none !important;
}

.nip-lms-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.nip-lms-readiness-breakdown__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nip-lms-readiness-breakdown__item {
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--nip-border);
}

.nip-lms-readiness-breakdown__head {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.9rem;
	margin-bottom: 0.35rem;
}

.nip-lms-readiness-breakdown__detail {
	margin: 0.35rem 0 0;
	font-size: 0.85rem;
	color: var(--nip-muted);
}

.nip-lms-remediation__steps {
	margin: 1rem 0;
	padding-left: 1.25rem;
}

.nip-lms-remediation__steps li.is-done {
	color: var(--nip-muted);
	text-decoration: line-through;
}

.nip-lms-remediation__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.nip-lms-quiz__option:focus-visible {
	outline: 2px solid var(--nip-primary);
	outline-offset: 2px;
}

.nip-lms-portal-footer {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--nip-border, #e2e8f0);
	text-align: center;
	font-size: 0.875rem;
}

.nip-lms-portal-footer__nav a {
	color: var(--nip-muted);
	text-decoration: underline;
}

.nip-lms-sponsor-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 1rem;
	margin-top: 1rem;
}

.nip-lms-sponsor-stat {
	text-align: center;
	padding: 1rem;
	border-radius: 8px;
	background: var(--nip-surface, #f8fafc);
}

.nip-lms-sponsor-stat__value {
	display: block;
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--nip-primary);
}

.nip-lms-sponsor-stat__label {
	font-size: 0.8rem;
	color: var(--nip-muted);
}

.nip-lms-tutor {
	position: fixed;
	right: 1rem;
	bottom: 4.5rem;
	z-index: 9998;
	max-width: 100%;
}

.nip-lms-tutor__toggle {
	background: var(--nip-primary, #0d6efd);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 0.65rem 1.1rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.nip-lms-tutor__panel {
	position: absolute;
	right: 0;
	bottom: 3rem;
	width: min(360px, calc(100vw - 2rem));
	max-height: 70vh;
	background: #fff;
	border: 1px solid var(--nip-border, #e2e8f0);
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
	display: flex;
	flex-direction: column;
}

.nip-lms-tutor__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--nip-border, #e2e8f0);
}

.nip-lms-tutor__close {
	background: none;
	border: none;
	font-size: 1.25rem;
	cursor: pointer;
}

.nip-lms-tutor__notice {
	margin: 0;
	padding: 0.5rem 1rem;
	font-size: 0.8rem;
	color: var(--nip-muted);
}

.nip-lms-tutor__messages {
	flex: 1;
	overflow-y: auto;
	padding: 0.75rem 1rem;
	min-height: 120px;
	max-height: 40vh;
}

.nip-lms-tutor__msg {
	margin-bottom: 0.65rem;
	padding: 0.5rem 0.65rem;
	border-radius: 8px;
	font-size: 0.9rem;
	line-height: 1.45;
	white-space: pre-wrap;
}

.nip-lms-tutor__msg--user {
	background: #eef2ff;
	margin-left: 1.5rem;
}

.nip-lms-tutor__msg--assistant {
	background: #f8fafc;
	margin-right: 0.5rem;
}

.nip-lms-tutor__form {
	padding: 0.75rem 1rem 1rem;
	border-top: 1px solid var(--nip-border, #e2e8f0);
}

.nip-lms-tutor__form textarea {
	width: 100%;
	resize: vertical;
}

.nip-lms-tutor__actions {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.5rem;
	flex-wrap: wrap;
}

/* —— Topic lesson & practice polish (v1.55) —— */
.nip-lms-lesson-body .nip-diagram-credit {
	font-size: 0.75rem;
	color: var(--nip-text-muted, #64748b);
	margin-top: 0.35rem;
}

.nip-lms-lesson-body .nip-lesson-figure {
	margin: 1.25rem 0;
}

.nip-lms-lesson-body .nip-lesson-diagram,
.nip-lms-quiz-stem .nip-quiz-diagram,
.nip-quiz-diagram,
.nip-lms-hero-figure img,
.nip-lms-inline-figure img,
.nip-case-rationale-fig img,
.nip-rationale-figure img,
.nip-lms-exam-review__stem img {
	display: block;
	max-width: min(50%, 420px);
	width: auto;
	height: auto;
	margin: 1rem auto;
	border-radius: var(--nip-radius-sm, 10px);
	border: 1px solid var(--nip-border, #e2e8f0);
	box-shadow: var(--nip-glow, 0 12px 32px rgba(26, 45, 90, 0.1));
	background: #fff;
}

.nip-lms-lesson-body section {
	margin-bottom: 1.75rem;
}

.nip-lms-practice-panel {
	border: 1px solid var(--nip-border, #e2e8f0);
	border-radius: var(--nip-radius-lg, 20px);
	background: var(--nip-gradient-card, linear-gradient(145deg, #fff 0%, #f8fafc 100%));
	box-shadow: var(--nip-glow);
}

.nip-lms-practice-hub__grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.nip-lms-flashcards-embed {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 2px dashed var(--nip-border, #e2e8f0);
}

.nip-lms-flashcards-embed .nip-fc-stage {
	min-height: 200px;
	background: #fff;
	border-radius: var(--nip-radius-sm);
	border: 1px solid var(--nip-border);
}

.nip-topic-step-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin-bottom: 1rem;
	padding: 0.65rem 0;
	border-bottom: 1px solid var(--nip-border, #e2e8f0);
}

.nip-lms-pill--topic {
	background: linear-gradient(135deg, #1a3a6b 0%, #2d6bb3 100%);
	color: #fff;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.nip-strategist-note {
	margin: 1rem 0;
	padding: 0.85rem 1rem;
	border-left: 4px solid var(--nip-gold, #f5c518);
	background: rgba(26, 58, 110, 0.06);
	border-radius: 0 8px 8px 0;
}

.nip-strategist-note__label {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--nip-navy, #1a3a6e);
	margin-bottom: 0.35rem;
}

.nip-strategist-note__text {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.45;
	color: var(--nip-text, #1e293b);
}

.nip-topic-path-sidebar .nip-strategist-note {
	margin-top: 0.65rem;
	padding: 0.65rem 0.75rem;
	font-size: 0.85rem;
}

.nip-strategist-pearl {
	margin-top: 0.85rem;
	padding: 0.65rem 0.85rem;
	border-left: 3px solid var(--nip-gold, #f5c518);
	background: rgba(245, 197, 24, 0.1);
	border-radius: 0 6px 6px 0;
	font-size: 0.9rem;
}

.nip-strategist-pearl strong {
	display: block;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--nip-navy, #1a3a6e);
	margin-bottom: 0.25rem;
}

.nip-pitfall-callout {
	margin: 0.5rem 0 0;
	padding: 0.55rem 0.75rem;
	border-left: 3px solid #c2410c;
	background: rgba(194, 65, 12, 0.08);
	border-radius: 0 6px 6px 0;
	font-size: 0.92rem;
	line-height: 1.45;
}

.nip-lms-quiz__trap-hint {
	margin: 0.5rem 0 0.75rem;
	font-style: italic;
	color: var(--nip-muted, #64748b);
}

.nip-practice-reveal-rationale__title {
	margin: 0.5rem 0 0.25rem;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--nip-navy, #1a3a6e);
}

.nip-lms-contact__grid {
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.nip-lms-contact__grid {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	}
}

/* Topic path sidebar (lesson / practice / quiz) */
@media (min-width: 1024px) {
	.nip-lms-shell--topic {
		grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
		align-items: start;
	}

	.nip-lms-shell--topic .nip-learning-steps--inline {
		display: none;
	}
}

.nip-topic-path-sidebar {
	background: var(--nip-card, #fff);
	border: 1px solid var(--nip-border);
	border-radius: var(--nip-radius-lg);
	padding: 1rem;
	box-shadow: var(--nip-glow);
	position: sticky;
	top: var(--nip-portal-sticky-top);
	align-self: start;
	max-height: calc(100vh - var(--nip-portal-sticky-top));
	overflow-y: auto;
}

.nip-topic-path-sidebar__section {
	margin: 0 0 0.15rem;
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--nip-muted);
}

.nip-topic-path-sidebar__topic {
	margin: 0 0 0.85rem;
	font-family: var(--nip-font-display);
	font-size: 1rem;
	font-weight: 600;
	color: var(--nip-navy);
	line-height: 1.35;
}

.nip-topic-path-sidebar__steps {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
}

.nip-topic-path-sidebar__step {
	margin: 0.25rem 0;
}

.nip-topic-path-sidebar__step a,
.nip-topic-path-sidebar__locked {
	display: block;
	padding: 0.5rem 0.65rem;
	border-radius: var(--nip-radius-sm);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
}

.nip-topic-path-sidebar__step a {
	color: var(--nip-navy);
	background: rgba(61, 126, 191, 0.06);
}

.nip-topic-path-sidebar__step.is-current a {
	background: rgba(61, 126, 191, 0.18);
	font-weight: 700;
}

.nip-topic-path-sidebar__step.is-done a {
	color: var(--nip-blue);
}

.nip-topic-path-sidebar__step.is-locked .nip-topic-path-sidebar__locked {
	color: var(--nip-muted);
	opacity: 0.55;
	background: rgba(148, 163, 184, 0.12);
	cursor: not-allowed;
}

.nip-topic-path-sidebar__pathway .nip-course-trail--sidebar {
	border: none;
	box-shadow: none;
	padding: 0;
}

.nip-course-trail--sidebar .nip-course-trail__panel {
	margin-top: 0.5rem;
}

/* Portal progress nudge */
.nip-portal-nudge {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	margin-bottom: 1rem;
	padding: 0.85rem 1rem;
	background: linear-gradient(135deg, rgba(45, 107, 179, 0.08) 0%, rgba(26, 58, 107, 0.04) 100%);
	border: 1px solid rgba(45, 107, 179, 0.2);
	border-radius: var(--nip-radius-sm);
}

.nip-portal-nudge__message {
	margin: 0;
	font-size: 0.92rem;
	color: var(--nip-navy);
}

.nip-portal-nudge__metric {
	margin: 0.15rem 0 0;
	font-size: 0.82rem;
	color: var(--nip-muted);
}

.nip-portal-nudge__bar {
	flex: 1 1 120px;
	min-width: 100px;
	max-width: 220px;
	height: 6px;
}

.nip-lms-stat-card__meta {
	margin: 0.15rem 0 0;
	font-size: 0.75rem;
	color: var(--nip-muted);
}

.nip-lms-onboarding__stats {
	list-style: none;
	margin: 1rem 0 1.25rem;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 0.65rem;
}

.nip-lms-onboarding__stats li {
	padding: 0.65rem 0.75rem;
	background: rgba(45, 107, 179, 0.06);
	border-radius: var(--nip-radius-sm);
	font-size: 0.88rem;
}

.nip-lms-flashcards__count {
	border: none;
	margin: 1rem 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.nip-lms-flashcards__custom {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.88rem;
}

.nip-fc-skeleton {
	color: var(--nip-muted, #64748b);
	animation: nip-fc-pulse 1.2s ease-in-out infinite;
}

.nip-fc-error {
	margin: 0 0 0.75rem;
}

@keyframes nip-fc-pulse {
	0%, 100% { opacity: 0.55; }
	50% { opacity: 1; }
}

/* —— Portal nav rail icons —— */
.nip-portal-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nip-portal-nav__link {
	display: flex;
	align-items: center;
	gap: 0.55rem;
}

.nip-portal-nav__icon {
	flex-shrink: 0;
	width: 1.15rem;
	height: 1.15rem;
	border-radius: 4px;
	background: rgba(61, 126, 191, 0.12);
	position: relative;
}

.nip-portal-nav__icon::after {
	content: '';
	position: absolute;
	inset: 0;
	margin: auto;
	width: 0.55rem;
	height: 0.55rem;
	background: var(--nip-blue, #3d7ebf);
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
	-webkit-mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
}

.nip-portal-nav__icon--continue::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M4 2.5v11l9-5.5z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M4 2.5v11l9-5.5z'/%3E%3C/svg%3E"); }
.nip-portal-nav__icon--dashboard::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M2 2h5v5H2zm7 0h5v5H9zM2 9h5v5H2zm7 0h5v5H9z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M2 2h5v5H2zm7 0h5v5H9zM2 9h5v5H2zm7 0h5v5H9z'/%3E%3C/svg%3E"); }
.nip-portal-nav__icon--study-plan::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M3 2h10v12H3zm1 2v8h8V4zm1 1h6v1H5zm0 2h6v1H5z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M3 2h10v12H3zm1 2v8h8V4zm1 1h6v1H5zm0 2h6v1H5z'/%3E%3C/svg%3E"); }
.nip-portal-nav__icon--courses::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M2 4l6-2 6 2v8l-6 2-6-2zm2 1.5v5.8l4 1.3V6.8zm6 .3v5.8l4-1.3V5.8z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M2 4l6-2 6 2v8l-6 2-6-2zm2 1.5v5.8l4 1.3V6.8zm6 .3v5.8l4-1.3V5.8z'/%3E%3C/svg%3E"); }
.nip-portal-nav__icon--practice::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M3 2h7l3 3v9H3zm2 2v8h6V6H8V4z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M3 2h7l3 3v9H3zm2 2v8h6V6H8V4z'/%3E%3C/svg%3E"); }
.nip-portal-nav__icon--flashcards::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M2 4h10v8H2zm2 2v4h6V6zm3-4h7v8h-2V4H7z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M2 4h10v8H2zm2 2v4h6V6zm3-4h7v8h-2V4H7z'/%3E%3C/svg%3E"); }
.nip-portal-nav__icon--cheat-sheets::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M4 1h8v14H4zm2 2v10h4V3zm1 2h2v1H7zm0 2h2v1H7z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M4 1h8v14H4zm2 2v10h4V3zm1 2h2v1H7zm0 2h2v1H7z'/%3E%3C/svg%3E"); }
.nip-portal-nav__icon--case-studies::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M3 2h10v12H3zm1 1v10h8V3zm1 2h6v1H5zm0 2h6v1H5zm0 2h4v1H5z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M3 2h10v12H3zm1 1v10h8V3zm1 2h6v1H5zm0 2h6v1H5zm0 2h4v1H5z'/%3E%3C/svg%3E"); }
.nip-portal-nav__icon--search::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6.5 1a5.5 5.5 0 104.2 9.1l3 3 1.4-1.4-3-3A5.5 5.5 0 006.5 1zm0 2a3.5 3.5 0 110 7 3.5 3.5 0 010-7z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6.5 1a5.5 5.5 0 104.2 9.1l3 3 1.4-1.4-3-3A5.5 5.5 0 006.5 1zm0 2a3.5 3.5 0 110 7 3.5 3.5 0 010-7z'/%3E%3C/svg%3E"); }
.nip-portal-nav__icon--review::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 1a7 7 0 105.6 12.2l1.2 1.2 1.4-1.4-1.2-1.2A7 7 0 008 1zm0 2a5 5 0 110 10A5 5 0 018 3z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 1a7 7 0 105.6 12.2l1.2 1.2 1.4-1.4-1.2-1.2A7 7 0 008 1zm0 2a5 5 0 110 10A5 5 0 018 3z'/%3E%3C/svg%3E"); }
.nip-portal-nav__icon--progress::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M2 12h12v2H2zm2-2V6h2v4zm3-3V4h2v3zm3 1V2h2v6z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M2 12h12v2H2zm2-2V6h2v4zm3-3V4h2v3zm3 1V2h2v6z'/%3E%3C/svg%3E"); }
.nip-portal-nav__icon--mock-exam::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 1a7 7 0 100 14A7 7 0 008 1zm0 2v5l4 2-.8 1.5L7 9V3z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 1a7 7 0 100 14A7 7 0 008 1zm0 2v5l4 2-.8 1.5L7 9V3z'/%3E%3C/svg%3E"); }
.nip-portal-nav__icon--settings::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 1l1.2 2.2 2.5.4-1.8 1.8.4 2.5L8 6.8 5.7 8.1l.4-2.5L4.3 3.6l2.5-.4zm0 4.5a2.5 2.5 0 100 5 2.5 2.5 0 000-5z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 1l1.2 2.2 2.5.4-1.8 1.8.4 2.5L8 6.8 5.7 8.1l.4-2.5L4.3 3.6l2.5-.4zm0 4.5a2.5 2.5 0 100 5 2.5 2.5 0 000-5z'/%3E%3C/svg%3E"); }

.nip-portal-nav__link.is-active .nip-portal-nav__icon {
	background: rgba(61, 126, 191, 0.22);
}

/* —— Global search UI —— */
.nip-lms-search-hero {
	margin-bottom: 1.25rem;
	padding: 1.35rem 1.5rem;
	background: var(--nip-gradient-card);
	border: 1px solid var(--nip-border);
	border-radius: var(--nip-radius-lg);
	box-shadow: var(--nip-glow);
}

.nip-lms-search-hero__field {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.35rem 0.35rem 0.35rem 1rem;
	background: #fff;
	border: 1px solid var(--nip-border);
	border-radius: 999px;
	box-shadow: inset 0 1px 2px rgba(15, 31, 61, 0.04);
}

.nip-lms-search-hero__field:focus-within {
	border-color: rgba(61, 126, 191, 0.55);
	box-shadow: 0 0 0 3px rgba(61, 126, 191, 0.12);
}

.nip-lms-search-hero__icon {
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	opacity: 0.55;
	background: var(--nip-navy);
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6.5 1a5.5 5.5 0 104.2 9.1l3 3 1.4-1.4-3-3A5.5 5.5 0 006.5 1zm0 2a3.5 3.5 0 110 7 3.5 3.5 0 010-7z'/%3E%3C/svg%3E") center/contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6.5 1a5.5 5.5 0 104.2 9.1l3 3 1.4-1.4-3-3A5.5 5.5 0 006.5 1zm0 2a3.5 3.5 0 110 7 3.5 3.5 0 010-7z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.nip-lms-search-hero__input {
	flex: 1;
	border: none;
	background: transparent;
	font: inherit;
	font-size: 1.05rem;
	padding: 0.65rem 0;
	min-width: 0;
}

.nip-lms-search-hero__input:focus {
	outline: none;
}

.nip-lms-search-tabs {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0.85rem 0 0;
	padding: 0.25rem;
	background: rgba(15, 31, 61, 0.05);
	border-radius: 999px;
}

.nip-lms-search-tabs__btn {
	border: none;
	background: transparent;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	font: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--nip-muted);
	cursor: pointer;
}

.nip-lms-search-tabs__btn.is-active {
	background: #fff;
	color: var(--nip-navy);
	box-shadow: 0 2px 8px rgba(15, 31, 61, 0.08);
}

/* —— FAQ accordion (marketing / portal) —— */
.nip-lms-faq-page {
	max-width: min(96vw, 52rem);
	margin-inline: auto;
}

.nip-lms-faq__section + .nip-lms-faq__section {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--nip-border, #e2e8f0);
}

.nip-lms-faq__section-title {
	margin: 0 0 1rem;
	font-family: var(--nip-font-display);
	font-size: 1.15rem;
	color: var(--nip-navy, #1a2d5a);
}

.nip-lms-faq__accordion {
	display: grid;
	gap: 0.5rem;
}

.nip-lms-faq__item {
	border: 1px solid var(--nip-border, #e2e8f0);
	border-radius: var(--nip-radius-sm, 10px);
	background: #fff;
	overflow: hidden;
}

.nip-lms-faq__item[open] {
	box-shadow: 0 4px 14px rgba(15, 31, 61, 0.06);
}

.nip-lms-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 1rem;
	font-weight: 600;
	color: var(--nip-navy, #1a2d5a);
	cursor: pointer;
	list-style: none;
}

.nip-lms-faq__question::-webkit-details-marker {
	display: none;
}

.nip-lms-faq__chevron {
	flex-shrink: 0;
	width: 0.55rem;
	height: 0.55rem;
	border-right: 2px solid var(--nip-muted, #64748b);
	border-bottom: 2px solid var(--nip-muted, #64748b);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	margin-top: -0.15rem;
}

.nip-lms-faq__item[open] .nip-lms-faq__chevron {
	transform: rotate(225deg);
	margin-top: 0.15rem;
}

.nip-lms-faq__answer {
	padding: 0 1rem 1rem;
	color: var(--nip-muted, #64748b);
	font-size: 0.95rem;
	line-height: 1.55;
}

.nip-lms-faq__answer p {
	margin: 0;
}

.nip-lms-faq__cta {
	margin-top: 2rem;
}

.nip-lms-faq__cta-title {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
}

.nip-lms-faq__cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.nip-lms-search-results {
	display: grid;
	gap: 1rem;
}

.nip-lms-search-group__title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.65rem;
	font-size: 0.95rem;
	color: var(--nip-navy);
}

.nip-lms-search-group__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.nip-lms-search-result {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.75rem 0.9rem;
	background: #fff;
	border: 1px solid var(--nip-border);
	border-radius: var(--nip-radius-sm);
	text-decoration: none;
	color: inherit;
	box-shadow: 0 2px 8px rgba(15, 31, 61, 0.05);
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.nip-lms-search-result:hover,
.nip-lms-search-result.is-focused {
	transform: translateY(-1px);
	border-color: rgba(61, 126, 191, 0.35);
	box-shadow: 0 6px 18px rgba(15, 31, 61, 0.1);
}

.nip-lms-search-result__icon {
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	border-radius: 8px;
	background: rgba(61, 126, 191, 0.1);
	display: grid;
	place-items: center;
	font-size: 0.95rem;
}

.nip-lms-search-result__body strong {
	display: block;
	color: var(--nip-navy);
	font-size: 0.95rem;
	line-height: 1.35;
}

.nip-lms-search-result__meta {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.82rem;
	color: var(--nip-muted);
}

.nip-lms-search-empty {
	text-align: center;
	padding: 2rem 1rem;
}

.nip-lms-search-empty__illus {
	width: 4rem;
	height: 4rem;
	margin: 0 auto 0.75rem;
	border-radius: 50%;
	background: linear-gradient(145deg, rgba(61, 126, 191, 0.12), rgba(26, 58, 107, 0.06));
	display: grid;
	place-items: center;
	font-size: 1.5rem;
	opacity: 0.85;
}

.nip-lms-search-recent {
	margin-top: 0.75rem;
}

.nip-lms-search-recent__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.nip-lms-search-recent__chip {
	border: 1px solid var(--nip-border);
	background: #fff;
	border-radius: 999px;
	padding: 0.3rem 0.75rem;
	font-size: 0.82rem;
	cursor: pointer;
}

.nip-header-search__dropdown {
	padding: 0.5rem;
	max-height: 18rem;
}

.nip-header-search__group-label {
	margin: 0.35rem 0.25rem 0.15rem;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--nip-muted);
}

.nip-header-search__result {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.nip-header-search__result.is-focused {
	background: rgba(61, 126, 191, 0.1);
}

.nip-header-search__result-icon {
	flex-shrink: 0;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 6px;
	background: rgba(61, 126, 191, 0.1);
	display: grid;
	place-items: center;
	font-size: 0.75rem;
}

/* —— Table legibility —— */
.nip-lms-study-plan-page {
	overflow-x: clip;
	max-width: 100%;
}

.nip-lms-study-plan-table-wrap,
.nip-schedule-week-grid-wrap {
	overflow-x: visible;
	max-width: 100%;
}

.nip-lms-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 0.25rem 0;
}

.nip-lms-study-plan-table-wrap.nip-lms-table-wrap,
.nip-schedule-week-grid-wrap.nip-lms-table-wrap {
	overflow-x: visible;
}

.nip-lms-table {
	width: 100%;
	min-width: 0;
	border-collapse: collapse;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.nip-lms-study-plan-table,
.nip-schedule-week-grid {
	min-width: 0;
}

.nip-lms-table th,
.nip-lms-table td {
	padding: 0.65rem 0.75rem;
	border-bottom: 1px solid var(--nip-border);
	text-align: left;
	white-space: normal;
	word-break: break-word;
	vertical-align: top;
}

.nip-lms-table th {
	font-weight: 600;
	color: var(--nip-navy);
	white-space: nowrap;
}

.nip-lms-study-plan-table th:first-child,
.nip-lms-study-plan-table td:first-child,
.nip-lms-retake-schedule-table th:first-child,
.nip-lms-retake-schedule-table td:first-child {
	min-width: 7.5rem;
}

.nip-lms-study-plan-table th:last-child,
.nip-lms-study-plan-table td:last-child,
.nip-lms-retake-schedule-table th:last-child,
.nip-lms-retake-schedule-table td:last-child {
	min-width: 12rem;
}

/* —— Bootcamp week-row schedule (Mon–Sun columns) —— */
.nip-schedule-week-grid-wrap {
	margin-top: 0.5rem;
	overflow-x: visible;
	max-width: 100%;
}

.nip-schedule-week-grid {
	min-width: 0;
	width: 100%;
	table-layout: fixed;
}

@media (max-width: 900px) {
	.nip-schedule-week-grid thead {
		display: none;
	}

	.nip-schedule-week-grid tbody,
	.nip-schedule-week-grid tr,
	.nip-schedule-week-grid__week-col,
	.nip-schedule-week-grid__cell {
		display: block;
		width: 100%;
	}

	.nip-schedule-week-grid tr {
		margin-bottom: 1rem;
		padding: 0.65rem 0.75rem;
		border: 1px solid var(--nip-border);
		border-radius: var(--nip-radius-sm);
		background: var(--nip-card, #fff);
	}

	.nip-schedule-week-grid__week-col {
		padding: 0 0 0.5rem;
		margin-bottom: 0.5rem;
		border-bottom: 1px solid var(--nip-border);
		min-width: 0;
	}

	.nip-schedule-week-grid__cell {
		min-width: 0;
		padding: 0.45rem 0;
		border-bottom: 1px dashed rgba(148, 163, 184, 0.45);
	}

	.nip-schedule-week-grid__cell:last-child {
		border-bottom: none;
		padding-bottom: 0;
	}

	.nip-schedule-week-grid__cell::before {
		content: attr(data-weekday);
		display: block;
		font-size: 0.72rem;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.04em;
		color: var(--nip-muted);
		margin-bottom: 0.25rem;
	}

	.nip-lms-study-plan-table th:first-child,
	.nip-lms-study-plan-table td:first-child,
	.nip-lms-retake-schedule-table th:first-child,
	.nip-lms-retake-schedule-table td:first-child,
	.nip-lms-study-plan-table th:last-child,
	.nip-lms-study-plan-table td:last-child,
	.nip-lms-retake-schedule-table th:last-child,
	.nip-lms-retake-schedule-table td:last-child {
		min-width: 0;
	}
}

.nip-lms-study-plan-page .nip-lms-study-plan-table th:first-child,
.nip-lms-study-plan-page .nip-lms-study-plan-table td:first-child,
.nip-lms-study-plan-page .nip-lms-retake-schedule-table th:first-child,
.nip-lms-study-plan-page .nip-lms-retake-schedule-table td:first-child,
.nip-lms-study-plan-page .nip-lms-study-plan-table th:last-child,
.nip-lms-study-plan-page .nip-lms-study-plan-table td:last-child,
.nip-lms-study-plan-page .nip-lms-retake-schedule-table th:last-child,
.nip-lms-study-plan-page .nip-lms-retake-schedule-table td:last-child {
	min-width: 0;
}

.nip-schedule-week-grid__day-col {
	min-width: 0;
	font-weight: 600;
	text-align: center;
	white-space: normal;
	word-break: break-word;
}

.nip-schedule-week-grid__week-col {
	min-width: 0;
	width: 11%;
	text-align: left;
	vertical-align: top;
}

.nip-schedule-week-grid__range {
	display: block;
	font-size: 0.72rem;
	font-weight: 400;
	color: var(--nip-muted);
	margin-top: 0.15rem;
}

.nip-schedule-week-grid__cell {
	vertical-align: top;
	min-width: 0;
}

.nip-schedule-week-grid__date {
	display: block;
	font-size: 0.72rem;
	color: var(--nip-muted);
	margin-bottom: 0.35rem;
}

.nip-schedule-week-grid__chips {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.nip-schedule-chip {
	display: block;
	font-size: 0.78rem;
	line-height: 1.35;
	padding: 0.3rem 0.45rem;
	border-radius: 8px;
	background: rgba(61, 126, 191, 0.1);
	border: 1px solid rgba(61, 126, 191, 0.18);
	color: var(--nip-navy);
}

.nip-schedule-chip--link {
	text-decoration: none;
}

.nip-schedule-chip--link:hover {
	background: rgba(61, 126, 191, 0.18);
}

@page nip-study-plan {
	size: landscape;
	margin: 0.2in;
}

@media print {
	body.nip-study-plan-print-mode {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	body.nip-study-plan-print-mode .nip-lms-app,
	body.nip-study-plan-print-mode .nip-lms-shell--full,
	body.nip-study-plan-print-mode .nip-lms-shell__main {
		overflow: visible !important;
		max-width: none !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	body.nip-study-plan-print-mode .nip-portal-standard-header,
	body.nip-study-plan-print-mode .nip-portal-mobile-bar,
	body.nip-study-plan-print-mode .nip-lms-app__header,
	body.nip-study-plan-print-mode .nip-lms-coach-message,
	body.nip-study-plan-print-mode .nip-lms-study-plan-builder,
	body.nip-study-plan-print-mode .nip-lms-retake-schedule,
	body.nip-study-plan-print-mode .nip-lms-custom-study-plan,
	body.nip-study-plan-print-mode .nip-lms-sidebar--portal-rail,
	body.nip-study-plan-print-mode .nip-lms-coaching-sidebar,
	body.nip-study-plan-print-mode .nip-progress-report__actions,
	body.nip-study-plan-print-mode [data-field="swot-study-plan-wrap"] {
		display: none !important;
	}

	body.nip-study-plan-print-mode [data-nip-schedule-print] {
		display: block !important;
		page: nip-study-plan;
		box-shadow: none !important;
		border: none !important;
		padding: 0 !important;
		margin: 0 !important;
		background: #fff !important;
	}

	body.nip-study-plan-print-mode .nip-lms-study-plan-table-wrap,
	body.nip-study-plan-print-mode .nip-schedule-week-grid-wrap {
		overflow: visible !important;
		width: 100% !important;
	}

	/* Restore 8-column table layout (mobile stack rules use max-width, which print often matches). */
	body.nip-study-plan-print-mode .nip-schedule-week-grid,
	body.nip-study-plan-print-mode .nip-lms-study-plan-table {
		display: table !important;
		min-width: 0 !important;
		width: 100% !important;
		table-layout: fixed !important;
		font-size: 7pt;
		border-collapse: collapse !important;
	}

	body.nip-study-plan-print-mode .nip-schedule-week-grid thead {
		display: table-header-group !important;
	}

	body.nip-study-plan-print-mode .nip-schedule-week-grid tbody {
		display: table-row-group !important;
	}

	body.nip-study-plan-print-mode .nip-schedule-week-grid tr {
		display: table-row !important;
		margin: 0 !important;
		padding: 0 !important;
		border: none !important;
		background: transparent !important;
		page-break-inside: avoid;
		break-inside: avoid;
	}

	body.nip-study-plan-print-mode .nip-schedule-week-grid th,
	body.nip-study-plan-print-mode .nip-schedule-week-grid td,
	body.nip-study-plan-print-mode .nip-schedule-week-grid__week-col,
	body.nip-study-plan-print-mode .nip-schedule-week-grid__cell {
		display: table-cell !important;
		vertical-align: top;
		border: 1px solid #cbd5e1;
		min-width: 0 !important;
		white-space: normal;
		word-wrap: break-word;
		overflow-wrap: anywhere;
		padding: 0.12rem 0.2rem;
		margin: 0 !important;
	}

	body.nip-study-plan-print-mode .nip-schedule-week-grid__cell::before {
		display: none !important;
		content: none !important;
	}

	body.nip-study-plan-print-mode .nip-schedule-week-grid__week-col {
		width: 10% !important;
	}

	body.nip-study-plan-print-mode .nip-schedule-week-grid__day-col,
	body.nip-study-plan-print-mode .nip-schedule-week-grid__cell:not(.nip-schedule-week-grid__week-col) {
		width: 12.85% !important;
	}

	body.nip-study-plan-print-mode .nip-schedule-week-grid__day-col {
		font-weight: 600;
		text-align: center;
	}

	body.nip-study-plan-print-mode .nip-schedule-week-grid-wrap {
		overflow: visible;
		page-break-inside: auto;
	}

	body.nip-study-plan-print-mode .nip-schedule-chip,
	body.nip-study-plan-print-mode .nip-schedule-chip--link {
		break-inside: avoid;
		font-size: 6.5pt;
		padding: 0.1rem 0.2rem;
		display: block;
		margin-bottom: 0.1rem;
		text-decoration: none;
		color: inherit;
	}

	body.nip-study-plan-print-mode .nip-lms-schedule-legend {
		display: flex;
		flex-wrap: wrap;
		gap: 0.35rem;
		margin: 0.35rem 0 0.5rem;
	}

	body.nip-retake-schedule-print-mode {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	body.nip-retake-schedule-print-mode .nip-portal-standard-header,
	body.nip-retake-schedule-print-mode .nip-portal-mobile-bar,
	body.nip-retake-schedule-print-mode .nip-lms-app__header,
	body.nip-retake-schedule-print-mode .nip-lms-study-plan-builder,
	body.nip-retake-schedule-print-mode .nip-lms-study-plan-welcome,
	body.nip-retake-schedule-print-mode .nip-lms-coach-message,
	body.nip-retake-schedule-print-mode .nip-lms-sidebar--portal-rail,
	body.nip-retake-schedule-print-mode .nip-lms-coaching-sidebar,
	body.nip-retake-schedule-print-mode [data-field="swot-study-plan-wrap"],
	body.nip-retake-schedule-print-mode .nip-lms-retake-schedule .nip-lms-button,
	body.nip-retake-schedule-print-mode .nip-lms-retake-schedule [data-field="retake-weekly-narrative"],
	body.nip-retake-schedule-print-mode .nip-lms-study-plan-schedule {
		display: none !important;
	}

	body.nip-retake-schedule-print-mode .nip-lms-retake-schedule {
		box-shadow: none;
		border: none;
		padding: 0;
	}

	body.nip-custom-plan-print-mode .nip-portal-standard-header,
	body.nip-custom-plan-print-mode .nip-portal-mobile-bar,
	body.nip-custom-plan-print-mode .nip-lms-app__header,
	body.nip-custom-plan-print-mode .nip-lms-study-plan-welcome,
	body.nip-custom-plan-print-mode .nip-lms-coach-message,
	body.nip-custom-plan-print-mode .nip-lms-study-plan-builder,
	body.nip-custom-plan-print-mode .nip-lms-retake-schedule,
	body.nip-custom-plan-print-mode .nip-lms-study-plan-schedule,
	body.nip-custom-plan-print-mode .nip-lms-study-plan-calculation,
	body.nip-custom-plan-print-mode .nip-lms-sidebar--portal-rail,
	body.nip-custom-plan-print-mode [data-field="swot-study-plan-wrap"],
	body.nip-custom-plan-print-mode .nip-lms-custom-study-plan .nip-lms-button {
		display: none !important;
	}

	body.nip-custom-plan-print-mode [data-field="custom-plan-wrap"] {
		display: block !important;
		box-shadow: none !important;
		border: none !important;
		padding: 0 !important;
		margin: 0 !important;
	}
}

/* —— Cheat sheet hub / topic styles —— */
.nip-cheat-sheet {
	margin: 1rem 0;
}

.nip-cheat-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0.5rem 0;
	font-size: 0.85rem;
	table-layout: auto;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

.nip-cheat-table-wrap {
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 0.35rem 0;
}

.nip-cheat-table th,
.nip-cheat-table td {
	border: 1px solid var(--nip-border);
	padding: 0.3rem 0.4rem;
	text-align: left;
	vertical-align: top;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

.nip-cheat-table th {
	background: rgba(26, 45, 90, 0.06);
	font-weight: 600;
}

.nip-cheat-callout {
	margin: 0.75rem 0;
	padding: 0.65rem 0.85rem;
	border-radius: 10px;
	border-left: 4px solid var(--nip-blue);
	background: rgba(61, 126, 191, 0.08);
	font-size: 0.9rem;
}

.nip-cheat-callout--danger {
	border-left-color: #c53030;
	background: rgba(197, 48, 48, 0.08);
}

.nip-cheat-mnemonic {
	margin: 0.5rem 0 0.75rem 1.1rem;
}

.nip-cheat-figure {
	margin: 0.75rem 0;
}

.nip-cheat-figure img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.nip-cheat-figure figcaption {
	font-size: 0.82rem;
	color: var(--nip-muted);
	margin-top: 0.35rem;
}

/* —— 2-page A4 cheat sheet (screen + print) —— */
.nip-lms-cheat-sheet-wrap__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	margin-bottom: 0.75rem;
}

.nip-lms-cheat-sheet-wrap__head h2 {
	margin: 0;
}

.nip-lms-cheat-sheet-wrap .nip-cheat-page {
	padding: 4mm 5mm 6mm;
	margin-bottom: 0.5rem;
}

.nip-lms-cheat-sheet-wrap .nip-cheat-card__body {
	padding: 1.2mm 1.6mm;
}

.nip-lms-cheat-sheet-wrap .nip-cheat-table-wrap {
	margin: 0.2rem 0;
}

.nip-cheat-sheet--a4 {
	margin: 0;
}

.nip-cheat-a4 {
	max-width: 210mm;
	margin: 0 auto;
}

.nip-cheat-page {
	background: #f7fbfd;
	border: 1px solid var(--nip-border);
	border-radius: 12px;
	padding: 5mm 6mm 7mm;
	margin: 0 0 0.65rem;
	position: relative;
	min-height: 0;
	box-shadow: var(--nip-glow);
	overflow: visible;
	page-break-after: auto;
	break-after: auto;
}

.nip-cheat-header {
	display: grid;
	grid-template-columns: 22mm 1fr auto;
	align-items: center;
	gap: 4mm;
	padding: 3mm 4mm;
	border-radius: 4mm;
	color: #fff;
	background: linear-gradient(90deg, #061a2e, #083b60, #061a2e);
	box-shadow: 0 2mm 6mm rgba(6, 26, 46, 0.18);
}

.nip-cheat-header__logo {
	width: 16mm;
	height: 16mm;
	border: 1.2mm solid #b7e8f4;
	border-radius: 4mm;
	display: grid;
	place-items: center;
	font-size: 1.35rem;
	font-weight: 900;
}

.nip-cheat-header__title {
	margin: 0;
	font-size: clamp(1rem, 2.4vw, 1.35rem);
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #fff;
}

.nip-cheat-header__sub {
	margin: 0.15rem 0 0;
	font-size: 0.72rem;
	color: #dff8ff;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.nip-cheat-header__tag {
	font-size: 0.68rem;
	font-weight: 800;
	text-align: right;
	line-height: 1.35;
}

.nip-cheat-row {
	display: grid;
	gap: 3mm;
	margin-top: 3mm;
}

.nip-cheat-cols-2 {
	grid-template-columns: 1fr 1fr;
	gap: 2mm;
}

.nip-cheat-cols-3 {
	grid-template-columns: repeat(3, 1fr);
}

.nip-cheat-card {
	background: #fff;
	border: 0.35mm solid #cddde6;
	border-radius: 3mm;
	overflow: hidden;
	box-shadow: 0 1.4mm 4mm rgba(6, 26, 46, 0.08);
}

.nip-cheat-card__bar {
	color: #fff;
	background: linear-gradient(90deg, #0b4f82, #07395e);
	padding: 1.6mm 2.4mm;
	font-weight: 800;
	text-transform: uppercase;
	text-align: center;
	font-size: 0.68rem;
	letter-spacing: 0.02em;
}

.nip-cheat-card__bar--green {
	background: linear-gradient(90deg, #2f7d42, #1e5d2d);
}

.nip-cheat-card__bar--gold {
	background: linear-gradient(90deg, #9a6719, #bb8425);
}

.nip-cheat-card__bar--red {
	background: linear-gradient(90deg, #c6384e, #e05064);
}

.nip-cheat-card__bar--purple {
	background: linear-gradient(90deg, #56227d, #8433a4);
}

.nip-cheat-card__body {
	padding: 1.6mm;
	font-size: 0.72rem;
	line-height: 1.35;
	color: #102033;
}

.nip-cheat-card__body p {
	margin: 0 0 0.35rem;
}

.nip-cheat-card__body ul,
.nip-cheat-card__body ol {
	margin: 0;
	padding-left: 1rem;
}

.nip-cheat-card__body li {
	margin-bottom: 0.2rem;
}

.nip-cheat-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 1.2mm;
	margin-top: 0.35rem;
}

.nip-cheat-badge {
	background: #e6f8fc;
	border: 0.25mm solid #bdebf2;
	color: #064865;
	border-radius: 999px;
	padding: 0.15rem 0.45rem;
	font-size: 0.62rem;
	font-weight: 800;
}

.nip-cheat-badge--gold {
	background: #fff6db;
	border-color: #edcd69;
	color: #6a4900;
}

.nip-cheat-alert {
	border-left: 1.4mm solid #f2b632;
	background: #fff8df;
	border-radius: 2mm;
	padding: 1.7mm 2mm;
	margin-top: 0.35rem;
	font-size: 0.68rem;
}

.nip-cheat-alert--red {
	border-left-color: #d9465f;
	background: #fff0f3;
}

.nip-cheat-alert--green {
	border-left-color: #1c9b55;
	background: #ebfff4;
}

.nip-cheat-alert--blue {
	border-left-color: #0b86b8;
	background: #e9f9ff;
}

.nip-cheat-alert__label {
	font-size: 0.62rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #714900;
	margin-bottom: 0.15rem;
}

.nip-cheat-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5mm;
	margin-top: 0.35rem;
}

.nip-cheat-steps > div {
	border-radius: 2.2mm;
	background: #f2f8fb;
	border: 0.3mm solid #d4e5ed;
	padding: 1.3mm;
	font-size: 0.65rem;
}

.nip-cheat-steps__letter {
	display: inline-grid;
	place-items: center;
	width: 6mm;
	height: 6mm;
	border-radius: 50%;
	background: #0b4f82;
	color: #fff;
	font-weight: 900;
	margin-right: 0.15rem;
	font-size: 0.62rem;
}

.nip-cheat-img {
	width: 100%;
	display: block;
	border: 0.3mm solid #cddde6;
	border-radius: 2.5mm;
	height: auto;
}

.nip-cheat-table--tight th,
.nip-cheat-table--tight td {
	padding: 0.25rem 0.35rem;
	font-size: 0.65rem;
}

.nip-cheat-sheet--a4 .nip-cheat-table th {
	background: #08243e;
	color: #fff;
}

.nip-cheat-q {
	background: #fffdf4;
	border: 0.3mm solid #e5c868;
	border-radius: 2mm;
	padding: 1.8mm;
	margin-bottom: 0.35rem;
	font-size: 0.68rem;
}

.nip-cheat-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 3mm;
	padding-top: 1mm;
	border-top: 0.25mm solid #cddde6;
	color: #365263;
	font-size: 0.62rem;
}

.nip-cheat-sheet--a4 .nip-cheat-star {
	margin: 0.35rem 0;
	padding: 0.45rem 0.65rem;
	font-size: 0.68rem;
}

@media (max-width: 720px) {
	.nip-cheat-cols-2,
	.nip-cheat-cols-3,
	.nip-cheat-steps {
		grid-template-columns: 1fr;
	}

	.nip-cheat-page {
		min-height: 0;
	}
}

@media print {
	@page {
		size: A4 portrait;
		margin: 0;
	}

	body.nip-cheat-sheet-print-mode * {
		visibility: hidden;
	}

	body.nip-cheat-sheet-print-mode #nip-cheat-sheet,
	body.nip-cheat-sheet-print-mode #nip-cheat-sheet * {
		visibility: visible;
	}

	body.nip-cheat-sheet-print-mode #nip-cheat-sheet {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		border: none;
		box-shadow: none;
		padding: 0;
		margin: 0;
	}

	body.nip-cheat-sheet-print-mode .nip-lms-cheat-sheet-wrap__head,
	body.nip-cheat-sheet-print-mode .nip-lms-cheat-sheet-wrap__print {
		display: none !important;
	}

	body.nip-cheat-sheet-print-mode .nip-cheat-page--empty {
		display: none !important;
		height: 0 !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		page-break-after: avoid !important;
		break-after: avoid !important;
	}

	.nip-cheat-a4 {
		max-width: none;
		margin: 0;
	}

	.nip-cheat-page {
		width: 210mm;
		min-height: 0;
		height: auto;
		margin: 0 0 0.25rem;
		border: none;
		border-radius: 0;
		box-shadow: none;
		page-break-after: auto;
		break-after: auto;
		padding: 5mm 6mm 6mm;
	}

	.nip-cheat-page:last-child {
		page-break-after: auto;
		break-after: auto;
	}

	.nip-cheat-card,
	.nip-cheat-alert,
	.nip-cheat-q {
		break-inside: avoid;
	}
}

/* —— Topic TTS v2 —— */
.nip-lms-tts-media-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	align-items: center;
	margin: 0.75rem 0 1rem;
	padding: 0.65rem 0.85rem;
	border-radius: 12px;
	background: rgba(26, 45, 90, 0.04);
	border: 1px solid var(--nip-border);
}

.nip-lms-tts-media-bar__transport {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	align-items: center;
}

.nip-lms-tts-media-bar__sliders {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	font-size: 0.82rem;
}

.nip-tts-sentence {
	transition: background-color 0.15s ease;
}

.nip-tts-active-sentence {
	background-color: var(--nip-tts-highlight, #fff3b0);
	border-radius: 4px;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

/* —— Progress report (UWorld-style analytics, v1.90) —— */
.nip-progress-report__section-title {
	margin: 0 0 0.85rem;
	font-family: var(--nip-font-display);
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--nip-navy);
}

.nip-progress-report__summary-grid {
	display: grid;
	gap: 1.25rem;
	align-items: center;
}

@media (min-width: 640px) {
	.nip-progress-report__summary-grid {
		grid-template-columns: auto minmax(0, 1fr);
	}
}

.nip-progress-report__donut {
	width: 10rem;
	height: 10rem;
	display: block;
}

.nip-progress-report__donut-bg {
	stroke: var(--nip-border, #e2e8f0);
}

.nip-progress-report__donut-seg--correct {
	stroke: #22a06b;
}

.nip-progress-report__donut-seg--incorrect {
	stroke: #e55370;
}

.nip-progress-report__donut-seg--omitted {
	stroke: #3d7ebf;
}

.nip-progress-report__donut-center {
	font-family: var(--nip-font-display);
	font-size: 1.35rem;
	font-weight: 700;
	fill: var(--nip-navy);
}

.nip-progress-report__donut-label {
	margin: 0 0 0.15rem;
	font-size: 0.82rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--nip-muted);
}

.nip-progress-report__donut-value {
	margin: 0 0 0.85rem;
	font-family: var(--nip-font-display);
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--nip-navy);
}

.nip-progress-report__stat-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.nip-progress-report__pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 600;
	border: 1px solid transparent;
}

.nip-progress-report__pill strong {
	font-size: 0.95rem;
}

.nip-progress-report__pill--correct {
	background: rgba(34, 160, 107, 0.12);
	color: #157a4e;
	border-color: rgba(34, 160, 107, 0.25);
}

.nip-progress-report__pill--incorrect {
	background: rgba(229, 83, 112, 0.12);
	color: #b8324f;
	border-color: rgba(229, 83, 112, 0.25);
}

.nip-progress-report__pill--omitted {
	background: rgba(61, 126, 191, 0.12);
	color: #1a5a94;
	border-color: rgba(61, 126, 191, 0.25);
}

.nip-progress-report__band-track {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-radius: 999px;
	overflow: hidden;
	border: 1px solid var(--nip-border);
	margin-bottom: 0.75rem;
}

.nip-progress-report__band-seg {
	padding: 0.45rem 0.35rem;
	text-align: center;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--nip-muted);
	background: rgba(26, 45, 90, 0.04);
}

.nip-progress-report__band-seg--low {
	background: rgba(229, 83, 112, 0.12);
}

.nip-progress-report__band-seg--borderline {
	background: rgba(240, 180, 41, 0.18);
}

.nip-progress-report__band-seg--high {
	background: rgba(61, 126, 191, 0.14);
}

.nip-progress-report__band-seg--very-high {
	background: rgba(34, 160, 107, 0.16);
}

.nip-progress-report__band[data-band="low"] .nip-progress-report__band-seg--low,
.nip-progress-report__band[data-band="borderline"] .nip-progress-report__band-seg--borderline,
.nip-progress-report__band[data-band="high"] .nip-progress-report__band-seg--high,
.nip-progress-report__band[data-band="very_high"] .nip-progress-report__band-seg--very-high {
	color: var(--nip-navy);
	box-shadow: inset 0 0 0 2px var(--nip-navy);
}

.nip-progress-report__band-marker {
	position: absolute;
	top: -0.35rem;
	width: 0;
	height: 0;
	border-left: 7px solid transparent;
	border-right: 7px solid transparent;
	border-top: 9px solid var(--nip-navy);
	transform: translateX(-50%);
	transition: left 0.35s ease;
}

.nip-progress-report__passing-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	font-size: 0.9rem;
}

.nip-progress-report__prep-message {
	margin: 0.75rem 0 0;
	padding: 0.75rem 0.9rem;
	border-radius: var(--nip-radius-sm);
	background: rgba(61, 126, 191, 0.08);
	border-left: 4px solid var(--nip-blue);
	font-size: 0.92rem;
	line-height: 1.5;
}

.nip-progress-report__bar {
	display: flex;
	height: 0.65rem;
	border-radius: 999px;
	overflow: hidden;
	background: var(--nip-border);
	min-width: 6rem;
}

.nip-progress-report__bar-seg {
	height: 100%;
	min-width: 2px;
}

.nip-progress-report__bar-seg--correct {
	background: #22a06b;
}

.nip-progress-report__bar-seg--incorrect {
	background: #e55370;
}

.nip-progress-report__bar-seg--omitted {
	background: #3d7ebf;
}

.nip-progress-report__table td:last-child {
	min-width: 9rem;
}

/* —— Topic TTS WMP-style player —— */
.nip-lms-tts-wmp {
	position: relative;
	margin: 1rem 0 1.25rem;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.nip-lms-tts-wmp.is-floating {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10050;
	margin: 0;
	padding: 0.4rem 0.75rem calc(0.4rem + var(--nip-safe-bottom, env(safe-area-inset-bottom, 0px)));
	background: linear-gradient(180deg, rgba(61, 66, 73, 0.97) 0%, rgba(37, 40, 45, 0.98) 100%);
	border-top: 1px solid #1a1c20;
	box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.28);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.nip-lms-tts-wmp__bar {
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 0.2rem;
	padding: 0.5rem 0.65rem;
	border-radius: 999px;
	border: 1px solid #3a3f47;
	background: linear-gradient(180deg, #4a4f57 0%, #2e3238 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 12px rgba(0, 0, 0, 0.2);
}

.nip-lms-tts-wmp__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.2rem;
	min-width: 2.5rem;
	min-height: 2.5rem;
	padding: 0.25rem;
	border: 1px solid transparent;
	border-radius: 8px;
	background: transparent;
	color: #e8eaed;
	cursor: pointer;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
	transition: transform 0.06s ease, background 0.06s ease, border-color 0.06s ease, box-shadow 0.06s ease;
}

.nip-lms-tts-wmp__btn:hover,
.nip-lms-tts-wmp__btn:focus-visible {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.18);
	outline: none;
}

.nip-lms-tts-wmp__btn:active,
.nip-lms-tts-wmp__btn.is-pressed {
	transform: scale(0.9);
	background: rgba(107, 163, 224, 0.35);
	border-color: rgba(107, 163, 224, 0.55);
	box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25);
}

.nip-lms-tts-wmp__btn[data-action='tts-volume'].is-muted {
	opacity: 0.55;
}

.nip-lms-tts-wmp__btn--play {
	min-width: 2.15rem;
	min-height: 2.15rem;
}

.nip-lms-tts-wmp__btn--menu {
	min-width: auto;
	padding-inline: 0.35rem;
}

.nip-lms-tts-wmp__sep {
	width: 1px;
	height: 1.35rem;
	margin: 0 0.15rem;
	background: rgba(255, 255, 255, 0.18);
}

.nip-lms-tts-wmp__badge {
	font-size: 0.62rem;
	font-weight: 600;
	line-height: 1;
	color: #b8bcc2;
}

.nip-tts-icon {
	display: block;
	flex-shrink: 0;
}

.nip-lms-tts-wmp__popup {
	position: absolute;
	z-index: 3;
	min-width: 5.5rem;
	padding: 0.25rem 0;
	border: 1px solid #3a3f47;
	border-radius: 8px;
	background: #2e3238;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	transform: translateX(-50%);
}

.nip-lms-tts-wmp.is-floating .nip-lms-tts-wmp__popup {
	position: fixed;
	z-index: 10060;
}

.nip-lms-tts-wmp__popup[hidden] {
	display: none !important;
}

.nip-lms-tts-wmp__menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nip-lms-tts-wmp__menu button {
	display: block;
	width: 100%;
	padding: 0.4rem 0.75rem;
	border: 0;
	background: transparent;
	color: #e8eaed;
	font-size: 0.82rem;
	text-align: left;
	cursor: pointer;
}

.nip-lms-tts-wmp__menu button:hover,
.nip-lms-tts-wmp__menu button[aria-selected="true"] {
	background: rgba(61, 126, 191, 0.35);
}

.nip-lms-tts-wmp__popup--volume:not([hidden]) {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: auto;
	padding: 0.75rem 0.55rem;
}

.nip-lms-tts-wmp__volume-slider {
	width: 2.25rem;
	height: 7.5rem;
	margin: 0;
	padding: 0;
	accent-color: #6ba3e0;
	-webkit-appearance: slider-vertical;
	appearance: slider-vertical;
	writing-mode: vertical-lr;
	direction: rtl;
	cursor: grab;
	touch-action: none;
}

.nip-lms-tts-wmp__volume-slider:active {
	cursor: grabbing;
}

.nip-tts-active-sentence {
	background: var(--nip-tts-highlight, #fff3b0);
	border-radius: 0.2rem;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

.nip-lms-tts-wmp .nip-tts-icon {
	width: 20px;
	height: 20px;
}

.nip-lms-tts-wmp.is-playing .nip-lms-tts-wmp__bar {
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 2px rgba(107, 163, 224, 0.35);
}

body.nip-tts-bar-active {
	padding-bottom: calc(4.5rem + var(--nip-safe-bottom, env(safe-area-inset-bottom, 0px)));
}

body.nip-theme-portal.nip-tts-bar-active .nip-lms-app {
	padding-bottom: calc(4.75rem + var(--nip-safe-bottom, env(safe-area-inset-bottom, 0px)));
}

.nip-course-trail__step .nip-course-trail__marker {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.1rem;
	margin-right: 0.35rem;
	font-size: 0.85rem;
	line-height: 1;
}

.nip-course-trail__step.is-completed .nip-course-trail__marker {
	color: #22a06b;
}

.nip-course-trail__step.is-current .nip-course-trail__marker {
	color: var(--nip-blue, #3d7ebf);
}

.nip-course-trail__step.is-upcoming .nip-course-trail__marker,
.nip-course-trail__step.is-locked .nip-course-trail__marker,
.nip-course-trail__step.is-available .nip-course-trail__marker {
	color: var(--nip-muted, #6b7280);
}

.nip-course-trail__step.is-available a,
.nip-course-trail__step.is-available .nip-course-trail__step-row {
	color: var(--nip-navy, #1a2d5a);
}

.nip-course-trail__step-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.15rem 0.35rem;
	width: 100%;
	padding: 0.35rem 0.45rem;
	margin: -0.35rem -0.45rem;
	border-radius: var(--nip-radius-sm, 8px);
	text-decoration: none;
	color: inherit;
	font-weight: 600;
	pointer-events: auto;
	cursor: pointer;
	position: relative;
	z-index: 1;
}

.nip-course-trail__step-row:hover {
	background: rgba(61, 126, 191, 0.08);
	text-decoration: none;
}

.nip-course-trail__step-row .nip-course-trail__step-title {
	flex: 1 1 auto;
	min-width: 0;
}

.nip-course-trail__step-row .nip-course-trail__state {
	margin-left: auto;
	font-size: 0.72rem;
	font-weight: 500;
}

.nip-course-trail__step a,
.nip-course-trail__step-link {
	pointer-events: auto;
	cursor: pointer;
	position: relative;
	z-index: 1;
	display: inline-block;
	padding: 0.15rem 0;
	text-decoration: none;
	color: inherit;
	font-weight: 600;
}

.nip-course-trail__step a:hover,
.nip-course-trail__step-link:hover {
	text-decoration: underline;
}

.nip-course-trail__step.is-upcoming a,
.nip-course-trail__step.is-current a,
.nip-course-trail__step.is-completed a,
.nip-course-trail__step.is-locked a,
.nip-course-trail__step.is-locked .nip-course-trail__step-link {
	pointer-events: auto;
	cursor: pointer;
}

.nip-course-trail__step-link--locked {
	color: var(--nip-muted, #6b7280);
	font-weight: 600;
}

.nip-course-trail__locked {
	color: var(--nip-muted, #6b7280);
	font-weight: 600;
	cursor: default;
}

.nip-course-trail--sidebar .nip-course-trail__panel {
	max-height: 14rem;
	overflow-y: auto;
}

.nip-course-trail--sidebar .nip-course-trail__list {
	max-height: 10rem;
	overflow-y: auto;
}

.nip-course-trail__phase-group,
.nip-course-trail__module-group {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nip-course-trail__group {
	margin: 0.35rem 0 0.5rem;
	border: 1px solid rgba(226, 232, 240, 0.95);
	border-radius: 10px;
	background: rgba(248, 250, 252, 0.7);
}

.nip-course-trail__group--phase {
	background: rgba(61, 126, 191, 0.06);
}

.nip-course-trail__group-title {
	cursor: pointer;
	font-size: 0.78rem;
	font-weight: 700;
	padding: 0.45rem 0.55rem;
	color: var(--nip-navy, #1a2d5a);
	list-style: none;
}

.nip-course-trail__group-title::-webkit-details-marker {
	display: none;
}

.nip-course-trail__group-list {
	list-style: none;
	margin: 0;
	padding: 0 0.35rem 0.35rem;
}

.nip-course-trail__group-list > .nip-course-trail__step {
	margin-left: 0;
}

.nip-course-trail__module-group .nip-course-trail__group {
	margin-left: 0.35rem;
}

.nip-topic-path-sidebar.is-path-expanded .nip-course-trail--sidebar .nip-course-trail__panel,
.nip-topic-path-sidebar.is-path-expanded .nip-course-trail__panel {
	max-height: none;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
}

.nip-topic-path-sidebar.is-path-expanded .nip-course-trail--sidebar .nip-course-trail__list,
.nip-topic-path-sidebar.is-path-expanded .nip-course-trail__list {
	max-height: none;
	flex: 1 1 auto;
	min-height: 8rem;
	overflow-y: auto;
}

.nip-topic-path-sidebar.is-path-expanded .nip-topic-path-sidebar__pathway {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.nip-topic-path-sidebar.is-path-expanded .nip-course-trail {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.nip-topic-path-sidebar.is-path-expanded .nip-topic-path-sidebar__context,
.nip-topic-path-sidebar.is-path-expanded .nip-topic-path-sidebar__steps {
	display: none;
}

.nip-topic-path-sidebar__step.is-completed .nip-topic-path-sidebar__locked,
.nip-topic-path-sidebar__step.is-open a {
	font-weight: 600;
}

/* —— NGN case-study shell (Wave E / v1.96) —— */
.nip-lms-case-shell {
	margin: 0 0 1.25rem;
	padding: 1rem 1.1rem;
	background: var(--nip-gradient-card, #fff);
	border: 1px solid rgba(26, 45, 90, 0.12);
	border-radius: var(--nip-radius-sm, 10px);
	box-shadow: var(--nip-glow, 0 8px 24px rgba(26, 45, 90, 0.08));
	width: 100%;
	max-width: none;
}

.nip-lms-case-shell__title {
	margin: 0 0 0.75rem;
	font-family: var(--nip-font-display);
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--nip-navy, #1a2d5a);
}

.nip-lms-case-shell__tabs {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.35rem;
	margin-bottom: 0.75rem;
	border-bottom: 1px solid rgba(26, 45, 90, 0.1);
	padding-bottom: 0.5rem;
	width: 100%;
	overflow-x: auto;
}

.nip-lms-case-shell__tab {
	flex: 1 1 auto;
	min-width: max(6rem, 22%);
	text-align: center;
}

.nip-lms-case-shell__tab {
	appearance: none;
	border: 1px solid transparent;
	background: rgba(26, 45, 90, 0.06);
	color: var(--nip-navy, #1a2d5a);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	cursor: pointer;
}

.nip-lms-case-shell__tab.is-active,
.nip-lms-case-shell__tab[aria-selected='true'] {
	background: var(--nip-navy, #1a2d5a);
	color: #fff;
}

.nip-lms-case-shell__tab:focus-visible {
	outline: 2px solid var(--nip-accent, #2d6bb3);
	outline-offset: 2px;
}

.nip-lms-case-shell__panel {
	font-size: 0.9375rem;
	line-height: 1.55;
}

.nip-lms-case-shell__panel[hidden] {
	display: none;
}

.nip-lms-case-tutor-split {
	display: grid;
	gap: 1.25rem;
	align-items: start;
	grid-template-columns: 1fr;
}

.nip-lms-quiz-question-stack {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	width: 100%;
}

.nip-lms-quiz-question-stack__main {
	min-width: 0;
	width: 100%;
}

.nip-lms-quiz-rationale-below {
	width: 100%;
	padding: 1rem 1.1rem;
	background: #f8fafc;
	border: 1px solid rgba(26, 45, 90, 0.1);
	border-radius: var(--nip-radius-sm, 10px);
}

.nip-lms-ngn-matrix {
	width: 100%;
	border-collapse: collapse;
	margin: 0.75rem 0 1rem;
	font-size: 0.92rem;
}

.nip-lms-ngn-matrix th,
.nip-lms-ngn-matrix td {
	border: 1px solid var(--nip-border, #e2e8f0);
	padding: 0.55rem 0.65rem;
	text-align: center;
	vertical-align: middle;
}

.nip-lms-ngn-matrix thead th {
	background: rgba(26, 45, 90, 0.06);
	font-weight: 600;
}

.nip-lms-ngn-matrix tbody th {
	text-align: left;
	background: #fff;
	font-weight: 600;
}

.nip-lms-ngn--matrix {
	width: 100%;
}

@media (min-width: 960px) {
	.nip-lms-case-tutor-split,
	.nip-lms-case-tutor-split--ngn {
		display: grid;
		grid-template-columns: minmax(0, 46%) minmax(0, 54%);
		gap: 1.25rem;
		align-items: start;
	}

	.nip-lms-case-tutor-split__chart {
		position: sticky;
		top: 5.5rem;
		max-height: calc(100vh - 6.5rem);
		overflow-y: auto;
	}

	.nip-lms-quiz--case-study .nip-lms-case-shell {
		margin-bottom: 0;
	}
}

.nip-lms-case-shell--ngn {
	border: 2px solid rgba(26, 45, 90, 0.14);
	border-radius: 8px;
	padding: 0;
	overflow: hidden;
	background: #fff;
}

.nip-lms-case-shell--ngn .nip-lms-case-shell__kicker {
	margin: 0;
	padding: 0.65rem 1rem 0;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--nip-accent, #2d6bb3);
}

.nip-lms-case-shell--ngn .nip-lms-case-shell__title {
	margin: 0.15rem 0 0;
	padding: 0 1rem 0.65rem;
	border-bottom: 1px solid rgba(26, 45, 90, 0.1);
}

.nip-lms-case-shell--ngn .nip-lms-case-shell__intro {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid rgba(26, 45, 90, 0.08);
	background: #f8fafc;
	font-size: 0.92rem;
}

.nip-lms-case-shell--ngn .nip-lms-case-shell__tabs {
	flex-wrap: wrap;
	gap: 0;
	margin: 0;
	padding: 0;
	border-bottom: 2px solid rgba(26, 45, 90, 0.12);
	background: #eef2f8;
	overflow: visible;
}

.nip-lms-case-shell--ngn .nip-lms-case-shell__tab {
	flex: 1 1 0;
	min-width: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	color: var(--nip-navy, #1a2d5a);
	padding: 0.65rem 0.5rem;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
}

.nip-lms-case-shell--ngn .nip-lms-case-shell__tab.is-active,
.nip-lms-case-shell--ngn .nip-lms-case-shell__tab[aria-selected='true'] {
	background: #fff;
	color: var(--nip-navy, #1a2d5a);
	border-bottom-color: var(--nip-accent, #2d6bb3);
	box-shadow: inset 0 2px 0 rgba(45, 107, 179, 0.15);
}

.nip-lms-case-shell--ngn .nip-lms-case-shell__panels {
	padding: 1rem;
	min-height: 12rem;
	max-height: 28rem;
	overflow-y: auto;
}

.nip-lms-quiz--case-study .nip-lms-quiz-stem-wrap {
	margin-top: 0;
}

.nip-lms-case-tutor-split__question {
	min-width: 0;
}

.nip-lms-case-tutor-split__rationale {
	min-width: 0;
	padding: 1rem 1.1rem;
	background: #f8fafc;
	border: 1px solid rgba(26, 45, 90, 0.1);
	border-radius: var(--nip-radius-sm, 10px);
	max-height: 70vh;
	overflow-y: auto;
}

.nip-lms-case-tutor-split__rationale-title {
	margin: 0 0 0.75rem;
	font-family: var(--nip-font-display);
	font-size: 1.1rem;
	color: var(--nip-navy, #1a2d5a);
}

.nip-lms-case-tutor-split__rationale-hint {
	margin: 0;
	color: var(--nip-muted, #6b7280);
	font-size: 0.9rem;
}

.nip-lms-case-rationale__summary,
.nip-lms-case-rationale__html,
.nip-lms-case-rationale__images {
	margin-bottom: 0.85rem;
}

.nip-lms-case-rationale__figure img,
.nip-case-rationale-fig img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

.nip-case-rationale-fig {
	margin: 0 0 0.85rem;
	padding: 0;
	background: #fff;
	border: 1px solid rgba(26, 45, 90, 0.1);
	border-radius: var(--nip-radius-sm, 10px);
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(26, 45, 90, 0.06);
}

.nip-case-rationale-fig img {
	display: block;
	width: 100%;
}

.nip-case-rationale-fig figcaption {
	padding: 0.45rem 0.65rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--nip-muted, #6b7280);
	text-transform: capitalize;
	border-top: 1px solid rgba(26, 45, 90, 0.08);
	background: #f8fafc;
}

.nip-lms-case-rationale__figures .nip-case-rationale-fig {
	margin-bottom: 0.65rem;
}

.nip-rationale-option__tag {
	font-weight: 700;
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.nip-rationale-option--correct .nip-rationale-option__tag {
	color: #15803d;
}

.nip-rationale-option--second-best .nip-rationale-option__tag {
	color: #b45309;
}

.nip-rationale-option--mild .nip-rationale-option__tag {
	color: #c2410c;
}

.nip-rationale-option--severe .nip-rationale-option__tag {
	color: #b91c1c;
}

.nip-rationale-option--incorrect .nip-rationale-option__tag {
	color: #b91c1c;
}

.nip-rationale-option--second-best {
	border-left: 3px solid #f5c518;
	padding-left: 0.65rem;
}

@media print {
	.nip-lms-sidebar--portal-rail,
	.nip-portal-mobile-bar,
	.nip-portal-topnav,
	.nip-portal-standard-header,
	.nip-topic-subnav__pathway-toggle,
	.nip-progress-report__actions,
	.nip-lms-portal-mobile-bar,
	.nip-lms-tts-wmp.is-playing {
		display: none !important;
	}

	.nip-lms-shell--portal {
		display: block;
	}

	.nip-lms-shell--full,
	.nip-lms-shell--topic {
		display: block;
	}

	.nip-lms-progress-report .nip-lms-card {
		break-inside: avoid;
		box-shadow: none;
	}
}

/* —— Portal layout v1.98.3 —— */
:root {
	--nip-portal-header-height: 7.5rem;
	--nip-portal-header-compact: 3.75rem;
}

body.nip-theme-portal .nip-site-header,
body.nip-theme-portal .nip-site-footer {
	display: none !important;
}

.nip-lms-app:has(.nip-portal-standard-header) {
	max-width: none;
	padding-inline: 0;
}

.nip-lms-shell--full {
	max-width: var(--nip-app-max, 1680px);
	margin-inline: auto;
	padding-inline: 1.25rem;
}

.nip-lms-shell--full .nip-lms-shell__main {
	max-width: none;
	width: 100%;
}

.nip-portal-standard-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.97);
	border-bottom: 1px solid rgba(226, 232, 240, 0.9);
	box-shadow: 0 8px 28px rgba(15, 31, 61, 0.07);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.nip-portal-standard-header::before {
	content: '';
	display: block;
	height: 3px;
	background: linear-gradient(90deg, var(--nip-navy, #1a2d5a) 0%, var(--nip-blue, #3d7ebf) 55%, #5ba3e8 100%);
}

.nip-portal-standard-header__inner {
	max-width: var(--nip-app-max, 1680px);
	margin-inline: auto;
	padding: 0.55rem 1.25rem 0.65rem;
}

.nip-portal-standard-header__nav-wrap {
	display: block;
	padding-top: 0.2rem;
}

.nip-portal-standard-header__row--brand {
	display: flex;
	align-items: center;
	gap: 0.65rem 0.85rem;
	flex-wrap: nowrap;
}

.nip-portal-standard-header__menu {
	flex-shrink: 0;
}

.nip-portal-standard-header__brand {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	color: var(--nip-navy, #1a2d5a);
	font-weight: 700;
	min-width: 0;
}

.nip-portal-standard-header__mark {
	display: inline-grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 8px;
	background: linear-gradient(135deg, var(--nip-navy), var(--nip-blue));
	color: #fff;
	font-size: 0.82rem;
	font-weight: 800;
}

.nip-portal-exam-countdown {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	background: rgba(26, 45, 90, 0.08);
	color: var(--nip-navy, #1a2d5a);
	font-size: 0.78rem;
	font-weight: 600;
	white-space: nowrap;
}

.nip-portal-exam-countdown[hidden] {
	display: none !important;
}

.nip-portal-standard-header__search {
	flex: 1 1 16rem;
	min-width: min(100%, 14rem);
	max-width: 28rem;
	margin-left: auto;
	position: relative;
}

.nip-portal-standard-header__search .nip-header-search__form {
	background: #f1f5f9;
	border: 1px solid var(--nip-border, #e2e8f0);
	border-radius: 999px;
	padding-inline: 0.15rem;
}

.nip-portal-standard-header__search .nip-header-search__input {
	background: transparent;
	border: none;
}

.nip-portal-standard-header__nav {
	padding: 0.35rem 0;
}

.nip-portal-standard-header__nav--unified {
	padding-top: 0.15rem;
	overflow: visible;
}

.nip-portal-standard-header__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	min-width: min-content;
}

.nip-portal-standard-header__list--unified {
	flex-wrap: wrap;
	gap: 0.3rem 0.4rem;
	padding-bottom: 0.1rem;
}

.nip-portal-standard-header__list--compact {
	gap: 0.25rem 0.65rem;
}

.nip-portal-standard-header__link,
.nip-portal-standard-header__pill {
	display: inline-block;
	padding: 0.32rem 0.72rem;
	border-radius: 999px;
	text-decoration: none;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--nip-muted, #64748b);
	background: #fff;
	border: 1px solid var(--nip-border, #e2e8f0);
	white-space: nowrap;
}

.nip-portal-standard-header__link:hover,
.nip-portal-standard-header__pill:hover {
	color: var(--nip-navy, #1a2d5a);
	border-color: rgba(61, 126, 191, 0.35);
}

.nip-portal-standard-header__link.is-active,
.nip-portal-standard-header__pill.is-active {
	color: #fff;
	background: linear-gradient(135deg, var(--nip-blue, #3d7ebf), #1a3a6b);
	border-color: transparent;
	box-shadow: 0 4px 12px rgba(61, 126, 191, 0.28);
}

.nip-portal-standard-header__link--secondary {
	font-size: 0.82rem;
	font-weight: 500;
	padding: 0.25rem 0.55rem;
}

.nip-topic-subnav {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 0.65rem 1rem;
	margin: 0 0 0.85rem;
	padding: 0.65rem 0.85rem;
	background: var(--nip-card, #fff);
	border: 1px solid var(--nip-border, #e2e8f0);
	border-radius: var(--nip-radius-sm, 10px);
	box-shadow: 0 2px 10px rgba(15, 31, 61, 0.05);
}

.nip-topic-subnav__side {
	min-width: 0;
}

.nip-topic-subnav__side--next {
	text-align: right;
}

.nip-topic-subnav__topic-link {
	display: inline-flex;
	flex-direction: column;
	gap: 0.1rem;
	text-decoration: none;
	color: var(--nip-navy, #1a2d5a);
	font-size: 0.82rem;
	max-width: 100%;
}

.nip-topic-subnav__topic-title {
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nip-topic-subnav__steps {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nip-topic-subnav__step a,
.nip-topic-subnav__step span {
	display: inline-block;
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	font-size: 0.84rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid var(--nip-border, #e2e8f0);
	color: var(--nip-muted, #64748b);
	background: #fff;
}

.nip-topic-subnav__step.is-current a,
.nip-topic-subnav__step.is-current span {
	color: #fff;
	background: linear-gradient(135deg, var(--nip-blue, #3d7ebf), #1a3a6b);
	border-color: transparent;
	box-shadow: 0 4px 12px rgba(61, 126, 191, 0.28);
}

.nip-topic-subnav__step.is-locked span {
	opacity: 0.55;
}

.nip-topic-subnav__pathway-toggle {
	display: none;
	grid-column: 1 / -1;
	justify-self: stretch;
}

.nip-lms-breadcrumbs--topic {
	margin: 0 0 1rem;
	font-size: 0.84rem;
	color: var(--nip-muted, #64748b);
}

.nip-topic-path-backdrop {
	position: fixed;
	inset: 0;
	z-index: 9996;
	background: rgba(15, 31, 61, 0.45);
}

body.nip-topic-path-open {
	overflow: hidden;
}

.nip-topic-path-sidebar__drawer-head {
	display: none;
}

@media (min-width: 1024px) {
	.nip-portal-standard-header__menu {
		display: none;
	}

	.nip-portal-standard-header__nav-toggle {
		display: none !important;
	}

	.nip-portal-standard-header__nav-wrap {
		display: block;
	}

	.nip-portal-standard-header__list--unified {
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 0.3rem 0.4rem;
	}

	.nip-lms-shell--topic {
		grid-template-columns: minmax(220px, 28%) minmax(0, 1fr);
		align-items: start;
		max-width: var(--nip-app-max, 1680px);
		margin-inline: auto;
		padding-inline: 1.25rem;
		transition: grid-template-columns 0.25s ease;
	}

	.nip-lms-shell--topic.is-path-expanded {
		grid-template-columns: minmax(300px, 38%) minmax(0, 1fr);
	}

	.nip-topic-path-sidebar {
		position: sticky;
		top: calc(var(--nip-portal-header-height, 7.5rem) + 0.5rem);
		align-self: start;
		max-height: calc(100vh - var(--nip-portal-header-height, 7.5rem) - 1rem);
		overflow: hidden;
		display: flex;
		flex-direction: column;
	}

	.nip-topic-path-sidebar.is-path-expanded {
		max-height: calc(100vh - var(--nip-portal-header-height, 7.5rem) - 0.5rem);
	}

	.nip-topic-subnav__pathway-toggle {
		display: none !important;
	}
}

@media (max-width: 1023px) {
	.nip-portal-standard-header__inner {
		padding: 0.5rem 1rem 0.6rem;
	}

	.nip-portal-standard-header__row--brand {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas:
			'menu brand utilities'
			'search search search';
		align-items: center;
		column-gap: 0.65rem;
		row-gap: 0.55rem;
	}

	.nip-portal-standard-header__menu {
		grid-area: menu;
	}

	.nip-portal-standard-header__brand {
		grid-area: brand;
		justify-self: center;
		max-width: 100%;
	}

	.nip-portal-standard-header__brand .nip-site-brand__logo,
	.nip-portal-standard-header__brand .nip-portal-standard-header__logo {
		max-height: 2.35rem;
		width: auto;
	}

	.nip-portal-standard-header__search {
		grid-area: search;
		flex: none;
		width: 100%;
		max-width: none;
		margin-left: 0;
	}

	.nip-portal-standard-header__nav-wrap {
		display: none;
	}

	:root {
		--nip-portal-header-height: 7rem;
	}

	.nip-lms-shell--topic {
		grid-template-columns: minmax(0, 1fr);
		padding-inline: 1rem;
	}

	.nip-lms-shell--topic .nip-topic-path-sidebar {
		display: flex;
		flex-direction: column;
		position: fixed;
		top: 0;
		left: 0;
		z-index: 9997;
		width: min(88vw, 320px);
		height: 100%;
		max-height: 100dvh;
		margin: 0;
		border-radius: 0;
		transform: translateX(-105%);
		transition: transform 0.22s ease, width 0.22s ease;
		overflow: hidden;
	}

	.nip-lms-shell--topic .nip-topic-path-sidebar.is-open {
		transform: translateX(0);
	}

	.nip-lms-shell--topic .nip-topic-path-sidebar.is-path-expanded {
		width: min(96vw, 420px);
	}

	.nip-lms-shell--topic .nip-topic-path-sidebar.is-path-expanded .nip-topic-path-sidebar__pathway {
		flex: 1;
		min-height: 0;
		overflow: hidden;
	}

	.nip-topic-path-sidebar__drawer-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.5rem;
		margin: -1rem -1rem 0.85rem;
		padding: 0.85rem 1rem;
		border-bottom: 1px solid var(--nip-border, #e2e8f0);
		background: var(--nip-card, #fff);
	}

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

	.nip-topic-subnav__side--next {
		text-align: left;
	}

	.nip-topic-subnav__pathway-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: var(--nip-touch, 44px);
		padding: 0.55rem 0.85rem;
		border-radius: var(--nip-radius-sm, 10px);
		border: 1px solid var(--nip-border, #e2e8f0);
		background: #fff;
		color: var(--nip-navy, #1a2d5a);
		font-weight: 600;
		cursor: pointer;
	}
}

@media (min-width: 1024px) {
	.nip-lms-shell--portal .nip-lms-sidebar--portal-rail {
		display: none !important;
	}

	.nip-lms-sidebar--drawer {
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		z-index: 9999;
		width: min(86vw, 320px);
		height: 100%;
		max-height: 100dvh;
		overflow-y: auto;
		transform: translateX(-105%);
		transition: transform 0.22s ease;
		box-shadow: 0 0 40px rgba(15, 31, 61, 0.2);
	}

	.nip-lms-sidebar--drawer.is-open {
		transform: translateX(0);
	}

	body.nip-portal-nav-open .nip-portal-backdrop {
		display: block !important;
	}
}

/* —— Lesson TTS reader dock (fixed bottom) —— */
.nip-lms-tts-controls.nip-lms-tts-wmp {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10050;
	max-width: none;
	margin: 0;
	padding: 0;
	pointer-events: none;
}

.nip-lms-tts-controls.nip-lms-tts-wmp > * {
	pointer-events: auto;
}

.nip-lms-tts-dock__peek {
	display: flex;
	align-items: stretch;
	gap: 0.35rem;
	margin: 0 auto;
	max-width: min(96vw, 520px);
	padding: 0 0.75rem calc(0.65rem + var(--nip-safe-bottom, 0px));
}

.nip-lms-tts-dock__peek-main {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-height: var(--nip-touch, 44px);
	padding: 0.55rem 0.85rem;
	border: 1px solid rgba(61, 126, 191, 0.35);
	border-radius: 999px;
	background: linear-gradient(135deg, #1a3a6b 0%, #2d6bb3 100%);
	color: #fff;
	box-shadow: 0 8px 28px rgba(15, 31, 61, 0.28);
	cursor: pointer;
	font: inherit;
	text-align: left;
}

.nip-lms-tts-dock__peek-text {
	display: flex;
	flex-direction: column;
	gap: 0.05rem;
	min-width: 0;
}

.nip-lms-tts-dock__peek-label {
	font-weight: 700;
	font-size: 0.92rem;
}

.nip-lms-tts-dock__peek-hint {
	font-size: 0.72rem;
	opacity: 0.85;
}

.nip-lms-tts-dock__peek-play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--nip-touch, 44px);
	height: var(--nip-touch, 44px);
	border: 1px solid rgba(61, 126, 191, 0.35);
	border-radius: 50%;
	background: #fff;
	color: var(--nip-navy, #1a2d5a);
	box-shadow: 0 8px 24px rgba(15, 31, 61, 0.18);
	cursor: pointer;
	flex-shrink: 0;
}

.nip-lms-tts-dock__panel {
	display: none;
	margin: 0 auto;
	max-width: min(96vw, 640px);
	padding: 0 0.75rem calc(0.75rem + var(--nip-safe-bottom, 0px));
}

.nip-lms-tts-wmp.is-dock-expanded .nip-lms-tts-dock__peek {
	display: none;
}

.nip-lms-tts-wmp.is-dock-expanded .nip-lms-tts-dock__panel {
	display: block;
}

.nip-lms-tts-dock__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.45rem;
	padding: 0 0.15rem;
}

.nip-lms-tts-dock__title {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--nip-navy, #1a2d5a);
}

.nip-lms-tts-dock__minimize {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border: 1px solid var(--nip-border, #e2e8f0);
	border-radius: 999px;
	background: #fff;
	color: var(--nip-muted, #64748b);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

.nip-lms-tts-wmp__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.55rem 0.65rem;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.98);
	border: 1px solid var(--nip-border, #e2e8f0);
	box-shadow: 0 10px 36px rgba(15, 31, 61, 0.2);
	backdrop-filter: blur(10px);
}

.nip-lms-tts-wmp__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--nip-touch, 44px);
	min-height: var(--nip-touch, 44px);
	padding: 0.4rem;
	border: none;
	border-radius: 12px;
	background: transparent;
	color: var(--nip-navy, #1a2d5a);
	cursor: pointer;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.nip-lms-tts-wmp__btn:hover,
.nip-lms-tts-wmp__btn.is-pressed {
	background: rgba(61, 126, 191, 0.12);
}

.nip-lms-tts-wmp__btn--play {
	background: linear-gradient(135deg, #1a3a6b 0%, #2d6bb3 100%);
	color: #fff;
}

.nip-lms-tts-wmp__btn--play:hover {
	background: linear-gradient(135deg, #15325c 0%, #255a9e 100%);
}

.nip-lms-tts-wmp__sep {
	width: 1px;
	height: 1.75rem;
	background: var(--nip-border, #e2e8f0);
	margin: 0 0.15rem;
}

.nip-lms-tts-wmp__badge {
	display: block;
	font-size: 0.62rem;
	font-weight: 700;
	line-height: 1;
	margin-top: 0.1rem;
}

.nip-lms-tts-wmp__popup {
	position: fixed;
	z-index: 10060;
	min-width: 5.5rem;
	padding: 0.35rem;
	border-radius: 12px;
	background: #fff;
	border: 1px solid var(--nip-border, #e2e8f0);
	box-shadow: 0 12px 32px rgba(15, 31, 61, 0.18);
}

.nip-lms-tts-wmp__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nip-lms-tts-wmp__menu button {
	display: block;
	width: 100%;
	padding: 0.45rem 0.75rem;
	border: none;
	background: transparent;
	text-align: center;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	border-radius: 8px;
}

.nip-lms-tts-wmp__menu button[aria-selected='true'],
.nip-lms-tts-wmp__menu button:hover {
	background: rgba(61, 126, 191, 0.12);
}

.nip-lms-tts-wmp__volume-slider {
	writing-mode: vertical-lr;
	height: 7rem;
}

.nip-tts-active-sentence {
	background: var(--nip-tts-highlight, #fff3b0);
	border-radius: 0.2rem;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

body.nip-tts-bar-active {
	padding-bottom: calc(5.5rem + var(--nip-safe-bottom, 0px));
}

body.nip-tts-bar-active .nip-lms-app--topic {
	padding-bottom: calc(1rem + var(--nip-safe-bottom, 0px));
}

@media (min-width: 768px) {
	.nip-lms-tts-dock__peek,
	.nip-lms-tts-dock__panel {
		max-width: min(92vw, 560px);
	}
}

/* —— Portal header utilities & mobile bottom bar (1.103.0) —— */
.nip-portal-standard-header__utilities {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 0.35rem 0.5rem;
	margin-left: auto;
	flex-shrink: 0;
}

.nip-portal-standard-header__utility {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	border: 1px solid var(--nip-border, #e2e8f0);
	background: #fff;
	color: var(--nip-navy, #1a2d5a);
	font-size: 0.78rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}

.nip-portal-standard-header__utility:hover,
.nip-portal-standard-header__utility.is-active {
	border-color: rgba(61, 126, 191, 0.45);
	color: var(--nip-blue, #3d7ebf);
}

.nip-portal-standard-header__utility--cta {
	color: #fff;
	background: linear-gradient(135deg, var(--nip-blue, #3d7ebf), #1a3a6b);
	border-color: transparent;
}

.nip-portal-standard-header__utility--billing {
	background: #f8fafc;
}

.nip-portal-bottom-bar {
	display: none;
}

.nip-lms-pricing__switch-note {
	margin-top: 0.45rem;
	font-size: 0.82rem;
}

.nip-lms-pricing__billing-note {
	margin: 0 0 1rem;
}

@media (max-width: 1023px) {
	.nip-portal-standard-header__utilities {
		grid-area: utilities;
	}

	.nip-portal-bottom-bar {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 48;
		background: rgba(255, 255, 255, 0.98);
		border-top: 1px solid var(--nip-border, #e2e8f0);
		box-shadow: 0 -6px 24px rgba(15, 31, 61, 0.08);
		padding-bottom: env(safe-area-inset-bottom, 0);
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
	}

	.nip-portal-bottom-bar__list {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		list-style: none;
		margin: 0;
		padding: 0.35rem 0.25rem;
		gap: 0.15rem;
	}

	.nip-portal-bottom-bar__link {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 0.15rem;
		padding: 0.35rem 0.2rem;
		text-decoration: none;
		color: var(--nip-muted, #64748b);
		font-size: 0.68rem;
		font-weight: 600;
		min-width: 0;
	}

	.nip-portal-bottom-bar__link.is-active {
		color: var(--nip-blue, #3d7ebf);
	}

	.nip-portal-bottom-bar__label {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		max-width: 100%;
	}

	.nip-lms-app:has(.nip-portal-bottom-bar) {
		padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
	}

	body.nip-tts-bar-active .nip-lms-app:has(.nip-portal-bottom-bar) {
		padding-bottom: calc(4.25rem + 5.5rem + env(safe-area-inset-bottom, 0px));
	}
}

@media (min-width: 1024px) {
	.nip-portal-standard-header__utilities {
		align-self: center;
	}

	.nip-portal-standard-header__pill {
		padding: 0.28rem 0.58rem;
		font-size: 0.74rem;
	}

	.nip-portal-standard-header__list--unified {
		gap: 0.25rem 0.32rem;
	}
}

/* —— Profile & settings —— */
.nip-portal-nav__section-title {
	margin: 1rem 0 0.35rem;
	padding: 0 0.65rem;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--nip-muted, #64748b);
}

.nip-portal-nav__section-title:first-child {
	margin-top: 0;
}

.nip-lms-settings .nip-lms-card,
.nip-lms-profile .nip-lms-card {
	margin-bottom: 1.25rem;
}

.nip-lms-settings__profile-grid {
	gap: 1rem;
}

.nip-lms-settings__profile .description,
.nip-lms-settings__billing .description {
	color: var(--nip-muted, #64748b);
	font-size: 0.92rem;
}

.nip-lms-settings__plans {
	margin-top: 1.25rem;
}

.nip-lms-settings__plans .nip-lms-pricing__grid {
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 0.85rem;
}

.nip-lms-settings__plans .nip-lms-pricing__card,
.nip-lms-settings__plans [class*="pricing-card"] {
	padding: 1rem;
}

.nip-lms-price-card.is-current-plan {
	border-color: var(--nip-blue, #3d7ebf);
	box-shadow: 0 0 0 2px rgba(61, 126, 191, 0.22), var(--nip-shadow, 0 12px 40px rgba(26, 45, 90, 0.1));
	background: linear-gradient(180deg, #fff 0%, rgba(61, 126, 191, 0.06) 100%);
}

.nip-lms-price-card__badge--current {
	background: var(--nip-blue, #3d7ebf);
	color: #fff;
}

.nip-lms-settings__status {
	margin-top: 0.5rem;
	font-size: 0.88rem;
}

.nip-auth-password-rules {
	margin: 0.35rem 0 0.75rem;
	padding-left: 0;
	list-style: none;
	font-size: 0.85rem;
	color: var(--nip-muted, #64748b);
}

.nip-auth-password-rules li {
	position: relative;
	padding-left: 1.35rem;
	margin-bottom: 0.2rem;
}

.nip-auth-password-rules li::before {
	content: '○';
	position: absolute;
	left: 0;
	color: var(--nip-muted, #94a3b8);
}

.nip-auth-password-rules li.is-met {
	color: #166534;
}

.nip-auth-password-rules li.is-met::before {
	content: '✓';
	color: #166534;
}

.nip-auth-password-rules li.is-unmet {
	color: #b45309;
}

.nip-auth-password-rules li.is-unmet::before {
	content: '•';
	color: #b45309;
}

.nip-lms-onboarding__plan {
	margin: 0 0 1rem;
}

.nip-lms-onboarding__timeline-result {
	margin: 1rem 0;
}

.nip-lms-study-plan-calculation__list {
	margin: 0.5rem 0 0;
	padding-left: 1.25rem;
}

.nip-lms-study-plan-calculation__list li {
	margin-bottom: 0.35rem;
}

.nip-lms-study-plan-welcome {
	margin-bottom: 1.25rem;
	border-color: rgba(61, 126, 191, 0.35);
	background: linear-gradient(180deg, rgba(61, 126, 191, 0.08), #fff);
}

.nip-lms-study-plan-welcome h2 {
	margin-top: 0;
	font-size: 1.15rem;
	color: var(--nip-navy, #1a2d5a);
}
