/* ── GLOBAL NAV (BL-73 B2-b: index.html 정본에서 추출) ── */
.global-nav {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 4px;
  flex-shrink: 0; width: 100%;
  background: transparent; color: var(--c-on-header);
  margin-top: 4px;
}
.global-nav-left  { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.global-nav-right { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.global-nav-item {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 9px; min-height: 38px;
  text-decoration: none; color: inherit;
  font-size: var(--fs-sm); opacity: 0.72; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.global-nav-item[hidden] { display: none; }
.global-nav-item:hover { background: var(--c-nav-hover); }
.global-nav-item.active { opacity: 1; font-weight: 700; border-bottom-color: var(--c-nav-underline); }
.global-nav-item .nav-icon {
  width: 18px; height: 18px; flex-shrink: 0;
  stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.global-nav-item.active .nav-icon { color: var(--c-nav-underline); }
.global-nav-item .gn-label { display: none; }
@media (min-width: 640px) { .global-nav-item .gn-label { display: inline; } }

/* ── MODAL (centered dialog · BL-73: 6파일 정본에서 추출) ── */
.modal-overlay { position: fixed; inset: 0; background: var(--c-scrim); display: none;
  align-items: center; justify-content: center; z-index: 100; }
.modal-overlay.show { display: flex; }
.modal-box { background: var(--c-bg); border-radius: 12px; padding: 24px 22px 20px; width: min(440px, 95vw); }
.modal-title { font-size: var(--fs-md); font-weight: 700; margin-bottom: 10px; }
.modal-title svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.modal-desc { font-size: var(--fs-sm); color: var(--c-text); line-height: 1.6; margin-bottom: 6px; }
.modal-desc .warn { color: var(--c-danger); font-weight: 600; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.modal-warn { background: var(--c-danger-on); border: 1px solid var(--c-danger-border); border-radius: 7px;
  padding: 10px 12px; font-size: var(--fs-sm); color: var(--c-danger);
  margin-bottom: 14px; line-height: 1.55; }
.modal-check { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); margin-bottom: 6px; }

/* -- BOTTOM SHEET OVERLAY (BL-73 B4: leaderboard .edit-sheet + input .modal-sheet common overlay) -- */
.sheet-overlay { position: fixed; inset: 0; z-index: 100; background: var(--c-scrim);
  display: flex; align-items: flex-end; justify-content: center; }

/* -- BUTTON: primary fill (BL-73 P2 · BL-71 hierarchy · 8-file canonical; base .btn stays per-page) -- */
.btn-primary { background: var(--c-primary); color: var(--c-on-primary); }
