/* Notification Centre UI (phase 1 PRs 6, 7 and 8b). DESIGN-SPEC tokens: brain #015A9C, ink #0B2A42, slate #44586B,
   mist #F2F7FB, sky #31A5DC; semantic strips #C0392B critical, #B45309 high, #12805C normal and fixed. Served from
   'self' only: the UI CSP allows no inline style. Every colour pairing used for text meets WCAG AA (4.5:1) in both
   themes; a strip colour always comes with its word. */
:root {
  --brain: #015A9C; --ink: #0B2A42; --slate: #44586B; --mist: #F2F7FB; --sky: #31A5DC;
  --ground: #F2F7FB; --card: #FFFFFF; --panel: #F2F7FB; --line: #DCE7F0; --link: #015A9C; --focus: #015A9C;
  --critical: #C0392B; --high: #B45309; --good: #12805C; --low: #8A9BAA;
  --critical-text: #C0392B; --high-text: #B45309; --good-text: #12805C; --low-text: #5A6B7B;
  --chip-bg: #F2F7FB; --chip-text: #44586B; --warn-bg: #FDF2E3; --warn-text: #8A4A0B;
  --update-bg: #E5F1FA; --update-line: #B9D7EE; --shadow: 0 1px 2px rgba(11, 42, 66, 0.08);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--ground); color: var(--slate);
  font: 16px/1.6 -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
a { color: var(--link); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
.nc-shell { max-width: 600px; margin: 0 auto; padding: 24px 16px 40px; }
/* The header runs brain to the lighter brain blue: white text keeps 4.5:1 or better everywhere on it (on the sky end
   it fell to 2.78:1; Fable review of #118, finding 7). Sky stays as the accent strip under the sign-in header. */
.nc-header {
  background: #015A9C; background: linear-gradient(120deg, #015A9C 0%, #0A6DB0 60%, #0C77BE 100%);
  color: #FFFFFF; border-radius: 14px 14px 0 0; padding: 20px 32px 30px;
}
.nc-header a:focus-visible, .nc-header button:focus-visible { outline-color: #FFFFFF; }
.nc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0; }
.nc-header-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.nc-wordmark { font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 700; white-space: nowrap; }
.nc-header-row .nc-eyebrow { text-align: right; }
.nc-eyebrow { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #FFFFFF; }
.nc-title {
  font-family: Georgia, "Times New Roman", serif; font-size: 26px; line-height: 32px; letter-spacing: -0.2px;
  font-weight: 700; margin: 28px 0 4px;
}
.nc-sub { margin: 0; color: #FFFFFF; }
.nc-strip { height: 4px; background: #31A5DC; }
.nc-card { background: #FFFFFF; border-radius: 0 0 14px 14px; padding: 32px; }
.nc-card p { margin: 0 0 20px; }
.nc-button {
  display: block; width: 100%; min-height: 48px; padding: 12px 20px; border: 0; border-radius: 10px;
  background: #015A9C; color: #FFFFFF; font: inherit; font-weight: 700; cursor: pointer;
  text-align: center; text-decoration: none;
}
.nc-button:hover { background: #0C77BE; }
.nc-button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.nc-button[disabled] { opacity: 0.6; cursor: progress; }
.nc-button-quiet { background: #FFFFFF; color: #015A9C; border: 2px solid #015A9C; }
.nc-button-quiet:hover { background: #F2F7FB; }
.nc-hidden-field { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nc-status { min-height: 1.6em; margin: 16px 0 0; color: #B45309; }
.nc-note { color: #B45309; }
.nc-footer { padding: 16px 8px; font-size: 13px; color: #44586B; text-align: center; }
/* PR 7: the recovery banner, the owner's list and the registration shells. */
.nc-banner { margin: 0 0 24px; padding: 16px; border-left: 4px solid #C0392B; border-radius: 8px; background: #F8E3E0; color: #0B2A42; }
.nc-banner-text { font-weight: 700; margin: 0 0 12px; }
.nc-banner-note { font-size: 14px; margin: 12px 0 0; }
.nc-button-alarm { background: #C0392B; }
.nc-button-alarm:hover { background: #A93226; }
.nc-button + .nc-button { margin-top: 12px; }
.nc-h2 { font-family: Georgia, "Times New Roman", serif; font-size: 20px; color: #0B2A42; margin: 28px 0 12px; }
.nc-row { padding: 12px 0; border-top: 1px solid #DCE7F0; }
.nc-row p { margin: 0 0 12px; }
.nc-label { display: block; font-weight: 700; margin: 0 0 6px; color: #0B2A42; }
.nc-input { display: block; width: 100%; min-height: 48px; padding: 10px 12px; margin: 0 0 16px; border: 1px solid #9FB6C9; border-radius: 8px; font: inherit; }
.nc-fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.nc-fieldset label { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; margin-right: 16px; }
.nc-note-quiet { font-size: 14px; margin: 8px 0 0; }
.nc-code { font-family: Georgia, "Times New Roman", serif; font-size: 28px; letter-spacing: 2px; color: #0B2A42; margin: 20px 0 0; }
.nc-code-inline { letter-spacing: 1px; color: #0B2A42; }
.nc-link { word-break: break-all; padding: 12px; background: #F2F7FB; border-radius: 8px; color: #0B2A42; }

/* ---------------------------------------------------------------- PR 8b: the page */
.nc-skip { position: absolute; left: 8px; top: -60px; z-index: 20; padding: 12px 16px; border-radius: 8px;
  background: #FFFFFF; color: #015A9C; font-weight: 700; }
.nc-skip:focus { top: 8px; }
.nc-page { max-width: 1120px; margin: 0 auto; padding: 24px 24px 40px; }
.nc-header-page {
  background: #015A9C;
  background: linear-gradient(160deg, #015A9C 0%, #0A6DB0 60%, #0C77BE 100%);
  padding: 16px 32px 28px;
}
.nc-header-page .nc-eyebrow { margin: 4px 0 0; color: #FFFFFF; }
.nc-header-page .nc-title { margin: 20px 0 6px; overflow-wrap: anywhere; }
.nc-header-page .nc-sub { color: #FFFFFF; }
.nc-header-page .nc-wordmark { color: #FFFFFF; text-decoration: none; min-height: 48px; display: inline-flex; align-items: center; }
.nc-header-page a { color: #FFFFFF; }
.nc-nav { display: flex; gap: 4px; }
.nc-nav-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 8px;
  color: #FFFFFF; text-decoration: none; font-weight: 600; }
.nc-nav-link:hover { background: rgba(255, 255, 255, 0.14); }
.nc-nav-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nc-hero-meta { margin: 20px 0 0; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #FFFFFF; }
.nc-hero-meta + .nc-title { margin-top: 8px; }
.nc-hero-word { display: inline-block; margin-right: 8px; padding: 1px 10px; border-radius: 999px; background: #FFFFFF;
  color: var(--tone-ink, #015A9C); font-weight: 700; }
.nc-cap::first-letter, .nc-statusline::first-letter { text-transform: uppercase; }
.nc-tone-critical { --tone: var(--critical); --tone-text: var(--critical-text); --tone-ink: #C0392B; }
.nc-tone-high { --tone: var(--high); --tone-text: var(--high-text); --tone-ink: #B45309; }
.nc-tone-normal, .nc-tone-fixed { --tone: var(--good); --tone-text: var(--good-text); --tone-ink: #12805C; }
.nc-tone-log, .nc-tone-closed { --tone: var(--low); --tone-text: var(--low-text); --tone-ink: #5A6B7B; }
.nc-strip[class*="nc-tone-"] { background: var(--tone); }
.nc-main { padding: 24px 0 8px; }
.nc-main > .nc-banner { margin-top: 0; }
.nc-columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.nc-col { min-width: 0; }
.nc-section { margin: 0 0 32px; }
.nc-section > .nc-h2, .nc-panel > .nc-h2:first-child { margin-top: 0; }
.nc-section > .nc-h2 { display: flex; align-items: center; gap: 10px; }
.nc-count { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 8px;
  border-radius: 999px; background: var(--card); color: var(--ink); border: 1px solid var(--line);
  font: 700 14px/1 -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
.nc-empty { margin: 0; padding: 16px; border-radius: 12px; background: var(--card); color: var(--slate); }
.nc-more { font-size: 14px; }
.nc-group { position: relative; margin: 0 0 12px; padding: 16px 16px 16px 20px; border-radius: 12px; background: var(--card);
  border-left: 4px solid var(--tone, var(--good)); box-shadow: var(--shadow); }
.nc-group p { margin: 0; }
.nc-group-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--slate); }
.nc-tone-word { color: var(--tone-text, var(--slate)); font-weight: 700; }
.nc-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--chip-bg); color: var(--chip-text);
  font-weight: 700; letter-spacing: 1px; }
.nc-chip-warn { background: var(--warn-bg); color: var(--warn-text); }
.nc-group-title { margin: 6px 0 4px; font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.35;
  color: var(--ink); overflow-wrap: anywhere; }
.nc-group-link { color: var(--ink); text-decoration: none; }
.nc-group-link::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.nc-group-link:hover { text-decoration: underline; }
.nc-group-link:focus-visible { outline: none; }
.nc-group-link:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 2px; }
.nc-lift { position: relative; z-index: 1; }
.nc-specifics { color: var(--ink); font-size: 15px; overflow-wrap: anywhere; }
.nc-statusline { margin-top: 6px !important; color: var(--ink); font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.nc-group-foot { margin-top: 4px !important; font-size: 14px; color: var(--slate); }
.nc-group-foot span + span::before { content: " · "; }
.nc-action { margin: 14px 0 0; }
.nc-group .nc-action { position: relative; z-index: 1; }
.nc-action + .nc-action { margin-top: 12px; }
.nc-action + .nc-button { margin-top: 12px; }
.nc-action-label { font-weight: 700; color: var(--ink); }
.nc-consequence { margin: 8px 0 0 !important; font-size: 14px; color: var(--slate); }
.nc-lines { list-style: none; margin: 0 0 12px; padding: 0; }
.nc-line { margin: 0 0 8px; border-radius: 10px; background: var(--card); border-left: 4px solid var(--tone, var(--good)); }
.nc-line-link { display: block; min-height: 48px; padding: 12px 14px; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.45; }
.nc-line-link:hover .nc-line-text { text-decoration: underline; }
.nc-line .nc-tone-word { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; margin-right: 4px; }
.nc-line-status { color: var(--slate); }
.nc-line-status::before { content: "· "; }
.nc-notice { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-text); }
.nc-notice a { color: var(--warn-text); font-weight: 700; }
.nc-notice-quiet { background: var(--card); color: var(--slate); }
.nc-filter { margin: 0 0 16px; }
.nc-back { margin: 0 0 16px; }
.nc-back a, .nc-filter a { display: inline-flex; align-items: center; min-height: 48px; }
.nc-learning { margin: 0 0 12px; padding: 14px 16px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); }
.nc-learning p { margin: 0; }
.nc-learning-text { color: var(--ink); }
.nc-learning-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; font-size: 14px; }
.nc-learning-foot a, .nc-fact a.nc-target { display: inline-flex; align-items: center; min-height: 48px; }
.nc-teams { list-style: none; margin: 0; padding: 0; }
.nc-team-link { display: block; min-height: 48px; margin: 0 0 8px; padding: 12px 14px; border-radius: 10px; background: var(--card);
  color: var(--ink); text-decoration: none; }
.nc-team-link[aria-current="page"] { outline: 2px solid var(--link); }
.nc-team-name { display: block; font-weight: 700; }
.nc-team-counts { display: block; font-size: 14px; color: var(--slate); }
.nc-panel { margin: 0 0 24px; padding: 20px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); }
.nc-panel > p { margin: 0 0 16px; color: var(--ink); }
.nc-panel .nc-h2 { font-size: 18px; margin: 24px 0 6px; }
.nc-quiet { color: var(--slate); font-weight: 400; }
.nc-panel > .nc-button, .nc-panel > .nc-action { margin-top: 16px; }
.nc-facts { margin: 0; padding: 4px 16px; border-radius: 12px; background: var(--panel); }
.nc-fact { padding: 10px 0; border-top: 1px solid var(--line); }
.nc-fact:first-child { border-top: 0; }
.nc-fact dt { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--slate); }
.nc-fact dd { margin: 2px 0 0; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.nc-panel .nc-facts + .nc-h2 { margin-top: 24px; }
.nc-items { list-style: none; margin: 0; padding: 0; }
.nc-item-link { display: block; min-height: 48px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.nc-items li:first-child .nc-item-link { border-top: 0; }
.nc-item-title { display: block; font-weight: 600; overflow-wrap: anywhere; }
.nc-item-link:hover .nc-item-title { text-decoration: underline; }
.nc-item-meta { display: block; font-size: 14px; color: var(--slate); }
.nc-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.nc-tl { position: relative; padding: 0 0 14px 12px; }
.nc-tl::before { content: ""; position: absolute; left: -26px; top: 7px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--card); border: 3px solid var(--brain); }
.nc-tl-alert::before { border-color: var(--high); }
.nc-tl-cleared::before, .nc-tl-closed::before { border-color: var(--good); }
.nc-tl-status::before { border-color: var(--sky); }
.nc-tl-when { display: block; font-size: 13px; color: var(--slate); }
.nc-tl-text { display: block; color: var(--ink); overflow-wrap: anywhere; }
.nc-tl-note { display: block; font-size: 14px; color: var(--slate); }
.nc-details > summary { display: flex; align-items: center; min-height: 48px; cursor: pointer; color: var(--link); font-weight: 700; }
.nc-details[open] > summary { margin-bottom: 8px; }
.nc-panel.nc-details { padding-top: 4px; padding-bottom: 4px; }
.nc-panel.nc-details[open] { padding-bottom: 16px; }
.nc-settings .nc-h2:first-child { margin-top: 0; }
.nc-update { position: sticky; top: 8px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin: 0 0 16px; padding: 8px 12px; border-radius: 10px; background: var(--update-bg); border: 1px solid var(--update-line);
  box-shadow: var(--shadow); }
.nc-update-text { margin: 0; flex: 1 1 200px; color: var(--ink); }
.nc-button-small { width: auto; display: inline-block; padding: 10px 16px; }
.nc-toast { position: fixed; left: 50%; bottom: 16px; z-index: 10; transform: translateX(-50%); width: calc(100% - 32px);
  max-width: 560px; margin: 0; padding: 12px 16px; border-radius: 10px; background: #0B2A42; color: #FFFFFF; box-shadow: 0 4px 16px rgba(11, 42, 66, 0.3); }
.nc-toast:empty { display: none; }
.nc-footer-page { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 16px; }
.nc-footer-page p { margin: 0; }
.nc-linkbutton { min-height: 48px; padding: 0 8px; border: 0; background: none; color: var(--link); font: inherit;
  font-weight: 700; text-decoration: underline; cursor: pointer; }
@media (min-width: 900px) {
  .nc-columns { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; }
  .nc-main .nc-action .nc-button, .nc-panel > a.nc-button { width: auto; display: inline-block; min-width: 220px; }
  .nc-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; }
  .nc-fact:nth-child(2) { border-top: 0; }
  .nc-panel > .nc-action + a.nc-button { margin-top: 16px; }
}
@media (max-width: 600px) {
  .nc-shell { padding: 0 0 24px; }
  .nc-header { border-radius: 0; padding: 20px 24px 26px; }
  .nc-card { border-radius: 0; padding: 24px; }
  .nc-page { padding: 0 0 96px; }          /* room to scroll the footer above the toast */
  .nc-header-page { padding: 8px 16px 22px; }
  .nc-header-page .nc-title { font-size: 24px; line-height: 30px; margin-top: 14px; }
  .nc-nav-link { padding: 0 10px; }
  .nc-main { padding: 16px 16px 0; }
  .nc-panel { padding: 16px; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0F1B26; --card: #16283A; --panel: #1D3349; --line: #2A4057; --ink: #E8EFF5; --slate: #A9BCCB;
    --link: #7CC7F0; --focus: #7CC7F0;
    --critical-text: #F28B82; --high-text: #F5B867; --good-text: #5DD3A6; --low-text: #9FB0BF;
    --chip-bg: #1D3349; --chip-text: #A9BCCB; --warn-bg: #3A2A14; --warn-text: #F5B867;
    --update-bg: #1D3349; --update-line: #2A4057; --shadow: none;
  }
  body { background: #0F1B26; color: #A9BCCB; }
  .nc-card { background: #16283A; color: #E8EFF5; }
  .nc-button-quiet { background: #16283A; color: #7CC7F0; border-color: #7CC7F0; }
  .nc-button-quiet:hover { background: #1D3349; }
  .nc-status, .nc-note { color: #F5B867; }
  .nc-footer { color: #A9BCCB; }
  .nc-banner { background: #3A1F1C; color: #F8E3E0; }
  .nc-h2, .nc-label, .nc-code, .nc-code-inline { color: #E8EFF5; }
  .nc-row { border-top-color: #2A4057; }
  .nc-input { background: #0F1B26; color: #E8EFF5; border-color: #44586B; }
  .nc-link { background: #0F1B26; color: #E8EFF5; }
  .nc-skip { background: #16283A; color: #7CC7F0; }
  .nc-toast { background: #E8EFF5; color: #0B2A42; }
}
