/* Brainmatics LMS profile. The site banner/header is intentionally untouched. */
body.learnpress-profile,
body.lp-profile-page {
	--bm-profile-primary: #3659d9;
	--bm-profile-primary-dark: #243fa8;
	--bm-profile-ink: #172033;
	--bm-profile-muted: #667085;
	--bm-profile-border: #e4e8f0;
	--bm-profile-surface: #ffffff;
	--bm-profile-bg: #f5f7fb;
}

/* Password settings. */
.bm-password-heading { margin: 0 0 34px; }
#learn-press-profile .bm-password-heading h1 {
	margin: 0 0 8px; color: #14233b; font-size: clamp(28px, 3vw, 34px);
	font-weight: 700; letter-spacing: -0.025em; line-height: 1.15;
}
.bm-password-heading p { margin: 0; color: #5e5a55; font-size: 15px; line-height: 1.7; }
.bm-password-heading + .bm-password-notice {
	display: flex; align-items: center; gap: 10px; margin: -14px 0 28px; padding: 12px 15px;
	border: 1px solid #bee4cc; border-left: 4px solid #2ca66f; border-radius: 9px;
	color: #147a43; background: #effaf3; font-size: 14px; line-height: 1.45;
}
.bm-password-heading + .bm-password-notice::before {
	flex: 0 0 auto; margin: 0;
}
.bm-password-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 26px; }
.bm-password-card, .bm-password-requirements, .bm-password-tip {
	box-sizing: border-box; border: 1px solid #e7eaf0; border-radius: 12px;
	background: #fff; box-shadow: 0 10px 28px rgba(18, 33, 60, 0.05);
}
.bm-password-card { position: relative; overflow: hidden; padding: 0 36px 32px; }
.bm-password-card::before {
	position: absolute; top: 0; right: 0; left: 0; height: 4px;
	background: #999999; content: "";
}
.bm-password-card__title { display: flex; align-items: center; gap: 12px; padding: 38px 0 24px; border-bottom: 1px solid #edf0f4; }
#learn-press-profile .bm-password-card__title h2,
#learn-press-profile .bm-password-aside__title h2 { margin: 0; color: #14233b; font-size: 24px; font-weight: 600; }
#learn-press-profile .bm-password-form { width: 100%; max-width: none; }
#learn-press-profile .bm-password-form .form-fields {
	display: grid; gap: 28px; margin: 0; padding: 36px 0 30px; list-style: none;
}
#learn-press-profile .bm-password-form .form-field { float: none; width: 100%; max-width: 480px; margin: 0; }
#learn-press-profile .bm-password-form label {
	display: block; margin: 0 0 8px; color: #4f4a44; font-size: 11px;
	font-weight: 700; letter-spacing: 0.06em; text-transform: capitalize;
}
.bm-password-input { position: relative; }
#learn-press-profile .bm-password-input input {
	box-sizing: border-box; width: 100%; min-height: 52px; padding: 12px 48px 12px 16px;
	border: 1px solid #dddddd; border-radius: 9px; background: #f5f5f5;
}
#learn-press-profile .bm-password-input input:focus {
	border-color: #737373; background: #fff; box-shadow: 0 0 0 3px rgba(115, 115, 115, 0.1); outline: 0;
}
#learn-press-profile .bm-password-toggle {
	position: absolute; top: 50%; right: 8px; display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; min-height: 0; padding: 0; border: 0; color: #526071;
	background: transparent; box-shadow: none; transform: translateY(-50%); cursor: pointer;
}
.bm-password-strength { height: 5px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: #e5e5e5; }
.bm-password-strength span { display: block; width: 0; height: 100%; transition: width .2s ease, background .2s ease; }
.bm-password-strength .is-weak { background: #c53b2c; }
.bm-password-strength .is-medium { background: #737373; }
.bm-password-strength .is-strong { background: #2ca66f; }
.bm-password-strength-label { margin: 6px 0 0; color: #667085; font-size: 11px; }
.bm-password-actions {
	display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px;
	max-width: 480px; padding-top: 30px; border-top: 1px solid #edf0f4;
}
#learn-press-profile .bm-password-actions button, #learn-press-profile .bm-password-cancel {
	display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
	min-height: 42px; margin: 0; padding: 10px 18px; border-radius: 0 !important; font-size: 11px;
	font-weight: 700; letter-spacing: .04em; text-decoration: none; text-transform: capitalize;
}
#learn-press-profile .bm-password-actions button,
#learn-press-profile .bm-password-cancel { border: 1px solid #999999; color: #fff !important; background: #999999; }
#learn-press-profile .bm-password-actions button:hover,
#learn-press-profile .bm-password-actions button:focus-visible,
#learn-press-profile .bm-password-cancel:hover,
#learn-press-profile .bm-password-cancel:focus-visible { border-color: #d49b28; color: #fff !important; background: #d49b28; }
#learn-press-profile .bm-profile-settings-card button[type="submit"] { color: #fff !important; }
#learn-press-profile #profile-content:has(.bm-password-layout) { background: #f5f5f5; }
.bm-password-aside { display: grid; gap: 22px; }
.bm-password-requirements { padding: 26px 24px; }
.bm-password-aside__title { display: flex; align-items: flex-start; gap: 12px; }
.bm-password-aside__title > i { margin-top: 4px; color: #737373; font-size: 20px; }
#learn-press-profile .bm-password-aside__title h2 { font-size: 19px; line-height: 1.25; }
.bm-password-requirements ul { display: grid; gap: 13px; margin: 22px 0 0; padding: 0; list-style: none; }
.bm-password-requirements li {
	display: grid; grid-template-columns: 15px minmax(0, 1fr); gap: 8px; color: #4f4a44;
	font-size: 12px;
	line-height: 1.5;
}
.bm-password-requirements li i { width: 11px; height: 11px; margin-top: 3px; border: 1px solid #737373; border-radius: 50%; }
.bm-password-requirements li.is-valid i { border-color: #3baa78; background: radial-gradient(circle, #3baa78 0 42%, transparent 46%); }
.bm-password-tip { display: flex; gap: 14px; padding: 22px; border-color: #dddddd; background: #eeeeee; }
.bm-password-tip > i { margin-top: 3px; color: #737373; font-size: 18px; }
#learn-press-profile .bm-password-tip strong { color: #404040; font-size: 11px; letter-spacing: .06em; text-transform: capitalize; }
.bm-password-tip p { margin: 5px 0 0; color: #525252; font-size: 12px; line-height: 1.65; }

@media (max-width: 980px) {
	.bm-password-layout { grid-template-columns: 1fr; }
	.bm-password-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.bm-password-card { padding: 0 18px 24px; }
	.bm-password-aside, .bm-password-actions { grid-template-columns: 1fr; }
}

#learn-press-profile {
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr);
	gap: 24px;
	float: none !important;
	box-sizing: border-box;
	width: min(1180px, calc(100vw - 48px)) !important;
	max-width: 1180px;
	margin: 36px auto 72px;
	padding: 0 24px;
	color: var(--bm-profile-ink, #172033);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#learn-press-profile .bm-profile-welcome {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) minmax(260px, 0.75fr);
	align-items: center;
	gap: 22px;
	margin-bottom: 24px;
	padding: 26px 30px;
	border: 1px solid #e5e5e5;
	border-radius: 18px;
	background: linear-gradient(135deg, #fff 0%, #f9f9f9 60%, #f1f1f1 100%);
	box-shadow: 0 14px 36px rgba(39, 39, 39, 0.08);
	grid-column: 1 / -1;
}

.bm-profile-welcome__avatar img {
	display: block;
	width: 88px;
	height: 88px;
	border: 4px solid #fff;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 8px 22px rgba(58, 58, 58, 0.16);
}

.bm-profile-welcome__eyebrow {
	display: block;
	margin-bottom: 5px;
	color: #6a6a6a;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

#learn-press-profile .bm-profile-welcome h1 {
	margin: 0 0 5px;
	color: #1f1f1f;
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 750;
	line-height: 1.15;
}

.bm-profile-welcome__identity p,
.bm-profile-welcome__message span {
	margin: 0;
	color: #6f6f6f;
}

.bm-profile-welcome__message {
	padding: 16px 18px;
	border-left: 3px solid #c0c0c0;
	border-radius: 0 12px 12px 0;
	background: rgba(255, 255, 255, 0.72);
}

.bm-profile-welcome__message strong,
.bm-profile-welcome__message span {
	display: block;
}

.bm-profile-welcome__message strong {
	margin-bottom: 4px;
	font-size: 15px;
}

#learn-press-profile #profile-sidebar {
	--bm-profile-primary: #404040;
	--bm-profile-border: #e4e4e4;
	--thim-body-primary-color: #404040;
	float: none;
	width: auto;
	margin: 0;
	padding: 12px;
	border: 1px solid var(--bm-profile-border, #e8e8e8);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 26px rgba(39, 39, 39, 0.06);
}

.bm-profile-nav-label {
	padding: 8px 12px 10px;
	color: #a1a1a1;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

#learn-press-profile #profile-nav .lp-profile-nav-tabs,
#learn-press-profile #profile-nav ul {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	list-style: none;
}

#learn-press-profile #profile-nav .lp-profile-nav-tabs > li,
#learn-press-profile #profile-nav li {
	margin: 3px 0;
	border: 0;
	background: transparent;
}

#learn-press-profile #profile-nav a {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 10px 12px;
	border: 0;
	border-radius: 10px;
	color: #545454;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

#learn-press-profile #profile-nav a:hover {
	color: var(--bm-profile-primary, #5b5b5b);
	background: #f4f4f4;
	transform: translateX(2px);
}

#learn-press-profile #profile-nav .active > a,
#learn-press-profile #profile-nav .current > a {
	color: #fff;
	background: linear-gradient(135deg, #696969, #515151);
	box-shadow: 0 7px 18px rgba(91, 91, 91, 0.23);
}

#learn-press-profile #profile-content {
	float: none;
	width: auto;
	min-width: 0;
	padding: 24px;
	border: 1px solid var(--bm-profile-border, #e4e8f0);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 26px rgba(27, 39, 75, 0.06);
	grid-column: 2;
}

#learn-press-profile .wrapper-profile-header {
	display: none;
}

/* The legacy course table becomes a scan-friendly set of course cards. */
#learn-press-profile .table-responsive {
	overflow: visible;
}

#learn-press-profile .table-responsive > .table {
	display: block;
	width: 100%;
	margin: 0;
	border: 0;
	background: transparent;
}

#learn-press-profile .table-responsive > .table > thead {
	display: none;
}

#learn-press-profile .table-responsive > .table > tbody {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

#learn-press-profile .table-responsive > .table > tbody > tr {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 18px;
	padding: 20px;
	border: 1px solid #e3e8f1;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 5px 18px rgba(27, 39, 75, 0.045);
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

#learn-press-profile .table-responsive > .table > tbody > tr:hover {
	border-color: #bfcaf4;
	box-shadow: 0 12px 28px rgba(40, 64, 145, 0.1);
	transform: translateY(-2px);
}

#learn-press-profile .table-responsive > .table > tbody > tr > td {
	position: relative;
	display: block;
	min-width: 0;
	padding: 19px 0 0;
	border: 0;
	color: #344054;
	text-align: left !important;
}

#learn-press-profile .table-responsive > .table > tbody > tr > td:first-child {
	grid-column: 1 / -1;
	padding: 0 0 15px;
	border-bottom: 1px solid #edf0f5;
	font-size: 17px;
	font-weight: 700;
}

#learn-press-profile .table-responsive > .table > tbody > tr > td:first-child a {
	color: #172033 !important;
	text-decoration: none !important;
}

#learn-press-profile .table-responsive > .table > tbody > tr > td:first-child a:hover {
	color: var(--bm-profile-primary, #3659d9) !important;
}

#learn-press-profile .table-responsive > .table > tbody > tr > td::before {
	position: absolute;
	top: 0;
	left: 0;
	color: #98a2b3;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

#learn-press-profile .table-responsive > .table > tbody > tr > td:nth-child(2)::before { content: "Role"; }
#learn-press-profile .table-responsive > .table > tbody > tr > td:nth-child(3)::before { content: "Instructor"; }
#learn-press-profile .table-responsive > .table > tbody > tr > td:nth-child(4)::before { content: "Material"; }
#learn-press-profile .table-responsive > .table > tbody > tr > td:nth-child(5)::before { content: "Pre-test"; }
#learn-press-profile .table-responsive > .table > tbody > tr > td:nth-child(6)::before { content: "Post-test"; }
#learn-press-profile .table-responsive > .table > tbody > tr > td:nth-child(7)::before { content: "Status"; }
#learn-press-profile .table-responsive > .table > tbody > tr > td:nth-child(8)::before { content: "Gradebook"; }
#learn-press-profile .table-responsive > .table > tbody > tr > td:nth-child(9)::before { content: "Certificate"; }

/* Certification cards reuse the responsive table layout, but have their own fields. */
#learn-press-profile .table-responsive > .bm-certification-table > tbody > tr > td:nth-child(2)::before { content: "Vendor"; }
#learn-press-profile .table-responsive > .bm-certification-table > tbody > tr > td:nth-child(3)::before { content: "Provider"; }
#learn-press-profile .table-responsive > .bm-certification-table > tbody > tr > td:nth-child(4)::before { content: "Year"; }
#learn-press-profile .table-responsive > .bm-certification-table > tbody > tr > td:nth-child(5)::before { content: "Certification"; }

#learn-press-profile .table-responsive > .bm-certification-table > tbody > tr {
	border-color: #d3e9db;
	background: #dff3e7;
}

#learn-press-profile .table-responsive > .bm-certification-table > tbody > tr:hover {
	border-color: #b8d9c5;
}

#learn-press-profile .table-responsive > .bm-certification-table > tbody > tr > td {
	background: transparent !important;
	box-shadow: none !important;
}

#learn-press-profile .table-responsive > .bm-certification-table > tbody > tr > td,
#learn-press-profile .table-responsive > .bm-certification-table > tbody > tr > td::before {
	color: #344054 !important;
}

#learn-press-profile .table-responsive > .bm-certification-table > tbody > tr > td:first-child {
	border-bottom-width: 2px;
	border-bottom-color: #c8e2d2;
}

#learn-press-profile .bm-certification-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

#learn-press-profile .bm-certification-table td:last-child a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 5px 18px;
	border: 1px solid #707070;
	border-radius: 0;
	background: #707070;
	color: #fff !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

#learn-press-profile .bm-certification-table td:last-child a:is(:hover, :focus-visible, :active) {
	border-color: #5c5c5c;
	background: #5c5c5c;
	color: #fff !important;
}

body.bm-logout-modal-open {
	overflow: hidden;
}

.bm-logout-modal[hidden] {
	display: none !important;
}

.bm-logout-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.bm-logout-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 31, 52, 0.68);
	backdrop-filter: blur(3px);
}

.bm-logout-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 460px);
	padding: 36px 34px 30px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
	text-align: center;
}

.bm-logout-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #9ca3af;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.bm-logout-modal__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: #eeeeee;
	color: #737373;
	font-size: 34px;
	font-weight: 700;
}

.bm-logout-modal__dialog h3 {
	margin: 0 0 10px;
	color: #172033;
	font-size: 25px;
	font-weight: 700;
	line-height: 1.3;
}

.bm-logout-modal__dialog p {
	margin: 0 auto 26px;
	color: #697386;
	font-size: 14px;
	line-height: 1.65;
}

.bm-logout-modal__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.bm-logout-modal__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 11px 18px;
	border: 0;
	border-radius: 0;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

#bm-logout-modal .bm-logout-modal__button--cancel {
	background: #999999;
	color: #fff !important;
}

#bm-logout-modal .bm-logout-modal__button--confirm {
	background: #404040;
	color: #fff !important;
}

.bm-logout-modal__button:hover,
.bm-logout-modal__button:focus-visible {
	background: #d49b28 !important;
	color: #fff !important;
	filter: none;
}

.bm-logout-modal__close:hover,
.bm-logout-modal__close:focus-visible {
	filter: brightness(0.94);
}

#learn-press-profile .badge {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

#learn-press-profile .badge-outline-success {
	border: 1px solid #abe5c5;
	color: #147a43;
	background: #eaf8f0;
}

#learn-press-profile .badge-outline-warning {
	border: 1px solid #f3d28a;
	color: #8a5a00;
	background: #fff7e6;
}

#learn-press-profile .table-responsive a:not(.badge) {
	color: var(--bm-profile-primary, #3659d9) !important;
	font-weight: 600;
	text-decoration: none !important;
}

#learn-press-profile input:not([type="checkbox"]):not([type="radio"]),
#learn-press-profile select,
#learn-press-profile textarea {
	min-height: 44px;
	border: 1px solid #d8deea;
	border-radius: 9px;
	background: #fff;
}

#learn-press-profile button,
#learn-press-profile .lp-button,
#learn-press-profile input[type="submit"] {
	border: 0;
	border-radius: 9px;
	background: var(--bm-profile-primary, #3659d9);
	color: #fff;
	font-weight: 700;
	box-shadow: none;
}

@media (max-width: 980px) {
	#learn-press-profile .bm-profile-welcome {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.bm-profile-welcome__message {
		grid-column: 1 / -1;
	}

	#learn-press-profile {
		grid-template-columns: 1fr;
	}

	#learn-press-profile #profile-content {
		grid-column: 1;
	}

	#learn-press-profile .table-responsive > .table > tbody {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	#learn-press-profile {
		width: calc(100vw - 28px) !important;
		margin-top: 22px;
		padding: 0 14px;
	}

	#learn-press-profile .bm-profile-welcome {
		grid-template-columns: 1fr;
		padding: 22px;
		text-align: center;
	}

	.bm-profile-welcome__avatar img {
		margin: auto;
	}

	.bm-profile-welcome__message {
		grid-column: auto;
		border-top: 3px solid #c0c0c0;
		border-left: 0;
		border-radius: 0 0 12px 12px;
	}

	#learn-press-profile #profile-content {
		padding: 16px;
	}

	#learn-press-profile .table-responsive > .table > tbody > tr {
		grid-template-columns: 1fr;
	}

	#learn-press-profile .table-responsive > .bm-certification-table > tbody > tr > td:first-child {
		max-width: 100%;
		white-space: normal;
		word-break: normal;
		overflow-wrap: anywhere;
		line-height: 1.4;
	}
}

/* Academic dashboard layout — aligned with the approved profile direction. */
#learn-press-profile {
	display: block;
	padding: 0;
	border: 1px solid #dfe4ec;
	background: #f7f9fd;
	box-shadow: 0 18px 45px rgba(18, 33, 60, 0.08);
}

#learn-press-profile > .lp-content-area {
	display: grid;
	grid-template-columns: 246px minmax(0, 1fr);
	grid-template-areas: "sidebar content";
	gap: 0;
	width: 100% !important;
	max-width: none !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
	min-width: 0;
}

#learn-press-profile #profile-sidebar {
	grid-area: sidebar !important;
	grid-column: 1 !important;
	grid-row: 1 !important;
	align-self: stretch;
	margin: 0;
	padding: 0 0 32px;
	border: 0;
	border-right: 1px solid #e4e4e4;
	border-radius: 0;
	box-shadow: none;
}

.bm-profile-persona {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 106px;
	padding: 20px 22px;
	border-bottom: 1px solid #e4e4e4;
	background: #f3f3f3;
}

.bm-profile-persona img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.bm-profile-persona strong,
.bm-profile-persona span,
.bm-profile-persona small {
	display: block;
}

/* Overridden below with more specific styles */
.bm-profile-persona strong,
.bm-profile-persona span {
	line-height: 1.25;
}

.bm-profile-persona small {
	display: block;
	margin-bottom: 2px;
	color: #000;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: none;
}

.bm-profile-persona strong {
	display: block;
	color: #222222;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
}

.bm-profile-persona span {
	display: block;
	margin-top: 3px;
	color: #000;
	font-size: 12px;
	line-height: 1.3;
}

/* Avatar wrap with online dot */
.bm-profile-persona__avatar-wrap {
	position: relative;
	flex-shrink: 0;
}

.bm-profile-persona__avatar-wrap img {
	display: block;
	width: 48px;
	height: 48px;
	border: 2px solid #fff;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 3px 10px rgba(32, 32, 32, 0.18);
}

.bm-profile-persona__dot {
	position: absolute;
	bottom: 1px;
	right: 1px;
	width: 11px;
	height: 11px;
	border: 2px solid #f3f3f3;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
}

#learn-press-profile #profile-nav {
	padding: 18px 16px;
}

#learn-press-profile #profile-nav a {
	min-height: 48px;
	padding: 12px 16px;
	border-radius: 8px;
	color: #474747;
}

#learn-press-profile #profile-nav .active > a,
#learn-press-profile #profile-nav .current > a {
	color: #484848;
	background: #dfdfdf;
	box-shadow: none;
}

#learn-press-profile #profile-content {
	grid-area: content !important;
	grid-column: 2 !important;
	grid-row: 1 !important;
	width: 100% !important;
	min-width: 0 !important;
	box-sizing: border-box;
	padding: 30px 22px 42px;
	border: 0;
	border-radius: 0;
	background: #f7f9fd;
	box-shadow: none;
}

.bm-course-heading {
	margin: 0 0 24px;
}

.bm-course-heading > span {
	display: none;
}

#learn-press-profile .bm-course-heading h1 {
	margin: 0 0 8px;
	color: #14233b;
	font-size: clamp(28px, 3vw, 34px);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.15;
}

.bm-course-heading p {
	max-width: none;
	margin: 0;
	color: #5e5a55;
	font-size: 14px;
	line-height: 1.65;
	white-space: normal;
}

.bm-course-progress-section {
	padding: 28px;
	border: 1px solid #e1e6ef;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(18, 33, 60, 0.06);
}

.bm-student-score-chart {
	margin: 26px 0;
	padding: 24px 26px 20px;
	border: 1px solid #dbe3ef;
	border-radius: 16px;
	background: #fff;
}

.bm-student-score-chart__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 18px;
}

.bm-student-score-chart__header > div > span {
	display: block;
	margin-bottom: 4px;
	color: #000;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: normal;
	text-transform: none;
}

#learn-press-profile .bm-student-score-chart__header h2 {
	margin: 0;
	color: #17213b;
	font-size: clamp(22px, 2.4vw, 30px);
}

.bm-student-score-chart__select {
	width: min(390px, 42vw);
	min-height: 44px;
	padding: 8px 38px 8px 13px;
	border: 1px solid #ccd7e6;
	border-radius: 9px;
	background-color: #fff;
	color: #24324b;
}

.bm-student-score-chart__canvas-wrap {
	position: relative;
	height: 330px;
}

.bm-student-score-chart__hint {
	margin: 12px 0 0;
	color: #718096;
	font-size: 12px;
}

@media (max-width: 767px) {
	.bm-student-score-chart {
		padding: 18px 14px;
	}

	.bm-student-score-chart__header {
		align-items: stretch;
		flex-direction: column;
		gap: 12px;
	}

	.bm-student-score-chart__select {
		width: 100%;
	}

	.bm-student-score-chart__canvas-wrap {
		height: 290px;
	}
}

.bm-profile-biography {
	margin: 0 0 24px;
	padding: 24px 26px 0;
	border: 1px solid #e6e6e6;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(32, 32, 32, 0.06);
}

.bm-profile-biography__layout {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	align-items: start;
	gap: 22px;
}

.bm-profile-biography__image {
	display: block;
	width: 96px;
	height: 96px;
	border: 4px solid #fff;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 8px 24px rgba(52, 52, 52, 0.16);
}

.bm-profile-biography__eyebrow {
	display: block;
	margin-bottom: 5px;
	color: #6f6f6f;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: none;
}

.bm-profile-biography__identity {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

#learn-press-profile .bm-profile-biography__identity h2 {
	margin: 0;
	color: #222222;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
}

.bm-profile-biography__identity span {
	padding: 4px 9px;
	border-radius: 999px;
	background: #f3f3f3;
	color: #575757;
	font-size: 10px;
	font-weight: 700;
}

.bm-profile-biography__text {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	color: #616161;
	font-size: 13px;
	line-height: 1.7;
	text-align: justify;
}

.bm-profile-biography__text p {
	margin: 0 0 10px;
}

.bm-profile-biography[open] .bm-profile-biography__text {
	display: block;
	overflow: visible;
}

.bm-profile-biography summary {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: max-content;
	max-width: 100%;
	margin: 18px auto 14px;
	padding: 8px 14px;
	border: 0;
	border-radius: 999px;
	background: #999999;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.bm-profile-biography summary:hover,
.bm-profile-biography summary:focus-visible {
	background: #999999;
	color: #fff;
}

.bm-profile-biography summary::-webkit-details-marker {
	display: none;
}

.bm-profile-biography__less {
	display: none;
}

.bm-profile-biography__chevron {
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-top: -3px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.bm-profile-biography[open] .bm-profile-biography__more {
	display: none;
}

.bm-profile-biography[open] .bm-profile-biography__less {
	display: inline;
}

.bm-profile-biography[open] .bm-profile-biography__chevron {
	margin-top: 3px;
	transform: rotate(225deg);
}
#learn-press-profile .bm-course-progress-table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid #e1e5ec;
	border-radius: 10px;
	background: #fff;
}

#learn-press-profile .bm-course-progress-table > .table {
	display: table;
	width: 100%;
	min-width: 720px;
	table-layout: auto;
	border-collapse: collapse;
}

#learn-press-profile .bm-course-progress-table > .table > thead {
	display: table-header-group;
}

#learn-press-profile .bm-course-progress-table > .table > tbody {
	display: table-row-group;
}

#learn-press-profile .bm-course-progress-table > .table > thead > tr,
#learn-press-profile .bm-course-progress-table > .table > tbody > tr {
	display: table-row;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	transform: none;
}

/* Keep column headers consistent across all profile tables. */
#learn-press-profile table > thead > tr > th,
#learn-press-profile table > thead > tr > td,
#learn-press-profile #profile-content table > thead > tr > th,
#learn-press-profile #profile-content table > thead > tr > td,
#learn-press-profile #bm-course-progress-table > table > thead > tr > th {
	background: #e5e5e5 !important;
	color: #222 !important;
	box-shadow: none !important;
	text-align: left !important;
	vertical-align: middle !important;
}

#learn-press-profile .bm-course-progress-table th {
	padding: 12px 10px;
	border-bottom: 1px solid #dde2eb;
	background: #e5e5e5;
	color: #222;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0;
	white-space: nowrap !important;
	word-break: normal !important;
	hyphens: none !important;
	overflow-wrap: normal !important;
	text-align: left;
	text-transform: capitalize;
}

#learn-press-profile .bm-course-progress-table > .table > tbody > tr > td {
	display: table-cell;
	padding: 12px 10px;
	border-bottom: 1px solid #e8ebf0;
	color: #343a46;
	font-size: 13px;
	line-height: 1.4;
	vertical-align: middle;
	word-break: normal;
}

/* Enforce column 1 minimum width (180px) and clean word wrapping across all devices */
#learn-press-profile .bm-course-progress-table th:nth-child(1),
#learn-press-profile .bm-course-progress-table td:nth-child(1),
#learn-press-profile .bm-course-progress-table > .table > tbody > tr > td:first-child {
	min-width: 160px !important;
	max-width: 220px !important;
	width: 25% !important;
	line-height: 1.4 !important;
	white-space: normal !important;
	word-break: break-word !important;
	overflow-wrap: break-word !important;
	padding: 12px 10px;
}

#learn-press-profile .bm-course-progress-table > .table > tbody > tr > td:first-child a {
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #1e293b !important;
}

#learn-press-profile .bm-course-progress-table th:nth-child(2),
#learn-press-profile .bm-course-progress-table td:nth-child(2) {
	min-width: 130px;
	white-space: normal;
}

#learn-press-profile .bm-course-progress-table th:nth-child(3),
#learn-press-profile .bm-course-progress-table td:nth-child(3),
#learn-press-profile .bm-course-progress-table th:nth-child(4),
#learn-press-profile .bm-course-progress-table td:nth-child(4) {
	min-width: 65px;
	text-align: center !important;
	white-space: nowrap;
}

#learn-press-profile .bm-course-progress-table th:nth-child(5),
#learn-press-profile .bm-course-progress-table td:nth-child(5) {
	min-width: 85px;
	text-align: center !important;
	white-space: nowrap;
}

#learn-press-profile .bm-course-progress-table th:nth-child(6),
#learn-press-profile .bm-course-progress-table td:nth-child(6) {
	min-width: 110px;
}

#learn-press-profile .bm-course-progress-table th:nth-child(7),
#learn-press-profile .bm-course-progress-table td:nth-child(7) {
	min-width: 110px;
	text-align: center !important;
	white-space: nowrap;
}

#learn-press-profile .bm-course-progress-table > .table > tbody > tr:last-child > td {
	border-bottom: 0;
}

#learn-press-profile .bm-course-progress-table > .table > tbody > tr > td::before {
	display: none !important;
	content: none !important;
}
	border-bottom: 1px solid #e8ebf0;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
}

#learn-press-profile .bm-course-progress-table > .table > tbody > tr > td:first-child a {
	color: #343a46 !important;
}

.bm-course-scores span {
	display: block;
	white-space: nowrap;
}

.bm-course-scores strong {
	margin-left: 8px;
	color: #14233b;
}

#learn-press-profile .bm-course-progress-table .badge {
	min-height: 24px;
	padding: 4px 10px;
	border: 0;
	border-radius: 999px;
	font-size: 10px;
}

#learn-press-profile .bm-course-progress-table .badge-outline-warning {
	color: #854d0e;
	background: #fef9c3;
}

#learn-press-profile .bm-course-progress-table .badge-outline-success {
        color: #854d0e;
        background: #fef9c3;
}

#learn-press-profile .bm-course-progress-table .badge-upcoming {
	color: #b91c1c;
	background: #fee2e2;
}

#learn-press-profile .bm-course-progress-table .badge-outline-completed {
        color: #15803d;
        background: #d1fadf;
}

#learn-press-profile .bm-course-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-width: 58px;
	min-height: 30px;
	padding: 5px 12px;
	border: 1px solid #405a82;
	border-radius: 0;
	color: #30496e !important;
	font-size: 11px;
	white-space: nowrap;
}

/* Keep interactive controls consistent with LearnPress' rectangular buttons. */
#learn-press-profile button,
#learn-press-profile input[type="button"],
#learn-press-profile input[type="submit"],
#learn-press-profile .button,
#learn-press-profile .lp-button,
#learn-press-profile a.button {
	border-radius: 0 !important;
}

/* Use the same plain check icon for every successful profile notification. */
.learn-press-message.success::before {
	background: transparent !important;
	box-shadow: none !important;
}

#learn-press-profile .bm-course-action__icon {
	width: 15px;
	height: 15px;
	flex: 0 0 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

#learn-press-profile a.bm-course-action--material,
#learn-press-profile a.bm-course-action--material:visited,
#learn-press-profile a.bm-course-action--material:hover,
#learn-press-profile a.bm-course-action--material:focus,
#learn-press-profile a.bm-course-action--material:active {
	border-color: #707070;
	background: #707070;
	color: #fff !important;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
	text-decoration: none !important;
}

#learn-press-profile a.bm-course-action--cert,
#learn-press-profile a.bm-course-action--cert:visited,
#learn-press-profile a.bm-course-action--cert:hover,
#learn-press-profile a.bm-course-action--cert:focus,
#learn-press-profile a.bm-course-action--cert:active {
	border-color: #15803d;
	background: #15803d;
	color: #fff !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
	text-decoration: none !important;
}

#learn-press-profile .bm-course-action--material > span,
#learn-press-profile .bm-course-action--material > svg,
#learn-press-profile .bm-course-action--cert > span,
#learn-press-profile .bm-course-action--cert > svg {
	color: #fff !important;
	stroke: #fff !important;
}

#learn-press-profile .bm-course-action--full {
	width: 100%;
}

.bm-course-actions {
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: stretch;
	width: 100%;
	min-width: 155px;
}

#learn-press-profile .bm-course-action.is-loading {
	opacity: 0.65;
	pointer-events: none;
	cursor: wait;
}

#learn-press-profile .bm-course-action.is-disabled {
	border-color: #cbd2dc;
	background: #eef1f5;
	color: #687386 !important;
	box-shadow: none;
	cursor: not-allowed;
	opacity: 0.85;
}

#learn-press-profile .bm-course-action.is-disabled > span,
#learn-press-profile .bm-course-action.is-disabled > svg {
	color: #687386 !important;
	stroke: #687386 !important;
}

.bm-course-participant-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 190px;
	width: 100%;
}

.bm-course-batch-action {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-rows: auto auto;
	gap: 2px 10px;
	align-items: center;
	width: 100%;
	padding: 8px 9px;
	border: 1px solid #dddddd;
	border-radius: 8px;
	background: #f5f5f5;
}

.bm-course-batch-action__name {
	min-width: 0;
	white-space: normal;
	color: #333333;
	font-size: 11px;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.bm-course-batch-action__count {
	color: #737373;
	font-size: 10px;
	line-height: 1.35;
}

.bm-course-batch-action .bm-course-action {
	grid-column: 2;
	grid-row: 1 / 3;
	min-width: 50px !important;
	padding-inline: 9px !important;
	white-space: nowrap;
}

#learn-press-profile .bm-course-batch-action a.bm-course-action {
	border-color: #707070;
	background: #707070;
	color: #fff !important;
}

#learn-press-profile .bm-course-batch-action a.bm-course-action:is(:hover, :focus-visible, :active) {
	border-color: #707070;
	background: #707070;
	color: #fff !important;
}

.bm-participants-heading__batch {
	display: inline-flex;
	margin-top: 8px;
	padding: 5px 10px;
	border-radius: 999px;
	background: #eef4ff;
	color: #304f7d;
	font-size: 12px;
	line-height: 1.3;
}

.bm-course-unavailable {
	color: #98a2b3;
}

.bm-course-row-batch {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 6px;
	color: #566984;
	font-size: 11px;
	line-height: 1.35;
}

.bm-course-row-batch strong {
	color: #304f7d;
	font-size: inherit;
}

.bm-course-row-batch em {
	align-self: flex-start;
	padding: 2px 7px;
	border-radius: 999px;
	font-size: 9px;
	font-style: normal;
	font-weight: 700;
	text-transform: uppercase;
}

.bm-course-row-batch em.is-active {
	background: #e5f6ec;
	color: #287548;
}

.bm-course-row-batch em.is-history {
	background: #eef1f5;
	color: #66758c;
}

.bm-course-row-batch small {
	color: #7c899c;
	font-size: 10px;
}

.bm-profile-settings-heading {
	margin: 0 0 30px;
}

#learn-press-profile .bm-profile-settings-heading h1 {
	margin: 0 0 8px;
	color: #14233b;
	font-size: clamp(28px, 3vw, 34px);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.15;
}

.bm-profile-settings-heading p {
	margin: 0;
	color: #5e5a55;
	font-family: Georgia, serif;
	font-size: 15px;
}

.bm-profile-settings-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 260px;
	align-items: start;
	gap: 28px;
}

.bm-profile-settings-card,
.bm-profile-avatar-card {
	box-sizing: border-box;
	border: 1px solid #e7eaf0;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(18, 33, 60, 0.06);
}

.bm-profile-settings-card {
	padding: 30px 34px;
}

#learn-press-profile .bm-profile-settings-card h2 {
	margin: 0 0 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid #edf0f4;
	color: #172033;
	font-size: 22px;
}

#learn-press-profile .bm-profile-settings-card .form-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

#learn-press-profile .bm-profile-settings-card .form-field {
	float: none;
	width: 100% !important;
	max-width: none !important;
	margin: 0;
}

#learn-press-profile .bm-profile-settings-card form,
#learn-press-profile .bm-profile-settings-card .form-field-input {
	width: 100% !important;
	max-width: none !important;
}

#learn-press-profile .bm-profile-settings-card .learn-press-form {
	display: block !important;
	float: none !important;
	clear: both;
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
}

#learn-press-profile .bm-profile-settings-card .learn-press-form .form-fields {
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
}

#learn-press-profile .bm-profile-settings-card .form-field__bio,
#learn-press-profile .bm-profile-settings-card .form-field__clear {
	grid-column: 1 / -1;
}

#learn-press-profile .bm-profile-settings-card label {
	display: block;
	margin-bottom: 7px;
	color: #4f4a44;
	font-size: 12px;
	font-weight: 700;
}

#learn-press-profile .bm-profile-settings-card input,
#learn-press-profile .bm-profile-settings-card textarea {
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
	padding: 10px 13px;
}

#learn-press-profile .bm-profile-settings-card textarea {
	min-height: 120px;
}

#learn-press-profile .bm-profile-settings-card button[type="submit"] {
	display: block;
	margin: 24px 0 0 auto;
	padding: 11px 24px;
	background: #80621f;
}

.bm-profile-avatar-card {
	padding: 26px 22px;
	text-align: center;
}

.bm-profile-avatar-preview img {
	display: block;
	width: 118px;
	height: 118px;
	margin: 0 auto 14px;
	border: 4px solid #fff;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 5px 16px rgba(18, 33, 60, 0.18);
}

.bm-profile-avatar-card > strong,
.bm-profile-avatar-card > span {
	display: block;
}

.bm-profile-avatar-card > strong {
	color: #172033;
	font-size: 18px;
}

.bm-profile-avatar-card > span {
	margin-top: 3px;
	color: #667085;
	font-family: Georgia, serif;
	font-size: 13px;
}

.bm-profile-avatar-editor {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid #edf0f4;
}

#learn-press-profile .bm-profile-avatar-editor h3 {
	margin: 0 0 5px;
	font-size: 14px;
}

.bm-profile-avatar-editor p {
	margin: 0 0 12px;
	color: #667085;
	font-size: 11px;
}

.bm-profile-avatar-form label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 14px;
	border: 1px solid #405a82;
	border-radius: 7px;
	color: #30496e;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.bm-profile-avatar-form input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

#learn-press-profile .bm-profile-avatar-form button {
	display: block;
	width: 100%;
	margin-top: 10px;
	padding: 10px 12px;
	background: #999;
}

.bm-profile-avatar-notice {
	margin: 0 0 12px;
	padding: 8px 10px;
	border-radius: 6px;
	font-size: 11px;
}

.bm-profile-avatar-notice.is-success {
	color: #147a43;
	background: #eaf8f0;
}

.bm-profile-avatar-notice.is-error {
	color: #9b2c2c;
	background: #fff0f0;
}

#learn-press-profile .bm-course-row-hidden {
	display: none !important;
}

.bm-course-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 18px;
	color: #6f6f6f;
	font-size: 12px;
}

.bm-course-pagination[hidden] {
	display: none;
}

.bm-course-pagination__controls {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px;
	border: 1px solid #e7e7e7;
	border-radius: 12px;
	background: #fff;
}

.bm-course-pagination__pages {
	display: flex;
	align-items: center;
	gap: 4px;
}

#learn-press-profile .bm-course-pagination a,
#learn-press-profile .bm-course-pagination__page,
#learn-press-profile .bm-course-pagination__disabled {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	min-height: 32px;
	padding: 0 6px;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: #3f3f3f;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

#learn-press-profile .bm-course-pagination a:is(:hover, :focus-visible, :active) {
	background: #f4f4f4;
	color: #171717;
}

#learn-press-profile .bm-course-pagination__page.is-active {
	background: #404040;
	color: #fff;
}

/* Prev/Next arrow buttons: slightly wider */
#learn-press-profile .bm-course-pagination__prev,
#learn-press-profile .bm-course-pagination__next {
	font-size: 18px;
	font-weight: 400;
}

/* Progress badge */
.bm-prog-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 54px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.bm-prog-badge--high {
	background: #d1fadf;
	color: #15803d;
}

.bm-prog-badge--mid {
	background: #fef9c3;
	color: #854d0e;
}

.bm-prog-badge--low {
	background: #fee2e2;
	color: #b91c1c;
}

.bm-prog-badge--zero {
	background: #e5e5e5;
	color: #404040;
}

#learn-press-profile .bm-course-pagination__disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

@media (max-width: 980px) {
	.bm-course-heading p {
		white-space: normal;
	}

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

	.bm-profile-avatar-card {
		grid-row: 1;
	}

	#learn-press-profile > .lp-content-area {
		grid-template-columns: 1fr;
		grid-template-areas: "sidebar" "content";
	}

	#learn-press-profile #profile-sidebar {
		border-right: 0;
		border-bottom: 1px solid #e4e4e4;
	}

	#learn-press-profile #profile-content {
		grid-column: 1 !important;
		grid-row: 2 !important;
	}

	#learn-press-profile #profile-nav .lp-profile-nav-tabs {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.bm-course-progress-section {
		padding: 20px 16px;
		border-radius: 12px;
	}

	#learn-press-profile .bm-course-heading h1 {
		font-size: 24px !important;
		margin-bottom: 6px;
		line-height: 1.25;
	}

	.bm-course-heading p {
		font-size: 13px;
		line-height: 1.5;
		color: #64748b;
		white-space: normal;
	}

	.bm-course-toolbar {
		margin: 16px 0 20px;
	}

	.bm-course-search-form {
		display: flex;
		flex-wrap: nowrap;
		gap: 8px;
		align-items: center;
		width: 100%;
	}

	.bm-course-search-input {
		flex: 1 1 auto;
		min-width: 0;
		height: 42px;
		padding: 0 14px;
		border-radius: 8px !important;
		border: 1px solid #cbd5e1 !important;
		font-size: 14px;
	}

	#learn-press-profile .bm-course-search-btn {
		height: 42px;
		padding: 0 18px;
		border-radius: 8px !important;
		font-size: 14px;
		font-weight: 600;
		white-space: nowrap;
		flex-shrink: 0;
	}

	.bm-course-search-clear {
		height: 42px;
		padding: 0 12px;
		border-radius: 8px !important;
		font-size: 13px;
		flex-shrink: 0;
	}

	/* Responsive table horizontal scrolling without squishing or breaking header words */
	#learn-press-profile .bm-course-progress-table,
	#learn-press-profile .table-responsive {
		display: block;
		width: 100%;
		max-width: 100%;
		overflow-x: auto !important;
		-webkit-overflow-scrolling: touch;
		margin-bottom: 1rem;
	}

	#learn-press-profile .bm-course-progress-table > .table > thead > tr > th {
		white-space: nowrap !important;
		word-break: normal !important;
		hyphens: none !important;
		overflow-wrap: normal !important;
		padding: 12px 14px;
		font-size: 13px;
		font-weight: 700;
		background: #f8fafc;
	}

	#learn-press-profile .bm-course-progress-table > .table > tbody > tr > td {
		padding: 12px 14px;
		font-size: 13px;
		vertical-align: middle;
	}

	#learn-press-profile .bm-course-progress-table > .table > tbody > tr > td:first-child,
	#learn-press-profile .bm-course-progress-table > .table > thead > tr > th:first-child {
		min-width: 210px;
		padding: 12px 14px;
	}

	#learn-press-profile .bm-course-progress-table > .table > tbody > tr > td:nth-child(2),
	#learn-press-profile .bm-course-progress-table > .table > thead > tr > th:nth-child(2) {
		min-width: 140px;
	}

	#learn-press-profile .bm-course-progress-table > .table > tbody > tr > td:nth-child(3),
	#learn-press-profile .bm-course-progress-table > .table > thead > tr > th:nth-child(3),
	#learn-press-profile .bm-course-progress-table > .table > tbody > tr > td:nth-child(4),
	#learn-press-profile .bm-course-progress-table > .table > thead > tr > th:nth-child(4) {
		min-width: 90px;
		text-align: center;
	}

	#learn-press-profile .bm-course-progress-table > .table > tbody > tr > td:nth-child(5),
	#learn-press-profile .bm-course-progress-table > .table > thead > tr > th:nth-child(5) {
		min-width: 110px;
		text-align: center;
	}

	#learn-press-profile .bm-course-progress-table > .table > thead > tr > th:last-child,
	#learn-press-profile .bm-course-progress-table > .table > tbody > tr > td:last-child {
		min-width: 120px;
	}

	#learn-press-profile .bm-course-participant-actions {
		min-width: 210px;
	}

	#learn-press-profile .bm-course-batch-action {
		box-sizing: border-box;
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto;
		gap: 6px;
	}

	#learn-press-profile .bm-course-batch-action__name,
	#learn-press-profile .bm-course-batch-action__count {
		min-width: 0;
		white-space: normal;
		overflow-wrap: anywhere;
	}

	#learn-press-profile .bm-course-batch-action .bm-course-action {
		grid-column: 1;
		grid-row: auto;
		justify-self: start;
	}

	#learn-press-profile .bm-course-progress-table .bm-course-action {
		box-sizing: border-box;
		min-height: 44px;
	}

	.bm-profile-biography {
		padding: 22px 18px 0;
	}

	.bm-profile-biography__layout {
		grid-template-columns: 1fr;
		gap: 14px;
		text-align: center;
	}

	.bm-profile-biography__image {
		margin: 0 auto;
	}

	.bm-profile-biography__identity {
		justify-content: center;
		flex-wrap: wrap;
	}

	.bm-profile-biography__text {
		text-align: justify;
	}

	.bm-profile-settings-card {
		padding: 24px 18px;
	}

	#learn-press-profile .bm-profile-settings-card .form-fields {
		grid-template-columns: 1fr;
	}

	#learn-press-profile .bm-profile-settings-card .form-field__bio,
	#learn-press-profile .bm-profile-settings-card .form-field__clear {
		grid-column: auto;
	}

	.bm-course-pagination {
		align-items: flex-start;
		flex-direction: column;
	}

	.bm-course-pagination__controls {
		width: 100%;
		flex-wrap: wrap;
	}

	#learn-press-profile #profile-nav .lp-profile-nav-tabs {
		grid-template-columns: 1fr 1fr;
	}

	#learn-press-profile #profile-content {
		padding: 24px 14px 32px;
	}
}

/* Let the complete LMS profile dashboard use the available viewport width.
 * Do not depend on a body class: LearnPress does not add lp-profile-page on
 * every custom profile endpoint (for example instructor participants).
 */
#learn-press-profile {
	position: relative;
	left: 50%;
	box-sizing: border-box;
	width: min(1400px, calc(100vw - 48px)) !important;
	max-width: 1400px !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
	transform: translateX(-50%);
}

/* Keep the Home / Profile trail aligned with the dashboard edges. */
body:has(#learn-press-profile) .breadcrumbs-wrapper > .container,
body:has(#learn-press-profile) .breadcrumbs-wrapper .container,
body:has(#learn-press-profile) footer#colophon .footer > .container,
body:has(#learn-press-profile) footer#colophon .copyright-area > .container {
	width: min(1400px, calc(100vw - 48px));
	max-width: 1400px;
}

@media (max-width: 600px) {
	#learn-press-profile {
		width: calc(100vw - 20px) !important;
		max-width: none !important;
	}

	body:has(#learn-press-profile) .breadcrumbs-wrapper > .container,
	body:has(#learn-press-profile) .breadcrumbs-wrapper .container,
	body:has(#learn-press-profile) footer#colophon .footer > .container,
	body:has(#learn-press-profile) footer#colophon .copyright-area > .container {
		width: calc(100vw - 20px);
	}
}

/* ─── Search Toolbar ─────────────────────────────────── */
.bm-course-toolbar {
	margin-bottom: 16px;
}

.bm-course-search-form {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.bm-course-search-input {
	flex: 1 1 240px;
	max-width: 420px;
	height: 38px;
	padding: 0 14px;
	border: 1px solid #d0d8e8;
	border-radius: 8px;
	background: #fff;
	color: #263b5a;
	font-size: 13px;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.bm-course-search-input:focus {
	border-color: #c9974f;
	box-shadow: 0 0 0 3px rgba(201, 151, 79, 0.15);
}

/* Keep form controls inside narrow dashboard panels, including iOS focus zoom. */
@media (max-width: 767px) {
	#learn-press-profile .bm-course-search-input,
	#learn-press-profile .bm-student-score-chart__select,
	#learn-press-profile .bm-profile-settings-card input,
	#learn-press-profile .bm-profile-settings-card select,
	#learn-press-profile .bm-profile-settings-card textarea,
	#learn-press-profile .bm-password-form input {
		box-sizing: border-box;
		min-width: 0;
		max-width: 100%;
		font-size: 16px;
	}
	#learn-press-profile .bm-course-search-btn { min-height: 44px; }
}

#learn-press-profile .bm-course-progress-section,
#learn-press-profile .bm-student-score-chart,
#learn-press-profile .bm-student-score-chart__header > *,
#learn-press-profile .bm-profile-biography__text {
	min-width: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
}

#learn-press-profile .bm-course-search-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 38px;
	padding: 0 20px;
	border: 1px solid #a2a2a2 !important;
	border-radius: 0;
	background: #a2a2a2 !important;
	color: #fff !important;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}

#learn-press-profile .bm-course-search-btn:hover,
#learn-press-profile .bm-course-search-btn:focus-visible {
	background: #888 !important;
	border-color: #888 !important;
	box-shadow: none !important;
	outline: none !important;
}

/* Orange/gold hover effect for grey action buttons (excluding download cert & profile summary) */
#learn-press-profile .bm-course-action:hover,
#learn-press-profile .bm-course-action:focus-visible,
#learn-press-profile .bm-course-action--material:hover,
#learn-press-profile .bm-course-action--material:focus-visible,
#learn-press-profile td a.bm-course-action:hover,
#learn-press-profile td a.bm-course-action--material:hover,
#learn-press-profile .bm-certification-table td:last-child a:not([href*="bm_download"]):hover,
#learn-press-profile .bm-certification-table td:last-child a:not([href*="bm_download"]):focus-visible,
.bm-chapter-modal__button--primary:hover,
.bm-chapter-modal__button--primary:focus-visible,
.bm-lp-finish-confirm .bm-lp-finish-submit:hover,
.bm-lp-finish-confirm .bm-lp-finish-submit:focus-visible {
	background-color: #d49b28 !important;
	border-color: #d49b28 !important;
	color: #ffffff !important;
	opacity: 1 !important;
}

.bm-course-search-clear {
	display: inline-flex;
	align-items: center;
	height: 38px;
	padding: 0 14px;
	border: 1px solid #e0e6ef;
	border-radius: 0;
	background: #f4f6fb;
	color: #566984;
	font-size: 13px;
	text-decoration: none;
	transition: background 0.2s;
}

.bm-course-search-clear:hover {
	background: #e8ecf5;
	color: #263b5a;
}

/* ── Per-page selector in pagination bar ─────────────────────────────── */
.bm-course-pagination__perpage {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #6f6f6f;
	font-size: 12px;
}

.bm-course-pagination__perpage-label {
	white-space: nowrap;
}

.bm-course-pagination__perpage-select {
	min-height: 32px;
	padding: 4px 28px 4px 10px;
	border: 1px solid #e0e0e0 !important;
	border-radius: 8px !important;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 9px center;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	color: #3f3f3f;
	font-size: 12px !important;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bm-course-pagination__perpage-select:focus {
	border-color: #707070 !important;
	box-shadow: 0 0 0 2px rgba(112, 112, 112, 0.15);
	outline: none;
}

/* Force white text on all .bm-course-action--material anchors regardless of parent link styles */
#learn-press-profile .bm-course-action.bm-course-action--material,
#learn-press-profile .bm-course-action.bm-course-action--material:link,
#learn-press-profile .bm-course-action.bm-course-action--material:visited,
#learn-press-profile .bm-course-action.bm-course-action--material:hover,
#learn-press-profile .bm-course-action.bm-course-action--material:focus,
#learn-press-profile .bm-course-action.bm-course-action--material:active,
#learn-press-profile td a.bm-course-action--material,
#learn-press-profile td a.bm-course-action--material:link,
#learn-press-profile td a.bm-course-action--material:visited,
#learn-press-profile td a.bm-course-action--material:hover,
#learn-press-profile td a.bm-course-action--material:focus,
#learn-press-profile td a.bm-course-action--material:active {
	color: #fff !important;
	text-decoration: none !important;
}

/* ── Per-page select: lebih visible ──────────────────────────────────── */
.bm-course-pagination__perpage-select {
	min-width: 80px !important;
	padding: 6px 30px 6px 12px !important;
	border: 1.5px solid #b0b0b0 !important;
	border-radius: 8px !important;
	background-color: #fff !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23555' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 10px center !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	color: inherit !important;
	font-family: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	line-height: 1.4 !important;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
	cursor: pointer !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.bm-course-pagination__perpage-select:hover {
	border-color: #707070 !important;
}

.bm-course-pagination__perpage-select:focus {
	border-color: #707070 !important;
	box-shadow: 0 0 0 3px rgba(112, 112, 112, 0.18) !important;
	outline: none !important;
}

.bm-course-pagination__perpage-label {
	color: inherit !important;
	font-family: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
}

/* Match the compact reference layout on every profile/course pagination bar. */
#learn-press-profile .bm-course-pagination {
	display: grid;
	grid-template-columns: auto auto minmax(16px, 1fr) auto;
	align-items: center;
	column-gap: 8px;
	padding: 8px 0;
	border-top: 1px solid #ececec;
	border-bottom: 1px solid #ececec;
}

#learn-press-profile .bm-course-pagination__summary {
	grid-column: 1;
	white-space: nowrap;
}

#learn-press-profile .bm-course-pagination__perpage {
	grid-column: 2;
	justify-self: start;
	gap: 6px;
}

#learn-press-profile .bm-course-pagination__perpage-label {
	display: none;
}

#learn-press-profile .bm-course-pagination__perpage-select {
	min-width: 64px !important;
	padding: 5px 26px 5px 9px !important;
	border: 1px solid #d9dee8 !important;
	border-radius: 4px !important;
	box-shadow: none !important;
}

#learn-press-profile .bm-course-pagination__controls {
	grid-column: 4;
	justify-self: end;
	padding: 3px;
	border: 1px solid #d9dee8;
	border-radius: 4px;
}

#learn-press-profile .bm-course-pagination__prev,
#learn-press-profile .bm-course-pagination__next {
	min-width: 38px !important;
	min-height: 38px !important;
	font-size: 20px !important;
}

#learn-press-profile .bm-course-pagination__page,
#learn-press-profile .bm-course-pagination__disabled {
	min-width: 38px !important;
	min-height: 38px !important;
	font-size: 15px !important;
}

#learn-press-profile .bm-course-pagination a,
#learn-press-profile .bm-course-pagination__page,
#learn-press-profile .bm-course-pagination__disabled {
	min-width: 30px;
	min-height: 30px;
	border-radius: 3px;
}

@media (max-width: 600px) {
	#learn-press-profile .bm-course-pagination {
		grid-template-columns: 1fr auto;
		row-gap: 8px;
	}

	#learn-press-profile .bm-course-pagination__summary {
		grid-column: 1 / -1;
	}

	#learn-press-profile .bm-course-pagination__perpage {
		grid-column: 1 / -1;
		justify-self: center;
		order: 3;
	}

	#learn-press-profile .bm-course-pagination__controls {
		grid-column: 1 / -1;
		justify-self: center;
		width: fit-content;
		max-width: 100%;
		justify-content: center;
		flex-wrap: nowrap;
		gap: 2px;
		order: 2;
	}

	#learn-press-profile .bm-course-pagination__summary {
		order: 1;
	}

	#learn-press-profile .bm-course-pagination__prev,
	#learn-press-profile .bm-course-pagination__next,
	#learn-press-profile .bm-course-pagination__page,
	#learn-press-profile .bm-course-pagination__disabled {
		min-width: 32px !important;
		min-height: 32px !important;
		padding: 0 4px !important;
		font-size: 14px !important;
	}
}

@media (max-width: 380px) {
	#learn-press-profile .bm-course-pagination {
		padding-right: 2px;
		padding-left: 2px;
	}

	#learn-press-profile .bm-course-pagination__summary {
		font-size: 11px;
	}

	#learn-press-profile .bm-course-pagination__perpage-select {
		min-width: 58px !important;
		min-height: 34px;
		padding-right: 22px !important;
	}

	#learn-press-profile .bm-course-pagination__prev,
	#learn-press-profile .bm-course-pagination__next,
	#learn-press-profile .bm-course-pagination__page,
	#learn-press-profile .bm-course-pagination__disabled {
		min-width: 28px !important;
		min-height: 30px !important;
		padding: 0 2px !important;
		font-size: 13px !important;
	}
}
