/* Top bar buttons and the notification window.
   The bar itself keeps its glass surface; only what sits on it changes. */

:root {
    --tb-accent: var(--accent-solid);
    --tb-accent-2: color-mix(in srgb, var(--accent-solid) 55%, #8b7cf6);
    --tb-red: #e5484d;
    --tb-amber: #d98a10;
    --tb-green: #1f9d6b;
    --tb-glass: rgba(255, 255, 255, .5);
    --tb-glass-strong: rgba(255, 255, 255, .72);
    --tb-stroke: rgba(255, 255, 255, .75);
    --tb-spring: cubic-bezier(.34, 1.56, .64, 1);
    --tb-ease: cubic-bezier(.22, 1, .36, 1);
}

html[data-theme="dark"] {
    --tb-red: #ff6b70;
    --tb-amber: #f5b13d;
    --tb-green: #3ccf91;
    --tb-glass: rgba(255, 255, 255, .07);
    --tb-glass-strong: rgba(255, 255, 255, .11);
    --tb-stroke: rgba(255, 255, 255, .14);
}

/* ---------- glass buttons ---------- */

.top-bar .top-bar-icon-btn {
    position: relative;
    overflow: visible;
    border-radius: 14px;
    border: 1px solid var(--tb-stroke);
    background: linear-gradient(180deg, var(--tb-glass-strong), var(--tb-glass));
    color: var(--tb-accent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .6),
        0 4px 12px rgba(38, 52, 112, .08);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    transition:
        transform .35s var(--tb-spring),
        box-shadow .3s var(--tb-ease),
        border-color .3s var(--tb-ease),
        background .3s var(--tb-ease),
        color .3s var(--tb-ease);
}

html[data-theme="dark"] .top-bar .top-bar-icon-btn {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .08),
        0 4px 12px rgba(0, 0, 0, .25);
}

.top-bar .top-bar-icon-btn:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--tb-accent) 45%, transparent);
    background: linear-gradient(180deg, var(--tb-glass-strong), color-mix(in srgb, var(--tb-accent) 10%, var(--tb-glass)));
    color: var(--tb-accent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .6),
        0 8px 20px color-mix(in srgb, var(--tb-accent) 24%, transparent),
        0 0 0 4px color-mix(in srgb, var(--tb-accent) 10%, transparent);
}

.top-bar .top-bar-icon-btn:active {
    transform: scale(.92);
}

.top-bar .top-bar-icon-btn > i {
    transition: transform .45s var(--tb-spring);
}

.top-bar .top-bar-icon-btn .ui-ripple {
    display: none;
}

.top-bar .top-bar-hamburger:hover > i {
    transform: scaleX(.82);
}

.top-bar #authLogoutBtn {
    color: var(--tb-red);
}

.top-bar #authLogoutBtn:hover > i {
    transform: translateX(-3px);
}

/* ---------- theme: a sun that turns into a crescent moon ---------- */

.theme-sunmoon {
    width: 24px;
    height: 24px;
    overflow: visible;
    flex: none;
    transform: rotate(0deg);
    transition: transform .7s var(--tb-spring);
}

.theme-sunmoon-core {
    fill: var(--tb-amber);
    r: 5px;
    transition:
        r .6s var(--tb-spring),
        fill .5s var(--tb-ease);
}

.theme-sunmoon-cut {
    cx: 30px;
    cy: 2px;
    transition:
        cx .6s var(--tb-ease),
        cy .6s var(--tb-ease);
}

.theme-sunmoon-rays {
    stroke: var(--tb-amber);
    stroke-width: 2;
    stroke-linecap: round;
    transform-origin: 12px 12px;
    transition:
        transform .6s var(--tb-spring),
        opacity .35s var(--tb-ease);
    animation: tb-rays-spin 14s linear infinite;
}

.theme-sunmoon-star {
    fill: #c9d4ff;
    transform-box: fill-box;
    transform-origin: center;
    transform: scale(0);
    transition: transform .5s var(--tb-spring);
}

.top-bar-theme-btn:hover .theme-sunmoon-rays {
    animation-duration: 3s;
}

.top-bar-theme-btn:active .theme-sunmoon {
    scale: .85;
}

html[data-theme="dark"] .theme-sunmoon {
    transform: rotate(-35deg);
    animation: tb-moon-sway 5s ease-in-out .7s infinite;
}

html[data-theme="dark"] .theme-sunmoon-core {
    fill: #c9d4ff;
    r: 8px;
}

html[data-theme="dark"] .theme-sunmoon-cut {
    cx: 17px;
    cy: 7px;
}

html[data-theme="dark"] .theme-sunmoon-rays {
    opacity: 0;
    transform: scale(.4) rotate(90deg);
}

html[data-theme="dark"] .theme-sunmoon-star {
    transform: scale(1);
    animation: tb-twinkle 2.4s ease-in-out .6s infinite;
}

html[data-theme="dark"] .theme-sunmoon-star.second {
    transition-delay: .12s;
    animation-delay: 1.4s;
}

@keyframes tb-rays-spin {
    to {
        rotate: 360deg;
    }
}

@keyframes tb-moon-sway {
    0%,
    100% {
        transform: rotate(-35deg);
    }
    50% {
        transform: rotate(-22deg);
    }
}

@keyframes tb-twinkle {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(.45);
        opacity: .5;
    }
}

/* ---------- language ---------- */

.top-bar .top-bar-lang-wrap > #langBtnMain {
    width: auto;
    gap: 8px;
    padding: 0 8px 0 10px;
}

.top-bar #langBtnMain .flag-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--tb-glass-strong);
    box-shadow: 0 0 0 1px var(--tb-stroke);
    animation: none;
}

.top-bar #langBtnMain .flag-icon > svg {
    width: 42px;
    height: 28px;
}

.top-bar-lang-name {
    color: var(--text1);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.top-bar-lang-chevron {
    color: var(--text2);
    font-size: 15px;
    transition: transform .35s var(--tb-spring);
}

.top-bar #langBtnMain:hover .top-bar-lang-chevron {
    transform: translateY(2px);
}

.top-bar #langBtnMain.open .top-bar-lang-chevron {
    transform: rotate(180deg);
}

/* ---------- search ---------- */

.top-bar-search-hint,
.top-bar-search-key {
    display: none;
}

.top-bar .top-bar-search-toggle:hover > i {
    transform: rotate(-15deg) scale(1.12);
}

@media (min-width: 761px) {
    .top-bar .top-bar-search:not(.open) .top-bar-search-toggle {
        width: 190px;
        justify-content: flex-start;
        gap: 8px;
        padding: 0 12px;
        cursor: text;
        transition:
            width .45s var(--tb-ease),
            box-shadow .3s var(--tb-ease),
            border-color .3s var(--tb-ease),
            background .3s var(--tb-ease);
    }

    .top-bar .top-bar-search:not(.open) .top-bar-search-toggle:hover {
        width: 220px;
        transform: none;
    }

    .top-bar .top-bar-search:not(.open) .top-bar-search-hint {
        display: block;
        flex: 1;
        color: var(--text2);
        font-size: 14px;
        font-weight: 400;
        text-align: start;
    }

    .top-bar .top-bar-search:not(.open) .top-bar-search-key {
        display: grid;
        place-items: center;
        width: 24px;
        height: 24px;
        border-radius: 7px;
        border: 1px solid var(--tb-stroke);
        background: var(--tb-glass);
        color: var(--text2);
        font-family: inherit;
        font-size: 12px;
    }

    .top-bar .top-bar-search-input {
        border-radius: 14px;
        background: var(--tb-glass-strong);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }
}

/* ---------- account ---------- */

.top-bar .top-bar-avatar-btn.has-letter {
    padding: 3px;
    border: 0;
    border-radius: 50%;
    background: conic-gradient(from 200deg, var(--tb-accent), var(--tb-accent-2), #4fb3e0, var(--tb-accent));
}

.top-bar .top-bar-avatar-btn.has-letter:hover {
    transform: translateY(-2px) rotate(-6deg);
    background: conic-gradient(from 200deg, var(--tb-accent), var(--tb-accent-2), #4fb3e0, var(--tb-accent));
}

.top-bar .top-bar-avatar-btn.has-letter > i {
    display: none;
}

.top-bar-avatar-letter {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .85);
    background: linear-gradient(135deg, var(--tb-accent), var(--tb-accent-2));
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

html[data-theme="dark"] .top-bar-avatar-letter {
    border-color: rgba(20, 26, 38, .9);
}

.top-bar-avatar-letter[hidden] {
    display: none;
}

.top-bar-avatar-dot {
    display: none;
}

.top-bar .top-bar-avatar-btn.has-letter .top-bar-avatar-dot {
    display: block;
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .9);
    background: var(--tb-green);
}

/* ---------- bell ---------- */

.top-bar .notification-bell-btn.has-unread > i {
    transform-origin: 50% 10%;
    animation: tb-ring 2.6s var(--tb-ease) infinite;
}

.top-bar .notification-bell-btn:hover > i {
    transform-origin: 50% 10%;
    animation: tb-ring .9s var(--tb-ease);
}

.top-bar .top-bar-notifications.open .notification-bell-btn {
    border-color: transparent;
    background: linear-gradient(135deg, var(--tb-accent), var(--tb-accent-2));
    color: #fff;
    box-shadow: 0 8px 22px color-mix(in srgb, var(--tb-accent) 40%, transparent);
}

@keyframes tb-ring {
    0%,
    60%,
    100% {
        transform: rotate(0);
    }
    64% {
        transform: rotate(16deg);
    }
    70% {
        transform: rotate(-14deg);
    }
    76% {
        transform: rotate(10deg);
    }
    82% {
        transform: rotate(-6deg);
    }
    88% {
        transform: rotate(2deg);
    }
}

.top-bar .notification-count-badge {
    top: -6px;
    inset-inline-end: -6px;
    width: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 999px;
    background: linear-gradient(135deg, #ff6b6b, #e5484d);
    box-shadow: none;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    transform: scale(0);
    transition:
        opacity .2s ease,
        transform .45s var(--tb-spring);
}

html[data-theme="dark"] .top-bar .notification-count-badge {
    border-color: rgba(20, 26, 38, .9);
}

.top-bar .notification-count-badge:empty {
    min-width: 12px;
    width: 12px;
    height: 12px;
    padding: 0;
    top: 4px;
    inset-inline-end: 4px;
}

.top-bar .notification-count-badge.visible {
    transform: scale(1);
}

.top-bar .notification-count-badge.visible::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    border: 2px solid #e5484d;
    animation: tb-pulse 1.8s var(--tb-ease) infinite;
}

@keyframes tb-pulse {
    from {
        transform: scale(1);
        opacity: .7;
    }
    to {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* ---------- notification window ---------- */

.top-bar .notifications-panel {
    width: min(400px, calc(100vw - 24px));
    max-height: min(600px, calc(100dvh - 110px));
    display: flex;
    flex-direction: column;
    padding: 0;
    border-radius: 24px;
    overflow: visible;
    transform: translateY(-10px) scale(.94);
    transition:
        opacity .25s ease,
        transform .5s var(--tb-spring),
        visibility .25s;
}

.top-bar .top-bar-notifications.open .notifications-panel {
    transform: none;
}

.top-bar .notifications-panel::before {
    content: '';
    position: absolute;
    top: -7px;
    inset-inline-end: 15px;
    width: 14px;
    height: 14px;
    border-top: 1px solid var(--theme-stroke, rgba(255, 255, 255, .72));
    border-left: 1px solid var(--theme-stroke, rgba(255, 255, 255, .72));
    background: var(--theme-glass, rgba(255, 255, 255, .9));
    transform: rotate(45deg);
}

html[data-theme="dark"] .top-bar .notifications-panel::before {
    border-color: rgba(255, 255, 255, .13);
    background: rgba(34, 42, 55, .95);
}

.top-bar .notifications-panel-head {
    gap: 12px;
    padding: 16px 16px 10px;
    border-bottom: 0;
}

.top-bar .notifications-panel-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--tb-accent), var(--tb-accent-2));
    color: #fff;
    font-size: 22px;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--tb-accent) 35%, transparent);
}

.top-bar .notifications-panel-icon > i {
    transform-origin: 50% 10%;
    animation: tb-ring 3s var(--tb-ease) infinite;
}

.notifications-panel-title {
    flex: 1;
    min-width: 0;
}

.top-bar .notifications-panel-head h2 {
    font-size: 17px;
}

.top-bar .notifications-panel-head p {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
}

.notifications-live-dot {
    position: relative;
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tb-red);
}

.notifications-live-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: tb-pulse 1.6s var(--tb-ease) infinite;
}

.notifications-panel-close {
    flex: none;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid var(--tb-stroke);
    background: var(--tb-glass);
    color: var(--text2);
    font-size: 17px;
    cursor: pointer;
    transition:
        transform .35s var(--tb-spring),
        background .25s var(--tb-ease),
        color .25s var(--tb-ease);
}

.notifications-panel-close:hover {
    transform: rotate(90deg);
    background: color-mix(in srgb, var(--tb-red) 14%, transparent);
    color: var(--tb-red);
}

/* tabs */

.notifications-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin: 2px 16px 10px;
    padding: 4px;
    border-radius: 14px;
    border: 1px solid var(--tb-stroke);
    background: var(--tb-glass);
}

.notifications-tabs[hidden] {
    display: none;
}

.notifications-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 6px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text2);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background .3s var(--tb-ease),
        color .3s var(--tb-ease),
        box-shadow .3s var(--tb-ease);
}

.notifications-tab em {
    min-width: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--tb-accent) 13%, transparent);
    color: var(--tb-accent);
    font-style: normal;
    font-size: 11px;
    line-height: 18px;
}

.notifications-tab.active {
    background: var(--tb-glass-strong);
    color: var(--text1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .6),
        0 3px 10px rgba(40, 50, 120, .12);
}

.notifications-tab.active em {
    background: linear-gradient(135deg, var(--tb-accent), var(--tb-accent-2));
    color: #fff;
}

/* list */

.top-bar .notifications-panel-list {
    flex: 1 1 auto;
    max-height: none;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 2px 16px 16px;
}

.top-bar .notifications-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top-bar .notifications-group-title {
    margin: 4px 2px 0;
}

.notif-card {
    --notif-tone: var(--tb-accent);
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--notif-tone) 30%, var(--tb-stroke));
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--notif-tone) 12%, transparent), transparent 70%),
        var(--tb-glass-strong);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .55),
        0 6px 18px color-mix(in srgb, var(--notif-tone) 13%, transparent);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    text-align: start;
    animation: tb-card-in .55s var(--tb-spring) both;
    animation-delay: calc(var(--notif-i, 0) * 60ms + 80ms);
    transition:
        transform .35s var(--tb-spring),
        box-shadow .3s var(--tb-ease);
}

html[data-theme="dark"] .notif-card {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .06),
        0 6px 18px rgba(0, 0, 0, .22);
}

.notif-card:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .55),
        0 12px 26px color-mix(in srgb, var(--notif-tone) 22%, transparent);
}

@keyframes tb-card-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.97);
    }
}

.notif-card.danger {
    --notif-tone: var(--tb-red);
}

.notif-card.warning {
    --notif-tone: var(--tb-amber);
}

.notif-card.good {
    --notif-tone: var(--tb-green);
}

.notif-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--notif-tone) 72%, #fff), var(--notif-tone));
    color: #fff;
    font-size: 21px;
    box-shadow: 0 6px 14px color-mix(in srgb, var(--notif-tone) 35%, transparent);
}

.notif-card.danger .notif-icon > i {
    animation: tb-shake 2.4s var(--tb-ease) infinite;
}

@keyframes tb-shake {
    0%,
    80%,
    100% {
        transform: none;
    }
    84% {
        transform: translateX(-2px);
    }
    88% {
        transform: translateX(2px);
    }
    92% {
        transform: translateX(-1px);
    }
}

.notif-icon-avatar {
    border-radius: 50%;
    font-size: 17px;
    font-weight: 700;
}

.notif-body {
    flex: 1;
    min-width: 0;
}

.notif-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notif-head b {
    flex: 1;
    min-width: 0;
    color: var(--text1);
    font-size: 14px;
}

.notif-body p {
    margin: 2px 0 0;
    color: var(--text2);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.75;
}

.notif-body p .timer-chip {
    display: none;
}

.notif-tag {
    flex: none;
    display: inline-block;
    padding: 0 9px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--notif-tone) 32%, transparent);
    background: color-mix(in srgb, var(--notif-tone) 13%, transparent);
    color: var(--notif-tone);
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
}

.notif-timer {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 9px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--tb-green) 13%, transparent);
    color: var(--tb-green);
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    direction: ltr;
}

.notif-timer-dot {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tb-green);
}

.notif-timer-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: tb-pulse 1.6s var(--tb-ease) infinite;
}

.notif-meter {
    display: block;
    height: 8px;
    margin: 8px 0 2px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--notif-tone) 15%, transparent);
    overflow: hidden;
}

.notif-meter > i {
    display: block;
    width: var(--notif-pct);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, color-mix(in srgb, var(--notif-tone) 60%, #fff), var(--notif-tone));
    animation: tb-fill 1.1s var(--tb-ease) .35s both;
}

@keyframes tb-fill {
    from {
        width: 0;
    }
}

.notif-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    margin-top: 8px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--notif-tone) 78%, #fff), var(--notif-tone));
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 14px color-mix(in srgb, var(--notif-tone) 30%, transparent);
    transition: transform .3s var(--tb-spring);
}

.notif-action:hover {
    transform: translateY(-1px) scale(1.03);
}

.notif-body > .notif-tag {
    margin-top: 6px;
}

/* empty */

.top-bar .notifications-empty {
    gap: 4px;
    min-height: 0;
    padding: 18px 16px 26px;
    font-size: 13px;
}

.top-bar .notifications-empty b {
    color: var(--text1);
    font-size: 15px;
}

.notifications-empty-icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--tb-green) 13%, transparent);
    color: var(--tb-green);
    font-size: 36px;
    animation: tb-float 3s ease-in-out infinite;
}

.top-bar .notifications-empty .notifications-empty-icon > i {
    width: auto;
    height: auto;
    background: none;
    color: inherit;
    font-size: inherit;
}

@keyframes tb-float {
    50% {
        transform: translateY(-6px);
    }
}

/* ---------- phone ---------- */

@media (max-width: 760px) {
    .top-bar .top-bar-lang-name,
    .top-bar .top-bar-lang-chevron {
        display: none;
    }

    .top-bar .notifications-panel,
    .top-bar .top-bar-notifications .notifications-panel {
        position: fixed;
        top: 74px;
        inset-inline: 0;
        width: auto;
        max-height: calc(100dvh - 96px);
        transform-origin: top center;
        transform: translateY(-16px);
    }

    .top-bar .notifications-panel::before {
        inset-inline-end: 66px;
    }
}

/* ---------- Pashto sizes ---------- */

html[lang="ps"] .top-bar-lang-name,
html[lang="ps"] .top-bar .top-bar-search-hint {
    font-size: 16.5px;
}

html[lang="ps"] .notifications-tab {
    font-size: 15.5px;
}

html[lang="ps"] .notif-head b {
    font-size: 17px;
}

html[lang="ps"] .notif-body p {
    font-size: 16px;
}

html[lang="ps"] .notif-tag,
html[lang="ps"] .notifications-tab em {
    font-size: 13.5px;
}

html[lang="ps"] .notif-action {
    font-size: 16px;
}

html[lang="ps"] .top-bar .notifications-empty b {
    font-size: 18px;
}

@media (prefers-reduced-motion: reduce) {
    .top-bar .top-bar-icon-btn,
    .top-bar .top-bar-icon-btn > i,
    .top-bar .notifications-panel,
    .notif-card,
    .notif-card *,
    .notifications-panel-icon > i,
    .notifications-live-dot::after,
    .notifications-empty-icon,
    .theme-sunmoon,
    .theme-sunmoon *,
    .notification-count-badge,
    .notification-count-badge::after {
        animation: none !important;
        transition: none !important;
    }
}

/* The way back to the server panel; it appears only on the server computer. */
.top-bar .top-bar-station-btn {
    order: 5;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    background: #14665f;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: filter .2s;
}

.top-bar .top-bar-station-btn[hidden] {
    display: none;
}

.top-bar .top-bar-station-btn i {
    color: #fff;
    font-size: 18px;
}

.top-bar .top-bar-station-btn:hover {
    filter: brightness(1.12);
}

.top-bar .top-bar-station-btn:focus-visible {
    outline: 3px solid #5fd3c5;
    outline-offset: 2px;
}

html[data-theme="dark"] .top-bar .top-bar-station-btn {
    background: #1b8279;
}
