/* Notifications and data deletion (docs/DATA-DELETION-AND-NOTIFICATIONS.md). Uses the portal's own colours. */
.side-user.nt-has { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.side-user.nt-has > :not(.me):not(.nt-bell) { grid-column: 1 / -1; }
.nt-bell { position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 999px; cursor: pointer;
  background: transparent; color: inherit; border: 1px solid rgba(255, 255, 255, .22); padding: 0; }
.side:not(.dark) .nt-bell { border-color: color-mix(in srgb, currentColor 28%, transparent); }
.nt-bell:hover { background: rgba(255, 255, 255, .08); }
.nt-bell.open { border-color: color-mix(in srgb, var(--brand) 70%, white); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 30%, transparent); }
.nt-bell:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, white); outline-offset: 2px; }
.nt-bell .ico { width: 20px; height: 20px; }
.nt-cnt { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 999px;
  background: var(--danger, #B42318); color: #fff; font: 700 12px/20px var(--body, Inter, system-ui, sans-serif); text-align: center; }
.layout.rail .side-user.nt-has { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.layout.rail .nt-bell { order: -1; }

/* the panel beside the menu */
.nt-pop { position: fixed; z-index: 60; width: 440px; max-width: calc(100vw - 16px); max-height: min(640px, calc(100vh - 24px)); display: flex; flex-direction: column;
  background: var(--surface, #fff); color: var(--ink, #101828); border: 1px solid var(--rule, #EAECF0); border-radius: 16px; box-shadow: 0 18px 50px rgba(27, 20, 40, .18); overflow: hidden; }
.nt-pop-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 16px 8px; }
.nt-pop-h h2 { margin: 0; font-size: 18px; }
.nt-pop .nt-chips { padding: 0 16px 12px; }
.nt-list { overflow-y: auto; flex: 1 1 auto; border-top: 1px solid var(--rule-2, #F2F4F7); }
.nt-pop-f { padding: 12px 16px; border-top: 1px solid var(--rule-2, #F2F4F7); text-align: center; }
.nt-link { background: none; border: 0; padding: 6px 4px; color: var(--brand-text, var(--brand, #6E2FD6)); font: 600 14px inherit; cursor: pointer; min-height: 36px; }
.nt-link.strong { text-decoration: underline; }
.nt-empty { margin: 0; padding: 22px 16px; color: var(--slate, #475467); font-size: 14px; }

.nt-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.nt-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--field, #D0D5DD);
  background: var(--surface, #fff); color: var(--ink, #101828); font: 500 14px inherit; cursor: pointer; }
.nt-chip[aria-pressed="true"] { background: var(--ink, #101828); color: #fff; border-color: var(--ink, #101828); }
.nt-chip:focus-visible, .nt-item:focus-visible, .nt-link:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, white); outline-offset: 2px; }
.nt-key { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--slate, #475467); }
.nt-key .nt-dot { margin: 0; }

.nt-day { padding: 12px 16px 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--slate, #475467); }
.nt-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: start; width: 100%; padding: 14px 16px; border: 0;
  border-top: 1px solid var(--rule-2, #F2F4F7); background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.nt-item:hover { background: var(--paper, #F8FAFA); }
.nt-item.unread { background: color-mix(in srgb, var(--brand, #0E7C7B) 5%, white); }
.nt-item.unread .nt-t { font-weight: 700; }
.nt-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nt-t { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.nt-b { font-size: 13.5px; line-height: 1.45; color: var(--ink-2, #1D2939); overflow-wrap: anywhere; }
.nt-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.nt-w { font-size: 12.5px; color: var(--slate, #475467); white-space: nowrap; }
.nt-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand, #0E7C7B); display: inline-block; }
.nt-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.nt-ic .ico { width: 18px; height: 18px; }
.nt-homework { background: #EDE3FF; color: #5A22B8; } .nt-results { background: #E3F4EA; color: #1F6B44; } .nt-classes { background: #E4EEFB; color: #1D4E89; }
.nt-plan { background: #DFF5F1; color: #027A48; } .nt-hr { background: #FFF1DB; color: #B54708; } .nt-data { background: #FDE8E6; color: #912018; }

/* the full page */
.nt-chips-page { margin: 0 0 16px; }
.nt-page-list { overflow: hidden; }
.nt-page-list .nt-day:first-child { padding-top: 16px; }
.nt-page-list .nt-day + .nt-item { border-top: 1px solid var(--rule-2, #F2F4F7); }
.nt-more { padding: 14px 16px; text-align: center; border-top: 1px solid var(--rule-2, #F2F4F7); }
.page-head .nt-onDark { color: #fff; }

/* settings */
.nt-set h2 { margin: 0 0 4px; }
.nt-intro { margin: 0 0 6px; }
.nt-grp { margin: 18px 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--slate, #475467); }
.nt-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule-2, #F2F4F7); margin: 0; font-weight: 400; }
.nt-row > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nt-row b { font-weight: 600; }
.nt-sw { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 26px; border-radius: 999px; background: var(--field, #D0D5DD); position: relative; cursor: pointer; margin: 0; transition: background .15s; }
.nt-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.nt-sw:checked { background: var(--brand, #0E7C7B); } .nt-sw:checked::after { left: 23px; }
.nt-sw:disabled { opacity: .55; cursor: not-allowed; }
.nt-sw:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, white); outline-offset: 2px; }

/* data due for deletion */
.nt-stats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 20px; }
.nt-pad { padding: 18px 20px 10px; margin: 0; }
.nt-acts { justify-content: flex-end; flex-wrap: wrap; }
.nt-pill-kept { background: #EDE3FF; color: #4B1C9E; }
.nt-why { margin-top: 4px; max-width: 260px; }
.nt-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 20px; }
.nt-dialog input[type="text"] { width: 100%; box-sizing: border-box; }
.nt-owner .nt-h3 { font-size: 15px; margin: 14px 0 0; }
.nt-bad { color: var(--danger, #B42318); }
@media (max-width: 900px) { .nt-two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .nt-key { margin-left: 0; width: 100%; } .nt-item { grid-template-columns: 32px minmax(0, 1fr); } .nt-side { grid-column: 2; flex-direction: row; align-items: center; } }
@media (prefers-reduced-motion: reduce) { .nt-sw, .nt-sw::after { transition: none; } }
