/**
 * Imbeke Mentorship Management System (SMMS) - Front-End Design System
 * Mobile-First, Accessible, and Touch-Optimized
 */

/* The typeface (Inter) is self-hosted: its @font-face rules live in tokens.css, which PortalPageManager enqueues before this file. Nothing is fetched from another site. */

:root {
	--smms-font: var(--smms-font-sans, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);

	/* --- Dark mode (default) --- */
	--smms-primary: #3b82f6;
	--smms-primary-hover: #2563eb;
	--smms-primary-light: rgba(59, 130, 246, 0.18);
	/* Fill for buttons and badges that carry white text. The brighter --smms-primary is only 3.7:1 against white; this is 5.2:1. */
	--smms-primary-solid: #2563eb;
	--smms-primary-solid-hover: #1d4ed8;
	--smms-primary-border: rgba(59, 130, 246, 0.4);
	--smms-bg: #0b1324;
	--smms-bg-subtle: #0f1a30;
	--smms-surface: #152238;
	--smms-surface-hover: #1c2c47;
	--smms-card-bg: rgba(21, 34, 56, 0.85);
	--smms-card-bg-elevated: rgba(28, 44, 71, 0.95);
	--smms-border: rgba(255, 255, 255, 0.12);
	--smms-border-subtle: rgba(255, 255, 255, 0.07);
	--smms-text: #f8fafc;
	--smms-text-muted: #94a3b8;
	--smms-text-dim: #64748b;
	--smms-heading: #ffffff;
	--smms-link: #60a5fa;
	--smms-accent: #a855f7;
	--smms-accent-light: rgba(168, 85, 247, 0.18);
	--smms-teal: #22d3ee;
	--smms-teal-light: rgba(34, 211, 238, 0.18);
	--smms-success: #10b981;
	--smms-success-light: rgba(16, 185, 129, 0.18);
	--smms-success-text: #34d399;
	--smms-warning: #f59e0b;
	--smms-warning-light: rgba(245, 158, 11, 0.18);
	--smms-warning-text: #fbbf24;
	--smms-danger: #ef4444;
	--smms-danger-light: rgba(239, 68, 68, 0.18);
	--smms-danger-text: #f87171;
	--smms-info-text: #93c5fd;
	--smms-alert-danger-text: #fca5a5;
	--smms-alert-success-text: #a7f3d0;
	--smms-alert-warning-text: #fde68a;

	/* Overlay scale — subtle tints layered on surfaces for hover/active states */
	--smms-overlay-faint: rgba(255, 255, 255, 0.04);
	--smms-overlay-soft: rgba(255, 255, 255, 0.07);
	--smms-overlay-medium: rgba(255, 255, 255, 0.09);
	--smms-overlay-strong: rgba(255, 255, 255, 0.14);
	--smms-disabled-overlay: rgba(0, 0, 0, 0.2);

	/* Inputs & search */
	--smms-input-bg-focus: #0d1728;
	--smms-input-solid-bg: #0f172a;
	--smms-search-bg: rgba(15, 26, 48, 0.75);
	--smms-search-bg-focus: rgba(15, 26, 48, 0.95);

	/* Recessed / translucent panels */
	--smms-topbar-bg: rgba(11, 19, 36, 0.92);
	--smms-bottom-nav-bg: rgba(11, 19, 36, 0.96);
	--smms-panel-bg: rgba(11, 19, 36, 0.6);
	--smms-panel-bg-soft: rgba(11, 19, 36, 0.5);
	--smms-modal-backdrop-bg: rgba(0, 0, 0, 0.75);
	--smms-drawer-overlay-bg: rgba(0, 0, 0, 0.65);

	/* Logo treatment — logo art is designed for dark backgrounds */
	--smms-logo-blend: lighten;
	--smms-logo-shadow: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
	--smms-logo-shadow-sm: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));

	--smms-radius-sm: 8px;
	--smms-radius: 14px;
	--smms-radius-lg: 20px;
	--smms-shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.25);
	--smms-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
	--smms-shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.5);
	--smms-shadow-avatar: 0 2px 8px rgba(0, 0, 0, 0.25);
	--smms-shadow-elevated: 0 8px 24px rgba(0, 0, 0, 0.4);
	--smms-shadow-bottom-nav: 0 -4px 20px rgba(0, 0, 0, 0.4);
	--smms-shadow-drawer: 4px 0 25px rgba(0, 0, 0, 0.6);
	--smms-shadow-sheet: 0 -10px 30px rgba(0, 0, 0, 0.5);
	--smms-spinner-track: rgba(255, 255, 255, 0.1);

	--smms-bottom-nav-height: 64px;
}

/* --- Light mode --- */
html[data-smms-theme="light"],
.smms-portal-wrapper[data-smms-theme="light"] {
	color-scheme: light;
	--smms-primary: #2563eb;
	--smms-primary-hover: #1d4ed8;
	--smms-primary-light: rgba(37, 99, 235, 0.10);
	--smms-primary-solid: #2563eb;
	--smms-primary-solid-hover: #1d4ed8;
	--smms-primary-border: rgba(37, 99, 235, 0.30);
	--smms-bg: #f3f5f9;
	--smms-bg-subtle: #eaeef4;
	--smms-surface: #ffffff;
	--smms-surface-hover: #f1f4f9;
	--smms-card-bg: #ffffff;
	--smms-card-bg-elevated: #ffffff;
	--smms-border: rgba(15, 23, 42, 0.11);
	--smms-border-subtle: rgba(15, 23, 42, 0.07);
	--smms-text: #33415a;
	--smms-text-muted: #55647a; /* 5.4:1 on the light surfaces (was #64748b, 4.4:1) */
	--smms-text-dim: #94a3b8;
	--smms-heading: #0f172a;
	--smms-link: #1d4ed8;
	--smms-accent: #9333ea;
	--smms-accent-light: rgba(147, 51, 234, 0.10);
	--smms-teal: #0891b2;
	--smms-teal-light: rgba(8, 145, 178, 0.10);
	--smms-success: #059669;
	--smms-success-light: rgba(5, 150, 105, 0.12);
	--smms-success-text: #047857;
	--smms-warning: #b45309;
	--smms-warning-light: rgba(180, 83, 9, 0.12);
	--smms-warning-text: #92400e;
	--smms-danger: #dc2626;
	--smms-danger-light: rgba(220, 38, 38, 0.10);
	--smms-danger-text: #b91c1c;
	--smms-info-text: #1d4ed8;
	--smms-alert-danger-text: #b91c1c;
	--smms-alert-success-text: #047857;
	--smms-alert-warning-text: #92400e;

	--smms-overlay-faint: rgba(15, 23, 42, 0.035);
	--smms-overlay-soft: rgba(15, 23, 42, 0.05);
	--smms-overlay-medium: rgba(15, 23, 42, 0.07);
	--smms-overlay-strong: rgba(15, 23, 42, 0.10);
	--smms-disabled-overlay: rgba(15, 23, 42, 0.06);

	--smms-input-bg-focus: #ffffff;
	--smms-input-solid-bg: #ffffff;
	--smms-search-bg: #ffffff;
	--smms-search-bg-focus: #ffffff;

	--smms-topbar-bg: rgba(255, 255, 255, 0.88);
	--smms-bottom-nav-bg: rgba(255, 255, 255, 0.94);
	--smms-panel-bg: rgba(15, 23, 42, 0.035);
	--smms-panel-bg-soft: rgba(15, 23, 42, 0.025);
	--smms-modal-backdrop-bg: rgba(15, 23, 42, 0.4);
	--smms-drawer-overlay-bg: rgba(15, 23, 42, 0.32);

	--smms-logo-blend: normal;
	--smms-logo-shadow: none;
	--smms-logo-shadow-sm: none;

	--smms-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.05);
	--smms-shadow: 0 10px 20px -6px rgba(15, 23, 42, 0.10), 0 4px 8px -4px rgba(15, 23, 42, 0.06);
	--smms-shadow-lg: 0 20px 30px -12px rgba(15, 23, 42, 0.16);
	--smms-shadow-avatar: 0 2px 6px rgba(15, 23, 42, 0.14);
	--smms-shadow-elevated: 0 10px 20px -4px rgba(15, 23, 42, 0.12);
	--smms-shadow-bottom-nav: 0 -2px 12px rgba(15, 23, 42, 0.08);
	--smms-shadow-drawer: 4px 0 20px rgba(15, 23, 42, 0.14);
	--smms-shadow-sheet: 0 -8px 24px rgba(15, 23, 42, 0.16);
	--smms-spinner-track: rgba(15, 23, 42, 0.10);
}

/* =========================================================================
   PAGE FRAME & BASE LAYER
   The portal page loads no theme stylesheet (see PortalStyleIsolation.php), so
   everything a theme would normally supply is supplied here instead, once, and
   the same on every site: the page margin and background, the font on form
   controls, the spacing of bare paragraphs, the "hidden" attribute, and the
   neutral look of an unstyled button. The :where() selectors have zero
   specificity, so any component rule overrides them without a fight.
   ========================================================================= */
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body.smms-portal-canvas {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	background: #0b1324;
	color-scheme: dark;
	/* The app appends a few things straight to <body> (toasts, the sidebar
	   collapse handle, phone-number pop-ups): they get the portal font. */
	font-family: var(--smms-font);
	line-height: 1.5;
}

html[data-smms-theme="light"] body.smms-portal-canvas {
	background: #f3f5f9;
	color-scheme: light;
}

:where(.smms-portal-wrapper, .smms-toast-container, .smms-sidebar-collapse-toggle) :where(button, input, select, textarea, optgroup) {
	font: inherit;
	letter-spacing: inherit;
}

/* The collapse handle is itself a button appended to <body>. */
:where(.smms-sidebar-collapse-toggle) {
	font: inherit;
	letter-spacing: inherit;
}

:where(.smms-portal-wrapper, .smms-toast-container, .smms-sidebar-collapse-toggle) :where(button) {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

:where(.smms-portal-wrapper, .smms-toast-container, .smms-sidebar-collapse-toggle) :where(p, dl, dd, figure, blockquote, pre) {
	margin: 0;
}

:where(.smms-portal-wrapper, .smms-toast-container, .smms-sidebar-collapse-toggle) :where(fieldset) {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

:where(.smms-portal-wrapper, .smms-toast-container, .smms-sidebar-collapse-toggle) :where(table) {
	border-collapse: collapse;
	border-spacing: 0;
}

/* The hidden attribute must always hide, even on an element whose class sets a
   display value (a class would otherwise beat the browser's own hidden rule). */
.smms-portal-wrapper [hidden] {
	display: none !important;
}

/* Base resets & box sizing */
.smms-portal-wrapper {
	/* Tells the browser which palette to use for its own controls — the
	   date/month picker icon, select popups, scrollbars. Without it they
	   stay light-themed (a black calendar icon on a dark input). */
	color-scheme: dark;
	font-family: var(--smms-font);
	background: var(--smms-bg);
	color: var(--smms-text);
	min-height: 100vh;
	width: 100%;
	box-sizing: border-box;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	padding-bottom: env(safe-area-inset-bottom, 0px);
	transition: background-color 0.25s ease, color 0.25s ease;
}

/* Color-transition on theme switch is scoped to a short-lived class
   (added/removed by setTheme() in portal-app.js) instead of a permanent
   `.smms-portal-wrapper *` rule. A universal selector transition applied
   at all times forces every element to evaluate a transition on every
   style recalculation (scrolling, hover, typing), which is the source of
   input-latency and scroll-jank on lower-end mobile devices. Scoping it
   to the ~250ms window around an actual theme change keeps the smooth
   cross-fade without that ongoing cost. */
.smms-portal-wrapper.smms-theme-transitioning,
.smms-portal-wrapper.smms-theme-transitioning * {
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

/* =========================================================================
   THEME TOGGLE — sidebar segmented control (Light / Dark)
   ========================================================================= */
.smms-theme-toggle {
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 3px;
	background: var(--smms-bg-subtle);
	border: 1px solid var(--smms-border);
	border-radius: 10px;
	margin-bottom: 10px;
}

.smms-theme-toggle-option {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 7px 8px;
	border-radius: 7px;
	font-size: 12px;
	font-weight: 600;
	color: var(--smms-text-muted);
	cursor: pointer;
	user-select: none;
	transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.smms-theme-toggle-option svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
	flex-shrink: 0;
}

.smms-theme-toggle-option:hover {
	color: var(--smms-text);
}

.smms-theme-toggle-option.active {
	background: var(--smms-surface);
	color: var(--smms-text);
	box-shadow: var(--smms-shadow-sm);
}

.smms-theme-toggle-option.active svg {
	color: var(--smms-primary);
	fill: var(--smms-primary);
}

.smms-portal-wrapper *,
.smms-portal-wrapper *::before,
.smms-portal-wrapper *::after {
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

.smms-portal-wrapper h1,
.smms-portal-wrapper h2,
.smms-portal-wrapper h3,
.smms-portal-wrapper h4,
.smms-portal-wrapper h5,
.smms-portal-wrapper h6 {
	color: var(--smms-heading);
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0;
}

/* Loading Splash */
.smms-loading-splash {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 65vh;
	gap: 16px;
	color: var(--smms-text-muted);
	padding: 24px;
	text-align: center;
}

.smms-spinner {
	width: 44px;
	height: 44px;
	border: 3px solid var(--smms-overlay-medium);
	border-radius: 50%;
	border-top-color: var(--smms-primary);
	animation: smms-spin 0.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

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

/* Sign-in screen
   Two panes: a dark brand panel (organisation name + logo) and a plain form
   pane. The panel stays dark in both themes so the logo always has the same
   backdrop; the form pane follows the portal theme. Collapses to a compact
   brand strip above the form on narrow screens. */
.smms-auth-container {
	--auth-aside-bg: #0f1a2e;
	--auth-aside-text: #f1f5f9;
	--auth-aside-muted: #9fb0c8;
	display: grid;
	grid-template-columns: minmax(340px, 5fr) 7fr;
	min-height: 100vh;
	min-height: 100dvh;
	background: var(--smms-bg);
}

.smms-portal-wrapper[data-smms-theme="light"] .smms-auth-container {
	--auth-aside-bg: #111c33;
}

.smms-auth-aside {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 48px;
	padding: 48px;
	background: var(--auth-aside-bg);
	color: var(--auth-aside-text);
}

.smms-auth-brand {
	display: flex;
	align-items: center;
}

/* The logo is a small mark, never a banner. Theme image rules such as
   `.entry-content img { width: 100% }` out-rank a one-class selector and would
   stretch it across the whole panel, so the size is pinned with a scoped,
   !important rule (the same protection the sidebar and agreement-gate logos
   have). Any aspect ratio fits inside the box without being cropped or squashed. */
.smms-portal-wrapper .smms-auth-aside .smms-auth-brand img.smms-auth-logo {
	display: block !important;
	flex: 0 0 auto;
	width: auto !important;
	height: 64px !important;
	max-width: 160px !important;
	max-height: 64px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
	object-fit: contain;
}

.smms-auth-logo-fallback {
	width: 48px;
	height: 48px;
	fill: var(--auth-aside-text);
}

.smms-auth-aside-body {
	max-width: 420px;
}

.smms-auth-org {
	font-size: clamp(32px, 3.2vw, 46px);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.05;
	overflow-wrap: anywhere;
}

.smms-auth-product {
	margin-top: 10px;
	font-size: 18px;
	font-weight: 500;
	letter-spacing: -0.01em;
	color: var(--auth-aside-muted);
}

.smms-auth-aside-text {
	margin: 28px 0 0;
	max-width: 34ch;
	font-size: 15px;
	line-height: 1.6;
	color: var(--auth-aside-muted);
}

.smms-auth-main {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 48px 32px 28px;
}

.smms-auth-card {
	width: 100%;
	max-width: 380px;
	margin: auto 0;
}

.smms-auth-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 24px;
	margin-top: 32px;
	font-size: 13px;
}

.smms-auth-links a {
	color: var(--smms-text-muted);
	text-decoration: none;
}

.smms-auth-links a:hover {
	color: var(--smms-text);
	text-decoration: underline;
}

.smms-auth-links a:focus-visible,
.smms-auth-text-link:focus-visible {
	outline: 2px solid var(--smms-primary);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Optional brand photo: fills the panel; a scrim keeps the text readable. */
.smms-auth-photo {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.smms-auth-aside.has-photo::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, var(--auth-aside-bg) 8%, rgba(15, 26, 46, 0.72) 48%, rgba(15, 26, 46, 0.42) 100%);
}

.smms-auth-aside.has-photo .smms-auth-aside-text,
.smms-auth-aside.has-photo .smms-auth-product {
	color: #d5deeb;
}

/* "Forgot password?" sits on the label row; label keeps its own bottom margin. */
.smms-auth-label-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

/* Text-link buttons ("Forgot password?", "Back to sign in").
   They are <button>s, so a site theme's `button:hover` look (coloured fill,
   contrasting text, shadow, lift) can leak onto them. Every state is pinned
   here, with enough specificity (class + id selectors, !important) to out-rank
   theme rules, and the look is deliberate: a link-coloured label that gets a soft
   tinted pill on hover and a clear ring for keyboard users. The pill is made with
   padding cancelled by negative margin, so nothing shifts when it appears. */
.smms-portal-wrapper .smms-auth-container button.smms-auth-text-link,
.smms-portal-wrapper .smms-auth-container button#smms-forgot-link,
.smms-portal-wrapper .smms-auth-container button#smms-back-link,
.smms-portal-wrapper .smms-auth-container button.smms-auth-text-link:hover,
.smms-portal-wrapper .smms-auth-container button#smms-forgot-link:hover,
.smms-portal-wrapper .smms-auth-container button#smms-back-link:hover,
.smms-portal-wrapper .smms-auth-container button.smms-auth-text-link:focus,
.smms-portal-wrapper .smms-auth-container button#smms-forgot-link:focus,
.smms-portal-wrapper .smms-auth-container button#smms-back-link:focus,
.smms-portal-wrapper .smms-auth-container button.smms-auth-text-link:active,
.smms-portal-wrapper .smms-auth-container button#smms-forgot-link:active,
.smms-portal-wrapper .smms-auth-container button#smms-back-link:active {
	-webkit-appearance: none;
	appearance: none;
	display: inline-block;
	width: auto;
	min-height: 0;
	padding: 4px 8px;
	margin: -4px -8px 4px;
	background: transparent !important;
	border: 0 !important;
	border-radius: 8px;
	box-shadow: none !important;
	text-shadow: none !important;
	text-decoration: none !important;
	text-transform: none;
	letter-spacing: normal;
	transform: none !important;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--smms-link) !important;
	cursor: pointer;
	transition: background-color 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

.smms-portal-wrapper .smms-auth-container button.smms-auth-text-link:hover,
.smms-portal-wrapper .smms-auth-container button#smms-forgot-link:hover,
.smms-portal-wrapper .smms-auth-container button#smms-back-link:hover {
	background: var(--smms-primary-light) !important;
}

.smms-portal-wrapper .smms-auth-container button.smms-auth-text-link:active,
.smms-portal-wrapper .smms-auth-container button#smms-forgot-link:active,
.smms-portal-wrapper .smms-auth-container button#smms-back-link:active {
	background: var(--smms-primary-light) !important;
	box-shadow: inset 0 0 0 1px var(--smms-primary-border) !important;
}

.smms-portal-wrapper .smms-auth-container button.smms-auth-text-link:focus-visible,
.smms-portal-wrapper .smms-auth-container button#smms-forgot-link:focus-visible,
.smms-portal-wrapper .smms-auth-container button#smms-back-link:focus-visible {
	outline: 2px solid var(--smms-primary) !important;
	outline-offset: 1px;
}

.smms-portal-wrapper .smms-auth-container .smms-auth-footnote button.smms-auth-text-link,
.smms-portal-wrapper .smms-auth-container .smms-auth-footnote button#smms-back-link {
	margin: -4px -8px;
	font-size: inherit;
}

/* The sign-in button and the show/hide-password eye get the same protection:
   a fixed, designed hover that a theme cannot recolour. */
.smms-portal-wrapper .smms-auth-container button.smms-btn-primary,
.smms-portal-wrapper .smms-auth-container button.smms-btn-primary:focus {
	background: var(--smms-primary-solid) !important;
	color: #ffffff !important;
	border-color: transparent !important;
	text-decoration: none !important;
}

.smms-portal-wrapper .smms-auth-container button.smms-btn-primary:hover,
.smms-portal-wrapper .smms-auth-container button.smms-btn-primary:active {
	background: var(--smms-primary-solid-hover) !important;
	color: #ffffff !important;
	border-color: transparent !important;
	text-decoration: none !important;
}

.smms-portal-wrapper .smms-auth-container button.smms-password-toggle,
.smms-portal-wrapper .smms-auth-container button.smms-password-toggle:focus {
	background: transparent !important;
	color: var(--smms-text-muted) !important;
	border: 0 !important;
	box-shadow: none !important;
}

.smms-portal-wrapper .smms-auth-container button.smms-password-toggle:hover {
	background: var(--smms-overlay-soft) !important;
	color: var(--smms-text) !important;
}

.smms-auth-hint {
	margin-top: 8px;
	font-size: 13px;
	color: var(--smms-warning-text);
}

.smms-auth-hint[hidden] {
	display: none;
}

.smms-auth-note {
	margin: -16px 0 28px;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--smms-text-muted);
}

.smms-btn-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: smms-spin 0.8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
	.smms-btn-spinner { animation-duration: 2s; }
}

.smms-portal-wrapper h1.smms-auth-title {
	margin: 0 0 8px;
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.15;
	color: var(--smms-heading);
}

.smms-splash-logo {
	max-width: 140px;
	height: auto;
	max-height: 50px;
	object-fit: contain;
	margin-bottom: 8px;
	mix-blend-mode: var(--smms-logo-blend);
	filter: var(--smms-logo-shadow);
}

.smms-auth-subtitle {
	margin: 0 0 32px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--smms-text-muted);
}

.smms-auth-card .smms-alert {
	margin-bottom: 24px;
	border-radius: 8px;
	border-color: transparent;
	background: var(--smms-danger-light);
}

.smms-auth-footnote {
	margin: 28px 0 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--smms-text-muted);
}

#smms-login-form .smms-form-group {
	margin-bottom: 20px;
}

#smms-login-form .smms-form-label {
	margin-bottom: 8px;
}

#smms-login-form .smms-form-input {
	min-height: 48px;
	border-radius: 8px;
	border-color: var(--smms-border);
	background: var(--smms-surface);
}

#smms-login-form .smms-form-input:focus {
	border-color: var(--smms-primary);
	box-shadow: 0 0 0 1px var(--smms-primary);
	background: var(--smms-surface);
}

#smms-login-form .smms-form-group.has-error .smms-form-input:focus {
	border-color: var(--smms-danger);
	box-shadow: 0 0 0 1px var(--smms-danger);
}

#smms-login-form .smms-btn-primary {
	min-height: 48px;
	margin-top: 8px;
	border-radius: 8px;
	font-size: 15px;
	box-shadow: none;
}

#smms-login-form .smms-btn-primary:hover {
	transform: none;
	box-shadow: none;
}

#smms-login-form .smms-btn-primary:focus-visible {
	outline: 2px solid var(--smms-primary);
	outline-offset: 2px;
}

#smms-login-form .smms-btn-primary:disabled {
	opacity: 0.7;
	cursor: progress;
}

@media (max-width: 768px) {
	.smms-auth-container {
		grid-template-columns: 1fr;
		grid-template-rows: auto 1fr;
	}

	.smms-auth-aside {
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		gap: 14px;
		padding: 20px 20px;
	}

	.smms-portal-wrapper .smms-auth-aside .smms-auth-brand img.smms-auth-logo {
		height: 40px !important;
		max-width: 80px !important;
		max-height: 40px !important;
	}

	.smms-auth-logo-fallback {
		width: 32px;
		height: 32px;
	}

	.smms-auth-aside-body {
		min-width: 0;
	}

	.smms-auth-org {
		font-size: 17px;
		letter-spacing: -0.01em;
		line-height: 1.2;
	}

	.smms-auth-product {
		margin-top: 2px;
		font-size: 13px;
	}

	.smms-auth-aside-text {
		display: none;
	}

	.smms-auth-photo,
	.smms-auth-aside.has-photo::after {
		display: none;
	}

	.smms-auth-main {
		padding: 36px 20px 28px;
	}

	.smms-auth-card {
		margin: 0 0 auto;
	}

	.smms-portal-wrapper h1.smms-auth-title {
		font-size: 26px;
	}
}

/* Form Elements */
.smms-form-group {
	margin-bottom: 18px;
}

/* Two-field row (e.g. Admission Number / Phone, Age / Gender) used in the
   Add/Edit Mentee forms. Collapses to a single column on narrow phones
   (see the max-width: 480px override below) instead of squeezing each
   field's label and placeholder into less than ~130px. */
.smms-form-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.smms-form-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 7px;
	color: var(--smms-text);
}

/* Defensive baseline: the host site's theme can define its own low-contrast
   `label` styling (meant for its own light-background forms), and that
   bleeds into any <label> here that doesn't carry an explicit portal color
   override. This happened on the Facilitation Allowance Rates & Reports
   subtabs, where several labels (Individual/Group KES, Year, Month,
   Mentor, Status, Session Type, Verification, the month checkboxes) had
   no class at all and rendered almost invisible against the dark
   background. Those instances now carry .smms-form-label (or the
   dedicated class below) directly, and this rule guards every other
   label in the portal against the same theme bleed-through going forward. */
.smms-portal-wrapper label {
	color: var(--smms-text);
}

.smms-allowance-month-checkbox-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	color: var(--smms-text);
}

.smms-form-input {
	width: 100%;
	padding: 12px 14px;
	background: var(--smms-bg);
	border: 1px solid var(--smms-border);
	border-radius: 10px;
	color: var(--smms-text);
	font-size: 16px; /* Prevents auto-zoom on iOS */
	font-family: inherit;
	transition: all 0.2s ease;
	min-height: 46px;
	outline: none;
}

/* Password field with a show/hide (eye) toggle inside the input's right edge. */
.smms-password-field {
	position: relative;
}

.smms-password-field .smms-form-input {
	padding-right: 48px;
}

/* Browsers such as Edge add their own reveal icon to password inputs;
   hide it so there is only ever one eye. */
.smms-password-field input::-ms-reveal,
.smms-password-field input::-ms-clear {
	display: none;
}

.smms-password-toggle {
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 8px;
	color: var(--smms-text-muted);
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

.smms-password-toggle:hover {
	color: var(--smms-text);
	background: var(--smms-overlay-soft);
}

.smms-password-toggle:focus-visible {
	outline: 2px solid var(--smms-primary);
	outline-offset: 1px;
}

.smms-password-toggle svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.smms-password-toggle .smms-password-icon-hide,
.smms-password-toggle.is-revealed .smms-password-icon-show {
	display: none;
}

.smms-password-toggle.is-revealed .smms-password-icon-hide {
	display: block;
}

.smms-form-input option {
	background-color: var(--smms-input-solid-bg);
	color: var(--smms-text);
	padding: 8px;
}

.smms-form-input:focus {
	border-color: var(--smms-primary);
	box-shadow: 0 0 0 3px var(--smms-primary-light);
	background: var(--smms-input-bg-focus);
}

.smms-form-input:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	background: var(--smms-disabled-overlay);
}

/* Buttons */
.smms-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 18px;
	min-height: 44px; /* Accessible touch target */
	border-radius: 10px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	border: 1px solid transparent;
	transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
	text-decoration: none;
	touch-action: manipulation;
	user-select: none;
}

.smms-btn:active {
	transform: scale(0.98);
}

.smms-btn-primary {
	background: var(--smms-primary-solid);
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.smms-btn-primary:hover {
	background: var(--smms-primary-solid-hover);
	box-shadow: 0 6px 18px rgba(59, 130, 246, 0.45);
	transform: translateY(-1px);
}

.smms-btn-secondary {
	background: var(--smms-overlay-medium);
	color: var(--smms-text);
	border-color: var(--smms-border);
}

.smms-btn-secondary:hover {
	background: var(--smms-overlay-strong);
}

.smms-btn-ghost {
	background: transparent;
	color: var(--smms-text-muted);
}

.smms-btn-ghost:hover {
	background: var(--smms-overlay-soft);
	color: var(--smms-text);
}

.smms-btn-sm {
	padding: 6px 12px;
	min-height: 36px;
	font-size: 12px;
	border-radius: 8px;
}

.smms-btn-full {
	width: 100%;
}

.smms-btn-icon {
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 10px;
}

/* Alerts */
.smms-alert {
	padding: 14px 16px;
	border-radius: 12px;
	font-size: 13px;
	line-height: 1.45;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.smms-alert-danger {
	background: rgba(239, 68, 68, 0.18);
	border: 1px solid rgba(239, 68, 68, 0.35);
	color: var(--smms-alert-danger-text);
}

.smms-alert-success {
	background: rgba(16, 185, 129, 0.18);
	border: 1px solid rgba(16, 185, 129, 0.35);
	color: var(--smms-alert-success-text);
}

.smms-alert-warning {
	background: rgba(245, 158, 11, 0.18);
	border: 1px solid rgba(245, 158, 11, 0.35);
	color: var(--smms-alert-warning-text);
}

.smms-alert-info {
	background: var(--smms-primary-light);
	border: 1px solid var(--smms-primary-border);
	color: var(--smms-info-text);
}

/* =========================================================================
   DASHBOARD TERM STRIP
   Left: current term + term progress bar. Divider. Right: days left in
   the current month (headline) above an inset month track.
   ========================================================================= */
.smms-term-strip {
	--smms-term-track-bg: rgba(0, 0, 0, 0.32);
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px 0;
	background: linear-gradient(120deg, var(--smms-overlay-soft), transparent 55%), var(--smms-card-bg);
	border: 1px solid var(--smms-border);
	border-radius: 22px;
	padding: 24px 26px;
	margin-bottom: 20px;
	backdrop-filter: blur(12px);
	box-shadow: var(--smms-shadow-sm);
}

.smms-portal-wrapper[data-smms-theme="light"] .smms-term-strip {
	--smms-term-track-bg: rgba(15, 23, 42, 0.06);
}

.smms-term-strip-main {
	flex: 0 0 240px;
	min-width: 0;
}

.smms-term-eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--smms-text-muted);
}

.smms-term-strip-title {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.15;
	color: var(--smms-heading);
	margin-top: 6px;
}

.smms-term-strip-dates {
	font-size: 13px;
	font-weight: 700;
	color: var(--smms-text-muted);
	margin-top: 8px;
}

.smms-term-progress {
	margin-top: 16px;
}

.smms-term-progress-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	font-size: 12px;
	margin-bottom: 7px;
}

.smms-term-progress-label {
	font-weight: 500;
	color: var(--smms-text-muted);
}

.smms-term-progress-note {
	font-weight: 700;
	color: var(--smms-heading);
	white-space: nowrap;
}

.smms-term-progress-bar {
	height: 6px;
	border-radius: 999px;
	background: var(--smms-overlay-strong);
	overflow: hidden;
}

.smms-term-progress-fill {
	height: 100%;
	border-radius: 999px;
	background: var(--smms-primary);
	transition: width 0.4s ease;
}

/* Right-hand side: sits behind a vertical divider and takes the rest of
   the card's width. */
.smms-term-strip-progress {
	flex: 1 1 320px;
	min-width: 0;
	align-self: stretch;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 18px;
	margin-left: 32px;
	padding-left: 32px;
	border-left: 1px solid var(--smms-border);
}

.smms-term-monthleft {
	display: flex;
	align-items: center;
	gap: 12px;
}

.smms-term-monthleft-num {
	font-size: 56px;
	font-weight: 800;
	line-height: 0.9;
	letter-spacing: -0.04em;
	color: var(--smms-heading);
}

.smms-term-monthleft-num-sm {
	font-size: 34px;
	letter-spacing: -0.03em;
}

.smms-term-monthleft-copy {
	display: flex;
	flex-direction: column;
	gap: 1px;
	line-height: 1.25;
}

.smms-term-monthleft-copy strong {
	font-size: 15px;
	font-weight: 800;
	color: var(--smms-heading);
}

.smms-term-monthleft-copy span {
	font-size: 12px;
	font-weight: 600;
	color: var(--smms-text-muted);
}

/* Inset month track: equal-width cells, current month filled. */
.smms-term-month-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 4px;
	width: 100%;
	padding: 4px;
	background: var(--smms-term-track-bg);
	border-radius: 14px;
}

.smms-term-month {
	padding: 10px 4px;
	border-radius: 10px;
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	background: transparent;
	color: var(--smms-text-muted);
}

.smms-term-month-past {
	background: transparent;
	color: var(--smms-text-muted);
}

.smms-term-month-current {
	background: var(--smms-primary-hover);
	color: #fff;
	font-weight: 800;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

/* Main Layout */
.smms-app-layout {
	display: flex;
	min-height: 100vh;
	position: relative;
	/* .smms-app-layout (and .smms-main-content within it) never had their
	   own background — they always relied on .smms-portal-wrapper's
	   background painting behind them. On desktop .smms-portal-wrapper now
	   collapses to zero height (see the min-height: 0 override below,
	   needed so it stops reserving scrollable space in the underlying
	   theme page), so there's nothing left behind the fixed layout to
	   paint that colour. Setting it here directly removes that dependency. */
	background: var(--smms-bg);
}

/* Desktop Sidebar */
.smms-sidebar {
	width: 270px;
	background: var(--smms-surface);
	border-right: 1px solid var(--smms-border);
	display: flex;
	flex-direction: column;
	padding: 24px 16px;
	flex-shrink: 0;
	z-index: 50;
}

/* Desktop only: pin the whole app layout to the viewport (not just the
   sidebar) so the portal always fills the screen exactly, regardless of
   where the shortcode happens to sit in the surrounding theme page (site
   header, page title, admin bar, footer, etc). Without this, .smms-sidebar
   being fixed to the true viewport top/height while .smms-app-layout and
   .smms-main-content stayed in normal document flow — starting wherever
   the theme's header pushed them to — meant the two disagreed about where
   "the viewport" was: a gap of theme chrome could show above the content
   column, and main-content's own 100vh made it overflow past the real
   viewport bottom by that same offset. Pinning the layout itself removes
   the dependency on that offset entirely.

   Pinning .smms-app-layout alone isn't quite enough, though: its parent
   .smms-portal-wrapper still keeps its own min-height: 100vh and stays in
   normal document flow, so the underlying theme page (header + this now-
   empty 100vh block + footer) is still tall enough to scroll. The fixed
   layout doesn't move when that happens, but overscrolling past the real
   end of that underlying page (rubber-band/elastic scroll) briefly shifts
   the whole viewport — including fixed elements — and exposes a sliver of
   the theme page's own background (reported as a black strip, since this
   theme's page background is black) right at the edge before it snaps
   back. Locking html/body from scrolling at all removes the underlying
   page's ability to scroll, so there's nothing left to overscroll into;
   all scrolling happens inside .smms-sidebar / .smms-main-content instead,
   exactly as intended. Mobile keeps its own bottom-sheet behavior and
   normal page scroll, fully redefined in the max-width:768px block, so
   none of this touches it. */
@media (min-width: 769px) {
	html:has(.smms-portal-wrapper),
	body:has(.smms-portal-wrapper) {
		overflow: hidden !important;
		height: 100vh !important;
		/* Belt-and-suspenders alongside the overflow-y:scroll fix on
		   .smms-main-content below: if a browser doesn't support the
		   :has() selectors above, the outer document (not the inner
		   container) becomes the thing that scrolls instead, and this
		   keeps that outer scrollbar's width reserved too, so the top
		   bar's width can't be affected by scrolling either way. */
		scrollbar-gutter: stable;
	}

	/* Only collapse the wrapper once .smms-app-layout has actually mounted
	   and is painting its own full-viewport background (see above) — not
	   before. Before portal-app.js finishes loading, .smms-portal-wrapper
	   contains only the loading splash (.smms-loading-splash, which is
	   just ~65vh tall and has no background of its own), so collapsing the
	   wrapper at that point left nothing painting the bottom ~35% of the
	   screen — showing the theme page's own black background through
	   instead. Scoping this to :has(.smms-app-layout) keeps the wrapper at
	   its normal min-height: 100vh (covering the full screen with its own
	   background) during that loading state, and only hands off painting
	   duty to .smms-app-layout once it exists. */
	.smms-portal-wrapper:has(.smms-app-layout) {
		min-height: 0;
	}

	.smms-app-layout {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		overflow: hidden;
	}

	/* WordPress's admin toolbar (#wpadminbar) is itself position:fixed at
	   the true viewport top with z-index:99999 — higher than anything in
	   this layout — so pinning .smms-app-layout to top:0 puts its sidebar
	   brand/collapse-toggle and top-bar underneath it. Logged-in users get
	   the "admin-bar" body class whenever the toolbar is showing; offset
	   the fixed layout down by the toolbar's height (32px normally, 46px
	   at WP's own 782px toolbar breakpoint, which doesn't line up with
	   this plugin's own 769px one) so nothing is clipped under it. */
	body.admin-bar .smms-app-layout {
		top: 32px;
	}

	.smms-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		height: 100vh;
		overflow-y: auto;
	}

	/* .smms-sidebar is fixed to the true viewport in its own right, not to
	   .smms-app-layout's box — position:fixed on an ancestor does not
	   create a new containing block for a fixed descendant (only
	   transform/filter/will-change etc. do). So offsetting .smms-app-layout
	   above does not carry over to the sidebar; it needs the same admin-bar
	   offset applied directly, or it renders clipped under the toolbar. */
	body.admin-bar .smms-sidebar {
		top: 32px;
		height: calc(100vh - 32px);
	}

	.smms-main-content {
		margin-left: 270px;
		height: 100vh;
		/* The top bar used to live inside this element's own scrolling
		   box (overflow-y here), which meant its width was always at the
		   mercy of whether that box's scrollbar happened to be showing —
		   the root cause of the top bar changing size page to page.
		   Overflow now sits on .smms-container alone (below), so this
		   element itself never scrolls and never grows/shrinks a
		   scrollbar of its own — the top bar is structurally outside the
		   scrolling area, not just defended with reserved gutter space. */
		overflow: hidden;
	}

	/* Icon-collapse mode. .smms-sidebar-collapsed is toggled on
	   .smms-app-layout (the shared parent of the sidebar and the main
	   content) so both sides of the layout can react to one state without
	   duplicating the class onto each. Deliberately scoped inside this
	   same min-width:769px block: on a narrower viewport the sidebar is
	   the mobile bottom sheet instead, where "icon-only" doesn't
	   apply, so none of this should take effect there even if the class
	   happens to still be in the DOM from a desktop session. */
	.smms-app-layout.smms-sidebar-collapsed .smms-sidebar {
		width: 80px;
		padding-left: 12px;
		padding-right: 12px;
	}

	.smms-app-layout.smms-sidebar-collapsed .smms-main-content {
		margin-left: 80px;
	}

	.smms-app-layout.smms-sidebar-collapsed .smms-sidebar-header {
		justify-content: center;
		padding-left: 0;
		padding-right: 0;
	}

	/* The uploaded site logo can be any aspect ratio, so there's no safe
	   way to keep it legible at icon width — keep just the mark/logo
	   centered and drop the site name, rather than risk a squashed logo
	   or an empty header bar. */
	.smms-app-layout.smms-sidebar-collapsed .smms-brand-lockup {
		justify-content: center;
	}

	.smms-app-layout.smms-sidebar-collapsed .smms-brand-name {
		display: none;
	}

	.smms-app-layout.smms-sidebar-collapsed .smms-nav-item {
		position: relative;
		justify-content: center;
		padding: 12px 0;
		gap: 0;
	}

	.smms-app-layout.smms-sidebar-collapsed .smms-nav-item span:not(.smms-badge) {
		display: none;
	}

	.smms-app-layout.smms-sidebar-collapsed .smms-nav-item .smms-badge {
		position: absolute;
		top: 4px;
		right: 12px;
		margin-left: 0 !important;
		min-width: 16px;
		height: 16px;
		padding: 0 4px;
		font-size: 10px;
		line-height: 16px;
	}

	.smms-app-layout.smms-sidebar-collapsed .smms-sidebar-footer {
		align-items: center;
	}

	.smms-app-layout.smms-sidebar-collapsed .smms-sidebar-footer-btn-label,
	.smms-app-layout.smms-sidebar-collapsed .smms-sidebar-version {
		display: none;
	}

	.smms-app-layout.smms-sidebar-collapsed .smms-sidebar-footer-btn {
		width: 44px;
		height: 44px;
		padding: 0;
		gap: 0;
	}
}

/* WP's admin toolbar switches to its own 46px-tall "mobile" version at
   782px, which doesn't line up with this plugin's 769px desktop-layout
   breakpoint — so between 769-782px the toolbar is already 46px tall
   while the fixed desktop layout above is still using the 32px offset.
   Override it for that narrow band. */
@media (min-width: 769px) and (max-width: 782px) {
	body.admin-bar .smms-app-layout {
		top: 46px;
	}

	body.admin-bar .smms-sidebar {
		top: 46px;
		height: calc(100vh - 46px);
	}
}

/* Desktop icon-collapse handle. Deliberately NOT laid out as a flex
   child of .smms-sidebar-header any more: that made its visibility (and
   its width) depend on however much space the brand lockup's logo/name
   happened to leave behind, which is exactly the kind of squeeze that
   was swallowing it entirely on some sites/themes. Anchoring it as its
   own fixed-position circle straddling the sidebar's right edge — a
   step outside the sidebar's own box model — makes it immune to that:
   it always has a fixed size and a fixed spot, independent of the
   header's contents, the site logo's aspect ratio, or any theme CSS
   that happens to target buttons inside the header row. It's positioned
   the same way .smms-sidebar itself is (fixed to the true viewport), so
   the two move together; only its `left` changes between the expanded
   (270px) and collapsed (80px) sidebar widths, handled by the
   .smms-sidebar-collapsed override next to it above. */
.smms-sidebar-collapse-toggle {
	position: fixed;
	top: 40px;
	left: 270px;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	background: var(--smms-surface);
	border: 1px solid var(--smms-border);
	border-radius: 50%;
	color: var(--smms-text-muted);
	cursor: pointer;
	pointer-events: auto;
	box-shadow: var(--smms-shadow-sm);
	/* Now a direct child of <body> (see syncSidebarCollapseToggle() in
	   portal-app.js), so this is evaluated against body's other
	   children directly rather than trapped inside a nested
	   position:fixed ancestor's own stacking context — a generously
	   high value here is what actually keeps that promise against
	   arbitrary theme/plugin chrome elsewhere on the page. */
	z-index: 99000;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.smms-sidebar-collapse-toggle svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
	flex-shrink: 0;
}

.smms-sidebar-collapse-toggle:hover {
	background: var(--smms-overlay-medium);
	color: var(--smms-heading);
	border-color: var(--smms-primary-border);
}

.smms-sidebar-collapse-toggle:focus-visible {
	outline: 2px solid var(--smms-primary);
	outline-offset: 2px;
}

/* Same admin-bar offset the sidebar itself needs (see .smms-sidebar
   above) — the toggle is fixed to the true viewport too, so without
   this it would sit 32/46px too high once WP's toolbar is showing. */
body.admin-bar .smms-sidebar-collapse-toggle {
	top: 72px;
}

@media (min-width: 769px) and (max-width: 782px) {
	body.admin-bar .smms-sidebar-collapse-toggle {
		top: 86px;
	}
}

/* .smms-sidebar-collapsed-state is set directly on the button by
   syncSidebarCollapseToggle() in portal-app.js — not inherited from a
   .smms-sidebar-collapsed ancestor class, since this button lives
   outside the sidebar/app-layout tree entirely (appended to <body>; see
   that function for why). Slides the handle from the 270px expanded
   edge over to the 80px icon-rail edge. */
.smms-sidebar-collapse-toggle.smms-sidebar-collapsed-state {
	left: 80px;
}

.smms-theme-toggle-collapsed {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0 auto 10px;
	padding: 0;
	background: var(--smms-bg-subtle);
	border: 1px solid var(--smms-border);
	border-radius: 10px;
	color: var(--smms-text-muted);
	cursor: pointer;
}

.smms-theme-toggle-collapsed svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}

.smms-theme-toggle-collapsed:hover {
	color: var(--smms-text);
}

.smms-sidebar-header {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 700;
	font-size: 18px;
	padding: 0 8px 20px 8px;
	border-bottom: 1px solid var(--smms-border);
	margin-bottom: 16px;
}

.smms-brand-lockup {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	flex: 1;
	overflow: hidden;
}

.smms-brand-name {
	font-size: 16px;
	font-weight: 700;
	color: var(--smms-heading);
	letter-spacing: -0.01em;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.smms-sidebar-logo {
	max-width: 170px;
	height: auto;
	max-height: 46px;
	object-fit: contain;
	mix-blend-mode: var(--smms-logo-blend);
	filter: var(--smms-logo-shadow-sm);
	flex-shrink: 0;
}

.smms-nav {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex-grow: 1;
	overflow-y: auto;
}

.smms-nav-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 10px;
	color: var(--smms-text-muted);
	font-weight: 500;
	font-size: 14px;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.18s ease;
	user-select: none;
}

.smms-nav-item:focus-visible {
	outline: 2px solid var(--smms-primary);
	outline-offset: 2px;
}

.smms-nav-item:hover {
	background: var(--smms-overlay-soft);
	color: var(--smms-text);
}

.smms-nav-item.active {
	background: rgba(59, 130, 246, 0.12);
	color: var(--smms-link);
	font-weight: 600;
}

.smms-nav-item svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
	flex-shrink: 0;
}

.smms-sidebar-footer {
	border-top: 1px solid var(--smms-border);
	padding-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.smms-sidebar-version {
	text-align: center;
	font-size: 11px;
	font-weight: 600;
	color: var(--smms-text-muted);
	letter-spacing: 0.02em;
	margin-top: 6px;
}

/* Content Area */
.smms-main-content {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
	/* No overflow rule here on purpose: this element itself never
	   scrolls. Scrolling is owned entirely by .smms-container below, so
	   the sticky-no-longer-needed .smms-top-bar (a sibling of
	   .smms-container, not a descendant of whatever scrolls) can never
	   be resized by a scrollbar appearing or disappearing. See
	   .smms-container for where the old .smms-main-content scroll
	   behaviour and its themed scrollbar moved to. */
}


.smms-top-bar {
	height: 76px;
	border-bottom: 1px solid var(--smms-border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 0 32px;
	background: var(--smms-topbar-bg);
	backdrop-filter: blur(14px);
	position: sticky;
	top: 0;
	z-index: 40;
}

.smms-top-bar-left {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
	flex-shrink: 1;
}

.smms-top-bar-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
}

.smms-top-title {
	font-size: 18px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
}

/* --- Global period switcher (Admin/Head of Mentoring) -------------------
   A single compact trigger that opens an anchored panel, rather than the
   old inline row of label + semester select + month input + reset button.
   That row had no fallback once the sidebar, title, search box, semester
   pill, bell, and user badge left it too little width: past a certain
   viewport, flex-wrap dropped the date input onto a second line, but the
   top bar's fixed height didn't grow to fit it, so it visually floated
   below the bar's border, over the page content underneath. One trigger
   of near-constant width sits safely in the top bar at any size; the
   controls that used to always be visible now live in the panel below. */
.smms-period-switcher {
	position: relative;
	min-width: 0;
}

.smms-period-switcher-trigger {
	display: flex;
	align-items: center;
	gap: 6px;
	background: var(--smms-overlay-faint);
	border: 1px solid var(--smms-border);
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 12px;
	font-family: inherit;
	color: var(--smms-text-muted);
	cursor: pointer;
	max-width: 100%;
	overflow: hidden;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.smms-period-switcher-trigger span {
	overflow: hidden;
	text-overflow: ellipsis;
}

.smms-period-switcher-trigger svg {
	fill: currentColor;
	flex-shrink: 0;
}

.smms-period-switcher-trigger:hover,
.smms-period-switcher-trigger[aria-expanded="true"] {
	background: var(--smms-overlay-medium);
	border-color: var(--smms-primary-border);
}

.smms-period-switcher-panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	width: 260px;
	max-width: min(260px, calc(100vw - 32px));
	background: var(--smms-card-bg-elevated);
	border: 1px solid var(--smms-border);
	border-radius: var(--smms-radius);
	box-shadow: var(--smms-shadow-lg);
	padding: 16px;
	z-index: 200;
}

/* On narrow viewports the panel can't reliably stay under a trigger that
   itself sits near the left edge of a cramped top bar — center it in the
   viewport instead of anchoring to the trigger, the same way a small
   popover would on a phone-sized screen. */
@media (max-width: 480px) {
	.smms-period-switcher-panel {
		position: fixed;
		top: auto;
		bottom: 16px;
		left: 16px;
		right: 16px;
		width: auto;
		max-width: none;
	}
}

/* --- Active semester pill ------------------------------------------------- */
.smms-top-semester-pill {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--smms-overlay-faint);
	border: 1px solid var(--smms-border);
	font-size: 12px;
	font-weight: 600;
	color: var(--smms-text);
	white-space: nowrap;
}

.smms-top-semester-pill svg {
	width: 14px;
	height: 14px;
	fill: var(--smms-text-dim);
	flex-shrink: 0;
}

.smms-top-semester-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--smms-success);
	box-shadow: 0 0 0 3px var(--smms-success-light);
	flex-shrink: 0;
}

/* --- Notifications bell --------------------------------------------------- */
.smms-top-bell {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: none;
	padding: 0;
	border-radius: 50%;
	background: var(--smms-overlay-faint);
	cursor: pointer;
	flex-shrink: 0;
	appearance: none;
	-webkit-appearance: none;
	font: inherit;
	color: inherit;
	transition: background 0.2s ease;
}

.smms-top-bell:hover {
	background: var(--smms-overlay-medium);
}

.smms-top-bell svg {
	width: 18px;
	height: 18px;
	fill: var(--smms-text-dim);
}

.smms-top-bell.has-alerts svg {
	fill: var(--smms-text);
}

.smms-top-bell-badge {
	position: absolute;
	top: -3px;
	right: -3px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--smms-danger);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--smms-topbar-bg);
}

/* Notification panel. Opens under the bell; on phones it drops from the
   header edge to edge. Rows are buttons, so every state is pinned (the same
   protection as the sign-in controls) against site-theme button styles. */
.smms-notif {
	position: relative;
	display: flex;
	flex-shrink: 0;
}

.smms-portal-wrapper .smms-notif > button.smms-top-bell,
.smms-portal-wrapper .smms-notif > button.smms-top-bell:focus,
.smms-portal-wrapper .smms-notif > button.smms-mobile-icon-btn,
.smms-portal-wrapper .smms-notif > button.smms-mobile-icon-btn:focus {
	background: var(--smms-overlay-faint) !important;
	box-shadow: none !important;
	border: 0 !important;
}

.smms-portal-wrapper .smms-notif > button.smms-top-bell:hover,
.smms-portal-wrapper .smms-notif > button.smms-mobile-icon-btn:hover {
	background: var(--smms-overlay-medium) !important;
}

.smms-portal-wrapper .smms-notif.is-open > button.smms-top-bell,
.smms-portal-wrapper .smms-notif.is-open > button.smms-mobile-icon-btn {
	background: var(--smms-primary-light) !important;
}

.smms-notif.is-open > button svg {
	fill: var(--smms-link);
}

.smms-notif > button:focus-visible {
	outline: 2px solid var(--smms-primary);
	outline-offset: 2px;
}

.smms-notif-panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 90;
	width: 380px;
	max-width: calc(100vw - 24px);
	background: var(--smms-card-bg-elevated);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border: 1px solid var(--smms-border);
	border-radius: var(--smms-radius);
	box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	text-align: left;
}

.smms-notif-panel[hidden] {
	display: none;
}

.smms-notif-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--smms-border-subtle);
}

.smms-notif-heading {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--smms-heading);
}

.smms-notif-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: min(68vh, 440px);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.smms-notif-list > li + li {
	border-top: 1px solid var(--smms-border-subtle);
}

.smms-portal-wrapper .smms-notif-panel button.smms-notif-item,
.smms-portal-wrapper .smms-notif-panel button.smms-notif-item:focus,
.smms-portal-wrapper .smms-notif-panel button.smms-notif-item:active {
	--n: var(--smms-primary);
	display: flex;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 12px 16px 12px 13px;
	background: transparent !important;
	border: 0 !important;
	border-left: 3px solid var(--n) !important;
	border-radius: 0;
	box-shadow: none !important;
	text-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	text-align: left;
	font: inherit;
	line-height: 1.35;
	color: var(--smms-text) !important;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.smms-portal-wrapper .smms-notif-panel button.smms-notif-item--urgent { --n: var(--smms-danger); }
.smms-portal-wrapper .smms-notif-panel button.smms-notif-item--info { --n: var(--smms-border); }

.smms-portal-wrapper .smms-notif-panel button.smms-notif-item:hover {
	background: var(--smms-overlay-faint) !important;
}

.smms-portal-wrapper .smms-notif-panel button.smms-notif-item:focus-visible,
.smms-portal-wrapper .smms-notif-panel button.smms-notif-more:focus-visible {
	outline: 2px solid var(--smms-primary) !important;
	outline-offset: -2px;
}

.smms-notif-icon {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--smms-primary-light);
	color: var(--smms-link);
}

.smms-notif-item--urgent .smms-notif-icon {
	background: var(--smms-danger-light);
	color: var(--smms-danger-text);
}

.smms-notif-item--info .smms-notif-icon {
	background: var(--smms-border-subtle);
	color: var(--smms-text-muted);
}

.smms-notif-icon svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}

.smms-notif-body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.smms-notif-item-title {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--smms-heading);
}

.smms-notif-item-desc {
	font-size: 12px;
	color: var(--smms-text-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.smms-portal-wrapper .smms-notif-panel button.smms-notif-more,
.smms-portal-wrapper .smms-notif-panel button.smms-notif-more:focus {
	display: block;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 12px 16px;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0;
	box-shadow: none !important;
	text-align: center;
	text-transform: none;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--smms-link) !important;
	cursor: pointer;
}

.smms-portal-wrapper .smms-notif-panel button.smms-notif-more:hover {
	background: var(--smms-primary-light) !important;
}

.smms-notif-empty {
	padding: 30px 20px 32px;
	text-align: center;
}

.smms-notif-empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--smms-success-light);
	color: var(--smms-success-text);
}

.smms-notif-empty-icon svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.smms-notif-empty-title {
	margin-top: 12px;
	font-size: 14px;
	font-weight: 700;
	color: var(--smms-heading);
}

.smms-notif-empty-sub {
	margin-top: 2px;
	font-size: 13px;
	color: var(--smms-text-muted);
}

/* Phones: the panel drops from just under the 60px header, edge to edge. */
@media (max-width: 768px) {
	.smms-notif-panel {
		position: fixed;
		top: calc(env(safe-area-inset-top, 0px) + 66px);
		left: 12px;
		right: 12px;
		width: auto;
		max-width: none;
	}
}

.smms-top-user {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}

.smms-top-user-role {
	font-size: 10px;
	font-weight: 700;
	color: var(--smms-primary-text, var(--smms-primary));
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-top: 1px;
}

.smms-user-badge {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 16px 6px 6px;
	/* A large, height-independent radius (rather than the previous 10px)
	   so the badge is a true pill/stadium shape however tall it ends up —
	   matching the fully circular (border-radius: 50%) avatar it wraps,
	   instead of a rounded rectangle whose corners cut awkwardly close to
	   the circle. */
	border-radius: 999px;
	background: var(--smms-overlay-faint);
	transition: background 0.2s ease;
}

.smms-user-badge:hover {
	background: var(--smms-overlay-medium);
}

/* On narrower desktop/laptop widths the sidebar (270px) plus the top bar's
   own padding leaves too little room for everything in one row. Drop the
   least essential piece first: the semester is already shown in the
   dashboard's term strip. */
@media (max-width: 1040px) {
	.smms-top-semester-pill {
		display: none;
	}
}

.smms-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--smms-surface-hover);
	border: 1px solid var(--smms-border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	/* Initials on the neutral circle follow the theme text colour: white on the light theme's pale circle was invisible. */
	color: var(--smms-text);
	font-size: 14px;
	flex-shrink: 0;
	box-shadow: var(--smms-shadow-avatar);
	overflow: hidden;
}

.smms-avatar svg {
	width: 62%;
	height: 62%;
	fill: currentColor;
	flex-shrink: 0;
}

/* Gender-based default avatars: a flat, single-tone fill (no gradient)
   with a simple bust icon, so mentors/mentees without an uploaded photo
   still get a distinct, professional-looking avatar instead of a plain
   initial. Falls back to the neutral initial circle above when gender
   isn't set. */
.smms-avatar-male {
	color: #ffffff;
	background: var(--smms-primary-solid);
	border-color: var(--smms-primary-border);
}

.smms-avatar-female {
	color: #ffffff;
	background: #9333ea; /* 5.4:1 against white in both themes (the dark theme's --smms-accent is only 4.0:1) */
	border-color: rgba(168, 85, 247, 0.4);
}

.smms-avatar-sm {
	width: 30px;
	height: 30px;
	font-size: 12px;
}

.smms-avatar-lg {
	width: 52px;
	height: 52px;
	font-size: 20px;
}

/* Avatar Stack — overlapping mini-avatars used to visualize a roster
   count (e.g. assigned mentees) without inventing an arbitrary capacity
   number. */
.smms-avatar-stack {
	display: flex;
	align-items: center;
}

.smms-avatar-stack .smms-avatar {
	margin-left: -10px;
	border: 2px solid var(--smms-surface);
	box-shadow: none;
}

.smms-avatar-stack .smms-avatar:first-child {
	margin-left: 0;
}

.smms-avatar-overflow {
	background: var(--smms-surface-hover);
	color: var(--smms-text-muted);
	font-weight: 700;
	font-size: 11px;
}

.smms-container {
	padding: 24px 28px;
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	/* Owns the scrolling that used to belong to .smms-main-content
	   (see the comment there). flex:1 + min-height:0 lets this element
	   fill whatever space is left under the fixed-height .smms-top-bar
	   and scroll independently of it — the header is a sibling outside
	   this box, so its width is never affected by this scrollbar
	   appearing or disappearing. */
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--smms-border) transparent;
}

.smms-container::-webkit-scrollbar {
	width: 8px;
}

.smms-container::-webkit-scrollbar-track {
	background: transparent;
}

.smms-container::-webkit-scrollbar-thumb {
	background: var(--smms-border);
	border-radius: 999px;
}

.smms-container::-webkit-scrollbar-thumb:hover {
	background: var(--smms-overlay-medium);
}


/* Grid & Cards */
.smms-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
	margin-bottom: 24px;
}

.smms-card {
	background: var(--smms-card-bg);
	border: 1px solid var(--smms-border);
	border-radius: var(--smms-radius);
	padding: 20px;
	backdrop-filter: blur(12px);
	box-shadow: var(--smms-shadow-sm);
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.smms-clickable-card {
	cursor: pointer;
	position: relative;
}

.smms-clickable-card:hover {
	transform: translateY(-3px);
	border-color: var(--smms-primary-border);
	box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.25);
}

.smms-clickable-card:active {
	transform: translateY(-1px);
}

/* =========================================================================
   DASHBOARD HERO + STAT LIST
   Replaces a flat wall of identical stat cards with one emphasized
   "headline" metric (a card of its own size/shape) beside a compact list
   of secondary stats — so importance reads from layout and colour, not
   just from a number sitting in an otherwise identical box.
   ========================================================================= */
.smms-dash-top-grid {
	display: grid;
	grid-template-columns: minmax(260px, 380px) 1fr;
	gap: 18px;
	margin-bottom: 24px;
	align-items: stretch;
}

@media (max-width: 768px) {
	.smms-dash-top-grid {
		grid-template-columns: 1fr;
	}
}

.smms-hero-card {
	background: var(--smms-card-bg);
	border: 1px solid var(--smms-border);
	border-radius: var(--smms-radius-lg);
	padding: 24px;
	backdrop-filter: blur(12px);
	box-shadow: var(--smms-shadow);
	display: flex;
	align-items: center;
	gap: 20px;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.smms-progress-ring-wrap {
	position: relative;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.smms-progress-ring-value {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 24px;
	font-weight: 800;
	color: var(--smms-heading);
}

.smms-hero-card-info {
	min-width: 0;
	flex: 1;
}

.smms-hero-card-headline {
	font-size: 16px;
	font-weight: 700;
	color: var(--smms-heading);
	margin-top: 4px;
	line-height: 1.35;
}

.smms-hero-card-plain-value {
	font-size: 44px;
	font-weight: 800;
	color: var(--smms-heading);
	margin-top: 4px;
	line-height: 1.1;
}

.smms-stat-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.smms-stat-row {
	--stat-accent: var(--smms-primary);
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: var(--smms-card-bg);
	border: 1px solid var(--smms-border);
	border-radius: var(--smms-radius-sm);
	padding: 14px 18px;
	backdrop-filter: blur(12px);
	box-shadow: var(--smms-shadow-sm);
	transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.smms-clickable-row {
	cursor: pointer;
}

.smms-clickable-row:hover {
	transform: translateX(2px);
	background: var(--smms-surface-hover);
}

.smms-clickable-row:active {
	transform: translateX(0);
}

.smms-stat-row-main {
	min-width: 0;
	flex: 1;
}

.smms-stat-row-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--smms-text-muted);
}

.smms-stat-row-sub {
	font-size: 12px;
	color: var(--smms-text-muted);
	margin-top: 4px;
	font-weight: 600;
}

.smms-stat-row-value {
	font-size: 24px;
	font-weight: 800;
	color: var(--smms-heading);
	flex-shrink: 0;
}

.smms-segmented-bar {
	display: flex;
	width: 100%;
	height: 10px;
	border-radius: 6px;
	overflow: hidden;
	margin-top: 12px;
}

.smms-segmented-bar > div {
	transition: width 0.4s ease;
}

.smms-legend-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-right: 5px;
	vertical-align: middle;
}

.smms-card-hint {
	font-size: 12px;
	color: var(--smms-link);
	margin-top: 10px;
	display: flex;
	align-items: center;
	gap: 4px;
	font-weight: 600;
}

.smms-card-title {
	font-size: 13px;
	font-weight: 600;
	color: var(--smms-text-muted);
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.smms-card-value {
	font-size: 26px;
	font-weight: 800;
	color: var(--smms-text);
}

/* Badges */
.smms-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 8px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

.smms-badge-success { background: var(--smms-success-light); color: var(--smms-success-text); border: 1px solid rgba(16, 185, 129, 0.3); }
.smms-badge-warning { background: var(--smms-warning-light); color: var(--smms-warning-text); border: 1px solid rgba(245, 158, 11, 0.3); }
.smms-badge-danger  { background: var(--smms-danger-light);  color: var(--smms-danger-text); border: 1px solid rgba(239, 68, 68, 0.3); }
.smms-badge-primary { background: var(--smms-primary-light); color: var(--smms-link); border: 1px solid var(--smms-primary-border); }
.smms-badge-neutral { background: var(--smms-overlay-medium); color: var(--smms-text-muted); border: 1px solid var(--smms-border); }

/* =========================================================================
   MENTEE PROFILE COMPLETION (Action Item group + Edit Mentee CTA states)
   ========================================================================= */

/* Subtle accent border so the Profile Completion group reads as its
   own action item "type" rather than blending into the regular
   topic-based action item cards below it. */
.smms-profile-completion-card {
	border-color: var(--smms-accent-light);
}

.smms-profile-completion-card.is-expanded {
	border-color: var(--smms-accent);
}

/* The collapsed header gets its own row for the completion meter
   instead of squeezing it in alongside the title, badge, and chevron —
   the meter is the whole point of this card, so it gets room to be
   readable rather than being the first thing dropped on a narrow
   screen. The top row keeps the usual title/badge/chevron layout;
   the meter spans the full width beneath it. */
/* The collapsed header is a dashboard-style summary rather than the
   usual title/subtitle row: a completion ring on the left, an eyebrow
   label + title + subtitle + completeness meter in the middle, and
   the expand chevron on the right, each section divided by a hairline. */
.smms-collapsible-header.smms-profile-completion-header {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 18px 20px;
}

.smms-profile-completion-ring-col {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.smms-profile-completion-ring-value {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
}

.smms-profile-completion-ring-pct {
	font-size: 19px;
	font-weight: 800;
}

.smms-profile-completion-ring-caption {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--smms-text-muted);
}

.smms-profile-completion-divider {
	width: 1px;
	align-self: stretch;
	background: var(--smms-border);
	flex-shrink: 0;
}

.smms-profile-completion-body-col {
	flex: 1 1 auto;
	min-width: 0;
}

.smms-profile-completion-eyebrow {
	font-size: 11px;
	font-weight: 700;
	color: var(--smms-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 3px;
}

.smms-profile-completion-body-col .smms-collapsible-title {
	font-size: 16px;
	margin-bottom: 3px;
}

.smms-profile-completion-subtitle {
	margin-bottom: 12px;
}

.smms-profile-completion-meter-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.smms-profile-completion-meter-caption {
	font-size: 11px;
	font-weight: 700;
	color: var(--smms-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	flex-shrink: 0;
}

.smms-profile-completion-meter {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 320px;
}

/* Below ~620px there's no room for a four-column row, so the ring and
   chevron stay on one top line (mirroring the mobile-header pattern
   used elsewhere) and the text/meter content wraps onto its own full
   line beneath, with the hairline dividers dropped since they no
   longer sit between anything. */
@media (max-width: 640px) {
	.smms-collapsible-header.smms-profile-completion-header {
		flex-wrap: wrap;
		padding: 16px;
	}

	.smms-profile-completion-divider {
		display: none;
	}

	.smms-profile-completion-ring-col {
		order: 1;
	}

	.smms-collapsible-right {
		order: 2;
		margin-left: auto;
	}

	.smms-profile-completion-body-col {
		order: 3;
		flex-basis: 100%;
		margin-top: 4px;
	}

	.smms-profile-completion-meter {
		max-width: none;
	}
}

/* "+ Add [Field]" CTA chip — a tappable pill that takes a mentor
   straight to the missing field in the Edit Mentee form. Styled as an
   outlined warning pill (not a solid button) so a row of several
   doesn't visually shout, but still reads clearly as actionable. */
.smms-completion-chip {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: var(--smms-warning-light);
	border: 1px solid rgba(245, 158, 11, 0.35);
	color: var(--smms-warning-text);
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.18s ease;
	touch-action: manipulation;
}

.smms-completion-chip:hover {
	background: rgba(245, 158, 11, 0.28);
	transform: translateY(-1px);
}

.smms-completion-chip:active {
	transform: scale(0.97);
}

/* Highlights the specific field(s) a profile-completion CTA linked
   to, inside the Edit Mentee form, so a mentor lands on exactly what
   needs filling in instead of having to re-scan the whole form. */
.smms-field-highlight {
	border-color: var(--smms-warning) !important;
	box-shadow: 0 0 0 3px var(--smms-warning-light) !important;
	animation: smms-field-highlight-pulse 1.6s ease-in-out 2;
}

@keyframes smms-field-highlight-pulse {
	0%, 100% { box-shadow: 0 0 0 3px var(--smms-warning-light); }
	50% { box-shadow: 0 0 0 5px var(--smms-warning-light); }
}

/* =========================================================================
   MONTHLY CHECK-IN TRACKER (Mentor "My Compliance" tab)
   Turns the raw compliance percentage into an actionable roster: one
   banner for the group-session requirement, one row per mentee for the
   individual-session requirement. Reuses the existing card/badge/avatar
   vocabulary above rather than introducing a new visual language.
   ========================================================================= */
.smms-checkin-banner {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--smms-warning-light);
	border: 1px solid rgba(245, 158, 11, 0.3);
	margin-bottom: 4px;
}

.smms-checkin-banner.is-met {
	background: var(--smms-success-light);
	border-color: rgba(16, 185, 129, 0.3);
}

.smms-checkin-banner-icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 800;
	background: var(--smms-overlay-medium);
	color: var(--smms-warning-text);
}

.smms-checkin-banner.is-met .smms-checkin-banner-icon {
	color: var(--smms-success-text);
}

.smms-checkin-banner-body {
	flex: 1;
	min-width: 0;
}

.smms-checkin-banner-title {
	font-size: 14px;
	font-weight: 700;
}

.smms-checkin-banner-sub {
	font-size: 12px;
	color: var(--smms-text-muted);
	margin-top: 2px;
}

.smms-checkin-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.smms-checkin-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--smms-overlay-faint);
	border: 1px solid var(--smms-border);
	transition: background 0.18s ease, border-color 0.18s ease;
}

.smms-checkin-row.is-met {
	opacity: 0.72;
}

.smms-checkin-row:not(.is-met):hover {
	background: var(--smms-overlay-soft);
	border-color: var(--smms-primary-border);
}

.smms-checkin-row-body {
	flex: 1;
	min-width: 0;
}

.smms-checkin-row-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--smms-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.smms-checkin-row-sub {
	font-size: 11px;
	color: var(--smms-text-muted);
	margin-top: 1px;
}

/* =========================================================================
   SEARCH & FILTER TOOLBAR (Mobile First)
   ========================================================================= */
.smms-toolbar {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 18px;
}

.smms-search-box {
	position: relative;
	width: 100%;
}

.smms-search-icon,
.smms-portal-wrapper .smms-search-icon {
	position: absolute !important;
	left: 14px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	width: 18px !important;
	height: 18px !important;
	fill: var(--smms-text-dim);
	pointer-events: none !important;
}

/* Selector duplicated with the .smms-portal-wrapper prefix, plus
   !important on the properties that actually cause misalignment, so a
   theme's own input/search-field styling can't win the cascade tie —
   this plugin's assets don't control whether they enqueue before or
   after the active theme's stylesheet. */
.smms-search-input,
.smms-portal-wrapper .smms-search-input {
	width: 100% !important;
	padding: 10px 14px 10px 42px !important;
	background: var(--smms-search-bg);
	border: 1px solid var(--smms-border);
	border-radius: 12px;
	color: var(--smms-text);
	font-size: 16px !important; /* Matches .smms-form-input — under 16px lets iOS auto-zoom the page on focus */
	font-family: inherit;
	min-height: 44px;
	transition: all 0.2s ease;
	outline: none;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important; /* Strip native search-field chrome so it can't add its own icon/clear button on top of ours */
}

/* Native search decorations (magnifier icon, "clear" button, results
   dropdown arrow) fight with the custom icon and placeholder on mobile
   Safari/Chrome — hide them since we render our own icon. */
.smms-search-input::-webkit-search-decoration,
.smms-search-input::-webkit-search-cancel-button,
.smms-search-input::-webkit-search-results-button,
.smms-search-input::-webkit-search-results-decoration {
	-webkit-appearance: none !important;
	appearance: none !important;
	display: none !important;
}

.smms-search-input::placeholder {
	color: var(--smms-text-dim);
	opacity: 1;
}

.smms-search-input:focus {
	border-color: var(--smms-primary);
	box-shadow: 0 0 0 3px var(--smms-primary-light);
	background: var(--smms-search-bg-focus);
}

.smms-filter-chips {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 4px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.smms-filter-chips::-webkit-scrollbar {
	display: none;
}

.smms-filter-chip {
	padding: 6px 14px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 600;
	background: var(--smms-overlay-soft);
	border: 1px solid var(--smms-border);
	color: var(--smms-text-muted);
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.18s ease;
	user-select: none;
}

.smms-filter-chip:hover {
	background: var(--smms-overlay-medium);
	color: var(--smms-text);
}

.smms-filter-chip.active {
	background: var(--smms-primary);
	color: #ffffff;
	border-color: var(--smms-primary);
	box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

/* =========================================================================
   COLLAPSIBLE ENTITY CARDS (Mobile-First Master-Detail)
   ========================================================================= */
.smms-collapsible-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.smms-collapsible-card {
	background: var(--smms-card-bg);
	border: 1px solid var(--smms-border);
	border-radius: var(--smms-radius);
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	box-shadow: var(--smms-shadow-sm);
}

.smms-collapsible-card.is-expanded {
	border-color: var(--smms-primary-border);
	background: var(--smms-card-bg-elevated);
	box-shadow: var(--smms-shadow-elevated);
}

.smms-collapsible-header {
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	cursor: pointer;
	user-select: none;
	background: transparent;
	transition: background 0.15s ease;
}

.smms-collapsible-header:hover {
	background: var(--smms-overlay-faint);
}

.smms-collapsible-main {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	flex-grow: 1;
}

.smms-collapsible-title-wrap {
	min-width: 0;
	flex-grow: 1;
}

.smms-collapsible-title {
	font-weight: 700;
	font-size: 15px;
	color: var(--smms-heading);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: flex;
	align-items: center;
	gap: 8px;
}

.smms-collapsible-subtitle {
	font-size: 12px;
	color: var(--smms-text-muted);
	margin-top: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Modifier for subtitles made of several badges (e.g. session cards) rather
   than a single line of text — wraps onto multiple lines instead of being
   clipped when there isn't room for every badge on one line. */
.smms-collapsible-subtitle-wrap {
	white-space: normal;
	overflow: visible;
	text-overflow: unset;
	flex-wrap: wrap;
	row-gap: 6px;
}

.smms-collapsible-right {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

/* Action Items ("Tasks") cards: the title is a full sentence, not a
   short name/label like other collapsible cards use, and the status
   badge's text length varies — so rather than squeezing both into one
   row and truncating, this card gets its own two-row header: title +
   chevron on top (title gets the full width it needs and simply wraps
   naturally), badge on its own row underneath with room to breathe. */
.smms-collapsible-header.smms-action-item-header {
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 8px;
}

.smms-action-item-header-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.smms-action-item-header-bottom {
	display: flex;
}

.smms-chevron-btn {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--smms-overlay-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--smms-text-muted);
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease, color 0.2s ease;
	flex-shrink: 0;
}

.smms-collapsible-card.is-expanded .smms-chevron-btn {
	transform: rotate(180deg);
	background: var(--smms-primary-light);
	color: var(--smms-link);
}

.smms-chevron-btn svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* Collapsible Content Body */
.smms-collapsible-body {
	display: none;
	padding: 0 16px 16px 16px;
	border-top: 1px solid var(--smms-border-subtle);
	animation: smms-slide-down 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.smms-collapsible-card.is-expanded .smms-collapsible-body {
	display: block;
}

@keyframes smms-slide-down {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: translateY(0); }
}

.smms-details-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 10px 14px;
	margin-top: 14px;
	padding: 12px 14px;
	background: var(--smms-panel-bg);
	border: 1px solid var(--smms-border-subtle);
	border-radius: 10px;
}

.smms-detail-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.smms-detail-label {
	font-size: 11px;
	color: var(--smms-text-dim);
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: 0.03em;
}

.smms-detail-val {
	font-size: 13px;
	font-weight: 600;
	color: var(--smms-heading);
	word-break: break-word;
}

.smms-detail-link {
	color: var(--smms-link);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.smms-detail-link:hover {
	text-decoration: underline;
}

.smms-card-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 14px;
	flex-wrap: wrap;
}

/* =========================================================================
   SESSION TIMELINE & CARDS
   ========================================================================= */
.smms-session-card {
	background: var(--smms-card-bg);
	border: 1px solid var(--smms-border);
	border-radius: var(--smms-radius);
	padding: 16px;
	margin-bottom: 12px;
	transition: all 0.2s ease;
}

.smms-session-card:hover {
	border-color: var(--smms-primary-border);
}

.smms-session-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.smms-session-date {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 14px;
	color: var(--smms-heading);
}

.smms-session-date svg {
	width: 16px;
	height: 16px;
	fill: var(--smms-primary);
}

.smms-session-chips {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.smms-session-notes {
	background: var(--smms-panel-bg-soft);
	border: 1px solid var(--smms-border-subtle);
	border-radius: 10px;
	padding: 12px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--smms-text);
	margin-top: 8px;
	white-space: pre-line;
}

.smms-topic-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 8px;
	border-radius: 6px;
	background: rgba(59, 130, 246, 0.12);
	border: 1px solid rgba(59, 130, 246, 0.25);
	color: var(--smms-info-text);
	font-size: 11px;
	font-weight: 600;
}

/* =========================================================================
   TASK / ACTION ITEMS CHECKLIST
   ========================================================================= */
.smms-task-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	background: var(--smms-card-bg);
	border: 1px solid var(--smms-border);
	border-radius: var(--smms-radius);
	gap: 12px;
	transition: all 0.2s ease;
}

.smms-task-item:hover {
	border-color: var(--smms-border);
	background: var(--smms-card-bg-elevated);
}

.smms-task-main {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-width: 0;
	flex-grow: 1;
}

.smms-task-text {
	font-size: 14px;
	font-weight: 600;
	color: var(--smms-heading);
	line-height: 1.4;
}

.smms-task-meta {
	font-size: 12px;
	color: var(--smms-text-muted);
	margin-top: 4px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

/* =========================================================================
   MOBILE BOTTOM NAVIGATION BAR
   ========================================================================= */
.smms-bottom-nav {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: var(--smms-bottom-nav-height);
	background: var(--smms-bottom-nav-bg);
	backdrop-filter: blur(16px);
	border-top: 1px solid var(--smms-border);
	z-index: 90;
	padding: 0 4px;
	padding-bottom: env(safe-area-inset-bottom, 0px);
	box-shadow: var(--smms-shadow-bottom-nav);
	justify-content: space-around;
	align-items: center;
}

.smms-bottom-nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	flex: 1;
	min-width: 0;
	height: 100%;
	color: var(--smms-text-muted);
	text-decoration: none;
	font-size: 10.5px;
	font-weight: 600;
	cursor: pointer;
	position: relative;
	transition: color 0.15s ease;
	user-select: none;
	padding: 4px 2px;
}

/* Labels never wrap onto a second line and collide with the icon above
   them — a long label (e.g. "Allowance Admin") truncates with an
   ellipsis instead, at whatever width this item's flex share leaves
   it. */
.smms-bottom-nav-item span {
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.smms-bottom-nav-item svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
	transition: transform 0.2s ease;
}

/* "More" is a real <button> (it opens the page sheet rather than
   navigating), so strip the native button chrome to match the other
   items, which are divs. */
button.smms-bottom-nav-item {
	background: none;
	border: 0;
	font-family: inherit;
	line-height: inherit;
	margin: 0;
	-webkit-appearance: none;
	appearance: none;
}

button.smms-bottom-nav-item:focus-visible,
.smms-bottom-nav-item:focus-visible {
	outline: 2px solid var(--smms-primary);
	outline-offset: -3px;
	border-radius: 10px;
}

.smms-bottom-nav-item.active {
	color: var(--smms-primary);
}

.smms-bottom-nav-item.active svg {
	transform: translateY(-2px);
}

.smms-bottom-nav-item .smms-nav-badge {
	position: absolute;
	top: 6px;
	right: calc(50% - 16px);
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 8px;
	background: var(--smms-warning);
	color: #000000;
	font-size: 10px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* =========================================================================
   MODALS & BOTTOM SHEETS
   ========================================================================= */
.smms-modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--smms-modal-backdrop-bg);
	backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: 16px;
	animation: smms-fade-in 0.2s ease-out;
}

.smms-modal {
	background: var(--smms-surface);
	border: 1px solid var(--smms-border);
	border-radius: var(--smms-radius-lg);
	width: 100%;
	max-width: 540px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	box-shadow: var(--smms-shadow-lg);
	overflow: hidden;
}

.smms-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px;
	border-bottom: 1px solid var(--smms-border);
	flex-shrink: 0;
}

.smms-modal-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--smms-heading);
}

.smms-modal-content {
	padding: 20px 24px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	flex-grow: 1;
}

.smms-modal-footer {
	padding: 16px 24px;
	border-top: 1px solid var(--smms-border);
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	flex-shrink: 0;
	background: var(--smms-panel-bg-soft);
}

.smms-close-btn {
	position: relative;
	background: transparent;
	border: none;
	color: var(--smms-text-muted);
	font-size: 0; /* hide the native &times; glyph in favor of the drawn cross below */
	width: 32px;
	height: 32px;
	border-radius: var(--smms-radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
	line-height: 1;
	flex-shrink: 0;
}

.smms-close-btn::before,
.smms-close-btn::after {
	content: '';
	position: absolute;
	width: 14px;
	height: 1.5px;
	background: currentColor;
	border-radius: 1px;
}

.smms-close-btn::before { transform: rotate(45deg); }
.smms-close-btn::after { transform: rotate(-45deg); }

.smms-close-btn:hover {
	background: var(--smms-overlay-medium);
	color: var(--smms-heading);
}

@keyframes smms-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* =========================================================================
   TOAST NOTIFICATIONS
   Replaces native alert() for form validation and API success/error
   feedback — stacks in a fixed corner, auto-dismisses, and matches the
   rest of the UI instead of an unstyled browser dialog that blocks the
   whole tab.
   ========================================================================= */
.smms-toast-container {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 10000;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: min(360px, calc(100vw - 32px));
	pointer-events: none;
}

.smms-toast {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 14px 14px 16px;
	background: var(--smms-surface);
	border: 1px solid var(--smms-border);
	border-radius: var(--smms-radius);
	box-shadow: var(--smms-shadow-elevated);
	pointer-events: auto;
	animation: smms-toast-in 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.smms-toast-success {
	border-left: 3px solid var(--smms-success);
}

.smms-toast-error {
	border-left: 3px solid var(--smms-danger);
}

.smms-toast-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	margin-top: 1px;
}

.smms-toast-success .smms-toast-icon {
	fill: var(--smms-success-text);
}

.smms-toast-error .smms-toast-icon {
	fill: var(--smms-danger-text);
}

.smms-toast-message {
	flex: 1;
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--smms-text);
	word-break: break-word;
}

.smms-toast-close {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	border-radius: 50%;
	color: var(--smms-text-muted);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.smms-toast-close:hover {
	background: var(--smms-overlay-medium);
	color: var(--smms-heading);
}

.smms-toast-leaving {
	animation: smms-toast-out 0.2s ease-in forwards;
}

@keyframes smms-toast-in {
	from { opacity: 0; transform: translateX(24px); }
	to { opacity: 1; transform: translateX(0); }
}

@keyframes smms-toast-out {
	from { opacity: 1; transform: translateX(0); }
	to { opacity: 0; transform: translateX(24px); }
}

@media (prefers-reduced-motion: reduce) {
	.smms-toast,
	.smms-toast-leaving {
		animation: none;
	}
}

/* On phones, stack toasts full-width across the top instead of a narrow
   corner card — matches how the rest of the layout goes edge-to-edge
   below 768px, and keeps the dismiss target comfortably tappable. */
@media (max-width: 480px) {
	.smms-toast-container {
		top: env(safe-area-inset-top, 0px);
		right: 8px;
		left: 8px;
		width: auto;
		margin-top: 8px;
	}

	/* Stack the two-field rows in Add/Edit Mentee (and similar) forms so
	   each field keeps full width for its label and placeholder text. */
	.smms-form-grid-2 {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

/* Mobile Header & Drawer */
.smms-mobile-header {
	display: none;
	height: 60px;
	background: var(--smms-surface);
	border-bottom: 1px solid var(--smms-border);
	padding: 0 16px;
	align-items: center;
	justify-content: space-between;
	position: sticky;
	top: 0;
	z-index: 80;
}

.smms-mobile-header-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

/* Icon-only search/bell buttons that live in the mobile header, next to
   the profile avatar — the mobile equivalent of the
   desktop top-bar's search box and notification bell, which otherwise
   have nowhere to go on a phone. */
.smms-mobile-icon-btn {
	position: relative;
	display: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background: var(--smms-overlay-faint);
	color: var(--smms-text-dim);
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
	appearance: none;
	-webkit-appearance: none;
	font: inherit;
}

.smms-mobile-icon-btn svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.smms-mobile-icon-btn.has-alerts {
	color: var(--smms-text);
}

/* Page-title strip: the mobile header's brand row has no room for the
   current tab's heading, so it gets its own thin strip underneath,
   giving mobile users the same "what screen am I on" context the
   desktop top-bar's title provides. */
.smms-mobile-subheader {
	display: none;
	align-items: center;
	padding: 10px 16px 6px 16px;
}

.smms-mobile-subheader-title {
	font-size: 17px;
	font-weight: 700;
	color: var(--smms-heading);
}

.smms-sidebar-close {
	display: none;
	position: relative;
	background: transparent;
	border: none;
	border-radius: var(--smms-radius-sm);
	width: 32px;
	height: 32px;
	color: var(--smms-text-muted);
	font-size: 0; /* hide the native &times; glyph in favor of the drawn cross below */
	cursor: pointer;
	margin-left: auto;
	line-height: 1;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, color 0.15s ease;
}

.smms-sidebar-close::before,
.smms-sidebar-close::after {
	content: '';
	position: absolute;
	width: 14px;
	height: 1.5px;
	background: currentColor;
	border-radius: 1px;
}

.smms-sidebar-close::before { transform: rotate(45deg); }
.smms-sidebar-close::after { transform: rotate(-45deg); }

.smms-sidebar-close:hover {
	background: var(--smms-overlay-medium);
	color: var(--smms-heading);
}

.smms-sheet-title {
	display: none;
}

.smms-sidebar-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: var(--smms-drawer-overlay-bg);
	backdrop-filter: blur(4px);
	z-index: 900;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.smms-sidebar-overlay.open {
	display: block;
	opacity: 1;
}

/* =========================================================================
   RESPONSIVE BREAKPOINTS (Mobile Optimization)
   ========================================================================= */
@media (max-width: 768px) {
	.smms-app-layout {
		flex-direction: column;
		padding-bottom: var(--smms-bottom-nav-height);
	}

	.smms-mobile-header {
		display: flex;
	}

	.smms-mobile-header-brand .smms-sidebar-logo {
		max-width: 84px;
		max-height: 30px;
	}

	.smms-mobile-header-brand .smms-brand-name {
		font-size: 13.5px;
	}

	/* Same issue as the desktop layout: WP's #wpadminbar is fixed at the
	   true viewport top (46px tall on mobile widths) with a z-index far
	   above this plugin's own UI, so this sticky header's top:0 resting
	   position ends up hidden underneath it once the page scrolls. Stick
	   it just below the toolbar instead when the "admin-bar" body class
	   says it's present. Likewise offset the sheet backdrop, which is
	   position:fixed to the true viewport and would otherwise have its
	   top 46px hidden under the toolbar. */
	body.admin-bar .smms-mobile-header {
		top: 46px;
	}

	body.admin-bar .smms-sidebar-overlay {
		top: 46px;
	}

	.smms-mobile-icon-btn {
		display: flex;
	}

	.smms-mobile-subheader {
		display: flex;
	}

	.smms-bottom-nav {
		display: flex;
	}

	.smms-sidebar-close {
		display: flex;
	}

	/* The icon-collapse toggle is a desktop-only affordance — the mobile
	   drawer already opens full width and is dismissed with the close
	   button above, so there's nothing useful for this to do here. */
	.smms-sidebar-collapse-toggle {
		display: none;
	}

	/* The sidebar is a bottom sheet on phones: it slides up from just
	   above the bottom bar (which stays visible and tappable) and lists
	   every page plus the theme / sign-out footer. It's opened by the
	   bar's "More" button. */
	.smms-sidebar {
		position: fixed;
		top: auto;
		left: 0;
		right: 0;
		bottom: var(--smms-bottom-nav-height);
		width: 100%;
		height: auto;
		max-height: 80vh;
		padding: 10px 14px 16px;
		border-right: none;
		border-top: 1px solid var(--smms-border);
		border-radius: 20px 20px 0 0;
		z-index: 1000;
		overflow-y: auto;
		overscroll-behavior: contain;
		box-shadow: var(--smms-shadow-sheet);
		transform: translateY(calc(100% + var(--smms-bottom-nav-height)));
		visibility: hidden;
		transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.3s;
	}

	.smms-sidebar.open {
		transform: translateY(0);
		visibility: visible;
		transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
	}

	/* The brand already sits in the mobile header; the sheet gets a grab
	   handle and a title instead. */
	.smms-sidebar-header {
		position: relative;
		padding: 18px 4px 10px;
		margin-bottom: 8px;
		font-size: 16px;
	}

	.smms-sidebar-header::before {
		content: '';
		position: absolute;
		top: 4px;
		left: 50%;
		width: 36px;
		height: 4px;
		margin-left: -18px;
		border-radius: 2px;
		background: var(--smms-border);
	}

	.smms-sidebar-header .smms-brand-lockup {
		display: none;
	}

	.smms-sheet-title {
		display: block;
		flex: 1;
		font-weight: 700;
		color: var(--smms-heading);
	}

	.smms-sidebar .smms-nav {
		flex-grow: 0;
		overflow: visible;
		gap: 2px;
	}

	.smms-sidebar .smms-nav-item {
		min-height: 44px;
		padding: 12px;
	}

	.smms-sidebar-footer {
		margin-top: 10px;
		padding-top: 12px;
	}

	/* Dim the page, but stop at the top of the bottom bar so it stays
	   usable while the sheet is open. */
	.smms-sidebar-overlay {
		width: 100%;
		height: auto;
		bottom: var(--smms-bottom-nav-height);
	}

	.smms-top-bar {
		/* On mobile, .smms-mobile-header above already covers this bar's
		   job (brand, search, bell, avatar) — the user badge here is
		   hidden below, and the only thing this bar can still usefully
		   hold on a phone is Admin/HOM's period switcher. Hide it by
		   default so pages without one don't show an empty strip with
		   nothing but a bottom border; the .has-period-switcher modifier
		   (added in JS only when there's real content) brings it back. */
		display: none;
	}

	.smms-top-bar.has-period-switcher {
		display: flex;
		flex-wrap: wrap;
		row-gap: 8px;
		padding: 10px 14px;
		height: auto;
		min-height: 52px;
	}

	/* The mobile subheader strip now shows the page title, and the mobile
	   header's icon buttons cover search and notifications, so the only
	   thing worth surfacing in this reduced bar is the period switcher
	   above — the title itself would otherwise be duplicated. */
	.smms-top-title {
		display: none;
	}

	.smms-top-semester-pill,
	.smms-notif--top {
		display: none;
	}

	.smms-user-info-text {
		display: none;
	}

	/* The mobile top header already has its own profile button next to the
	   search and bell buttons, so hide the top-bar's avatar badge here to avoid
	   showing two separate profile entry points on small screens. */
	.smms-user-badge {
		display: none;
	}

	.smms-container {
		padding: 14px 12px 28px 12px;
	}

	.smms-grid {
		grid-template-columns: 1fr;
		gap: 12px;
		margin-bottom: 18px;
	}

	.smms-card {
		padding: 16px;
		border-radius: 12px;
	}



	/* Bottom sheet appearance for modals on small screens */
	.smms-modal-backdrop {
		align-items: flex-end;
		padding: 0;
	}

	.smms-modal {
		/* !important is required here: several modals set an inline
		   style="max-width: …px" (see portal-app.js) to size themselves
		   on desktop, and an inline style always outranks a class
		   selector regardless of media query — without !important this
		   rule is silently ignored on mobile and the modal never
		   becomes a full-width bottom sheet. */
		max-width: 100% !important;
		border-radius: 20px 20px 0 0;
		max-height: 88vh;
		border-bottom: none;
		animation: smms-sheet-up 0.28s cubic-bezier(0.4, 0, 0.2, 1);
	}

	@keyframes smms-sheet-up {
		from { transform: translateY(100%); }
		to { transform: translateY(0); }
	}

	.smms-modal-header {
		padding: 16px 18px;
	}

	.smms-modal-content {
		padding: 16px 18px;
	}

	.smms-modal-footer {
		padding: 12px 18px;
	}

	.smms-details-grid {
		grid-template-columns: 1fr 1fr;
		gap: 8px 10px;
		padding: 10px 12px;
	}

	.smms-card-actions {
		justify-content: stretch;
	}

	.smms-card-actions .smms-btn {
		flex: 1;
		text-align: center;
	}

	/* Session/entity cards: let the header top-align once the subtitle
	   wraps to more than one line, instead of vertically centering the
	   chevron against a taller left column. */
	.smms-collapsible-header {
		align-items: flex-start;
	}

	.smms-collapsible-right {
		padding-top: 2px;
	}

	.smms-collapsible-subtitle-wrap .smms-badge {
		font-size: 10px;
		padding: 3px 7px;
	}

	/* Dashboard cards: match the padding reduction every other card gets
	   on mobile, and let the hero card's contents wrap onto their own
	   line instead of squeezing the progress ring and text into a row
	   that no longer fits a phone-width column. */
	.smms-term-strip {
		padding: 18px;
	}

	.smms-term-strip-main {
		flex: 1 1 100%;
	}

	.smms-term-strip-progress {
		flex: 1 1 100%;
		margin-left: 0;
		padding-left: 0;
		border-left: 0;
		padding-top: 18px;
		border-top: 1px solid var(--smms-border);
	}

	.smms-term-monthleft-num {
		font-size: 48px;
	}

	.smms-hero-card {
		padding: 18px;
		gap: 16px;
	}

	.smms-hero-card-plain-value {
		font-size: 34px;
	}

	.smms-stat-list {
		gap: 8px;
	}

	.smms-stat-row {
		padding: 12px 14px;
		gap: 12px;
	}

	.smms-stat-row-value {
		font-size: 20px;
	}
}

@media (max-width: 480px) {
	/* Below phone-portrait width the hero card's fixed-size progress
	   ring and its label no longer both fit on one row without crowding
	   the card's edges, so stack them and shrink the ring to match. */
	.smms-hero-card {
		flex-wrap: wrap;
		justify-content: center;
		text-align: center;
	}

	.smms-hero-card-info {
		width: 100%;
	}

	.smms-progress-ring-wrap svg {
		width: 76px;
		height: 76px;
	}

	.smms-progress-ring-value {
		font-size: 18px;
	}

	.smms-card-hint {
		justify-content: center;
	}
}

@media (max-width: 420px) {
	.smms-details-grid {
		grid-template-columns: 1fr;
	}

	.smms-mobile-header-brand .smms-sidebar-logo {
		max-width: 60px;
		max-height: 26px;
	}

	.smms-mobile-header-brand .smms-brand-name {
		font-size: 12.5px;
	}
}

/* =========================================================================
   RESOURCES — library of material published for mentors
   ========================================================================= */
.smms-resources-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 18px;
}

.smms-resource-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 20px;
	background: var(--smms-card-bg);
	border: 1px solid var(--smms-border);
	border-radius: var(--smms-radius);
	box-shadow: var(--smms-shadow-sm);
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.smms-resource-card:hover {
	border-color: var(--smms-primary-border);
	transform: translateY(-2px);
}

.smms-resource-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 16px;
}

.smms-resource-icon {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--smms-primary-light);
	flex-shrink: 0;
}

.smms-resource-icon svg {
	width: 22px;
	height: 22px;
	fill: var(--smms-link);
}

.smms-resource-title {
	margin: 0 0 6px 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--smms-heading);
	overflow-wrap: anywhere;
}

.smms-resource-desc {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--smms-text-muted);
}

.smms-resource-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: auto;
	padding-top: 18px;
}

.smms-resource-meta {
	font-size: 12px;
	color: var(--smms-text-dim);
}

.smms-resource-foot .smms-btn {
	text-decoration: none;
}

.smms-resources-empty {
	text-align: center;
	padding: 56px 24px;
}

.smms-resources-empty-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--smms-primary-light);
}

.smms-resources-empty-icon svg {
	width: 28px;
	height: 28px;
	fill: var(--smms-link);
}

.smms-resources-empty h3 {
	margin: 0 0 6px 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--smms-heading);
}

.smms-resources-empty p {
	margin: 0 auto;
	max-width: 380px;
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--smms-text-muted);
}

/* =========================================================================
   LOG-SESSION FORM — plain choice groups, chips, and rating rows.
   Shared building blocks so the form reads as one consistent system
   rather than one-off inline styles per field.
   ========================================================================= */
.smms-field-hint {
	font-size: 12px;
	color: var(--smms-text-muted);
	margin-top: 6px;
	line-height: 1.4;
}

/* Row of mutually-exclusive plain buttons (session type, meeting mode). */
.smms-choice-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 8px;
}

.smms-choice-btn {
	padding: 11px 10px;
	border: 1px solid var(--smms-border);
	border-radius: var(--smms-radius-sm);
	background: var(--smms-bg);
	color: var(--smms-text);
	font-size: 13.5px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	text-align: center;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.smms-choice-btn.active {
	border-color: var(--smms-primary);
	background: var(--smms-primary-light);
	color: var(--smms-link);
}

/* Checklist rows (group mentee attendance). */
.smms-check-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: var(--smms-text);
	cursor: pointer;
	padding: 10px 12px;
	border-radius: var(--smms-radius-sm);
	background: var(--smms-bg);
	border: 1px solid var(--smms-border);
}

.smms-check-row input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--smms-primary);
	flex-shrink: 0;
}

/* Plain toggle chips (discussion topics). */
.smms-chip {
	display: inline-flex;
	align-items: center;
	padding: 7px 13px;
	border-radius: 999px;
	background: var(--smms-bg);
	border: 1px solid var(--smms-border);
	font-size: 12.5px;
	color: var(--smms-text);
	cursor: pointer;
	user-select: none;
}

.smms-chip.active {
	background: var(--smms-primary-light);
	border-color: var(--smms-primary);
	color: var(--smms-link);
}

/* Per-topic rating row — three plain text buttons, no icons. */
.smms-rating-card {
	border: 1px solid var(--smms-border);
	border-radius: var(--smms-radius-sm);
	padding: 10px 12px;
	background: var(--smms-bg);
}

.smms-rating-card + .smms-rating-card {
	margin-top: 8px;
}

.smms-rating-title {
	font-size: 12.5px;
	font-weight: 600;
	margin-bottom: 8px;
}

.smms-rating-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
}

.smms-rating-btn {
	padding: 8px 4px;
	border-radius: 8px;
	border: 1px solid var(--smms-border);
	background: var(--smms-bg);
	color: var(--smms-text-muted);
	font-size: 11.5px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	text-align: center;
	line-height: 1.3;
}

.smms-rating-btn:active {
	transform: scale(0.97);
}

.smms-rating-btn.status-doing_well.active {
	border-color: var(--smms-success);
	background: var(--smms-success-light);
	color: var(--smms-success-text);
}

.smms-rating-btn.status-some_challenges.active {
	border-color: var(--smms-warning);
	background: var(--smms-warning-light);
	color: var(--smms-warning-text);
}

.smms-rating-btn.status-need_more_support.active {
	border-color: var(--smms-danger);
	background: var(--smms-danger-light);
	color: var(--smms-danger-text);
}

.smms-duration-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 8px;
}

.smms-duration-btn {
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--smms-border);
	background: var(--smms-bg);
	color: var(--smms-text);
	font-size: 12.5px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
}

.smms-duration-btn.active {
	border-color: var(--smms-primary);
	background: var(--smms-primary-light);
	color: var(--smms-link);
}

/*
 * Minimal table styling for the Facilitation Allowance Reports view —
 * the portal otherwise renders lists as cards, not <table> markup, so
 * this has no precedent to reuse.
 */
.smms-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.smms-table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: 13px;
}

.smms-table th,
.smms-table td {
	text-align: left;
	padding: 8px 10px;
	border-bottom: 1px solid var(--smms-border);
	white-space: nowrap;
}

.smms-table th {
	color: var(--smms-text-muted);
	font-weight: 600;
	font-size: 12px;
}

/* Printing the Reports view (Print / Save as PDF button) should show
 * just the report table, not the portal's own chrome or this page's
 * on-screen filter/export controls. */
@media print {
	.smms-sidebar,
	.smms-top-bar,
	.smms-bottom-nav,
	.smms-allowance-print-hide {
		display: none !important;
	}
}

/* =========================================================================
   DASHBOARD REDESIGN — Action Required banner, four-up metric grid,
   priority mentee action cards, and the two-column dashboard layout
   (priority items + recent check-ins / term-at-a-glance sidebar).
   Reuses the same surface, border, radius, and shadow tokens as the
   rest of the card system so it reads as one visual language rather
   than a bolted-on section.
   ========================================================================= */

/* --- Action Required banner ------------------------------------------- */
/* --- Four-up metric grid ------------------------------------------------ */
.smms-metric-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 24px;
	align-items: stretch;
}

@media (max-width: 1040px) {
	.smms-metric-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Below phone width, a 2-up grid keeps squeezing card contents (the
 * compliance ring row, the avatar stack, badges) until something is
 * forced wider than its column and the whole grid overflows the
 * viewport. Rather than keep shrinking, switch to a swipeable,
 * one-card-at-a-time carousel: every card gets the full row so its
 * content lays out exactly as it does on desktop, just stacked
 * behind a horizontal swipe instead of a vertical scroll. */
@media (max-width: 640px) {
	.smms-metric-grid {
		display: flex;
		grid-template-columns: none;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		gap: 0;
		margin-left: -12px;
		margin-right: -12px;
		padding: 0 12px 6px 12px;
	}

	.smms-metric-grid::-webkit-scrollbar {
		display: none;
	}

	.smms-metric-card {
		/* Leave a sliver of the next card peeking in on the right so a
		   first-time mobile visitor can tell there's more to swipe to,
		   instead of a full-width card that looks like the only metric. */
		flex: 0 0 88%;
		scroll-snap-align: center;
		scroll-snap-stop: always;
	}

	.smms-metric-card + .smms-metric-card {
		margin-left: 12px;
	}
}

/* Pagination dots under the mobile metric carousel — one per card, with
   the current card highlighted, so it's clear there are more metrics
   than the one currently in view. Hidden above the carousel breakpoint
   where the grid is a static 2/4-up layout. */
.smms-metric-grid-dots {
	display: none;
}

@media (max-width: 640px) {
	.smms-metric-grid-dots {
		display: flex;
		justify-content: center;
		align-items: center;
		gap: 8px;
		margin: 10px 0 20px 0;
	}

	/* Small pips with a generous invisible tap area (the ::before), so the
	   visible dot stays tidy while the target stays comfortable to hit. The
	   resets stop theme button styles (borders, min-heights, shadows) leaking in. */
	.smms-metric-grid-dots .smms-metric-dot {
		-webkit-appearance: none;
		appearance: none;
		position: relative;
		flex: none;
		box-sizing: border-box;
		width: 7px;
		height: 7px;
		min-width: 0;
		min-height: 0;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 999px;
		box-shadow: none;
		background-color: var(--smms-text-dim);
		opacity: 0.4;
		cursor: pointer;
		transition: width 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
	}

	.smms-metric-grid-dots .smms-metric-dot::before {
		content: "";
		position: absolute;
		inset: -10px -5px;
	}

	.smms-metric-grid-dots .smms-metric-dot.active {
		width: 20px;
		background-color: var(--smms-primary);
		opacity: 1;
	}
}

.smms-metric-card {
	background: var(--smms-card-bg);
	border: 1px solid var(--smms-border);
	border-radius: var(--smms-radius);
	padding: 18px;
	backdrop-filter: blur(12px);
	box-shadow: var(--smms-shadow-sm);
	display: flex;
	flex-direction: column;
	/* Grid/flex items default to a content-based min-width, which lets a
	 * long label + badge row or a fixed-width ring force this card (and
	 * therefore its whole row) wider than the viewport. Overriding it is
	 * what actually stops the mobile overflow — the breakpoints above
	 * only change how many cards share a row. */
	min-width: 0;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.smms-metric-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.smms-metric-card-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--smms-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.smms-metric-card-icon {
	width: 18px;
	height: 18px;
	fill: var(--smms-text-dim);
	flex-shrink: 0;
}

.smms-metric-card-value {
	font-size: 32px;
	font-weight: 800;
	color: var(--smms-heading);
	line-height: 1.1;
}

.smms-metric-card-currency {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--smms-text-muted);
	margin-right: 6px;
}

.smms-metric-card-value-sm {
	font-size: 15px;
	font-weight: 700;
	color: var(--smms-heading);
}

.smms-metric-card-sub {
	font-size: 12px;
	color: var(--smms-text-muted);
	margin-top: 6px;
	font-weight: 600;
}

.smms-metric-card-ring-row {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.smms-metric-card-ring-info {
	min-width: 0;
	flex: 1;
}

.smms-metric-card .smms-card-hint {
	margin-top: auto;
	padding-top: 12px;
}

/* --- Dashboard "Monthly Compliance" card ---------------------------------
   Ring on the left, "9 of 12 / Mentees met" stat on the right. No
   descriptive paragraph, so the card stays compact next to its siblings. */
.smms-metric-card .smms-metric-card-ring-row {
	flex-wrap: nowrap;
	gap: 16px;
	padding: 4px 0 2px;
}

.smms-metric-card .smms-compliance-ring svg {
	width: 76px;
	height: 76px;
}

.smms-metric-card .smms-compliance-ring-value {
	font-size: 16px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.smms-compliance-ring-sym {
	font-size: 0.65em;
	font-weight: 700;
	margin-left: 1px;
	opacity: 0.85;
}

.smms-compliance-stat {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px;
	line-height: 1.1;
}

.smms-compliance-stat-num {
	font-size: 28px;
	font-weight: 800;
	color: var(--smms-heading);
}

.smms-compliance-stat-of {
	font-size: 14px;
	font-weight: 700;
	color: var(--smms-text-muted);
}

.smms-compliance-stat-label {
	margin-top: 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--smms-text-muted);
}

.smms-metric-card .smms-metric-card-ring-row + .smms-card-hint {
	padding-top: 16px;
}

/* =========================================================================
   MENTOR DASHBOARD KPI STRIP
   Label + corner menu glyph / big number + status pill / small visual
   (avatars, bar or pips) / caption. Each card carries a faint accent tint
   that follows its state. Scoped to .smms-kpi-* so the coordinator
   dashboards, which also use .smms-metric-card, are untouched.
   ========================================================================= */
.smms-portal-wrapper {
	--smms-kpi-bg: rgba(4, 9, 20, 0.72);
	--smms-kpi-track: rgba(255, 255, 255, 0.09);
	--smms-kpi-ring: #060b17;
	--smms-kpi-tint-info: rgba(59, 130, 246, 0.13);
	--smms-kpi-tint-success: rgba(16, 185, 129, 0.12);
	--smms-kpi-tint-warning: rgba(245, 158, 11, 0.12);
	--smms-kpi-tint-danger: rgba(239, 68, 68, 0.13);
}

.smms-portal-wrapper[data-smms-theme="light"] {
	--smms-kpi-bg: #ffffff;
	--smms-kpi-track: rgba(15, 23, 42, 0.09);
	--smms-kpi-ring: #ffffff;
	--smms-kpi-tint-info: rgba(37, 99, 235, 0.07);
	--smms-kpi-tint-success: rgba(5, 150, 105, 0.07);
	--smms-kpi-tint-warning: rgba(180, 83, 9, 0.07);
	--smms-kpi-tint-danger: rgba(220, 38, 38, 0.06);
}

@media (min-width: 641px) {
	.smms-metric-grid.smms-kpi-grid {
		gap: 20px;
	}
}

.smms-metric-card.smms-kpi-card {
	padding: 24px;
	border-radius: 22px;
	background: linear-gradient(115deg, transparent 20%, var(--kpi-tint, var(--smms-kpi-tint-info)) 100%), var(--smms-kpi-bg);
	box-shadow: none;
}

.smms-kpi-card--info    { --kpi-tint: var(--smms-kpi-tint-info); }
.smms-kpi-card--success { --kpi-tint: var(--smms-kpi-tint-success); }
.smms-kpi-card--warning { --kpi-tint: var(--smms-kpi-tint-warning); }
.smms-kpi-card--danger  { --kpi-tint: var(--smms-kpi-tint-danger); }
.smms-kpi-card--neutral { --kpi-tint: var(--smms-kpi-tint-info); }

.smms-kpi-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 31px;
}

.smms-kpi-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--smms-text-muted);
}

.smms-kpi-menu {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	fill: none;
	stroke: var(--smms-text-muted);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.15s ease;
}

.smms-kpi-card:hover .smms-kpi-menu {
	transform: translateX(2px);
}

.smms-kpi-main {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 12px;
	min-height: 48px;
}

.smms-kpi-value {
	font-size: 44px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
	color: var(--smms-heading);
}

/* Longer figures (e.g. KES 12,450) step down so the status pill stays on
   the same line as the number instead of wrapping and misaligning the row. */
.smms-kpi-value--md { font-size: 36px; }
.smms-kpi-value--sm { font-size: 30px; }

.smms-kpi-value-of {
	font-size: 0.55em;
	font-weight: 700;
	letter-spacing: 0;
	color: var(--smms-text-muted);
	margin-left: 1px;
}

.smms-kpi-currency {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--smms-text-muted);
	margin-right: 8px;
}

.smms-kpi-main .smms-badge {
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 700;
}

.smms-kpi-visual {
	display: flex;
	align-items: flex-end;
	min-height: 32px;
	margin-top: 22px;
}

.smms-kpi-visual .smms-avatar-stack .smms-avatar {
	border-color: var(--smms-kpi-ring);
}

.smms-kpi-bar {
	width: 100%;
	height: 8px;
	border-radius: 8px;
	background: var(--smms-kpi-track);
	overflow: hidden;
}

.smms-kpi-bar-fill {
	height: 100%;
	min-width: 8px; /* a 0% bar still shows its rounded starting cap */
	border-radius: 8px;
	transition: width 0.4s ease;
}

.smms-kpi-dots {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
}

.smms-kpi-dot {
	flex: 1 1 0;
	min-width: 4px;
	max-width: 14px;
	height: 8px;
	border-radius: 8px;
	background: var(--smms-kpi-track);
}

.smms-kpi-fill--success { --kpi-fill: #34d399; }
.smms-kpi-fill--warning { --kpi-fill: #f5a623; }
.smms-kpi-fill--danger  { --kpi-fill: #f87171; }
.smms-kpi-fill--neutral { --kpi-fill: #8aa0c0; }
.smms-portal-wrapper[data-smms-theme="light"] .smms-kpi-fill--success { --kpi-fill: #059669; }
.smms-portal-wrapper[data-smms-theme="light"] .smms-kpi-fill--warning { --kpi-fill: #d97706; }
.smms-portal-wrapper[data-smms-theme="light"] .smms-kpi-fill--danger  { --kpi-fill: #dc2626; }
.smms-portal-wrapper[data-smms-theme="light"] .smms-kpi-fill--neutral { --kpi-fill: #64748b; }

.smms-kpi-bar-fill.smms-kpi-fill--success,
.smms-kpi-bar-fill.smms-kpi-fill--warning,
.smms-kpi-bar-fill.smms-kpi-fill--danger,
.smms-kpi-bar-fill.smms-kpi-fill--neutral,
.smms-kpi-dots .smms-kpi-dot.is-filled {
	background: var(--kpi-fill);
}

.smms-kpi-sub {
	margin-top: auto;
	padding-top: 14px;
	font-size: 13px;
	font-weight: 500;
	color: var(--smms-text-muted);
}

@media (max-width: 768px) {
	.smms-kpi-value {
		font-size: 36px;
	}

	.smms-kpi-head {
		margin-bottom: 26px;
	}
}

/* =========================================================================
   MENTOR DASHBOARD: page header, attention panel, card headings
   ========================================================================= */
.smms-dash-header {
	margin-bottom: 20px;
}

.smms-dash-title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.25;
	color: var(--smms-heading);
}

.smms-dash-date {
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--smms-text-muted);
}

.smms-card-heading {
	margin: 0 0 2px;
	font-size: 15px;
	font-weight: 700;
	color: var(--smms-heading);
}

.smms-card-subheading {
	margin: 0 0 14px;
	font-size: 12px;
	color: var(--smms-text-muted);
}

.smms-card-empty {
	margin: 0;
	font-size: 13px;
	color: var(--smms-text-muted);
}

/* One panel for everything that needs the mentor, most urgent first. The
   accent edge and the icon tint carry the urgency; the surface stays calm. */
.smms-attn {
	--attn-urgent: var(--smms-danger);
	--attn-standard: var(--smms-primary);
	--attn-info: var(--smms-text-muted);
	background: var(--smms-card-bg);
	border: 1px solid var(--smms-border);
	border-radius: var(--smms-radius);
	box-shadow: var(--smms-shadow-sm);
	margin-bottom: 24px;
	overflow: hidden;
}

.smms-attn-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--smms-border-subtle);
}

.smms-attn-heading {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--smms-heading);
}

.smms-attn-count {
	min-width: 22px;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--smms-primary-light);
	color: var(--smms-link);
	font-size: 12px;
	font-weight: 700;
	text-align: center;
}

.smms-attn-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.smms-attn-row {
	--attn: var(--attn-standard);
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px 14px 15px;
	border-left: 3px solid var(--attn);
	border-top: 1px solid var(--smms-border-subtle);
}

.smms-attn-list > .smms-attn-row:first-child {
	border-top: 0;
}

.smms-attn-row--urgent { --attn: var(--attn-urgent); }
.smms-attn-row--info { --attn: var(--smms-border); }

.smms-attn-icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--smms-primary-light);
	color: var(--smms-link);
}

.smms-attn-row--urgent .smms-attn-icon {
	background: var(--smms-danger-light);
	color: var(--smms-danger-text);
}

.smms-attn-row--info .smms-attn-icon {
	background: var(--smms-border-subtle);
	color: var(--smms-text-muted);
}

.smms-attn-icon svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.smms-attn-body {
	flex: 1 1 auto;
	min-width: 0;
}

.smms-attn-title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--smms-heading);
}

.smms-attn-desc {
	margin-top: 2px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--smms-text-muted);
}

.smms-attn-cta {
	flex-shrink: 0;
	white-space: nowrap;
}

.smms-attn-more {
	border-top: 1px solid var(--smms-border-subtle);
}

.smms-attn-more > summary {
	cursor: pointer;
	padding: 11px 18px;
	font-size: 13px;
	font-weight: 600;
	color: var(--smms-link);
	list-style: none;
}

.smms-attn-more > summary::-webkit-details-marker {
	display: none;
}

.smms-attn-more[open] > summary {
	display: none;
}

@media (max-width: 640px) {
	.smms-attn-row {
		flex-wrap: wrap;
		align-items: flex-start;
	}

	.smms-attn-body {
		flex-basis: calc(100% - 52px);
	}

	.smms-attn-cta {
		margin-left: 50px;
	}
}

/* Keyboard focus: every clickable dashboard surface shows where focus is. */
.smms-clickable-card:focus-visible,
.smms-clickable-row:focus-visible,
.smms-metric-dot:focus-visible,
.smms-attn-cta:focus-visible,
.smms-attn-more > summary:focus-visible {
	outline: 2px solid var(--smms-link);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.smms-clickable-card,
	.smms-clickable-card:hover,
	.smms-clickable-card:active,
	.smms-kpi-card:hover .smms-kpi-menu {
		transform: none;
		transition: none;
	}
}

/* --- Dashboard secondary row (Recent Check-ins / This Term at a Glance) - */
.smms-dashboard-secondary-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
	align-items: start;
	margin-bottom: 24px;
}

@media (max-width: 640px) {
	.smms-dashboard-secondary-grid {
		grid-template-columns: 1fr;
	}
}

/* --- Recent Check-ins sidebar list --------------------------------------- */
.smms-checkin-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.smms-checkin-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.smms-checkin-row-main {
	min-width: 0;
	flex: 1;
}

.smms-checkin-row-name {
	font-size: 13px;
	font-weight: 700;
	color: var(--smms-heading);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.smms-checkin-row-date {
	font-size: 11px;
	color: var(--smms-text-muted);
	margin-top: 1px;
}

.smms-checkin-viewall {
	cursor: pointer;
}

/* --- This month by mentee ---------------------------------------------- */
.smms-month-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.smms-month-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-top: 1px solid var(--smms-border-subtle);
}

.smms-month-row:first-child {
	border-top: 0;
	padding-top: 2px;
}

.smms-month-mark {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid var(--smms-text-muted);
	box-sizing: border-box;
}

.smms-month-mark.is-met {
	background: var(--smms-success);
	border-color: var(--smms-success);
}

.smms-month-mark svg {
	width: 12px;
	height: 12px;
	fill: none;
	stroke: #fff;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.smms-month-name {
	flex: 1;
	min-width: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--smms-heading);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.smms-month-state {
	flex-shrink: 0;
	font-size: 12px;
	font-weight: 600;
	color: var(--smms-text-muted);
}

.smms-month-state.is-met {
	color: var(--smms-success-text);
}

.smms-month-link {
	margin-top: 12px;
	padding-top: 14px;
	border-top: 1px solid var(--smms-border);
}

/* --- Small-screen tweaks for the redesigned dashboard -------------------- */
@media (max-width: 768px) {
	.smms-metric-card-value {
		font-size: 26px;
	}
}

/* =========================================================================
   MONTHLY MENTORSHIP GOAL CARD (My Compliance)
   Ring panel | body | expand chevron. Ring/bar colour is set inline from
   completion: red < 50%, amber < 100%, green at 100%.
   ========================================================================= */
.smms-goal-card {
	background: var(--smms-card-bg-elevated);
	border: 1px solid var(--smms-border);
	border-radius: 22px;
	box-shadow: var(--smms-shadow);
	overflow: hidden;
	margin-bottom: 20px;
}

.smms-goal-card-main {
	display: flex;
	align-items: stretch;
}

.smms-goal-ring-panel {
	flex: 0 0 190px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	background: linear-gradient(135deg, var(--smms-overlay-soft), transparent);
	border-right: 1px solid var(--smms-border);
}

.smms-goal-ring-panel .smms-progress-ring circle:first-child {
	stroke: var(--smms-overlay-strong);
}

.smms-goal-ring-value {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
}

.smms-goal-ring-pct {
	/* Sized to sit comfortably inside the 128px ring (110px usable inside
	   the stroke) even for the widest values like "100%" or "76.9%". */
	font-size: 24px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.smms-goal-ring-pct-sym {
	font-size: 0.62em;
	font-weight: 700;
	margin-left: 1px;
	opacity: 0.85;
}

/* The generic <=480px hero-card rule shrinks every ring SVG to 76px; the
   goal ring's label is sized for 128px, so keep the ring at its own size. */
.smms-goal-ring-panel .smms-progress-ring-wrap svg {
	width: 128px;
	height: 128px;
}

.smms-goal-ring-cap {
	white-space: nowrap;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--smms-text-muted);
}

.smms-goal-body {
	flex: 1;
	min-width: 0;
	padding: 22px 26px;
}

.smms-goal-eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--smms-text-muted);
}

.smms-goal-title {
	margin: 6px 0 8px;
	font-size: 20px;
	font-weight: 800;
	color: var(--smms-heading);
}

.smms-goal-desc {
	margin: 0 0 16px;
	font-size: 13px;
	color: var(--smms-text-muted);
}

.smms-goal-remaining {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 10px;
}

.smms-goal-remaining-num {
	font-size: 22px;
	font-weight: 800;
	color: var(--smms-heading);
}

.smms-goal-remaining-label {
	font-size: 12px;
	color: var(--smms-text-muted);
}

.smms-goal-bar {
	height: 6px;
	border-radius: 999px;
	background: var(--smms-overlay-strong);
	overflow: hidden;
}

.smms-goal-bar-fill {
	height: 100%;
	border-radius: 999px;
	transition: width 0.4s ease;
}

.smms-goal-status {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	font-size: 11px;
	font-weight: 600;
	color: var(--smms-text-muted);
}

.smms-goal-status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}

.smms-goal-details {
	padding: 20px 24px 8px;
	border-top: 1px solid var(--smms-border);
}

@media (max-width: 640px) {
	.smms-goal-card-main {
		flex-wrap: wrap;
	}
	.smms-goal-ring-panel {
		flex: 1 0 100%;
		border-right: 0;
		border-bottom: 1px solid var(--smms-border);
		padding: 20px;
	}
	.smms-goal-body {
		flex: 1 1 0;
		padding: 18px;
	}
}

/* =========================================================================
   ACTION ITEM CARD — redesigned collapsed/expanded states
   Top: bold headline + plain-language description + status pill.
   Body (expanded only): session detail rows, mentor's notes, actions.
   Footer: full-width "View/Hide Session Details" toggle bar, which is
   what the .smms-collapsible-header click-to-toggle behaviour binds to
   for this card (see attachPortalEvents / the modal's own action-item
   wiring — both do card.querySelector('.smms-collapsible-header')).
   ========================================================================= */
.smms-action-item-card {
	background: var(--smms-card-bg-elevated);
}

/* Flat background tint per action-item category, reusing the same
   tinted tokens the status badges already use elsewhere in this design
   system (rather than inventing new colours), so a list of cards can be
   scanned by colour instead of having to read every headline.
   Follow-up Alert is the "default" category and keeps the card's plain
   surface; the other three each get their own tint. */
.smms-action-item-card-cat-missed,
.smms-action-item-card-cat-missed.is-expanded {
	background: var(--smms-teal-light);
}

.smms-action-item-card-cat-resolved,
.smms-action-item-card-cat-resolved.is-expanded {
	background: var(--smms-success-light);
}

.smms-action-item-card-cat-cancelled,
.smms-action-item-card-cat-cancelled.is-expanded {
	background: var(--smms-overlay-medium);
}

.smms-action-item-top {
	padding: 18px 18px 14px;
}

.smms-action-item-headline {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 800;
	color: var(--smms-heading);
}

.smms-action-item-desc {
	margin: 0 0 14px;
	font-size: 13px;
	line-height: 1.55;
	color: var(--smms-text-muted);
}

.smms-action-item-badge-row {
	display: flex;
}

.smms-action-item-pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: 8px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	border: 1.5px solid transparent;
	background: transparent;
}

.smms-action-item-pill-open {
	color: var(--smms-warning-text);
	border-color: var(--smms-warning);
}

.smms-action-item-pill-follow_up_logged {
	color: var(--smms-danger-text);
	border-color: var(--smms-danger);
}

.smms-action-item-pill-completed {
	color: var(--smms-success-text);
	border-color: var(--smms-success);
	background: var(--smms-success-light);
}

.smms-action-item-pill-cancelled {
	color: var(--smms-text-muted);
	border-color: var(--smms-border);
}

.smms-collapsible-body.smms-action-item-body {
	padding: 16px 18px 14px;
	background: var(--smms-panel-bg);
}

.smms-action-item-detail-rows {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 16px;
}

.smms-action-item-detail-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.smms-action-item-detail-label {
	font-size: 12px;
	color: var(--smms-text-muted);
	font-weight: 600;
}

.smms-action-item-detail-value {
	font-size: 13px;
	font-weight: 700;
	color: var(--smms-heading);
	text-align: right;
}

.smms-action-item-value-chip {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 8px;
	background: var(--smms-overlay-medium);
	font-size: 12px;
	font-weight: 700;
	color: var(--smms-heading);
	white-space: nowrap;
}

.smms-action-item-notes {
	padding-top: 14px;
	border-top: 1px solid var(--smms-border-subtle);
	margin-bottom: 14px;
}

.smms-action-item-notes-label {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--smms-text-muted);
	margin-bottom: 6px;
}

.smms-action-item-notes-text {
	font-size: 13px;
	color: var(--smms-text);
	line-height: 1.55;
}

.smms-action-item-notes-empty {
	font-style: italic;
	color: var(--smms-text-muted);
}

.smms-action-item-hint {
	font-size: 12px;
	color: var(--smms-text-muted);
	line-height: 1.55;
	margin-bottom: 14px;
}

.smms-action-item-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	padding-bottom: 16px;
}

.smms-action-item-btn-complete {
	background: transparent;
	border: 1.5px solid var(--smms-success);
	color: var(--smms-success-text);
	font-weight: 700;
}

.smms-action-item-btn-complete:hover {
	background: var(--smms-success-light);
}

.smms-action-item-btn-cancel {
	background: transparent;
	border: 1.5px solid var(--smms-border);
	color: var(--smms-text-muted);
	font-weight: 700;
}

.smms-action-item-btn-cancel:hover {
	background: var(--smms-overlay-soft);
	color: var(--smms-text);
}

/* Footer toggle bar — this is the element the click handler treats as
   this card's ".smms-collapsible-header", so it inherits that class's
   base padding/hover/cursor and only needs the content centred and its
   own top border added here. */
.smms-collapsible-header.smms-action-item-footer-toggle {
	justify-content: center;
	gap: 8px;
	padding: 12px 16px;
	border-top: 1px solid var(--smms-border-subtle);
	font-size: 12px;
	font-weight: 700;
	color: var(--smms-text-muted);
}

.smms-action-item-footer-toggle .smms-when-expanded {
	display: none;
}

.smms-collapsible-card.is-expanded .smms-action-item-footer-toggle .smms-when-collapsed {
	display: none;
}

.smms-collapsible-card.is-expanded .smms-action-item-footer-toggle .smms-when-expanded {
	display: inline;
}

.smms-action-item-footer-chevron {
	flex-shrink: 0;
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.smms-collapsible-card.is-expanded .smms-action-item-footer-chevron {
	transform: rotate(180deg);
}

@media (max-width: 480px) {
	.smms-action-item-top {
		padding: 16px 14px 12px;
	}
	.smms-collapsible-body.smms-action-item-body {
		padding: 14px 14px 4px;
	}
	.smms-action-item-detail-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
	.smms-action-item-detail-value {
		text-align: left;
	}
	.smms-action-item-actions {
		flex-direction: column;
	}
	.smms-action-item-actions .smms-btn {
		width: 100%;
		text-align: center;
	}
}

/* =========================================================================
   FACILITATION ALLOWANCE (Head of Mentoring Services / Administrator)
   Shares primitives with the rest of the portal (.smms-metric-grid,
   .smms-checkin-list, .smms-filter-chip, .smms-session-card) rather than
   inventing a parallel visual language — this is one more tab, not a
   different product.
   ========================================================================= */

.smms-allowance-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.smms-allowance-head-copy {
	max-width: 560px;
}

.smms-allowance-eyebrow {
	font-size: 11px;
	font-weight: 700;
	color: var(--smms-text-dim);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 4px;
}

.smms-allowance-head h3 {
	font-size: 18px;
	font-weight: 800;
	color: var(--smms-heading);
	margin: 0 0 4px 0;
}

.smms-allowance-head p {
	font-size: 13px;
	color: var(--smms-text-muted);
	margin: 0;
	line-height: 1.5;
}

.smms-allowance-period-input {
	width: auto !important;
	min-width: 160px;
}

/* Sub-navigation reuses the filter-chip pill pattern used for mentee
   course / meeting type filters elsewhere in the portal. */
.smms-allowance-subtabs {
	margin-bottom: 18px;
}

/* Per-mentor summary rows — one .smms-checkin-row plus a slim status-
   coloured progress track showing verified vs. potential earnings. */
.smms-allowance-row {
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	cursor: pointer;
	padding: 12px 14px;
}

.smms-allowance-row-top {
	display: flex;
	align-items: center;
	gap: 12px;
}

.smms-allowance-row-amounts {
	text-align: right;
	flex-shrink: 0;
}

.smms-allowance-row-amount {
	font-size: 15px;
	font-weight: 700;
	color: var(--smms-heading);
}

.smms-allowance-row-amount-sub {
	font-size: 11px;
	color: var(--smms-text-muted);
	margin-top: 1px;
}

.smms-allowance-progress-track {
	width: 100%;
	height: 6px;
	border-radius: 4px;
	background: var(--smms-overlay-medium);
	overflow: hidden;
}

.smms-allowance-progress-fill {
	height: 100%;
	border-radius: 4px;
	background: var(--smms-progress-accent, var(--smms-primary));
	transition: width 0.4s ease;
}

/* Mentor drill-down */
.smms-allowance-detail-header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 4px;
}

.smms-allowance-detail-name {
	font-size: 18px;
	font-weight: 800;
	color: var(--smms-heading);
	line-height: 1.25;
}

.smms-allowance-detail-period {
	font-size: 12px;
	color: var(--smms-text-muted);
	margin-top: 2px;
}

.smms-allowance-attendee-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 0;
	border-top: 1px solid var(--smms-border-subtle);
}

.smms-allowance-attendee-row:first-of-type {
	border-top: none;
}

.smms-allowance-attendee-main {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.smms-allowance-attendee-check {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.smms-allowance-attendee-check svg {
	width: 12px;
	height: 12px;
	fill: #fff;
}

.smms-allowance-attendee-check.is-verified { background: var(--smms-success); }
.smms-allowance-attendee-check.is-unverified { background: var(--smms-text-dim); }

.smms-allowance-attendee-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--smms-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.smms-allowance-attendee-issue {
	font-size: 11px;
	color: var(--smms-warning-text);
	margin-top: 1px;
}

.smms-allowance-attendee-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.smms-allowance-issue-note {
	width: 150px !important;
	min-height: 36px !important;
	padding: 6px 10px !important;
	font-size: 12px !important;
}

/* Approve / reject / hold decision panel */
.smms-decision-panel {
	--decision-accent: var(--smms-text-dim);
	margin-top: 20px;
	padding: 16px;
	border-radius: var(--smms-radius);
	background: var(--smms-panel-bg);
	border: 1px solid var(--smms-border-subtle);
	border-left: 3px solid var(--decision-accent);
}

.smms-decision-panel.is-pending,
.smms-decision-panel.is-on_hold { --decision-accent: var(--smms-warning); }
.smms-decision-panel.is-approved,
.smms-decision-panel.is-paid { --decision-accent: var(--smms-success); }
.smms-decision-panel.is-rejected { --decision-accent: var(--smms-danger); }

.smms-decision-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 4px;
}

.smms-decision-title {
	font-size: 13px;
	font-weight: 700;
	color: var(--smms-heading);
}

.smms-decision-reason-note {
	font-size: 12px;
	color: var(--smms-text-muted);
	margin: 6px 0 12px 0;
	line-height: 1.5;
}

.smms-decision-reason-row {
	margin-bottom: 12px;
}

.smms-decision-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.smms-btn-success {
	background: var(--smms-success);
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(16, 185, 129, 0.32);
}

.smms-btn-success:hover {
	background: #0ea975;
	box-shadow: 0 6px 18px rgba(16, 185, 129, 0.42);
	transform: translateY(-1px);
}

.smms-btn-danger {
	background: transparent;
	color: var(--smms-danger-text);
	border-color: rgba(239, 68, 68, 0.4);
}

.smms-btn-danger:hover {
	background: var(--smms-danger-light);
	border-color: var(--smms-danger);
}

.smms-decision-actions .smms-btn svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
	flex-shrink: 0;
}

@media (max-width: 480px) {
	.smms-decision-actions .smms-btn {
		flex: 1 1 auto;
	}
}

/* =========================================================================
   Executive Skills Profile page
   ========================================================================= */
.smms-es { --es-gap: 28px; --es-pad: 28px; display: flex; flex-direction: column; gap: var(--es-gap); max-width: 1120px; margin: 0 auto; width: 100%; }
.smms-es-back { align-self: flex-start; }
.smms-es-stack { display: flex; flex-direction: column; gap: var(--es-gap); }
.smms-es-stack:empty { display: none; }
.smms-es h2, .smms-es h3, .smms-es h4, .smms-es p, .smms-es ul, .smms-es ol { margin: 0; }
.smms-es-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--smms-link); }
.smms-es-note { font-size: 13px; color: var(--smms-warning-text); }
.smms-es-muted { color: var(--smms-text-muted); font-size: 13px; line-height: 1.6; }

/* Hero */
.smms-es-hero { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: center; padding: 36px var(--es-pad) var(--es-pad); border-radius: var(--smms-radius-lg); border: 1px solid var(--smms-primary-border); background: radial-gradient(120% 140% at 0% 0%, var(--smms-primary-light) 0%, transparent 60%), radial-gradient(90% 120% at 100% 100%, var(--smms-accent-light) 0%, transparent 55%), var(--smms-card-bg); box-shadow: var(--smms-shadow); overflow: hidden; }
.smms-es-hero-main { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.smms-es-hero-title { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.15; font-weight: 800; color: var(--smms-heading); letter-spacing: -0.01em; }
.smms-es-hero-lead { max-width: 560px; font-size: 14.5px; line-height: 1.65; color: var(--smms-text-muted); }
.smms-es-cta { margin-top: 6px; }
.smms-es-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; border: 1px solid var(--smms-border); background: var(--smms-overlay-soft); }
.smms-es-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--smms-text-dim); }
.smms-es-pill--done { color: var(--smms-success-text); border-color: rgba(16,185,129,0.35); background: var(--smms-success-light); }
.smms-es-pill--done .smms-es-pill-dot { background: var(--smms-success); }
.smms-es-pill--progress { color: var(--smms-warning-text); border-color: rgba(245,158,11,0.35); background: var(--smms-warning-light); }
.smms-es-pill--progress .smms-es-pill-dot { background: var(--smms-warning); }

.smms-es-ring { position: relative; width: 156px; height: 156px; justify-self: center; }
.smms-es-ring-track { stroke: var(--smms-overlay-strong); }
.smms-es-ring-fill { stroke: var(--smms-primary); transition: stroke-dashoffset 0.5s ease; }
.smms-es-ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.smms-es-ring-text strong { font-size: 32px; line-height: 1; font-weight: 800; color: var(--smms-heading); }
.smms-es-ring-text span { font-size: 12px; color: var(--smms-text-muted); }

.smms-es-tiles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-top: 24px; border-top: 1px solid var(--smms-border-subtle); }
.smms-es-tile { padding: 14px 16px; border-radius: var(--smms-radius); background: var(--smms-panel-bg-soft); border: 1px solid var(--smms-border-subtle); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.smms-es-tile-label { font-size: 11.5px; font-weight: 600; color: var(--smms-text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.smms-es-tile-value { font-size: 22px; font-weight: 800; color: var(--smms-heading); line-height: 1.2; overflow-wrap: anywhere; }
.smms-es-tile-value span { font-size: 13px; font-weight: 600; color: var(--smms-text-muted); margin-left: 2px; }
.smms-es-tile-sub { font-size: 12px; color: var(--smms-text-dim); }

/* Panels */
.smms-es-panel, .smms-es-formarea { padding: var(--es-pad); border-radius: var(--smms-radius-lg); border: 1px solid var(--smms-border); background: var(--smms-card-bg); box-shadow: var(--smms-shadow-sm); display: flex; flex-direction: column; gap: 24px; }
.smms-es-panel-head { display: flex; flex-direction: column; gap: 6px; }
.smms-es-panel-head h3 { font-size: 21px; font-weight: 800; color: var(--smms-heading); letter-spacing: -0.005em; }
.smms-es-panel-head p { font-size: 14px; color: var(--smms-text-muted); line-height: 1.6; max-width: 640px; }
.smms-es-panel-head--icon { flex-direction: row; align-items: flex-start; gap: 16px; }
.smms-es-panel-head--icon > div { display: flex; flex-direction: column; gap: 6px; }
.smms-es-panel-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.smms-es-panel-icon svg { width: 24px; height: 24px; fill: currentColor; }
.smms-es-panel-head--strength .smms-es-panel-icon { background: var(--smms-success-light); color: var(--smms-success-text); }
.smms-es-panel-head--strength .smms-es-eyebrow { color: var(--smms-success-text); }
.smms-es-panel-head--growth .smms-es-panel-icon { background: var(--smms-warning-light); color: var(--smms-warning-text); }
.smms-es-panel-head--growth .smms-es-eyebrow { color: var(--smms-warning-text); }

/* Overview: radar + list */
.smms-es-overview-grid { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 40px; align-items: center; }
.smms-es-radar-wrap { box-sizing: border-box; padding: 12px; border-radius: var(--smms-radius); background: var(--smms-panel-bg-soft); border: 1px solid var(--smms-border-subtle); }
.smms-es-radar { width: 100%; height: auto; display: block; }
.smms-es-radar-ring { fill: none; stroke: var(--smms-border); stroke-width: 1; }
.smms-es-radar-ring--outer { stroke: var(--smms-overlay-strong); }
.smms-es-radar-spoke { stroke: var(--smms-border-subtle); stroke-width: 1; }
.smms-es-radar-area { fill: var(--smms-primary); fill-opacity: 0.25; stroke: var(--smms-primary); stroke-width: 2; stroke-linejoin: round; }
.smms-es-radar-dot { fill: var(--smms-primary); stroke: var(--smms-card-bg-elevated); stroke-width: 2; }
.smms-es-radar-label { font-size: 13px; font-weight: 700; fill: var(--smms-text-muted); }

.smms-es-rows { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; }
.smms-es-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--smms-border-subtle); min-width: 0; }
.smms-es-row-id { width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; background: var(--smms-overlay-medium); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; color: var(--smms-text); margin-top: 1px; }
.smms-es-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.smms-es-row-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.smms-es-row-title { font-size: 13.5px; font-weight: 600; color: var(--smms-text); }
.smms-es-row-score { font-size: 13.5px; font-weight: 800; color: var(--smms-heading); font-variant-numeric: tabular-nums; }
.smms-es-row-level { font-size: 12px; color: var(--smms-text-muted); }
.smms-es-bar { height: 7px; border-radius: 999px; background: var(--smms-overlay-strong); overflow: hidden; }
.smms-es-bar--sm { height: 6px; }
.smms-es-bar-fill { height: 100%; width: 0; border-radius: 999px; background: var(--smms-primary); transition: width 0.3s ease; }
.smms-es-tone-strong .smms-es-bar-fill { background: var(--smms-success); }
.smms-es-tone-moderate .smms-es-bar-fill { background: var(--smms-warning); }
.smms-es-tone-low .smms-es-bar-fill { background: var(--smms-danger); }
.smms-es-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 12px; color: var(--smms-text-muted); }
.smms-es-legend span { display: inline-flex; align-items: center; gap: 7px; }
.smms-es-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.smms-es-dot--strong { background: var(--smms-success); }
.smms-es-dot--moderate { background: var(--smms-warning); }
.smms-es-dot--low { background: var(--smms-danger); }

/* Strength & growth cards */
.smms-es-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.smms-es-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--smms-radius); border: 1px solid var(--smms-border); background: var(--smms-panel-bg-soft); overflow: hidden; min-width: 0; transition: transform 0.2s ease, border-color 0.2s ease; }
.smms-es-card:hover { transform: translateY(-2px); }
.smms-es-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; }
.smms-es-card--strength::before { background: linear-gradient(90deg, var(--smms-success), var(--smms-teal)); }
.smms-es-card--growth::before { background: linear-gradient(90deg, var(--smms-warning), var(--smms-accent)); }
.smms-es-card--strength:hover { border-color: rgba(16,185,129,0.45); }
.smms-es-card--growth:hover { border-color: rgba(245,158,11,0.45); }
.smms-es-card-head { display: flex; align-items: center; gap: 12px; }
.smms-es-card-head h4 { flex: 1; min-width: 0; font-size: 16px; line-height: 1.3; font-weight: 800; color: var(--smms-heading); }
.smms-es-card-rank, .smms-es-card-letter { width: 36px; height: 36px; flex-shrink: 0; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.smms-es-card-rank { background: var(--smms-success-light); color: var(--smms-success-text); }
.smms-es-card-letter { background: var(--smms-warning-light); color: var(--smms-warning-text); font-size: 15px; }
.smms-es-score { flex-shrink: 0; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.smms-es-score strong { font-size: 14px; font-weight: 800; }
.smms-es-score--strength { background: var(--smms-success-light); color: var(--smms-success-text); }
.smms-es-score--growth { background: var(--smms-warning-light); color: var(--smms-warning-text); }
.smms-es-card--growth .smms-es-bar-fill { background: var(--smms-warning); }
.smms-es-card-text { font-size: 14px; line-height: 1.65; color: var(--smms-text-muted); }
.smms-es-card-label { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--smms-border-subtle); font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--smms-text-dim); }
.smms-es-card--growth .smms-es-card-label { margin-top: 0; }
.smms-es-checks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.smms-es-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--smms-text); }
.smms-es-checks svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; padding: 3px; border-radius: 50%; fill: var(--smms-success-text); background: var(--smms-success-light); }
.smms-es-steps { list-style: none; padding: 0; counter-reset: es-step; display: flex; flex-direction: column; gap: 12px; }
.smms-es-steps li { counter-increment: es-step; position: relative; padding-left: 34px; font-size: 14px; line-height: 1.55; color: var(--smms-text); }
.smms-es-steps li::before { content: counter(es-step); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--smms-warning-light); color: var(--smms-warning-text); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

.smms-es-locked { padding: 22px; border: 1px dashed var(--smms-border); border-radius: var(--smms-radius); color: var(--smms-text-muted); font-size: 14px; line-height: 1.6; text-align: center; }
.smms-es-locked--panel { display: flex; align-items: center; gap: 18px; text-align: left; padding: 26px var(--es-pad); background: var(--smms-card-bg); border-radius: var(--smms-radius-lg); }
.smms-es-locked--panel svg { width: 40px; height: 40px; flex-shrink: 0; padding: 10px; border-radius: 12px; background: var(--smms-overlay-medium); fill: var(--smms-text-muted); }
.smms-es-locked--panel strong { display: block; color: var(--smms-heading); font-size: 15px; margin-bottom: 4px; }

/* Questionnaire */
.smms-es-formarea { gap: 26px; scroll-margin-top: 16px; }
.smms-es-scale { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.smms-es-scale div { border: 1px solid var(--smms-border-subtle); background: var(--smms-panel-bg-soft); border-radius: var(--smms-radius-sm); padding: 12px 6px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.smms-es-scale strong { font-size: 17px; color: var(--smms-heading); }
.smms-es-scale span { font-size: 11.5px; color: var(--smms-text-muted); line-height: 1.3; }
.smms-es-sticky { position: sticky; top: 8px; z-index: 5; padding: 14px 18px; border-radius: var(--smms-radius); border: 1px solid var(--smms-border); background: var(--smms-card-bg-elevated); backdrop-filter: blur(10px); box-shadow: var(--smms-shadow-sm); display: flex; flex-direction: column; gap: 9px; }
.smms-es-sticky-row { display: flex; justify-content: space-between; font-size: 13px; }
.smms-es-savestate { font-size: 11.5px; color: var(--smms-text-dim); min-height: 14px; }
.smms-es-sections { display: flex; flex-direction: column; gap: 22px; }
.smms-es-section { border: 1px solid var(--smms-border); border-radius: var(--smms-radius); background: var(--smms-panel-bg-soft); overflow: hidden; }
.smms-es-section-head { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-bottom: 1px solid var(--smms-border-subtle); background: var(--smms-overlay-faint); }
.smms-es-section-letter { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: var(--smms-primary-light); color: var(--smms-link); font-size: 18px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.smms-es-section-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.smms-es-section-titles h4 { font-size: 16px; font-weight: 800; color: var(--smms-heading); }
.smms-es-section-titles h4 span { font-size: 13px; font-weight: 500; color: var(--smms-text-muted); margin-left: 6px; }
.smms-es-section-titles p { font-size: 13px; line-height: 1.6; color: var(--smms-text-muted); }
.smms-es-count { flex-shrink: 0; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--smms-overlay-medium); color: var(--smms-text-muted); border: 1px solid var(--smms-border); }
.smms-es-count.is-done { background: var(--smms-success-light); color: var(--smms-success-text); border-color: rgba(16,185,129,0.35); }
.smms-es-statements { display: flex; flex-direction: column; }
.smms-es-statement { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 32px; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--smms-border-subtle); transition: background 0.2s; }
.smms-es-statement:last-child { border-bottom: none; }
.smms-es-statement-text { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--smms-text); }
.smms-es-num { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--smms-overlay-medium); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; color: var(--smms-text-muted); }
.smms-es-rating-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.smms-es-rating { display: inline-flex; border: 1px solid var(--smms-border); border-radius: 12px; overflow: hidden; background: var(--smms-panel-bg); }
/* The six 1-6 buttons. They are <button>s, so a site theme's button rules
   (padding, min-width, font-size, hover colours) used to leak in: a theme that
   gives buttons a 64px minimum width turned this row into 386px, which ran past
   a phone's edge and was cut off by the section. Geometry and every state are
   pinned here (scoped selector + !important), so the row is always exactly its
   container's width on a phone and 46px-a-button on larger screens. */
.smms-portal-wrapper .smms-es-rating .smms-es-rate,
.smms-portal-wrapper .smms-es-rating .smms-es-rate:hover,
.smms-portal-wrapper .smms-es-rating .smms-es-rate:focus,
.smms-portal-wrapper .smms-es-rating .smms-es-rate:active {
	box-sizing: border-box;
	width: 46px;
	min-width: 0 !important;
	height: 44px;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-right: 1px solid var(--smms-border-subtle) !important;
	border-radius: 0;
	box-shadow: none !important;
	text-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	background: transparent !important;
	color: var(--smms-text) !important;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}
.smms-portal-wrapper .smms-es-rating .smms-es-rate:last-child { border-right: 0 !important; }
.smms-portal-wrapper .smms-es-rating .smms-es-rate:hover { background: var(--smms-overlay-medium) !important; }
.smms-portal-wrapper .smms-es-rating .smms-es-rate.active,
.smms-portal-wrapper .smms-es-rating .smms-es-rate.active:hover,
.smms-portal-wrapper .smms-es-rating .smms-es-rate.active:focus { background: var(--smms-primary) !important; color: #fff !important; }
.smms-portal-wrapper .smms-es-rating .smms-es-rate:focus-visible { outline: 2px solid var(--smms-link); outline-offset: -2px; }
.smms-es-rating-wrap { min-width: 0; }
.smms-es-rating-label { font-size: 12px; color: var(--smms-text-muted); min-height: 16px; }
.smms-es-unanswered { background: var(--smms-danger-light); }
.smms-es-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }

/* Admin overview */
.smms-es-overview { display: flex; flex-direction: column; }
.smms-es-overview-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--smms-border-subtle); flex-wrap: wrap; }
.smms-es-overview-row:last-child { border-bottom: none; }
.smms-es-overview-name { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.smms-es-overview-meta { display: flex; align-items: center; gap: 12px; }

@media (max-width: 1040px) {
	.smms-es-overview-grid { grid-template-columns: 1fr; gap: 28px; }
	.smms-es-radar-wrap { max-width: 380px; margin: 0 auto; width: 100%; }
	.smms-es-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.smms-es { --es-gap: 20px; --es-pad: 18px; }
	.smms-es-hero { grid-template-columns: 1fr; padding-top: 24px; gap: 22px; }
	.smms-es-ring { order: -1; justify-self: start; width: 120px; height: 120px; }
	.smms-es-ring svg { width: 120px; height: 120px; }
	.smms-es-ring-text strong { font-size: 25px; }
	.smms-es-tiles { gap: 10px; padding-top: 18px; }
	.smms-es-tile { padding: 12px; }
	.smms-es-tile-value { font-size: 18px; }
	.smms-es-rows { grid-template-columns: 1fr; }
	.smms-es-cards { grid-template-columns: 1fr; gap: 16px; }
	.smms-es-card { padding: 18px; }
	.smms-es-panel-head--icon { gap: 12px; }
	.smms-es-panel-icon { width: 40px; height: 40px; }
	.smms-es-scale { grid-template-columns: repeat(3, 1fr); }
	.smms-es-section-head { padding: 16px; flex-wrap: wrap; gap: 12px; }
	.smms-es-section-titles { flex-basis: calc(100% - 60px); }
	.smms-es-count { margin-left: 54px; }
	.smms-es-statement { grid-template-columns: 1fr; padding: 18px 16px; gap: 14px; }
	.smms-es-rating-wrap { align-items: stretch; }
	.smms-es-rating { display: flex; width: 100%; min-width: 0; }
	.smms-portal-wrapper .smms-es-rating .smms-es-rate { flex: 1 1 0; width: auto; height: 48px; }
	.smms-es-locked--panel { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	.smms-es-card, .smms-es-bar-fill, .smms-es-ring-fill { transition: none; }
}

/* ==========================================================================
   Student Mentoring Services Agreement (in-portal reader + signature)
   Reuses the .smms-es page shell; only what is specific to reading and
   signing lives here.
   ========================================================================== */
.smms-ag-banner { padding: 14px 18px; border-radius: var(--smms-radius); border: 1px solid rgba(245,158,11,0.35); background: var(--smms-warning-light); color: var(--smms-warning-text); font-size: 14px; line-height: 1.55; }
.smms-ag-hero { grid-template-columns: 1fr auto; }
.smms-ag-reader { gap: 16px; }
.smms-ag-progress { display: flex; flex-direction: column; gap: 8px; }
.smms-ag-progress-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--smms-text-muted); }
.smms-ag-progress-top strong { color: var(--smms-heading); font-variant-numeric: tabular-nums; }

.smms-ag-scroll { max-height: min(68vh, 640px); overflow-y: auto; overscroll-behavior: contain; padding: 28px 30px 8px; border: 1px solid var(--smms-border); border-radius: var(--smms-radius); background: var(--smms-panel-bg-soft); -webkit-overflow-scrolling: touch; }
.smms-ag-scroll:focus-visible { outline: 2px solid var(--smms-link); outline-offset: 2px; }
.smms-ag-scroll--open { max-height: min(60vh, 560px); }
.smms-ag-doc-head { display: flex; flex-direction: column; gap: 6px; padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--smms-border-subtle); }
.smms-ag .smms-ag-doc-title { font-size: 22px; font-weight: 800; color: var(--smms-heading); letter-spacing: -0.005em; }
.smms-ag .smms-ag-doc-sub { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--smms-text-muted); }
.smms-ag-section { padding: 18px 0 6px; }
.smms-ag .smms-ag-section-title { font-size: 16px; font-weight: 800; color: var(--smms-heading); margin: 0 0 12px; }
.smms-ag .smms-ag-heading { display: flex; gap: 12px; font-size: 14.5px; font-weight: 700; color: var(--smms-heading); margin: 16px 0 8px; }
.smms-ag .smms-ag-para, .smms-ag .smms-ag-clause, .smms-ag .smms-ag-sub { font-size: 14.5px; line-height: 1.75; color: var(--smms-text); margin: 0 0 12px; }
.smms-ag .smms-ag-clause, .smms-ag .smms-ag-sub { display: flex; gap: 12px; align-items: flex-start; }
.smms-ag .smms-ag-sub { padding-left: 34px; }
.smms-ag-num { flex: 0 0 auto; min-width: 30px; font-weight: 700; color: var(--smms-link); font-variant-numeric: tabular-nums; }
.smms-ag-end { display: flex; align-items: center; gap: 14px; margin: 18px 0 20px; color: var(--smms-text-dim); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.smms-ag-end::before, .smms-ag-end::after { content: ""; flex: 1; height: 1px; background: var(--smms-border); }

.smms-ag-sign.is-locked { opacity: 0.6; }
.smms-ag-fields { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.smms-ag-check { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--smms-radius); border: 1px solid var(--smms-border); background: var(--smms-panel-bg-soft); font-size: 14px; line-height: 1.6; color: var(--smms-text); cursor: pointer; margin-bottom: 12px; }
.smms-ag-check input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--smms-primary); }
.smms-ag-pad-wrap { border: 1px dashed var(--smms-border); border-radius: var(--smms-radius); background: #fff; overflow: hidden; }
.smms-ag-pad { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; touch-action: none; cursor: crosshair; }
.smms-ag-pad-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.smms-ag-sigcard { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 18px; border-radius: var(--smms-radius); border: 1px solid var(--smms-border); background: var(--smms-card-bg-elevated); min-width: 220px; }
.smms-ag-sigcard img { display: block; width: 200px; max-width: 100%; height: auto; background: #fff; border-radius: 8px; padding: 6px; }
.smms-ag-sigcard--wide { align-items: flex-start; }
.smms-ag-sigcard--wide img { width: 280px; }
.smms-ag-sigcard span { font-size: 14px; font-weight: 700; color: var(--smms-heading); }
.smms-ag-sigcard small { font-size: 11.5px; color: var(--smms-text-dim); }

@media (max-width: 768px) {
	.smms-ag-hero { grid-template-columns: 1fr; }
	.smms-ag-scroll { padding: 20px 16px 4px; max-height: 62vh; }
	.smms-ag .smms-ag-sub { padding-left: 14px; }
	.smms-ag-sigcard { min-width: 0; width: 100%; }
}

/* Agreement: top bar, version line, amendments, editor */
.smms-ag-topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.smms-ag .smms-ag-doc-ver { font-size: 12px; color: var(--smms-text-dim); margin: 2px 0 0; }
.smms-ag-amend-item { border: 1px solid var(--smms-border); border-radius: var(--smms-radius); background: var(--smms-panel-bg-soft); padding: 0 16px; margin-top: 10px; }
.smms-ag-amend-item > summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 13px 0; cursor: pointer; list-style: none; font-size: 14px; color: var(--smms-heading); }
.smms-ag-amend-item > summary::-webkit-details-marker { display: none; }
.smms-ag-amend-item > summary::before { content: "\25B8"; color: var(--smms-text-dim); transition: transform .15s ease; }
.smms-ag-amend-item[open] > summary::before { transform: rotate(90deg); }
.smms-ag-amend-item[open] { padding-bottom: 14px; }
.smms-ag .smms-ag-summary { margin: 0 0 12px; padding: 12px 14px; border-left: 3px solid var(--smms-link); background: var(--smms-card-bg-elevated); border-radius: 0 var(--smms-radius) var(--smms-radius) 0; font-size: 14px; line-height: 1.6; color: var(--smms-text); white-space: pre-line; }
.smms-ag .smms-ag-changes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.smms-ag-change { padding: 12px 14px; border: 1px solid var(--smms-border-subtle); border-radius: var(--smms-radius); background: var(--smms-card-bg-elevated); font-size: 13.5px; line-height: 1.6; color: var(--smms-text); }
.smms-ag-change-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; color: var(--smms-heading); }
.smms-ag-change-tag { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--smms-panel-bg-soft); border: 1px solid var(--smms-border); }
.smms-ag-change--added .smms-ag-change-tag { color: var(--smms-success-text); border-color: rgba(16,185,129,0.4); }
.smms-ag-change--removed .smms-ag-change-tag { color: var(--smms-danger-text); border-color: rgba(239,68,68,0.4); }
.smms-ag-change--edited .smms-ag-change-tag, .smms-ag-change--renamed .smms-ag-change-tag, .smms-ag-change--document .smms-ag-change-tag { color: var(--smms-warning-text); border-color: rgba(245,158,11,0.4); }
.smms-ag-was, .smms-ag-now { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0; }
.smms-ag-diff-label { flex: 0 0 38px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--smms-text-dim); padding-top: 2px; }
.smms-ag-was .smms-ag-diff-text { color: var(--smms-text-muted); text-decoration: line-through; text-decoration-color: rgba(239,68,68,0.55); }

.smms-ag-ed-section { gap: 12px; }
.smms-ag-ed-section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.smms-ag-ed-tools { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.smms-ag-ed-block { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--smms-border-subtle); border-radius: var(--smms-radius); background: var(--smms-panel-bg-soft); }
.smms-ag-ed-block--sub { margin-left: 24px; }
.smms-ag-ed-block-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.smms-ag-ed-type { width: auto; min-width: 150px; }
.smms-ag-ed-label { width: 84px; }
.smms-ag-ed-block-row .smms-ag-ed-tools { margin-left: auto; }
.smms-ag-ed-text { width: 100%; min-height: 64px; resize: vertical; line-height: 1.6; }
.smms-ag-ed-add { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.smms-ag-ed-bar { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border: 1px solid var(--smms-border); border-radius: var(--smms-radius); background: var(--smms-card-bg-elevated); box-shadow: 0 -6px 24px rgba(0,0,0,0.18); }

@media (max-width: 768px) {
	.smms-ag-ed-block--sub { margin-left: 8px; }
	.smms-ag-ed-block-row .smms-ag-ed-tools { margin-left: 0; }
	.smms-ag-diff-label { flex-basis: 34px; }
}

/* ==========================================================================
   Required tasks — pinned above the action items.
   Same surface, border and radius as every other card in the portal, with a
   single accent (the brand blue). What sets them apart from the mentee
   follow-ups is the structure — a labelled section, a two-up grid, an icon,
   a status badge and one button — not extra colour.
   ========================================================================== */
.smms-required { margin: 0 0 24px; }
.smms-required-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.smms-required-head::after { content: ""; order: 2; flex: 1; height: 1px; background: var(--smms-border-subtle); }
/* .smms-portal-wrapper h1-h6 sets colour, weight, tracking and margin; the
   extra class here keeps these two headings out of that reset. */
.smms-required .smms-required-label { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--smms-text-muted); }
.smms-required-count { order: 3; font-size: 12px; font-weight: 600; color: var(--smms-text-dim); white-space: nowrap; }

.smms-required-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(max(300px, calc((100% - 14px) / 2)), 1fr)); }

.smms-required-card { position: relative; display: flex; flex-direction: column; padding: 18px; background: var(--smms-card-bg-elevated); border: 1px solid var(--smms-border); border-radius: var(--smms-radius); box-shadow: var(--smms-shadow-sm); overflow: hidden; }
.smms-required-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--smms-primary); }

.smms-required-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.smms-required-icon { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--smms-primary-light); color: var(--smms-link); flex: 0 0 auto; }
.smms-required-icon svg { width: 20px; height: 20px; fill: currentColor; }

.smms-required .smms-required-title { margin: 0 0 6px; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.4; color: var(--smms-heading); }
.smms-required-desc { margin: 0; font-size: 13px; line-height: 1.55; color: var(--smms-text-muted); }

.smms-required-progress { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.smms-required-progress-track { flex: 1; height: 6px; border-radius: 6px; background: var(--smms-overlay-medium); overflow: hidden; }
.smms-required-progress-fill { height: 100%; border-radius: 6px; background: var(--smms-primary); transition: width 0.4s ease; }
.smms-required-progress-text { font-size: 12px; font-weight: 600; color: var(--smms-text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.smms-required-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; }
.smms-required-note { font-size: 12px; color: var(--smms-text-dim); }
.smms-required .smms-required-btn { box-shadow: none; }

@media (max-width: 480px) {
	.smms-required-grid { grid-template-columns: 1fr; }
	.smms-required-foot { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
	.smms-required-note { text-align: center; }
	.smms-required-btn { width: 100%; }
}

/* ==========================================================================
   Discontinuing mentors / mentees
   ========================================================================== */
.smms-disc-impact {
	border: 1px solid var(--smms-border);
	border-radius: 10px;
	background: var(--smms-panel-bg-soft);
	padding: 14px 16px;
}

.smms-disc-impact-title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--smms-text-muted);
	margin-bottom: 8px;
}

.smms-disc-list {
	margin: 0;
	padding-left: 18px;
	font-size: 13px;
	line-height: 1.55;
	color: var(--smms-text);
}

.smms-disc-list li + li {
	margin-top: 6px;
}

.smms-disc-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 14px;
	font-size: 13px;
	line-height: 1.45;
	cursor: pointer;
}

.smms-disc-check input[type="checkbox"] {
	margin-top: 2px;
	flex-shrink: 0;
}

/* ==========================================================================
   Agreement gate: full-page signing screen shown to a mentor who has not
   signed the Student Mentoring Services Agreement. No sidebar, no menu: just
   a slim header (brand + sign out), a short intro and the agreement itself.
   ========================================================================== */
/* The gate is its own scroll container, pinned to the viewport. On desktop the
   portal locks html/body from scrolling (see the min-width:769px block near
   .smms-app-layout) because normally the sidebar/main column scroll inside the
   layout. The gate has no such layout, so without this nothing outside the
   agreement box could scroll and the signature panel stayed out of reach. */
.smms-gate { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100; display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; background: var(--smms-bg); color: var(--smms-text); }
body.admin-bar .smms-gate { top: 32px; }
@media (max-width: 782px) { body.admin-bar .smms-gate { top: 46px; } }
.smms-gate .smms-ag-scroll { overscroll-behavior: auto; }
.smms-gate .smms-ag-sign { scroll-margin-top: 80px; }
.smms-gate-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px clamp(16px, 4vw, 32px); background: var(--smms-card-bg-elevated); border-bottom: 1px solid var(--smms-border); backdrop-filter: blur(8px); }
.smms-gate-brand { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 15px; font-weight: 700; color: var(--smms-heading); }
.smms-gate .smms-gate-bar .smms-gate-brand img.smms-gate-logo { height: 30px !important; width: auto !important; max-height: 30px !important; max-width: 120px !important; object-fit: contain; flex: 0 0 auto; margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; }
.smms-gate-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.smms-gate-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.smms-gate-name { font-size: 13px; color: var(--smms-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.smms-gate-main { flex: 1; width: 100%; max-width: 920px; margin: 0 auto; padding: clamp(20px, 4vw, 40px) clamp(16px, 4vw, 32px) 56px; }
.smms-gate-intro { margin-bottom: 24px; }
.smms-gate-steps { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 12px; font-weight: 600; color: var(--smms-text-dim); }
.smms-gate-step { white-space: nowrap; }
.smms-gate-step.is-current { color: var(--smms-link); }
.smms-gate-step-sep { flex: 0 1 28px; height: 1px; background: var(--smms-border); }
.smms-gate-title { margin: 0 0 8px; font-size: clamp(22px, 4vw, 28px); font-weight: 800; letter-spacing: -0.01em; color: var(--smms-heading); }
.smms-gate-lead { margin: 0; max-width: 62ch; font-size: 15px; line-height: 1.6; color: var(--smms-text-muted); }
.smms-gate .smms-es { max-width: none; }

@media (max-width: 480px) {
	.smms-gate-name { display: none; }
	.smms-gate-steps { gap: 6px; font-size: 11px; }
	.smms-gate-step-sep { flex-basis: 12px; }
}

/* Agreement sign-off: "remind all" strip under the progress bar. */
.smms-ag-remind-all { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--smms-border-subtle); }
.smms-ag-remind-all .smms-es-muted { flex: 1 1 260px; margin: 0; }
@media (max-width: 480px) { .smms-ag-remind-all .smms-btn { width: 100%; } }

/* Signed agreement: download button and admin tools row. */
.smms-ag-download { margin-top: 14px; }
.smms-ag-sigtools { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.smms-ag-sigtools .smms-ag-download { margin-top: 0; }
@media (max-width: 480px) { .smms-ag-download { width: 100%; } }

/* Agreement record integrity (admin view of a signature). */
.smms-ag-integrity { margin-top: 14px; padding: 10px 14px; border-radius: 8px; font-size: 13px; line-height: 1.5; border: 1px solid var(--smms-border); background: var(--smms-card-bg-elevated); color: var(--smms-text-muted); }
.smms-ag-integrity--ok { border-color: #1b7f4b; color: var(--smms-text); }
.smms-ag-integrity--ok strong { color: #1b7f4b; }
.smms-ag-integrity--bad { border-color: #c0392b; background: rgba(192, 57, 43, 0.08); color: var(--smms-text); }
.smms-ag-integrity--bad strong { color: #c0392b; }

/* =========================================================================
   LOG-SESSION FORM — professional layout
   Everything below is scoped to .smms-log-modal so the Edit Session form,
   action-item cards and other screens that share the older building blocks
   (.smms-chip, .smms-rating-btn, .smms-check-row …) are left untouched.
   ========================================================================= */
.smms-log-modal {
	max-height: min(92vh, 880px);
	border-radius: 18px;
	outline: none;
}

.smms-log-modal [hidden] {
	display: none !important;
}

/* Header */
.smms-log-modal .smms-modal-header {
	align-items: flex-start;
	padding: 20px 24px 16px;
	border-bottom: 1px solid var(--smms-border-subtle);
}

.smms-log-heading {
	min-width: 0;
}

.smms-log-modal .smms-modal-title {
	font-size: 19px;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.smms-log-subtitle {
	margin-top: 3px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--smms-text-muted);
}

.smms-log-modal .smms-close-btn {
	width: 36px;
	height: 36px;
	margin: -4px -8px 0 12px;
}

/* Body & sections */
.smms-log-body {
	padding: 4px 24px 12px;
}

.smms-log-section {
	padding: 20px 0 6px;
}

.smms-log-section + .smms-log-section {
	border-top: 1px solid var(--smms-border-subtle);
}

.smms-log-section-title {
	margin-bottom: 14px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--smms-text-muted);
}

.smms-log-field {
	margin-bottom: 18px;
}

.smms-log-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 12px;
}

.smms-log-grid-2 > .smms-log-field {
	min-width: 0;
}

/* Labels */
.smms-log-modal .smms-log-label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--smms-heading);
}

.smms-log-modal .smms-log-req {
	margin-left: 2px;
	font-weight: 700;
	color: var(--smms-danger-text);
}

.smms-log-modal .smms-log-opt {
	margin-left: 8px;
	font-size: 12px;
	font-weight: 500;
	color: var(--smms-text-muted);
}

.smms-log-label-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
}

.smms-log-modal .smms-log-label-row .smms-log-label {
	margin-bottom: 0;
}

/* Inputs */
.smms-log-modal .smms-form-input {
	min-height: 46px;
	border-radius: 10px;
	background: var(--smms-bg);
}

.smms-log-modal textarea.smms-form-input {
	min-height: 104px;
	line-height: 1.5;
	resize: vertical;
}

.smms-log-modal input[type="date"].smms-form-input,
.smms-log-modal input[type="time"].smms-form-input {
	display: block;
	min-width: 0;
	text-align: left;
}

.smms-log-select {
	position: relative;
}

.smms-log-select select.smms-form-input {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 44px;
	text-overflow: ellipsis;
	cursor: pointer;
}

.smms-log-select::after {
	content: '';
	position: absolute;
	top: 50%;
	right: 17px;
	width: 7px;
	height: 7px;
	border-right: 1.75px solid var(--smms-text-muted);
	border-bottom: 1.75px solid var(--smms-text-muted);
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}

/* Segmented controls (session type, duration) */
.smms-log-modal .smms-seg {
	display: grid;
	gap: 4px;
	padding: 4px;
	border-radius: 12px;
	background: var(--smms-overlay-soft);
	border: 1px solid var(--smms-border-subtle);
}

.smms-log-modal .smms-seg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.smms-log-modal .smms-seg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.smms-log-modal .smms-seg-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-height: 44px;
	padding: 8px 10px;
	border: 1px solid transparent;
	border-radius: 9px;
	background: transparent;
	color: var(--smms-text-muted);
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.25;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.smms-log-modal .smms-seg-btn:hover {
	color: var(--smms-heading);
}

.smms-log-modal .smms-seg-btn.active {
	background: var(--smms-primary-light);
	border-color: var(--smms-primary-border);
	color: var(--smms-link);
	font-weight: 700;
}

.smms-log-modal .smms-seg-desc {
	font-size: 11.5px;
	font-weight: 500;
	color: var(--smms-text-muted);
}

.smms-log-modal .smms-seg-btn.active .smms-seg-desc {
	color: var(--smms-link);
	opacity: 0.85;
}

.smms-log-endtime {
	margin-top: 10px;
	font-size: 13px;
	color: var(--smms-text-muted);
}

.smms-log-endtime strong {
	font-weight: 700;
	color: var(--smms-heading);
	font-variant-numeric: tabular-nums;
}

/* Attendees (group sessions) */
.smms-attendee-count {
	margin-left: auto;
	font-size: 12px;
	color: var(--smms-text-muted);
	font-variant-numeric: tabular-nums;
}

.smms-log-modal .smms-link-btn {
	margin: -6px -8px -6px 0;
	padding: 6px 8px;
	border: 0;
	border-radius: 6px;
	background: none;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--smms-link);
	cursor: pointer;
}

.smms-log-modal .smms-link-btn:hover {
	background: var(--smms-overlay-soft);
}

.smms-attendee-list {
	max-height: 232px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--smms-border);
	border-radius: 12px;
	background: var(--smms-bg);
}

.smms-log-modal .smms-attendee {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 54px;
	padding: 9px 14px;
	border-bottom: 1px solid var(--smms-border-subtle);
	cursor: pointer;
	transition: background 0.12s ease;
}

.smms-log-modal .smms-attendee:last-child { border-bottom: 0; }
.smms-log-modal .smms-attendee:hover { background: var(--smms-overlay-faint); }
.smms-log-modal .smms-attendee.is-checked { background: var(--smms-primary-light); }

.smms-log-modal .smms-attendee input[type="checkbox"] {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--smms-primary);
}

.smms-log-modal .smms-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--smms-overlay-medium);
	font-size: 11.5px;
	font-weight: 700;
	color: var(--smms-text-muted);
}

.smms-log-modal .smms-attendee.is-checked .smms-avatar {
	background: var(--smms-primary-solid);
	color: #ffffff;
}

.smms-attendee-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.smms-log-modal .smms-attendee-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 14px;
	font-weight: 600;
	color: var(--smms-heading);
}

.smms-log-modal .smms-attendee-id {
	font-size: 12px;
	color: var(--smms-text-muted);
}

/* Topic chips */
.smms-log-modal .smms-chip-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.smms-log-modal .smms-chip {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 38px;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--smms-bg);
	border: 1px solid var(--smms-border);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--smms-text);
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.smms-log-modal .smms-chip:hover {
	border-color: var(--smms-primary-border);
}

.smms-log-modal .smms-chip.active {
	background: var(--smms-primary-light);
	border-color: var(--smms-primary);
	color: var(--smms-link);
}

.smms-log-modal .smms-chip.active::before {
	content: '';
	width: 5px;
	height: 9px;
	margin: -2px 2px 0 0;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.smms-log-modal .smms-chip:focus-within {
	outline: 2px solid var(--smms-primary);
	outline-offset: 2px;
}

.smms-log-modal .smms-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	opacity: 0;
}

/* Per-topic rating cards */
.smms-log-modal .smms-rating-card {
	padding: 14px;
	border-radius: 12px;
	border: 1px solid var(--smms-border);
	background: var(--smms-bg);
}

.smms-log-modal .smms-rating-card + .smms-rating-card {
	margin-top: 10px;
}

.smms-log-modal .smms-rating-title {
	margin-bottom: 2px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--smms-heading);
}

.smms-log-modal .smms-rating-desc {
	font-size: 12px;
	line-height: 1.4;
	color: var(--smms-text-muted);
}

.smms-log-modal .smms-rating-row {
	gap: 8px;
	margin-top: 10px;
}

.smms-log-modal .smms-rating-btn {
	min-height: 40px;
	padding: 8px 6px;
	border-radius: 9px;
	font-size: 12.5px;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.smms-log-modal .smms-topic-note-wrap {
	margin-top: 10px;
}

.smms-log-modal .smms-severity-note {
	min-height: 40px;
	padding: 8px 12px;
	font-size: 14px;
}

/* Context banner (make-up / follow-up) */
.smms-log-context {
	display: flex;
	gap: 12px;
	margin: 18px 0 0;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid var(--smms-primary-border);
	background: var(--smms-primary-light);
	font-size: 13px;
	line-height: 1.5;
}

.smms-log-context > svg {
	flex-shrink: 0;
	margin-top: 1px;
	color: var(--smms-link);
}

.smms-log-context-title {
	font-weight: 700;
	color: var(--smms-heading);
}

.smms-log-context-text {
	margin-top: 2px;
	color: var(--smms-text-muted);
}

.smms-log-context-text strong {
	color: var(--smms-heading);
}

/* Inline validation */
.smms-log-error {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	margin-top: 8px;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--smms-danger-text);
}

.smms-log-error::before {
	content: '!';
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin-top: 1px;
	border-radius: 50%;
	background: var(--smms-danger);
	font-size: 11px;
	font-weight: 800;
	color: #ffffff;
}

.smms-log-field.has-error .smms-form-input,
.smms-log-field.has-error .smms-attendee-list {
	border-color: var(--smms-danger);
}

.smms-log-field.has-error .smms-form-input:focus {
	box-shadow: 0 0 0 3px var(--smms-danger-light);
}

/* Footer */
.smms-log-modal .smms-modal-footer {
	padding: 14px 24px;
}

.smms-log-modal .smms-modal-footer .smms-btn-secondary {
	min-width: 104px;
}

.smms-log-modal .smms-modal-footer .smms-btn-primary {
	min-width: 168px;
}

.smms-log-modal .smms-btn-primary:disabled {
	opacity: 0.7;
	cursor: progress;
	transform: none;
}

/* Keyboard focus */
.smms-log-modal .smms-seg-btn:focus-visible,
.smms-log-modal .smms-rating-btn:focus-visible,
.smms-log-modal .smms-link-btn:focus-visible,
.smms-log-modal .smms-attendee:focus-within {
	outline: 2px solid var(--smms-primary);
	outline-offset: 2px;
}

.smms-log-modal .smms-attendee:focus-within {
	outline-offset: -2px;
}

/* Phones: becomes a full-width bottom sheet (see the 768px modal rules) */
@media (max-width: 768px) {
	.smms-log-modal {
		max-height: 92vh;
		max-height: 92dvh;
		border-radius: 20px 20px 0 0;
	}

	.smms-log-modal .smms-modal-header {
		position: relative;
		padding: 24px 18px 14px;
	}

	.smms-log-modal .smms-modal-header::before {
		content: '';
		position: absolute;
		top: 8px;
		left: 50%;
		width: 36px;
		height: 4px;
		margin-left: -18px;
		border-radius: 2px;
		background: var(--smms-border);
	}

	.smms-log-body {
		padding: 2px 18px 12px;
	}

	.smms-log-modal .smms-modal-footer {
		padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
	}

	.smms-log-modal .smms-modal-footer .smms-btn-secondary {
		flex: 0 0 auto;
		min-width: 96px;
	}

	.smms-log-modal .smms-modal-footer .smms-btn-primary {
		flex: 1 1 auto;
		min-width: 0;
	}

	.smms-attendee-list {
		max-height: 260px;
	}
}

@media (max-width: 360px) {
	.smms-log-grid-2 { grid-template-columns: 1fr; }
	.smms-log-modal .smms-seg-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.smms-log-modal .smms-rating-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.smms-log-modal *,
	.smms-log-modal *::before {
		transition: none !important;
	}
}

.smms-log-modal input[type="date"].smms-form-input,
.smms-log-modal input[type="time"].smms-form-input {
	height: 46px;
}

/* Locked (read-only) participant on the Edit Session form */
.smms-log-modal .smms-locked-field {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 54px;
	padding: 9px 14px;
	border: 1px solid var(--smms-border);
	border-radius: 12px;
	background: var(--smms-disabled-overlay);
}

.smms-log-modal .smms-text-danger {
	color: var(--smms-danger-text);
}

/* Short viewports (small phones, phones in landscape): give the scrolling
   body the room — drop the subtitle and slim the header and footer. */
@media (max-height: 700px) {
	.smms-log-subtitle { display: none; }
	.smms-log-modal .smms-modal-header { padding-bottom: 12px; }
}

@media (max-height: 520px) {
	.smms-log-modal { max-height: 100vh; max-height: 100dvh; }
	.smms-log-modal .smms-modal-header { padding: 10px 18px; align-items: center; }
	.smms-log-modal .smms-modal-header::before { display: none; }
	.smms-log-modal .smms-close-btn { margin-top: 0; }
	.smms-log-modal .smms-modal-footer { padding: 8px 18px; }
	.smms-log-modal .smms-modal-footer .smms-btn { min-height: 40px; }
}

/* Error summary shown above a long form after a failed submit */
.smms-log-summary {
	margin: 18px 0 0;
	padding: 12px 14px;
	border: 1px solid var(--smms-danger);
	border-radius: 12px;
	background: var(--smms-danger-light);
	outline: none;
}

.smms-log-summary:focus-visible {
	box-shadow: 0 0 0 3px var(--smms-danger-light);
	outline: 2px solid var(--smms-danger);
	outline-offset: 2px;
}

.smms-log-summary-title {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--smms-danger-text);
}

.smms-log-summary ul {
	margin: 6px 0 0;
	padding-left: 18px;
}

.smms-log-summary li {
	margin: 2px 0;
	font-size: 13px;
	line-height: 1.45;
}

.smms-log-summary button {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	text-align: left;
	color: var(--smms-danger-text);
	text-decoration: underline;
	cursor: pointer;
}

/* Inline validation on the portal's older, non-popup forms (sign-in, agreement, allowance rates) */
.smms-form-group.has-error .smms-form-input,
.smms-rate-field.has-error .smms-form-input {
	border-color: var(--smms-danger);
}

.smms-form-group.has-error .smms-form-input:focus,
.smms-rate-field.has-error .smms-form-input:focus {
	box-shadow: 0 0 0 3px var(--smms-danger-light);
}

.smms-form-group.has-error .smms-ag-pad-wrap {
	border-color: var(--smms-danger);
}

.smms-form-group.has-error .smms-ag-check {
	outline: 1px solid var(--smms-danger);
	outline-offset: 3px;
	border-radius: 8px;
}

.smms-ag-pad:focus-visible {
	outline: 2px solid var(--smms-primary);
	outline-offset: 2px;
}

.smms-rate-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 24px;
}

.smms-rate-field {
	min-width: 180px;
}

.smms-rate-field .smms-form-label {
	display: block;
	margin-bottom: 6px;
}

.smms-rate-row > .smms-btn {
	margin-top: 25px;
}

/* `hidden` must always win over the display rules above, inside and outside popups. */
.smms-log-error[hidden],
.smms-log-summary[hidden] {
	display: none !important;
}

/* Mentee list: number shown in the order mentees were added */
.smms-mentee-number {
	flex: 0 0 auto;
	min-width: 24px;
	text-align: right;
	font-size: 13px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--smms-text-muted);
}
.smms-mentee-number::after {
	content: ".";
}

/* Add / Edit Mentee: Student Mentee / Community Mentee toggle */
.smms-type-toggle {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-bottom: 8px;
}

.smms-type-option {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 11px 12px;
	border-radius: var(--smms-radius-sm);
	background: var(--smms-bg);
	border: 1px solid var(--smms-border);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--smms-text);
	cursor: pointer;
	text-align: center;
	user-select: none;
}

.smms-type-option input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.smms-type-option.is-active {
	border-color: var(--smms-primary);
	background: var(--smms-primary-light);
	color: var(--smms-link);
}

.smms-type-option:focus-within {
	outline: 2px solid var(--smms-primary);
	outline-offset: 2px;
}

.smms-log-hint {
	margin: 0 0 12px;
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--smms-text-muted);
}

.smms-log-modal .smms-alumni-row {
	margin-bottom: 18px;
}

/* A field or group that does not apply to the chosen mentee type. */
.smms-log-modal [data-mentee-type][hidden],
.smms-log-modal [data-year-wrap][hidden] {
	display: none !important;
}

/* Phone number fields (intl-tel-input). Themed with the portal's own colours so they follow
   light and dark mode, and sized like every other form box. */
.smms-portal-wrapper .iti {
	display: block;
	width: 100%;
	--iti-border-color: var(--smms-border);
	--iti-country-selector-bg: var(--smms-card-bg-elevated);
	--iti-hover-color: rgba(127, 127, 127, 0.16);
	--iti-icon-color: var(--smms-text);
}

.smms-portal-wrapper .iti input.smms-form-input,
.smms-portal-wrapper .iti input[type="tel"] {
	width: 100%;
}

.smms-portal-wrapper .iti__selected-dial-code {
	color: var(--smms-text);
	font-size: 15px;
}

.smms-portal-wrapper .iti--container {
	z-index: 100000; /* above the modals (10000) and everything else in the portal */
}

.smms-portal-wrapper .iti__dropdown-content {
	background: var(--smms-card-bg-elevated);
	color: var(--smms-text);
	border: 1px solid var(--smms-border);
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
	font-size: 15px;
}

.smms-portal-wrapper .iti__search-input {
	background: var(--smms-bg);
	color: var(--smms-text);
	border: 1px solid var(--smms-border);
	border-radius: 8px;
	font-size: 16px; /* no auto-zoom on iOS */
}

.smms-portal-wrapper .iti__dial-code {
	color: inherit;
	opacity: 0.7;
}

/* ------------------------------------------------------------------ *
 * Utilities that replace repeated inline styles in portal-app.js.
 * !important keeps the exact precedence the inline styles had.
 * ------------------------------------------------------------------ */
.smms-u-col-full { grid-column:1/-1 !important; }
.smms-u-empty { text-align:center !important; padding:32px 16px !important; color:var(--smms-text-muted) !important; }
.smms-u-h-14 { font-size:14px !important; font-weight:700 !important; margin:0 !important; }
.smms-u-h-sm { margin:0 0 8px 0 !important; font-size:14px !important; font-weight:700 !important; }
.smms-u-lede { font-size:14px !important; color:var(--smms-text-muted) !important; margin:0 !important; max-width:560px !important; }
.smms-u-m-b12 { margin:0 0 12px 0 !important; }
.smms-u-m0 { margin:0 !important; }
.smms-u-maxw-600 { max-width:600px !important; }
.smms-u-mb-16 { margin-bottom:16px !important; }
.smms-u-mb-24 { margin-bottom:24px !important; }
.smms-u-mb-6 { margin-bottom:6px !important; }
.smms-u-mt-12 { margin-top:12px !important; }
.smms-u-mt-14 { margin-top:14px !important; }
.smms-u-mt0-mb14 { margin-top:0 !important; margin-bottom:14px !important; }
.smms-u-muted { color:var(--smms-text-muted) !important; }
.smms-u-muted-pad16 { color:var(--smms-text-muted) !important; padding:16px 0 !important; }
.smms-u-muted-pad8 { color:var(--smms-text-muted) !important; padding:8px 0 !important; }
.smms-u-muted-sm { color:var(--smms-text-muted) !important; font-size:13px !important; }
.smms-u-muted-sm-m0 { color:var(--smms-text-muted) !important; font-size:13px !important; margin:0 !important; }
.smms-u-muted-sm-mt2 { font-size:13px !important; color:var(--smms-text-muted) !important; margin-top:2px !important; }
.smms-u-muted-xs { font-size:12px !important; color:var(--smms-text-muted) !important; }
.smms-u-muted-xs-lh { font-size:12px !important; color:var(--smms-text-muted) !important; line-height:1.4 !important; }
.smms-u-muted-xs-mb10 { font-size:12px !important; color:var(--smms-text-muted) !important; margin:0 0 10px 0 !important; }
.smms-u-muted-xs-mt2 { font-size:12px !important; color:var(--smms-text-muted) !important; margin-top:2px !important; }
.smms-u-muted-xs-mt4 { font-size:12px !important; color:var(--smms-text-muted) !important; margin-top:4px !important; }
.smms-u-panel { background:var(--smms-panel-bg) !important; border:1px solid var(--smms-border) !important; border-radius:12px !important; padding:14px !important; }
.smms-u-row-between-mb16 { display:flex !important; justify-content:space-between !important; align-items:center !important; margin-bottom:16px !important; flex-wrap:wrap !important; gap:12px !important; }
.smms-u-row-between-mb6 { display:flex !important; justify-content:space-between !important; align-items:center !important; margin-bottom:6px !important; flex-wrap:wrap !important; gap:12px !important; }
.smms-u-row-center-8 { display:flex !important; align-items:center !important; gap:8px !important; }
.smms-u-row-wrap-8 { display:flex !important; gap:8px !important; align-items:center !important; flex-wrap:wrap !important; }
.smms-u-subhead-row { margin:20px 0 10px 0 !important; display:flex !important; justify-content:space-between !important; align-items:baseline !important; }
.smms-u-text { color:var(--smms-text) !important; }
.smms-u-text-14-m0 { font-size:14px !important; margin:0 !important; }
.smms-u-text-22 { font-size:22px !important; }
.smms-u-text-lg-bold { font-size:18px !important; font-weight:700 !important; }
.smms-u-text-right { text-align:right !important; }
.smms-u-w-auto { width:auto !important; }
.smms-u-w-full { width:100% !important; }
