/* Shared customer surfaces */
html { color-scheme: dark; scroll-padding-bottom: 6rem; }
/* The router uses the same nested, rotated square for each pending route. */
#root div[style*="rotate(45deg)"]:has(>div[style*="rotate(-45deg)"]) {
  width: clamp(150px, 42vw, 204px) !important;
  height: 66px !important;
  transform: none !important;
  position: relative;
  background: url(brand.svg) center / contain no-repeat !important;
}
#root div[style*="rotate(45deg)"] > div[style*="rotate(-45deg)"] { display: none; }
#root div[style*="rotate(45deg)"]:has(>div[style*="rotate(-45deg)"])::after {
  content: ""; position: absolute; bottom: -9px; width: 34px; height: 2px;
  border-radius: 2px; background: #edc474; animation: vg-loading 1.3s ease-in-out infinite alternate;
}
@keyframes vg-loading { from { opacity: .45; transform: scaleX(.55); } to { opacity: 1; transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  #root div[style*="rotate(45deg)"]::after { animation: none !important; }
}
.mobile-container { height: auto; min-height: 100svh; }
.mobile-container :is(h1,h2,h3), [data-slot="card-title"] { letter-spacing: -.025em; }
.mobile-container :is(table,.font-mono,.vg-wallet) { font-variant-numeric: tabular-nums; }
.mobile-container .text-muted, [data-slot="tabs-trigger"]:not([data-state="active"]) { color: #b7c8d9; }
[data-slot="tabs-trigger"][data-state="active"] { color: #ffda89; }
[data-slot="tabs-list"] { gap: 1rem; }
.mobile-container .overflow-scroll:has([data-slot="tabs-list"]) {
  overflow: auto hidden; scrollbar-width: thin; scrollbar-color: #52677a transparent;
}
[data-slot="input"], textarea, [data-slot="select-trigger"] {
  background-color: #0b1d2e; border-color: #44596c; border-radius: 10px;
}
input::placeholder, textarea::placeholder { color: #9aafc3; opacity: 1; }
[data-slot="card"], [data-slot="dialog-content"] {
  border-color: #344a5e; box-shadow: 0 8px 28px #020c161f;
}
.mobile-container table th { color: #b4c8da; font-weight: 600; }
.mobile-container table td { border-color: #2d4051; }
.mobile-container .vg-nav { box-shadow: 0 -6px 24px #020b1540; }
.vg-nav a { gap: 1px; }
.vg-header { padding-block: 6px 12px; }
.vg-actions a:focus-visible, .vg-picker a:focus-visible { outline-offset: 2px; }

/* Assets shortcuts share the same controls on each market. */
.grid:has(>a[href$="/p2p"]) { gap: clamp(4px, 2vw, 16px); }
.grid:has(>a[href$="/p2p"]) > :is(a,button) > div {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 0; border-radius: 14px; background: #1c3242; color: #f6d797;
}
.grid:has(>a[href$="/p2p"]) > :is(a,button) > div > svg {
  width: 25px; height: 25px; stroke-width: 1.8; display: block;
}
.mobile-container > div:has(>div.grid>a[href$="/p2p"]) {
  padding: clamp(12px,3vw,24px); border-radius: 18px; border: 1px solid #3c5060;
  background: linear-gradient(125deg,#152c3d,#0b1928 85%);
}
@media (max-width: 640px) {
  [data-slot="input"], textarea { font-size: 16px; }
  .mobile-container table td, .mobile-container table th { padding-inline: clamp(4px,1.3vw,10px); }
  .mobile-container form [data-slot="button"][type="submit"] { min-height: 44px; }
  .vg-nav { padding-inline: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .vg-actions a,.vg-picker a,.vg-nav a { transition: none; transform: none; }
  .vg-picker .animate-pulse { animation: none; }
}
