/**
 * سیستم طراحی حداقلی جتمیل‌ام — کارت‌محور، رنگ اصلی/فونت از پنل (CSS
 * Variables زیر توسط PHP مقداردهی می‌شوند)، RTL-first.
 */

:root {
	--jetmlm-primary: #2563eb;
	--jetmlm-primary-ink: #ffffff;
	--jetmlm-font: 'Vazirmatn', Tahoma, sans-serif;
	--jetmlm-ink: #1c2129;
	--jetmlm-ink-soft: #5b6472;
	--jetmlm-border: #e4e7ec;
	--jetmlm-bg-soft: #f7f8fa;
	--jetmlm-danger: #d64545;
	--jetmlm-success: #1a8a5f;
	--jetmlm-radius: 14px;
	--jetmlm-radius-sm: 8px;
	--jetmlm-shadow: 0 2px 10px rgba(20, 24, 33, 0.06), 0 1px 2px rgba(20, 24, 33, 0.04);
}

.jetmlm-auth-form,
.jetmlm-content-gate,
.jetmlm-admin,
.jetmlm-my-network,
.jetmlm-team-dashboard {
	font-family: var( --jetmlm-font );
	color: var( --jetmlm-ink );
	line-height: 1.9;
}

/* ---------------------------------------------------------------------
 * کارت ثبت‌نام/ورود
 * ------------------------------------------------------------------- */
.jetmlm-auth-form {
	max-width: 380px;
	margin: 32px auto;
	background: #fff;
	border: 1px solid var( --jetmlm-border );
	border-radius: var( --jetmlm-radius );
	box-shadow: var( --jetmlm-shadow );
	padding: 32px 28px;
}

.jetmlm-auth-form .jetmlm-steps-indicator {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 24px;
}

.jetmlm-auth-form .jetmlm-steps-indicator span {
	flex: 1;
	height: 3px;
	border-radius: 3px;
	background: var( --jetmlm-border );
	transition: background 0.25s ease;
}

.jetmlm-auth-form .jetmlm-steps-indicator span.is-active,
.jetmlm-auth-form .jetmlm-steps-indicator span.is-done {
	background: var( --jetmlm-primary );
}

.jetmlm-auth-form .jetmlm-field {
	margin-bottom: 16px;
}

.jetmlm-auth-form label {
	display: block;
	font-size: 13px;
	color: var( --jetmlm-ink-soft );
	margin-bottom: 6px;
}

.jetmlm-auth-form input[type="text"],
.jetmlm-auth-form input[type="tel"] {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 14px;
	border: 1px solid var( --jetmlm-border );
	border-radius: var( --jetmlm-radius-sm );
	font-family: inherit;
	font-size: 14px;
	background: var( --jetmlm-bg-soft );
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jetmlm-auth-form input:focus {
	outline: none;
	border-color: var( --jetmlm-primary );
	box-shadow: 0 0 0 3px color-mix( in srgb, var( --jetmlm-primary ) 18%, transparent );
	background: #fff;
}

.jetmlm-auth-form .jetmlm-rahbar-status {
	display: none;
	position: relative;
	margin-top: 9px;
	padding: 9px 38px 9px 12px;
	border: 1px solid transparent;
	border-radius: var( --jetmlm-radius-sm );
	font-size: 13px;
	font-weight: 600;
	line-height: 1.7;
	animation: jetmlm-status-in 0.2s ease-out;
}

.jetmlm-auth-form .jetmlm-rahbar-status:not(:empty) {
	display: block;
}

.jetmlm-auth-form .jetmlm-rahbar-status::before {
	position: absolute;
	inset-inline-start: 13px;
	top: 50%;
	transform: translateY( -50% );
	font-size: 16px;
}

.jetmlm-auth-form .jetmlm-rahbar-status.is-loading {
	background: var( --jetmlm-bg-soft );
	border-color: var( --jetmlm-border );
	color: var( --jetmlm-ink-soft );
	font-weight: 500;
}

.jetmlm-auth-form .jetmlm-rahbar-status.is-loading::before {
	content: "";
	width: 13px;
	height: 13px;
	border: 2px solid var( --jetmlm-border );
	border-top-color: var( --jetmlm-primary );
	border-radius: 50%;
	animation: jetmlm-spin 0.75s linear infinite;
}

.jetmlm-auth-form .jetmlm-rahbar-status.is-valid {
	background: color-mix( in srgb, var( --jetmlm-success ) 9%, #fff );
	border-color: color-mix( in srgb, var( --jetmlm-success ) 28%, var( --jetmlm-border ) );
	color: var( --jetmlm-success );
	box-shadow: 0 5px 16px color-mix( in srgb, var( --jetmlm-success ) 9%, transparent );
}

.jetmlm-auth-form .jetmlm-rahbar-status.is-valid::before {
	content: "✓";
}

.jetmlm-auth-form .jetmlm-rahbar-status.is-invalid {
	background: color-mix( in srgb, var( --jetmlm-danger ) 7%, #fff );
	border-color: color-mix( in srgb, var( --jetmlm-danger ) 25%, var( --jetmlm-border ) );
	color: var( --jetmlm-danger );
}

.jetmlm-auth-form .jetmlm-rahbar-status.is-invalid::before {
	content: "!";
}

@keyframes jetmlm-spin {
	to { transform: translateY( -50% ) rotate( 360deg ); }
}

@keyframes jetmlm-status-in {
	from { opacity: 0; transform: translateY( -3px ); }
	to { opacity: 1; transform: translateY( 0 ); }
}

.jetmlm-auth-form .button,
.jetmlm-content-gate .jetmlm-unlock-btn,
.jetmlm-content-gate .jetmlm-download-btn,
.jetmlm-team-dashboard .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background: var( --jetmlm-primary );
	border: none;
	color: var( --jetmlm-primary-ink );
	padding: 12px 16px;
	border-radius: var( --jetmlm-radius-sm );
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.05s ease;
}

.jetmlm-auth-form .button:hover,
.jetmlm-content-gate .jetmlm-unlock-btn:hover {
	filter: brightness( 1.08 );
}

.jetmlm-auth-form .button:active {
	transform: translateY( 1px );
}

.jetmlm-auth-form .button:disabled {
	opacity: 0.6;
	cursor: default;
}

.jetmlm-auth-form .jetmlm-auth-message {
	margin-top: 14px;
	font-size: 13px;
	min-height: 1px;
}

.jetmlm-auth-form .jetmlm-auth-message.is-error {
	color: var( --jetmlm-danger );
}

.jetmlm-auth-form .jetmlm-auth-message.is-success {
	color: var( --jetmlm-success );
}

.jetmlm-auth-form .jetmlm-switch-link {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var( --jetmlm-border );
	font-size: 13px;
	color: var( --jetmlm-ink-soft );
	text-align: center;
}

.jetmlm-auth-form .jetmlm-switch-link a {
	color: var( --jetmlm-primary );
	font-weight: 600;
	text-decoration: none;
}

.jetmlm-auth-form .jetmlm-switch-link a:hover {
	text-decoration: underline;
}

/* ---------------------------------------------------------------------
 * جریان محتوا (واترمارک/دانلود)
 * ------------------------------------------------------------------- */
.jetmlm-content-gate .jetmlm-slide {
	position: relative;
	display: inline-block;
	margin-inline-end: 12px;
	margin-bottom: 12px;
}

.jetmlm-content-gate .jetmlm-slide-image {
	max-width: 240px;
	height: auto;
	display: block;
	border-radius: var( --jetmlm-radius-sm );
	border: 1px solid var( --jetmlm-border );
}

.jetmlm-content-gate .jetmlm-unlock-btn,
.jetmlm-content-gate .jetmlm-download-btn {
	width: auto;
	padding: 10px 20px;
}

.jetmlm-content-gate .jetmlm-message {
	color: var( --jetmlm-danger );
	margin-top: 8px;
	font-size: 13px;
}

/* ---------------------------------------------------------------------
 * شبکه‌ی من / داشبورد تیم
 * ------------------------------------------------------------------- */
.jetmlm-my-network,
.jetmlm-team-dashboard {
	max-width: 720px;
	margin: 0 auto;
}

.jetmlm-my-network .jetmlm-card,
.jetmlm-team-dashboard .jetmlm-card {
	background: #fff;
	border: 1px solid var( --jetmlm-border );
	border-radius: var( --jetmlm-radius );
	box-shadow: var( --jetmlm-shadow );
	padding: 20px 24px;
	margin-bottom: 16px;
}

.jetmlm-my-network .jetmlm-share-input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 14px;
	border: 1px dashed var( --jetmlm-border );
	border-radius: var( --jetmlm-radius-sm );
	background: var( --jetmlm-bg-soft );
	font-family: inherit;
	font-size: 13px;
	color: var( --jetmlm-ink-soft );
}

.jetmlm-stat-row {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}

.jetmlm-stat {
	flex: 1;
	min-width: 120px;
	text-align: center;
	padding: 12px;
	border-radius: var( --jetmlm-radius-sm );
	background: var( --jetmlm-bg-soft );
}

.jetmlm-stat .jetmlm-stat-value {
	display: block;
	font-size: 22px;
	font-weight: 700;
	color: var( --jetmlm-primary );
}

.jetmlm-stat .jetmlm-stat-label {
	font-size: 12px;
	color: var( --jetmlm-ink-soft );
}

.jetmlm-team-table,
.jetmlm-my-network table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.jetmlm-team-table th,
.jetmlm-my-network th {
	text-align: right;
	padding: 10px 8px;
	color: var( --jetmlm-ink-soft );
	font-weight: 600;
	border-bottom: 1px solid var( --jetmlm-border );
}

.jetmlm-team-table td,
.jetmlm-my-network td {
	padding: 10px 8px;
	border-bottom: 1px solid var( --jetmlm-border );
}

.jetmlm-team-table tr:hover td {
	background: var( --jetmlm-bg-soft );
}

.jetmlm-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}

.jetmlm-badge.status-pending {
	background: #fff3d6;
	color: #8a6100;
}

.jetmlm-badge.status-awaiting_referral {
	background: #e8e5ff;
	color: #5143a5;
}

.jetmlm-badge.status-approved {
	background: #dbf5e8;
	color: var( --jetmlm-success );
}

.jetmlm-badge.status-rejected {
	background: #fbe1e1;
	color: var( --jetmlm-danger );
}

.jetmlm-view-toggle {
	display: inline-flex;
	background: var( --jetmlm-bg-soft );
	border-radius: 999px;
	padding: 4px;
	margin-bottom: 16px;
}

.jetmlm-view-toggle button {
	border: none;
	background: transparent;
	padding: 8px 18px;
	border-radius: 999px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var( --jetmlm-ink-soft );
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.jetmlm-view-toggle button.is-active {
	background: var( --jetmlm-primary );
	color: var( --jetmlm-primary-ink );
}

.jetmlm-bulk-toolbar {
	display: none;
	align-items: center;
	gap: 10px;
	background: color-mix( in srgb, var( --jetmlm-primary ) 8%, #fff );
	border: 1px solid color-mix( in srgb, var( --jetmlm-primary ) 25%, var( --jetmlm-border ) );
	padding: 10px 14px;
	border-radius: var( --jetmlm-radius-sm );
	margin-bottom: 12px;
	font-size: 13px;
}

.jetmlm-row-action-btn {
	border: 1px solid var( --jetmlm-border );
	background: #fff;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 12px;
	cursor: pointer;
	margin-inline-start: 4px;
	transition: background 0.15s ease;
}

.jetmlm-row-action-btn:hover {
	background: var( --jetmlm-bg-soft );
}

.jetmlm-row-action-btn.is-danger {
	border-color: color-mix( in srgb, var( --jetmlm-danger ) 40%, var( --jetmlm-border ) );
	color: var( --jetmlm-danger );
}

@media ( max-width: 600px ) {
	.jetmlm-auth-form {
		margin: 16px;
		padding: 24px 18px;
	}

	.jetmlm-stat-row {
		flex-direction: column;
	}
}

/* =====================================================================
 * UI 2026 — «نقشه‌ی مسیر رشد»
 * لایه‌ی نهایی طراحی برای فرم‌های احراز هویت و صفحات مدیریتی افزونه.
 * =================================================================== */
:root {
	--jetmlm-midnight: #102a43;
	--jetmlm-ocean: #126e78;
	--jetmlm-turquoise: #19a89d;
	--jetmlm-coral: #ff835f;
	--jetmlm-mist: #f2f7f7;
	--jetmlm-paper: #ffffff;
	--jetmlm-ink: #132f3e;
	--jetmlm-ink-soft: #617783;
	--jetmlm-border: #dce8e8;
	--jetmlm-bg-soft: #f5f9f9;
	--jetmlm-danger: #c94242;
	--jetmlm-success: #13795b;
	--jetmlm-radius: 24px;
	--jetmlm-radius-sm: 13px;
	--jetmlm-display-font: 'Yekan Bakh', 'Vazirmatn', Tahoma, sans-serif;
	--jetmlm-utility-font: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--jetmlm-shadow: 0 24px 70px rgba(16, 42, 67, 0.12), 0 3px 12px rgba(16, 42, 67, 0.05);
}

/* فرم‌های ثبت‌نام، ورود و تکمیل عضویت */
.jetmlm-auth-form {
	position: relative;
	isolation: isolate;
	width: min( calc( 100% - 32px ), 470px );
	max-width: none;
	margin: clamp( 24px, 6vw, 72px ) auto;
	padding: clamp( 26px, 5vw, 42px );
	overflow: hidden;
	background:
		linear-gradient( 145deg, rgba(25, 168, 157, 0.06), transparent 34% ),
		var( --jetmlm-paper );
	border: 1px solid rgba(18, 110, 120, 0.16);
	border-radius: 30px;
	box-shadow: var( --jetmlm-shadow );
	line-height: 1.75;
}

.jetmlm-auth-form::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset-block-start: 0;
	inset-inline: 0;
	height: 5px;
	background: linear-gradient( 90deg, var( --jetmlm-coral ) 0 18%, var( --jetmlm-turquoise ) 18% 68%, var( --jetmlm-midnight ) 68% );
}

.jetmlm-auth-form::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset-block-start: -90px;
	inset-inline-end: -100px;
	width: 240px;
	height: 240px;
	border: 1px solid rgba(18, 110, 120, 0.09);
	border-radius: 50%;
	box-shadow: 0 0 0 26px rgba(18, 110, 120, 0.025), 0 0 0 54px rgba(18, 110, 120, 0.018);
}

.jetmlm-auth-brand {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 12px;
}

.jetmlm-auth-brand h2 {
	margin: 1px 0 0;
	color: var( --jetmlm-midnight );
	font-family: var( --jetmlm-display-font );
	font-size: clamp( 23px, 5vw, 30px );
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: -0.035em;
}

.jetmlm-auth-eyebrow {
	display: block;
	color: var( --jetmlm-ocean );
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
}

.jetmlm-auth-mark {
	position: relative;
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	border-radius: 17px 17px 17px 5px;
	background: var( --jetmlm-midnight );
	box-shadow: 0 10px 24px rgba(16, 42, 67, 0.19);
}

.jetmlm-auth-mark::before,
.jetmlm-auth-mark::after,
.jetmlm-auth-mark i::before {
	content: "";
	position: absolute;
	width: 8px;
	height: 8px;
	border: 3px solid #fff;
	border-radius: 50%;
}

.jetmlm-auth-mark::before {
	inset: 11px auto auto 11px;
}

.jetmlm-auth-mark::after {
	inset: auto 10px 10px auto;
	border-color: var( --jetmlm-coral );
}

.jetmlm-auth-mark i::before {
	inset: 13px 10px auto auto;
	border-color: var( --jetmlm-turquoise );
}

.jetmlm-auth-mark i::after {
	content: "";
	position: absolute;
	inset: 19px 16px auto 18px;
	height: 2px;
	background: linear-gradient( 90deg, #fff, var( --jetmlm-turquoise ), var( --jetmlm-coral ) );
	transform: rotate( 43deg );
	transform-origin: center;
}

.jetmlm-auth-mark.is-complete {
	background: var( --jetmlm-ocean );
}

.jetmlm-auth-intro {
	max-width: 390px;
	margin: 0 0 24px;
	color: var( --jetmlm-ink-soft );
	font-size: 13px;
	line-height: 1.9;
}

.jetmlm-auth-form .jetmlm-steps-indicator {
	position: relative;
	gap: 6px;
	margin: 0 0 28px;
	padding: 0;
}

.jetmlm-auth-form .jetmlm-steps-indicator span {
	height: 5px;
	background: #e5eeee;
	border-radius: 999px;
	overflow: hidden;
}

.jetmlm-auth-form .jetmlm-steps-indicator span.is-active,
.jetmlm-auth-form .jetmlm-steps-indicator span.is-done {
	background: linear-gradient( 90deg, var( --jetmlm-primary ), var( --jetmlm-turquoise ) );
	box-shadow: 0 3px 9px rgba(25, 168, 157, 0.2);
}

.jetmlm-auth-form .jetmlm-name-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.jetmlm-auth-form .jetmlm-field {
	margin-bottom: 18px;
}

.jetmlm-auth-form label {
	margin-bottom: 7px;
	color: var( --jetmlm-midnight );
	font-size: 12px;
	font-weight: 750;
}

.jetmlm-auth-form input[type="text"],
.jetmlm-auth-form input[type="tel"] {
	min-height: 52px;
	padding: 12px 15px;
	color: var( --jetmlm-midnight );
	background: rgba(242, 247, 247, 0.78);
	border: 1px solid #d8e6e6;
	border-radius: 14px;
	font-size: 14px;
	font-weight: 550;
	caret-color: var( --jetmlm-coral );
	transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.jetmlm-auth-form input::placeholder {
	color: #9aabb2;
	font-family: var( --jetmlm-utility-font );
	font-size: 12px;
	direction: ltr;
	text-align: right;
}

.jetmlm-auth-form input:hover {
	border-color: #b8d3d3;
}

.jetmlm-auth-form input:focus {
	background: #fff;
	border-color: var( --jetmlm-primary );
	box-shadow: 0 0 0 4px color-mix( in srgb, var( --jetmlm-primary ) 12%, transparent );
	transform: translateY( -1px );
}

.jetmlm-auth-form .button {
	position: relative;
	gap: 10px;
	min-height: 52px;
	padding: 12px 18px;
	overflow: hidden;
	background: var( --jetmlm-midnight );
	border: 1px solid var( --jetmlm-midnight );
	border-radius: 14px;
	box-shadow: 0 12px 24px rgba(16, 42, 67, 0.16);
	font-size: 14px;
	font-weight: 750;
	letter-spacing: -0.01em;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.jetmlm-auth-form .button::after {
	content: "←";
	font-family: sans-serif;
	font-size: 19px;
	line-height: 1;
	transition: transform 0.18s ease;
}

.jetmlm-auth-form .button:hover {
	background: var( --jetmlm-primary );
	border-color: var( --jetmlm-primary );
	box-shadow: 0 15px 28px color-mix( in srgb, var( --jetmlm-primary ) 24%, transparent );
	filter: none;
	transform: translateY( -2px );
}

.jetmlm-auth-form .button:hover::after {
	transform: translateX( -4px );
}

.jetmlm-auth-form .button:focus-visible,
.jetmlm-admin .button:focus-visible,
.jetmlm-admin a:focus-visible {
	outline: 3px solid color-mix( in srgb, var( --jetmlm-coral ) 45%, transparent );
	outline-offset: 3px;
}

.jetmlm-auth-form .button:disabled {
	background: #dce6e8;
	border-color: #dce6e8;
	box-shadow: none;
	color: #83969e;
	opacity: 1;
	transform: none;
}

.jetmlm-auth-form .jetmlm-rahbar-status {
	padding: 11px 40px 11px 13px;
	border-radius: 13px;
	font-size: 12px;
}

.jetmlm-auth-form .jetmlm-rahbar-status.is-valid {
	background: #edf9f4;
	border-color: #bce6d4;
	box-shadow: none;
}

.jetmlm-auth-form .jetmlm-auth-message {
	margin: 16px 0 0;
	padding: 0;
	border-radius: 13px;
	font-size: 12px;
	line-height: 1.8;
}

.jetmlm-auth-form .jetmlm-auth-message:not(:empty) {
	padding: 11px 13px;
	background: var( --jetmlm-bg-soft );
	border: 1px solid var( --jetmlm-border );
}

.jetmlm-auth-form .jetmlm-auth-message.is-error {
	background: #fff3f1;
	border-color: #f0c8c1;
}

.jetmlm-auth-form .jetmlm-auth-message.is-success {
	background: #edf9f4;
	border-color: #bce6d4;
}

.jetmlm-auth-form .jetmlm-switch-link {
	margin-top: 24px;
	padding-top: 18px;
	border-color: #e6eeee;
	color: var( --jetmlm-ink-soft );
}

.jetmlm-auth-form .jetmlm-switch-link a {
	margin-inline-start: 3px;
	color: var( --jetmlm-primary );
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

/* پنل مدیریتی افزونه */
body[class*="jetmlm"] #wpcontent,
body[class*="jetmlm"] #wpbody-content {
	background: var( --jetmlm-mist );
}

.jetmlm-admin {
	position: relative;
	max-width: 1180px;
	margin: 24px 20px 40px 0;
	color: var( --jetmlm-ink );
	font-family: var( --jetmlm-font );
}

.jetmlm-admin::before {
	content: "";
	display: block;
	width: 74px;
	height: 5px;
	margin-bottom: 14px;
	background: linear-gradient( 90deg, var( --jetmlm-coral ) 0 28%, var( --jetmlm-turquoise ) 28% );
	border-radius: 999px;
}

.jetmlm-admin > h1 {
	margin: 0 !important;
	padding: 0 !important;
	color: var( --jetmlm-midnight );
	font-family: var( --jetmlm-display-font );
	font-size: clamp( 26px, 3vw, 36px );
	font-weight: 850;
	line-height: 1.4;
	letter-spacing: -0.035em;
}

.jetmlm-admin > h1::before {
	content: "JETMLM / CONTROL";
	display: block;
	margin-bottom: 4px;
	color: var( --jetmlm-ocean );
	font-family: var( --jetmlm-utility-font );
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.12em;
	direction: ltr;
	text-align: right;
}

.jetmlm-admin-lead,
.jetmlm-admin > p.description {
	max-width: 760px;
	margin: 7px 0 24px;
	color: var( --jetmlm-ink-soft ) !important;
	font-size: 13px;
	line-height: 1.9;
}

.jetmlm-admin h2 {
	margin: 28px 0 14px;
	color: var( --jetmlm-midnight );
	font-family: var( --jetmlm-display-font );
	font-size: 19px;
	font-weight: 800;
}

.jetmlm-admin .nav-tab-wrapper {
	display: flex;
	gap: 7px;
	margin: 26px 0 0 !important;
	padding: 6px !important;
	overflow-x: auto;
	background: #e7efef;
	border: 0 !important;
	border-radius: 15px;
	scrollbar-width: thin;
}

.jetmlm-admin .nav-tab {
	float: none;
	flex: 0 0 auto;
	margin: 0;
	padding: 9px 15px;
	color: #5e747e;
	background: transparent;
	border: 0;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 700;
	transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.jetmlm-admin .nav-tab:hover {
	color: var( --jetmlm-midnight );
	background: rgba(255, 255, 255, 0.64);
}

.jetmlm-admin .nav-tab-active {
	color: var( --jetmlm-midnight );
	background: #fff;
	box-shadow: 0 5px 14px rgba(16, 42, 67, 0.08);
}

.jetmlm-tab-content {
	max-width: 960px;
	margin-top: 18px;
}

.jetmlm-tab-content > form,
.jetmlm-admin #jetmlm-rank-form,
.jetmlm-admin > form:not([method="get"]),
.jetmlm-admin > .form-table {
	margin: 0 0 22px;
	padding: clamp( 18px, 3vw, 28px );
	background: var( --jetmlm-paper );
	border: 1px solid var( --jetmlm-border );
	border-radius: 20px;
	box-shadow: 0 10px 35px rgba(16, 42, 67, 0.055);
	box-sizing: border-box;
}

.jetmlm-admin .form-table {
	margin: 0;
	border-collapse: separate;
	border-spacing: 0;
}

.jetmlm-admin .form-table th,
.jetmlm-admin .form-table td {
	padding: 14px 10px;
	border-bottom: 1px solid #edf2f2;
	vertical-align: top;
}

.jetmlm-admin .form-table tr:last-child th,
.jetmlm-admin .form-table tr:last-child td {
	border-bottom: 0;
}

.jetmlm-admin .form-table th {
	width: 220px;
	color: var( --jetmlm-midnight );
	font-size: 12px;
	font-weight: 750;
}

.jetmlm-admin input[type="text"],
.jetmlm-admin input[type="url"],
.jetmlm-admin input[type="password"],
.jetmlm-admin input[type="number"],
.jetmlm-admin input[type="search"],
.jetmlm-admin select,
.jetmlm-admin textarea,
.jetmlm-team-dashboard input[type="text"],
.jetmlm-team-dashboard select {
	min-height: 42px;
	padding: 8px 12px;
	color: var( --jetmlm-midnight );
	background: #f7fafa;
	border: 1px solid #d5e3e3;
	border-radius: 10px;
	box-shadow: none;
	font-family: var( --jetmlm-font );
	font-size: 13px;
	transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.jetmlm-admin textarea {
	min-height: 86px;
	resize: vertical;
}

.jetmlm-admin input:focus,
.jetmlm-admin select:focus,
.jetmlm-admin textarea:focus,
.jetmlm-team-dashboard input:focus,
.jetmlm-team-dashboard select:focus {
	background: #fff;
	border-color: var( --jetmlm-primary );
	box-shadow: 0 0 0 3px color-mix( in srgb, var( --jetmlm-primary ) 11%, transparent );
	outline: 0;
}

.jetmlm-admin .description {
	margin-top: 6px;
	color: #7a8f98;
	font-size: 11px;
	line-height: 1.8;
}

.jetmlm-admin .button,
.jetmlm-team-dashboard .button {
	min-height: 38px;
	padding: 7px 15px;
	color: var( --jetmlm-midnight );
	background: #fff;
	border: 1px solid #cddddd;
	border-radius: 10px;
	box-shadow: none;
	font-family: var( --jetmlm-font );
	font-size: 12px;
	font-weight: 700;
	line-height: 1.7;
	transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.jetmlm-admin .button:hover,
.jetmlm-team-dashboard .button:hover {
	color: var( --jetmlm-ocean );
	background: #f2f8f8;
	border-color: #9bc2c2;
	transform: translateY( -1px );
}

.jetmlm-admin .button-primary,
.jetmlm-admin input.button-primary,
.jetmlm-team-dashboard .button-primary {
	color: #fff;
	background: var( --jetmlm-midnight );
	border-color: var( --jetmlm-midnight );
	box-shadow: 0 8px 18px rgba(16, 42, 67, 0.13);
}

.jetmlm-admin .button-primary:hover,
.jetmlm-team-dashboard .button-primary:hover {
	color: #fff;
	background: var( --jetmlm-primary );
	border-color: var( --jetmlm-primary );
}

.jetmlm-admin .submit {
	margin: 22px 0 0;
	padding: 0;
}

.jetmlm-admin .notice {
	margin: 18px 0;
	padding: 4px 14px;
	background: #fff;
	border: 1px solid var( --jetmlm-border );
	border-inline-start: 4px solid var( --jetmlm-turquoise );
	border-radius: 12px;
	box-shadow: none;
}

.jetmlm-admin .notice-warning {
	background: #fffaf1;
	border-inline-start-color: var( --jetmlm-coral );
}

.jetmlm-admin code {
	padding: 4px 9px;
	color: var( --jetmlm-ocean );
	background: #eaf5f4;
	border-radius: 7px;
	font-family: var( --jetmlm-utility-font );
	font-size: 12px;
}

.jetmlm-admin .widefat,
.jetmlm-team-table,
.jetmlm-my-network table {
	width: 100%;
	overflow: hidden;
	background: #fff;
	border: 1px solid var( --jetmlm-border );
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 17px;
	box-shadow: 0 8px 28px rgba(16, 42, 67, 0.045);
}

.jetmlm-admin .widefat thead th,
.jetmlm-team-table th,
.jetmlm-my-network th {
	padding: 13px 14px;
	color: #5c737d;
	background: #eef5f5;
	border: 0;
	border-bottom: 1px solid var( --jetmlm-border );
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.01em;
}

.jetmlm-admin .widefat td,
.jetmlm-team-table td,
.jetmlm-my-network td {
	padding: 13px 14px;
	border: 0;
	border-bottom: 1px solid #edf2f2;
	font-size: 12px;
	vertical-align: middle;
}

.jetmlm-admin .widefat tbody tr:last-child td,
.jetmlm-team-table tbody tr:last-child td,
.jetmlm-my-network tbody tr:last-child td {
	border-bottom: 0;
}

.jetmlm-admin .widefat tbody tr:hover td,
.jetmlm-team-table tbody tr:hover td {
	background: #f8fbfb;
}

.jetmlm-admin .jetmlm-view-toggle,
.jetmlm-team-dashboard .jetmlm-view-toggle {
	margin: 22px 0 14px;
	padding: 5px;
	background: #e5eeee;
	border-radius: 13px;
}

.jetmlm-view-toggle button {
	padding: 9px 17px;
	border-radius: 9px;
}

.jetmlm-view-toggle button.is-active {
	background: var( --jetmlm-midnight );
	box-shadow: 0 7px 16px rgba(16, 42, 67, 0.13);
}

.jetmlm-admin #jetmlm-team-search {
	width: min( 100%, 360px );
}

.jetmlm-bulk-toolbar {
	padding: 12px 14px;
	background: #eaf5f4;
	border-color: #c0dddd;
	border-radius: 12px;
}

.jetmlm-badge {
	padding: 5px 10px;
	border-radius: 8px;
	font-size: 10px;
	font-weight: 800;
}

.jetmlm-row-action-btn {
	min-height: 30px;
	padding: 5px 9px;
	background: #fff;
	border-radius: 8px;
	font-family: var( --jetmlm-font );
	font-size: 10px;
	font-weight: 700;
}

/* داشبورد فرانت و شبکه‌ی من */
.jetmlm-my-network,
.jetmlm-team-dashboard {
	max-width: 900px;
}

.jetmlm-my-network .jetmlm-card,
.jetmlm-team-dashboard .jetmlm-card {
	padding: 24px;
	border-color: var( --jetmlm-border );
	border-radius: 20px;
	box-shadow: 0 12px 36px rgba(16, 42, 67, 0.06);
}

.jetmlm-stat-row {
	gap: 12px;
}

.jetmlm-stat {
	position: relative;
	padding: 20px 14px;
	overflow: hidden;
	background: var( --jetmlm-midnight );
	border-radius: 17px;
	text-align: right;
}

.jetmlm-stat::after {
	content: "";
	position: absolute;
	inset: auto auto -30px -20px;
	width: 90px;
	height: 90px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 50%;
}

.jetmlm-stat .jetmlm-stat-value {
	color: #fff;
	font-family: var( --jetmlm-display-font );
	font-size: 28px;
}

.jetmlm-stat .jetmlm-stat-label {
	color: #bcd0d7;
}

.jetmlm-my-network .jetmlm-share-input {
	min-height: 44px;
	background: #eef6f5;
	border-color: #b9d9d7;
	border-radius: 11px;
	color: var( --jetmlm-ocean );
	font-family: var( --jetmlm-utility-font );
}

/* پنل فرانت راهبر: کدهای مستقل و رتبه‌دهی درون جدول تیم */
.jetmlm-team-dashboard {
	--jetmlm-leader-ink: #153b45;
	--jetmlm-leader-mint: #e9f7f4;
	--jetmlm-leader-blue: #eaf1fb;
	width: 100%;
	max-width: 1180px;
	color: var( --jetmlm-midnight );
	font-family: var( --jetmlm-font );
}

.jetmlm-leader-identity {
	display: grid;
	grid-template-columns: minmax( 220px, 1.1fr ) repeat( 2, minmax( 210px, 0.95fr ) );
	gap: 14px;
	padding: 16px;
	background: var( --jetmlm-leader-ink );
	border-radius: 24px;
	box-shadow: 0 20px 50px rgba( 17, 54, 64, 0.14 );
}

.jetmlm-leader-identity__intro {
	padding: 10px 8px;
	color: #fff;
}

.jetmlm-leader-identity__intro > span,
.jetmlm-team-heading__eyebrow {
	color: #65d8c2;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.04em;
}

.jetmlm-leader-identity__intro h2 {
	margin: 7px 0;
	color: #fff;
	font-family: var( --jetmlm-display-font );
	font-size: clamp( 20px, 2.2vw, 29px );
	line-height: 1.35;
}

.jetmlm-leader-identity__intro p {
	margin: 0;
	color: #c6d9dc;
	font-size: 12px;
	line-height: 1.9;
}

.jetmlm-code-card {
	display: flex;
	min-height: 142px;
	padding: 18px;
	flex-direction: column;
	justify-content: space-between;
	background: var( --jetmlm-leader-mint );
	border: 1px solid rgba( 255, 255, 255, 0.25 );
	border-radius: 18px;
}

.jetmlm-code-card.is-referral {
	background: var( --jetmlm-leader-blue );
}

.jetmlm-code-card__label {
	color: #537079;
	font-size: 11px;
	font-weight: 800;
}

.jetmlm-code-card code {
	display: block;
	margin: 8px 0;
	padding: 0;
	color: var( --jetmlm-leader-ink );
	background: transparent;
	font-family: var( --jetmlm-utility-font );
	font-size: clamp( 20px, 2vw, 28px );
	font-weight: 900;
	letter-spacing: 0.08em;
}

.jetmlm-code-card small {
	color: #607880;
	line-height: 1.8;
}

.jetmlm-code-card__actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

.jetmlm-code-card__actions button,
.jetmlm-code-card__actions a {
	min-height: 34px;
	padding: 7px 12px;
	color: var( --jetmlm-leader-ink );
	background: rgba( 255, 255, 255, 0.78 );
	border: 1px solid rgba( 21, 59, 69, 0.12 );
	border-radius: 9px;
	font-family: var( --jetmlm-font );
	font-size: 10px;
	font-weight: 800;
	line-height: 1.7;
	text-decoration: none;
	cursor: pointer;
}

.jetmlm-code-card__actions button:focus-visible,
.jetmlm-code-card__actions a:focus-visible,
.jetmlm-inline-rank-select:focus-visible,
.jetmlm-team-dashboard button:focus-visible,
.jetmlm-team-dashboard input:focus-visible,
.jetmlm-team-dashboard select:focus-visible {
	outline: 3px solid rgba( 31, 173, 154, 0.24 );
	outline-offset: 2px;
}

.jetmlm-team-heading {
	display: flex;
	margin: 30px 0 12px;
	justify-content: space-between;
	gap: 18px;
	align-items: end;
}

.jetmlm-team-heading h2 {
	margin: 4px 0 0;
	color: var( --jetmlm-leader-ink );
	font-family: var( --jetmlm-display-font );
	font-size: 25px;
}

.jetmlm-team-heading p {
	max-width: 420px;
	margin: 0;
	color: #677e86;
	font-size: 11px;
}

.jetmlm-team-notice {
	display: none;
	margin: 10px 0;
	padding: 10px 13px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 700;
}

.jetmlm-team-notice.is-visible {
	display: block;
}

.jetmlm-team-notice.is-success {
	color: #176a5c;
	background: #e5f7f1;
	border: 1px solid #bae6d9;
}

.jetmlm-team-notice.is-error {
	color: #a44242;
	background: #fff0ef;
	border: 1px solid #f1c7c3;
}

.jetmlm-team-dashboard .jetmlm-view-toggle {
	display: inline-flex;
	gap: 3px;
}

.jetmlm-team-dashboard .jetmlm-view-btn,
.jetmlm-team-dashboard .jetmlm-team-filter,
.jetmlm-team-dashboard .jetmlm-bulk-apply {
	border: 0;
	font-family: var( --jetmlm-font );
	font-weight: 800;
	cursor: pointer;
}

.jetmlm-team-dashboard .jetmlm-view-btn {
	color: #5f747c;
	background: transparent;
}

.jetmlm-team-dashboard .jetmlm-view-btn.is-active {
	color: #fff;
}

.jetmlm-team-filters {
	display: flex;
	margin: 0 0 14px;
	gap: 8px;
	align-items: center;
}

.jetmlm-team-filters input,
.jetmlm-team-filters select {
	min-height: 43px;
	padding: 8px 12px;
	background: #fff;
	border: 1px solid var( --jetmlm-border );
	border-radius: 11px;
	font-family: var( --jetmlm-font );
}

.jetmlm-team-filters input {
	width: min( 100%, 360px );
}

.jetmlm-team-dashboard .jetmlm-team-filter,
.jetmlm-team-dashboard .jetmlm-bulk-apply {
	min-height: 42px;
	padding: 8px 16px;
	color: #fff;
	background: var( --jetmlm-leader-ink );
	border-radius: 10px;
}

.jetmlm-team-dashboard .jetmlm-bulk-toolbar {
	display: none;
	margin: 0 0 12px;
	gap: 9px;
	align-items: center;
}

.jetmlm-team-table-wrap {
	overflow-x: auto;
	border-radius: 17px;
	box-shadow: 0 12px 34px rgba( 16, 42, 67, 0.06 );
}

.jetmlm-team-dashboard .jetmlm-team-table {
	min-width: 940px;
	box-shadow: none;
}

.jetmlm-team-dashboard .jetmlm-team-table th {
	white-space: nowrap;
}

.jetmlm-team-dashboard .jetmlm-team-table td {
	white-space: normal;
}

.jetmlm-rank-column {
	min-width: 158px;
}

.jetmlm-inline-rank-select {
	width: 100%;
	min-width: 145px;
	min-height: 36px;
	padding: 5px 8px;
	color: var( --jetmlm-leader-ink );
	background: #f8fbfb;
	border: 1px solid #d8e6e5;
	border-radius: 9px;
	font-family: var( --jetmlm-font );
	font-size: 11px;
	font-weight: 700;
}

.jetmlm-inline-rank-select:disabled {
	opacity: 0.6;
	cursor: wait;
}

.jetmlm-rank-muted {
	color: #8b9ba0;
	font-size: 10px;
}

.jetmlm-row-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.jetmlm-team-dashboard .jetmlm-check-column {
	width: 32px;
}

/* دفتر کار شبکه */
.jetmlm-network-office {
	width: 100%;
	max-width: 1180px;
	margin: 28px 0;
	color: var( --jetmlm-midnight );
	font-family: var( --jetmlm-font );
}

.jetmlm-office-header {
	display: flex;
	padding: 22px 24px;
	justify-content: space-between;
	gap: 20px;
	align-items: end;
	color: #fff;
	background:
		linear-gradient( 118deg, rgba( 27, 113, 117, 0.94 ), rgba( 16, 42, 67, 0.98 ) ),
		repeating-linear-gradient( 90deg, transparent 0 52px, rgba( 255, 255, 255, 0.035 ) 52px 53px );
	border-radius: 22px 22px 8px 22px;
	box-shadow: 0 18px 44px rgba( 16, 42, 67, 0.14 );
}

.jetmlm-office-header > div > span,
.jetmlm-office-panel__title > div > span {
	color: #76e0cc;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.05em;
}

.jetmlm-office-header h2 {
	margin: 5px 0 3px;
	color: #fff;
	font-family: var( --jetmlm-display-font );
	font-size: clamp( 23px, 3vw, 34px );
}

.jetmlm-office-header p {
	margin: 0;
	color: #c7d9dc;
	font-size: 11px;
}

.jetmlm-office-month-label {
	display: grid;
	min-width: 190px;
	gap: 6px;
	color: #c7d9dc;
	font-size: 10px;
	font-weight: 800;
}

.jetmlm-office-month-label select {
	min-height: 42px;
	padding: 7px 11px;
	color: #fff;
	background: rgba( 255, 255, 255, 0.1 );
	border: 1px solid rgba( 255, 255, 255, 0.2 );
	border-radius: 10px;
	font-family: var( --jetmlm-font );
}

.jetmlm-office-month-label option {
	color: var( --jetmlm-midnight );
	background: #fff;
}

.jetmlm-office-notice {
	display: none;
	margin: 12px 0;
	padding: 11px 14px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 800;
}

.jetmlm-office-notice.is-visible {
	display: block;
}

.jetmlm-office-notice.is-success {
	color: #176a5c;
	background: #e6f7f2;
	border: 1px solid #bde5da;
}

.jetmlm-office-notice.is-error {
	color: #a33f3f;
	background: #fff0ef;
	border: 1px solid #f0c8c4;
}

.jetmlm-office-stats {
	display: grid;
	grid-template-columns: repeat( 6, minmax( 110px, 1fr ) );
	margin: 14px 0;
	gap: 8px;
}

.jetmlm-office-stats > div {
	position: relative;
	min-height: 92px;
	padding: 15px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var( --jetmlm-border );
	border-radius: 14px;
}

.jetmlm-office-stats > div::after {
	content: "";
	position: absolute;
	inset: auto auto -22px -20px;
	width: 62px;
	height: 62px;
	background: #e8f6f3;
	border-radius: 50%;
}

.jetmlm-office-stats strong,
.jetmlm-office-stats span {
	position: relative;
	z-index: 1;
	display: block;
}

.jetmlm-office-stats strong {
	color: #174b55;
	font-family: var( --jetmlm-display-font );
	font-size: 24px;
}

.jetmlm-office-stats span {
	margin-top: 4px;
	color: #71858b;
	font-size: 10px;
	font-weight: 700;
}

.jetmlm-office-report-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin-bottom: 14px;
	gap: 14px;
}

.jetmlm-office-panel,
.jetmlm-office-directory {
	padding: 20px;
	background: #fff;
	border: 1px solid var( --jetmlm-border );
	border-radius: 18px;
	box-shadow: 0 10px 34px rgba( 16, 42, 67, 0.045 );
}

.jetmlm-office-panel__title {
	display: flex;
	margin-bottom: 14px;
	justify-content: space-between;
	gap: 12px;
	align-items: end;
}

.jetmlm-office-panel__title > div > span {
	color: var( --jetmlm-primary );
}

.jetmlm-office-panel__title h3 {
	margin: 3px 0 0;
	color: #173e48;
	font-family: var( --jetmlm-display-font );
	font-size: 18px;
}

.jetmlm-office-panel__title small {
	color: #819197;
	font-size: 9px;
}

.jetmlm-leader-tools {
	display: grid;
	gap: 4px;
	justify-items: end;
}

.jetmlm-leader-order {
	min-height: 28px;
	padding: 3px 7px;
	color: #557078;
	background: #f6faf9;
	border: 1px solid #dce8e6;
	border-radius: 7px;
	font-family: var( --jetmlm-font );
	font-size: 9px;
}

.jetmlm-branch-report,
.jetmlm-leaderboard {
	display: grid;
	gap: 6px;
}

.jetmlm-branch-row,
.jetmlm-leader-row {
	display: grid;
	width: 100%;
	min-height: 44px;
	padding: 8px 10px;
	color: #244e57;
	background: #f7faf9;
	border: 1px solid #e2ecea;
	border-radius: 10px;
	font-family: var( --jetmlm-font );
	text-align: right;
	cursor: pointer;
	transition: transform 160ms ease, border-color 160ms ease;
}

.jetmlm-branch-row {
	grid-template-columns: minmax( 100px, 1fr ) minmax( 220px, 1.4fr ) auto;
	align-items: center;
}

.jetmlm-branch-row:hover,
.jetmlm-leader-row:hover {
	border-color: #9ed5cb;
	transform: translateY( -1px );
}

.jetmlm-branch-row strong,
.jetmlm-leader-row strong {
	font-size: 11px;
}

.jetmlm-branch-row span {
	display: flex;
	gap: 6px;
	align-items: center;
}

.jetmlm-branch-row .jetmlm-branch-growth {
	justify-content: flex-start;
}

.jetmlm-branch-row b {
	font-family: var( --jetmlm-utility-font );
	font-size: 14px;
}

.jetmlm-branch-row small {
	padding: 3px 6px;
	color: #177363;
	background: #ddf3ed;
	border-radius: 6px;
	font-size: 9px;
}

.jetmlm-leader-row {
	grid-template-columns: 28px 1fr auto;
	align-items: center;
}

.jetmlm-leader-row i {
	display: grid;
	width: 24px;
	height: 24px;
	color: #fff;
	background: #1b7478;
	border-radius: 8px;
	font-family: var( --jetmlm-utility-font );
	font-size: 10px;
	font-style: normal;
	place-items: center;
}

.jetmlm-leader-row b {
	color: #177363;
	font-size: 10px;
}

.jetmlm-office-empty {
	margin: 10px 0;
	color: #819197;
	font-size: 11px;
}

.jetmlm-office-filters {
	display: grid;
	grid-template-columns: minmax( 190px, 1.3fr ) repeat( 4, minmax( 125px, 0.7fr ) ) auto;
	margin-bottom: 12px;
	gap: 7px;
}

.jetmlm-office-filters input,
.jetmlm-office-filters select,
.jetmlm-office-bulk-rank select {
	min-height: 40px;
	padding: 7px 10px;
	color: #294f58;
	background: #f8fbfb;
	border: 1px solid #dbe8e6;
	border-radius: 9px;
	font-family: var( --jetmlm-font );
	font-size: 10px;
}

.jetmlm-office-apply,
.jetmlm-office-bulk-apply,
.jetmlm-member-detail-button,
.jetmlm-office-pagination button {
	min-height: 38px;
	padding: 7px 12px;
	color: #fff;
	background: #174b55;
	border: 0;
	border-radius: 9px;
	font-family: var( --jetmlm-font );
	font-size: 10px;
	font-weight: 800;
	cursor: pointer;
}

.jetmlm-office-bulk-rank {
	display: flex;
	margin: 0 0 12px;
	padding: 10px;
	gap: 7px;
	align-items: center;
	background: #ebf6f4;
	border: 1px solid #cae5df;
	border-radius: 11px;
}

.jetmlm-office-bulk-rank strong {
	margin-left: auto;
	color: #2a5c63;
	font-size: 10px;
}

.jetmlm-office-bulk-apply:disabled,
.jetmlm-office-pagination button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.jetmlm-office-table-wrap {
	overflow-x: auto;
	border: 1px solid var( --jetmlm-border );
	border-radius: 13px;
}

.jetmlm-office-table {
	width: 100%;
	min-width: 1020px;
	border-collapse: collapse;
}

.jetmlm-office-table th {
	padding: 11px 9px;
	color: #637980;
	background: #eef5f4;
	border-bottom: 1px solid var( --jetmlm-border );
	font-size: 9px;
	font-weight: 900;
	white-space: nowrap;
}

.jetmlm-office-table td {
	padding: 10px 9px;
	border-bottom: 1px solid #edf2f1;
	color: #385c64;
	font-size: 10px;
	vertical-align: middle;
}

.jetmlm-office-table tbody tr:last-child td {
	border-bottom: 0;
}

.jetmlm-office-table td strong,
.jetmlm-office-table td small {
	display: block;
}

.jetmlm-office-table td strong {
	color: #173e48;
	font-size: 10px;
}

.jetmlm-office-table td small {
	margin-top: 3px;
	color: #89999e;
	font-size: 9px;
}

.jetmlm-office-rank-select {
	max-width: 145px;
	min-height: 34px;
	padding: 5px 7px;
	background: #fff;
	border: 1px solid #dce7e6;
	border-radius: 8px;
	font-family: var( --jetmlm-font );
	font-size: 9px;
}

.jetmlm-office-rank-label {
	color: #527078;
	font-size: 9px;
}

.jetmlm-member-detail-button {
	min-height: 32px;
	padding: 5px 9px;
	color: #17675e;
	background: #e5f4f0;
}

.jetmlm-office-pagination {
	display: flex;
	margin-top: 12px;
	justify-content: center;
	gap: 10px;
	align-items: center;
}

.jetmlm-office-pagination span {
	color: #687e85;
	font-size: 10px;
}

.jetmlm-member-insight[hidden] {
	display: none;
}

.jetmlm-member-insight {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: flex;
	justify-content: flex-start;
}

.jetmlm-member-insight__backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	background: rgba( 11, 35, 42, 0.52 );
	border: 0;
	cursor: pointer;
	backdrop-filter: blur( 3px );
}

.jetmlm-member-insight aside {
	position: relative;
	z-index: 1;
	width: min( 520px, 94vw );
	height: 100%;
	padding: 28px;
	overflow-y: auto;
	background: #f7faf9;
	box-shadow: 22px 0 60px rgba( 0, 0, 0, 0.2 );
}

.jetmlm-member-insight__close {
	position: absolute;
	top: 16px;
	left: 16px;
	width: 36px;
	height: 36px;
	color: #274f58;
	background: #e6efee;
	border: 0;
	border-radius: 10px;
	font-size: 24px;
	cursor: pointer;
}

.jetmlm-insight-profile > span {
	color: var( --jetmlm-primary );
	font-size: 10px;
	font-weight: 900;
}

.jetmlm-insight-profile h3 {
	margin: 5px 0;
	color: #173e48;
	font-family: var( --jetmlm-display-font );
	font-size: 25px;
}

.jetmlm-insight-profile p {
	color: #75888e;
	font-size: 10px;
}

.jetmlm-insight-stats {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	margin: 20px 0;
	gap: 8px;
}

.jetmlm-insight-stats > div {
	padding: 14px;
	background: #fff;
	border: 1px solid var( --jetmlm-border );
	border-radius: 12px;
}

.jetmlm-insight-stats strong,
.jetmlm-insight-stats span {
	display: block;
}

.jetmlm-insight-stats strong {
	color: #174b55;
	font-size: 22px;
}

.jetmlm-insight-stats span {
	color: #71858b;
	font-size: 9px;
}

.jetmlm-insight-meta {
	display: grid;
	grid-template-columns: auto 1fr;
	padding: 14px;
	gap: 8px 14px;
	background: #fff;
	border: 1px solid var( --jetmlm-border );
	border-radius: 12px;
	font-size: 10px;
}

.jetmlm-insight-meta dt {
	color: #85969b;
}

.jetmlm-insight-meta dd {
	margin: 0;
	color: #294f58;
	font-weight: 800;
}

.jetmlm-member-insight__content h4 {
	margin: 22px 0 12px;
	color: #294f58;
	font-size: 12px;
}

.jetmlm-insight-chart {
	display: grid;
	height: 180px;
	padding: 14px 10px 28px;
	grid-template-columns: repeat( 12, 1fr );
	gap: 5px;
	align-items: end;
	background: #fff;
	border: 1px solid var( --jetmlm-border );
	border-radius: 12px;
}

.jetmlm-insight-chart > div {
	display: flex;
	height: 100%;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
}

.jetmlm-insight-chart i {
	display: block;
	width: 70%;
	min-height: 4px;
	background: linear-gradient( 180deg, #48bea9, #1b7478 );
	border-radius: 5px 5px 2px 2px;
}

.jetmlm-insight-chart small {
	width: 34px;
	margin-top: 5px;
	overflow: hidden;
	color: #8a9a9f;
	font-size: 7px;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media ( max-width: 782px ) {
	.jetmlm-admin {
		margin: 18px 10px 30px;
	}

	.jetmlm-admin .form-table,
	.jetmlm-admin .form-table tbody,
	.jetmlm-admin .form-table tr,
	.jetmlm-admin .form-table th,
	.jetmlm-admin .form-table td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.jetmlm-admin .form-table th {
		padding-bottom: 5px;
		border-bottom: 0;
	}

	.jetmlm-admin .form-table td {
		padding-top: 5px;
	}

	.jetmlm-admin .regular-text,
	.jetmlm-admin .large-text {
		width: 100%;
		max-width: none;
	}

	.jetmlm-admin .widefat,
	.jetmlm-my-network table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}

	.jetmlm-leader-identity {
		grid-template-columns: 1fr 1fr;
	}

	.jetmlm-leader-identity__intro {
		grid-column: 1 / -1;
	}

	.jetmlm-team-heading {
		align-items: start;
		flex-direction: column;
	}

	.jetmlm-office-stats {
		grid-template-columns: repeat( 3, 1fr );
	}

	.jetmlm-office-report-grid {
		grid-template-columns: 1fr;
	}

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

	.jetmlm-office-filters .jetmlm-office-search {
		grid-column: 1 / -1;
	}
}

@media ( max-width: 520px ) {
	.jetmlm-auth-form {
		width: calc( 100% - 20px );
		margin: 14px auto;
		padding: 25px 18px;
		border-radius: 22px;
	}

	.jetmlm-auth-form .jetmlm-name-row {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.jetmlm-auth-mark {
		flex-basis: 46px;
		width: 46px;
		height: 46px;
		border-radius: 14px 14px 14px 4px;
	}

	.jetmlm-auth-brand h2 {
		font-size: 23px;
	}

	.jetmlm-auth-intro {
		font-size: 12px;
	}

	.jetmlm-leader-identity {
		grid-template-columns: 1fr;
		padding: 12px;
		border-radius: 20px;
	}

	.jetmlm-leader-identity__intro {
		grid-column: auto;
	}

	.jetmlm-code-card {
		min-height: 126px;
	}

	.jetmlm-team-filters {
		align-items: stretch;
		flex-direction: column;
	}

	.jetmlm-team-filters input,
	.jetmlm-team-filters select,
	.jetmlm-team-dashboard .jetmlm-team-filter {
		width: 100%;
	}

	.jetmlm-office-header {
		padding: 20px;
		align-items: stretch;
		flex-direction: column;
	}

	.jetmlm-office-month-label {
		min-width: 0;
	}

	.jetmlm-office-stats {
		grid-template-columns: 1fr 1fr;
	}

	.jetmlm-office-panel,
	.jetmlm-office-directory {
		padding: 15px;
	}

	.jetmlm-office-filters {
		grid-template-columns: 1fr;
	}

	.jetmlm-office-filters .jetmlm-office-search {
		grid-column: auto;
	}

	.jetmlm-office-bulk-rank {
		align-items: stretch;
		flex-direction: column;
	}

	.jetmlm-office-bulk-rank strong {
		margin: 0;
	}

	.jetmlm-branch-row {
		grid-template-columns: 1fr auto;
	}

	.jetmlm-branch-row .jetmlm-branch-growth {
		grid-column: 1 / -1;
		flex-wrap: wrap;
	}

	.jetmlm-insight-stats {
		grid-template-columns: 1fr 1fr;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.jetmlm-auth-form *,
	.jetmlm-admin *,
	.jetmlm-team-dashboard * {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* Mobile operations layer — a shared, one-hand-friendly system for every JetMLM screen. */
:root {
	--jetmlm-primary: #087f79;
	--jetmlm-primary-hover: #066761;
	--jetmlm-midnight: #123b45;
	--jetmlm-ocean: #0d6f70;
	--jetmlm-turquoise: #12a594;
	--jetmlm-warning: #d99a2b;
	--jetmlm-danger: #b64343;
	--jetmlm-success: #167a5b;
	--jetmlm-mist: #f4f8f7;
	--jetmlm-paper: #fff;
	--jetmlm-ink: #173f48;
	--jetmlm-ink-soft: #60777d;
	--jetmlm-border: #d7e5e2;
	--jetmlm-focus: #68c9bc;
	--jetmlm-touch: 48px;
	--jetmlm-shadow: 0 18px 48px rgba( 18, 59, 69, 0.11 );
}

.jetmlm-auth-form,
.jetmlm-admin,
.jetmlm-team-dashboard,
.jetmlm-network-office,
.jetmlm-my-network {
	color: var( --jetmlm-ink );
	font-family: var( --jetmlm-font );
	-webkit-tap-highlight-color: transparent;
}

.jetmlm-auth-form *,
.jetmlm-admin *,
.jetmlm-team-dashboard *,
.jetmlm-network-office *,
.jetmlm-my-network * {
	box-sizing: border-box;
}

.jetmlm-auth-form button,
.jetmlm-auth-form .button,
.jetmlm-admin button,
.jetmlm-admin .button,
.jetmlm-team-dashboard button,
.jetmlm-team-dashboard .button,
.jetmlm-network-office button {
	min-height: 44px;
	touch-action: manipulation;
}

.jetmlm-auth-form :is( button, input, select, textarea ):focus-visible,
.jetmlm-admin :is( button, a, input, select, textarea ):focus-visible,
.jetmlm-team-dashboard :is( button, a, input, select, textarea ):focus-visible,
.jetmlm-network-office :is( button, a, input, select, textarea ):focus-visible {
	outline: 3px solid color-mix( in srgb, var( --jetmlm-focus ) 55%, transparent );
	outline-offset: 2px;
	box-shadow: 0 0 0 1px var( --jetmlm-primary );
}

.jetmlm-auth-form .button,
.jetmlm-admin .button-primary,
.jetmlm-team-dashboard .button-primary,
.jetmlm-team-dashboard .jetmlm-team-filter,
.jetmlm-team-dashboard .jetmlm-bulk-apply,
.jetmlm-office-apply,
.jetmlm-office-bulk-apply,
.jetmlm-office-pagination button {
	color: #fff;
	background: var( --jetmlm-primary );
	border-color: var( --jetmlm-primary );
	box-shadow: none;
}

.jetmlm-row-action-btn {
	min-height: 42px;
	padding: 9px 13px;
	color: var( --jetmlm-midnight );
	background: #edf5f3;
	border: 1px solid #d3e5e1;
	border-radius: 11px;
	font-family: var( --jetmlm-font );
	font-weight: 800;
	cursor: pointer;
}

.jetmlm-row-action-btn.is-approve {
	color: #fff;
	background: var( --jetmlm-success );
	border-color: var( --jetmlm-success );
}

.jetmlm-row-action-btn.is-pending {
	color: #77520d;
	background: #fff7e5;
	border-color: #ecd6a7;
}

.jetmlm-row-action-btn.is-danger {
	color: var( --jetmlm-danger );
	background: #fff2f1;
	border-color: #ebc9c6;
}

.jetmlm-row-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.jetmlm-team-table tbody tr,
.jetmlm-office-table tbody tr,
.jetmlm-mobile-card-table tbody tr {
	transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.jetmlm-team-table tbody tr.is-selected td,
.jetmlm-office-table tbody tr.is-selected td,
.jetmlm-mobile-card-table tbody tr.is-selected td {
	background: #effaf7;
}

.jetmlm-inline-rank-select,
.jetmlm-office-rank-select {
	min-height: 42px;
	font-size: 12px;
}

.jetmlm-office-table th,
.jetmlm-office-table td {
	font-size: 11px;
}

.jetmlm-office-table td strong {
	font-size: 12px;
}

.jetmlm-office-table td small,
.jetmlm-office-rank-label {
	font-size: 10px;
}

@media ( hover: hover ) {
	.jetmlm-row-action-btn:hover,
	.jetmlm-member-detail-button:hover {
		filter: brightness( 0.97 );
		transform: translateY( -1px );
	}

	.jetmlm-auth-form .button:hover,
	.jetmlm-admin .button-primary:hover,
	.jetmlm-team-dashboard .button-primary:hover,
	.jetmlm-office-apply:hover,
	.jetmlm-office-bulk-apply:hover {
		background: var( --jetmlm-primary-hover );
		border-color: var( --jetmlm-primary-hover );
	}
}

@media ( max-width: 782px ) {
	html:has( .jetmlm-member-insight:not([hidden]) ) {
		overflow: hidden;
	}

	.jetmlm-auth-form,
	.jetmlm-team-dashboard,
	.jetmlm-network-office,
	.jetmlm-my-network {
		width: min( 100% - 20px, 720px );
		margin-right: auto;
		margin-left: auto;
	}

	.jetmlm-auth-form {
		padding: 24px 20px;
		border-radius: 22px;
		box-shadow: 0 14px 40px rgba( 18, 59, 69, 0.13 );
	}

	.jetmlm-auth-form input[type="text"],
	.jetmlm-auth-form input[type="tel"],
	.jetmlm-auth-form input[type="number"],
	.jetmlm-auth-form select,
	.jetmlm-auth-form .button {
		width: 100%;
		min-height: 52px;
		font-size: 16px;
	}

	.jetmlm-auth-form label,
	.jetmlm-auth-form .jetmlm-intro,
	.jetmlm-auth-intro {
		font-size: 13px;
		line-height: 1.8;
	}

	.jetmlm-admin {
		margin: 14px 8px 34px;
	}

	.jetmlm-admin > h1 {
		font-size: 24px;
		line-height: 1.45;
	}

	.jetmlm-admin .nav-tab-wrapper {
		display: flex;
		padding: 5px;
		overflow-x: auto;
		gap: 4px;
		scroll-snap-type: x proximity;
		white-space: nowrap;
		-webkit-overflow-scrolling: touch;
	}

	.jetmlm-admin .nav-tab {
		min-height: 44px;
		flex: 0 0 auto;
		scroll-snap-align: start;
	}

	.jetmlm-admin > form:not([method="get"]),
	.jetmlm-admin #jetmlm-rank-form,
	.jetmlm-admin > .form-table,
	.jetmlm-tab-content {
		padding: 18px 15px;
		border-radius: 17px;
	}

	.jetmlm-admin .form-table th {
		padding: 14px 0 5px;
		font-size: 13px;
	}

	.jetmlm-admin .form-table td {
		padding: 5px 0 14px;
	}

	.jetmlm-admin input[type="text"],
	.jetmlm-admin input[type="url"],
	.jetmlm-admin input[type="password"],
	.jetmlm-admin input[type="number"],
	.jetmlm-admin input[type="search"],
	.jetmlm-admin select,
	.jetmlm-admin textarea,
	.jetmlm-team-dashboard input[type="text"],
	.jetmlm-team-dashboard input[type="search"],
	.jetmlm-team-dashboard select {
		width: 100%;
		max-width: none;
		min-height: var( --jetmlm-touch );
		font-size: 16px;
	}

	.jetmlm-admin .submit .button,
	.jetmlm-admin > p > .button,
	.jetmlm-admin #jetmlm-team-filter {
		width: 100%;
		min-height: var( --jetmlm-touch );
	}

	.jetmlm-admin .widefat:not( .jetmlm-mobile-card-table ) {
		width: 100%;
		max-width: 100%;
		overflow-x: auto;
		white-space: nowrap;
		-webkit-overflow-scrolling: touch;
	}

	.jetmlm-admin .widefat:not( .jetmlm-mobile-card-table ) th,
	.jetmlm-admin .widefat:not( .jetmlm-mobile-card-table ) td {
		min-width: 130px;
		padding: 13px 11px;
	}

	.jetmlm-team-dashboard {
		padding-bottom: 16px;
	}

	.jetmlm-team-dashboard .jetmlm-card,
	.jetmlm-office-panel,
	.jetmlm-office-directory {
		padding: 16px;
		border-radius: 18px;
	}

	.jetmlm-team-heading {
		gap: 12px;
	}

	.jetmlm-team-heading h2,
	.jetmlm-office-header h2 {
		font-size: 22px;
		line-height: 1.45;
	}

	.jetmlm-team-dashboard .jetmlm-view-toggle {
		display: grid;
		width: 100%;
		grid-template-columns: 1fr 1fr;
		padding: 4px;
	}

	.jetmlm-team-dashboard .jetmlm-view-btn {
		width: 100%;
		min-height: var( --jetmlm-touch );
	}

	.jetmlm-team-filters,
	.jetmlm-office-filters {
		display: grid;
		grid-template-columns: 1fr 1fr;
		align-items: end;
		gap: 9px;
	}

	.jetmlm-team-filters input,
	.jetmlm-team-filters select,
	.jetmlm-team-dashboard .jetmlm-team-filter,
	.jetmlm-office-filters input,
	.jetmlm-office-filters select,
	.jetmlm-office-apply {
		width: 100%;
		min-height: var( --jetmlm-touch );
		font-size: 16px;
	}

	.jetmlm-team-filters input,
	.jetmlm-office-filters .jetmlm-office-search {
		grid-column: 1 / -1;
	}

	.jetmlm-leader-identity {
		grid-template-columns: 1fr 1fr;
		padding: 16px;
		gap: 10px;
	}

	.jetmlm-leader-identity__intro {
		grid-column: 1 / -1;
	}

	.jetmlm-code-card {
		min-height: 128px;
	}

	.jetmlm-code-card button,
	.jetmlm-copy-code {
		min-height: 44px;
	}

	.jetmlm-office-header {
		padding: 20px 17px;
		gap: 15px;
	}

	.jetmlm-office-stats {
		grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
		gap: 8px;
	}

	.jetmlm-office-stats > div {
		min-width: 0;
		padding: 13px 9px;
	}

	.jetmlm-office-stats strong {
		font-size: 22px;
	}

	.jetmlm-office-table-wrap,
	.jetmlm-team-table-wrap {
		overflow: visible;
		border: 0;
		border-radius: 0;
	}

	.jetmlm-office-table,
	.jetmlm-team-dashboard .jetmlm-team-table,
	.jetmlm-mobile-card-table {
		display: block;
		width: 100%;
		min-width: 0;
		background: transparent;
		border: 0;
		box-shadow: none;
	}

	.jetmlm-office-table thead,
	.jetmlm-team-dashboard .jetmlm-team-table thead,
	.jetmlm-mobile-card-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		overflow: hidden;
		clip: rect( 0 0 0 0 );
		white-space: nowrap;
		border: 0;
	}

	.jetmlm-office-table tbody,
	.jetmlm-team-dashboard .jetmlm-team-table tbody,
	.jetmlm-mobile-card-table tbody {
		display: grid;
		gap: 12px;
	}

	.jetmlm-office-table tbody tr,
	.jetmlm-team-dashboard .jetmlm-team-table tbody tr,
	.jetmlm-mobile-card-table tbody tr {
		position: relative;
		display: grid;
		grid-template-columns: 1fr 1fr;
		padding: 16px;
		gap: 0 12px;
		background: #fff;
		border: 1px solid var( --jetmlm-border );
		border-radius: 17px;
		box-shadow: 0 8px 24px rgba( 18, 59, 69, 0.07 );
	}

	.jetmlm-office-table tbody tr.is-selected,
	.jetmlm-team-dashboard .jetmlm-team-table tbody tr.is-selected,
	.jetmlm-mobile-card-table tbody tr.is-selected {
		background: #f2fbf8;
		border-color: #79cbbd;
		box-shadow: 0 0 0 2px rgba( 18, 165, 148, 0.13 );
	}

	.jetmlm-office-table tbody td,
	.jetmlm-team-dashboard .jetmlm-team-table tbody td,
	.jetmlm-mobile-card-table tbody td {
		display: flex;
		min-width: 0;
		padding: 11px 0;
		flex-direction: column;
		justify-content: flex-start;
		gap: 5px;
		color: var( --jetmlm-ink );
		background: transparent !important;
		border: 0;
		border-bottom: 1px solid #edf3f1;
		font-size: 13px;
		white-space: normal;
	}

	.jetmlm-office-table tbody td[data-label]::before,
	.jetmlm-team-dashboard .jetmlm-team-table tbody td[data-label]::before,
	.jetmlm-mobile-card-table tbody td[data-label]::before {
		content: attr( data-label );
		color: #71868b;
		font-size: 10px;
		font-weight: 800;
		line-height: 1.4;
	}

	.jetmlm-office-table tbody td[colspan],
	.jetmlm-team-dashboard .jetmlm-team-table tbody td[colspan],
	.jetmlm-mobile-card-table tbody td[colspan] {
		grid-column: 1 / -1;
		min-height: 76px;
		justify-content: center;
		align-items: center;
		border-bottom: 0;
		text-align: center;
	}

	.jetmlm-office-check-cell,
	.jetmlm-team-check-cell {
		position: absolute;
		z-index: 2;
		top: 13px;
		left: 13px;
		width: 38px;
		height: 38px;
		padding: 0 !important;
		justify-content: center !important;
		align-items: center;
		background: #edf5f3 !important;
		border: 0 !important;
		border-radius: 11px;
	}

	.jetmlm-office-check-cell input,
	.jetmlm-team-check-cell input {
		width: 22px;
		height: 22px;
		margin: 0;
		accent-color: var( --jetmlm-primary );
	}

	.jetmlm-office-table tbody td:nth-child( 2 ),
	.jetmlm-team-dashboard .jetmlm-team-table tbody td:nth-child( 2 ),
	.jetmlm-mobile-card-table tbody td:nth-child( 2 ) {
		grid-column: 1 / -1;
		min-height: 54px;
		padding-left: 48px;
	}

	.jetmlm-office-table tbody td:nth-last-child( 1 ),
	.jetmlm-team-dashboard .jetmlm-team-table tbody td:nth-last-child( 1 ),
	.jetmlm-mobile-card-table tbody td:nth-last-child( 1 ) {
		grid-column: 1 / -1;
		border-bottom: 0;
	}

	.jetmlm-inline-rank-select,
	.jetmlm-office-rank-select,
	.jetmlm-member-detail-button {
		width: 100%;
		max-width: none;
		min-height: var( --jetmlm-touch );
		font-size: 13px;
	}

	.jetmlm-row-actions {
		display: grid;
		grid-template-columns: repeat( auto-fit, minmax( 92px, 1fr ) );
		width: 100%;
	}

	.jetmlm-row-action-btn {
		width: 100%;
		min-height: var( --jetmlm-touch );
		font-size: 12px;
	}

	.jetmlm-office-bulk-rank {
		display: none;
	}

	.jetmlm-office-bulk-rank.has-selection,
	.jetmlm-bulk-toolbar.has-selection {
		position: sticky;
		z-index: 999;
		bottom: max( 10px, env( safe-area-inset-bottom ) );
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		padding: 12px;
		gap: 8px;
		background: rgba( 255, 255, 255, 0.96 );
		border: 1px solid #bcded7;
		border-radius: 17px;
		box-shadow: 0 16px 42px rgba( 18, 59, 69, 0.22 );
		backdrop-filter: blur( 14px );
	}

	.jetmlm-office-bulk-rank.has-selection strong,
	.jetmlm-bulk-toolbar.has-selection strong {
		grid-column: 1 / -1;
		margin: 0;
		color: var( --jetmlm-midnight );
		font-size: 12px;
	}

	.jetmlm-office-bulk-rank.has-selection select,
	.jetmlm-bulk-toolbar.has-selection select,
	.jetmlm-office-bulk-rank.has-selection button,
	.jetmlm-bulk-toolbar.has-selection button {
		width: 100%;
		min-height: var( --jetmlm-touch );
		font-size: 13px;
	}

	.jetmlm-office-bulk-rank.has-selection button,
	.jetmlm-bulk-toolbar.has-selection button {
		grid-column: 1 / -1;
	}

	.jetmlm-office-pagination {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		gap: 8px;
	}

	.jetmlm-office-pagination button {
		width: 100%;
		min-height: var( --jetmlm-touch );
	}

	.jetmlm-member-insight {
		align-items: flex-end;
	}

	.jetmlm-member-insight aside {
		width: 100%;
		height: auto;
		max-height: min( 90vh, 760px );
		padding: 24px 18px max( 24px, env( safe-area-inset-bottom ) );
		border-radius: 25px 25px 0 0;
		box-shadow: 0 -24px 60px rgba( 0, 0, 0, 0.23 );
	}

	.jetmlm-member-insight__close {
		width: 44px;
		height: 44px;
	}

	.jetmlm-insight-chart {
		overflow-x: auto;
	}
}

@media ( max-width: 520px ) {
	.jetmlm-auth-form,
	.jetmlm-team-dashboard,
	.jetmlm-network-office,
	.jetmlm-my-network {
		width: calc( 100% - 12px );
	}

	.jetmlm-auth-form {
		margin-top: 6px;
		padding: 22px 16px;
		border-radius: 20px;
	}

	.jetmlm-auth-brand {
		align-items: flex-start;
	}

	.jetmlm-auth-brand h2 {
		font-size: 22px;
	}

	.jetmlm-leader-identity,
	.jetmlm-team-filters,
	.jetmlm-office-filters {
		grid-template-columns: 1fr;
	}

	.jetmlm-leader-identity__intro,
	.jetmlm-team-filters input,
	.jetmlm-office-filters .jetmlm-office-search {
		grid-column: auto;
	}

	.jetmlm-office-stats {
		grid-template-columns: 1fr 1fr;
	}

	.jetmlm-office-table tbody tr,
	.jetmlm-team-dashboard .jetmlm-team-table tbody tr,
	.jetmlm-mobile-card-table tbody tr {
		padding: 14px;
		gap: 0 9px;
	}

	.jetmlm-office-table tbody td,
	.jetmlm-team-dashboard .jetmlm-team-table tbody td,
	.jetmlm-mobile-card-table tbody td {
		font-size: 12px;
	}

	.jetmlm-office-bulk-rank.has-selection,
	.jetmlm-bulk-toolbar.has-selection {
		right: 6px;
		left: 6px;
	}

	.jetmlm-insight-stats {
		grid-template-columns: 1fr 1fr;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.jetmlm-network-office *,
	.jetmlm-my-network * {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* 1.5.2 precision pass: compact mobile cards and theme-proof controls. */
.jetmlm-network-office {
	--jetmlm-card-border: #dde8e5;
	--jetmlm-card-muted: #6c8186;
	--jetmlm-card-surface: #fff;
}

.jetmlm-network-office .jetmlm-office-table-wrap,
.jetmlm-team-dashboard .jetmlm-team-table-wrap {
	background: transparent;
}

.jetmlm-network-office .jetmlm-member-detail-button {
	min-height: 40px;
	padding: 8px 13px;
	color: #23545c !important;
	background: #eef5f3 !important;
	border: 1px solid #d5e4e0 !important;
	border-radius: 10px;
	box-shadow: none !important;
	font-size: 11px;
	line-height: 1.5;
	text-shadow: none !important;
}

.jetmlm-network-office .jetmlm-office-pagination button {
	min-height: 42px;
	color: #28545c !important;
	background: #fff !important;
	border: 1px solid #d8e4e1 !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

.jetmlm-network-office .jetmlm-office-pagination button:disabled {
	color: #9aa9ac !important;
	background: #f3f6f5 !important;
	border-color: #e7eceb !important;
	opacity: 1;
}

.jetmlm-network-office .jetmlm-office-apply,
.jetmlm-network-office .jetmlm-office-bulk-apply {
	color: #fff !important;
	background: var( --jetmlm-primary ) !important;
	border: 1px solid var( --jetmlm-primary ) !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

.jetmlm-network-office .jetmlm-office-rank-select,
.jetmlm-team-dashboard .jetmlm-inline-rank-select {
	height: 42px;
	min-height: 42px;
	padding: 7px 10px;
	color: #193f47 !important;
	background-color: #fff !important;
	border: 1px solid #d4e1de !important;
	border-radius: 10px;
	box-shadow: none !important;
	font-size: 12px;
	line-height: 1.5;
}

@media ( max-width: 782px ) {
	.jetmlm-team-dashboard .jetmlm-card,
	.jetmlm-office-panel,
	.jetmlm-office-directory {
		padding: 14px;
		background: #fff;
		border: 1px solid #e0e9e7;
		border-radius: 16px;
		box-shadow: 0 8px 24px rgba( 18, 59, 69, 0.055 );
	}

	.jetmlm-office-table tbody tr,
	.jetmlm-team-dashboard .jetmlm-team-table tbody tr,
	.jetmlm-mobile-card-table tbody tr {
		padding: 14px;
		background: var( --jetmlm-card-surface, #fff );
		border: 1px solid var( --jetmlm-card-border, #dde8e5 );
		border-radius: 14px;
		box-shadow: 0 4px 14px rgba( 18, 59, 69, 0.045 );
	}

	.jetmlm-office-table tbody tr.is-selected,
	.jetmlm-team-dashboard .jetmlm-team-table tbody tr.is-selected,
	.jetmlm-mobile-card-table tbody tr.is-selected {
		background: #fff;
		border-color: #9bcfc5;
		box-shadow: inset -3px 0 0 var( --jetmlm-primary );
	}

	.jetmlm-team-table tbody tr.is-selected td,
	.jetmlm-office-table tbody tr.is-selected td,
	.jetmlm-mobile-card-table tbody tr.is-selected td {
		background: transparent !important;
	}

	.jetmlm-office-check-cell,
	.jetmlm-team-check-cell {
		top: 12px;
		left: 12px;
		width: 34px;
		height: 34px;
		background: transparent !important;
		border-radius: 8px;
	}

	.jetmlm-office-check-cell input,
	.jetmlm-team-check-cell input {
		width: 19px;
		height: 19px;
		accent-color: var( --jetmlm-primary );
	}

	.jetmlm-office-table tbody td,
	.jetmlm-team-dashboard .jetmlm-team-table tbody td,
	.jetmlm-mobile-card-table tbody td {
		padding: 9px 0;
		color: #244b53;
		border-bottom-color: #edf2f1;
		font-size: 12px;
		line-height: 1.65;
	}

	.jetmlm-office-table tbody td[data-label]::before,
	.jetmlm-team-dashboard .jetmlm-team-table tbody td[data-label]::before,
	.jetmlm-mobile-card-table tbody td[data-label]::before {
		color: #72858a;
		font-size: 10px;
		font-weight: 700;
	}

	.jetmlm-office-table tbody td strong,
	.jetmlm-team-dashboard .jetmlm-team-table tbody td strong {
		color: #123b45;
		font-size: 12px;
		line-height: 1.65;
	}

	.jetmlm-office-table tbody td small,
	.jetmlm-team-dashboard .jetmlm-team-table tbody td small {
		margin-top: 0;
		color: #819296;
		font-size: 10px;
	}

	.jetmlm-office-bulk-rank.has-selection,
	.jetmlm-bulk-toolbar.has-selection {
		padding: 10px;
		border-radius: 14px;
		box-shadow: 0 12px 30px rgba( 18, 59, 69, 0.16 );
	}

	.jetmlm-office-bulk-rank.has-selection select,
	.jetmlm-bulk-toolbar.has-selection select,
	.jetmlm-office-bulk-rank.has-selection button,
	.jetmlm-bulk-toolbar.has-selection button {
		min-height: 44px;
	}
}

@media ( max-width: 600px ) {
	.jetmlm-office-table tbody tr,
	.jetmlm-team-dashboard .jetmlm-team-table tbody tr,
	.jetmlm-mobile-card-table tbody tr {
		display: grid;
		grid-template-columns: minmax( 0, 1fr );
		padding: 12px 14px;
		gap: 0;
	}

	.jetmlm-office-table tbody td,
	.jetmlm-team-dashboard .jetmlm-team-table tbody td,
	.jetmlm-mobile-card-table tbody td {
		display: flex;
		grid-column: 1 / -1;
		min-height: 39px;
		padding: 7px 0;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		gap: 14px;
	}

	.jetmlm-office-table tbody td[data-label]::before,
	.jetmlm-team-dashboard .jetmlm-team-table tbody td[data-label]::before,
	.jetmlm-mobile-card-table tbody td[data-label]::before {
		flex: 0 0 92px;
	}

	.jetmlm-office-table tbody td:nth-child( 2 ),
	.jetmlm-team-dashboard .jetmlm-team-table tbody td:nth-child( 2 ),
	.jetmlm-mobile-card-table tbody td:nth-child( 2 ) {
		display: grid;
		grid-template-columns: 1fr;
		min-height: 64px;
		padding: 5px 0 10px 44px;
		gap: 1px;
		align-content: center;
	}

	.jetmlm-office-table tbody td:nth-child( 2 )::before,
	.jetmlm-team-dashboard .jetmlm-team-table tbody td:nth-child( 2 )::before,
	.jetmlm-mobile-card-table tbody td:nth-child( 2 )::before {
		margin-bottom: 1px;
	}

	.jetmlm-office-table tbody td:nth-last-child( 1 ),
	.jetmlm-team-dashboard .jetmlm-team-table tbody td:nth-last-child( 1 ),
	.jetmlm-mobile-card-table tbody td:nth-last-child( 1 ) {
		display: flex;
		padding-top: 9px;
	}

	.jetmlm-network-office .jetmlm-office-rank-select,
	.jetmlm-team-dashboard .jetmlm-inline-rank-select {
		width: min( 58%, 174px );
		max-width: 174px;
		flex: 0 1 174px;
	}

	.jetmlm-network-office .jetmlm-member-detail-button {
		width: min( 58%, 174px );
		max-width: 174px;
		min-height: 42px;
	}

	.jetmlm-row-actions {
		grid-template-columns: repeat( auto-fit, minmax( 82px, 1fr ) );
		gap: 6px;
	}

	.jetmlm-row-action-btn {
		min-height: 44px;
		padding: 7px 9px;
		font-size: 11px;
	}

	.jetmlm-office-pagination {
		margin-top: 10px;
	}

	.jetmlm-office-pagination span {
		font-size: 10px;
		white-space: nowrap;
	}
}

@media ( max-width: 380px ) {
	.jetmlm-team-dashboard,
	.jetmlm-network-office,
	.jetmlm-my-network {
		width: calc( 100% - 8px );
	}

	.jetmlm-team-dashboard .jetmlm-card,
	.jetmlm-office-panel,
	.jetmlm-office-directory {
		padding: 11px;
	}

	.jetmlm-office-table tbody tr,
	.jetmlm-team-dashboard .jetmlm-team-table tbody tr,
	.jetmlm-mobile-card-table tbody tr {
		padding: 11px 12px;
	}

	.jetmlm-office-table tbody td[data-label]::before,
	.jetmlm-team-dashboard .jetmlm-team-table tbody td[data-label]::before,
	.jetmlm-mobile-card-table tbody td[data-label]::before {
		flex-basis: 82px;
	}

	.jetmlm-network-office .jetmlm-office-rank-select,
	.jetmlm-team-dashboard .jetmlm-inline-rank-select,
	.jetmlm-network-office .jetmlm-member-detail-button {
		width: min( 60%, 158px );
		max-width: 158px;
	}
}

/* 1.5.3 unified leader workspace: one palette, accessible contrast, native accordions. */
.jetmlm-team-dashboard {
	--jetmlm-workspace-bg: #f4f7f6;
	--jetmlm-workspace-surface: #fff;
	--jetmlm-workspace-soft: #f0f6f4;
	--jetmlm-workspace-border: #dbe7e4;
	--jetmlm-workspace-ink: #173f48;
	--jetmlm-workspace-muted: #687f85;
	--jetmlm-workspace-accent: #087f79;
	--jetmlm-workspace-accent-soft: #e3f3ef;
	display: grid;
	gap: 14px;
	padding: 14px;
	background: var( --jetmlm-workspace-bg );
	border: 1px solid #e1e9e7;
	border-radius: 22px;
}

.jetmlm-team-dashboard .jetmlm-leader-identity {
	margin: 0;
	padding: 18px;
	background: var( --jetmlm-workspace-surface );
	border: 1px solid var( --jetmlm-workspace-border );
	border-radius: 18px;
	box-shadow: 0 8px 24px rgba( 18, 59, 69, 0.055 );
}

.jetmlm-team-dashboard .jetmlm-leader-identity__intro {
	padding: 8px 6px;
	color: var( --jetmlm-workspace-ink );
}

.jetmlm-team-dashboard .jetmlm-leader-identity__intro > span,
.jetmlm-team-dashboard .jetmlm-team-heading__eyebrow,
.jetmlm-team-dashboard .jetmlm-office-header > div > span,
.jetmlm-team-dashboard .jetmlm-office-panel__title > div > span {
	color: var( --jetmlm-workspace-accent );
}

.jetmlm-team-dashboard .jetmlm-leader-identity__intro h2 {
	color: var( --jetmlm-workspace-ink );
	font-size: clamp( 19px, 2.1vw, 27px );
}

.jetmlm-team-dashboard .jetmlm-leader-identity__intro p {
	color: var( --jetmlm-workspace-muted );
	font-size: 12px;
}

.jetmlm-team-dashboard .jetmlm-code-card,
.jetmlm-team-dashboard .jetmlm-code-card.is-referral {
	min-height: 132px;
	padding: 16px;
	background: var( --jetmlm-workspace-soft );
	border: 1px solid var( --jetmlm-workspace-border );
	border-radius: 15px;
}

.jetmlm-team-dashboard .jetmlm-code-card__label {
	color: var( --jetmlm-workspace-muted );
}

.jetmlm-team-dashboard .jetmlm-code-card code {
	color: var( --jetmlm-workspace-ink );
	background: transparent !important;
	font-size: clamp( 19px, 2vw, 25px );
}

.jetmlm-team-dashboard .jetmlm-code-card__actions button {
	min-height: 40px;
	color: #fff !important;
	background: var( --jetmlm-workspace-accent ) !important;
	border: 1px solid var( --jetmlm-workspace-accent ) !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

.jetmlm-team-dashboard .jetmlm-code-card__actions a {
	min-height: 40px;
	color: var( --jetmlm-workspace-ink ) !important;
	background: #fff !important;
	border: 1px solid var( --jetmlm-workspace-border ) !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

.jetmlm-dashboard-accordion {
	overflow: clip;
	background: var( --jetmlm-workspace-surface );
	border: 1px solid var( --jetmlm-workspace-border );
	border-radius: 18px;
	box-shadow: 0 7px 22px rgba( 18, 59, 69, 0.045 );
}

.jetmlm-dashboard-accordion > summary {
	display: grid;
	min-height: 74px;
	padding: 14px 16px;
	grid-template-columns: 42px minmax( 0, 1fr ) 24px;
	gap: 12px;
	align-items: center;
	color: var( --jetmlm-workspace-ink );
	background: #fff;
	list-style: none;
	cursor: pointer;
	user-select: none;
	touch-action: manipulation;
}

.jetmlm-dashboard-accordion > summary::-webkit-details-marker {
	display: none;
}

.jetmlm-dashboard-accordion > summary::marker {
	display: none;
	content: "";
}

.jetmlm-dashboard-accordion > summary > span:nth-child( 2 ) {
	display: grid;
	min-width: 0;
	gap: 3px;
}

.jetmlm-dashboard-accordion > summary strong {
	color: var( --jetmlm-workspace-ink );
	font-size: 14px;
	font-weight: 900;
	line-height: 1.6;
}

.jetmlm-dashboard-accordion > summary small {
	color: var( --jetmlm-workspace-muted );
	font-size: 11px;
	line-height: 1.7;
}

.jetmlm-dashboard-accordion__icon {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	color: var( --jetmlm-workspace-accent );
	background: var( --jetmlm-workspace-accent-soft );
	border-radius: 12px;
	font-size: 13px;
	font-weight: 900;
}

.jetmlm-dashboard-accordion > summary > i {
	position: relative;
	display: block;
	width: 20px;
	height: 20px;
}

.jetmlm-dashboard-accordion > summary > i::before,
.jetmlm-dashboard-accordion > summary > i::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 2px;
	background: var( --jetmlm-workspace-accent );
	border-radius: 2px;
	transform: translate( -50%, -50% );
	transition: transform 160ms ease;
}

.jetmlm-dashboard-accordion > summary > i::after {
	transform: translate( -50%, -50% ) rotate( 90deg );
}

.jetmlm-dashboard-accordion[open] > summary {
	background: #f8fbfa;
	border-bottom: 1px solid var( --jetmlm-workspace-border );
}

.jetmlm-dashboard-accordion[open] > summary > i::after {
	transform: translate( -50%, -50% ) rotate( 0deg );
}

.jetmlm-dashboard-accordion__content {
	padding: 14px;
	background: #fff;
}

.jetmlm-dashboard-accordion__content > .jetmlm-network-office {
	width: 100%;
	max-width: none;
	margin: 0;
}

.jetmlm-dashboard-accordion__content .jetmlm-office-header {
	padding: 16px;
	color: var( --jetmlm-workspace-ink );
	background: var( --jetmlm-workspace-soft );
	border: 1px solid var( --jetmlm-workspace-border );
	border-radius: 15px;
	box-shadow: none;
}

.jetmlm-dashboard-accordion__content .jetmlm-office-header h2 {
	color: var( --jetmlm-workspace-ink );
	font-size: clamp( 19px, 2.4vw, 26px );
}

.jetmlm-dashboard-accordion__content .jetmlm-office-header p,
.jetmlm-dashboard-accordion__content .jetmlm-office-month-label {
	color: var( --jetmlm-workspace-muted );
}

.jetmlm-dashboard-accordion__content .jetmlm-office-month-label select {
	color: var( --jetmlm-workspace-ink );
	background: #fff;
	border-color: var( --jetmlm-workspace-border );
}

.jetmlm-dashboard-accordion__content .jetmlm-office-stats > div,
.jetmlm-dashboard-accordion__content .jetmlm-office-panel,
.jetmlm-dashboard-accordion__content .jetmlm-office-directory {
	background: #fff;
	border-color: var( --jetmlm-workspace-border );
	box-shadow: none;
}

.jetmlm-dashboard-accordion__content .jetmlm-office-stats > div::after {
	background: var( --jetmlm-workspace-accent-soft );
}

.jetmlm-dashboard-accordion__content .jetmlm-office-stats strong,
.jetmlm-dashboard-accordion__content .jetmlm-office-panel h3,
.jetmlm-dashboard-accordion__content .jetmlm-team-heading h2 {
	color: var( --jetmlm-workspace-ink );
}

.jetmlm-dashboard-accordion--management .jetmlm-team-heading {
	margin: 0 0 12px;
}

@media ( hover: hover ) {
	.jetmlm-dashboard-accordion > summary:hover {
		background: #f8fbfa;
	}
}

@media ( max-width: 782px ) {
	.jetmlm-team-dashboard {
		width: min( 100% - 12px, 720px );
		padding: 8px;
		gap: 10px;
		border-radius: 18px;
	}

	.jetmlm-team-dashboard .jetmlm-leader-identity {
		padding: 13px;
		gap: 9px;
		border-radius: 15px;
	}

	.jetmlm-dashboard-accordion {
		border-radius: 15px;
	}

	.jetmlm-dashboard-accordion > summary {
		min-height: 68px;
		padding: 11px 12px;
		grid-template-columns: 38px minmax( 0, 1fr ) 22px;
		gap: 10px;
	}

	.jetmlm-dashboard-accordion__icon {
		width: 38px;
		height: 38px;
		border-radius: 10px;
	}

	.jetmlm-dashboard-accordion > summary strong {
		font-size: 13px;
	}

	.jetmlm-dashboard-accordion > summary small {
		font-size: 10px;
	}

	.jetmlm-dashboard-accordion__content {
		padding: 10px;
	}

	.jetmlm-dashboard-accordion__content .jetmlm-office-header {
		padding: 14px;
	}
}

@media ( max-width: 520px ) {
	.jetmlm-team-dashboard .jetmlm-leader-identity {
		grid-template-columns: 1fr;
	}

	.jetmlm-team-dashboard .jetmlm-leader-identity__intro {
		grid-column: auto;
		padding: 5px 3px 9px;
	}

	.jetmlm-team-dashboard .jetmlm-code-card,
	.jetmlm-team-dashboard .jetmlm-code-card.is-referral {
		min-height: 116px;
		padding: 14px;
	}

	.jetmlm-team-dashboard .jetmlm-code-card__actions {
		flex-wrap: wrap;
	}

	.jetmlm-dashboard-accordion__content .jetmlm-office-header {
		align-items: stretch;
	}

	.jetmlm-dashboard-accordion__content .jetmlm-office-month-label {
		min-width: 0;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.jetmlm-dashboard-accordion > summary > i::before,
	.jetmlm-dashboard-accordion > summary > i::after {
		transition: none;
	}
}

/* 1.5.4 semantic palette lock for leader controls and membership states. */
.jetmlm-team-dashboard .jetmlm-view-toggle {
	background: #eaf1ef !important;
	border: 1px solid #dce7e4;
	box-shadow: none;
}

.jetmlm-team-dashboard .jetmlm-view-toggle .jetmlm-view-btn {
	color: #536c72 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

.jetmlm-team-dashboard .jetmlm-view-toggle .jetmlm-view-btn.is-active {
	color: #fff !important;
	background: var( --jetmlm-workspace-accent ) !important;
	box-shadow: 0 5px 12px rgba( 8, 127, 121, 0.16 ) !important;
}

.jetmlm-team-dashboard .jetmlm-team-filter,
.jetmlm-team-dashboard .jetmlm-bulk-apply {
	color: #fff !important;
	background: var( --jetmlm-workspace-accent ) !important;
	border: 1px solid var( --jetmlm-workspace-accent ) !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

.jetmlm-team-dashboard .jetmlm-team-filter:hover,
.jetmlm-team-dashboard .jetmlm-bulk-apply:hover {
	background: #066b66 !important;
	border-color: #066b66 !important;
}

.jetmlm-team-dashboard .jetmlm-team-filters input,
.jetmlm-team-dashboard .jetmlm-team-filters select {
	color: var( --jetmlm-workspace-ink );
	background: #fff !important;
	border-color: #cfdedb !important;
	box-shadow: none !important;
}

.jetmlm-team-dashboard .jetmlm-team-filters input:focus,
.jetmlm-team-dashboard .jetmlm-team-filters select:focus {
	border-color: var( --jetmlm-workspace-accent ) !important;
	box-shadow: 0 0 0 3px rgba( 8, 127, 121, 0.12 ) !important;
}

.jetmlm-team-dashboard .jetmlm-badge.status-approved {
	color: #126c50 !important;
	background: #ddf4ea !important;
	border: 1px solid #bfe8d9 !important;
	border-color: #bfe8d9 !important;
}

.jetmlm-team-dashboard .jetmlm-badge.status-pending {
	color: #76540f !important;
	background: #fff4d8 !important;
	border: 1px solid #efdaaa !important;
	border-color: #efdaaa !important;
}

.jetmlm-team-dashboard .jetmlm-badge.status-awaiting_referral {
	color: #48676d !important;
	background: #e8f1ef !important;
	border: 1px solid #cedfdb !important;
	border-color: #cedfdb !important;
}

.jetmlm-team-dashboard .jetmlm-badge.status-rejected {
	color: #a23f3f !important;
	background: #fff0ef !important;
	border: 1px solid #efc8c4 !important;
	border-color: #efc8c4 !important;
}

.jetmlm-team-dashboard input[type="checkbox"] {
	accent-color: var( --jetmlm-workspace-accent );
}

.jetmlm-team-dashboard .jetmlm-inline-rank-select:focus {
	border-color: var( --jetmlm-workspace-accent ) !important;
	box-shadow: 0 0 0 3px rgba( 8, 127, 121, 0.11 ) !important;
}

/* --------------------------------------------------------------------------
 * Content bank single page — minimal, media-first and mobile-first.
 * ----------------------------------------------------------------------- */
.jetmlm-content-page {
	--jcb-accent: var( --jetmlm-primary, #087f79 );
	--jcb-ink: #173f48;
	--jcb-muted: #657b80;
	--jcb-line: #d9e5e2;
	--jcb-cloud: #f4f7f6;
	--jcb-mint: #e7f4f1;
	--jcb-white: #fff;
	width: min( 1180px, 100% );
	margin: 0 auto;
	padding: clamp( 18px, 3vw, 36px );
	color: var( --jcb-ink );
	background: #f9fbfa;
	border: 1px solid var( --jcb-line );
	border-radius: 28px;
	box-shadow: 0 18px 50px rgba( 23, 63, 72, 0.07 );
	font-family: var( --jetmlm-font, inherit );
	line-height: 1.75;
	box-sizing: border-box;
}

.jetmlm-content-page *,
.jetmlm-content-page *::before,
.jetmlm-content-page *::after {
	box-sizing: border-box;
}

.jetmlm-content-page a {
	color: inherit;
	text-decoration: none;
}

.jetmlm-content-hero {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) minmax( 250px, 310px );
	gap: clamp( 18px, 4vw, 44px );
	align-items: end;
	padding: clamp( 22px, 4vw, 46px );
	margin-bottom: clamp( 30px, 5vw, 54px );
	color: #fff;
	background: var( --jcb-ink );
	border-radius: 22px;
	overflow: hidden;
	position: relative;
}

.jetmlm-content-hero::after {
	content: "";
	width: 170px;
	height: 170px;
	position: absolute;
	inset: auto auto -105px -70px;
	border: 28px solid rgba( 82, 206, 191, 0.13 );
	border-radius: 50%;
	pointer-events: none;
}

.jetmlm-content-hero__main {
	position: relative;
	z-index: 1;
	min-width: 0;
}

.jetmlm-content-eyebrow {
	display: flex;
	gap: 9px;
	align-items: center;
	margin: 0 0 12px !important;
	color: #99e4da;
	font-size: 11px;
	font-weight: 750;
}

.jetmlm-content-eyebrow span {
	width: 8px;
	height: 8px;
	background: #66d5c7;
	border-radius: 50%;
	box-shadow: 0 0 0 5px rgba( 102, 213, 199, 0.12 );
}

.jetmlm-content-page .jetmlm-content-title {
	margin: 0 !important;
	color: #fff;
	font-size: clamp( 19px, 2.2vw, 26px );
	font-weight: 750;
	line-height: 1.5;
	letter-spacing: -0.02em;
}

.jetmlm-content-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 20px;
}

.jetmlm-format-badge,
.jetmlm-meta-chip {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 4px 11px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.4;
}

.jetmlm-format-badge {
	color: #123e46;
	background: #9fe7de;
}

.jetmlm-meta-chip {
	color: #dcebea;
	background: rgba( 255, 255, 255, 0.08 );
	border: 1px solid rgba( 255, 255, 255, 0.13 );
}

.jetmlm-quota-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 132px;
	padding: 18px;
	color: var( --jcb-ink );
	background: #fff;
	border-radius: 17px;
	position: relative;
	z-index: 1;
}

.jetmlm-quota-card__top {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	justify-content: space-between;
}

.jetmlm-quota-card__label,
.jetmlm-quota-card small {
	color: var( --jcb-muted );
	font-size: 11px;
	font-weight: 700;
}

.jetmlm-quota-rank {
	display: inline-flex;
	align-items: center;
	min-height: 25px;
	padding: 3px 8px;
	color: #176d68;
	background: var( --jcb-mint );
	border-radius: 999px;
	font-size: 9px;
	font-weight: 850;
	line-height: 1.5;
}

.jetmlm-quota-card strong {
	margin: 2px 0;
	font-size: 21px;
	font-weight: 850;
	direction: ltr;
	text-align: left;
}

.jetmlm-quota-upgrade {
	display: none;
	margin: 9px 0 0 !important;
	padding-top: 9px;
	color: #47666b;
	border-top: 1px solid #dce8e5;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.8;
}

.jetmlm-quota-upgrade.is-visible {
	display: block;
}

.jetmlm-quota-card a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	margin-top: 10px;
	color: #fff;
	background: var( --jcb-accent );
	border-radius: 11px;
	font-size: 13px;
	font-weight: 800;
}

.jetmlm-content-page .jetmlm-section-heading {
	display: flex;
	gap: 22px;
	align-items: end;
	justify-content: space-between;
	margin: 0 0 20px;
}

.jetmlm-content-page .jetmlm-section-heading span {
	display: block;
	margin-bottom: 3px;
	color: var( --jcb-accent );
	font-size: 10px;
	font-weight: 800;
}

.jetmlm-content-page .jetmlm-section-heading h2 {
	margin: 0 !important;
	color: var( --jcb-ink );
	font-size: clamp( 16px, 1.8vw, 20px );
	font-weight: 750;
	line-height: 1.45;
}

.jetmlm-content-page .jetmlm-section-heading p {
	max-width: 510px;
	margin: 0 !important;
	color: var( --jcb-muted );
	font-size: 11px;
}

.jetmlm-content-body {
	min-width: 0;
}

.jetmlm-content-page--single-post .jetmlm-content-body {
	display: grid;
	grid-template-columns: minmax( 330px, 0.9fr ) minmax( 0, 1.1fr );
	gap: clamp( 22px, 4vw, 48px );
	align-items: start;
}

.jetmlm-content-page--single-post .jetmlm-media-zone,
.jetmlm-content-page--single-post .jetmlm-publish-kit {
	min-width: 0;
}

.jetmlm-content-page--single-post .jetmlm-asset-grid {
	grid-template-columns: 1fr;
}

.jetmlm-content-page--single-post .jetmlm-publish-kit {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.jetmlm-content-page--single-post .jetmlm-publish-kit > .jetmlm-section-heading {
	min-height: 76px;
}

.jetmlm-content-page--single-post .jetmlm-copy-grid {
	grid-template-columns: 1fr;
}

.jetmlm-content-page--single-post .jetmlm-copy-body {
	max-height: 280px;
}

.jetmlm-asset-grid {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: clamp( 16px, 2.5vw, 26px );
	align-items: start;
}

.jetmlm-content-page--story .jetmlm-asset-grid {
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
}

.jetmlm-asset-card {
	min-width: 0;
	padding: 10px;
	background: var( --jcb-white );
	border: 1px solid var( --jcb-line );
	border-radius: 19px;
	box-shadow: 0 10px 28px rgba( 23, 63, 72, 0.055 );
}

.jetmlm-asset-preview {
	display: grid;
	place-items: center;
	width: 100%;
	margin: 0;
	background: #edf2f1;
	border-radius: 13px;
	overflow: hidden;
	position: relative;
}

.jetmlm-asset-preview--story {
	aspect-ratio: 9 / 16;
}

.jetmlm-asset-preview--portrait {
	aspect-ratio: 4 / 5;
}

.jetmlm-asset-preview--square {
	aspect-ratio: 1 / 1;
}

.jetmlm-asset-preview img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
	background: #edf2f1;
}

.jetmlm-slide-badge {
	position: absolute;
	z-index: 1;
	top: 10px;
	right: 10px;
	padding: 5px 9px;
	color: #fff;
	background: rgba( 15, 48, 56, 0.82 );
	border: 1px solid rgba( 255, 255, 255, 0.2 );
	border-radius: 999px;
	backdrop-filter: blur( 8px );
	font-size: 11px;
	font-weight: 800;
	line-height: 1.5;
}

.jetmlm-preview-placeholder {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: center;
	justify-content: center;
	color: var( --jcb-muted );
	font-size: 12px;
	font-weight: 750;
}

.jetmlm-preview-placeholder span {
	color: #9aadaa;
	font-size: 38px;
	line-height: 1;
}

.jetmlm-asset-actions {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) auto;
	gap: 12px;
	align-items: center;
	padding: 13px 3px 2px;
}

.jetmlm-asset-actions > div {
	min-width: 0;
}

.jetmlm-asset-actions strong,
.jetmlm-asset-actions small {
	display: block;
}

.jetmlm-asset-actions strong {
	color: var( --jcb-ink );
	font-size: 11px;
	font-weight: 800;
}

.jetmlm-asset-actions small {
	margin-top: 1px;
	color: var( --jcb-muted );
	font-size: 10px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.jetmlm-content-page .jetmlm-bank-download {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 122px;
	min-height: 42px;
	padding: 9px 14px;
	margin: 0;
	color: #fff !important;
	background: var( --jcb-accent ) !important;
	border: 1px solid var( --jcb-accent ) !important;
	border-radius: 11px;
	box-shadow: none;
	cursor: pointer;
	font-family: inherit;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.5;
	transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.jetmlm-content-page .jetmlm-bank-download:hover {
	background: #066c67 !important;
	transform: translateY( -1px );
}

.jetmlm-content-page .jetmlm-bank-download:focus-visible,
.jetmlm-content-page .jetmlm-copy-content:focus-visible {
	outline: 3px solid rgba( 8, 127, 121, 0.2 );
	outline-offset: 2px;
}

.jetmlm-content-page .jetmlm-bank-download:disabled {
	color: #6e8184 !important;
	background: #e6edeb !important;
	border-color: #d8e2e0 !important;
	cursor: not-allowed;
	transform: none;
}

.jetmlm-content-page .jetmlm-bank-download.is-loading {
	opacity: 0.72;
}

.jetmlm-asset-message {
	display: none;
	margin: 8px 3px 1px !important;
	padding: 8px 10px;
	border-radius: 9px;
	font-size: 11px;
	font-weight: 700;
}

.jetmlm-asset-message:not(:empty) {
	display: block;
}

.jetmlm-asset-message.is-success {
	color: #17614e;
	background: #e5f5ef;
}

.jetmlm-asset-message.is-error {
	color: #9a3e3e;
	background: #fff0ef;
}

.jetmlm-publish-kit,
.jetmlm-related-products {
	margin-top: clamp( 38px, 6vw, 68px );
	padding-top: clamp( 28px, 4vw, 42px );
	border-top: 1px solid var( --jcb-line );
}

.jetmlm-copy-grid {
	display: grid;
	grid-template-columns: minmax( 0, 1.35fr ) minmax( 260px, 0.65fr );
	gap: 18px;
	align-items: start;
}

.jetmlm-copy-card {
	min-width: 0;
	background: var( --jcb-white );
	border: 1px solid var( --jcb-line );
	border-radius: 17px;
	overflow: hidden;
}

.jetmlm-copy-card header {
	display: flex;
	gap: 14px;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	background: var( --jcb-cloud );
	border-bottom: 1px solid var( --jcb-line );
}

.jetmlm-copy-card header span,
.jetmlm-copy-card header strong {
	display: block;
}

.jetmlm-copy-card header span {
	color: var( --jcb-muted );
	font-size: 10px;
	font-weight: 750;
}

.jetmlm-copy-card header strong {
	color: var( --jcb-ink );
	font-size: 12px;
	font-weight: 800;
}

.jetmlm-content-page .jetmlm-copy-content {
	flex: 0 0 auto;
	min-height: 36px;
	padding: 6px 11px;
	color: var( --jcb-accent );
	background: #fff;
	border: 1px solid #c9ddda;
	border-radius: 9px;
	cursor: pointer;
	font-family: inherit;
	font-size: 11px;
	font-weight: 850;
}

.jetmlm-content-page .jetmlm-copy-content.is-copied {
	color: #fff;
	background: var( --jcb-accent );
	border-color: var( --jcb-accent );
}

.jetmlm-copy-body {
	max-height: 340px;
	padding: 18px;
	color: #294c53;
	overflow: auto;
	font-size: 12px;
	line-height: 1.9;
	white-space: normal;
}

.jetmlm-copy-body > :first-child {
	margin-top: 0;
}

.jetmlm-copy-body > :last-child {
	margin-bottom: 0;
}

.jetmlm-copy-card--hashtags .jetmlm-copy-body {
	color: #176d68;
	direction: rtl;
	font-weight: 650;
	overflow-wrap: anywhere;
}

.jetmlm-product-grid {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 14px;
}

.jetmlm-product-card {
	display: grid;
	grid-template-columns: 66px minmax( 0, 1fr ) auto;
	gap: 13px;
	align-items: center;
	min-width: 0;
	padding: 10px;
	background: #fff;
	border: 1px solid var( --jcb-line );
	border-radius: 15px;
	transition: border-color 160ms ease, transform 160ms ease;
}

.jetmlm-product-card:hover {
	border-color: #9bcac4;
	transform: translateY( -2px );
}

.jetmlm-product-card__image {
	display: grid;
	place-items: center;
	width: 66px;
	aspect-ratio: 1;
	background: var( --jcb-cloud );
	border-radius: 10px;
	overflow: hidden;
}

.jetmlm-product-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jetmlm-product-card__content {
	min-width: 0;
}

.jetmlm-product-card__content small,
.jetmlm-product-card__content strong {
	display: block;
}

.jetmlm-product-card__content small {
	color: var( --jcb-accent );
	font-size: 10px;
	font-weight: 750;
}

.jetmlm-product-card__content strong {
	color: var( --jcb-ink );
	font-size: 13px;
	font-weight: 850;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.jetmlm-product-card > [aria-hidden="true"] {
	padding-left: 5px;
	color: var( --jcb-accent );
	font-size: 18px;
}

.jetmlm-content-notice {
	width: min( 760px, 100% );
	margin: 20px auto;
	padding: 16px 18px;
	color: var( --jcb-ink, #173f48 );
	background: #eef5f3;
	border: 1px solid #cedfdb;
	border-radius: 13px;
	font-family: var( --jetmlm-font, inherit );
	font-size: 13px;
	font-weight: 750;
}

.jetmlm-content-notice--warning {
	color: #76540f;
	background: #fff8e6;
	border-color: #efdaaa;
}

.jetmlm-content-notice--error {
	color: #9a3e3e;
	background: #fff0ef;
	border-color: #efc8c4;
}

@media ( max-width: 900px ) {
	.jetmlm-content-page--story .jetmlm-asset-grid {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}

	.jetmlm-copy-grid {
		grid-template-columns: 1fr;
	}

	.jetmlm-content-page--single-post .jetmlm-content-body {
		grid-template-columns: minmax( 280px, 0.9fr ) minmax( 0, 1.1fr );
		gap: 20px;
	}
}

@media ( max-width: 680px ) {
	.jetmlm-content-page {
		width: 100%;
		padding: 12px;
		border-right: 0;
		border-left: 0;
		border-radius: 18px;
		box-shadow: none;
	}

	.jetmlm-content-hero {
		grid-template-columns: 1fr;
		align-items: stretch;
		padding: 20px;
		margin-bottom: 34px;
		border-radius: 17px;
	}

	.jetmlm-content-page .jetmlm-content-title {
		font-size: 20px;
	}

	.jetmlm-quota-card {
		display: flex;
		gap: 2px;
		align-items: stretch;
		min-height: 0;
		padding: 13px 14px;
	}

	.jetmlm-quota-card strong {
		margin: 2px 0 0;
	}

	.jetmlm-quota-card a {
		margin-top: 8px;
	}

	.jetmlm-quota-card__top {
		justify-content: flex-start;
	}

	.jetmlm-content-page--single-post .jetmlm-content-body {
		display: block;
	}

	.jetmlm-content-page--single-post .jetmlm-publish-kit {
		margin-top: 38px;
		padding-top: 28px;
		border-top: 1px solid var( --jcb-line );
	}

	.jetmlm-content-page .jetmlm-section-heading {
		display: block;
		margin-bottom: 16px;
	}

	.jetmlm-content-page .jetmlm-section-heading p {
		margin-top: 7px !important;
		font-size: 12px;
	}

	.jetmlm-asset-grid,
	.jetmlm-content-page--story .jetmlm-asset-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.jetmlm-content-page--story .jetmlm-asset-card {
		width: min( 100%, 365px );
		margin-inline: auto;
	}

	.jetmlm-asset-actions {
		grid-template-columns: minmax( 0, 1fr ) minmax( 126px, auto );
	}

	.jetmlm-content-page .jetmlm-bank-download {
		min-height: 44px;
	}

	.jetmlm-product-grid {
		grid-template-columns: 1fr;
	}
}

@media ( max-width: 390px ) {
	.jetmlm-asset-actions {
		grid-template-columns: 1fr;
	}

	.jetmlm-content-page .jetmlm-bank-download {
		width: 100%;
	}

	.jetmlm-copy-card header {
		align-items: flex-start;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.jetmlm-content-page *,
	.jetmlm-content-page *::before,
	.jetmlm-content-page *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

/* ==========================================================================
 * Salonto UI System 1.0 — authoritative final layer
 * Full rationale and component rules: /UI-DESIGN-SYSTEM.md
 * ======================================================================= */
:root {
	--st-bg: #fbf8f7;
	--st-surface: #fff;
	--st-soft: #f8eeec;
	--st-cloud: #f4f7f6;
	--st-ink: #24383d;
	--st-muted: #6f7f82;
	--st-border: #e8dfdd;
	--st-primary: var( --jetmlm-primary, #087f79 );
	--st-primary-dark: #066b66;
	--st-primary-soft: #e5f3f0;
	--st-success: #176b52;
	--st-warning: #8a6114;
	--st-danger: #a33f45;
	--st-radius-lg: 16px;
	--st-radius-md: 12px;
	--st-radius-sm: 10px;
	--st-shadow: 0 8px 24px rgba( 36, 56, 61, 0.05 );
	--st-focus: 0 0 0 3px rgba( 8, 127, 121, 0.16 );
}

.jetmlm-auth-form,
.jetmlm-content-gate,
.jetmlm-my-network,
.jetmlm-team-dashboard,
.jetmlm-network-office,
.jetmlm-content-page {
	color: var( --st-ink );
	font-family: inherit;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.9;
}

.jetmlm-admin {
	color: var( --st-ink );
	font-family: var( --jetmlm-font, Tahoma, sans-serif );
	font-size: 13px;
	line-height: 1.8;
}

.jetmlm-auth-form *,
.jetmlm-content-gate *,
.jetmlm-my-network *,
.jetmlm-team-dashboard *,
.jetmlm-network-office *,
.jetmlm-content-page *,
.jetmlm-admin * {
	box-sizing: border-box;
}

.jetmlm-auth-form h1,
.jetmlm-auth-form h2,
.jetmlm-auth-form h3,
.jetmlm-content-gate h1,
.jetmlm-content-gate h2,
.jetmlm-my-network h1,
.jetmlm-my-network h2,
.jetmlm-team-dashboard h1,
.jetmlm-team-dashboard h2,
.jetmlm-team-dashboard h3,
.jetmlm-network-office h1,
.jetmlm-network-office h2,
.jetmlm-network-office h3,
.jetmlm-content-page h1,
.jetmlm-content-page h2,
.jetmlm-content-page h3,
.jetmlm-admin h1,
.jetmlm-admin h2,
.jetmlm-admin h3 {
	color: var( --st-ink );
	font-family: inherit;
	letter-spacing: 0;
}

/* Shared controls */
.jetmlm-auth-form input,
.jetmlm-auth-form select,
.jetmlm-auth-form textarea,
.jetmlm-team-dashboard input,
.jetmlm-team-dashboard select,
.jetmlm-team-dashboard textarea,
.jetmlm-network-office input,
.jetmlm-network-office select,
.jetmlm-network-office textarea,
.jetmlm-admin input[type="text"],
.jetmlm-admin input[type="tel"],
.jetmlm-admin input[type="url"],
.jetmlm-admin input[type="password"],
.jetmlm-admin input[type="number"],
.jetmlm-admin input[type="search"],
.jetmlm-admin select,
.jetmlm-admin textarea {
	min-height: 46px;
	padding: 10px 12px !important;
	color: var( --st-ink ) !important;
	background: var( --st-surface ) !important;
	border: 1px solid var( --st-border ) !important;
	border-radius: var( --st-radius-sm ) !important;
	box-shadow: none !important;
	font-family: inherit;
	font-size: 13px;
	line-height: 1.6;
}

.jetmlm-auth-form textarea,
.jetmlm-team-dashboard textarea,
.jetmlm-network-office textarea,
.jetmlm-admin textarea {
	min-height: 110px;
	resize: vertical;
}

.jetmlm-auth-form :is( input, select, textarea ):focus,
.jetmlm-team-dashboard :is( input, select, textarea ):focus,
.jetmlm-network-office :is( input, select, textarea ):focus,
.jetmlm-admin :is( input, select, textarea ):focus {
	border-color: var( --st-primary ) !important;
	box-shadow: var( --st-focus ) !important;
	outline: 0 !important;
}

.jetmlm-auth-form label,
.jetmlm-team-dashboard label,
.jetmlm-network-office label,
.jetmlm-admin label {
	color: var( --st-ink );
	font-size: 12px;
	font-weight: 600;
}

.jetmlm-auth-form button,
.jetmlm-auth-form .button,
.jetmlm-content-gate button,
.jetmlm-team-dashboard button,
.jetmlm-team-dashboard .button,
.jetmlm-network-office button,
.jetmlm-admin .button,
.jetmlm-content-page button {
	min-height: 44px;
	border-radius: var( --st-radius-sm ) !important;
	font-family: inherit;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.5;
}

.jetmlm-auth-form :is( button, .button ),
.jetmlm-content-gate :is( .jetmlm-unlock-btn, .jetmlm-download-btn ),
.jetmlm-team-dashboard :is( .jetmlm-team-filter, .jetmlm-bulk-apply ),
.jetmlm-network-office :is( .jetmlm-office-apply, .jetmlm-office-bulk-apply ),
.jetmlm-admin :is( .button-primary, input.button-primary ) {
	color: #fff !important;
	background: var( --st-primary ) !important;
	border: 1px solid var( --st-primary ) !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

.jetmlm-auth-form :is( button, .button ):hover,
.jetmlm-content-gate :is( .jetmlm-unlock-btn, .jetmlm-download-btn ):hover,
.jetmlm-team-dashboard :is( .jetmlm-team-filter, .jetmlm-bulk-apply ):hover,
.jetmlm-network-office :is( .jetmlm-office-apply, .jetmlm-office-bulk-apply ):hover,
.jetmlm-admin :is( .button-primary, input.button-primary ):hover {
	color: #fff !important;
	background: var( --st-primary-dark ) !important;
	border-color: var( --st-primary-dark ) !important;
	transform: none !important;
}

.jetmlm-admin .button:not(.button-primary),
.jetmlm-team-dashboard .jetmlm-view-btn,
.jetmlm-network-office .jetmlm-office-pagination button {
	color: var( --st-ink ) !important;
	background: var( --st-surface ) !important;
	border: 1px solid var( --st-border ) !important;
	box-shadow: none !important;
}

.jetmlm-auth-form :is( button, input, select, textarea ):focus-visible,
.jetmlm-content-gate :is( button, a ):focus-visible,
.jetmlm-my-network :is( button, a, input, select ):focus-visible,
.jetmlm-team-dashboard :is( button, a, input, select, textarea, summary ):focus-visible,
.jetmlm-network-office :is( button, a, input, select, textarea ):focus-visible,
.jetmlm-content-page :is( button, a ):focus-visible,
.jetmlm-admin :is( button, a, input, select, textarea ):focus-visible {
	box-shadow: var( --st-focus ) !important;
	outline: 2px solid transparent !important;
	outline-offset: 2px;
}

/* Authentication */
.jetmlm-auth-form {
	width: min( 100%, 500px );
	margin: clamp( 20px, 5vw, 56px ) auto;
	padding: clamp( 20px, 5vw, 30px );
	background: var( --st-surface );
	border: 1px solid var( --st-border );
	border-radius: var( --st-radius-lg );
	box-shadow: var( --st-shadow );
	overflow: hidden;
}

.jetmlm-auth-form::before,
.jetmlm-auth-form::after {
	display: none !important;
}

.jetmlm-auth-brand {
	gap: 12px;
	align-items: center;
	margin-bottom: 12px;
}

.jetmlm-auth-brand h2 {
	margin: 0 !important;
	color: var( --st-ink ) !important;
	font-size: clamp( 20px, 5vw, 22px ) !important;
	font-weight: 700 !important;
	line-height: 1.55;
}

.jetmlm-auth-eyebrow {
	color: var( --st-primary ) !important;
	font-size: 11px !important;
	font-weight: 650 !important;
}

.jetmlm-auth-mark {
	width: 42px;
	height: 42px;
	background: var( --st-primary-soft ) !important;
	border: 1px solid #cce5df;
	box-shadow: none !important;
}

.jetmlm-auth-intro {
	max-width: 42ch;
	margin: 0 0 16px !important;
	color: var( --st-muted ) !important;
	font-size: 12px !important;
	line-height: 1.9;
}

.jetmlm-auth-form .jetmlm-steps-indicator {
	height: 4px;
	margin: 0 0 20px;
	background: var( --st-soft );
	border-radius: 999px;
}

.jetmlm-auth-form .jetmlm-steps-indicator span {
	height: 4px;
	background: #ddcfcc;
}

.jetmlm-auth-form .jetmlm-steps-indicator span.is-active,
.jetmlm-auth-form .jetmlm-steps-indicator span.is-done {
	background: var( --st-primary );
}

.jetmlm-auth-form .jetmlm-field {
	margin-bottom: 14px;
}

.jetmlm-auth-form .jetmlm-name-row {
	gap: 12px;
}

.jetmlm-auth-form .button {
	width: 100%;
	margin-top: 4px;
}

.jetmlm-auth-form .button::after {
	display: none !important;
}

.jetmlm-auth-form .jetmlm-rahbar-status,
.jetmlm-auth-form .jetmlm-auth-message:not(:empty) {
	margin-top: 8px;
	padding: 10px 12px;
	border-radius: var( --st-radius-sm );
	font-size: 12px;
	line-height: 1.8;
}

.jetmlm-auth-form .jetmlm-rahbar-status.is-valid,
.jetmlm-auth-form .jetmlm-auth-message.is-success {
	color: var( --st-success );
	background: #e8f5ef;
	border: 1px solid #cce8dc;
}

.jetmlm-auth-form .jetmlm-rahbar-status.is-invalid,
.jetmlm-auth-form .jetmlm-auth-message.is-error {
	color: var( --st-danger );
	background: #fff0ef;
	border: 1px solid #efceca;
}

.jetmlm-auth-form .jetmlm-switch-link {
	margin-top: 18px;
	padding-top: 14px;
	color: var( --st-muted );
	border-top: 1px solid var( --st-border );
	font-size: 12px;
}

.jetmlm-auth-form .jetmlm-switch-link a {
	color: var( --st-primary );
	font-weight: 650;
}

/* Front workspaces */
.jetmlm-my-network,
.jetmlm-team-dashboard,
.jetmlm-network-office {
	width: min( 100%, 1180px );
	margin-inline: auto;
	padding: clamp( 12px, 2.5vw, 24px );
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.jetmlm-my-network .jetmlm-card,
.jetmlm-team-dashboard .jetmlm-card,
.jetmlm-office-panel,
.jetmlm-office-directory {
	padding: clamp( 16px, 2.5vw, 22px );
	background: var( --st-surface ) !important;
	border: 1px solid var( --st-border ) !important;
	border-radius: var( --st-radius-lg ) !important;
	box-shadow: var( --st-shadow ) !important;
}

.jetmlm-leader-identity {
	display: grid;
	grid-template-columns: minmax( 220px, 1.2fr ) repeat( 2, minmax( 190px, 0.8fr ) );
	gap: 14px;
	padding: clamp( 16px, 2.5vw, 22px ) !important;
	color: var( --st-ink ) !important;
	background: var( --st-surface ) !important;
	border: 1px solid var( --st-border ) !important;
	border-radius: var( --st-radius-lg ) !important;
	box-shadow: var( --st-shadow ) !important;
}

.jetmlm-leader-identity__intro {
	align-self: center;
}

.jetmlm-leader-identity__intro > span,
.jetmlm-team-heading__eyebrow,
.jetmlm-office-header > div > span,
.jetmlm-office-panel__title > div > span {
	color: var( --st-primary ) !important;
	font-size: 11px !important;
	font-weight: 650 !important;
}

.jetmlm-leader-identity__intro h2,
.jetmlm-team-heading h2,
.jetmlm-office-header h2 {
	margin: 3px 0 5px !important;
	color: var( --st-ink ) !important;
	font-size: clamp( 18px, 2.2vw, 22px ) !important;
	font-weight: 700 !important;
	line-height: 1.55;
}

.jetmlm-leader-identity__intro p,
.jetmlm-team-heading p,
.jetmlm-office-header p {
	margin: 0 !important;
	color: var( --st-muted ) !important;
	font-size: 12px !important;
	line-height: 1.9;
}

.jetmlm-code-card,
.jetmlm-code-card.is-referral {
	padding: 14px !important;
	color: var( --st-ink ) !important;
	background: var( --st-soft ) !important;
	border: 1px solid var( --st-border ) !important;
	border-radius: var( --st-radius-md ) !important;
	box-shadow: none !important;
}

.jetmlm-code-card.is-rahbar {
	background: var( --st-primary-soft ) !important;
	border-color: #cfe5df !important;
}

.jetmlm-code-card__label,
.jetmlm-code-card small {
	color: var( --st-muted ) !important;
	font-size: 11px !important;
}

.jetmlm-code-card code {
	color: var( --st-ink ) !important;
	background: transparent !important;
	font-size: clamp( 17px, 2vw, 21px ) !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em;
}

.jetmlm-code-card__actions button,
.jetmlm-code-card__actions a {
	min-height: 38px;
	color: var( --st-primary ) !important;
	background: var( --st-surface ) !important;
	border: 1px solid #cfe0dd !important;
	border-radius: var( --st-radius-sm ) !important;
	font-size: 11px !important;
	font-weight: 650 !important;
}

.jetmlm-dashboard-accordion {
	margin-top: 14px;
	background: var( --st-surface ) !important;
	border: 1px solid var( --st-border ) !important;
	border-radius: var( --st-radius-lg ) !important;
	box-shadow: var( --st-shadow ) !important;
	overflow: hidden;
}

.jetmlm-dashboard-accordion > summary {
	min-height: 68px;
	padding: 14px 16px !important;
	color: var( --st-ink ) !important;
	background: var( --st-surface ) !important;
}

.jetmlm-dashboard-accordion > summary:hover {
	background: #fdfafa !important;
}

.jetmlm-dashboard-accordion[open] > summary {
	background: var( --st-soft ) !important;
	border-bottom: 1px solid var( --st-border );
}

.jetmlm-dashboard-accordion > summary strong {
	color: var( --st-ink ) !important;
	font-size: 14px !important;
	font-weight: 700 !important;
}

.jetmlm-dashboard-accordion > summary small {
	color: var( --st-muted ) !important;
	font-size: 11px !important;
}

.jetmlm-dashboard-accordion__icon {
	color: var( --st-primary ) !important;
	background: var( --st-primary-soft ) !important;
	border: 1px solid #cee5df !important;
}

.jetmlm-dashboard-accordion__content {
	padding: 16px !important;
	background: #fdfbfa !important;
}

/* Tabs, filters and stats */
.jetmlm-view-toggle,
.jetmlm-team-dashboard .jetmlm-view-toggle,
.jetmlm-admin .jetmlm-view-toggle {
	gap: 4px;
	padding: 5px !important;
	background: var( --st-soft ) !important;
	border: 1px solid #f0dfdc !important;
	border-radius: var( --st-radius-md ) !important;
}

.jetmlm-view-toggle button,
.jetmlm-team-dashboard .jetmlm-view-toggle .jetmlm-view-btn {
	min-height: 40px;
	color: #725e5b !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 9px !important;
	box-shadow: none !important;
	font-size: 12px !important;
	font-weight: 550 !important;
}

.jetmlm-view-toggle button.is-active,
.jetmlm-team-dashboard .jetmlm-view-toggle .jetmlm-view-btn.is-active {
	color: var( --st-ink ) !important;
	background: var( --st-surface ) !important;
	box-shadow: 0 3px 10px rgba( 72, 48, 43, 0.07 ) !important;
	font-weight: 700 !important;
}

.jetmlm-team-filters,
.jetmlm-office-filters {
	gap: 10px !important;
	padding: 12px !important;
	background: var( --st-soft ) !important;
	border: 1px solid #f0dfdc !important;
	border-radius: var( --st-radius-md ) !important;
}

.jetmlm-stat-row,
.jetmlm-office-stats {
	gap: 12px !important;
}

.jetmlm-stat,
.jetmlm-office-stats > div,
.jetmlm-insight-stats > div {
	padding: 14px !important;
	background: var( --st-surface ) !important;
	border: 1px solid var( --st-border ) !important;
	border-radius: var( --st-radius-md ) !important;
	box-shadow: none !important;
}

.jetmlm-stat::after,
.jetmlm-office-stats > div::after {
	display: none !important;
}

.jetmlm-stat .jetmlm-stat-value,
.jetmlm-office-stats strong,
.jetmlm-insight-stats strong {
	color: var( --st-ink ) !important;
	font-size: clamp( 22px, 3vw, 26px ) !important;
	font-weight: 700 !important;
}

.jetmlm-stat .jetmlm-stat-label,
.jetmlm-office-stats span,
.jetmlm-insight-stats span {
	color: var( --st-muted ) !important;
	font-size: 11px !important;
	font-weight: 500 !important;
}

.jetmlm-bulk-toolbar,
.jetmlm-office-bulk-rank {
	padding: 12px !important;
	background: var( --st-primary-soft ) !important;
	border: 1px solid #cee4de !important;
	border-radius: var( --st-radius-md ) !important;
}

/* Tables */
.jetmlm-team-table-wrap,
.jetmlm-office-table-wrap {
	background: var( --st-surface ) !important;
	border: 1px solid var( --st-border ) !important;
	border-radius: var( --st-radius-lg ) !important;
	box-shadow: none !important;
	overflow: auto;
}

.jetmlm-team-table,
.jetmlm-office-table,
.jetmlm-admin .widefat,
.jetmlm-my-network table {
	color: var( --st-ink ) !important;
	background: var( --st-surface ) !important;
	border: 1px solid var( --st-border ) !important;
	border-radius: var( --st-radius-md );
	box-shadow: none !important;
	font-size: 12px !important;
}

.jetmlm-team-table th,
.jetmlm-office-table th,
.jetmlm-admin .widefat thead th,
.jetmlm-my-network th {
	padding: 12px 10px !important;
	color: #52666a !important;
	background: var( --st-cloud ) !important;
	border-bottom: 1px solid var( --st-border ) !important;
	font-size: 11px !important;
	font-weight: 650 !important;
}

.jetmlm-team-table td,
.jetmlm-office-table td,
.jetmlm-admin .widefat td,
.jetmlm-my-network td {
	padding: 12px 10px !important;
	color: var( --st-ink ) !important;
	background: var( --st-surface ) !important;
	border-bottom: 1px solid #eee8e6 !important;
	font-size: 12px !important;
}

.jetmlm-team-table tbody tr:hover td,
.jetmlm-office-table tbody tr:hover td,
.jetmlm-admin .widefat tbody tr:hover td {
	background: #fdfafa !important;
}

.jetmlm-inline-rank-select,
.jetmlm-office-rank-select {
	min-height: 40px !important;
	font-size: 11px !important;
	font-weight: 600 !important;
}

.jetmlm-row-action-btn,
.jetmlm-member-detail-button {
	min-height: 40px !important;
	padding: 8px 12px !important;
	border-radius: var( --st-radius-sm ) !important;
	font-size: 11px !important;
	font-weight: 650 !important;
}

.jetmlm-row-action-btn.is-approve {
	color: var( --st-success ) !important;
	background: #e9f6f0 !important;
	border-color: #cce8dc !important;
}

.jetmlm-row-action-btn.is-pending {
	color: var( --st-warning ) !important;
	background: #fff7e5 !important;
	border-color: #eed9a9 !important;
}

.jetmlm-row-action-btn.is-danger {
	color: var( --st-danger ) !important;
	background: #fff0ef !important;
	border-color: #efceca !important;
}

.jetmlm-badge {
	min-height: 26px;
	padding: 3px 9px !important;
	border-radius: 999px !important;
	font-size: 10px !important;
	font-weight: 650 !important;
}

.jetmlm-badge.status-approved {
	color: var( --st-success ) !important;
	background: #e9f6f0 !important;
	border: 1px solid #cce8dc !important;
}

.jetmlm-badge.status-pending {
	color: var( --st-warning ) !important;
	background: #fff7e5 !important;
	border: 1px solid #eed9a9 !important;
}

.jetmlm-badge.status-awaiting_referral {
	color: #48676d !important;
	background: var( --st-cloud ) !important;
	border: 1px solid #d8e4e1 !important;
}

.jetmlm-badge.status-rejected {
	color: var( --st-danger ) !important;
	background: #fff0ef !important;
	border: 1px solid #efceca !important;
}

/* Network office */
.jetmlm-office-header {
	padding: clamp( 16px, 2.5vw, 22px ) !important;
	color: var( --st-ink ) !important;
	background: var( --st-surface ) !important;
	border: 1px solid var( --st-border ) !important;
	border-radius: var( --st-radius-lg ) !important;
	box-shadow: var( --st-shadow ) !important;
}

.jetmlm-office-month-label {
	color: var( --st-muted ) !important;
	background: var( --st-soft ) !important;
	border: 1px solid var( --st-border ) !important;
	border-radius: var( --st-radius-md ) !important;
}

.jetmlm-office-month-label select {
	color: var( --st-ink ) !important;
	background: var( --st-surface ) !important;
}

.jetmlm-office-report-grid {
	gap: 14px !important;
}

.jetmlm-office-panel__title h3,
.jetmlm-insight-profile h3,
.jetmlm-member-insight__content h4 {
	color: var( --st-ink ) !important;
	font-size: 15px !important;
	font-weight: 700 !important;
}

.jetmlm-branch-row,
.jetmlm-leader-row {
	padding: 12px !important;
	color: var( --st-ink ) !important;
	background: var( --st-cloud ) !important;
	border: 1px solid #e3eae8 !important;
	border-radius: var( --st-radius-md ) !important;
	box-shadow: none !important;
}

.jetmlm-member-insight__backdrop {
	background: rgba( 30, 43, 46, 0.42 ) !important;
	backdrop-filter: blur( 2px );
}

.jetmlm-member-insight aside {
	color: var( --st-ink ) !important;
	background: var( --st-surface ) !important;
	border-radius: 18px 0 0 18px !important;
	box-shadow: -12px 0 34px rgba( 24, 42, 46, 0.12 ) !important;
}

/* WordPress admin */
.jetmlm-admin {
	max-width: 1180px;
	margin: 18px 0 0 20px;
	padding: clamp( 16px, 2.5vw, 24px ) !important;
	background: var( --st-bg ) !important;
	border: 1px solid var( --st-border );
	border-radius: var( --st-radius-lg );
	box-shadow: none !important;
}

.jetmlm-admin::before,
.jetmlm-admin > h1::before {
	display: none !important;
}

.jetmlm-admin > h1 {
	margin: 0 0 4px !important;
	padding: 0 !important;
	color: var( --st-ink ) !important;
	font-size: 24px !important;
	font-weight: 700 !important;
	line-height: 1.5;
}

.jetmlm-admin-lead,
.jetmlm-admin > p.description {
	max-width: 72ch;
	margin: 0 0 18px !important;
	color: var( --st-muted ) !important;
	font-size: 12px !important;
}

.jetmlm-admin h2 {
	color: var( --st-ink ) !important;
	font-size: 18px !important;
	font-weight: 700 !important;
}

.jetmlm-admin .nav-tab-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 5px !important;
	background: var( --st-soft ) !important;
	border: 1px solid #f0dfdc !important;
	border-radius: var( --st-radius-md ) !important;
}

.jetmlm-admin .nav-tab {
	min-height: 40px;
	margin: 0 !important;
	padding: 9px 14px !important;
	color: #725e5b !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 9px !important;
	font-size: 12px !important;
	font-weight: 550 !important;
}

.jetmlm-admin .nav-tab-active {
	color: var( --st-ink ) !important;
	background: var( --st-surface ) !important;
	box-shadow: 0 3px 10px rgba( 72, 48, 43, 0.07 ) !important;
	font-weight: 700 !important;
}

.jetmlm-tab-content,
.jetmlm-tab-content > form,
.jetmlm-admin #jetmlm-rank-form,
.jetmlm-admin > form:not([method="get"]),
.jetmlm-admin > .form-table {
	background: var( --st-surface ) !important;
	border: 1px solid var( --st-border ) !important;
	border-radius: var( --st-radius-lg ) !important;
	box-shadow: var( --st-shadow ) !important;
}

.jetmlm-admin .form-table th,
.jetmlm-admin .form-table td {
	padding: 14px 12px !important;
	border-bottom: 1px solid #eee8e6 !important;
}

.jetmlm-admin .form-table th {
	color: var( --st-ink ) !important;
	font-size: 12px !important;
	font-weight: 650 !important;
}

.jetmlm-admin .description {
	color: var( --st-muted ) !important;
	font-size: 11px !important;
	line-height: 1.8;
}

.jetmlm-admin .notice {
	color: var( --st-ink ) !important;
	background: var( --st-surface ) !important;
	border: 1px solid var( --st-border ) !important;
	border-right: 4px solid var( --st-primary ) !important;
	border-radius: var( --st-radius-sm ) !important;
	box-shadow: none !important;
}

/* Legacy content gate */
.jetmlm-content-gate {
	padding: 16px;
	background: var( --st-surface );
	border: 1px solid var( --st-border );
	border-radius: var( --st-radius-lg );
	box-shadow: var( --st-shadow );
}

.jetmlm-content-gate .jetmlm-slide {
	background: var( --st-cloud ) !important;
	border: 1px solid var( --st-border ) !important;
	border-radius: var( --st-radius-md ) !important;
	box-shadow: none !important;
}

/* Content bank aligned with the Salonto shell */
.jetmlm-content-page {
	--jcb-accent: var( --st-primary );
	--jcb-ink: var( --st-ink );
	--jcb-muted: var( --st-muted );
	--jcb-line: var( --st-border );
	--jcb-cloud: var( --st-cloud );
	--jcb-mint: var( --st-primary-soft );
	--jcb-white: var( --st-surface );
	width: min( 1180px, 100% );
	padding: clamp( 12px, 2.5vw, 24px );
	background: var( --st-bg ) !important;
	border: 1px solid var( --st-border ) !important;
	border-radius: var( --st-radius-lg ) !important;
	box-shadow: none !important;
}

.jetmlm-content-hero {
	padding: clamp( 16px, 2.5vw, 22px ) !important;
	margin-bottom: clamp( 24px, 4vw, 36px ) !important;
	color: var( --st-ink ) !important;
	background: var( --st-surface ) !important;
	border: 1px solid var( --st-border ) !important;
	border-right: 4px solid var( --st-primary ) !important;
	border-radius: var( --st-radius-lg ) !important;
	box-shadow: var( --st-shadow ) !important;
}

.jetmlm-content-hero::after {
	display: none !important;
}

.jetmlm-content-eyebrow {
	color: var( --st-primary ) !important;
	font-size: 11px !important;
	font-weight: 650 !important;
}

.jetmlm-content-eyebrow span {
	background: var( --st-primary ) !important;
	box-shadow: 0 0 0 4px var( --st-primary-soft ) !important;
}

.jetmlm-content-page .jetmlm-content-title {
	color: var( --st-ink ) !important;
	font-size: clamp( 20px, 2.2vw, 26px ) !important;
	font-weight: 700 !important;
	line-height: 1.55;
}

.jetmlm-format-badge {
	color: var( --st-primary-dark ) !important;
	background: var( --st-primary-soft ) !important;
}

.jetmlm-meta-chip {
	color: #725e5b !important;
	background: var( --st-soft ) !important;
	border-color: #efdfdc !important;
}

.jetmlm-quota-card {
	color: var( --st-ink ) !important;
	background: var( --st-primary-soft ) !important;
	border: 1px solid #cde5df;
	box-shadow: none !important;
}

.jetmlm-quota-card strong {
	color: var( --st-ink ) !important;
	font-size: 22px !important;
	font-weight: 700 !important;
}

.jetmlm-content-page .jetmlm-section-heading h2 {
	color: var( --st-ink ) !important;
	font-size: clamp( 17px, 1.8vw, 20px ) !important;
	font-weight: 700 !important;
}

.jetmlm-content-page .jetmlm-section-heading p {
	color: var( --st-muted ) !important;
	font-size: 12px !important;
}

.jetmlm-asset-card,
.jetmlm-copy-card,
.jetmlm-product-card {
	background: var( --st-surface ) !important;
	border: 1px solid var( --st-border ) !important;
	border-radius: var( --st-radius-lg ) !important;
	box-shadow: var( --st-shadow ) !important;
}

.jetmlm-copy-card header {
	background: var( --st-soft ) !important;
	border-bottom-color: var( --st-border ) !important;
}

.jetmlm-copy-body {
	color: var( --st-ink ) !important;
	font-size: 13px !important;
	line-height: 1.95;
}

.jetmlm-content-page .jetmlm-bank-download {
	min-height: 44px;
	color: #fff !important;
	background: var( --st-primary ) !important;
	border-color: var( --st-primary ) !important;
	font-size: 12px !important;
	font-weight: 650 !important;
}

.jetmlm-content-page .jetmlm-copy-content {
	color: var( --st-primary ) !important;
	background: var( --st-surface ) !important;
	border-color: #cde0dc !important;
}

/* Messages */
.jetmlm-team-notice,
.jetmlm-office-notice,
.jetmlm-content-notice,
.jetmlm-content-gate .jetmlm-message {
	padding: 11px 13px !important;
	border-radius: var( --st-radius-sm ) !important;
	box-shadow: none !important;
	font-size: 12px !important;
	line-height: 1.8;
}

.jetmlm-team-notice.is-success,
.jetmlm-office-notice.is-success {
	color: var( --st-success ) !important;
	background: #e8f5ef !important;
	border: 1px solid #cce8dc !important;
}

.jetmlm-team-notice.is-error,
.jetmlm-office-notice.is-error {
	color: var( --st-danger ) !important;
	background: #fff0ef !important;
	border: 1px solid #efceca !important;
}

/* Responsive system */
@media ( max-width: 1024px ) {
	.jetmlm-leader-identity {
		grid-template-columns: 1fr 1fr;
	}

	.jetmlm-leader-identity__intro {
		grid-column: 1 / -1;
	}
}

@media ( max-width: 782px ) {
	.jetmlm-auth-form,
	.jetmlm-my-network,
	.jetmlm-team-dashboard,
	.jetmlm-network-office,
	.jetmlm-content-page {
		width: 100%;
		max-width: 100%;
		margin-inline: auto;
		padding: 12px !important;
		padding-bottom: max( 88px, calc( 72px + env( safe-area-inset-bottom ) ) ) !important;
		border-radius: 0 !important;
	}

	.jetmlm-auth-form {
		width: calc( 100% - 24px );
		margin: 16px auto;
		padding: 18px !important;
		padding-bottom: 18px !important;
		border-radius: var( --st-radius-lg ) !important;
	}

	.jetmlm-auth-form .jetmlm-name-row {
		grid-template-columns: 1fr;
	}

	.jetmlm-leader-identity {
		grid-template-columns: 1fr;
		padding: 14px !important;
	}

	.jetmlm-leader-identity__intro {
		grid-column: auto;
	}

	.jetmlm-dashboard-accordion__content {
		padding: 10px !important;
	}

	.jetmlm-team-filters,
	.jetmlm-office-filters {
		grid-template-columns: 1fr 1fr !important;
		padding: 10px !important;
	}

	.jetmlm-team-filters input,
	.jetmlm-office-filters input {
		grid-column: 1 / -1;
	}

	.jetmlm-team-dashboard .jetmlm-team-filter,
	.jetmlm-network-office .jetmlm-office-apply {
		grid-column: 1 / -1;
		width: 100%;
	}

	.jetmlm-stat-row,
	.jetmlm-office-stats {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) ) !important;
	}

	.jetmlm-team-table-wrap,
	.jetmlm-office-table-wrap {
		padding: 0 !important;
		background: transparent !important;
		border: 0 !important;
		overflow: visible;
	}

	.jetmlm-team-table tbody tr,
	.jetmlm-office-table tbody tr,
	.jetmlm-mobile-card-table tbody tr {
		margin-bottom: 12px !important;
		background: var( --st-surface ) !important;
		border: 1px solid var( --st-border ) !important;
		border-radius: var( --st-radius-lg ) !important;
		box-shadow: var( --st-shadow ) !important;
	}

	.jetmlm-team-table td,
	.jetmlm-office-table td,
	.jetmlm-mobile-card-table td {
		min-height: 42px;
		padding: 10px 12px !important;
		background: transparent !important;
		border-bottom: 1px solid #eee8e6 !important;
		font-size: 12px !important;
	}

	.jetmlm-team-table td:last-child,
	.jetmlm-office-table td:last-child,
	.jetmlm-mobile-card-table td:last-child {
		border-bottom: 0 !important;
	}

	.jetmlm-row-actions {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 8px !important;
	}

	.jetmlm-row-action-btn,
	.jetmlm-member-detail-button {
		min-height: 44px !important;
	}

	.jetmlm-admin {
		margin: 12px 10px 0 12px;
		padding: 14px !important;
		border-radius: var( --st-radius-md );
	}

	.jetmlm-admin > h1 {
		font-size: 21px !important;
	}

	.jetmlm-admin .form-table th,
	.jetmlm-admin .form-table td {
		display: block;
		width: 100%;
		padding: 8px 10px !important;
		border-bottom: 0 !important;
	}

	.jetmlm-admin .form-table th {
		padding-top: 14px !important;
	}

	.jetmlm-admin .regular-text,
	.jetmlm-admin .large-text {
		width: 100% !important;
	}

	.jetmlm-content-hero {
		grid-template-columns: 1fr !important;
		padding: 16px !important;
		border-right-width: 3px !important;
	}

	.jetmlm-content-page .jetmlm-content-title {
		font-size: 20px !important;
	}

	.jetmlm-quota-card {
		padding: 12px !important;
	}
}

@media ( max-width: 520px ) {
	.jetmlm-auth-form,
	.jetmlm-my-network,
	.jetmlm-team-dashboard,
	.jetmlm-network-office,
	.jetmlm-content-page {
		font-size: 13px;
	}

	.jetmlm-auth-brand h2,
	.jetmlm-content-page .jetmlm-content-title {
		font-size: 20px !important;
	}

	.jetmlm-leader-identity__intro h2,
	.jetmlm-team-heading h2,
	.jetmlm-office-header h2 {
		font-size: 18px !important;
	}

	.jetmlm-view-toggle {
		overflow-x: auto;
		scrollbar-width: none;
	}

	.jetmlm-view-toggle::-webkit-scrollbar {
		display: none;
	}

	.jetmlm-view-toggle button {
		flex: 0 0 auto;
		min-width: 110px;
	}

	.jetmlm-team-filters,
	.jetmlm-office-filters {
		grid-template-columns: 1fr !important;
	}

	.jetmlm-team-filters > *,
	.jetmlm-office-filters > * {
		grid-column: 1 !important;
		width: 100% !important;
	}

	.jetmlm-stat,
	.jetmlm-office-stats > div {
		padding: 12px !important;
	}

	.jetmlm-stat .jetmlm-stat-value,
	.jetmlm-office-stats strong {
		font-size: 22px !important;
	}

	.jetmlm-code-card__actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.jetmlm-code-card__actions button,
	.jetmlm-code-card__actions a {
		width: 100%;
	}

	.jetmlm-asset-actions {
		grid-template-columns: 1fr !important;
	}

	.jetmlm-content-page .jetmlm-bank-download {
		width: 100%;
	}

	.jetmlm-copy-card header {
		gap: 10px;
		padding: 12px !important;
	}

	.jetmlm-copy-body {
		padding: 14px !important;
		font-size: 13px !important;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.jetmlm-auth-form *,
	.jetmlm-content-gate *,
	.jetmlm-my-network *,
	.jetmlm-team-dashboard *,
	.jetmlm-network-office *,
	.jetmlm-content-page *,
	.jetmlm-admin * {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
