/* ── DialogShell — global (component-level CSS) ── */

.mud-admin-dialog-shell {
	position: relative;
	padding: 0.2rem;
	border-radius: 30px;
	background:
		radial-gradient(circle at top left, rgba(22, 163, 74, 0.14), transparent 32%),
		linear-gradient(145deg, rgba(11, 87, 208, 0.12), rgba(53, 175, 109, 0.08));
}

.mud-admin-dialog-shell-surface {
	position: relative;
	display: grid;
	gap: 1.25rem;
	padding: 1.4rem;
	border-radius: 28px;
	overflow: hidden;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.98)),
		#fff;
	border: 1px solid rgba(11, 87, 208, 0.12);
	box-shadow: 0 22px 56px rgba(15, 23, 42, 0.14);
}

.mud-admin-dialog-shell-surface::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 5px;
	background: linear-gradient(90deg, rgba(11, 87, 208, 0.95), rgba(53, 175, 109, 0.9));
}

.mud-admin-dialog-shell-header {
	position: relative;
	gap: 1rem;
	padding-top: 0.2rem;
	margin-bottom: 0;
	z-index: 1;
}

.mud-admin-dialog-shell-header-main {
	flex: 1 1 auto;
	min-width: 0;
	gap: 1rem;
}

.mud-admin-dialog-shell-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	flex: 0 0 auto;
	border-radius: 20px;
	background: linear-gradient(160deg, rgba(11, 87, 208, 0.12), rgba(53, 175, 109, 0.14));
	color: #0b57d0;
	box-shadow: inset 0 0 0 1px rgba(11, 87, 208, 0.1);
}

.mud-admin-dialog-shell-title-block {
	min-width: 0;
	flex: 1 1 auto;
}

.mud-admin-dialog-shell-eyebrow {
	display: block;
	margin-bottom: 0.25rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: #0b57d0;
	opacity: 0.9;
}

.mud-admin-dialog-shell-title-row {
	gap: 0.75rem;
	flex-wrap: wrap;
}

.mud-admin-dialog-shell-title {
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.mud-admin-dialog-shell-status {
	font-weight: 700;
	border-radius: 999px;
}

.mud-admin-dialog-shell-copy {
	margin-top: 0.5rem;
	max-width: 56rem;
	line-height: 1.75;
	color: rgba(29, 38, 52, 0.82);
}

.mud-admin-dialog-shell-close {
	flex: 0 0 auto;
	border-radius: 14px;
	background: rgba(148, 163, 184, 0.08);
	border: 1px solid rgba(148, 163, 184, 0.16);
}

.mud-admin-dialog-shell-toolbar {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 0.85rem;
	padding: 0.95rem 1rem;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.78);
	border: 1px solid rgba(148, 163, 184, 0.16);
	backdrop-filter: blur(8px);
}

.mud-admin-dialog-shell-highlight {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 0.85rem;
	padding: 1rem 1.05rem;
	border-radius: 22px;
	background: linear-gradient(135deg, rgba(11, 87, 208, 0.07), rgba(53, 175, 109, 0.08));
	border: 1px solid rgba(11, 87, 208, 0.12);
}

.mud-admin-dialog-shell-body {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 1rem;
}

.mud-admin-dialog-shell-footer {
	position: relative;
	z-index: 1;
	padding-top: 1rem;
	border-top: 1px solid rgba(148, 163, 184, 0.2);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(248, 250, 252, 0.96));
}

.mud-admin-dialog-shell.is-dense .mud-admin-dialog-shell-surface {
	gap: 0.9rem;
	padding: 1rem 1rem 1.05rem;
	border-radius: 24px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 251, 0.98)),
		#fff;
}

.mud-admin-dialog-shell.is-dense .mud-admin-dialog-shell-header {
	gap: 0.75rem;
}

.mud-admin-dialog-shell.is-dense .mud-admin-dialog-shell-header-main {
	gap: 0.8rem;
}

.mud-admin-dialog-shell.is-dense .mud-admin-dialog-shell-icon {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 16px;
}

.mud-admin-dialog-shell.is-dense .mud-admin-dialog-shell-copy {
	margin-top: 0.35rem;
	line-height: 1.55;
	max-width: none;
}

.mud-admin-dialog-shell.is-dense .mud-admin-dialog-shell-toolbar {
	padding: 0.8rem 0.9rem;
	border-radius: 18px;
	background: rgba(243, 246, 249, 0.94);
}

.mud-admin-dialog-shell.is-dense .mud-admin-dialog-shell-highlight {
	padding: 0.85rem 0.95rem;
	border-radius: 18px;
}

.mud-admin-dialog-shell.is-dense .mud-admin-dialog-shell-body {
	gap: 0.85rem;
}

.mud-admin-dialog-shell.is-dense .mud-admin-dialog-shell-footer {
	padding-top: 0.8rem;
}

.mud-admin-dialog-shell.is-workflow .mud-admin-dialog-shell-surface {
	gap: 1rem;
	padding: 1.1rem 1.1rem 1.2rem;
	border-radius: 26px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.99)),
		#fff;
}

.mud-admin-dialog-shell.is-workflow .mud-admin-dialog-shell-header {
	gap: 0.85rem;
}

.mud-admin-dialog-shell.is-workflow .mud-admin-dialog-shell-icon {
	width: 3rem;
	height: 3rem;
	border-radius: 18px;
	background: linear-gradient(160deg, rgba(11, 87, 208, 0.14), rgba(14, 165, 233, 0.14));
}

.mud-admin-dialog-shell.is-workflow .mud-admin-dialog-shell-toolbar {
	padding: 0.9rem 1rem;
	border-radius: 20px;
	background: linear-gradient(180deg, rgba(240, 245, 255, 0.92), rgba(248, 250, 252, 0.92));
	border-color: rgba(11, 87, 208, 0.14);
}

.mud-admin-dialog-shell.is-workflow .mud-admin-dialog-shell-highlight {
	padding: 1rem 1.05rem;
	border-radius: 20px;
	background: linear-gradient(135deg, rgba(11, 87, 208, 0.08), rgba(6, 182, 212, 0.08));
	border-color: rgba(11, 87, 208, 0.14);
}

.mud-admin-dialog-shell.is-workflow .mud-admin-dialog-shell-footer {
	padding-top: 0.95rem;
	border-top-color: rgba(11, 87, 208, 0.16);
	background: linear-gradient(180deg, rgba(244, 247, 252, 0), rgba(244, 247, 252, 0.96));
}

body.dark .mud-admin-dialog-shell {
	background:
		radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), transparent 32%),
		linear-gradient(145deg, rgba(96, 165, 250, 0.2), rgba(52, 211, 153, 0.12));
}

body.dark .mud-admin-dialog-shell-surface {
	background: linear-gradient(180deg, rgba(17, 24, 39, 0.97), rgba(15, 23, 42, 0.98));
	border-color: rgba(148, 196, 255, 0.16);
	box-shadow: 0 24px 60px rgba(2, 6, 23, 0.46);
}

body.dark .mud-admin-dialog-shell-icon {
	color: #9bc1ff;
	background: linear-gradient(160deg, rgba(96, 165, 250, 0.16), rgba(52, 211, 153, 0.16));
	box-shadow: inset 0 0 0 1px rgba(148, 196, 255, 0.16);
}

body.dark .mud-admin-dialog-shell-eyebrow {
	color: #9bc1ff;
}

body.dark .mud-admin-dialog-shell-copy {
	color: rgba(226, 232, 240, 0.8);
}

body.dark .mud-admin-dialog-shell-close {
	background: rgba(51, 65, 85, 0.4);
	border-color: rgba(148, 163, 184, 0.16);
}

body.dark .mud-admin-dialog-shell-toolbar {
	background: rgba(30, 41, 59, 0.7);
	border-color: rgba(148, 163, 184, 0.14);
}

body.dark .mud-admin-dialog-shell-highlight {
	background: linear-gradient(135deg, rgba(96, 165, 250, 0.12), rgba(52, 211, 153, 0.12));
	border-color: rgba(148, 196, 255, 0.14);
}

body.dark .mud-admin-dialog-shell.is-dense .mud-admin-dialog-shell-surface {
	background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.98));
}

body.dark .mud-admin-dialog-shell.is-dense .mud-admin-dialog-shell-toolbar {
	background: rgba(30, 41, 59, 0.9);
}

body.dark .mud-admin-dialog-shell.is-workflow .mud-admin-dialog-shell-surface {
	background: linear-gradient(180deg, rgba(15, 23, 42, 0.985), rgba(17, 24, 39, 0.99));
}

body.dark .mud-admin-dialog-shell.is-workflow .mud-admin-dialog-shell-toolbar {
	background: linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.92));
	border-color: rgba(96, 165, 250, 0.18);
}

body.dark .mud-admin-dialog-shell.is-workflow .mud-admin-dialog-shell-highlight {
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(8, 145, 178, 0.14));
	border-color: rgba(96, 165, 250, 0.18);
}

body.dark .mud-admin-dialog-shell.is-workflow .mud-admin-dialog-shell-footer {
	border-top-color: rgba(96, 165, 250, 0.14);
	background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.98));
}

body.dark .mud-admin-dialog-shell-footer {
	border-top-color: rgba(148, 163, 184, 0.16);
	background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.96));
}

@media (max-width: 700px) {
	.mud-admin-dialog-shell-surface {
		padding: 1rem;
		gap: 1rem;
		border-radius: 24px;
	}

	.mud-admin-dialog-shell-header,
	.mud-admin-dialog-shell-header-main {
		flex-direction: column;
	}

	.mud-admin-dialog-shell-close {
		align-self: flex-end;
	}

	.mud-admin-dialog-shell-toolbar,
	.mud-admin-dialog-shell-highlight,
	.mud-admin-dialog-shell-footer {
		padding-left: 0.9rem;
		padding-right: 0.9rem;
	}

	.mud-admin-dialog-shell-copy {
		line-height: 1.65;
	}
}
