/* Athos — compact notifications. All changes scoped to notification views. */
#nav-main #notification_list {
    width: min(416px, calc(100vw - 32px));
    min-width: 0;
}
#nav-main #notification_list > .dropdown-contents {
    box-sizing: border-box;
    width: 100%; max-width: 100%; max-height: min(480px, 70vh);
    display: flex; flex-direction: column;
    padding: 0; overflow: hidden;
    border: 1px solid #c5d3d7; border-radius: 4px;
    background: #fff; box-shadow: 0 8px 24px #101d291a;
}
#notification_list .header {
    flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center;
    justify-content: space-between; gap: 8px 16px;
    padding: 12px 16px; border-radius: 0; border-bottom: 1px solid #c5d3d7;
    background: #e4eef0; color: #204c5c; font-size: 13px;
    text-transform: none; letter-spacing: 0;
}
#notification_list .header_settings { float: none; font-size: 12px; line-height: 1.4; }
#notification_list .header_settings a { color: #285b6b; }
#notification_list .dropdown-contents > ul {
    flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain;
    list-style: none; margin: 0; padding: 0;
}
#notification_list li.athos-notification-row {
    float: none; display: block; position: relative; margin: 0; padding: 0;
    border-radius: 0; border-bottom: 1px solid #e3eaec; background: #fff;
}
#notification_list li.athos-notification-row:last-child { border-bottom: 0; }
#notification_list li.athos-notification-row.bg2 { background: #edf4f5; box-shadow: inset 3px 0 #285b6b; }
#nav-main #notification_list .notification-block {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 16px; margin: 0; border-radius: 0;
    white-space: normal; color: #243946; font-weight: 400;
    line-height: 1.4; text-decoration: none; min-height: 0;
}
#nav-main #notification_list li.bg2 .notification-block { padding-right: 48px; }
#nav-main #notification_list a.notification-block:hover { background: #f0f5f6; }
#nav-main #notification_list a.notification-block:focus-visible { outline: 2px solid #285b6b; outline-offset: -2px; }
.notification_list .athos-notification-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 40px; width: 40px; height: 40px; overflow: hidden;
    background: #e4eef0; color: #285b6b; border-radius: 50%;
    border: 1px solid #d5e0e3; box-sizing: border-box;
}
.notification_list .athos-notification-avatar img,
#page-body .notification_list .athos-notification-avatar img {
    display: block; float: none; margin: 0; padding: 0; border: 0;
    width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: cover; border-radius: 0;
}
.notification_list .athos-notification-avatar .icon { color: #285b6b; font-size: 16px; margin: 0; }
#notification_list .notification_text { flex: 1; min-width: 0; overflow: hidden; }
#notification_list .notification_text p { margin: 0; overflow-wrap: anywhere; white-space: normal; }
#notification_list .notification-title { color: #243946; font-size: 13px; line-height: 1.45; }
#notification_list .notification-title strong { color: #204c5c; font-weight: 650; }
#notification_list .notification_text .notification-reference { margin-top: 4px; font-size: 12px; color: #285b6b; }
#notification_list .notification_text :is(.notification-forum, .notification-reason) { margin-top: 4px; font-size: 12px; color: #526a79; }
#notification_list .notification_text .notification-time { margin-top: 8px; font-size: 11px; color: #647782; line-height: 1.3; }
#nav-main #notification_list a.mark_read {
    position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    padding: 0; border-radius: 4px; color: #285b6b;
}
#nav-main #notification_list a.mark_read:hover { background: #d8e8eb; }
#notification_list a.mark_read .icon { margin: 0; font-size: 16px; color: #285b6b; }
#notification_list .footer { flex: 0 0 auto; background: #fff; border-top: 1px solid #c5d3d7; }
#notification_list .footer a { padding: 12px 16px; color: #285b6b; font-size: 12px; font-weight: 600; }
#notification_list .footer a:hover { background: #edf4f5; }
#notification_list li.no_notifications { padding: 24px 16px; }
/* Full list in the account panel. Keep native table structure and read controls. */
#page-body .athos-account-shell .notification_list .list-inner { gap: 12px; align-items: flex-start; }
#page-body .athos-account-shell .notification_list li.row.bg3 { background: #edf4f5; box-shadow: inset 3px 0 #285b6b; }
#page-body .athos-account-shell .notification_list .notifications { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#page-body .athos-account-shell .notification_list .notifications_title { color: #243946; margin: 0; }
#page-body .athos-account-shell .notification_list .notifications_title strong { color: #204c5c; }
#page-body .athos-account-shell .notification_list .notifications_time { color: #647782; margin: 8px 0 0; font-size: 11px; }
@media (max-width: 480px) {
    #nav-main #notification_list .notification-block { padding: 12px; gap: 8px; }
    #nav-main #notification_list li.bg2 .notification-block { padding-right: 40px; }
    #nav-main #notification_list a.mark_read { right: 4px; }
    .notification_list .athos-notification-avatar { flex-basis: 32px; width: 32px; height: 32px; }
}
