/* Notification Centre — matches the app's dark board pages. */
body {
    margin: 0;
    background: #14161c;
    color: #d7dce6;
    font: 14px/1.5 -apple-system, "Segoe UI", Roboto, sans-serif;
}

#notificationsRoot {
    max-width: 720px;
    margin: 0 auto;
    padding: 26px 20px 60px;
}

.notif-head h1 {
    font-size: 20px;
    margin: 0 0 6px;
}

.notif-sub {
    color: #8a93a6;
    font-size: 13px;
    margin: 0 0 22px;
    max-width: 640px;
}

.notif-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notif-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #1b1e27;
    border: 1px solid #2a2f3c;
    border-radius: 8px;
    padding: 14px 16px;
    cursor: pointer;
}

.notif-text { flex: 1; }

.notif-title {
    font-weight: 700;
    font-size: 14px;
}

.notif-detail {
    color: #8a93a6;
    font-size: 12px;
    margin-top: 3px;
}

/* Shown only when the preference could not be persisted — the switch snaps back to the state
   that is actually in force, so this line explains a control that refused to move. */
.notif-error {
    color: #ff97a1;
    font-size: 12px;
    margin-top: 5px;
}

.notif-row[data-pref-error] { border-color: rgba(220, 53, 69, 0.7); }

/* Switch: the native checkbox stays the accessible control; the slider is cosmetic. */
.notif-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.notif-slider {
    flex: 0 0 auto;
    width: 40px;
    height: 22px;
    border-radius: 11px;
    background: #3a3f4d;
    position: relative;
    transition: background 0.15s ease;
}

.notif-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #d7dce6;
    transition: left 0.15s ease;
}

.notif-row[data-pref-state="on"] .notif-slider { background: #2e7d46; }
.notif-row[data-pref-state="on"] .notif-slider::after { left: 20px; }

.notif-row:focus-within .notif-slider {
    outline: 2px solid #78aaff;
    outline-offset: 2px;
}

/* A group of switches that belong to one feature: a master plus the choices it gates. The heading
   is a sibling of the rows rather than a wrapper, so the list keeps one flat DOM level and the
   rows keep their existing layout. */
.notif-group { padding: 14px 2px 2px; }
.notif-group-title {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8fa1b7;
}
.notif-group-note { margin-top: 4px; font-size: 12px; line-height: 1.45; color: #7f91a7; }
