/* Nerddi R4: compact read-only verified network balances. No header restructuring. */
.header .ns-balance-bar{position:absolute;right:80px;top:20px;display:flex;align-items:center;gap:6px;z-index:1005;font-family:Inter,Roboto,Arial,sans-serif}
.header .ns-balance-pill{display:inline-flex;align-items:center;gap:5px;min-height:37px;padding:5px 10px;white-space:nowrap;border-radius:999px;border:1px solid rgba(23,38,65,.12);box-shadow:0 3px 12px rgba(18,35,70,.07),inset 0 1px 0 rgba(255,255,255,.8);background:rgba(255,255,255,.92);backdrop-filter:blur(12px);font-size:11px;color:#253049;cursor:pointer;transition:transform .15s ease,border-color .15s ease}
.header .ns-balance-pill:hover,.header .ns-balance-pill[aria-expanded="true"]{transform:translateY(-1px);border-color:#90aee0}
.header .ns-balance-pill--centro>i{color:#14966f}.header .ns-balance-pill--sp>i{color:#1684ee}.header .ns-balance-pill b{font-weight:850;font-variant-numeric:tabular-nums;font-size:12px;letter-spacing:-.25px}.header .ns-balance-pill small{font-size:8px;font-weight:800;letter-spacing:.05em;color:#68718a}
.header .ns-balance-popover{position:absolute;top:calc(100% + 12px);right:0;width:min(338px,calc(100vw - 20px));box-sizing:border-box;padding:16px;border-radius:20px;border:1px solid #dbe6f3;background:#fff;box-shadow:0 18px 60px rgba(17,36,72,.2);color:#1e293b;font-size:13px}
.header .ns-balance-popover[hidden]{display:none!important}.header .ns-balance-popover__top{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:13px}.header .ns-balance-popover__top>div{display:flex;flex-direction:column;gap:2px}.header .ns-balance-eyebrow{font-size:9px;color:#7890aa;font-weight:800;letter-spacing:.12em}.header .ns-balance-popover__top strong{font-size:17px;font-weight:850}.header .ns-balance-popover__top button{border:0;background:#eef3f9;border-radius:10px;width:29px;height:29px;cursor:pointer;color:#44546a}
.header .ns-balance-card{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:13px 11px;background:#f6f9fc;border:1px solid #e6edf5;border-radius:13px;margin-bottom:8px}
.header .ns-balance-card>div{display:flex;align-items:center;gap:8px}.header .ns-balance-card>div i{color:#14966f}.header .ns-balance-card--sp>div i{color:#1684ee}.header .ns-balance-card span{display:flex;flex-direction:column;font-weight:800;gap:3px}.header .ns-balance-card small{font-size:10px;color:#7b879c;font-weight:500}.header .ns-balance-card strong{font-weight:850;font-size:16px;font-variant-numeric:tabular-nums;text-align:right}
.header .ns-balance-popover [data-nb-status]{font-size:11px;line-height:1.4;min-height:14px;color:#66788e;margin:6px 1px 13px}
.header .ns-balance-popover__actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.header .ns-balance-popover__actions a{text-align:center;background:#eff6ff;border:1px solid #dceafa;color:#1465bf;padding:11px 8px;border-radius:11px;font-size:11px;text-decoration:none;font-weight:800}
.header .ns-balance-popover__actions a:first-child{background:#eaf8f3;border-color:#d7eee4;color:#147a57}.header .ns-balance-refresh{width:100%;margin-top:10px;border:0;background:none;color:#657992;font-weight:700;font-size:11px;cursor:pointer;padding:5px}
@media(max-width:1150px) and (min-width:721px){.header .ns-balance-bar{right:76px}.header .ns-balance-pill{padding:4px 7px}.header .ns-balance-pill small{display:none}}
@media(max-width:900px) and (min-width:721px){.header .ns-balance-bar{top:65px;right:72px}.header:has(.ns-balance-bar){height:100px}.header .ns-balance-pill{min-height:27px}.header .ns-balance-popover{top:calc(100% + 6px)}body:has(.ns-balance-bar) .main-content{margin-top:100px}}
@media(max-width:720px){.header:has(.ns-balance-bar){height:109px;align-items:flex-start;padding-top:19px;box-sizing:border-box}.header .ns-balance-bar{top:71px;left:50%;right:auto;transform:translateX(-50%);gap:7px}.header .ns-balance-pill{height:30px;min-height:30px;padding:4px 12px}.header .ns-balance-popover{top:calc(100% + 8px);left:50%;right:auto;transform:translateX(-50%);width:min(338px,calc(100vw - 24px))}body:has(.ns-balance-bar) .main-content{margin-top:109px}}
@media(prefers-reduced-motion:reduce){.header .ns-balance-pill{transition:none}}
/* Preserve the four existing secondary header links: balances occupy a slim
   second row rather than covering My Nerddi / Cloud / Frequency / OS. */
@media(min-width:721px){
  .header:has(.ns-balance-bar){height:115px;align-items:flex-start;box-sizing:border-box;padding-top:19px}
  .header:has(.ns-balance-bar) .ns-balance-bar{top:75px;right:80px}
  body:has(.ns-balance-bar) .main-content{margin-top:115px}
}
@media(max-width:720px){
  .header:has(.ns-balance-bar){height:109px}
  .header:has(.ns-balance-bar) .ns-balance-bar{top:71px;left:50%;right:auto}
}
