.TM_roadmap {
	--rm-bg: #f4f5f7;
	--rm-card: #ffffff;
	--rm-border: #e5e7eb;
	--rm-text: #111827;
	--rm-muted: #6b7280;
	--rm-accent: #2563eb;
	--rm-accent-soft: #eff6ff;
	--rm-radius: 12px;
}

.TM_roadmap .roadmap-header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.TM_roadmap .roadmap-search-trigger {
	width: 42px;
	height: 42px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
}

.roadmap-search-modal-dialog {
	max-width: 560px;
}
.roadmap-search-modal {
	border: 0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(16, 24, 40, 0.18);
}
.roadmap-search-modal-input-wrap {
	position: relative;
    padding: 16px 16px 0;
}

.roadmap-search-modal-icon {
	position: absolute;
	left: 28px;
	top: 50%;
	transform: translateY(-50%);
	margin-top: 7px;
	width: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	pointer-events: none;
	z-index: 2;
}

.roadmap-search-modal-input {
	height: 52px;
	padding: 0 16px 0 42px;
	box-shadow: none;
	&:focus {
		box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.12);
	}
}
.roadmap-search-modal-results {
	max-height: 420px;
	overflow-y: auto;
	min-height: 72px;
	padding: 8px 0 12px;
}
.roadmap-search-modal-message {
	padding: 24px 18px;
	text-align: center;
	font-size: 14px;
}
.roadmap-search-results-list {
	list-style: none;
	margin: 0;
	padding: 8px 0;
}
.roadmap-search-result-link {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 16px;
	text-decoration: none !important;
	color: inherit;
}
.roadmap-search-result-link:hover {
	background: #f8fafc;
}
.roadmap-search-result-icon,
.roadmap-search-result-thumb {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: #eff6ff;
	color: #2563eb;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
}
.roadmap-search-result-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.roadmap-search-result-content {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.roadmap-search-result-title {
	font-weight: 700;
	font-size: 14px;
	line-height: 1.35;
}
.roadmap-search-result-meta {
	font-size: 12px;
	color: #6b7280;
}
.roadmap-search-result-excerpt {
	font-size: 12px;
	color: #9ca3af;
	line-height: 1.4;
}

.TM_roadmap .roadmap-flash {
	margin: 16px 0;
}

.TM_roadmap .roadmap-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
}

.TM_roadmap .roadmap-header h1 {
	margin: 0 0 6px;
	font-size: 32px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.TM_roadmap .roadmap-tagline,
.TM_roadmap .roadmap-header-copy .roadmap-tagline {
	margin: 0;
	color: var(--rm-muted);
	font-size: 15px;
	max-width: 52ch;
	line-height: 1.5;
}

.TM_roadmap .roadmap-cta {
	white-space: nowrap;
	border-radius: 8px;
	font-weight: 600;
	padding: 10px 16px;
}

.TM_roadmap .roadmap-login-hint {
	margin: 16px 0;
}

.TM_roadmap .roadmap-login-hint a {
	font-weight: 700;
	margin-left: 6px;
}

.TM_roadmap .roadmap-login-hint.inline {
	display: inline-block;
	margin: 0;
	padding: 6px 10px;
	vertical-align: middle;
}

.roadmap-toast-wrap {
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 1080;
	pointer-events: none;
}

.roadmap-toast-wrap .toast {
	pointer-events: auto;
}

.roadmap-toast-wrap .roadmap-toast-danger {
	background-color: #f8d7da;
	border-color: #f5c6cb;
	color: #721c24;
}

.roadmap-toast-wrap .roadmap-toast-danger .toast-header {
	background-color: #dc3545;
	border-bottom-color: #c82333;
	color: #fff;
}

.roadmap-toast-wrap .roadmap-toast-danger .toast-header .close {
	color: #fff;
	opacity: 0.85;
	text-shadow: none;
}

.roadmap-toast-wrap .roadmap-toast-danger .toast-header .close:hover {
	opacity: 1;
}

.roadmap-toast-wrap .roadmap-toast-danger .toast-body a {
	color: #721c24;
	text-decoration: underline;
}

.roadmap-toast-wrap .roadmap-toast-success {
	background-color: #d4edda;
	border-color: #c3e6cb;
	color: #155724;
}

.roadmap-toast-wrap .roadmap-toast-success .toast-header {
	background-color: #28a745;
	border-bottom-color: #1e7e34;
	color: #fff;
}

.roadmap-toast-wrap .roadmap-toast-success .toast-header .close {
	color: #fff;
	opacity: 0.85;
	text-shadow: none;
}

.roadmap-toast-wrap .roadmap-toast-success .toast-header .close:hover {
	opacity: 1;
}

.TM_roadmap .card-header-pills .nav-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.TM_roadmap .roadmap-tabs .tab-label {
	white-space: nowrap;
}

.TM_roadmap .roadmap-tab-content {
	padding-top: 20px;
}

.TM_roadmap .empty-board {
	color: #9ca3af;
	font-size: 14px;
	font-style: italic;
	padding: 32px 12px;
	text-align: center;
}

.TM_roadmap .roadmap-section-heading {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 8px 0 22px;
	width: 100%;
}

.TM_roadmap .roadmap-section-heading::before,
.TM_roadmap .roadmap-section-heading::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #d5dce5;
}

.TM_roadmap .roadmap-section-heading span {
	flex: 0 0 auto;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-align: center;
	white-space: nowrap;
}

.TM_roadmap .roadmap-card {
	display: flex;
	flex-direction: column;
	padding: 0;
	overflow: hidden;
	margin-bottom: 0;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.TM_roadmap .roadmap-card:hover {
	border-color: var(--primary)!important;
	box-shadow: 0 4px 12px rgba(16, 24, 40, 0.06);
}

.TM_roadmap .roadmap-card-image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f3f4f6;
}

.TM_roadmap .roadmap-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.TM_roadmap .roadmap-card-main {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 14px;
	flex: 1;
}

.TM_roadmap .roadmap-card-body {
	min-width: 0;
	flex: 1;
}

.TM_roadmap .roadmap-card h3 {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
}

.TM_roadmap .roadmap-card h3 a {
	color: inherit;
	text-decoration: none;
}

.TM_roadmap .roadmap-card h3 a:hover {
	color: var(--rm-accent);
}

.TM_roadmap .card-excerpt {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.TM_roadmap .roadmap-vote {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	width: 64px;
	height: 64px;
	min-width: 64px;
	min-height: 64px;
	padding: 0;
	border-radius: 8px;
	text-decoration: none !important;
	font-weight: 700;
	font-size: 13px;
	line-height: 1;
	flex-shrink: 0;
	align-self: center;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.TM_roadmap .roadmap-vote .far,
.TM_roadmap .roadmap-vote .fas {
	font-size: 14px;
	line-height: 1;
}

.TM_roadmap .roadmap-vote .vote-count {
	font-size: 12px;
	line-height: 1;
}

.TM_roadmap .roadmap-vote:hover {
	border-color: var(--primary)!important;
}

.TM_roadmap .roadmap-vote.is-voted {
	border-color: var(--primary)!important;
}

.TM_roadmap .roadmap-vote.needs-login {
	opacity: 0.85;
}

.TM_roadmap .vote-caret {
	display: block;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-bottom: 7px solid currentColor;
	margin-bottom: 4px;
}

.TM_roadmap .vote-count {
	display: block;
}

.TM_roadmap .roadmap-vote-lg {
	flex-direction: row;
	gap: 8px;
	min-width: auto;
	min-height: auto;
	height: auto;
	width: auto;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 14px;
}

.TM_roadmap .roadmap-vote-lg .vote-caret {
	margin: 0;
}

.TM_roadmap .vote-label {
	font-weight: 600;
}

/* Board accent colors */
.TM_roadmap .board-dot-feedback,
.TM_roadmap .roadmap-board-badge.board-feedback { background: #6366f1; }
.TM_roadmap .board-dot-planned,
.TM_roadmap .roadmap-board-badge.board-planned { background: #0ea5e9; }
.TM_roadmap .board-dot-in-progress,
.TM_roadmap .roadmap-board-badge.board-in-progress { background: #f59e0b; }
.TM_roadmap .board-dot-next,
.TM_roadmap .roadmap-board-badge.board-next { background: #10b981; }
.TM_roadmap .board-dot-released,
.TM_roadmap .roadmap-board-badge.board-released { background: #22c55e; }

.TM_roadmap #tab-feedback .board-count,
.TM_roadmap .board-feedback .board-count { background: #e0e7ff; color: #3730a3; }
.TM_roadmap #tab-planned .board-count { background: #e0f2fe; color: #075985; }
.TM_roadmap #tab-in-progress .board-count { background: #fef3c7; color: #92400e; }
.TM_roadmap #tab-next .board-count { background: #d1fae5; color: #065f46; }
.TM_roadmap #tab-released .board-count { background: #dcfce7; color: #166534; }

.TM_roadmap .roadmap-back {
	margin-bottom: 14px;
}

.TM_roadmap .roadmap-board-badge {
	display: inline-block;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	background: #64748b;
	margin-bottom: 8px;
}

.TM_roadmap .roadmap-item-hero h1 {
	margin: 0 0 14px;
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.TM_roadmap .roadmap-item-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}


.TM_roadmap .roadmap-item-content img {
	max-width: 100%;
	height: auto;
}

.TM_roadmap .roadmap-item-content table {
	width: 100%;
	margin-bottom: 1em;
}

.TM_roadmap .roadmap-comments-section {
	margin-top: 36px;
	padding-top: 28px;
}
.TM_roadmap .roadmap-comments-section h2 {
	margin: 0 0 18px;
}
.TM_roadmap .comment-item {
	padding: 14px 16px;
	margin-bottom: 12px;
}
.TM_roadmap .comment-item.roadmap-staff-comment {
	border-color: rgba(37, 99, 235, 0.28);
	background: rgba(37, 99, 235, 0.04);
}
.TM_roadmap .roadmap-staff-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1;
	padding: 4px 7px;
	border-radius: 3px;
	color: #1e40af;
	background: #dbeafe;
	vertical-align: middle;
}
.TM_roadmap .comment-header {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 8px;
	padding-bottom: 8px;
}
.TM_roadmap .comment-date {
	color: var(--rm-muted);
	font-size: 12px;
}
.TM_roadmap .comment-body {
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 8px;
}
.TM_roadmap .comment-actions {
	margin-top: 4px;
}
.TM_roadmap .nested-comments {
	margin: 12px 0 0 18px;
	padding-left: 12px;
}
.TM_roadmap .comment-form-section {
	margin-top: 24px;
	padding: 18px;
}
.TM_roadmap .comment-form-section h4 {
	margin: 0 0 14px;
}

.TM_roadmap-submit h1 {
	margin: 0 0 6px;
}

@media (max-width: 767px) {
	.TM_roadmap .roadmap-header {
		flex-direction: column;
		align-items: stretch;
	}

	.TM_roadmap .roadmap-header h1 {
		font-size: 26px;
	}

	.TM_roadmap .roadmap-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.TM_roadmap .roadmap-tabs .nav-item {
		flex: 0 0 auto;
	}
}


body.dark-mode {
	.TM_roadmap .roadmap-section-heading::before,
	.TM_roadmap .roadmap-section-heading::after {
		background: var(--dmbc,#444444);
	}	
}