/* ATLAS V6 — Voice Inbox / Notification Center page augmentation
 *
 * V5→V6 polish 2026-06-23. Re-skins the existing ntf-* BEM DOM
 * (data-view="notifications", id="view-notifications") with V6 vocabulary
 * per atlas-dashboard.md. Distinct from the top-bar bell drawer.
 *
 * Loads after css/v5-notifications.css + before css/v6-pages.css. No class
 * renames — v5-notifications.js still self-inits on atlas:view-shown. Dark
 * mode blocks omitted per atlas-dashboard hard rule #4 (V6 single-theme).
 * ─────────────────────────────────────────────────────────────────────── */

#view-notifications {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px 24px;
  gap: 16px;
  background: transparent;
}

/* ── Header (eyebrow / H1 / sub + actions) ────────────────────────────── */
.ntf-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.ntf-header__lede {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.ntf-eyebrow {
  display: block;
  width: auto;
  font: 900 11px/1 var(--font-ui, Inter);
  letter-spacing: .14em;
  /* compensate for the half-letter-spacing added before the first char,
     so eyebrow / title / sub all start at the same x in the column */
  text-indent: -0.07em;
  text-transform: uppercase;
  color: var(--muted, #647184);
  margin: 0 0 6px;
}
.ntf-title {
  display: block;
  font: 850 28px/1.18 var(--font-display, "Aptos Display", Inter);
  color: var(--ink, #101722);
  letter-spacing: -0.005em;
  margin: 0 0 4px;
}
.ntf-subtitle {
  display: block;
  font: 400 14px/1.45 var(--font-ui, Inter);
  /* kill V5's .04em letter-spacing inheritance (font: shorthand doesn't reset it) */
  letter-spacing: 0;
  color: var(--muted, #647184);
  margin: 0;
}
.ntf-header__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Action buttons (Mark All Read + Settings) — outline secondary, V6 vocab */
.ntf-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius, 8px);
  background: var(--surface, #fffdf8);
  border: 1px solid var(--line, #d7d0c3);
  color: var(--ink, #101722);
  font: 600 13px/1 var(--font-ui, Inter);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.ntf-btn svg { width: 14px; height: 14px; }
.ntf-btn:hover {
  background: var(--bg2, #fbfaf7);
  border-color: var(--line-strong, #c4b9a8);
  transform: translateY(-1px);
}
.ntf-btn--primary {
  background: var(--ink, #101722);
  color: #fff;
  border-color: var(--ink, #101722);
}
.ntf-btn--primary:hover { background: #1d2630; border-color: #1d2630; }

/* ── Filter tabs ──────────────────────────────────────────────────────── */
.ntf-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line, #d7d0c3);
}
.ntf-filters .ntf-filter,
.ntf-filters [role="tab"] {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted, #647184);
  font: 600 12px/1 var(--font-ui, Inter);
  padding: 8px 14px;
  border-radius: var(--radius-pill, 999px);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.ntf-filters .ntf-filter:hover,
.ntf-filters [role="tab"]:hover { color: var(--ink, #101722); background: var(--bg2, #fbfaf7); }
.ntf-filters .ntf-filter.is-on,
.ntf-filters [role="tab"][aria-selected="true"] {
  background: var(--ink, #101722);
  color: #fff;
}

/* ── Feed (date-grouped) + Empty state ────────────────────────────────── */
.ntf-feed {
  flex: 1;
  min-height: 0;
  background: var(--surface, #fffdf8);
  border: 1px solid var(--line, #d7d0c3);
  border-radius: var(--radius-lg, 12px);
  padding: 16px 20px;
  overflow: auto;
  box-shadow: var(--soft-shadow, 0 10px 24px rgba(29,24,14,.07));
  position: relative;
}
.ntf-groups { display: flex; flex-direction: column; gap: 18px; }
.ntf-group-head {
  font: 800 11px/1 var(--font-ui, Inter);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted, #647184);
  padding: 0 0 8px;
  border-bottom: 1px solid var(--border2, #ebe7de);
  margin-bottom: 6px;
}

/* Individual notification rows */
.ntf-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius, 8px);
  border: 1px solid transparent;
  background: transparent;
  transition: background .15s ease, border-color .15s ease;
}
.ntf-item:hover {
  background: var(--bg2, #fbfaf7);
  border-color: var(--border2, #ebe7de);
}
.ntf-item.is-unread { background: var(--warn-soft, #fbecd0); border-color: rgba(193,138,37,.25); }
.ntf-item__title { font: 600 13px/1.35 var(--font-ui, Inter); color: var(--ink, #101722); }
.ntf-item__meta  { font: 500 11px/1 var(--font-ui, Inter); color: var(--muted, #647184); font-variant-numeric: tabular-nums; }

/* Empty state */
.ntf-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 20px;
  color: var(--muted, #647184);
}
.ntf-empty__icon { color: var(--good, #2e8b57); width: 44px; height: 44px; }
.ntf-empty__title {
  font: 800 16px/1.2 var(--font-display, "Aptos Display", Inter);
  color: var(--ink, #101722);
}
.ntf-empty__sub {
  font: 400 13px/1.4 var(--font-ui, Inter);
  color: var(--muted, #647184);
}

/* ── Preferences panel ────────────────────────────────────────────────── */
.ntf-prefs {
  background: var(--surface, #fffdf8);
  border: 1px solid var(--line, #d7d0c3);
  border-radius: var(--radius-lg, 12px);
  padding: 18px 20px;
  box-shadow: var(--soft-shadow, 0 10px 24px rgba(29,24,14,.07));
}
.ntf-prefs__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border2, #ebe7de);
}
.ntf-prefs__head svg { color: var(--gold, #c18a25); }
.ntf-prefs__title {
  font: 800 13px/1 var(--font-ui, Inter);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink, #101722);
}
.ntf-prefs__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
.ntf-prefs__col { min-width: 0; }
.ntf-prefs__col-title {
  font: 800 11px/1 var(--font-ui, Inter);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted, #647184);
  margin-bottom: 10px;
}
.ntf-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border2, #ebe7de);
}
.ntf-pref-row:last-child { border-bottom: 0; }
.ntf-pref-row__label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ntf-pref-row__name {
  font: 600 13px/1.3 var(--font-ui, Inter);
  color: var(--ink, #101722);
}
.ntf-pref-row__desc {
  font: 400 11px/1.3 var(--font-ui, Inter);
  color: var(--muted, #647184);
}

/* iOS-style toggle */
.ntf-toggle {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
  flex-shrink: 0;
}
.ntf-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.ntf-toggle__slider {
  position: absolute;
  inset: 0;
  background: var(--bg3, #ebe7de);
  border-radius: var(--radius-pill, 999px);
  transition: background .15s ease;
  cursor: pointer;
}
.ntf-toggle__slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
  transition: transform .18s ease;
}
.ntf-toggle input:checked + .ntf-toggle__slider {
  background: var(--gold, #c18a25);
}
.ntf-toggle input:checked + .ntf-toggle__slider::before {
  transform: translateX(14px);
}
