#group-notifications .notification-bell {position:relative;}
.notification-badge {display:grid;place-items:center;position:absolute;right:-5px;top:-6px;min-width:20px;height:20px;padding:0 4px;background:#af8550;color:white;border:2px solid #fff;border-radius:12px;font:700 10px/1 system-ui;}
dialog#notification-panel:not([open]) {display:none;}
dialog#notification-panel[open] {position:fixed;inset:76px 16px auto auto;margin:0;width:min(420px,calc(100% - 32px));max-width:calc(100% - 32px);max-height:calc(100dvh - 100px);display:flex;flex-direction:column;overflow:hidden;padding:0;border:1px solid #dbe3d5;border-radius:20px;background:#f8faf5;color:#173f35;box-shadow:0 12px 48px #10291d35;font:16px/1.5 system-ui,-apple-system,sans-serif;}
#notification-panel::backdrop {background:#10291d66;}
.notification-sheet-head {display:flex;justify-content:space-between;align-items:center;gap:14px;padding:20px 20px 12px;flex:none;}
.notification-sheet-head>div {min-width:0;}
.notification-sheet-head h2 {font:700 22px/1.3 system-ui;margin:0;letter-spacing:-.4px;}
.notification-sheet-head p {font-size:13px;color:#738070;margin:4px 0 0;}
#notification-close {background:#edf1e7;color:#173f35;border:0;border-radius:50%;width:44px;height:44px;flex:none;font-size:25px;padding:0;}
.notification-filters {display:flex;gap:8px;padding:4px 20px 14px;flex:none;}
.notification-filters button {border:1px solid #d7e0d1;border-radius:22px;padding:9px 18px;min-height:44px;background:#fff;color:#566b5b;font-weight:650;font-size:14px;}
.notification-filters button[aria-pressed=true] {background:#173f35;color:white;border-color:#173f35;}
.notification-cards {overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:0 14px 10px;flex:1 1 auto;}
#notification-panel .notification-card {display:grid;grid-template-columns:38px minmax(0,1fr) 14px;gap:12px;align-items:center;background:#fff;color:#173f35;border:1px solid #e4eadd;border-radius:14px;padding:14px 12px;margin:0 0 8px;min-height:88px;text-decoration:none;font-weight:400;}
#notification-panel .notification-unread {background:#edf4e8;border-color:#d8e5cf;}
.notification-card-icon {width:38px;height:38px;border-radius:12px;background:#e3eddc;display:grid;place-items:center;}
.notification-card-icon svg {width:22px;height:22px;}
.notification-card-copy {min-width:0;overflow-wrap:anywhere;}
.notification-card-copy strong {display:block;font-size:14px;font-weight:700;line-height:1.4;}
.notification-group {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:15px;font-weight:550;line-height:1.4;margin:3px 0;}
.notification-card-copy small {display:block;color:#71816e;font-size:12px;line-height:1.4;}
.notification-card-end {display:grid;gap:6px;justify-items:center;font-size:22px;color:#87957e;}
.notification-card-end i {width:7px;height:7px;border-radius:50%;background:#af8550;}
.notification-empty {text-align:center;padding:26px 16px;color:#65775e;}
.notification-empty>span {display:inline-grid;place-items:center;width:48px;height:48px;background:#e4eddf;border-radius:50%;font-size:25px;margin-bottom:14px;}
.notification-empty h3 {font:650 18px system-ui;color:#173f35;margin:0 0 8px;}
.notification-empty p {font-size:14px;margin:0;}
.notification-more {width:100%;justify-content:center;background:transparent;min-height:44px;}
.notification-sheet-footer {flex:none;padding:10px 20px max(16px,env(safe-area-inset-bottom));border-top:1px solid #e4eadf;background:#f8faf5;max-height:40dvh;overflow-y:auto;}
#notification-settings {font-size:13px;min-height:36px;}
#notification-email-settings label {display:flex;align-items:center;gap:10px;font-size:14px;margin:10px 0;}
#notification-email-settings input {width:18px;height:18px;flex:none;accent-color:#173f35;}
#notification-panel button:focus-visible,#notification-panel a:focus-visible {outline:3px solid #af8550;outline-offset:-3px;}
@media(max-width:760px){
 dialog#notification-panel[open] {inset:auto 0 0;margin:0;width:100%;max-width:100%;max-height:85dvh;border:0;border-radius:24px 24px 0 0;}
 .notification-sheet-head {padding-top:22px;}
 dialog#notification-panel::before {content:'';width:34px;height:4px;position:absolute;top:8px;left:calc(50% - 17px);border-radius:4px;background:#cbd5c4;}
}
/* The entire bell is one touch target, including its icon and badge. */
.notification-bell>* {pointer-events:none;}

#notification-settings {min-width:44px;min-height:44px;}
#notification-email-settings label {min-height:44px;}
.notification-filters {flex-wrap:wrap;}
.notification-card-copy,.notification-sheet-head h2 {overflow-wrap:anywhere;}
@media(max-width:760px){
 dialog#notification-panel[open] {max-height:calc(var(--academy-visible-height,100dvh) - 16px);}
 .notification-sheet-head {padding-inline:16px;}
 .notification-filters {padding-inline:16px;}
 .notification-sheet-footer {max-height:35dvh;}
}

.notification-group {display:block;-webkit-line-clamp:unset;overflow:visible;}
