/* The bell in the top bar and its panel (features/notifications.js). */
.nt-bell[hidden] { display: none; }
.nt-badge { position: absolute; top: 2px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: #ff3b30; color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; box-shadow: 0 0 0 2px var(--card, #fff); pointer-events: none; }
.nt-badge[hidden] { display: none; }

.popover.nt-pop { width: 380px; max-width: calc(100vw - 16px); padding: 0; overflow: hidden; display: flex; }
.popover.nt-pop.sheet { width: auto; }
.nt-panel { display: flex; flex-direction: column; width: 100%; max-height: min(560px, calc(100dvh - 80px)); }
.nt-head { display: flex; align-items: baseline; gap: 8px; padding: 12px 14px 8px; }
.nt-head b { font-size: 14px; font-weight: 650; }
.nt-src { font-size: 12px; color: var(--text-3); }
.nt-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 6px 6px; }
.nt-empty { margin: 6px 8px 14px; color: var(--text-2); font-size: 13px; line-height: 1.45; }
.nt-item { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: start; width: 100%; padding: 9px 8px; border-radius: 9px; text-align: left; color: var(--text); }
.nt-item:hover, .nt-item:focus-visible { background: light-dark(rgba(0, 0, 0, 0.04), rgba(255, 255, 255, 0.08)); }
.nt-item.unread { background: rgba(0, 113, 227, 0.06); }
.nt-item.unread:hover { background: rgba(0, 113, 227, 0.1); }
.nt-mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--pill-bg, #f0f0f3); color: var(--text-2); }
.nt-mark.nt-mention { background: light-dark(#e8f1fd, #16273d); color: var(--blue); }
.nt-mark.nt-assign { background: light-dark(#e7f8ee, #1f3b2b); color: light-dark(#0f9f6e, #80f3cc); }
.nt-mark.nt-comment::before { content: ""; width: 11px; height: 9px; border: 1.6px solid currentColor; border-radius: 3px; }
.nt-mark.nt-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.nt-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nt-title { font-size: 13px; font-weight: 550; line-height: 1.35; }
.nt-item.unread .nt-title { font-weight: 650; }
.nt-body { font-size: 12.5px; color: var(--text-2); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.nt-time { font-size: 11.5px; color: var(--text-3); white-space: nowrap; padding-top: 1px; }
.nt-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-top: 1px solid var(--border); }
.nt-seg { display: inline-flex; padding: 2px; border-radius: 8px; background: light-dark(rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.1)); }
.nt-seg button { padding: 4px 10px; border-radius: 6px; font-size: 12px; color: var(--text-2); }
.nt-seg button[aria-pressed="true"] { background: var(--card); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
.nt-switch { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-2); padding: 4px 2px; }
.nt-knob { position: relative; width: 28px; height: 16px; border-radius: 99px; background: light-dark(#d1d1d6, #414146); transition: background .15s; }
.nt-knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform .15s; }
.nt-switch[aria-checked="true"] .nt-knob { background: #34c759; }
.nt-switch[aria-checked="true"] .nt-knob::after { transform: translateX(12px); }
@media (prefers-reduced-motion: reduce) { .nt-knob, .nt-knob::after { transition: none; } }

/* the gear and the settings view (Felix, 2026-11-12: notifications for any production, set per person) */
.nt-head { align-items: center; }
.nt-gear, .nt-back { width: 28px; height: 28px; margin-left: auto; color: var(--text-2); }
.nt-back { margin-left: -6px; margin-right: 0; }
.nt-gear svg, .nt-back svg { width: 16px; height: 16px; }
.nt-foot-hint { font-size: 11.5px; color: var(--text-3); }
.nt-settings { padding: 2px 10px 12px; }
.nt-set-title { margin: 14px 4px 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.nt-set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 4px; border-radius: 8px; }
.nt-set-row + .nt-set-row { border-top: 1px solid light-dark(rgba(0, 0, 0, .04), rgba(255, 255, 255, 0.08)); }
.nt-set-def { padding: 10px 10px; background: light-dark(#f7f7f9, #212124); border: 0; }
.nt-set-name { display: flex; flex-direction: column; min-width: 0; font-size: 13px; color: var(--text); }
.nt-set-name, .nt-set-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-set-name b { font-weight: 600; }
.nt-set-name small { font-size: 11px; color: var(--text-3); }
.nt-set-row.own .nt-set-name { font-weight: 550; }
.nt-seg3 { flex: none; }
.nt-seg3 button { min-width: 42px; }
.nt-kinds { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 2px; }
.nt-kind { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 7px; border: 1px solid light-dark(#e3e3e8, #313135); border-radius: 999px; background: var(--card); font-size: 12.5px; font-weight: 500; color: var(--text-2); transition: background .12s, border-color .12s, color .12s; }
.nt-kind-ck { width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid light-dark(#c7c7cc, #49494f); color: transparent; transition: background .12s, border-color .12s; }
.nt-kind-ck svg { width: 10px; height: 10px; stroke-width: 3; }
.nt-kind[aria-pressed="true"] { border-color: rgba(0, 113, 227, .35); background: var(--blue-soft); color: var(--blue); }
.nt-kind[aria-pressed="true"] .nt-kind-ck { background: var(--blue); border-color: var(--blue); color: #fff; }
.nt-mark.nt-revision { background: light-dark(#f3eefe, #1f1339); color: light-dark(#7c3aed, #9c69f1); }
