/* rtp-notifications.css — 알림(notifications) 화면. 정본: docs/sdd/notifications/handoff/proto/notify.css
 * 클래스 이름은 정본 그대로(.nt-*, .nr*). 전역 규칙(body·*·a·#app)은 가져오지 않는다.
 * 의도된 차이(Q9, 사용자 결정 2026-10-02 — AA 맞춤): .nr__t em → --bb-primary-heavy,
 *   안 읽은 행의 .nr__k/.nr__s → --rtp-ink-2. 메시지 예시(.t-dm .nr__soon .nr__av)는 다음 차수.
 */
:root {
  --bb-notify-bell-ink:       rgba(255,255,255,.6);
  --bb-notify-bell-hover:     rgba(255,255,255,.08);
  --bb-notify-row-hover:      rgba(0,0,0,.025);
  --bb-notify-row-press:      rgba(0,0,0,.05);
  --bb-notify-av-2:           #e7ecf3;
  --bb-notify-dim:            rgba(25,31,40,.48);
  --bb-notify-text-av:        9.5px;
  --bb-notify-text-title:     13.5px;
  --bb-notify-text-empty:     15px;
  --bb-notify-text-sheet:     17px;
  --bb-notify-radius-sheet:   22px;
  --bb-notify-radius-grab:    2px;
  --bb-notify-shadow-knob:    0 1px 3px rgba(0,0,0,.2);
  --bb-notify-shadow-dev:     0 0 0 1px var(--rtp-line-soft);
  --bb-notify-t-slide:        240ms;
}
.nt-bell{position:relative;width:var(--bb-tap-target);height:var(--bb-tap-target);margin-left:auto;margin-right:2px;border:0;border-radius:var(--rtp-radius-lg);background:0;color:var(--bb-notify-bell-ink);display:grid;place-items:center;cursor:pointer;transition:background var(--bb-t-base) var(--bb-ease)}
.nt-bell:hover{background:var(--bb-notify-bell-hover)}
.nt-bell:active{transform:scale(.96)}
.nt-bell__dot{position:absolute;top:7px;right:6px;min-width:17px;height:17px;padding:0 4px;border-radius:var(--bb-radius-pill);background:var(--rtp-orange);border:2px solid var(--bb-hero-dark);color:var(--rtp-white);font-family:var(--bb-font-num);font-size:var(--bb-text-2xs);font-weight:800;line-height:13px;text-align:center}
.nt-bell__dot[hidden]{display:none}
.rtp-header--has-bell .rtp-user-menu{margin-left:0}
.nt{position:relative;min-height:100vh;display:flex;flex-direction:column;background:var(--rtp-white);box-shadow:var(--bb-notify-shadow-dev)}
.nt--in{animation:ntIn var(--bb-notify-t-slide) var(--bb-ease)}
.nt[hidden]{display:none}
@keyframes ntIn{from{transform:translateX(100%)}to{transform:none}}
.nt__hd{flex:0 0 auto;display:flex;align-items:center;gap:4px;padding:16px 10px 10px;border-bottom:1px solid var(--rtp-line-soft)}
.nt__hd h2{flex:1;margin:0;text-align:center;font-size:var(--bb-text-base);font-weight:800;letter-spacing:-.3px}
.nt__ib{width:var(--bb-tap-target);height:var(--bb-tap-target);border:0;border-radius:var(--rtp-radius-lg);background:0;color:var(--rtp-ink-2);display:grid;place-items:center;cursor:pointer}
.nt__ib:hover{background:var(--rtp-bg)}
.nt__bd{flex:1;padding-bottom:32px}
.nr{position:relative;display:flex;gap:12px;width:100%;padding:14px 20px;border:0;border-bottom:1px solid var(--rtp-line-soft);background:0;text-align:left;font-family:inherit;color:inherit;cursor:pointer;transition:background var(--bb-t-base) var(--bb-ease)}
.nr:hover{background:var(--bb-notify-row-hover)}
.nr:active{background:var(--bb-notify-row-press)}
.nr[data-unread="true"]{background:var(--bb-primary-tint)}
.nr[data-unread="true"]:before{content:"";position:absolute;left:8px;top:50%;width:6px;height:6px;margin-top:-3px;border-radius:50%;background:var(--rtp-orange)}
.nr__ic{flex:0 0 auto;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--rtp-bg);color:var(--rtp-ink-2)}
.t-rank .nr__ic,.t-record .nr__ic{color:var(--bb-primary-dark)}
.t-open .nr__ic{color:var(--rtp-ink)}
.nr__b{flex:1;min-width:0}
.nr__k{display:flex;align-items:center;gap:6px;margin-bottom:3px;font-size:var(--bb-text-11);font-weight:700;color:var(--rtp-ink-3)}
.nr__k s{text-decoration:none;margin-left:auto;font-family:var(--bb-font-num);font-weight:700}
.nr__t{margin:0;font-size:var(--bb-notify-text-title);font-weight:600;line-height:1.5;color:var(--rtp-ink-2);letter-spacing:-.2px}
.nr__t b{font-weight:800;color:var(--rtp-ink)}
.nr__t em{font-style:normal;font-weight:800;color:var(--bb-primary-heavy)}
.nr__s{margin:3px 0 0;font-size:var(--bb-text-12);font-weight:600;color:var(--rtp-ink-3);line-height:1.5}
.nr[data-unread="true"] .nr__k,.nr[data-unread="true"] .nr__s{color:var(--rtp-ink-2)}
.nt-foot{margin:20px 20px 0;text-align:center;font-size:var(--bb-text-11);font-weight:600;color:var(--rtp-ink-3)}
.nt-empty{display:flex;flex-direction:column;align-items:center;padding:96px 32px 0;text-align:center}
.nt-empty img{width:88px;height:88px;margin-bottom:16px}
.nt-empty b{font-size:var(--bb-notify-text-empty);font-weight:800;letter-spacing:-.3px}
.nt-empty p{margin:6px 0 0;font-size:var(--bb-text-12-plus);font-weight:600;line-height:1.6;color:var(--rtp-ink-3)}
.nt-dim{position:absolute;inset:0;z-index:5;background:var(--bb-notify-dim)}
.nt-dim[hidden],.nt-sheet[hidden]{display:none}
.nt-sheet{position:absolute;left:0;right:0;bottom:0;z-index:6;padding:10px 20px 28px;border-radius:var(--bb-notify-radius-sheet) var(--bb-notify-radius-sheet) 0 0;background:var(--rtp-white)}
.nt-sheet--in{animation:shUp var(--bb-notify-t-slide) var(--bb-ease)}
@keyframes shUp{from{transform:translateY(100%)}to{transform:none}}
.nt-sheet__grab{display:block;width:38px;height:4px;margin:0 auto 18px;border-radius:var(--bb-notify-radius-grab);background:var(--rtp-line)}
.nt-sheet h3{margin:0 0 4px;font-size:var(--bb-notify-text-sheet);font-weight:800;letter-spacing:-.4px}
.nt-sheet__s{margin:0 0 18px;font-size:var(--bb-text-12-plus);font-weight:600;line-height:1.6;color:var(--rtp-ink-3)}
.nt-sw{display:flex;align-items:center;gap:12px;padding:16px;border:1px solid var(--rtp-line);border-radius:var(--bb-radius-xl)}
.nt-sw__t{flex:1;min-width:0}
.nt-sw__t b{display:block;font-size:var(--bb-text-sm);font-weight:800}
.nt-sw__t span{display:block;margin-top:3px;font-size:var(--bb-text-11-plus);font-weight:600;line-height:1.5;color:var(--rtp-ink-3)}
.nt-tg{flex:0 0 auto;position:relative;width:50px;height:30px;border:0;border-radius:var(--bb-radius-pill);background:var(--rtp-line);cursor:pointer;transition:background var(--bb-t-base) var(--bb-ease)}
.nt-tg:after{content:"";position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:var(--rtp-white);box-shadow:var(--bb-notify-shadow-knob);transition:transform var(--bb-t-base) var(--bb-ease)}
.nt-tg[aria-checked="true"]{background:var(--rtp-orange)}
.nt-tg[aria-checked="true"]:after{transform:translateX(20px)}
.nt-sheet__list{margin:14px 0 0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:6px}
.nt-sheet__list li{padding:5px 10px;border-radius:var(--bb-radius-pill);background:var(--rtp-bg);font-size:var(--bb-text-11-plus);font-weight:700;color:var(--rtp-ink-2)}
.nt-sheet__list li.soon{background:0;border:1px dashed var(--rtp-line);color:var(--rtp-ink-3)}
.nt-toast{position:fixed;left:50%;bottom:40px;z-index:30;transform:translate(-50%,12px);max-width:360px;padding:12px 16px;border-radius:var(--rtp-radius-lg);background:var(--rtp-ink);color:var(--rtp-white);font-size:var(--bb-text-12-plus);font-weight:700;opacity:0;pointer-events:none;transition:opacity var(--bb-t-base),transform var(--bb-t-base)}
.nt-toast[data-on="true"]{opacity:1;transform:translate(-50%,0)}
@media(prefers-reduced-motion:reduce){.nt--in,.nt-sheet--in{animation:none}.nt-toast{transition:none}}

/* ── 실제 페이지용 보강 — 정본(proto/notify.css)에 없는 클래스·위치 규칙 ─────────────────
 * 정본은 홈↔목록을 한 파일에서 JS 로 바꾸는 프로토라 아래가 비어 있다. 값(간격·글자·색)은 건드리지 않고
 * "별도 페이지에서 동작하기 위한" 것만 더한다. css-diff 가 재는 속성(padding·font·color 등)은 정본 규칙 쪽에만 있다.
 */
/* a.nr / div.nr--static — 정본 .nr 는 <button> 기준이다. <a> 의 밑줄만 지운다 */
a.nr{text-decoration:none}
.nr--static{cursor:default}
.nr--static:hover,.nr--static:active{background:0}
.nr--static[data-unread="true"]:hover,.nr--static[data-unread="true"]:active{background:var(--bb-primary-tint)}
/* 한국어 어절 중간에서 끊기지 않게(keep-all) — 한 어절이 줄보다 길 때만 anywhere 가 끊는다(말줄임 없음, C08) */
.nr__t,.nr__s,.nt-empty p,.nt-sheet__s,.nt-sw__t span,.nt-sheet__guide{word-break:keep-all;overflow-wrap:anywhere}
/* 아이콘 스프라이트 — display:none 이면 일부 브라우저에서 <use> 가 안 그려진다 */
.nt-sprite{position:absolute;width:0;height:0;overflow:hidden}
/* ntIn 240ms 동안 오른쪽으로 삐져나온 면적이 가로 스크롤(scrollWidth)로 잡히지 않게 */
.rtp-container.nt-container{overflow-x:hidden;overflow-x:clip}
/* 컨테이너 공용 하단 여백(메뉴 높이+26px)은 .nt 가 100vh 를 채울 때 빈 화면에도 스크롤을 만든다 → 목록 안쪽으로 옮긴다 */
/* ⚠️ 특이도: 공용 규칙(rtp-components.css `body.rtp-has-nav:not(.rtp-has-legal-footer) .rtp-container:not(…):not(…)`)이 (0,5,1)·본인인증 띠가 있으면 (0,6,1)이다.
 * 클래스를 되풀이해 같은 특이도로 맞추고, 이 파일이 뒤에 로드되는 순서에 기댄다(!important 대신). */
body.rtp-has-nav.rtp-page .rtp-container.nt-container.nt-container,
body.rtp-has-nav.rtp-has-identity-banner.rtp-page .rtp-container.nt-container.nt-container{padding-bottom:0}
.nt-container .nt__bd{padding-bottom:calc(var(--rtp-footer-nav-h) + env(safe-area-inset-bottom, 0px) + 26px)}
body.rtp-has-identity-banner .nt-container .nt__bd{padding-bottom:calc(var(--rtp-footer-nav-h) + env(safe-area-inset-bottom, 0px) + 26px + var(--rtp-identity-banner-h))}
/* iOS 홈 화면 앱(black-translucent)에서 상태바 밑으로 헤더가 들어가지 않게 */
.nt-container .nt__hd{padding-top:calc(16px + env(safe-area-inset-top, 0px))}
/* 톱니가 없을 때 제목이 가운데에 오도록 자리만 채우는 칸 */
.nt__ib--ghost{pointer-events:none}
/* 시트·딤·토스트 — 정본은 .nt(패널) 안 absolute 인데, 실제 페이지는 목록이 길어 스크롤되므로 화면에 고정한다.
 * 하단 메뉴(z-index 100) 위로 올린다: 딤 110 / 시트 120 / 토스트 130 (공용 .bb-sheet 와 같은 층위). */
.nt-dim{position:fixed;z-index:110}
.nt-sheet{position:fixed;z-index:120;max-width:432px;margin-inline:auto}
.nt-toast{z-index:130;bottom:calc(var(--rtp-footer-nav-h) + env(safe-area-inset-bottom, 0px) + 16px)}
/* 켤 수 없는 기기 안내(N02) — 시트가 열릴 때 바로 보이는 한 줄 + 링크 */
.nt-sheet__guidebox{display:flex;flex-wrap:wrap;align-items:center;gap:0 10px;margin:12px 0 0}
.nt-sheet__guidebox[hidden]{display:none}
.nt-sheet__guide{margin:0;font-size:var(--bb-text-12-plus);font-weight:600;line-height:1.6;color:var(--rtp-ink-2)}
.nt-sheet__guide-link{display:inline-flex;align-items:center;min-height:var(--bb-tap-target);font-size:var(--bb-text-12-plus);font-weight:800;color:var(--bb-primary-heavy);text-decoration:underline}
.nt-sheet__guide-link[hidden]{display:none}
.nt-tg[data-busy="true"]{opacity:.6;cursor:progress}
