*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 14px;
	background: #f8f9fc;
	color: #1f2937;
}

/* ── Auth ─────────────────────────────────────────────────── */
#auth-screen {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
}

.auth-card {
	background: #fff;
	border-radius: 10px;
	padding: 36px 32px;
	width: 400px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, .12);
}

.auth-logo {
	text-align: center;
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 4px;
}

.auth-sub {
	text-align: center;
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 24px;
}

.auth-tabs {
	display: flex;
	border-bottom: 2px solid #e5e7eb;
	margin-bottom: 24px;
}

.auth-tab {
	flex: 1;
	padding: 8px;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 14px;
	color: #6b7280;
	font-family: inherit;
}

.auth-tab.active {
	color: #2563eb;
	border-bottom: 2px solid #2563eb;
	margin-bottom: -2px;
	font-weight: 500;
}

.auth-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.auth-legal {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 13px;
}

.auth-legal .checkbox-wrapper span {
	line-height: 1.4;
}

.auth-legal .checkbox-wrapper a {
	color: #2563eb;
	text-decoration: underline;
}

.auth-error {
	color: #dc2626;
	font-size: 13px;
}

/* ── Shell ────────────────────────────────────────────────── */
#app-shell {
	display: flex;
	flex-direction: column;
	height: 100vh;
}

#impersonation-bar {
	background: #fef3c7;
	border-bottom: 1px solid #fbbf24;
	padding: 8px 24px;
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	flex-shrink: 0;
}

#impersonation-bar strong {
	color: #92400e;
}

#email-verification-bar {
	background: #fff7ed;
	border-bottom: 1px solid #fbbf24;
	padding: 8px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
	flex-shrink: 0;
}

.email-verification-bar__btn-wrap {
	display: inline-flex;
	position: relative;
	min-height: 34px;
}

.app-title {
	font-size: 18px;
	font-weight: 700;
	color: #111;
}

#app-body {
	display: flex;
	flex: 1;
	overflow: hidden;
}

.msweb-ui.tabs-container {
	border-radius: 12px;

}

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	justify-content: flex-start;
	margin: 8px;
}

.sidebar-brand__link {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: inherit;
	flex: 1 1 auto;
	min-width: 0;
}

.sidebar-brand__logo {
	width: 48px;
	height: 48px;
}

.sidebar-brand__controls {
	margin-left: auto;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: 0 0 auto;
}

.sidebar-user {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	padding: 0 0 8px;
	border-bottom: 1px solid #eef2f7;
	margin-bottom: 8px;
}

.sidebar-user__info {
	min-width: 0;
	flex: 1 1 auto;
}

.sidebar-user__name {
	font-size: 14px;
	font-weight: 700;
	color: #111827;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sidebar-user__meta {
	font-size: 12px;
	line-height: 1.4;
	color: #6b7280;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sidebar-user__plan {
	display: inline-flex;
	align-items: center;
	max-width: 96px;
	padding: 3px 8px;
	border-radius: 999px;
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 0 0 auto;
}

.dt-topbar {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: flex-start;
}

.dt-topbar>.dt-controls-custom--start {
	order: 1;
	flex: 0 0 auto;
	width: auto;
	margin-right: auto;
}

.dt-topbar>.dt-controls-length {
	order: 2;
	flex: 0 0 auto;
	width: auto;
	margin-left: auto;
}

.dt-topbar>.dt-controls-search {
	order: 3;
	flex: 0 0 260px;
	width: 260px;
	margin-left: 0 !important;
}

.dt-topbar>.dt-controls-custom--end {
	order: 4;
	flex: 0 0 auto;
	width: auto;
}

.sidebar-suggestion-btn {
	display: flex;
	align-items: center;
	width: 100%;
	margin: 0 0 26px;
	border: 1px solid #dbe6ff;
	border-radius: 10px;
	background: linear-gradient(135deg, #eef5ff 0%, #f8fbff 100%);
	color: #2458d7;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
	text-align: left;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
	transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.sidebar-suggestion-btn:hover {
	background: linear-gradient(135deg, #e3efff 0%, #f3f8ff 100%);
	border-color: #b8cffd;
	box-shadow: 0 10px 22px rgba(37, 99, 235, 0.13);
	transform: translateY(-1px);
}

.sidebar-suggestion-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	color: #2d6bff;
}

.sidebar-suggestion-btn__icon svg {
	width: 17px;
	height: 17px;
}

.sidebar-suggestion-btn__text {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.msweb-sidebar-shell--collapsed .sidebar-suggestion-btn {
	justify-content: center;
	width: 38px;
	height: 38px;
	margin: 0 auto 8px;
	padding: 4px;
	border-radius: 8px;
}

.msweb-sidebar-shell--collapsed .sidebar-suggestion-btn__text {
	display: none;
}

.msweb-sidebar-shell--collapsed .sidebar-suggestion-btn__icon {
	width: 28px;
	height: 28px;
	background: transparent;
	box-shadow: none;
}

/* ── Content ──────────────────────────────────────────────── */
#content {
	flex: 1;
	margin: 6px 6px 6px 0px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

@media (max-width: 680px) {
	#app-shell {
		height: auto;
		min-height: 100dvh;
	}

	#app-body {
		overflow: visible;
		align-items: flex-start;
	}

	#app-body .msweb-sidebar-shell {
		--msweb-sidebar-shell-margin: 0;
		--msweb-sidebar-shell-radius: 0;
		--msweb-sidebar-shell-height: var(--msweb-sidebar-shell-available-height, 100dvh);
		--msweb-sidebar-shell-max-height: var(--msweb-sidebar-shell-available-height, 100dvh);
		position: sticky;
		top: 0;
		align-self: flex-start;
	}

	#content {
		margin: 0;
		overflow: visible;
		min-width: 0;
	}

	.app-page-root {
		height: auto;
		overflow: visible;
	}

	.page-content {
		height: auto;
		overflow: visible;
	}
}

.app-page-root {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	height: 100%;
	overflow: hidden;
}

.app-page-root > .app-page-header,
.app-page-root > .page-header {
	flex: 0 0 auto;
}

.app-page-root > .page-content {
	flex: 1 1 auto;
	min-height: 0;
}

.msweb-ui.tabs-container {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.msweb-ui.tabs-container>.tab-content {
	flex: 1;
	min-height: 0;
	overflow: auto;
	background: #fff;
}

.page-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.page-title {
	font-size: 20px;
	font-weight: 700;
}

.page-actions {
	display: flex;
	gap: 8px;
}

.page-content {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 12px;
	min-height: 0;
	height: 100%;
	overflow: auto;
}

.page-content>.dt-wrap,
.page-content>.msweb-ui.tabs-container {
	flex: 1 1 auto;
	min-height: 0;
}

html.ai-mobile-phone #app-shell {
	height: auto;
	min-height: 100dvh;
}

html.ai-mobile-phone #app-body {
	min-height: 100dvh;
	overflow: visible;
	align-items: flex-start;
	padding-left: 0;
}

html.ai-mobile-phone #app-body .msweb-sidebar-shell {
	--msweb-sidebar-shell-margin: 0;
	--msweb-sidebar-shell-radius: 0;
	--msweb-sidebar-shell-height: var(--msweb-sidebar-shell-available-height, 100dvh);
	--msweb-sidebar-shell-max-height: var(--msweb-sidebar-shell-available-height, 100dvh);
	position: fixed;
	left: 0;
	top: 0;
	bottom: 0;
	z-index: 1200;
	align-self: flex-start;
}

html.ai-mobile-phone #app-body .msweb-sidebar-shell.msweb-sidebar-shell--collapsed {
	--msweb-sidebar-shell-collapsed-width: 44px;
	--msweb-sidebar-control-size: 34px;
	width: 44px;
}

html.ai-mobile-phone #sidebar.msweb-sidebar-shell--collapsed .sidebar-brand {
	margin: 6px 2px;
}

html.ai-mobile-phone #sidebar.msweb-sidebar-shell--collapsed .sidebar-brand__link {
	width: 34px;
	height: 34px;
}

html.ai-mobile-phone #sidebar.msweb-sidebar-shell--collapsed .sidebar-brand__logo {
	width: 32px;
	height: 32px;
}

html.ai-mobile-phone #sidebar .msweb-sidebar-nav--collapsed .nav-link {
	width: 44px;
	height: 34px;
	padding: 8px 0;
}

html.ai-mobile-phone #sidebar.msweb-sidebar-shell--collapsed .sidebar-footer {
	padding: 6px 2px;
}

html.ai-mobile-phone #sidebar.msweb-sidebar-shell--collapsed .sidebar-suggestion-btn {
	width: 34px;
	height: 34px;
	padding: 3px;
	margin: 0 auto 6px;
}

html.ai-mobile-phone #sidebar.msweb-sidebar-shell--collapsed .sidebar-user {
	padding: 6px 0;
	margin-bottom: 6px;
}

html.ai-mobile-phone #sidebar.msweb-sidebar-shell--collapsed .sidebar-footer__row {
	gap: 4px;
}

html.ai-mobile-phone #sidebar.msweb-sidebar-shell--collapsed .sidebar-footer__row .theme-switcher,
html.ai-mobile-phone #sidebar.msweb-sidebar-shell--collapsed .sidebar-toggle-btn {
	width: 34px;
	height: 34px;
	min-height: 34px;
	padding: 3px;
}

html.ai-mobile-phone #content {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 44px;
	z-index: 1;
	margin: 0;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	height: auto;
}

html.ai-mobile-phone #content .app-page-root {
	height: 100%;
	overflow: hidden;
}

html.ai-mobile-phone #content .app-page-root > .page-content {
	height: 100%;
	min-height: 0;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.ai-browser-scroll-spacer {
	display: block;
	width: 1px;
	height: 200vh;
	pointer-events: none;
	visibility: hidden;
}

html.ai-mobile-phone .dt-wrap.msweb-dt-fit-parent {
	padding: 0;
	border-radius: 0;
	box-shadow: none;
}

/* ── DataTable wrap ───────────────────────────────────────── */
.dt-wrap {
	background: #fff;
	border-radius: 8px;
	padding: 16px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .07);
}

table.dataTable.display tbody tr:hover {
	background: #f9fafb;
}

/* ── Tabs (TabsComponent) ─────────────────────────────────── */
.msweb-ui.tabs-container .tabs-header-wrap .tabs-header {
	display: flex;
	gap: 2px;
	border-bottom: 2px solid #e5e7eb;
	background: transparent;
}

.msweb-ui.tabs-container {
	background: transparent;
}

.msweb-ui.tabs-container .tab-btn {
	padding: 9px 18px;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	cursor: pointer;
	font-size: 14px;
	color: #6b7280;
	font-family: inherit;
}

.msweb-ui.tabs-container .tab-btn:hover {
	color: #374151;
}

.msweb-ui.tabs-container .tab-btn.active {
	color: #2563eb;
	border-bottom-color: #2563eb;
	font-weight: 500;
	margin-bottom: 0;
}

.tab-content {
	display: none;
}

.msweb-ui.tabs-container>.tab-content.active {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
}

.msweb-ui.tabs-container>.tab-content.active>.app-detail-tab-panel {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
}

.msweb-ui.tabs-container>.tab-content.active>.app-detail-tab-panel>.dt-wrap {
	flex: 1 1 auto;
	min-height: 0;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
	background: #fff;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .07);
	margin-bottom: 16px;
}

.profile-page {
	max-width: 780px;
}

.profile-sso-loader {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: 10px;
	z-index: 2;
}

.profile-sso-loader__spinner {
	width: 32px;
	height: 32px;
	border: 3px solid rgba(79, 110, 247, 0.2);
	border-top-color: #4f6ef7;
	border-radius: 50%;
	animation: profile-sso-spin 0.8s linear infinite;
}

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

.profile-sso-wrap {
	position: relative;
	width: 100%;
	max-width: 624px;
	flex: 1;
	min-height: 0;
	background: var(--color-bg-card, #fff);
	border-radius: 10px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .07);
	overflow: hidden;
	margin: auto;
}

.profile-sso-frame {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 620px;
	border: 0;
}

.has-sso-profile {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

html.ai-mobile-phone .profile-sso-wrap {
	max-width: none;
	min-height: calc(100dvh - 48px);
	border-radius: 0;
	box-shadow: none;
	margin: 0;
}

html.ai-mobile-phone .profile-sso-frame {
	min-height: calc(100dvh - 48px);
}

.profile-page__section-title {
	margin-top: 20px;
}

.profile-page__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 12px;
}

.card-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 8px;
}

.card-title {
	font-weight: 600;
	font-size: 15px;
}

.card-sub {
	font-size: 12px;
	color: #6b7280;
	margin-top: 3px;
}

/* ── Action buttons (in table cells) ─────────────────────── */
.btn-action {
	padding: 3px 10px;
	font-size: 12px;
	border: 1px solid #d1d5db;
	background: #fff;
	border-radius: 4px;
	cursor: pointer;
	color: #374151;
	font-family: inherit;
}

.btn-action:hover {
	background: #f9fafb;
}

.btn-action.primary {
	color: #2563eb;
	border-color: #93c5fd;
}

.btn-action.primary:hover {
	background: #eff6ff;
}

.btn-action.danger {
	color: #dc2626;
	border-color: #fca5a5;
}

.btn-action.danger:hover {
	background: #fef2f2;
}

.table-row-controls {
	display: flex;
	gap: 6px;
	align-items: center;
}


/* ── Token display ────────────────────────────────────────── */
.token-display {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 12px 16px;
	font-family: monospace;
	font-size: 13px;
	word-break: break-all;
	color: #0f172a;
}

/* ── Misc ─────────────────────────────────────────────────── */
.loading {
	color: #9ca3af;
	padding: 24px;
	text-align: center;
}

.empty-state {
	text-align: center;
	padding: 40px 20px;
	color: #9ca3af;
}

.field-error {
	color: #dc2626;
	font-size: 13px;
}

/* ── Native select ────────────────────────────────────────── */
.native-select {
	width: 100%;
	padding: 7px 10px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	background: #fff;
	font-family: inherit;
	color: #1f2937;
}

.native-select:focus {
	outline: none;
	border-color: #2563eb;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.form-group>label {
	font-size: 13px;
	font-weight: 500;
	color: #374151;
	display: flex;
	align-items: center;
	gap: 6px;
}

/* ── msweb-ui button overrides ────────────────────────────── */
.msweb-ui.btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: 6px;
	border: 1px solid #d1d5db;
	background: #fff;
	font-size: 14px;
	cursor: pointer;
	font-family: inherit;
	color: #374151;
}

.msweb-ui.btn:hover {
	background: #f9fafb;
}

.msweb-ui.btn.primary {
	background: #2563eb;
	color: #fff;
	border-color: #2563eb;
}

.msweb-ui.btn.primary:hover {
	background: #1d4ed8;
}

.msweb-ui.btn.danger {
	background: #fff;
	color: #dc2626;
	border-color: #fca5a5;
}

.msweb-ui.btn.danger:hover {
	background: #fef2f2;
}

.msweb-ui.btn.small {
	padding: 4px 10px;
	font-size: 13px;
}

/* ── Modal ────────────────────────────────────────────────── */
.modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .45);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.modal-small {
	background: #fff;
	border-radius: 10px;
	padding: 28px;
	width: 520px;
	max-width: 96vw;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 8px 40px rgba(0, 0, 0, .2);
}

.modal-small h3 {
	font-size: 17px;
	font-weight: 700;
	margin-bottom: 20px;
}

.modal-body {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.modal-small .buttons {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	margin-top: 20px;
}

/* ── Input / Textarea from msweb-ui ──────────────────────── */
.msweb-ui.input-wrapper {
	display: flex;
	flex-direction: column;
}

.msweb-ui.input-wrapper input,
.msweb-ui.input-wrapper textarea {
	padding: 7px 10px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	color: #1f2937;
	width: 100%;
	resize: vertical;
}

.msweb-ui.input-wrapper input:focus,
.msweb-ui.input-wrapper textarea:focus {
	outline: none;
	border-color: #2563eb;
}

.checkbox-wrapper {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 14px;
}

.checkbox-wrapper input[type=checkbox] {
	width: 16px;
	height: 16px;
	cursor: pointer;
}

.form-group .msweb-ui.input-wrapper {
	gap: 0;
}

/* ── DataTable helpers ────────────────────────────────────── */
td.dt-nowrap {
	white-space: nowrap;
}

/* ── Example code block ───────────────────────────────────── */
pre.example-code {
	background: #f8fafc;
	padding: 14px;
	border-radius: 6px;
	font-size: 12px;
	overflow-x: auto;
	color: #334155;
	line-height: 1.5;
	border: 1px solid #e2e8f0;
}

/* ── Doc editor ───────────────────────────────────────────── */
.doc-editor-modebar {
	display: flex;
	gap: 2px;
	border-bottom: 2px solid #e5e7eb;
	margin-bottom: 12px;
}

.doc-editor-mode {
	padding: 7px 16px;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	cursor: pointer;
	font-size: 13px;
	color: #6b7280;
	font-family: inherit;
}

.doc-editor-mode:hover {
	color: #374151;
}

.doc-editor-mode.active {
	color: #2563eb;
	border-bottom-color: #2563eb;
	font-weight: 500;
}

.doc-editor-mode--ai {
	margin-left: auto;
	color: #7c3aed;
}

.doc-editor-mode--ai:hover {
	color: #5b21b6;
}

.doc-editor-title-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.doc-editor-title-row--header {
	margin-bottom: 0;
}

.doc-editor-title-row .msweb-ui.input-wrapper {
	flex: 1;
}

.doc-editor-title-ext {
	color: #6b7280;
	font-size: 13px;
	white-space: nowrap;
}

.doc-editor-title-host {
	margin-bottom: 14px;
}

.doc-editor-title-input input {
	border: none;
	box-shadow: none;
	background: transparent;
	border-radius: 0;
	padding: 0;
	font-size: 28px;
	font-weight: 700;
	color: #111827;
	line-height: 1.2;
}

.doc-editor-title-input input:focus {
	outline: none;
	border: none;
	box-shadow: none;
}

.doc-editor-title-row--header .doc-editor-title-ext {
	font-size: 20px;
	font-weight: 600;
	color: #374151;
}

.msweb-ui.modal-body {
	padding: 16px;
}

.msweb-ui.modal-wide {
	overflow: hidden;
	height: 90vh;
}

.msweb-ui.modal-wide .msweb-ui.modal-body {
	scrollbar-gutter: stable;
	flex: 1;
	display: flex;
	flex-direction: column;
	padding-bottom: 0;
}

.msweb-ui.modal-full {
	width: 100vw;
	height: 100vh;
	max-width: 100vw;
	max-height: 100vh;
	border-radius: 0;
	box-shadow: none;
	background: #fff;
	padding: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.msweb-ui.modal-full>h3 {
	flex-shrink: 0;
	padding: 14px 20px;
	margin: 0;
	border-bottom: 1px solid #e5e7eb;
	font-size: 17px;
	font-weight: 700;
}

.msweb-ui.modal-full .msweb-ui.modal-body {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 0;
	gap: 0;
}
.msweb-ui.example-dialogs-modal .msweb-ui.modal-body {
	overflow-y: auto;
	background:
		linear-gradient(180deg, #ffffff 0%, #f7faff 48%, #ffffff 100%);
}

.msweb-ui.modal-full .buttons {
	flex-shrink: 0;
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	padding: 10px 20px;
	border-top: 1px solid #e5e7eb;
	margin: 0;
}

.modal-backdrop:has(.modal-full) {
	background: transparent;
}

.doc-editor-pane {
	flex: 1;
	overflow: hidden;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.doc-editor-pane [hidden] {
	display: none !important;
}

.doc-editor-preview {
	flex: 1;
	overflow-y: auto;
	padding: 4px 2px;
	font-size: 14px;
	line-height: 1.7;
	color: #1f2937;
}

.doc-editor-pane .doc-editor-textarea {
	flex: 1;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.doc-editor-textarea textarea {
	flex: 1;
	overflow-y: auto;
	resize: none;
}

.doc-editor-preview h1 {
	font-size: 20px;
	font-weight: 700;
	margin: 16px 0 8px;
}

.doc-editor-preview h2 {
	font-size: 17px;
	font-weight: 600;
	margin: 14px 0 6px;
}

.doc-editor-preview h3 {
	font-size: 15px;
	font-weight: 600;
	margin: 12px 0 4px;
}

.doc-editor-preview p {
	margin: 0 0 10px;
}

.doc-editor-preview ul,
.doc-editor-preview ol {
	padding-left: 20px;
	margin: 0 0 10px;
}

.doc-editor-preview ol {
	list-style: decimal;
}

.doc-editor-preview li {
	margin-bottom: 3px;
}

.doc-editor-preview blockquote {
	border-left: 3px solid #d1d5db;
	padding-left: 12px;
	color: #6b7280;
	margin: 0 0 10px;
}

.doc-editor-preview code {
	background: #f1f5f9;
	padding: 1px 5px;
	border-radius: 3px;
	font-family: monospace;
	font-size: 13px;
}

.doc-editor-preview pre {
	background: #0f172a;
	color: #e2e8f0;
	padding: 12px 14px;
	border-radius: 6px;
	overflow-x: auto;
	margin: 0 0 10px;
}

.doc-editor-preview pre code {
	background: none;
	padding: 0;
	color: inherit;
	font-size: 12px;
}

.doc-editor-preview a {
	color: #2563eb;
	text-decoration: underline;
}

.doc-editor-preview hr {
	border: none;
	border-top: 1px solid #e5e7eb;
	margin: 14px 0;
}

/* ── App Page Header ──────────────────────────────────────── */
.app-page-header {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 16px;
	margin-bottom: 6px;
	border: 1px solid #e7edf7;
	border-radius: 12px;
	background:
		radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 32%),
		linear-gradient(135deg, #ffffff 0%, #f8fbff 55%, #fdfefe 100%);
	box-shadow: 0 10px 24px rgba(148, 163, 184, 0.1);
	min-height: 90px;
}

.app-page-header__primary {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	column-gap: 10px;
	row-gap: 3px;
	min-width: 0;
	flex: 1 1 auto;
}

.app-page-header__badge {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(37, 99, 235, 0.1);
	color: #2563eb;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-transform: none;
	margin-bottom: 0;
	grid-column: 1;
	grid-row: 1;
}

.app-page-header__title {
	margin: 0;
	font-size: clamp(16px, 1.5vw, 22px);
	line-height: 1.08;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #0f172a;
	grid-column: 1;
	grid-row: 1;
	min-width: 0;
}

.app-page-header--has-badge .app-page-header__title {
	grid-column: 2;
}

.app-page-header__subtitle {
	font-size: 12px;
	color: #64748b;
	grid-column: 1 / -1;
	grid-row: 2;
}

.app-page-header__metrics {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	flex: 0 1 620px;
}

.app-page-header__secondary {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.app-page-header__metric {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-width: 172px;
	flex: 1 1 172px;
	padding: 12px 13px;
	border: 1px solid #e5edf8;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.88);
	box-shadow: 0 6px 18px rgba(148, 163, 184, 0.06);
}

.app-page-header__metric[data-tone="success"] .app-page-header__metric-icon {
	background: rgba(34, 197, 94, 0.14);
	color: #16a34a;
}

.app-page-header__metric[data-tone="warning"] .app-page-header__metric-icon {
	background: rgba(245, 158, 11, 0.16);
	color: #d97706;
}

.app-page-header__metric[data-tone="muted"] .app-page-header__metric-icon {
	background: rgba(148, 163, 184, 0.14);
	color: #64748b;
}

.app-page-header__metric-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	background: rgba(37, 99, 235, 0.12);
	color: #2563eb;
}

.app-page-header__metric-icon svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.app-page-header__metric-body {
	min-width: 0;
	flex: 1 1 auto;
}

.app-page-header__metric-label {
	font-size: 11px;
	font-weight: 600;
	color: #64748b;
	margin-bottom: 2px;
}

.app-page-header__metric-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	margin-left: auto;
	border: 1px solid #d8e4f3;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #2563eb;
	cursor: pointer;
	flex: 0 0 28px;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.app-page-header__metric-action:hover:not(:disabled) {
	background: #eff6ff;
	border-color: #bfdbfe;
}

.app-page-header__metric-action:disabled {
	opacity: 0.5;
	cursor: default;
}

.app-page-header__metric-value {
	font-size: 14px;
	line-height: 1.1;
	font-weight: 600;
	letter-spacing: -0.03em;
	color: #0f172a;
}

.app-page-header__metric-value-link {
	color: inherit;
	text-decoration: none;
}

.app-page-header__metric-value-link:hover,
.app-page-header__metric-value-link:focus-visible {
	text-decoration: underline;
}

.app-page-header__metric-meta {
	margin-top: 2px;
	font-size: 11px;
	line-height: 1.3;
	color: #64748b;
}

@media (max-width: 1100px) {
	.app-page-header {
		flex-direction: column;
	}

	.app-page-header__metrics {
		justify-content: stretch;
		flex-basis: auto;
	}

	.app-page-header__secondary {
		justify-content: flex-start;
	}
}

@media (max-width: 720px) {
	.app-page-header {
		padding: 12px;
		border-radius: 16px;
	}

	.app-page-header__primary {
		grid-template-columns: 1fr;
		row-gap: 4px;
	}

	.app-page-header__badge,
	.app-page-header__title,
	.app-page-header__subtitle {
		grid-column: 1;
	}

	.app-page-header__badge {
		display: none;
	}

	.app-page-header--has-badge .app-page-header__title {
		grid-column: 1;
	}

	.app-page-header__title {
		grid-row: auto;
	}

	.app-page-header__subtitle {
		grid-row: auto;
	}

	.app-page-header__metric {
		min-width: 100%;
	}

	.app-page-header__metric-value {
		font-size: 14px;
	}

	.app-page-header__secondary {
		width: 100%;
	}
}

/* ── 403 page ─────────────────────────────────────────────────── */
.page-403 {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 60vh;
	gap: 12px;
	color: #6b7280;
}

.page-403__icon {
	font-size: 64px;
	line-height: 1;
}

.page-403__title {
	font-size: 22px;
	font-weight: 700;
	color: #1e293b;
}

/* ── Descriptions ─────────────────────────────────────────────── */
.page-desc {
	color: #6b7280;
	font-size: 13px;
	margin-bottom: 16px;
}

.card-desc {
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 14px;
}

.page-note {
	font-size: 12px;
	color: #6b7280;
	margin-bottom: 12px;
}

/* ── Card heading ─────────────────────────────────────────────── */
.card-h3 {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 6px;
}

.pdn-usage-count-btn {
	border: none;
	background: none;
	padding: 0;
	color: #2563eb;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.app-page-header__metric-toggle {
	margin-left: auto;
	flex: 0 0 auto;
}

.app-page-header__metric-action-btn {
	margin-left: auto;
	flex: 0 0 auto;
}

.app-page-header__metric-toggle .toggle-track {
	background: #d6e2f2;
}

.pdn-usage-count-btn:hover {
	color: #1d4ed8;
	text-decoration: underline;
}

.pdn-delivery-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: 16px;
}

.pdn-delivery-card__radio .radio-options-container {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pdn-delivery-card__radio .radio-option-wrapper {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	line-height: 1.35;
}

.pdn-delivery-card__radio input[type="radio"] {
	margin-top: 2px;
}

.pdn-delivery-card__actions {
	display: flex;
	justify-content: flex-end;
}

.pdn-endpoint-card[hidden],
.pdn-forms-table-wrap[hidden] {
	display: none !important;
}

.pdn-endpoint-card {
	display: grid;
	grid-template-columns: minmax(260px, .9fr) minmax(320px, 1.1fr);
	align-items: end;
	gap: 18px;
}

.pdn-endpoint-card__text .card-h3 {
	margin-bottom: 6px;
}

.pdn-endpoint-card__controls {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 10px;
}

.pdn-endpoint-card__field {
	margin: 0;
}

.pdn-endpoint-card__input {
	width: 100%;
}

.pdn-forms-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.pdn-usage-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pdn-usage-item {
	padding: 12px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #f8fafc;
}

.pdn-usage-item__title {
	font-size: 14px;
	font-weight: 600;
	color: #111827;
}

.pdn-usage-item__meta {
	margin-top: 4px;
	font-size: 12px;
	color: #6b7280;
}

.pdn-info-modal-root {
	background: rgba(15, 23, 42, .38);
	backdrop-filter: blur(7px);
}

.pdn-info-modal-root .msweb-ui.modal-wide {
	width: min(1180px, calc(100vw - 40px));
	height: auto;
	max-height: calc(100vh - 48px);
	border: 1px solid rgba(203, 213, 225, .75);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 26px 80px rgba(15, 23, 42, .28);
}

.pdn-info-modal-root .msweb-ui.modal-body {
	gap: 0;
	padding: 0;
	overflow-y: auto;
}

.pdn-info-modal-root .msweb-ui.modal-wide>.buttons {
	margin-top: 0;
	padding: 16px 40px 18px;
	border-top: 1px solid #e8edf5;
	border-radius: 0 0 18px 18px;
	background: #fff;
}

.pdn-info-modal-root .msweb-ui.modal-wide>.buttons .msweb-ui.btn {
	min-width: 132px;
	height: 46px;
	border-radius: 8px;
	font-weight: 600;
}

.pdn-info-modal {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 30px 38px 16px;
	color: #172033;
	background:
		radial-gradient(circle at 86% 8%, rgba(37, 99, 235, .08), transparent 28%),
		linear-gradient(180deg, #ffffff 0%, #f8fbff 58%, #ffffff 100%);
}

.pdn-info-modal h2,
.pdn-info-modal h3,
.pdn-info-modal p {
	margin: 0;
	padding-left: 0;
	text-indent: 0;
}

.pdn-info-modal h2,
.pdn-info-modal h3 {
	margin-left: 0;
}

.pdn-info-icon {
	display: block;
	width: 1em;
	height: 1em;
	flex: 0 0 auto;
	color: currentColor;
}

.pdn-info-modal-root .msweb-ui.modal-wide .pdn-info-modal h3 {
	margin: 0;
	padding: 0;
	margin-left: 0;
	text-indent: 0;
	letter-spacing: 0;
	font-size: 22px;
	font-weight: bold;
	color: #1346b5;
}

.pdn-info-modal__hero {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 18px;
}

.pdn-info-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border: 1px solid #e4eaf3;
	border-radius: 12px;
	background: #f8fbff;
	color: #64748b;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.pdn-info-modal__close:hover {
	border-color: #cbd5e1;
	background: #f1f5f9;
	color: #334155;
}

.pdn-info-modal__title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 18px;
}

.pdn-info-modal__title-row h2 {
	font-size: 31px;
	line-height: 1.12;
	font-weight: 800;
	color: #16213a;
	letter-spacing: 0;
}

.pdn-info-modal__hero p {
	margin-top: 10px;
	font-size: 15px;
	line-height: 1.45;
	color: #68758e;
}

.pdn-info-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 32px;
	padding: 0 12px;
	border: 1px solid #bfdbfe;
	border-radius: 999px;
	background: #f5f9ff;
	color: #2563eb;
	font-size: 13px;
	font-weight: 700;
}

.pdn-info-badge__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: #2563eb;
	color: #fff;
	font-size: 13px;
}

.pdn-info-notice {
	position: relative;
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	align-items: center;
	gap: 14px;
	min-height: 116px;
	padding: 10px 18px;
	overflow: hidden;
	border: 1px solid #a8c8ff;
	border-radius: 12px;
	background:
		radial-gradient(circle at 19% 15%, rgba(59, 130, 246, .18), transparent 24%),
		radial-gradient(circle at 72% 8%, rgba(34, 197, 94, .1), transparent 25%),
		linear-gradient(135deg, #f3f7ff 0%, #ffffff 48%, #edf5ff 100%);
	box-shadow: inset 0 0 52px rgba(37, 99, 235, .08);
}

.pdn-info-notice::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(115deg, transparent 0 46%, rgba(37, 99, 235, .08) 46.2% 46.7%, transparent 47%),
		linear-gradient(25deg, transparent 0 58%, rgba(37, 99, 235, .06) 58.2% 58.7%, transparent 59%);
	opacity: .72;
}

.pdn-info-notice__shield,
.pdn-info-notice__content,
.pdn-info-notice__benefits {
	position: relative;
	z-index: 1;
}

.pdn-info-notice__shield {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 94px;
	height: 104px;
	margin: 0;
}

.pdn-info-notice__shield img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 18px 28px rgba(37, 99, 235, .18));
	-webkit-mask-image:
		linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%),
		linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-image:
		linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%),
		linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
	mask-composite: intersect;
}

.pdn-info-notice__law {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	min-height: 25px;
	padding: 0 12px;
	border: 1px solid #b8d3ff;
	border-radius: 999px;
	background: rgba(255, 255, 255, .72);
	color: #1d4ed8;
	font-size: 13px;
	font-weight: 800;
}

.pdn-info-notice__headline {
	display: flex;
	align-items: center;
	gap: 12px;
}

.pdn-info-notice__content {
	margin-left: 0;
	padding-left: 0;
}

.pdn-info-notice h3 {
	margin: 0;
	max-width: 650px;
	font-size: 22px;
	line-height: 1.15;
	font-weight: 900;
	color: #1428b8;
}

.pdn-info-notice p {
	max-width: 880px;
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.45;
	color: #2f3e56;
}

.pdn-info-notice__chips {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 16px;
	max-width: 640px;
}

.pdn-info-notice__chips span {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 50px;
	padding: 8px 13px;
	border: 1px solid rgba(168, 198, 255, .74);
	border-radius: 12px;
	background: rgba(255, 255, 255, .76);
	color: #1d4ed8;
	font-size: 13px;
	line-height: 1.22;
	font-weight: 750;
	box-shadow: 0 10px 24px rgba(37, 99, 235, .08);
}

.pdn-info-notice__chips b {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 8px;
	background: #eff6ff;
	color: #2563eb;
	font-size: 17px;
}

.pdn-info-notice__benefits {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 170px;
	overflow: hidden;
	border-radius: 12px;
	background: rgba(255, 255, 255, .78);
	box-shadow: 0 18px 34px rgba(15, 23, 42, .08);
}

.pdn-info-notice__benefits div {
	display: grid;
	grid-template-columns: 34px 1fr;
	align-items: center;
	gap: 9px;
	min-height: 56px;
	padding: 12px 18px;
	color: #172033;
	font-size: 14px;
	line-height: 1.32;
	font-weight: 760;
}

.pdn-info-notice__benefits div + div {
	border-top: 1px solid #e6edf7;
}

.pdn-info-notice__benefits span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 9px;
	background: #eff6ff;
	color: #2563eb;
	font-size: 18px;
	font-weight: 800;
}

.pdn-info-notice__chips,
.pdn-info-notice__benefits {
	display: none;
}

.pdn-info-system-hero {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) 330px;
	gap: 26px;
	align-items: center;
	padding: 28px 26px;
	border: 1px solid #b9e0c8;
	border-radius: 12px;
	background:
		radial-gradient(circle at 76% 10%, rgba(34, 197, 94, .11), transparent 28%),
		linear-gradient(135deg, #f7fdf9 0%, #ffffff 54%, #f1fbf5 100%);
	box-shadow: inset 0 0 44px rgba(34, 197, 94, .06);
}

.pdn-info-system-hero__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 92px;
	height: 92px;
	border: 1px solid #bde5ca;
	border-radius: 18px;
	background: #effaf3;
	color: #229453;
	font-size: 52px;
}

.pdn-info-system-hero__badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.pdn-info-system-hero__badges span {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 0 14px;
	border-radius: 999px;
	background: #dff3e5;
	color: #208947;
	font-size: 13px;
	font-weight: 800;
}

.pdn-info-system-hero__badges span:nth-child(n + 2) {
	background: #eef7ff;
	color: #2563eb;
}

.pdn-info-system-hero h3 {
	max-width: 700px;
	font-size: 34px;
	line-height: 1.16;
	font-weight: 900;
	color: #123f25;
}

.pdn-info-modal-root .msweb-ui.modal-wide .pdn-info-modal .pdn-info-system-hero h3 {
	max-width: 700px;
	font-size: 34px;
	line-height: 1.16;
	font-weight: 900;
	color: #123f25;
}

.pdn-info-system-hero p {
	max-width: 680px;
	margin-top: 20px;
	font-size: 16px;
	line-height: 1.55;
	color: #334155;
}

.pdn-info-system-hero__chips {
	margin-top: 22px;
}

.pdn-info-chips.pdn-info-system-hero__chips span {
	min-height: 38px;
	padding: 0 16px;
	border-color: #8bd7a8;
	border-radius: 10px;
	color: #176b38;
	font-size: 18px;
	font-weight: 500;
}

.pdn-info-chips.pdn-info-system-hero__chips span::before {
	width: 8px;
	height: 8px;
	background: #22a051;
	color: #22a051;
	opacity: 1;
}

.pdn-info-system-hero__note {
	display: flex;
	align-items: center;
	gap: 10px;
	width: fit-content;
	max-width: 100%;
	margin-top: 16px;
	padding: 10px 14px;
	border: 1px solid #bde5ca;
	border-radius: 12px;
	background: #eaf8ef;
	color: #1f6f3e;
	font-size: 13px;
	font-weight: 800;
}

.pdn-info-system-hero__note span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 999px;
	background: #22a051;
	color: #fff;
	font-size: 15px;
}

.pdn-info-system-hero__benefits {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-left: 24px;
	border-left: 1px solid #d7e7dd;
}

.pdn-info-system-hero__benefits div {
	display: grid;
	grid-template-columns: 58px 1fr;
	gap: 14px;
	align-items: center;
	min-height: 82px;
	padding: 14px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .86);
	box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
}

.pdn-info-system-hero__benefits div div {
	display: block;
	min-width: 0;
	min-height: 0;
	padding: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.pdn-info-system-hero__benefits span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border: 1px solid #d8eadf;
	border-radius: 14px;
	background: #f7fdf9;
	color: #229453;
	font-size: 27px;
}

.pdn-info-system-hero__benefits strong {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
	color: #172033;
}

.pdn-info-system-hero__benefits p {
	margin: 0;
	font-size: 12px;
	line-height: 1.42;
	color: #536174;
}

.pdn-create-form-modal {
	padding: 4px 0;
}

.pdn-create-form-modal-root .msweb-ui.modal-wide {
	height: auto;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
}

.pdn-create-form-modal-root .msweb-ui.modal-body {
	flex: none;
}

.pdn-create-form-modal-root .msweb-ui.modal-wide .pdn-info-system-hero h3 {
	max-width: 700px;
	font-size: 34px;
	line-height: 1.16;
	font-weight: 900;
	color: #123f25;
	padding: 0;
	margin: 0;
}

.pdn-create-form-modal-root .msweb-ui.modal-wide .pdn-info-system-hero--create h3 {
	max-width: 620px;
	font-size: 28px;
	line-height: 1.18;
}

.pdn-info-system-hero--create {
	grid-template-columns: 76px minmax(0, 1fr) 300px;
	gap: 22px;
	padding: 22px;
}

.pdn-info-system-hero--create .pdn-info-system-hero__icon {
	width: 72px;
	height: 72px;
	font-size: 40px;
}

.pdn-info-system-hero--create h3 {
	max-width: 620px;
	font-size: 28px;
	line-height: 1.18;
}

.pdn-info-system-hero--create p {
	margin-top: 16px;
	font-size: 14px;
}

.pdn-info-system-hero--create .pdn-info-system-hero__badges {
	margin-bottom: 12px;
}

.pdn-info-system-hero--create .pdn-info-system-hero__benefits {
	gap: 12px;
	padding-left: 20px;
}

.pdn-info-system-hero--create .pdn-info-system-hero__benefits div {
	grid-template-columns: 48px 1fr;
	min-height: 72px;
	padding: 12px;
}

.pdn-info-system-hero--create .pdn-info-system-hero__benefits span {
	width: 44px;
	height: 44px;
	font-size: 23px;
}

.pdn-info-system-hero--create .pdn-info-system-hero__note {
	margin-top: 14px;
}

.pdn-info-modal__main-grid {
	display: grid;
	grid-template-columns: minmax(360px, .96fr) minmax(360px, 1.04fr);
	align-items: stretch;
	gap: 14px;
}

.pdn-info-chat-card,
.pdn-info-type-card,
.pdn-info-flow,
.pdn-info-use-card {
	border: 1px solid #dbe3ee;
	border-radius: 10px;
	background: rgba(255, 255, 255, .86);
}

.pdn-info-chat-card {
	height: 100%;
	padding: 16px 18px;
}

.pdn-info-card-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.pdn-info-card-title h3,
.pdn-info-flow h3,
.pdn-info-type-card__heading h3 {
	margin-left: 0;
	padding-left: 0;
	text-indent: 0;
	letter-spacing: 0;
}

.pdn-info-card-title h3,
.pdn-info-flow h3 {
	font-size: 15px;
	line-height: 1.3;
	font-weight: 800;
	color: #16213a;
}

.pdn-info-card-title__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 1px solid #cfe0ff;
	border-radius: 999px;
	background: #f5f8ff;
	color: #2563eb;
	font-size: 16px;
	font-weight: 800;
}

.pdn-info-chat {
	position: relative;
	min-height: 292px;
	padding: 12px 14px;
	overflow: hidden;
	background: linear-gradient(135deg, #f7f9ff 0%, #eef4ff 100%);
}

.pdn-info-chat__user {
	width: fit-content;
	max-width: 68%;
	margin-left: auto;
	padding: 7px 12px;
	border-radius: 15px 15px 4px 15px;
	background: #dbeafe;
	color: #172033;
	font-size: 12px;
	box-shadow: 0 8px 18px rgba(37, 99, 235, .08);
}

.pdn-info-chat__user span,
.pdn-info-chat__bubble span,
.pdn-info-chat__done em {
	margin-left: 8px;
	color: #7b8799;
	font-size: 10px;
	font-style: normal;
}

.pdn-info-chat__row {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	align-items: start;
	gap: 10px;
	margin-top: 10px;
}

.pdn-info-chat__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin-top: 5px;
	border-radius: 999px;
	background: #2563eb;
	color: #fff;
	font-size: 15px;
}

.pdn-info-chat__bubble {
	max-width: 310px;
	padding: 9px 12px;
	border-radius: 15px 15px 15px 4px;
	background: #fff;
	font-size: 12px;
	line-height: 1.28;
	color: #344056;
	box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
}

.pdn-info-form-preview {
	width: min(288px, calc(100% - 58px));
	margin: 7px 0 0 58px;
	padding: 10px 12px;
	border: 1px solid #e4e9f2;
	border-radius: 13px;
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 20px 42px rgba(15, 23, 42, .12);
}

.pdn-info-form-preview strong {
	display: block;
	margin-bottom: 7px;
	font-size: 12px;
	color: #26324a;
}

.pdn-info-form-preview label {
	display: block;
	margin: 6px 0 4px;
	font-size: 11px;
	font-weight: 700;
	color: #344056;
}

.pdn-info-field,
.pdn-info-submit {
	display: flex;
	align-items: center;
	min-height: 24px;
	border-radius: 7px;
	font-size: 11px;
}

.pdn-info-field {
	padding: 0 10px;
	border: 1px solid #d6deeb;
	background: #fff;
	color: #526073;
}

.pdn-info-submit {
	justify-content: center;
	margin-top: 7px;
	background: #2563eb;
	color: #fff;
	font-weight: 700;
}

.pdn-info-chat__done {
	display: flex;
	align-items: center;
	gap: 8px;
	width: min(288px, calc(100% - 58px));
	margin: 7px 0 0 58px;
	padding: 8px 12px;
	border-radius: 12px;
	background: #fff;
	font-size: 12px;
	color: #344056;
	box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.pdn-info-chat__done span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 999px;
	background: #2f9d57;
	color: #fff;
	font-weight: 800;
}

.pdn-info-card-caption {
	margin-top: 9px;
	padding-left: 48px;
	font-size: 12px;
	line-height: 1.45;
	color: #7a8597;
}

.pdn-info-modal__type-stack {
	display: flex;
	flex-direction: column;
	gap: 14px;
	height: 100%;
}

.pdn-info-type-card {
	display: grid;
	grid-template-columns: 74px 1fr;
	gap: 14px;
	height: 100%;
	min-height: 166px;
	padding: 22px;
}

.pdn-info-type-card--system {
	border-color: #cfe4d7;
	background: linear-gradient(135deg, #f6fcf8 0%, #ffffff 100%);
}

.pdn-info-type-card--custom {
	grid-template-rows: auto 1fr auto auto;
	align-content: stretch;
	border-color: #ddd2ff;
	background:
		radial-gradient(circle at 7% 10%, rgba(124, 58, 237, .1), transparent 34%),
		linear-gradient(135deg, #fbf8ff 0%, #ffffff 100%);
}

.pdn-info-type-card__content {
	min-width: 0;
}

.pdn-info-type-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	border-radius: 18px;
	font-size: 30px;
	font-weight: 800;
}

.pdn-info-type-card--system .pdn-info-type-card__icon {
	border: 1px solid #c8e6d4;
	background: #eef9f2;
	color: #229453;
}

.pdn-info-type-card--custom .pdn-info-type-card__icon {
	border: 1px solid #ddd2ff;
	background: #f3edff;
	color: #7c3aed;
	font-size: 23px;
}

.pdn-info-type-card__heading {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.pdn-info-type-card__heading h3 {
	font-size: 17px;
	font-weight: 800;
	color: #172033;
}

.pdn-info-type-card__heading span {
	padding: 4px 11px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
}

.pdn-info-type-card--system .pdn-info-type-card__heading span {
	background: #dff3e5;
	color: #299957;
}

.pdn-info-type-card--custom .pdn-info-type-card__heading span {
	background: #eee7ff;
	color: #7c3aed;
}

.pdn-info-type-card p {
	font-size: 13px;
	line-height: 1.5;
	color: #46546a;
}

.pdn-info-type-card__lead {
	max-width: 520px;
	font-size: 16px !important;
	line-height: 1.5;
}

.pdn-info-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.pdn-info-chips span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 34px;
	padding: 0 15px;
	border: 1px solid rgba(148, 163, 184, .35);
	border-radius: 8px;
	background: rgba(255, 255, 255, .78);
	font-size: 14px;
	font-weight: 500;
	color: #344056;
}

.pdn-info-chips span::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: currentColor;
	opacity: .88;
}

.pdn-info-type-card--system .pdn-info-chips span::before {
	color: #2f9d57;
}

.pdn-info-type-card--custom .pdn-info-chips span::before {
	color: #8b5cf6;
}

.pdn-info-type-card__note {
	grid-column: 1 / -1;
	margin-top: 0;
	padding: 11px 13px;
	border: 1px solid #d8e4ff;
	border-radius: 12px;
	background: #f7fbff;
	font-size: 13px;
	line-height: 1.35;
	color: #506079;
}

.pdn-info-type-card__note span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-right: 8px;
	vertical-align: middle;
	border-radius: 9px;
	background: #eaf2ff;
	color: #2563eb;
	font-size: 17px;
}

.pdn-info-type-card__note strong {
	color: #1d4ed8;
}

.pdn-info-custom-route {
	grid-column: 1 / -1;
	align-self: center;
	display: grid;
	grid-template-columns: 36px 1fr auto;
	align-items: center;
	gap: 12px;
	margin-top: 18px;
	padding: 12px 14px;
	border: 1px dashed #cbbdff;
	border-radius: 12px;
	background: rgba(255, 255, 255, .72);
	color: #4b3b66;
}

.pdn-info-custom-route span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: #f3edff;
	color: #7c3aed;
	font-size: 20px;
}

.pdn-info-custom-route strong {
	font-size: 14px;
	line-height: 1.25;
	color: #26324a;
}

.pdn-info-custom-route em {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0 10px;
	border-radius: 8px;
	background: #f7f3ff;
	color: #7c3aed;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12px;
	font-style: normal;
	font-weight: 700;
	white-space: nowrap;
}

.pdn-info-custom-benefits {
	grid-column: 1 / -1;
	align-self: end;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-top: 20px;
	margin-bottom: 0;
}

.pdn-info-custom-benefits div {
	display: flex;
	align-items: center;
	gap: 9px;
	min-height: 52px;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .9);
	box-shadow: 0 14px 28px rgba(76, 29, 149, .08);
}

.pdn-info-custom-benefits span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 27px;
	height: 27px;
	border-radius: 8px;
	background: #f3edff;
	color: #7c3aed;
	font-size: 16px;
}

.pdn-info-custom-benefits strong {
	min-width: 0;
	font-size: 11px;
	line-height: 1.2;
	font-weight: 700;
	color: #4b3b66;
}

.pdn-info-flow {
	padding: 14px 18px 18px;
}

.pdn-info-flow__steps {
	display: grid;
	grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
}

.pdn-info-flow__step {
	position: relative;
	display: grid;
	grid-template-columns: 54px 1fr;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.pdn-info-flow__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border: 1px solid #dce6f5;
	border-radius: 12px;
	background: #f8fbff;
	color: #2563eb;
	font-size: 25px;
	box-shadow: 0 10px 22px rgba(37, 99, 235, .08);
}

.pdn-info-flow__num {
	position: absolute;
	top: 0;
	left: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 999px;
	background: #2563eb;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
}

.pdn-info-flow__step p {
	font-size: 12px;
	line-height: 1.35;
	color: #344056;
}

.pdn-info-flow__arrow {
	color: #2563eb;
	font-weight: 900;
	letter-spacing: 4px;
}

.pdn-info-modal__bottom-grid {
	display: block;
}

.pdn-info-use-card {
	padding: 16px 18px;
}

.pdn-info-use-card__items {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.pdn-info-use-item {
	display: grid;
	grid-template-columns: 54px 1fr;
	gap: 12px;
	align-items: center;
	min-height: 78px;
	padding: 12px;
	border: 1px solid #dfe6ef;
	border-radius: 10px;
	background: #fff;
}

.pdn-info-use-item__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	font-size: 27px;
	font-weight: 800;
}

.pdn-info-use-item__icon--red {
	border: 1px solid #f6c9c9;
	background: #fff1f1;
	color: #ef4444;
}

.pdn-info-use-item__icon--gray {
	border: 1px solid #dfe6ef;
	background: #f5f7fb;
	color: #64748b;
}

.pdn-info-use-item strong {
	display: block;
	margin-bottom: 4px;
	font-size: 13px;
	color: #172033;
}

.pdn-info-use-item p {
	font-size: 12px;
	line-height: 1.45;
	color: #536174;
}

@media (max-width: 980px) {
	.pdn-info-modal-root .msweb-ui.modal-wide {
		width: min(760px, calc(100vw - 24px));
		max-height: calc(100vh - 24px);
	}

	.pdn-info-modal {
		padding: 24px 22px 12px;
	}

	.pdn-info-notice {
		grid-template-columns: 86px 1fr;
		gap: 14px;
	}

	.pdn-info-notice__shield {
		width: 86px;
		height: 96px;
	}

	.pdn-info-notice__chips,
	.pdn-info-notice__benefits {
		display: none;
	}

	.pdn-info-system-hero {
		grid-template-columns: 78px 1fr;
		align-items: start;
	}

	.pdn-info-system-hero--create {
		grid-template-columns: 68px 1fr;
	}

	.pdn-info-system-hero__icon {
		width: 72px;
		height: 72px;
		font-size: 40px;
	}

	.pdn-info-system-hero h3 {
		font-size: 28px;
	}

	.pdn-info-modal-root .msweb-ui.modal-wide .pdn-info-modal .pdn-info-system-hero h3 {
		font-size: 28px;
	}

	.pdn-info-system-hero__benefits {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		padding-left: 0;
		border-left: 0;
		border-top: 1px solid #d7e7dd;
		padding-top: 18px;
	}

	.pdn-info-system-hero--create .pdn-info-system-hero__benefits {
		padding-left: 0;
	}

	.pdn-info-system-hero__benefits div {
		grid-template-columns: 44px 1fr;
	}

	.pdn-info-modal__main-grid,
	.pdn-info-modal__bottom-grid {
		grid-template-columns: 1fr;
	}

	.pdn-info-custom-benefits {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.pdn-info-flow__steps {
		grid-template-columns: 1fr;
		align-items: stretch;
	}

	.pdn-info-flow__arrow {
		display: none;
	}
}

@media (max-width: 640px) {
	.pdn-delivery-card {
		grid-template-columns: 1fr;
	}

	.pdn-delivery-card__actions {
		justify-content: stretch;
	}

	.pdn-delivery-card__actions .msweb-ui.btn {
		width: 100%;
	}

	.pdn-endpoint-card,
	.pdn-endpoint-card__controls {
		grid-template-columns: 1fr;
	}

	.pdn-forms-actions {
		width: 100%;
	}

	.pdn-forms-actions .msweb-ui.btn {
		flex: 1 1 0;
	}

	.pdn-info-modal-root {
		align-items: stretch;
		padding: 0;
	}

	.pdn-info-modal-root .msweb-ui.modal-wide {
		width: 100vw;
		max-width: 100vw;
		max-height: 100vh;
		border-radius: 0;
	}

	.pdn-info-modal-root .msweb-ui.modal-wide>.buttons {
		padding: 12px 16px;
		border-radius: 0;
	}

	.pdn-info-modal-root .msweb-ui.modal-wide>.buttons .msweb-ui.btn {
		min-width: 0;
		flex: 1 1 0;
	}

	.pdn-info-modal {
		padding: 22px 16px 10px;
	}

	.pdn-info-modal__title-row h2 {
		font-size: 25px;
	}

	.pdn-info-notice {
		grid-template-columns: 68px 1fr;
		min-height: 0;
		padding: 12px;
		gap: 10px;
	}

	.pdn-info-notice__shield {
		width: 66px;
		height: 74px;
		margin: 0;
	}

	.pdn-info-notice h3 {
		font-size: 18px;
	}

	.pdn-info-notice__headline {
		flex-wrap: wrap;
		gap: 8px;
	}

	.pdn-info-notice p {
		font-size: 12px;
		line-height: 1.4;
	}

	.pdn-info-system-hero {
		grid-template-columns: 1fr;
		padding: 18px;
	}

	.pdn-info-system-hero--create {
		grid-template-columns: 1fr;
		padding: 16px;
	}

	.pdn-info-system-hero__icon {
		width: 58px;
		height: 58px;
		font-size: 32px;
	}

	.pdn-info-system-hero h3 {
		font-size: 24px;
	}

	.pdn-info-system-hero--create h3 {
		font-size: 22px;
	}

	.pdn-info-modal-root .msweb-ui.modal-wide .pdn-info-modal .pdn-info-system-hero h3 {
		font-size: 24px;
	}

	.pdn-info-system-hero p {
		margin-top: 14px;
		font-size: 14px;
	}

	.pdn-info-system-hero__benefits {
		grid-template-columns: 1fr;
	}

	.pdn-info-type-card {
		grid-template-columns: 1fr;
	}

	.pdn-info-type-card--custom {
		grid-template-rows: auto;
	}

	.pdn-info-type-card__icon {
		width: 46px;
		height: 46px;
	}

	.pdn-info-custom-benefits {
		grid-template-columns: 1fr;
	}

	.pdn-info-custom-route {
		grid-template-columns: 34px 1fr;
	}

	.pdn-info-custom-route em {
		grid-column: 1 / -1;
		width: fit-content;
		max-width: 100%;
	}

	.pdn-info-chat {
		min-height: 320px;
		padding: 12px;
	}

	.pdn-info-chat__user {
		max-width: 88%;
	}

	.pdn-info-form-preview,
	.pdn-info-chat__done {
		width: 100%;
		margin-left: 0;
	}

	.pdn-info-card-caption {
		padding-left: 0;
	}

	.pdn-info-use-card__items {
		grid-template-columns: 1fr;
	}

	.pdn-info-use-item {
		grid-template-columns: 48px 1fr;
	}
}

/* ── Card actions & toolbar ───────────────────────────────────── */
.card-actions {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
}

.card-toolbar {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-top: 12px;
}

/* ── Toolbars ─────────────────────────────────────────────────── */
.toolbar {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-bottom: 12px;
}

.toolbar-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
}

.toolbar-row .msweb-ui.input-wrapper {
	flex: 1;
}

.toolbar--end {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 16px;
}

/* ── Form actions ─────────────────────────────────────────────── */
.form-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 20px;
}

/* ── Tooltip icon ─────────────────────────────────────────────── */
.tooltip-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	font-size: 11px;
	line-height: 1;
	border-radius: 999px;
	cursor: help;
}

/* ── Standalone labels ────────────────────────────────────────── */
.label-block {
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 4px;
}

.label-nowrap {
	font-size: 13px;
	font-weight: 500;
	color: #374151;
	white-space: nowrap;
}

/* ── Widget textarea ──────────────────────────────────────────── */
.widget-field-area {
	width: 100%;
	margin-bottom: 14px;
	resize: vertical;
}

/* ── Tool params ──────────────────────────────────────────────── */
.params-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 8px;
}

.param-row {
	display: grid;
	grid-template-columns: 1.2fr .9fr 1.6fr auto auto;
	gap: 8px;
	align-items: end;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 12px;
	background: #f9fafb;
}

/* ── Page routes ──────────────────────────────────────────────── */
.page-routes-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 16px;
}

.page-route-row {
	display: flex;
	flex-direction: column;
	gap: 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 14px;
	background: #f9fafb;
}

.page-route-top {
	display: grid;
	grid-template-columns: 1fr 1.4fr auto;
	gap: 10px;
	align-items: end;
}

.page-route-field {
	display: flex;
	flex-direction: column;
}

.page-route-del {
	display: flex;
	align-items: flex-end;
	padding-bottom: 1px;
}

.page-route-params {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.page-route-params-heading {
	font-size: 12px;
	font-weight: 600;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 2px;
}

.page-route-param-row {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 8px;
	align-items: center;
}

.page-route-param-name {
	font-family: ui-monospace, monospace;
	font-size: 12px;
	background: #e5e7eb;
	color: #374151;
	border-radius: 4px;
	padding: 4px 8px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.page-route-param-desc {
	flex: 1;
}

.page-route-actions {
	display: flex;
	gap: 8px;
	margin-top: 4px;
}

/* ── Status text (DataTable cells) ───────────────────────────── */
.status-inactive {
	color: #9ca3af;
}

.status-service {
	color: #2563eb;
}

.status-stale {
	color: #d97706;
}

.status-ok {
	color: #16a34a;
}

.text-danger {
	color: #dc2626;
}

.dt-file-sub {
	font-size: 12px;
	color: #6b7280;
}

.dt-url {
	font-family: monospace;
	font-size: 12px;
}

/* ── Audit stats ──────────────────────────────────────────────── */
.stats-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 16px;
}

.stat-card {
	flex: 1;
	min-width: 140px;
	padding: 12px 16px;
}

.stat-value {
	font-size: 1.6rem;
	font-weight: 600;
	line-height: 1;
}

.stat-label {
	font-size: 12px;
	color: #6b7280;
	margin-top: 4px;
}

/* ── Audit table ──────────────────────────────────────────────── */
.audit-wrap {
	overflow-x: auto;
	padding: 0;
}

.audit-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85rem;
}

.audit-th {
	padding: 8px 12px;
	text-align: left;
	border-bottom: 1px solid #e5e7eb;
	white-space: nowrap;
}

.audit-tr {
	border-bottom: 1px solid #e5e7eb;
}

.audit-td {
	padding: 8px 12px;
	vertical-align: top;
}

.audit-td--ok {
	color: #16a34a;
}

.audit-td--error {
	color: #dc2626;
}

/* ── Embed section ────────────────────────────────────────────── */
.token-field {
	margin-bottom: 14px;
}

.embed-help {
	display: inline-block;
	font-size: 12px;
	color: #2563eb;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.card-h3 .pages-settings-help-title {
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.embed-inp {
	width: 100%;
	margin-bottom: 10px;
}

.embed-timezone {
	margin-bottom: 20px;
	max-width: 640px;
}

.embed-timezone .msweb-ui.select-wrapper,
.embed-timezone .select2-container {
	width: 100% !important;
}

.embed-timezone__actions {
	justify-content: flex-start;
	margin-top: 10px;
}

.embed-note {
	font-size: 12px;
	color: #6b7280;
	margin: 14px 0 10px;
}

.embed-mode-ctrl {
	margin-bottom: 20px;
}

.embed-mode-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.embed-mode-row .embed-mode-ctrl {
	margin-bottom: 0;
}

.backend-bar {
	display: flex;
	gap: 4px;
	margin-bottom: 8px;
	border-bottom: 1px solid #e5e7eb;
}

.backend-tab {
	padding: 5px 14px;
	font-size: 13px;
	font-weight: 500;
	border: none;
	background: none;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	color: #6b7280;
	font-family: inherit;
}

.backend-tab.active {
	color: #2563eb;
	border-bottom-color: #2563eb;
}

/* ── Tool modal ───────────────────────────────────────────────── */
.tool-examples-ctrl {
	margin-bottom: 12px;
}

/* ── Диалоги: модалка с перепиской ───────────────────────────── */
.dialog-chat-loading {
	padding: 24px;
	color: #64748b;
	font-size: 14px;
}

.dialog-chat {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
	max-height: 60vh;
	overflow-y: auto;
}

.dialog-msg {
	display: flex;
	flex-direction: column;
	max-width: 80%;
	gap: 3px;
}

.dialog-msg--user {
	align-self: flex-end;
	align-items: flex-end;
}

.dialog-msg--assistant {
	align-self: flex-start;
	align-items: flex-start;
}

.dialog-msg__text {
	padding: 9px 14px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.5;
	white-space: pre-wrap;
	word-break: break-word;
}

.dialog-msg--user .dialog-msg__text {
	background: #2563eb;
	color: #fff;
	border-bottom-right-radius: 4px;
}

.dialog-msg--assistant .dialog-msg__text {
	background: #f1f5f9;
	color: #1e293b;
	border-bottom-left-radius: 4px;
}

.dialog-msg__time {
	font-size: 11px;
	color: #94a3b8;
	padding: 0 4px;
}

.dialog-session-modal-root .msweb-ui.modal-wide {
	height: auto;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
}

.dialog-session-modal-root .msweb-ui.modal-body {
	flex: none;
	padding: 0;
}

/* ── Просмотр диалога: сообщения (ai-chat-* классы) ───────────── */
.dialog-session-modal-root .dialog-chat .ai-chat-msg { display: flex; flex-direction: column; max-width: 80%; }
.dialog-session-modal-root .dialog-chat .ai-chat-msg--user { align-self: flex-end; align-items: flex-end; }
.dialog-session-modal-root .dialog-chat .ai-chat-msg--assistant { align-self: flex-start; align-items: flex-start; }
.dialog-session-modal-root .dialog-chat .ai-chat-msg--system { align-self: center; align-items: center; max-width: 100%; }
.dialog-session-modal-root .dialog-chat .ai-chat-bubble { padding: 9px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; word-break: break-word; }
.dialog-session-modal-root .dialog-chat .ai-chat-msg--user .ai-chat-bubble { background: #2563eb; color: #fff; border-bottom-right-radius: 4px; }
.dialog-session-modal-root .dialog-chat .ai-chat-msg--assistant .ai-chat-bubble { background: #f1f5f9; color: #1e293b; border-bottom-left-radius: 4px; }
.dialog-session-modal-root .dialog-chat .ai-chat-msg--system .ai-chat-bubble { background: #fef9c3; color: #854d0e; font-size: 12px; border-radius: 20px; padding: 5px 14px; }
.dialog-session-modal-root .dialog-chat .ai-chat-bubble p { margin: 0 0 6px; }
.dialog-session-modal-root .dialog-chat .ai-chat-bubble p:last-child { margin: 0; }
.dialog-session-modal-root .dialog-chat .ai-chat-bubble ul,
.dialog-session-modal-root .dialog-chat .ai-chat-bubble ol { padding-left: 18px; margin: 5px 0; }
.dialog-session-modal-root .dialog-chat .ai-chat-bubble li { margin: 2px 0; }
.dialog-session-modal-root .dialog-chat .ai-chat-bubble pre { background: #1e293b; color: #e2e8f0; padding: 10px 12px; border-radius: 8px; overflow-x: auto; font-size: 12px; margin: 6px 0; }
.dialog-session-modal-root .dialog-chat .ai-chat-bubble code { background: #f1f5f9; color: #dc2626; padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.dialog-session-modal-root .dialog-chat .ai-chat-bubble pre code { background: none; color: inherit; padding: 0; }
.dialog-session-modal-root .dialog-chat .ai-chat-time { font-size: 11px; color: #94a3b8; padding: 0 4px; margin-top: 3px; }
.dialog-session-modal-root .dialog-chat .ai-chat-choice-card { border: 1px solid #dce4f5; border-radius: 12px; padding: 11px 12px; margin: 4px 0; background: #f4f7ff; }
.dialog-session-modal-root .dialog-chat .ai-chat-ui-question { font-size: 13px; font-weight: 700; margin-bottom: 8px; color: #1e293b; }
.dialog-session-modal-root .dialog-chat .ai-chat-ui-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.dialog-session-modal-root .dialog-chat .ai-chat-ui-btn { padding: 7px 14px; background: #eff4ff; border: 1px solid #9bb8ff; border-radius: 999px; font-size: 12px; color: #2148b8; cursor: default; }
.dialog-session-modal-root .dialog-chat .ai-chat-ui-radio-group,
.dialog-session-modal-root .dialog-chat .ai-chat-ui-check-group { display: flex; flex-direction: column; gap: 7px; }
.dialog-session-modal-root .dialog-chat .ai-chat-ui-radio-group label,
.dialog-session-modal-root .dialog-chat .ai-chat-ui-check-group label { display: flex; align-items: flex-start; gap: 7px; font-size: 13px; }
.dialog-session-modal-root .dialog-chat .ai-chat-ui-confirm { margin-top: 9px; padding: 6px 14px; background: #e6efff; border: 1px solid #9bb8ff; border-radius: 999px; font-size: 12px; color: #2148b8; cursor: default; }
.dialog-session-modal-root .dialog-chat .ai-chat-msg--assistant.ai-chat-msg--pd-form { width: min(640px, 100%); max-width: 640px; box-sizing: border-box; }
.dialog-session-modal-root .dialog-chat .ai-chat-pd-form { display: flex; flex-direction: column; gap: 10px; }
.dialog-session-modal-root .dialog-chat .ai-chat-msg--pd-form .ai-chat-bubble,
.dialog-session-modal-root .dialog-chat .ai-chat-msg--pd-form .ai-chat-choice-card { width: 100%; box-sizing: border-box; border-radius: 14px; padding: 16px; background: #f4f7ff; border: 1px solid #dce4f5; }
.dialog-session-modal-root .dialog-chat .ai-chat-pd-field { display: flex; flex-direction: column; gap: 4px; }
.dialog-session-modal-root .dialog-chat .ai-chat-pd-label { font-size: 12px; font-weight: 600; color: #1e293b; }
.dialog-session-modal-root .dialog-chat .ai-chat-pd-field .input-wrapper,
.dialog-session-modal-root .dialog-chat .ai-chat-pd-field .textarea-component { width: 100%; }
.dialog-session-modal-root .dialog-chat .ai-chat-pd-field .input-wrapper input,
.dialog-session-modal-root .dialog-chat .ai-chat-pd-field .textarea-component textarea { width: 100%; box-sizing: border-box; border: 1px solid #d9e2f2; border-radius: 8px; background: #fff; color: #1e293b; font: inherit; font-size: 13px; padding: 9px 11px; }
.dialog-session-modal-root .dialog-chat .ai-chat-pd-field .textarea-component textarea { min-height: 108px; resize: vertical; }
.dialog-session-modal-root .dialog-chat .ai-chat-pd-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.4; color: #64748b; cursor: pointer; }
.dialog-session-modal-root .dialog-chat .ai-chat-pd-consent input { flex: 0 0 auto; width: 16px; height: 16px; margin: 1px 0 0; accent-color: #2563eb; }
.dialog-session-modal-root .dialog-chat .ai-chat-pd-consent a { color: #2563eb; text-decoration: underline; text-underline-offset: 2px; }
.dialog-session-modal-root .dialog-chat .ai-chat-pd-submit-btn { margin-top: 4px; padding: 8px 14px; background: #2563eb; color: #fff; border: none; border-radius: 14px; font-size: 12px; font-family: inherit; cursor: pointer; }
.dialog-session-modal-root .dialog-chat .ai-chat-bubble[data-answered] .ai-chat-pd-submit-btn { opacity: 0.55; pointer-events: none; cursor: default; }
.dialog-session-modal-root .dialog-chat .ai-chat-pd-submit-btn--secondary { opacity: 1; pointer-events: auto; cursor: pointer; background: #7da3f7; }
.dialog-session-modal-root .dialog-chat .ai-table-wrap { overflow-x: auto; margin: 8px 0; }
.dialog-session-modal-root .dialog-chat .ai-table-wrap table { border-collapse: collapse; font-size: 12px; width: 100%; }
.dialog-session-modal-root .dialog-chat .ai-table-wrap td { border: 1px solid #dfe6f2; padding: 7px 9px; }
.dialog-session-modal-root .dialog-chat .ai-table-wrap tr:first-child td { background: #f3f6fb; font-weight: 700; }
[data-theme="dark"] .dialog-session-modal-root .dialog-chat .ai-chat-msg--assistant .ai-chat-bubble { background: #1e293b; color: #e2e8f0; }
[data-theme="dark"] .dialog-session-modal-root .dialog-chat .ai-chat-msg--system .ai-chat-bubble { background: #2a1f00; color: #fde68a; }
[data-theme="dark"] .dialog-session-modal-root .dialog-chat .ai-chat-choice-card { background: #1a2744; border-color: #334155; }
[data-theme="dark"] .dialog-session-modal-root .dialog-chat .ai-chat-ui-question { color: #e2e8f0; }
[data-theme="dark"] .dialog-session-modal-root .dialog-chat .ai-chat-msg--pd-form .ai-chat-choice-card { background: #1a2744; border-color: #334155; }
[data-theme="dark"] .dialog-session-modal-root .dialog-chat .ai-chat-pd-label { color: #e2e8f0; }
[data-theme="dark"] .dialog-session-modal-root .dialog-chat .ai-chat-pd-field .input-wrapper input,
[data-theme="dark"] .dialog-session-modal-root .dialog-chat .ai-chat-pd-field .textarea-component textarea { background: #111827; border-color: #334155; color: #e2e8f0; }
[data-theme="dark"] .dialog-session-modal-root .dialog-chat .ai-chat-pd-consent { color: #94a3b8; }
[data-theme="dark"] .dialog-session-modal-root .dialog-chat .ai-table-wrap td { border-color: #334155; }
[data-theme="dark"] .dialog-session-modal-root .dialog-chat .ai-table-wrap tr:first-child td { background: #1e293b; }

/* ── Заявки: раскрываемые данные формы ───────────────────────── */
.submission-data {
	font-size: 13px;
}

.submission-data summary {
	cursor: pointer;
	color: #2563eb;
	user-select: none;
}

.submission-data__body {
	margin-top: 6px;
	display: flex;
	flex-direction: column;
	gap: 3px;
	color: #334155;
}

.submission-status {
	display: inline-block;
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 999px;
	font-weight: 500;
}

.submission-status.status-ok      { background: #dcfce7; color: #166534; }
.submission-status.status-err     { background: #fee2e2; color: #991b1b; }
.submission-status.status-neutral { background: #f1f5f9; color: #475569; }

/* ── Dark theme (auto via data-theme="dark") ─────────────────── */
[data-theme="dark"] body {
	background: #0b1220;
	color: #dbe5f3;
}

[data-theme="dark"] #impersonation-bar {
	background: #3b2f0b;
	border-bottom-color: #7c5d11;
	color: #f8e7b5;
}

[data-theme="dark"] #email-verification-bar {
	background: #3b2f0b;
	border-bottom-color: #7c5d11;
	color: #f8e7b5;
}

[data-theme="dark"] #impersonation-bar strong {
	color: #fde68a;
}

[data-theme="dark"] .pdn-usage-count-btn {
	color: #60a5fa;
}

[data-theme="dark"] .pdn-usage-count-btn:hover {
	color: #93c5fd;
}

[data-theme="dark"] .pdn-usage-item {
	background: #111827;
	border-color: #243244;
}

[data-theme="dark"] .pdn-usage-item__title {
	color: #e5eefb;
}

[data-theme="dark"] .pdn-usage-item__meta {
	color: #94a3b8;
}

[data-theme="dark"] .auth-card,
[data-theme="dark"] .card,
[data-theme="dark"] .dt-wrap,
[data-theme="dark"] .modal-small,
[data-theme="dark"] .msweb-ui.modal-wide,
[data-theme="dark"] .msweb-ui.modal-full,
[data-theme="dark"] .doc-diff-view__editor-wrap,
[data-theme="dark"] .monaco-markdown-editor__host {
	background: #0f172a;
	border-color: #243244;
	color: #dbe5f3;
}

[data-theme="dark"] .app-title,
[data-theme="dark"] .sidebar-user__name,
[data-theme="dark"] .card-title,
[data-theme="dark"] .page-title,
[data-theme="dark"] .page-403__title,
[data-theme="dark"] .msweb-ui.modal-small>h3,
[data-theme="dark"] .msweb-ui.modal-wide>h3,
[data-theme="dark"] .msweb-ui.modal-full>h3,
[data-theme="dark"] .label-nowrap,
[data-theme="dark"] .doc-editor-title-input input,
[data-theme="dark"] .doc-editor-title-row--header .doc-editor-title-ext {
	color: #f5f9ff;
}

[data-theme="dark"] .sidebar-user__meta,
[data-theme="dark"] .auth-sub,
[data-theme="dark"] .card-sub,
[data-theme="dark"] .page-desc,
[data-theme="dark"] .card-desc,
[data-theme="dark"] .page-note,
[data-theme="dark"] .dt-file-sub,
[data-theme="dark"] .doc-editor-title-ext,
[data-theme="dark"] .page-403,
[data-theme="dark"] .stat-label {
	color: #94a3b8;
}

[data-theme="dark"] .sidebar-user__plan {
	background: #172a46;
	color: #93c5fd;
}

[data-theme="dark"] .app-page-header {
	border-color: #243244;
	background:
		radial-gradient(circle at top left, rgba(96, 165, 250, 0.16), transparent 30%),
		linear-gradient(135deg, #0f172a 0%, #111c30 55%, #0b1220 100%);
	box-shadow: 0 10px 24px rgba(2, 6, 23, 0.35);
}

[data-theme="dark"] .app-page-header__badge {
	background: rgba(96, 165, 250, 0.14);
	color: #93c5fd;
}

[data-theme="dark"] .app-page-header__title,
[data-theme="dark"] .app-page-header__metric-value {
	color: #f5f9ff;
}

[data-theme="dark"] .app-page-header__subtitle,
[data-theme="dark"] .app-page-header__metric-label,
[data-theme="dark"] .app-page-header__metric-meta {
	color: #94a3b8;
}

[data-theme="dark"] .app-page-header__metric-action {
	border-color: #243244;
	background: rgba(15, 23, 42, 0.9);
	color: #93c5fd;
}

[data-theme="dark"] .app-page-header__metric-action:hover:not(:disabled) {
	background: #172a46;
	border-color: #365173;
}

[data-theme="dark"] .app-page-header__metric-action:disabled {
	opacity: 0.45;
}

[data-theme="dark"] .app-page-header__metric {
	border-color: #243244;
	background: rgba(15, 23, 42, 0.82);
	box-shadow: 0 6px 18px rgba(2, 6, 23, 0.22);
}

[data-theme="dark"] .app-page-header__metric-icon {
	background: rgba(96, 165, 250, 0.14);
	color: #93c5fd;
}

[data-theme="dark"] .app-page-header__metric[data-tone="success"] .app-page-header__metric-icon {
	background: rgba(34, 197, 94, 0.16);
	color: #4ade80;
}

[data-theme="dark"] .app-page-header__metric[data-tone="warning"] .app-page-header__metric-icon {
	background: rgba(245, 158, 11, 0.18);
	color: #fbbf24;
}

[data-theme="dark"] .app-page-header__metric[data-tone="muted"] .app-page-header__metric-icon {
	background: rgba(100, 116, 139, 0.22);
	color: #cbd5e1;
}

[data-theme="dark"] .sidebar-brand,
[data-theme="dark"] .sidebar-user {
	border-color: #243244;
}

[data-theme="dark"] .tabs-header,
[data-theme="dark"] .doc-editor-modebar,
[data-theme="dark"] .backend-bar,
[data-theme="dark"] .msweb-ui.modal-wide>h3,
[data-theme="dark"] .msweb-ui.modal-full>h3,
[data-theme="dark"] .msweb-ui.modal-wide .buttons,
[data-theme="dark"] .msweb-ui.modal-full .buttons,
[data-theme="dark"] .audit-th,
[data-theme="dark"] .audit-tr,
[data-theme="dark"] .doc-editor-preview hr {
	border-color: #243244;
}

[data-theme="dark"] .msweb-ui.modal-wide>.buttons,
[data-theme="dark"] .msweb-ui.modal-full>.buttons,
[data-theme="dark"] .msweb-ui.modal-body {
	background: #0f172a;
}

[data-theme="dark"] .pdn-info-modal-root .msweb-ui.modal-wide,
[data-theme="dark"] .pdn-info-modal-root .msweb-ui.modal-body,
[data-theme="dark"] .pdn-info-modal-root .msweb-ui.modal-wide>.buttons {
	background: #0f172a;
	color: #dbe5f3;
}

[data-theme="dark"] .pdn-info-modal-root .msweb-ui.modal-wide {
	border-color: #26364f;
	box-shadow: 0 26px 80px rgba(0, 0, 0, .56);
}

[data-theme="dark"] .pdn-info-modal {
	color: #dbe5f3;
	background:
		radial-gradient(circle at 86% 8%, rgba(96, 165, 250, .14), transparent 28%),
		linear-gradient(180deg, #0f172a 0%, #111c30 58%, #0b1220 100%);
}

[data-theme="dark"] .pdn-info-modal-root .msweb-ui.modal-wide .pdn-info-modal h3,
[data-theme="dark"] .pdn-info-card-title h3,
[data-theme="dark"] .pdn-info-flow h3,
[data-theme="dark"] .pdn-info-type-card__heading h3 {
	color: #dbeafe;
}

[data-theme="dark"] .pdn-info-notice {
	border-color: #1d4ed8;
	background:
		radial-gradient(circle at 19% 15%, rgba(59, 130, 246, .22), transparent 24%),
		radial-gradient(circle at 72% 8%, rgba(34, 197, 94, .14), transparent 25%),
		linear-gradient(135deg, #10213b 0%, #0f172a 48%, #13233a 100%);
	box-shadow: inset 0 0 52px rgba(37, 99, 235, .12);
}

[data-theme="dark"] .pdn-info-notice::before {
	opacity: .48;
}

[data-theme="dark"] .pdn-info-notice__law {
	border-color: #315fbb;
	background: rgba(30, 58, 138, .38);
	color: #bfdbfe;
}

[data-theme="dark"] .pdn-info-notice h3 {
	color: #93c5fd;
}

[data-theme="dark"] .pdn-info-notice p,
[data-theme="dark"] .pdn-info-system-hero p,
[data-theme="dark"] .pdn-info-type-card p,
[data-theme="dark"] .pdn-info-card-caption,
[data-theme="dark"] .pdn-info-use-item p,
[data-theme="dark"] .pdn-info-flow__step p {
	color: #a8b7cc;
}

[data-theme="dark"] .pdn-info-system-hero {
	border-color: #1f7a45;
	background:
		radial-gradient(circle at 76% 10%, rgba(34, 197, 94, .14), transparent 28%),
		linear-gradient(135deg, #0f241b 0%, #0f172a 54%, #0c1f17 100%);
	box-shadow: inset 0 0 44px rgba(34, 197, 94, .08);
}

[data-theme="dark"] .pdn-info-system-hero__icon,
[data-theme="dark"] .pdn-info-system-hero__benefits span {
	border-color: #1f7a45;
	background: rgba(20, 83, 45, .34);
	color: #86efac;
}

[data-theme="dark"] .pdn-info-system-hero__badges span {
	background: rgba(34, 197, 94, .18);
	color: #86efac;
}

[data-theme="dark"] .pdn-info-system-hero__badges span:nth-child(n + 2) {
	background: rgba(37, 99, 235, .22);
	color: #93c5fd;
}

[data-theme="dark"] .pdn-info-modal-root .msweb-ui.modal-wide .pdn-info-modal .pdn-info-system-hero h3 {
	color: #bbf7d0;
}

[data-theme="dark"] .pdn-info-system-hero--create h3,
[data-theme="dark"] .pdn-create-form-modal-root .msweb-ui.modal-wide .pdn-info-system-hero--create h3 {
	color: #bbf7d0;
}

[data-theme="dark"] .pdn-info-chips.pdn-info-system-hero__chips span {
	border-color: #238452;
	background: rgba(20, 83, 45, .26);
	color: #bbf7d0;
}

[data-theme="dark"] .pdn-info-system-hero__note {
	border-color: #238452;
	background: rgba(20, 83, 45, .28);
	color: #bbf7d0;
}

[data-theme="dark"] .pdn-info-system-hero__note span {
	background: #22c55e;
	color: #052e16;
}

[data-theme="dark"] .pdn-info-system-hero__benefits {
	border-left-color: #1f5134;
}

[data-theme="dark"] .pdn-info-system-hero__benefits div,
[data-theme="dark"] .pdn-info-chat-card,
[data-theme="dark"] .pdn-info-type-card,
[data-theme="dark"] .pdn-info-flow,
[data-theme="dark"] .pdn-info-use-card,
[data-theme="dark"] .pdn-info-use-item {
	border-color: #26364f;
	background: rgba(15, 23, 42, .82);
	box-shadow: 0 18px 34px rgba(0, 0, 0, .18);
}

[data-theme="dark"] .pdn-info-system-hero__benefits div div {
	background: transparent;
	box-shadow: none;
}

[data-theme="dark"] .pdn-info-system-hero__benefits strong,
[data-theme="dark"] .pdn-info-use-item strong {
	color: #e5eefb;
}

[data-theme="dark"] .pdn-info-chat {
	background: linear-gradient(135deg, #0d1b2e 0%, #13233a 100%);
}

[data-theme="dark"] .pdn-info-card-title__icon {
	border-color: #1e3a8a;
	background: rgba(37, 99, 235, .18);
	color: #93c5fd;
}

[data-theme="dark"] .pdn-info-chat__user {
	background: #1e3a5f;
	color: #dbeafe;
}

[data-theme="dark"] .pdn-info-chat__bubble,
[data-theme="dark"] .pdn-info-form-preview,
[data-theme="dark"] .pdn-info-chat__done {
	border-color: #2a3d56;
	background: rgba(15, 23, 42, .94);
	color: #dbe5f3;
	box-shadow: 0 16px 32px rgba(0, 0, 0, .28);
}

[data-theme="dark"] .pdn-info-form-preview strong,
[data-theme="dark"] .pdn-info-form-preview label {
	color: #e5eefb;
}

[data-theme="dark"] .pdn-info-field {
	border-color: #334155;
	background: #111827;
	color: #cbd5e1;
}

[data-theme="dark"] .pdn-info-chat__user span,
[data-theme="dark"] .pdn-info-chat__bubble span,
[data-theme="dark"] .pdn-info-chat__done em {
	color: #94a3b8;
}

[data-theme="dark"] .pdn-info-type-card--custom {
	border-color: #5b3db7;
	background:
		radial-gradient(circle at 7% 10%, rgba(124, 58, 237, .18), transparent 34%),
		linear-gradient(135deg, #17112a 0%, #0f172a 100%);
}

[data-theme="dark"] .pdn-info-type-card--custom .pdn-info-type-card__icon,
[data-theme="dark"] .pdn-info-type-card--custom .pdn-info-type-card__heading span,
[data-theme="dark"] .pdn-info-custom-route span,
[data-theme="dark"] .pdn-info-custom-benefits span {
	border-color: #5b3db7;
	background: rgba(91, 61, 183, .24);
	color: #c4b5fd;
}

[data-theme="dark"] .pdn-info-chips span {
	border-color: #334155;
	background: rgba(15, 23, 42, .84);
	color: #dbe5f3;
}

[data-theme="dark"] .pdn-info-type-card--custom .pdn-info-chips span::before {
	color: #a78bfa;
}

[data-theme="dark"] .pdn-info-custom-route {
	border-color: #5b3db7;
	background: rgba(23, 17, 42, .72);
	color: #c4b5fd;
}

[data-theme="dark"] .pdn-info-custom-route strong,
[data-theme="dark"] .pdn-info-custom-benefits strong {
	color: #ede9fe;
}

[data-theme="dark"] .pdn-info-custom-route em {
	background: rgba(91, 61, 183, .22);
	color: #c4b5fd;
}

[data-theme="dark"] .pdn-info-custom-benefits div {
	background: rgba(15, 23, 42, .88);
	box-shadow: 0 14px 28px rgba(0, 0, 0, .22);
}

[data-theme="dark"] .pdn-info-type-card__note {
	border-color: #1e3a8a;
	background: rgba(15, 35, 68, .82);
	color: #cbd5e1;
}

[data-theme="dark"] .pdn-info-type-card__note span {
	background: rgba(37, 99, 235, .2);
	color: #93c5fd;
}

[data-theme="dark"] .pdn-info-type-card__note strong {
	color: #93c5fd;
}

[data-theme="dark"] .pdn-info-flow__step {
	border-color: #26364f;
	background: #0d1b2e;
}

[data-theme="dark"] .pdn-info-flow__icon {
	border-color: #1e3a8a;
	background: rgba(37, 99, 235, .18);
	color: #93c5fd;
}

[data-theme="dark"] .pdn-info-flow__num {
	background: #2563eb;
	color: #fff;
}

[data-theme="dark"] .pdn-info-flow__arrow {
	color: #60a5fa;
}

[data-theme="dark"] .tab-btn,
[data-theme="dark"] .doc-editor-mode,
[data-theme="dark"] .backend-tab {
	color: #94a3b8;
}

[data-theme="dark"] .tab-btn:hover,
[data-theme="dark"] .doc-editor-mode:hover,
[data-theme="dark"] .backend-tab:hover {
	color: #dbe5f3;
}

[data-theme="dark"] .tab-btn.active,
[data-theme="dark"] .doc-editor-mode.active,
[data-theme="dark"] .backend-tab.active {
	color: #60a5fa;
	border-bottom-color: #60a5fa;
}

[data-theme="dark"] .msweb-ui.tabs-container > .tab-content {
	background: #0e1728;
}

[data-theme="dark"] .doc-editor-mode--ai,
[data-theme="dark"] .embed-help {
	color: #93c5fd;
}

[data-theme="dark"] .doc-editor-preview {
	color: #dbe5f3;
}

[data-theme="dark"] .doc-editor-preview blockquote {
	border-left-color: #334155;
	color: #94a3b8;
}

[data-theme="dark"] .doc-editor-preview code {
	background: #1e293b;
	color: #dbe5f3;
}

[data-theme="dark"] pre.example-code,
[data-theme="dark"] .token-display,
[data-theme="dark"] .param-row,
[data-theme="dark"] .page-route-row {
	background: #111f34;
	border-color: #334155;
	color: #dbe5f3;
}

[data-theme="dark"] .page-route-param-name {
	background: #1e3a5f;
	color: #93c5fd;
}

[data-theme="dark"] .page-route-params-heading {
	color: #64748b;
}

[data-theme="dark"] .audit-td {
	color: #dbe5f3;
}

[data-theme="dark"] .audit-td--ok {
	color: #4ade80;
}

[data-theme="dark"] .audit-td--error,
[data-theme="dark"] .text-danger {
	color: #f87171;
}

[data-theme="dark"] .status-inactive {
	color: #64748b;
}

[data-theme="dark"] .status-service {
	color: #60a5fa;
}

[data-theme="dark"] .status-stale {
	color: #f59e0b;
}

[data-theme="dark"] .status-ok {
	color: #4ade80;
}

[data-theme="dark"] .msweb-ui.input-wrapper input,
[data-theme="dark"] .msweb-ui.input-wrapper textarea,
[data-theme="dark"] .native-select {
	background: #0b1628;
	color: #e2e8f0;
	border-color: #334155;
}

[data-theme="dark"] div.dt-container .dt-length select,
.theme-dark div.dt-container .dt-length select {
	background: #223554;
	color: #e2e8f0;
	border-color: #3b557c;
	color-scheme: dark;
}

[data-theme="dark"] div.dt-container .dt-length select option,
[data-theme="dark"] div.dt-container .dt-length select optgroup,
.theme-dark div.dt-container .dt-length select option,
.theme-dark div.dt-container .dt-length select optgroup {
	background: #0f172a;
	color: #e2e8f0;
}

[data-theme="dark"] .msweb-ui.input-wrapper input:focus,
[data-theme="dark"] .msweb-ui.input-wrapper textarea:focus,
[data-theme="dark"] .native-select:focus {
	border-color: #60a5fa;
}

[data-theme="dark"] .form-group>label,
[data-theme="dark"] .checkbox-wrapper,
[data-theme="dark"] .label-block {
	color: #cbd5e1;
}

[data-theme="dark"] .tooltip-icon {
	background: #1e293b;
	color: #bfdbfe;
}

[data-theme="dark"] table.dataTable.display tbody tr:hover {
	background: #111f34;
}

[data-theme="dark"] .auth-tabs,
[data-theme="dark"] .auth-tab,
[data-theme="dark"] .auth-tab.active {
	border-color: #334155;
}

[data-theme="dark"] .auth-tab {
	color: #94a3b8;
}

[data-theme="dark"] .auth-tab.active {
	color: #60a5fa;
}

[data-theme="dark"] .loading,
[data-theme="dark"] .empty-state {
	color: #64748b;
}

/* DataTables dark theme */
.theme-dark,
[data-theme="dark"] {
	--dt-row-odd: #1e2c3c;
	--dt-row-even: #161e2c;
	--dt-row-hover: rgba(255, 255, 255, 0.05);
	--dt-row-selected: #1e40af;
	--dt-html-background: #1a1a2e;
	--dt-border-color: #334155;
	--dtfc_background: #1a1a2e;
	--dtfc-thead-cell_background: #0f172a;
	--dtfc-tbody-cell_background: #1a1a2e;
	--dtcc-dropdown_background: #0f172a;
	--dtcc-search-input_background-color: #0f172a;
	--dtcc-search-input_background: #0f172a;
}

/* Striping через nth-child — работает независимо от версии DataTables */
[data-theme="dark"] table.dataTable tbody tr:nth-child(odd)>td,
[data-theme="dark"] table.dataTable tbody tr:nth-child(odd)>th,
.theme-dark table.dataTable tbody tr:nth-child(odd)>td,
.theme-dark table.dataTable tbody tr:nth-child(odd)>th {
	background-color: #1e2c3c !important;
}

[data-theme="dark"] table.dataTable tbody tr:nth-child(even)>td,
[data-theme="dark"] table.dataTable tbody tr:nth-child(even)>th,
.theme-dark table.dataTable tbody tr:nth-child(even)>td,
.theme-dark table.dataTable tbody tr:nth-child(even)>th {
	background-color: #161e2c !important;
}

[data-theme="dark"] table.dataTable tbody tr:hover>td,
[data-theme="dark"] table.dataTable tbody tr:hover>th,
.theme-dark table.dataTable tbody tr:hover>td,
.theme-dark table.dataTable tbody tr:hover>th {
	background-color: #2d4460 !important;
}

.theme-dark div.dt-container .dt-length,
.theme-dark div.dt-container .dt-search,
.theme-dark div.dt-container .dt-info,
.theme-dark div.dt-container .dt-paging {
	color: #cbd5e1;
}

[data-theme="dark"] .dt-topbar .dt-controls-length span {
	color: #cbd5e1;
}

.theme-dark div.dt-container .dt-search input {
	background: #0f172a;
	color: #e2e8f0;
	border-color: #334155;
}

.theme-dark div.dt-container .dt-paging .dt-paging-button {
	background: #0f172a;
	color: #94a3b8 !important;
	border: 1px solid #334155;
}

.theme-dark div.dt-container .dt-paging .dt-paging-button.current {
	background: #172a46;
	color: #93c5fd !important;
	border-color: #3b82f6;
}

/* ═══════════════════════════════════════════════════════════════
   Tariff module — My Plan page
   ═══════════════════════════════════════════════════════════════ */

.my-plan-page {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
}

.my-plan__section {
	background: var(--bg-card, #fff);
	border: 1px solid var(--border, #e2e8f0);
	border-radius: 10px;
	padding: 24px;
}

.my-plan__section h3 {
	margin: 0 0 16px;
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-primary, #1e293b);
}

.my-plan__section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.my-plan__section-header h3 {
	margin: 0;
}

.my-plan__usage-subheading {
	margin: 20px 0 12px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-primary, #1e293b);
}

/* Current plan — icon + content layout */
.my-plan__current-inner {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.my-plan__current-icon {
	width: 60px;
	height: 60px;
	border-radius: 14px;
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
	flex-shrink: 0;
}

.my-plan__current-content {
	flex: 1 1 auto;
	min-width: 0;
}

.my-plan__plan-name-inline {
	color: #3b82f6;
	font-weight: 600;
}

.my-plan__status-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: .75rem;
	font-weight: 600;
	white-space: nowrap;
}

.my-plan__status-badge.is-active {
	background: rgba(34, 197, 94, .12);
	color: #15803d;
}

.my-plan__status-badge.is-inactive {
	background: rgba(100, 116, 139, .12);
	color: #475569;
}

/* Current plan info grid */
.my-plan__info-grid {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 8px 24px;
	margin-bottom: 16px;
}

.my-plan__info-row {
	display: contents;
}

.my-plan__info-label {
	color: var(--text-secondary, #64748b);
	font-size: .875rem;
	white-space: nowrap;
}

.my-plan__info-value {
	font-size: .875rem;
	font-weight: 500;
	color: var(--text-primary, #1e293b);
}

/* Usage grid */
.my-plan__usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 144px;
    gap: 16px;
}



.my-plan__usage--r-tokens .my-plan__usage-grid--r-tokens {
	grid-auto-rows: 114px;
}

.my-plan__usage-card {
	background: var(--bg-subtle, #f8fafc);
	border: 1px solid var(--border, #e2e8f0);
	border-radius: 8px;
	padding: 12px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	overflow: hidden;
}

.my-plan__usage-header {
	display: flex;
	align-items: center;
	gap: 10px;
}

.my-plan__usage-name {
	font-size: .75rem;
	font-weight: 600;
	color: var(--text-secondary, #64748b);
	text-transform: uppercase;
	letter-spacing: .03em;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.my-plan__usage-bar-wrap {
	height: 6px;
	background: var(--border, #e2e8f0);
	border-radius: 3px;
	overflow: hidden;
}

.my-plan__usage-bar {
	height: 100%;
	background: #3b82f6;
	border-radius: 3px;
	transition: width .3s ease;
}

.my-plan__usage-bar.warning {
	background: #f59e0b;
}

.my-plan__usage-bar.danger {
	background: #ef4444;
}

.my-plan__usage-text {
	font-size: .875rem;
	font-weight: 500;
	color: var(--text-primary, #1e293b);
}

.my-plan__usage-metric {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
}

.my-plan__usage-value,
.my-plan__usage-remaining {
	font-size: 1.25rem;
	font-weight: 700;
	color: #3b82f6;
}


/* Icon in usage cards */
.my-plan__usage-card-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: .9rem;
	background: rgba(59, 130, 246, .1);
	color: #3b82f6;
	flex-shrink: 0;
}

.my-plan__usage-reset {
	font-size: .75rem;
	color: var(--text-secondary, #64748b);
}

.my-plan__usage-override {
	font-size: .75rem;
	color: #f59e0b;
}

.my-plan__usage-bool {
	font-size: .875rem;
	font-weight: 600;
}

.my-plan__usage-bool.available {
	color: #22c55e;
}

.my-plan__usage-bool.unavailable {
	color: #ef4444;
}

/* Plans grid */
.my-plan__plans-grid {
	display: block;
}

.my-plan__subscription-actions-row {
	display: flex;
	justify-content: flex-start;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 16px;
}

/* Payments table */
.payments-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .875rem;
}

.payments-table th,
.payments-table td {
	padding: 8px 12px;
	text-align: left;
	border-bottom: 1px solid var(--border, #e2e8f0);
}

.payments-table th {
	font-weight: 600;
	color: var(--text-secondary, #64748b);
	background: var(--bg-subtle, #f8fafc);
}

/* Dark theme adjustments */
.theme-dark .my-plan__section {
	background: #1e293b;
	border-color: #334155;
}

.theme-dark .my-plan__section h3 {
	color: #e2e8f0;
}

.theme-dark .my-plan__info-label {
	color: #94a3b8;
}

.theme-dark .my-plan__info-value {
	color: #e2e8f0;
}

.theme-dark .my-plan__usage-card {
	background: #0f172a;
	border-color: #334155;
}

.theme-dark .my-plan__usage-name {
	color: #94a3b8;
}

.theme-dark .my-plan__usage-text {
	color: #e2e8f0;
}

.theme-dark .my-plan__usage-remaining {
	color: #60a5fa;
}

.theme-dark .my-plan__usage-bar-wrap {
	background: #334155;
}

.theme-dark .my-plan__usage-reset {
	color: #64748b;
}

.theme-dark .my-plan__usage-card-icon {
	background: rgba(59, 130, 246, .15);
	color: #60a5fa;
}

.theme-dark .my-plan__status-badge.is-active {
	background: rgba(34, 197, 94, .15);
	color: #4ade80;
}

.theme-dark .my-plan__status-badge.is-inactive {
	background: rgba(100, 116, 139, .15);
	color: #94a3b8;
}

.theme-dark .payments-table th {
	background: #0f172a;
	color: #94a3b8;
	border-color: #334155;
}

.theme-dark .payments-table td {
	border-color: #334155;
	color: #e2e8f0;
}

/* ═══════════════════════════════════════════════════════════════
   Admin — Plans page
   ═══════════════════════════════════════════════════════════════ */

.plan-form,
.billing-period-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.msweb-ui.plan-form-modal .msweb-ui.modal-body {
	overflow-y: auto;
	padding: 0 20px 14px;
}

.plan-form {
	padding-bottom: 8px;
}

.plan-form .form-group {
	margin-bottom: 0;
}

.plan-form__section {
	background: var(--bg-subtle, #f8fafc);
	border: 1px solid var(--border, #e2e8f0);
	border-radius: 12px;
	padding: 14px;
}

.plan-form__section h4 {
	margin: 0 0 12px;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--text-primary, #0f172a);
}

.plan-form__grid {
	display: grid;
	gap: 12px;
}

.plan-form__grid--basic {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan-form__checks {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px 18px;
}

.plan-form__checks .checkbox-wrapper {
	min-height: 32px;
}

.plan-form__grid--limits {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.plan-form__feature-row,
.plan-form__price-row {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) auto auto;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
}

.plan-form__feature-row--boolean {
	display: block;
}

.plan-form__feature-label,
.plan-form__price-label {
	color: var(--text-primary, #1f2937);
	font-weight: 500;
}

.plan-form__feature-unit {
	color: var(--text-secondary, #64748b);
	font-size: 0.82rem;
	white-space: nowrap;
}

.plan-form__price-row .checkbox-wrapper {
	justify-self: end;
}

.plan-form .modal-footer-btns {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding-top: 12px;
	margin-top: 4px;
	border-top: 1px solid var(--border, #e2e8f0);
}

@media (max-width: 1100px) {
	.plan-form__grid--limits {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 860px) {

	.plan-form__grid--basic,
	.plan-form__checks,
	.plan-form__feature-row,
	.plan-form__price-row {
		grid-template-columns: 1fr;
	}

	.plan-form__feature-unit,
	.plan-form__price-row .checkbox-wrapper {
		justify-self: start;
	}
}

.plan-form__section-title {
	font-size: .8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--text-secondary, #64748b);
	margin: 8px 0 4px;
	padding-top: 8px;
	border-top: 1px solid var(--border, #e2e8f0);
}

.theme-dark .plan-form__section-title {
	color: #94a3b8;
	border-color: #334155;
}

.theme-dark .plan-form__section {
	background: #0f172a;
	border-color: #334155;
}

.theme-dark .plan-form__section h4,
.theme-dark .plan-form__feature-label,
.theme-dark .plan-form__price-label {
	color: #e2e8f0;
}

.theme-dark .plan-form__feature-unit {
	color: #94a3b8;
}

.theme-dark .plan-form .modal-footer-btns {
	border-color: #334155;
}

/* Promo form helpers */
.promo-form__duration-row {
	display: flex;
	gap: 8px;
	align-items: center;
}

.promo-form__radio-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 4px;
}

.promo-form__radio-option {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.9rem;
	cursor: pointer;
}

/* Limit override modal */
.limit-override-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* User plan modal */
.user-plan-modal {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.user-plan-modal__section {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.user-plan-modal__section h4 {
	margin: 0;
	font-size: .875rem;
	font-weight: 600;
	color: var(--text-secondary, #64748b);
	text-transform: uppercase;
	letter-spacing: .03em;
}

.theme-dark .user-plan-modal__section h4 {
	color: #94a3b8;
}

/* Override limits table in admin user modal */
.limits-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .82rem;
}

.limits-table th,
.limits-table td {
	padding: 6px 10px;
	text-align: left;
	border-bottom: 1px solid var(--border, #e2e8f0);
}

.limits-table th {
	font-weight: 600;
	color: var(--text-secondary, #64748b);
	background: var(--bg-subtle, #f8fafc);
}

.theme-dark .limits-table th {
	background: #0f172a;
	color: #94a3b8;
	border-color: #334155;
}

.theme-dark .limits-table td {
	border-color: #334155;
	color: #e2e8f0;
}

:root .msweb-toast-container--top-right,
:root .msweb-toast-container--top-left {
	top: var(--app-header-bottom, 16px);
	filter: drop-shadow(0 8px 24px rgba(15, 23, 42, 0.35));
}

@keyframes toast-edge-pulse {

	0%,
	100% {
		box-shadow: 0 0 0 0px transparent, 0 8px 24px rgba(15, 23, 42, 0.12);
	}

	50% {
		box-shadow: 0 0 0 4px var(--toast-glow, rgba(100, 100, 100, 0.25)), 0 8px 24px rgba(15, 23, 42, 0.20);
	}
}

:root .msweb-toast {
	box-shadow: 0 4px 6px rgba(15, 23, 42, 0.18), 0 12px 36px rgba(15, 23, 42, 0.38);
}

:root .msweb-toast.is-visible {
	animation: toast-edge-pulse 0.9s ease-in-out infinite;
}

:root .msweb-toast--info {
	--toast-glow: rgba(59, 130, 246, 0.45);
}

:root .msweb-toast--success {
	--toast-glow: rgba(34, 197, 94, 0.45);
}

:root .msweb-toast--warning {
	--toast-glow: rgba(245, 158, 11, 0.45);
}

:root .msweb-toast--error {
	--toast-glow: rgba(239, 68, 68, 0.45);
}

.theme-dark .msweb-toast,
[data-theme="dark"] .msweb-toast {
	box-shadow: 0 4px 6px rgba(2, 6, 23, 0.3), 0 12px 36px rgba(2, 6, 23, 0.5);
}

[data-theme="dark"] .dialog-msg--user .dialog-msg__text {
	background: #1d4ed8;
}

[data-theme="dark"] .dialog-msg--assistant .dialog-msg__text {
	background: #1e293b;
	color: #dbe5f3;
}

[data-theme="dark"] .submission-data summary { color: #60a5fa; }
[data-theme="dark"] .submission-data__body   { color: #cbd5e1; }
[data-theme="dark"] .submission-status.status-ok      { background: #14532d; color: #86efac; }
[data-theme="dark"] .submission-status.status-err     { background: #450a0a; color: #fca5a5; }
[data-theme="dark"] .submission-status.status-neutral { background: #1e293b; color: #94a3b8; }


.msweb-ui.tooltip {
	font-size: 14px;
	line-height: 1.3;
}

/* ── Relay test page ──────────────────────────────────────────────────────── */
.relay-test-card {
	max-width: 640px;
}
.relay-test-form {
	display: grid;
	gap: 12px;
	margin-bottom: 20px;
}
.relay-test-label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.9rem;
	color: var(--color-text-secondary, #94a3b8);
}
.relay-test-input {
	border: 1px solid var(--color-border, rgba(148,163,184,.24));
	border-radius: 10px;
	padding: 9px 12px;
	background: var(--color-input-bg, rgba(2,6,23,.6));
	color: var(--color-text, #f8fafc);
	font-size: 0.9rem;
	width: 100%;
	box-sizing: border-box;
}
.relay-test-textarea {
	min-height: 72px;
	resize: vertical;
	font-family: monospace;
}
.relay-test-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
}
.relay-test-btn {
	border: 0;
	border-radius: 999px;
	padding: 9px 16px;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	color: #fff;
	background: linear-gradient(90deg,#2563eb,#3b82f6);
}
.relay-test-btn--secondary { background: linear-gradient(90deg,#0f766e,#14b8a6); }
.relay-test-btn--danger    { background: linear-gradient(90deg,#b91c1c,#ef4444); }
.relay-test-status {
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--color-card-bg, rgba(30,41,59,.8));
	border: 1px solid var(--color-border, rgba(148,163,184,.18));
	font-size: 0.9rem;
	margin-bottom: 12px;
}
.relay-test-log {
	margin: 0;
	padding: 12px;
	background: var(--color-code-bg, #020617);
	border-radius: 10px;
	white-space: pre-wrap;
	word-break: break-word;
	font-size: 0.85rem;
	color: var(--color-text-secondary, #cbd5e1);
	max-height: 300px;
	overflow: auto;
}
/* example-dialogs modal */
.example-dialogs {
	--ex-text: #17213a;
	--ex-muted: #657290;
	--ex-border: #cfd8ef;
	--ex-accent: #4f46e5;
	--ex-blue: #315cf6;
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 1480px;
	width: 100%;
	margin: 0 auto;
	padding: 18px 38px 38px;
	color: var(--ex-text);
}
.example-dialogs__hero { display: grid; gap: 4px; }
.example-dialogs__hero h2 { margin: 0; font-size: 34px; line-height: 1.05; font-weight: 800; letter-spacing: 0; color: #17213a; }
.example-dialogs__hero p { margin: 0; font-size: 15px; line-height: 1.45; color: #66728c; }
.example-dialogs__section {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	border: 1px solid var(--ex-border);
	border-radius: 16px;
	padding: 22px 24px;
	background:
		radial-gradient(circle at 12% 0%, rgba(79, 70, 229, 0.055), transparent 34%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.96));
	box-shadow: 0 16px 40px rgba(49, 92, 246, 0.06);
}
.example-dialogs__section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.example-dialogs__section h3 { margin: 0; font-size: 24px; line-height: 1.16; font-weight: 800; color: #17213a; }
.example-dialogs__badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	width: fit-content;
	padding: 6px 13px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #5b56f5 0%, #7c3aed 100%);
	box-shadow: 0 8px 18px rgba(79, 70, 229, 0.22);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0;
}
.example-dialogs__badge i { font-size: 12px; }
.example-dialogs__desc { margin: 0; max-width: 720px; font-size: 14px; line-height: 1.48; color: #34405d; }
.example-dialogs__grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.example-dialogs__preview-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	margin-top: 2px;
	color: #4f46e5;
	font-size: 14px;
	font-weight: 800;
}
.example-dialogs__messages {
	position: relative;
	overflow-y: auto;
	height: 410px;
	border: 1px solid #d3dbee;
	border-radius: 16px;
	padding: 14px 18px 46px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 255, 0.94)),
		repeating-linear-gradient(135deg, rgba(49, 92, 246, 0.035) 0 1px, transparent 1px 14px);
	box-shadow: inset 0 -36px 52px rgba(111, 123, 161, 0.13);
}
@media (min-width: 980px) {
  .example-dialogs__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .example-dialogs__messages { height: 430px; }
}
.example-dialogs__scroll-hint {
	position: sticky;
	bottom: -34px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 12px -18px -46px;
	padding: 11px 12px 12px;
	background: linear-gradient(180deg, rgba(247, 249, 255, 0), rgba(230, 235, 248, 0.94) 36%, rgba(224, 230, 245, 0.98));
	color: #65708c;
	font-size: 13px;
}
.example-dialogs__stats { display: grid; gap: 8px; border-radius: 12px; }
.example-dialogs__stats-title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #4f46e5;
	font-size: 14px;
	font-weight: 800;
}
.example-dialogs__stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.example-dialogs__metric {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	min-width: 0;
	min-height: 54px;
	padding: 9px 12px;
	border-radius: 10px;
	background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
	border: 1px solid #d9e1f2;
	box-shadow: 0 7px 16px rgba(25, 35, 64, 0.04);
}
.example-dialogs__metric-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--metric-color, #64748b) 14%, #ffffff);
	color: var(--metric-color, #64748b);
	font-size: 14px;
}
.example-dialogs__metric-copy { display: grid; gap: 2px; min-width: 0; }
.example-dialogs__metric-label { font-size: 12px; line-height: 1.2; color: #65708c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.example-dialogs__metric-value { font-size: 15px; line-height: 1.1; font-weight: 800; color: #17213a; font-variant-numeric: tabular-nums; }
.example-dialogs__metric--r {
	border-color: #cfc4ff;
	background: linear-gradient(180deg, #ffffff 0%, #f6f2ff 100%);
}
.example-dialogs__metric--r .example-dialogs__metric-icon { background: #ebe6ff; color: #5b42f3; }
.example-dialogs__metric--r .example-dialogs__metric-value { color: #5636f1; }

/* chat bubble styles for example dialogs */
.example-dialogs__messages .ai-chat-messages { display: flex; flex-direction: column; gap: 12px; font-family: inherit; font-size: 13px; }
.example-dialogs__messages .ai-chat-msg { display: flex; flex-direction: column; max-width: 76%; }
.example-dialogs__messages .ai-chat-msg--user { align-self: flex-end; align-items: flex-end; }
.example-dialogs__messages .ai-chat-msg--assistant { position: relative; align-self: flex-start; align-items: flex-start; margin-left: 44px; }
.example-dialogs__messages .ai-chat-msg--assistant::before {
	content: "\f544";
	position: absolute;
	left: -44px;
	top: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 10px;
	background: #edf1ff;
	color: #315cf6;
	font-family: "Font Awesome 6 Free";
	font-size: 15px;
	font-weight: 900;
}
.example-dialogs__messages .ai-chat-bubble { padding: 12px 15px; border-radius: 12px; line-height: 1.48; word-break: break-word; }
.example-dialogs__messages .ai-chat-msg--user .ai-chat-bubble { background: linear-gradient(135deg, #3d68ff 0%, #2652f0 100%); color: #fff; box-shadow: 0 8px 18px rgba(49, 92, 246, 0.22); }
.example-dialogs__messages .ai-chat-msg--assistant .ai-chat-bubble { background: #fff; border: 1px solid #e5eaf5; box-shadow: 0 8px 22px rgba(16, 24, 40, 0.06); color: #23304a; }
.example-dialogs__messages .ai-chat-bubble p { margin: 0 0 6px; }
.example-dialogs__messages .ai-chat-bubble p:last-child { margin: 0; }
.example-dialogs__messages .ai-chat-bubble ul, .example-dialogs__messages .ai-chat-bubble ol { padding-left: 18px; margin: 5px 0; }
.example-dialogs__messages .ai-chat-bubble li { margin: 2px 0; }
.example-dialogs__messages .ai-chat-time { font-size: 11px; color: #6b7894; margin-top: 4px; padding: 0 3px; }

/* disclaimer */
.example-dialogs__disclaimer {
	margin: 0;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px 18px;
	border: 1px solid #cbd6ff;
	border-radius: 12px;
	background: linear-gradient(180deg, #f7f9ff 0%, #fbfcff 100%);
	color: #4f5f80;
	font-size: 14px;
	line-height: 1.45;
}
.example-dialogs__disclaimer i {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #315cf6;
	color: #fff;
	font-size: 13px;
}

/* choice cards inside example dialogs */
.example-dialogs__messages .ai-chat-choice-card { border: 1px solid #dce4f5; border-radius: 12px; padding: 11px 12px; margin: 7px 0; background: #f4f7ff; }
.example-dialogs__messages .ai-chat-ui-question { font-size: 13px; font-weight: 800; margin-bottom: 8px; color: #23304a; }
.example-dialogs__messages .ai-chat-ui-radio-group { display: flex; flex-direction: column; gap: 7px; }
.example-dialogs__messages .ai-chat-ui-radio-group label { display: flex; align-items: flex-start; gap: 7px; font-size: 13px; }
.example-dialogs__messages .ai-chat-ui-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.example-dialogs__messages .ai-chat-ui-btn { padding: 7px 14px; background: #eff4ff; border: 1px solid #9bb8ff; border-radius: 999px; font-size: 12px; color: #2148b8; }
.example-dialogs__messages .ai-chat-ui-confirm { margin-top: 9px; padding: 6px 14px; background: #e6efff; border: 1px solid #9bb8ff; border-radius: 999px; font-size: 12px; color: #2148b8; }
.example-dialogs__messages .ai-chat-ui-btn[disabled],
.example-dialogs__messages .ai-chat-ui-confirm[disabled] { opacity: 0.55; cursor: default; pointer-events: none; }

/* table inside chat bubble */
.example-dialogs__messages .ai-table-wrap { overflow-x: auto; margin: 8px 0; }
.example-dialogs__messages .ai-table-wrap table { border-collapse: collapse; font-size: 12px; width: 100%; min-width: 420px; }
.example-dialogs__messages .ai-table-wrap td { border: 1px solid #dfe6f2; padding: 7px 9px; }
.example-dialogs__messages .ai-table-wrap tr:first-child td { background: #f3f6fb; font-weight: 800; }
.theme-dark .example-dialogs__messages .ai-table-wrap td { border-color: #334155; }
.theme-dark .example-dialogs__messages .ai-table-wrap tr:first-child td { background: #1e293b; }

/* static PD form (already-filled display) */
.ai-chat-pd-form-static { border: 1px solid #dce4f5; border-radius: 12px; padding: 11px 12px; background: #f4f7ff; margin: 7px 0; }
.ai-chat-pd-form-static .ai-chat-pd-field { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; font-size: 13px; }
.ai-chat-pd-form-static .ai-chat-pd-label { color: #6b7280; white-space: nowrap; min-width: 100px; }
.ai-chat-pd-form-static .ai-chat-pd-value { font-weight: 500; color: #111827; }
.ai-chat-pd-form-static .ai-chat-pd-submit-btn { margin-top: 4px; padding: 5px 14px; border: 1px solid #86efac; border-radius: 14px; background: #f0fdf4; font-size: 12px; color: #166534; opacity: 0.8; cursor: default; pointer-events: none; }
.theme-dark .ai-chat-pd-form-static { background: #1a2744; border-color: #334155; }
.theme-dark .ai-chat-pd-form-static .ai-chat-pd-label { color: #94a3b8; }
.theme-dark .ai-chat-pd-form-static .ai-chat-pd-value { color: #e2e8f0; }
.theme-dark .ai-chat-pd-form-static .ai-chat-pd-submit-btn { background: #052e16; border-color: #166534; color: #86efac; }

.example-dialogs__section-note {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 14px 16px;
	background: linear-gradient(180deg, #effdf4 0%, #f9fffb 100%);
	border: 1px solid #8be5a8;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	color: #238148;
}
.example-dialogs__section-note i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #32a65a;
	color: #fff;
	font-size: 17px;
}
.example-dialogs__section:nth-child(2) .example-dialogs__section-note {
	background: linear-gradient(180deg, #f7f3ff 0%, #ffffff 100%);
	border-color: #bba7ff;
	color: #5636f1;
}
.example-dialogs__section:nth-child(2) .example-dialogs__section-note i {
	background: #f0eaff;
	color: #5636f1;
}
.theme-dark .example-dialogs__section-note { background: #052e16; border-color: #166534; color: #86efac; }

/* annotation note between messages */
.example-dialogs__annotation { display: flex; align-items: center; gap: 9px; align-self: center; max-width: 86%; font-size: 12px; line-height: 1.25; color: #5b5ff2; background: #f5f3ff; border: 1px solid #cdc9ff; border-radius: 999px; padding: 6px 14px; margin: 2px 0; }
.example-dialogs__annotation i { font-size: 12px; }

/* plans table */
.example-dialogs__section--plans {
	display: grid;
	gap: 14px;
	border-radius: 16px;
	padding: 22px 24px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 252, 255, 0.96));
}
.example-dialogs__plans-head { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 12px; }
.example-dialogs__plans-head > i { color: #5b5ff2; font-size: 23px; }
.example-dialogs__table-scroll-hint {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 8px 12px;
	border: 1px solid #cbd6ff;
	border-radius: 10px;
	background: linear-gradient(180deg, #f7f9ff 0%, #eef4ff 100%);
	color: #315cf6;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.25;
	text-align: center;
}
.example-dialogs__table-scroll-hint.is-visible { display: flex; }
.example-dialogs__table-scroll-hint i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background: #315cf6;
	color: #fff;
	font-size: 12px;
}
.example-dialogs__table-scroll-hint--top { margin-bottom: 8px; }
.example-dialogs__table-scroll-hint--bottom { margin-top: 8px; }
.example-dialogs__plans-table-wrap { overflow-x: auto; border: 1px solid #dce3f0; border-radius: 10px; }
.example-dialogs__plans-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; background: #fff; }
.example-dialogs__plans-table th { text-align: left; padding: 11px 16px; border-bottom: 1px solid #dce3f0; color: #5b6680; font-weight: 800; background: #fbfcff; }
.example-dialogs__plans-table td { padding: 11px 16px; border-bottom: 1px solid #edf1f7; color: #1f2a44; font-weight: 600; }
.example-dialogs__coverage-cell {
	display: flex;
	align-items: center;
	gap: 9px;
	flex-wrap: wrap;
}
.example-dialogs__coverage-cell span {
	display: inline-flex;
	align-items: baseline;
	gap: 5px;
	white-space: nowrap;
}
.example-dialogs__coverage-cell strong {
	color: #17213a;
}
.example-dialogs__coverage-cell em {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 20px;
	padding: 2px 8px;
	border: 1px solid #c9d5ff;
	border-radius: 999px;
	background: #eef2ff;
	color: #5b5ff2;
	font-size: 11px;
	font-style: normal;
	font-weight: 900;
	line-height: 1;
}
.example-dialogs__plans-table tbody tr:last-child td { border-bottom: none; }
.example-dialogs__plans-table tbody tr:hover td { background: #f8faff; }
.example-dialogs__plans-table tbody tr:nth-child(4) td {
	background: #f6f3ff;
	color: #5636f1;
}
.example-dialogs__table-note {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: #6b7894;
	font-size: 13px;
	line-height: 1.4;
}
.example-dialogs__table-note i { color: #6b7da3; }

.theme-dark .example-dialogs-modal .msweb-ui.modal-full,
.theme-dark .example-dialogs-modal .msweb-ui.modal-body {
	background: #0f172a;
	color: #e2e8f0;
}
.theme-dark .example-dialogs {
	--ex-text: #e2e8f0;
	--ex-muted: #94a3b8;
	--ex-border: #334155;
	color: #e2e8f0;
}
.theme-dark .example-dialogs__hero h2,
.theme-dark .example-dialogs__section h3,
.theme-dark .example-dialogs__metric-value,
.theme-dark .example-dialogs__coverage-cell strong {
	color: #f8fafc;
}
.theme-dark .example-dialogs__hero p,
.theme-dark .example-dialogs__desc,
.theme-dark .example-dialogs__table-note {
	color: #94a3b8;
}
.theme-dark .example-dialogs__preview-label,
.theme-dark .example-dialogs__stats-title,
.theme-dark .example-dialogs__plans-head > i {
	color: #93c5fd;
}
.theme-dark .example-dialogs__section {
	border-color: #334155;
	background:
		radial-gradient(circle at 12% 0%, rgba(59, 130, 246, 0.16), transparent 34%),
		linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.96));
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}
.theme-dark .example-dialogs__messages {
	background:
		linear-gradient(180deg, rgba(13, 27, 46, 0.96), rgba(15, 23, 42, 0.96)),
		repeating-linear-gradient(135deg, rgba(147, 197, 253, 0.05) 0 1px, transparent 1px 14px);
	border-color: #334155;
	box-shadow: inset 0 -36px 52px rgba(0, 0, 0, 0.24);
}
.theme-dark .example-dialogs__scroll-hint {
	background: linear-gradient(180deg, rgba(13, 27, 46, 0), rgba(15, 23, 42, 0.94) 36%, rgba(15, 23, 42, 0.98));
	color: #94a3b8;
}
.theme-dark .example-dialogs__messages .ai-chat-msg--assistant::before {
	background: #1e3a5f;
	color: #93c5fd;
}
.theme-dark .example-dialogs__messages .ai-chat-msg--assistant .ai-chat-bubble { background: #1e293b; border-color: #334155; color: #e2e8f0; }
.theme-dark .example-dialogs__badge { background: #1e1b4b; border-color: #3730a3; color: #a5b4fc; }
.theme-dark .example-dialogs__metric {
	background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
	border-color: #334155;
	box-shadow: 0 7px 16px rgba(0, 0, 0, 0.18);
}
.theme-dark .example-dialogs__metric-icon {
	background: color-mix(in srgb, var(--metric-color, #94a3b8) 22%, #0f172a);
}
.theme-dark .example-dialogs__metric-label { color: #94a3b8; }
.theme-dark .example-dialogs__metric--r {
	border-color: #4c3aa3;
	background: linear-gradient(180deg, #151538 0%, #111827 100%);
}
.theme-dark .example-dialogs__metric--r .example-dialogs__metric-icon {
	background: #211c52;
	color: #a5b4fc;
}
.theme-dark .example-dialogs__metric--r .example-dialogs__metric-value { color: #a5b4fc; }
.theme-dark .example-dialogs__disclaimer { background: #1e1b4b; border-color: #3730a3; color: #a5b4fc; }
.theme-dark .example-dialogs__messages .ai-chat-choice-card { background: #1a2744; border-color: #334155; }
.theme-dark .example-dialogs__messages .ai-chat-ui-question { color: #e2e8f0; }
.theme-dark .example-dialogs__messages .ai-chat-ui-btn,
.theme-dark .example-dialogs__messages .ai-chat-ui-confirm { background: #1e3a5f; border-color: #3b5fc0; color: #93c5fd; }
.theme-dark .example-dialogs__annotation { background: #1e1b4b; border-color: #3730a3; color: #a5b4fc; }
.theme-dark .example-dialogs__section:nth-child(2) .example-dialogs__section-note {
	background: #1e1b4b;
	border-color: #3730a3;
	color: #c4b5fd;
}
.theme-dark .example-dialogs__section:nth-child(2) .example-dialogs__section-note i {
	background: #312e81;
	color: #c4b5fd;
}
.theme-dark .example-dialogs__plans-table-wrap { border-color: #334155; }
.theme-dark .example-dialogs__table-scroll-hint {
	background: linear-gradient(180deg, #1e1b4b 0%, #172554 100%);
	border-color: #3730a3;
	color: #c4b5fd;
}
.theme-dark .example-dialogs__table-scroll-hint i {
	background: #4338ca;
	color: #eef2ff;
}
.theme-dark .example-dialogs__plans-table { background: #0f172a; }
.theme-dark .example-dialogs__plans-table th { background: #111827; border-color: #334155; color: #94a3b8; }
.theme-dark .example-dialogs__plans-table td { border-color: #1e293b; color: #e2e8f0; }
.theme-dark .example-dialogs__plans-table tbody tr:hover td { background: #111827; }
.theme-dark .example-dialogs__plans-table tbody tr:nth-child(4) td {
	background: #1e1b4b;
	color: #c4b5fd;
}
.theme-dark .example-dialogs__coverage-cell em {
	background: #1e1b4b;
	border-color: #3730a3;
	color: #c4b5fd;
}

@media (max-width: 760px) {
  .example-dialogs { padding: 16px 14px 24px; gap: 12px; }
  .example-dialogs__hero h2 { font-size: 27px; }
  .example-dialogs__section { padding: 18px 16px; border-radius: 14px; }
  .example-dialogs__section h3 { font-size: 21px; }
  .example-dialogs__messages { height: 360px; padding: 12px 12px 44px; }
  .example-dialogs__messages .ai-chat-msg { max-width: 88%; }
  .example-dialogs__messages .ai-chat-msg--assistant { margin-left: 36px; }
  .example-dialogs__messages .ai-chat-msg--assistant::before { left: -36px; width: 28px; height: 28px; }
  .example-dialogs__stats-grid { grid-template-columns: 1fr; }
  .example-dialogs__plans-head { grid-template-columns: 1fr; }
  .example-dialogs__plans-table { font-size: 13px; }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .example-dialogs { padding-inline: 24px; }
  .example-dialogs__stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* button.ai-widget-fab {
    right: unset;
    left: 24px;
} */

.example-dialogs-modal .msweb-ui.modal-full h3 {
    padding: 20px 0px 0 0;
}

/* ── DataTable header row with action buttons ────────────────────────────────── */
.dt-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}

/* ── Settings page ───────────────────────────────────────────────────────────── */
.settings-section {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 10px;
  padding: 16px;
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border, #e2e8f0);
}
.settings-row:first-child {
  padding-top: 0;
}
.settings-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.settings-row__label {
  font-weight: 500;
  margin-bottom: 3px;
}
.settings-row__desc {
  font-size: 13px;
  color: var(--color-text-muted, #64748b);
}

[data-theme="dark"] .settings-section {
  background: var(--color-surface, #1e293b);
  border-color: var(--color-border, #334155);
}

/* ── Bot connect (settings page) ─────────────────────────────────────────────── */
.settings-section__title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-text-muted, #64748b);
  margin-bottom: 8px;
}
.bot-connect-qr {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bot-connect-qr__img {
  width: 180px;
  height: 180px;
  border-radius: 8px;
  display: block;
}
.bot-connect-qr__links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.bot-connect-qr__hint {
  font-size: 13px;
  color: var(--color-text-muted, #64748b);
}
.bot-connect-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-success, #16a34a);
  font-weight: 500;
  font-size: 14px;
}
.bot-connect-disconnect {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--color-text-muted, #64748b);
  font-size: 13px;
  text-decoration: underline;
  margin-left: 8px;
}
.bot-connect-disconnect:hover {
  color: var(--color-danger, #ef4444);
}

/* ── Agent channels ────────────────────────────────────────────────────────── */
.agent-channels-card {
  max-width: 760px;
}
.agent-channel-form {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(240px, 1fr);
  gap: 14px;
  align-items: end;
}
.agent-channel-form .label-block:nth-child(3) {
  grid-column: 1 / -1;
}
.agent-channel-form .msweb-ui.button,
.agent-channel-form button {
  justify-self: start;
}
.agent-channel-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.agent-channel-row {
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 8px;
  padding: 12px;
  background: var(--color-bg, #f8fafc);
}
.agent-channel-row__title {
  font-weight: 600;
  margin-bottom: 4px;
}
.agent-channel-row__meta,
.agent-channel-empty {
  color: var(--color-text-muted, #64748b);
  font-size: 13px;
}
.agent-channel-row__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.agent-channel-modal-form {
  display: grid;
  gap: 12px;
  width: min(100%, 520px);
  max-width: 100%;
}
.agent-channel-modal-summary {
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--color-bg, #f8fafc);
}
.agent-channel-modal-summary__title {
  font-weight: 600;
  margin-bottom: 3px;
}
.agent-channel-modal-summary__meta,
.field-hint {
  color: var(--color-text-muted, #64748b);
  font-size: 12px;
}
.field-hint {
  display: block;
  margin-top: 5px;
}
.agent-channel-empty--error {
  color: var(--color-danger, #ef4444);
}

[data-theme="dark"] .agent-channel-row,
[data-theme="dark"] .agent-channel-modal-summary {
  background: #111f34;
  border-color: #334155;
  color: #dbe5f3;
}

[data-theme="dark"] .agent-channel-row__title,
[data-theme="dark"] .agent-channel-modal-summary__title {
  color: #f5f9ff;
}

[data-theme="dark"] .agent-channel-row__meta,
[data-theme="dark"] .agent-channel-empty,
[data-theme="dark"] .agent-channel-modal-summary__meta,
[data-theme="dark"] .field-hint {
  color: #94a3b8;
}

[data-theme="dark"] .agent-channel-empty--error {
  color: #f87171;
}

@media (max-width: 720px) {
  .agent-channel-form {
    grid-template-columns: 1fr;
  }
  .agent-channel-form .label-block:nth-child(3) {
    grid-column: auto;
  }
}

/* ── Suggest improvement modal ───────────────────────────── */
.suggestion-modal-root .msweb-ui.modal-small,
.suggestion-modal-root .msweb-ui.modal-wide,
.suggestion-modal-root .msweb-ui.modal-full {
	padding: 0;
	border-radius: 16px;
	overflow: hidden;
}

.suggestion-modal-root .modal-body,
.suggestion-modal-root .msweb-ui.modal-body {
	padding: 0;
}

.suggestion-modal {
	display: grid;
	gap: 18px;
	overflow: auto;
	color: #1f2a44;
	background: #fff;
	padding-bottom: 26px;
}

.suggestion-modal__hero {
	display: grid;
	grid-template-columns: 148px minmax(0, 1fr);
	gap: 24px;
	align-items: center;
	padding: 0px 34px 0;
}

.suggestion-modal__image {
	width: 124px;
	height: 144px;
	object-fit: contain;
}

.suggestion-modal__title-wrap h2 {
	margin: 0 0 6px;
	font-size: 26px;
	line-height: 1.12;
	color: #152033;
}

.suggestion-modal__lead {
	margin: 0 0 14px;
	color: #000;
	font-size: 26px;
	font-weight: 600;
}

.suggestion-modal__text {
	margin: 0;
	color: #354258;
	font-size: 13px;
	line-height: 1.55;
}

.suggestion-modal__note {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	align-items: center;
	gap: 14px;
	margin: 0 34px;
	padding: 14px 16px;
	border: 1px solid #cfe0ff;
	border-radius: 12px;
	background: #f2f7ff;
	color: #2e5dcc;
	font-size: 14px;
	line-height: 1.45;
}

.suggestion-modal__note span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(135deg, #4a7dff, #2563eb);
	color: #fff;
}

.suggestion-modal__field {
	display: grid;
	gap: 10px;
	margin: 0 34px;
	padding: 0;
	border: 0;
	min-width: 0;
}

fieldset.suggestion-modal__field {
	padding: 20px 24px;
	border-radius: 12px;
}

.suggestion-modal__field legend,
.suggestion-modal__field > span {
	color: #2a3448;
	font-size: 14px;
	font-weight: 800;
}

.suggestion-modal__field b {
	color: #ef4444;
}

.suggestion-modal__types {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.suggestion-modal__type {
	position: relative;
	display: grid;
	align-content: start;
	gap: 10px;
	min-height: 158px;
	padding: 16px;
	border: 1px solid #dfe7f3;
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.suggestion-modal__type:hover,
.suggestion-modal__type.is-selected {
	border-color: #a9c4ff;
	background: #e7f2ff;
	box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.suggestion-modal__type input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.suggestion-modal__type-check {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 20px;
	height: 20px;
	border: 2px solid #c7d2e5;
	border-radius: 50%;
}

.suggestion-modal__type.is-selected .suggestion-modal__type-check {
	border-color: #6d95ff;
	box-shadow: inset 0 0 0 5px #fff;
	background: #6d95ff;
}

.suggestion-modal__type-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
}

.suggestion-modal__type-icon svg {
	width: 23px;
	height: 23px;
}

.suggestion-modal__type-icon--feature {
	background: #eef5ff;
	color: #2563eb;
}

.suggestion-modal__type-icon--bug {
	background: #fff0f4;
	color: #f43f5e;
}

.suggestion-modal__type-icon--improve {
	background: #eaf8ef;
	color: #22c55e;
}

.suggestion-modal__type-title {
	display: block;
	color: #172033;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.25;
}

.suggestion-modal__type-text {
	display: block;
	color: #738098;
	font-size: 13px;
	line-height: 1.35;
}

.suggestion-modal textarea,
.suggestion-modal select {
	width: 100%;
	border: 1px solid #dfe7f3;
	border-radius: 10px;
	background: #fff;
	color: #172033;
	font: inherit;
	font-size: 14px;
	outline: none;
	transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.suggestion-modal textarea:focus,
.suggestion-modal select:focus {
	border-color: #93b4ff;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.suggestion-modal textarea {
	min-height: 112px;
	padding: 14px;
	resize: vertical;
}

.suggestion-modal select {
	min-height: 42px;
	padding: 0 12px;
	color: #8a96aa;
}

.suggestion-modal__counter {
	justify-self: end;
	margin-top: -34px;
	padding-right: 12px;
	color: #8a96aa;
	font-size: 12px;
	font-style: normal;
	pointer-events: none;
}

.suggestion-modal__hint {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: -2px 34px 0;
	color: #64748b;
	font-size: 13px;
}

.suggestion-modal__status {
	margin: 0 34px;
	padding: 11px 13px;
	border-radius: 10px;
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 13px;
	font-weight: 700;
}

.suggestion-modal__status.is-error {
	background: #fff1f2;
	color: #be123c;
}

.suggestion-modal__status.is-success {
	background: #ecfdf5;
	color: #047857;
}

@media (max-width: 760px) {
	.suggestion-modal__hero {
		grid-template-columns: 1fr;
		text-align: center;
		padding: 24px 20px 0;
	}

	.suggestion-modal__image {
		justify-self: center;
		width: 110px;
		height: 110px;
	}

	.suggestion-modal__note,
	.suggestion-modal__field,
	.suggestion-modal__hint,
	.suggestion-modal__status {
		margin-left: 20px;
		margin-right: 20px;
	}

	.suggestion-modal__types {
		grid-template-columns: 1fr;
	}

	.suggestion-modal__type {
		min-height: 0;
	}

}

[data-theme="dark"] .sidebar-suggestion-btn {
	border-color: #244b82;
	background: linear-gradient(135deg, #10223a 0%, #0f1b2e 100%);
	color: #93c5fd;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

[data-theme="dark"] .sidebar-suggestion-btn:hover {
	background: linear-gradient(135deg, #122b4b 0%, #122138 100%);
	border-color: #35639e;
}

[data-theme="dark"] .sidebar-suggestion-btn__icon {
	background: #172a46;
	color: #93c5fd;
	box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.14);
}

[data-theme="dark"] .suggestion-modal,
[data-theme="dark"] .suggestion-modal-root .msweb-ui.modal-small,
[data-theme="dark"] .suggestion-modal-root .msweb-ui.modal-wide,
[data-theme="dark"] .suggestion-modal-root .msweb-ui.modal-full {
	background: #0f172a;
	color: #dbe5f3;
}

[data-theme="dark"] .suggestion-modal__title-wrap h2,
[data-theme="dark"] .suggestion-modal__field legend,
[data-theme="dark"] .suggestion-modal__field > span,
[data-theme="dark"] .suggestion-modal__type-title {
	color: #f5f9ff;
}

[data-theme="dark"] .suggestion-modal__lead,
[data-theme="dark"] .suggestion-modal__text,
[data-theme="dark"] .suggestion-modal__type-text,
[data-theme="dark"] .suggestion-modal__hint {
	color: #94a3b8;
}

[data-theme="dark"] .suggestion-modal__note {
	border-color: #234678;
	background: #13243d;
	color: #bfdbfe;
}

[data-theme="dark"] .suggestion-modal__type,
[data-theme="dark"] .suggestion-modal textarea,
[data-theme="dark"] .suggestion-modal select {
	border-color: #243244;
	background: #111f34;
	color: #dbe5f3;
}

[data-theme="dark"] .suggestion-modal__type:hover,
[data-theme="dark"] .suggestion-modal__type.is-selected {
	border-color: #365173;
	background: #142640;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

[data-theme="dark"] .suggestion-modal__counter {
	color: #94a3b8;
}

/* ── Export / Import modal ─────────────────────────────────────────────────── */

.export-import-modal {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 300px;
}

.export-import-modal__select-all {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 2px;
	cursor: pointer;
	font-weight: 600;
}

.export-import-modal__sep {
	border: none;
	border-top: 1px solid #e2e8f0;
	margin: 4px 0 6px;
}

.export-import-modal__row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 2px;
	cursor: pointer;
	border-radius: 6px;
	transition: background 0.12s;
}

.export-import-modal__row:hover {
	background: #f1f5f9;
}

.export-import-modal__row--child {
	padding-left: 24px;
	font-size: 0.88em;
	color: #64748b;
}

.export-import-modal__section-group {
	margin-bottom: 4px;
}

.export-import-modal__sections-title {
	font-weight: 600;
	margin: 8px 0 4px;
}

.export-import-modal__analyze-btn {
	margin: 8px 0 4px;
}

.export-import-modal__file-label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.export-import-modal__file-input {
	display: block;
	width: 100%;
	margin-bottom: 4px;
}

.export-import-modal__note {
	margin-top: 10px;
	padding: 8px 10px;
	background: #fffbeb;
	border: 1px solid #fbbf24;
	border-radius: 6px;
	font-size: 0.88em;
	color: #92400e;
}

[data-theme="dark"] .export-import-modal__sep {
	border-color: #243244;
}

[data-theme="dark"] .export-import-modal__row:hover {
	background: #1a2a3d;
}

[data-theme="dark"] .export-import-modal__row--child {
	color: #94a3b8;
}

[data-theme="dark"] .export-import-modal__note {
	background: #312107;
	border-color: #7c4d10;
	color: #fcd34d;
}
