/* 맨 위 메뉴 줄 오른쪽 '연동' 점 + 작은 목록. 색은 --ps-good / --ps-warnc / --ps-bad(밝은·어두운 화면 모두 정의돼 있음). 움직임은 html[data-fx="on"] 아래 transform·opacity 만 */
.nav-health { position: relative; display: inline-flex; align-items: center; flex: none; margin: 0; padding: 0; -webkit-app-region: no-drag; app-region: no-drag; }
.nav-health[hidden] { display: none; }
.nav-health .nh-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; margin: 0; border: 0; border-radius: 0; background: transparent; color: var(--ps-text2, inherit); font-size: 12.5px; white-space: nowrap; cursor: pointer; }
.nav-health .nh-btn:hover { background: var(--ps-ac-tint, rgba(127, 127, 127, .12)); }
.nav-health .nh-btn:focus-visible { outline: 2px solid var(--ps-ac, currentColor); outline-offset: -2px; }
.nav-health .dot { display: inline-block; width: 8px; height: 8px; border-radius: var(--r-pill); font-style: normal; background: var(--ps-muted); flex: none; } /* 폰은 예전 값 */ @media (max-width: 640px) { .nav-health .dot { border-radius: 50%; } }
.nav-health .nh-btn[data-s="ok"] .dot { background: var(--ps-good); }
.nav-health .nh-btn[data-s="stale"] .dot { background: var(--ps-warnc); }
.nav-health .nh-btn[data-s="fail"] .dot { background: var(--ps-bad); }
.nav-health .nh-btn[data-s="none"] .dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ps-muted); }

.nav-health .nav-health-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 120; width: max-content; min-width: 340px; max-width: min(520px, 92vw); padding: 4px 12px; background: var(--ps-raised, var(--ps-bg)); border: 1px solid var(--ps-rule); box-shadow: 0 10px 28px rgba(0, 0, 0, .4); font-size: 12.5px; color: var(--ps-text); white-space: nowrap; -webkit-app-region: no-drag; app-region: no-drag; }
.nav-health .nh-row { display: grid; grid-template-columns: minmax(7.5em, 1fr) 2.6em 7.6em minmax(0, 10em); column-gap: 12px; align-items: baseline; padding: 6px 0; }
.nav-health .nh-row + .nh-row { border-top: 1px solid var(--ps-hair); }
.nav-health .nh-row.nh-sub { padding: 3px 0; font-size: 12px; color: var(--ps-text2, inherit); }
.nav-health .nh-row.nh-sub + .nh-row.nh-sub { border-top: 0; }
.nav-health .nh-sub .nh-name { padding-left: 16px; }
.nav-health .nh-name { overflow: hidden; text-overflow: ellipsis; }
.nav-health .nh-st { font-weight: 500; } /* 폰은 예전 값 */ @media (max-width: 640px) { .nav-health .nh-st { font-weight: 600; } }
.nav-health .nh-ok { color: var(--ps-good); }
.nav-health .nh-stale { color: var(--ps-warnc); }
.nav-health .nh-fail { color: var(--ps-bad); }
.nav-health .nh-none { color: var(--ps-muted); font-weight: 400; }
.nav-health .nh-time { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; color: var(--ps-text2, inherit); }
.nav-health .nh-why { overflow: hidden; text-overflow: ellipsis; color: var(--ps-muted, inherit); }

@keyframes nh-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
html[data-fx="on"] .nav-health .nav-health-pop { animation: nh-in var(--m-quick) ease-out; }

@media (max-width: 860px) { .nav-health { display: none; } }
