/* LinkedIn import modal — Modern Enterprise light (Inter Tight + JetBrains Mono), scoped */
#tg-li-modal.lim-theme-modern {
	--bg: #fafaf9;
	--surface: #ffffff;
	--surface-2: #fafaf9;
	--surface-3: #f4f4f1;
	--surface-4: #ededea;
	--surface-hover: #f0f0ed;
	--border: rgba(0, 0, 0, 0.06);
	--border-strong: rgba(0, 0, 0, 0.1);
	--border-bright: rgba(0, 0, 0, 0.14);
	--ink: #0d0d0d;
	--ink-2: #404040;
	--ink-3: #6f6f6f;
	--ink-4: #a0a0a0;
	--accent: #2563eb;
	--accent-2: #1d4ed8;
	--accent-glow: rgba(37, 99, 235, 0.12);
	--accent-soft: rgba(37, 99, 235, 0.08);
	--success: #16a34a;
	--success-soft: rgba(22, 163, 74, 0.1);
	--danger: #dc2626;
	--danger-soft: rgba(220, 38, 38, 0.08);
	--warning: #d97706;
	--linkedin: #0a66c2;
	--radius: 10px;
	--radius-lg: 14px;
	--radius-2xl: 22px;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
	--shadow-modal: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 12px 32px -12px rgba(0, 0, 0, 0.16),
		0 32px 64px -24px rgba(0, 0, 0, 0.12);
	--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--font: "Inter Tight", -apple-system, BlinkMacSystemFont, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, monospace;

	box-sizing: border-box;
	position: fixed;
	inset: 0;
	z-index: 100090;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	font-family: var(--font);
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
	font-feature-settings: "cv02", "cv03", "cv04", "cv11";
	letter-spacing: -0.005em;
}

#tg-li-modal.lim-theme-modern,
#tg-li-modal.lim-theme-modern * {
	box-sizing: border-box;
}

#tg-li-modal.lim-theme-modern[hidden] {
	display: none !important;
}

#tg-li-modal.lim-theme-modern .lim__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 20, 18, 0.32);
	backdrop-filter: blur(6px) saturate(120%);
	-webkit-backdrop-filter: blur(6px) saturate(120%);
	animation: tglim-fadeIn 0.25s var(--ease);
}

#tg-li-modal.lim-theme-modern .lim__dialog {
	position: relative;
	width: 100%;
	max-width: 720px;
	max-height: min(94vh, 820px);
	display: flex;
	flex-direction: column;
	z-index: 1;
}

#tg-li-modal.lim-theme-modern .lim__shell {
	position: relative;
	width: 100%;
	background: var(--surface);
	border-radius: var(--radius-2xl);
	box-shadow: var(--shadow-modal);
	border: 1px solid var(--border);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	max-height: inherit;
	animation: tglim-slideUp 0.4s var(--ease-out);
}

@keyframes tglim-fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes tglim-slideUp {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.985);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

#tg-li-modal.lim-theme-modern .lim__portal-mark {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 12px 20px 8px;
	flex-shrink: 0;
	border-bottom: 1px solid var(--border);
	background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}

#tg-li-modal.lim-theme-modern .lim__portal-logo {
	height: 24px;
	width: auto;
	max-width: 118px;
	object-fit: contain;
	display: block;
}

#tg-li-modal.lim-theme-modern .lim__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--border);
	background: linear-gradient(180deg, #ffffff 0%, #fbfbfa 100%);
	flex-shrink: 0;
}

#tg-li-modal.lim-theme-modern .lim__brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

#tg-li-modal.lim-theme-modern .lim__logo {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: linear-gradient(135deg, #0a66c2 0%, #084d92 100%);
	display: grid;
	place-items: center;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(10, 102, 194, 0.2);
	flex-shrink: 0;
}

#tg-li-modal.lim-theme-modern .lim__logo svg {
	width: 16px;
	height: 16px;
}

#tg-li-modal.lim-theme-modern .lim__brand-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
	letter-spacing: -0.015em;
}

#tg-li-modal.lim-theme-modern .lim__brand-sub {
	font-family: var(--font-mono);
	font-size: 10.5px;
	color: var(--ink-3);
	letter-spacing: 0.03em;
	margin-top: 2px;
}

#tg-li-modal.lim-theme-modern .lim__header-right {
	display: flex;
	align-items: center;
	gap: 8px;
}

#tg-li-modal.lim-theme-modern .lim__kbd {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-mono);
	font-size: 10.5px;
	color: var(--ink-3);
	padding: 4px 8px;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: var(--surface-2);
}

#tg-li-modal.lim-theme-modern .lim__kbd kbd {
	font-family: inherit;
	font-size: inherit;
	background: var(--surface);
	padding: 1px 5px;
	border-radius: 3px;
	border: 1px solid var(--border-strong);
	color: var(--ink-2);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

#tg-li-modal.lim-theme-modern .lim__close {
	appearance: none;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: 8px;
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
	cursor: pointer;
	color: var(--ink-3);
	transition: all 0.15s var(--ease);
	padding: 0;
}

#tg-li-modal.lim-theme-modern .lim__close:hover {
	background: var(--surface-3);
	color: var(--ink);
	border-color: var(--border-strong);
}

#tg-li-modal.lim-theme-modern .lim__close svg {
	width: 14px;
	height: 14px;
}

#tg-li-modal.lim-theme-modern .lim__stepper {
	display: flex;
	align-items: center;
	gap: 0;
	padding: 14px 20px;
	border-bottom: 1px solid var(--border);
	background: var(--surface);
	flex-shrink: 0;
}

#tg-li-modal.lim-theme-modern .step {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

#tg-li-modal.lim-theme-modern .step__dot {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--surface-3);
	border: 1px solid var(--border-strong);
	color: var(--ink-3);
	font-size: 10.5px;
	font-weight: 600;
	font-family: var(--font-mono);
	display: grid;
	place-items: center;
	transition: all 0.3s var(--ease);
	flex-shrink: 0;
}

#tg-li-modal.lim-theme-modern .step__label {
	font-size: 12.5px;
	color: var(--ink-3);
	font-weight: 500;
	transition: color 0.3s var(--ease);
	letter-spacing: -0.005em;
}

#tg-li-modal.lim-theme-modern .step__line {
	flex: 1;
	height: 1px;
	background: var(--border);
	margin: 0 14px;
	position: relative;
	overflow: hidden;
}

#tg-li-modal.lim-theme-modern .step__line::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--accent), transparent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.5s var(--ease);
}

#tg-li-modal.lim-theme-modern .step.is-active .step__dot {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
	box-shadow: 0 0 0 4px var(--accent-glow);
}

#tg-li-modal.lim-theme-modern .step.is-active .step__label {
	color: var(--ink);
	font-weight: 600;
}

#tg-li-modal.lim-theme-modern .step.is-done .step__dot {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

#tg-li-modal.lim-theme-modern .step.is-done .step__label {
	color: var(--ink-2);
}

#tg-li-modal.lim-theme-modern .step.is-done + .step__line::after {
	transform: scaleX(1);
}

#tg-li-modal.lim-theme-modern .lim__body {
	padding: 28px 28px 8px;
	flex: 1;
	overflow-y: auto;
	min-height: 0;
	-webkit-overflow-scrolling: touch;
}

#tg-li-modal.lim-theme-modern .lim__body::-webkit-scrollbar {
	width: 8px;
}

#tg-li-modal.lim-theme-modern .lim__body::-webkit-scrollbar-track {
	background: transparent;
}

#tg-li-modal.lim-theme-modern .lim__body::-webkit-scrollbar-thumb {
	background: var(--surface-4);
	border-radius: 4px;
	border: 2px solid var(--surface);
}

#tg-li-modal.lim-theme-modern .lim__body::-webkit-scrollbar-thumb:hover {
	background: var(--border-bright);
}

#tg-li-modal.lim-theme-modern .panel {
	display: none;
	animation: tglim-panelIn 0.35s var(--ease-out);
}

#tg-li-modal.lim-theme-modern .panel.is-active {
	display: block;
}

@keyframes tglim-panelIn {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

#tg-li-modal.lim-theme-modern .panel__head {
	margin-bottom: 24px;
}

#tg-li-modal.lim-theme-modern .panel__title {
	font-size: 26px;
	line-height: 1.15;
	font-weight: 600;
	letter-spacing: -0.025em;
	margin: 0 0 6px;
	color: var(--ink);
}

#tg-li-modal.lim-theme-modern .panel__desc {
	font-size: 14px;
	color: var(--ink-3);
	line-height: 1.55;
	margin: 0;
	letter-spacing: -0.005em;
}

#tg-li-modal.lim-theme-modern .tg-li-guest-banner {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 18px;
	padding: 12px 14px;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--ink-2);
	background: var(--surface-2);
	border-radius: var(--radius);
	border: 1px solid var(--border);
	border-left: 3px solid var(--accent);
}

#tg-li-modal.lim-theme-modern .tg-li-guest-banner[hidden] {
	display: none !important;
}

#tg-li-modal.lim-theme-modern .field {
	margin-bottom: 16px;
}

#tg-li-modal.lim-theme-modern .field__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 16px;
}

#tg-li-modal.lim-theme-modern .field__row .field {
	margin-bottom: 0;
}

#tg-li-modal.lim-theme-modern .field__label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12px;
	font-weight: 500;
	color: var(--ink-2);
	margin-bottom: 7px;
	letter-spacing: -0.005em;
}

#tg-li-modal.lim-theme-modern .field__label-aux {
	font-size: 11px;
	color: var(--ink-4);
	font-weight: 400;
}

#tg-li-modal.lim-theme-modern .input-wrap {
	position: relative;
	display: flex;
	align-items: center;
	background: var(--surface);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius);
	transition: all 0.15s var(--ease);
	overflow: hidden;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

#tg-li-modal.lim-theme-modern .input-wrap:hover {
	border-color: var(--border-bright);
}

#tg-li-modal.lim-theme-modern .input-wrap:focus-within {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-glow);
}

#tg-li-modal.lim-theme-modern .input-wrap__icon {
	padding: 0 0 0 12px;
	color: var(--ink-3);
	display: flex;
	align-items: center;
}

#tg-li-modal.lim-theme-modern .input-wrap__icon svg {
	width: 15px;
	height: 15px;
}

#tg-li-modal.lim-theme-modern .input-wrap__prefix {
	padding: 0 11px;
	color: var(--ink-2);
	font-size: 13.5px;
	font-variant-numeric: tabular-nums;
	font-weight: 500;
	border-right: 1px solid var(--border);
	align-self: stretch;
	display: flex;
	align-items: center;
	background: var(--surface-2);
}

#tg-li-modal.lim-theme-modern .input {
	flex: 1;
	appearance: none;
	border: 0;
	background: transparent;
	padding: 11px 13px;
	font-family: inherit;
	font-size: 13.5px;
	color: var(--ink);
	outline: none;
	width: 100%;
	letter-spacing: -0.005em;
}

#tg-li-modal.lim-theme-modern .input::placeholder {
	color: var(--ink-4);
}

#tg-li-modal.lim-theme-modern .input--with-icon {
	padding-left: 8px;
}

#tg-li-modal.lim-theme-modern .field__hint {
	font-size: 11.5px;
	color: var(--ink-3);
	margin: 7px 0 0;
	line-height: 1.5;
	display: flex;
	align-items: center;
	gap: 6px;
}

#tg-li-modal.lim-theme-modern .field__hint svg {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	color: var(--ink-4);
}

#tg-li-modal.lim-theme-modern .tg-li-match-panel {
	margin-bottom: 16px;
}

#tg-li-modal.lim-theme-modern .tg-li-match-intro {
	font-size: 14px;
	color: var(--ink-2);
	margin: 0 0 12px;
	line-height: 1.45;
}

#tg-li-modal.lim-theme-modern .tg-li-search-busy {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	margin-bottom: 16px;
	border-radius: var(--radius);
	border: 1px solid rgba(37, 99, 235, 0.28);
	background: rgba(37, 99, 235, 0.06);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

#tg-li-modal.lim-theme-modern .tg-li-search-busy[hidden] {
	display: none !important;
}

#tg-li-modal.lim-theme-modern .tg-li-search-busy__spinner {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	border: 2px solid var(--border-strong);
	border-top-color: var(--accent);
	border-radius: 50%;
	animation: tg-li-busy-spin 0.7s linear infinite;
}

#tg-li-modal.lim-theme-modern .tg-li-search-busy__msg {
	font-size: 14px;
	font-weight: 500;
	color: var(--ink);
	line-height: 1.4;
	margin: 0;
}

@keyframes tg-li-busy-spin {
	to {
		transform: rotate(360deg);
	}
}

#tg-li-modal.lim-theme-modern .tg-li-match-mount {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

#tg-li-modal.lim-theme-modern .tg-li-result {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius);
	background: var(--surface);
	cursor: pointer;
	text-align: left;
	width: 100%;
	font-family: inherit;
	color: var(--ink);
	transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
}

#tg-li-modal.lim-theme-modern .tg-li-result:hover {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-glow);
	background: var(--surface-2);
}

#tg-li-modal.lim-theme-modern .tg-li-result__body {
	flex: 1;
	min-width: 0;
}

#tg-li-modal.lim-theme-modern .tg-li-result__name {
	font-size: 14px;
	font-weight: 600;
	margin: 0;
	letter-spacing: -0.01em;
}

#tg-li-modal.lim-theme-modern .tg-li-result__meta {
	font-size: 12px;
	color: var(--ink-3);
	margin: 4px 0 0;
	line-height: 1.4;
}

#tg-li-modal.lim-theme-modern .tg-li-result__avatar-wrap {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--surface-2);
	border: 2px solid var(--border-strong);
	align-self: flex-start;
	box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

#tg-li-modal.lim-theme-modern .tg-li-result__avatar-wrap--empty {
	background: linear-gradient(145deg, #4f46e5 0%, #6366f1 48%, #7c3aed 100%);
	border-color: rgba(79, 70, 229, 0.45);
	box-shadow:
		0 3px 12px rgba(79, 70, 229, 0.25),
		inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

#tg-li-modal.lim-theme-modern .tg-li-result__avatar-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 15px;
	font-weight: 800;
	line-height: 1;
	color: #fff;
	letter-spacing: -0.04em;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
	user-select: none;
}

#tg-li-modal.lim-theme-modern .tg-li-result__avatar {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

#tg-li-modal.lim-theme-modern .tg-li-result__title-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

#tg-li-modal.lim-theme-modern .tg-li-result__title-row .tg-li-result__name {
	flex: 1;
	min-width: 0;
	margin: 0;
}

#tg-li-modal.lim-theme-modern .tg-li-result__pct {
	flex: 0 0 auto;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--accent-2);
	background: var(--accent-soft);
	padding: 5px 10px;
	border-radius: 999px;
	white-space: nowrap;
	line-height: 1.15;
	align-self: flex-start;
	border: 1px solid transparent;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#tg-li-modal.lim-theme-modern .tg-li-result:hover .tg-li-result__pct {
	transform: translateY(-1px);
}

#tg-li-modal.lim-theme-modern .tg-li-result__pct--high {
	color: #fff;
	border-color: rgba(5, 150, 105, 0.35);
	background: linear-gradient(135deg, #047857 0%, #059669 38%, #10b981 72%, #0d9488 100%);
	box-shadow:
		0 2px 0 rgba(0, 0, 0, 0.06),
		0 6px 16px rgba(5, 150, 105, 0.38);
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

#tg-li-modal.lim-theme-modern .tg-li-result__pct--mid {
	color: #78350f;
	border-color: rgba(217, 119, 6, 0.45);
	background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 55%, #ea580c 100%);
	box-shadow:
		0 2px 0 rgba(255, 255, 255, 0.45) inset,
		0 5px 14px rgba(234, 88, 12, 0.28);
}

#tg-li-modal.lim-theme-modern .tg-li-result__pct--low {
	color: #faf5ff;
	border-color: rgba(124, 58, 237, 0.5);
	background: linear-gradient(135deg, #6d28d9 0%, #9333ea 52%, #a855f7 100%);
	box-shadow:
		0 2px 0 rgba(0, 0, 0, 0.08),
		0 6px 16px rgba(109, 40, 217, 0.35);
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

#tg-li-modal.lim-theme-modern .tg-li-match-intro {
	color: var(--ink-3);
	line-height: 1.45;
}

#tg-li-modal.lim-theme-modern .tg-li-url-fallback-btn {
	display: block;
	width: 100%;
	margin-top: 12px;
	padding: 0;
	border: 0;
	background: none;
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	color: var(--accent);
	cursor: pointer;
	text-align: center;
	text-decoration: underline;
	text-underline-offset: 3px;
}

#tg-li-modal.lim-theme-modern .tg-li-url-fallback-btn:hover {
	color: var(--accent-2);
}

#tg-li-modal.lim-theme-modern .alert {
	display: none;
	align-items: flex-start;
	gap: 10px;
	padding: 11px 13px;
	background: var(--danger-soft);
	border: 1px solid rgba(220, 38, 38, 0.22);
	border-radius: var(--radius);
	color: var(--danger);
	font-size: 12.5px;
	line-height: 1.45;
	margin-bottom: 12px;
}

#tg-li-modal.lim-theme-modern .alert.is-visible {
	display: flex;
}

#tg-li-modal.lim-theme-modern .alert svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	margin-top: 1px;
}

/* Review grid */
#tg-li-modal.lim-theme-modern .review-grid {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 16px;
	margin-bottom: 16px;
}

#tg-li-modal.lim-theme-modern .profile-card {
	background: var(--surface);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-lg);
	overflow: hidden;
	height: fit-content;
	position: sticky;
	top: 0;
	box-shadow: var(--shadow-sm);
}

#tg-li-modal.lim-theme-modern .profile-card__cover {
	height: 64px;
	background: linear-gradient(135deg, #0a66c2 0%, #084d92 50%, #1e3a8a 100%);
	position: relative;
	overflow: hidden;
}

#tg-li-modal.lim-theme-modern .profile-card__cover::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18) 0%, transparent 50%),
		radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

#tg-li-modal.lim-theme-modern .profile-card__avatar-wrap {
	padding: 0 14px;
	margin-top: -28px;
	position: relative;
	z-index: 1;
}

#tg-li-modal.lim-theme-modern .profile-card__avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: linear-gradient(135deg, #f0f0ed 0%, #d8d8d3 100%);
	border: 3px solid var(--surface);
	display: grid;
	place-items: center;
	font-weight: 600;
	color: var(--ink-2);
	font-size: 16px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

#tg-li-modal.lim-theme-modern .profile-card__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

#tg-li-modal.lim-theme-modern .profile-card__body {
	padding: 10px 14px 14px;
}

#tg-li-modal.lim-theme-modern .profile-card__name {
	font-size: 15px;
	font-weight: 600;
	margin: 0;
	letter-spacing: -0.015em;
	color: var(--ink);
}

#tg-li-modal.lim-theme-modern .profile-card__handle {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--ink-3);
	margin: 2px 0 8px;
	word-break: break-all;
}

#tg-li-modal.lim-theme-modern .profile-card__headline {
	font-size: 12.5px;
	color: var(--ink-2);
	margin: 0 0 6px;
	line-height: 1.45;
}

#tg-li-modal.lim-theme-modern .profile-card__loc {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 11.5px;
	color: var(--ink-3);
	margin: 0;
}

#tg-li-modal.lim-theme-modern .profile-card__loc svg {
	width: 11px;
	height: 11px;
	flex-shrink: 0;
}

#tg-li-modal.lim-theme-modern .data-sections {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

#tg-li-modal.lim-theme-modern .data-section {
	background: var(--surface);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}

#tg-li-modal.lim-theme-modern .data-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 11px 14px;
	border-bottom: 1px solid var(--border);
	background: var(--surface-2);
}

#tg-li-modal.lim-theme-modern .data-section__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--ink);
	letter-spacing: -0.005em;
}

#tg-li-modal.lim-theme-modern .data-section__icon {
	width: 22px;
	height: 22px;
	border-radius: 5px;
	background: var(--surface);
	border: 1px solid var(--border-strong);
	display: grid;
	place-items: center;
	color: var(--ink-2);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

#tg-li-modal.lim-theme-modern .data-section__icon svg {
	width: 11px;
	height: 11px;
}

#tg-li-modal.lim-theme-modern .data-section__count {
	font-family: var(--font-mono);
	font-size: 10.5px;
	font-weight: 500;
	color: var(--ink-2);
	background: var(--surface);
	padding: 2px 7px;
	border-radius: 999px;
	border: 1px solid var(--border-strong);
}

#tg-li-modal.lim-theme-modern .data-section__body {
	padding: 12px 14px;
}

#tg-li-modal.lim-theme-modern .about-text {
	font-size: 12.5px;
	color: var(--ink-2);
	line-height: 1.55;
	margin: 0;
}

#tg-li-modal.lim-theme-modern .timeline {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
	position: relative;
}

#tg-li-modal.lim-theme-modern .timeline::before {
	content: "";
	position: absolute;
	left: 5px;
	top: 8px;
	bottom: 8px;
	width: 1px;
	background: var(--border-strong);
}

#tg-li-modal.lim-theme-modern .timeline-item {
	position: relative;
	padding: 4px 0 12px 22px;
}

#tg-li-modal.lim-theme-modern .timeline-item:last-child {
	padding-bottom: 0;
}

#tg-li-modal.lim-theme-modern .timeline-item::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 7px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 3px var(--surface);
}

#tg-li-modal.lim-theme-modern .timeline-item__title {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ink);
	margin: 0;
	letter-spacing: -0.005em;
}

#tg-li-modal.lim-theme-modern .timeline-item__company {
	color: var(--ink-2);
	font-weight: 500;
}

#tg-li-modal.lim-theme-modern .timeline-item__sub {
	font-size: 11.5px;
	color: var(--ink-3);
	margin: 2px 0 0;
	display: flex;
	align-items: center;
	gap: 6px;
}

#tg-li-modal.lim-theme-modern .timeline-item__dot {
	width: 2px;
	height: 2px;
	border-radius: 50%;
	background: var(--ink-4);
}

#tg-li-modal.lim-theme-modern .skill-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

#tg-li-modal.lim-theme-modern .skill-tag {
	font-size: 11.5px;
	padding: 4px 9px;
	background: var(--surface-2);
	border: 1px solid var(--border-strong);
	border-radius: 999px;
	color: var(--ink-2);
	font-weight: 500;
	transition: all 0.15s var(--ease);
}

#tg-li-modal.lim-theme-modern .skill-tag:hover {
	background: var(--surface-3);
	color: var(--ink);
}

#tg-li-modal.lim-theme-modern .skill-tag--more {
	color: var(--ink-3);
	font-family: var(--font-mono);
	font-size: 10.5px;
}

#tg-li-modal.lim-theme-modern .sync-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-lg);
	background: var(--surface);
	margin-bottom: 8px;
	margin-top: 8px;
	box-shadow: var(--shadow-sm);
}

#tg-li-modal.lim-theme-modern .sync-card__icon {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: var(--accent-soft);
	border: 1px solid rgba(37, 99, 235, 0.15);
	display: grid;
	place-items: center;
	color: var(--accent);
	flex-shrink: 0;
}

#tg-li-modal.lim-theme-modern .sync-card__icon svg {
	width: 16px;
	height: 16px;
}

#tg-li-modal.lim-theme-modern .sync-card__title {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ink);
	margin: 0;
	letter-spacing: -0.005em;
}

#tg-li-modal.lim-theme-modern .sync-card__desc {
	font-size: 11.5px;
	color: var(--ink-3);
	margin: 2px 0 0;
	line-height: 1.45;
}

#tg-li-modal.lim-theme-modern .switch {
	position: relative;
	width: 38px;
	height: 22px;
	flex-shrink: 0;
}

#tg-li-modal.lim-theme-modern .switch input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
	margin: 0;
}

#tg-li-modal.lim-theme-modern .switch__track {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: var(--surface-4);
	border: 1px solid var(--border-strong);
	transition: all 0.2s var(--ease);
}

#tg-li-modal.lim-theme-modern .switch__track::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--surface);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
	transition: all 0.2s var(--ease);
}

#tg-li-modal.lim-theme-modern .switch input:checked + .switch__track {
	background: var(--accent);
	border-color: var(--accent);
}

#tg-li-modal.lim-theme-modern .switch input:checked + .switch__track::after {
	transform: translateX(16px);
	background: #fff;
}

/* Success */
#tg-li-modal.lim-theme-modern .success {
	text-align: center;
	padding: 16px 0 8px;
}

#tg-li-modal.lim-theme-modern .success__icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--success-soft);
	border: 1px solid rgba(22, 163, 74, 0.2);
	display: grid;
	place-items: center;
	margin: 0 auto 18px;
	color: var(--success);
	position: relative;
}

#tg-li-modal.lim-theme-modern .success__icon svg {
	width: 28px;
	height: 28px;
	position: relative;
	z-index: 1;
}

#tg-li-modal.lim-theme-modern .success__title {
	font-size: 26px;
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: -0.025em;
	margin: 0 0 8px;
	color: var(--ink);
}

#tg-li-modal.lim-theme-modern .success__desc {
	font-size: 14px;
	color: var(--ink-3);
	margin: 0 0 24px;
	line-height: 1.55;
	max-width: 420px;
	margin-inline: auto;
}

#tg-li-modal.lim-theme-modern .stats-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	text-align: left;
	max-width: 480px;
	margin: 0 auto;
}

#tg-li-modal.lim-theme-modern .stat {
	padding: 14px;
	background: var(--surface);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-lg);
	position: relative;
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}

#tg-li-modal.lim-theme-modern .stat__num {
	font-size: 28px;
	font-weight: 600;
	color: var(--ink);
	letter-spacing: -0.03em;
	line-height: 1;
	display: flex;
	align-items: baseline;
	gap: 4px;
}

#tg-li-modal.lim-theme-modern .stat__delta {
	font-size: 11px;
	color: var(--success);
	font-family: var(--font-mono);
	font-weight: 500;
}

#tg-li-modal.lim-theme-modern .stat__label {
	font-size: 11px;
	color: var(--ink-3);
	font-family: var(--font-mono);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin-top: 6px;
}

#tg-li-modal.lim-theme-modern .lim__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 20px;
	border-top: 1px solid var(--border);
	background: var(--surface-2);
	flex-shrink: 0;
	flex-wrap: wrap;
}

#tg-li-modal.lim-theme-modern .lim__footer-meta {
	font-size: 11.5px;
	color: var(--ink-3);
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	min-width: 0;
	flex-wrap: wrap;
}

#tg-li-modal.lim-theme-modern .badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 7px;
	background: var(--surface);
	border: 1px solid var(--border-strong);
	border-radius: 5px;
	font-size: 10.5px;
	font-family: var(--font-mono);
	font-weight: 500;
	color: var(--ink-2);
}

#tg-li-modal.lim-theme-modern .badge svg {
	width: 10px;
	height: 10px;
}

#tg-li-modal.lim-theme-modern .badge--success {
	color: var(--success);
	border-color: rgba(22, 163, 74, 0.25);
	background: var(--success-soft);
}

#tg-li-modal.lim-theme-modern .actions {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
	flex-wrap: wrap;
	justify-content: flex-end;
}

#tg-li-modal.lim-theme-modern .actions.actions--single {
	width: 100%;
	justify-content: stretch;
}

#tg-li-modal.lim-theme-modern .actions.actions--single .lim-btn {
	flex: 1;
	justify-content: center;
}

#tg-li-modal.lim-theme-modern .lim-btn {
	appearance: none;
	border: 1px solid transparent;
	border-radius: 8px;
	padding: 8px 14px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease),
		transform 0.15s var(--ease), box-shadow 0.15s var(--ease), opacity 0.15s var(--ease);
	display: inline-flex;
	align-items: center;
	gap: 7px;
	line-height: 1;
	letter-spacing: -0.005em;
	white-space: nowrap;
	background: transparent;
}

/* Modal actions use .lim-btn (not .btn) to avoid Bootstrap global button styles */
#tg-li-modal.lim-theme-modern button.lim-btn.lim-btn--accent,
#tg-li-modal.lim-theme-modern button.lim-btn.lim-btn--accent span {
	color: #fff;
	-webkit-text-fill-color: #fff;
}

#tg-li-modal.lim-theme-modern button.lim-btn.lim-btn--accent:hover:not(:disabled),
#tg-li-modal.lim-theme-modern button.lim-btn.lim-btn--accent:hover:not(:disabled) span,
#tg-li-modal.lim-theme-modern button.lim-btn.lim-btn--accent:focus-visible:not(:disabled),
#tg-li-modal.lim-theme-modern button.lim-btn.lim-btn--accent:focus-visible:not(:disabled) span {
	color: #fff;
	-webkit-text-fill-color: #fff;
}

#tg-li-modal.lim-theme-modern button.lim-btn.lim-btn--primary,
#tg-li-modal.lim-theme-modern button.lim-btn.lim-btn--primary span {
	color: #fff;
	-webkit-text-fill-color: #fff;
}

#tg-li-modal.lim-theme-modern button.lim-btn.lim-btn--primary:hover:not(:disabled),
#tg-li-modal.lim-theme-modern button.lim-btn.lim-btn--primary:hover:not(:disabled) span,
#tg-li-modal.lim-theme-modern button.lim-btn.lim-btn--primary:focus-visible:not(:disabled),
#tg-li-modal.lim-theme-modern button.lim-btn.lim-btn--primary:focus-visible:not(:disabled) span {
	color: #fff;
	-webkit-text-fill-color: #fff;
}

#tg-li-modal.lim-theme-modern button.lim-btn.lim-btn--ghost,
#tg-li-modal.lim-theme-modern button.lim-btn.lim-btn--ghost span {
	color: var(--ink-2);
	-webkit-text-fill-color: currentColor;
}

#tg-li-modal.lim-theme-modern button.lim-btn.lim-btn--ghost:hover:not(:disabled),
#tg-li-modal.lim-theme-modern button.lim-btn.lim-btn--ghost:hover:not(:disabled) span,
#tg-li-modal.lim-theme-modern button.lim-btn.lim-btn--ghost:focus-visible:not(:disabled),
#tg-li-modal.lim-theme-modern button.lim-btn.lim-btn--ghost:focus-visible:not(:disabled) span {
	color: var(--ink);
	-webkit-text-fill-color: currentColor;
}

#tg-li-modal.lim-theme-modern .lim-btn svg {
	width: 14px;
	height: 14px;
}

#tg-li-modal.lim-theme-modern .lim-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

#tg-li-modal.lim-theme-modern .lim-btn--ghost {
	background: var(--surface);
	color: var(--ink-2);
	border-color: var(--border-strong);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

#tg-li-modal.lim-theme-modern .lim-btn--ghost:hover:not(:disabled) {
	background: var(--surface-2);
	color: var(--ink);
	border-color: var(--border-bright);
}

#tg-li-modal.lim-theme-modern .lim-btn--primary {
	background: var(--ink);
	color: #fff;
	border-color: var(--ink);
	font-weight: 600;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

#tg-li-modal.lim-theme-modern .lim-btn--primary:hover:not(:disabled) {
	background: #000;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

#tg-li-modal.lim-theme-modern .lim-btn--accent {
	background: var(--accent);
	color: #fff;
	border-color: var(--accent);
	font-weight: 600;
	box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2), 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}

#tg-li-modal.lim-theme-modern .lim-btn--accent:hover:not(:disabled) {
	background: var(--accent-2);
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3), 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}

#tg-li-modal.lim-theme-modern .lim-btn__spinner {
	width: 12px;
	height: 12px;
	border: 1.5px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: tglim-spin 0.7s linear infinite;
	display: none;
}

#tg-li-modal.lim-theme-modern .lim-btn.is-loading .lim-btn__spinner {
	display: inline-block;
}

#tg-li-modal.lim-theme-modern .lim-btn.is-loading .lim-btn__icon {
	display: none;
}

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

#tg-li-modal.lim-theme-modern .tg-li-final-msg {
	font-size: 13px;
	line-height: 1.55;
	text-align: center;
	color: var(--ink-2);
	margin-top: 16px;
	max-width: 420px;
	margin-inline: auto;
}

#tg-li-modal.lim-theme-modern .tg-li-final-msg--guest {
	text-align: left;
	padding: 12px;
	background: var(--surface-2);
	border-radius: var(--radius);
	border: 1px solid var(--border);
}

#tg-li-modal.lim-theme-modern .tg-li-final-msg--warn {
	padding: 12px;
	background: rgba(217, 119, 6, 0.08);
	border-radius: var(--radius);
	border: 1px solid rgba(217, 119, 6, 0.22);
	color: var(--warning);
	word-break: break-all;
}

#tg-li-modal.lim-theme-modern .tg-li-final-k {
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ink-3);
	margin-right: 8px;
}

@media (max-width: 720px) {
	#tg-li-modal.lim-theme-modern {
		padding: 0;
		align-items: flex-end;
	}

	#tg-li-modal.lim-theme-modern .lim__dialog {
		max-width: 100%;
		max-height: 94vh;
	}

	#tg-li-modal.lim-theme-modern .lim__shell {
		border-radius: 18px 18px 0 0;
	}

	#tg-li-modal.lim-theme-modern .lim__body {
		padding: 22px 18px 8px;
	}

	#tg-li-modal.lim-theme-modern .field__row {
		grid-template-columns: 1fr;
	}

	#tg-li-modal.lim-theme-modern .review-grid {
		grid-template-columns: 1fr;
	}

	#tg-li-modal.lim-theme-modern .profile-card {
		position: static;
	}

	#tg-li-modal.lim-theme-modern .step__label {
		display: none;
	}

	#tg-li-modal.lim-theme-modern .step__line {
		margin: 0 8px;
	}

	#tg-li-modal.lim-theme-modern .lim__kbd {
		display: none;
	}

	#tg-li-modal.lim-theme-modern .stats-grid {
		grid-template-columns: 1fr;
	}

	#tg-li-modal.lim-theme-modern .panel__title {
		font-size: 22px;
	}

	#tg-li-modal.lim-theme-modern .actions {
		width: 100%;
		justify-content: stretch;
	}

	#tg-li-modal.lim-theme-modern .actions .lim-btn {
		flex: 1;
		justify-content: center;
	}
}
