html.lang-wait body { visibility: hidden; }
  /* 등급 배지 + 폰 잔액 (관리자가 아닌 등급 회원에게도 보이므로 공통) */
  .nav-money { display: inline-flex; align-items: center; align-self: center; line-height: 1; }
  .nav-money .nav-points { line-height: 1; }
  /* 메뉴 안 하위 메뉴 (퍼즐 > 블라인드 · 시각화 · 테마): 마우스를 올리면 오른쪽에 펼침 */
  .nav-fly { position: relative; display: flex; flex-direction: column; }
  .nav-menu-box a.nav-fly-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .nav-menu-box a.nav-fly-btn::after { content: ''; flex: none; width: 6px; height: 6px; margin-right: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
  .nav-menu-box a.nav-fly-btn.nofly::after { display: none; }   /* 하위 메뉴가 비면 (영어 모드의 내 오프닝 통계) 화살표 없음 */
  .nav-fly-wrap { position: absolute; left: 100%; top: -7px; padding-left: 6px; display: none; z-index: 2; }
  .nav-fly:hover > .nav-fly-wrap { display: block; }
  .nav-fly:hover > a.nav-fly-btn { background: rgba(254, 203, 76, 0.12); color: var(--accent-gold); }
  .nav-menu-box.nav-fly-box { min-width: 150px; }
  @media (max-width: 640px) {
    .nav-fly-wrap, .nav-fly:hover > .nav-fly-wrap { position: static; display: block; padding: 0 0 0 14px; }
    .nav-menu-box a.nav-fly-btn::after { display: none; }
  }
  /* 루틴 알림 (js/routine_notify.js): 메뉴 남은 개수 · 오른쪽 아래 팝업 */
  .rt-nt-n { display: inline-block; min-width: 18px; height: 18px; margin-left: 7px; padding: 0 5px; border-radius: 9px; background: var(--accent-gold); color: var(--on-accent, #1a1426); font-size: 0.7rem; font-weight: 800; line-height: 18px; text-align: center; vertical-align: 1px; }
  a.rt-nt-dot { position: relative; }
  a.rt-nt-dot::after { content: ''; position: absolute; top: 4px; right: -2px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-gold); }
  .rt-nt { position: fixed; right: 20px; bottom: 20px; z-index: 3500; width: 300px; max-width: calc(100vw - 32px); box-sizing: border-box; padding: 14px 14px 10px; border: 1px solid var(--border-purple); border-top: 3px solid var(--accent-gold); border-radius: 12px; background: var(--card-bg); color: var(--text-main); font-weight: 600; }
  .rt-nt-h { display: flex; align-items: center; gap: 10px; padding: 0 2px 10px; }
  .rt-nt-h > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .rt-nt-h b { color: var(--accent-gold); font-size: 0.9rem; font-weight: 800; }
  .rt-nt-h span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); font-size: 0.76rem; }
  .rt-nt-h em { flex: none; padding: 3px 8px; border-radius: 6px; background: var(--bg-dark); color: var(--text-main); font-style: normal; font-size: 0.76rem; font-weight: 800; }
  .rt-nt-x::before, .rt-nt-x::after { content: ''; position: absolute; left: 7px; top: 12px; width: 12px; height: 1.5px; border-radius: 1px; background: var(--text-muted); transform: rotate(45deg); }
  .rt-nt-x::after { transform: rotate(-45deg); }
  .rt-nt-x:hover { background: var(--bg-dark); }
  .rt-nt-list { display: flex; flex-direction: column; gap: 6px; }
  .rt-nt { --c: #58b878; }
  .rt-nt-q.c-real { --c: #e0795b; } .rt-nt-q.c-study { --c: #5b9be0; } .rt-nt-q.c-train { --c: #58b878; }   /* 루틴 분야색 (training/routine.css 와 같은 색) */
  .rt-nt-q .ic { grid-row: 1 / 3; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: color-mix(in srgb, var(--c) 16%, transparent); }
  .rt-nt-q .ic svg { width: 17px; height: 17px; fill: none; stroke: var(--c); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .rt-nt-f, .rt-nt-x { position: relative; flex: none; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--text-muted); cursor: pointer; }
  .rt-nt-f svg { width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
  .rt-nt-f:hover { background: var(--bg-dark); color: var(--text-main); }
  .rt-nt.fold .rt-nt-f svg { transform: rotate(180deg); }
  .rt-nt-p { display: block; height: 3px; margin: 0 2px 10px; border-radius: 2px; background: var(--border-purple); overflow: hidden; }
  .rt-nt-p u { display: block; height: 100%; background: var(--accent-gold); }
  .rt-nt.fold { width: 240px; padding-bottom: 12px; }
  .rt-nt.fold .rt-nt-list, .rt-nt.fold .rt-nt-all { display: none; }
  .rt-nt.fold .rt-nt-h span { display: none; }
  .rt-nt.fold .rt-nt-p { margin-bottom: 0; }
  .rt-nt-q { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 5px 10px; padding: 9px 10px; border: 1px solid var(--border-purple); border-radius: 8px; background: var(--bg-dark); color: var(--text-main); text-decoration: none; transition: border-color 0.15s; }
  .rt-nt-q:hover { border-color: var(--c); }
  .rt-nt-q .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.82rem; font-weight: 700; }
  .rt-nt-q .am { color: var(--text-muted); font-size: 0.72rem; white-space: nowrap; }
  .rt-nt-q .bar { grid-column: 2 / -1; height: 3px; border-radius: 2px; background: var(--border-purple); overflow: hidden; }
  .rt-nt-q .bar u { display: block; height: 100%; background: var(--c); }
  .rt-nt-all { display: block; margin-top: 8px; padding: 6px 0 2px; color: var(--text-muted); font-size: 0.76rem; font-weight: 700; text-align: center; text-decoration: none; }
  .rt-nt-all:hover { color: var(--accent-gold); }
  .rt-nt-bye { font-size: 0.82rem; line-height: 1.5; padding-bottom: 4px; }   /* 닫은 뒤 잠깐: 다시 띄우는 곳 안내 */
  .rt-nt-bye a { color: var(--accent-gold); font-weight: 800; text-decoration: none; }
  @media (max-width: 640px) { .rt-nt { right: 16px; bottom: 16px; } }
  .nav-tier { display: inline-block; box-sizing: border-box; height: 20px; padding: 0 6px 0 7px; margin-right: 8px; border-radius: 5px; background: #7b3fe4; color: #fff; font-family: Arial, 'Segoe UI', sans-serif; font-size: 0.68rem; font-weight: 900; line-height: 18.5px; letter-spacing: 0.06em; text-align: center; white-space: nowrap; user-select: none; }   /* 영문 글꼴 + 줄 높이 고정 → 글자가 상자 가운데 (자간만큼 왼쪽 여백 1px 더) */
