.theme-switcher {
	position: fixed;
	right: 35px;
	bottom: 100px;
	z-index: 9999;
	font-family: inherit;
}
.theme-switcher__toggle {
	width: 44px; height: 44px;
	border-radius: 50%;
	border: 1px solid var(--border);
	background: var(--surface);
	box-shadow: var(--shadow);
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	transition: var(--transition);
}
.theme-switcher__toggle:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.theme-switcher__dot {
	width: 20px; height: 20px; border-radius: 50%;
	background: var(--accent);
	transition: background var(--transition);
}
.theme-switcher__panel {
    position: absolute;
    right: 0; bottom: 56px;
    width: 340px;                 /* было 210px — теперь 2 колонки */
    max-height: 60vh;             /* ограничение по высоте */
    overflow-y: auto;             /* скролл при нехватке места */
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    display: none;
}
.theme-switcher__panel::-webkit-scrollbar { width: 8px; }
.theme-switcher__panel::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 4px;
}

.theme-switcher.is-open .theme-switcher__panel { display: block; }
.theme-switcher__title {
	font-size: 12px; text-transform: uppercase; letter-spacing: .5px;
	color: var(--text-muted);
	padding: 4px 8px 8px;
}
.theme-switcher__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}
.theme-switcher__list button {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 9px;
    border: none; background: transparent;
    color: var(--text);
    font-size: 13px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background var(--transition);
}
.theme-switcher__list button:hover { background: var(--surface-2); }
.theme-switcher__list button span {
	width: 14px; height: 14px; border-radius: 50%;
	background: var(--dot);
	flex: 0 0 auto;
	box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--border);
}
.theme-switcher__list button.is-active { background: var(--accent-soft); font-weight: 600; }
.theme-switcher__reset {
	margin-top: 6px;
	width: 100%;
	padding: 8px;
	font-size: 13px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--text-muted);
	cursor: pointer;
}
.theme-switcher__reset:hover { background: var(--surface-3); color: var(--text); }