/* Wave 7 — UX avanzado webmail */

body.tn-list-compact #V-MailMessageList .messageListItem {
	padding-top: 4px !important;
	padding-bottom: 4px !important;
	min-height: 36px !important;
}

body.tn-list-compact #V-MailMessageList .messageListItem .subjectParent {
	font-size: 0.86rem !important;
}

body.tn-list-compact #V-MailMessageList .messageListItem .fromParent {
	font-size: 0.78rem !important;
}

.tn-account-chip-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
}

.tn-account-chip-bar .tn-acc-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 600;
	background: #fff;
	border: 1px solid #cbd5e1;
	color: #334155;
}

.tn-acc-chip.ok {
	border-color: #86efac;
	background: #f0fdf4;
	color: #166534;
}

.tn-acc-chip.warn {
	border-color: #fdba74;
	background: #fff7ed;
	color: #9a3412;
}

.tn-saved-searches {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 6px 10px 0;
}

.tn-saved-search {
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid #cbd5e1;
	background: #fff;
	font-size: 0.74rem;
	cursor: pointer;
}

.tn-saved-search:hover {
	border-color: var(--tn-primary, #3498db);
}

.tn-empty-icon {
	font-size: 2.4rem;
	line-height: 1;
	margin-bottom: 8px;
}

.tn-bulk-sticky {
	position: sticky;
	top: 0;
	z-index: 25;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.tn-compose-fab {
	display: none;
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 2000;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: none;
	background: linear-gradient(135deg, #3498db, #2980b9);
	color: #fff;
	font-size: 1.6rem;
	box-shadow: 0 6px 20px rgba(41, 128, 185, 0.45);
	cursor: pointer;
}

@media (max-width: 768px) {
	.tn-compose-fab {
		display: block;
	}

	body.tn-mobile-sidebar-open #rl-left {
		transform: translateX(0) !important;
	}

	#rl-left {
		transition: transform 0.2s ease;
	}

	body:not(.tn-mobile-sidebar-open) #rl-left.rl-mobile-show {
		transform: translateX(0) !important;
	}
}

.tn-mobile-menu-btn {
	display: none;
}

@media (max-width: 768px) {
	.tn-mobile-menu-btn {
		display: inline-flex;
	}
}

body.tn-focus-read #rl-left,
body.tn-focus-read.tn-has-open-message #V-MailMessageList {
	display: none !important;
}

body.tn-focus-read #rl-right {
	flex: 1 1 100% !important;
	max-width: 100% !important;
}

.tn-focus-read-exit {
	margin-bottom: 10px;
}

.tn-sender-pop {
	position: absolute;
	z-index: 60;
	min-width: 160px;
	padding: 8px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

.tn-sender-pop button {
	display: block;
	width: 100%;
	margin: 0 0 4px;
	padding: 8px;
	border: none;
	background: #f8fafc;
	border-radius: 6px;
	cursor: pointer;
	text-align: left;
	font: inherit;
}

.tn-suspicious-banner {
	padding: 8px 12px;
	background: #fef3c7;
	border-bottom: 1px solid #fbbf24;
	color: #92400e;
	font-size: 0.84rem;
}

.tn-remote-img-toggle {
	margin: 8px 0;
	padding: 6px 10px;
	border-radius: 8px;
	border: 1px solid #cbd5e1;
	background: #f8fafc;
	font-size: 0.8rem;
	cursor: pointer;
}

body.tn-block-remote-img .messageView img {
	visibility: hidden !important;
	height: 0 !important;
}

.tn-thread-group {
	border-left: 3px solid #93c5fd;
	padding-left: 6px;
	margin-left: 4px;
}

.tn-onboard-wizard {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(15, 23, 42, 0.55);
}

.tn-onboard-card {
	max-width: 420px;
	width: 100%;
	padding: 24px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.tn-onboard-card h2 {
	margin: 0 0 8px;
	font-size: 1.25rem;
}

.tn-onboard-steps {
	margin: 16px 0;
	padding-left: 18px;
	line-height: 1.5;
	color: #475569;
}

.tn-onboard-actions {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
}

.tn-onboard-actions button {
	padding: 8px 14px;
	border-radius: 8px;
	border: 1px solid #cbd5e1;
	background: #fff;
	cursor: pointer;
	font-weight: 600;
}

.tn-onboard-actions .primary {
	background: #3498db;
	border-color: #3498db;
	color: #fff;
}
