* {
	box-sizing: border-box;
}

body {
	display: grid;
	place-items: center;
	min-height: 100vh;
	margin: 0;
	padding: 1.5rem;
	background: #f4f4f6;
	font-family: system-ui, sans-serif;
	color: #1c1c22;
}

.settings {
	width: min(24rem, 100%);
	padding: 2.5rem 2rem;
	border-radius: 1.5rem;
	background: #ffffff;
	text-align: center;
	box-shadow: 0 10px 30px -15px rgb(0 0 0 / 0.25);
}

.settings-title {
	margin: 0;
	font-size: 1.75rem;
}

.status {
	margin: 0.75rem 0 2rem;
	color: #4b4b55;
}

.button {
	padding: 0.75rem 1.25rem;
	border: 2px solid #1c1c22;
	border-radius: 999px;
	background: #ffffff;
	font: inherit;
	font-weight: 600;
	color: #1c1c22;
	cursor: pointer;
}

.button:hover {
	background: #f4f4f6;
}

.button-primary {
	background: #1c1c22;
	color: #ffffff;
}

.button-primary:hover {
	background: #3a3a44;
}

.button:focus-visible {
	outline: 3px solid #2563eb;
	outline-offset: 3px;
}

/* Popovers sit centred on top of the page by default; this sets the look. */
.modal {
	width: min(26rem, calc(100% - 2rem));
	padding: 2rem;
	border: 0;
	border-radius: 1.5rem;
	box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.5);
}

/* An open popover gets a ::backdrop too, but the page behind still works. */
.modal::backdrop {
	background: rgb(28 28 34 / 0.6);
}

.modal-title {
	margin: 0;
	font-size: 1.375rem;
}

.modal-text {
	margin: 0.75rem 0 1.75rem;
	line-height: 1.6;
	color: #4b4b55;
}

.modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
}
