/* One identity, one wallet, one ranks entry, one menu at every viewport width. */
.topbar.nova-topbar { gap: 6px; min-width: 0; }
.nova-topbar .brand { flex: none; display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow: visible; }
.nova-topbar .brand::after { content: none; }
.nova-topbar .brand-mark, .nova-topbar .brand-text { display: none; }
.nova-wordmark { display: inline-flex; align-items: center; gap: 4px; color: var(--nv-skin-gold, var(--cyan)); font-size: 13.5px; font-weight: 900; flex-shrink: 0; }
#topNetworkDot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
#topNetworkDot.multi { background: var(--cyan); }
.nova-topbar .top-actions { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 44px 36px; gap: 5px; max-width: 430px; }
.nova-topbar #wallet { min-width: 0; gap: 5px; padding: 4px 7px; cursor: pointer; }
.nova-topbar .wallet-meta { flex: 1; min-width: 0; }
.nova-topbar .wallet-value { display: block; width: max-content; max-width: none; font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nova-topbar #walletPlusBtn { flex: none; width: 26px; min-width: 26px; height: 26px; font-size: 19px; }
.nova-top-ranks, .nova-top-more { height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 2px; cursor: pointer; }
.nova-top-ranks { flex-direction: column; gap: 1px; color: var(--nv-skin-gold, var(--gold)); border: 1px solid var(--nv-skin-border, rgba(255,197,61,.45)); background: linear-gradient(145deg,rgba(255,197,61,.18),rgba(15,22,40,.9)); font-size: 9.5px; font-weight: 800; }
.nova-top-ranks img { width: 17px; height: 17px; object-fit: contain; }
.nova-top-more { color: var(--nv-skin-gold, var(--cyan)); background: rgba(16,35,60,.82); border: 1px solid var(--nv-skin-border, var(--line)); }
.nova-top-more svg { display: block; flex: none; width: 22px; height: 12px; fill: currentColor; }
.topbar.nova-topbar.nova-wallet-wide { display: grid; grid-template-columns: minmax(0, 1fr) 44px 36px; row-gap: 4px; }
.nova-wallet-wide .brand { width: auto; max-width: 100%; min-width: 0; grid-column: 1; grid-row: 1; }
.nova-wallet-wide .top-actions { display: contents; }
.nova-wallet-wide #topRanksBtn { grid-column: 2; grid-row: 1; }
.nova-wallet-wide #topMoreBtn { grid-column: 3; grid-row: 1; }
.nova-topbar.nova-wallet-wide #wallet { grid-column: 1 / -1; grid-row: 2; width: 100%; padding: 4px 9px; min-height: 34px; }
.nova-topbar.nova-wallet-wide .wallet-value { font-size: 16.5px; width: auto; max-width: 100%; white-space: normal; overflow-wrap: anywhere; line-height: 1.15; }
.nova-topbar.nova-wallet-wide .wallet-coin { display: block !important; flex: none; }
.nova-topbar button:focus-visible, .nova-top-modal button:focus-visible, .nova-top-modal select:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.nova-top-modal { z-index: 11500; padding: max(16px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom)); }
.nova-top-modal .modal-card { width: min(100%, 420px); max-height: calc(100vh - 48px); max-height: calc(var(--app-vh, 100vh) - 48px); max-height: calc(100dvh - 48px); display: flex; flex-direction: column; padding: 16px; }
.nova-top-modal .modal-head { flex: none; margin-bottom: 12px; }
.nova-top-modal .modal-head h2 { font-size: 17px; }
.nova-top-modal .nova-menu-close { width: 36px; height: 36px; flex: none; }
.nova-menu-body { overflow-y: auto; min-height: 0; overscroll-behavior: contain; padding-right: 4px; }
.nova-menu-section { padding: 12px 0; border-top: 1px solid var(--line-soft); }
.nova-menu-section:first-child { border-top: 0; padding-top: 0; }
.nova-language-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.nova-top-modal #langSelect { height: 40px; max-width: 100%; font-size: 13px; }
.nova-coin-unit-wrap { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.nova-unit-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; border: 0; background: none; padding: 0 2px 0 0; }
.nova-unit-title { font-size: 13.5px; font-weight: 800; color: var(--ink, #f8fafc); }
.nova-unit-sample { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: rgba(226,232,240,0.78); border: 0; background: none; }
.nova-unit-sample .nova-coin-icon { width: 14px; height: 14px; object-fit: contain; flex: none; }
.nova-unit-sample b { font-family: 'Lora', var(--mono, monospace); font-size: 13px; font-weight: 900; color: var(--nv-skin-gold, #fde68a); }
.nova-unit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.nova-unit-opt { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 48px; padding: 7px 9px; border-radius: 10px; border: 1px solid var(--line-soft, rgba(148,163,184,0.26)); background: rgba(15,26,44,0.68); color: var(--ink, #e2e8f0); text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .1s ease; }
.nova-unit-opt:active { transform: scale(0.986); }
.nova-unit-opt .nvu-t { font-size: 12.5px; font-weight: 900; line-height: 1.2; color: inherit; }
.nova-unit-opt .nvu-s { font-size: 10.5px; font-weight: 600; line-height: 1.2; color: rgba(203,213,225,0.72); }
.nova-unit-opt.is-active { border-color: var(--nv-skin-gold, #f59e0b); background: linear-gradient(165deg, rgba(245,158,11,0.22), rgba(16,185,129,0.14)); box-shadow: inset 0 0 10px rgba(251,191,36,0.18); color: #fef3c7; }
.nova-unit-opt.is-active .nvu-t { color: #fde68a; }
.nova-unit-opt.is-active .nvu-s { color: rgba(254,243,199,0.88); }
.nova-unit-note { font-size: 11px; line-height: 1.35; color: rgba(148,163,184,0.86); border: 0; background: none; padding: 0; }
.nova-top-modal #soundBtn { display: none; }
.nova-top-modal #audioMenu { position: static; display: flex; min-width: 0; width: 100%; padding: 0; background: none; border: 0; box-shadow: none; animation: none; }
.nova-top-modal .am-title { font-size: 13px; margin-bottom: 8px; }
.nova-top-modal .am-row { min-height: 44px; gap: 12px; font-size: 13px; }
.nova-top-modal .am-switch { flex: none; }
.nova-menu-link { width: 100%; min-height: 46px; height: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; text-align: left; white-space: normal; color: var(--ink); font-size: 13px; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(15,29,48,.7); }
.nova-menu-links { display: flex; flex-direction: column; gap: 9px; }
#novaConnectionSlot #netStatusPill { display: flex; justify-content: center; flex-wrap: wrap; width: 100%; white-space: normal; min-height: 34px; font-size: 11px; }
#novaConnectionSlot .net-txt { display: inline; }
.nova-rank-options { display: grid; gap: 12px; }
#novaRankOptions button { width: 100%; min-height: 64px; height: auto; display: flex; justify-content: flex-start; gap: 12px; padding: 14px; white-space: normal; text-align: left; font-size: 15px; }
#novaRankOptions button img { width: 32px !important; height: 32px !important; }
#novaProfileMeta > :not([hidden]) { margin-bottom: 10px; }
@media (max-width: 520px) {
  .topbar.nova-topbar { padding: 4px 6px; gap: 4px; }
  .nova-topbar .brand { gap: 4px; }
  .nova-wordmark { font-size: 11.5px; gap: 3px; }
  .nova-topbar .top-actions { grid-template-columns: minmax(0, 1fr) 32px 30px; gap: 3px; }
  .nova-topbar #topAvatarBtn { width: 32px; height: 32px; }
  .nova-topbar .wallet-value { font-size: 13.5px; }
  .nova-topbar #wallet { padding: 3px 5px; gap: 4px; min-height: 32px; }
  .nova-topbar #walletPlusBtn { width: 22px; min-width: 22px; height: 22px; font-size: 16px; }
  .nova-top-ranks, .nova-top-more { height: 32px; border-radius: 8px; }
  .nova-top-ranks [data-top-word] { display: none; }
  .nova-top-ranks img { width: 16px; height: 16px; }
  .topbar.nova-topbar.nova-wallet-wide { grid-template-columns: minmax(0, 1fr) 32px 30px; row-gap: 3px; }
  .nova-topbar.nova-wallet-wide #wallet { min-height: 30px; padding: 3px 7px; }
  .nova-topbar.nova-wallet-wide .wallet-value { font-size: 15px; }
}
@media (max-width: 380px) {
  .nova-topbar .wallet-coin { width: 14px; height: 14px; }
  .nova-topbar #topAvatarBtn { width: 30px; height: 30px; }
}
@media (max-width: 340px) {
  .nova-topbar .wallet-coin { display: none; }
  .nova-wordmark { font-size: 11px; gap: 3px; }
  .nova-topbar .brand { gap: 3px; }
  .nova-topbar .top-actions { grid-template-columns: minmax(0, 1fr) 30px 28px; }
  .nova-topbar #walletPlusBtn { width: 21px; min-width: 21px; height: 21px; }
}
