/* The network switcher in the app's header (network.js): the network in use with its own mark, and a menu of both.
   A pill beside the language picker and the sun/moon button, the same height and hairline; the menu has the account
   menu's finish (app-core.css .acct-menu). Everything uses pro.css's tokens, so dark.css's palette applies as it is.
   Loaded after polish.css. */
.net-btn {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; min-width: 38px; margin: 0 0 0 8px; padding: 0 11px 0 9px;
  border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink);
  font: 600 14px/1 var(--ui); white-space: nowrap; cursor: pointer; transition: border-color .15s, background-color .15s;
}
.net-btn:hover, .net-btn[aria-expanded="true"] { border-color: var(--line-2); }
.net-btn[aria-expanded="true"] { background: var(--sunk); }
.net-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Before network.js has filled it: its place is kept, so nothing beside it moves. */
.net-btn:not([data-ready]) { width: 124px; border-color: transparent; pointer-events: none; }
.net-mark { flex: none; display: block; border-radius: 50%; object-fit: cover; }
/* A mark drawn to its own outline (Arbitrum's hexagon) is shown whole, never cut to a circle. */
.net-mark[src*=".svg"] { border-radius: 0; object-fit: contain; }
.net-chev { flex: none; width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .6; transition: transform .15s ease; }
.net-btn[aria-expanded="true"] .net-chev { transform: rotate(180deg); }
.rh-links .net-btn + .lang-next { margin-left: 6px; }

.net-menu {
  position: fixed; z-index: 80; width: 236px; padding: 6px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  box-shadow: 0 24px 50px -20px rgba(13, 13, 15, .35), 0 2px 6px rgba(13, 13, 15, .04);
  animation: net-in .14s ease-out;
}
@keyframes net-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.net-head { margin: 0; padding: 8px 12px 6px; font: 600 13px/1.2 var(--ui); color: var(--text-3); }
.net-menu a {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px;
  border-radius: 10px; color: var(--ink); font: 500 15px/1.2 var(--ui); text-decoration: none; white-space: nowrap;
}
.net-menu a span { flex: 1; min-width: 0; }
.net-menu a:hover, .net-menu a:focus-visible { background: var(--sunk); outline: none; }
.net-menu a:focus-visible { box-shadow: inset 0 0 0 1px var(--line-2); }
.net-menu a[aria-checked="true"] { font-weight: 650; }
.net-menu a.going { opacity: .6; pointer-events: none; }
.net-check { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.net-menu a[aria-checked="true"] .net-check { visibility: visible; }
:root[data-theme="dark"] .net-menu { box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .net-menu { box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); } }
@media (prefers-reduced-motion: reduce) { .net-menu { animation: none; } .net-chev { transition: none; } }
@media (hover: none) { .net-btn:hover:not([aria-expanded="true"]) { border-color: var(--line); } }

/* Under 1,360px the bar's links and the search need the room: the network's mark alone, a round button like the
   sun/moon one. */
@media (max-width: 1360px) {
  .net-btn, .net-btn:not([data-ready]) { width: 38px; padding: 0; justify-content: center; gap: 0; }
  .net-btn .net-name, .net-btn .net-chev { display: none; }
  .net-mark { width: 22px; height: 22px; }
}
/* Where the bar still carries its links and the search is already a round button (901 to 1,180px), the switcher's
   46px come out of the spaces between the bar's parts, so nothing is pushed off the bar. */
@media (min-width: 901px) and (max-width: 1180px) {
  .rh-bar-in { gap: 16px; }
  .rh-links { gap: 3px; }
  .rh-links .net-btn { margin-left: 2px; }
  .rh-links .lang-next, .rh-links .net-btn + .lang-next { margin-left: 3px; }
  .rh-links .theme-toggle, .rh-links .lang-next + .theme-toggle { margin: 0 8px 0 3px; }
}
/* Phones: 40px, as every round button of the bar there (polish.css). */
@media (max-width: 640px) {
  .net-btn, .net-btn:not([data-ready]) { width: 40px; height: 40px; margin-left: 0; }
  .rh-links .net-btn + .lang-next { margin-left: 6px; }
}
/* Narrower than 480px the bar has no room for one more button beside the wordmark once a wallet's address is in it: the
   switcher steps down to the right end of the tab strip under the bar, and the strip keeps that corner free. Narrower
   than 420px the language picker is there already (i18n-next.css): the switcher sits to its left. */
@media (max-width: 480px) {
  .rh-bar .net-btn, .rh-bar .net-btn:not([data-ready]) { position: absolute; right: 0; top: calc(100% + 2px); z-index: 1; }
  .rh-links .net-btn + .lang-next { margin-left: 0; }
  .rh-bar .rh-sub-in { width: calc(100% - 2 * max(clamp(20px, 2.4vw, 48px), var(--safe-l), var(--safe-r)) - 48px); margin-left: max(clamp(20px, 2.4vw, 48px), var(--safe-l)); }
}
@media (max-width: 420px) {
  .rh-bar .net-btn, .rh-bar .net-btn:not([data-ready]) { right: 46px; }
  .rh-bar .rh-sub-in { width: calc(100% - 2 * max(clamp(20px, 2.4vw, 48px), var(--safe-l), var(--safe-r)) - 94px); }
}
@media (max-width: 760px), (pointer: coarse) { .net-menu a { min-height: 48px; } }

/* On a network with nothing but the stocks and Portfolio, the tabs and links for everything else are not there
   (network.js sets data-network on <html>; rh.js leaves their routes out). */
:root[data-network]:not([data-network="robinhood"]) [data-only="robinhood"] { display: none !important; }

/* Buy and sell through a token's own pool (pool-swap.js, on a network other than Robinhood Chain): the watchlist's
   second group, and a price impact worth a second look. */
.watch-sub { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: 14px 18px 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 650 13px var(--ui); color: var(--text-2); }
.watch-sub span { font-weight: 400; color: var(--text-3); }
.orow b.ps-bad { color: var(--down); }
#o-pswap #ps-side { margin-top: 6px; }
