.dashboard-feed-shell {
    position: relative;
}

.dashboard-feed-button {
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(0, 184, 212, 0.24);
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72)),
        linear-gradient(135deg, rgba(0, 184, 212, 0.13), rgba(8, 145, 178, 0.06));
    color: #0891b2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 32px rgba(8, 145, 178, 0.14);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.dashboard-feed-button:hover,
.dashboard-feed-button[aria-expanded="true"] {
    transform: translateY(-2px);
    border-color: rgba(0, 184, 212, 0.55);
    box-shadow: 0 18px 42px rgba(8, 145, 178, 0.2);
}

.dashboard-feed-button i {
    font-size: 1.18rem;
}

.dashboard-feed-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    border: 2px solid #fff;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 15px;
    text-align: center;
}

.dashboard-feed-pulse {
    position: absolute;
    top: 7px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 rgba(34, 197, 94, 0.45);
    animation: dashboardFeedPulse 1.8s ease-out infinite;
}

.dashboard-feed-panel {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: min(390px, calc(100vw - 24px));
    max-height: min(620px, calc(100vh - 110px));
    overflow: hidden;
    border: 1px solid rgba(8, 145, 178, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    z-index: 1080;
}

.dashboard-feed-shell.is-open .dashboard-feed-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dashboard-feed-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(0, 184, 212, 0.16), transparent 12rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(248, 253, 255, 0.76));
    pointer-events: none;
}

.dashboard-feed-head,
.dashboard-feed-list,
.dashboard-feed-footer {
    position: relative;
    z-index: 1;
}

.dashboard-feed-head {
    padding: 1.15rem 1.2rem 0.85rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.dashboard-feed-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #0891b2;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.28rem;
}

.dashboard-feed-title {
    margin: 0;
    color: #101828;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0;
}

.dashboard-feed-subtitle {
    margin: 0.25rem 0 0;
    color: #667085;
    font-size: 0.82rem;
    line-height: 1.45;
}

.dashboard-feed-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    border-radius: 999px;
    color: #0e7490;
    background: rgba(0, 184, 212, 0.12);
    border: 1px solid rgba(0, 184, 212, 0.2);
    font-size: 0.78rem;
    font-weight: 800;
}

.dashboard-feed-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.dashboard-feed-mark-read {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(8, 145, 178, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.76);
    color: #0891b2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 8px 18px rgba(8, 145, 178, 0.1);
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.dashboard-feed-mark-read:hover {
    transform: translateY(-1px);
    background: #0891b2;
    border-color: #0891b2;
    color: #fff;
}

.dashboard-feed-shell.has-no-unread .dashboard-feed-badge,
.dashboard-feed-shell.has-no-unread .dashboard-feed-pulse,
.dashboard-feed-shell.has-no-unread .dashboard-feed-item::after {
    display: none;
}

.dashboard-feed-list {
    padding: 0.65rem;
    overflow-y: auto;
    max-height: 430px;
}

.dashboard-feed-item {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.8rem;
    padding: 0.8rem;
    border-radius: 17px;
    text-decoration: none;
    color: inherit;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-feed-item:hover {
    background: rgba(255, 255, 255, 0.82);
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.dashboard-feed-item.is-unread::after {
    content: "";
    position: absolute;
    top: 1rem;
    right: 0.9rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0891b2;
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}

.dashboard-feed-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 12px 24px rgba(8, 145, 178, 0.18);
}

.dashboard-feed-item[data-tone="cyan"] .dashboard-feed-avatar {
    background: linear-gradient(135deg, #00b8d4, #0891b2);
}

.dashboard-feed-item[data-tone="mint"] .dashboard-feed-avatar {
    background: linear-gradient(135deg, #20c997, #0f766e);
}

.dashboard-feed-item[data-tone="navy"] .dashboard-feed-avatar {
    background: linear-gradient(135deg, #344054, #101828);
}

.dashboard-feed-item[data-tone="blue"] .dashboard-feed-avatar {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
}

.dashboard-feed-item-title {
    margin: 0;
    padding-right: 0.8rem;
    color: #101828;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.35;
}

.dashboard-feed-preview {
    margin: 0.28rem 0 0;
    color: #667085;
    font-size: 0.8rem;
    line-height: 1.5;
}

.dashboard-feed-meta {
    margin-top: 0.55rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.dashboard-feed-type {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.18rem 0.52rem;
    color: #0e7490;
    background: rgba(0, 184, 212, 0.1);
    font-size: 0.68rem;
    font-weight: 800;
}

.dashboard-feed-time {
    color: #98a2b3;
    font-size: 0.72rem;
    font-weight: 700;
}

.dashboard-feed-footer {
    padding: 0.8rem 1.1rem 1.05rem;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
    color: #667085;
    font-size: 0.78rem;
    line-height: 1.45;
}

@keyframes dashboardFeedPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

@media (max-width: 575.98px) {
    .dashboard-feed-panel {
        position: fixed;
        left: 12px;
        right: 12px;
        top: 76px;
        width: auto;
        max-height: calc(100vh - 96px);
        transform-origin: top center;
        border-radius: 20px;
    }

    .dashboard-feed-list {
        max-height: calc(100vh - 260px);
    }
}
