/* os/nc.css — the unified notification centre (SPEC-NOTIFICATIONS §5): header actions, app filter chips, stacks, swipe/hover
   dismiss, the preferences view. Pulse tokens only; logical properties (RTL). The panel frame and cards live in os.css. */

.os-nc { width: 400px; }
.os-nc-h { flex-wrap: wrap; row-gap: 4px; }
.os-nc-acts { display: flex; align-items: center; gap: 2px; }
.os-nc-ib { width: 30px; height: 30px; border-radius: 10px; display: inline-grid; place-items: center; color: var(--text-2); }
.os-nc-ib:hover { background: color-mix(in srgb, var(--surface) 80%, var(--accent)); color: var(--text); }
.os-nc-ib[aria-pressed="true"] { background: var(--accent); color: var(--on-accent, #fff); }
.os-nc-ib svg { width: 17px; height: 17px; }

.os-nc-filter { display: flex; gap: 6px; padding: 0 14px 10px; overflow-x: auto; scrollbar-width: none; }
.os-nc-filter:empty { display: none; }
.os-nc-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding-inline: 10px; border-radius: 999px;
  font: 600 12px/1 var(--font-ui); color: var(--text-2); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.os-nc-chip[aria-pressed="true"] { background: var(--text); color: var(--bg, var(--surface)); box-shadow: none; }
.os-nc-chip .n { min-width: 16px; height: 16px; padding-inline: 4px; border-radius: 8px; background: var(--pulse); color: #14122b; font: 700 10.5px/16px var(--font-ui); text-align: center; }

.os-nc-gh { display: flex; align-items: center; gap: 8px; padding: 12px 8px 8px; }
.os-nc-gh .os-nc-g { padding: 0; flex: 1; }
.os-nc-gh button { font: 600 11.5px/1 var(--font-ui); color: var(--text-3); padding: 4px 6px; border-radius: 8px; }
.os-nc-gh button:hover { color: var(--text); background: var(--surface); }

.os-nc-row { position: relative; margin-block-end: 8px; touch-action: pan-y; }
.os-nc-row .os-ncard { position: relative; transition: transform .18s var(--ease-out, ease), opacity .18s; }
.os-nc-row.dragging .os-ncard { transition: none; }
.os-nc-row.gone { opacity: 0; transform: translateX(-30px); transition: opacity .18s, transform .18s; }
.os-nc-x-btn { position: absolute; z-index: 2; inset-block-start: -6px; inset-inline-end: -6px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--flyout, var(--surface)); color: var(--text-2); box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgb(0 0 0 / .12);
  opacity: 0; transition: opacity .12s; }
.os-nc-x-btn svg { width: 12px; height: 12px; }
.os-nc-row:hover .os-nc-x-btn, .os-nc-row:focus-within .os-nc-x-btn { opacity: 1; }
.os-ncard.pri-high, .os-ncard.pri-urgent { box-shadow: 0 0 0 1px var(--line), inset 3px 0 0 var(--warning); }
.os-ncard.pri-urgent { box-shadow: 0 0 0 1px var(--line), inset 3px 0 0 var(--danger, #e5484d); }

/* a collapsed stack: two paper edges under the top card */
.os-nc-stack { position: relative; margin-block-end: 14px; }
.os-nc-stack::before, .os-nc-stack::after { content: ""; position: absolute; inset-inline: 10px; inset-block-end: -5px; height: 12px; border-radius: 0 0 14px 14px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line); z-index: 0; }
.os-nc-stack::after { inset-inline: 20px; inset-block-end: -10px; opacity: .7; }
.os-nc-stack .os-ncard { z-index: 1; }
.os-nc-more { display: block; font: 600 11.5px/1.2 var(--font-ui); color: var(--accent); margin-top: 4px; }

/* preferences */
.os-nc-set { flex: 1; padding: 0 14px 14px; }
.os-nc-set h3 { font: 700 12px/1 var(--font-ui); color: var(--text-3); margin: 14px 4px 8px; }
.os-nc-back { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px/1 var(--font-ui); color: var(--accent); padding: 6px 4px; }
.os-nc-back svg { width: 14px; height: 14px; }
.os-nc-box { background: var(--surface); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.os-nc-line { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 44px; }
.os-nc-line + .os-nc-line { border-top: 1px solid var(--line); }
.os-nc-line .lbl { flex: 1; min-width: 0; font: 600 13px/1.3 var(--font-ui); }
.os-nc-line .lbl small { display: block; font: 400 11.5px/1.35 var(--font-ui); color: var(--text-3); margin-top: 2px; }
.os-nc-line input[type="time"], .os-nc-line select { font: 500 12.5px/1 var(--font-ui); padding: 5px 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg, var(--surface)); color: var(--text); }
.os-nc-cols { display: grid; grid-template-columns: repeat(3, 44px); gap: 4px; justify-items: center; font: 600 10.5px/1.1 var(--font-ui); color: var(--text-3); text-align: center; }
.os-nc-kind { padding-inline-start: 40px; }
.os-nc-kind .lbl { font-weight: 500; font-size: 12.5px; }
.os-nc-caret { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; color: var(--text-3); }
.os-nc-caret svg { width: 13px; height: 13px; transition: transform .15s; }
.os-nc-caret[aria-expanded="true"] svg { transform: rotate(180deg); }

.os-nc-sw { position: relative; width: 36px; height: 22px; border-radius: 11px; background: color-mix(in srgb, var(--text-3) 35%, transparent); flex: none; transition: background .15s; }
.os-nc-sw::after { content: ""; position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / .25); transition: transform .15s; }
.os-nc-sw[aria-checked="true"] { background: var(--accent); }
.os-nc-sw[aria-checked="true"]::after { transform: translateX(-14px); }
[dir="ltr"] .os-nc-sw::after { right: auto; left: 2px; }
[dir="ltr"] .os-nc-sw[aria-checked="true"]::after { transform: translateX(14px); }
.os-nc-sw:disabled { opacity: .45; }
.os-nc-sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.os-nc-note { font: 400 12px/1.45 var(--font-ui); color: var(--text-3); padding: 8px 4px 0; }

.os-banner.pri-urgent { box-shadow: 0 0 0 1.5px var(--danger, #e5484d), 0 12px 32px rgb(0 0 0 / .2); }

@media (prefers-reduced-motion: reduce) {
  .os-nc-row .os-ncard, .os-nc-row.gone, .os-nc-sw, .os-nc-sw::after { transition: none; }
}
.phone-mode .os-nc { width: auto; }
