/* Плавающий переключатель тем: нейтральные цвета, читаются на любой теме */
.themes{position:fixed;right:16px;bottom:16px;z-index:100;display:flex;flex-direction:column;align-items:flex-end;gap:10px;font:14px/1.3 system-ui,-apple-system,"Segoe UI","Noto Color Emoji",sans-serif}
.themes-toggle{width:48px;height:48px;border-radius:50%;border:1px solid rgba(0,0,0,.15);background:#fff;color:#222;font-size:22px;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.28)}
.themes-toggle:focus-visible,.themes-item:focus-visible{outline:3px solid #4c8dff;outline-offset:2px}
.themes-panel{max-height:min(60vh,420px);overflow-y:auto;min-width:210px;max-width:calc(100vw - 32px);padding:8px;border-radius:16px;background:#fff;color:#222;border:1px solid rgba(0,0,0,.12);box-shadow:0 14px 40px rgba(0,0,0,.35)}
.themes-panel[hidden]{display:none}
.themes-item{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border:0;border-radius:10px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.themes-item:hover{background:#f1f3f5}
.themes-item[aria-pressed=true]{background:#eaf1ff;font-weight:700}
.themes-sw{flex:none;width:28px;height:28px;border-radius:50%;border:1px solid rgba(0,0,0,.2)}
