/* ═══ 2026-12-04 상단바 알림 종 (docs/PLAN-NOTIFY-BELL-2026-12-04.md, 등급 1) ═══
   색은 토큰만 — 다크·라이트는 토큰 값이 바뀌어 따라감(라이트 전용 규칙 없음).
   강조색은 배지·왼쪽 띠·[바로 가기] 글자에만(60-30-10). 되돌리기 = index.html 의 link·script·버튼 줄 삭제. */

/* 종 버튼 — 해/달 버튼과 같은 36px(휴대폰 32px) 정사각 */
.topbar .tb-bell{position:relative;width:36px;height:36px;padding:0!important;display:inline-flex;align-items:center;justify-content:center}
.topbar .tb-bell .tb-bell-ic{display:block;pointer-events:none}
.topbar .tb-bell:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.topbar .tb-bell[aria-expanded="true"]{background:var(--surface-sunk)!important;color:var(--text-1)!important}
.tb-bell-badge{position:absolute;top:-5px;right:-6px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;box-sizing:border-box;
  display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;line-height:1;
  background:var(--st-todo);color:var(--surface);border:2px solid var(--surface-card);pointer-events:none;font-family:var(--font-numeric,inherit)}
.tb-bell-badge.urgent{background:var(--st-urgent);color:var(--accent-fg)}
.tb-bell-badge[hidden]{display:none}
@media (max-width:640px){.topbar .tb-bell{width:32px!important;height:32px!important;padding:0!important}}

/* 패널 — 데스크톱: 종 아래 팝오버 · 640px 이하: 전체 화면 */
.swnb-pop{position:fixed;z-index:99990;width:384px;max-width:calc(100vw - 16px);max-height:min(72vh,640px);display:flex;flex-direction:column;
  background:var(--surface-card);color:var(--text-1);border:1px solid var(--hairline);border-radius:10px;box-shadow:0 14px 36px rgba(0,0,0,.45);
  font-family:inherit;overflow:hidden;animation:swnbIn .14s ease}
.swnb-pop[hidden]{display:none}
@keyframes swnbIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.swnb-hd{display:flex;align-items:center;gap:8px;padding:12px 12px 10px 16px;border-bottom:1px solid var(--hairline);flex:none}
.swnb-hd h2{margin:0;font-size:15px;font-weight:800;color:var(--text-1);flex:1 1 auto;min-width:0}
.swnb-hd .swnb-cnt{font-size:12px;font-weight:700;color:var(--text-3)}
.swnb-x{flex:none;width:36px;height:36px;border:0;border-radius:8px;background:transparent;color:var(--text-2);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.swnb-x:hover{background:var(--surface-sunk);color:var(--text-1)}
.swnb-x:focus-visible,.swnb-go:focus-visible,.swnb-hide:focus-visible,.swnb-retry:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.swnb-list{list-style:none;margin:0;padding:6px 0;overflow-y:auto;flex:1 1 auto;min-height:0}
.swnb-it{position:relative;display:grid;grid-template-columns:28px 1fr;gap:4px 10px;padding:10px 14px 10px 16px;border-bottom:1px solid var(--hairline-soft,var(--hairline))}
.swnb-it:last-child{border-bottom:0}
.swnb-it::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:0 3px 3px 0;background:var(--text-3);opacity:.5}
.swnb-it.sev-urgent::before{background:var(--st-urgent);opacity:1}
.swnb-it.sev-todo::before{background:var(--st-todo);opacity:1}
.swnb-ic{grid-row:1 / span 3;width:28px;height:28px;border-radius:8px;background:var(--surface-sunk);color:var(--text-2);display:inline-flex;align-items:center;justify-content:center}
.swnb-ic svg{display:block}
.swnb-top{display:flex;align-items:baseline;gap:8px;min-width:0}
.swnb-t{flex:1 1 auto;min-width:0;font-size:14px;font-weight:700;color:var(--text-1);line-height:1.4;word-break:keep-all;overflow-wrap:anywhere}
.swnb-when{flex:none;font-size:12px;color:var(--text-3);white-space:nowrap}
.swnb-b{font-size:13px;color:var(--text-2);line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.swnb-row{display:flex;align-items:center;gap:6px;margin-top:4px;min-width:0}
.swnb-sev{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:700;color:var(--text-2);white-space:nowrap}
.swnb-sev i{width:7px;height:7px;border-radius:50%;background:var(--text-3);display:inline-block}
.sev-urgent .swnb-sev i{background:var(--st-urgent)}
.sev-todo .swnb-sev i{background:var(--st-todo)}
.swnb-sp{flex:1 1 auto}
.swnb-go{min-height:32px;padding:4px 10px;border:1px solid var(--hairline);border-radius:6px;background:transparent;color:var(--accent);font:inherit;font-size:13px;font-weight:800;cursor:pointer;white-space:nowrap}
.swnb-go:hover{background:var(--accent-soft,var(--surface-sunk))}
.swnb-hide{min-height:32px;min-width:32px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--text-3);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.swnb-hide:hover{background:var(--surface-sunk);color:var(--text-1)}
.swnb-foot{flex:none;padding:8px 16px 10px;border-top:1px solid var(--hairline);font-size:12px;color:var(--text-3);line-height:1.5;word-break:keep-all}
.swnb-foot:empty{display:none}
.swnb-retry{margin-left:6px;min-height:28px;padding:2px 10px;border:1px solid var(--hairline);border-radius:6px;background:var(--surface-sunk);color:var(--text-1);font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.swnb-load{padding:8px 16px;font-size:12px;color:var(--text-3)}
.swnb-sk{height:10px;border-radius:5px;background:var(--surface-sunk);margin:8px 0}
.swnb-sk.s2{width:62%}
.swnb-empty{padding:28px 20px 30px;text-align:center;color:var(--text-3);font-size:13px;line-height:1.6;word-break:keep-all}
.swnb-empty b{display:block;color:var(--text-1);font-size:14px;margin:8px 0 2px}
.swnb-empty svg{color:var(--text-3)}
.swnb-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

@media (max-width:640px){
  .swnb-pop{inset:0;width:auto;max-width:none;max-height:none;border-radius:0;border:0;
    padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);animation:none}
  .swnb-x{width:44px;height:44px}
  .swnb-go,.swnb-hide{min-height:44px}
  .swnb-hide{min-width:44px}
}

/* 이동한 화면의 대상 항목 강조(2초) — 깜빡임 없이 테두리+옅은 바탕 */
.swnb-hl{outline:2px solid var(--accent)!important;outline-offset:3px;border-radius:6px;background-color:var(--accent-soft)!important;transition:outline-color .3s ease,background-color .3s ease}
@media (prefers-reduced-motion:reduce){.swnb-pop{animation:none}.swnb-hl{transition:none}}
