/* Stage 2, task 10: only the list opened by the FoxLand bell. */
#fox-notification-popover.fox-notification-popover {
    display: flex;
    flex-direction: column;
    gap: 11px;
    width: min(382px, calc(100vw - 20px));
    max-height: calc(100vh - 84px);
    max-height: calc(100dvh - 84px);
    padding: 16px;
    border: 1px solid rgba(var(--fox-rgb-as4l15, 183, 124, 255), .32);
    border-radius: 16px;
    background: rgba(var(--fox-rgb-as2l1, 13, 9, 27), .68);
    color: var(--fox-text, var(--fox-tone-as4l19, #f5f1ff));
    box-shadow: 0 20px 48px rgba(var(--fox-rgb-gs3l0, 3, 2, 10), clamp(0, calc(.45 * var(--fox-glow-strength, 1)), 1)), inset 0 1px rgba(255, 255, 255, .055);
    -webkit-backdrop-filter: blur(11px);
    backdrop-filter: blur(11px);
}

#fox-notification-popover > strong {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--fox-tone-as4l20, #f8f3ff);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .015em;
    line-height: 1.3;
}

#fox-notification-popover > strong::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: none;
    border-radius: 50%;
    background: var(--fox-tone-as4l15, #bb7aff);
    box-shadow: 0 0 12px rgba(var(--fox-rgb-gs4l15, 187, 122, 255), clamp(0, calc(.75 * var(--fox-glow-strength, 1)), 1));
}

#fox-notification-popover .fox-notification-source {
    display: grid;
    gap: 10px;
    min-height: 0;
    max-height: min(420px, calc(100vh - 228px));
    max-height: min(420px, calc(100dvh - 228px));
    padding: 3px 6px 3px 2px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--fox-rgb-as4l14, 172, 105, 255), .72) rgba(var(--fox-rgb-as4l14, 172, 105, 255), .07);
    -webkit-overflow-scrolling: touch;
}

#fox-notification-popover .fox-notification-source::-webkit-scrollbar { width: 7px; }
#fox-notification-popover .fox-notification-source::-webkit-scrollbar-track { background: rgba(var(--fox-rgb-as4l14, 172, 105, 255), .07); border-radius: 8px; }
#fox-notification-popover .fox-notification-source::-webkit-scrollbar-thumb { background: rgba(var(--fox-rgb-as4l14, 172, 105, 255), .65); border-radius: 8px; }

/* The type classes in theme_dark.css use !important backgrounds. */
#fox-notification-popover .fox-notification-source .noty-block {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 66px;
    margin: 0;
    padding: 12px 53px 12px 14px;
    border: 1px solid rgba(var(--fox-rgb-as4l15, 176, 124, 247), .38);
    border-radius: 12px;
    background: transparent !important;
    color: var(--fox-tone-as1l17, #d3c9e1);
    box-shadow: 0 0 11px rgba(var(--fox-rgb-gs4l12, 139, 63, 252), clamp(0, calc(.06 * var(--fox-glow-strength, 1)), 1)), inset 0 1px rgba(255, 255, 255, .035);
    font-size: 13px;
    line-height: 1.48;
    overflow-wrap: anywhere;
    transition: border-color .2s ease, box-shadow .2s ease;
}

#fox-notification-popover .fox-notification-source .noty-block[data-fox-status="0"] {
    border-color: rgba(var(--fox-rgb-as4l15, 191, 132, 255), .78);
    color: var(--fox-tone-as4l19, #f4edff);
    box-shadow: 0 0 0 1px rgba(var(--fox-rgb-gs4l14, 172, 92, 255), clamp(0, calc(.1 * var(--fox-glow-strength, 1)), 1)), 0 0 16px rgba(var(--fox-rgb-gs4l13, 149, 71, 253), clamp(0, calc(.17 * var(--fox-glow-strength, 1)), 1)), inset 0 1px rgba(255, 255, 255, .06);
}

#fox-notification-popover .fox-notification-source .noty-block[data-fox-status="1"] .fox-notification-mark-read {
    display: none;
}

#fox-notification-popover .fox-notification-source .noty-block[data-fox-status="1"] b,
#fox-notification-popover .fox-notification-source .noty-block[data-fox-status="1"] strong {
    color: var(--fox-tone-as1l17, #d3c9e1);
}

#fox-notification-popover .fox-notification-source .noty-block[data-fox-pending] {
    opacity: .7;
}

#fox-notification-popover .fox-notification-source .noty-block a {
    color: var(--fox-tone-as4l17, #d5acff);
    text-decoration: underline;
    text-underline-offset: 2px;
}

#fox-notification-popover .fox-notification-source .noty-block a:hover,
#fox-notification-popover .fox-notification-source .noty-block a:focus-visible {
    color: var(--fox-tone-as4l19, #f1ddff);
}

#fox-notification-popover .fox-notification-source .noty-block img,
#fox-notification-popover .fox-notification-source .noty-block audio,
#fox-notification-popover .fox-notification-source .noty-block video {
    max-width: 100%;
}

#fox-notification-popover .fox-notification-source .noty-block .fox-notification-date {
    display: block;
    margin-top: 7px;
    color: var(--fox-tone-as1l14, #a99abf);
    font-size: 11px;
    line-height: 1.3;
}

#fox-notification-popover .fox-notification-source .noty-block[data-fox-status="0"] .fox-notification-date {
    color: var(--fox-tone-as1l15, #c1add8);
}

#fox-notification-popover .fox-notification-source .fox-notification-mark-read {
    top: 50%;
    right: 8px;
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
    border: 1px solid rgba(var(--fox-rgb-as4l15, 183, 124, 255), .2);
    border-radius: 10px;
    background: transparent;
    color: var(--fox-tone-as1l15, #c3acd9);
}

#fox-notification-popover .fox-notification-source .fox-notification-mark-read .fa {
    position: static;
    color: inherit;
    font-size: 14px;
}

#fox-notification-popover .fox-notification-source .fox-notification-mark-read:hover,
#fox-notification-popover .fox-notification-source .fox-notification-mark-read:focus-visible {
    border-color: rgba(var(--fox-rgb-as4l16, 200, 148, 255), .68);
    background: rgba(var(--fox-rgb-as3l13, 157, 86, 243), .12);
    color: #fff;
}

#fox-notification-popover .fox-notification-source .fox-notification-mark-read:focus-visible,
#fox-notification-popover .fox-notification-source .noty-block a:focus-visible,
#fox-notification-popover .fox-notification-all:focus-visible {
    outline: 2px solid var(--fox-tone-as4l17, #dbafff);
    outline-offset: 2px;
}

@media (hover: hover) {
    #fox-notification-popover .fox-notification-source .noty-block:hover,
    #fox-notification-popover .fox-notification-source .noty-block:focus-within {
        border-color: rgba(var(--fox-rgb-as4l16, 210, 158, 255), .92);
        box-shadow: 0 0 0 1px rgba(var(--fox-rgb-gs4l14, 172, 92, 255), clamp(0, calc(.13 * var(--fox-glow-strength, 1)), 1)), 0 0 21px rgba(var(--fox-rgb-gs4l13, 149, 71, 253), clamp(0, calc(.24 * var(--fox-glow-strength, 1)), 1));
    }
}

#fox-notification-popover .fox-notification-empty {
    min-height: 76px;
    margin: 0;
    padding: 25px 12px;
    border: 1px dashed rgba(var(--fox-rgb-as4l15, 183, 124, 255), .35);
    border-radius: 12px;
    color: var(--fox-tone-as1l15, #c0b0d2);
    text-align: center;
    font-size: 13px;
}

#fox-notification-popover .fox-notification-all {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid rgba(var(--fox-rgb-as4l15, 183, 124, 255), .3);
    border-radius: 10px;
    background: rgba(var(--fox-rgb-as3l12, 140, 70, 230), .07);
    color: var(--fox-tone-as4l18, #e6d4ff);
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    transition: border-color .2s ease, background-color .2s ease;
}

#fox-notification-popover .fox-notification-all:hover,
#fox-notification-popover .fox-notification-all:focus-visible {
    border-color: rgba(var(--fox-rgb-as4l16, 206, 160, 255), .72);
    background: rgba(var(--fox-rgb-as3l12, 140, 70, 230), .17);
    color: #fff;
}

#fox-notification-popover .fox-notification-settings {
    color: var(--fox-tone-as1l16, #c5b5d9);
}

@media (max-width: 520px) {
    #fox-notification-popover.fox-notification-popover {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 76px);
        max-height: calc(100dvh - 76px);
        padding: 13px;
    }

    #fox-notification-popover .fox-notification-source {
        max-height: min(420px, calc(100vh - 226px));
        max-height: min(420px, calc(100dvh - 226px));
    }
}

@media (prefers-reduced-motion: reduce) {
    #fox-notification-popover .fox-notification-source .noty-block,
    #fox-notification-popover .fox-notification-all { transition: none; }
}
