/**
 * CIE DIGITAL PORTAL — MASTER DESIGN SYSTEM
 * Exact match to supplied CIE UI mockups:
 * Primary Navy: #062B50 | Deep Teal: #00514D | Primary Green: #0B8F73 | Active Green: #7CC242 / #15A77F
 * Page Bg: #F3F8FC | Card: #FFFFFF | Border: #DDE7EE | Secondary Text: #53677B
 */

:root {
	--navy: #062B50;
	--deep-teal: #00514D;
	--pri-green: #0B8F73;
	--act-green: #7CC242;
	--hover-green: #15A77F;
	--page-bg: #F3F8FC;
	--card-bg: #FFFFFF;
	--border: #DDE7EE;
	--text-primary: #1F2A37;
	--text-secondary: #53677B;
	--text-muted: #8B98A5;
	
	/* Semantic Colors */
	--success-bg: #E7F6EE;
	--success-text: #12633A;
	--warning-bg: #FEF3C7;
	--warning-text: #92400E;
	--danger-bg: #FEE2E2;
	--danger-text: #B91C1C;
	--info-bg: #EFF6FF;
	--info-text: #1D4ED8;

	--sidebar-w: 240px;
	--header-h: 68px;
	--radius-card: 10px;
	--radius-btn: 6px;
	--radius-pill: 20px;
	--shadow-subtle: 0 1px 3px rgba(6, 43, 80, 0.04), 0 4px 12px rgba(6, 43, 80, 0.03);
	--shadow-modal: 0 12px 36px rgba(6, 43, 80, 0.16);
}

*, *::before, *::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	background-color: var(--page-bg);
	color: var(--text-primary);
	font-size: 13.5px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

a {
	color: inherit;
	text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--navy);
	font-family: 'Manrope', 'Inter', sans-serif;
	font-weight: 700;
	margin-top: 0;
}

p {
	margin: 0 0 10px;
}

small {
	font-size: 11.5px;
	color: var(--text-secondary);
}

/* Base icon sizing. Inline SVGs are emitted with only a viewBox, so without
   an explicit size they collapse to 0x0 and render invisible. Component
   rules (.ni .ic, .top-search .ic, .qa-item-btn .ic) still override this. */
svg.ic {
	width: 18px;
	height: 18px;
	flex: none;
	display: block;
}

/* ==========================================================================
   APP SHELL & LAYOUT
   ========================================================================== */

.app {
	display: flex;
	min-height: 100vh;
	width: 100%;
}

/* Sidebar */
.sb {
	width: var(--sidebar-w);
	background: var(--deep-teal);
	color: #FFFFFF;
	padding: 18px 14px;
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	overflow-y: auto;
	z-index: 100;
	display: flex;
	flex-direction: column;
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sb-logo-wrap {
	background: #FFFFFF;
	border-radius: var(--radius-card);
	padding: 10px 12px;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sb-logo-wrap img {
	max-height: 48px;
	max-width: 100%;
	object-fit: contain;
}

.sb-nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
	/* The nav must never be squeezed: every link has to stay reachable. It
	   takes its natural height and the sidebar scrolls if the panel below
	   cannot also fit. */
	flex: 0 0 auto;
}

/* ======================================================================
   SIDEBAR PROGRAMME PANEL (members)
   Shows what the member is enrolled in, what is still unpaid, and lets
   them add another programme with its own separate fee.
   ====================================================================== */
.sb-panel {
	margin: 12px 0 0;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	overflow: hidden;
	/* Never shrink below its content: on a short viewport the whole sidebar
	   scrolls instead of squeezing the panel. */
	flex: 0 0 auto;
	max-height: 46vh;
	display: flex;
	flex-direction: column;
}

.sb-panel-b {
	padding: 10px 12px 12px;
	overflow-y: auto;
}

.sb-panel-h {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 11px 12px;
	font-size: 12.5px;
	font-weight: 700;
	color: #FFFFFF;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sb-panel-h .ic {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
	opacity: 0.85;
}

.sbp-row {
	padding: 7px 0;
	border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.sbp-row:last-of-type {
	border-bottom: 0;
}

.sbp-line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.sbp-name {
	font-size: 12.5px;
	font-weight: 600;
	color: #FFFFFF;
	line-height: 1.35;
}

.sbp-line small {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.62);
}

.sbp-tag {
	flex-shrink: 0;
	font-size: 9.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	padding: 2px 7px;
	border-radius: 20px;
}

.sbp-tag.green {
	background: rgba(124, 194, 66, 0.2);
	color: #7CC242;
}

.sbp-tag.amber {
	background: rgba(245, 158, 11, 0.22);
	color: #FCD34D;
}

.sbp-pay {
	display: inline-block;
	margin-top: 4px;
	font-size: 11px;
	font-weight: 700;
	color: #FCD34D;
	text-decoration: underline;
}

.sbp-due {
	margin: 8px 0;
	padding: 7px 9px;
	border-radius: 7px;
	background: rgba(245, 158, 11, 0.16);
	color: #FCD34D;
	font-size: 11.5px;
	font-weight: 700;
}

.sbp-empty {
	font-size: 11.5px;
	color: rgba(255, 255, 255, 0.55);
	line-height: 1.5;
	padding: 4px 0;
}

.sbp-form {
	margin-top: 12px;
	padding-top: 11px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.sbp-form label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: rgba(255, 255, 255, 0.6);
}

.sbp-form select {
	width: 100%;
	padding: 8px 28px 8px 10px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 7px;
	background-color: rgba(255, 255, 255, 0.1);
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 9px center;
	background-size: 12px;
	color: #FFFFFF;
	font-size: 12px;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	text-overflow: ellipsis;
}

.sbp-form select option {
	color: #062B50;
	background: #FFFFFF;
}

.sbp-form select:focus {
	outline: none;
	border-color: rgba(255, 255, 255, 0.5);
}

.sbp-form .btn {
	width: 100%;
}

.sbp-form .btn[data-sbp-btn] {
	background: #7CC242;
	border-color: #7CC242;
	color: #062B50;
}

.sbp-form .btn[data-sbp-btn]:disabled {
	opacity: 0.6;
	cursor: progress;
}

.sbp-more {
	display: block;
	margin-top: 10px;
	font-size: 11.5px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
}

.sbp-more:hover {
	color: #FFFFFF;
	text-decoration: underline;
}

.btn-full {
	display: block;
	width: 100%;
	margin-top: 12px;
	text-align: center;
}

.sb-nav-section {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: rgba(255, 255, 255, 0.45);
	margin: 16px 12px 6px;
	font-weight: 700;
}

.ni {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-radius: 8px;
	color: #D6E4DE;
	font-weight: 500;
	font-size: 13.5px;
	transition: background 0.15s ease, color 0.15s ease;
	position: relative;
}

.ni:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #FFFFFF;
}

.ni.on {
	background: var(--act-green);
	color: #062B50;
	font-weight: 700;
}

.ni.on .ic {
	stroke: #062B50;
}

.ni .ic {
	width: 19px;
	height: 19px;
	flex-shrink: 0;
}

.ni .chev {
	margin-left: auto;
	opacity: 0.6;
	font-size: 12px;
}

.ni .cnt {
	background: #DC2626;
	color: #FFFFFF;
	font-size: 10.5px;
	font-weight: 700;
	min-width: 18px;
	height: 18px;
	border-radius: 9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 5px;
	margin-left: auto;
}

/* Sidebar Bottom Seedling Banner */
.sb-footer-card {
	margin-top: auto;
	padding-top: 16px;
	/* Pushed to the bottom, but never squeezed if the panel grew. */
	flex: 0 0 auto;
}

.sb-seedling-box {
	background: #06203B;
	border-radius: 10px;
	padding: 14px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.sb-seedling-box img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 50%;
	margin-bottom: 8px;
}

.sb-seedling-box span {
	font-size: 11.5px;
	color: #D6E4DE;
	line-height: 1.35;
	font-weight: 600;
}

/* Main Area */
.mn {
	margin-left: var(--sidebar-w);
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

/* Top Header */
.top {
	height: var(--header-h);
	background: #FFFFFF;
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 28px;
	position: sticky;
	top: 0;
	z-index: 90;
}

.top-left {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 1;
}

.mb-toggle {
	display: none;
	background: none;
	border: none;
	color: var(--navy);
	cursor: pointer;
	padding: 6px;
}

.top-search {
	max-width: 380px;
	width: 100%;
	position: relative;
}

.top-search .ic {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	color: var(--text-muted);
}

.top-search input {
	width: 100%;
	background: #F8FAFC;
	border: 1px solid var(--border);
	border-radius: var(--radius-btn);
	padding: 8px 14px 8px 36px;
	font-size: 13px;
	color: var(--text-primary);
}

.top-right {
	display: flex;
	align-items: center;
	gap: 20px;
}

.top-bell {
	position: relative;
	color: var(--text-secondary);
	padding: 8px;
	display: flex;
	align-items: center;
	border-radius: 50%;
	transition: background 0.15s ease;
}

.top-bell:hover {
	background: #F3F8FC;
	color: var(--navy);
}

.top-bell .bd {
	position: absolute;
	top: 4px;
	right: 4px;
	background: #DC2626;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	min-width: 16px;
	height: 16px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	border: 2px solid #FFFFFF;
}

.user-profile-badge {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-left: 12px;
	border-left: 1px solid var(--border);
}

.user-profile-badge .wn {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.user-profile-badge .wn b {
	font-size: 13.5px;
	color: var(--navy);
}

.user-profile-badge .wn small {
	font-size: 11px;
	color: var(--text-secondary);
}

.logout-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--text-muted);
	font-size: 12.5px;
	font-weight: 600;
	padding: 7px 12px;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: #FFFFFF;
	transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.logout-btn:hover {
	color: #DC2626;
	border-color: #FCA5A5;
	background: #FEF2F2;
}

.logout-btn .ic {
	width: 15px;
	height: 15px;
}

/* Page Content */
.ct {
	padding: 24px 28px;
	flex: 1;
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */

.card {
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-card);
	padding: 20px 22px;
	margin-bottom: 20px;
	box-shadow: var(--shadow-subtle);
}

.card h3 {
	font-size: 16px;
	color: var(--navy);
	margin-bottom: 12px;
	font-weight: 700;
}

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

.card-header-bar h3 {
	margin: 0;
}

/* Filter bar: search box, optional filter dropdown and the button, on one
   row. The text field takes the slack so a long placeholder stays readable
   instead of collapsing to the browser's default width. */
.filter-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.filter-bar input[type="text"],
.filter-bar input[type="search"],
.filter-bar > input:not([type="hidden"]) {
	flex: 1 1 260px;
	min-width: 0;
	padding: 9px 12px;
	border: 1px solid var(--border);
	border-radius: 7px;
	font-size: 13px;
	color: var(--text-primary);
	background: #FFFFFF;
}

.filter-bar input:focus {
	outline: none;
	border-color: var(--pri-green);
	box-shadow: 0 0 0 3px rgba(11, 143, 115, 0.12);
}

.filter-bar .btn {
	flex: none;
}

/* A select sitting next to the search box needs the same chevron treatment,
   otherwise the native arrow overlaps the label. */
.filter-bar select {
	padding: 9px 30px 9px 11px;
	border: 1px solid var(--border);
	border-radius: 7px;
	background: #FFFFFF url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2353677B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center / 13px;
	appearance: none;
	-webkit-appearance: none;
	font-size: 13px;
	color: var(--text-primary);
	cursor: pointer;
	max-width: 240px;
	flex: 0 1 auto;
}

.filter-bar select:focus {
	outline: none;
	border-color: var(--pri-green);
	box-shadow: 0 0 0 3px rgba(11, 143, 115, 0.12);
}

/* ======================================================================
   GROUP DISCUSSION
   Two columns on desktop: channel list on the left, thread on the right.
   ====================================================================== */
.gc-layout {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 20px;
	align-items: start;
}

.gc-side {
	position: sticky;
	top: 20px;
}

.gl-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	border-bottom: 1px solid var(--border);
}

.gl-head h3 {
	margin: 0;
	font-size: 15px;
}

.gl-head span {
	font-size: 12px;
	font-weight: 700;
	color: var(--text-muted);
}

.gl-list {
	max-height: 70vh;
	overflow-y: auto;
}

.gl-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-bottom: 1px solid #EEF3F7;
	text-decoration: none;
	color: var(--text-primary);
	transition: background 0.15s;
}

.gl-item:hover {
	background: #F7FBFD;
}

.gl-item.on {
	background: #E7F6EE;
	box-shadow: inset 3px 0 0 var(--pri-green);
}

.gl-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

.gl-dot.green  { background: #0B8F73; }
.gl-dot.blue   { background: #0284C7; }
.gl-dot.purple { background: #7A4FC0; }
.gl-dot.teal   { background: #0B8F73; }
.gl-dot.navy   { background: #062B50; }

.gl-body {
	flex: 1;
	min-width: 0;
}

.gl-name {
	display: block;
	font-size: 13.5px;
	font-weight: 700;
	color: #062B50;
	margin-bottom: 2px;
}

.gl-prev {
	display: block;
	font-size: 12px;
	color: var(--text-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gl-meta {
	text-align: right;
	flex-shrink: 0;
}

.gl-meta small {
	display: block;
	font-size: 10.5px;
	color: var(--text-muted);
	line-height: 1.5;
}

.gc-thread {
	margin-bottom: 20px;
}

.gc-msgs {
	max-height: 58vh;
	min-height: 220px;
	overflow-y: auto;
	padding: 4px 0;
}

.gm {
	display: flex;
	gap: 12px;
	padding: 12px 18px;
	border-bottom: 1px solid #F1F5F9;
}

.gm.me {
	background: #F7FBFD;
}

.gm-av {
	flex-shrink: 0;
}

.gm-main {
	flex: 1;
	min-width: 0;
}

.gm-top {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 4px;
}

.gm-top b {
	font-size: 13.5px;
	color: #062B50;
}

.gm-top small {
	font-size: 11.5px;
	color: var(--text-muted);
}

.gm-body {
	font-size: 13.5px;
	color: var(--text-primary);
	line-height: 1.6;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

.gc-compose {
	display: flex;
	gap: 10px;
	align-items: flex-end;
	padding: 14px 18px;
	border-top: 1px solid var(--border);
	background: #FAFCFD;
}

.gc-compose textarea {
	flex: 1;
	min-width: 0;
	resize: vertical;
	min-height: 42px;
}

.gc-compose .btn {
	flex-shrink: 0;
}

@media (max-width: 900px) {
	.gc-layout {
		grid-template-columns: 1fr;
	}
	.gc-side {
		position: static;
	}
	.gl-list {
		max-height: 260px;
	}
	.gc-msgs {
		max-height: 50vh;
	}
	.gc-compose {
		flex-direction: column;
		align-items: stretch;
	}
	.gc-compose .btn {
		width: 100%;
	}
}

/* Visually hidden but still announced by screen readers */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Admin directory filter: partner institute dropdown in the card header */
.inline-filter {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--text-muted);
}

.inline-filter label {
	font-weight: 600;
	white-space: nowrap;
}

.inline-filter select {
	padding: 7px 30px 7px 11px;
	border: 1px solid var(--border);
	border-radius: 7px;
	background: #FFFFFF url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2353677B' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center / 13px;
	appearance: none;
	-webkit-appearance: none;
	font-size: 13px;
	color: var(--text-primary);
	cursor: pointer;
	max-width: 260px;
}

.inline-filter select:focus {
	outline: none;
	border-color: var(--pri-green);
	box-shadow: 0 0 0 3px rgba(11, 143, 115, 0.12);
}

.grid-kpi-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 20px;
}

.grid-2col {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-bottom: 20px;
}

.grid-3col {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin-bottom: 20px;
}

/* Stat Card */
.stat-card {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #FFFFFF;
	border: 1px solid var(--border);
	border-radius: var(--radius-card);
	padding: 16px 18px;
	box-shadow: var(--shadow-subtle);
}

.stat-icon {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.stat-icon.teal { background: #E6F5F2; color: var(--pri-green); }
.stat-icon.navy { background: #E8F0F8; color: var(--navy); }
.stat-icon.amber { background: #FEF3C7; color: #D97706; }
.stat-icon.blue { background: #EFF6FF; color: #2563EB; }
.stat-icon.purple { background: #F3E8FF; color: #7E22CE; }
.stat-icon.green { background: #E7F6EE; color: #12633A; }
.stat-icon.red { background: #FEE2E2; color: #DC2626; }

.stat-content {
	flex: 1;
}

.stat-content small {
	display: block;
	color: var(--text-secondary);
	font-size: 12px;
	font-weight: 500;
	margin-bottom: 3px;
}

.stat-content b {
	font-size: 24px;
	font-weight: 800;
	color: var(--navy);
	font-family: 'Manrope', sans-serif;
	line-height: 1.1;
}

.stat-content .trend {
	font-size: 11px;
	font-weight: 600;
	margin-top: 4px;
	display: block;
}

.trend.up { color: #0B8F73; }
.trend.down { color: #DC2626; }

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 18px;
	border-radius: var(--radius-btn);
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	white-space: nowrap;
	text-decoration: none;
}

.btn-primary {
	background: var(--pri-green);
	color: #FFFFFF;
	border-color: var(--pri-green);
}

.btn-primary:hover {
	background: var(--hover-green);
	border-color: var(--hover-green);
	color: #FFFFFF;
}

.btn-secondary {
	background: #FFFFFF;
	color: var(--navy);
	border-color: var(--border);
}

.btn-secondary:hover {
	background: #F8FAFC;
	border-color: #CBD5E1;
}

.btn-danger {
	background: #DC2626;
	color: #FFFFFF;
	border-color: #DC2626;
}

.btn-danger:hover {
	background: #B91C1C;
	border-color: #B91C1C;
}

.btn-sm {
	padding: 5px 12px;
	font-size: 12px;
	border-radius: 4px;
}

.btn-full {
	width: 100%;
}

/* Status Badges */
.badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: var(--radius-pill);
	font-size: 11.5px;
	font-weight: 700;
	text-transform: capitalize;
}

.badge-green { background: var(--success-bg); color: var(--success-text); }
.badge-amber { background: var(--warning-bg); color: var(--warning-text); }
.badge-red   { background: var(--danger-bg);  color: var(--danger-text);  }
.badge-blue  { background: var(--info-bg);    color: var(--info-text);    }
.badge-gray  { background: #F1F5F9; color: #475569; }

/* Outstanding registration fee, shown at the top of every portal page.
   The account is usable — this is a statement of what is owed, not a wall. */
.fee-gate {
	margin-bottom: 20px;
	padding: 16px 18px;
	border: 1px solid #FCD34D;
	border-left: 4px solid #D97706;
	border-radius: var(--radius, 8px);
	background: #FFFBEB;
}

.fee-gate.neutral {
	border-color: var(--border);
	border-left-color: #64748B;
	background: #F8FAFC;
}

.fee-gate-h {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	font-weight: 700;
	color: #92400E;
	margin-bottom: 7px;
}

.fee-gate.neutral .fee-gate-h {
	color: #334155;
}

.fee-gate-h .ic {
	width: 16px;
	height: 16px;
	flex: none;
}

.fee-gate p {
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.6;
	color: #78350F;
}

.fee-gate.neutral p {
	color: #53677B;
}

.fee-gate-state {
	font-weight: 600;
}

.fee-gate-act {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.fee-gate-act .btn {
	margin: 0;
}

/* Programme catalogue cards, used on the partner Programmes page. The fee and
   the action stay in a fixed column so a long course name cannot push the
   button off the side on a narrow screen. */
.prog-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 16px 18px;
	border: 1px solid var(--border);
	border-radius: var(--radius, 8px);
	background: #fff;
	margin-bottom: 12px;
}

.prog-card:last-child {
	margin-bottom: 0;
}

.prog-card-b {
	min-width: 0;
}

.prog-card h4 {
	margin: 0 0 5px;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--navy, #062B50);
	line-height: 1.4;
}

.prog-meta {
	margin: 0 0 6px;
	font-size: 12px;
	color: #64748B;
}

.prog-desc {
	margin: 0 0 6px;
	font-size: 13px;
	color: #53677B;
	line-height: 1.55;
}

.prog-cert {
	margin: 0;
	font-size: 12px;
	color: #64748B;
}

.prog-card-f {
	flex: none;
	text-align: right;
}

.prog-fee {
	font-size: 16px;
	font-weight: 800;
	color: var(--navy, #062B50);
	white-space: nowrap;
	margin-bottom: 8px;
}

.prog-card-f form {
	display: inline-block;
	margin: 0;
}

.prog-card-f .btn {
	margin: 0;
}

@media (max-width: 700px) {
	.prog-card {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	.prog-card-f {
		text-align: left;
		width: 100%;
	}
	.prog-card-f .btn {
		width: 100%;
	}
}

/* Mail delivery check on the settings screen. Verification codes travel only by
   email, so "are the credentials saved?" is not the question an administrator
   actually needs answered. */
.mail-test {
	margin-top: 22px;
	padding: 18px 20px;
	border: 1px solid var(--border);
	border-left: 4px solid var(--info-text, #0B8F73);
	border-radius: var(--radius, 8px);
	background: #F8FAFC;
}

.mail-test h4 {
	margin: 0 0 8px;
	font-size: 13px;
	letter-spacing: .4px;
	text-transform: uppercase;
	color: #53677B;
}

.mail-test p {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.6;
	color: #53677B;
}

.mail-test-why {
	padding: 10px 12px;
	background: var(--warning-bg, #FFFBEB);
	border-radius: 6px;
	color: var(--warning-text, #92400E);
}

/* Address and button on one line, wrapping to a stack on a narrow screen so the
   input is never squeezed to a few characters wide. */
.mail-test-row {
	display: flex;
	align-items: flex-end;
	gap: 10px;
	flex-wrap: wrap;
}

.mail-test-row label {
	display: block;
	margin-bottom: 5px;
	font-size: 12px;
	font-weight: 600;
	color: #53677B;
}

.mail-test-row input {
	flex: 1 1 220px;
	min-width: 0;
	margin: 0;
}

.mail-test-row button {
	flex: none;
	margin: 0;
}

@media (max-width: 640px) {
	.mail-test-row input,
	.mail-test-row button {
		flex: 1 1 100%;
	}
}

/* Filter tabs: notification categories, certification pipeline, partner
   certificate lists. Without these the links render as one run-on sentence. */
.tab-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tab-link {
	display: inline-flex;
	align-items: center;
	padding: 7px 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	background: #FFFFFF;
	color: #53677B;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.tab-link:hover {
	border-color: var(--pri-green);
	color: var(--pri-green);
}

.tab-link.active {
	background: var(--pri-green);
	border-color: var(--pri-green);
	color: #FFFFFF;
}

/* Avatars */
.av {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--navy);
	color: #FFFFFF;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	object-fit: cover;
	flex-shrink: 0;
	font-size: 14px;
}

.av-sm { width: 28px; height: 28px; font-size: 12px; }
.av-lg { width: 68px; height: 68px; font-size: 24px; }
.av-xl { width: 92px; height: 92px; font-size: 32px; border: 4px solid #FFFFFF; box-shadow: 0 4px 12px rgba(6,43,80,0.1); }

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */

label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 6px;
}

.req {
	color: #DC2626;
	margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="date"],
select,
textarea {
	width: 100%;
	padding: 9px 12px;
	background: #FFFFFF;
	border: 1px solid var(--border);
	border-radius: var(--radius-btn);
	font-family: inherit;
	font-size: 13.5px;
	color: var(--text-primary);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--pri-green);
	box-shadow: 0 0 0 3px rgba(11, 143, 115, 0.15);
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px 20px;
}

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

/* ==========================================================================
   TABLES & DATA
   ========================================================================== */

.table-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--border);
	border-radius: var(--radius-card);
	/* A wide table scrolls sideways, but overlay scrollbars are invisible on
	   some platforms, so the cut-off edge gets a shadow to hint at it. */
	background:
		linear-gradient(to right, #FFFFFF 30%, rgba(255, 255, 255, 0)) left center,
		linear-gradient(to left, #FFFFFF 30%, rgba(255, 255, 255, 0)) right center,
		radial-gradient(farthest-side at 0 50%, rgba(6, 43, 80, 0.14), rgba(6, 43, 80, 0)) left center,
		radial-gradient(farthest-side at 100% 50%, rgba(6, 43, 80, 0.14), rgba(6, 43, 80, 0)) right center;
	background-repeat: no-repeat;
	background-size: 34px 100%, 34px 100%, 12px 100%, 12px 100%;
	background-attachment: local, local, scroll, scroll;
}

.data-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
	font-size: 13px;
}

.data-table th, .data-table td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--border);
	vertical-align: middle;
}

.data-table th {
	background: #F8FAFC;
	color: var(--text-secondary);
	font-weight: 600;
	font-size: 11.5px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.data-table tbody tr:hover {
	background: #F8FCFA;
}

.data-table tbody tr:last-child td {
	border-bottom: none;
}

/* ==========================================================================
   PROFILE HERO & BANNERS (Mockup Exact Match)
   ========================================================================== */

.welcome-banner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	flex-wrap: wrap;
	gap: 16px;
}

.welcome-banner-text h2 {
	font-size: 24px;
	margin: 0 0 4px;
	color: var(--navy);
}

.welcome-banner-text p {
	color: var(--text-secondary);
	font-size: 13.5px;
	margin: 0;
}

.institute-badge-card {
	display: flex;
	align-items: center;
	background: #FFFFFF;
	border: 1px solid var(--border);
	border-radius: var(--radius-card);
	overflow: hidden;
	box-shadow: var(--shadow-subtle);
}

.institute-badge-info {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 18px;
}

.institute-badge-photo {
	width: 130px;
	height: 68px;
	object-fit: cover;
	display: block;
}

/* Member Identity Card (Reference A) */
.member-identity-card {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 20px;
	background: #FFFFFF;
	border: 1px solid var(--border);
	border-radius: var(--radius-card);
	padding: 22px 24px;
	margin-bottom: 20px;
	box-shadow: var(--shadow-subtle);
}

.member-identity-left {
	display: flex;
	align-items: center;
	gap: 18px;
}

.member-identity-right {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-left: 24px;
	border-left: 1px solid var(--border);
}

.verified-pill {
	background: #E7F6EE;
	color: #0B8F73;
	border-radius: 20px;
	padding: 3px 10px;
	font-size: 11.5px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

/* Communities Row on Member Dashboard */
.member-communities-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-top: 12px;
}

.community-icon-card {
	background: #F8FAFC;
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.community-icon-card .circle {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.community-icon-card.blue .circle { background: #EFF6FF; color: #2563EB; }
.community-icon-card.teal .circle { background: #E6F5F2; color: #0B8F73; }
.community-icon-card.purple .circle { background: #F3E8FF; color: #7E22CE; }

/* Profile Completion Bar */
.profile-progress-bar {
	height: 10px;
	background: #E8EDF3;
	border-radius: 5px;
	overflow: hidden;
	margin-top: 8px;
}

.profile-progress-fill {
	height: 100%;
	background: var(--pri-green);
	border-radius: 5px;
}

/* ==========================================================================
   PARTNER DASHBOARD SPECIAL COMPONENTS (Reference B)
   ========================================================================== */

/* Financial Overview Sub-Cards */
.financial-sub-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	margin-top: 12px;
}

.fin-sub-card {
	border-radius: 8px;
	padding: 14px 16px;
	border: 1px solid transparent;
}

.fin-sub-card.amber { background: #FFFBEB; border-color: #FDE68A; }
.fin-sub-card.green { background: #ECFDF5; border-color: #A7F3D0; }
.fin-sub-card.blue  { background: #EFF6FF; border-color: #BFDBFE; }
.fin-sub-card.red   { background: #FEF2F2; border-color: #FECACA; }

.fin-sub-card small {
	display: block;
	font-size: 11px;
	font-weight: 600;
	color: var(--text-secondary);
	margin-bottom: 4px;
}

.fin-sub-card b {
	font-size: 16px;
	font-family: 'Manrope', sans-serif;
}

.fin-sub-card.amber b { color: #D97706; }
.fin-sub-card.green b { color: #0B8F73; }
.fin-sub-card.blue b  { color: #2563EB; }
.fin-sub-card.red b   { color: #DC2626; }

/* Certification Pipeline Circles */
.pipeline-circles-row {
	display: flex;
	align-items: center;
	justify-content: space-around;
	padding: 16px 8px;
	gap: 8px;
}

.pipeline-node {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.pipeline-node .circle-val {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: 800;
	font-family: 'Manrope', sans-serif;
	margin-bottom: 6px;
}

.pipeline-node.blue .circle-val   { background: #EFF6FF; color: #2563EB; }
.pipeline-node.amber .circle-val  { background: #FEF3C7; color: #D97706; }
.pipeline-node.green .circle-val  { background: #ECFDF5; color: #0B8F73; }
.pipeline-node.navy .circle-val   { background: #E8F0F8; color: #062B50; }

.pipeline-node span {
	font-size: 11.5px;
	color: var(--text-secondary);
	font-weight: 600;
}

.pipeline-arrow {
	color: var(--text-muted);
	font-size: 16px;
	margin-bottom: 22px;
}

/* Quick Actions 2x2 Grid (Reference B) */
.quick-action-2x2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	margin-top: 10px;
}

.qa-item-btn {
	background: #FFFFFF;
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 12px 14px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--navy);
	transition: background 0.15s, border-color 0.15s;
}

.qa-item-btn:hover {
	background: #F8FAFC;
	border-color: #CBD5E1;
}

.qa-item-btn .ic {
	width: 18px;
	height: 18px;
	color: var(--pri-green);
}

/* Donut Chart Legend Box */
.donut-wrap {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	padding: 10px 0;
}

.donut-legend {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.donut-legend-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12px;
}

.donut-legend-item .label-group {
	display: flex;
	align-items: center;
	gap: 8px;
}

.donut-legend-item .color-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

/* Certificate Row Item (Reference A) */
.certificate-row-card {
	display: flex;
	align-items: center;
	gap: 16px;
	background: #FFFFFF;
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 14px 18px;
	margin-bottom: 12px;
}

.cert-icon-badge {
	width: 42px;
	height: 42px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.cert-icon-badge.green  { background: #E7F6EE; color: #0B8F73; }
.cert-icon-badge.blue   { background: #EFF6FF; color: #2563EB; }
.cert-icon-badge.orange { background: #FFF4E5; color: #E08A1E; }

.cert-row-details {
	flex: 1;
}

.cert-row-details b {
	font-size: 14px;
	color: var(--navy);
	display: block;
	margin-bottom: 3px;
}

.cert-row-details small {
	color: var(--text-secondary);
}

/* Notification Item */
.notification-row-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 12px 14px;
	border-radius: 8px;
	border-bottom: 1px solid var(--border);
}

.notification-row-item:last-child {
	border-bottom: none;
}

.notification-row-item:hover {
	background: #F8FAFC;
}

.notif-icon-circle {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.notif-icon-circle.green  { background: #E7F6EE; color: #0B8F73; }
.notif-icon-circle.blue   { background: #EFF6FF; color: #2563EB; }
.notif-icon-circle.purple { background: #F3E8FF; color: #7E22CE; }
.notif-icon-circle.red    { background: #FEE2E2; color: #DC2626; }
.notif-icon-circle.orange { background: #FEF3C7; color: #D97706; }

.notif-text {
	flex: 1;
}

.notif-text b {
	font-size: 13.5px;
	color: var(--navy);
	display: block;
	margin-bottom: 2px;
}

.notif-text p {
	font-size: 12.5px;
	color: var(--text-secondary);
	margin: 0;
}

.notif-time {
	font-size: 11px;
	color: var(--text-muted);
	white-space: nowrap;
}

/* Unread notifications get a subtle marker so they stand out in a long list */
.notification-row-item.is-unread {
	background: #F4FBF9;
	box-shadow: inset 3px 0 0 var(--pri-green);
}

.notification-row-item.is-unread:hover {
	background: #EBF7F3;
}

.notif-list {
	margin: 0 -14px -12px;
}

.notif-act {
	flex: none;
	font-size: 12px;
	font-weight: 600;
	color: var(--pri-green);
	white-space: nowrap;
	align-self: center;
}

.notif-act:hover {
	text-decoration: underline;
}

.empty-state {
	padding: 28px 16px;
	text-align: center;
	color: var(--text-muted);
	font-size: 13px;
}

/* One-time student credentials panel */
.cred-panel {
	border-left: 3px solid var(--pri-green);
	background: #F6FCFA;
	margin-bottom: 20px;
}

.cred-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.cred-grid small {
	display: block;
	font-size: 11.5px;
	color: var(--text-secondary);
	margin-bottom: 5px;
}

.cred-grid code {
	display: block;
	background: #FFFFFF;
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 9px 11px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 13px;
	color: var(--navy);
	user-select: all;
}

.cred-pass {
	font-weight: 700;
	letter-spacing: 0.5px;
}

/* Certification request: bulk bar with "select all" and the live fee total */
.cert-bulk-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding: 10px 12px;
	margin-bottom: 8px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: #F8FAFC;
}

.cert-check-all {
	margin: 0;
	padding: 4px 6px;
	font-size: 13.5px;
	font-weight: 600;
}

.cert-check-all b {
	color: var(--text-primary);
}

.cert-count {
	font-size: 13px;
	font-weight: 700;
	color: var(--pri-green);
	white-space: nowrap;
}

/* Certification request: student checkbox list, filtered by batch */
.cert-student-list {
	border: 1px solid var(--border);
	border-radius: 8px;
	max-height: 260px;
	overflow-y: auto;
	background: #FFFFFF;
}

.cert-students {
	padding: 6px;
}

.cert-students[hidden] {
	display: none;
}

.cert-check {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 6px;
	cursor: pointer;
	margin: 0;
	font-weight: 400;
	font-size: 13.5px;
	color: var(--text-primary);
}

.cert-check:hover {
	background: #F4F8FB;
}

.cert-check input {
	width: 16px;
	height: 16px;
	flex: none;
	accent-color: var(--pri-green);
	cursor: pointer;
}

.cert-check span {
	flex: 1;
}

.cert-check small {
	font-size: 11.5px;
	color: var(--text-muted);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Inline reject-reason input on the payment verification table */
.inline-reason {
	width: 160px;
	padding: 6px 9px;
	font-size: 12.5px;
	margin: 0 6px 0 0;
	border: 1px solid var(--border);
	border-radius: 6px;
	font-family: inherit;
}

.inline-reason:focus {
	outline: none;
	border-color: var(--pri-green);
	box-shadow: 0 0 0 3px rgba(11, 143, 115, 0.15);
}

/* Form field that spans both grid columns */
.form-grid .fg.full {
	grid-column: 1 / -1;
}

/* ==========================================================================
   PUBLIC LANDING & AUTH SCREENS (Reference A Top Row)
   ========================================================================== */

.public-hero {
	min-height: 80vh;
	background: #062B50;
	background-image: radial-gradient(circle at 80% 50%, rgba(11, 143, 115, 0.25), transparent 50%), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=1200&auto=format&fit=crop');
	background-size: cover;
	background-position: center;
	color: #FFFFFF;
	display: flex;
	flex-direction: column;
}

.public-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px 60px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.public-nav-links {
	display: flex;
	align-items: center;
	gap: 28px;
	font-weight: 500;
	font-size: 14px;
}

.public-hero-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: 640px;
	padding: 60px;
}

.public-hero-body h1 {
	font-size: 44px;
	font-weight: 800;
	line-height: 1.15;
	color: #FFFFFF;
	margin-bottom: 18px;
}

.public-hero-body p {
	font-size: 16px;
	color: #D6E4DE;
	line-height: 1.6;
	margin-bottom: 28px;
}

/* Auth Cards (Mockup) */
.auth-wrap {
	min-height: 100vh;
	background: #F3F8FC;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 30px 16px;
}

.auth-card {
	width: 100%;
	max-width: 440px;
	background: #FFFFFF;
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 36px 32px;
	box-shadow: 0 8px 24px rgba(6, 43, 80, 0.06);
}

.auth-card.wide {
	max-width: 580px;
}

.auth-header {
	text-align: center;
	margin-bottom: 24px;
}

.auth-header img {
	max-height: 52px;
	margin-bottom: 14px;
}

.auth-header h2 {
	font-size: 22px;
	color: var(--navy);
	margin: 0 0 6px;
}

.auth-header p {
	color: var(--text-secondary);
	font-size: 13.5px;
	margin: 0;
}

/* Selection Cards (Become a Member) */
.type-selector-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 20px 0;
}

.type-select-card {
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 24px 18px;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	background: #FFFFFF;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.type-select-card:hover {
	border-color: var(--pri-green);
	box-shadow: 0 4px 14px rgba(11, 143, 115, 0.08);
}

.type-select-card .icon-circ {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #E8F0F8;
	color: var(--navy);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
}

.type-select-card h4 {
	font-size: 15px;
	color: var(--navy);
	margin: 0 0 8px;
}

.type-select-card p {
	font-size: 12px;
	color: var(--text-secondary);
	line-height: 1.4;
	margin-bottom: 16px;
	min-height: 48px;
}

/* Toast */
#toast {
	position: fixed;
	right: 24px;
	bottom: 24px;
	background: var(--navy);
	color: #FFFFFF;
	padding: 12px 20px;
	border-radius: 8px;
	font-weight: 500;
	font-size: 13.5px;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.25s, transform 0.25s;
	pointer-events: none;
	z-index: 9999;
	box-shadow: 0 8px 24px rgba(6, 43, 80, 0.18);
}

#toast.show {
	opacity: 1;
	transform: translateY(0);
}

/* ==========================================================================
   REGISTRATION — SPLIT LAYOUT, TYPE PICKER, FIELD UX
   ========================================================================== */

.auth-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
	padding: 0;
	gap: 0;
	min-height: 100vh;
	background: #F3F8FC;
}

.auth-aside {
	background: linear-gradient(155deg, #062B50 0%, #00514D 62%, #0B8F73 130%);
	color: #FFFFFF;
	display: flex;
	align-items: center;
	padding: 48px 44px;
	position: relative;
	overflow: hidden;
}

.auth-aside::after {
	content: "";
	position: absolute;
	width: 340px;
	height: 340px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.05);
	top: -110px;
	right: -110px;
}

.auth-aside-in {
	position: relative;
	z-index: 1;
	max-width: 400px;
	margin: 0 auto;
}

.aside-logo {
	max-height: 46px;
	margin-bottom: 30px;
	filter: brightness(0) invert(1);
	opacity: 0.95;
}

.auth-aside h3 {
	color: #FFFFFF;
	font-size: 25px;
	line-height: 1.28;
	margin: 0 0 12px;
	letter-spacing: -0.2px;
}

.auth-aside p {
	color: rgba(255, 255, 255, 0.8);
	font-size: 14px;
	line-height: 1.62;
	margin-bottom: 32px;
}

.steps {
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
}

.steps li {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin-bottom: 20px;
}

.steps-n {
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12.5px;
	font-weight: 700;
}

.steps li b {
	display: block;
	font-size: 13.5px;
	color: #FFFFFF;
	margin-bottom: 2px;
}

.steps li small {
	color: rgba(255, 255, 255, 0.72);
	font-size: 12.5px;
	line-height: 1.5;
}

.aside-note {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	background: rgba(255, 255, 255, 0.09);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 10px;
	padding: 13px 15px;
	font-size: 12.5px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.88);
}

.aside-note .ic {
	flex: none;
	width: 17px;
	height: 17px;
	margin-top: 1px;
}

.auth-main {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 32px;
	overflow-y: auto;
}

.auth-card-reg {
	max-width: 560px;
	width: 100%;
	border: none;
	box-shadow: none;
	background: transparent;
	padding: 0;
}

.auth-header-left {
	text-align: left;
	margin-bottom: 26px;
}

.auth-header-left h2 {
	font-size: 27px;
	margin: 0 0 6px;
	letter-spacing: -0.3px;
}

.auth-header-left p {
	font-size: 13.5px;
}

.auth-header-left p a {
	color: var(--pri-green);
	font-weight: 600;
}

/* Numbered step blocks */
.blk {
	margin-bottom: 26px;
}

.blk-h {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 12px;
	font-weight: 700;
	color: var(--navy);
	letter-spacing: 0.4px;
	text-transform: uppercase;
	margin-bottom: 13px;
}

.blk-h::before {
	content: counter(blk);
	counter-increment: blk;
	width: 21px;
	height: 21px;
	border-radius: 50%;
	background: var(--pri-green);
	color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11.5px;
	flex: none;
}

.blk-h span {
	font-weight: 600;
	letter-spacing: 0.3px;
}

.blk {
	counter-increment: blk;
}

/* Membership type picker */
.pick-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.pick {
	position: relative;
	display: flex;
	gap: 12px;
	align-items: flex-start;
	border: 1.5px solid var(--border);
	border-radius: 10px;
	padding: 15px 15px;
	cursor: pointer;
	background: #FFFFFF;
	transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.pick:hover {
	border-color: #A7C8C0;
}

.pick input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.pick-ic {
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 9px;
	background: #EEF4F9;
	color: var(--navy);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, color 0.15s;
}

.pick-body {
	min-width: 0;
}

.pick-body b {
	display: block;
	font-size: 13.5px;
	color: var(--navy);
	margin-bottom: 3px;
}

.pick-body small {
	display: block;
	font-size: 12px;
	line-height: 1.45;
	color: var(--text-secondary);
}

.pick-tick {
	position: absolute;
	top: 11px;
	right: 11px;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	border: 1.5px solid var(--border);
	color: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.15s;
}

.pick-tick .ic {
	width: 11px;
	height: 11px;
	stroke-width: 3.2;
}

.pick.on {
	border-color: var(--pri-green);
	background: #F4FBF9;
	box-shadow: 0 2px 10px rgba(11, 143, 115, 0.1);
}

.pick.on .pick-ic {
	background: var(--pri-green);
	color: #FFFFFF;
}

.pick.on .pick-tick {
	background: var(--pri-green);
	border-color: var(--pri-green);
	color: #FFFFFF;
}

/* Field grid + icon inputs */
.fld-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.fld.full {
	grid-column: 1 / -1;
}

.fld-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.fld-ic {
	position: absolute;
	left: 12px;
	display: flex;
	align-items: center;
	color: #8B98A5;
	pointer-events: none;
	transition: color 0.15s;
}

.fld-ic .ic {
	width: 16px;
	height: 16px;
}

.fld-wrap input {
	padding-left: 37px;
	padding-right: 37px;
}

/* A select inside a .fld-wrap shares the icon inset, but the native arrow
   would otherwise sit on top of the text, so it is replaced with the same
   chevron the filter dropdowns use. */
.fld-wrap select {
	width: 100%;
	padding-left: 37px;
	padding-right: 34px;
	background-color: #FFFFFF;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2353677B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 11px center;
	background-size: 14px;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	cursor: pointer;
	text-overflow: ellipsis;
}

.fld-wrap select:focus {
	outline: none;
	border-color: var(--pri-green);
	box-shadow: 0 0 0 3px rgba(11, 143, 115, 0.12);
}

.fld-wrap:focus-within .fld-ic {
	color: var(--pri-green);
}

.fld-eye {
	position: absolute;
	right: 9px;
	background: none;
	border: none;
	cursor: pointer;
	color: #8B98A5;
	display: flex;
	padding: 4px;
	border-radius: 4px;
	transition: color 0.15s;
}

.fld-eye:hover {
	color: var(--pri-green);
}

.fld-eye .ic {
	width: 17px;
	height: 17px;
}

.fld-hint {
	display: block;
	font-size: 11.5px;
	color: var(--text-muted);
	margin-top: 5px;
}

.fld-err {
	display: none;
	font-size: 12px;
	color: #DC2626;
	margin-top: 5px;
	font-weight: 500;
}

.fld-err.show {
	display: block;
}

.fld.invalid .fld-wrap input {
	border-color: #DC2626;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.11);
}

.fld.invalid .fld-ic {
	color: #DC2626;
}

/* Password strength */
.pw-meter {
	margin-top: 9px;
}

.pw-bar {
	display: block;
	height: 4px;
	border-radius: 2px;
	background: #E7EDF3;
	overflow: hidden;
}

.pw-bar i {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 2px;
	background: #DC2626;
	transition: width 0.25s ease, background 0.25s ease;
}

.pw-meter[data-level="1"] .pw-bar i { width: 33%; }
.pw-meter[data-level="2"] .pw-bar i { width: 66%; }
.pw-meter[data-level="3"] .pw-bar i { width: 85%; }
.pw-meter[data-level="4"] .pw-bar i { width: 100%; }

.pw-meter[data-level="1"] .pw-bar i { background: #DC2626; }
.pw-meter[data-level="2"] .pw-bar i { background: #F59E0B; }
.pw-meter[data-level="3"] .pw-bar i { background: #0B8F73; }
.pw-meter[data-level="4"] .pw-bar i { background: #15A77F; }

.pw-meter small {
	display: block;
	font-size: 11.5px;
	color: var(--text-muted);
	margin-top: 6px;
}

.pw-meter[data-level="1"] small { color: #DC2626; }
.pw-meter[data-level="2"] small { color: #B45309; }
.pw-meter[data-level="3"] small,
.pw-meter[data-level="4"] small { color: #0B8F73; }

.pw-rules {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-top: 11px;
}

.pw-rules span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: var(--text-muted);
	transition: color 0.15s;
}

.pw-rules .ic {
	width: 13px;
	height: 13px;
	stroke-width: 2.6;
	color: #C4CDD6;
	transition: color 0.15s;
}

.pw-rules span.ok {
	color: #0B8F73;
}

.pw-rules span.ok .ic {
	color: #0B8F73;
}

/* Terms */
.terms {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-weight: 400;
	font-size: 13px;
	line-height: 1.55;
	color: var(--text-secondary);
	margin: 16px 0 0;
	cursor: pointer;
}

.terms input {
	width: 17px;
	height: 17px;
	margin: 1px 0 0;
	flex: none;
	accent-color: var(--pri-green);
	cursor: pointer;
}

.terms a {
	color: var(--pri-green);
	font-weight: 600;
}

/* Actions */
.form-actions {
	display: grid;
	gap: 10px;
	margin-top: 26px;
}

.btn-block {
	width: 100%;
	justify-content: center;
	padding: 13px;
	font-size: 14px;
	position: relative;
}

.btn-ghost {
	background: #FFFFFF;
	border: 1px solid var(--border);
	color: var(--text-secondary);
}

.btn-ghost:hover {
	border-color: #A7C8C0;
	color: var(--pri-green);
	background: #F7FBFA;
}

.btn-ghost .ic {
	width: 15px;
	height: 15px;
}

.btn-spin {
	display: none;
	width: 15px;
	height: 15px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #FFFFFF;
	border-radius: 50%;
	animation: cieSpin 0.7s linear infinite;
}

@keyframes cieSpin {
	to { transform: rotate(360deg); }
}

[data-submit].busy {
	pointer-events: none;
	opacity: 0.85;
}

[data-submit].busy .btn-lbl {
	opacity: 0.65;
}

[data-submit].busy .btn-spin {
	display: inline-block;
	margin-left: 8px;
	vertical-align: -2px;
}

/* ==========================================================================
   ONBOARDING / PAYMENT GATE + PROFILE LOCK
   ========================================================================== */

.onb-wrap {
	max-width: 900px;
	margin: 0 auto;
	padding: 34px 20px 8px;
}

.onb-top:not(:empty) {
	margin-bottom: 18px;
}

.onb-foot {
	max-width: 900px;
	margin: 0 auto;
	padding: 8px 20px 40px;
	text-align: center;
}

.onb-foot p {
	margin: 0;
	font-size: 12.5px;
	color: var(--text-muted);
}

.onb-foot a {
	color: var(--pri-green);
	font-weight: 600;
}

body:has(.onb-wrap) {
	background: var(--page-bg);
}

.steps-4 {
	list-style: none;
	margin: 22px 0 0;
	padding: 20px 0 0;
	border-top: 1px solid var(--border);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.steps-4 li {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 12.5px;
	color: var(--text-muted);
	font-weight: 500;
}

.steps-4 .dot {
	flex: none;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	background: #EEF4F9;
	color: #8B98A5;
	border: 1px solid var(--border);
}

.steps-4 li.ok {
	color: #0B8F73;
}

.steps-4 li.ok .dot {
	background: #0B8F73;
	border-color: #0B8F73;
	color: #FFFFFF;
}

.steps-4 li.now {
	color: #B45309;
}

.steps-4 li.now .dot {
	background: #FEF3C7;
	border-color: #F59E0B;
	color: #B45309;
	animation: ciePulse 1.8s ease-in-out infinite;
}

/* ======================================================================
   STUDENT PROFILE (partner view)
   One page holding the whole record: identity, the login behind it, and
   where each stage of the certification process stands.
   ====================================================================== */
.sv-head {
	margin-bottom: 16px;
}

.sv-head h2 {
	margin: 6px 0 0;
}

.sv-back {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--text-secondary);
	text-decoration: none;
}

.sv-back:hover {
	color: var(--brand);
	text-decoration: underline;
}

.sv-id {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding: 18px 20px;
}

.sv-av {
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--brand);
	color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 21px;
	font-weight: 700;
}

.sv-idmain {
	flex: 1 1 240px;
	min-width: 0;
}

.sv-idmain h3 {
	margin: 0;
	font-size: 17px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.sv-idmain p {
	margin: 4px 0 0;
	font-size: 12.5px;
	color: var(--text-secondary);
}

.sv-acts {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

/* ---- process strip ---- */
ol.steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

ol.steps .step {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: #FBFDFE;
}

ol.steps .step.done {
	border-color: rgba(11, 143, 115, 0.35);
	background: rgba(11, 143, 115, 0.05);
}

/* Waiting on a payment or an approval: visibly in flight, not finished. */
ol.steps .step.now {
	border-color: rgba(245, 158, 11, 0.45);
	background: #FFFBEB;
}

ol.steps .step.now .step-mark {
	background: #F59E0B;
	border-color: #F59E0B;
	color: #FFFFFF;
}

ol.steps .step.now .step-label {
	color: #B45309;
}

.step-mark {
	flex: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #EEF4F9;
	color: #8B98A5;
	border: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11.5px;
	font-weight: 700;
}

ol.steps .step.done .step-mark {
	background: var(--brand);
	border-color: var(--brand);
	color: #FFFFFF;
}

.step-mark .ic {
	width: 13px;
	height: 13px;
}

.step-txt {
	display: block;
	min-width: 0;
}

.step-label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--text);
	line-height: 1.3;
}

ol.steps .step small {
	display: block;
	margin-top: 3px;
	font-size: 11.5px;
	color: var(--text-secondary);
	line-height: 1.4;
	word-break: break-word;
}

/* ---- pending work ---- */
.pend-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pend-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 14px;
	border: 1px solid var(--border);
	border-left: 3px solid #F59E0B;
	border-radius: 8px;
	background: #FFFBEB;
}

.pend-row b {
	display: block;
	font-size: 13px;
	color: var(--text);
}

.pend-row small {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: var(--text-secondary);
	line-height: 1.45;
}

.pend-row > .btn {
	flex: none;
}

/* Nothing left to do: reads as settled, not as a warning. */
.pend-row.clear {
	border-left-color: var(--brand);
	background: rgba(11, 143, 115, 0.05);
}

/* ---- key/value data grid ---- */
.kv {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--border);
	border: 1px solid var(--border);
	border-radius: 10px;
	overflow: hidden;
}

.kv > div {
	background: #FFFFFF;
	padding: 13px 15px;
}

.kv small {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--text-muted);
	margin-bottom: 4px;
}

.kv span {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--text);
	word-break: break-word;
}

@media (max-width: 1100px) {
	ol.steps {
		grid-template-columns: repeat(2, 1fr);
	}

	.kv {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.sv-id {
		align-items: flex-start;
	}

	.sv-acts {
		width: 100%;
	}

	ol.steps {
		grid-template-columns: 1fr;
	}

	.kv {
		grid-template-columns: 1fr;
	}

	.pend-row {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ======================================================================
   FINANCE SUMMARY STRIP
   Sits above the per-student fee table so an institute can see the money it
   is still waiting on without reading every row.
   ====================================================================== */
.fin-sum {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	background: #F3F8FC;
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 16px;
}

.fin-sum > div small {
	display: block;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--text-muted);
	margin-bottom: 4px;
}

.fin-sum > div b {
	font-size: 18px;
	font-weight: 700;
	color: #062B50;
}

.fin-sum > div span {
	font-size: 12.5px;
	color: var(--text-secondary);
	line-height: 1.45;
}

/* Money still owed: the strip itself is the warning. */
.fin-sum-due {
	background: #FFFBEB;
	border-color: rgba(245, 158, 11, 0.45);
}

.fin-sum-due > div b {
	color: #B45309;
}

@media (max-width: 700px) {
	.fin-sum {
		grid-template-columns: 1fr;
	}
}

/* ======================================================================
   PAYMENT PROOF
   One form, used by a member paying their own fee, a training institute
   paying for one of its students, and the challan page itself. The list pages
   link here rather than embedding the form, so it is never squeezed inside a
   horizontally scrolling table cell.
   ====================================================================== */
.pay-state {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 14px 16px;
	border-radius: 8px;
	border: 1px solid var(--border);
	font-size: 13px;
	line-height: 1.5;
}

.pay-state b {
	font-size: 13.5px;
	font-weight: 700;
}

.pay-state span {
	color: var(--text-secondary);
}

.pay-state .btn {
	align-self: flex-start;
	margin-top: 6px;
}

.pay-state-ok {
	border-color: rgba(11, 143, 115, 0.35);
	background: rgba(11, 143, 115, 0.06);
}

.pay-state-ok b {
	color: #0B8F73;
}

.pay-state-wait {
	border-color: rgba(37, 99, 235, 0.3);
	background: rgba(37, 99, 235, 0.05);
}

.pay-state-wait b {
	color: #1D4ED8;
}

/* Uploading a slip takes a moment; make the wait visible. */
.pay-form[data-busy] .btn {
	opacity: 0.65;
	pointer-events: none;
}

.pay-form[data-busy] [data-pay-btn] {
	font-size: 0;
}

.pay-form[data-busy] [data-pay-btn]::after {
	content: 'Submitting\2026';
	font-size: 13px;
}

.pay-summary {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	background: #F3F8FC;
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 6px;
}

.pay-summary small {
	display: block;
	font-size: 11.5px;
	color: var(--text-secondary);
	margin-bottom: 4px;
}

.pay-summary b {
	font-size: 15px;
	color: var(--navy);
}

.pay-summary .pay-amt {
	color: var(--pri-green);
	font-size: 19px;
}

/* Locked profile state */
.locked-card {
	border-left: 3px solid #F59E0B;
	background: #FFFDF8;
}

.locked-head {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.locked-ic {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #FEF3C7;
	color: #B45309;
	display: flex;
	align-items: center;
	justify-content: center;
}

.locked-head h3 {
	margin: 0 0 4px;
	font-size: 16px;
}

.locked-head p {
	margin: 0;
	font-size: 13px;
	color: var(--text-secondary);
	line-height: 1.55;
}

.locked-cta {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 18px;
}

.locked-note {
	margin: 14px 0 0;
	font-size: 12px;
	color: var(--text-muted);
}

/* Empty-value placeholders on profile / detail views */
.pv-empty {
	color: #8B98A5;
	font-style: italic;
	font-weight: 400;
}

.pv-hint {
	font-size: 11.5px;
	color: var(--text-muted);
}

/* Profile photo / cover pickers */
.file-pick {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	border: 1px dashed var(--border);
	border-radius: 8px;
	background: #FAFCFE;
}

.file-pick-wide {
	align-items: center;
}

.cov-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 44px;
	border-radius: 6px;
	object-fit: cover;
	flex: none;
	background: #EEF4F9;
	color: #8B98A5;
	font-size: 11px;
	font-style: italic;
}

.cov-empty {
	border: 1px dashed var(--border);
}

/* reCAPTCHA math fallback shown when Google's script is unreachable */
.cap-fallback {
	margin-top: 14px;
	padding: 13px 14px;
	border: 1px solid #FCD34D;
	background: #FFFBEB;
	border-radius: 8px;
}

.cap-fallback[hidden] {
	display: none;
}

.cap-fallback label {
	color: #92400E;
	margin-bottom: 7px;
}

.cap-fallback input {
	padding: 9px 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-btn);
	font-family: inherit;
	font-size: 13.5px;
	width: 100%;
	background: #FFFFFF;
}

.cap-fallback input:focus {
	outline: none;
	border-color: var(--pri-green);
	box-shadow: 0 0 0 3px rgba(11, 143, 115, 0.15);
}

.cap-fallback small {
	display: block;
	font-size: 11.5px;
	color: #92400E;
	opacity: 0.9;
	margin-top: 8px;
}

/* reCAPTCHA v3 (invisible) status line */
.cap-v3 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	font-size: 12px;
	color: var(--text-muted);
	background: #F7FAFC;
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 10px 12px;
}

.cap-v3-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #0B8F73;
	flex: none;
	animation: ciePulse 1.8s ease-in-out infinite;
}

@keyframes ciePulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.35; transform: scale(0.75); }
}

/* Settings help panel */
.cap-help {
	display: flex;
	gap: 11px;
	align-items: flex-start;
	background: #F3F8FC;
	border: 1px solid var(--border);
	border-left: 3px solid var(--pri-green);
	border-radius: 8px;
	padding: 13px 15px;
	margin-top: 14px;
}

.cap-help .ic {
	flex: none;
	width: 17px;
	height: 17px;
	color: var(--pri-green);
	margin-top: 1px;
}

.cap-help b {
	display: block;
	font-size: 12.5px;
	color: var(--navy);
	margin-bottom: 4px;
}

.cap-help p {
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--text-secondary);
	margin: 0;
}

.cap-help code {
	background: #FFFFFF;
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 1px 5px;
	font-size: 11.5px;
	color: var(--navy);
}

/* ==========================================================================
   RESPONSIVE (Desktop, Tablet, Mobile)
   ========================================================================== */

@media (max-width: 1199px) {
	.grid-kpi-4, .financial-sub-cards {
		grid-template-columns: repeat(2, 1fr);
	}
	.grid-3col, .member-communities-row {
		grid-template-columns: 1fr;
	}
	.member-identity-card {
		grid-template-columns: 1fr;
	}
	.member-identity-right {
		padding-left: 0;
		border-left: none;
		border-top: 1px solid var(--border);
		padding-top: 16px;
	}
}

@media (max-width: 900px) {
	/* Registration: collapse the split layout to a single column */
	.auth-split {
		grid-template-columns: 1fr;
	}

	.auth-aside {
		padding: 32px 28px;
	}

	.auth-aside-in {
		max-width: 100%;
	}

	.auth-aside h3 {
		font-size: 21px;
	}

	.steps {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 14px;
	}

	.steps li {
		margin-bottom: 0;
	}

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

@media (max-width: 560px) {
	.pick-grid,
	.fld-grid {
		grid-template-columns: 1fr;
	}

	.steps {
		grid-template-columns: 1fr;
	}

	.steps-4,
	.pay-summary {
		grid-template-columns: 1fr 1fr;
	}

	.auth-header-left h2 {
		font-size: 23px;
	}
}

@media (max-width: 768px) {
	.sb {
		transform: translateX(-100%);
	}
	.sb.open {
		transform: translateX(0);
	}
	.mn {
		margin-left: 0;
	}
	.mb-toggle {
		display: flex;
	}
	.top {
		padding: 0 16px;
	}
	.user-profile-badge .wn {
		display: none;
	}
	/* Keep the logout control reachable on phones, icon-only to save space */
	.logout-btn span {
		display: none;
	}
	.logout-btn {
		padding: 7px 9px;
	}
	.ct {
		padding: 16px;
	}
	.grid-kpi-4, .grid-2col, .form-grid, .financial-sub-cards, .type-selector-grid, .quick-action-2x2 {
		grid-template-columns: 1fr;
	}
	.public-nav {
		padding: 16px 20px;
	}
	.public-nav-links {
		display: none;
	}
	.public-hero-body {
		padding: 30px 20px;
	}
	.public-hero-body h1 {
		font-size: 30px;
	}
}
/* CIE LinkedIn Profile — layout fixes */
.cie-linkedin-profile {
    width: 100%;
    max-width: 1080px;
    margin: 28px auto;
    padding: 0 18px;
    color: #253343;
    font-family: inherit;
    box-sizing: border-box;
}

.cie-linkedin-profile *,
.cie-linkedin-profile *::before,
.cie-linkedin-profile *::after {
    box-sizing: border-box;
}

.cie-linkedin-profile .cie-card {
    background: #fff;
    border: 1px solid #dce5ec;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(6, 43, 80, 0.06);
    margin-bottom: 20px;
}

.cie-linkedin-profile .cie-cover {
    height: 170px;
    background: linear-gradient(115deg, #043262, #0b8f73);
    position: relative;
}

.cie-linkedin-profile .cie-profile-header {
    padding: 0 28px 26px;
}

.cie-linkedin-profile .cie-identity {
    display: flex;
    align-items: flex-start;
    gap: 22px;
}

.cie-linkedin-profile .cie-avatar {
    flex: 0 0 112px;
    width: 112px;
    height: 112px;
    margin-top: -52px;
    border: 5px solid #fff;
    border-radius: 50%;
    background: #e9f1f6;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.cie-linkedin-profile .cie-avatar .av {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #043262, #0b8f73);
}

.cie-linkedin-profile .cie-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.cie-linkedin-profile .cie-identity-info {
    flex: 1;
    min-width: 0;
    padding-top: 16px;
}

.cie-linkedin-profile .cie-name {
    margin: 0 0 8px;
    color: #062b50;
    font-size: clamp(23px, 3vw, 31px);
    line-height: 1.3;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.cie-linkedin-profile .cie-headline {
    margin-bottom: 12px;
    color: #53677b;
    font-size: 14px;
    line-height: 1.6;
}

.cie-linkedin-profile .cie-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px 15px;
    font-size: 12.5px;
    color: #53677b;
}

.cie-linkedin-profile .cie-verified {
    color: #08765e;
    font-weight: 700;
}

.cie-linkedin-profile .cie-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.cie-linkedin-profile .cie-section {
    padding: 24px;
    min-width: 0;
}

.cie-linkedin-profile .cie-section-title {
    margin: 0 0 16px;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
    color: #062b50;
}

.cie-linkedin-profile .cie-about {
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.cie-linkedin-profile .cie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cie-linkedin-profile .cie-tag {
    display: inline-block;
    padding: 7px 12px;
    border: 1px solid #d8e7ee;
    border-radius: 22px;
    background: #f4f8fa;
    color: #244b63;
    font-size: 12px;
}

.cie-linkedin-profile .cie-muted {
    color: #788797;
    font-size: 13px;
}

.cie-linkedin-profile .cie-footer {
    padding: 18px 0;
    text-align: center;
    font-size: 12px;
    color: #748394;
}

@media (max-width: 700px) {
    .cie-linkedin-profile {
        margin: 18px auto;
        padding: 0 12px;
    }

    .cie-linkedin-profile .cie-cover {
        height: 125px;
    }

    .cie-linkedin-profile .cie-profile-header {
        padding: 0 18px 22px;
    }

    .cie-linkedin-profile .cie-avatar {
        flex-basis: 94px;
        width: 94px;
        height: 94px;
        margin-top: -43px;
    }

    .cie-linkedin-profile .cie-columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .cie-linkedin-profile .cie-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .cie-linkedin-profile {
        padding: 0 9px;
    }

    .cie-linkedin-profile .cie-cover {
        height: 100px;
    }

    .cie-linkedin-profile .cie-profile-header {
        padding: 0 15px 18px;
    }

    .cie-linkedin-profile .cie-identity {
        display: block;
    }

    .cie-linkedin-profile .cie-avatar {
        width: 88px;
        height: 88px;
        margin-top: -40px;
    }

    .cie-linkedin-profile .cie-identity-info {
        padding-top: 10px;
    }

    .cie-linkedin-profile .cie-name {
        font-size: 24px;
    }

    .cie-linkedin-profile .cie-section {
        padding: 17px;
    }
}
/* CIE Notification Bell Ring Animation */
.top-bell.ring {
    animation: cieBellRing 0.8s ease-in-out;
    transform-origin: 50% 10%;
}

@keyframes cieBellRing {
    0%, 100% { transform: rotate(0deg); }
    15%      { transform: rotate(15deg); }
    30%      { transform: rotate(-15deg); }
    45%      { transform: rotate(12deg); }
    60%      { transform: rotate(-12deg); }
    75%      { transform: rotate(6deg); }
}


.cie-profile-information {
    margin-bottom: 20px;
    overflow: hidden;
}

.cie-profile-information .card-header-bar {
    padding: 18px 22px;
    border-bottom: 1px solid #e5eaf0;
}

.cie-profile-information .card-header-bar h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #182b3c;
}

.cie-profile-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 20px;
}

.cie-profile-info-item {
    min-width: 0;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #e5eaf0;
    border-radius: 10px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.cie-profile-info-label {
    margin-bottom: 8px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    line-height: 1.5;
}

.cie-profile-info-value {
    color: #1e293b;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 500;
}

.cie-profile-info-value strong {
    font-weight: 700;
    color: #14283b;
}

@media (max-width: 1024px) {
    .cie-profile-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 16px;
    }
}

@media (max-width: 600px) {
    .cie-profile-information .card-header-bar {
        padding: 15px;
    }

    .cie-profile-info-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .cie-profile-info-item {
        padding: 13px;
    }
}

/* Industry account detail: full-width, responsive admin view only. */
.cie-admin-industry-detail .ct {
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
  padding: clamp(12px, 2vw, 28px);
}
.cie-admin-industry-detail .ct > *,
.cie-admin-industry-detail .cie-admin-user-view,
.cie-admin-industry-detail .ci-admin-industry-profile,
.cie-admin-industry-detail .ci-admin-industry-profile .ci-card {
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
}
.cie-admin-industry-detail .cie-admin-user-view *,
.cie-admin-industry-detail .ci-admin-industry-profile * {
  box-sizing: border-box;
}
.cie-admin-industry-detail .cie-section-card,
.cie-admin-industry-detail .card {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.cie-admin-industry-detail img {
  max-width: 100%;
}
@media (max-width: 768px) {
  .cie-admin-industry-detail .ct { padding: 12px; }
  .cie-admin-industry-detail .cie-user-hero { padding: 14px; }
  .cie-admin-industry-detail .cie-user-actions { width: 100%; }
  .cie-admin-industry-detail .ci-admin-industry-profile .ci-head { align-items: stretch; }
  .cie-admin-industry-detail .ci-admin-industry-profile .ci-head .ci-btn { width: 100%; text-align: center; }
  .cie-admin-industry-detail .table-wrap { max-width: 100%; overflow-x: auto; }
}


/* ==========================================================================
   CIE PREMIUM DASHBOARD LAYER
   Presentation-only overrides. Existing markup, routes, forms and handlers
   are intentionally left untouched.
   ========================================================================== */
.app {
  --navy: #062B50;
  --deep-teal: #00514D;
  --pri-green: #0B8F73;
  --act-green: #7CC242;
  --hover-green: #15A77F;
  --page-bg: #F3F8FC;
  --card-bg: #FFFFFF;
  --border: #DDE7EE;
  --text-primary: #1F2A37;
  --text-secondary: #53677B;
  --text-muted: #8B98A5;
  --radius-card: 14px;
  --radius-btn: 9px;
  --shadow-subtle: 0 1px 2px rgba(4, 50, 98, .035), 0 5px 18px rgba(4, 50, 98, .045);
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.app, .app * { box-sizing: border-box; }
.app .sb {
  width: 252px;
  padding: 20px 14px 16px;
  background: #00514D;
  border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: 5px 0 24px rgba(4, 32, 62, .08);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.24) transparent;
}
.app .sb-logo-wrap {
  min-height: 68px;
  margin: 0 2px 22px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
}
.app .sb-logo-wrap img { max-height: 48px; }
.app .sb-nav { gap: 5px; }
.app .ni {
  min-height: 42px;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #E4EDF6;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.app .ni:hover {
  color: #fff;
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.08);
}
.app .ni.on {
  color: #fff;
  background: rgba(124,194,66,.19);
  border-color: rgba(124,194,66,.38);
  box-shadow: inset 3px 0 0 #7CC242;
}
.app .ni.on .ic { stroke: #7CC242; }
.app .ni .cnt {
  background: #D94747;
  color: #fff;
  border: 2px solid #062B50;
}
.app .sb-panel {
  border-color: rgba(255,255,255,.16);
  border-radius: 12px;
  background: rgba(255,255,255,.075);
}
.app .sb-footer-card { padding-top: 18px; }
.app .sb-seedling-box {
  border-radius: 12px;
  background: rgba(255,255,255,.07);
}
.app .mn {
  min-width: 0;
  margin-left: 252px;
  background: #F3F8FC;
}
.app .top {
  min-height: 70px;
  height: auto;
  padding: 10px clamp(16px, 2.4vw, 34px);
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid #DDE7EE;
  box-shadow: 0 2px 10px rgba(4,50,98,.025);
  backdrop-filter: blur(12px);
}
.app .top-left { gap: 14px; min-width: 0; }
.app .top-search { max-width: 340px; }
.app .top-search input {
  min-height: 40px;
  border: 1px solid #E1E8F0;
  border-radius: 9px;
  background: #F8FAFC;
  color: #1F2A37;
  font: 13px 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.app .top-search input:focus {
  outline: 3px solid rgba(11,143,115,.22);
  border-color: #0B8F73;
  background: #fff;
}
.app .top-right { gap: 16px; }
.app .top-bell {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #DDE7EE;
  border-radius: 10px;
  background: #fff;
}
.app .user-profile-badge { gap: 10px; }
.app .user-profile-badge .wn b {
  color: #1F2A37;
  font-size: 12.5px;
  font-weight: 700;
}
.app .user-profile-badge .wn small {
  color: #8B98A5;
  font-size: 11px;
}
.app .logout-btn {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #DDE7EE;
  border-radius: 8px;
  color: #53677B;
  background: #fff;
}
.app .ct {
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: clamp(18px, 2.4vw, 34px);
  background: #F3F8FC;
}
.app .ct > * { min-width: 0; }
.app .ct h1, .app .ct h2, .app .ct h3, .app .ct h4 {
  color: #062B50;
  font-family: 'Manrope', 'Inter', sans-serif;
  letter-spacing: -.018em;
}
.app .ct h1 { font-size: clamp(22px, 2vw, 29px); line-height: 1.25; }
.app .ct h2 { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.35; }
.app .ct h3 { font-size: 16px; line-height: 1.4; }
.app .ct p, .app .ct label, .app .ct td, .app .ct th {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.app .card {
  min-width: 0;
  padding: 20px 22px;
  border: 1px solid #DDE7EE;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(4,50,98,.025), 0 6px 20px rgba(4,50,98,.035);
}
.app .card-header-bar {
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid #EDF1F5;
}
.app .stat-card {
  min-width: 0;
  min-height: 98px;
  padding: 18px;
  gap: 14px;
  border: 1px solid #DDE7EE;
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow-subtle);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.app .stat-card:hover {
  transform: translateY(-2px);
  border-color: #D3E1EC;
  box-shadow: 0 8px 22px rgba(4,50,98,.075);
}
.app .stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #EDF4FA;
  color: #062B50;
}
.app .stat-icon.teal { background: #EFF6EB; color: #477F2F; }
.app .stat-icon.navy { background: #EDF3F9; color: #062B50; }
.app .stat-icon.amber { background: #FFF6E5; color: #98620B; }
.app .data-table {
  min-width: 620px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
}
.app .table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #E8EDF3;
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}
.app .data-table th {
  padding: 13px 14px;
  background: #F7F9FC;
  color: #53677B;
  border-bottom: 1px solid #DDE7EE;
  font-size: 10.5px;
  letter-spacing: .055em;
  white-space: nowrap;
}
.app .data-table td {
  padding: 13px 14px;
  color: #344457;
  border-bottom: 1px solid #EDF1F5;
  line-height: 1.5;
}
.app .data-table tbody tr:last-child td { border-bottom: 0; }
.app .data-table tbody tr:hover { background: #F8FBF6; }
.app .btn {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 9px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.app .btn-primary {
  color: #fff;
  background: #062B50;
  border-color: #062B50;
}
.app .btn-primary:hover {
  color: #fff;
  background: #0A477F;
  border-color: #0A477F;
}
.app .btn-secondary {
  color: #344457;
  background: #fff;
  border: 1px solid #DCE4EC;
}
.app .btn-secondary:hover { background: #F6F9FC; border-color: #BFCEDC; }
.app input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.app select, .app textarea {
  max-width: 100%;
  border-color: #D7E0E9;
  border-radius: 8px;
  color: #1F2A37;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.app input:focus, .app select:focus, .app textarea:focus,
.app button:focus-visible, .app a:focus-visible {
  outline: 3px solid rgba(11,143,115,.35);
  outline-offset: 2px;
}
.app .badge, .app .status-badge {
  font-weight: 700;
  letter-spacing: .01em;
}
.app .fee-gate {
  border-radius: 12px;
  border-color: #E8D7A8;
  box-shadow: none;
}
.app .mb-toggle {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid #DDE7EE;
  border-radius: 9px;
  background: #fff;
}
.app .mb-toggle:hover { background: #F3F8FC; }
@media (min-width: 769px) {
  .app .sb { transform: translateX(0); }
  .app .sb.open { transform: translateX(-105%); }
  .app .sb.open ~ .mn { margin-left: 0; }
  .app .mn { margin-left: 252px; }
}
@media (max-width: 1024px) {
  .app .sb { width: 238px; }
  .app .mn { margin-left: 238px; }
  .app .ct { padding: 20px; }
  .app .top { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 768px) {
  .app .sb {
    width: min(292px, calc(100vw - 52px));
    transform: translateX(-105%);
    box-shadow: 16px 0 40px rgba(0,20,42,.24);
  }
  .app .sb.open { transform: translateX(0); }
  .app .mn { margin-left: 0; width: 100%; }
  .app .top {
    min-height: 62px;
    padding: 9px 14px;
    gap: 10px;
  }
  .app .top-search { max-width: 210px; }
  .app .top-search input { min-height: 38px; }
  .app .top-right { gap: 8px; }
  .app .user-profile-badge .wn { display: none; }
  .app .logout-btn { padding: 7px; }
  .app .logout-btn span { display: none; }
  .app .ct { padding: 18px 14px 26px; }
  .app .card { padding: 16px; }
  .app .table-wrap { margin-left: 0; margin-right: 0; }
}
@media (max-width: 480px) {
  .app .top-search { display: none; }
  .app .top { min-height: 58px; }
  .app .top-right { margin-left: auto; }
  .app .top-bell { width: 38px; height: 38px; }
  .app .ct { padding: 14px 11px 22px; }
  .app .card { padding: 14px; border-radius: 11px; }
  .app .stat-card { padding: 13px; min-height: 82px; gap: 10px; }
  .app .stat-icon { width: 36px; height: 36px; }
  .app .btn { min-height: 40px; }
  .app .data-table { min-width: 560px; }
}
@media (prefers-reduced-motion: reduce) {
  .app *, .app *::before, .app *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* CIE responsive hardening — preserves the approved CIE visual system. */
.app, .app * { box-sizing: border-box; }
.app { width: 100%; max-width: 100%; overflow-x: clip; }
.app .mn, .app .ct, .app .card, .app .sb, .app .top,
.app .ct > *, .app .card > * { min-width: 0; }
.app img, .app video, .app iframe { max-width: 100%; }
.app .ct table { max-width: 100%; }
.app .ct form, .app .ct fieldset { min-width: 0; max-width: 100%; }
.app .ct input, .app .ct select, .app .ct textarea { width: auto; max-width: 100%; }
.app .ct .btn, .app .ct button, .app .ct .button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.app .ct .actions, .app .ct .action-buttons, .app .ct .form-actions,
.app .ct .toolbar, .app .ct .button-group { display:flex; flex-wrap:wrap; align-items:center; gap:8px; min-width:0; }
.app .ct .actions > *, .app .ct .action-buttons > *, .app .ct .form-actions > *,
.app .ct .toolbar > *, .app .ct .button-group > * { flex:0 0 auto; }
.app .ct .table-wrap { width:100%; max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; }
.app .ct .data-table { width:100%; }
@media (max-width: 768px) {
  .app .top { flex-wrap:wrap; }
  .app .top-left, .app .top-right { min-width:0; }
  .app .top-right { margin-left:auto; }
  .app .ct { width:100%; max-width:100%; }
  .app .ct [style*="grid-template-columns"] { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  .app .ct .card-header-bar { flex-wrap:wrap; align-items:flex-start; }
  .app .ct .card-header-bar > * { min-width:0; }
  .app .ct .stat-card { min-width:0; }
  .app .ct .form-row, .app .ct .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .app .ct { padding-inline:12px; }
  .app .ct [style*="grid-template-columns"] { grid-template-columns:minmax(0,1fr) !important; }
  .app .ct .form-row, .app .ct .form-grid { grid-template-columns:minmax(0,1fr); }
  .app .ct .card-header-bar { gap:10px; }
  .app .ct .actions, .app .ct .action-buttons, .app .ct .form-actions,
  .app .ct .toolbar, .app .ct .button-group { width:100%; }
  .app .ct .actions > .btn, .app .ct .action-buttons > .btn,
  .app .ct .form-actions > .btn, .app .ct .toolbar > .btn,
  .app .ct .button-group > .btn { flex:1 1 auto; }
  .app .ct .data-table { min-width:560px; }
  .app .ct .table-wrap { margin-inline:0; }
}


/* ==========================================================================
   CIE PORTAL RESPONSIVE FINISHING LAYER
   Presentation-only: preserves all existing PHP/JS handlers and markup.
   Palette is the original CIE identity declared at the top of this file.
   ========================================================================== */
.app {
  --navy: #062B50;
  --deep-teal: #00514D;
  --pri-green: #0B8F73;
  --act-green: #7CC242;
  --hover-green: #15A77F;
  --page-bg: #F3F8FC;
  --card-bg: #FFFFFF;
  --border: #DDE7EE;
  --text-primary: #1F2A37;
  --text-secondary: #53677B;
  --text-muted: #8B98A5;
  width: 100%;
  max-width: 100%;
}
.app .sb { background: var(--deep-teal); }
.app .mn, .app .ct { background: var(--page-bg); }
.app .ct, .app .mn, .app .card, .app .card * { min-width: 0; }
.app .ct { overflow-wrap: anywhere; }
.app .ct img, .app .ct video, .app .ct iframe {
  max-width: 100%;
}
.app .ct img { height: auto; }
.app .ct .table-wrap,
.app .ct .wp-list-table,
.app .ct .data-table,
.app .ct .responsive-table {
  max-width: 100%;
}
.app .ct .table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.app .ct table { max-width: 100%; }
.app .ct input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.app .ct select,
.app .ct textarea {
  max-width: 100%;
  min-width: 0;
}
.app .ct input[type="file"] { width: 100%; }
.app .ct .form-row,
.app .ct .form-grid,
.app .ct .grid,
.app .ct .stats-grid,
.app .ct .stat-grid {
  min-width: 0;
}
.app .ct .card-header-bar,
.app .ct .toolbar,
.app .ct .filter-bar,
.app .ct .form-actions,
.app .ct .actions,
.app .ct .action-buttons {
  min-width: 0;
  flex-wrap: wrap;
}
.app .ct button,
.app .ct .btn,
.app .ct .button {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.app .ct .badge,
.app .ct .status-badge { white-space: normal; }
.app .ct .gallery,
.app .ct .product-grid,
.app .ct .service-grid,
.app .ct .certificate-grid {
  min-width: 0;
}
.app .ct .gallery img,
.app .ct .product-grid img,
.app .ct .service-grid img,
.app .ct .certificate-grid img {
  max-width: 100%;
}
.app .ct .modal,
.app .ct .modal-dialog,
.app .ct [role="dialog"] {
  max-width: min(96vw, 900px);
}
@media (max-width: 1024px) {
  .app .sb { width: 238px; }
  .app .mn { margin-left: 238px; }
  .app .ct { padding: 20px; }
  .app .top { padding-inline: 18px; }
  .app .ct .stat-grid,
  .app .ct .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .app .sb {
    width: min(292px, calc(100vw - 48px));
    max-width: calc(100vw - 48px);
    transform: translateX(-105%);
    z-index: 120;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .app .sb.open { transform: translateX(0); }
  .app .mn { width: 100%; margin-left: 0; }
  .app .top {
    min-height: 62px;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 12px;
  }
  .app .top-left, .app .top-right { min-width: 0; }
  .app .top-left { flex: 1 1 auto; }
  .app .top-right { flex: 0 0 auto; margin-left: auto; }
  .app .mb-toggle { flex: 0 0 40px; }
  .app .top-search { max-width: min(34vw, 230px); }
  .app .user-profile-badge .wn { display: none; }
  .app .logout-btn { padding: 7px 9px; }
  .app .logout-btn span { display: none; }
  .app .ct { width: 100%; padding: 18px 14px 28px; }
  .app .ct [style*="grid-template-columns"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .app .ct .form-row,
  .app .ct .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app .ct .card-header-bar { align-items: flex-start; }
  .app .ct .table-wrap { margin-inline: 0; }
  .app .ct .modal,
  .app .ct .modal-dialog,
  .app .ct [role="dialog"] {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    max-height: calc(100dvh - 28px);
    overflow: auto;
    margin-inline: auto;
  }
}
@media (max-width: 560px) {
  .app .top { min-height: 58px; padding-inline: 10px; }
  .app .top-search { display: none; }
  .app .top-right { gap: 6px; }
  .app .ct { padding: 14px 10px 22px; }
  .app .ct .card { padding: 14px; border-radius: 11px; }
  .app .ct [style*="grid-template-columns"],
  .app .ct .form-row,
  .app .ct .form-grid,
  .app .ct .stats-grid,
  .app .ct .stat-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .app .ct .card-header-bar { gap: 10px; }
  .app .ct .card-header-bar > * { max-width: 100%; }
  .app .ct .actions,
  .app .ct .action-buttons,
  .app .ct .form-actions,
  .app .ct .toolbar,
  .app .ct .button-group { width: 100%; }
  .app .ct .actions > .btn,
  .app .ct .action-buttons > .btn,
  .app .ct .form-actions > .btn,
  .app .ct .toolbar > .btn,
  .app .ct .button-group > .btn { flex: 1 1 auto; }
  .app .ct .data-table { min-width: 560px; }
  .app .ct table:not(.data-table) { min-width: 480px; }
  .app .ct .table-wrap > table { margin-bottom: 0; }
  .app .ct .modal,
  .app .ct .modal-dialog,
  .app .ct [role="dialog"] {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }
}
@media (max-width: 360px) {
  .app .ct { padding-inline: 8px; }
  .app .ct .card { padding: 12px; }
  .app .top-bell { width: 36px; height: 36px; }
  .app .user-profile-badge { padding-left: 6px; }
}

/* ========================================================================
   CIE ADMIN DATA TABLE REFINEMENT — presentation only
   Keeps existing markup, data, actions and CIE brand colors intact.
   ======================================================================== */
.app .ct .table-wrap,
.app .ct .table-responsive,
.app .ct .responsive-table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid #E2E9F0;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(20, 43, 68, .035);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: #B8C8D7 #F3F6F9;
}
.app .ct .table-wrap:focus-within,
.app .ct .table-responsive:focus-within {
  outline: 2px solid rgba(104, 178, 73, .28);
  outline-offset: 2px;
}
.app .ct .data-table,
.app .ct .table-wrap > table,
.app .ct table.wp-list-table {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: #FFFFFF;
  color: #263445;
  font-size: 13px;
  line-height: 1.5;
}
.app .ct .data-table { min-width: 640px; }
.app .ct .data-table thead th,
.app .ct .table-wrap > table thead th,
.app .ct table.wp-list-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 13px 15px;
  background: #F1F5F9;
  color: #043262;
  border: 0;
  border-bottom: 1px solid #DCE5ED;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .055em;
  line-height: 1.35;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.app .ct .data-table thead th:first-child,
.app .ct .table-wrap > table thead th:first-child { padding-left: 18px; }
.app .ct .data-table tbody td,
.app .ct .table-wrap > table tbody td,
.app .ct table.wp-list-table tbody td {
  padding: 13px 15px;
  color: #344457;
  background: #FFFFFF;
  border: 0;
  border-bottom: 1px solid #EDF1F5;
  vertical-align: middle;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: normal;
}
.app .ct .data-table tbody tr:nth-child(even) td,
.app .ct .table-wrap > table tbody tr:nth-child(even) td {
  background: #FBFCFE;
}
.app .ct .data-table tbody tr:hover td,
.app .ct .table-wrap > table tbody tr:hover td {
  background: #F4F8F1;
}
.app .ct .data-table tbody tr:last-child td,
.app .ct .table-wrap > table tbody tr:last-child td { border-bottom: 0; }
.app .ct .data-table td:first-child,
.app .ct .table-wrap > table tbody td:first-child { padding-left: 18px; }
.app .ct .data-table td strong,
.app .ct .data-table td b { color: #183B5B; font-weight: 700; }
.app .ct .data-table td a:not(.btn),
.app .ct .table-wrap > table td a:not(.btn) {
  color: #043262;
  font-weight: 650;
  text-decoration: none;
  text-underline-offset: 3px;
}
.app .ct .data-table td a:not(.btn):hover,
.app .ct .table-wrap > table td a:not(.btn):hover { text-decoration: underline; }
.app .ct .data-table td .btn,
.app .ct .table-wrap > table td .btn,
.app .ct .data-table td .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin: 2px 4px 2px 0;
  padding: 7px 11px;
  border-radius: 7px;
  white-space: nowrap;
  vertical-align: middle;
}
.app .ct .data-table td .actions,
.app .ct .data-table td .action-buttons,
.app .ct .table-wrap > table td .actions,
.app .ct .table-wrap > table td .action-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 120px;
}
.app .ct .data-table td .badge,
.app .ct .table-wrap > table td .badge,
.app .ct .data-table td .status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
  white-space: normal;
}
.app .ct .table-wrap + .pagination,
.app .ct .table-wrap + .tablenav,
.app .ct .pagination,
.app .ct .tablenav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 100%;
  padding: 12px 2px 2px;
}
.app .ct .table-wrap + .pagination a,
.app .ct .pagination a,
.app .ct .tablenav a { overflow-wrap: anywhere; }
.app .ct .card > .table-wrap,
.app .ct .card > .table-responsive { margin-top: 12px; }
.app .ct .card-header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  min-width: 0;
  margin-bottom: 12px;
}
.app .ct .card-header-bar h2,
.app .ct .card-header-bar h3 { flex: 1 1 180px; min-width: 0; margin: 0; }
.app .ct .card-header-bar > .btn,
.app .ct .card-header-bar > a { flex: 0 0 auto; }
.app .ct .table-wrap input,
.app .ct .table-wrap select { max-width: 100%; }
@media (max-width: 768px) {
  .app .ct .table-wrap,
  .app .ct .table-responsive,
  .app .ct .responsive-table-wrap { border-radius: 10px; }
  .app .ct .data-table { min-width: 620px; }
  .app .ct .data-table th,
  .app .ct .data-table td,
  .app .ct .table-wrap > table th,
  .app .ct .table-wrap > table td { padding: 11px 12px; }
  .app .ct .card-header-bar { align-items: flex-start; }
  .app .ct .card-header-bar h2,
  .app .ct .card-header-bar h3 { flex-basis: 100%; }
  .app .ct .pagination,
  .app .ct .tablenav { align-items: flex-start; }
}
@media (max-width: 430px) {
  .app .ct .data-table { min-width: 600px; font-size: 12px; }
  .app .ct .data-table th,
  .app .ct .data-table td,
  .app .ct .table-wrap > table th,
  .app .ct .table-wrap > table td { padding: 10px 11px; }
  .app .ct .data-table td .btn,
  .app .ct .table-wrap > table td .btn { min-height: 34px; padding: 7px 9px; }
}

/* ========================================================================
   INDUSTRY ADMIN DETAIL — structured company profile (presentation only)
   ======================================================================== */
.cie-admin-industry-detail .cie-admin-user-view { margin:0 0 22px; }
.cie-admin-industry-detail .cie-user-hero {
  background:#fff; border:1px solid #dce6ee; border-radius:18px;
  box-shadow:0 8px 24px rgba(15,43,68,.055); padding:22px; gap:18px;
}
.cie-admin-industry-detail .cie-user-name { color:#062b50; font-weight:800; letter-spacing:-.025em; }
.cie-admin-industry-detail .cie-user-meta { gap:8px 11px; }
.cie-admin-industry-detail .cie-user-actions { gap:9px; }
.cie-admin-industry-detail .cie-verification-row { grid-column:1/-1; background:#f6f9fc; border:1px solid #e5edf3; border-radius:12px; padding:13px 14px; }
.cie-admin-industry-detail .cie-section-card,
.cie-admin-industry-detail .cie-industry-admin-profile > .cie-industry-section,
.cie-admin-industry-detail .cie-industry-profile-top {
  background:#fff; border:1px solid #dfe8ef; border-radius:16px;
  box-shadow:0 5px 18px rgba(15,43,68,.045); margin:0 0 18px; min-width:0;
}
.cie-admin-industry-detail .cie-section-card { padding:0; overflow:hidden; }
.cie-admin-industry-detail .cie-section-card .card-header-bar {
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap;
  gap:10px; padding:17px 20px; margin:0; border-bottom:1px solid #e8eef3;
}
.cie-admin-industry-detail .cie-section-card .card-header-bar h3 { margin:0; color:#062b50; font-size:17px; font-weight:800; }
.cie-admin-industry-detail .cie-profile-info-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:18px; }
.cie-admin-industry-detail .cie-profile-info-item { min-width:0; background:#f7f9fc; border:1px solid #e8eef3; border-radius:11px; padding:13px 14px; }
.cie-admin-industry-detail .cie-profile-info-label { color:#718096; font-size:10px; font-weight:800; letter-spacing:.075em; text-transform:uppercase; margin-bottom:7px; }
.cie-admin-industry-detail .cie-profile-info-value { color:#1c2f42; font-size:13px; line-height:1.65; overflow-wrap:anywhere; }
.cie-admin-industry-detail .cie-industry-admin-profile { width:100%; min-width:0; }
.cie-admin-industry-detail .cie-industry-profile-top { padding:0; overflow:hidden; position:relative; }
.cie-admin-industry-detail .cie-industry-cover { width:100%; height:clamp(150px,20vw,245px); background:#edf3f7; overflow:hidden; }
.cie-admin-industry-detail .cie-industry-cover img { display:block; width:100%; height:100%; object-fit:cover; }
.cie-admin-industry-detail .cie-industry-brand { display:flex; align-items:center; gap:17px; padding:20px 22px; min-width:0; }
.cie-admin-industry-detail .cie-industry-logo { width:88px; height:88px; flex:0 0 88px; border:1px solid #e1e8ee; border-radius:15px; padding:7px; background:#fff; object-fit:contain; }
.cie-admin-industry-detail .cie-industry-logo-empty { display:grid; place-items:center; color:#fff; background:#062b50; font-size:32px; font-weight:800; }
.cie-admin-industry-detail .cie-industry-brand-copy { min-width:0; }
.cie-admin-industry-detail .cie-industry-eyebrow { display:block; color:#0b8f73; font-size:10px; font-weight:800; letter-spacing:.12em; margin-bottom:6px; }
.cie-admin-industry-detail .cie-industry-brand h2 { margin:0; color:#062b50; font-size:clamp(20px,2.2vw,28px); line-height:1.2; font-weight:800; overflow-wrap:anywhere; }
.cie-admin-industry-detail .cie-industry-brand-copy p { margin:6px 0 0; color:#627487; font-size:13px; line-height:1.6; }
.cie-admin-industry-detail .cie-industry-brand-meta { display:flex; flex-wrap:wrap; gap:7px; margin-top:10px; }
.cie-admin-industry-detail .cie-industry-brand-meta span { background:#edf7f4; color:#08745f; border-radius:20px; padding:5px 9px; font-size:11px; font-weight:700; }
.cie-admin-industry-detail .cie-industry-preview-btn { display:inline-flex; align-items:center; gap:8px; margin:0 22px 20px; padding:10px 14px; border-radius:9px; background:#062b50; color:#fff!important; text-decoration:none!important; font-size:12px; font-weight:700; }
.cie-admin-industry-detail .cie-industry-preview-btn:hover { background:#0b8f73; }
.cie-admin-industry-detail .cie-industry-section { background:#fff; border:1px solid #dfe8ef; border-radius:15px; margin:0 0 16px; overflow:hidden; min-width:0; }
.cie-admin-industry-detail .cie-industry-section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 19px; border-bottom:1px solid #e9eff4; }
.cie-admin-industry-detail .cie-industry-section-head h3 { margin:0; color:#062b50; font-size:16px; font-weight:800; }
.cie-admin-industry-detail .cie-industry-section-head p { margin:4px 0 0; color:#758598; font-size:12px; line-height:1.5; }
.cie-admin-industry-detail .cie-industry-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; padding:16px; }
.cie-admin-industry-detail .cie-industry-field { min-width:0; padding:13px 14px; border:1px solid #e8eef3; border-radius:10px; background:#f8fafc; }
.cie-admin-industry-detail .cie-industry-field-wide { grid-column:1/-1; }
.cie-admin-industry-detail .cie-industry-field>span { display:block; margin-bottom:6px; color:#718096; font-size:10px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.cie-admin-industry-detail .cie-industry-field>div { color:#1d3043; font-size:13px; line-height:1.7; overflow-wrap:anywhere; }
.cie-admin-industry-detail .cie-industry-count { min-width:28px; height:28px; display:grid; place-items:center; border-radius:50%; background:#eaf5f1; color:#08745f; font-size:12px; font-weight:800; }
.cie-admin-industry-detail .cie-industry-item-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; padding:16px; }
.cie-admin-industry-detail .cie-industry-item-card { display:flex; gap:13px; min-width:0; padding:13px; border:1px solid #e5edf3; border-radius:12px; background:#fbfcfd; }
.cie-admin-industry-detail .cie-industry-item-image { width:104px; height:104px; flex:0 0 104px; display:grid; place-items:center; overflow:hidden; border-radius:9px; background:#fff; border:1px solid #e8eef3; }
.cie-admin-industry-detail .cie-industry-item-image img { width:100%; height:100%; object-fit:contain; }
.cie-admin-industry-detail .cie-industry-item-content { min-width:0; flex:1; }
.cie-admin-industry-detail .cie-industry-item-content h4 { margin:1px 0 9px; color:#12304b; font-size:14px; font-weight:800; overflow-wrap:anywhere; }
.cie-admin-industry-detail .cie-industry-item-details { display:grid; gap:7px; }
.cie-admin-industry-detail .cie-industry-item-details>div { display:grid; grid-template-columns:minmax(75px,105px) minmax(0,1fr); gap:8px; font-size:11px; line-height:1.55; }
.cie-admin-industry-detail .cie-industry-item-details b { color:#758598; font-weight:700; }
.cie-admin-industry-detail .cie-industry-item-details span { color:#304458; overflow-wrap:anywhere; }
.cie-admin-industry-detail .cie-industry-item-details .is-verified { color:#08745f; font-weight:800; }
.cie-admin-industry-detail .cie-industry-item-details .is-unverified { color:#a15b12; font-weight:800; }
.cie-admin-industry-detail .cie-industry-item-links { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.cie-admin-industry-detail .cie-industry-item-links a { color:#08745f; font-size:11px; font-weight:800; text-decoration:none; }
.cie-admin-industry-detail .cie-industry-empty { padding:22px; border:1px dashed #cbd8e2; border-radius:12px; color:#687b8d; background:#fff; margin-bottom:16px; }
.cie-admin-industry-detail .table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
.cie-admin-industry-detail .data-table { min-width:620px; }
.cie-admin-industry-detail .data-table th { background:#f4f8fb; color:#52677b; font-size:11px; text-transform:uppercase; letter-spacing:.04em; }
.cie-admin-industry-detail .data-table td { color:#263b4e; font-size:12px; vertical-align:middle; }
@media(max-width:1100px) {
  .cie-admin-industry-detail .cie-profile-info-grid,
  .cie-admin-industry-detail .cie-industry-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:700px) {
  .cie-admin-industry-detail .cie-profile-info-grid,
  .cie-admin-industry-detail .cie-industry-fields,
  .cie-admin-industry-detail .cie-industry-item-grid { grid-template-columns:minmax(0,1fr); }
  .cie-admin-industry-detail .cie-industry-field-wide { grid-column:auto; }
  .cie-admin-industry-detail .cie-industry-brand { align-items:flex-start; padding:15px; gap:12px; }
  .cie-admin-industry-detail .cie-industry-logo { width:68px; height:68px; flex-basis:68px; }
  .cie-admin-industry-detail .cie-industry-section-head { padding:14px; }
  .cie-admin-industry-detail .cie-industry-fields,
  .cie-admin-industry-detail .cie-industry-item-grid { padding:12px; }
  .cie-admin-industry-detail .cie-industry-item-card { gap:10px; }
  .cie-admin-industry-detail .cie-industry-item-image { width:82px; height:82px; flex-basis:82px; }
  .cie-admin-industry-detail .cie-industry-preview-btn { margin:0 15px 15px; width:calc(100% - 30px); justify-content:center; }
  .cie-admin-industry-detail .cie-section-card .card-header-bar { padding:14px; }
  .cie-admin-industry-detail .cie-profile-info-grid { padding:12px; }
}
@media(max-width:420px) {
  .cie-admin-industry-detail .cie-industry-brand { flex-direction:column; }
  .cie-admin-industry-detail .cie-industry-item-card { flex-direction:column; }
  .cie-admin-industry-detail .cie-industry-item-image { width:100%; height:150px; flex-basis:auto; }
  .cie-admin-industry-detail .cie-industry-item-details>div { grid-template-columns:1fr; gap:2px; }
  .cie-admin-industry-detail .cie-user-actions { grid-template-columns:minmax(0,1fr); }
}

/* Industry admin detail: mobile-safe text, institute selector and action controls. */
.cie-admin-industry-detail .cie-admin-user-view,
.cie-admin-industry-detail .cie-admin-user-view * { box-sizing:border-box; min-width:0; }
.cie-admin-industry-detail .cie-admin-user-view { width:100%; max-width:100%; overflow-x:clip; }
.cie-admin-industry-detail .cie-user-identity > div:last-child,
.cie-admin-industry-detail .cie-user-meta,
.cie-admin-industry-detail .cie-profile-info-value,
.cie-admin-industry-detail .ci-admin-industry-profile * { overflow-wrap:anywhere; word-break:normal; }
.cie-admin-industry-detail .cie-user-meta { display:flex; flex-wrap:wrap; align-items:center; gap:7px 10px; line-height:1.55; }
.cie-admin-industry-detail .cie-verification-row { display:flex; flex-wrap:wrap; align-items:center; gap:9px; }
.cie-admin-industry-detail .cie-verification-row form { margin:0; }
.cie-admin-industry-detail .cie-section-card select,
.cie-admin-industry-detail select[name="partner_id"] {
  display:block; width:100%; max-width:100%; min-height:46px; padding:11px 42px 11px 13px;
  border:1px solid #cbd7e3; border-radius:10px; background-color:#fff; color:#18324c;
  font:inherit; font-size:14px; line-height:1.4; box-shadow:0 2px 8px rgba(4,50,98,.05);
}
.cie-admin-industry-detail .cie-section-card form:has(select[name="partner_id"]) { display:grid!important; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:12px; }
.cie-admin-industry-detail .cie-section-card form:has(select[name="partner_id"]) > div { width:100%; min-width:0; }
.cie-admin-industry-detail .cie-section-card form:has(select[name="partner_id"]) button { min-height:46px; white-space:normal; }
.cie-admin-industry-detail .cie-profile-info-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.cie-admin-industry-detail .cie-profile-info-item { min-width:0; overflow-wrap:anywhere; }
.cie-admin-industry-detail .cie-user-actions .btn,
.cie-admin-industry-detail .cie-verification-row .btn { white-space:normal; line-height:1.35; }
@media(max-width:640px){
 .cie-admin-industry-detail .cie-user-hero { padding:14px; gap:14px; }
 .cie-admin-industry-detail .cie-user-identity { display:flex; flex-wrap:wrap; align-items:flex-start; gap:10px; }
 .cie-admin-industry-detail .cie-user-identity .av-xl { flex:0 0 54px; width:54px; height:54px; }
 .cie-admin-industry-detail .cie-user-identity>div:last-child { flex:1 1 calc(100% - 68px); }
 .cie-admin-industry-detail .cie-user-name { font-size:21px; line-height:1.3; }
 .cie-admin-industry-detail .cie-user-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
 .cie-admin-industry-detail .cie-user-actions>a,
 .cie-admin-industry-detail .cie-user-actions>form,
 .cie-admin-industry-detail .cie-user-actions>form button { width:100%; min-width:0; }
 .cie-admin-industry-detail .cie-verification-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
 .cie-admin-industry-detail .cie-verification-row>strong { grid-column:1/-1; }
 .cie-admin-industry-detail .cie-verification-row form,
 .cie-admin-industry-detail .cie-verification-row form button { width:100%; }
 .cie-admin-industry-detail .cie-profile-info-grid { grid-template-columns:minmax(0,1fr); }
 .cie-admin-industry-detail .cie-section-card form:has(select[name="partner_id"]) { grid-template-columns:minmax(0,1fr); }
 .cie-admin-industry-detail .cie-section-card form:has(select[name="partner_id"]) button { width:100%; }
}
@media(max-width:380px){
 .cie-admin-industry-detail .cie-user-actions,
 .cie-admin-industry-detail .cie-verification-row { grid-template-columns:minmax(0,1fr); }
 .cie-admin-industry-detail .cie-verification-row>strong { grid-column:auto; }
}

/* ==========================================================================
   Responsive hardening (layout only; no markup, field names or IDs changed)
   Covers: phones (320-480), large phones / small tablets (481-768),
   tablets (769-1024), laptops and wide screens.
   ========================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { min-width: 0; }
.app { max-width: 100%; overflow-x: clip; }
.app .mn, .app .ct { min-width: 0; max-width: 100%; }
.app .ct > * { max-width: 100%; }
.app .ct img, .app .ct video, .app .ct iframe, .app .ct canvas, .app .ct svg { max-width: 100%; }
.app .ct pre, .app .ct code { max-width: 100%; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
.app .ct input, .app .ct select, .app .ct textarea { max-width: 100%; min-width: 0; box-sizing: border-box; }
.app .ct .fld, .app .ct .fg, .app .ct .fld-wrap, .app .ct .card, .app .ct .form-grid > * { min-width: 0; }
.app .sb { max-height: 100vh; }
@supports (height: 100dvh) { .app .sb { max-height: 100dvh; } }

/* Wide screens: keep content readable instead of stretching edge to edge */
@media (min-width: 1700px) {
  .app .ct { max-width: 1560px; margin-left: auto; margin-right: auto; }
}

/* Tablets and below: stack inline-styled rigid layouts */
@media (max-width: 900px) {
  .app .pf-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .app .ct [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .app .ct div[style*="width:340px"] { width: 100% !important; max-width: 100% !important; flex-shrink: 1 !important; }
  .app .ct div[style*="min-width:320px"] { min-width: min(100%, 320px) !important; }
  .app .ct div[style*="min-width:240px"], .app .ct form[style*="min-width:240px"], .app .ct select[style*="min-width:240px"] { min-width: min(100%, 240px) !important; }
  .app .ct div[style*="min-width:220px"] { min-width: min(100%, 220px) !important; }
  .app .ct div[style*="min-width:180px"] { min-width: min(100%, 180px) !important; }
}

/* Phones */
@media (max-width: 640px) {
  .app .pf-row { grid-template-columns: minmax(0, 1fr) !important; }
  .app .ct [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: minmax(0, 1fr) !important; }
  .app .ct form[style*="display:flex"], .app .ct div[style*="display:flex"] { flex-wrap: wrap; }
  .app .ct form[style*="display:flex"] > input, .app .ct form[style*="display:flex"] > select { flex: 1 1 100%; min-width: 0 !important; width: 100% !important; }
  .app .ct td input[style*="width:"], .app .ct td select[style*="width:"] { max-width: 100%; }
  .app .ct .tab-nav { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .app .ct .tab-nav > * { flex: 0 0 auto; white-space: nowrap; }
  .app .ct .btn, .app .ct button { max-width: 100%; }
  .app .ct .form-actions { grid-template-columns: minmax(0, 1fr) !important; }
  .app .ct .form-actions .btn, .app .ct .form-actions button { width: 100%; }
  .app .ct .card-header-bar { flex-wrap: wrap; gap: 8px; }
  .app .ct .card-header-bar > * { min-width: 0; }
  .app .ct .filter-bar { flex-wrap: wrap; }
  .app .ct .filter-bar > * { flex: 1 1 100%; min-width: 0; }
}

/* Stop iOS Safari zooming into fields on focus */
@media (max-width: 768px) {
  .app input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]),
  .app select, .app textarea,
  .auth-wrap input:not([type="checkbox"]):not([type="radio"]), .auth-wrap select, .auth-wrap textarea { font-size: 16px; }
}

/* Very small phones */
@media (max-width: 360px) {
  .app .ct { padding-left: 10px; padding-right: 10px; }
  .app .ct .stat-grid, .app .ct .stats-grid { grid-template-columns: minmax(0, 1fr); }
  .auth-wrap { padding-left: 10px; padding-right: 10px; }
  .auth-card { padding: 20px 16px; }
}

/* Landscape phones: sidebar must scroll, not clip */
@media (max-height: 480px) and (orientation: landscape) {
  .app .sb { overflow-y: auto; }
  .app .top { position: static; }
}

/* Grids: let every cell shrink below its content width so long text, inputs
   and tables can never push a column (or the page) sideways. */
.gc-layout > *,
.grid-kpi-4 > *,
.grid-2col > *,
.grid-3col > *,
.form-grid > *,
.member-identity-card > *,
.member-communities-row > *,
.financial-sub-cards > *,
.quick-action-2x2 > *,
.cred-grid > *,
.type-selector-grid > *,
.auth-split > *,
.pick-grid > *,
.fld-grid > *,
.steps-4 > *,
ol.steps > *,
.kv > *,
.fin-sum > *,
.pay-summary > *,
.steps > *,
.cie-admin-industry-detail .cie-industry-item-details>div > *,
.cie-cm-leaders > *,
.cie-pf-grid > *,
.cie-admin-user-view .cie-user-hero > *,
.pf-row > * { min-width: 0; }
.fld-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fld-wrap { min-width: 0; width: 100%; }
.fld-wrap input, .fld-wrap select, .fld-wrap textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.auth-card, .auth-card.wide, .auth-card-reg { max-width: 100%; box-sizing: border-box; }
.cie-cm-leaders { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cie-pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cie-cm-leaders { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .cie-cm-leaders { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .cie-cm-leaders { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 800px) { .cie-pf-grid { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   DASHBOARD FORM CONTROLS - one consistent look
   Why: many inputs in the admin forms have no type attribute (for example the
   Add New form), so the old input[type="text"] rules never matched them and the
   browser's default thick border showed. Widths were also "auto", so fields were
   different sizes. This block styles every field the same way, at any width.
   ========================================================================== */

/* 1. All text-like controls (typed or untyped), selects and textareas */
.app .ct :is(
	input:not([type]),
	input[type="text"], input[type="email"], input[type="password"], input[type="url"],
	input[type="number"], input[type="tel"], input[type="search"], input[type="date"],
	input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"],
	select:not([multiple]):not([size]),
	textarea
):not(.table-wrap *, .filter-bar *, .inline-filter *, .mail-test-row *) {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	min-height: 44px;
	margin: 0;
	padding: 10px 14px;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: #1F2A37;
	background-color: #FFFFFF;
	border: 1px solid #D7E0E9;
	border-radius: 10px;
	box-shadow: none;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.app .ct :is(input, textarea)::placeholder { color: #9AA7B4; opacity: 1; }

.app .ct :is(
	input:not([type]),
	input[type="text"], input[type="email"], input[type="password"], input[type="url"],
	input[type="number"], input[type="tel"], input[type="search"], input[type="date"],
	input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"],
	select:not([multiple]):not([size]),
	textarea
):not(.table-wrap *, .filter-bar *, .inline-filter *, .mail-test-row *):hover {
	border-color: #B7C5D3;
}

.app .ct :is(
	input:not([type]),
	input[type="text"], input[type="email"], input[type="password"], input[type="url"],
	input[type="number"], input[type="tel"], input[type="search"], input[type="date"],
	input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"],
	select:not([multiple]):not([size]),
	textarea
):not(.table-wrap *, .filter-bar *, .inline-filter *, .mail-test-row *):focus {
	border-color: var(--pri-green, #0B8F73);
	box-shadow: 0 0 0 3px rgba(11, 143, 115, .16);
	outline: none;
}

.app .ct :is(input, select, textarea):disabled,
.app .ct :is(input, textarea)[readonly] {
	background-color: #F3F6F9;
	color: #6B7A8A;
	cursor: not-allowed;
}

/* 2. Select: custom chevron so it matches the text boxes */
.app .ct select:not([multiple]):not([size]):not(.table-wrap *, .filter-bar *, .inline-filter *, .mail-test-row *) {
	padding-right: 40px;
	cursor: pointer;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2353677B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 14px;
	text-overflow: ellipsis;
}

/* 3. Textarea */
.app .ct textarea:not(.table-wrap *, .filter-bar *, .inline-filter *, .mail-test-row *) {
	min-height: 96px;
	line-height: 1.5;
	resize: vertical;
}

/* 4. Date / time: keep the native picker icon but stop it collapsing on iOS */
.app .ct input[type="date"],
.app .ct input[type="time"],
.app .ct input[type="datetime-local"],
.app .ct input[type="month"],
.app .ct input[type="week"] { min-height: 44px; }

/* 5. Form layout: even columns, same gaps, labels above fields */
.app .ct .form-grid,
.app .ct .form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 24px;
	align-items: start;
}
.app .ct .form-grid > *,
.app .ct .form-row > * { min-width: 0; }
.app .ct .form-grid .full,
.app .ct .form-row .full { grid-column: 1 / -1; }

.app .ct .form-grid > div > label,
.app .ct .form-row > div > label,
.app .ct .form-group > label {
	display: block;
	margin: 0 0 7px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: #1F2A37;
}
.app .ct .form-grid .req,
.app .ct .form-row .req { color: #DC2626; margin-left: 2px; }

/* Helper text under a field goes on its own line */
.app .ct .form-grid small,
.app .ct .form-row small {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	line-height: 1.4;
	color: #7A8896;
}

/* Checkbox rows (e.g. "Email a secure password setup link") */
.app .ct .form-grid label:has(> input[type="checkbox"]),
.app .ct .form-grid label:has(> input[type="radio"]) {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 13.5px;
	font-weight: 500;
	cursor: pointer;
}
.app .ct input[type="checkbox"],
.app .ct input[type="radio"] {
	width: 18px;
	height: 18px;
	min-width: 18px;
	margin: 0;
	flex: none;
	accent-color: var(--pri-green, #0B8F73);
	cursor: pointer;
}

/* 6. Submit button under a form grid */
.app .ct form > .btn-primary,
.app .ct form > button.btn,
.app .ct .form-grid + .btn {
	min-height: 44px;
	padding: 0 24px;
	border-radius: 10px;
	font-weight: 600;
}

/* 7. Tablet and phone */
@media (max-width: 768px) {
	.app .ct .form-grid,
	.app .ct .form-row { gap: 16px 18px; }
	/* 16px stops iOS Safari from zooming the page when a field is tapped */
	.app .ct :is(input, select, textarea):not(.table-wrap *, .filter-bar *, .inline-filter *, .mail-test-row *) {
		font-size: 16px;
	}
}
@media (max-width: 560px) {
	.app .ct .form-grid,
	.app .ct .form-row { grid-template-columns: minmax(0, 1fr) !important; gap: 14px; }
	.app .ct form > .btn-primary,
	.app .ct form > button.btn,
	.app .ct .form-grid + .btn { width: 100%; }
}

/* ==========================================================================
   PROFILE EDIT FORMS (Student / Member / Partner / Industry dashboards)
   These use .fld-grid / .fld instead of .form-grid, plus file pickers and
   repeatable rows (Education, Skills, Experience...). Same look as the Add
   forms above, and a true 1-column layout on small screens.
   ========================================================================== */

/* Layout: even columns, same gaps */
.app .ct .fld-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 24px;
	align-items: start;
}
.app .ct .fld-grid > * { min-width: 0; }
.app .ct .fld-grid > .fld.full,
.app .ct .fld-grid > .cie-profile-repeaters { grid-column: 1 / -1; }

/* Labels and hints, same as the Add forms */
.app .ct .fld > label {
	display: block;
	margin: 0 0 7px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: #1F2A37;
}
.app .ct .fld > label .req { color: #DC2626; margin-left: 2px; }
.app .ct .fld .fld-hint {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	line-height: 1.4;
	color: #7A8896;
}

/* Icon inputs keep room for their icon */
.app .ct .fld-wrap :is(input, select):not(.table-wrap *, .filter-bar *, .inline-filter *, .mail-test-row *) {
	padding-left: 40px;
}

/* File pickers: one tidy dashed box, equal height side by side */
.app .ct .file-pick {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 14px;
	min-height: 96px;
	padding: 14px;
	background: #F8FBFD;
	border: 1px dashed #C5D3E0;
	border-radius: 10px;
}
.app .ct .file-pick > input[type="file"] {
	flex: 1 1 180px;
	min-width: 0;
	width: auto;
}
.app .ct input[type="file"] {
	max-width: 100%;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 13px;
	color: #53677B;
	cursor: pointer;
}
.app .ct input[type="file"]::file-selector-button {
	margin: 0 12px 0 0;
	padding: 9px 16px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: #344457;
	background: #FFFFFF;
	border: 1px solid #D7E0E9;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}
.app .ct input[type="file"]::file-selector-button:hover {
	background: #F3F6F9;
	border-color: var(--pri-green, #0B8F73);
}
/* A file input that is not inside a .file-pick (e.g. registration certificate) */
.app .ct .fld > input[type="file"] {
	display: block;
	width: 100%;
	padding: 12px 14px;
	background: #F8FBFD;
	border: 1px dashed #C5D3E0;
	border-radius: 10px;
}
.app .ct .cov-thumb { width: 96px; height: 56px; border-radius: 8px; }
.app .ct .file-pick > input[type="file"] { flex-basis: 220px; }

/* Repeatable rows (Education, Skills, Experience, Accreditations...) */
.app .ct .cie-repeater-row {
	gap: 14px 16px;
	padding: 14px;
	border-radius: 10px;
	align-items: end;
}
.app .ct .cie-repeater-row .btn {
	min-height: 44px;
	padding: 0 18px;
	border-radius: 10px;
}
.app .ct .cie-profile-repeaters > .btn { min-height: 40px; border-radius: 10px; }

/* Save / Clear buttons */
.app .ct .form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.app .ct .form-actions .btn {
	min-height: 44px;
	padding: 0 24px;
	border-radius: 10px;
	font-weight: 600;
}

/* Tablet and phone: genuinely one column */
@media (max-width: 700px) {
	.app .ct .fld-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 16px; }
	.app .ct .file-pick { min-height: 0; }
	.app .ct .file-pick > input[type="file"] { flex-basis: 100%; }
	.app .ct .cie-repeater-row { grid-template-columns: minmax(0, 1fr) !important; }
	.app .ct .cie-repeater-row .btn { width: 100%; }
	.app .ct .form-actions { flex-direction: column; }
	.app .ct .form-actions .btn { width: 100%; }
}

/* ==========================================================================
   LOGIN / REGISTER / FORGOT PASSWORD (.auth-wrap pages)
   - Security Verification (captcha) input has no type attribute, so it used the
     browser default. Every field here now shares one look.
   - An older rule made every .auth-card max-width:100%, so the login card
     stretched across the whole screen. The intended widths are restored.
   ========================================================================== */

/* Card width (inline max-width on a card, e.g. 960px, still wins) */
.auth-card { max-width: 440px; }
.auth-card.wide { max-width: 580px; }
.auth-card.auth-card-reg { max-width: 560px; }

/* Fields */
.auth-wrap :is(
	input:not([type]),
	input[type="text"], input[type="email"], input[type="password"], input[type="url"],
	input[type="number"], input[type="tel"], input[type="search"],
	select:not([multiple]):not([size]),
	textarea
) {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	min-height: 46px;
	margin: 0;
	padding: 11px 14px;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.4;
	color: #1F2A37;
	background-color: #FFFFFF;
	border: 1px solid #D7E0E9;
	border-radius: 10px;
	box-shadow: none;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-wrap :is(input, textarea)::placeholder { color: #9AA7B4; opacity: 1; }
.auth-wrap :is(
	input:not([type]),
	input[type="text"], input[type="email"], input[type="password"], input[type="url"],
	input[type="number"], input[type="tel"], input[type="search"],
	select:not([multiple]):not([size]),
	textarea
):focus {
	border-color: var(--pri-green, #0B8F73);
	box-shadow: 0 0 0 3px rgba(11, 143, 115, .16);
	outline: none;
}
.auth-wrap select:not([multiple]):not([size]) {
	padding-right: 40px;
	cursor: pointer;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2353677B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 14px;
}

/* Password box with the show/hide eye, and icon fields: keep room for the icons */
.auth-wrap .pw input { padding-right: 46px; }
.auth-wrap .fld-wrap input,
.auth-wrap .fld-wrap select { padding-left: 40px; padding-right: 44px; }

/* Labels that sit directly above a field (login, forgot, captcha) */
.auth-wrap form > label,
.auth-wrap .cap-fallback label {
	display: block;
	margin: 16px 0 7px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: #1F2A37;
}
.auth-wrap form > label:first-of-type { margin-top: 0; }
.auth-wrap .cap-fallback label { margin-top: 0; }

/* "Remember me" style rows: checkbox and text on one line */
.auth-wrap label:has(> input[type="checkbox"]),
.auth-wrap label:has(> input[type="radio"]) {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 0;
	cursor: pointer;
}
.auth-wrap input[type="checkbox"],
.auth-wrap input[type="radio"] {
	width: 17px;
	height: 17px;
	min-width: 17px;
	margin: 0;
	flex: none;
	accent-color: var(--pri-green, #0B8F73);
	cursor: pointer;
}

/* Captcha math box and its fallback */
.auth-wrap .cap-fallback { border-radius: 10px; }
.auth-wrap .cap-fallback input { margin-top: 0; }

/* Main button */
.auth-wrap .btn-full,
.auth-wrap form > .btn-primary {
	width: 100%;
	min-height: 46px;
	border-radius: 10px;
	font-weight: 600;
}

@media (max-width: 768px) {
	/* 16px stops iOS Safari zooming the page when a field is tapped */
	.auth-wrap :is(input, select, textarea) { font-size: 16px; }
}

/* ==========================================================================
   TABLES: stop words breaking in the middle ("Activ e", "Tayya b", "gmail.c om")
   Cause: .app .ct and the table cells used overflow-wrap:anywhere. That lets a
   browser shrink every column to almost nothing, so it crushed the columns and
   split words letter by letter. Now text only wraps at spaces and hyphens, a
   very long word (like an email) is the only thing allowed to break, and a table
   that is wider than the card scrolls sideways inside its .table-wrap instead.
   Applies to every dashboard (admin, student, member, partner, industry).
   ========================================================================== */

.app .ct {
	overflow-wrap: break-word;
	word-break: normal;
}

html body .app .ct :is(.data-table, .table-wrap > table, table.wp-list-table) :is(th, td) {
	overflow-wrap: break-word;
	word-break: normal;
	hyphens: manual;
}
html body .app .ct :is(.data-table, .table-wrap > table, table.wp-list-table) th {
	overflow-wrap: normal;
	white-space: nowrap;
}

/* Small labels, pills and buttons never split their text */
.app .ct :is(.badge, .status-badge, .pill, .tag, .chip),
.app .ct :is(.data-table, .table-wrap > table) td :is(.badge, .status-badge) {
	white-space: nowrap;
	overflow-wrap: normal;
	word-break: normal;
	flex: none;
}
.app .ct :is(.btn, .button, button) {
	overflow-wrap: normal;
	word-break: normal;
}
.app .ct :is(.data-table, .table-wrap > table) td :is(.btn, .button) { white-space: nowrap; }

/* The card keeps the table inside it and lets the table scroll sideways */
.app .ct .table-wrap {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.app .ct .table-wrap > table { width: 100%; }

/* Action cells: buttons sit side by side and wrap as whole buttons */
.app .ct :is(.data-table, .table-wrap > table) td:last-child .actions,
.app .ct :is(.data-table, .table-wrap > table) td:last-child .action-buttons {
	flex-wrap: wrap;
	min-width: 0;
}

/* IDs and names in the first column stay on one line; cells are a little tighter
   so wide tables need less sideways scrolling */
html body .app .ct :is(.data-table, .table-wrap > table) tbody td:first-child > :is(b, strong) {
	white-space: nowrap;
}
html body .app .ct :is(.data-table, .table-wrap > table) :is(thead th, tbody td) {
	padding-left: 11px;
	padding-right: 11px;
}
html body .app .ct :is(.data-table, .table-wrap > table) :is(thead th:first-child, tbody td:first-child) {
	padding-left: 16px;
}

/* ==========================================================================
   DIRECTORY TABLES: same clean look and responsive cards as the Partners page
   Tables whose cells carry data-label (Members, Industry, Partners...) turn into
   stacked cards on tablets and phones. The old min-width:640px on .data-table
   forced the card wider than the screen, so it was cut off; that is cleared here.
   ========================================================================== */

/* Desktop: ID and date never split, email reads as secondary grey text */
html body .app .ct :is(.data-table) tbody td:is([data-label="ID"], [data-label="Reg. No."], [data-label="Registered"], [data-label="Date"], [data-label="Challan"]) {
	white-space: nowrap;
}
html body .app .ct .data-table tbody td[data-label="Email"] {
	color: #64748B;
	font-size: 12.5px;
}
html body .app .ct .data-table tbody td[data-label="ID"] {
	color: #53677B;
	font-size: 12.5px;
	font-weight: 600;
}
html body .app .ct .data-table td small { color: #64748B; font-size: 12px; line-height: 1.45; }

/* Row actions: compact, same spacing everywhere */
html body .app .ct .data-table td .cd-actions,
html body .app .ct .data-table td .actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	min-width: 0;
}
html body .app .ct .data-table td .cd-actions form { margin: 0; display: inline-flex; }
html body .app .ct .data-table td .cd-actions .btn { margin: 0; }

/* Tablet and phone: cards */
@media (max-width: 1280px) {
	html body .app .ct .table-wrap:has(> .data-table td[data-label]) {
		overflow: visible;
		background: none;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}
	html body .app .ct .table-wrap > .data-table:has(td[data-label]) {
		display: block;
		width: 100%;
		min-width: 0 !important;
		max-width: 100%;
		border: 0;
	}
	html body .app .ct .table-wrap > .data-table:has(td[data-label]) :is(tbody, tr, td) {
		display: block;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}
	html body .app .ct .table-wrap > .data-table:has(td[data-label]) thead { display: none; }
	html body .app .ct .table-wrap > .data-table:has(td[data-label]) tbody tr {
		margin: 0 0 14px;
		padding: 10px 16px;
		background: #FFFFFF;
		border: 1px solid #DDE7EE;
		border-radius: 12px;
		box-shadow: 0 1px 2px rgba(6, 43, 80, .04);
	}
	html body .app .ct .table-wrap > .data-table:has(td[data-label]) tbody tr:last-child { margin-bottom: 0; }
	html body .app .ct .table-wrap > .data-table:has(td[data-label]) tbody td {
		padding: 9px 0;
		background: transparent;
		border: 0;
		border-bottom: 1px solid #EDF1F5;
		white-space: normal;
	}
	html body .app .ct .table-wrap > .data-table:has(td[data-label]) tbody td:last-child { border-bottom: 0; }
	html body .app .ct .table-wrap > .data-table:has(td[data-label]) tbody td[data-label]::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 4px;
		color: #64748B;
		font-size: 11px;
		font-weight: 700;
		letter-spacing: .04em;
		text-transform: uppercase;
	}
	/* the "No records" row has no label: keep it centred, not boxed */
	html body .app .ct .table-wrap > .data-table:has(td[data-label]) tbody td[colspan] { text-align: center; }
}

/* Phones: action buttons in two even columns */
@media (max-width: 600px) {
	html body .app .ct .table-wrap > .data-table:has(td[data-label]) .cd-actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	html body .app .ct .table-wrap > .data-table:has(td[data-label]) .cd-actions form { display: block; }
	html body .app .ct .table-wrap > .data-table:has(td[data-label]) .cd-actions :is(.btn, button) {
		width: 100%;
		justify-content: center;
		text-align: center;
	}
}


/* ==========================================================================
   INDUSTRY DASHBOARD WELCOME BANNER - readable text
   Why: ".app .ct h2" (navy heading colour) was stronger than ".ci-hero h2",
   so the welcome title turned navy on the dark banner. This is stronger again.
   ========================================================================== */
.app .ct .ci-hero h2 {
	color: #FFFFFF;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
	font-size: clamp(20px, 2vw, 26px);
	line-height: 1.3;
	letter-spacing: -.01em;
}
.app .ct .ci-hero p,
.app .ct .ci-hero p b {
	color: #FFFFFF;
	opacity: 1;
}
.app .ct .ci-hero p { opacity: .95; }

/* ==========================================================================
   ADMIN INDUSTRY PROFILE - products / services cards and Remove button
   ========================================================================== */
.cie-admin-industry-detail .cie-industry-item-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
	align-items: start;
}
.cie-admin-industry-detail .cie-industry-item-card {
	position: relative;
	background: #FFFFFF;
	border-color: #DDE7EE;
	box-shadow: 0 1px 2px rgba(6, 43, 80, .04);
}
.cie-admin-industry-detail .cie-industry-item-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 9px;
}
.cie-admin-industry-detail .cie-industry-item-top h4 {
	margin: 1px 0 0;
	color: #062B50;
	font-size: 15px;
	line-height: 1.35;
}
.cie-admin-industry-detail .cie-industry-item-details > div {
	font-size: 12px;
}
.cie-admin-industry-detail .cie-industry-item-details b {
	color: #53677B;
}
.cie-admin-industry-detail .cie-industry-item-details span {
	color: #1F2A37;
}

/* Remove button */
.cie-admin-industry-detail .cie-industry-remove {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 6px 11px;
	background: #FFFFFF;
	color: #B91C1C;
	border: 1px solid #FCA5A5;
	border-radius: 8px;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.cie-admin-industry-detail .cie-industry-remove svg {
	width: 15px;
	height: 15px;
	flex: none;
}
.cie-admin-industry-detail .cie-industry-remove:hover,
.cie-admin-industry-detail .cie-industry-remove:focus-visible {
	background: #DC2626;
	border-color: #DC2626;
	color: #FFFFFF;
	outline: none;
}
.cie-admin-industry-detail .cie-industry-remove:focus-visible {
	box-shadow: 0 0 0 3px rgba(220, 38, 38, .25);
}
.cie-admin-industry-detail .cie-industry-remove.is-busy,
.cie-admin-industry-detail .cie-industry-remove:disabled {
	opacity: .6;
	cursor: progress;
}

/* Phones: keep the button on its own line under a long title */
@media (max-width: 520px) {
	.cie-admin-industry-detail .cie-industry-item-top {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ==========================================================================
   SOCIAL LINKS + SHARE PROFILE
   - Member profile tab: "Social Links" card (.cie-ms)
   - Public profile: round brand icons (.cie-ms-public / .cie-ms-ic)
   - Share box under the profile link (.cie-share)
   ========================================================================== */

/* ---- Round brand icons (member card + public profile) ---- */
.cie-ms,
.cie-ms * { box-sizing: border-box; }

.cie-ms-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
}

.cie-ms-ic {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--c, #0B8F73);
	color: #FFFFFF !important;
	text-decoration: none !important;
	transition: transform .15s ease, box-shadow .15s ease;
}

.cie-ms-ic:hover,
.cie-ms-ic:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 6px 14px rgba(6, 43, 80, .22);
	outline: none;
}

.cie-ms-ic:focus-visible { box-shadow: 0 0 0 3px rgba(11, 143, 115, .35); }

.cie-ms-ic svg {
	display: block;
	width: 22px;
	height: 22px;
}

/* ---- Public profile: icons sit under the name, left aligned ---- */
.cie-ms-public {
	display: flex;
	justify-content: center;
	width: 100%;
	margin: 14px 0;
}

.cie-linkedin-profile .cie-identity-info .cie-ms-public {
	justify-content: flex-start;
	margin: 16px 0 0;
}

.cie-linkedin-profile .cie-identity-info .cie-ms-row { justify-content: flex-start; }

@media (max-width: 480px) {
	.cie-linkedin-profile .cie-identity-info .cie-ms-public,
	.cie-linkedin-profile .cie-identity-info .cie-ms-row { justify-content: center; }
}

/* ---- Member profile tab: Social Links card ---- */
.cie-ms-list {
	display: grid;
	gap: 10px;
	margin: 0 0 18px;
}

.cie-ms-item {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 10px 12px;
	background: #FFFFFF;
	border: 1px solid #DDE7EE;
	border-radius: 10px;
}

.cie-ms-item .cie-ms-ic { width: 38px; height: 38px; }
.cie-ms-item .cie-ms-ic svg { width: 19px; height: 19px; }

.cie-ms-txt { min-width: 0; flex: 1; }

.cie-ms-txt b {
	display: block;
	font-size: 14px;
	color: #062B50;
}

.cie-ms-txt span {
	display: block;
	font-size: 12.5px;
	color: #53677B;
	overflow-wrap: anywhere;
	word-break: break-all;
}

.cie-ms-del {
	flex: 0 0 auto;
	min-height: 36px;
	padding: 6px 14px;
	background: #FFFFFF;
	color: #DC2626;
	border: 1px solid #FECACA;
	border-radius: 8px;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.cie-ms-del:hover { background: #FEF2F2; }

.cie-ms-box {
	padding: 16px;
	background: #F8FAFC;
	border: 1px solid #DDE7EE;
	border-radius: 12px;
}

.cie-ms-box h4 {
	margin: 0 0 12px;
	font-size: 14px;
	color: #062B50;
}

.cie-ms-grid {
	display: grid;
	grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto;
	gap: 12px;
	align-items: end;
}

.cie-ms-f { min-width: 0; }

.cie-ms-f label {
	display: block;
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	color: #1F2A37;
}

.cie-ms-grid .btn { min-height: 44px; }

.cie-ms-hint {
	margin: 10px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: #64748B;
}

.cie-ms-note {
	margin: 0 0 14px;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 13.5px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.cie-ms-note.ok { background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; }
.cie-ms-note.er { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }

.cie-ms-empty {
	margin: 0 0 16px;
	padding: 18px 14px;
	background: #F8FAFC;
	border: 1px dashed #CBD5E1;
	border-radius: 12px;
	color: #64748B;
	font-size: 13.5px;
	text-align: center;
}

@media (max-width: 700px) {
	.cie-ms-grid { grid-template-columns: minmax(0, 1fr); }
	.cie-ms-grid .btn { width: 100%; }
	.cie-ms-item { flex-wrap: wrap; }
	.cie-ms-del { width: 100%; }
}

/* ---- Share box under the public profile link (CIE::copybox) ---- */
.cie-share { display: grid; gap: 14px; }

.cie-share-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.cie-share-url { flex: 1 1 260px; min-width: 0; }

.cie-share-url small { display: block; color: #53677B; }

.cie-share-url b {
	font-size: 13.5px;
	color: #062B50;
	overflow-wrap: anywhere;
	word-break: break-all;
}

.cie-share-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.cie-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 8px 14px;
	border-radius: 8px;
	color: #FFFFFF !important;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
}

.cie-share-btn:hover { opacity: .88; }

.cie-share-native { display: none; }

@media (max-width: 600px) {
	.cie-share-row {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.cie-share-btn,
	.cie-share-row .btn { width: 100%; }
}