/* 상단 벨 알림(2026-11-13) — 건수 배지 · 목록 · 새 알림 팝업(static/js/notify_bell.js).
   Tailwind 토큰을 새로 만들지 않으려고 정적 CSS 로 둔다(build_css 와 무관).
   ⚠️ 인라인 <style> 로 두지 않는다 — 페이지의 첫 <style> 을 잡는 테스트가 있다. */
.nb { position: relative; display: inline-flex; }
.nb-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px; color: #94a3b8; cursor: pointer;
}
.nb-btn:hover, .nb-btn[aria-expanded="true"] { background: #f1f5f9; color: #1f2a3a; }
.nb-ico { font-size: 17px; line-height: 1; }
.nb-count {
  position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: #d92d20; color: #fff; font-size: 10.5px; font-weight: 700;
  line-height: 17px; text-align: center; box-shadow: 0 0 0 2px #fff;
}
.nb-count[hidden], .nb-panel[hidden], .nb-pop[hidden] { display: none; }

.nb-panel {
  position: absolute; right: 0; top: 42px; z-index: 60; width: 340px; max-width: calc(100vw - 24px);
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .16); overflow: hidden; color: #1f2a3a;
}
.nb-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border-bottom: 1px solid #e2e8f0; font-size: 13.5px; font-weight: 700;
}
.nb-head b { color: #d92d20; font-weight: 700; margin-left: 4px; }
.nb-list { max-height: 360px; overflow-y: auto; }
.nb-item {
  display: block; padding: 10px 14px; border-bottom: 1px solid #f1f5f9;
  text-decoration: none; color: inherit;
}
.nb-item:hover { background: #f8fafc; }
.nb-item.new { background: #fff7ed; }
.nb-item.new:hover { background: #ffedd5; }
.nb-t { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #b42318; }
.nb-t i {
  font-style: normal; font-size: 10px; font-weight: 700; color: #fff; background: #d92d20;
  border-radius: 4px; padding: 1px 5px;
}
.nb-x { margin-top: 3px; font-size: 13px; line-height: 1.4; word-break: break-all; }
.nb-s { margin-top: 2px; font-size: 11.5px; color: #64748b; }
.nb-empty { padding: 26px 14px; text-align: center; font-size: 13px; color: #94a3b8; }
.nb-foot { display: flex; justify-content: space-between; padding: 9px 14px; font-size: 12.5px; background: #f8fafc; }
.nb-foot a { color: #1f2a3a; text-decoration: underline; }

.nb-pop {
  position: fixed; right: 20px; top: 64px; z-index: 70; width: 340px; max-width: calc(100vw - 24px);
  background: #fff; border: 1px solid #fecaca; border-left: 4px solid #d92d20; border-radius: 10px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .22); padding: 13px 14px 12px; color: #1f2a3a;
}
.nb-pop-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 700; }
.nb-pop-x {
  flex: none; width: 24px; height: 24px; border-radius: 6px; color: #64748b; font-size: 17px;
  line-height: 1; cursor: pointer;
}
.nb-pop-x:hover { background: #f1f5f9; color: #1f2a3a; }
.nb-pop ul { margin: 8px 0 0; padding: 0; list-style: none; }
.nb-pop li { padding: 5px 0; border-top: 1px solid #f1f5f9; font-size: 12.5px; line-height: 1.4; word-break: break-all; }
.nb-pop li span { display: block; font-size: 11.5px; color: #64748b; }
.nb-pop-more { margin-top: 4px; font-size: 11.5px; color: #64748b; }
.nb-pop-f { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.nb-pop-f a, .nb-pop-f button {
  padding: 6px 12px; border-radius: 7px; font-size: 12.5px; font-weight: 600; cursor: pointer;
  border: 1px solid #cbd5e1; background: #fff; color: #1f2a3a; text-decoration: none;
}
.nb-pop-f a { background: #1f2a3a; border-color: #1f2a3a; color: #fff; }
