.backdrop {
	position: fixed;
	inset: 0;
	z-index: var(--z-index-modal);
	background-color: rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal {
	width: 440px;
	max-width: 90vw;
	background-color: var(--background-secondary);
	border-radius: 8px;
	box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.25);
	overflow: hidden;
}

.header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px;
	background-color: var(--background-tertiary);
}

.title {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--text-primary);
	margin: 0;
}

.closeButton {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: var(--radius-md);
	background: none;
	border: none;
	cursor: pointer;
	color: var(--text-tertiary-muted);
	transition: color 0.15s;
}

.closeButton:hover {
	color: var(--text-primary);
}

.body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.label {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--text-tertiary);
	letter-spacing: 0.02em;
	margin-bottom: 8px;
}

.input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--background-modifier-accent);
	border-radius: var(--radius-md);
	background-color: var(--background-tertiary);
	color: var(--text-primary);
	font-size: 1rem;
	font-family: inherit;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.15s;
}

.input:focus {
	border-color: var(--brand-primary);
}

.input::placeholder {
	color: var(--text-tertiary-muted);
}

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

.typeSelector {
	display: flex;
	flex-direction: column;
}

.typeOptions {
	display: flex;
	gap: 8px;
}

.typeOption {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px;
	border-radius: var(--radius-md);
	border: 2px solid var(--background-modifier-accent);
	background: none;
	color: var(--text-secondary);
	font-size: 0.875rem;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s;
}

.typeOption:hover {
	border-color: var(--text-tertiary-muted);
}

.typeOptionActive {
	border-color: var(--brand-primary);
	color: var(--text-primary);
	background-color: color-mix(in srgb, var(--brand-primary) 10%, transparent);
}

.footer {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	padding-top: 8px;
}
