/* =========================
   Настройки (start)
========================= */
.settings {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.settings__header {
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap: 12px;
}
.settings__reset {
	border: 1px solid var(--white-a20);
	background: var(--white-a10);
	color: var(--text);
	padding: 8px 12px;
	border-radius: 10px;
	transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.settings__reset:hover {
	background: var(--white-a20);
	border-color: var(--white-a30);
}
.settings__reset:active { transform: scale(.98); }
.settings__list {
	display:flex;
	flex-direction:column;
	gap: 10px;
}
.settings__row {
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap: 14px;

	padding: 12px 12px;
	border-radius: 14px;
	border: 1px solid var(--white-a20);
	background: var(--white-a10);
}
.settings__meta {
	display:flex;
	flex-direction:column;
	gap: 4px;
	min-width: 0;
}
.settings__label {
	font-weight: 600;
	color: var(--text);
}
.settings__hint {
	font-size: 12px;
	color: var(--muted);
	line-height: 1.2;
}
.settings__control {
	display:flex;
	align-items:center;
	justify-content:flex-end;
	gap: 8px;
	flex: 0 0 auto;
}
.settings__control--wide {
	width: 220px;
}
/* Segmented */
.seg {
	display:inline-flex;
}
.seg__input {
	position:absolute;
	opacity:0;
	width:0;
	height:0;
}
.seg__btn {
	display:inline-flex;
	align-items:center;
	justify-content:center;
	height: 36px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid var(--white-a20);
	background: var(--white-a10);
	color: var(--muted);
	transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
	user-select:none;
}
.seg__btn:hover {
	background: var(--white-a20);
	color: var(--text);
}
.seg:has(.seg__input:checked) .seg__btn {
	background: var(--white-a20);
	border-color: var(--white-a40);
	color: var(--text);
}
/* Toggle */
.toggle {
	position: relative;
	width: 52px;
	height: 30px;
}
.toggle__input {
	position:absolute;
	opacity:0;
	width:0;height:0;
}
.toggle__ui {
	position:absolute;
	inset:0;
	border-radius: 999px;
	border: 1px solid var(--white-a20);
	background: var(--white-a10);
	transition: background-color .18s ease, border-color .18s ease;
}
.toggle__ui::after {
	content:"";
	position:absolute;
	top: 50%;
	left: 4px;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--white-a40);
	transition: transform .18s ease, background-color .18s ease;
}
.toggle:has(.toggle__input:checked) .toggle__ui {
	background: var(--accent-2);
	border-color: var(--white-a30);
}
.toggle:has(.toggle__input:checked) .toggle__ui::after {
	transform: translateY(-50%) translateX(22px);
	background: var(--accent);
}
/* Select + range */
.settings__select {
	height: 36px;
	padding: 0 10px;
	border-radius: 10px;
	border: 1px solid var(--white-a20);
	background: var(--white-a10);
	color: var(--text);
	outline: 0;
}
.settings__range {
	width: 100%;
}
.settings__range-value {
	min-width: 44px;
	text-align: right;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}
/* Behaviors toggled by settings */
html[data-cursor="system"] * {
	cursor: auto !important;
}
html[data-cursor="system"] .custom-cursor {
	opacity: 0 !important;
	visibility: hidden !important;
}
html[data-motion="reduced"] * {
	transition: none !important;
	animation: none !important;
	scroll-behavior: auto !important;
}
/* =========================
   Настройки (end)
========================= */


