/* ============================================================================
   Schiphol Notification Center (release 2, 2026-11-11) — like Poeldijk's, without
   the daily brief. One stylesheet for every page that carries the center
   (index.html, pages/positions.html, pages/dossiers.html, pages/wms.html).

   SELF-CONTAINED ON PURPOSE: index.html does not load css/themes.css, the other
   pages do, and themes.css repaints bare button / span / b / small / input in
   light mode with !important. So every colour here sits on an .ncx-* class and
   carries !important where themes.css would otherwise win. Dark first (the app's
   default), light under html[data-theme="light"].
   ============================================================================ */
.ncx {
    --ncx-bg: #0f1b26;
    --ncx-raised: #152532;
    --ncx-card: #132230;
    --ncx-line: #24394a;
    --ncx-ink: #e6eef5;
    --ncx-dim: #9db4c6;
    --ncx-faint: #7f98ab;
    --ncx-accent: #3b9be0;
    --ncx-accent-ink: #ffffff;
    --ncx-go: #1f8a55;
    --ncx-go-hover: #19734a;
    --ncx-go-soft: rgba(34, 197, 94, .14);
    --ncx-amber: #f0b54a;
    --ncx-amber-soft: rgba(240, 181, 74, .14);
    --ncx-amber-line: rgba(240, 181, 74, .45);
    --ncx-red: #f87171;
    --ncx-red-soft: rgba(248, 113, 113, .14);
    --ncx-chip: #1b3446;
    --ncx-chip-ink: #9fd2f3;
    --ncx-mrn: #123d2a;
    --ncx-mrn-ink: #86e1b0;
    --ncx-shadow: 0 10px 34px rgba(0, 0, 0, .45);
    --ncx-veil: rgba(0, 0, 0, .35);
    --ncx-hl: rgba(59, 155, 224, .18);
}
html[data-theme="light"] .ncx {
    --ncx-bg: #ffffff;
    --ncx-raised: #f4f8fb;
    --ncx-card: #ffffff;
    --ncx-line: #dbe6ee;
    --ncx-ink: #102033;
    --ncx-dim: #4a6274;
    --ncx-faint: #5f7788;
    --ncx-accent: #0a6aa8;
    --ncx-accent-ink: #ffffff;
    --ncx-go: #18794a;
    --ncx-go-hover: #13603b;
    --ncx-go-soft: #e3f4ea;
    --ncx-amber: #8a5a00;
    --ncx-amber-soft: #fdf2dc;
    --ncx-amber-line: #ecd29c;
    --ncx-red: #b42318;
    --ncx-red-soft: #fde8e6;
    --ncx-chip: #e5f1f8;
    --ncx-chip-ink: #0b4f78;
    --ncx-mrn: #e1f2e8;
    --ncx-mrn-ink: #135c38;
    --ncx-shadow: 0 10px 34px rgba(16, 32, 51, .18);
    --ncx-veil: rgba(16, 32, 51, .18);
    --ncx-hl: rgba(10, 106, 168, .12);
}

.ncx, .ncx * { box-sizing: border-box; }

/* ── the bell (bottom right, where the old dashboard bell sat) ── */
.ncx.ncx-bell {
    position: fixed; right: 20px; bottom: 20px; z-index: 1400;
    width: 52px; height: 52px; border-radius: 50% !important; padding: 0 !important;
    border: 0 !important; cursor: pointer;
    background: linear-gradient(135deg, #2f8fd8, #4f5fd6) !important; color: #fff !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .32);
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform .15s ease;
}
.ncx.ncx-bell:hover { transform: scale(1.06); background: linear-gradient(135deg, #2f8fd8, #4f5fd6) !important; }
.ncx.ncx-bell:focus-visible { outline: 3px solid #9ccff3; outline-offset: 2px; }
.ncx.ncx-bell svg { width: 22px; height: 22px; display: block; }
.ncx-bell .ncx-badge {
    position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 999px; background: #e5484d !important; color: #fff !important;
    font: 800 11px/20px Inter, system-ui, sans-serif; text-align: center;
    border: 2px solid #ffffff; pointer-events: none;
}
.ncx-bell .ncx-badge[hidden] { display: none; }
.ncx-bell.ncx-ringing { animation: ncx-pulse 2s infinite; }
@keyframes ncx-pulse {
    0% { box-shadow: 0 0 0 0 rgba(79, 95, 214, .55); }
    70% { box-shadow: 0 0 0 13px rgba(79, 95, 214, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 95, 214, 0); }
}
/* release 2b: an unload request waits - the ring turns red (the sound and the popup do the rest) */
.ncx-bell.ncx-ringing.ncx-urgent { animation-name: ncx-pulse-red; }
@keyframes ncx-pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .6); }
    70% { box-shadow: 0 0 0 14px rgba(229, 72, 77, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); }
}

/* ── backdrop + sidebar ── */
.ncx.ncx-backdrop {
    position: fixed; inset: 0; z-index: 10000; background: var(--ncx-veil);
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s;
}
.ncx.ncx-backdrop.visible { opacity: 1; visibility: visible; transition: opacity .25s ease, visibility 0s; }
/* release 2b (Poeldijk): the page stays usable beside the open center - "View" / "Show row" light the
   row up and open the comment on the board while the center stays open. Esc, the x, the bell or T close it. */
.ncx.ncx-backdrop.visible { background: transparent !important; pointer-events: none !important; }
.ncx.ncx-side {
    position: fixed; top: 0; bottom: 0; right: 0; width: 440px; max-width: 100vw; z-index: 10001;
    background: var(--ncx-bg) !important; color: var(--ncx-ink) !important;
    border-left: 1px solid var(--ncx-line); box-shadow: var(--ncx-shadow);
    display: flex; flex-direction: column;
    transform: translateX(105%); visibility: hidden;
    /* visible at once on open, hidden only after the slide out (a field in it can take focus at once) */
    transition: transform .28s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .28s;
    font: 400 13px/1.45 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.ncx.ncx-side.visible { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.4, 0, .2, 1), visibility 0s; }

.ncx-head {
    display: flex; align-items: center; gap: 6px; padding: 14px 14px 12px 18px;
    border-bottom: 1px solid var(--ncx-line); flex: 0 0 auto;
}
.ncx-head .ncx-h { flex: 1 1 auto; margin: 0; display: flex; align-items: center; gap: 8px;
    font: 700 15px/1.2 Inter, system-ui, sans-serif; color: var(--ncx-ink) !important; }
.ncx-head .ncx-h svg { width: 17px; height: 17px; color: var(--ncx-accent); }
.ncx .ncx-iconbtn {
    width: 30px; height: 30px; border-radius: 8px !important; padding: 0 !important; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent !important; border: 1px solid transparent !important; color: var(--ncx-dim) !important;
}
.ncx .ncx-iconbtn:hover, .ncx .ncx-iconbtn[aria-expanded="true"] {
    background: var(--ncx-raised) !important; border-color: var(--ncx-line) !important; color: var(--ncx-ink) !important;
}
.ncx .ncx-iconbtn svg { width: 16px; height: 16px; display: block; }

.ncx-tabs { display: flex; border-bottom: 1px solid var(--ncx-line); flex: 0 0 auto; padding: 0 6px; }
.ncx .ncx-tab {
    flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    padding: 10px 4px 9px !important; cursor: pointer; white-space: nowrap;
    font: 600 12.5px/1.2 Inter, system-ui, sans-serif;
    background: transparent !important; border: 0 !important; border-bottom: 2px solid transparent !important;
    border-radius: 0 !important; color: var(--ncx-dim) !important;
}
.ncx .ncx-tab:hover { color: var(--ncx-ink) !important; background: transparent !important; }
.ncx .ncx-tab.active { color: var(--ncx-accent) !important; border-bottom-color: var(--ncx-accent) !important; }
.ncx .ncx-count {
    min-width: 18px; padding: 0 6px; border-radius: 999px; font: 800 10.5px/17px Inter, system-ui, sans-serif;
    background: var(--ncx-red-soft) !important; color: var(--ncx-red) !important; text-align: center;
}
.ncx .ncx-count[hidden] { display: none; }
.ncx .ncx-count.ncx-count-new { background: var(--ncx-chip) !important; color: var(--ncx-chip-ink) !important; }

.ncx-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 12px 14px 16px; }
.ncx-empty { text-align: center; padding: 44px 16px; color: var(--ncx-faint) !important; font-size: 13px; }
.ncx-empty svg { width: 30px; height: 30px; display: block; margin: 0 auto 10px; color: var(--ncx-faint); opacity: .8; }

.ncx .ncx-sec { display: flex; align-items: center; gap: 7px; margin: 2px 2px 9px;
    font: 700 11px/1.3 Inter, system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--ncx-faint) !important; }
.ncx .ncx-sec + .ncx-sec, .ncx .ncx-card + .ncx-sec { margin-top: 16px; }
.ncx .ncx-sec .ncx-n { min-width: 18px; padding: 0 6px; border-radius: 999px; background: var(--ncx-red-soft) !important;
    color: var(--ncx-red) !important; font-size: 10.5px; line-height: 17px; text-align: center; letter-spacing: 0; }
.ncx .ncx-sec .ncx-note { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ncx-amber) !important; }

/* ── cards ── */
.ncx .ncx-card {
    background: var(--ncx-card) !important; border: 1px solid var(--ncx-line); border-radius: 11px;
    padding: 11px 12px; margin-bottom: 9px; color: var(--ncx-ink) !important;
    transition: height .45s ease, opacity .3s ease, margin .3s ease, padding .3s ease;
}
.ncx .ncx-card.ncx-unread { border-left: 3px solid var(--ncx-accent); }
/* high priority (like the old board bell): a red bar on the left */
.ncx .ncx-card.ncx-high, .ncx .ncx-crow.ncx-high { box-shadow: inset 3px 0 0 var(--ncx-red); }
.ncx .ncx-card.ncx-unread.ncx-high { border-left-color: var(--ncx-red); box-shadow: none; }
.ncx .ncx-crow.ncx-high { padding-left: 6px; border-radius: 4px; }
.ncx .ncx-card.ncx-read { opacity: .66; }
.ncx .ncx-card.ncx-onhold { border-color: var(--ncx-amber-line); }
.ncx .ncx-card.ncx-folding { overflow: hidden; opacity: .4; }
.ncx .ncx-card.ncx-leaving { max-height: 0 !important; opacity: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; border-width: 0; overflow: hidden; }

.ncx .ncx-row1 { display: flex; align-items: center; gap: 7px; min-width: 0; }
.ncx .ncx-ic { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--ncx-chip) !important; color: var(--ncx-chip-ink) !important; }
.ncx .ncx-ic svg { width: 15px; height: 15px; display: block; }
.ncx .ncx-ic.ncx-ic-warn { background: var(--ncx-amber-soft) !important; color: var(--ncx-amber) !important; }
.ncx .ncx-ic.ncx-ic-ok { background: var(--ncx-go-soft) !important; color: var(--ncx-go) !important; }
.ncx .ncx-ic.ncx-ic-bad { background: var(--ncx-red-soft) !important; color: var(--ncx-red) !important; }
.ncx .ncx-title { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: 13px; color: var(--ncx-ink) !important;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ncx .ncx-time { flex: 0 0 auto; font-size: 11px; color: var(--ncx-faint) !important; white-space: nowrap; }
.ncx .ncx-msg { margin-top: 5px; font-size: 12.5px; color: var(--ncx-dim) !important; overflow-wrap: anywhere; }
.ncx .ncx-refs { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 5px; }
.ncx .ncx-ref { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px;
    background: var(--ncx-raised) !important; border: 1px solid var(--ncx-line); color: var(--ncx-ink) !important;
    font: 600 11.5px/1.6 'JetBrains Mono', ui-monospace, Menlo, monospace; }
.ncx .ncx-ref i { font-style: normal; font-family: Inter, system-ui, sans-serif; font-weight: 600; font-size: 10.5px; color: var(--ncx-faint) !important; }

/* unload card */
.ncx .ncx-ur-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ncx .ncx-ctr { font: 700 14px/1.3 'JetBrains Mono', ui-monospace, Menlo, monospace; color: var(--ncx-ink) !important; cursor: copy; }
.ncx .ncx-myo { font: 700 12px/1.5 'JetBrains Mono', ui-monospace, Menlo, monospace; padding: 0 8px; border-radius: 6px;
    background: var(--ncx-chip) !important; color: var(--ncx-chip-ink) !important; cursor: copy; }
.ncx .ncx-wait { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--ncx-faint) !important; white-space: nowrap; }
.ncx .ncx-wait.ncx-wait-hold { color: var(--ncx-amber) !important; text-transform: uppercase; letter-spacing: .05em; }
.ncx .ncx-cp { width: 22px; height: 22px; padding: 0 !important; border-radius: 6px !important; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent !important; border: 1px solid transparent !important; color: var(--ncx-faint) !important; }
.ncx .ncx-cp:hover { border-color: var(--ncx-line) !important; color: var(--ncx-ink) !important; background: var(--ncx-raised) !important; }
.ncx .ncx-cp.ncx-copied { color: var(--ncx-go) !important; }
.ncx .ncx-cp svg { width: 13px; height: 13px; display: block; }
.ncx .ncx-holdban { display: flex; gap: 9px; align-items: flex-start; margin-top: 8px; padding: 8px 10px; border-radius: 8px;
    background: var(--ncx-amber-soft) !important; border: 1px solid var(--ncx-amber-line); }
.ncx .ncx-hb { flex: 0 0 auto; font: 800 10px/1.6 Inter, system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase;
    padding: 0 7px; border-radius: 5px; background: var(--ncx-amber) !important; color: var(--ncx-bg) !important; }
.ncx .ncx-hbt { min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--ncx-ink) !important; overflow-wrap: anywhere; }
.ncx .ncx-hbt .ncx-sub { display: block; font-weight: 400; font-size: 11px; color: var(--ncx-dim) !important; }
.ncx .ncx-holdedit { display: flex; gap: 6px; margin-top: 8px; }
.ncx .ncx-holdedit input { flex: 1 1 auto; min-width: 0; font: 400 12.5px/1.3 Inter, system-ui, sans-serif; padding: 7px 9px;
    border-radius: 8px; border: 1px solid var(--ncx-amber-line) !important; background: var(--ncx-bg) !important; color: var(--ncx-ink) !important; }
.ncx .ncx-holdedit input::placeholder { color: var(--ncx-faint) !important; }
.ncx .ncx-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 8px; }
.ncx .ncx-chip { font: 700 10.5px/1.7 Inter, system-ui, sans-serif; padding: 0 8px; border-radius: 999px;
    background: var(--ncx-chip) !important; color: var(--ncx-chip-ink) !important; }
.ncx .ncx-chip.ncx-chip-bad { background: var(--ncx-red-soft) !important; color: var(--ncx-red) !important; }
.ncx .ncx-chip.ncx-chip-quiet { background: var(--ncx-raised) !important; color: var(--ncx-faint) !important; border: 1px solid var(--ncx-line); }
.ncx .ncx-mrn { font: 700 10.5px/1.7 'JetBrains Mono', ui-monospace, Menlo, monospace; padding: 0 8px; border-radius: 999px;
    background: var(--ncx-mrn) !important; color: var(--ncx-mrn-ink) !important; }
.ncx .ncx-meta { margin-top: 7px; font-size: 12px; color: var(--ncx-ink) !important; overflow-wrap: anywhere; }
.ncx .ncx-meta .ncx-dimtxt { color: var(--ncx-faint) !important; }
.ncx .ncx-meta .ncx-nums { color: var(--ncx-dim) !important; font-variant-numeric: tabular-nums; }
.ncx .ncx-proof { display: flex; gap: 6px; margin-top: 8px; }
.ncx .ncx-thumb { width: 46px; height: 46px; padding: 0 !important; border-radius: 7px !important; overflow: hidden; cursor: pointer;
    border: 1px solid var(--ncx-line) !important; background: var(--ncx-raised) !important; color: var(--ncx-dim) !important;
    font: 700 12px/46px Inter, system-ui, sans-serif; text-align: center; }
.ncx .ncx-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* buttons */
.ncx .ncx-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.ncx .ncx-btn {
    font: 600 12px/1.2 Inter, system-ui, sans-serif; padding: 6px 9px !important; border-radius: 7px !important; cursor: pointer;
    background: var(--ncx-raised) !important; color: var(--ncx-ink) !important; border: 1px solid var(--ncx-line) !important; white-space: nowrap;
}
.ncx .ncx-btn:hover { border-color: var(--ncx-accent) !important; background: var(--ncx-raised) !important; }
.ncx .ncx-btn:disabled { opacity: .55; cursor: default; }
.ncx .ncx-btn.ncx-go { background: var(--ncx-go) !important; border-color: var(--ncx-go) !important; color: #fff !important; }
.ncx .ncx-btn.ncx-go:hover { background: var(--ncx-go-hover) !important; border-color: var(--ncx-go-hover) !important; }
.ncx .ncx-btn.ncx-hold { background: var(--ncx-amber-soft) !important; border-color: var(--ncx-amber-line) !important; color: var(--ncx-amber) !important; }
.ncx .ncx-btn.ncx-bad { color: var(--ncx-red) !important; }
.ncx .ncx-btn.ncx-quiet { background: transparent !important; border-color: transparent !important; color: var(--ncx-dim) !important; }
.ncx .ncx-btn.ncx-quiet:hover { color: var(--ncx-ink) !important; border-color: var(--ncx-line) !important; }
.ncx .ncx-right { margin-left: auto; }

/* approved-by-a-colleague bar */
.ncx .ncx-card.ncx-done { padding: 0; overflow: hidden; border-color: var(--ncx-go); }
.ncx .ncx-solved { display: flex; align-items: center; gap: 11px; padding: 12px; background: var(--ncx-go-soft) !important; }
.ncx .ncx-solved svg { width: 30px; height: 30px; flex: 0 0 auto; }
.ncx .ncx-solved svg circle { fill: var(--ncx-go); }
.ncx .ncx-solved svg path { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 26; stroke-dashoffset: 26; animation: ncx-tick .45s .1s ease forwards; }
@keyframes ncx-tick { to { stroke-dashoffset: 0; } }
.ncx .ncx-solved-txt { display: flex; flex-direction: column; min-width: 0; }
.ncx .ncx-solved-txt .ncx-st { font-weight: 800; color: var(--ncx-go) !important; }
.ncx .ncx-solved-txt .ncx-sc { font: 700 12px/1.4 'JetBrains Mono', ui-monospace, Menlo, monospace; color: var(--ncx-ink) !important; }
.ncx .ncx-solved-txt .ncx-sb { font-size: 11.5px; color: var(--ncx-dim) !important; }

/* comments */
.ncx .ncx-chd { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 7px; }
.ncx .ncx-ctag { font: 700 10.5px/1.6 Inter, system-ui, sans-serif; text-transform: uppercase; letter-spacing: .05em; color: var(--ncx-faint) !important; }
.ncx .ncx-crow { display: flex; gap: 8px; align-items: flex-start; padding: 7px 0; border-top: 1px solid var(--ncx-line); }
.ncx .ncx-crow:first-of-type { border-top: 0; padding-top: 0; }
.ncx .ncx-cgo { flex: 1 1 auto; min-width: 0; text-align: left; cursor: pointer; padding: 4px 6px !important; border-radius: 7px !important;
    display: flex; gap: 7px; align-items: flex-start;
    background: transparent !important; border: 1px solid transparent !important; color: var(--ncx-ink) !important; font: inherit; }
.ncx .ncx-cgo:hover { background: var(--ncx-hl) !important; border-color: var(--ncx-line) !important; }
.ncx .ncx-ctext { flex: 1 1 auto; min-width: 0; font-size: 12.5px; color: var(--ncx-ink) !important; overflow-wrap: anywhere; }
.ncx .ncx-ctext .ncx-sub { display: block; font-size: 11px; color: var(--ncx-faint) !important; margin-top: 2px; }
.ncx .ncx-flag { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--ncx-accent) !important; }
.ncx .ncx-flag.ncx-flag-high { background: var(--ncx-red) !important; }
.ncx .ncx-flag.ncx-flag-medium { background: var(--ncx-amber) !important; }
.ncx .ncx-cacts { display: flex; flex-direction: column; gap: 4px; flex: 0 0 auto; }
.ncx .ncx-ccu { font-size: 12px; font-weight: 600; color: var(--ncx-dim) !important; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ncx .ncx-arrow { flex: 0 0 auto; align-self: center; font-size: 17px; line-height: 1; color: var(--ncx-faint) !important; }

/* log */
.ncx .ncx-log { border-left: 3px solid var(--ncx-line); padding: 8px 10px; }
.ncx .ncx-log .ncx-lt { font-weight: 700; font-size: 12.5px; }
.ncx .ncx-log .ncx-by { margin-top: 3px; font-size: 11.5px; color: var(--ncx-faint) !important; }
.ncx .ncx-log .ncx-lmeta { margin-top: 3px; font-size: 11.5px; color: var(--ncx-dim) !important; overflow-wrap: anywhere; }
.ncx .ncx-log .ncx-llink { color: var(--ncx-accent) !important; font-weight: 600; text-decoration: none; }
.ncx .ncx-log .ncx-llink:hover { text-decoration: underline; }
.ncx .ncx-ref.ncx-lc-type { font-family: Inter, system-ui, sans-serif; }
.ncx .ncx-ref.ncx-lc-hi { background: var(--ncx-go-soft) !important; color: var(--ncx-go) !important; border-color: transparent; }
.ncx .ncx-ref.ncx-lc-mid { background: var(--ncx-amber-soft) !important; color: var(--ncx-amber) !important; border-color: transparent; }
.ncx .ncx-ref.ncx-lc-lo { background: var(--ncx-red-soft) !important; color: var(--ncx-red) !important; border-color: transparent; }

/* pager page-turn (Poeldijk): the new page slides in from the side of the click */
.ncx .ncx-pgwrap.ncx-pg-next { animation: ncx-pg-next .22s ease-out both; }
.ncx .ncx-pgwrap.ncx-pg-prev { animation: ncx-pg-prev .22s ease-out both; }
@keyframes ncx-pg-next { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ncx-pg-prev { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* pager */
.ncx .ncx-pager { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 0 2px; }
.ncx .ncx-pager .ncx-pg { width: 30px; height: 28px; padding: 0 !important; border-radius: 7px !important; cursor: pointer;
    background: var(--ncx-raised) !important; border: 1px solid var(--ncx-line) !important; color: var(--ncx-ink) !important; font: 700 13px/1 Inter, system-ui, sans-serif; }
.ncx .ncx-pager .ncx-pg:disabled { opacity: .4; cursor: default; }
.ncx .ncx-pager .ncx-pi { font-size: 12px; color: var(--ncx-dim) !important; font-variant-numeric: tabular-nums; }

/* settings (gear) */
.ncx .ncx-settings { flex: 0 0 auto; margin: 10px 14px 0; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--ncx-line);
    background: var(--ncx-raised) !important; }
.ncx .ncx-settings[hidden] { display: none; }
.ncx .ncx-set-row { display: flex; gap: 10px; align-items: center; }
.ncx .ncx-set-row .ncx-set-l { flex: 1 1 auto; min-width: 0; }
.ncx .ncx-set-row .ncx-set-t { display: block; font-weight: 700; font-size: 12.5px; color: var(--ncx-ink) !important; }
.ncx .ncx-set-row .ncx-set-d { display: block; font-size: 11.5px; color: var(--ncx-dim) !important; }
.ncx .ncx-switch { position: relative; width: 40px; height: 22px; padding: 0 !important; border-radius: 999px !important; cursor: pointer; flex: 0 0 auto;
    background: var(--ncx-line) !important; border: 0 !important; transition: background .15s; }
.ncx .ncx-switch[aria-checked="true"] { background: var(--ncx-go) !important; }
.ncx .ncx-switch .ncx-knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff !important;
    transition: left .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.ncx .ncx-switch[aria-checked="true"] .ncx-knob { left: 21px; }
.ncx .ncx-set-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 9px; }
.ncx .ncx-set-sub.ncx-off { opacity: .5; }
.ncx .ncx-set-sub label { font-size: 11.5px; font-weight: 600; color: var(--ncx-dim) !important; }
.ncx .ncx-set-sub select { font: 400 12px/1.2 Inter, system-ui, sans-serif; padding: 5px 7px; border-radius: 7px;
    border: 1px solid var(--ncx-line) !important; background: var(--ncx-bg) !important; color: var(--ncx-ink) !important; }
.ncx .ncx-seg { display: inline-flex; border: 1px solid var(--ncx-line); border-radius: 7px; overflow: hidden; }
.ncx .ncx-seg button { font: 600 11.5px/1.2 Inter, system-ui, sans-serif; padding: 5px 10px !important; cursor: pointer; border-radius: 0 !important;
    background: var(--ncx-bg) !important; color: var(--ncx-dim) !important; border: 0 !important; }
.ncx .ncx-seg button[aria-pressed="true"] { background: var(--ncx-accent) !important; color: var(--ncx-accent-ink) !important; }
.ncx .ncx-set-note { margin-top: 8px; font-size: 11px; color: var(--ncx-faint) !important; }

/* "Show row" / "View": the row or file the center points at */
.ncx-row-hl { outline: 2px solid #3b9be0 !important; outline-offset: -2px; background-color: rgba(59, 155, 224, .14) !important; transition: background-color .3s; }
/* ...and the commented cell / the comment mark on the board row (Poeldijk nc2-cell-hl) */
.ncx-cell-hl { outline: 3px solid #f59e0b !important; outline-offset: 1px; border-radius: 4px; animation: ncx-cell-pulse 1.2s ease-in-out 3; }
@keyframes ncx-cell-pulse { 50% { outline-color: #b45309; } }

@media (max-width: 520px) {
    .ncx.ncx-side { width: 100vw; }
    .ncx.ncx-bell { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .ncx.ncx-side, .ncx .ncx-card, .ncx.ncx-backdrop { transition: none; }
    .ncx-bell.ncx-ringing, .ncx .ncx-solved svg path, .ncx .ncx-pgwrap, .ncx-cell-hl { animation: none; stroke-dashoffset: 0; }
}
.ncx .ncx-more { margin: 2px 2px 10px; font-size: 11.5px; color: var(--ncx-faint) !important; }

/* keyboard focus in the accent colour (the panel takes the focus when it opens) */
.ncx :focus { outline: none; }
.ncx :focus-visible { outline: 2px solid var(--ncx-accent) !important; outline-offset: -2px; border-radius: 6px; }

/* release 2b gate: a board comment shown from the Notification Center is read-only in its bubble */
.cargo-board-root .th-ro, .th-ro { margin-top: 8px; font-size: 11.5px; line-height: 1.4; color: var(--ink-soft, #64748b); }
