.backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: var(--z-index-modal, 10000);
}

.layer {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	z-index: var(--z-index-modal, 10000);
}

.root {
	position: relative;
	margin: 0 auto;
	background-color: var(--background-secondary, #2b2d31);
	border: 1px solid var(--background-header-secondary, #1e1f22);
	border-radius: 8px;
	box-shadow:
		0 0 0 1px hsla(223, 7%, 20%, 0.08),
		0 8px 24px -4px rgba(0, 0, 0, 0.25),
		0 20px 48px -8px rgba(0, 0, 0, 0.2);
	max-height: calc(100vh - 48px);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	pointer-events: all;
}

/* Size variants */
.small {
	width: 440px;
}

.medium {
	width: 600px;
}

.large {
	width: 800px;
}

/* Header */
.header {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	padding: 16px;
	gap: 14px;
	border-bottom: 1px solid var(--background-modifier-accent, #3f4147);
}

.headerTitle {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text-primary, #dbdee1);
	flex: 1;
	margin: 0;
	line-height: 1.25;
}

.closeButton {
	width: 28px;
	height: 28px;
	border-radius: 9999px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	color: var(--text-primary-muted, #949ba4);
	cursor: pointer;
	opacity: 0.5;
	transition: opacity 0.15s ease, color 0.15s ease;
	padding: 0;
	flex-shrink: 0;
	-webkit-tap-highlight-color: transparent;
}

.closeButton:hover {
	opacity: 1;
	color: var(--text-primary, #dbdee1);
}

.closeButton:active {
	opacity: 0.8;
}

/* Content */
.content {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 0 16px 16px;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

/* Footer */
.footer {
	flex: 0 0 auto;
	display: flex;
	gap: 8px;
	padding: 16px;
	justify-content: flex-end;
	border-top: 1px solid var(--background-modifier-accent, #3f4147);
}

/* Separator */
.separator {
	height: 1px;
	background: var(--background-modifier-accent, #3f4147);
}
