#mast:not(.mast-home) #mast-wallet {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 35px;
  padding: 5px 9px;
  border-radius: 9px;
  border-color: #ad95e0;
  background: #d0baff;
  color: #26153f;
  font-weight: 670;
}
#mast:not(.mast-home) #mast-wallet:is(:hover,:focus-visible) { background: #e9ddff; color: #26153f; }
#mast-wallet svg { width: 15px; height: 15px; flex: none; }
#terminal .advanced-gate .gate-action { background: #d0baff; color: #26153f; border-color: #ad95e0; }
#terminal .advanced-gate .gate-action:hover { background: #e9ddff; }
#wallet-dialog {
  width: min(420px,calc(100% - 24px));
  padding: 17px;
  border: 1px solid var(--ws-tool-edge);
  border-radius: 14px;
  background: var(--ws-menu);
  color: var(--ws-ink);
}
#wallet-dialog::backdrop { background: #08070bb8; backdrop-filter: blur(6px); }
#wallet-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#wallet-dialog h2 { font-size: 1.18rem; letter-spacing: -.03em; }
#wallet-dialog p { color: var(--ws-muted); font-size: .87rem; }
#wallet-hint,#wallet-unavailable,#wallet-current { margin-top: 12px; }
#wallet-options:not(:empty) { display: grid; gap: 7px; margin-top: 14px; }
#wallet-options button,#wallet-unavailable a,#wallet-disconnect,#wallet-dialog header button {
  min-height: 36px;
  border: 1px solid var(--ws-tool-edge);
  border-radius: 7px;
  background: var(--ws-control);
  color: var(--ws-ink);
}
#wallet-options button { justify-content: flex-start; min-height: 43px; padding-inline: 12px; font-weight: 640; }
#wallet-options button:hover,#wallet-unavailable a:hover,#wallet-disconnect:hover,#wallet-dialog header button:hover {
  background: var(--ws-tool-hover);
  border-color: var(--ws-accent);
}
#wallet-dialog :focus-visible { outline: 2px solid var(--ws-accent); }
#wallet-unavailable a { display: inline-flex; align-items: center; margin: 9px 4px 0 0; padding: 5px 8px; font-size: .83rem; }
#wallet-current { display: block; margin-bottom: 12px; padding: 9px; border: 1px solid var(--ws-border); border-radius: 7px;
  background: var(--ws-inset); font-size: .82rem; overflow-wrap: anywhere; }
#wallet-status:not(:empty) { margin-top: 10px; }
@media (max-width: 530px) {
  #mast:not(.mast-home) #mast-wallet { min-height: 31px; padding-inline: 6px; font-size: .73rem; }
  #mast-wallet svg { display: none; }
}
@media (max-width: 470px) {
  #mast:not(.mast-home) #mast-alerts { justify-content: center; width: 30px; min-height: 31px; }
  #mast:not(.mast-home) #mast-alerts svg { display: block; }
  #mast-alerts span { display: none; }
}
