
.nt-bell { position: relative; flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; margin-right: 8px; }
.nt-bell:hover, .nt-bell[aria-expanded="true"] { color: var(--text); background: var(--card-inner, rgba(255,255,255,.04)); }
.nt-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: none; align-items: center; justify-content: center; }
.nt-badge.on { display: inline-flex; }
.nt-panel { position: fixed; z-index: 160; top: 60px; right: 16px; width: 380px; max-height: min(70vh, 560px); display: none; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-card); }
.nt-panel.on { display: flex; }
.nt-hd { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.nt-hd h3 { margin: 0; font-size: 14px; flex: 1; }
.nt-link { background: none; border: 0; color: var(--accent); font: inherit; font-size: 12px; cursor: pointer; padding: 10px 6px; min-height: 40px; }
.nt-list { overflow-y: auto; flex: 1; }
.nt-item { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 13px; line-height: 1.45; }
.nt-item.unread { background: rgba(184,246,253,.05); }
.nt-item b { display: block; font-size: 13px; margin-bottom: 2px; }
.nt-item .nt-act { color: var(--text-2); margin-top: 4px; }
.nt-item .nt-meta { color: var(--text-3); font-size: 11px; margin-top: 4px; }
.nt-sev { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--warn); }
.nt-sev.critical { background: var(--danger); }
.nt-empty { padding: 28px 16px; text-align: center; color: var(--text-2); font-size: 13px; }
.nt-sec { margin: 0 0 18px; }
.nt-sec h3 { font-size: 13px; margin: 0 0 8px; }
.nt-row { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 13px; }
.nt-row label { flex: 1; }
.nt-row input[type=checkbox] { width: 20px; height: 20px; }
.nt-note { font-size: 12px; color: var(--text-2); line-height: 1.5; margin: 6px 0; }
.nt-note.bad { color: var(--warn); }
.nt-rule { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.nt-rule .nt-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.nt-rule .nt-fields label { font-size: 11px; color: var(--text-2); display: block; margin-bottom: 3px; }
.nt-rule .nt-fields input { width: 100%; }
.nt-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.nt-pvbox { margin: 14px 0; padding: 12px; border: 1px dashed var(--border); border-radius: 12px; background: var(--card-inner, rgba(255,255,255,.03)); }
.nt-pvbox h3 { margin: 0 0 4px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.nt-pvtag { font-size: 10px; letter-spacing: .06em; padding: 2px 6px; border-radius: 6px; background: var(--warn); color: #000; font-weight: 700; }
.nt-pv { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; max-width: 380px; }
.nt-card { display: flex; gap: 10px; padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.nt-card img { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.nt-cb { min-width: 0; flex: 1; }
.nt-ct { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.nt-ct span { color: var(--text-3); font-size: 11px; flex-shrink: 0; }
.nt-cx { font-size: 12.5px; color: var(--text-2); line-height: 1.4; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .nt-panel { top: auto; left: 8px; right: 8px; bottom: calc(var(--p9-clear, 90px) + 4px); width: auto; max-height: 60vh; }
  .nt-bell, .nt-link, .nt-btns .pg-btn { min-height: 44px; }
  .nt-bell { width: 44px; height: 44px; }
  .nt-row input[type=checkbox] { width: 24px; height: 24px; }
  .nt-rule .nt-fields input, .nt-quiet input, #ntCool, #ntVal { min-height: 44px; }
}
