/**
 * Portal shell design tokens and components (scoped under .apm-portal-root).
 *
 * @package AcademicPortalManager
 */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* -------------------------------------------------------------------------
   Design tokens (light default; dark via [data-apm-theme="dark"])
   ------------------------------------------------------------------------- */
.apm-portal-root {
	/* Typography */
	--apm-font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--apm-text-xs: 0.75rem;
	--apm-text-sm: 0.875rem;
	--apm-text-base: 1rem;
	--apm-text-lg: 1.125rem;
	--apm-text-xl: 1.25rem;
	--apm-text-2xl: 1.5rem;
	--apm-font-normal: 400;
	--apm-font-medium: 500;
	--apm-font-semibold: 600;
	--apm-leading-tight: 1.25;
	--apm-leading-normal: 1.5;

	/* Spacing scale */
	--apm-space-1: 0.25rem;
	--apm-space-2: 0.5rem;
	--apm-space-3: 0.75rem;
	--apm-space-4: 1rem;
	--apm-space-5: 1.25rem;
	--apm-space-6: 1.5rem;
	--apm-space-8: 2rem;
	--apm-space-10: 2.5rem;
	--apm-space-12: 3rem;

	/* Radius & shadow */
	--apm-radius-sm: 6px;
	--apm-radius-md: 10px;
	--apm-radius-lg: 14px;
	--apm-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
	--apm-shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
	--apm-shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);

	/* Colors — light academic SaaS */
	--apm-canvas: #f4f6fb;
	--apm-surface: #ffffff;
	--apm-surface-2: #eef2f9;
	--apm-border: #e2e8f0;
	--apm-border-strong: #cbd5e1;
	--apm-text: #0f172a;
	--apm-text-muted: #64748b;
	--apm-accent: #2563eb;
	--apm-accent-hover: #1d4ed8;
	--apm-accent-muted: rgba(37, 99, 235, 0.08);
	--apm-sidebar-bg: #ffffff;
	--apm-sidebar-text: #0f172a;
	--apm-sidebar-muted: #64748b;
	--apm-sidebar-active: #eef2f9;
	--apm-sidebar-hover: rgba(15, 23, 42, 0.06);
	--apm-sidebar-line: #e2e8f0;
	--apm-focus: #2563eb;
	--apm-danger: #dc2626;

	color: var(--apm-text);
	background: var(--apm-canvas);
	font-family: var(--apm-font-sans);
	font-size: var(--apm-text-base);
	line-height: var(--apm-leading-normal);
	min-height: 100vh;
}

html[data-apm-theme="dark"] .apm-portal-root,
.apm-portal-root[data-apm-theme="dark"] {
	--apm-canvas: #0b1120;
	--apm-surface: #111827;
	--apm-surface-2: #1f2937;
	--apm-border: #334155;
	--apm-border-strong: #475569;
	--apm-text: #f1f5f9;
	--apm-text-muted: #94a3b8;
	--apm-accent: #60a5fa;
	--apm-accent-hover: #93c5fd;
	--apm-accent-muted: rgba(96, 165, 250, 0.12);
	--apm-sidebar-bg: #020617;
	--apm-sidebar-text: #f8fafc;
	--apm-sidebar-muted: #94a3b8;
	--apm-sidebar-active: #0f172a;
	--apm-sidebar-hover: rgba(255, 255, 255, 0.06);
	--apm-sidebar-line: rgba(255, 255, 255, 0.08);
	--apm-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
	--apm-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
	--apm-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
}

html[data-apm-theme="light"] .apm-portal-root,
.apm-portal-root[data-apm-theme="light"] {
	--apm-canvas: #f4f6fb;
	--apm-surface: #ffffff;
	--apm-surface-2: #eef2f9;
	--apm-border: #e2e8f0;
	--apm-border-strong: #cbd5e1;
	--apm-text: #0f172a;
	--apm-text-muted: #64748b;
	--apm-accent: #2563eb;
	--apm-accent-hover: #1d4ed8;
	--apm-accent-muted: rgba(37, 99, 235, 0.08);
	--apm-sidebar-bg: #ffffff;
	--apm-sidebar-text: #0f172a;
	--apm-sidebar-muted: #64748b;
	--apm-sidebar-active: #eef2f9;
	--apm-sidebar-hover: rgba(15, 23, 42, 0.06);
	--apm-sidebar-line: #e2e8f0;
	--apm-focus: #2563eb;
	--apm-danger: #dc2626;
	--apm-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
	--apm-shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
	--apm-shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
	color: var(--apm-text);
	background: var(--apm-canvas);
	color-scheme: light;
}

html[data-apm-theme="light"] .apm-portal-root .apm-topbar,
html[data-apm-theme="light"] .apm-portal-root .apm-topbar__title,
html[data-apm-theme="light"] .apm-portal-root .apm-main,
html[data-apm-theme="light"] .apm-portal-root .apm-card,
html[data-apm-theme="light"] .apm-portal-root .apm-heading,
html[data-apm-theme="light"] .apm-portal-root .woocommerce-Price-amount,
html[data-apm-theme="light"] .apm-portal-root .woocommerce-Price-amount span,
.apm-portal-root[data-apm-theme="light"] .apm-topbar,
.apm-portal-root[data-apm-theme="light"] .apm-topbar__title,
.apm-portal-root[data-apm-theme="light"] .apm-main,
.apm-portal-root[data-apm-theme="light"] .apm-card,
.apm-portal-root[data-apm-theme="light"] .apm-heading,
.apm-portal-root[data-apm-theme="light"] .woocommerce-Price-amount,
.apm-portal-root[data-apm-theme="light"] .woocommerce-Price-amount span {
	color: var(--apm-text);
}

html[data-apm-theme="light"] .apm-portal-root .apm-sidebar,
.apm-portal-root[data-apm-theme="light"] .apm-sidebar {
	background: var(--apm-sidebar-bg);
	color: var(--apm-sidebar-text);
}

html[data-apm-theme="light"] .apm-portal-root .apm-nav__link,
.apm-portal-root[data-apm-theme="light"] .apm-nav__link {
	color: var(--apm-sidebar-muted);
}

html[data-apm-theme="light"] .apm-portal-root .apm-nav__link:hover,
html[data-apm-theme="light"] .apm-portal-root .apm-nav__link.is-active,
.apm-portal-root[data-apm-theme="light"] .apm-nav__link:hover,
.apm-portal-root[data-apm-theme="light"] .apm-nav__link.is-active {
	color: var(--apm-sidebar-text);
}

html[data-apm-theme="dark"] .apm-portal-root .apm-sidebar,
.apm-portal-root[data-apm-theme="dark"] .apm-sidebar {
	background: var(--apm-sidebar-bg);
	color: var(--apm-sidebar-text);
}

html[data-apm-theme="dark"] .apm-portal-root .apm-nav__link,
.apm-portal-root[data-apm-theme="dark"] .apm-nav__link {
	color: var(--apm-sidebar-muted);
}

html[data-apm-theme="dark"] .apm-portal-root .apm-nav__link:hover,
html[data-apm-theme="dark"] .apm-portal-root .apm-nav__link.is-active,
.apm-portal-root[data-apm-theme="dark"] .apm-nav__link:hover,
.apm-portal-root[data-apm-theme="dark"] .apm-nav__link.is-active {
	color: var(--apm-sidebar-text);
}

@media (prefers-color-scheme: dark) {
	html:not([data-apm-theme="light"]):not([data-apm-theme="dark"]) .apm-portal-root[data-apm-theme="auto"] {
		--apm-canvas: #0b1120;
		--apm-surface: #111827;
		--apm-surface-2: #1f2937;
		--apm-border: #334155;
		--apm-border-strong: #475569;
		--apm-text: #f1f5f9;
		--apm-text-muted: #94a3b8;
		--apm-accent: #60a5fa;
		--apm-accent-hover: #93c5fd;
		--apm-accent-muted: rgba(96, 165, 250, 0.12);
		--apm-sidebar-bg: #020617;
		--apm-sidebar-text: #f8fafc;
		--apm-sidebar-muted: #94a3b8;
		--apm-sidebar-active: #0f172a;
		--apm-sidebar-hover: rgba(255, 255, 255, 0.06);
		--apm-sidebar-line: rgba(255, 255, 255, 0.08);
		--apm-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
		--apm-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
		--apm-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
	}
}

/* Layout */
.apm-portal-layout {
	display: grid;
	grid-template-columns: minmax(0, 260px) 1fr;
	min-height: 100vh;
	height: 100vh;
}

.apm-portal-main-wrap {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	background: var(--apm-canvas);
}

.apm-main {
	flex: 1;
	min-height: 0;
	overflow: auto;
	padding: var(--apm-space-6) var(--apm-space-6) var(--apm-space-10);
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}

/* Skip link */
.apm-skip-link {
	position: absolute;
	left: var(--apm-space-4);
	top: var(--apm-space-4);
	z-index: 100;
	padding: var(--apm-space-2) var(--apm-space-4);
	background: var(--apm-accent);
	color: #fff;
	font-weight: var(--apm-font-medium);
	border-radius: var(--apm-radius-sm);
	transform: translateY(-120%);
	transition: transform 0.15s ease;
}

.apm-skip-link:focus {
	transform: translateY(0);
	outline: 2px solid var(--apm-focus);
	outline-offset: 2px;
}

/* Sidebar */
.apm-sidebar {
	background: var(--apm-sidebar-bg);
	color: var(--apm-sidebar-text);
	padding: var(--apm-space-6) var(--apm-space-4);
	display: flex;
	flex-direction: column;
	gap: var(--apm-space-8);
	position: sticky;
	top: 0;
	height: 100vh;
	box-sizing: border-box;
	min-height: 0;
	overflow: hidden;
	border-right: 1px solid var(--apm-sidebar-line);
}

.apm-sidebar__brand {
	display: flex;
	align-items: center;
	gap: var(--apm-space-3);
	padding: 0 var(--apm-space-2);
}

.apm-sidebar__logo {
	width: 36px;
	height: 36px;
	border-radius: var(--apm-radius-md);
	background: linear-gradient(135deg, var(--apm-accent), #7c3aed);
	flex-shrink: 0;
}

.apm-sidebar__title {
	font-weight: var(--apm-font-semibold);
	font-size: var(--apm-text-lg);
	letter-spacing: -0.02em;
}

.apm-sidebar__brand-logo-wrap {
	display: block;
	max-width: 100%;
}

.apm-sidebar__brand-logo {
	display: block;
	max-width: 180px;
	max-height: 48px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.apm-staff-branding-preview__frame {
	display: inline-block;
	padding: var(--apm-space-3);
	border: 1px solid var(--apm-border);
	border-radius: var(--apm-radius-sm);
	background: var(--apm-surface);
}

.apm-staff-branding-preview__img {
	display: block;
	max-height: 80px;
	max-width: 280px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.apm-form-actions--row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--apm-space-3);
	align-items: center;
}

.apm-nav {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.apm-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	gap: var(--apm-space-1);
	overflow-y: auto;
}

.apm-nav__item--pin {
	margin-top: auto;
	position: sticky;
	bottom: 0;
	z-index: 1;
	background: var(--apm-sidebar-bg);
}

.apm-nav__item--pin + .apm-nav__item--pin {
	margin-top: 0;
	z-index: 2;
}

.apm-nav__item--pin:has(+ .apm-nav__item--pin) {
	bottom: calc(var(--apm-space-3) * 2 + var(--apm-text-sm) * var(--apm-leading-normal) + var(--apm-space-1));
}

.apm-nav__group-toggle {
	width: 100%;
	border: 0;
	background: transparent;
	cursor: pointer;
	text-align: left;
	font: inherit;
}

.apm-nav__chevron {
	margin-left: auto;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	opacity: 0.7;
	background: currentColor;
	transform: rotate(-90deg);
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.15s ease;
}

.apm-nav__item--group.is-open .apm-nav__chevron {
	transform: rotate(0deg);
}

.apm-nav__item--group:not(.is-open) .apm-nav__sublist {
	display: none;
}

.apm-nav__sublist {
	list-style: none;
	margin: 0;
	padding: 0 0 var(--apm-space-1) var(--apm-space-4);
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.apm-nav__link {
	display: flex;
	align-items: center;
	gap: var(--apm-space-3);
	padding: var(--apm-space-3) var(--apm-space-3);
	border-radius: var(--apm-radius-sm);
	color: var(--apm-sidebar-muted);
	text-decoration: none;
	font-size: var(--apm-text-sm);
	font-weight: var(--apm-font-medium);
	transition: background 0.15s ease, color 0.15s ease;
}

.apm-nav__link:hover {
	color: var(--apm-sidebar-text);
	background: var(--apm-sidebar-hover);
}

.apm-nav__link:focus-visible {
	outline: 2px solid var(--apm-accent);
	outline-offset: 2px;
}

.apm-nav__link.is-active {
	color: var(--apm-sidebar-text);
	background: var(--apm-sidebar-active);
	box-shadow: inset 0 0 0 1px var(--apm-sidebar-line);
}

.apm-nav__icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	opacity: 0.55;
}

/* Icon tokens — uniform silhouette (replace with SVG later) */
.apm-icon-dashboard { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z'/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z'/%3E%3C/svg%3E") center / contain no-repeat; background: currentColor; }
.apm-icon-user { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E") center / contain no-repeat; background: currentColor; }
.apm-icon-book { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z'/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z'/%3E%3C/svg%3E") center / contain no-repeat; background: currentColor; }
.apm-icon-file { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z'/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z'/%3E%3C/svg%3E") center / contain no-repeat; background: currentColor; }
.apm-icon-card { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-4h16v4zm0-10H4V6h16v2z'/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-4h16v4zm0-10H4V6h16v2z'/%3E%3C/svg%3E") center / contain no-repeat; background: currentColor; }
.apm-icon-ticket { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M22 10V6c0-1.11-.9-2-2-2H4c-1.1 0-1.99.89-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-1.99 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2s.9-2 2-2zm-2-2H4V6h16v2zm0 12H4v-2h16v2zm0-6H4v-2h16v2z'/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M22 10V6c0-1.11-.9-2-2-2H4c-1.1 0-1.99.89-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-1.99 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2s.9-2 2-2zm-2-2H4V6h16v2zm0 12H4v-2h16v2zm0-6H4v-2h16v2z'/%3E%3C/svg%3E") center / contain no-repeat; background: currentColor; }
.apm-icon-chart { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z'/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z'/%3E%3C/svg%3E") center / contain no-repeat; background: currentColor; }
.apm-icon-settings { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19.14 12.94c.04-.31.06-.63.06-.94 0-.31-.02-.63-.06-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.04.31-.06.63-.06.94s.02.63.06.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z'/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19.14 12.94c.04-.31.06-.63.06-.94 0-.31-.02-.63-.06-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.04.31-.06.63-.06.94s.02.63.06.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z'/%3E%3C/svg%3E") center / contain no-repeat; background-color: currentColor; }
.apm-icon-users { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3zm-8 0c1.66 0 3-1.34 3-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3zm-8 0c1.66 0 3-1.34 3-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E") center / contain no-repeat; background: currentColor; }
.apm-icon-logout { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17 7l-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.59L17 17l5-5-5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z'/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17 7l-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.59L17 17l5-5-5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z'/%3E%3C/svg%3E") center / contain no-repeat; background: currentColor; }
.apm-icon-school { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z'/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z'/%3E%3C/svg%3E") center / contain no-repeat; background: currentColor; }
.apm-icon-assignment { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm2 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z'/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm2 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z'/%3E%3C/svg%3E") center / contain no-repeat; background: currentColor; }
.apm-icon-help { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z'/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z'/%3E%3C/svg%3E") center / contain no-repeat; background: currentColor; }
.apm-icon-bell { width: 1.15rem; height: 1.15rem; display: block; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z'/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.apm-icon-whatsapp { width: 1.25rem; height: 1.25rem; flex-shrink: 0; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20.5 3.5A11 11 0 0 0 2.1 17.8L1 23l5.3-1.1A11 11 0 0 0 12 23a11 11 0 0 0 8.5-19.5zM12 21a9 9 0 0 1-4.6-1.3l-.3-.2-3.1.8.8-3-.2-.3A9 9 0 1 1 12 21zm5-6.7c-.3-.1-1.6-.8-1.8-.9s-.4-.1-.6.1-.7.9-.8 1-.3.2-.6.1a7.4 7.4 0 0 1-2.2-1.4 8.2 8.2 0 0 1-1.5-1.9c-.2-.3 0-.4.1-.6l.4-.5.2-.3a.5.5 0 0 0 0-.5c0-.1-.6-1.4-.8-1.9s-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 2.9 2.9 0 0 0-.9 2.2 5 5 0 0 0 1.1 2.7 11.4 11.4 0 0 0 4.4 3.9 15 15 0 0 0 1.5.6 3.6 3.6 0 0 0 1.7.1 2.7 2.7 0 0 0 1.8-1.3 2.2 2.2 0 0 0 .2-1.3c-.1-.1-.3-.2-.6-.3z'/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20.5 3.5A11 11 0 0 0 2.1 17.8L1 23l5.3-1.1A11 11 0 0 0 12 23a11 11 0 0 0 8.5-19.5zM12 21a9 9 0 0 1-4.6-1.3l-.3-.2-3.1.8.8-3-.2-.3A9 9 0 1 1 12 21zm5-6.7c-.3-.1-1.6-.8-1.8-.9s-.4-.1-.6.1-.7.9-.8 1-.3.2-.6.1a7.4 7.4 0 0 1-2.2-1.4 8.2 8.2 0 0 1-1.5-1.9c-.2-.3 0-.4.1-.6l.4-.5.2-.3a.5.5 0 0 0 0-.5c0-.1-.6-1.4-.8-1.9s-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 2.9 2.9 0 0 0-.9 2.2 5 5 0 0 0 1.1 2.7 11.4 11.4 0 0 0 4.4 3.9 15 15 0 0 0 1.5.6 3.6 3.6 0 0 0 1.7.1 2.7 2.7 0 0 0 1.8-1.3 2.2 2.2 0 0 0 .2-1.3c-.1-.1-.3-.2-.6-.3z'/%3E%3C/svg%3E") center / contain no-repeat; background: currentColor; }

.apm-support-contact {
	display: grid;
	gap: 0.75rem;
	margin: 0;
}

.apm-support-contact div {
	display: grid;
	gap: 0.15rem;
}

.apm-support-contact dt {
	color: var(--apm-text-muted);
	font-size: var(--apm-text-sm);
}

.apm-support-contact dd {
	margin: 0;
}

.apm-support-chat {
	display: flex;
	justify-content: flex-start;
	margin: var(--apm-space-4) 0 0;
}

.apm-notice-list {
	display: flex;
	flex-direction: column;
	gap: var(--apm-space-2);
	margin-top: var(--apm-space-3);
}

.apm-notice {
	margin: 0;
	padding: 0.55rem 0.75rem;
	border-radius: var(--apm-radius-sm);
	border-left: 3px solid transparent;
	color: var(--apm-text);
}

.apm-notice--info {
	background: rgba(37, 99, 235, 0.14);
	border-left-color: #2563eb;
}

.apm-notice--success {
	background: rgba(22, 163, 74, 0.16);
	border-left-color: #16a34a;
}

.apm-notice--warning {
	background: rgba(217, 119, 6, 0.18);
	border-left-color: #d97706;
}

.apm-notice-row__message {
	flex: 1;
	min-width: 0;
	margin: 0;
	color: var(--apm-text);
}

.apm-notice-create {
	margin-top: var(--apm-space-5);
	max-width: 36rem;
}

.apm-notice-menu {
	position: relative;
}

.apm-notice-toggle {
	position: relative;
}

.apm-notice-count {
	position: absolute;
	top: 0.1rem;
	right: 0.1rem;
	min-width: 1.05rem;
	height: 1.05rem;
	padding: 0 0.2rem;
	border-radius: 999px;
	background: var(--apm-accent);
	color: #fff;
	font-size: 0.65rem;
	line-height: 1.05rem;
	text-align: center;
}

.apm-notice-panel {
	position: absolute;
	top: calc(100% + 0.45rem);
	right: 0;
	width: min(22rem, calc(100vw - 2rem));
	display: flex;
	flex-direction: column;
	gap: var(--apm-space-2);
	padding: var(--apm-space-3);
	background: var(--apm-surface);
	color: var(--apm-text);
	border: 1px solid var(--apm-border);
	border-radius: var(--apm-radius-md);
	box-shadow: var(--apm-shadow-lg);
	z-index: 30;
}

.apm-notice-panel[hidden] {
	display: none !important;
}

.apm-nav__link.is-active .apm-nav__icon {
	opacity: 1;
}

/* Top bar */
.apm-topbar {
	display: flex;
	align-items: center;
	gap: var(--apm-space-4);
	padding: var(--apm-space-4) var(--apm-space-6);
	background: var(--apm-surface);
	border-bottom: 1px solid var(--apm-border);
	position: sticky;
	top: 0;
	z-index: 20;
	box-shadow: var(--apm-shadow-sm);
}

.apm-topbar__title {
	margin: 0;
	font-size: var(--apm-text-xl);
	font-weight: var(--apm-font-semibold);
	letter-spacing: -0.02em;
	flex: 1;
	min-width: 0;
	color: var(--apm-text);
}

.apm-topbar__tools {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: var(--apm-space-2);
	flex-shrink: 0;
}

.apm-theme-switch {
	flex-shrink: 0;
}

.apm-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	border-radius: var(--apm-radius-sm);
	background: var(--apm-surface-2);
	color: var(--apm-text);
	cursor: pointer;
	transition: background 0.15s ease;
}

.apm-icon-btn:hover {
	background: var(--apm-border);
}

.apm-icon-btn:focus-visible {
	outline: 2px solid var(--apm-focus);
	outline-offset: 2px;
}

.apm-icon-btn--sm {
	width: 2rem;
	height: 2rem;
	background: transparent;
	color: var(--apm-text);
	flex-shrink: 0;
}

.apm-icon-btn--sm:hover {
	background: var(--apm-surface-2);
}

.apm-icon-pencil,
.apm-icon-check,
.apm-icon-trash {
	width: 1.05rem;
	height: 1.05rem;
	display: block;
	background: currentColor;
}

.apm-icon-pencil {
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.apm-icon-check {
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.apm-icon-trash {
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.apm-sidebar-toggle__bars,
.apm-sidebar-toggle__bars::before,
.apm-sidebar-toggle__bars::after {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
	position: relative;
}

.apm-sidebar-toggle__bars::before,
.apm-sidebar-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.apm-sidebar-toggle__bars::before {
	top: -6px;
}

.apm-sidebar-toggle__bars::after {
	top: 6px;
}

.apm-sidebar-toggle {
	display: none;
}

/* Cards & stack */
.apm-stack {
	display: flex;
	flex-direction: column;
	gap: var(--apm-space-6);
}

.apm-stack--lg {
	gap: var(--apm-space-8);
}

.apm-stack--sm {
	gap: var(--apm-space-2);
}

.apm-card {
	background: var(--apm-surface);
	border: 1px solid var(--apm-border);
	border-radius: var(--apm-radius-lg);
	box-shadow: var(--apm-shadow-sm);
}

.apm-card--pad {
	padding: var(--apm-space-6);
}

.apm-card--flush {
	padding: 0;
	overflow: hidden;
}

.apm-card__header {
	border-bottom: 1px solid var(--apm-border);
}

.apm-season-card {
	scroll-margin-top: 4rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--apm-space-4);
	padding: var(--apm-space-4);
	background: var(--apm-surface);
	border: 1px solid var(--apm-border);
	border-radius: var(--apm-radius-md);
}

.apm-season-card__actions {
	display: flex;
	align-items: center;
	gap: var(--apm-space-3);
	flex-shrink: 0;
}

.apm-exam-offer-list {
	display: flex;
	flex-direction: column;
	gap: var(--apm-space-5);
}

.apm-exam-offer {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(10rem, 0.9fr) auto;
	align-items: center;
	gap: var(--apm-space-6);
	padding: var(--apm-space-8);
	background: var(--apm-surface);
	border: 1px solid var(--apm-border);
	border-radius: var(--apm-radius-lg);
	box-shadow: var(--apm-shadow-sm);
}

.apm-exam-offer--open {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.apm-exam-offer__main {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(10rem, 0.9fr);
	align-items: center;
	gap: var(--apm-space-6);
}

.apm-exam-offer__identity h3,
.apm-exam-offer__open,
.apm-exam-offer__status p {
	margin: 0;
}

.apm-exam-offer__identity .apm-text {
	margin: var(--apm-space-2) 0 0;
}

.apm-exam-offer__status {
	text-align: center;
}

.apm-exam-offer__open {
	font-size: var(--apm-text-lg);
	font-weight: var(--apm-font-semibold);
}

.apm-exam-offer__action {
	justify-self: end;
}

.apm-exam-offer__action form {
	margin: 0;
}

.apm-btn--lg {
	min-height: 3.25rem;
	padding: 0 var(--apm-space-6);
	font-size: var(--apm-text-base);
}

.apm-exam-offer__body {
	display: flex;
	flex-direction: column;
	gap: var(--apm-space-4);
	margin-top: var(--apm-space-6);
	padding-top: var(--apm-space-6);
	border-top: 1px solid var(--apm-border);
}

.apm-exam-offer__choices {
	display: flex;
	flex-wrap: wrap;
	gap: var(--apm-space-3);
}

.apm-exam-offer__choice {
	display: inline-flex;
	align-items: center;
	min-height: 3rem;
	padding: 0 var(--apm-space-5);
	border: 1px solid var(--apm-border);
	border-radius: var(--apm-radius-md);
	background: var(--apm-canvas);
	color: inherit;
	font-weight: var(--apm-font-medium);
	text-decoration: none;
}

.apm-exam-offer__choice:hover {
	border-color: var(--apm-accent);
}

.apm-exam-offer__form {
	display: flex;
	flex-direction: column;
	gap: var(--apm-space-4);
	max-width: 36rem;
}

.apm-exam-offer__subjects {
	display: grid;
	gap: var(--apm-space-3);
}

.apm-exam-offer__summary {
	margin: 0;
	padding-left: 1.25rem;
}

.apm-exam-offer__total {
	font-weight: var(--apm-font-semibold);
}

@media (max-width: 720px) {
	.apm-exam-offer,
	.apm-exam-offer__main {
		grid-template-columns: 1fr;
		justify-items: start;
	}

	.apm-exam-offer__status {
		text-align: left;
	}

	.apm-exam-offer__action {
		justify-self: start;
	}
}

.apm-season-create {
	margin: var(--apm-space-3) 0 0;
}

.apm-text-button {
	padding: 0;
	border: 0;
	background: none;
	color: var(--apm-accent);
	font: inherit;
	text-decoration: none;
	cursor: pointer;
	text-decoration: underline;
}

.apm-switch {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.apm-switch input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.apm-switch__track {
	width: 2.5rem;
	height: 1.4rem;
	border-radius: 999px;
	background: var(--apm-border-strong);
	position: relative;
}

.apm-switch__track::after {
	content: "";
	position: absolute;
	top: 0.15rem;
	left: 0.15rem;
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 50%;
	background: var(--apm-surface);
	transition: transform 0.15s ease;
}

.apm-switch input:checked + .apm-switch__track {
	background: var(--apm-accent);
}

.apm-switch input:checked + .apm-switch__track::after {
	transform: translateX(1.1rem);
}

.apm-switch input:focus-visible + .apm-switch__track {
	outline: 2px solid var(--apm-accent);
	outline-offset: 2px;
}

.apm-dialog {
	width: min(40rem, calc(100vw - 2rem));
	max-height: calc(100vh - 2rem);
	overflow: auto;
	padding: var(--apm-space-5);
	border: 1px solid var(--apm-border);
	border-radius: var(--apm-radius-lg);
	background: var(--apm-surface);
	color: var(--apm-text);
	box-shadow: var(--apm-shadow-lg);
}

.apm-dialog::backdrop {
	background: rgba(15, 23, 42, 0.45);
}

.apm-dialog__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--apm-space-3);
	margin-bottom: var(--apm-space-4);
}

.apm-app-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--apm-space-3);
}

.apm-app-filters .apm-form-field {
	margin: 0;
	min-width: 9rem;
}

.apm-app-list {
	display: flex;
	flex-direction: column;
	gap: var(--apm-space-2);
	margin-top: var(--apm-space-4);
}

.apm-app-row {
	display: flex;
	align-items: center;
	gap: var(--apm-space-3);
	padding: var(--apm-space-3) var(--apm-space-4);
	background: var(--apm-surface);
	border: 1px solid var(--apm-border);
	border-radius: var(--apm-radius-md);
}

.apm-app-row__main {
	display: grid;
	grid-template-columns: 2.5rem repeat(6, minmax(0, 1fr));
	gap: var(--apm-space-2);
	align-items: center;
	flex: 1;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.apm-app-row__label {
	display: block;
	font-size: var(--apm-text-xs);
	color: var(--apm-text-muted);
}

.apm-app-row__serial {
	font-weight: var(--apm-font-semibold);
}

.apm-app-row__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--apm-space-2);
	flex-shrink: 0;
}

.apm-app-row__actions form {
	margin: 0;
}

.apm-app-detail {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--apm-space-3);
	margin: 0 0 var(--apm-space-4);
}

.apm-app-detail div {
	margin: 0;
}

.apm-app-detail dt {
	font-size: var(--apm-text-xs);
	color: var(--apm-text-muted);
}

.apm-app-detail dd {
	margin: 0;
}

.apm-student-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--apm-space-3);
}

.apm-student-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--apm-space-2);
	margin: var(--apm-space-4) 0;
}

.apm-student-tabs a {
	padding: var(--apm-space-2) var(--apm-space-3);
	border: 1px solid var(--apm-border);
	border-radius: var(--apm-radius-sm);
	color: inherit;
	text-decoration: none;
}

.apm-student-tabs a.is-active {
	background: var(--apm-accent);
	border-color: var(--apm-accent);
	color: #fff;
}

.apm-student-row {
	display: flex;
	align-items: center;
	gap: var(--apm-space-3);
	padding: var(--apm-space-3) var(--apm-space-4);
	background: var(--apm-surface);
	border: 1px solid var(--apm-border);
	border-radius: var(--apm-radius-md);
}

.apm-student-row__main {
	display: grid;
	grid-template-columns: 2.5rem minmax(0, 1fr) minmax(0, 1.2fr);
	gap: var(--apm-space-3);
	align-items: center;
	flex: 1;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.apm-student-row__type {
	margin: 0;
	min-width: 12rem;
}

.apm-student-records {
	display: flex;
	flex-direction: column;
	gap: var(--apm-space-3);
	margin-bottom: var(--apm-space-4);
}

.apm-student-record {
	position: relative;
	padding: var(--apm-space-3) var(--apm-space-4);
	border: 1px solid var(--apm-border);
	border-radius: var(--apm-radius-md);
}

.apm-student-record--form {
	padding-right: 9.5rem;
}

.apm-student-record__action {
	position: absolute;
	top: var(--apm-space-3);
	right: var(--apm-space-4);
}

.apm-student-record .apm-text {
	margin: 0 0 var(--apm-space-1);
}

@media (max-width: 720px) {
	.apm-student-row {
		flex-direction: column;
		align-items: stretch;
	}

	.apm-student-row__main {
		grid-template-columns: 2.5rem minmax(0, 1fr);
	}
}

@media (max-width: 960px) {
	.apm-app-row {
		flex-direction: column;
		align-items: stretch;
	}

	.apm-app-row__main,
	.apm-app-detail {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.apm-catalog-card {
	scroll-margin-top: 4rem;
	position: relative;
	background: var(--apm-surface);
	border: 1px solid var(--apm-border);
	border-radius: var(--apm-radius-md);
}

.apm-catalog-card--nested {
	background: var(--apm-surface-2);
}

.apm-catalog-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--apm-space-3);
	padding: var(--apm-space-4);
	padding-right: 3.25rem;
}

.apm-catalog-card__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--apm-space-2);
}

.apm-catalog-card__tools form,
.apm-catalog-row form {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: var(--apm-space-2);
}

.apm-catalog-card__tools .apm-input,
.apm-catalog-row .apm-input {
	width: 14rem;
	max-width: 100%;
}

.apm-catalog-fold__summary {
	position: absolute;
	top: 1rem;
	right: 0.85rem;
	width: 1.75rem;
	height: 1.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	list-style: none;
	cursor: pointer;
	color: var(--apm-text-muted);
}

.apm-catalog-fold__summary::-webkit-details-marker {
	display: none;
}

.apm-catalog-fold__summary::marker {
	content: "";
}

.apm-catalog-fold__label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.apm-chevron {
	width: 0.45rem;
	height: 0.45rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	display: inline-block;
}

.apm-catalog-fold[open] > .apm-catalog-fold__summary .apm-chevron {
	transform: rotate(225deg);
	margin-top: 0.2rem;
}

.apm-catalog-fold:not([open]) > .apm-catalog-fold__body {
	display: none;
}

.apm-catalog-fold__body {
	display: flex;
	flex-direction: column;
	gap: var(--apm-space-3);
	padding: 0 var(--apm-space-4) var(--apm-space-4);
}

.apm-catalog-row {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--apm-space-3);
	padding: var(--apm-space-2) var(--apm-space-3);
	background: var(--apm-surface);
	border: 1px solid var(--apm-border);
	border-radius: var(--apm-radius-sm);
}

.apm-catalog-row [hidden],
.apm-catalog-semester [hidden] {
	display: none !important;
}

.apm-catalog-semester {
	flex-wrap: nowrap;
}

.apm-catalog-semester .apm-catalog-row__rename {
	display: flex;
	align-items: center;
}

.apm-catalog-row__rename {
	flex: 1;
	min-width: 0;
}

.apm-catalog-row__name {
	display: block;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--apm-text);
	font-weight: var(--apm-font-medium);
}

.apm-catalog-row__name,
.apm-catalog-row .apm-catalog-row__input,
.apm-catalog-semester .apm-catalog-row__input {
	flex: 1;
	min-width: 0;
	width: auto;
	max-width: none;
}

.apm-catalog-row__actions {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: var(--apm-space-1);
	margin-left: auto;
	flex-shrink: 0;
}

.apm-catalog-create {
	position: relative;
	display: flex;
	margin-top: var(--apm-space-3);
	padding: var(--apm-space-2) var(--apm-space-3);
	border: 1px dashed var(--apm-border-strong);
	border-radius: var(--apm-radius-sm);
}

.apm-catalog-fold__body > .apm-catalog-create {
	margin-top: 0;
}

.apm-catalog-create .apm-input {
	width: 100%;
	background: transparent;
	border-color: transparent;
}

.apm-catalog-create__submit {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.apm-heading {
	margin: 0;
	color: var(--apm-text);
}

.apm-heading--section {
	font-size: var(--apm-text-lg);
	font-weight: var(--apm-font-semibold);
}

.apm-heading--label {
	font-size: var(--apm-text-xs);
	font-weight: var(--apm-font-semibold);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--apm-text-muted);
	margin: 0 0 var(--apm-space-2);
}

.apm-text {
	margin: 0;
	color: var(--apm-text-muted);
}

.apm-text--muted {
	color: var(--apm-text-muted);
}

.apm-stat {
	margin: 0;
	font-size: var(--apm-text-2xl);
	font-weight: var(--apm-font-semibold);
	color: var(--apm-text);
	letter-spacing: -0.02em;
}

.apm-grid--stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--apm-space-4);
}

.apm-grid--split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--apm-space-4);
	align-items: start;
}

.apm-chart-legend {
	display: flex;
	flex-wrap: wrap;
	gap: var(--apm-space-4);
	margin: var(--apm-space-3) 0 var(--apm-space-4);
	font-size: var(--apm-text-xs);
	color: var(--apm-text-muted);
}

.apm-chart-legend__item::before {
	content: "";
	display: inline-block;
	width: 0.7rem;
	height: 0.7rem;
	margin-right: var(--apm-space-2);
	border-radius: 2px;
	vertical-align: -1px;
	background: var(--apm-accent);
}

.apm-chart-legend__item--exams::before {
	background: #14b8a6;
}

.apm-bars {
	display: flex;
	align-items: stretch;
	gap: var(--apm-space-2);
	min-height: 11rem;
	overflow-x: auto;
}

.apm-bars__month {
	flex: 1 1 0;
	min-width: 3.2rem;
	display: flex;
	flex-direction: column;
}

.apm-bars__plot {
	flex: 1;
	min-height: 8.5rem;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 4px;
	border-bottom: 2px solid var(--apm-border-strong);
}

.apm-bars__series {
	width: 1.6rem;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
}

.apm-bars__value {
	font-size: var(--apm-text-xs);
	line-height: 1;
	color: var(--apm-text-muted);
	margin-bottom: 2px;
	white-space: nowrap;
}

.apm-bars__col {
	display: block;
	width: 0.85rem;
	height: var(--apm-bar, 0%);
	max-height: calc(100% - 0.9rem);
	border-radius: 3px 3px 0 0;
	background: var(--apm-accent);
}

.apm-bars__col--exams {
	background: #14b8a6;
}

.apm-bars__label,
.apm-line__month {
	margin-top: var(--apm-space-2);
	text-align: center;
	font-size: var(--apm-text-xs);
	color: var(--apm-text-muted);
}

.apm-line {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.apm-line__axis {
	stroke: var(--apm-border-strong);
	stroke-width: 2;
	vector-effect: non-scaling-stroke;
}

.apm-line__path {
	fill: none;
	stroke-width: 2;
	vector-effect: non-scaling-stroke;
}

.apm-line__path--entrance {
	stroke: var(--apm-accent);
}

.apm-line__path--exams {
	stroke: #14b8a6;
}

.apm-line__dot--entrance {
	fill: var(--apm-accent);
}

.apm-line__dot--exams {
	fill: #14b8a6;
}

.apm-line__tag {
	font-size: 9px;
	fill: var(--apm-text-muted);
}

.apm-line__months {
	display: flex;
	justify-content: space-between;
	gap: var(--apm-space-1);
}

.apm-dash-more {
	margin: var(--apm-space-4) 0 0;
}

.apm-dash-list {
	list-style: none;
	margin: var(--apm-space-4) 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--apm-space-3);
}

.apm-dash-list__item {
	display: flex;
	flex-direction: column;
	gap: var(--apm-space-1);
	padding-bottom: var(--apm-space-3);
	border-bottom: 1px solid var(--apm-border);
}

.apm-dash-list__item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.apm-dash-list__title {
	font-weight: var(--apm-font-semibold);
}

.apm-dash-list__meta {
	font-size: var(--apm-text-sm);
	color: var(--apm-text-muted);
}

.apm-dash-intro {
	display: flex;
	flex-direction: column;
	gap: var(--apm-space-3);
}

.apm-dash-card {
	display: block;
	color: inherit;
	text-decoration: none;
}

.apm-dash-card:hover {
	border-color: var(--apm-accent);
}

.apm-dash-notice {
	font-weight: var(--apm-font-semibold);
}

/* Table */
.apm-table-wrap {
	overflow-x: auto;
}

.apm-table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--apm-text-sm);
}

.apm-table th,
.apm-table td {
	padding: var(--apm-space-4) var(--apm-space-6);
	text-align: left;
	border-bottom: 1px solid var(--apm-border);
}

.apm-table thead th {
	font-weight: var(--apm-font-semibold);
	color: var(--apm-text-muted);
	background: var(--apm-surface-2);
}

.apm-table__empty {
	text-align: center;
	color: var(--apm-text-muted);
	font-style: italic;
}

/* Application detail (read-only, shared student/staff) */
.apm-application-detail__actions {
	margin-bottom: var(--apm-space-4);
}

.apm-application-detail__dl {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: var(--apm-space-4);
}

.apm-application-detail__row {
	display: grid;
	grid-template-columns: minmax(0, 220px) 1fr;
	gap: var(--apm-space-3) var(--apm-space-4);
	align-items: start;
}

.apm-application-detail__row dd {
	margin: 0;
}

.apm-application-detail__value {
	white-space: pre-wrap;
	word-break: break-word;
}

/* Print-ready application form layout */
.apm-print-form {
	font-family: "Noto Sans Malayalam", "DejaVu Sans", Arial, sans-serif;
	color: #111;
	background: #fff;
}

.apm-print-form__header-box {
	display: grid;
	grid-template-columns: 90px 1fr 40px;
	gap: 12px;
	align-items: center;
	padding: 12px;
	border: 1px solid #222;
	background: #fff;
}

.apm-print-form__logo-col {
	display: flex;
	align-items: center;
	justify-content: center;
}

.apm-print-form__logo {
	max-width: 100%;
	max-height: 70px;
	object-fit: contain;
}

.apm-print-form__head-main {
	text-align: center;
}

.apm-print-form__institution-arabic {
	margin: 0 0 2px;
	font-size: 20px;
	line-height: 1.2;
	font-weight: 700;
}

.apm-print-form__institution-name {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
	font-weight: 700;
	text-transform: uppercase;
}

.apm-print-form__institution-meta {
	margin: 2px 0 0;
	font-size: 11px;
	line-height: 1.4;
	color: #111;
}

.apm-print-form__header-gap {
	width: 100%;
	min-height: 1px;
}

.apm-print-form__top-grid {
	display: grid;
	grid-template-columns: 1fr 122px;
	gap: 10px;
	margin-top: 8px;
}

.apm-print-form__left-col,
.apm-print-form__right-col {
	display: flex;
	flex-direction: column;
}

.apm-print-form__title-row {
	border: 1px solid #222;
	background: #fff;
	padding: 6px 10px;
	min-height: 36px;
	align-items: center;
	display: flex;
}

.apm-print-form__title {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.2px;
}

.apm-print-form__section {
	border: 1px solid #222;
	background: #fff;
	margin-top: 8px;
	padding: 8px 10px;
}

.apm-print-form__section--basic {
	margin-top: 8px;
}

.apm-print-form__fields {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.apm-print-form__field-row {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px;
	align-items: end;
}

.apm-print-form__field-label,
.apm-print-form__field-value {
	margin: 0;
	font-size: 11px;
	line-height: 1.55;
	color: #111;
}

.apm-print-form__field-value {
	border-bottom: 1px dotted #8d8d8d;
	padding-bottom: 1px;
	white-space: pre-wrap;
	word-break: break-word;
	min-height: 16px;
}

.apm-print-form__right-col {
	gap: 8px;
}

.apm-print-form__ref-box {
	border: 1px solid #222;
	background: #fff;
	min-height: 36px;
	padding: 5px 7px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.apm-print-form__ref-label {
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
}

.apm-print-form__ref-value {
	font-size: 10px;
	line-height: 1.2;
	min-height: 12px;
}

.apm-print-form__photo-box {
	width: 100%;
	height: 208px;
	border: 1px solid #222;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #fff;
}

.apm-print-form__photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.apm-print-form__photo-placeholder {
	font-size: 10px;
	color: #222;
}

.apm-print-form__section-title {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}

.apm-print-form__section-title--upper {
	text-transform: uppercase;
}

.apm-print-form__section--ml {
	font-size: 12px;
	line-height: 1.75;
	color: #111;
}

.apm-print-form__para {
	margin: 0 0 6px;
}

.apm-print-form__sign-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 16px;
	margin-top: 8px;
}

.apm-print-form__sign-line {
	margin: 0;
	font-size: 11px;
	line-height: 1.8;
	border-bottom: 1px dotted #8d8d8d;
	min-height: 20px;
	color: #111;
}

.apm-print-form__office-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.apm-print-form__office-col {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.apm-print-form__check {
	margin: 0;
	font-size: 11px;
	line-height: 1.6;
	color: #111;
}

@media (max-width: 640px) {
	.apm-application-detail__row {
		grid-template-columns: 1fr;
	}

	.apm-print-form__top-grid,
	.apm-print-form__sign-grid,
	.apm-print-form__office-grid {
		grid-template-columns: 1fr;
	}

	.apm-print-form__field-row {
		grid-template-columns: 1fr;
	}
}

/* Form components */
.apm-form {
	gap: var(--apm-space-5);
}

.apm-form-panel {
	background: var(--apm-surface);
	border: 1px solid var(--apm-border);
	border-radius: var(--apm-radius-md);
	padding: var(--apm-space-5);
	display: flex;
	flex-direction: column;
	gap: var(--apm-space-4);
}

.apm-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--apm-space-4);
}

.apm-form-field {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: var(--apm-space-2);
	min-width: 0;
}

.apm-form-field--full {
	grid-column: 1 / -1;
}

.apm-form-help {
	font-size: var(--apm-text-xs);
	line-height: var(--apm-leading-normal);
	color: var(--apm-text-muted);
}

.apm-input {
	width: 100%;
	min-height: 42px;
	padding: var(--apm-space-2) var(--apm-space-3);
	border: 1px solid var(--apm-border-strong);
	border-radius: var(--apm-radius-sm);
	background: var(--apm-surface);
	color: var(--apm-text);
	font: inherit;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

textarea.apm-input {
	min-height: 110px;
	resize: vertical;
}

input.apm-input[type="file"] {
	min-height: auto;
	padding: var(--apm-space-2);
}

.apm-input:hover {
	border-color: var(--apm-focus);
}

.apm-input:focus-visible {
	outline: none;
	border-color: var(--apm-focus);
	box-shadow: 0 0 0 3px var(--apm-accent-muted);
}

.apm-input::placeholder {
	color: var(--apm-text-muted);
}

.apm-check {
	display: inline-flex;
	align-items: flex-start;
	gap: var(--apm-space-2);
	color: var(--apm-text);
	font-size: var(--apm-text-sm);
}

.apm-check input[type="checkbox"] {
	margin-top: 0.2rem;
}

.apm-form-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-top: var(--apm-space-2);
}

.apm-profile-photo-row {
	display: grid;
	grid-template-columns: 128px 1fr;
	gap: var(--apm-space-5);
	align-items: center;
}

.apm-avatar-frame {
	width: 128px;
	height: 128px;
	border-radius: 50%;
	background: var(--apm-surface-2);
	border: 1px solid var(--apm-border);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.apm-profile-preview {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.apm-avatar-placeholder {
	font-size: var(--apm-text-sm);
	color: var(--apm-text-muted);
}

.apm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--apm-space-2);
	min-height: 42px;
	padding: 0 var(--apm-space-4);
	border: 1px solid transparent;
	border-radius: var(--apm-radius-sm);
	background: var(--apm-accent);
	color: #fff;
	font-size: var(--apm-text-sm);
	font-weight: var(--apm-font-medium);
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.05s ease;
}

.apm-btn:hover {
	background: var(--apm-accent-hover);
}

.apm-btn:active {
	transform: translateY(1px);
}

.apm-btn:focus-visible {
	outline: 2px solid var(--apm-focus);
	outline-offset: 2px;
}

.apm-btn--secondary {
	background: var(--apm-surface-2);
	color: var(--apm-text);
	border: 1px solid var(--apm-border);
}

.apm-btn--secondary:hover {
	background: var(--apm-surface);
	border-color: var(--apm-accent);
}

.apm-forminator-success-action {
	margin-top: var(--apm-space-4);
}

a.apm-btn.apm-is-disabled[aria-disabled='true'] {
	pointer-events: none;
	opacity: 0.55;
	cursor: not-allowed;
}

.apm-applicant-tools {
	display: flex;
	flex-wrap: wrap;
	gap: var(--apm-space-3);
	margin-top: var(--apm-space-3);
}

.apm-applicant-tools__panel {
	margin-top: var(--apm-space-4);
	padding-top: var(--apm-space-4);
	border-top: 1px solid var(--apm-border);
}

.apm-applicant-tools__panel[hidden] {
	display: none !important;
}

.apm-applicant-feedback {
	margin-top: var(--apm-space-3);
	margin-bottom: var(--apm-space-2);
	padding: var(--apm-space-3) var(--apm-space-4);
	border-radius: var(--apm-radius-sm);
	background: var(--apm-surface-2);
	border: 1px solid var(--apm-border);
}

/* Backdrop + mobile sidebar */
.apm-sidebar-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	z-index: 29;
}

.apm-sidebar-backdrop.is-visible {
	display: block;
}

body.apm-portal-app.apm-sidebar-open {
	overflow: hidden;
}

@media (max-width: 960px) {
	.apm-portal-layout {
		grid-template-columns: 1fr;
	}

	.apm-sidebar {
		position: fixed;
		left: 0;
		top: 0;
		bottom: 0;
		width: min(280px, 88vw);
		z-index: 30;
		transform: translateX(-100%);
		transition: transform 0.2s ease;
		box-shadow: var(--apm-shadow-lg);
		overflow: hidden;
	}

	body.apm-sidebar-open .apm-sidebar {
		transform: translateX(0);
	}

	.apm-sidebar-toggle {
		display: inline-flex;
	}

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

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

	.apm-profile-photo-row {
		grid-template-columns: 1fr;
		justify-items: start;
	}
}

@media print {
	@page {
		size: A4;
		margin: 12mm;
	}

	@font-face {
		font-family: "Noto Sans Malayalam";
		src: url("../../assets/fonts/NotoSansMalayalam-Regular.ttf") format("truetype");
		font-weight: 400;
		font-style: normal;
	}

	body.apm-portal-app .apm-sidebar,
	body.apm-portal-app .apm-topbar,
	body.apm-portal-app #apm-portal-backdrop,
	.apm-print-hide {
		display: none !important;
	}

	body.apm-portal-app .apm-portal-layout {
		display: block;
		height: auto;
		grid-template-columns: 1fr;
	}

	body.apm-portal-app .apm-main {
		max-width: none;
		overflow: visible;
		padding: var(--apm-space-4);
	}

	.apm-print-root .apm-card {
		box-shadow: none;
		border: 1px solid #111;
		padding: 10px;
		background: #fff !important;
		color: #111 !important;
	}

	.apm-print-form,
	.apm-print-form * {
		font-family: "Noto Sans Malayalam", "DejaVu Sans", Arial, sans-serif !important;
		color: #111 !important;
		background-color: #fff !important;
	}

	.apm-print-form__header-box,
	.apm-print-form__title-row,
	.apm-print-form__section {
		break-inside: avoid-page;
		page-break-inside: avoid;
	}

	.apm-print-form__field-row {
		break-inside: avoid;
		page-break-inside: avoid;
	}
}
