/* Focus mode: a token page on a phone with nothing but the token and its chart.
   The button lives next to the theme toggle and only exists on a phone, on a
   token page; the mode hides the header (and with it the menu button), the
   tabs, the metrics and the trade button, and floats the token's name and
   price in a pill that stays at the top while the chart scrolls. */
.topbar-focus{display:none}
html[data-theme] #topbar .topbar-focus b{display:none}
@media(max-width:700px){
  html[data-theme] #topbar .topbar-focus:not([hidden]){
    display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;order:0;box-sizing:border-box;
    width:32px;height:32px;min-height:32px;padding:6px;border:1px solid var(--line);border-radius:50%;
    background:var(--surface);color:var(--ink-2);cursor:pointer;
  }
  html[data-theme] #topbar .topbar-focus svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
  html[data-theme] #topbar .topbar-focus:hover{background:var(--surface-2);color:var(--ink)}
  html[data-theme] #topbar .topbar-focus:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

  html.rs-focus{scroll-padding-top:12px}
  html.rs-focus body.in-app{padding-top:0!important}
  html.rs-focus #topbar{display:none!important}
  html.rs-focus #view-scan{padding-top:0}
  html.rs-focus #view-scan .scan-tabs,
  html.rs-focus #view-scan #scanMetrics,
  html.rs-focus #view-scan #tokenMobileActions,
  html.rs-focus #view-scan .token-mobile-extra,
  html.rs-focus #view-scan .scan-workspace>.scan-sidebar,
  html.rs-focus #view-scan #scanProgress{display:none!important}
  html.rs-focus #view-scan .scan-workspace{row-gap:0}

  /* The token, floating. */
  html.rs-focus #view-scan .scan-workspace>#tokenHead{
    position:sticky;top:8px;z-index:30;justify-self:center;width:max-content;max-width:calc(100vw - 116px);
    margin:8px 0 8px;padding:6px 14px 6px 8px;border:1px solid var(--line);border-radius:999px;
    background:color-mix(in srgb,var(--surface) 84%,transparent);
    -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 10px 30px rgba(0,0,0,.35);
  }
  html.rs-focus #view-scan #tokenHead>:not(.th-summary-top){display:none!important}
  html.rs-focus #view-scan #tokenHead .th-summary-top{display:flex;align-items:center;gap:10px;margin:0;min-width:0}
  html.rs-focus #view-scan #tokenHead .th-id{width:auto;flex:0 1 auto;align-items:center;gap:8px;min-width:0}
  html.rs-focus #view-scan #tokenHead .th-icon{width:26px;height:26px;margin:0;flex:none}
  html.rs-focus #view-scan #tokenHead .th-name{font-size:14px;line-height:1.15;color:var(--ink)}
  html.rs-focus #view-scan #tokenHead .th-fullname{display:none}
  html.rs-focus #view-scan #tokenHead .th-sym{display:inline;margin:0;font-size:14px;line-height:1.15;font-weight:600;color:var(--ink)}
  html.rs-focus #view-scan #tokenHead .th-price{width:auto;max-width:none;flex:0 0 auto;flex-direction:row;align-items:baseline;gap:8px;margin:0;text-align:right;white-space:nowrap}
  html.rs-focus #view-scan #tokenHead .th-price .p{font-size:16px;line-height:1.15}
  html.rs-focus #view-scan #tokenHead .th-price .delta{font-size:11px;line-height:1.15}

  /* Room for the chart: the viewport less the pill and the chart's own toolbar. */
  html.rs-focus #view-scan :is(#tvBasic,#tv) .tv-chart{min-height:calc(100dvh - 150px)}
}
.focus-exit{
  position:fixed;top:8px;right:8px;z-index:40;display:none;place-items:center;width:40px;height:40px;
  border:1px solid var(--line);border-radius:50%;background:color-mix(in srgb,var(--surface) 84%,transparent);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);color:var(--ink-2);cursor:pointer;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}
html.rs-focus .focus-exit:not([hidden]){display:grid}
.focus-exit svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.focus-exit:hover{color:var(--ink);background:var(--surface-2)}
.focus-exit:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
