/*
 * Live theme panel — DEMO SITE ONLY. Not part of the template.
 *
 * Deliberately styled from fixed values rather than the template's tokens: it
 * has to stay readable while someone is setting the page background to
 * something unfortunate, and it should look like a tool sitting on top of the
 * site rather than a component of it.
 */

.demo-theme {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 200;
	width: min(19rem, calc(100vw - 2rem));
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	font-size: 11px;
	color: #f4f5f4;
}

.demo-theme__toggle {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-left: auto;
	padding: 0.6rem 0.9rem;
	border: 1px solid #3d4a44;
	background: #11221b;
	color: inherit;
	font: inherit;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
}

.demo-theme__toggle:hover {
	border-color: #6d7f77;
}

.demo-theme__dot {
	width: 8px;
	height: 8px;
	background: #cdeb3f;
}

.demo-theme__body {
	margin-top: 0.5rem;
	padding: 1rem;
	border: 1px solid #3d4a44;
	background: #11221b;
	max-height: min(70vh, 34rem);
	overflow-y: auto;
}

.demo-theme__note {
	margin: 0 0 0.9rem;
	line-height: 1.6;
	color: #9fb0a8;
}

.demo-theme__presets {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin-bottom: 0.9rem;
}

.demo-theme__preset {
	padding: 0.4rem 0.6rem;
	border: 1px solid #3d4a44;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.demo-theme__preset:hover {
	border-color: #cdeb3f;
	color: #cdeb3f;
}

.demo-theme__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
}

.demo-theme__field {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
}

.demo-theme__field input {
	width: 28px;
	height: 24px;
	padding: 0;
	border: 1px solid #3d4a44;
	background: none;
	cursor: pointer;
}

.demo-theme__reset {
	width: 100%;
	margin-top: 0.9rem;
	padding: 0.5rem;
	border: 1px solid #3d4a44;
	background: transparent;
	color: #9fb0a8;
	font: inherit;
	cursor: pointer;
}

.demo-theme__reset:hover {
	border-color: #6d7f77;
	color: #f4f5f4;
}

@media print {
	.demo-theme {
		display: none;
	}
}
