/* PHNX notification center — approved November 17, 2026. */
html #notification-panel.notification-panel {
  --nc-bg:#122734;--nc-line:#2b4452;--nc-fg:#f0f6fa;--nc-muted:#afc3cf;--nc-accent:#a9e2f2;--nc-unread:#1a3544;--nc-active:#254252;
  position:fixed;z-index:180;top:62px;right:16px;left:auto;width:min(470px,calc(100vw - 32px));
  display:flex;flex-direction:column;max-height:min(740px,calc(100vh - 80px));max-height:min(740px,calc(100dvh - 80px));
  overflow:hidden;border:1px solid #385565;border-radius:20px;background:var(--nc-bg);color:var(--nc-fg);
  box-shadow:0 18px 55px #020b1450;opacity:1;transform:none;font-size:14px;line-height:1.45;text-align:left;
}
html #notification-panel[hidden],#notification-panel [hidden]{display:none!important}
#notification-panel *{box-sizing:border-box}
#notification-panel button,#notification-panel input{font:inherit}
#notification-panel button{cursor:pointer}
#notification-panel button:disabled{cursor:default}
#notification-panel svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
#notification-panel :is(button,a,input):focus-visible{outline:2px solid var(--nc-accent)!important;outline-offset:-3px!important}
#notification-panel .nc-header{display:flex;gap:8px;align-items:center;flex-shrink:0;padding:20px 18px 17px}
#notification-panel .nc-title{min-width:0;margin-right:auto}
#notification-panel h2{margin:0;font-size:20px;font-weight:700;line-height:1.2;letter-spacing:-.55px;color:var(--nc-fg)}
#notification-panel .nc-title p{display:flex;align-items:center;gap:6px;margin:7px 0 0;color:var(--nc-muted);font-size:12px;line-height:1.45}
#notification-panel .nc-summary-dot{width:5px;height:5px;flex-shrink:0;background:var(--nc-accent);border-radius:50%}
#notification-panel .nc-icon-button{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;padding:0;background:transparent;border:1px solid transparent;border-radius:10px;color:var(--nc-muted);text-decoration:none;transition:background-color 130ms ease,color 130ms ease}
#notification-panel .nc-icon-button:hover{color:var(--nc-fg);background:var(--nc-active)}
#notification-panel .nc-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));flex-shrink:0;gap:3px;padding:0 13px 14px;overflow:visible;min-width:0}
#notification-panel .nc-tabs button{display:flex;justify-content:center;align-items:center;gap:4px;min-width:0;min-height:37px;margin:0;padding:7px 4px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--nc-muted);font-size:12px;font-weight:500;line-height:1.4;white-space:nowrap;transition:background-color 130ms ease,color 130ms ease}
#notification-panel .nc-tabs button[aria-selected=true]{border-color:#3d6172;background:var(--nc-active);color:var(--nc-accent)}
#notification-panel .nc-tabs button span{min-width:15px;padding:0 3px;border-radius:4px;background:#aec4d015;color:inherit;font-size:10px;line-height:16px;font-weight:500;font-variant-numeric:tabular-nums}
#notification-panel .nc-tools{display:flex;align-items:center;justify-content:space-between;gap:5px;flex-wrap:wrap;flex-shrink:0;padding:8px 18px;border-block:1px solid var(--nc-line)}
#notification-panel .nc-unread-filter{display:flex;align-items:center;gap:8px;min-height:32px;margin:0;cursor:pointer;color:var(--nc-muted);font-size:12px;font-weight:400}
#notification-panel .nc-unread-filter input{position:static;width:14px;height:14px;flex-shrink:0;margin:0;opacity:1;pointer-events:auto;accent-color:var(--nc-accent)}
#notification-panel #notifications-read-all{display:flex;align-items:center;gap:5px;min-height:32px;padding:6px 0 6px 8px;border:0;background:transparent;color:var(--nc-accent);font-size:12px;font-weight:500}
#notification-panel #notifications-read-all:disabled{opacity:.65;color:var(--nc-muted)}
#notification-panel .nc-refresh{flex-shrink:0;min-height:38px;padding:8px 14px;border:0;border-bottom:1px solid var(--nc-line);background:var(--nc-unread);color:var(--nc-accent);font-size:12px}
html #notification-panel #notification-list.nc-feed{position:relative;display:block;flex:1 1 auto;min-height:0;max-height:none;margin:0;padding:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#557584 transparent;scrollbar-gutter:stable;contain:layout style}
#notification-panel .nc-feed::-webkit-scrollbar{width:5px;height:0}
#notification-panel .nc-feed::-webkit-scrollbar-thumb{border-radius:5px;background:#557584}
#notification-panel .nc-date{position:static;display:block;margin:0;padding:13px 19px 9px;background:transparent;border:0;color:var(--nc-muted);font-size:10px;font-weight:600;line-height:1.45;letter-spacing:1px;text-transform:uppercase}
#notification-panel .nc-item{position:relative;display:flex;align-items:center;gap:12px;min-width:0;width:100%;margin:0;padding:16px 18px;border:0;border-bottom:1px solid var(--nc-line);background:transparent;color:var(--nc-fg);text-decoration:none;text-align:left;transition:background-color 130ms ease}
#notification-panel .nc-item:last-child{border-bottom:0}
#notification-panel .nc-item.nc-unread{background:var(--nc-unread)}
#notification-panel .nc-item:hover{background:var(--nc-active)}
#notification-panel .nc-item .avatar{position:relative;display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;min-width:42px;min-height:42px;aspect-ratio:1;border-radius:50%;background:#304f5d;color:#d2f3fc;overflow:visible}
#notification-panel .nc-item .avatar img{display:block;width:100%;height:100%;max-width:100%;object-fit:cover;object-position:center;border-radius:50%;aspect-ratio:1}
#notification-panel .nc-item .avatar>i{position:static;display:grid;place-items:center;width:100%;height:100%;margin:0;border:0;border-radius:50%;font-size:14px;font-style:normal;font-weight:600}
#notification-panel .nc-is-live .avatar::after{content:"";position:absolute;right:-1px;bottom:-1px;z-index:2;width:10px;height:10px;border:2px solid var(--nc-bg);border-radius:50%;background:#fb819d}
#notification-panel .nc-copy{display:block;min-width:0;flex:1}
#notification-panel .nc-name-line{display:flex;align-items:center;gap:7px;min-width:0}
#notification-panel .nc-name-line strong{min-width:0;font-size:14px;font-weight:650;line-height:1.4;overflow-wrap:anywhere;color:var(--nc-fg)}
#notification-panel .nc-unread-dot{display:block;width:6px;height:6px;flex:0 0 6px;margin:0 1px;background:var(--nc-accent);border-radius:50%}
#notification-panel .nc-description{display:block;margin:3px 0 7px;color:var(--nc-muted);font-size:13px;font-weight:400;line-height:1.4;overflow-wrap:anywhere}
#notification-panel .nc-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin:0;color:var(--nc-muted);font-size:11px;font-weight:400;line-height:1.45}
#notification-panel .nc-meta .nc-icon{width:12px;height:12px}
#notification-panel .nc-meta time{font:inherit;color:inherit}
#notification-panel .nc-trailing{display:flex;justify-content:flex-end;align-items:center;flex:0 0 68px;width:68px;min-width:0}
#notification-panel .nc-cover{display:block;position:relative;width:68px;aspect-ratio:16/10;overflow:hidden;border-radius:7px}
#notification-panel .nc-cover img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
#notification-panel .nc-cover>span{position:absolute;right:3px;bottom:3px;padding:1px 3px;border-radius:3px;background:#07121ee8;color:#fff;font-size:9px;line-height:1.4;font-variant-numeric:tabular-nums}
#notification-panel .nc-live{display:flex;align-items:center;gap:4px;padding:3px 6px;border:1px solid #ad61794d;border-radius:5px;background:#64344460;color:#ffb7c8;font-size:9px;line-height:1.4;letter-spacing:.7px;font-weight:650}
#notification-panel .nc-live::before{content:"";width:4px;height:4px;background:#ff99b2;border-radius:50%}
#notification-panel .nc-footer{flex-shrink:0;padding:9px 15px;border-top:1px solid var(--nc-line)}
#notification-panel #notifications-load-more{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:35px;padding:7px 10px;border:0;border-radius:9px;background:transparent;color:var(--nc-accent);font-size:12px;font-weight:500;line-height:1.45}
#notification-panel #notifications-load-more:hover:not(:disabled){background:var(--nc-active)}
#notification-panel #notifications-load-more:disabled{color:var(--nc-muted)}
#notification-panel .nc-more-count{font-size:10px;font-weight:400;font-variant-numeric:tabular-nums;color:var(--nc-muted)}
#notification-panel #notifications-load-more svg{width:13px;height:13px}
#notification-panel .nc-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:220px;padding:35px 20px;text-align:center;color:var(--nc-muted)}
#notification-panel .nc-empty>svg{width:28px;height:28px;color:var(--nc-accent)}
#notification-panel .nc-empty strong{font-size:14px;font-weight:600;color:var(--nc-fg)}
#notification-panel .nc-empty p{max-width:250px;margin:0;font-size:12px;line-height:1.5}
#notification-panel .nc-empty button{min-height:40px;padding:8px 15px;border:1px solid var(--nc-line);border-radius:9px;background:var(--nc-active);color:var(--nc-accent);font-size:12px}
#notification-panel .nc-skeleton{display:grid;gap:10px;padding:14px}
#notification-panel .nc-skeleton i{height:72px;border-radius:10px;background:var(--nc-unread)}
#notification-panel .nc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html[data-theme=light] #notification-panel{--nc-bg:#fff;--nc-line:#dce5eb;--nc-fg:#162b38;--nc-muted:#516875;--nc-accent:#176386;--nc-unread:#eef7fb;--nc-active:#e5f0f6;border-color:#c5d6df;box-shadow:0 18px 55px #18374720}
html[data-theme=light] #notification-panel .nc-tabs button[aria-selected=true]{border-color:#a9c8d9}
html[data-theme=light] #notification-panel .nc-live{color:#a9204a;background:#fff0f4;border-color:#edc3cf}
@media(max-width:640px){
  html #notification-panel.notification-panel{left:8px;right:8px;top:calc(60px + env(safe-area-inset-top));bottom:calc(8px + env(safe-area-inset-bottom));width:auto;max-width:none;max-height:none;height:auto;border-radius:18px;transform:none;transform-origin:top center}
  body.play-notifications-open{overflow:hidden}
  #notification-panel .nc-header{padding:18px 13px 15px;gap:4px}
  #notification-panel .nc-icon-button{width:40px;height:40px}
  #notification-panel .nc-tabs{grid-template-columns:repeat(6,minmax(0,1fr));padding:0 12px 12px;gap:3px}
  #notification-panel .nc-tabs button{grid-column:span 2;min-height:39px;padding:8px 4px}
  #notification-panel .nc-tabs button:nth-last-child(-n+2){grid-column:span 3}
  #notification-panel .nc-tools{padding:6px 14px}
  #notification-panel .nc-unread-filter,#notification-panel #notifications-read-all{min-height:40px}
  #notification-panel .nc-item{gap:10px;padding:14px}
  #notification-panel .nc-item .avatar{flex-basis:38px;width:38px;height:38px;min-width:38px;min-height:38px}
  #notification-panel .nc-name-line strong{font-size:13px}
  #notification-panel .nc-description{font-size:12px}
  #notification-panel .nc-trailing{flex-basis:57px;width:57px}
  #notification-panel .nc-cover{width:57px;aspect-ratio:4/3}
  #notification-panel .nc-footer{padding:6px 12px}
  #notification-panel #notifications-load-more{min-height:40px}
}
@media(pointer:coarse){#notification-panel .nc-icon-button,#notification-panel .nc-tabs button,#notification-panel .nc-unread-filter,#notification-panel #notifications-read-all,#notification-panel #notifications-load-more{min-height:44px}}
@media(prefers-reduced-motion:reduce){html #notification-panel.notification-panel,#notification-panel :is(button,a){transition:none!important;animation:none!important}}
