/* OS notifications panel — visibility is driven by
   `body[data-settings-section="notifications"]` on the wrapper
   `[data-settings-section="notifications"]` (see settings.css).
   Keep the flex layout primitives, drop the `display:none`. */

#notificationsSection { display: flex; flex-direction: column; gap: var(--space-lg); max-width: 640px; }

.notif-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-m);
  background: var(--surface);
}

.notif-group-title {
  margin: 0;
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.notif-group-desc { margin: 0; font-size: var(--font-sm); color: var(--ink-muted); line-height: 1.5; }

.notif-tip {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-sm, 6px);
  background: var(--glass);
  font-size: var(--font-xs);
}

.notif-status-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.notif-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full, 999px);
  font-size: var(--font-xs);
  font-weight: 600;
}

/* DS path: Surface/label/<intent>/default. Translucent tints behind
   "Granted" / "Denied" badges so they read against the surrounding
   white-overlay block without colliding with status hues elsewhere. */
.notif-status-badge[data-state="granted"]      { background: var(--surface-label-success-default); color: var(--success); }
.notif-status-badge[data-state="default"]      { background: var(--surface-label-neutral-default); color: var(--ink-muted); }
.notif-status-badge[data-state="denied"]       { background: var(--surface-label-alert-default);   color: var(--coral); }
.notif-status-badge[data-state="unsupported"]  { background: var(--surface-label-neutral-default); color: var(--ink-muted); }

.notif-status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.notif-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-top: var(--space-sm); }

.notif-btn {
  padding: 8px 14px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-m);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--font-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.notif-btn:hover { background: var(--glass); border-color: var(--accent); }
.notif-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.notif-btn:disabled:hover { background: var(--surface); border-color: var(--border-mid); }

.notif-btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Master toggle row (Tier-1 Phase 1) ─────────────────────────────
   Two-column row: stacked label/help on the left, toggle switch on
   the right. Used by the «Что показывать» group. */
.notif-toggle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--border-subtle, var(--border));
  cursor: pointer;
}
.notif-group .notif-toggle-row:first-of-type { border-top: none; padding-top: var(--space-md); }

.notif-toggle-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.notif-toggle-title {
  font-size: var(--font-md);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}
.notif-toggle-help {
  font-size: var(--font-xs);
  color: var(--ink-muted);
  line-height: 1.4;
}

/* Switch — visually a pill that slides; the native checkbox is hidden
   via appearance:none and we paint the pill ourselves.
   DS path: Surface/toggle/{accent,neutral}/{default,hovered,disabled}.
   Off / hover / on / disabled all consume the per-component tokens
   so a future tone tweak applies in one place. */
.notif-toggle {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  flex-shrink: 0;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--surface-toggle-neutral-default);
  cursor: pointer;
  position: relative;
  transition: background var(--transition);
  outline: none;
}
.notif-toggle:hover { background: var(--surface-toggle-neutral-hovered); }
.notif-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface-toggle-thumb);
  transition: transform var(--transition);
}
.notif-toggle:checked { background: var(--surface-toggle-accent-default); }
.notif-toggle:checked:hover { background: var(--surface-toggle-accent-hovered); }
.notif-toggle:disabled {
  background: var(--surface-toggle-neutral-disabled);
  cursor: not-allowed;
}
.notif-toggle:checked:disabled { background: var(--surface-toggle-accent-disabled); }
.notif-toggle:checked::after { transform: translateX(16px); }
.notif-toggle:focus-visible { box-shadow: 0 0 0 3px var(--accent-soft); }
.notif-btn-primary:hover { background: var(--accent); border-color: var(--accent); filter: brightness(1.1); }
