/* Keep the list as the sole scroll container; footer never covers its content. */
.notification-center-sheet,.notification-report-page{box-sizing:border-box;overflow:hidden;max-height:100dvh;min-height:0}
.notification-center-head{flex:0 0 auto;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px}
.notification-center-head h2{font-size:18px}
.notification-center-list{display:flex;flex-direction:column;overflow-x:hidden;overflow-y:auto;gap:10px}
.notification-center-list>*{flex-shrink:0}
.notification-center-item-wrap{display:block;position:relative}
.notification-center-item{box-sizing:border-box;min-width:0;padding:14px 54px 14px 14px;gap:7px;overflow-wrap:anywhere}
.notification-center-item strong{line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.notification-center-item.is-read{opacity:1}
.notification-center-item.is-read strong{color:var(--muted)}
.notification-center-preview{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-line}
.notification-center-item .notification-report-open{color:var(--ink);font-weight:600}
.notification-center-actions{position:static;flex:0 0 auto;padding-top:10px;border-top:1px solid var(--line);background:var(--paper)}
.notification-center-actions .btn{min-width:0;white-space:normal;font-size:14px;padding:10px 8px}
.notification-menu{position:relative;justify-self:end}
.notification-center-item-wrap>.notification-menu{position:absolute;top:5px;right:5px}
.notification-menu>summary{display:grid;place-items:center;list-style:none;width:44px;height:44px;min-height:44px;padding:0;cursor:pointer}
.notification-menu>summary::-webkit-details-marker{display:none}
.notification-menu-panel{position:absolute;right:0;top:46px;z-index:3;width:210px;max-width:calc(100vw - 40px);padding:6px;border:1px solid var(--line);border-radius:12px;background:var(--card);box-shadow:0 8px 24px #0002}
.notification-menu-panel button{width:100%;min-height:44px;padding:10px;border:0;border-radius:8px;background:transparent;color:var(--danger);font-size:14px;text-align:left}
.notification-report-page{width:min(720px,100%);height:100%;margin:0 auto;display:flex;flex-direction:column;background:var(--paper)}
.notification-report-content{flex:1;min-height:0;overflow:auto;padding:16px 18px calc(24px + var(--safe-bottom));overflow-wrap:anywhere}
.notification-report-content h2{font-size:22px;line-height:1.3;margin:0 0 8px}
.notification-report-content h3{font-size:16px;line-height:1.4;margin:0 0 8px}
.notification-report-content p{font-size:14px;line-height:1.5;white-space:pre-wrap;margin:0}
.notification-report-content>.fine{margin-bottom:18px}
.notification-report-section{padding:14px;margin-bottom:10px;border:1px solid var(--line);border-radius:14px;background:var(--card)}
.notification-report-section summary{cursor:pointer;min-height:30px;font-size:14px;font-weight:600}
.notification-report-section[open]>summary{margin-bottom:12px}
.notification-report-section .notification-report-section:last-child{margin-bottom:0}
.notification-report-source{width:100%;margin-top:12px}
#notification-report-sheet.show{z-index:76}

.notification-center-actions:has(#notifications-read-all[hidden]){grid-template-columns:1fr}

.notification-center-preview.notification-center-summary{-webkit-line-clamp:unset}
.notification-menu[hidden]{display:none}
