/* The notification bell's panel and the banners that slide in under the top bar (web/notes.js). Rows use .mr from ui.css. */
.nt-back{position:fixed;inset:0;z-index:65;background:rgba(0,0,0,0);transition:background-color .26s cubic-bezier(.2,.8,.2,1)}
.nt-back.on{background:rgba(0,0,0,.32)}
.nt{position:fixed;top:64px;right:16px;width:400px;max-width:calc(100vw - 24px);max-height:min(680px,calc(100dvh - 96px));display:flex;flex-direction:column;
  background:var(--surface);color:var(--fg);border:1px solid var(--line);border-radius:var(--radius,16px);box-shadow:0 18px 48px rgba(0,0,0,.45);overflow:hidden;font-family:var(--body);
  opacity:0;transform:translateY(-6px) scale(.985);transform-origin:top right;transition:transform .26s cubic-bezier(.2,.8,.2,1),opacity .26s cubic-bezier(.2,.8,.2,1)}
.nt-back.on .nt{opacity:1;transform:none}
.nt:focus{outline:none}
.nt-head{flex:none;display:flex;align-items:center;gap:8px;padding:12px 8px 6px 16px}
.nt-head h2{flex:1;min-width:0;margin:0;font:700 17px/1.2 var(--body);letter-spacing:0}
.nt-read{flex:none;min-height:40px;padding:0 10px;border:0;border-radius:10px;background:none;color:var(--muted);font:600 13.5px/1 var(--body);cursor:pointer;-webkit-tap-highlight-color:transparent}
.nt-read[hidden]{display:none}
.nt-x{flex:none;width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:50%;background:none;color:var(--fg);cursor:pointer;-webkit-tap-highlight-color:transparent}
@media(hover:hover){.nt-read:hover{color:var(--fg)}.nt-x:hover{background:color-mix(in srgb,var(--fg) 7%,transparent)}}
.nt-read:focus-visible,.nt-x:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.nt-pg{flex:1 1 auto;min-height:0}
/* the panel's height follows its content up to the cap, so the track is a flex item that shrinks to the view and each pane scrolls */
.nt .pg-view{display:flex;flex-direction:column}
.nt .pg-track{flex:1 1 auto;min-height:0;height:auto}
.nt-pg .pg-tabs{padding:0 8px}
.nt .pg-pane{padding:6px 0 12px}
/* rows */
/* one row per notice: picture, what happened, a quiet second line (detail and time), the figure in bold on the right */
.nt-r{position:relative;min-height:56px;padding:7px 16px;gap:12px}
.nt-pic{width:40px;height:40px;border-radius:10px}
.nt-glyph svg{width:20px;height:20px}
.nt-t{gap:2px}
.nt-t b{font-weight:500;font-size:14.5px;line-height:1.3}
.nt-t small{font-size:12.5px;line-height:1.3}
.nt-t time{font-variant-numeric:tabular-nums}
.nt-v{align-self:center;max-width:46%}
.nt-v b{font-weight:700;font-size:14.5px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nt-v b small{font-weight:500;font-size:12px;color:var(--muted)}
.nt-dot{position:absolute;left:6px;top:50%;width:6px;height:6px;margin-top:-3px;border-radius:50%;background:var(--accent)}
.nt-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.nt-h{margin:0;padding:12px 16px 2px;font:600 12px/1.2 var(--body);color:var(--muted);letter-spacing:0}
.nt-h:first-child{padding-top:6px}
.nt-sub{border-left:1px solid var(--line);margin:0 0 4px 35px}
.nt-sub[hidden]{display:none}
.nt-in{padding-left:14px;min-height:48px}
.nt-in .nt-pic{width:32px;height:32px;border-radius:8px}
.nt-in .nt-dot{left:-4px}
html[data-dense="1"] .nt-r{min-height:44px;padding:4px 12px 4px 14px;gap:10px}
html[data-dense="1"] .nt-pic{width:32px;height:32px;border-radius:8px}
html[data-dense="1"] .nt-t b,html[data-dense="1"] .nt-v b{font-size:13.5px}
html[data-dense="1"] .nt-t small{font-size:12px}
html[data-dense="1"] .nt-dot{left:4px}
html[data-dense="1"] .nt-h{padding:8px 14px 2px}
html[data-dense="1"] .nt-sub{margin-left:29px}
html[data-dense="1"] .nt-in{min-height:40px;padding-left:12px}
html[data-dense="1"] .nt-in .nt-pic{width:28px;height:28px}
.nt-none{padding:28px 16px;color:var(--muted);font-size:14.5px;line-height:1.45}
.nt-none p{margin:0}
.nt-connect{margin-top:14px;min-height:44px}
.nt-foot{padding-top:16px;border-top:1px solid var(--line);margin:8px 16px 0;padding-left:0;padding-right:0}
/* phones: a full sheet from the right edge */
@media(max-width:720px){
  .nt-back.on{background:rgba(0,0,0,.5)}
  .nt{inset:0 0 0 auto;top:0 !important;right:0 !important;width:100%;max-width:none;height:100vh;height:100dvh;max-height:none;border:0;border-radius:0;box-shadow:none;background:var(--bg);
    padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);opacity:1;transform:translateX(100%)}
  .nt-head{padding:10px 6px 4px 16px;min-height:60px}
  .nt-head h2{font-size:22px}
  .nt-x{width:44px;height:44px;background:color-mix(in srgb,var(--fg) 8%,transparent)}
  .nt-read{min-height:44px}
}
/* banners */
.nt-bs{position:fixed;z-index:70;top:68px;right:12px;width:min(380px,calc(100% - 24px));display:grid;gap:8px;pointer-events:none}
.nt-b{pointer-events:auto;min-height:64px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 32px rgba(0,0,0,.4);
  opacity:0;transform:translateY(-10px);transition:transform .26s cubic-bezier(.2,.8,.2,1),opacity .26s cubic-bezier(.2,.8,.2,1)}
.nt-b.on{opacity:1;transform:none}
.nt-b.off{opacity:0;transform:translateY(-6px)}
.nt-b .nt-glyph svg{width:20px;height:20px}
@media(max-width:720px){.nt-bs{top:calc(60px + env(safe-area-inset-top));left:12px;right:12px;width:auto}}
.nt-back:not(.on){pointer-events:none}
@media(prefers-reduced-motion:reduce){.nt-back,.nt,.nt-b{transition-duration:.01ms}.nt-back .nt{transform:none}.nt-back:not(.on) .nt{opacity:0}}
