/* A quiet notification panel, with motion anchored to the actual bell. */
#notification-popover {
 --notice-bg:rgba(255,255,255,.96);--notice-ink:#17191e;--notice-muted:#747b88;--notice-line:#151b2710;--notice-soft:#f1f3f6;--notice-hover:#11182705;--notice-blue:#0876e8;
 position:fixed;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;
 width:min(420px,calc(100vw - 24px));max-width:calc(100vw - 24px);min-height:0;
 max-height:min(520px,var(--notification-popover-max-height));box-sizing:border-box;
 border:1px solid #ffffffb3;border-radius:22px;background:var(--notice-bg);color:var(--notice-ink);
 box-shadow:0 22px 70px #10182824,0 4px 18px #10182810,inset 0 0 0 1px #10182808;
 backdrop-filter:blur(24px) saturate(1.25);-webkit-backdrop-filter:blur(24px) saturate(1.25);
 overflow:hidden;opacity:0;pointer-events:none;transform:none;
 transform-origin:var(--notification-origin-x,50%) var(--notification-origin-y,100%);transition:none;
}
#notification-popover[hidden] {display:none;}
#notification-popover.is-open {opacity:1;pointer-events:auto;transform:none;}
#notification-popover .notification-popover__arrow {display:none;}
#notification-popover button {font-family:inherit;letter-spacing:normal;transform:none;box-shadow:none;}
#notification-popover button:focus-visible {outline:2px solid var(--notice-blue);outline-offset:-3px;}
#notification-popover .notification-popover__header {min-height:64px;gap:12px;padding:18px 18px 12px;border:0;background:transparent;}
#notification-popover .notification-popover__header h2 {margin:0;color:var(--notice-ink);font-size:20px;font-weight:600;line-height:1.25;letter-spacing:-.035em;}
#notification-popover .notification-popover__header-actions {display:flex;align-items:center;gap:8px;}
#notification-popover .notification-popover__mark-all {min-height:28px;padding:4px 6px;border:0;border-radius:7px;background:transparent;color:var(--notice-blue);font-size:var(--portal-type-caption,12px);font-weight:500;}
#notification-popover .notification-popover__mark-all:hover:not(:disabled) {background:var(--notice-soft);}
#notification-popover .notification-popover__mark-all:disabled {background:transparent;border:0;color:var(--notice-muted);opacity:.65;}
#notification-popover-close {display:grid;place-items:center;flex:none;width:28px;height:28px;padding:6px;border:0;border-radius:50%;background:var(--notice-soft);color:var(--notice-muted);cursor:pointer;}
#notification-popover-close:hover {color:var(--notice-ink);}
#notification-popover-close svg {width:14px;height:14px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;}
#notification-popover .notification-popover__tabs {display:flex;align-items:center;gap:2px;min-height:36px;margin:0 14px 10px;padding:3px;border:0;border-radius:10px;background:var(--notice-soft);overflow-x:auto;scrollbar-width:none;}
#notification-popover .notification-popover__tabs button {flex:1 0 auto;display:flex;justify-content:center;align-items:center;gap:4px;min-width:0;min-height:30px;margin:0;padding:6px 8px;border:0;border-radius:7px;background:transparent;color:var(--notice-muted);font-size:var(--portal-type-caption,12px);font-weight:500;line-height:1.3;white-space:nowrap;}
#notification-popover .notification-popover__tabs button::after {display:none;}
#notification-popover .notification-popover__tabs button:hover {background:var(--notice-hover);color:var(--notice-ink);}
#notification-popover .notification-popover__tabs button[aria-selected="true"] {background:var(--notice-bg);color:var(--notice-ink);box-shadow:0 1px 4px #10182816;font-weight:600;}
#notification-popover .notification-popover__tabs b {min-width:15px;height:15px;padding:0 4px;background:var(--notice-blue);color:#fff;font-size:10px;font-weight:600;}
#notification-popover .notification-popover__tabs b[hidden] {display:none;}
#notification-popover .notification-popover__list {min-height:0;padding:0 10px 10px;background:transparent;scrollbar-color:#87909e60 transparent;}
#notification-popover .notification-section + .notification-section {margin-top:8px;}
#notification-popover .notification-section__title {margin:0;padding:10px 8px 5px;border:0;color:var(--notice-muted);font-size:var(--portal-type-caption,12px);font-weight:500;line-height:1.4;}
#notification-popover .notification-item {display:grid;grid-template-columns:34px minmax(0,1fr) auto 5px;grid-template-rows:auto;align-items:start;gap:10px;min-height:76px;padding:12px 8px;margin:0;border:0;border-radius:12px;background:transparent;color:var(--notice-ink);}
#notification-popover .notification-item::before {inset:0;border-radius:12px;background:var(--notice-hover);}
#notification-popover .notification-item:hover,#notification-popover .notification-item:focus-visible {transform:none;background:transparent;box-shadow:none;}
#notification-popover .notification-item__icon {width:34px;height:34px;border-radius:10px;transform:none;filter:none;background:#0876e812;color:var(--notice-blue);}
#notification-popover .notification-item__icon svg {width:18px;height:18px;stroke-width:1.65;}
#notification-popover .notification-item__icon--shipment {background:#078b7612;color:#087f70;}
#notification-popover .notification-item__icon--document {background:var(--notice-soft);color:var(--notice-muted);}
#notification-popover .notification-item__icon--alert {background:#e87b0812;color:#b76b0c;}
#notification-popover .notification-item__copy {min-width:0;transform:none;transition:none;}
#notification-popover .notification-item__copy strong {color:var(--notice-ink);font-size:var(--portal-type-body,14px);font-weight:600;line-height:1.35;}
#notification-popover .notification-item__copy span {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:3px;color:var(--notice-muted);font-size:var(--portal-type-body,14px);font-weight:400;line-height:1.4;}
#notification-popover .notification-item__time {grid-column:3;grid-row:1;align-self:start;padding-top:2px;color:var(--notice-muted);font-size:var(--portal-type-caption,12px);font-weight:400;line-height:1.4;}
#notification-popover .notification-item__unread {grid-column:4;grid-row:1;width:5px;height:5px;align-self:center;background:var(--notice-blue);box-shadow:none;}
#notification-popover .notification-item__unread[hidden] {visibility:hidden;}
#notification-popover .notification-empty {min-height:172px;padding:24px 18px;color:var(--notice-muted);}
#notification-popover .notification-empty svg {width:28px;height:28px;margin-bottom:12px;color:var(--notice-muted);}
#notification-popover .notification-empty strong {color:var(--notice-ink);font-size:var(--portal-type-body,14px);font-weight:600;}
#notification-popover .notification-empty span {margin-top:6px;color:var(--notice-muted);font-size:var(--portal-type-caption,12px);line-height:1.5;}
#notification-popover .notification-popover__footer {min-height:44px;padding:0;border-top:1px solid var(--notice-line);background:transparent;}
#notification-popover .notification-popover__footer button {display:flex;justify-content:center;align-items:center;gap:7px;width:100%;min-height:44px;padding:12px;border:0;border-radius:0;background:transparent;color:var(--notice-blue);font-size:var(--portal-type-caption,12px);font-weight:500;}
#notification-popover .notification-popover__footer button:hover {background:var(--notice-hover);color:var(--notice-blue);}
#notification-popover .notification-popover__footer svg {width:14px;height:14px;transform:none;stroke:currentColor;stroke-width:1.6;fill:none;}
#portal-primary-sidebar #portal-notification-button > .portal-notification-indicator {background:#2996ff;border-color:#111;box-shadow:none;}
html[data-theme="dark"] #notification-popover {--notice-bg:rgba(28,29,32,.96);--notice-ink:#f5f5f7;--notice-muted:#a0a4ad;--notice-line:#ffffff12;--notice-soft:#ffffff0c;--notice-hover:#ffffff08;--notice-blue:#64aaff;border-color:#ffffff20;box-shadow:0 24px 70px #0007,inset 0 1px 0 #ffffff08;}
html[data-theme="dark"] #notification-popover .notification-item__icon {background:#64aaff17;}
html[data-theme="dark"] #notification-popover .notification-item__icon--shipment {background:#43c9ad14;color:#66d7bd;}
html[data-theme="dark"] #notification-popover .notification-item__icon--document {background:var(--notice-soft);color:var(--notice-muted);}
html[data-theme="dark"] #notification-popover .notification-item__icon--alert {background:#ffb34d16;color:#efb568;}
@media (prefers-reduced-motion:reduce) {#notification-popover *,#notification-popover *::before {transition:none;}}
