/* One search field everywhere (design-refs/search-fields, variant 2): a white
   field with a hairline border, 18px corners, 52px tall (44px small); on focus
   an accent border and a soft ring. Buttons next to a field are solid accent of
   the same height. Used by the header search, TG / X filter, Wallet Tracker,
   Bubble Map and the profile tables. Strong selectors: older per-page rules
   (some !important) styled each of these differently. */
:root{
  --vsf-bg:#fff; --vsf-line:rgba(10,37,64,.14); --vsf-ink:#0A2540; --vsf-mute:#4F6B86;
  --vsf-accent:#0077CC; --vsf-ring:rgba(0,119,204,.16); --vsf-on:#fff;
}
html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]){
  --vsf-bg:#131313; --vsf-line:rgba(255,255,255,.14); --vsf-ink:#F4F4EF; --vsf-mute:#9A9A92;
  --vsf-accent:#EDEDE6; --vsf-ring:rgba(237,237,230,.18); --vsf-on:#0A0A0A;
}
html body .vsf,html body #platformHeader .ms-wrap:not(.is-open) .search-bar.vsf{
  position:relative;display:flex;align-items:center;gap:10px;box-sizing:border-box;
  height:52px!important;min-height:52px;margin:0;padding:0 12px 0 16px!important;
  border:1px solid var(--vsf-line)!important;border-radius:18px!important;background:var(--vsf-bg)!important;
  box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;color:var(--vsf-ink);
  transition:border-color .15s ease,box-shadow .15s ease}
/* typing doesn't light the field up: the caret is the cue (user, 2026-10-17) */
html body .vsf:focus-within,html body #platformHeader .ms-wrap:not(.is-open) .search-bar.vsf:focus-within{
  border-color:var(--vsf-line)!important;box-shadow:none!important}
html body .vsf > svg,html body .vsf .vsf-ico,html body .vsf .s-ico{flex-shrink:0;width:20px!important;height:20px!important;color:var(--vsf-mute)!important;opacity:1!important;position:static!important;transform:none!important}
html body .vsf input{
  flex:1;min-width:0;width:auto;height:100%!important;margin:0;padding:0!important;border:0!important;border-radius:0!important;outline:0!important;
  background:transparent!important;box-shadow:none!important;color:var(--vsf-ink)!important;caret-color:var(--vsf-accent);
  font:400 17px/1.2 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;letter-spacing:0!important}
html body .vsf input::placeholder{color:var(--vsf-mute)!important;opacity:1;font-family:inherit}
html body .vsf kbd{font:600 12px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--vsf-mute);padding:5px 7px;border-radius:7px;background:var(--vsf-bg);box-shadow:0 0 0 1px var(--vsf-line);border:0}
html body .vsf--sm{height:44px!important;min-height:44px;border-radius:14px!important;padding:0 12px 0 14px!important}
html body .vsf--sm input{font-size:15px!important}
html body .vsf--sm > svg{width:18px!important;height:18px!important}

/* solid button next to a field */
html body .vsf-btn{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:52px!important;min-height:52px;padding:0 20px!important;
  border:0!important;border-radius:16px!important;background:var(--vsf-accent)!important;background-image:none!important;color:var(--vsf-on)!important;
  box-shadow:none!important;font:700 16px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;letter-spacing:0!important;white-space:nowrap;cursor:pointer;
  transition:filter .15s ease,transform .1s ease}
@media(hover:hover){html body .vsf-btn:hover{filter:brightness(1.08);transform:none}}
html body .vsf-btn:active{transform:scale(.97)}
html body .vsf-btn:focus-visible{outline:2px solid var(--vsf-accent);outline-offset:3px}
/* dropdown next to a small field */
html body .vsf-sel{display:inline-flex;align-items:center;gap:8px;height:44px!important;padding:0 14px!important;border:1px solid var(--vsf-line)!important;border-radius:14px!important;
  background:var(--vsf-bg)!important;color:var(--vsf-ink)!important;box-shadow:none!important;font:600 15px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important}

/* rows that hold a field + a button */
html body .wlt-search-row,html body .bm-pg-search{display:flex;align-items:center;gap:10px}
html body .wlt-search-row > .vsf,html body .bm-pg-search > .vsf{flex:1}
html body .tgt-search-wrap.vsf{margin-bottom:16px}
html body .tgt-search-wrap.vsf .tgt-search-clr{margin-left:auto;background:none;border:0;color:var(--vsf-mute);font-size:20px;cursor:pointer}
html body .wlt-hold-field{flex:0 1 280px}
html body .wlt-section-toolbar .wlt-hold-field{max-width:320px}
html body #platformHeader .ms-wrap:not(.is-open) .search-bar.vsf .ms-kbd--esc{display:none}

@media(max-width:700px){
  html body .vsf,html body #platformHeader .ms-wrap:not(.is-open) .search-bar.vsf{height:48px!important;min-height:48px;border-radius:16px!important}
  html body .vsf input{font-size:16px!important}
  html body .vsf-btn{height:48px!important;min-height:48px;padding:0 16px!important;font-size:15px!important;border-radius:14px!important}
  html body #platformHeader .ms-wrap:not(.is-open) .search-bar.vsf{height:44px!important;min-height:44px;border-radius:14px!important;padding:0 12px!important}
  html body .vsf--sm{height:44px!important;min-height:44px}
  html body .wlt-hold-field{flex:1 1 100%}
}
html body .bm-pg-search{flex-direction:row!important;align-items:center!important;padding:14px 0!important}
html body .bm-pg-search > .vsf{min-width:0}
html body .vsf:has(.bm-input-err){border-color:#e11d48!important;box-shadow:0 0 0 4px rgba(225,29,72,.14)!important}
html body .wlt-hold-toolbar{flex-wrap:nowrap}
html body .wlt-hold-toolbar > .wlt-hold-field{flex:1 1 240px;min-width:0}
html body .bm-pg-load-btn.vsf-btn{width:auto!important}
@media(max-width:700px){
  html body .wlt-hold-toolbar{flex-wrap:wrap}
  html body .wlt-hold-toolbar > .wlt-hold-field{flex:1 1 100%}
}
/* the open search dialog keeps its own field (soft fill + accent border, header-refinement.css) */
html body #platformHeader .ms-wrap.is-open .search-bar.vsf{background:var(--search-field)!important;border-color:transparent!important;box-shadow:none!important}

/* ── Header actions (design-refs/header-actions, variant 2) ─────────────────
   Same height as the search field. Launch is the one solid accent button with
   the Pepe mark; the balance is an outlined button «130.58 ◈» (GRAM mark after
   the number, no word, no «BALANCE» caption or dot); the avatar is a circle. */
html body #platformHeader .btn-top-create{display:inline-flex;align-items:center;gap:8px;height:52px!important;min-height:52px;width:auto!important;padding:0 20px 0 14px!important;
  border:0!important;border-radius:16px!important;background:var(--vsf-accent)!important;background-image:none!important;color:var(--vsf-on)!important;
  box-shadow:none!important;font:700 16px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;transition:filter .15s ease,transform .1s ease}
@media(hover:hover){html body #platformHeader .btn-top-create:hover{filter:brightness(1.08);transform:none}}
html body #platformHeader .btn-top-create:active{transform:scale(.97)}
html body #platformHeader .btn-top-create .ct-lbl{display:inline;color:inherit}
html body #platformHeader .btn-top-create .ct-ico{width:26px;height:26px;object-fit:contain;flex-shrink:0}
html body #platformHeader .btn-top-create svg{display:none}
html body #platformHeader .wallet-bal-chip{display:inline-flex;align-items:center;gap:0;min-width:0!important;height:52px!important;min-height:52px;padding:0 14px 0 16px!important;
  border:1px solid var(--vsf-line)!important;border-radius:16px!important;background:var(--vsf-bg)!important;box-shadow:none!important;color:var(--vsf-ink)!important}
html body #platformHeader .wallet-bal-chip::before,html body #platformHeader .wallet-bal-chip .wbc-dot{display:none!important}
html body #platformHeader .wallet-bal-chip .w-bal{display:inline-flex;align-items:center;gap:7px;color:var(--vsf-ink)!important;font:700 18px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-variant-numeric:tabular-nums}
html body #platformHeader .bal-gram{width:28px;height:28px;object-fit:contain;flex-shrink:0}
/* the balance is a figure, not a switch */
html body #platformHeader .wd-bal-amt{cursor:default}
html body #platformHeader .wd-bal-amt:hover{opacity:1}
/* GRAM mark as tall as the digits of the balance */
html body #platformHeader .wd-bal-amt .bal-gram{width:1em;height:1em;margin-left:.08em;position:relative;top:.1em}  /* картинка с полями: круг ≈ .73 её размера */
/* avatar sits in a button of the Launch size and shape, so it doesn't float */
html body #platformHeader .wallet-av-chip{display:grid;place-items:center;width:52px!important;height:52px!important;min-width:52px;min-height:52px;padding:0!important;border-radius:16px!important;overflow:hidden;
  background:var(--vsf-bg)!important;border:1px solid var(--vsf-line)!important;box-shadow:none!important;transition:border-color .15s ease}
@media(hover:hover){html body #platformHeader .wallet-av-chip:hover{border-color:var(--vsf-accent)!important;transform:none}}
html body #platformHeader .wallet-av-chip .w-avatar{width:40px!important;height:40px!important;border-radius:50%!important;overflow:hidden}
html body #platformHeader .wallet-av-chip .w-avatar img{width:100%;height:100%;object-fit:cover}
html body #platformHeader .btn-signin{height:52px!important;min-height:52px;padding:0 20px!important;border:1px solid var(--vsf-line)!important;border-radius:16px!important;
  background:var(--vsf-bg)!important;color:var(--vsf-accent)!important;box-shadow:none!important;font:700 16px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important}
html body #platformHeader :is(.btn-top-create,.wallet-bal-chip,.wallet-av-chip,.btn-signin):focus-visible{outline:2px solid var(--vsf-accent);outline-offset:3px}
@media(max-width:700px){
  html body #platformHeader .btn-top-create{height:44px!important;min-height:44px;width:44px!important;min-width:44px;padding:0!important;justify-content:center;border-radius:14px!important}
  html body #platformHeader .btn-top-create .ct-lbl{display:none!important}
  html body #platformHeader .btn-top-create .ct-ico{width:24px;height:24px}
  html body #platformHeader .wallet-bal-chip{height:44px!important;min-height:44px;padding:0 10px 0 12px!important;border-radius:14px!important}
  html body #platformHeader .wallet-bal-chip .w-bal{font-size:16px!important;gap:5px}
  html body #platformHeader .bal-gram{width:24px;height:24px}
  html body #platformHeader .wallet-av-chip{width:44px!important;height:44px!important;min-width:44px;min-height:44px;border-radius:14px!important}
  html body #platformHeader .wallet-av-chip .w-avatar{width:34px!important;height:34px!important}
  html body #platformHeader .btn-signin{height:44px!important;min-height:44px;padding:0 14px!important;border-radius:14px!important;font-size:15px!important}
}

/* Balance and profile take Launch's fill too — three solid buttons of one height
   read as one row (an outlined white box next to a filled one looked smaller). */
html body #platformHeader .wallet-bal-chip{background:var(--vsf-accent)!important;border-color:var(--vsf-accent)!important}
html body #platformHeader .wallet-bal-chip .w-bal{color:var(--vsf-on)!important}
html body #platformHeader .wallet-av-chip{background:var(--vsf-accent)!important;border-color:var(--vsf-accent)!important}
@media(hover:hover){
  html body #platformHeader :is(.wallet-bal-chip,.wallet-av-chip):hover{filter:brightness(1.08);border-color:var(--vsf-accent)!important}
}
html body #platformHeader .wallet-av-chip .w-avatar{background:#fff!important}

/* One box for all three: legacy header rules (44px avatar with 2px padding, hover lift,
   press scale) must not make one of them shorter or shifted. */
html body #platformHeader :is(.btn-top-create,.wallet-bal-chip,.wallet-av-chip){box-sizing:border-box!important;height:52px!important;min-height:52px!important;max-height:52px!important;align-self:center!important;vertical-align:middle;transform:none!important;scale:none!important;margin-top:0!important;margin-bottom:0!important}
@media(max-width:700px){
  html body #platformHeader :is(.btn-top-create,.wallet-bal-chip,.wallet-av-chip){height:44px!important;min-height:44px!important;max-height:44px!important}
}

/* One step between Launch, balance and profile (was 18px / 8px: the topbar gap plus
   the wallet group's own 2px pad vs. the group's 8px gap). */
html body #platformHeader.topbar{gap:10px!important}
html body #platformHeader .wallet-wrap{gap:10px!important;padding-left:0!important}

/* Bubble Map: the address row keeps the hero card's side margins, so field + Load
   never run wider than the card above them. */
html body #bubbleMapView .bm-pg-search{padding:14px 24px!important}
@media(max-width:999px) and (min-width:701px){html body #bubbleMapView .bm-pg-search{padding:10px 14px!important}}
@media(max-width:700px){html body #bubbleMapView .bm-pg-search{padding:12px!important}}

/* No blue highlight while typing, anywhere: the Swap token picker, the Swap
   pay / receive boxes, and the coin-page token picker keep their resting look on focus. */
html body .u-search:focus-within{border-color:transparent!important;box-shadow:none!important}
html body #dexView#dexView.u :is(.dex-sc-pay,.dex-sc-recv):focus-within{border-color:var(--u-panel-line)!important;box-shadow:var(--u-panel-shadow)!important}
html body #tselModal .tsel-top:focus-within{box-shadow:none!important}

/* Phones: the open search is a full-width sheet from the bottom, like the Swap
   token picker — no side gaps, no outline down the sides. */
@media(max-width:760px){
  html body #platformHeader .ms-wrap.is-open{
    top:auto!important;bottom:0!important;left:0!important;right:0!important;transform:none!important;
    width:100%!important;max-width:none!important;height:88dvh!important;max-height:88dvh!important;
    display:flex;flex-direction:column;border-radius:24px 24px 0 0!important;
    box-shadow:0 -12px 40px rgba(10,37,64,.18)!important;padding-bottom:env(safe-area-inset-bottom,0px);
    animation:msSheetUp .3s cubic-bezier(.2,0,0,1)}
  html:is([data-theme="dark"],[data-theme="voidtype"],[data-scheme="dark"]) body #platformHeader .ms-wrap.is-open{box-shadow:0 -12px 40px rgba(0,0,0,.6)!important}
  html body #platformHeader .ms-wrap.is-open::before{content:"";display:block;flex:none;width:36px;height:4px;margin:8px auto 0;border-radius:2px;background:var(--search-muted);opacity:.35}
  html body #platformHeader .ms-wrap.is-open .ms-drop{flex:1 1 auto;min-height:0}
  @keyframes msSheetUp{from{transform:translateY(100%)}to{transform:none}}
}
@media(max-width:760px) and (prefers-reduced-motion:reduce){html body #platformHeader .ms-wrap.is-open{animation:none}}

/* Поиск нигде не подсвечивается при фокусе: ни кольца, ни рамки, ни заливки — курсор и есть сигнал (user, 2026-10-21) */
html body :is(.vsf input,.ms-inp,.bm-pg-input,.bm-search-inp,.search-inp,.tgt-search-inp,.tsel-search,.wlt-search-input,.wlt-hold-search,.cr-search-inp,input[type="search"]):is(:focus,:focus-visible):not(#_){
  outline:0!important;box-shadow:none!important}
