/* ==========================================================================
   M4 LMS — Front-end Portal Styles
   Theme-agnostic: works with Elementor, Beaver Builder, or any theme.
   All classes are prefixed with .lms- to avoid conflicts.
   ========================================================================== */

:root {
  --lms-primary:       #1d4ed8;
  --lms-primary-dark:  #1e40af;
  --lms-primary-light: #93c5fd;
  --lms-hero-start:    #1e3a8a;
  --lms-hero-mid:      #1d4ed8;
  --lms-hero-end:      #3b82f6;
  --lms-success:       #16a34a;
  --lms-success-light: #dcfce7;
  --lms-warning:       #f59e0b;
  --lms-warning-bg:    #fffbeb;
  --lms-warning-border:#fde68a;
  --lms-nav-bg:        #1e3a8a;
  --lms-notif-high:    #dc2626;
  --lms-notif-medium:  #f59e0b;
  --lms-notif-low:     #3b82f6;
  --lms-font-body:     inherit;
  --lms-font-heading:  inherit;
  --lms-font-size-base:16px;
  --lms-radius-card:   10px;
  --lms-radius-btn:    6px;
}

/* Apply custom font + size to all portal elements */
.lms-portal, .lms-nav, .lms-notif-banner, .lms-hero, .lms-notif-dropdown {
  font-family: var(--lms-font-body);
  font-size:   var(--lms-font-size-base);
}
.lms-portal h2, .lms-portal h3, .lms-portal h4,
.lms-hero__title, .lms-section__title {
  font-family: var(--lms-font-heading, var(--lms-font-body));
}
/* Apply radius vars */
.lms-stat-card, .lms-course-card, .lms-team-card,
.lms-notif-card, .lms-notif-compose, .lms-notif-banner__body,
.lms-hero, .lms-section { border-radius: var(--lms-radius-card); }
.lms-btn { border-radius: var(--lms-radius-btn); }
/* Apply priority colours via CSS vars */
.lms-priority--high   { color: var(--lms-notif-high);   border-color: var(--lms-notif-high); }
.lms-priority--medium { color: var(--lms-notif-medium); border-color: var(--lms-notif-medium); }
.lms-priority--low    { color: var(--lms-notif-low);    border-color: var(--lms-notif-low); }
.lms-notif-banner__item--high   .lms-notif-banner__accent { background: var(--lms-notif-high); }
.lms-notif-banner__item--medium .lms-notif-banner__accent { background: var(--lms-notif-medium); }
.lms-notif-banner__item--low    .lms-notif-banner__accent { background: var(--lms-notif-low); }
.lms-notif-card--high   { border-left-color: var(--lms-notif-high); }
.lms-notif-card--medium { border-left-color: var(--lms-notif-medium); }
.lms-notif-card--low    { border-left-color: var(--lms-notif-low); }

/* ── Reset helpers ──────────────────────────────────────────────────────── */
.lms-portal *,
.lms-portal *::before,
.lms-portal *::after {
	box-sizing: border-box;
}

/* ── Wrapper ────────────────────────────────────────────────────────────── */
.lms-portal {
	font-family: inherit;
	color: #1a1a2e;
	line-height: 1.55;
}

/* ── Resume Training Hero ───────────────────────────────────────────────── */
.lms-hero {
	background: linear-gradient(135deg, var(--lms-hero-start) 0%, var(--lms-primary) 55%, var(--lms-hero-end) 100%);
	border-radius: 14px;
	padding: 2.5rem 2.25rem;
	margin-bottom: 2rem;
	color: #fff;
	position: relative;
	overflow: hidden;
}

/* Decorative circles */
.lms-hero::before,
.lms-hero::after {
	content: '';
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.lms-hero::before {
	width: 280px;
	height: 280px;
	background: rgba(255,255,255,.06);
	top: -80px;
	right: -60px;
}

.lms-hero::after {
	width: 160px;
	height: 160px;
	background: rgba(255,255,255,.04);
	bottom: -50px;
	right: 120px;
}

.lms-hero--complete {
	background: linear-gradient(135deg, #065f46 0%, #059669 60%, #34d399 100%);
}

.lms-hero__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1.5rem;
	position: relative;
	z-index: 1;
}

.lms-hero__text {
	flex: 1;
	min-width: 0;
}

.lms-hero__greeting {
	font-size: .85rem;
	color: rgba(255,255,255,.75);
	margin: 0 0 .6rem;
	display: flex;
	align-items: center;
	gap: .6rem;
	flex-wrap: wrap;
}

.lms-badge--hero {
	background: rgba(255,255,255,.15);
	color: #fff;
	border: 1px solid rgba(255,255,255,.25);
}

.lms-hero__title {
	font-size: 2rem;
	font-weight: 800;
	margin: 0 0 .35rem;
	color: #fff;
	line-height: 1.15;
}

.lms-hero__course {
	font-size: .95rem;
	color: rgba(255,255,255,.85);
	margin: 0 0 .35rem;
	font-weight: 500;
}

.lms-hero__position {
	font-size: .82rem;
	color: rgba(255,255,255,.65);
	margin: 0 0 1.1rem;
}

.lms-hero__progress {
	display: flex;
	align-items: center;
	gap: .75rem;
	max-width: 340px;
}

.lms-progress-bar--hero {
	background: rgba(255,255,255,.25);
	height: 10px;
}

.lms-progress-bar--hero .lms-progress-bar__fill {
	background: #fff;
}

.lms-hero__pct {
	font-size: .82rem;
	font-weight: 700;
	color: rgba(255,255,255,.9);
	white-space: nowrap;
}

.lms-hero__cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .6rem;
	flex-shrink: 0;
}

.lms-hero__btn {
	display: inline-block;
	background: #fff;
	color: var(--lms-primary);
	font-weight: 700;
	font-size: 1.05rem;
	padding: .85rem 2rem;
	border-radius: 10px;
	text-decoration: none;
	white-space: nowrap;
	transition: transform .15s, box-shadow .15s;
	box-shadow: 0 4px 14px rgba(0,0,0,.15);
}

.lms-hero__btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0,0,0,.2);
	color: var(--lms-primary-dark);
}

.lms-hero__btn--ghost {
	background: rgba(255,255,255,.15);
	color: #fff;
	border: 1px solid rgba(255,255,255,.35);
	box-shadow: none;
}

.lms-hero__btn--ghost:hover {
	background: rgba(255,255,255,.25);
	color: #fff;
	box-shadow: none;
}

.lms-hero__chapters {
	font-size: .78rem;
	color: rgba(255,255,255,.6);
	text-align: center;
}

@media (max-width: 640px) {
	.lms-hero {
		padding: 1.75rem 1.25rem;
	}

	.lms-hero__title {
		font-size: 1.5rem;
	}

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

	.lms-hero__cta {
		width: 100%;
	}

	.lms-hero__btn {
		width: 100%;
		text-align: center;
	}
}

/* ── Navigation ─────────────────────────────────────────────────────────── */
.lms-nav {
	background: #fff;
	border-bottom: 2px solid #e5e7eb;
	margin-bottom: 2rem;
}

.lms-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.lms-nav__link {
	display: block;
	padding: .75rem 1.25rem;
	font-size: .9rem;
	font-weight: 500;
	color: #374151;
	text-decoration: none;
	border-bottom: 3px solid transparent;
	transition: color .15s, border-color .15s;
}

.lms-nav__link:hover {
	color: var(--lms-primary);
	border-bottom-color: var(--lms-primary-light);
}

.lms-nav__item--active .lms-nav__link {
	color: var(--lms-primary);
	border-bottom-color: var(--lms-primary);
	font-weight: 600;
}

.lms-nav__item--logout {
	margin-left: 0;
}

.lms-nav__link--logout {
	color: #9ca3af;
}

.lms-nav__link--logout:hover {
	color: #ef4444;
	border-bottom-color: transparent;
}

/* ── Notices ────────────────────────────────────────────────────────────── */
.lms-notice {
	padding: .85rem 1.1rem;
	border-radius: 6px;
	margin-bottom: 1.25rem;
	font-size: .9rem;
}

.lms-notice--error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.lms-notice--success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
}

/* ── Page header ────────────────────────────────────────────────────────── */
.lms-portal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.75rem;
}

.lms-portal-header__title {
	margin: 0 0 .3rem;
	font-size: 1.5rem;
	font-weight: 700;
	color: #111827;
}

.lms-portal-page-header {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .75rem;
	margin-bottom: 1.5rem;
}

.lms-portal-page-header h2 {
	margin: 0;
	font-size: 1.4rem;
	font-weight: 700;
	color: #111827;
	flex: 1;
}

/* ── Back link ──────────────────────────────────────────────────────────── */
.lms-back {
	font-size: .85rem;
	color: #6b7280;
	text-decoration: none;
	white-space: nowrap;
}

.lms-back:hover {
	color: var(--lms-primary);
}

/* ── Stat cards row ─────────────────────────────────────────────────────── */
.lms-stat-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.75rem;
}

.lms-stat-row--wrap .lms-stat-card {
	flex: 1 1 140px;
}

.lms-board-filters {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1.25rem;
}

.lms-board-country-filter {
	margin-left: auto;
}

.lms-select--sm {
	padding: .35rem .65rem;
	font-size: .85rem;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	color: #374151;
	min-width: 160px;
}

.lms-stat-card {
	display: block;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 1rem 1.25rem;
	min-width: 120px;
	text-decoration: none;
	color: inherit;
	transition: border-color .15s, box-shadow .15s;
}

a.lms-stat-card:hover {
	border-color: var(--lms-primary-light);
	box-shadow: 0 2px 8px rgba(29,78,216,.08);
}

.lms-stat-card__value {
	font-size: 1.6rem;
	font-weight: 700;
	color: #111827;
	line-height: 1.2;
}

.lms-stat-card__label {
	font-size: .78rem;
	color: #6b7280;
	margin-top: .2rem;
}

/* ── Summary cards (reports) ────────────────────────────────────────────── */
.lms-summary-cards {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin-bottom: .5rem;
}

.lms-summary-card {
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: .6rem 1rem;
	min-width: 100px;
}

.lms-summary-card__value {
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1.2;
}

.lms-summary-card__label {
	font-size: .75rem;
	color: #6b7280;
	margin-top: .15rem;
}

/* ── Teams grid ─────────────────────────────────────────────────────────── */
.lms-teams-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
}

.lms-team-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: .75rem;
	transition: box-shadow .15s;
}

.lms-team-card:hover {
	box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

.lms-team-card__name {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
}

.lms-team-card__name a {
	color: #111827;
	text-decoration: none;
}

.lms-team-card__name a:hover {
	color: var(--lms-primary);
}

.lms-team-card__meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: .3rem;
	font-size: .85rem;
	color: #4b5563;
	flex: 1;
}

/* ── Tables ─────────────────────────────────────────────────────────────── */
.lms-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.lms-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .88rem;
}

.lms-table th {
	background: #f9fafb;
	color: #374151;
	font-weight: 600;
	text-align: left;
	padding: .65rem .85rem;
	border-bottom: 2px solid #e5e7eb;
	white-space: nowrap;
}

.lms-table td {
	padding: .65rem .85rem;
	border-bottom: 1px solid #f3f4f6;
	vertical-align: middle;
}

.lms-table tbody tr:hover td {
	background: #fafafa;
}

.lms-table tbody tr:last-child td {
	border-bottom: 2px solid #e5e7eb;
}

/* ── Detail meta strip ──────────────────────────────────────────────────── */
.lms-detail-meta {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 2rem;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 1rem 1.25rem;
	font-size: .88rem;
	margin-bottom: 1.5rem;
}

.lms-detail-meta__item {
	color: #374151;
}

.lms-detail-meta__item a {
	color: var(--lms-primary);
	text-decoration: none;
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.lms-section__title {
	font-size: 1.05rem;
	font-weight: 600;
	color: #111827;
	margin: 0 0 .75rem;
	padding-bottom: .4rem;
	border-bottom: 1px solid #e5e7eb;
}

/* ── Tab nav (reports) ──────────────────────────────────────────────────── */
.lms-tab-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	border-bottom: 2px solid #e5e7eb;
	margin-bottom: 1.5rem;
}

.lms-tab-nav__link {
	display: block;
	padding: .65rem 1.1rem;
	font-size: .9rem;
	font-weight: 500;
	color: #6b7280;
	text-decoration: none;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	transition: color .15s, border-color .15s;
}

.lms-tab-nav__link:hover {
	color: var(--lms-primary);
}

.lms-tab-nav__link--active {
	color: var(--lms-primary);
	border-bottom-color: var(--lms-primary);
	font-weight: 600;
}

/* ── Filter form ────────────────────────────────────────────────────────── */
.lms-filter-form {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .75rem;
	margin-bottom: 1.5rem;
}

.lms-filter-form select {
	min-width: 220px;
	padding: .45rem .65rem;
	border: 1px solid #d1d5db;
	border-radius: 5px;
	font-size: .9rem;
	color: #374151;
	background: #fff;
}

.lms-filter-form label {
	font-size: .9rem;
	color: #374151;
}

/* ── Badges ─────────────────────────────────────────────────────────────── */
.lms-badge {
	display: inline-block;
	padding: .2em .65em;
	border-radius: 20px;
	font-size: .75rem;
	font-weight: 600;
	line-height: 1.4;
}

.lms-badge--role {
	background: #ede9fe;
	color: #5b21b6;
}

.lms-badge--upcoming {
	background: #fef9c3;
	color: #713f12;
}

.lms-badge--active {
	background: var(--lms-success-light);
	color: #166534;
}

.lms-badge--completed {
	background: #dbeafe;
	color: var(--lms-primary-dark);
}

.lms-badge--archived {
	background: #f3f4f6;
	color: #6b7280;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.lms-btn {
	display: inline-block;
	padding: .5rem 1rem;
	border-radius: 6px;
	font-size: .88rem;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	border: none;
	transition: background .15s, box-shadow .15s;
	line-height: 1.4;
}

.lms-btn--primary {
	background: var(--lms-primary);
	color: #fff;
}

.lms-btn--primary:hover {
	background: var(--lms-primary-dark);
	color: #fff;
}

.lms-btn--secondary {
	background: #f3f4f6;
	color: #374151;
	border: 1px solid #d1d5db;
}

.lms-btn--secondary:hover {
	background: #e5e7eb;
	color: #111827;
}

.lms-btn--small {
	padding: .35rem .75rem;
	font-size: .8rem;
	background: #f3f4f6;
	color: #374151;
	border: 1px solid #d1d5db;
}

.lms-btn--small:hover {
	background: #e5e7eb;
	color: #111827;
}

.lms-btn--sm {
	padding: .25rem .6rem;
	font-size: .75rem;
}

.lms-btn--danger {
	background: #fee2e2;
	color: #b91c1c;
	border: 1px solid #fca5a5;
}

.lms-btn--danger:hover {
	background: #fecaca;
	color: #991b1b;
}

.lms-btn--danger:disabled {
	opacity: .5;
	cursor: not-allowed;
}

/* ── Course cards (Continue Learning) ──────────────────────────────────── */
.lms-courses-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1.25rem;
}

.lms-course-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: .75rem;
	transition: box-shadow .15s;
}

.lms-course-card:hover {
	box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

.lms-course-card--in_progress {
	border-left: 4px solid var(--lms-primary);
}

.lms-course-card--completed {
	border-left: 4px solid var(--lms-success);
	background: #f0fdf4;
}

.lms-course-card--not_started {
	border-left: 4px solid #e5e7eb;
	background: #fafafa;
}

.lms-course-card__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: .5rem;
}

.lms-course-card__title {
	margin: 0;
	font-size: .95rem;
	font-weight: 600;
	color: #111827;
	line-height: 1.3;
}

.lms-course-card__progress {
	display: flex;
	align-items: center;
	gap: .6rem;
}

.lms-course-card__meta {
	display: flex;
	flex-direction: column;
	gap: .2rem;
	flex: 1;
}

/* ── Progress bar (standalone) ──────────────────────────────────────────── */
.lms-progress-bar {
	flex: 1;
	height: 8px;
	background: #e5e7eb;
	border-radius: 4px;
	overflow: hidden;
	min-width: 80px;
}

.lms-progress-bar__fill {
	height: 100%;
	border-radius: 4px;
	background: var(--lms-primary);
	transition: width .4s ease;
}

.lms-course-card--completed .lms-progress-bar__fill {
	background: var(--lms-success);
}

.lms-progress-bar__label {
	font-size: .8rem;
	font-weight: 600;
	color: #374151;
	white-space: nowrap;
}

/* Coach team progress row */
.lms-coach-progress {
	display: flex;
	align-items: center;
	gap: .6rem;
}

/* ── Alert strip ────────────────────────────────────────────────────────── */
.lms-alert {
	padding: .65rem .9rem;
	border-radius: 6px;
	font-size: .85rem;
	line-height: 1.4;
}

.lms-alert--info {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: var(--lms-primary-dark);
}

.lms-alert--warning {
	background: var(--lms-warning-bg);
	border: 1px solid var(--lms-warning-border);
	color: #92400e;
}

/* Ghost button (completed courses) */
.lms-btn--ghost {
	background: transparent;
	color: #6b7280;
	border: 1px solid #d1d5db;
}

.lms-btn--ghost:hover {
	background: #f3f4f6;
	color: #374151;
}

/* ── Misc ───────────────────────────────────────────────────────────────── */
.lms-empty {
	color: #9ca3af;
	font-style: italic;
	padding: 1.5rem 0;
}

.lms-text-muted {
	font-size: .82rem;
	color: #6b7280;
}

/* ── Progress bar (reuse admin style) ───────────────────────────────────── */
.lms-portal .lms-progress-bar {
	height: 8px;
	background: #e5e7eb;
	border-radius: 4px;
	overflow: hidden;
	min-width: 100px;
}

.lms-portal .lms-progress-bar__fill {
	height: 100%;
	border-radius: 4px;
	background: var(--lms-primary);
	transition: width .3s;
}

/* ── Discreet filter bar ────────────────────────────────────────────────── */
.lms-filter-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .25rem .5rem;
	padding: .35rem 0 1rem;
	margin-bottom: .25rem;
	border-bottom: 1px solid #f3f4f6;
}

.lms-filter-bar__group {
	display: flex;
	align-items: center;
	gap: .05rem;
	position: relative;
}

.lms-filter-bar__item {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	padding: .2rem .5rem;
	font-size: .75rem;
	color: #9ca3af;
	text-decoration: none;
	border: none;
	background: transparent;
	cursor: pointer;
	border-radius: 4px;
	transition: color .12s;
	white-space: nowrap;
	line-height: 1.4;
}

.lms-filter-bar__item:hover {
	color: #374151;
}

.lms-filter-bar__item--active {
	color: #111827;
	font-weight: 600;
}

.lms-filter-bar__dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--lms-success);
	flex-shrink: 0;
}

.lms-filter-bar__sep {
	display: inline-block;
	width: 1px;
	height: 12px;
	background: #e5e7eb;
	margin: 0 .3rem;
	flex-shrink: 0;
}

.lms-filter-bar__actions {
	margin-left: auto;
}

.lms-filter-bar__export {
	font-size: .72rem;
	color: #c4c9d4;
	background: none;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	cursor: pointer;
	padding: .2rem .55rem;
	transition: color .12s, border-color .12s;
	letter-spacing: .02em;
}

.lms-filter-bar__export:hover {
	color: #374151;
	border-color: #9ca3af;
}

.lms-filter-bar__range-label {
	font-size: .68rem;
	color: #6b7280;
	font-weight: 400;
	margin-left: .15rem;
}

.lms-filter-bar__custom-picker {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: .75rem 1rem;
	z-index: 100;
	box-shadow: 0 4px 16px rgba(0,0,0,.1);
	min-width: 280px;
}

.lms-filter-bar__custom-picker--open {
	display: block;
}

.lms-filter-bar__date-input {
	padding: .28rem .5rem;
	font-size: .78rem;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	color: #374151;
}

.lms-filter-bar__apply {
	padding: .28rem .65rem;
	font-size: .76rem;
	background: var(--lms-primary);
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 500;
}

.lms-filter-bar__apply:hover {
	background: var(--lms-primary-dark);
}

/* ── Act As preview notice strip ───────────────────────────────────────── */
.lms-act-as-notice {
	display: flex;
	align-items: center;
	gap: .5rem;
	background: #fef9c3;
	border: 1px solid #fde047;
	border-radius: 8px;
	padding: .6rem 1rem;
	font-size: .85rem;
	color: #713f12;
	margin-bottom: 1.25rem;
}

.lms-act-as-notice strong {
	font-weight: 700;
}

.lms-act-as-notice__exit {
	color: #92400e;
	font-weight: 600;
	text-decoration: underline;
}

.lms-act-as-notice__exit:hover {
	color: #451a03;
}

/* Admin bar active state */
#wp-admin-bar-lms-act-as.lms-act-as--active > .ab-item {
	background: #fde047 !important;
	color: #713f12 !important;
}

#wp-admin-bar-lms-act-as-exit > .ab-item {
	color: #ef4444 !important;
}

#wp-admin-bar-lms-act-as-exit > .ab-item:hover {
	background: #fee2e2 !important;
}

/* ── Progress bar variants ──────────────────────────────────────────────── */
.lms-progress-bar--done .lms-progress-bar__fill {
	background: var(--lms-success);
}

.lms-progress-bar--idle .lms-progress-bar__fill {
	background: var(--lms-warning);
}

/* ── Stat card warning variant ──────────────────────────────────────────── */
.lms-stat-card--warning {
	border-color: var(--lms-warning-border);
	background: var(--lms-warning-bg);
}

.lms-stat-card--warning .lms-stat-card__value {
	color: #92400e;
}

/* ── Badge variants ─────────────────────────────────────────────────────── */
.lms-badge--idle {
	background: #fef3c7;
	color: #92400e;
	font-size: .7rem;
}

/* ── Achievements row ───────────────────────────────────────────────────── */
.lms-achievements {
	display: flex;
	flex-wrap: wrap;
	gap: .85rem;
	padding: .25rem 0 .5rem;
}

.lms-badge-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: .35rem;
	padding: 1rem .85rem .85rem;
	border-radius: 12px;
	min-width: 110px;
	max-width: 130px;
	border: 1.5px solid #e5e7eb;
	background: #fafafa;
	transition: box-shadow .15s, transform .15s;
}

.lms-badge-card:hover {
	box-shadow: 0 4px 14px rgba(0,0,0,.08);
	transform: translateY(-2px);
}

.lms-badge-card--earned {
	background: #fff;
	border-color: #c7d2fe;
}

.lms-badge-card__icon {
	font-size: 2rem;
	line-height: 1;
}

.lms-badge-card__label {
	font-size: .78rem;
	font-weight: 700;
	color: var(--lms-hero-start);
	line-height: 1.2;
}

.lms-badge-card__course {
	font-size: .7rem;
	color: #9ca3af;
	line-height: 1.3;
	max-width: 110px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ── Team Pulse leaderboard (student) ───────────────────────────────────── */
.lms-team-pulse__course {
	margin-left: .25rem;
	font-weight: 400;
}

.lms-member-list {
	display: flex;
	flex-direction: column;
	gap: .5rem;
	margin-top: .5rem;
}

.lms-member-list__item {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .55rem .75rem;
	border-radius: 8px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	transition: box-shadow .15s;
}

.lms-member-list__item:hover {
	box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.lms-member-list__item--me {
	background: #eff6ff;
	border-color: #bfdbfe;
}

.lms-member-list__rank {
	font-size: .9rem;
	font-weight: 700;
	color: #6b7280;
	min-width: 1.6rem;
	text-align: center;
}

.lms-member-list__avatar {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	overflow: hidden;
}

.lms-member-list__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lms-member-list__name {
	flex: 0 0 auto;
	min-width: 100px;
	max-width: 160px;
	font-size: .88rem;
	font-weight: 600;
	color: #111827;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lms-member-list__bar {
	flex: 1;
	min-width: 80px;
}

.lms-member-list__pct {
	font-size: .8rem;
	font-weight: 700;
	color: #374151;
	white-space: nowrap;
	min-width: 2.5rem;
	text-align: right;
}

/* ── Team Leader panel ──────────────────────────────────────────────────── */
.lms-section--team-leader {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

.lms-tl-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: .75rem;
	margin-bottom: 1.25rem;
}

.lms-tl-header__title {
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: .2rem;
}

.lms-tl-header__cycle {
	font-size: .82rem;
	display: block;
}

/* ── Cycle timeline bar ─────────────────────────────────────────────────── */
.lms-cycle-timeline {
	margin: .25rem 0 1.5rem;
}

.lms-cycle-timeline__bar {
	position: relative;
	height: 10px;
	background: #e5e7eb;
	border-radius: 6px;
	overflow: visible;
	margin-bottom: .4rem;
}

.lms-cycle-timeline__fill {
	height: 100%;
	border-radius: 6px;
	background: linear-gradient(90deg, var(--lms-primary), #60a5fa);
	transition: width .4s ease;
}

.lms-cycle-timeline__team-marker {
	position: absolute;
	top: -4px;
	transform: translateX(-50%);
	width: 18px;
	height: 18px;
	background: #fff;
	border: 2.5px solid var(--lms-primary);
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(29,78,216,.25);
	cursor: default;
}

.lms-cycle-timeline__team-label {
	position: absolute;
	bottom: 22px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--lms-primary);
	color: #fff;
	font-size: .65rem;
	font-weight: 700;
	padding: .1em .4em;
	border-radius: 3px;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transition: opacity .15s;
}

.lms-cycle-timeline__team-marker:hover .lms-cycle-timeline__team-label {
	opacity: 1;
}

.lms-cycle-timeline__labels {
	display: flex;
	justify-content: space-between;
	font-size: .75rem;
	color: #9ca3af;
}

.lms-cycle-timeline__remaining {
	font-size: .75rem;
	font-weight: 600;
	color: #374151;
}

/* ── Nudge strip ────────────────────────────────────────────────────────── */
.lms-tl-nudge {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .75rem;
	background: var(--lms-warning-bg);
	border: 1px solid var(--lms-warning-border);
	border-radius: 8px;
	padding: .65rem 1rem;
	margin-bottom: 1.25rem;
	font-size: .85rem;
}

.lms-tl-nudge__text {
	flex: 1;
	color: #92400e;
}

/* ── Member roster ──────────────────────────────────────────────────────── */
.lms-tl-roster__heading {
	font-size: .88rem;
	font-weight: 600;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: .05em;
	margin: 0 0 .65rem;
}

.lms-tl-roster {
	display: flex;
	flex-direction: column;
	gap: .45rem;
}

.lms-tl-member {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .6rem .85rem;
	border-radius: 8px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	transition: box-shadow .12s;
}

.lms-tl-member:hover {
	box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.lms-tl-member--idle {
	background: var(--lms-warning-bg);
	border-color: var(--lms-warning-border);
}

.lms-tl-member--done {
	background: #f0fdf4;
	border-color: #bbf7d0;
}

.lms-tl-member__avatar {
	position: relative;
	flex-shrink: 0;
	width: 36px;
	height: 36px;
}

.lms-tl-member__check {
	position: absolute;
	bottom: -2px;
	right: -4px;
	background: var(--lms-success);
	color: #fff;
	font-size: .55rem;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 900;
	border: 1.5px solid #fff;
}

.lms-tl-member__info {
	flex: 0 0 auto;
	min-width: 110px;
	max-width: 180px;
	display: flex;
	flex-direction: column;
	gap: .1rem;
}

.lms-tl-member__name {
	font-size: .88rem;
	color: #111827;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lms-tl-member__position {
	font-size: .75rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lms-tl-member__progress {
	flex: 1;
	display: flex;
	align-items: center;
	gap: .5rem;
	min-width: 0;
}

.lms-tl-member__bar {
	flex: 1;
	min-width: 60px;
}

.lms-tl-member__pct {
	font-size: .8rem;
	font-weight: 700;
	color: #374151;
	white-space: nowrap;
	min-width: 2.5rem;
	text-align: right;
}

.lms-tl-member__status {
	flex-shrink: 0;
	min-width: 60px;
	text-align: right;
}

/* Responsive adjustments */
@media (max-width: 640px) {
	.lms-member-list__name {
		max-width: 100px;
	}

	.lms-tl-member__info {
		max-width: 100px;
	}

	.lms-tl-member__status {
		display: none;
	}

	.lms-achievements {
		gap: .6rem;
	}

	.lms-badge-card {
		min-width: 90px;
	}
}

/* ── Print: hide nudge/email button, keep roster ────────────────────────── */
.lms-print-hide { /* also applied inline to specific buttons */ }

/* ── Print / Export PDF ─────────────────────────────────────────────────── */
@media print {
	.lms-nav,
	.lms-filter-bar__actions,
	.lms-filter-bar__custom-picker,
	.lms-hero__cta,
	.lms-back,
	.lms-btn,
	.lms-team-card .lms-btn--small,
	.lms-tl-nudge,
	.lms-print-hide { display: none !important; }

	.lms-hero {
		background: var(--lms-primary) !important;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		border-radius: 0;
		page-break-inside: avoid;
	}

	.lms-stat-card   { page-break-inside: avoid; }
	.lms-table       { page-break-inside: auto; font-size: 9pt; }
	.lms-table tr    { page-break-inside: avoid; }
	.lms-teams-grid  { display: block; }
	.lms-team-card   { page-break-inside: avoid; margin-bottom: .75rem; box-shadow: none; border: 1px solid #ccc; }

	@page { margin: 1.5cm 1.5cm 2cm; }

	body { font-size: 10pt; color: #000; }
	a    { color: #000; text-decoration: none; }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
	.lms-nav__item--logout {
		margin-left: 0;
	}

	.lms-stat-row {
		gap: .75rem;
	}

	.lms-stat-card {
		min-width: calc(50% - .375rem);
	}

	.lms-teams-grid {
		grid-template-columns: 1fr;
	}

	.lms-portal-page-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.lms-detail-meta {
		gap: .5rem 1rem;
	}

	.lms-filter-form {
		flex-direction: column;
		align-items: flex-start;
	}

	.lms-filter-form select {
		width: 100%;
	}
}

/* ── Form wrap ─────────────────────────────────────────────────────── */
.lms-form-wrap {
	max-width: 640px;
}

.lms-field-row {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 1.75rem 2rem;
	margin-bottom: .75rem;
}

.lms-field-label {
	display: block;
	font-size: .88rem;
	font-weight: 600;
	color: #374151;
	margin-bottom: .4rem;
}

.lms-select {
	width: 100%;
	padding: .5rem .75rem;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: .95rem;
	background: #fff;
	color: #111827;
}

.lms-form-wrap .frm_forms {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 1.75rem 2rem;
}

.lms-form-wrap .frm_form_field {
	margin-bottom: 1.1rem;
}

.lms-form-wrap label {
	display: block;
	font-size: .88rem;
	font-weight: 600;
	color: #374151;
	margin-bottom: .35rem;
}

.lms-form-wrap input[type=text],
.lms-form-wrap input[type=email],
.lms-form-wrap input[type=date],
.lms-form-wrap select,
.lms-form-wrap textarea {
	width: 100%;
	padding: .55rem .75rem;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: .9rem;
	color: #111827;
	background: #fff;
	transition: border-color .15s;
}

.lms-form-wrap input:focus,
.lms-form-wrap select:focus,
.lms-form-wrap textarea:focus {
	outline: none;
	border-color: var(--lms-primary);
	box-shadow: 0 0 0 3px rgba(29,78,216,.1);
}

.lms-form-wrap .frm_submit button,
.lms-form-wrap .frm_submit input[type=submit] {
	background: var(--lms-primary);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: .65rem 1.5rem;
	font-size: .95rem;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s;
}

.lms-form-wrap .frm_submit button:hover,
.lms-form-wrap .frm_submit input[type=submit]:hover {
	background: var(--lms-primary-dark);
}

/* ==========================================================================
   Notification Centre
   ========================================================================== */

/* ── Priority badges ────────────────────────────────────────────────────── */
.lms-priority-badge {
	display: inline-block;
	padding: .15rem .55rem;
	border-radius: 20px;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	line-height: 1.4;
	flex-shrink: 0;
}
.lms-priority--urgent { background: #fff0f0; color: #b91c1c; border: 1px solid #f87171; font-weight: 800; letter-spacing: .04em; }
.lms-priority--high   { background: #fef2f2; color: #dc2626; border: 1px solid #fca5a5; }
.lms-priority--medium { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.lms-priority--low    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* ── Notification banner ────────────────────────────────────────────────── */
/* ==========================================================================
   Notification Banner
   ========================================================================== */

:root {
  --lms-banner-toggle-bg:    #f97316;  /* brand orange — override in Style tab */
  --lms-banner-toggle-text:  #ffffff;
  --lms-banner-arrow-color:  #000000;
  --lms-radius-banner:       12px;
}

/* Whole banner sits on the brand colour */
.lms-notif-banner {
	margin-bottom: 1.5rem;
	border-radius: var(--lms-radius-banner, 12px);
	overflow: hidden;
	background: var(--lms-banner-toggle-bg, #f97316);
	box-shadow: 0 2px 10px rgba(0,0,0,.12);
}

/* ── Toggle bar ─────────────────────────────────────────────────────────── */
.lms-notif-banner__toggle {
	-webkit-appearance: none;
	appearance: none;
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: center !important;
	gap: .5rem;
	width: 100% !important;
	box-sizing: border-box;
	background: var(--lms-banner-toggle-bg, #f97316) !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none;
	padding: .75rem 1.25rem;
	margin: 0;
	cursor: pointer;
}
.lms-notif-banner__toggle:hover { filter: brightness(1.07); }
.lms-notif-banner__toggle:focus { outline: none; }

.lms-notif-banner__toggle-label {
	font-size: .9rem;
	font-weight: 700;
	letter-spacing: .01em;
	color: var(--lms-banner-toggle-text, #fff) !important;
	flex-shrink: 0;
	white-space: nowrap;
}
.lms-notif-banner__chevron {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	color: var(--lms-banner-toggle-text, #fff);
	opacity: .8;
	transition: transform .25s;
}
.lms-notif-banner__toggle[aria-expanded="false"] .lms-notif-banner__chevron {
	transform: rotate(180deg);
}

/* ── Collapsible body — very light tint of the brand colour ─────────────── */
.lms-notif-banner__body {
	background: rgba(255,255,255,.82);
	overflow: hidden;
	transition: max-height .32s ease, opacity .2s;
	max-height: 180px;
	opacity: 1;
}
.lms-notif-banner__body--collapsed {
	max-height: 0 !important;
	opacity: 0;
}

/* ── Carousel ────────────────────────────────────────────────────────────── */
.lms-notif-banner__carousel {
	display: flex;
	align-items: center;
	position: relative;
}
.lms-notif-banner__slides { flex: 1; min-width: 0; }
.lms-notif-banner__item--hidden { display: none !important; }

/* ── Slide ───────────────────────────────────────────────────────────────── */
.lms-notif-banner__item { display: flex; }

.lms-notif-banner__slide-content {
	flex: 1;
	min-width: 0;
	padding: .75rem 1rem;
	display: flex;
	flex-direction: column;
	gap: .3rem;
}

/* Title row: badge + title */
.lms-notif-banner__title-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	flex-wrap: nowrap;
	overflow: hidden;
}
.lms-notif-banner__title {
	font-size: .9rem;
	font-weight: 700;
	color: #111827;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}

/* Meta row */
.lms-notif-banner__meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .3rem;
	flex-wrap: nowrap;
	overflow: hidden;
}
.lms-notif-banner__meta-item {
	font-size: .75rem;
	color: #6b7280;
	white-space: nowrap;
}
.lms-notif-banner__meta-item--date {
	font-weight: 600;
	color: #374151;
}
.lms-notif-banner__meta-item--urgent { color: #b91c1c; }
.lms-notif-banner__meta-sep {
	font-size: .68rem;
	color: #d1d5db;
	flex-shrink: 0;
}

/* Body text */
.lms-notif-banner__body-text {
	font-size: .78rem;
	color: #4b5563;
	margin: 0;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: center;
}

/* Date chip */
.lms-notif-banner__date-chip {
	display: inline-flex;
	align-items: center;
	gap: .25rem;
	font-size: .72rem;
	font-weight: 600;
	color: #555;
	background: rgba(0,0,0,.07);
	border: 1px solid rgba(0,0,0,.1);
	padding: .2rem .6rem;
	border-radius: 20px;
	white-space: nowrap;
	flex-shrink: 0;
}
.lms-notif-banner__date-chip strong { color: #222; }

/* Role chip */
.lms-notif-banner__role-chip {
	display: inline-block;
	font-size: .66rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #666;
	background: rgba(0,0,0,.06);
	border: 1px solid rgba(0,0,0,.1);
	padding: .2rem .55rem;
	border-radius: 20px;
	white-space: nowrap;
	flex-shrink: 0;
}

/* ── Nav arrows — no box, no background ever ─────────────────────────────── */
.lms-notif-banner__nav {
	-webkit-appearance: none;
	appearance: none;
	background: none !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none;
	color: var(--lms-banner-arrow-color, #000);
	opacity: .4;
	cursor: pointer;
	padding: 0 .9rem;
	align-self: stretch;
	display: flex;
	align-items: center;
	flex-shrink: 0;
	font-size: .9rem;
	transition: opacity .15s;
}
.lms-notif-banner__nav:hover:not(:disabled) { opacity: 1; background: none !important; }
.lms-notif-banner__nav:focus { outline: none; background: none !important; }
.lms-notif-banner__nav:disabled { opacity: .35; cursor: default; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.lms-notif-banner__footer {
	display: flex;
	justify-content: flex-end;
	padding: .3rem .9rem;
	background: rgba(0,0,0,.04);
	border-top: 1px solid rgba(0,0,0,.06);
}
.lms-notif-banner__more {
	font-size: .72rem;
	font-weight: 600;
	color: rgba(0,0,0,.45);
	text-decoration: none;
}
.lms-notif-banner__more:hover { color: rgba(0,0,0,.8); text-decoration: underline; }

/* ── Nav notifications pill link ────────────────────────────────────────── */
.lms-nav__item--notif-link { margin-left: auto; margin-right: 0; }

.lms-notif-nav-link {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	background: var(--lms-primary, #1d4ed8);
	color: #fff !important;
	text-decoration: none !important;
	font-size: .82rem;
	font-weight: 600;
	padding: .4rem .85rem;
	border-radius: 20px;
	white-space: nowrap;
	transition: filter .15s;
	line-height: 1.4;
}
.lms-notif-nav-link:hover { filter: brightness(1.1); }

.lms-notif-nav-link__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 9px;
	background: #fff;
	color: var(--lms-primary, #1d4ed8);
	font-size: .7rem;
	font-weight: 700;
	line-height: 1;
}

/* ── Bell dropdown ──────────────────────────────────────────────────────── */
.lms-notif-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: 320px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0,0,0,.12);
	z-index: 9999;
	overflow: hidden;
}

.lms-notif-dropdown__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: .65rem 1rem;
	border-bottom: 1px solid #f3f4f6;
	background: #f9fafb;
	font-size: .85rem;
}
.lms-notif-dropdown__header strong {
	font-size: .9rem;
	color: #111827;
}
.lms-notif-dropdown__all {
	font-size: .8rem;
	color: var(--lms-primary);
	text-decoration: none;
}
.lms-notif-dropdown__all:hover { text-decoration: underline; }

.lms-notif-dropdown__items {
	max-height: 340px;
	overflow-y: auto;
}

/* ── Dropdown items ─────────────────────────────────────────────────────── */
.lms-notif-item {
	padding: .7rem 1rem;
	border-bottom: 1px solid #f3f4f6;
	cursor: pointer;
	transition: background .12s;
}
.lms-notif-item:last-child { border-bottom: none; }
.lms-notif-item:hover { background: #f9fafb; }

.lms-notif-item--unread { background: #eff6ff; }
.lms-notif-item--unread:hover { background: #dbeafe; }
.lms-notif-item--read { opacity: .8; }
.lms-notif-item--empty,
.lms-notif-item--loading {
	cursor: default;
	color: #6b7280;
	font-size: .875rem;
	text-align: center;
	padding: 1.25rem 1rem;
}

.lms-notif-item__title {
	font-size: .875rem;
	font-weight: 600;
	color: #111827;
	display: flex;
	align-items: center;
	gap: .4rem;
	margin-bottom: .2rem;
}
.lms-notif-item__body {
	font-size: .8rem;
	color: #4b5563;
	line-height: 1.4;
}
.lms-notif-item__meta {
	font-size: .75rem;
	margin-top: .25rem;
}

/* ── Unread dot ─────────────────────────────────────────────────────────── */
.lms-notif-unread-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--lms-primary);
	flex-shrink: 0;
}

/* ── Full notifications page ────────────────────────────────────────────── */
.lms-notif-list {
	display: flex;
	flex-direction: column;
	gap: .75rem;
}

/* ── Notification cards (full page) — unchanged ──────────────────────────── */
.lms-notif-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 1rem 1.25rem;
	transition: border-color .15s;
}
.lms-notif-card:not(.lms-notif-card--read) {
	border-left: 3px solid var(--lms-primary);
	background: #f8fbff;
}
.lms-notif-card--read { opacity: .85; }
.lms-notif-card--high   { border-left: 3px solid #dc2626; }
.lms-notif-card--medium { border-left: 3px solid #f59e0b; }
.lms-notif-card--low    { border-left: 3px solid #3b82f6; }

.lms-notif-card__title-row {
	display: flex;
	align-items: center;
	gap: .5rem;
	flex-wrap: wrap;
	margin-bottom: .25rem;
}
.lms-notif-card__title {
	display: flex;
	align-items: center;
	gap: .4rem;
	font-size: .95rem;
	color: #111827;
}
.lms-notif-card__meta {
	display: flex;
	align-items: center;
	gap: .35rem;
	flex-wrap: wrap;
	margin-bottom: .5rem;
}
.lms-notif-card__meta-item { font-size: .78rem; color: #6b7280; }
.lms-notif-card__meta-item--date { font-weight: 600; color: #374151; }
.lms-notif-card__meta-sep { font-size: .7rem; color: #d1d5db; }
.lms-notif-card__body {
	font-size: .875rem;
	color: #374151;
	line-height: 1.55;
	margin-bottom: .6rem;
}
.lms-notif-card__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.lms-notif-card__btn {
	-webkit-appearance: none;
	appearance: none;
	font-size: .78rem;
	font-weight: 600;
	padding: .35rem .85rem;
	border-radius: var(--lms-radius-btn, 6px);
	border: 1.5px solid;
	cursor: pointer;
	background: none;
}
.lms-notif-card__btn--read  { color: var(--lms-primary,#1d4ed8); border-color: var(--lms-primary,#1d4ed8); }
.lms-notif-card__btn--read:hover  { background: var(--lms-primary,#1d4ed8); color: #fff; }
.lms-notif-card__btn--delete { color: #9ca3af; border-color: #e5e7eb; }
.lms-notif-card__btn--delete:hover { color: #dc2626; border-color: #fca5a5; background: #fef2f2; }

/* Inline form row (priority + date side by side) */
.lms-form-row--inline {
	display: flex;
	gap: 1.25rem;
	flex-wrap: wrap;
	align-items: flex-end;
}
.lms-form-row--inline > div { flex: 1; min-width: 140px; }
.lms-input--date { max-width: 180px; }

/* ── Compose form ───────────────────────────────────────────────────────── */
.lms-notif-compose {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 1.25rem 1.5rem;
	margin-bottom: 1.75rem;
}

.lms-notif-target-row {
	display: flex;
	gap: .5rem;
	flex-wrap: wrap;
	align-items: center;
}

.lms-form-row {
	margin-bottom: 1rem;
}
.lms-label {
	display: block;
	font-size: .875rem;
	font-weight: 600;
	color: #374151;
	margin-bottom: .35rem;
}
.lms-label--inline {
	display: flex;
	align-items: center;
	gap: .4rem;
	font-weight: 400;
}
.lms-input,
.lms-textarea,
.lms-select {
	width: 100%;
	padding: .5rem .75rem;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: .9rem;
	color: #111827;
	background: #fff;
	transition: border-color .15s;
	box-sizing: border-box;
}
.lms-select { width: auto; min-width: 140px; }
.lms-textarea { resize: vertical; }
.lms-input:focus,
.lms-textarea:focus,
.lms-select:focus {
	outline: none;
	border-color: var(--lms-primary);
	box-shadow: 0 0 0 3px rgba(29,78,216,.1);
}
.lms-form-actions {
	display: flex;
	gap: .6rem;
	flex-wrap: wrap;
	margin-top: 1.25rem;
}

/* Danger button variant */
.lms-btn--danger {
	color: #dc2626;
	border-color: #fca5a5;
}
.lms-btn--danger:hover {
	background: #fef2f2;
	border-color: #dc2626;
}

/* ── Page header (shared with teams/cycles) ──────────────────────────────── */
.lms-portal-page-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
}
.lms-portal-page-header h2 {
	margin: 0;
	font-size: 1.35rem;
}

@media (max-width: 480px) {
	.lms-notif-dropdown { width: calc(100vw - 2rem); right: -1rem; }
	.lms-notif-card__header { flex-direction: column; }
}

/* -------------------------------------------------------------------------
   [lms_portal_login]
------------------------------------------------------------------------- */
.lms-login {
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem 1rem;
}
.lms-login__card {
	width: 100%;
	max-width: 380px;
	background: #fff;
	border-radius: var(--lms-radius-card);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
	padding: 2.5rem 2rem;
	text-align: center;
}
.lms-login__title {
	font-family: var(--lms-font-heading, var(--lms-font-body));
	font-size: 1.3rem;
	margin: 0 0 1.5rem;
}
.lms-login__ct-btn {
	display: block;
	width: 100%;
	padding: .75rem 1rem;
	font-size: 1rem;
	margin-bottom: 1.25rem;
}
.lms-login__wp-link {
	display: inline-block;
	font-size: .85rem;
	color: var(--lms-primary);
	text-decoration: none;
}
.lms-login__wp-link:hover { text-decoration: underline; }
.lms-login .lms-notice { margin-bottom: 1.25rem; text-align: left; }
