/* Кабинет и админ-панель в стиле xibro.de (палитра с 2026-11-26: Midnight / Swiss Clean — сланец + сапфир, до — Navy + Cyan;
   Manrope / Inter / JetBrains Mono).
   Кабинет с 2026-11-11 (вариант «A» владельца), админка — в тот же день.
   Слой поверх стилей user/layout.html, admin/layout.html и страниц: подключается ПОСЛЕДНИМ в <head>, поэтому меняет
   токены (--bg-main, --dns-c-* …) и оформление «каркаса» без правки разметки и JS.
   Источник значений — /opt/xibro-astro/src/styles/x.css (.x), header.css (.xs-hbtn), footer.css. */

:root {
    /* «Последнее подключение» устройства (home_manager handshake_color): зелёный < 5 мин, фиолетовый < 1 ч, розовый — давно. */
    --cab-seen-fresh: rgb(var(--dns-c-domains));
    --cab-seen-hour: rgb(var(--dns-c-percent));
    --cab-seen-old: rgb(var(--dns-c-blocked));
    /* токены сайта */
    --x-bg: #0B1120;
    --x-bg-deep: #080E1B;
    --x-surface: #111C30;
    --x-surface-2: #18253D;
    --x-line: rgba(148, 163, 184, 0.14);
    --x-line-strong: rgba(148, 163, 184, 0.26);
    --x-primary: #0EA5E9;
    --x-cyan: #38BDF8;
    --x-text: #F1F5F9;
    --x-soft: #CBD5E1;
    --x-muted: #94A3B8;
    --f-display: "Manrope", "Manrope Fallback", ui-sans-serif, system-ui, sans-serif;
    --f-body: "Inter", "Inter Fallback", ui-sans-serif, system-ui, sans-serif;
    --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* токены кабинета -> значения сайта */
    --bg-main: #0B1120;
    --deep-teal: #0EA5E9;
    --glass-bg: rgba(17,28,48,0.92);
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
    --border-color: rgba(148, 163, 184, 0.26);
    --cab-card-border: rgba(148, 163, 184, 0.14);
    --cab-chrome-border: #38BDF8;

    /* палитра --dns-c-* — в templates/_palette_css.html (там уже цвета сайта) */

    /* Токены для цветов в разметке (style="" и HTML из JS), 2026-11-20: таблица стилей их не перекрывает,
       поэтому светлая тема (cabinet-light.css) меняет значение токена. Здесь — прежние тёмные литералы. */
    --cab-hairline: rgba(255, 255, 255, 0.15);
    --cab-hairline-soft: rgba(255, 255, 255, 0.08);
    --cab-hairline-strong: rgba(255, 255, 255, 0.25);
    --cab-heading: #FFFFFF;
    --cab-blue: #0EA5E9;
    --cab-green: #10B981;
    --cab-red: #DC3545;
    --cab-rose: rgb(239,68,68);
    --cab-ok: rgb(16, 185, 129);
    --cab-gray: #9ca3af;
    --cab-chip-bg: rgba(255, 255, 255, 0.08);
    --cab-chip-bg-soft: rgba(255, 255, 255, 0.05);

    --bs-body-font-family: var(--f-body);
    --bs-body-bg: #0B1120;
    --bs-body-color: #F1F5F9;
    --bs-link-color: #38BDF8;
    --bs-link-color-rgb: 34, 211, 238;
    --bs-link-hover-color: #7DD3FC;
    --bs-link-hover-color-rgb: 103, 232, 249;
    --bs-border-color: rgba(148, 163, 184, 0.26);
}

body {
    font-family: var(--f-body) !important;
    background-color: #0B1120 !important;
    /* мягкое свечение сверху, как у первого экрана сайта */
    background-image: radial-gradient(1100px 520px at 50% -260px, rgba(14,165,233,0.13), transparent 70%),
                      radial-gradient(700px 400px at 100% 0, rgba(56,189,248,0.042), transparent 70%) !important;
    background-repeat: no-repeat !important;
    color: #F1F5F9 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- типографика ---------- */
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5, .modal-title, .navbar-brand-text {
    font-family: var(--f-display) !important;
    letter-spacing: -0.015em;
}
h1, h2, h3, .h1, .h2, .h3 { font-weight: 800; }
h4, h5, .h4, .h5, .modal-title { font-weight: 700; }
/* мелкие заголовки карточек (прописные) — Manrope, без отрицательной разрядки */
h6, .h6 { font-family: var(--f-display) !important; font-weight: 700; letter-spacing: 0.02em; }
/* крупные числа — Manrope, как цены и цифры на сайте */
.pihole-stat-value, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--f-display) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
}
code, kbd, pre, samp, .font-monospace, .text-monospace { font-family: var(--f-mono) !important; }
code { color: #7DD3FC; }
a { color: #38BDF8; }
a:hover { color: #7DD3FC; }
.text-info { color: #38BDF8 !important; }
.text-primary { color: #0EA5E9 !important; }
.text-success { color: #10B981 !important; }
.text-muted, .text-secondary { color: #94A3B8 !important; }
::selection { background: rgba(56,189,248,0.245); color: #fff; }

/* ---------- карточки: поверхность сайта (.x-card / .x-glow) ---------- */
.glass-card {
    background: linear-gradient(180deg, rgba(24,37,61,0.92), rgba(17,28,48,0.92)) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(148, 163, 184, 0.14) !important;
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 24px 48px -28px rgba(0, 0, 0, 0.7) !important;
}
/* подвал плитки: скругление = 14px карточки минус рамка */
.cab-tiles > .glass-card > .fs-control,
.cab-tiles > .glass-card > .fs-row > .fs-control,
.cab-tiles > .cab-tiles-contents > .glass-card > .fs-control,
.cab-tiles > .cab-tiles-contents > .glass-card > .fs-row > .fs-control,
.cab-tiles > .glass-card > form > .fs-control {
    border-top-color: rgba(148, 163, 184, 0.14) !important;
    background: rgba(8,14,27,0.28) !important;
    border-radius: 0 0 13px 13px !important;
}
.cab-subcard {
    background: rgba(8,14,27,0.32) !important;
    border: 1px solid rgba(148, 163, 184, 0.14) !important;
    border-radius: 12px;
}
.cab-divider, hr { border-color: rgba(148, 163, 184, 0.14) !important; }
.border, .border-bottom, .border-top, .border-start, .border-end { border-color: rgba(148, 163, 184, 0.18) !important; }
.border-teal { border: 1px solid rgba(56,189,248,0.42) !important; box-shadow: 0 0 0 1px rgba(56,189,248,0.105), 0 0 28px -10px rgba(56,189,248,0.42); }
.transition-hover:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.8) !important; }

/* модальные окна — сплошная поверхность сайта */
.modal-content, .modal-content.glass-card {
    background: linear-gradient(180deg, #18253D, #111C30) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    border-radius: 18px !important;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.02) !important;
}
.modal-header, .modal-footer { border-color: rgba(148, 163, 184, 0.14) !important; }
.modal-backdrop { --bs-backdrop-bg: #020816; --bs-backdrop-opacity: 0.72; }
.dropdown-menu {
    background: #111C30 !important;
    border: 1px solid rgba(56,189,248,0.196) !important;
    border-radius: 12px !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 18px -8px rgba(56,189,248,0.35) !important;
}

/* ---------- шапка: как .xs-head сайта ---------- */
.navbar {
    background: rgba(11,17,32,0.86) linear-gradient(90deg, rgba(14,165,233,0), rgba(14,165,233,0.55) 30%, rgba(56,189,248,0.385) 70%, rgba(56,189,248,0)) 0 100% / 100% 1px no-repeat !important;
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 0 !important;
    box-shadow: none !important;
}
.navbar-brand-text { font-weight: 800 !important; letter-spacing: 0.01em; }
@media (max-width: 991.98px) {
    .navbar-collapse { background-color: rgba(11,17,32,0.97) !important; border: 1px solid rgba(148, 163, 184, 0.14); border-top: 0; }
}
/* кнопки шапки — .xs-hbtn: тёмное стекло, тонкая циановая рамка, при наведении — свечение */
.btn-account-edit, .btn-site-link, .lang-toggle, .btn-logout {
    border: 1px solid rgba(56,189,248,0.196) !important;
    border-radius: 10px !important;
    background: rgba(17,28,48,0.55) !important;
    color: #F1F5F9 !important;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s, box-shadow 0.3s !important;
}
.btn-account-edit:hover, .btn-account-edit:focus-visible,
.btn-site-link:hover, .btn-site-link:focus-visible,
.lang-toggle:hover, .lang-toggle[aria-expanded="true"],
.btn-logout:hover, .btn-logout:focus-visible {
    border-color: #38BDF8 !important;
    background: rgba(14,165,233,0.12) !important;
    color: #38BDF8 !important;
    box-shadow: 0 0 18px -4px rgba(56,189,248,0.385) !important;
}

.lang-item { border-color: rgba(56,189,248,0.196) !important; border-radius: 10px !important; }
.lang-item:hover { background-color: rgba(14,165,233,0.12) !important; border-color: #38BDF8 !important; color: #38BDF8 !important; }
.lang-item.active { background-color: rgba(14,165,233,0.22) !important; border-color: #38BDF8 !important; color: #fff !important; }
.nav-link:hover, .nav-link.active-menu { color: #38BDF8 !important; }
.active-menu::after { background: #38BDF8 !important; box-shadow: 0 0 8px #38BDF8 !important; }
.navbar .dropdown-item:hover, .navbar .dropdown-item:focus { background: rgba(14,165,233,0.14) !important; }

/* ---------- подвал: как .xs-footer ---------- */
.main-footer {
    background: linear-gradient(180deg, #080E1B, #080E1B) !important;
    border-top: 1px solid rgba(148, 163, 184, 0.14) !important;
    color: #94A3B8 !important;
}
.main-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14,165,233,0.7) 30%, rgba(56,189,248,0.49) 70%, transparent);
    pointer-events: none;
}
.main-footer a { color: #94A3B8 !important; }
.main-footer a:hover { color: #38BDF8 !important; text-decoration: none !important; }

/* ---------- кнопки: .x-btn.p (сплошной сапфир, белый текст 5,9 : 1 — палитра 2026-11-26) и .x-btn.g (стекло) ---------- */
.btn { font-family: var(--f-body); font-weight: 600; border-radius: 10px; }
.btn-teal, .btn-primary, .btn-info {
    background: #0369A1 !important;
    color: #FFFFFF !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px -12px rgba(3,105,161,0.7) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}
.btn-teal:hover, .btn-primary:hover, .btn-info:hover,
.btn-teal:focus-visible, .btn-primary:focus-visible, .btn-info:focus-visible {
    background: #075985 !important;
    color: #FFFFFF !important;
    border: 1px solid transparent !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -12px rgba(3,105,161,0.8) !important;
}
.btn-sm.btn-teal, .btn-sm.btn-primary, .btn-sm.btn-info { border-radius: 10px !important; }
.btn-success {
    background: linear-gradient(135deg, #10B981, #34D399) !important;
    color: #03140D !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px -12px rgba(16, 185, 129, 0.7) !important;
}
.add-client-btn, .btn-light, .btn-outline-info, .btn-outline-primary, .btn-outline-secondary, .btn-outline-light {
    background: rgba(24,37,61,0.6) !important;
    color: #F1F5F9 !important;
    border: 1px solid rgba(148, 163, 184, 0.26) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}
.add-client-btn:hover, .btn-light:hover, .btn-outline-info:hover, .btn-outline-primary:hover,
.btn-outline-secondary:hover, .btn-outline-light:hover {
    background: rgba(14,165,233,0.12) !important;
    color: #F1F5F9 !important;
    border-color: #38BDF8 !important;
    transform: none;
    box-shadow: 0 0 18px -6px rgba(56,189,248,0.35) !important;
}
/* Выбранная кнопка-переключатель (.active, :active, btn-check:checked) — заливка синим, как у
   .fs-seg-btn.is-on. Без этого «стеклянный» вид выше с !important перекрывал выбранное состояние:
   в окне «Activate your plan» 30 и 360 дней выглядели одинаково (замечено 2026-11-11). */
.btn-outline-info.active, .btn-outline-primary.active, .btn-outline-secondary.active, .btn-outline-light.active, .btn-light.active,
.btn-outline-info:active, .btn-outline-primary:active, .btn-outline-secondary:active, .btn-outline-light:active,
.btn-check:checked + .btn-outline-info, .btn-check:checked + .btn-outline-primary,
.btn-check:checked + .btn-outline-secondary, .btn-check:checked + .btn-outline-light {
    background: rgba(14,165,233,0.55) !important;
    border-color: #0EA5E9 !important;
    color: #fff !important;
    box-shadow: none !important;
}
.btn-outline-danger { border-radius: 12px !important; border-color: rgba(239,68,68,0.5) !important; color: #F87171 !important; }
.btn-outline-danger:hover { background-color: rgba(239,68,68,0.85) !important; color: #fff !important; }
.btn-link { color: #38BDF8; }
.btn-link:hover { color: #7DD3FC; }
/* сегментные и «+/−» кнопки палитры — скругление сайта */
.fs-seg-btn, .fs-act-btn { border-radius: 9px; }
.btn-group > .fs-seg-btn { border-radius: 0; }
.btn-group > .fs-seg-btn:first-child { border-top-left-radius: 9px; border-bottom-left-radius: 9px; }
.btn-group > .fs-seg-btn:last-child { border-top-right-radius: 9px; border-bottom-right-radius: 9px; }

/* ---------- поля ввода ---------- */
.lunar-input, .form-control, .form-select {
    background-color: rgba(8,14,27,0.55) !important;
    border: 1px solid rgba(148, 163, 184, 0.26) !important;
    border-radius: 10px;
    color: #F1F5F9 !important;
}
.lunar-input:focus, .form-control:focus, .form-select:focus {
    background-color: rgba(8,14,27,0.75) !important;
    border-color: #38BDF8 !important;
    box-shadow: 0 0 0 3px rgba(56,189,248,0.126) !important;
}
.form-select option { background-color: #111C30 !important; }
.form-check-input { background-color: rgba(8,14,27,0.55); border-color: rgba(148, 163, 184, 0.4); }
.form-check-input:checked { background-color: #0EA5E9; border-color: #0EA5E9; }
.form-check-input:focus { border-color: #38BDF8; box-shadow: 0 0 0 3px rgba(56,189,248,0.126); }
.input-group-text { background-color: rgba(24,37,61,0.8); border-color: rgba(148, 163, 184, 0.26); color: #CBD5E1; }

/* ---------- таблицы, бейджи, сообщения ---------- */
.table { --bs-table-hover-bg: rgba(14,165,233,0.06) !important; border-color: rgba(148, 163, 184, 0.14) !important; }
.table > :not(caption) > * > * { border-bottom-color: rgba(148, 163, 184, 0.12); }
.badge { font-weight: 600; letter-spacing: 0.02em; }
.badge.bg-light { background-color: rgba(148, 163, 184, 0.16) !important; border-color: rgba(148, 163, 184, 0.3) !important; }
.alert { border-radius: 12px; }
.alert-success { background-color: rgba(16, 185, 129, 0.14) !important; border-color: rgba(16, 185, 129, 0.45) !important; color: #6EE7B7 !important; }
.alert-danger { background-color: rgba(239,68,68,0.14) !important; border-color: rgba(239,68,68,0.45) !important; color: #FDA4AF !important; }
.alert.flash-msg { background: linear-gradient(rgba(var(--dns-c), 0.16), rgba(var(--dns-c), 0.16)), #111C30 !important; }
.pagination { --bs-pagination-border-radius: 9px; }

/* экран ожидания задачи */
#processing-overlay { background: #0B1120 radial-gradient(900px 500px at 50% 30%, rgba(14,165,233,0.14), transparent 70%) !important; }
#processing-overlay .spinner-border { color: #38BDF8 !important; }
#processing-overlay h2 { font-family: var(--f-display); }

:focus-visible { outline-color: #38BDF8; }

/* название в шапке — как .xs-brand-name сайта */
.navbar-brand > span { font-family: var(--f-display); font-weight: 800; letter-spacing: 0.01em; }

/* ---------- админ-панель ---------- */
/* меню админки сворачивается до 1200px (navbar-expand-xl), а не до 992 */
@media (max-width: 1199.98px) {
    .navbar-expand-xl .navbar-collapse { background-color: rgba(11,17,32,0.97) !important; border: 1px solid rgba(148, 163, 184, 0.14); border-top: 0; }
}
.mono { font-family: var(--f-mono) !important; }
.navbar-brand-text { font-family: var(--f-display) !important; font-weight: 800; letter-spacing: 0.01em; }

/* ---------- меню темы (2026-11-25, templates/_theme_toggle.html; до него — кнопка ☀/☾ с 2026-11-20) ----------
   Как .xth на xibro.de: кнопка шапки того же вида, что ссылка на сайт (.btn-site-link), её иконка — выбранный режим
   (<html data-theme-mode>: солнце / луна / полукруг «авто»); список — карточка сайта со скан-линией; на телефоне в шторке
   кабинета — три кнопки в ряд (.cab-theme-seg, как .xth-seg сайта). Светлые близнецы — в cabinet-light.css. */
.theme-ico { display: none; }
html[data-theme-mode=light] .theme-ico-light, html[data-theme-mode=dark] .theme-ico-dark,
html[data-theme-mode=auto] .theme-ico-auto, html:not([data-theme-mode]) .theme-ico-auto { display: inline-block; }
.btn-theme > .bi { line-height: 1; }
/* Только значок с line-height: 1 — без этого кнопка темы в шапке была 24px против 32px у глобуса и языка рядом
   (их строка 1.5em + поля 3px + рамка 1px); 2026-11-29, замечание владельца. */
.cabinet-navbar-inner .btn-theme { min-height: calc(1.5em + 8px); justify-content: center; }
.btn-theme[aria-expanded="true"] { background-color: rgba(14,165,233,0.12) !important; border-color: #38BDF8 !important; color: #38BDF8 !important; box-shadow: 0 0 18px -4px rgba(56,189,248,0.385); }
/* в ряду языков на страницах входа: квадрат, как кнопки DE/EN/UA/RU */
.btn-theme-auth { background: transparent; line-height: 1.5; font: inherit; font-weight: 600; }
.btn-theme-auth[aria-expanded="true"] { background-color: rgba(14,165,233,0.12) !important; border-color: #38BDF8 !important; color: #38BDF8 !important; }
.dropdown-menu.theme-menu {
    min-width: 236px;
    padding: 8px;
    overflow: hidden;
    z-index: 1060;
    border: 1px solid rgba(56,189,248,0.21) !important;
    border-radius: 14px !important;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(14,165,233,0.18), rgba(14,165,233,0) 60%),
        #0E182B !important;
    box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(11,17,32,0.6), 0 0 36px -10px rgba(56,189,248,0.245) !important;
}
/* в шапке (Bootstrap ставит data-bs-popper="static") — под линию шапки, как у сайта; вне шапки отступ даёт Popper (data-bs-offset) */
.dropdown-menu.theme-menu[data-bs-popper] { margin-top: 12px; }
.theme-menu.show { animation: cab-theme-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }
.theme-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(90deg, rgba(56,189,248,0), #38BDF8 30%, #0EA5E9 70%, rgba(14,165,233,0));
    box-shadow: 0 0 14px 2px rgba(56,189,248,0.42);
}
.theme-menu.show::before { animation: cab-theme-scan 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both; }
.theme-menu.show > li { animation: cab-theme-item 0.4s cubic-bezier(0.16, 1, 0.3, 1) calc(0.1s + var(--i, 0) * 0.05s) both; }
.theme-menu > li + li { margin-top: 2px; }
@keyframes cab-theme-in { from { opacity: 0; clip-path: inset(0 0 100% 0 round 14px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 14px); } }
@keyframes cab-theme-scan { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(150px); } }
@keyframes cab-theme-item { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.theme-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 6px 12px;
    border-radius: 10px;
    background: none;
    color: #F1F5F9;
    font: 600 0.97rem/1.2 var(--f-display);
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}
.theme-item > .bi { flex: none; font-size: 1.15rem; line-height: 1; color: #94A3B8; transition: color 0.2s; }
.theme-item-t { display: flex; flex-direction: column; flex: 1 1 auto; }
.theme-item-t small { margin-top: 3px; font: 500 12px/1.2 var(--f-mono); letter-spacing: 0.02em; color: #94A3B8; }
.theme-menu .theme-item:hover, .theme-menu .theme-item:focus-visible { background: rgba(14,165,233,0.1) !important; color: #fff; outline: none; }
.theme-menu .theme-item:focus-visible { box-shadow: inset 0 0 0 2px #38BDF8; }
.theme-item:hover > .bi, .theme-item:focus-visible > .bi { color: #38BDF8; }
.theme-menu .theme-item:active { background: rgba(14,165,233,0.18) !important; color: #38BDF8; }
.theme-menu .theme-item[aria-pressed="true"] { color: #38BDF8; background: linear-gradient(90deg, rgba(14,165,233,0.18), rgba(14,165,233,0) 85%) !important; }
.theme-item[aria-pressed="true"] > .bi { color: currentColor; }
.theme-item[aria-pressed="true"]::after { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #38BDF8; box-shadow: 0 0 10px rgba(56,189,248,0.49); }
/* три кнопки режимов в шторке меню кабинета (телефон) */
.cab-theme-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.cab-theme-seg > button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 62px;
    padding: 8px 4px;
    margin: 0;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: #F1F5F9;
    font: 600 0.875rem/1.1 var(--f-display);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.cab-theme-seg > button > .bi { font-size: 1.15rem; line-height: 1; }
.cab-theme-seg > button > span { max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.cab-theme-seg > button:hover, .cab-theme-seg > button:focus-visible { border-color: #38BDF8; color: #38BDF8; outline: none; }
.cab-theme-seg > button[aria-pressed="true"] { border-color: #38BDF8; background: rgba(14,165,233,0.14); color: #38BDF8; box-shadow: 0 0 0 3px rgba(56,189,248,0.07); }
@media (prefers-reduced-motion: reduce) {
    .theme-menu.show, .theme-menu.show::before, .theme-menu.show > li { animation: none; }
    .theme-item, .theme-item > .bi, .cab-theme-seg > button { transition: none; }
}
