.portal-notifications{position:relative}.portal-notifications>summary{list-style:none;cursor:pointer;padding:8px 12px;border:1px solid #dce7cd;border-radius:10px;background:#f3f8eb;font-size:16px}.portal-notifications #notification-count{font-size:12px;font-weight:700}.notification-popover{position:absolute;z-index:100;right:0;top:48px;width:350px;max-width:80vw;padding:16px;background:white;border:1px solid #dce7cd;border-radius:14px;box-shadow:0 10px 35px #30431c25}.notification-popover header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.notification-popover header strong{font-size:15px}.notification-popover header button{font-size:12px;padding:7px;background:#f2f7e9;color:#527329;border:0;border-radius:7px;cursor:pointer}#notification-items{max-height:380px;overflow:auto}.notification-popover form{margin:0}.notification-popover form button{display:block;white-space:normal;text-align:left;width:100%;padding:12px;font-size:13px;color:#324c29;border:0;border-bottom:1px solid #e6eddc;background:#f1f7e8;cursor:pointer;line-height:1.5}.notification-popover form.notification-read button{background:white;color:#76816b}.notification-popover button small{display:block;margin-top:5px;font-size:11px}.notification-popover button:hover{background:#e8f1da}.notification-popover p{font-size:13px}@media(max-width:600px){.notification-popover{position:fixed;top:90px;right:12px;width:calc(100vw - 56px);max-width:none}}
/* Scoped controls keep the workspace's primary-button styles out of the inbox. */
.cooperar-private .notification-popover{box-sizing:border-box;width:370px;max-width:calc(100vw - 32px);padding:16px;border:1px solid #e2e8db;border-radius:16px;box-shadow:0 12px 36px #24351c1c}
.cooperar-private .notification-popover header{padding:0 2px 12px;margin:0 0 8px;border-bottom:1px solid #edf0e9;gap:10px;flex-wrap:wrap}
.cooperar-private .notification-popover header strong{font-size:15px;color:#304143}
.notification-sound-status{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:500;color:#637459;white-space:nowrap}
.notification-sound-status::before{content:'♪';font-size:14px;color:#769949}
#notification-items{max-height:min(380px,60vh);overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#cad5bf transparent;display:grid;gap:6px}
.cooperar-private .notification-popover #notification-items form button{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:5px;width:100%;min-height:0;margin:0;padding:12px 14px;border:1px solid transparent;border-radius:10px;background:#f4f7ef;color:#34452e;font-size:13px;font-weight:500;line-height:1.45;text-align:left;white-space:normal;box-shadow:none;overflow-wrap:anywhere}
.cooperar-private .notification-popover #notification-items form.notification-unread button{border-left:3px solid #95b65c}
.cooperar-private .notification-popover #notification-items form.notification-read button{background:#fff;color:#6e7869}
.cooperar-private .notification-popover #notification-items form button:hover{background:#edf3e5;border-color:#dce6cf;color:#30452a;box-shadow:none}
.notification-message{display:block;font-size:13px;line-height:1.45}
.cooperar-private .notification-popover #notification-items button small{display:block;margin:0;font-size:11px;font-weight:400;color:#77816f;line-height:1.4}
@media(max-width:600px){.cooperar-private .notification-popover{position:fixed;top:82px;right:12px;width:calc(100vw - 24px);max-width:370px;padding:14px}.cooperar-private .notification-popover #notification-items form button{padding:11px 12px}#notification-items{max-height:min(380px,calc(100dvh - 175px))}}

/* Pending inbox: compact, accessible actions and an explicit connection state. */
#portal-notifications>summary{display:flex;align-items:center;justify-content:center;gap:5px;position:relative;min-width:34px;min-height:32px}
#portal-notifications>summary::-webkit-details-marker{display:none}
.notification-bell{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#notification-count{display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:#658a26;color:#fff;font-size:10px;font-weight:700;line-height:1}
#notification-panel{z-index:1000;top:calc(100% + 10px);width:min(360px,calc(100vw - 24px));padding:12px;border-radius:13px;box-shadow:0 12px 36px #24351c24;text-align:left}
#notification-panel>header{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:10px;padding:0 0 10px;margin:0;border-bottom:1px solid #e6ecdf}
#notification-panel>header>div{display:flex;flex-direction:column;gap:3px;min-width:0}
#notification-title{font-size:14px;line-height:1.35}
#notification-summary{font-size:11px;color:#728167;line-height:1.4}
#notification-panel button.notification-close{min-width:28px;min-height:28px;padding:0;border:0;background:transparent;color:#697760;font-size:23px;font-weight:400;line-height:1}
#notification-panel .notification-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0}
#notification-panel :is(#notification-mark-all,#notification-refresh){min-height:28px;padding:4px 5px;border:0;background:transparent;color:#587a2b;font-size:11px;line-height:1.35;text-align:right;box-shadow:none}
#notification-panel #notification-mark-all:disabled{color:#84917b;opacity:.65}
#notification-panel #notification-items{max-height:min(360px,55vh);gap:6px;padding-right:3px}
#notification-panel #notification-items form button{padding:10px 11px;border-radius:8px;background:#f4f7ef;border-left:3px solid #92b849;gap:5px;line-height:1.45}
#notification-panel #notification-items .notification-message{font-size:12px;font-weight:500;color:#35462f}
#notification-panel #notification-items small{font-size:10px;color:#75826c}
#notification-panel>footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:9px;margin-top:8px;border-top:1px solid #e9eddf;line-height:1.4}
#notification-feedback{font-size:10px;color:#748168}
#notification-panel .notification-empty{padding:28px 12px;text-align:center;color:#65765a}
#notification-panel .notification-empty strong{display:block;font-size:12px;font-weight:600;margin-bottom:6px}
#notification-panel .notification-empty p{font-size:11px;margin:0;color:#819075}
.notification-toast{position:fixed;z-index:1100;right:18px;bottom:18px;width:320px;max-width:calc(100vw - 28px);padding:12px;border:1px solid #dce7ce;border-left:3px solid #8eb53e;border-radius:11px;background:#fff;box-shadow:0 8px 30px #263c2024;color:#34452d}
.notification-toast>strong{font-size:12px;display:block;padding-right:24px;margin-bottom:6px}
body.cooperar-private .notification-toast .notification-toast-close{position:absolute;right:6px;top:5px;min-height:26px;min-width:26px;padding:0;background:transparent;border:0;color:#6a7960;font-size:22px;line-height:1}
body.cooperar-private .notification-toast form button{display:block;width:100%;padding:0;min-height:0;border:0;background:transparent;color:#34452d;text-align:left;font-size:12px;line-height:1.45;box-shadow:none}
.notification-toast .notification-message{font-size:12px}.notification-toast small{display:block;color:#638c2d;font-size:11px;margin-top:7px}
@media(max-width:600px){#notification-panel{position:fixed;top:auto;bottom:12px;left:12px;right:12px;width:auto;max-width:none;max-height:calc(100dvh - 24px);padding:12px}#notification-panel #notification-items{max-height:min(360px,calc(100dvh - 190px))}#notification-panel :is(#notification-mark-all,#notification-refresh,button.notification-close){min-height:40px}#notification-panel #notification-items form button{min-height:44px}.notification-toast{right:12px;bottom:12px}}
