#wallet-dialog {
  width: min(420px,calc(100% - 24px));
  padding: 20px;
  border: 1px solid var(--desk-edge);
  border-radius: 17px;
  background: var(--desk-panel);
  color: var(--desk-ink);
  font: 400 14px/1.5 var(--desk-sans);
  box-shadow: 0 12px 32px rgb(39 30 59 / .12);
}

#wallet-dialog::backdrop { background: rgb(39 30 59 / .33); }
#wallet-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#wallet-dialog h2 { color: var(--desk-ink); font-size: 19px; font-weight: 660; letter-spacing: -.035em; }
#wallet-dialog p { color: var(--desk-muted); }
#wallet-hint, #wallet-current { margin-top: 12px; }
#wallet-options:not(:empty) { display: grid; gap: 7px; margin-top: 14px; }
#wallet-dialog :is(#wallet-options button,#wallet-options a,#wallet-disconnect,header button) {
  min-height: 36px;
  border: 1px solid var(--desk-edge);
  border-radius: 100px;
  background: var(--desk-field);
  color: var(--desk-ink);
}
#wallet-dialog #wallet-options :is(button,a) {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 5px 12px;
}
#wallet-options strong { font-size: 14px; font-weight: 670; }
#wallet-options span { font-size: 12px; color: var(--desk-secondary); }
#wallet-dialog #wallet-options .preferred-wallet { border-color: var(--desk-edge); background: var(--desk-selection); }
#wallet-dialog #wallet-options .preferred-wallet span { color: var(--desk-accent); font-weight: 630; }
#wallet-dialog :is(#wallet-options button,#wallet-options a,#wallet-disconnect,header button):hover {
  border-color: var(--desk-accent);
  background: var(--desk-hover);
}
#wallet-dialog :focus-visible { outline: 2px solid var(--desk-accent); outline-offset: 2px; }
#wallet-current {
  display: block;
  margin-bottom: 12px;
  padding: 9px;
  border: 1px solid var(--desk-line);
  border-radius: 7px;
  background: var(--desk-paper);
  font-size: .82rem;
  overflow-wrap: anywhere;
}
#wallet-status:not(:empty) { margin-top: 10px; }
