/* 通知面板（顶栏铃铛弹出）+「作品 › 通知」页的站内通知卡片 */
.nt-pop { position: fixed; z-index: 45; top: calc(var(--top-h) - 8px); right: 16px; width: min(440px, calc(100vw - 24px));
  max-height: min(680px, calc(100dvh - var(--top-h) - 8px)); display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--pop-shadow); outline: none;
  animation: ntIn .14s ease-out; }
@keyframes ntIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nt-pop { animation: none; } }

.nt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 12px 10px 18px; }
.nt-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.nt-title h3 { margin: 0; font-size: 16px; }
.nt-unread { font-size: 12px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.nt-acts { display: flex; align-items: center; gap: 2px; flex: none; }
.nt-acts .btn { padding: 4px 8px; }
.nt-acts .btn svg.ic { width: 15px; height: 15px; }
.nt-acts .btn[disabled] { opacity: .45; cursor: default; }
.nt-acts .icon-btn.sm svg.ic { width: 16px; height: 16px; }

.nt-confirm { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 12px 8px; padding: 10px 12px;
  border-radius: 10px; background: var(--cut-soft); color: var(--ink); font-size: 13px; }
.nt-confirm-acts { display: flex; gap: 6px; margin-left: auto; }

.nt-tabs { display: flex; gap: 4px; padding: 0 12px 8px 14px; border-bottom: 1px solid var(--line); }
.nt-tabs button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; padding: 5px 10px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.nt-tabs button:hover { background: var(--bg-3); color: var(--ink); }
.nt-tabs button.on { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.nt-tabs .n { font-size: 11px; color: var(--dim); font-weight: 500; }

.nt-review { display: flex; align-items: center; gap: 10px; margin: 10px 12px 2px; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft);
  color: var(--ink); text-decoration: none; font-size: 13.5px; }
.nt-review > svg.ic { color: var(--warn); width: 18px; height: 18px; flex: none; }
.nt-review .go { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; color: var(--warn-ink); font-weight: 600; white-space: nowrap; }
.nt-review .go svg.ic { width: 14px; height: 14px; transform: rotate(-90deg); }
.nt-review:hover { filter: brightness(1.04); text-decoration: none; }

.nt-body { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 8px 8px; overscroll-behavior: contain; }
.nt-day { position: sticky; top: 0; z-index: 1; background: var(--bg-2); padding: 10px 10px 4px; font-size: 11.5px; font-weight: 600; color: var(--dim); letter-spacing: .02em; }
.nt-list { list-style: none; margin: 0; padding: 0; }
.nt-item { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 10px 10px; border-radius: 10px; }
.nt-item:hover, .nt-item:focus-within { background: var(--bg-3); }
.nt-ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-4); color: var(--muted); margin-top: 1px; }
.nt-ic svg.ic { width: 16px; height: 16px; }
.nt-item.lv-bad .nt-ic { background: var(--cut-soft); color: var(--cut); }
.nt-item.lv-warn .nt-ic { background: var(--warn-soft); color: var(--warn); }
.nt-item.lv-ok .nt-ic { background: var(--keep-soft); color: var(--keep); }
.nt-item.lv-info .nt-ic { background: var(--accent-soft); color: var(--accent); }
.nt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; color: var(--ink); text-decoration: none; padding-right: 14px; }
.nt-main:hover { text-decoration: none; }
.nt-t { font-size: 14px; line-height: 1.35; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.nt-item.unread .nt-t { color: var(--ink); font-weight: 600; }
.nt-m { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; color: var(--dim); }
.nt-chip { display: inline-flex; align-items: center; padding: 0 7px; border-radius: 999px; font-size: 11.5px; line-height: 18px; font-weight: 600; background: var(--bg-4); color: var(--muted); }
.nt-chip.lv-bad { background: var(--cut-soft); color: var(--err-ink); }
.nt-chip.lv-warn { background: var(--warn-soft); color: var(--warn-ink); }
.nt-chip.lv-ok { background: var(--keep-soft); color: var(--ok-ink); }
.nt-chip.lv-info { background: var(--accent-soft); color: var(--accent); }
.nt-more { color: var(--dim); }
.nt-more::before { content: "·"; margin-right: 6px; }
.nt-item .dot-new { position: absolute; right: 12px; top: 16px; }
.nt-ops { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: none; gap: 2px; background: var(--bg-3); border-radius: 8px; padding: 2px; }
.nt-item:hover .nt-ops, .nt-item:focus-within .nt-ops { display: flex; }
.nt-item:hover .dot-new, .nt-item:focus-within .dot-new { visibility: hidden; }
.nt-ops .icon-btn.sm svg.ic { width: 15px; height: 15px; }
.nt-ops [data-nt-del]:hover { color: var(--cut); }

.nt-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 44px 16px; color: var(--muted); text-align: center; font-size: 13px; }
.nt-empty svg.ic { width: 28px; height: 28px; color: var(--dim); margin-bottom: 4px; }
.nt-empty b { color: var(--ink); font-size: 14.5px; }

.nt-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12.5px; }
.nt-foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.nt-foot a:hover { color: var(--ink); }
.nt-foot svg.ic { width: 14px; height: 14px; }

/* 触屏没有悬停：操作按钮常驻 */
@media (hover: none) {
  .nt-ops { display: flex; position: static; transform: none; background: none; align-self: center; }
  .nt-item .dot-new { right: auto; left: 34px; top: 10px; }
  .nt-main { padding-right: 0; }
}
@media (max-width: 640px) {
  .nt-pop { right: 8px; left: 8px; width: auto; top: calc(var(--top-h) - 12px); max-height: calc(100dvh - var(--top-h)); }
  .nt-acts .btn { font-size: 0; gap: 0; padding: 6px; }
  .nt-acts .btn svg.ic { width: 17px; height: 17px; }
}

/* 「作品 › 通知」页 */
.nt-card { padding-bottom: 8px; }
.nt-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.nt-card-head h2 { margin: 0; }
.nt-card .nt-body { padding: 0; max-height: 640px; }
.nt-card .nt-day { background: var(--bg-2); }
