/* Nebula Notifications · batch 14 */

.notifications-body {
    min-height: 100vh;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.notifications-topbar {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 58px;
    padding: 0 28px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.notifications-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
}

.notifications-brand .brand-mark {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: linear-gradient(135deg, #5865f2, #8b5cf6);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
}

.notifications-brand .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.notifications-brand .brand-text strong {
    color: #f0f2f6;
    font-size: 19px;
    letter-spacing: .04em;
}

.notifications-brand .brand-text small {
    color: #6f7682;
    font-size: 12px;
    letter-spacing: .18em;
}

.notifications-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.notifications-nav a {
    padding: 6px 9px;
    border-radius: 6px;
    color: #8d949f;
    font-size: 14px;
    text-decoration: none;
}

.notifications-nav a:hover,
.notifications-nav a.active {
    background: rgba(88, 101, 242, .1);
    color: #c7cdff;
}

.notifications-top-actions {
    margin-left: auto;
}

.notifications-count {
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(88, 101, 242, .14);
    color: #aeb5ff;
    font-size: 8.5px;
}

.notifications-shell {
    width: min(760px, calc(100% - 36px));
    margin: 0 auto;
    padding: 34px 0 56px;
}

.notifications-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.notifications-head .eyebrow {
    margin: 0 0 6px;
    color: #aeb5ff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .2em;
}

.notifications-head h1 {
    margin: 0;
    color: #f1f3f7;
    font-size: clamp(24px, 4vw, 34px);
}

.notifications-head p:last-child {
    margin: 7px 0 0;
    color: #8b929e;
    font-size: 10.5px;
}

.notifications-list {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 10px;
    background: rgba(255, 255, 255, .018);
}

.notification-item {
    display: flex;
    gap: 9px;
    padding: 12px 13px;
    border-bottom: 1px solid rgba(255, 255, 255, .045);
}

.notification-item:last-child {
    border-bottom: 0;
}

.notification-item.unread {
    background: rgba(88, 101, 242, .045);
}

.notification-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    margin-top: 6px;
    border-radius: 50%;
    background: transparent;
}

.notification-item.unread .notification-dot {
    background: #8b5cf6;
}

.notification-main {
    flex: 1;
    min-width: 0;
}

.notification-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.notification-title a,
.notification-title strong {
    color: #dfe3ea;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.notification-title a:hover {
    color: #aeb5ff;
}

.notification-title time {
    margin-left: auto;
    color: #656c77;
    font-size: 8px;
}

.notification-main p {
    margin: 5px 0 0;
    color: #9aa1ad;
    font-size: 10px;
    line-height: 1.65;
    white-space: pre-wrap;
}

.notification-read-form {
    margin-top: 5px;
}

.notifications-link-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #737a85;
    font-size: 8.5px;
    cursor: pointer;
}

.notifications-link-button:hover {
    color: #aeb5ff;
}

.notification-saved {
    margin-bottom: 11px;
    padding: 8px 10px;
    border: 1px solid rgba(74, 222, 128, .2);
    border-radius: 7px;
    background: rgba(74, 222, 128, .07);
    color: #8ee6ae;
    font-size: 10px;
}

.notification-settings-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.notification-preference {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 8px;
    background: rgba(255, 255, 255, .02);
}

.notification-preference span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.notification-preference strong {
    color: #dfe3ea;
    font-size: 10.5px;
}

.notification-preference small {
    color: #717884;
    font-size: 8.5px;
}

.notification-preference input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #5865f2;
}

.notification-settings-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
}

.notifications-empty {
    padding: 40px 20px;
    border: 1px dashed rgba(255, 255, 255, .1);
    border-radius: 10px;
    text-align: center;
}

.notifications-empty p {
    margin: 0 0 12px;
    color: #7b828e;
    font-size: 10.5px;
}

.notifications-error {
    margin-bottom: 11px;
    padding: 8px 10px;
    border: 1px solid rgba(242, 155, 167, .25);
    border-radius: 7px;
    background: rgba(242, 155, 167, .07);
    color: #f2aebb;
    font-size: 10px;
}

.notifications-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 14px;
}

.notifications-pagination a {
    min-width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 5px;
    color: #8d949f;
    font-size: 9.5px;
    text-decoration: none;
}

.notifications-pagination a:hover,
.notifications-pagination a.active {
    border-color: rgba(88, 101, 242, .4);
    background: rgba(88, 101, 242, .1);
    color: #c7cdff;
}

.notifications-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    width: min(760px, calc(100% - 36px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    color: #626975;
    font-size: 8.5px;
}

.notifications-footer a {
    color: #8d949f;
    text-decoration: none;
}

@media (max-width: 620px) {
    .notifications-topbar {
        padding: 0 14px;
        gap: 10px;
    }

    .notifications-nav a {
        padding: 5px 6px;
        font-size: 10px;
    }

    .notifications-shell,
    .notifications-footer {
        width: calc(100% - 22px);
    }

    .notifications-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* 跟随全站主题，禁止通知页继续写死暗色背景 */
.notifications-body {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.notifications-topbar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.notifications-brand .brand-text strong {
    color: var(--text-primary);
}

.notifications-brand .brand-text small {
    color: var(--text-muted);
}

.notifications-nav a {
    color: var(--text-soft);
    font-size: 14px;
}

.notifications-nav a:hover,
.notifications-nav a.active {
    color: var(--text-primary);
}

.notifications-head h1,
.notifications-title a,
.notifications-title strong,
.notification-main p,
.notifications-empty p,
.notifications-count {
    color: var(--text-primary);
}

.notification-item {
    border-color: var(--border-color);
}

.notifications-footer {
    border-color: var(--border-color);
    color: var(--text-muted);
}
