/* MANAGANI — App Styles */

:root {
	--kk-font-body: "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	--kk-font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--bs-body-font-family: var(--kk-font-body);
	--bs-body-font-size: 0.93rem;
	--bs-badge-font-weight: 400;
	--sidebar-bg: #f8f9fa;
	--chat-bg: #f8f9fa;
	--tag-color: #495057;
	--bs-border-color: #2a386d;
	--bs-nav-tabs-link-hover-border-color: #2a386d;
}

body {
	height: 100vh;
	font-family: var(--kk-font-body);
}

.form-text {
	font-size: 0.75rem;
	font-weight: 200;
}

.form-check.form-switch {
	align-items: center;
	display: inline-flex;
	gap: 0.5rem;
	min-height: var(--kk-switch-control-height, calc(1.5em + 0.5rem + var(--bs-border-width) + var(--bs-border-width)));
	padding-left: 0;
	vertical-align: middle;
}

.form-check.form-switch .form-check-input {
	cursor: pointer;
	float: none;
	margin-left: 0;
	margin-top: 0;
}

.form-check.form-switch .form-check-label {
	cursor: pointer;
	line-height: 1.5;
}

.form-check.form-switch.form-check-reverse {
	flex-direction: row-reverse;
	padding-right: 0;
	text-align: left;
}

body.kk-template1 .form-check.form-switch {
	--kk-switch-control-height: 2.6875rem;
}

body.kk-template1 .form-check.form-switch.mt-4 {
	margin-top: 1.875rem !important;
}

@media (max-width: 47.99875rem) {
	body.kk-template1 .form-check.form-switch.mt-4 {
		margin-top: 0 !important;
	}
}

.kk-icon.material-symbols-outlined {
	display: inline-block;
	width: 1em;
	overflow: hidden;
	font-family: "Material Symbols Outlined Variable", "Material Symbols Outlined";
	font-size: 1.18em;
	font-weight: normal;
	font-style: normal;
	line-height: 1;
	text-transform: none;
	letter-spacing: normal;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	vertical-align: -0.155em;
	font-feature-settings: "liga";
	font-variation-settings:
		"FILL" 0,
		"wght" 400,
		"GRAD" 0,
		"opsz" 24;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.kk-icon,
.btn .kk-icon,
.nav-link .kk-icon,
.dropdown-item .kk-icon,
.list-group-item .kk-icon,
.batch-floating-bar .kk-icon {
	font-size: 1.22em;
}

.kk-icon-xl,
.kk-icon.kk-icon-xl,
.kk-icon-xl .kk-icon {
	font-size: 2em !important;
	vertical-align: -0.255em;
}

.managani-wordmark {
	align-items: center;
	display: inline-flex;
	font-size: 2rem;
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1;
	white-space: nowrap;
}

.managani-wordmark-icon {
	display: block;
	height: 1.12em;
	margin-right: 0.35rem;
	width: 1.12em;
}

.managani-wordmark-text {
	align-items: baseline;
	display: inline-flex;
}

.managani-wordmark-dark {
	color: #050505;
}

.managani-wordmark-light {
	color: #ffffff;
}

.managani-wordmark-accent {
	color: #ffc400;
}

.navbar-brand .managani-wordmark {
	font-size: 1.9rem;
}

/* Compact top navigation */
.kk-topnav {
	--bs-navbar-padding-y: 0.3rem;
	padding-top: 0.3rem;
	padding-bottom: 0.3rem;
}

.kk-topnav .container-fluid {
	position: relative;
	display: flex;
	align-items: center;
}

.kk-topnav .navbar-brand {
	position: static;
	display: inline-flex;
	align-items: center;
	margin: 0 1rem 0 0;
	padding-top: 0;
	padding-bottom: 0;
}

.kk-topnav .navbar-brand .managani-wordmark {
	font-size: 1.3rem;
	transform: translateY(0.25rem);
}

.kk-topnav .btn-sm {
	--bs-btn-padding-y: 0.2rem;
	--bs-btn-padding-x: 0.55rem;
	--bs-btn-font-size: 0.8rem;
}

.kk-topnav .avatar-xs {
	width: 1.35rem;
	height: 1.35rem;
	font-size: 0.62rem;
}

/* Borderless user menu in the top nav */
.kk-topnav .kk-user-menu {
	color: var(--text-bright, #212529);
	border: 0;
	background: transparent;
}

.kk-topnav .kk-user-menu:hover,
.kk-topnav .kk-user-menu:focus,
.kk-topnav .kk-user-menu:focus-visible,
.kk-topnav .kk-user-menu.show {
	color: var(--text-strong, #0b0d12);
	background: var(--hover, #eef2ff);
	box-shadow: none;
}

.logo-form .managani-wordmark {
	font-size: 3rem;
}

.batch-floating-bar .btn .kk-icon {
	font-size: 1.24em;
	vertical-align: -0.25em;
}

.slash-menu-icon {
	width: 18px;
	text-align: center;
}

.slash-menu {
	background: #ffffff !important;
	border: 1px solid #b7c7ef;
	border-radius: 8px;
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
	color: #1f2937 !important;
	color-scheme: light;
	display: block;
	max-height: min(320px, calc(100vh - 2rem));
	min-width: 260px;
	overflow-y: auto;
	padding: 0.35rem;
	position: fixed;
	z-index: 1090;
}

.slash-menu[hidden] {
	display: none !important;
}

.slash-menu-item {
	align-items: center;
	border-radius: 6px;
	color: #1f2937 !important;
	cursor: pointer;
	display: flex;
	font-size: 0.92rem;
	gap: 0.65rem;
	padding: 0.55rem 0.7rem;
}

.slash-menu-item:hover,
.slash-menu-item.active {
	background: #dbe7ff;
	color: #1f2937 !important;
}

.slash-menu-item span {
	color: #1f2937 !important;
}

.slash-menu-item .slash-menu-icon {
	color: #2563eb !important;
	flex: 0 0 auto;
	opacity: 0.95;
}

.slash-menu.slash-menu--dark {
	background: #081126 !important;
	border-color: #2a3c77;
	box-shadow: 0 16px 44px rgba(0, 0, 0, 0.48);
	color: #eef3ff !important;
	color-scheme: dark;
}

.slash-menu.slash-menu--dark .slash-menu-item {
	color: #eef3ff !important;
}

.slash-menu.slash-menu--dark .slash-menu-item:hover,
.slash-menu.slash-menu--dark .slash-menu-item.active {
	background: #172554;
	color: #ffffff !important;
}

.slash-menu.slash-menu--dark .slash-menu-item span {
	color: #eef3ff !important;
}

.slash-menu.slash-menu--dark .slash-menu-item .slash-menu-icon {
	color: #9eb4ff !important;
}

body.kk-template1 .ts-wrapper.single .ts-control,
body.kk-template1 .ts-wrapper.single.input-active .ts-control {
	align-items: center;
	background-color: var(--panel2, #ffffff);
	border-color: var(--line-strong, #ced4da);
	border-radius: 0.375rem;
	color: var(--text, #212529);
	cursor: pointer;
	font-size: 0.875rem;
	min-height: calc(1.5em + 0.5rem + 2px);
	padding: 0.25rem 2.25rem 0.25rem 0.5rem;
}

body.kk-template1 .ts-wrapper.focus .ts-control {
	background-color: var(--panel2, #ffffff);
	border-color: var(--brand, #6f61ff);
	box-shadow: 0 0 0 0.25rem var(--brand-focus-ring, rgba(111, 97, 255, 0.18));
	color: var(--text-strong, #0b0d12);
}

body.kk-template1 .ts-wrapper.single .ts-control,
body.kk-template1 .ts-wrapper.form-select.single {
	--bs-form-select-bg-img: var(--kk-form-select-bg-img, var(--bs-form-select-bg-img));
	background-image: var(--bs-form-select-bg-img);
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 1rem 0.75rem;
}

body.kk-template1 .ts-wrapper.form-select.customer-search-select,
body.kk-template1 .ts-wrapper.form-control.customer-search-select {
	background-color: var(--panel2, #ffffff);
	border: 1px solid var(--line-strong, #ced4da);
	border-radius: 0.375rem;
	box-shadow: none;
	color: var(--text, #212529);
	min-width: min(22rem, 100%);
	padding: 0 !important;
}

body.kk-template1 .ts-wrapper.form-select.customer-search-select.focus,
body.kk-template1 .ts-wrapper.form-control.customer-search-select.focus {
	border-color: var(--brand-strong, var(--brand, #6f61ff));
	box-shadow: 0 0 0 0.2rem var(--brand-focus-ring, rgba(111, 97, 255, 0.18));
}

body.kk-template1 .ts-wrapper.form-select.customer-search-select .ts-control,
body.kk-template1 .ts-wrapper.form-control.customer-search-select .ts-control,
body.kk-template1 .ts-wrapper.form-select.customer-search-select.single.input-active .ts-control,
body.kk-template1 .ts-wrapper.form-control.customer-search-select.single.input-active .ts-control {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	min-height: calc(1.5em + 0.5rem);
	padding: 0.25rem 2rem 0.25rem 0.5rem !important;
}

body.kk-template1 .ts-wrapper.single .ts-control input {
	color: var(--text, #212529);
	font-size: 0.875rem;
	line-height: 1.5;
}

body.kk-template1 .ts-wrapper.single .ts-control .item {
	color: var(--text, #212529);
	line-height: 1.5;
}

body.kk-template1 .ts-dropdown {
	background: var(--panel3-dropdown, #ffffff);
	border-color: var(--line-strong, #ced4da);
	border-radius: 0.375rem;
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.18);
	color: var(--text, #212529);
	font-size: 0.875rem;
	margin-top: 0.25rem;
	max-height: min(320px, 50vh);
	overflow-y: auto;
	z-index: 1080;
}

body.kk-template1 .ts-dropdown .option {
	color: var(--text-bright-7, #212529);
	cursor: pointer;
	padding: 0.45rem 0.6rem;
}

body.kk-template1 .ts-dropdown .option.active,
body.kk-template1 .ts-dropdown .option:hover {
	background: var(--hover, #eef2ff);
	color: var(--text-strong, #0b0d12);
}

body.kk-template1 .ts-dropdown .dropdown-input-wrap {
	position: relative;
	padding: 0.5rem;
	border-bottom: 1px solid var(--line-soft, #e6e9ef);
}

body.kk-template1 .ts-dropdown .dropdown-input-wrap::before {
	position: absolute;
	top: 50%;
	left: 1rem;
	z-index: 1;
	color: var(--muted, #6c757d);
	content: "search";
	font-family: "Material Symbols Outlined";
	font-size: 1rem;
	line-height: 1;
	pointer-events: none;
	transform: translateY(-50%);
}

body.kk-template1 .ts-dropdown .dropdown-input-wrap:focus-within::before {
	content: "";
}

body.kk-template1 .ts-dropdown .dropdown-input {
	width: 100%;
	color: var(--text, #212529);
	background: var(--panel2, #ffffff);
	border: 1px solid var(--line-strong, #ced4da);
	border-radius: 0.375rem;
	font-size: 0.875rem;
	line-height: 1.5;
	padding: 0.25rem 0.5rem 0.25rem 1.8rem;
}

body.kk-template1 .ts-dropdown .dropdown-input:focus {
	padding-left: 0.5rem;
}

body.kk-template1 .ts-dropdown .dropdown-input:focus {
	border-color: var(--brand-strong, var(--brand, #6f61ff));
	box-shadow: 0 0 0 0.2rem var(--brand-focus-ring, rgba(111, 97, 255, 0.18));
	outline: 0;
}

body.kk-template1 .ts-dropdown .customer-select-option {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

body.kk-template1 .ts-dropdown .customer-select-option-name,
body.kk-template1 .ts-wrapper .customer-select-item-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body.kk-template1 .ts-wrapper .customer-select-item {
	align-items: center;
	background: var(--panel-active, #e8eefc);
	border: 1px solid var(--line-soft, #e6e9ef);
	border-radius: 0.35rem;
	display: inline-flex;
	flex-direction: row;
	gap: 0.35rem;
	max-width: 100%;
	min-width: 0;
	padding: 0.05rem 0.25rem 0.05rem 0.45rem;
}

body.kk-template1 .ts-wrapper.customer-search-select .ts-control .item .remove {
	align-items: center;
	border-radius: 50%;
	color: var(--muted, #6c757d);
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 1rem;
	height: 1rem;
	justify-content: center;
	line-height: 1;
	margin-left: 0.1rem;
	text-decoration: none;
	width: 1rem;
}

body.kk-template1 .ts-wrapper.customer-search-select .ts-control .item .remove:hover,
body.kk-template1 .ts-wrapper.customer-search-select .ts-control .item .remove:focus {
	background: color-mix(in srgb, var(--brand, #6f61ff) 12%, transparent);
	color: var(--text-strong, #0b0d12);
	outline: 0;
}

body.kk-template1 .ts-dropdown .customer-select-option-meta {
	color: var(--muted, #6c757d);
	font-size: 0.78rem;
}

.feedback-upvote-picker {
	flex: 1 1 22rem;
	max-width: min(24rem, 100%);
	min-width: min(22rem, 100%);
}

.feedback-upvote-picker .ts-wrapper.customer-search-select {
	width: 100%;
}

.rm-shared-tag-icon {
	font-size: 0.55rem;
}

code,
kbd,
pre,
samp,
.font-monospace {
	font-family: var(--kk-font-mono);
}

body.kk-no-chat-sidebar #chat-sidebar,
body.kk-no-chat-sidebar #chat-results-panel {
	display: none !important;
}

body.kk-template1 #settingsModal {
	--bs-body-color: var(--text);
	--bs-body-bg: var(--panel);
	--bs-border-color: var(--line);
	--bs-secondary-color: var(--muted);
	--bs-tertiary-bg: var(--panel2b);
	color: var(--text);
}

body.kk-template1 #settingsModal .kk-settings-modal-dialog {
	width: min(96vw, 93.75rem);
	max-width: min(96vw, 93.75rem);
	margin-right: auto;
	margin-left: auto;
}

body.kk-template1 #settingsModal .modal-content {
	min-height: calc(100vh - 3rem);
	background: var(--panel) !important;
	border-color: var(--line) !important;
	color: var(--text) !important;
}

body.kk-template1 #settingsModal .modal-header {
	background: var(--panel) !important;
	border-bottom-color: var(--line) !important;
	color: var(--text) !important;
}

body.kk-template1 #settingsModal .modal-header .btn-close {
	filter: var(--btn-close-filter) !important;
}

body.kk-template1 #settingsModal .modal-body {
	min-height: 72vh;
	background: var(--panel) !important;
	color: var(--text) !important;
}

body.kk-template1 #settingsModal .card,
body.kk-template1 #settingsModal .list-group-item,
body.kk-template1 #settingsModal .modal-body .border,
body.kk-template1 #settingsModal .modal-body .preview-container,
body.kk-template1 #settingsModal .modal-body .source-dropdown {
	background: var(--panel2b) !important;
	border-color: var(--line-soft) !important;
	color: var(--text) !important;
}

body.kk-template1 #settingsModal h1,
body.kk-template1 #settingsModal h2,
body.kk-template1 #settingsModal h3,
body.kk-template1 #settingsModal h4,
body.kk-template1 #settingsModal h5,
body.kk-template1 #settingsModal h6,
body.kk-template1 #settingsModal label,
body.kk-template1 #settingsModal .form-label,
body.kk-template1 #settingsModal .card-title,
body.kk-template1 #settingsModal .modal-title {
	color: var(--text) !important;
}

body.kk-template1 #settingsModal .text-muted,
body.kk-template1 #settingsModal .small,
body.kk-template1 #settingsModal .form-text,
body.kk-template1 #settingsModal .muted {
	color: var(--muted-2) !important;
}

body.kk-template1 #settingsModal .form-control,
body.kk-template1 #settingsModal .form-select,
body.kk-template1 #settingsModal .input-group-text {
	background-color: var(--panel2) !important;
	border-color: var(--line-strong) !important;
	color: var(--text) !important;
}

body.kk-template1 #settingsModal .form-control:focus,
body.kk-template1 #settingsModal .form-select:focus {
	border-color: var(--brand-border, #86b7fe) !important;
	box-shadow: 0 0 0 0.25rem var(--brand-focus-ring, rgba(13, 110, 253, 0.25)) !important;
}

body.kk-template1 #settingsModal .form-control::placeholder {
	color: var(--muted-3) !important;
}

body.kk-template1 #settingsModal .btn-outline-secondary {
	background: var(--panel-solid) !important;
	border-color: var(--line-btn) !important;
	color: var(--muted) !important;
}

body.kk-template1 #settingsModal .btn-outline-secondary:hover,
body.kk-template1 #settingsModal .btn-outline-secondary:focus {
	background: var(--panel-elev) !important;
	border-color: var(--line-btn-hover) !important;
	color: var(--text-strong) !important;
}

body.kk-template1 #settingsModal .list-group-item {
	cursor: pointer;
}

body.kk-template1 #settingsModal .list-group-item.active {
	background: var(--brand, #0d6efd) !important;
	border-color: var(--brand, #0d6efd) !important;
	color: var(--on-brand) !important;
}

body.kk-template1 #settingsModal .table {
	--bs-table-bg: var(--panel);
	--bs-table-color: var(--text);
	--bs-table-border-color: var(--line);
	--bs-table-hover-bg: var(--table-hover);
	--bs-table-hover-color: var(--text);
	color: var(--text) !important;
	border-color: var(--line) !important;
}

body.kk-template1 #settingsModal .table th,
body.kk-template1 #settingsModal .table td {
	background: var(--panel) !important;
	color: var(--text) !important;
	border-color: var(--line) !important;
}

body.kk-template1 #settingsModal .table thead th {
	background: var(--panel2) !important;
}

.sales-ai-clickable-row {
	cursor: pointer;
}

.sales-ai-clickable-row:hover > *,
.sales-ai-clickable-row:focus > *,
.sales-ai-clickable-row:focus-visible > * {
	background: var(--table-hover) !important;
	color: var(--text-strong) !important;
}

.sales-ai-clickable-row:focus,
.sales-ai-clickable-row:focus-visible {
	outline: 0.125rem solid var(--brand-border, #86b7fe);
	outline-offset: -0.125rem;
}

@media (min-width: 768px) {
	body.kk-no-chat-sidebar #page-content > .row > .col-md-3:first-child {
		flex: 0 0 200px;
		width: 200px;
		max-width: 200px;
	}

	body.kk-no-chat-sidebar #page-content > .row > .col-md-9:last-child {
		flex: 1 1 0;
		width: auto;
		max-width: none;
	}
}

.swal2-icon.swal2-kk-icon {
	border: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4.25rem;
	height: 4.25rem;
	margin: 1.5rem auto 0.75rem;
	font-size: 1rem;
}

.swal2-icon.swal2-kk-icon .kk-icon {
	width: auto;
	font-size: 4.25rem;
	line-height: 1;
	vertical-align: 0;
}

.swal2-icon.swal2-success.swal2-kk-icon {
	color: #a5dc86;
}

.swal2-icon.swal2-error.swal2-kk-icon {
	color: #f27474;
}

.swal2-icon.swal2-warning.swal2-kk-icon {
	color: #f8bb86;
}

.swal2-icon.swal2-info.swal2-kk-icon,
.swal2-icon.swal2-question.swal2-kk-icon {
	color: #3fc3ee;
}

body:has(.sidebar) {
	--app-sidebar-width: 210px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

body:has(.sidebar) > .container-fluid {
	min-height: 0;
}

b,
strong {
	font-weight: 500;
}

small,
.small {
	font-size: 0.8rem;
}

.list-group-item-action {
	color: initial !important;
}

.fs-7 {
	font-size: 0.7rem;
}

.fs-8 {
	font-size: 0.8rem;
}

.fs-9 {
	font-size: 0.9rem;
}

.card {
	border-radius: 0.5rem;
}

.bg-hover-light:hover {
	background-color: var(--bs-light) !important;
	cursor: pointer;
}

.login-header {
	font-size: 1.2rem;
	font-weight: 900;
	padding-left: 0;
	background-color: initial;
	border: initial;
}

.sidebar {
	overflow-y: auto;
	height: 100%;
	font-size: 0.92rem;
	flex: 0 0 var(--app-sidebar-width);
	width: var(--app-sidebar-width);
	max-width: var(--app-sidebar-width);
}

#main-content {
	overflow-y: auto;
	height: 100%;
	flex: 1 1 0;
	min-width: 0;
	max-width: none;
}

#chat-sidebar {
	overflow-y: hidden;
	height: 100%;
}

.chat-sidebar {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* Chat messages */
.chat-message {
	margin-bottom: 0.75rem;
	padding: 0.5rem 0.75rem;
	border-radius: 0.5rem;
	max-width: 90%;
}

.chat-message.user {
	background: var(--brand, #0d6efd);
	color: var(--on-brand, #fff);
	margin-left: auto;
}

.chat-message.assistant {
	background: #e9ecef;
	color: #212529;
}

/* Chat thinking indicator */
.chat-thinking span {
	display: inline-block;
	animation: chatBlink 1.4s infinite;
	font-size: 1.25rem;
	line-height: 1;
}
.chat-thinking span:nth-child(2) {
	animation-delay: 0.2s;
}
.chat-thinking span:nth-child(3) {
	animation-delay: 0.4s;
}
@keyframes chatBlink {
	0%,
	20% {
		opacity: 0.2;
	}
	50% {
		opacity: 1;
	}
	80%,
	100% {
		opacity: 0.2;
	}
}

/* Chat history items */
.chat-history-item {
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	transition: background 0.15s;
}

.chat-history-item:hover {
	background: #e9ecef;
}

/* Chat results panel */
#chat-results-panel {
	border: 1px solid #dee2e6;
	border-radius: 0.5rem;
	padding: 1rem;
	background: #fafbfc;
}

#chat-results-list .card {
	border-left: 3px solid var(--brand, #0d6efd);
	transition: box-shadow 0.15s;
}

#chat-results-list .card:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Site list */
.site-item {
	padding: 0.4rem 0.3rem 0.6rem !important;
	margin-bottom: 0.5rem !important;
	color: var(--text, #212529);
	border: 0;
	border-bottom: 1px solid var(--line-soft, #e6e9ef);
	border-radius: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	background: transparent;
}

.site-item:last-child {
	border-bottom: 0;
}

.site-item.active {
	background: color-mix(in srgb, var(--brand, #7c6af7) 10%, var(--panel2b, #ffffff));
}

.site-item.active .site-sidebar-site-toggle {
	color: var(--text-strong, #0b0d12);
}

.site-sidebar-site-toggle {
	align-items: center;
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	display: inline-flex;
	flex: 1 1 auto;
	font: inherit;
	font-weight: 600;
	gap: 0.5rem;
	min-width: 0;
	padding: 0;
	text-align: left;
}

.site-sidebar-site-toggle:focus,
.site-sidebar-site-toggle:focus-visible {
	outline: 0;
}

.site-sidebar-site-toggle .site-color {
	flex: 0 0 auto;
}

.site-sidebar-site-toggle .text-truncate {
	min-width: 0;
}

.site-sidebar-collapse-icon {
	color: var(--muted, #6c757d);
	flex: 0 0 auto;
	font-size: 1rem;
	transition: transform 0.15s ease;
}

.site-item.is-collapsed .site-sidebar-collapse-icon {
	transform: rotate(-90deg);
}

.site-item.is-collapsed .site-item-section {
	display: none !important;
}

.site-item-name {
	font-weight: 600;
	margin-left: 0.5rem;
}

.site-sidebar-portal-link {
	align-items: center;
	border-radius: 0.42rem;
	color: var(--muted, #6c757d);
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 auto;
	height: 1.65rem;
	justify-content: center;
	text-decoration: none;
	width: 1.65rem;
}

.site-sidebar-portal-link:hover,
.site-sidebar-portal-link:focus,
.site-sidebar-portal-link:focus-visible {
	background: var(--hover, #eef2ff);
	color: var(--text-strong, #0b0d12);
	outline: 0;
	text-decoration: none;
}

.site-sidebar-portal-link .kk-icon {
	font-size: 1rem;
}

.site-sidebar-nav-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 27px;
	padding: 0.24rem 1.2rem;
	color: var(--sidebar-link-text, var(--text-soft, #495057));
	background: transparent;
	border: 0 !important;
	font: inherit;
	text-align: left;
	outline: 0 !important;
	box-shadow: none !important;
	appearance: none;
	border-radius: 0;
	transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.site-item-section {
	margin-left: -0.3rem;
	margin-right: -0.3rem;
}

.site-sidebar-nav-item:hover,
.site-sidebar-nav-item:active,
.site-sidebar-nav-item:focus,
.site-sidebar-nav-item:focus-visible {
	color: var(--text-strong, #0b0d12);
	background: var(--hover, #eef2ff);
	border: 0 !important;
	outline: 0 !important;
	box-shadow: inset 0 0 0 1px var(--line-soft, #e6e9ef) !important;
}

.site-sidebar-nav-item.active {
	color: var(--text-strong, #0b0d12);
	background: color-mix(in srgb, var(--brand, #7c6af7) 18%, var(--panel2b, #ffffff));
	border: 0 !important;
	outline: 0 !important;
	box-shadow: inset 0.1875rem 0 0 var(--brand, #7c6af7), inset 0 0 0 0.0625rem color-mix(in srgb, var(--brand, #7c6af7) 24%, transparent) !important;
	font-weight: 600;
}

.site-sidebar-nav-item span:last-child {
	color: var(--muted, #6c757d);
	font-size: 0.76rem;
}

.site-sidebar-nav-item.active span:last-child {
	color: var(--text-soft, #495057);
}

/* ── Sidebar top nav (Dashboard / All Chat / All Feedback) ── */
.sidebar-section {
	display: grid;
	gap: 0.25rem;
	margin: 0 0 0.25rem;
}

/* Standalone divider — kept as its own element so padding/overlays
   from adjacent nav items can't sit on top of the line */
.sidebar-separator {
	height: 1px;
	margin: 0.4rem 0 0.65rem;
	background: var(--line-soft, #e6e9ef);
}

.overview-nav-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 30px;
	padding: 0.3rem 1.2rem;
	color: var(--sidebar-link-text, var(--text-soft, #495057));
	background: transparent;
	border: 0 !important;
	font: inherit;
	font-weight: 600;
	text-align: left;
	outline: 0 !important;
	box-shadow: none !important;
	appearance: none;
	border-radius: 0;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.overview-nav-item:hover,
.overview-nav-item:focus,
.overview-nav-item:focus-visible {
	color: var(--text-strong, #0b0d12);
	background: var(--hover, #eef2ff);
	box-shadow: none !important;
	text-decoration: none;
}

.overview-nav-item.active {
	color: var(--text-strong, #0b0d12);
	background: color-mix(in srgb, var(--brand, #7c6af7) 16%, var(--panel2b, #ffffff));
	box-shadow: inset 0.1875rem 0 0 var(--brand, #7c6af7) !important;
	text-decoration: none;
}

/* ── Overview dashboard ── */
.overview-site-card .card-body {
	padding: 1rem;
}

.overview-site-name {
	min-width: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--text-strong, #0b0d12);
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}

.overview-site-name:hover {
	color: var(--brand-strong, #6f61ff);
	text-decoration: underline;
}

.overview-count-badge {
	display: inline-flex;
	align-items: baseline;
	gap: 0.3rem;
	padding: 0.2rem 0.5rem;
	border: 1px solid var(--line-2, #dee2e6);
	border-radius: 999rem;
	background: var(--panel2b, #ffffff);
	color: var(--text, #212529);
	font-size: 0.78rem;
	cursor: pointer;
}

.overview-count-badge:hover {
	border-color: var(--brand-strong, #6f61ff);
	background: color-mix(in srgb, var(--brand, #7c6af7) 8%, var(--panel2b, #ffffff));
}

.overview-count-badge.is-zero {
	color: var(--muted, #6c757d);
}

.overview-count-badge.active {
	border-color: var(--brand-strong, #6f61ff);
	background: color-mix(in srgb, var(--brand, #7c6af7) 16%, var(--panel2b, #ffffff));
	color: var(--text-strong, #0b0d12);
}

.overview-count-value {
	font-weight: 700;
}

.overview-activity-item {
	display: none;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.35rem 0.4rem;
	border: 0;
	border-radius: 0.42rem;
	background: transparent;
	color: var(--text, #212529);
	text-align: left;
	cursor: pointer;
}

/* The badges filter the card's list in place. Default ("all") shows the
   recency-merged top items; a type filter shows that category's items. */
.overview-site-card[data-filter="all"] .overview-activity-item.is-in-all,
.overview-site-card:not([data-filter]) .overview-activity-item.is-in-all,
.overview-site-card[data-filter="feedback"] .overview-activity-item[data-activity-type="feedback"],
.overview-site-card[data-filter="chat"] .overview-activity-item[data-activity-type="chat"],
.overview-site-card[data-filter="social"] .overview-activity-item[data-activity-type="social"],
.overview-site-card[data-filter="content"] .overview-activity-item[data-activity-type="content"],
.overview-site-card[data-filter="content"] .overview-activity-item[data-activity-type="opportunity"] {
	display: flex;
}

.overview-activity-item:hover {
	background: var(--hover, #eef2ff);
}

.overview-activity-icon {
	font-size: 1.05rem;
	color: var(--muted, #6c757d);
	flex: 0 0 auto;
}

.overview-activity-main {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1 1 auto;
}

.overview-activity-title {
	font-size: 0.85rem;
	font-weight: 500;
}

.overview-activity-meta {
	font-size: 0.75rem;
	color: var(--muted, #6c757d);
}

.overview-activity-time {
	flex: 0 0 auto;
	font-size: 0.72rem;
	color: var(--muted, #6c757d);
}

.unified-site-filter-select {
	width: 7.25rem;
	min-height: 1.75rem;
	font-size: 0.75rem;
	line-height: 1.2;
}

/* ── Cross-site source badge (unified chat / feedback rows) ── */
.unified-source-badge {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	padding: 0.05rem 0.4rem;
	border-radius: 0.35rem;
	border-left: 3px solid var(--brand, #7c6af7);
	background: var(--panel2, #f3f4f6);
	color: var(--text-soft, #495057);
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.feedback-admin-layout {
	display: grid;
	grid-template-columns: minmax(17rem, 20rem) minmax(0, 1fr);
	gap: 0.75rem;
	align-items: stretch;
	height: calc(100vh - 155px);
	min-height: 32rem;
	overflow: hidden;
}

.feedback-admin-content {
	min-width: 0;
	min-height: 0;
}

.feedback-admin-detail {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	max-height: 100%;
	overflow: hidden;
	padding: 0 0.5rem;
	font-size: 0.8125rem;
}

.feedback-admin-content > .product-section[data-product-panel="feedback"] {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
}

#feedback-admin-list {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding-right: 0.25rem;
}

.feedback-admin-layout.is-wide {
	grid-template-columns: minmax(0, 1fr);
}

.feedback-admin-layout.is-chat {
	height: calc(100vh - 155px);
	min-height: 560px;
}

.feedback-admin-layout[data-unified-layout].is-chat .widget-chat-inbox {
	grid-template-columns: minmax(17rem, 20rem) minmax(0, 1fr);
}

.feedback-admin-layout.is-settings {
	height: auto;
	min-height: 0;
	overflow: visible;
}

.feedback-admin-layout.is-wide .feedback-admin-content {
	display: block;
	overflow-y: auto;
	padding-right: 0.25rem;
}

.feedback-admin-layout.is-wide .feedback-admin-content > .product-section:not(.d-none) {
	display: block !important;
	visibility: visible;
	opacity: 1;
	padding-bottom: 1rem;
}

.feedback-admin-layout.is-wide .feedback-admin-content > .product-section[data-product-panel="chats"]:not(.d-none) {
	display: flex !important;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	padding-bottom: 0;
}

.feedback-admin-layout.is-settings .feedback-admin-content,
.feedback-admin-layout.is-settings .feedback-admin-content > .product-section:not(.d-none) {
	overflow: visible;
	padding-right: 0;
}

.feedback-admin-content > .product-section[data-product-panel="feedback"] > .d-flex {
	margin-bottom: 0.6rem !important;
	font-size: 0.8125rem;
}

.feedback-admin-content > .product-section[data-product-panel="feedback"] .btn-sm,
.feedback-admin-content > .product-section[data-product-panel="feedback"] .form-select-sm {
	font-size: 0.75rem;
	line-height: 1.2;
	min-height: 1.75rem;
	padding-bottom: 0.25rem;
	padding-top: 0.25rem;
}

#site-chat-panel {
	flex: 1 1 auto;
	min-height: 0;
}

.feedback-admin-layout.is-wide .feedback-admin-content > .product-section[data-product-panel="roadmap"]:not(.d-none) {
	display: flex !important;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	padding-bottom: 0;
}

#site-roadmap-board {
	flex: 1 1 auto;
	height: auto;
	min-height: 0;
	overflow: hidden;
}

.feedback-admin-layout.is-wide .feedback-admin-content > .product-section[data-product-panel="social"]:not(.d-none) {
	display: flex !important;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	padding-bottom: 0;
}

#social-signals-list {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding-right: 0.25rem;
}

#growth-opportunities-list,
#content-posts-list {
	overflow: visible;
}

/* Fixed layout so the Signal column truncates instead of forcing horizontal scroll */
.social-signals-table {
	table-layout: fixed;
	width: 100%;
}

.social-signals-table th:nth-child(1) {
	width: 9rem;
}

.social-signals-table th:nth-child(3) {
	width: 4.5rem;
}

.social-signals-table th:nth-child(4) {
	width: 6.5rem;
}

.social-signals-table th:nth-child(5) {
	width: 7.5rem;
}

.social-signals-table th:nth-child(6) {
	width: 9rem;
}

.social-signals-table th:nth-child(7) {
	width: 7rem;
}

.social-signal-title {
	display: block;
	max-width: 100%;
}

.growth-opportunities-table,
.content-posts-table {
	table-layout: fixed;
	width: 100%;
}

.growth-opportunities-table th:nth-child(2) {
	width: 3.75rem;
}

.growth-opportunities-table th:nth-child(3) {
	width: 6.5rem;
}

.growth-opportunities-table th:nth-child(4),
.growth-opportunities-table th:nth-child(5),
.growth-opportunities-table th:nth-child(6) {
	width: 5.5rem;
}

.growth-opportunities-table th:nth-child(7) {
	width: 6.5rem;
}

.growth-opportunities-table th:nth-child(8) {
	width: 7.5rem;
}

.growth-opportunities-table th:nth-child(9) {
	width: 9rem;
}

.content-posts-table th:nth-child(2) {
	width: 12rem;
}

.content-posts-table th:nth-child(3),
.content-posts-table th:nth-child(4) {
	width: 6.5rem;
}

.content-posts-table th:nth-child(5) {
	width: 7.5rem;
}

.content-posts-table th:nth-child(6) {
	width: 11rem;
}

.growth-opportunity-title,
.growth-opportunity-detail,
.content-post-title {
	display: block;
	max-width: 100%;
}

.content-post-detail-meta {
	border-bottom: 1px solid var(--line-soft, var(--bs-border-color));
	padding-bottom: 0.75rem;
}

.content-post-detail-status {
	color: var(--text-muted, var(--bs-secondary-color));
}

.content-post-markdown {
	max-height: 28rem;
	overflow: auto;
	white-space: pre-wrap;
	background: var(--panel2, var(--bs-tertiary-bg));
}

.content-post-empty {
	min-height: 3rem;
	border-style: dashed !important;
	color: var(--text-muted, var(--bs-secondary-color));
	background: transparent;
}

.content-post-notes summary {
	cursor: pointer;
}

.content-post-notes-body {
	max-height: 10rem;
	overflow: auto;
}

/* Make the site overview fill #main-content so the inner panel is the only
   scroll area. Without this the layout (height: calc(100vh - 155px)) plus the
   navbar, #main-content padding and the site header/meta rows overflow
   #main-content by ~20px, producing a second, page-level scrollbar stacked on
   top of the panel's own scroll. */
@media (min-width: 900px) {
	#page-content:has(> #site-overview) {
		height: 100%;
	}

	#site-overview {
		height: 100%;
		min-height: 0;
	}

	.feedback-admin-layout:not(.is-settings):not(.is-chat) {
		flex: 1 1 auto;
		height: auto;
		min-height: 0;
	}
}

.roadmap-board {
	display: flex;
	align-items: stretch;
	gap: 1rem;
	height: 100%;
	min-height: 0;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 0 0.25rem 0 0;
}

.roadmap-list {
	display: flex;
	flex: 0 0 290px;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	background: var(--panel2b, #ffffff);
	border: 1px solid var(--line-soft, #e6e9ef);
	border-radius: 0.5rem;
}

.roadmap-list-header {
	flex: 0 0 auto;
	padding: 0.9rem;
	border-top: 4px solid #2a3c77;
	border-bottom: 1px solid var(--line-soft, #e6e9ef);
	background: color-mix(in srgb, var(--panel2b, #ffffff) 88%, var(--panel-elev, #e9eefa));
	cursor: grab;
}

.roadmap-list-header h3 {
	color: var(--text, #212529);
}

.roadmap-list-cards {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
	overflow-y: auto;
	padding: 0.75rem;
}

.roadmap-card {
	margin-bottom: 0.75rem;
	padding: 0.85rem;
	color: var(--text, #212529);
	background: var(--panel-solid, #ffffff);
	border: 1px solid var(--line-soft, #e6e9ef);
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.roadmap-card:hover,
.roadmap-card:focus,
.roadmap-card:focus-visible {
	color: var(--text-strong, #0b0d12);
	background: var(--hover, #eef2ff);
	border-color: var(--brand-strong, #6f61ff);
	outline: 0;
}

.roadmap-card-title {
	overflow-wrap: anywhere;
	line-height: 1.35;
}

.sales-ai-rule-grip {
	cursor: grab;
}

.sales-ai-rule-grip:active {
	cursor: grabbing;
}

.sales-ai-rule-status-icon {
	font-size: 1rem;
	opacity: 0.65;
	vertical-align: middle;
}

[data-sales-ai-agent-form] .form-check-input.h-20px {
	height: 1.25rem;
}

[data-sales-ai-agent-form] .form-check-input.w-30px {
	width: 1.875rem;
}

[data-sales-ai-agent-form] .form-check.form-switch.sales-ai-control-switch {
	min-height: 1.9375rem;
}

.sales-ai-rule-editor-mode [data-sales-ai-rule-editor-context],
.sales-ai-rule-editor-mode [data-sales-ai-agent-error] {
	display: none !important;
}

.roadmap-card-meta {
	display: inline-flex;
	align-items: center;
	color: var(--muted, #6c757d);
	font-size: 0.8rem;
}

.roadmap-card-meta .kk-icon {
	font-size: 1rem;
}

.roadmap-empty {
	margin: auto;
	padding: 1.25rem 0.5rem;
	color: var(--muted, #6c757d);
	text-align: center;
}

.roadmap-icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
}

.gu-mirror.roadmap-card,
.gu-mirror.roadmap-list {
	opacity: 0.92;
}

.gu-transit {
	opacity: 0.35;
}

.site-settings-panel {
	color: var(--text, #212529);
}

.site-settings-section {
	display: block;
}

.site-settings-form {
	width: 100%;
	max-width: 700px;
}

.site-settings-card {
	padding: 1rem;
}

.site-settings-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: -1rem -1rem 1rem;
	padding: 1rem;
	border-bottom: var(--bs-card-border-width, 0.0625rem) solid var(--bs-card-border-color, var(--line, #dee2e6));
}

.site-settings-panel h3,
.site-settings-panel .form-label,
.site-settings-panel .form-check-label {
	color: var(--text, #212529);
}

.site-settings-panel .form-control,
.site-settings-panel .form-select {
	color: var(--text, #212529);
	background-color: var(--panel2, #ffffff);
	border-color: var(--line-strong, #ced4da);
}

.site-settings-panel .form-control:focus,
.site-settings-panel .form-select:focus {
	color: var(--text-strong, #0b0d12);
	background-color: var(--panel2, #ffffff);
	border-color: var(--brand-strong, #6f61ff);
	box-shadow: 0 0 0 0.2rem var(--brand-focus-ring, rgba(111, 97, 255, 0.18));
}

.site-settings-panel .form-control::placeholder {
	color: var(--muted-3, #868e96);
}

.site-settings-code-example {
	display: block;
}

.site-settings-code-example > h3,
.site-settings-code-example > p,
.site-settings-code-example > pre {
	display: block;
	width: 100%;
}

.site-settings-code-example > pre {
	margin-top: 0.75rem;
	text-align: left;
}

.widget-deployment-tab-label {
	cursor: pointer;
}

.site-delete-link {
	font-size: 0.78rem;
	padding: 0 !important;
	text-decoration: none;
}

.site-delete-link:hover,
.site-delete-link:focus {
	text-decoration: underline;
}

body.kk-template1 #site-color.site-color-input-filled.form-control,
body.kk-template1 #site-color.site-color-input-filled.form-control:focus,
body.kk-template1 #site-modal-color.site-color-input-filled.form-control,
body.kk-template1 #site-modal-color.site-color-input-filled.form-control:focus {
	color: var(--site-color-text, #ffffff) !important;
	background: var(--site-color-value, #7C6AF7) !important;
	border-color: var(--site-color-value, #7C6AF7) !important;
}

.feedback-admin-detail .card {
	color: var(--text, #212529);
	background: var(--panel-solid, #ffffff);
	border-color: var(--line-soft, #e6e9ef);
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	height: 100%;
	max-height: 100%;
	min-height: 0;
	overflow: hidden;
}

#feedback-detail-panel {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	max-height: 100%;
	min-height: 0;
	overflow: hidden;
}

#feedback-detail-panel > .card {
	flex: 1 1 auto;
	min-height: 0;
}

.feedback-admin-detail .card-header {
	color: var(--text, #212529);
	background: color-mix(in srgb, var(--panel2b, #ffffff) 88%, var(--panel-elev, #e9eefa));
	border-bottom-color: var(--line-soft, #e6e9ef);
	padding: 0.5rem 0.75rem;
}

.feedback-admin-detail .card-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 0.65rem 0.75rem;
}

.feedback-admin-detail .form-text,
.feedback-admin-detail .form-label,
.feedback-admin-detail label {
	color: var(--text-soft, #495057);
}

.feedback-admin-detail h3 {
	color: var(--text, #212529);
}

.feedback-admin-detail .text-muted {
	color: var(--muted, #6c757d) !important;
}

.feedback-admin-detail .form-control,
.feedback-admin-detail .form-select {
	color: var(--text, #212529);
	background-color: var(--panel2, #ffffff);
	border-color: var(--line-strong, #ced4da);
	font-size: 0.8125rem;
	min-height: 1.85rem;
}

.feedback-admin-detail .form-control:focus,
.feedback-admin-detail .form-select:focus {
	color: var(--text-strong, #0b0d12);
	background-color: var(--panel2, #ffffff);
	border-color: var(--brand-strong, #6f61ff);
	box-shadow: 0 0 0 0.2rem var(--brand-focus-ring, rgba(111, 97, 255, 0.18));
}

.feedback-admin-detail .form-control::placeholder {
	color: var(--muted-3, #868e96);
}

.feedback-admin-detail .mb-3 {
	margin-bottom: 0.65rem !important;
}

.feedback-admin-detail hr {
	margin: 0.75rem 0;
}

.feedback-admin-detail .btn-sm {
	font-size: 0.75rem;
	line-height: 1.2;
	min-height: 1.75rem;
	padding-bottom: 0.25rem;
	padding-top: 0.25rem;
}

.feedback-admin-item {
	display: block;
	background: var(--panel-solid, #ffffff);
	border: 1px solid var(--line-soft, #e6e9ef);
	color: var(--text, #212529);
	font-size: 0.8125rem;
	line-height: 1.32;
	margin-bottom: 0.5rem !important;
	padding: 0.55rem 0.65rem !important;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.feedback-admin-item-main {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.45rem;
	align-items: start;
}

.feedback-admin-item-content,
.feedback-admin-title-line,
.feedback-admin-title {
	min-width: 0;
}

.feedback-admin-title {
	flex: 1 1 auto;
}

.feedback-admin-item-meta {
	flex: 0 0 auto;
	min-width: 0;
	color: var(--muted, #6c757d);
	font-size: 0.75rem;
	line-height: 1.2;
}

.feedback-admin-votes {
	flex: 0 0 auto;
	white-space: nowrap;
}

.feedback-admin-check {
	padding-top: 0.15rem;
	line-height: 1;
}

.feedback-admin-item:hover,
.feedback-admin-item:focus,
.feedback-admin-item:focus-visible,
.feedback-admin-item.is-active {
	background: var(--hover, #eef2ff);
	border-color: var(--brand-strong, #6f61ff);
	color: var(--text-strong, #0b0d12);
	outline: 0;
	box-shadow: none;
}

.feedback-admin-item.is-selected {
	border-color: color-mix(in srgb, var(--brand, #7c6af7) 48%, var(--line-soft, #e6e9ef));
}

.feedback-admin-item .text-muted {
	color: var(--muted, #6c757d) !important;
}

.feedback-admin-item .small {
	font-size: 0.75rem;
}

.feedback-admin-item p {
	display: -webkit-box;
	font-size: 0.78125rem;
	line-height: 1.32;
	margin-top: 0.45rem !important;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.admin-record-heading {
	margin-bottom: 1rem;
	color: #eef3ff;
	font-weight: 700;
}

.admin-record-list {
	width: 100%;
}

.admin-record-row {
	display: block;
	cursor: pointer;
	color: #b9c6f4 !important;
	background: rgba(13, 24, 54, 0.72);
	border-color: #2a3c77;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.admin-record-row:hover,
.admin-record-row:focus,
.admin-record-row:focus-visible {
	color: #dce5ff !important;
	background: rgba(17, 31, 69, 0.98);
	border-color: #526bd2;
	outline: 0;
	box-shadow: none;
}

.admin-record-row-main {
	display: grid;
	grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1fr) max-content;
	gap: 0.75rem;
	align-items: start;
}

.admin-record-row-main > :first-child {
	min-width: 0;
}

.admin-record-title {
	overflow-wrap: anywhere;
	color: #eef3ff !important;
	font-weight: 600;
	line-height: 1.35;
}

.admin-record-meta,
.admin-record-excerpt {
	color: #b9c6f4 !important;
	font-size: 0.8rem;
}

.admin-record-excerpt {
	margin: 0;
	overflow-wrap: anywhere;
}

.admin-record-actions {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
	margin-left: auto;
}

.admin-survey-row-main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 7rem auto;
	align-items: start;
}

.admin-survey-type {
	color: #eef3ff;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.35;
}

.feedback-requester,
.feedback-comment,
.feedback-voter,
.feedback-reply-suggestion {
	color: var(--text, #212529);
	background: var(--panel-solid, #ffffff);
	border: 1px solid var(--line-soft, #e6e9ef);
	font-size: 0.8125rem;
	line-height: 1.32;
	margin-bottom: 0.5rem !important;
	padding: 0.5rem 0.625rem !important;
}

.feedback-comment.is-ai {
	border-color: color-mix(in srgb, var(--brand, #7c6af7) 45%, var(--line-soft, #e6e9ef));
}

.feedback-conversation {
	margin-bottom: 0.65rem !important;
}

#feedback-description {
	min-height: 5.75rem;
}

#feedback-reply {
	min-height: 4rem;
}

.feedback-reply-suggestions-loading {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--text-soft, #495057);
	background: var(--panel-solid, #ffffff);
	border: 1px solid var(--line-soft, #e6e9ef);
}

.roadmap-feedback-modal .modal-content {
	color: #eef3ff;
	background: #0d1836;
	border: 1px solid #2a3c77;
}

.roadmap-feedback-modal .modal-header {
	border-bottom-color: #2a3c77;
}

.roadmap-feedback-modal .modal-body {
	background: #091127;
}

.roadmap-feedback-modal .btn-close {
	filter: invert(1) grayscale(100%) brightness(170%);
}

.roadmap-feedback-modal .card {
	color: #eef3ff;
	background: transparent;
	border-color: #2a3c77;
}

.roadmap-feedback-modal .card-header {
	color: #eef3ff;
	background: rgba(13, 24, 54, 0.86);
	border-bottom-color: #2a3c77;
}

.roadmap-feedback-modal .card-body {
	background: rgba(5, 11, 30, 0.72);
}

.roadmap-feedback-modal .form-text,
.roadmap-feedback-modal .form-label,
.roadmap-feedback-modal label,
.roadmap-feedback-modal h3 {
	color: #dce5ff;
}

.roadmap-feedback-modal .text-muted {
	color: #b9c6f4 !important;
}

.roadmap-feedback-modal .form-control,
.roadmap-feedback-modal .form-select {
	color: #eef3ff;
	background-color: rgba(13, 24, 54, 0.82);
	border-color: #2a3c77;
}

.roadmap-feedback-modal .form-control:focus,
.roadmap-feedback-modal .form-select:focus {
	color: #fff;
	background-color: rgba(13, 24, 54, 0.96);
	border-color: #ffc400;
	box-shadow: 0 0 0 0.2rem rgba(255, 196, 0, 0.18);
}

.roadmap-feedback-modal .form-control::placeholder {
	color: #8ea0d2;
}

body.kk-template1 .roadmap-feedback-modal .ts-wrapper.form-select.customer-search-select,
body.kk-template1 .roadmap-feedback-modal .ts-wrapper.form-control.customer-search-select {
	color: #eef3ff;
	background-color: rgba(13, 24, 54, 0.82);
	border-color: #2a3c77;
}

body.kk-template1 .roadmap-feedback-modal .ts-wrapper.form-select.customer-search-select.focus,
body.kk-template1 .roadmap-feedback-modal .ts-wrapper.form-control.customer-search-select.focus {
	border-color: #ffc400;
	box-shadow: 0 0 0 0.2rem rgba(255, 196, 0, 0.18);
}

body.kk-template1 .roadmap-feedback-modal .ts-wrapper.form-select.customer-search-select .ts-control,
body.kk-template1 .roadmap-feedback-modal .ts-wrapper.form-control.customer-search-select .ts-control,
body.kk-template1 .roadmap-feedback-modal .ts-wrapper.form-select.customer-search-select.single.input-active .ts-control,
body.kk-template1 .roadmap-feedback-modal .ts-wrapper.form-control.customer-search-select.single.input-active .ts-control {
	color: #eef3ff;
	background: transparent !important;
}

body.kk-template1 .roadmap-feedback-modal .ts-wrapper.customer-search-select .ts-control .item,
body.kk-template1 .roadmap-feedback-modal .ts-wrapper.customer-search-select .ts-control input,
body.kk-template1 .roadmap-feedback-modal .ts-wrapper.customer-search-select .customer-select-item {
	color: #eef3ff;
}

body.kk-template1 .roadmap-feedback-modal .ts-wrapper.customer-search-select .customer-select-item {
	background: rgba(17, 31, 69, 0.98);
	border-color: #2a3c77;
}

body.kk-template1 .roadmap-feedback-modal .ts-wrapper.customer-search-select .ts-control .item .remove {
	color: #b9c6f4;
}

body.kk-template1 .roadmap-feedback-modal .ts-wrapper.customer-search-select .ts-control .item .remove:hover,
body.kk-template1 .roadmap-feedback-modal .ts-wrapper.customer-search-select .ts-control .item .remove:focus {
	background: rgba(255, 196, 0, 0.22);
	color: #ffffff;
}

body.kk-template1 .roadmap-feedback-modal .ts-dropdown {
	color: #eef3ff;
	background: #0d1836;
	border-color: #2a3c77;
}

body.kk-template1 .roadmap-feedback-modal .ts-dropdown .dropdown-input-wrap {
	border-bottom-color: #2a3c77;
}

body.kk-template1 .roadmap-feedback-modal .ts-dropdown .dropdown-input-wrap::before {
	color: #8ea0d2;
}

body.kk-template1 .roadmap-feedback-modal .ts-dropdown .dropdown-input {
	color: #eef3ff;
	background: rgba(13, 24, 54, 0.82);
	border-color: #2a3c77;
}

body.kk-template1 .roadmap-feedback-modal .ts-dropdown .dropdown-input:focus {
	border-color: #ffc400;
	box-shadow: 0 0 0 0.2rem rgba(255, 196, 0, 0.18);
}

body.kk-template1 .roadmap-feedback-modal .ts-dropdown .option {
	color: #e5ebff;
}

body.kk-template1 .roadmap-feedback-modal .ts-dropdown .option.active,
body.kk-template1 .roadmap-feedback-modal .ts-dropdown .option:hover {
	color: #ffffff;
	background: rgba(17, 31, 69, 0.98);
}

body.kk-template1 .roadmap-feedback-modal .ts-dropdown .customer-select-option-meta {
	color: #b9c6f4;
}

.roadmap-feedback-modal .feedback-requester,
.roadmap-feedback-modal .feedback-comment,
.roadmap-feedback-modal .feedback-voter,
.roadmap-feedback-modal .feedback-reply-suggestion {
	color: #eef3ff;
	background: rgba(13, 24, 54, 0.72);
	border-color: #2a3c77;
}

.roadmap-feedback-modal .feedback-comment.is-ai {
	border-color: #ffc400;
}

.roadmap-feedback-modal .feedback-reply-suggestions-loading {
	color: #b9c6f4;
	background: rgba(13, 24, 54, 0.72);
	border-color: #2a3c77;
}

.roadmap-feedback-modal .feedback-attachment-link {
	color: #c8d3ff;
	background: rgba(13, 24, 54, 0.72);
	border-color: #2a3c77;
}

.roadmap-feedback-modal .feedback-attachment-link:hover {
	color: #fff;
	background: rgba(17, 31, 69, 0.98);
	border-color: #ffc400;
}

.feedback-reply-spinner {
	display: inline-block;
	width: 0.85rem;
	height: 0.85rem;
	margin-right: 0.45rem;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	vertical-align: -0.12em;
	animation: feedback-reply-spin 0.7s linear infinite;
}

.feedback-reply-suggestions-loading .feedback-reply-spinner {
	margin-right: 0;
}

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

.feedback-detail-tabs .nav-link {
	color: var(--text-soft, #495057);
	background: var(--panel-solid, #ffffff);
	border: 1px solid var(--line-btn, #ced4da);
	cursor: pointer;
}

.feedback-detail-tabs .nav-link:hover,
.feedback-detail-tabs .nav-link:focus,
.feedback-detail-tabs .nav-link:focus-visible {
	color: var(--text-strong, #0b0d12);
	background: var(--hover, #eef2ff);
	border-color: var(--brand-strong, #6f61ff);
	outline: 0;
}

.feedback-detail-tabs .nav-link.active {
	color: var(--on-brand, #ffffff);
	background: var(--brand, #7c6af7);
	border-color: var(--brand-strong, #6f61ff);
}

/* Site settings: compact underline tabs instead of pill buttons */
.site-settings-section .feedback-detail-tabs {
	gap: 0.25rem !important;
	border-bottom: 1px solid var(--line, #e5e7eb);
}

.site-settings-section .feedback-detail-tabs .nav-link {
	background: transparent;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	color: var(--text-soft, #6b7280);
	padding: 0.3rem 0.6rem;
	font-size: 0.8125rem;
	margin-bottom: -1px;
}

.site-settings-section .feedback-detail-tabs .nav-link:hover,
.site-settings-section .feedback-detail-tabs .nav-link:focus,
.site-settings-section .feedback-detail-tabs .nav-link:focus-visible {
	background: transparent;
	border-color: transparent;
	border-bottom-color: var(--line-btn, #ced4da);
	color: var(--text-strong, #0b0d12);
}

.site-settings-section .feedback-detail-tabs .nav-link.active {
	background: transparent;
	color: var(--brand-strong, #6f61ff);
	border-color: transparent;
	border-bottom-color: var(--brand-strong, #6f61ff);
}

.feedback-screenshot-thumb {
	display: block;
	width: 100%;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: zoom-in;
	text-align: left;
}

.feedback-screenshot img {
	width: 100%;
	background: #fff;
}

.feedback-video {
	display: block;
	width: 100%;
	max-height: 420px;
	background: #050b1e;
}

.feedback-attachment-link {
	color: var(--text, #212529);
	background: var(--panel-solid, #ffffff);
	border: 1px solid var(--line-soft, #e6e9ef);
	text-decoration: none;
}

.feedback-attachment-link:hover {
	color: var(--text-strong, #0b0d12);
	background: var(--hover, #eef2ff);
	border-color: var(--brand-strong, #6f61ff);
}

.feedback-preview-modal .modal-body {
	padding: 0;
}

.feedback-preview-image {
	display: block;
	width: 100%;
	max-height: 78vh;
	object-fit: contain;
	background: #fff;
	border-radius: 0 0 0.375rem 0.375rem;
}

@media (max-width: 899.98px) {
	.feedback-admin-layout {
		grid-template-columns: minmax(0, 1fr);
		height: auto;
		overflow: visible;
	}

	.feedback-admin-layout.is-wide .feedback-admin-content {
		overflow: visible;
		padding-right: 0;
	}

	#feedback-admin-list,
	.feedback-admin-detail {
		max-height: min(600px, calc(100vh - 220px));
	}
}

@media (max-width: 767.98px) {
	body:has(.sidebar) {
		--app-sidebar-width: 100%;
	}

	.sidebar {
		height: auto;
		max-height: 45vh;
	}
}

/* Site card drop overlay (sidebar) */
.site-item .site-drop-overlay {
	position: absolute;
	inset: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(253, 126, 20, 0.12);
	border: 2px dashed #fd7e14;
	border-radius: 0.5rem;
	pointer-events: none;
}

.site-drop-overlay-inner {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: #fd7e14;
}

.site-drop-overlay-inner i {
	font-size: 1rem;
}

/* Site overview drop overlay */
#site-overview > .site-drop-overlay {
	position: absolute;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(108, 117, 125, 0.35);
	border-radius: 0.5rem;
}

.site-color {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	display: inline-block;
}

/* Section links in sidebar */
.section-link {
	display: flex;
	font-size: 0.85rem;
	color: var(--text);
	text-decoration: none;
}

.section-count {
	margin-left: auto;
	font-size: 0.75rem;
	color: #6c757d;
	font-weight: 500;
}

/* URL cards */
.url-card .og-image,
.url-item .og-image {
	max-height: 120px;
	object-fit: cover;
}

.site-url-source-select {
	flex: 0 0 9rem !important;
}

.site-url-row-source-select {
	width: 9rem;
}

.knowledge-page-purpose-list {
	max-width: 38rem;
}

.og-image-thumb {
	width: 80px;
	height: 80px;
	object-fit: cover;
}

/* Memory tags */
.tag-badge {
	font-size: 0.65rem;
}
.text-bg-secondary {
	color: var(--tag-color) !important;
	background-color: #dfdfdf !important;
}
.btn-close-white {
	--bs-btn-close-filter: var(--tag-color) !important;
}
.text-badge-darker {
	color: var(--bs-teal) !important;
	background-color: var(--bs-dark) !important;
}

.kk-settings-tabs {
	gap: 0.5rem;
	border-bottom: 0;
	margin-bottom: 0.25rem;
}

.kk-settings-tabs .nav-link {
	border: 1px solid var(--bs-border-color);
	border-radius: 0.6rem;
	padding: 0.45rem 0.9rem;
	font-weight: 500;
	color: #495057;
	background: #fff;
	transition: all 0.15s ease-in-out;
}

.kk-settings-tabs .nav-link:hover,
.kk-settings-tabs .nav-link:focus {
	color: #212529;
	background: #f8f9fa;
	border-color: var(--bs-border-color);
	box-shadow: none;
}

.kk-settings-tabs .nav-link.active,
.kk-settings-tabs .show > .nav-link {
	color: var(--on-brand, #fff);
	background: var(--brand, #0d6efd);
	border-color: var(--brand, #0d6efd);
	box-shadow: 0 4px 14px var(--brand-shadow, rgba(13, 110, 253, 0.18));
}

/* Editor container */
#editor-container .ProseMirror {
	min-height: 400px;
	padding: 1rem;
	border: 1px solid #dee2e6;
	border-radius: 0.375rem;
	outline: none;
}

#editor-container .ProseMirror:focus {
	border-color: var(--brand-border, #86b7fe);
	box-shadow: 0 0 0 0.25rem var(--brand-focus-ring, rgba(13, 110, 253, 0.25));
}

#editor-container .ProseMirror p.is-editor-empty:first-child::before,
#memory-editor-container .ProseMirror p.is-editor-empty:first-child::before,
#rm-note-editor .ProseMirror p.is-editor-empty:first-child::before,
#rm-memory-editor .ProseMirror p.is-editor-empty:first-child::before,
.changelog-editor-container .ProseMirror p.is-editor-empty:first-child::before {
	content: attr(data-placeholder);
	color: #adb5bd;
	float: left;
	height: 0;
	pointer-events: none;
}

#memory-editor-container .ProseMirror {
	min-height: 400px;
	padding: 1rem;
	border: 1px solid #dee2e6;
	border-radius: 0.375rem;
	outline: none;
}

#memory-editor-container .ProseMirror:focus {
	border-color: var(--brand-border, #86b7fe);
	box-shadow: 0 0 0 0.25rem var(--brand-focus-ring, rgba(13, 110, 253, 0.25));
}

#rm-note-editor .ProseMirror,
#rm-memory-editor .ProseMirror {
	min-height: 300px;
	padding: 1rem;
	border: 1px solid #dee2e6;
	border-radius: 0.375rem;
	outline: none;
}

#rm-note-editor .ProseMirror:focus,
#rm-memory-editor .ProseMirror:focus {
	border-color: var(--brand-border, #86b7fe);
	box-shadow: 0 0 0 0.25rem var(--brand-focus-ring, rgba(13, 110, 253, 0.25));
}

.changelog-editor-modal-dialog {
	margin-bottom: 1rem;
	margin-top: 1rem;
}

.changelog-editor-modal-dialog .modal-content {
	max-height: calc(100vh - 2rem);
}

.changelog-editor-modal-dialog .modal-body {
	overflow-y: auto;
}

.changelog-editor-drawer {
	--bs-offcanvas-width: 40vw;
	--tblr-offcanvas-width: 40vw;
	--bs-body-color: #eef3ff;
	--bs-body-bg: #050b1e;
	--bs-border-color: #2a3c77;
	--bs-tertiary-bg: rgba(13, 24, 54, 0.92);
	background: #050b1e;
	color: #eef3ff;
	display: flex;
	flex-direction: column;
	height: 100vh;
}

.changelog-editor-drawer .offcanvas-header,
.changelog-editor-drawer .modal-footer {
	background: #050b1e;
	border-color: #2a3c77;
	color: #eef3ff;
}

.changelog-editor-drawer .offcanvas-title,
.changelog-editor-drawer .form-label,
.changelog-editor-drawer .form-check-label {
	color: #eef3ff;
}

.changelog-editor-drawer .form-text,
.changelog-editor-drawer .text-muted {
	color: #b9c6f4 !important;
}

.changelog-editor-drawer .form-control,
.changelog-editor-drawer .form-select {
	color: #eef3ff;
	background-color: rgba(13, 24, 54, 0.92);
	border-color: #2a3c77;
}

.changelog-editor-drawer .form-control:focus,
.changelog-editor-drawer .form-select:focus {
	color: #fff;
	background-color: rgba(13, 24, 54, 0.98);
	border-color: #ffc400;
	box-shadow: 0 0 0 0.2rem rgba(255, 196, 0, 0.18);
}

body.kk-template1 .changelog-editor-drawer .ts-wrapper.form-select.customer-search-select {
	width: 100%;
	min-width: 0;
	color: #eef3ff;
	background-color: rgba(13, 24, 54, 0.92);
	border-color: #2a3c77;
}

body.kk-template1 .changelog-editor-drawer .ts-wrapper.form-select.customer-search-select.focus {
	border-color: #ffc400;
	box-shadow: 0 0 0 0.2rem rgba(255, 196, 0, 0.18);
}

body.kk-template1 .changelog-editor-drawer .ts-wrapper.form-select.customer-search-select .ts-control {
	align-items: center;
	color: #eef3ff;
	padding: 0.25rem 2rem 0.125rem 0.5rem !important;
}

body.kk-template1 .changelog-editor-drawer .ts-wrapper.customer-search-select .ts-control input,
body.kk-template1 .changelog-editor-drawer .ts-wrapper.customer-search-select .customer-select-item,
body.kk-template1 .changelog-editor-drawer .ts-wrapper.customer-search-select .customer-select-item-name {
	color: #eef3ff;
}

body.kk-template1 .changelog-editor-drawer .ts-wrapper.multi.customer-search-select .ts-control > .customer-select-item {
	max-width: 100%;
	margin: 0 0.375rem 0.125rem 0;
	padding: 0.125rem 0 0.125rem 0.5rem !important;
	background: rgba(17, 31, 69, 0.98);
	border-color: #40558f;
}

body.kk-template1 .changelog-editor-drawer .ts-wrapper.customer-search-select .ts-control .item .remove {
	padding: 0 !important;
	margin-left: 0.25rem !important;
	color: #b9c6f4;
	border-left: 0 !important;
}

body.kk-template1 .changelog-editor-drawer .ts-wrapper.customer-search-select .ts-control .item .remove:hover,
body.kk-template1 .changelog-editor-drawer .ts-wrapper.customer-search-select .ts-control .item .remove:focus {
	color: #fff;
	background: rgba(255, 196, 0, 0.22);
}

body.kk-template1 .changelog-editor-drawer .ts-dropdown {
	color: #eef3ff;
	background: #0d1836;
	border-color: #2a3c77;
}

body.kk-template1 .changelog-editor-drawer .ts-dropdown .dropdown-input-wrap {
	border-bottom-color: #2a3c77;
}

body.kk-template1 .changelog-editor-drawer .ts-dropdown .dropdown-input {
	color: #eef3ff;
	background: rgba(13, 24, 54, 0.98);
	border-color: #2a3c77;
}

body.kk-template1 .changelog-editor-drawer .ts-dropdown .option {
	color: #eef3ff;
}

body.kk-template1 .changelog-editor-drawer .ts-dropdown .option.active,
body.kk-template1 .changelog-editor-drawer .ts-dropdown .option:hover {
	color: #fff;
	background: rgba(17, 31, 69, 0.98);
}

body.kk-template1 .changelog-editor-drawer .ts-dropdown .customer-select-option-meta {
	color: #b9c6f4;
}

.changelog-editor-drawer .form-control::placeholder {
	color: #8ea0d2;
}

.changelog-editor-drawer [data-changelog-form] {
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}

.changelog-editor-drawer .offcanvas-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
	overflow: hidden;
	padding: 1rem 1.25rem 1.25rem;
}

.changelog-editor-drawer .modal-footer {
	flex: 0 0 auto;
	gap: 1rem;
	padding: 1rem 1.25rem;
}

.changelog-editor-main {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
}

.changelog-editor-body-field {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
}

.changelog-editor-container {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
}

.changelog-editor-container .ProseMirror {
	flex: 1 1 auto;
	min-height: 26.25rem;
	overflow-y: auto;
	padding: 1rem;
	color: #eef3ff;
	background: rgba(13, 24, 54, 0.72);
	border: 1px solid #2a3c77;
	border-radius: 0.375rem;
	outline: none;
}

.changelog-editor-drawer.has-body-suggestions .offcanvas-body {
	overflow-y: auto;
}

.changelog-editor-drawer.has-body-suggestions .changelog-editor-main {
	flex-shrink: 0;
	min-height: 15rem;
}

.changelog-editor-drawer.has-body-suggestions .changelog-editor-container .ProseMirror {
	min-height: 12rem;
}

.changelog-body-suggestions:not([hidden]) {
	display: flex;
	flex: 0 1 18rem;
	flex-direction: column;
	margin-top: 1rem;
	min-height: 8rem;
}

.changelog-body-suggestions-list {
	min-height: 0;
	overflow-y: auto;
	padding-right: 0.25rem;
	scrollbar-gutter: stable;
}

.changelog-body-suggestion {
	background: rgba(13, 24, 54, 0.92);
	border: 1px solid #2a3c77;
	color: #eef3ff;
	font-size: 0.8125rem;
	line-height: 1.4;
	margin-bottom: 0.5rem;
	padding: 0.75rem;
}

.changelog-body-suggestion-text {
	white-space: normal;
}

.changelog-body-suggestion-text > :last-child {
	margin-bottom: 0;
}

.changelog-body-suggestion-text ul,
.changelog-body-suggestion-text ol {
	padding-left: 1.25rem;
}

.changelog-editor-container .ProseMirror:focus {
	border-color: #ffc400;
	box-shadow: 0 0 0 0.2rem rgba(255, 196, 0, 0.18);
}

.changelog-editor-container .ProseMirror img,
.changelog-editor-container .ProseMirror video {
	border-radius: 0.375rem;
	display: block;
	height: auto;
	margin: 0.75rem 0;
	max-width: 100%;
}

.changelog-cover-preview {
	border: 1px solid var(--bs-border-color);
	border-radius: 0.375rem;
	display: block;
	height: auto;
	margin-bottom: 0.5rem;
	max-height: 260px;
	max-width: 100%;
	object-fit: contain;
}

@media (max-width: 767.98px) {
	.changelog-editor-modal-dialog {
		margin: 0.5rem;
	}

	.changelog-editor-modal-dialog .modal-content {
		max-height: calc(100vh - 1rem);
	}

	.changelog-editor-drawer {
		--bs-offcanvas-width: 100vw;
		--tblr-offcanvas-width: 100vw;
	}

	.changelog-editor-body-field,
	.changelog-editor-container .ProseMirror {
		min-height: 18.75rem;
	}

	.changelog-editor-drawer.has-body-suggestions .changelog-editor-container .ProseMirror {
		min-height: 10rem;
	}

	.changelog-body-suggestions:not([hidden]) {
		flex-basis: 14rem;
		min-height: 6rem;
	}
}

.logo-form img {
	max-height: 80px;
}

@media (max-width: 767.98px) {
	.mg-public-changelog-entry {
		gap: 0.75rem;
		grid-template-columns: 1fr;
		padding: 2rem 0;
	}

	.mg-public-changelog-date span {
		position: static;
	}
}

.navbar-brand img {
	max-height: 30px;
	margin-left: 0.3rem;
}

/* Ghost-style source search field */
.source-search-wrap {
	position: relative;
}

.source-search-wrap .source-search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #adb5bd;
	font-size: 14px;
	pointer-events: none;
}

.source-search-wrap input {
	padding-left: 36px;
	border: 1px solid #e1e5e9;
	border-radius: 6px;
	background: #f9fafb;
	transition:
		border-color 0.15s,
		box-shadow 0.15s;
}

.source-search-wrap input:focus {
	background: #fff;
	border-color: #15171a;
	box-shadow: none;
}

.source-dropdown {
	border: 1px solid #e1e5e9;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	background: #fff;
}

.source-dropdown .list-group-item.active {
	background-color: var(--bs-list-group-action-hover-bg, rgba(0, 0, 0, 0.075));
	color: inherit;
	border-color: var(--bs-list-group-border-color);
}

#chat-result-modal .modal-body {
	overflow: visible;
}

#chat-result-modal .nav-tabs {
	--bs-nav-tabs-border-color: var(--bs-border-color);
	--bs-nav-tabs-link-hover-border-color: var(--bs-border-color);
	--bs-nav-tabs-link-active-bg: #0f1730;
	--bs-nav-tabs-link-active-border-color: var(--bs-border-color) var(--bs-border-color) #0f1730;
	border-bottom-color: var(--bs-border-color);
}

#chat-result-modal .nav-tabs .nav-link {
	outline: none;
	box-shadow: none;
	border-color: transparent;
}

#chat-result-modal .nav-tabs .nav-link:hover,
#chat-result-modal .nav-tabs .nav-link:focus,
#chat-result-modal .nav-tabs .nav-link:focus-visible {
	outline: none;
	box-shadow: none;
	border-color: var(--bs-border-color);
}

#chat-result-modal .nav-tabs .nav-link.active,
#chat-result-modal .nav-tabs .nav-item.show .nav-link {
	border-color: var(--bs-border-color) var(--bs-border-color) #0f1730;
	background: #0f1730;
}

#chat-result-modal .border,
#chat-result-modal .preview-container,
#chat-result-modal .source-dropdown,
#chat-result-modal #rm-note-editor .ProseMirror,
#chat-result-modal #rm-memory-editor .ProseMirror,
#chat-result-modal #rm-email-content {
	border-color: var(--bs-border-color) !important;
}

#chat-result-modal .preview-container {
	background: #0f1730;
}

#chat-result-modal .preview-container pre {
	border: 1px solid var(--bs-border-color);
	background: #121a34;
}

#chat-result-modal .preview-container blockquote {
	border-left-color: var(--bs-border-color);
}

#rm-url-tab-pages-count {
	background: rgba(124, 137, 188, 0.25);
	color: #dce5ff;
	font-weight: 500;
}

#rm-url-pane-pages .rm-crawl-item {
	background: rgba(23, 33, 63, 0.55) !important;
	border-color: rgba(151, 166, 206, 0.28) !important;
	color: #e8edff !important;
}

#rm-url-pane-pages .rm-crawl-item:hover {
	background: rgba(34, 47, 89, 0.85) !important;
}

#rm-url-pane-pages .rm-crawl-title {
	color: #eef2ff;
}

#rm-url-pane-pages .rm-crawl-url {
	color: #9fb0da;
}

#rm-email-thread {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.rm-email-thread-item {
	width: 100%;
	padding: 0.7rem 0.8rem;
	border: 1px solid var(--bs-border-color);
	border-radius: 0.75rem;
	background: #f7f9fc;
	color: inherit;
	text-align: left;
	transition:
		background 0.15s ease,
		border-color 0.15s ease,
		box-shadow 0.15s ease;
}

.rm-email-thread-item:hover {
	background: #eef2f7;
	border-color: var(--bs-border-color);
}

.rm-email-thread-item.is-active {
	background: #eef3ff;
	border-color: var(--bs-border-color);
	box-shadow: inset 0 0 0 1px rgba(42, 56, 109, 0.14);
}

.rm-email-thread-subject {
	color: #212529;
}

.rm-email-thread-date {
	color: #6c757d;
}

/* Batch action toolbar */
#batch-toolbar {
	padding: 0.25rem 0;
}

#batch-toolbar .btn {
	font-weight: 800 !important;
}

.batch-actions {
	padding: 0;
}

.batch-cb-wrap {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.batch-cb {
	cursor: pointer;
}

/* ---- Drop overlay for file import ---- */

#site-drop-zone {
	min-height: 200px;
}

.drop-overlay {
	position: absolute;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(108, 117, 125, 0.35);
	border-radius: 0.5rem;
}

.drop-overlay-card {
	background: #fff;
	border-radius: 0.75rem;
	padding: 2.5rem 4rem;
	text-align: center;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.drop-overlay-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 1rem;
	border-radius: 50%;
	background: rgba(253, 126, 20, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
}

.drop-overlay-icon i {
	font-size: 1.75rem;
	color: #fd7e14;
}

/* FilePond — hidden by default, slides in during uploads */
#site-drop-zone .filepond--root {
	height: 0;
	overflow: hidden;
	opacity: 0;
	transition:
		opacity 0.3s ease,
		height 0.3s ease,
		margin 0.3s ease;
	margin-bottom: 0;
}

#site-drop-zone .filepond--root.filepond--active {
	height: auto;
	overflow: visible;
	opacity: 1;
	margin-bottom: 1rem;
}

/* Preview / Edit tab containers */
.preview-container {
	overflow-y: auto;
	background: #fff;
	word-wrap: break-word;
}

.preview-container img {
	max-width: 100%;
	height: auto;
}

.preview-container pre {
	background: #f8f9fa;
	padding: 0.75rem;
	border-radius: 0.375rem;
	overflow-x: auto;
}

.preview-container code {
	font-size: 0.875em;
}

.preview-container blockquote {
	border-left: 3px solid #dee2e6;
	padding-left: 1rem;
	color: #6c757d;
}

/* ---- Initials avatar ---- */
.avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-weight: 600;
	text-transform: uppercase;
	color: #fff;
	flex-shrink: 0;
	line-height: 1;
	user-select: none;
}

.avatar-xs {
	width: 24px;
	height: 24px;
	font-size: 0.625rem;
}

.avatar-sm {
	width: 32px;
	height: 32px;
	font-size: 0.75rem;
}

.avatar-md {
	width: 40px;
	height: 40px;
	font-size: 0.875rem;
}

.avatar-lg {
	width: 64px;
	height: 64px;
	font-size: 1.25rem;
}

.avatar-xl {
	width: 96px;
	height: 96px;
	font-size: 1.75rem;
}

/* Chat message with avatar */
.chat-msg-row {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.chat-msg-row.user {
	flex-direction: row-reverse;
}

.chat-msg-row .chat-message {
	margin-bottom: 0;
}

/* SweetAlert2 — prevent body height override from collapsing flex layout.
   Double-class selector raises specificity above SweetAlert2's injected <style>,
   which otherwise wins when both use !important at equal specificity. */
body.swal2-height-auto.swal2-height-auto {
	height: 100vh !important;
}

/* SweetAlert2 — keep the overlay from breaking body flex layout */
body:has(.sidebar) > .swal2-container {
	position: fixed !important;
}

/* SweetAlert2 — after dialog closes the leftover container must not block clicks */
body:not(.swal2-shown) > .swal2-container {
	pointer-events: none !important;
}

/* SweetAlert2 — confirm button always on the right */
.swal2-actions {
	flex-direction: row-reverse;
}

/* SweetAlert2 — form styling */
.swal2-input {
	height: auto !important;
	padding: 0.375rem 0.75rem !important;
	font-size: 0.875rem !important;
	margin: 0.15em 1em !important;
	width: calc(100% - 2em) !important;
}
.swal2-html-container label.swal-label {
	display: block;
	text-align: left;
	font-size: 0.8rem;
	font-weight: 600;
	color: #495057;
	margin: 0.6rem 1em 0.1rem;
}
.swal2-html-container .swal-hint {
	display: block;
	text-align: left;
	font-size: 0.75rem;
	color: #868e96;
	margin: 0.05rem 1em 0;
}
.swal2-html-container .input-group {
	margin: 0.15em 1em;
	width: calc(100% - 2em);
}
.swal2-html-container .input-group .form-control {
	font-size: 0.875rem;
}

.mg-public-page {
	background: var(--mg-page-bg, var(--mg-bg, #f8fafc));
	color: var(--mg-text, #171717);
	font-family: var(--mg-font, "Noto Sans", Arial, sans-serif);
	font-size: var(--mg-font-size, 14px);
	line-height: var(--mg-line-height, 1.5);
	min-height: 100vh;
}

.mg-public-page > .container {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	max-width: var(--mg-content-width, 1140px);
	min-height: 100vh;
	padding-bottom: var(--mg-page-padding, 3rem) !important;
	padding-top: var(--mg-page-padding, 3rem) !important;
}

.mg-public-page h1,
.mg-public-page h2,
.mg-public-page h3,
.mg-public-page h4,
.mg-public-page h5,
.mg-public-page h6 {
	color: var(--mg-text, #171717);
	font-family: var(--mg-heading-font, var(--mg-font, "Noto Sans", Arial, sans-serif));
	line-height: 1.2;
}

.mg-public-page h1 {
	font-size: var(--mg-heading-font-size, 2rem);
}

.mg-public-subtitle,
.mg-public-page .text-muted {
	color: var(--mg-muted, #6b7280) !important;
}

.mg-public-subtitle {
	font-size: 1.2rem;
}

.mg-public-powered-by {
	color: var(--mg-muted, #6b7280);
	flex: 0 0 auto;
	font-size: .825rem;
	margin-top: auto;
	padding-top: 2rem;
	text-align: center;
}

.mg-public-powered-by a {
	color: inherit;
	text-decoration: none;
}

.mg-public-powered-by a:hover {
	text-decoration: underline;
}

.mg-public-logo {
	max-width: 180px;
	max-height: 48px;
	object-fit: contain;
}

.mg-public-nav {
	flex-wrap: wrap;
}

.mg-public-nav-wrap {
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: flex-end;
}

.mg-public-search-trigger {
	align-items: center;
	cursor: pointer;
	display: inline-flex;
	gap: 0.35rem;
	margin-right: 3rem;
	white-space: nowrap;
}

.mg-public-search-trigger .kk-icon {
	font-size: 1rem !important;
	line-height: 1;
}

.mg-public-search-shortcut {
	border-left: var(--mg-border-width, 1px) solid var(--mg-border, #e5e7eb);
	color: var(--mg-muted, #6b7280);
	font-size: 0.72rem;
	margin-left: 0.25rem;
	padding-left: 0.45rem;
}

.mg-public-page-heading {
	min-width: 0;
}

.mg-public-page .btn-primary {
	background-color: var(--mg-button-bg, var(--mg-primary, #635bff));
	border-color: var(--mg-button-border, var(--mg-primary, #635bff));
	border-radius: var(--mg-radius, 8px);
	color: var(--mg-button-text, #fff);
	font-size: var(--mg-font-size, 14px);
	line-height: var(--mg-line-height, 1.5);
	padding: var(--mg-control-padding, 0.25rem 0.5rem);
}

.mg-public-page .btn-primary:hover,
.mg-public-page .btn-primary:focus {
	background-color: var(--mg-button-hover-bg, var(--mg-button-bg, var(--mg-primary, #635bff)));
	border-color: var(--mg-button-hover-border, var(--mg-button-border, var(--mg-primary, #635bff)));
	color: var(--mg-button-hover-text, var(--mg-button-text, #fff));
}

.mg-public-page .btn-outline-secondary {
	background-color: var(--mg-secondary-button-bg, transparent);
	border-color: var(--mg-secondary-button-border, var(--mg-border, #e5e7eb));
	border-radius: var(--mg-radius, 8px);
	color: var(--mg-secondary-button-text, var(--mg-text, #171717));
	font-size: var(--mg-font-size, 14px);
	line-height: var(--mg-line-height, 1.5);
	padding: var(--mg-control-padding, 0.25rem 0.5rem);
}

.mg-public-page .btn-outline-secondary:hover,
.mg-public-page .btn-outline-secondary:focus {
	background-color: var(--mg-secondary-button-hover-bg, var(--mg-secondary-button-bg, transparent));
	border-color: var(--mg-secondary-button-hover-border, var(--mg-secondary-button-border, var(--mg-border, #e5e7eb)));
	color: var(--mg-secondary-button-hover-text, var(--mg-secondary-button-text, var(--mg-text, #171717)));
}

.mg-public-search-open {
	overflow: hidden;
}

.mg-public-search-overlay[hidden] {
	display: none;
}

.mg-public-search-overlay {
	inset: 0;
	position: fixed;
	z-index: 1080;
}

.mg-public-search-backdrop {
	background: color-mix(in srgb, var(--mg-text, #171717) 34%, transparent);
	cursor: pointer;
	height: 100%;
	position: absolute;
	width: 100%;
}

.mg-public-search-panel {
	background: var(--mg-surface, #fff);
	border: var(--mg-border-width, 1px) solid var(--mg-border, #e5e7eb);
	border-radius: var(--mg-radius, 8px);
	box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
	color: var(--mg-text, #171717);
	left: 50%;
	max-height: min(72vh, 720px);
	max-width: min(92vw, 720px);
	overflow: hidden;
	position: absolute;
	top: 7rem;
	transform: translateX(-50%);
	width: 720px;
}

.mg-public-search-head {
	align-items: center;
	border-bottom: var(--mg-border-width, 1px) solid var(--mg-border, #e5e7eb);
	display: flex;
	justify-content: space-between;
	padding: 0.85rem 1rem;
}

.mg-public-search-label {
	color: var(--mg-text, #171717);
	font-size: 1rem;
	font-weight: 700;
	margin: 0;
}

.mg-public-search-close {
	background: transparent;
	border: 0;
	color: var(--mg-text, #171717);
	cursor: pointer;
	height: 2rem;
	opacity: 0.72;
	position: relative;
	width: 2rem;
}

.mg-public-search-close:hover,
.mg-public-search-close:focus {
	opacity: 1;
}

.mg-public-search-close::before,
.mg-public-search-close::after {
	background: currentColor;
	content: "";
	height: 2px;
	left: 50%;
	position: absolute;
	top: 50%;
	width: 1.1rem;
}

.mg-public-search-close::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.mg-public-search-close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.mg-public-search-input-wrap {
	align-items: center;
	border-bottom: var(--mg-border-width, 1px) solid var(--mg-border, #e5e7eb);
	display: flex;
	gap: 0.65rem;
	padding: 0.85rem 1rem;
}

.mg-public-search-input-wrap .kk-icon {
	color: var(--mg-muted, #6b7280);
	font-size: 1.25rem !important;
	line-height: 1;
}

.mg-public-search-input-wrap .form-control {
	background: transparent;
	border: 0;
	box-shadow: none;
	color: var(--mg-text, #171717);
	font-size: 1rem;
	padding: 0;
}

.mg-public-search-status {
	color: var(--mg-muted, #6b7280);
	font-size: 0.78rem;
	min-height: 1.75rem;
	padding: 0.45rem 1rem 0;
}

.mg-public-search-results {
	display: flex;
	flex-direction: column;
	max-height: calc(min(72vh, 720px) - 8.4rem);
	overflow: auto;
	padding: 0.45rem;
}

.mg-public-search-result {
	background: transparent;
	border: var(--mg-border-width, 1px) solid transparent;
	border-radius: var(--mg-radius, 8px);
	color: var(--mg-text, #171717);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.75rem;
	text-align: left;
	width: 100%;
}

.mg-public-search-result:hover,
.mg-public-search-result:focus,
.mg-public-search-result.is-active {
	background: color-mix(in srgb, var(--mg-primary, #635bff) 8%, var(--mg-surface, #fff));
	border-color: color-mix(in srgb, var(--mg-primary, #635bff) 28%, var(--mg-border, #e5e7eb));
	outline: none;
}

.mg-public-search-result-kicker {
	color: var(--mg-muted, #6b7280);
	font-size: 0.78rem;
	font-weight: 600;
}

.mg-public-search-result-title {
	color: var(--mg-text, #171717);
	font-size: 1.1rem;
	font-weight: 800;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.mg-public-search-result-description {
	color: var(--mg-muted, #6b7280);
	font-size: 1rem;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.mg-public-search-result mark {
	background: #fff3a3;
	border-radius: 3px;
	color: inherit;
	padding: 0 0.12em;
}

.mg-public-card {
	background: var(--mg-surface, #fff);
	border-color: var(--mg-border, #e5e7eb);
	border-width: var(--mg-border-width, 1px);
	border-radius: var(--mg-radius, 8px);
	box-shadow: var(--mg-shadow, none);
	color: var(--mg-text, #171717);
}

.mg-public-card .card-body {
	padding: var(--mg-surface-padding, 1rem) !important;
}

.mg-public-card .card-header {
	background: var(--mg-header-bg, var(--mg-surface, #fff));
	border-color: var(--mg-header-border, var(--mg-border, #e5e7eb));
	border-width: var(--mg-border-width, 1px);
	color: var(--mg-header-text, var(--mg-text, #171717));
	padding: var(--mg-surface-padding, 1rem);
}

.mg-public-card-heading {
	align-items: flex-start;
}

.mg-public-card-copy {
	color: var(--mg-text, #171717);
}

.mg-public-feedback-list {
	display: flex;
	flex-direction: column;
	gap: var(--mg-gap, 0.75rem);
}

.mg-public-feedback-card-wrap {
	width: 100%;
}

.mg-public-feedback-card {
	border: var(--mg-border-width, 1px) solid var(--mg-border, #e5e7eb);
	overflow: hidden;
}

.mg-public-feedback-card-body {
	align-items: stretch;
	display: grid;
	gap: 1rem;
	grid-template-columns: 4rem minmax(0, 1fr);
	padding: var(--mg-surface-padding, 1rem);
}

.mg-public-feedback-vote {
	align-items: center;
	align-self: start;
	background: transparent;
	border: var(--mg-border-width, 1px) solid transparent;
	border-radius: var(--mg-radius, 8px);
	color: var(--mg-feedback-upvote-icon-color, var(--mg-primary, #635bff));
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 0.05rem;
	font-weight: 700;
	justify-content: center;
	line-height: 1.1;
	min-height: 3.5rem;
	padding: 0.25rem;
	width: 3.25rem;
}

.mg-public-feedback-vote:hover,
.mg-public-feedback-vote:focus,
.mg-public-feedback-vote.is-active {
	background: color-mix(in srgb, var(--mg-primary, #635bff) 10%, transparent);
	border-color: color-mix(in srgb, var(--mg-primary, #635bff) 35%, transparent);
	color: var(--mg-primary, #635bff);
}

.mg-public-feedback-vote-icon {
	color: inherit;
	font-size: var(--mg-feedback-upvote-icon-font-size, 1.1rem) !important;
	line-height: 1;
	vertical-align: -0.18em;
}

.mg-public-feedback-vote-count {
	color: var(--mg-feedback-upvote-count-color, var(--mg-muted, #6b7280));
	font-size: var(--mg-feedback-upvote-count-font-size, 0.84rem);
}

.mg-public-feedback-main {
	appearance: none;
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	display: grid;
	gap: 1rem;
	grid-template-columns: minmax(0, 1fr) auto;
	padding: 0;
	text-align: left;
	width: 100%;
}

.mg-public-page .mg-public-feedback-title {
	color: var(--mg-feedback-title-color, var(--mg-text, #171717));
	font-family: var(--mg-heading-font, var(--mg-font, "Noto Sans", Arial, sans-serif));
	font-size: var(--mg-feedback-title-font-size, 1.05rem);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 0.35rem;
	overflow-wrap: anywhere;
}

.mg-public-feedback-description {
	color: var(--mg-feedback-description-color, var(--mg-muted, #6b7280));
	display: -webkit-box;
	font-size: var(--mg-feedback-description-font-size, var(--mg-font-size, 14px));
	line-height: 1.45;
	margin: 0 0 0.7rem;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.mg-public-feedback-meta,
.mg-public-feedback-tags,
.mg-public-feedback-side,
.mg-public-feedback-comment-count {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.mg-public-feedback-meta {
	color: var(--mg-feedback-detail-color, var(--mg-muted, #6b7280));
	font-size: var(--mg-feedback-detail-font-size, 0.78rem);
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.mg-public-feedback-tag {
	color: var(--mg-feedback-detail-color, var(--mg-muted, #6b7280));
	font-size: var(--mg-feedback-detail-font-size, 0.78rem);
}

.mg-public-feedback-side {
	align-content: end;
	align-items: flex-end;
	flex-direction: column;
	justify-content: flex-end;
	min-width: 8rem;
	text-align: right;
}

.mg-public-feedback-comment-count {
	color: var(--mg-feedback-comment-count-color, var(--mg-muted, #6b7280));
	font-size: var(--mg-feedback-comment-count-font-size, 0.84rem);
	justify-content: flex-end;
}

.mg-public-feedback-comment-icon {
	color: var(--mg-feedback-comment-icon-color, var(--mg-muted, #6b7280));
	font-size: var(--mg-feedback-comment-icon-font-size, 1.1rem) !important;
	vertical-align: -0.18em;
}

.mg-public-feedback-side [data-feedback-reaction-summary] {
	color: var(--mg-feedback-detail-color, var(--mg-muted, #6b7280)) !important;
	font-size: var(--mg-feedback-detail-font-size, 0.78rem);
}

.mg-public-feedback-drawer-description {
	color: var(--mg-muted, #6b7280);
	margin-bottom: 1rem;
}

.mg-public-changelog-card {
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: var(--mg-text, #171717);
	cursor: pointer;
	display: block;
	padding: 0;
	text-align: left;
	width: 100%;
}

.mg-public-changelog-card:hover,
.mg-public-changelog-card:focus {
	border-color: transparent;
	box-shadow: none;
	outline: none;
}

.mg-public-changelog-card:hover .mg-public-changelog-title {
	text-decoration: underline;
	text-decoration-thickness: 0.0625rem;
	text-underline-offset: 0.18em;
}

.mg-public-changelog-card:focus-visible {
	outline: 0.125rem solid var(--mg-primary, #635bff);
	outline-offset: 0.5rem;
}

.mg-public-changelog-title {
	color: var(--mg-changelog-title-color, var(--mg-text, #171717)) !important;
	font-size: var(--mg-changelog-title-font-size, var(--mg-heading-font-size, 1.2rem));
	font-weight: 700;
	overflow-wrap: anywhere;
}

.mg-public-changelog-excerpt {
	color: var(--mg-changelog-excerpt-color, var(--mg-muted, #6b7280));
	font-size: var(--mg-changelog-excerpt-font-size, var(--mg-font-size, 14px));
	line-height: var(--mg-line-height, 1.5);
	margin: 0;
	overflow-wrap: anywhere;
}

/* .mg-public-page-changelog > .container {
	padding-top: calc(var(--mg-page-padding, 3rem) + 1.5rem) !important;
} */

.mg-public-changelog-header-actions {
	display: flex;
	justify-content: flex-end;
	min-width: min(100%, 460px);
}

.mg-public-subscribe-form {
	align-items: center;
	display: flex;
	/* flex-wrap: wrap; */
	gap: 0.5rem;
	justify-content: flex-end;
}

/* .mg-public-subscribe-form input {
	max-width: 220px;
} */

.mg-public-changelog-feed {
	margin-top: 3rem;
}

.mg-public-changelog-entry {
	border-bottom: 0;
	display: grid;
	gap: 2rem;
	grid-template-columns: minmax(8rem, 10rem) minmax(0, 1fr);
	padding: 3rem 0;
	position: relative;
}

.mg-public-changelog-entry::before {
	background: var(--mg-primary, #635bff);
	border: 0.1875rem solid var(--mg-page-bg, var(--mg-bg, #f8fafc));
	border-radius: 50%;
	box-sizing: content-box;
	content: "";
	height: 0.75rem;
	left: -0.1875rem;
	position: absolute;
	top: 3.0625rem;
	width: 0.75rem;
	z-index: 1;
}

.mg-public-changelog-entry::after {
	background: color-mix(in srgb, var(--mg-primary, #635bff) 32%, var(--mg-border, #e5e7eb));
	bottom: -3rem;
	content: "";
	left: 0.34375rem;
	position: absolute;
	top: 4rem;
	width: 0.0625rem;
}

.mg-public-changelog-entry:last-child::after {
	display: none;
}

.mg-public-changelog-date {
	color: var(--mg-muted, #6b7280);
	font-size: 0.9rem;
	padding-left: 1.5rem;
}

.mg-public-changelog-date span {
	position: static;
}

.mg-public-changelog-entry-body {
	min-width: 0;
}

.mg-public-changelog-inline-image {
	border: var(--mg-border-width, 1px) solid var(--mg-border, #e5e7eb);
	border-radius: var(--mg-radius, 8px);
	display: block;
	height: auto;
	margin: 1.25rem 0;
	max-width: 100%;
}

.mg-public-changelog-drawer-image {
	border-radius: var(--mg-radius, 8px);
	display: block;
	height: auto;
	margin: 0 0 1.25rem;
	max-height: 800px;
	max-width: 100%;
	object-fit: contain;
	width: 100%;
}

.mg-public-changelog-actions {
	border-top: var(--mg-border-width, 1px) solid var(--mg-border, #e5e7eb);
	margin-top: 1.5rem;
	padding-top: 1rem;
}

.mg-public-reaction-row {
	align-items: center;
	display: flex;
	gap: 0.4rem;
	margin-bottom: 1rem;
}

.mg-public-reaction {
	align-items: center;
	background: var(--mg-surface, #fff);
	border: var(--mg-border-width, 1px) solid var(--mg-border, #e5e7eb);
	border-radius: 999px;
	cursor: pointer;
	display: inline-flex;
	gap: 0.25rem;
	min-height: 2rem;
	line-height: 1;
	padding: 0 0.55rem;
}

.mg-public-reaction.is-active {
	border-color: var(--mg-primary, #635bff);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--mg-primary, #635bff) 18%, transparent);
}

.mg-public-comment {
	border: var(--mg-border-width, 1px) solid var(--mg-border, #e5e7eb);
	border-radius: var(--mg-radius, 8px);
	margin-left: calc(var(--mg-comment-depth, 0) * 1rem);
	margin-bottom: 0.5rem;
	padding: 0.75rem;
}

.mg-public-comment.is-admin {
	background: color-mix(in srgb, var(--mg-primary, #635bff) 7%, var(--mg-surface, #fff));
}

.mg-public-comment-meta {
	align-items: center;
	color: var(--mg-muted, #6b7280);
	display: flex;
	font-size: 0.78rem;
	gap: 0.5rem;
	justify-content: space-between;
	margin-bottom: 0.35rem;
}

.mg-public-comment-body {
	overflow-wrap: anywhere;
}

.mg-public-comment-reply {
	background: transparent;
	border: 0;
	color: var(--mg-primary, #635bff);
	cursor: pointer;
	font-size: 0.78rem;
	margin-top: 0.4rem;
	padding: 0;
}

.mg-public-comment-form {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.mg-public-changelog-drawer {
	--bs-offcanvas-width: min(90vw, 1180px);
	background: var(--mg-surface, #fff);
	color: var(--mg-text, #171717);
	font-family: var(--mg-font, "Noto Sans", Arial, sans-serif);
	font-size: var(--mg-font-size, 14px);
}

.mg-public-changelog-drawer-header {
	background: var(--mg-surface, #fff) !important;
	border-bottom: var(--mg-border-width, 1px) solid var(--mg-border, #e5e7eb);
	color: var(--mg-changelog-text-color, var(--mg-text, #171717));
	padding: var(--mg-surface-padding, 1rem);
}

.mg-public-changelog-drawer-title {
	color: var(--mg-changelog-title-color, var(--mg-header-text, var(--mg-text, #171717))) !important;
	font-family: var(--mg-heading-font, var(--mg-font, "Noto Sans", Arial, sans-serif));
	font-size: var(--mg-changelog-title-font-size, var(--mg-heading-font-size, 1.2rem)) !important;
	line-height: 1.18;
}

.mg-public-changelog-drawer-body {
	background: var(--mg-surface, #fff);
	color: var(--mg-changelog-text-color, var(--mg-text, #171717));
	padding: var(--mg-surface-padding, 1rem);
}

.mg-public-page-changelog .mg-public-changelog-drawer-header > div,
[id^="public-search-changelog-"] .mg-public-changelog-drawer-header > div {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
}

.mg-public-page-changelog .mg-public-changelog-drawer-header .mg-public-date,
[id^="public-search-changelog-"] .mg-public-changelog-drawer-header .mg-public-date {
	margin-bottom: 0.5rem;
	order: -2;
	padding-top: 0;
}

.mg-public-page-changelog .mg-public-changelog-drawer-header .mg-public-badge,
[id^="public-search-changelog-"] .mg-public-changelog-drawer-header .mg-public-badge {
	order: -1;
}

.mg-public-page-changelog .mg-public-changelog-drawer-title,
[id^="public-search-changelog-"] .mg-public-changelog-drawer-title {
	color: var(--mg-text, #171717) !important;
	font-weight: 700;
}

.mg-public-page-changelog .mg-public-changelog-drawer-body,
[id^="public-search-changelog-"] .mg-public-changelog-drawer-body {
	padding: 4rem;
}

.mg-public-changelog-drawer-close {
	background-image: none;
	color: var(--mg-changelog-text-color, var(--mg-text, #171717));
	opacity: 0.72;
	position: relative;
}

.mg-public-changelog-drawer-close:hover,
.mg-public-changelog-drawer-close:focus {
	opacity: 1;
}

.mg-public-changelog-drawer-close::before,
.mg-public-changelog-drawer-close::after {
	background: currentColor;
	content: "";
	height: 2px;
	left: 50%;
	position: absolute;
	top: 50%;
	width: 1.1rem;
}

.mg-public-changelog-drawer-close::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.mg-public-changelog-drawer-close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.mg-public-changelog-text {
	color: var(--mg-changelog-text-color, var(--mg-text, #171717));
	font-size: var(--mg-changelog-text-font-size, var(--mg-font-size, 14px));
	line-height: var(--mg-line-height, 1.5);
	overflow-wrap: anywhere;
}

.mg-public-changelog-text p,
.mg-public-changelog-text li,
.mg-public-changelog-text blockquote,
.mg-public-changelog-text pre,
.mg-public-changelog-text code {
	color: var(--mg-changelog-text-color, var(--mg-text, #171717));
	font-size: var(--mg-changelog-text-font-size, var(--mg-font-size, 14px));
}

.mg-public-changelog-text > :last-child {
	margin-bottom: 0;
}

.mg-public-changelog-text a {
	color: var(--mg-primary, #635bff);
}

.mg-public-changelog-text h1,
.mg-public-changelog-text h2,
.mg-public-changelog-text h3,
.mg-public-changelog-text h4 {
	color: var(--mg-text, #171717);
	font-size: var(--mg-changelog-title-font-size, 1.2rem);
	font-weight: 600;
}

.mg-public-changelog-text img {
	border-radius: var(--mg-radius, 8px);
	display: block;
	height: auto;
	max-width: 100%;
}

.mg-public-changelog-text video {
	border-radius: var(--mg-radius, 8px);
	display: block;
	height: auto;
	max-width: 100%;
}

.mg-public-changelog-text blockquote {
	border-left: 3px solid var(--mg-accent, var(--mg-primary, #635bff));
	color: var(--mg-muted, #6b7280);
	margin: 1rem 0;
	padding-left: 1rem;
}

.mg-public-badge {
	background: color-mix(in srgb, var(--mg-accent, var(--mg-primary, #635bff)) 24%, var(--mg-surface, #fff)) !important;
	border: var(--mg-border-width, 1px) solid color-mix(in srgb, var(--mg-accent, var(--mg-primary, #635bff)) 35%, var(--mg-border, #e5e7eb));
	border-radius: 999px;
	color: var(--mg-primary, #635bff) !important;
	font-size: 0.76rem;
	font-weight: 700;
	line-height: 1.2;
	padding: 0.25rem 0.55rem;
}

.mg-public-date {
	flex: 0 0 auto;
	padding-top: 0.15rem;
}

.mg-public-vote-count {
	color: var(--mg-primary, #635bff);
}

.mg-public-empty {
	background: var(--mg-surface, #fff);
	border: var(--mg-border-width, 1px) solid var(--mg-border, #e5e7eb);
	border-radius: var(--mg-radius, 8px);
	padding: var(--mg-surface-padding, 1rem);
}

.mg-public-page:has(.mg-public-roadmap) {
	overflow: hidden;
}

.mg-public-page:has(.mg-public-roadmap) > .container {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	height: 100vh;
	min-height: 0;
}

.mg-public-roadmap {
	display: flex;
	align-items: stretch;
	flex: 1 1 auto;
	gap: var(--mg-gap, 0.75rem);
	min-height: 0;
	overflow-x: auto;
	overflow-y: hidden;
	padding-bottom: 0.5rem;
}

.mg-public-roadmap-list {
	display: flex;
	flex: 0 0 min(320px, calc(100vw - 2rem));
	min-height: 0;
}

.mg-public-roadmap-list-card {
	background: color-mix(in srgb, var(--mg-roadmap-lane-color, var(--mg-primary, #635bff)) 14%, var(--mg-page-bg, var(--mg-bg, #f8fafc)));
	border-color: var(--mg-roadmap-lane-color, var(--mg-primary, #635bff));
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
	width: 100%;
}

.mg-public-roadmap-list-card .card-header {
	background: var(--mg-roadmap-lane-color, var(--mg-primary, #635bff));
	border-color: var(--mg-roadmap-lane-color, var(--mg-primary, #635bff));
	color: var(--mg-roadmap-lane-text, #fff);
	flex: 0 0 auto;
}

.mg-public-roadmap-cards {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: var(--mg-gap, 0.75rem);
	min-height: 0;
	overflow-y: auto;
}

.mg-public-roadmap .mg-public-feedback-card {
	background: var(--mg-surface, #fff);
	border-color: color-mix(in srgb, var(--mg-roadmap-lane-color, var(--mg-primary, #635bff)) 30%, var(--mg-border, #e5e7eb));
	border-width: 1px;
	border-radius: 8px;
	box-shadow: none;
	color: var(--mg-text, #171717);
}

.mg-public-roadmap .mg-public-feedback-card-body {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: 2.5rem minmax(0, 1fr);
	padding: 0.875rem;
}

.mg-public-roadmap .mg-public-feedback-vote {
	border-width: 1px;
	border-radius: 8px;
	color: var(--mg-feedback-upvote-icon-color, var(--mg-primary, #635bff));
	font-size: 1rem;
	min-height: 2.75rem;
	width: 2.25rem;
}

.mg-public-roadmap .mg-public-feedback-vote-icon {
	font-size: 1.1rem !important;
}

.mg-public-roadmap .mg-public-feedback-vote-count {
	color: var(--mg-feedback-upvote-count-color, var(--mg-muted, #6b7280));
	font-size: 0.84rem;
}

.mg-public-roadmap .mg-public-feedback-main {
	display: grid;
	gap: 0.65rem;
	grid-template-columns: minmax(0, 1fr);
	min-width: 0;
}

.mg-public-roadmap .mg-public-feedback-content {
	min-width: 0;
}

.mg-public-roadmap .mg-public-feedback-title {
	color: var(--mg-feedback-title-color, var(--mg-text, #171717));
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.25;
	margin-bottom: 0.35rem;
	overflow-wrap: break-word;
	word-break: normal;
}

.mg-public-roadmap .mg-public-feedback-description {
	color: var(--mg-feedback-description-color, var(--mg-muted, #6b7280));
	font-size: 0.80rem;
	line-height: 1.4;
	margin-bottom: 0.65rem;
}

.mg-public-roadmap .mg-public-feedback-meta,
.mg-public-roadmap .mg-public-feedback-tag,
.mg-public-roadmap .mg-public-feedback-side [data-feedback-reaction-summary] {
	color: var(--mg-feedback-detail-color, var(--mg-muted, #6b7280)) !important;
	font-size: 0.75rem;
}

.mg-public-roadmap .mg-public-feedback-side {
	align-items: center;
	flex-direction: row;
	justify-content: space-between;
	min-width: 0;
	text-align: left;
	width: 100%;
}

.mg-public-roadmap .mg-public-feedback-comment-count {
	color: var(--mg-feedback-comment-count-color, var(--mg-muted, #6b7280));
	font-size: 0.84rem;
}

.mg-public-roadmap .mg-public-feedback-comment-icon {
	color: var(--mg-feedback-comment-icon-color, var(--mg-muted, #6b7280));
	font-size: 1.1rem !important;
}

.mg-public-roadmap-card {
	background: color-mix(in srgb, var(--mg-roadmap-lane-color, var(--mg-primary, #635bff)) 10%, var(--mg-page-bg, var(--mg-bg, #f8fafc)));
	border: var(--mg-border-width, 1px) solid color-mix(in srgb, var(--mg-roadmap-lane-color, var(--mg-primary, #635bff)) 55%, var(--mg-border, #e5e7eb));
	border-left: 4px solid var(--mg-roadmap-lane-color, var(--mg-primary, #635bff));
	border-radius: var(--mg-radius, 8px);
	color: var(--mg-text, #171717);
	padding: var(--mg-surface-padding, 1rem);
}

.mg-public-roadmap-card-title {
	overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
	.mg-public-nav-wrap {
		justify-content: flex-start;
		width: 100%;
	}

	.mg-public-search-trigger {
		margin-right: 0;
	}

	.mg-public-search-shortcut {
		display: none;
	}

	.mg-public-search-panel {
		border-radius: var(--mg-radius, 8px) var(--mg-radius, 8px) 0 0;
		bottom: 0;
		left: env(safe-area-inset-left, 0);
		max-height: calc(100vh - 1rem);
		max-width: none;
		right: env(safe-area-inset-right, 0);
		top: 1rem;
		transform: none;
		width: auto;
	}

	.mg-public-search-results {
		max-height: calc(100vh - 9.4rem);
	}

	.mg-public-page-heading {
		flex-direction: column;
	}

	.mg-public-changelog-header-actions,
	.mg-public-subscribe-form {
		justify-content: flex-start;
		width: 100%;
	}

	.mg-public-subscribe-form input {
		flex: 1 1 180px;
	}

	.mg-public-changelog-entry {
		gap: 0.75rem;
		grid-template-columns: 1fr;
		padding: 2.5rem 0 2.5rem 1.5rem;
	}

	.mg-public-changelog-entry::before {
		top: 2.5625rem;
	}

	.mg-public-changelog-entry::after {
		bottom: -2.5rem;
		top: 3.5rem;
	}

	.mg-public-changelog-date {
		padding-left: 0;
	}

	.mg-public-changelog-drawer {
		--bs-offcanvas-width: 100vw;
	}

	.mg-public-page-changelog .mg-public-changelog-drawer-body,
	[id^="public-search-changelog-"] .mg-public-changelog-drawer-body {
		padding: 1.5rem;
	}

	.mg-public-feedback-card-body {
		grid-template-columns: 3.5rem minmax(0, 1fr);
	}

	.mg-public-feedback-main {
		grid-template-columns: 1fr;
	}

	.mg-public-feedback-side {
		align-items: flex-start;
		min-width: 0;
		text-align: left;
	}

	.mg-public-comment {
		margin-left: calc(var(--mg-comment-depth, 0) * 0.65rem);
	}
}

.site-theme-logo-preview {
	display: block;
	max-width: 180px;
	max-height: 48px;
	object-fit: contain;
}

.site-theme-favicon-preview {
	display: block;
	height: 32px;
	object-fit: contain;
	width: 32px;
}

.site-theme-surface {
	padding-bottom: 1rem;
}

.site-theme-preview {
	background: #f8fafc;
	border: 1px solid var(--bs-border-color);
}

.site-theme-widget-launch,
.site-theme-survey-launch,
.site-theme-tour-launch,
.site-theme-highlight-launch,
.site-theme-portal-launch {
	background: var(--panel2b, #ffffff);
	border: 1px solid var(--line-soft, #e6e9ef);
	border-radius: 8px;
	padding: 1rem;
}

.site-theme-widget-modal .modal-content,
.site-theme-survey-modal .modal-content,
.site-theme-tour-modal .modal-content,
.site-theme-highlight-modal .modal-content,
.site-theme-portal-modal .modal-content {
	background: var(--panel2b, #ffffff) !important;
	color: var(--text, #212529);
	min-height: 100vh;
	opacity: 1 !important;
}

.site-theme-widget-modal.show,
.site-theme-survey-modal.show,
.site-theme-tour-modal.show,
.site-theme-highlight-modal.show,
.site-theme-portal-modal.show {
	background: var(--bg, #f6f6f6);
	inset: 0;
	opacity: 1 !important;
	position: fixed;
	z-index: 30000;
}

.site-theme-widget-modal .modal-dialog,
.site-theme-survey-modal .modal-dialog,
.site-theme-tour-modal .modal-dialog,
.site-theme-highlight-modal .modal-dialog,
.site-theme-portal-modal .modal-dialog {
	height: 100vh;
	margin: 0;
	max-width: none;
	width: 100vw;
}

.site-theme-widget-modal .modal-header,
.site-theme-survey-modal .modal-header,
.site-theme-tour-modal .modal-header,
.site-theme-highlight-modal .modal-header,
.site-theme-portal-modal .modal-header {
	background: var(--panel2b, #ffffff);
	border-bottom-color: var(--line-soft, #e6e9ef);
}

.site-theme-portal-modal .modal-header > div:first-child {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}

.site-theme-portal-modal .modal-header .small {
	display: block;
	line-height: 1.25;
}

.site-theme-widget-modal .modal-title,
.site-theme-survey-modal .modal-title,
.site-theme-tour-modal .modal-title,
.site-theme-highlight-modal .modal-title,
.site-theme-portal-modal .modal-title {
	color: var(--text, #212529);
}

.site-theme-widget-modal .modal-body,
.site-theme-survey-modal .modal-body,
.site-theme-tour-modal .modal-body,
.site-theme-highlight-modal .modal-body,
.site-theme-portal-modal .modal-body {
	background: var(--bg, #f6f6f6);
	min-height: 0;
	overflow-y: auto;
	padding: 1.25rem;
}

.site-theme-widget-poc,
.site-theme-survey-poc,
.site-theme-tour-poc,
.site-theme-highlight-poc,
.site-theme-portal-poc {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: minmax(340px, 0.55fr) minmax(760px, 1.45fr);
	min-height: calc(100vh - 130px);
}

.site-theme-portal-poc {
	align-items: start;
	grid-template-columns: minmax(360px, 484px) minmax(480px, 820px);
	justify-content: center;
}

.site-theme-widget-controls,
.site-theme-survey-controls,
.site-theme-tour-controls,
.site-theme-highlight-controls,
.site-theme-portal-controls {
	min-width: 0;
}

.site-theme-portal-controls {
	max-width: 484px;
}

.site-theme-control-group {
	background: var(--panel2b, #ffffff);
	border: 1px solid var(--line-soft, #e6e9ef);
	border-radius: 8px;
	margin-bottom: 1rem;
	padding: 1rem;
}

.site-theme-control-group h3 {
	color: var(--bs-body-color);
}

.site-theme-token-grid {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-theme-token-control {
	min-width: 0;
}

.site-theme-token-control .form-label,
.site-theme-control-group .form-label {
	color: var(--text-soft, #495057);
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.site-theme-token-control .form-control,
.site-theme-control-group .form-control {
	font-weight: 600;
}

.site-theme-portal-controls .site-theme-control-group {
	margin-bottom: 0.75rem;
	padding: 0.85rem;
}

.site-theme-portal-controls .site-theme-control-group h3 {
	margin-bottom: 0.65rem !important;
}

.site-theme-portal-controls .site-theme-token-grid {
	gap: 0.55rem 0.65rem;
}

.site-theme-portal-controls .row {
	--bs-gutter-x: 0.55rem;
	--bs-gutter-y: 0.55rem;
}

.site-theme-portal-controls .form-label {
	font-size: 0.72rem;
	line-height: 1.2;
	margin-bottom: 0.25rem;
}

.site-theme-portal-controls .form-control-sm {
	font-size: 0.78rem;
	min-height: 2rem;
	padding: 0.35rem 0.55rem;
}

.site-theme-branding-grid {
	display: grid;
	gap: 0.65rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-theme-branding-field,
.site-theme-branding-previews {
	min-width: 0;
}

.site-theme-branding-previews {
	align-items: center;
	display: flex;
	gap: 0.6rem;
}

.site-theme-widget-preview-wrap {
	position: sticky;
	top: 1rem;
}

.site-theme-widget-modal .site-theme-widget-preview-wrap {
	align-self: start;
	max-height: calc(100vh - 170px);
	overflow-y: auto;
	padding-right: 0.25rem;
}

.site-theme-widget-preview-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(360px, 1fr));
}

.site-theme-widget-modal .site-widget-design-settings {
	background: var(--panel2b, #ffffff);
	border: 1px solid var(--line-soft, #e6e9ef);
	border-radius: 8px;
	padding: 1rem;
}

.site-theme-widget-modal .site-widget-design-settings h3 {
	color: var(--text, #212529);
}

.site-theme-widget-modal .site-widget-design-settings .form-label,
.site-theme-widget-modal .site-widget-design-settings .form-check-label {
	color: var(--text-soft, #495057);
	font-weight: 600;
}

.site-theme-widget-modal .site-widget-design-settings .form-control {
	font-weight: 600;
}

.site-theme-widget-modal .site-widget-design-settings .form-check {
	align-items: center;
	display: inline-flex;
	gap: 0.4rem;
	min-height: 1.5rem;
	padding-left: 0;
}

.site-theme-widget-modal .site-widget-design-settings .form-check-input {
	flex: 0 0 auto;
	float: none;
	margin-left: 0;
	margin-top: 0;
}

.site-widget-deployment-tabs {
	border-bottom-color: var(--line-soft, #e6e9ef);
}

.site-widget-deployment-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.5rem;
}

.site-widget-deployment-content {
	flex: 1 1 auto;
	min-width: 0;
}

.site-widget-deployment-edit {
	display: block;
	width: 100%;
	max-width: 100%;
	color: var(--text, var(--bs-body-color));
}

.site-widget-deployment-edit:hover,
.site-widget-deployment-edit:focus {
	color: var(--text-strong, var(--bs-emphasis-color));
}

.site-widget-deployment-controls {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 1.5rem;
}

.site-widget-deployment-status {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.8125rem;
	font-weight: 600;
	white-space: nowrap;
}

.site-widget-deployment-status-dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--muted-3, #868e96);
}

.site-widget-deployment-status.is-active {
	color: var(--bs-success-text-emphasis, #0f5132);
}

.site-widget-deployment-status.is-active .site-widget-deployment-status-dot {
	background: var(--bs-success, #198754);
}

.site-widget-deployment-status.is-inactive {
	color: var(--muted, #6c757d);
}

.site-widget-deployment-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.site-widget-deployment-actions .btn-link:not(.text-danger) {
	color: var(--text-soft, #6b7280);
}

.site-widget-deployment-actions .btn-link:not(.text-danger):hover,
.site-widget-deployment-actions .btn-link:not(.text-danger):focus {
	color: var(--text-strong, #111827);
}

@media (max-width: 47.999rem) {
	.site-widget-deployment-row,
	.site-widget-deployment-controls {
		width: 100%;
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}
}

.site-widget-deployment-tabs .nav-link {
	color: var(--text-soft, #495057);
	cursor: pointer;
	font-size: 0.875rem;
	font-weight: 700;
}

.site-widget-deployment-tabs .nav-link.active {
	color: var(--text, #111827);
}

.site-widget-deployment-section {
	background: var(--panel2b, #ffffff);
	border: 0.0625rem solid var(--line-soft, #e6e9ef);
	border-radius: 0.5rem;
	padding: 1rem;
}

.site-widget-links {
	display: grid;
	gap: 0.75rem;
}

.site-widget-links .row {
	margin-bottom: 0 !important;
}

.site-widget-home-items {
	display: grid;
	gap: 0.5rem;
}

.site-widget-home-item {
	align-items: center;
	background: var(--panel2b, #ffffff);
	border: 0.0625rem solid var(--line-soft, #e6e9ef);
	border-radius: 0.5rem;
	display: grid;
	gap: 0.75rem;
	grid-template-columns: auto minmax(11rem, 14rem) minmax(14rem, 1fr) minmax(7rem, 9rem);
	min-height: 3.5rem;
	padding: 0.625rem 0.75rem;
}

.site-widget-home-item-grip {
	cursor: grab;
}

.site-widget-home-item .form-check {
	margin-bottom: 0;
}

.site-widget-home-item-detail {
	line-height: 1.35;
}

.site-widget-home-item-spacing .form-control {
	min-width: 0;
}

@media (max-width: 575.98px) {
	.site-widget-home-item {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.site-widget-home-item-detail,
	.site-widget-home-item-spacing {
		grid-column: 1 / -1;
		padding-left: 2rem;
	}
}

.huebee.is-hidden {
	pointer-events: none;
}

.site-theme-widget-preview-frame {
	--fw-preview-bg: #f8fafc;
	--fw-preview-surface: #ffffff;
	--fw-preview-text: #111827;
	--fw-preview-muted: #64748b;
	--fw-preview-border: #e2e8f0;
	--fw-preview-primary: #635bff;
	--fw-preview-header-bg: #f8fafc;
	--fw-preview-header-text: #111827;
	--fw-preview-header-border: #e2e8f0;
	--fw-preview-button-bg: #635bff;
	--fw-preview-button-text: #ffffff;
	--fw-preview-button-border: #635bff;
	--fw-preview-secondary-button-bg: #ffffff;
	--fw-preview-secondary-button-text: #334155;
	--fw-preview-secondary-button-border: #cbd5e1;
	--fw-preview-radius: 0.625rem;
	--fw-preview-shadow: -1rem 0 3rem rgba(15, 23, 42, 0.16);
	--fw-preview-font: inherit;
	--fw-preview-font-size: 14px;
	--fw-preview-heading-font-size: 1.2rem;
	--fw-preview-line-height: 1.5;
	--fw-preview-page-padding: 2rem;
	--fw-preview-surface-padding: 1rem;
	--fw-preview-control-padding: 0.6875rem 0.875rem;
	--fw-preview-gap: 0.75rem;
	--fw-preview-border-width: 1px;
	background: var(--fw-preview-bg);
	box-shadow: var(--fw-preview-shadow);
	container-type: inline-size;
	color: var(--fw-preview-text);
	font-family: var(--fw-preview-font);
	font-size: var(--fw-preview-font-size);
	line-height: var(--fw-preview-line-height);
	margin-left: auto;
	max-width: 640px;
	min-height: 650px;
	overflow: hidden;
	width: 100%;
}

.site-theme-widget-preview-frame-secondary {
	min-height: 650px;
}

.site-theme-widget-preview-header {
	align-items: center;
	background: var(--fw-preview-header-bg);
	border-bottom: var(--fw-preview-border-width) solid var(--fw-preview-header-border);
	color: var(--fw-preview-header-text);
	display: grid;
	gap: var(--fw-preview-gap);
	grid-template-columns: minmax(0, 1fr) auto auto;
	padding: 18px 22px;
}

.site-theme-widget-preview-title {
	font-size: clamp(1.5rem, 3cqi, 2rem);
	font-weight: 800;
	line-height: 1.1;
	overflow-wrap: anywhere;
}

@container (max-width: 520px) {
	.site-theme-widget-preview-links {
		display: none;
	}
}

.site-theme-widget-preview-links {
	display: flex;
	gap: 0.75rem;
	min-width: 0;
}

.site-theme-widget-preview-links a {
	color: var(--fw-preview-muted);
	font-size: 0.72rem;
	text-decoration: underline;
}

.site-theme-widget-preview-close {
	background: transparent;
	border: 0;
	color: var(--fw-preview-header-text);
	cursor: pointer;
	font-size: 1.4rem;
	line-height: 1;
	padding: 0.25rem;
}

.site-theme-widget-preview-tabs {
	border-bottom: var(--fw-preview-border-width) solid var(--fw-preview-border);
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-theme-widget-preview-tabs button {
	background: var(--fw-preview-secondary-button-bg);
	border: 0;
	border-bottom: 2px solid transparent;
	color: var(--fw-preview-secondary-button-text);
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	padding: 13px 16px;
}

.site-theme-widget-preview-tabs button.active {
	border-bottom-color: var(--fw-preview-primary);
	color: var(--fw-preview-text);
}

.site-theme-widget-preview-content {
	display: flex;
	flex-direction: column;
	gap: var(--fw-preview-gap);
	padding: var(--fw-preview-page-padding);
}

.site-theme-widget-preview-content h3 {
	color: var(--fw-preview-text);
	font-size: var(--fw-preview-heading-font-size);
	font-weight: 800;
	line-height: 1.2;
	margin: 0;
}

.site-theme-widget-preview-content p {
	color: var(--fw-preview-muted);
	margin: 0 0 0.75rem;
}

.site-theme-widget-preview-input,
.site-theme-widget-preview-textarea,
.site-theme-widget-preview-file-row {
	background: var(--fw-preview-surface);
	border: var(--fw-preview-border-width) solid var(--fw-preview-border);
	border-radius: var(--fw-preview-radius);
	color: var(--fw-preview-muted);
	padding: var(--fw-preview-control-padding);
}

.site-theme-widget-preview-textarea {
	min-height: 190px;
}

.site-theme-widget-preview-file {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.site-theme-widget-preview-file > span {
	color: var(--fw-preview-text);
	font-size: 0.84rem;
}

.site-theme-widget-preview-file-row {
	min-height: 34px;
	width: 100%;
}

.site-theme-widget-preview-file small {
	color: var(--fw-preview-muted);
}

.site-theme-widget-preview-card {
	background: color-mix(in srgb, var(--fw-preview-surface) 82%, var(--fw-preview-bg));
	border: var(--fw-preview-border-width) solid var(--fw-preview-border);
	border-radius: var(--fw-preview-radius);
	color: var(--fw-preview-text);
	display: flex;
	flex-direction: column;
	gap: var(--fw-preview-gap);
	padding: var(--fw-preview-surface-padding);
}

.site-theme-widget-preview-card-title {
	font-weight: 800;
	overflow-wrap: anywhere;
}

.site-theme-widget-preview-card-meta,
.site-theme-widget-preview-card p,
.site-theme-widget-preview-comment-body {
	color: var(--fw-preview-muted);
}

.site-theme-widget-preview-card p {
	margin: 0;
}

.site-theme-widget-preview-card-pill {
	background: var(--fw-preview-secondary-button-bg);
	border: var(--fw-preview-border-width) solid var(--fw-preview-secondary-button-border);
	border-radius: 999px;
	color: var(--fw-preview-secondary-button-text);
	flex: 0 0 auto;
	font-size: 0.78rem;
	padding: 0.25rem 0.6rem;
}

.site-theme-widget-preview-comment {
	background: var(--fw-preview-bg);
	border: var(--fw-preview-border-width) solid var(--fw-preview-border);
	border-radius: var(--fw-preview-radius);
	padding: var(--fw-preview-surface-padding);
}

.site-theme-widget-preview-comment-author {
	color: var(--fw-preview-text);
	font-weight: 700;
	margin-bottom: 0.25rem;
}

.site-theme-widget-preview-actions {
	align-items: center;
	display: flex;
	gap: var(--fw-preview-gap);
	justify-content: space-between;
	margin-top: 1.25rem;
}

.site-theme-widget-preview-actions label {
	align-items: center;
	color: var(--fw-preview-text);
	display: inline-flex;
	gap: 0.5rem;
	margin: 0;
}

.site-theme-widget-preview-check {
	background: #ffffff;
	border: var(--fw-preview-border-width) solid var(--fw-preview-border);
	display: inline-block;
	height: 16px;
	width: 16px;
}

.site-theme-widget-preview-actions button {
	background: var(--fw-preview-button-bg);
	border: var(--fw-preview-border-width) solid var(--fw-preview-button-border);
	border-radius: var(--fw-preview-radius);
	color: var(--fw-preview-button-text);
	cursor: pointer;
	font: inherit;
	padding: var(--fw-preview-control-padding);
}

.site-theme-survey-preview-wrap {
	align-self: start;
	max-height: calc(100vh - 170px);
	overflow-y: auto;
	padding-right: 0.25rem;
	position: sticky;
	top: 1rem;
}

.site-theme-survey-preview-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(320px, 1fr));
}

.site-theme-survey-preview-card {
	--fs-preview-bg: #f8fafc;
	--fs-preview-surface: #ffffff;
	--fs-preview-text: #111827;
	--fs-preview-muted: #64748b;
	--fs-preview-border: #e2e8f0;
	--fs-preview-primary: #635bff;
	--fs-preview-accent: #e11d48;
	--fs-preview-button-bg: #635bff;
	--fs-preview-button-text: #ffffff;
	--fs-preview-button-border: #635bff;
	--fs-preview-button-hover-bg: #514bd6;
	--fs-preview-button-hover-text: #ffffff;
	--fs-preview-option-bg: #ffffff;
	--fs-preview-option-text: #334155;
	--fs-preview-option-border: #cbd5e1;
	--fs-preview-option-hover-bg: #f1f5f9;
	--fs-preview-option-hover-text: #111827;
	--fs-preview-option-hover-border: #94a3b8;
	--fs-preview-radius: 8px;
	--fs-preview-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
	--fs-preview-font: inherit;
	--fs-preview-font-size: 14px;
	--fs-preview-heading-font-size: 1.05rem;
	--fs-preview-line-height: 1.45;
	--fs-preview-page-padding: 22px 20px 18px;
	--fs-preview-surface-padding: 10px;
	--fs-preview-control-padding: 9px 14px;
	--fs-preview-gap: 12px;
	--fs-preview-border-width: 1px;
	background: var(--fs-preview-bg);
	border: var(--fs-preview-border-width) solid var(--fs-preview-border);
	border-radius: var(--fs-preview-radius);
	box-shadow: var(--fs-preview-shadow);
	color: var(--fs-preview-text);
	font-family: var(--fs-preview-font);
	font-size: var(--fs-preview-font-size);
	line-height: var(--fs-preview-line-height);
	min-height: 360px;
	overflow: hidden;
	position: relative;
}

.site-theme-survey-preview-card-thanks {
	min-height: 220px;
}

.site-theme-survey-preview-close {
	background: transparent;
	border: 0;
	color: var(--fs-preview-muted);
	cursor: pointer;
	font-size: 1.4rem;
	line-height: 1;
	padding: 0.25rem;
	position: absolute;
	right: 10px;
	top: 10px;
}

.site-theme-survey-preview-accent {
	background: var(--fs-preview-accent);
	border-radius: var(--fs-preview-radius) var(--fs-preview-radius) 0 0;
	height: 3px;
}

.site-theme-survey-preview-form,
.site-theme-survey-preview-thanks {
	display: flex;
	flex-direction: column;
	gap: var(--fs-preview-gap);
	padding: var(--fs-preview-page-padding);
}

.site-theme-survey-preview-thanks {
	padding-top: 3rem;
}

.site-theme-survey-preview-card h3 {
	color: var(--fs-preview-text);
	font-size: var(--fs-preview-heading-font-size);
	font-weight: 800;
	line-height: 1.35;
	margin: 0;
}

.site-theme-survey-preview-card p,
.site-theme-survey-preview-scale-labels {
	color: var(--fs-preview-muted);
	margin: 0;
}

.site-theme-survey-preview-options,
.site-theme-survey-preview-scale {
	display: grid;
	gap: var(--fs-preview-gap);
}

.site-theme-survey-preview-scale {
	grid-template-columns: repeat(11, minmax(0, 1fr));
}

.site-theme-survey-preview-options button,
.site-theme-survey-preview-scale button {
	background: var(--fs-preview-option-bg);
	border: var(--fs-preview-border-width) solid var(--fs-preview-option-border);
	border-radius: var(--fs-preview-radius);
	color: var(--fs-preview-option-text);
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	padding: var(--fs-preview-control-padding);
	text-align: left;
}

.site-theme-survey-preview-scale button {
	min-height: 34px;
	padding: 0.35rem 0;
	text-align: center;
}

.site-theme-survey-preview-options button.active,
.site-theme-survey-preview-scale button.active {
	background: var(--fs-preview-option-hover-bg);
	border-color: var(--fs-preview-option-hover-border);
	color: var(--fs-preview-option-hover-text);
}

.site-theme-survey-preview-textarea {
	background: var(--fs-preview-surface);
	border: var(--fs-preview-border-width) solid var(--fs-preview-border);
	border-radius: var(--fs-preview-radius);
	color: var(--fs-preview-muted);
	min-height: 96px;
	padding: var(--fs-preview-surface-padding);
}

.site-theme-survey-preview-actions {
	display: flex;
	justify-content: flex-end;
}

.site-theme-survey-preview-actions button {
	background: var(--fs-preview-button-bg);
	border: var(--fs-preview-border-width) solid var(--fs-preview-button-border);
	border-radius: var(--fs-preview-radius);
	color: var(--fs-preview-button-text);
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	padding: var(--fs-preview-control-padding);
}

.site-theme-survey-preview-actions button:hover {
	background: var(--fs-preview-button-hover-bg);
	color: var(--fs-preview-button-hover-text);
}

.site-theme-survey-preview-scale-labels {
	display: flex;
	font-size: 0.72rem;
	justify-content: space-between;
}

.site-theme-tour-preview-wrap,
.site-theme-highlight-preview-wrap {
	align-self: start;
	max-height: calc(100vh - 170px);
	overflow-y: auto;
	padding-right: 0.25rem;
	position: sticky;
	top: 1rem;
}

.site-theme-tour-preview-stage,
.site-theme-highlight-preview-stage {
	background: #dfe5ee;
	border: 1px solid rgba(148, 163, 184, 0.5);
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	min-height: 660px;
	overflow: hidden;
	padding: 2rem;
	position: relative;
}

.site-theme-tour-preview-product,
.site-theme-highlight-preview-product {
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	box-shadow: 0 16px 45px rgba(15, 23, 42, 0.18);
	min-height: 420px;
	overflow: hidden;
	width: 100%;
}

.site-theme-tour-preview-product {
	grid-column: 1 / -1;
}

.site-theme-highlight-preview-product {
	grid-column: 1;
}

.site-theme-tour-preview-nav,
.site-theme-highlight-preview-toolbar {
	background: #ffffff;
	border-bottom: 1px solid #e5e7eb;
	display: flex;
	gap: 1rem;
	padding: 0.9rem 1.1rem;
}

.site-theme-tour-preview-nav span,
.site-theme-highlight-preview-toolbar span {
	color: #64748b;
	font-size: 0.78rem;
	font-weight: 700;
}

.site-theme-tour-preview-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding: 1.25rem;
}

.site-theme-tour-preview-metric,
.site-theme-highlight-preview-row {
	background: #eef2f7;
	border: 1px solid #dbe3ee;
	border-radius: 8px;
	min-height: 82px;
}

.site-theme-tour-preview-target {
	background: #ffffff;
	border: 2px solid #635bff;
	border-radius: 8px;
	box-shadow: 0 0 0 8px rgba(99, 91, 255, 0.14);
	color: #171717;
	font-weight: 800;
	min-height: 82px;
	padding: 1rem;
}

.site-theme-tour-preview-card {
	--ft-preview-bg: #f8fafc;
	--ft-preview-surface: #f8fafc;
	--ft-preview-text: #111827;
	--ft-preview-muted: #64748b;
	--ft-preview-border: #e2e8f0;
	--ft-preview-primary: #635bff;
	--ft-preview-accent: #e11d48;
	--ft-preview-button-bg: #635bff;
	--ft-preview-button-text: #ffffff;
	--ft-preview-button-border: #635bff;
	--ft-preview-button-hover-bg: #514bd6;
	--ft-preview-button-hover-text: #ffffff;
	--ft-preview-button-hover-border: #514bd6;
	--ft-preview-secondary-button-bg: #ffffff;
	--ft-preview-secondary-button-text: #334155;
	--ft-preview-secondary-button-border: #cbd5e1;
	--ft-preview-secondary-button-hover-bg: #f1f5f9;
	--ft-preview-secondary-button-hover-text: #111827;
	--ft-preview-secondary-button-hover-border: #94a3b8;
	--ft-preview-radius: 10px;
	--ft-preview-shadow: 0 18px 45px rgba(15, 23, 42, 0.24);
	--ft-preview-font: inherit;
	--ft-preview-font-size: 14px;
	--ft-preview-heading-font-size: 1.1rem;
	--ft-preview-line-height: 1.45;
	--ft-preview-page-padding: 18px;
	--ft-preview-surface-padding: 12px;
	--ft-preview-control-padding: 8px 13px;
	--ft-preview-gap: 12px;
	--ft-preview-border-width: 1px;
	align-self: start;
	background: var(--ft-preview-bg);
	border: var(--ft-preview-border-width) solid var(--ft-preview-border);
	border-radius: var(--ft-preview-radius);
	box-shadow: var(--ft-preview-shadow);
	color: var(--ft-preview-text);
	display: flex;
	flex-direction: column;
	font-family: var(--ft-preview-font);
	font-size: var(--ft-preview-font-size);
	gap: var(--ft-preview-gap);
	grid-column: 3;
	justify-self: center;
	line-height: var(--ft-preview-line-height);
	max-width: 360px;
	margin-top: -0.35rem;
	padding: var(--ft-preview-page-padding);
	position: relative;
	width: 100%;
	z-index: 2;
}

.site-theme-tour-preview-card::before {
	border-bottom: 10px solid var(--ft-preview-bg);
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	content: "";
	height: 0;
	left: 50%;
	position: absolute;
	top: -10px;
	transform: translateX(-50%);
	width: 0;
}

.site-theme-tour-preview-step {
	color: var(--ft-preview-muted);
	font-size: 0.76rem;
	font-weight: 800;
	text-transform: uppercase;
}

.site-theme-tour-preview-card h3,
.site-theme-highlight-preview-card h3 {
	color: var(--ft-preview-text, var(--fh-preview-text));
	font-size: var(--ft-preview-heading-font-size, var(--fh-preview-heading-font-size));
	font-weight: 800;
	line-height: 1.25;
	margin: 0;
}

.site-theme-tour-preview-card p,
.site-theme-highlight-preview-card p {
	color: var(--ft-preview-muted, var(--fh-preview-muted));
	margin: 0;
}

.site-theme-tour-preview-progress {
	background: var(--ft-preview-surface);
	border: var(--ft-preview-border-width) solid var(--ft-preview-border);
	border-radius: 999px;
	height: 9px;
	overflow: hidden;
}

.site-theme-tour-preview-progress span {
	background: var(--ft-preview-accent);
	display: block;
	height: 100%;
	width: 44%;
}

.site-theme-tour-preview-actions,
.site-theme-highlight-preview-actions {
	display: flex;
	gap: var(--ft-preview-gap, var(--fh-preview-gap));
	justify-content: flex-end;
}

.site-theme-tour-preview-actions button,
.site-theme-highlight-preview-actions button {
	background: var(--ft-preview-button-bg, var(--fh-preview-button-bg));
	border: var(--ft-preview-border-width, var(--fh-preview-border-width)) solid var(--ft-preview-button-border, var(--fh-preview-button-border));
	border-radius: var(--ft-preview-radius, var(--fh-preview-radius));
	color: var(--ft-preview-button-text, var(--fh-preview-button-text));
	cursor: pointer;
	font: inherit;
	font-weight: 800;
	padding: var(--ft-preview-control-padding, var(--fh-preview-control-padding));
}

.site-theme-tour-preview-actions button:hover,
.site-theme-highlight-preview-actions button:hover {
	background: var(--ft-preview-button-hover-bg, var(--fh-preview-button-hover-bg));
	border-color: var(--ft-preview-button-hover-border, var(--fh-preview-button-hover-border));
	color: var(--ft-preview-button-hover-text, var(--fh-preview-button-hover-text));
}

.site-theme-tour-preview-actions button.secondary {
	background: var(--ft-preview-secondary-button-bg);
	border-color: var(--ft-preview-secondary-button-border);
	color: var(--ft-preview-secondary-button-text);
}

.site-theme-tour-preview-actions button.secondary:hover {
	background: var(--ft-preview-secondary-button-hover-bg);
	border-color: var(--ft-preview-secondary-button-hover-border);
	color: var(--ft-preview-secondary-button-hover-text);
}

.site-theme-highlight-preview-stage {
	grid-template-columns: minmax(360px, 1fr) minmax(280px, 360px);
}

.site-theme-highlight-preview-content {
	display: grid;
	gap: 1rem;
	padding: 1.25rem;
}

.site-theme-highlight-preview-target {
	--fh-preview-surface: #ffffff;
	--fh-preview-border: #e5e7eb;
	--fh-preview-accent: #ff6aa2;
	--fh-preview-radius: 10px;
	--fh-preview-border-width: 1px;
	align-items: center;
	background: var(--fh-preview-surface);
	border: calc(var(--fh-preview-border-width) + 1px) solid var(--fh-preview-accent);
	border-radius: var(--fh-preview-radius);
	box-shadow: 0 0 0 999px rgba(15, 23, 42, 0.38), 0 0 0 7px color-mix(in srgb, var(--fh-preview-accent) 24%, transparent);
	color: #171717;
	display: flex;
	font-weight: 800;
	justify-content: space-between;
	min-height: 74px;
	padding: 1rem;
	position: relative;
	z-index: 1;
}

.site-theme-highlight-preview-beacon {
	background: var(--fh-preview-accent);
	border-radius: 50%;
	box-shadow: 0 0 0 8px color-mix(in srgb, var(--fh-preview-accent) 24%, transparent);
	height: 14px;
	width: 14px;
}

.site-theme-highlight-preview-card {
	--fh-preview-bg: #f8fafc;
	--fh-preview-surface: #ffffff;
	--fh-preview-text: #111827;
	--fh-preview-muted: #64748b;
	--fh-preview-border: #e2e8f0;
	--fh-preview-accent: #e11d48;
	--fh-preview-button-bg: #635bff;
	--fh-preview-button-text: #ffffff;
	--fh-preview-button-border: #635bff;
	--fh-preview-button-hover-bg: #514bd6;
	--fh-preview-button-hover-text: #ffffff;
	--fh-preview-button-hover-border: #514bd6;
	--fh-preview-radius: 10px;
	--fh-preview-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
	--fh-preview-font: inherit;
	--fh-preview-font-size: 14px;
	--fh-preview-heading-font-size: 1.05rem;
	--fh-preview-line-height: 1.45;
	--fh-preview-page-padding: 16px;
	--fh-preview-surface-padding: 12px;
	--fh-preview-control-padding: 8px 13px;
	--fh-preview-gap: 10px;
	--fh-preview-border-width: 1px;
	align-self: end;
	background: var(--fh-preview-bg);
	border: var(--fh-preview-border-width) solid var(--fh-preview-border);
	border-radius: var(--fh-preview-radius);
	box-shadow: var(--fh-preview-shadow);
	color: var(--fh-preview-text);
	display: flex;
	flex-direction: column;
	font-family: var(--fh-preview-font);
	font-size: var(--fh-preview-font-size);
	gap: var(--fh-preview-gap);
	grid-column: 2;
	line-height: var(--fh-preview-line-height);
	max-width: 360px;
	padding: var(--fh-preview-page-padding);
	position: relative;
	width: 100%;
	z-index: 2;
}

.site-theme-highlight-preview-card::before {
	border-right: 10px solid var(--fh-preview-bg);
	border-bottom: 10px solid transparent;
	border-top: 10px solid transparent;
	content: "";
	height: 0;
	left: -10px;
	position: absolute;
	top: 34px;
	width: 0;
}

.site-theme-highlight-preview-kicker {
	color: var(--fh-preview-accent);
	font-size: 0.76rem;
	font-weight: 800;
	text-transform: uppercase;
}

.site-theme-portal-preview-wrap {
	align-self: start;
	max-height: calc(100vh - 170px);
	overflow-y: auto;
	padding-right: 0.25rem;
	position: sticky;
	top: 1rem;
	width: 100%;
}

.site-theme-portal-preview-frame {
	--fp-preview-bg: #f8fafc;
	--fp-preview-surface: #ffffff;
	--fp-preview-text: #111827;
	--fp-preview-muted: #64748b;
	--fp-preview-border: #e2e8f0;
	--fp-preview-primary: #635bff;
	--fp-preview-accent: #e11d48;
	--fp-preview-button-bg: #635bff;
	--fp-preview-button-text: #ffffff;
	--fp-preview-button-border: #635bff;
	--fp-preview-button-hover-bg: #514bd6;
	--fp-preview-button-hover-text: #ffffff;
	--fp-preview-button-hover-border: #514bd6;
	--fp-preview-secondary-button-bg: #ffffff;
	--fp-preview-secondary-button-text: #334155;
	--fp-preview-secondary-button-border: #cbd5e1;
	--fp-preview-secondary-button-hover-bg: #f1f5f9;
	--fp-preview-secondary-button-hover-text: #111827;
	--fp-preview-secondary-button-hover-border: #94a3b8;
	--fp-preview-radius: 8px;
	--fp-preview-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
	--fp-preview-font: inherit;
	--fp-preview-font-size: 14px;
	--fp-preview-heading-font-size: 1.1rem;
	--fp-preview-feedback-title-color: var(--fp-preview-text);
	--fp-preview-feedback-title-font-size: 1.05rem;
	--fp-preview-feedback-description-color: var(--fp-preview-muted);
	--fp-preview-feedback-description-font-size: var(--fp-preview-font-size);
	--fp-preview-feedback-detail-color: var(--fp-preview-muted);
	--fp-preview-feedback-detail-font-size: 0.78rem;
	--fp-preview-feedback-upvote-count-color: var(--fp-preview-muted);
	--fp-preview-feedback-upvote-count-font-size: 0.84rem;
	--fp-preview-feedback-comment-count-color: var(--fp-preview-muted);
	--fp-preview-feedback-comment-count-font-size: 0.84rem;
	--fp-preview-feedback-upvote-icon-color: var(--fp-preview-primary);
	--fp-preview-feedback-upvote-icon-font-size: 1.1rem;
	--fp-preview-feedback-comment-icon-color: var(--fp-preview-muted);
	--fp-preview-feedback-comment-icon-font-size: 1.1rem;
	--fp-preview-changelog-title-color: var(--fp-preview-text);
	--fp-preview-changelog-title-font-size: var(--fp-preview-heading-font-size);
	--fp-preview-changelog-excerpt-color: var(--fp-preview-muted);
	--fp-preview-changelog-excerpt-font-size: var(--fp-preview-font-size);
	--fp-preview-changelog-text-color: var(--fp-preview-text);
	--fp-preview-changelog-text-font-size: var(--fp-preview-font-size);
	--fp-preview-line-height: 1.5;
	--fp-preview-page-padding: 24px;
	--fp-preview-surface-padding: 14px;
	--fp-preview-control-padding: 7px 12px;
	--fp-preview-gap: 12px;
	--fp-preview-border-width: 1px;
	--fp-preview-content-width: 1140px;
	color: var(--fp-preview-text);
	font-family: var(--fp-preview-font);
	font-size: var(--fp-preview-font-size);
	line-height: var(--fp-preview-line-height);
	overflow: visible;
	width: min(100%, 820px);
}

.site-theme-portal-preview-page {
	background: var(--fp-preview-bg);
	color: var(--fp-preview-text);
	min-height: 430px;
	overflow: hidden;
}

.site-theme-portal-preview-divider {
	background: #0f172a;
	height: clamp(48px, 7vw, 82px);
	margin: 0;
}

.site-theme-portal-preview-container {
	margin: 0 auto;
	max-width: min(var(--fp-preview-content-width), 100%);
	padding: var(--fp-preview-page-padding);
}

.site-theme-portal-preview-header {
	align-items: center;
	color: var(--fp-preview-text);
	display: flex;
	gap: var(--fp-preview-gap);
	justify-content: space-between;
	margin: 0 0 calc(var(--fp-preview-gap) * 3);
	min-height: 36px;
}

.site-theme-portal-preview-brand {
	align-items: center;
	display: inline-flex;
	font-weight: 800;
	min-height: 34px;
	justify-content: center;
	overflow: hidden;
}

.site-theme-portal-preview-brand img {
	max-height: 48px;
	max-width: 180px;
	object-fit: contain;
}

.site-theme-portal-preview-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.site-theme-portal-preview-nav button,
.site-theme-portal-preview-detail-header button {
	background: var(--fp-preview-secondary-button-bg);
	border: var(--fp-preview-border-width) solid var(--fp-preview-secondary-button-border);
	border-radius: var(--fp-preview-radius);
	color: var(--fp-preview-secondary-button-text);
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	padding: var(--fp-preview-control-padding);
}

.site-theme-portal-preview-nav button.active {
	background: var(--fp-preview-button-bg);
	border-color: var(--fp-preview-button-border);
	color: var(--fp-preview-button-text);
}

.site-theme-portal-preview-nav button:hover,
.site-theme-portal-preview-nav button:focus,
.site-theme-portal-preview-detail-header button:hover,
.site-theme-portal-preview-detail-header button:focus {
	background: var(--fp-preview-secondary-button-hover-bg);
	border-color: var(--fp-preview-secondary-button-hover-border);
	color: var(--fp-preview-secondary-button-hover-text);
}

.site-theme-portal-preview-nav button.active:hover,
.site-theme-portal-preview-nav button.active:focus {
	background: var(--fp-preview-button-hover-bg);
	border-color: var(--fp-preview-button-hover-border);
	color: var(--fp-preview-button-hover-text);
}

.site-theme-portal-preview-page-heading {
	align-items: flex-start;
	display: flex;
	gap: calc(var(--fp-preview-gap) * 1.5);
	justify-content: space-between;
	margin-bottom: calc(var(--fp-preview-gap) * 3);
	min-width: 0;
}

.site-theme-portal-preview-page-heading h1 {
	color: var(--fp-preview-text);
	font-family: var(--fp-preview-font);
	font-size: var(--fp-preview-heading-font-size);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 0.25rem;
}

.site-theme-portal-preview-page-heading p {
	color: var(--fp-preview-muted);
	margin: 0;
}

.site-theme-portal-preview-list {
	display: flex;
	flex-direction: column;
	gap: var(--fp-preview-gap);
}

.site-theme-portal-preview-card {
	background: var(--fp-preview-surface);
	border: var(--fp-preview-border-width) solid var(--fp-preview-border);
	border-radius: var(--fp-preview-radius);
	box-shadow: var(--fp-preview-shadow);
	color: var(--fp-preview-text);
	overflow: hidden;
}

.site-theme-portal-preview-card-body {
	align-items: stretch;
	display: grid;
	gap: 1rem;
	grid-template-columns: 4rem minmax(0, 1fr);
	padding: var(--fp-preview-surface-padding);
}

.site-theme-portal-preview-vote {
	align-items: center;
	align-self: start;
	background: transparent;
	border: var(--fp-preview-border-width) solid transparent;
	border-radius: var(--fp-preview-radius);
	color: var(--fp-preview-feedback-upvote-icon-color);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	font: inherit;
	font-weight: 700;
	gap: 0.05rem;
	justify-content: center;
	line-height: 1.1;
	min-height: 3.5rem;
	padding: 0.25rem;
	width: 3.25rem;
}

.site-theme-portal-preview-vote:hover,
.site-theme-portal-preview-vote:focus {
	background: color-mix(in srgb, var(--fp-preview-primary) 10%, transparent);
	border-color: color-mix(in srgb, var(--fp-preview-primary) 35%, transparent);
	color: var(--fp-preview-primary);
}

.site-theme-portal-preview-main-card {
	appearance: none;
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	display: grid;
	font: inherit;
	gap: 1rem;
	grid-template-columns: minmax(0, 1fr) auto;
	padding: 0;
	text-align: left;
	width: 100%;
}

.site-theme-portal-preview-content {
	min-width: 0;
}

.site-theme-portal-preview-feedback-title {
	color: var(--fp-preview-feedback-title-color) !important;
	font-size: var(--fp-preview-feedback-title-font-size) !important;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 0.35rem;
	overflow-wrap: anywhere;
}

.site-theme-portal-preview-feedback-description {
	color: var(--fp-preview-feedback-description-color) !important;
	display: -webkit-box;
	font-size: var(--fp-preview-feedback-description-font-size);
	line-height: 1.45;
	margin: 0 0 0.7rem;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.site-theme-portal-preview-feedback-meta {
	align-items: center;
	color: var(--fp-preview-feedback-detail-color);
	display: flex;
	flex-wrap: wrap;
	font-size: var(--fp-preview-feedback-detail-font-size);
	font-weight: 600;
	gap: 0.45rem;
	margin-bottom: 0.35rem;
}

.site-theme-portal-preview-upvote-icon {
	color: var(--fp-preview-feedback-upvote-icon-color);
	font-size: var(--fp-preview-feedback-upvote-icon-font-size) !important;
	vertical-align: -0.18em;
}

.site-theme-portal-preview-comment-icon {
	color: var(--fp-preview-feedback-comment-icon-color);
	font-size: var(--fp-preview-feedback-comment-icon-font-size) !important;
	vertical-align: -0.18em;
}

.site-theme-portal-preview-upvote-count {
	color: var(--fp-preview-feedback-upvote-count-color);
	font-size: var(--fp-preview-feedback-upvote-count-font-size);
}

.site-theme-portal-preview-side,
.site-theme-portal-preview-comment-count {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.site-theme-portal-preview-side {
	align-content: end;
	align-items: flex-end;
	flex-direction: column;
	justify-content: flex-end;
	min-width: 8rem;
	text-align: right;
}

.site-theme-portal-preview-comment-count {
	color: var(--fp-preview-feedback-comment-count-color);
	font-size: var(--fp-preview-feedback-comment-count-font-size);
	justify-content: flex-end;
}

.site-theme-portal-preview-badge {
	background: color-mix(in srgb, var(--fp-preview-accent) 24%, var(--fp-preview-surface));
	border-radius: 999px;
	color: var(--fp-preview-primary);
	font-size: 0.76rem;
	font-weight: 700;
	padding: 0.2rem 0.55rem;
}

.site-theme-portal-preview-changelog-heading {
	align-items: center;
	margin-bottom: calc(var(--fp-preview-gap) * 4);
}

.site-theme-portal-preview-changelog-actions {
	align-items: center;
	display: flex;
	flex: 0 1 auto;
	flex-wrap: wrap;
	gap: 0.55rem;
	justify-content: flex-end;
	min-width: 0;
}

.site-theme-portal-preview-changelog-actions label {
	color: var(--fp-preview-text);
	font-size: var(--fp-preview-feedback-detail-font-size);
	font-weight: 700;
	margin: 0;
}

.site-theme-portal-preview-changelog-actions button {
	background: var(--fp-preview-secondary-button-bg);
	border: var(--fp-preview-border-width) solid var(--fp-preview-secondary-button-border);
	border-radius: var(--fp-preview-radius);
	color: var(--fp-preview-secondary-button-text);
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	padding: var(--fp-preview-control-padding);
}

.site-theme-portal-preview-subscribe-input {
	background: var(--fp-preview-surface);
	border: var(--fp-preview-border-width) solid var(--fp-preview-border);
	border-radius: calc(var(--fp-preview-radius) * 0.35);
	color: var(--fp-preview-muted);
	min-width: 170px;
	padding: var(--fp-preview-control-padding);
}

.site-theme-portal-preview-changelog-peek {
	align-items: start;
	display: grid;
	gap: 1.25rem;
	grid-template-columns: 5rem minmax(0, 1fr);
}

.site-theme-portal-preview-changelog-date {
	color: var(--fp-preview-muted);
	font-size: var(--fp-preview-feedback-detail-font-size);
	font-weight: 700;
	line-height: 1.2;
	padding-top: 0.35rem;
}

.site-theme-portal-preview-changelog-card {
	appearance: none;
	background: var(--fp-preview-surface);
	border: var(--fp-preview-border-width) solid var(--fp-preview-border);
	border-radius: var(--fp-preview-radius);
	box-shadow: var(--fp-preview-shadow);
	color: var(--fp-preview-text);
	cursor: pointer;
	display: block;
	font: inherit;
	padding: var(--fp-preview-surface-padding);
	text-align: left;
	width: 100%;
}

.site-theme-portal-preview-changelog-title {
	color: var(--fp-preview-changelog-title-color) !important;
	font-size: var(--fp-preview-changelog-title-font-size) !important;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 0.4rem;
	overflow-wrap: anywhere;
}

.site-theme-portal-preview-changelog-excerpt {
	color: var(--fp-preview-changelog-excerpt-color) !important;
	font-size: var(--fp-preview-changelog-excerpt-font-size);
	line-height: var(--fp-preview-line-height);
	margin: 0;
	overflow-wrap: anywhere;
}

.site-theme-portal-preview-changelog-text {
	color: var(--fp-preview-changelog-text-color) !important;
	font-size: var(--fp-preview-changelog-text-font-size);
}

.site-theme-portal-preview-card p:not(.site-theme-portal-preview-feedback-description):not(.site-theme-portal-preview-changelog-excerpt):not(.site-theme-portal-preview-changelog-text),
.site-theme-portal-preview-detail p,
.site-theme-portal-preview-roadmap-card .small,
.site-theme-portal-preview-detail-header {
	color: var(--fp-preview-muted);
	margin: 0;
}

.site-theme-portal-preview-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 0.65rem;
}

.site-theme-portal-preview-badges span,
.site-theme-portal-preview-version {
	background: color-mix(in srgb, var(--fp-preview-accent) 24%, var(--fp-preview-surface));
	border-radius: 999px;
	color: var(--fp-preview-primary);
	font-size: 0.76rem;
	font-weight: 700;
	padding: 0.2rem 0.55rem;
}

.site-theme-portal-preview-detail-header {
	align-items: center;
	border-bottom: var(--fp-preview-border-width) solid var(--fp-preview-border);
	display: flex;
	justify-content: flex-end;
	margin: calc(var(--fp-preview-surface-padding) * -1) calc(var(--fp-preview-surface-padding) * -1) var(--fp-preview-surface-padding);
	padding: 0.75rem var(--fp-preview-surface-padding);
}

.site-theme-portal-preview-comment.reply {
	margin-left: 1rem;
	margin-top: var(--fp-preview-gap);
}

.site-theme-portal-preview-composer {
	min-height: 58px;
}

.site-theme-portal-preview-roadmap {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-theme-portal-preview-lane {
	background: color-mix(in srgb, var(--fp-preview-primary) 10%, var(--fp-preview-bg));
	border: var(--fp-preview-border-width) solid var(--fp-preview-border);
	border-radius: var(--fp-preview-radius);
	display: flex;
	flex-direction: column;
	gap: var(--fp-preview-gap);
	padding: var(--fp-preview-surface-padding);
}

.site-theme-portal-preview-lane-title {
	color: var(--fp-preview-muted);
	font-weight: 800;
}

.site-theme-editor {
	min-height: 520px;
}

.site-theme-editor.is-switching {
	animation: site-theme-editor-switch 220ms ease-out;
}

@keyframes site-theme-editor-switch {
	from {
		opacity: 0.55;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.site-theme-active-banner {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--bs-border-color);
	border-left: 3px solid var(--bs-primary);
	border-radius: 8px;
	padding: 0.75rem 1rem;
}

.site-theme-card-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.site-theme-card {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--bs-border-color);
	border-radius: 8px;
	min-height: 150px;
	overflow: hidden;
	position: relative;
}

.site-theme-card.active {
	border-color: var(--bs-primary);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--bs-primary) 34%, transparent);
}

.site-theme-card.editing:not(.active) {
	border-color: var(--bs-secondary-color);
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--bs-secondary-color) 24%, transparent);
}

.site-theme-activate {
	min-width: 8.75rem;
}

.site-theme-card-select {
	background: transparent;
	border: 0;
	color: var(--bs-body-color);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	height: 100%;
	padding: 0.75rem;
	text-align: left;
	width: 100%;
}

.site-theme-card-preview {
	background: var(--pt-card-bg, #f8fafc);
	border: 1px solid var(--pt-card-border, #e5e7eb);
	border-radius: 6px;
	color: var(--pt-card-text, #171717);
	min-height: 92px;
	overflow: hidden;
}

.site-theme-card-preview-header {
	background: var(--pt-card-surface, #ffffff);
	border-bottom: 1px solid var(--pt-card-border, #e5e7eb);
	display: flex;
	gap: 0.35rem;
	padding: 0.45rem;
}

.site-theme-card-preview-header span {
	background: var(--pt-card-muted, #6b7280);
	border-radius: 999px;
	display: block;
	height: 5px;
	width: 24px;
}

.site-theme-card-preview-header span:first-child {
	background: var(--pt-card-primary, #635bff);
	width: 34px;
}

.site-theme-card-preview-body {
	display: grid;
	gap: 0.45rem;
	padding: 0.55rem;
}

.site-theme-card-preview-line {
	background: var(--pt-card-text, #171717);
	border-radius: 999px;
	height: 6px;
	opacity: 0.72;
	width: 72%;
}

.site-theme-card-preview-line.short {
	background: var(--pt-card-muted, #6b7280);
	width: 48%;
}

.site-theme-card-preview-panel {
	background: var(--pt-card-surface, #ffffff);
	border: 1px solid var(--pt-card-border, #e5e7eb);
	border-radius: 6px;
	display: grid;
	gap: 0.35rem;
	padding: 0.45rem;
}

.site-theme-card-preview-panel span {
	background: var(--pt-card-muted, #6b7280);
	border-radius: 999px;
	height: 5px;
	opacity: 0.7;
}

.site-theme-card-title {
	font-weight: 800;
	line-height: 1.2;
	overflow-wrap: anywhere;
	padding-right: 2rem;
}

.site-theme-card-menu {
	position: absolute;
	right: 0.5rem;
	top: 0.5rem;
}

.site-theme-card-menu .btn {
	align-items: center;
	background: color-mix(in srgb, var(--bs-body-bg) 85%, transparent);
	border-radius: 999px;
	display: inline-flex;
	height: 28px;
	justify-content: center;
	padding: 0;
	width: 28px;
}

.site-theme-card-add {
	align-items: center;
	background: transparent;
	border: 1px dashed var(--bs-border-color);
	border-radius: 8px;
	color: var(--bs-body-color);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	font-weight: 800;
	gap: 0.75rem;
	justify-content: center;
	min-height: 150px;
	padding: 1rem;
}

.site-theme-card-add:hover,
.site-theme-card-add:focus {
	border-color: var(--bs-primary);
	color: var(--bs-primary);
}

.site-theme-card-add-icon {
	align-items: center;
	border: 1px solid currentColor;
	border-radius: 8px;
	display: inline-flex;
	height: 48px;
	justify-content: center;
	width: 48px;
}

@media (max-width: 1199.98px) {
	.site-theme-widget-poc,
	.site-theme-survey-poc,
	.site-theme-tour-poc,
	.site-theme-highlight-poc,
	.site-theme-portal-poc {
		grid-template-columns: 1fr;
	}

	.site-theme-widget-preview-wrap,
	.site-theme-survey-preview-wrap,
	.site-theme-tour-preview-wrap,
	.site-theme-highlight-preview-wrap,
	.site-theme-portal-preview-wrap {
		position: static;
	}

	.site-theme-widget-preview-frame {
		margin-left: 0;
		max-width: none;
	}

	.site-theme-widget-preview-grid {
		grid-template-columns: 1fr;
	}

	.site-theme-survey-preview-grid {
		grid-template-columns: 1fr;
	}

	.site-theme-highlight-preview-stage {
		grid-template-columns: 1fr;
	}

	.site-theme-tour-preview-card {
		grid-column: auto;
		margin-top: 0;
	}

	.site-theme-portal-preview-frame {
		width: 100%;
	}
}

@media (max-width: 575.98px) {
	.site-theme-token-grid {
		grid-template-columns: 1fr;
	}

	.site-theme-widget-preview-header {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.site-theme-widget-preview-links {
		display: none;
	}

	.site-theme-widget-preview-content {
		padding: 1.25rem;
	}

	.site-theme-widget-preview-actions {
		align-items: flex-start;
		flex-direction: column;
	}

	.site-theme-tour-preview-stage,
	.site-theme-highlight-preview-stage,
	.site-theme-portal-preview-container {
		padding: 1rem;
	}

	.site-theme-branding-grid,
	.site-theme-portal-preview-card-body,
	.site-theme-portal-preview-main-card,
	.site-theme-portal-preview-changelog-peek {
		grid-template-columns: 1fr;
	}

	.site-theme-portal-preview-side {
		align-items: flex-start;
		min-width: 0;
		text-align: left;
	}

	.site-theme-portal-preview-changelog-heading {
		align-items: flex-start;
	}

	.site-theme-portal-preview-changelog-actions {
		justify-content: flex-start;
	}

	.site-theme-tour-preview-grid {
		grid-template-columns: 1fr;
	}

	.site-theme-tour-preview-actions,
	.site-theme-highlight-preview-actions {
		justify-content: flex-start;
	}
}

/* Scrollable modal whose body is wrapped in a <form>: the form would otherwise break
   Bootstrap's flex chain, so restore it — pin the header/footer and scroll the body. */
.modal-dialog-scrollable .modal-scroll-form {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}
.modal-dialog-scrollable .modal-scroll-form > .modal-body {
	overflow-y: auto;
	min-height: 0;
}

.chat-ai-state-table {
	font-size: 0.75rem;
	font-weight: 300;
	line-height: 1.25;
}

.chat-ai-state-table th,
.chat-ai-state-table td {
	vertical-align: top;
}

.chat-ai-state-table th,
.chat-ai-state-value {
	font-weight: 300;
}

.chat-ai-state-summary {
	max-width: 22rem;
	min-width: 12rem;
	white-space: normal;
}

.chat-ai-state-meta {
	min-width: 7.5rem;
}

.widget-chat-inbox {
	display: grid;
	grid-template-columns: minmax(11.25rem, 14.375rem) minmax(0, 1fr);
	gap: 0.75rem;
	height: 100%;
	min-height: 32.5rem;
}

.widget-chat-inbox-list,
.widget-chat-inbox-detail {
	background: var(--panel, #ffffff);
	border: 0.0625rem solid var(--line, #dee2e6);
	border-radius: 0.5rem;
	min-height: 0;
	overflow: hidden;
}

.widget-chat-inbox-list {
	display: flex;
	flex-direction: column;
}

.widget-chat-inbox-search {
	border-bottom: 0.0625rem solid var(--line, #dee2e6);
	padding: 0.55rem;
}

.widget-chat-inbox-rows {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
	overflow-y: auto;
	padding: 0.35rem;
}

.widget-chat-inbox-row {
	align-items: center;
	background: transparent;
	border: 0.0625rem solid transparent;
	border-radius: 0.5rem;
	color: inherit;
	cursor: pointer;
	display: grid;
	font-size: 0.82rem;
	gap: 0.4rem;
	grid-template-columns: 1.875rem minmax(0, 1fr) auto;
	padding: 0.45rem;
	text-align: left;
	width: 100%;
}

.widget-chat-inbox-row:hover,
.widget-chat-inbox-row:focus-visible {
	background: var(--hover, #eef2ff);
	outline: 0;
}

.widget-chat-inbox-row.active {
	background: color-mix(in srgb, var(--brand, #7c6af7) 18%, var(--panel2b, #ffffff));
	border-color: color-mix(in srgb, var(--brand, #7c6af7) 36%, transparent);
}

.widget-chat-inbox-row.is-unread {
	background: color-mix(in srgb, var(--brand, #7c6af7) 14%, var(--panel2b, #ffffff));
	font-weight: 700;
}

.widget-chat-inbox-avatar {
	align-items: center;
	background: #7c6af7;
	border-radius: 0.4375rem;
	color: #ffffff;
	display: flex;
	font-size: 0.7rem;
	font-weight: 700;
	height: 1.875rem;
	justify-content: center;
	width: 1.875rem;
}

.widget-chat-inbox-main {
	display: block;
	min-width: 0;
}

.widget-chat-inbox-name,
.widget-chat-inbox-meta {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.widget-chat-inbox-meta {
	color: var(--muted, #6c757d);
	font-size: 0.72rem;
	font-weight: 400;
	margin-top: 0.1rem;
}

.widget-chat-inbox-state {
	align-self: start;
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 0.35rem;
	font-size: 0.68rem;
}

.widget-chat-inbox-detail {
	background: transparent;
	border: 0;
	border-radius: 0;
	display: flex;
	flex-direction: column;
	padding: 0 0.75rem;
}

.widget-chat-empty-detail {
	align-items: center;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: center;
	padding: 2rem;
	text-align: center;
}

.widget-chat-admin-detail {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	height: 100%;
	min-height: 0;
}

.widget-chat-admin-header {
	border-bottom: 0.0625rem solid color-mix(in srgb, var(--line, #dee2e6) 70%, transparent);
	flex: 0 0 auto;
	padding: 0.45rem 0;
}

.widget-chat-admin-peer {
	align-items: center;
	display: flex;
	gap: 0.35rem;
	min-width: 0;
}

.widget-chat-admin-peer-line {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	font-size: 0.8125rem;
	gap: 0.4375rem;
	line-height: 1.15;
}

.widget-chat-admin-peer-line .btn-link {
	font-size: 0.8125rem;
	line-height: 1.15;
}

.widget-chat-admin-peer-email {
	color: var(--muted, #6c757d);
	font-size: 0.75rem;
	font-weight: 500;
}

.widget-chat-admin-avatar {
	align-items: center;
	background: #7c6af7;
	border-radius: 0.625rem;
	color: #ffffff;
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 0.78rem;
	font-weight: 800;
	height: 2.125rem;
	justify-content: center;
	width: 2.125rem;
}

.widget-chat-admin-details-button {
	align-items: center;
	display: inline-flex;
	height: 1.5rem;
	justify-content: center;
	padding: 0;
	width: 1.5rem;
}

.widget-chat-admin-details-button .kk-icon {
	font-size: 0.875rem;
}

.widget-chat-admin-messages {
	background: color-mix(in srgb, var(--panel, #ffffff) 88%, var(--bg, #f8f9fa));
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0.45rem;
	min-height: 0;
	overflow-y: auto;
	padding: 1rem clamp(1rem, 5vw, 3.5rem);
}

.widget-chat-admin-date-separator {
	align-items: center;
	color: var(--muted, #6c757d);
	display: flex;
	font-size: 0.6875rem;
	font-weight: 700;
	gap: 0.75rem;
	justify-content: center;
	margin: 0.35rem 0 0.55rem;
}

.widget-chat-admin-date-separator::before,
.widget-chat-admin-date-separator::after {
	background: var(--line, #dee2e6);
	content: "";
	flex: 1 1 auto;
	height: 0.0625rem;
	max-width: 17.5rem;
}

.widget-chat-admin-message-row {
	align-items: flex-end;
	display: flex;
	width: 100%;
}

.widget-chat-admin-message-row.is-team {
	justify-content: flex-end;
}

.widget-chat-admin-message {
	border: 0;
	border-radius: 1rem;
	font-size: 0.8125rem;
	max-width: min(26.25rem, 62%);
	padding: 0.5rem 0.625rem 0.375rem;
	white-space: pre-wrap;
}

.widget-chat-admin-message-row.is-visitor .widget-chat-admin-message {
	background: #1f2f43;
	border-bottom-left-radius: 0.3125rem;
	color: #f8fafc;
}

.widget-chat-admin-message-row.is-team .widget-chat-admin-message {
	background: #3f6fac;
	border-bottom-right-radius: 0.3125rem;
	color: #ffffff;
}

.widget-chat-admin-message-meta {
	color: rgba(255, 255, 255, 0.66);
	display: flex;
	font-size: 0.6875rem;
	gap: 0.5rem;
	justify-content: space-between;
	margin-bottom: 0.25rem;
}

.widget-chat-admin-message-body {
	font-size: 0.8125rem;
	line-height: 1.32;
}

.widget-chat-admin-message .text-muted {
	color: rgba(255, 255, 255, 0.66) !important;
}

.widget-chat-admin-attachments,
.widget-chat-admin-reply-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.widget-chat-admin-attachment,
.widget-chat-admin-draft-attachment {
	background: rgba(0, 0, 0, 0.18);
	border-radius: 0.75rem;
	margin: 0;
	overflow: hidden;
	position: relative;
}

.widget-chat-admin-attachment {
	max-width: min(22.5rem, 100%);
}

.widget-chat-admin-attachment img,
.widget-chat-admin-attachment video {
	display: block;
	max-height: 16.25rem;
	max-width: 100%;
	object-fit: contain;
}

.widget-chat-admin-attachment figcaption {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.75rem;
	padding: 0.35rem 0.5rem;
}

.widget-chat-admin-attachment-link {
	color: #dbeafe;
}

.widget-chat-admin-reply {
	background: var(--panel, #ffffff);
	border-top: 0.0625rem solid color-mix(in srgb, var(--line, #dee2e6) 70%, transparent);
	flex: 0 0 auto;
	margin: 0;
	padding: 0.5rem 0 0;
}

.widget-chat-admin-input-row {
	align-items: flex-end;
	background: color-mix(in srgb, var(--panel2b, #ffffff) 94%, var(--bg, #f8f9fa));
	border: 0.0625rem solid var(--line, #dee2e6);
	border-radius: 1.5rem;
	display: flex;
	gap: 0.5rem;
	padding: 0.4375rem 0.4375rem 0.4375rem 0.875rem;
}

.widget-chat-admin-textarea {
	background: transparent;
	border: 0;
	box-shadow: none;
	color: inherit;
	display: block;
	flex: 1 1 auto;
	font-size: 0.8125rem;
	line-height: 1.125rem;
	max-height: 6rem;
	min-height: 1.5rem;
	outline: 0;
	overflow-y: auto;
	padding: 0.1875rem 0;
	resize: none;
	width: 100%;
}

.widget-chat-admin-textarea:focus {
	background: transparent;
	border: 0;
	box-shadow: none;
	outline: 0;
}

.widget-chat-admin-textarea::-webkit-scrollbar {
	display: none;
}

.widget-chat-admin-input-row > .btn {
	align-items: center;
	border-radius: 999rem;
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 0.8125rem;
	font-weight: 700;
	justify-content: center;
	line-height: 1.125rem;
	min-height: 1.875rem;
	padding: 0.375rem 0.8125rem;
}

.widget-chat-admin-draft-attachment {
	border: 0.0625rem solid var(--line, #dee2e6);
	height: 4.625rem;
	width: 4.625rem;
}

.widget-chat-admin-draft-attachment img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.widget-chat-admin-draft-attachment span {
	align-items: center;
	display: flex;
	font-size: 0.6875rem;
	height: 100%;
	justify-content: center;
	padding: 0.35rem;
	text-align: center;
	width: 100%;
}

.widget-chat-admin-draft-attachment button {
	background: rgba(0, 0, 0, 0.72);
	border: 0;
	border-radius: 999rem;
	color: #ffffff;
	cursor: pointer;
	height: 1.25rem;
	line-height: 1.25rem;
	padding: 0;
	position: absolute;
	right: 0.25rem;
	top: 0.25rem;
	width: 1.25rem;
}

.widget-chat-admin-typing {
	background: color-mix(in srgb, var(--panel, #ffffff) 88%, var(--bg, #f8f9fa));
	margin: 0;
	padding: 0.2rem 1.25rem 0.6rem;
}

.widget-chat-admin-drawer {
	--bs-offcanvas-width: min(26.25rem, 94vw);
	--bs-body-color: #eef3ff;
	--bs-body-bg: #050b1e;
	--bs-border-color: #2a3c77;
	background: #050b1e;
	color: #eef3ff;
}

.widget-chat-admin-drawer .offcanvas-header {
	border-bottom: 0.0625rem solid #2a3c77;
}

.widget-chat-admin-drawer .offcanvas-title,
.widget-chat-admin-drawer h3,
.widget-chat-admin-drawer .form-label {
	color: #eef3ff;
}

.widget-chat-admin-drawer .text-muted {
	color: #b9c6f4 !important;
}

.widget-chat-admin-drawer .form-control {
	background: rgba(13, 24, 54, 0.92);
	border-color: #2a3c77;
	color: #eef3ff;
}

.widget-chat-admin-drawer-section {
	border-bottom: 0.0625rem solid #2a3c77;
	padding: 1rem 0;
}

.widget-chat-admin-drawer-section:first-child {
	padding-top: 0;
}

.widget-chat-admin-info-row {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: 5.9375rem minmax(0, 1fr);
	padding: 0.35rem 0;
}

.widget-chat-admin-info-row > span {
	color: #b9c6f4;
	font-size: 0.78rem;
}

.widget-chat-admin-info-row > strong,
.widget-chat-admin-info-row > a {
	color: #eef3ff;
	font-size: 0.82rem;
	min-width: 0;
	overflow-wrap: anywhere;
}

.widget-chat-admin-typing-dots {
	display: inline-flex;
	gap: 0.2rem;
	margin-left: 0.35rem;
	vertical-align: middle;
}

.widget-chat-admin-typing-dots span {
	animation: widget-chat-admin-typing 1.2s infinite ease-in-out;
	background: currentColor;
	border-radius: 999rem;
	display: block;
	height: 0.3125rem;
	opacity: 0.4;
	width: 0.3125rem;
}

.widget-chat-admin-typing-dots span:nth-child(2) {
	animation-delay: 0.15s;
}

.widget-chat-admin-typing-dots span:nth-child(3) {
	animation-delay: 0.3s;
}

.chat-alert-html {
	margin: 0;
}

.chat-alert-modal {
	text-align: left;
}

.chat-alert-from {
	font-weight: 700;
	margin-bottom: 0.6rem;
}

.chat-alert-message {
	background: var(--panel2b, #f8f9fa);
	border: 0.0625rem solid var(--line, #dee2e6);
	border-radius: 0.5rem;
	max-height: 11.25rem;
	overflow-y: auto;
	padding: 0.75rem;
	white-space: pre-wrap;
}

.notification-bell-btn {
	background: transparent;
	border: 0;
	color: var(--bs-navbar-color, rgba(255, 255, 255, 0.75));
	position: relative;
}

.notification-bell-btn:hover,
.notification-bell-btn:focus,
.notification-bell-btn:active,
.notification-bell-btn.show {
	background: transparent;
	border: 0;
	color: var(--bs-navbar-hover-color, #fff);
}

.notification-bell-btn:focus-visible {
	box-shadow: 0 0 0 0.125rem rgba(255, 255, 255, 0.35);
}

.notification-bell-btn .kk-icon {
	font-size: 1.25rem;
	line-height: 1;
}

.notification-bell-btn.is-muted .kk-icon {
	text-decoration: line-through;
	text-decoration-thickness: 0.125rem;
}

.notification-badge {
	align-items: center;
	background: var(--bs-danger);
	border: 0.0625rem solid var(--bs-dark);
	border-radius: 999rem;
	color: #fff;
	display: inline-flex;
	font-size: 0.65rem;
	font-weight: 700;
	height: 1rem;
	justify-content: center;
	line-height: 1;
	min-width: 1rem;
	padding: 0 0.25rem;
	position: absolute;
	right: -0.35rem;
	top: -0.35rem;
}

.notification-dropdown {
	--bs-dropdown-bg: var(--panel3-dropdown, #ffffff);
	--bs-dropdown-color: var(--text, #212529);
	--bs-dropdown-border-color: var(--line-divider, #dee2e6);
	--bs-dropdown-link-hover-bg: var(--hover-5, var(--hover, #eef2ff));
	--bs-dropdown-link-hover-color: var(--text-strong, #0b0d12);
	max-height: min(36rem, calc(100vh - 5rem));
	min-width: min(24rem, calc(100vw - 1.5rem));
	overflow-y: auto;
}

.notification-dropdown,
.notification-dropdown .notification-list {
	--bs-list-group-bg: var(--panel3-dropdown, #ffffff);
	--bs-list-group-color: var(--text, #212529);
	--bs-list-group-border-color: var(--line-soft, #dee2e6);
	--bs-list-group-action-color: var(--text, #212529);
	--bs-list-group-action-hover-bg: var(--hover-5, var(--hover, #eef2ff));
	--bs-list-group-action-hover-color: var(--text-strong, #0b0d12);
	--bs-secondary-color: var(--muted-2, #6c757d);
}

[data-bs-theme="dark"] .notification-dropdown,
[data-theme="dark"] .notification-dropdown,
[data-bs-theme="dark"] .notification-dropdown .notification-list,
[data-theme="dark"] .notification-dropdown .notification-list {
	--bs-dropdown-color: var(--text-bright-4, #dce6f2);
	--bs-dropdown-link-hover-color: var(--text-strong, #ffffff);
	--bs-list-group-color: var(--text-bright-4, #dce6f2);
	--bs-list-group-action-color: var(--text-bright-4, #dce6f2);
	--bs-list-group-action-hover-color: var(--text-strong, #ffffff);
	--bs-secondary-color: var(--text-soft, #b9c6d6);
}

.notification-item {
	background: var(--bs-list-group-bg) !important;
	border-left: 0.1875rem solid transparent;
	color: var(--bs-list-group-color) !important;
}

.notification-item.is-unread {
	background: color-mix(in srgb, var(--brand, #6f61ff) 12%, var(--bs-list-group-bg)) !important;
	border-left-color: var(--bs-primary);
}

.notification-dropdown .notification-item:hover,
.notification-dropdown .notification-item:focus {
	background: var(--bs-list-group-action-hover-bg) !important;
	color: var(--bs-list-group-action-hover-color) !important;
}

[data-bs-theme="dark"] .notification-dropdown .notification-item .text-muted,
[data-theme="dark"] .notification-dropdown .notification-item .text-muted {
	color: var(--text-soft, #b9c6d6) !important;
}

.notification-dropdown .notification-item:hover .text-muted,
.notification-dropdown .notification-item:focus .text-muted {
	color: var(--text-soft, #495057) !important;
}

.notification-site-dot,
.notification-unread-dot {
	border-radius: 999rem;
	display: inline-block;
	flex: 0 0 auto;
}

.notification-site-dot {
	height: 0.625rem;
	margin-top: 0.35rem;
	width: 0.625rem;
}

.notification-unread-dot {
	background: var(--bs-primary);
	height: 0.5rem;
	margin-top: 0.4rem;
	width: 0.5rem;
}

.notification-source-label {
	font-size: 0.65rem;
	font-weight: 600;
}

.notification-body {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	white-space: normal;
}

@media (max-width: 47.99875rem) {
	.notification-dropdown {
		max-height: calc(100vh - 4.75rem);
		min-width: 0;
		width: calc(100vw - 1.5rem);
	}

	.notification-dropdown[data-bs-popper] {
		left: 0.75rem !important;
		margin: 0 !important;
		position: fixed !important;
		right: 0.75rem !important;
		top: var(--kk-header-height, 3.75rem) !important;
		transform: none !important;
		width: auto;
	}
}

.settings-notifications .table td,
.settings-notifications .table th {
	vertical-align: middle;
}

@media (max-width: 61.99875rem) {
	.widget-chat-inbox {
		grid-template-columns: 1fr;
		height: auto;
		min-height: 0;
	}

	.widget-chat-inbox-list {
		max-height: 22.5rem;
	}

	.widget-chat-inbox-detail {
		min-height: 35rem;
	}
}

@keyframes widget-chat-admin-typing {
	0%,
	80%,
	100% {
		opacity: 0.35;
		transform: translateY(0);
	}

	40% {
		opacity: 1;
		transform: translateY(-3px);
	}
}
