/* App layout: on wide screens the top bar becomes a sidebar on the left, like an app. */
@media (min-width: 1100px) {
  body { padding-left: 228px; }
  body > .top {
    position: fixed; inset: 0 auto 0 0; width: 228px; min-height: 0;
    flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 18px;
    padding: 20px 12px 16px; border-bottom: 0; border-right: 1px solid var(--border); overflow-y: auto;
  }
  .top .brand { padding: 0 8px; flex-wrap: wrap; }
  .top .brand-name { font-size: 21px; }
  .top .nav { flex-direction: column; gap: 3px; margin-left: 0; }
  .top .nav button { text-align: left; padding: 11px 12px; font-size: 15px; border-radius: 9px; }
  .top .nav button.narrow-only { display: none; }
  .top .top-tools { margin: auto 0 0; flex-direction: column; align-items: stretch; gap: 10px; }
  .top .wallet-btn { order: 0; padding: 12px; font-size: 15px; text-align: center; background: var(--accent); color: #171718; border-color: var(--accent); }
  .top .wallet-btn:hover { filter: brightness(1.08); }
  .top #sourceChip { justify-content: center; }
}

/* The wallet is a column of the page, not an overlay: nothing behind it is dimmed. */
.wp-backdrop { display: none !important; }
@media (min-width: 1100px) {
  html.wp-open body { padding-right: 420px; }
  html[data-wallet-dock] .wp { width: 420px; box-shadow: none; animation: none; }
  html.wp-open .ledger-intro-copy { width: 54%; }
  html.wp-open .ledger-plate { left: 58%; }
  html.wp-open .top .wallet-btn { display: none; }
}

/* Explorer: a link in the menu that looks like the other entries. */
.nav a.nav-link { color: var(--text-muted); padding: 7px 12px; border-radius: 5px; font-weight: 550; font-size: 13px; text-decoration: none; white-space: nowrap; }
.nav a.nav-link:hover { color: var(--text); }
@media (min-width: 1100px) { .top .nav a.nav-link { padding: 11px 12px; font-size: 15px; border-radius: 9px; } }
