/* Header bell, notifications list and Settings → Notifications. */

/* ---------- bell ---------- */
.ac-bell .dropdown-menu {
    background: var(--ac-surface, #fff);
    max-width: calc(100vw - 24px);
}
.ac-bell ul li a {
    border-top: 1px solid var(--ac-border, #e5e8f0);
    color: var(--ac-text, #334155);
    font-weight: 400;
}
.ac-bell ul li a strong {
    font-weight: 500;
    font-size: 13px;
    line-height: 1.4;
    white-space: normal;
}
.ac-bell ul li a time {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--ac-muted, #64748b);
}
.ac-bell ul li.is-unread a {
    background: var(--ac-blue-50);
    box-shadow: inset 3px 0 0 var(--ac-blue);
}
.ac-bell ul li.is-unread a strong {
    font-weight: 700;
    color: var(--ac-ink, #0f172a);
}
.ac-bell ul li a:hover,
.ac-bell ul li a:focus-visible {
    background: var(--ac-blue-100);
}
.ac-bell .ac-bell-empty {
    padding: 16px 20px;
    font-size: 13px;
    color: var(--ac-muted, #64748b);
}

/* ---------- notifications page ---------- */
tr.ac-nt-unread td {
    background: var(--ac-amber-50, #fffbeb);
    color: #1f2937;
}
tr.ac-nt-unread .ac-nt-message {
    font-weight: 700;
    color: var(--ac-ink, #0f172a);
}
/* The light-primary row hover still shows over an unread row. */
.table > tbody > tr.ac-nt-unread:hover > td {
    background: #eaf3ff;
}
.ac-nt-message {
    color: var(--ac-text, #334155);
}
.ac-nt-message:hover {
    color: var(--ac-blue-text);
}
td time[title] {
    cursor: help;
    border-bottom: 1px dotted var(--ac-faint, #94a3b8);
}

/* ---------- Settings → Notifications ---------- */
.ac-nt-head {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.ac-nt-title {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: var(--ac-ink, #0f172a);
}
.ac-nt-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--ac-text, #334155);
}
.ac-nt-check input {
    width: 18px;
    height: 18px;
    flex: none;
    accent-color: var(--ac-blue);
}
.ac-nt-rule {
    margin: 18px 0;
    border-color: var(--ac-border, #e5e8f0);
}
.ac-nt-log {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--ac-border, #e5e8f0);
    font-size: 13px;
}
.ac-nt-log-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ac-nt-log time {
    color: var(--ac-muted, #64748b);
    white-space: nowrap;
}
.ac-nt-test-result {
    white-space: pre-line;
}
.ac-nt-save {
    position: sticky;
    bottom: 0;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    margin-top: 18px;
    background: var(--ac-bg, #f4f6fb);
}

@media (max-width: 575.98px) {
    .ac-bell .dropdown-menu {
        min-width: 0;
        width: calc(100vw - 24px);
    }
}
