/* Notifications (/notifications.js): the number on the account button and in its menu, and the list. Colours from the
   theme (theme-shell.js). */
.account-menu > summary { position: relative; }
.nt-badge { position: absolute; top: -8px; right: -6px; z-index: 1; display: grid; place-items: center; box-sizing: border-box;
  min-width: 20px; height: 20px; padding: 0 5px; border: 2px solid var(--panel); border-radius: 999px; background: #d92d3a;
  color: #fff; font-size: 11px; font-style: normal; font-weight: 900; line-height: 1; pointer-events: none; }
.nt-badge[hidden], .nt-count[hidden] { display: none; }
.nt-sr { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important;
  clip: rect(0 0 0 0) !important; white-space: nowrap; }
.account-menu-popover .nt-menu-entry { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.account-menu-popover .nt-menu-entry[hidden] { display: none; }
.nt-count { display: grid; place-items: center; box-sizing: border-box; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: #d92d3a; color: #fff; font-size: 11.5px; font-weight: 900; line-height: 1; }

.nt-panel { position: fixed; right: 12px; z-index: 120; display: flex; flex-direction: column; gap: 4px; box-sizing: border-box;
  width: min(420px, calc(100vw - 24px)); max-height: calc(100vh - 90px); overflow-y: auto; padding: 8px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--panel); color: var(--text); box-shadow: var(--shadow);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; }
.nt-head { display: flex; align-items: center; gap: 10px; padding: 4px 4px 6px 6px; }
.nt-head h2 { flex: 1; margin: 0; font-size: 17px; font-weight: 800; }
.nt-mark-all { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--accent); font: inherit; font-size: 13px;
  font-weight: 750; cursor: pointer; }
.nt-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.nt-close:hover, .nt-close:focus-visible, .nt-mark-all:hover, .nt-mark-all:focus-visible { background: rgba(var(--accent-rgb), 0.14); outline: none; }
.nt-loading { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; padding: 1.2rem; color: var(--muted); }
.nt-loader-art { display: block; width: 56px; height: 56px; }
.nt-loader-art svg { display: block; width: 100%; height: 100%; }
.nt-empty { margin: 0; padding: 0.6rem 8px 1rem; color: var(--muted); line-height: 1.4; }
.nt-list { display: flex; flex-direction: column; gap: 4px; }
.nt-entry { position: relative; display: grid; grid-template-columns: 10px minmax(0, 1fr) 44px; align-items: start; gap: 8px;
  padding: 10px 4px 10px 8px; border-radius: 10px; }
.nt-entry.is-unread { background: color-mix(in srgb, var(--accent) 12%, var(--panel)); }
.nt-dot { width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--accent); }
.nt-entry-link { display: flex; flex-direction: column; gap: 3px; min-width: 0; color: inherit; text-decoration: none; }
.nt-entry-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.nt-text { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.nt-entry:not(.is-unread) .nt-text { color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.nt-run { color: var(--muted); font-size: 12.5px; }
.nt-age { color: var(--muted); font-size: 12px; }
.nt-entry.is-unread .nt-age { color: var(--accent); font-weight: 700; }
.nt-entry-link:hover .nt-text { text-decoration: underline; text-underline-offset: 3px; }
.nt-more { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none;
  color: var(--muted); cursor: pointer; }
.nt-more[aria-expanded="true"], .nt-more:hover, .nt-more:focus-visible { background: rgba(var(--accent-rgb), 0.16); color: var(--text); outline: none; }
.nt-icon { display: inline-grid; flex: none; }
.nt-menu { position: absolute; top: 56px; right: 4px; z-index: 2; display: flex; flex-direction: column; gap: 2px; box-sizing: border-box;
  width: min(300px, calc(100% - 8px)); padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35); }
.nt-menu-item { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 10px; border: 0; border-radius: 8px;
  background: none; color: var(--text); font: inherit; font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; }
.nt-menu-item:hover, .nt-menu-item:focus-visible { background: rgba(var(--accent-rgb), 0.16); outline: none; }
.nt-entry.has-menu { margin-bottom: 116px; }
.nt-off { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 8px 10px 26px; border-radius: 10px;
  background: color-mix(in srgb, var(--panel-2) 70%, var(--panel)); color: var(--muted); font-size: 13.5px; }
.nt-undo { min-height: 40px; padding: 0 10px; border: 0; border-radius: 999px; background: none; color: var(--accent); font: inherit;
  font-size: 13.5px; font-weight: 800; cursor: pointer; }
.nt-undo:hover, .nt-undo:focus-visible { background: rgba(var(--accent-rgb), 0.14); outline: none; }
