.kd-inapp-bell {
    position: relative;
    display: inline-block;
    z-index: 60;
}
.kd-inapp-bell-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    cursor: pointer;
    padding: 0;
}
.kd-inapp-bell-btn:hover { background: #f1f5f9; color: #0f766e; }
.kd-inapp-bell-btn[aria-expanded="true"] {
    background: #ecfdf5;
    border-color: #0f766e;
    color: #0f766e;
}
.kd-inapp-bell-icon { width: 1.15rem; height: 1.15rem; pointer-events: none; }
.kd-inapp-bell-badge {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.1rem;
    text-align: center;
    pointer-events: none;
}
.kd-inapp-bell-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 59;
    background: transparent;
}
.kd-inapp-bell.kd-inapp-bell--open .kd-inapp-bell-backdrop {
    display: block;
}
.kd-inapp-bell-panel {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    z-index: 61;
    width: min(22rem, calc(100vw - 2rem));
    max-height: 24rem;
    overflow: hidden;
    flex-direction: column;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}
.kd-inapp-bell.kd-inapp-bell--open .kd-inapp-bell-panel {
    display: flex;
}
.kd-inapp-bell-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.875rem;
}
.kd-inapp-bell-mark-all {
    border: none;
    background: none;
    color: #0f766e;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}
.kd-inapp-bell-mark-all:hover { text-decoration: underline; }
.kd-inapp-bell-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1;
}
.kd-inapp-item { border-bottom: 1px solid #f1f5f9; }
.kd-inapp-item:last-child { border-bottom: none; }
.kd-inapp-item-link {
    display: block;
    padding: 0.65rem 0.85rem;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
.kd-inapp-item-link:hover {
    background: #f8fafc;
    text-decoration: none;
}
.kd-inapp-item--unread .kd-inapp-item-link { background: #ecfdf5; }
.kd-inapp-item--unread .kd-inapp-item-link:hover { background: #d1fae5; }
.kd-inapp-item-tag {
    display: inline-block;
    margin-bottom: 0.25rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: #e2e8f0;
    color: #475569;
}
.kd-inapp-item-tag--action { background: #fef3c7; color: #92400e; }
.kd-inapp-item-title { font-size: 0.8125rem; font-weight: 600; color: #1e293b; }
.kd-inapp-item-body { margin-top: 0.2rem; font-size: 0.75rem; color: #64748b; line-height: 1.45; }
.kd-inapp-item-time { margin-top: 0.25rem; font-size: 0.6875rem; color: #94a3b8; }
.kd-inapp-item-action {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0f766e;
}
.kd-inapp-bell-empty {
    margin: 0;
    padding: 1rem 0.85rem;
    font-size: 0.8125rem;
    color: #94a3b8;
}
.kd-inapp-bell-foot {
    margin: 0;
    padding: 0.5rem 0.85rem;
    font-size: 0.6875rem;
    color: #94a3b8;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}
.fi-topbar .kd-inapp-bell-btn {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
}
.fi-topbar .kd-inapp-bell-btn:hover,
.fi-topbar .kd-inapp-bell-btn[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: inherit;
}
.fi-topbar .kd-inapp-bell-panel { color: #334155; }
