/*
 * Pool Tracker, the new design: graphite dashboard (SOFT DASHBOARD mockup) × Helius — near-black page, hairline
 * cards, Onest text with every figure in Geist (var(--num)), one orange accent and slow orbital light behind the title.
 * Light theme is warm paper with the same accent. Loaded after app.css recoloured for the theme (/v2/base-light.css or
 * /v2/base-dark.css), so it only changes shapes, type and layout. Admin accounts only for now.
 * The file grows in rounds: the base sections, then the owner's passes (Minimal pass, Pass 3, Round 5–8) and the audit
 * (Round 9, one section per area at the end); a later round overrides an earlier one, so a tab's newest rules are last.
 */

/* «Цикл» styles live in their own file, owned by the cycle work (see HANDOFF d140). */
@import url("/v2/cycle.css?v=6272a4bacc");

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/v2/fonts/onest-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/v2/fonts/onest-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/v2/fonts/jbm-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/v2/fonts/jbm-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */

.v2 {
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r: 12px;
  --r-s: 8px;
  --side-w: 236px;
  --bar-h: 60px;
  --top-h: 60px;
  --pad: 36px;
  --max: 1600px;
  --dock-w: min(460px, calc(100vw - 24px));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --orange: #ff5a2e;
  --orange2: #ff7a45;
  --cta: linear-gradient(180deg, #ff6a3d, #f0461d);
}

.v2.t-dark {
  color-scheme: dark;
  --bg: #0a0a0b;
  --side-bg: #0d0d0f;
  --card: #121315;
  --card2: #17181b;
  --card3: #1e2024;
  --elev: #141518;
  --line: #222429;
  --line2: #2e3137;
  --sep: #1d1f23;
  --fg: #ecebe6;
  --fg2: #adb0b5;
  --muted: #80858c;
  --faint: #5a5e65;
  --accent: #ff6a3d;
  --acc: #ff6a3d;
  --acc-ink: #ffffff;
  --accent-bg: rgba(255, 106, 61, 0.12);
  --acc-tint: rgba(255, 106, 61, 0.12);
  --cream: #eee3ca;
  --cream-ink: #1b1a16;
  --fill: rgba(255, 255, 255, 0.09);
  --fill2: rgba(255, 255, 255, 0.045);
  --hover: rgba(255, 255, 255, 0.028);
  --up: #79c95a;
  --up-bg: rgba(121, 201, 90, 0.13);
  --down: #f06a5f;
  --down-bg: rgba(240, 106, 95, 0.13);
  --warn: #e6ae48;
  --glass: rgba(10, 10, 11, 0.82);
  --pop: rgba(22, 23, 26, 0.97);
  --shadow: 0 0 0 1px var(--line2), 0 24px 60px rgba(0, 0, 0, 0.55);
  --scrim: rgba(0, 0, 0, 0.6);
  --toast: rgba(30, 32, 36, 0.96);
  --danger: #f06a5f;
  --danger-bg: rgba(240, 106, 95, 0.13);
  --fx1: #ff6a2b;
  --fx2: #ffd0a6;
  --fx-op: 1;
  --glow: rgba(255, 90, 46, 0.16);
}

.v2.t-light {
  color-scheme: light;
  --bg: #f5f3ee;
  --side-bg: #efece5;
  --card: #ffffff;
  --card2: #faf9f6;
  --card3: #f0ede6;
  --elev: #ffffff;
  --line: #e4e0d7;
  --line2: #d6d1c6;
  --sep: #ece8e0;
  --fg: #17171a;
  --fg2: #46464c;
  --muted: #65635e;
  --faint: #6a6863;
  --accent: #c53812;
  --acc: #c53812;
  --acc-ink: #ffffff;
  --cta: linear-gradient(180deg, #cf3f17, #bd3410);
  --accent-bg: rgba(232, 70, 30, 0.09);
  --acc-tint: rgba(232, 70, 30, 0.09);
  --cream: #17171a;
  --cream-ink: #f5f3ee;
  --fill: rgba(23, 23, 26, 0.08);
  --fill2: rgba(23, 23, 26, 0.045);
  --hover: rgba(23, 23, 26, 0.025);
  --up: #247520;
  --up-bg: rgba(47, 143, 42, 0.1);
  --down: #bb3226;
  --down-bg: rgba(210, 60, 48, 0.09);
  --warn: #855500;
  --glass: rgba(245, 243, 238, 0.86);
  --pop: rgba(255, 255, 255, 0.98);
  --shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(40, 30, 10, 0.14);
  --scrim: rgba(20, 16, 8, 0.28);
  --toast: rgba(23, 23, 26, 0.94);
  --danger: #bb3226;
  --danger-bg: rgba(210, 60, 48, 0.09);
  --fx1: #ff6a2b;
  --fx2: #ffb27d;
  --fx-op: 0.55;
  --glow: rgba(255, 106, 61, 0.1);
}

/* ---------- base ---------- */

html.v2 {
  background: var(--bg);
  scrollbar-color: var(--line2) transparent;
}

.v2 body {
  min-height: 100vh;
  background: transparent;
  color: var(--fg);
  font: 14px/1.5 var(--sans);
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* warm light in the top right corner, like a sunrise behind the page */
.v2 body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 92% -14%, var(--glow), transparent 70%),
    radial-gradient(40vw 40vh at 30% 120%, rgba(255, 90, 46, 0.04), transparent 70%);
}

.v2 ::selection {
  background: rgba(255, 106, 61, 0.32);
}

.v2 :focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

.v2 .muted {
  color: var(--muted);
}

.v2 code,
.v2 kbd,
.v2 .mono {
  font-family: var(--mono);
}

.v2 h1,
.v2 h2,
.v2 h3,
.v2 h4 {
  letter-spacing: -0.01em;
}

.v2 .app {
  max-width: none;
  margin: 0;
  padding: 0;
}

.v2 .donate,
.v2 .foot,
.v2 .panel > p.rule,
.v2 #filters-note,
.v2 .al-note,
.v2 .po-legend,
.v2 .key-hint,
.v2 .tap-hint {
  display: none !important;
}

.v2.theme-go body {
  opacity: 0.3;
  transition: opacity 0.2s;
}

/* ---------- controls ---------- */

.v2 .btn {
  height: 34px;
  padding: 0 14px;
  gap: 7px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.v2 .btn:hover {
  border-color: var(--faint);
  background: var(--fill2);
}

.v2 .btn:active {
  transform: scale(0.97);
}

.v2 .btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}

.v2 .btn.ghost {
  background: transparent;
}

.v2 .btn.primary,
.v2 .btn.primary:hover {
  position: relative;
  overflow: hidden;
  border: 0;
  background: var(--cta);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 20px -8px rgba(255, 80, 30, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* a light sweep across the orange button on hover */
.v2 .btn.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.32) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}

.v2 .btn.primary:hover::after {
  transform: translateX(120%);
  transition: transform 0.7s var(--ease);
}

.v2 .btn.primary:disabled,
.v2 .btn.off,
.v2 .btn.off:hover {
  border: 1px solid var(--line);
  background: var(--fill2);
  color: var(--faint);
  box-shadow: none;
}

.v2 .btn.icon {
  width: 34px;
  padding: 0;
}

.v2 .btn.small {
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
}

.v2 .btn.small.icon {
  width: 30px;
  padding: 0;
}

.v2 .btn.wide {
  height: 44px;
  font-size: 15px;
}

.v2 .btn.blk:hover,
.v2 .btn.lpx-danger:hover {
  border-color: transparent;
  background: var(--danger-bg);
  color: var(--danger);
}

.v2 .link {
  color: var(--acc);
  text-decoration: none;
}

.v2 .link:hover {
  color: var(--acc);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.v2 :where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"]), textarea) {
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--card2);
  color: var(--fg);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.v2 :where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"]), textarea):focus {
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-tint);
}

.v2 input::placeholder,
.v2 textarea::placeholder {
  color: var(--faint);
}

.v2 select {
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background-color: var(--card2);
  color: var(--fg);
}

.v2 input[type="checkbox"],
.v2 input[type="radio"],
.v2 input[type="range"] {
  accent-color: var(--acc);
}

/* segmented control, as in the mockup */
.v2 .seg {
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
}

.v2 .seg button {
  height: 28px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.v2 .seg button:hover {
  color: var(--fg);
}

.v2 .seg button.on {
  background: var(--card3);
  color: var(--fg);
  box-shadow: none;
}

.v2 .seg.wrap {
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
}

.v2 .seg.wrap button {
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}

.v2 .seg.wrap button.on {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--cream-ink);
}

/* badges */
.v2 .b {
  height: 20px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card2);
  color: var(--fg2);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

.v2 .b.new {
  border-color: transparent;
  background: var(--acc-tint);
  color: var(--acc);
  font-weight: 600;
}

.v2 .b.bell {
  border-color: transparent;
  background: rgba(230, 174, 72, 0.14);
  color: var(--warn);
}

.v2 .b.sus,
.v2 .b.blk,
.v2 .b.rug {
  border-color: transparent;
  background: var(--danger-bg);
  color: var(--danger);
}

.v2 .b.rug.hard {
  background: var(--danger);
  color: #fff;
}

.v2 .trend {
  display: inline-block;
  min-width: 52px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.v2 .trend.up {
  background: var(--up-bg);
  color: var(--up);
}

.v2 .trend.down {
  background: var(--down-bg);
  color: var(--down);
}

.v2 .trend.flat {
  background: var(--fill2);
  color: var(--muted);
}

.v2 .trend.fresh {
  background: var(--acc-tint);
  color: var(--acc);
}

.v2 .act {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card2);
}

.v2 .count {
  background: var(--fill2);
  color: var(--fg2);
}

.v2 .count.hot {
  background: var(--acc);
  color: #fff;
}

/* switch */
.v2 .sw {
  width: 40px;
  height: 24px;
}

.v2 .sw span {
  background: var(--card3);
  box-shadow: inset 0 0 0 1px var(--line2);
  transition: background 0.25s;
}

.v2 .sw span::after {
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--fg2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.28s var(--spring), background 0.2s;
}

.v2 .sw input:checked + span {
  background: var(--acc);
  box-shadow: none;
}

.v2 .sw input:checked + span::after {
  transform: translateX(16px);
  background: #fff;
}

.v2 .sw input:focus-visible + span {
  outline: 2px solid var(--acc);
}

.v2 .chip-tgl {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}

/* the mark: an orange ring of light around a fee curve */
.v2 .mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  color: var(--acc);
}

.v2 .mark svg {
  width: 30px;
  height: 30px;
  overflow: visible;
  fill: none;
  stroke-linecap: round;
}

.v2 .mark-ring {
  stroke: var(--acc);
  stroke-width: 2.2;
  stroke-dasharray: 3.2 2.6;
  transform-origin: 14px 14px;
  animation: v2-spin 26s linear infinite;
}

.v2 .mark-line {
  stroke: var(--fg);
  stroke-width: 2;
}

.v2 .mark-dot {
  fill: var(--acc);
  stroke: none;
}

.v2 .logo {
  border: 0;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke-linecap='round'%3E%3Ccircle cx='14' cy='14' r='11' stroke='%23ff6a3d' stroke-width='2.2' stroke-dasharray='3.2 2.6'/%3E%3Cpath d='M8 17.5c2-4.6 3.9-7 5.8-7 1.8 0 2.1 3.7 5.2 3.7' stroke='%23ecebe6' stroke-width='2'/%3E%3C/svg%3E")
    center / 100% no-repeat;
  box-shadow: none;
}

/* ---------- sidebar ---------- */

.v2 .side {
  position: fixed;
  z-index: 35;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: var(--side-w);
  padding: 16px 12px 16px;
  border-right: 1px solid var(--line);
  background: var(--side-bg);
}

.v2 .side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 8px;
  margin-bottom: 4px;
}

.v2 .mark-t {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.v2 .mark-t b {
  margin-left: 0.35em;
  color: var(--acc);
  font-weight: 700;
}

.v2 .side-nav {
  position: relative;
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.v2 .nav-l {
  padding: 14px 10px 6px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.v2 .nav-l:first-of-type {
  padding-top: 0;
}

/* the active-section marker glides between items */
.v2 .nav-ind {
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: 0;
  height: 38px;
  border-radius: 9px;
  background: var(--card3);
  box-shadow: inset 0 0 0 1px var(--line);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s var(--spring), height 0.3s var(--spring), opacity 0.2s;
}

.v2 .nav-ind::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--acc);
  box-shadow: 0 0 12px var(--acc);
}

.v2 .nav-ind.on {
  opacity: 1;
}

.v2 .side-nav .tab {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  height: 38px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--fg2);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.v2 .side-nav .tab::before,
.v2 .side-nav .tab::after {
  content: none;
  display: none;
}

.v2 .side-nav .tab:hover {
  background: var(--hover);
  color: var(--fg);
}

.v2 .side-nav .tab.active {
  color: var(--fg);
}

.v2 .side-nav:has(.nav-ind.on) .tab.active {
  background: none;
}

.v2 .side-nav .tab-i {
  flex: none;
  width: 18px;
  height: 18px;
  stroke-width: 1.6;
  transition: color 0.15s;
}

.v2 .side-nav .tab.active .tab-i {
  color: var(--acc);
}

.v2 .tab-t {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2 .side-nav .count {
  position: static;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  background: none;
  box-shadow: none;
  color: var(--faint);
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}

.v2 .side-nav .count.hot {
  min-width: 20px;
  padding: 0 6px;
  background: var(--acc);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.v2 .side-foot {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.v2 .side-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--fg2);
  font-size: 12.5px;
}

.v2 .side-stat .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 3px var(--up-bg);
}

.v2 .side-stat.warn .dot {
  background: var(--warn);
  box-shadow: 0 0 0 3px rgba(230, 174, 72, 0.15);
}

.v2 .theme-seg {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.v2 .theme-seg button {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.v2 .theme-seg button svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.8;
}

.v2 .theme-seg button:hover {
  color: var(--fg);
}

.v2 .theme-seg button[aria-pressed="true"] {
  background: var(--card3);
  color: var(--fg);
}

/* ---------- main column, top bar ---------- */

.v2 .main {
  min-height: 100vh;
  margin-left: var(--side-w);
  padding: 0 var(--pad) 72px;
  overflow-x: clip;
  transition: margin-right 0.4s var(--spring);
}

.v2 .main > * {
  max-width: var(--max);
  margin-inline: auto;
}

.v2 .bar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--bar-h);
}

.v2 .bar::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -100vw;
  border-bottom: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  opacity: 0;
  transition: opacity 0.25s;
}

.v2.scrolled .bar::before {
  opacity: 1;
}

.v2 .bar-mark {
  display: none;
}

.v2 .crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-width: 0;
  color: var(--muted);
  font-size: 13.5px;
  white-space: nowrap;
}

.v2 .crumb-sep {
  color: var(--faint);
}

.v2 .bar-t {
  color: var(--fg);
  font-weight: 500;
}

/* initials on a soft tint of the token's hue (list, pool card) */
.v2 .tk-av,
.v2 #pool-table #rows > tr::before,
.v2 .d-head[data-sym]::before {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: hsl(var(--h, 20) 70% 58% / 0.2);
  box-shadow: inset 0 0 0 1px hsl(var(--h, 20) 70% 62% / 0.28);
  color: hsl(var(--h, 20) 85% 78%);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
}

.v2.t-light .tk-av,
.v2.t-light #pool-table #rows > tr::before,
.v2.t-light .d-head[data-sym]::before {
  background: hsl(var(--h, 20) 70% 55% / 0.14);
  box-shadow: inset 0 0 0 1px hsl(var(--h, 20) 60% 45% / 0.2);
  color: hsl(var(--h, 20) 65% 34%);
}

.v2 .bar-r {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-left: auto;
}

.v2 #live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--fg2);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}

.v2 #live:hover {
  border-color: var(--line2);
  color: var(--fg);
}

.v2 #live-text {
  display: none;
}

.v2 #live::after {
  content: "Live";
}

.v2 #live.paused::after {
  content: "Пауза";
}

.v2 #live.offline::after {
  content: "Нет связи";
}

.v2 #live .dot {
  flex: none;
  width: 7px;
  height: 7px;
  margin: 0;
  border-radius: 50%;
  background: var(--up);
  animation: v2-pulse 2.4s ease-out infinite;
}

.v2 #live.paused .dot {
  background: var(--warn);
  animation: none;
}

.v2 #live.offline .dot {
  background: var(--down);
  animation: none;
}

.v2 .ui-sw {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}

.v2 .ui-sw:empty {
  display: none;
}

.v2 .ui-sw button {
  height: 24px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.v2 .ui-sw button[aria-pressed="true"] {
  background: var(--card3);
  color: var(--fg);
}

.v2 .ui-sw.busy {
  opacity: 0.5;
  pointer-events: none;
}

.v2 .ic {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  background: none;
  color: var(--fg2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.v2 .ic:hover {
  background: var(--fill2);
  color: var(--fg);
}

.v2 .ic:active {
  transform: scale(0.94);
}

.v2 .ic svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.6;
}

.v2 #v2-menu svg {
  stroke-width: 3;
}

.v2 .news-n {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 16px;
  height: 16px;
  margin: 0;
  padding: 0 4px;
  border: 0;
  border-radius: 999px;
  background: var(--acc);
  box-shadow: 0 0 0 2px var(--bg);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.v2 .menu {
  position: relative;
}

.v2 .menu-dot {
  display: none;
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 0 2px var(--bg);
}

.v2 .menu:has(#ideas-n:not([hidden])) .menu-dot {
  display: block;
}

.v2 .cta,
.v2 .cta:hover {
  height: 34px;
  padding: 0 16px 0 13px;
  gap: 6px;
  font-size: 13.5px;
}

.v2 .cta svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.3;
}

/* menus: the ⋯ menu and the sort menu */
.v2 .drop {
  position: absolute;
  z-index: 60;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  min-width: 230px;
  padding: 6px;
  border-radius: 12px;
  background: var(--pop);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  transform-origin: top right;
}

.v2 .drop.open {
  display: block;
  animation: v2-pop 0.22s var(--spring);
}

.v2 .drop-i {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--fg);
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.v2 .drop-i:hover {
  background: var(--fill2);
}

.v2 .drop-i svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.7;
  color: var(--muted);
}

.v2 .drop-i .news-n {
  position: static;
  margin-left: auto;
  box-shadow: none;
}

.v2 #sound .mute,
.v2 #sound.off .waves {
  display: none;
}

.v2 #sound.off .mute {
  display: inline;
}

.v2 #sound::after {
  content: "Вкл";
  margin-left: auto;
  color: var(--muted);
  font-size: 12.5px;
}

.v2 #sound.off::after {
  content: "Выкл";
}

.v2 .drop-out {
  margin-top: 7px;
  color: var(--danger);
}

.v2 .drop-out svg {
  color: var(--danger);
}

.v2 .drop-out::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 10px;
  right: 10px;
  height: 1px;
  background: var(--line);
}

.v2 .drop-theme {
  display: none;
  margin: 2px 2px 8px;
}

.v2 .sortm {
  position: relative;
  flex: none;
}

.v2 .sort-drop {
  top: calc(100% + 8px);
  min-width: 220px;
  max-height: min(440px, 70vh);
  overflow: auto;
}

.v2 .sort-drop .drop-i {
  height: 36px;
  font-size: 13.5px;
}

.v2 .sort-drop .drop-i.on {
  color: var(--acc);
  font-weight: 600;
}

.v2 .sort-dir {
  margin-left: auto;
  font-style: normal;
}

.v2 .pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  color: var(--fg);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.v2 .pill:hover {
  border-color: var(--line2);
  background: var(--card2);
}

.v2 .pill:active {
  transform: scale(0.97);
}

.v2 .pill svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.8;
  color: var(--muted);
}

/* ---------- the head: serif title over orbital light ---------- */

.v2 .head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 30px 0 30px;
  isolation: isolate;
}

.v2 .hero-fx {
  position: absolute;
  z-index: -1;
  top: -60px;
  right: calc(-1 * var(--pad));
  width: min(1100px, 92%);
  height: 340px;
  opacity: var(--fx-op);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 90% at 80% 55%, #000 30%, transparent 75%);
  mask-image: radial-gradient(120% 90% at 80% 55%, #000 30%, transparent 75%);
}

.v2 .hero-fx ellipse {
  fill: none;
  stroke: url(#fx-g);
  stroke-width: 1.1;
}

.v2 .hero-fx g[filter] ellipse {
  stroke-width: 10;
}

.v2 .fx-orbit {
  transform-box: view-box;
  transform-origin: 70% 65%;
  transform: rotate(-9deg);
  animation: v2-orbit 22s ease-in-out infinite alternate;
}

/* bright comets travelling along two of the orbits */
.v2 .hero-fx .fx-run {
  stroke: var(--fx2);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 70 2400;
  filter: drop-shadow(0 0 6px var(--fx1));
  animation: v2-run 9s linear infinite;
}

.v2 .hero-fx .fx-run2 {
  stroke-dasharray: 40 1500;
  animation-duration: 6.5s;
  animation-delay: -3s;
}

.v2 .head-t {
  min-width: 0;
}

.v2 .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.v2 .eyebrow:empty {
  display: none;
}

.v2 .eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--acc);
}

.v2 .lt {
  margin: 0;
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
}

.v2 .lt-s {
  margin: 10px 0 0;
  color: var(--fg2);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.v2 .lt-s b {
  color: var(--fg);
  font-weight: 500;
}

/* KPI tiles of the pools tab, in the head */
.v2 .hkpis {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(130px, 1fr));
  gap: 10px;
  flex: 1 1 640px;
  max-width: 820px;
}

.v2 .hkpis[hidden] {
  display: none;
}

.v2 .kp {
  position: relative;
  min-width: 0;
  padding: 14px 16px 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.v2 .kp-l {
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
}

.v2 .kp-v {
  margin-top: 4px;
  overflow: hidden;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.005em;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2 .kp-s {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.v2 .kp.hero .kp-v {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.v2 .kp-bar {
  display: flex;
  gap: 2px;
  height: 4px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--card3);
}

.v2 .kp-bar i {
  display: block;
  height: 100%;
  min-width: 2px;
  transition: flex-grow 0.6s var(--ease);
}

.v2 .kp-leg {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11.5px;
}

.v2 .kp-leg span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.v2 .kp-leg span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c);
}

/* a number that just changed */
.v2 .tick {
  animation: v2-tick 0.6s var(--ease);
}

/* the spotlight: a warm glow under the cursor on cards (Helius product cards) */
.v2 :is(.kp, .pf-sum .ps)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 106, 61, 0.12), transparent 62%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.v2 :is(.kp, .pf-sum .ps):hover::after {
  opacity: 1;
}

.v2 :is(.kp, .pf-sum .ps):hover {
  border-color: var(--line2);
}

.v2 .panel {
  margin-top: 0;
}

/* sections fade up when opened */
.v2 .panel:not([hidden]) {
  animation: v2-rise 0.45s var(--ease);
}

/* ---------- pools: search, chains, sort, filters ---------- */

.v2 #tab-pools .fcol {
  margin: 0 0 14px;
}

.v2 #tab-pools .toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.v2 .search {
  flex: 0 1 300px;
  min-width: 0;
  height: 34px;
  padding: 0 11px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  box-shadow: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.v2 .search:focus-within {
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-tint);
}

.v2 .search svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.v2 .search input,
.v2 .search input:focus {
  flex: 1;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  font-size: 14px;
}

.v2 .search kbd {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 1px solid var(--line2);
  border-radius: 4px;
  background: none;
  color: var(--muted);
  font-size: 11px;
}

.v2 #tab-pools .toolbar .seg[data-key="chain"] {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.v2 #tab-pools .toolbar .seg[data-key="chain"]::-webkit-scrollbar {
  display: none;
}

.v2 #tab-pools .toolbar .seg[data-key="chain"] button {
  flex: none;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  color: var(--fg2);
  font-size: 13px;
  font-weight: 500;
}

.v2 #tab-pools .toolbar .seg[data-key="chain"] button:hover {
  border-color: var(--line2);
  color: var(--fg);
}

.v2 #tab-pools .toolbar .seg[data-key="chain"] button.on {
  border-color: var(--line2);
  background: var(--card3);
  color: var(--fg);
}

.v2 #tab-pools .toolbar .seg[data-key="chain"] button[data-v=""] {
  font-size: 0;
}

.v2 #tab-pools .toolbar .seg[data-key="chain"] button[data-v=""]::after {
  content: "Все сети";
  font-size: 13px;
}

.v2 .cdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.v2 #more {
  position: relative;
  flex: none;
  order: 0;
  height: 34px;
  padding: 0 13px;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  font-size: 13.5px;
  font-weight: 500;
}

.v2 #more svg {
  color: var(--muted);
}

.v2 #more.on {
  border-color: rgba(255, 106, 61, 0.45);
  background: var(--acc-tint);
  color: var(--acc);
}

.v2 #more.on svg {
  color: var(--acc);
}

.v2 #more .count {
  min-width: 18px;
  margin: 0;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--acc);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
}

/* the filters sheet: a floating card on a computer, a bottom sheet on a phone */
.v2 .sheet-scrim {
  display: none;
}

.v2.sheet-open .sheet-scrim {
  display: block;
  position: fixed;
  z-index: 45;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  animation: v2-fade 0.2s;
}

.v2 #filters {
  position: fixed;
  z-index: 46;
  top: calc(var(--bar-h) + 8px);
  right: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 16px;
  width: min(420px, calc(100vw - 40px));
  max-height: calc(100vh - var(--bar-h) - 28px);
  margin: 0;
  padding: 0 20px 20px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 14px;
  background: var(--elev);
  box-shadow: var(--shadow);
  animation: v2-pop 0.26s var(--spring);
  transform-origin: top right;
}

.v2 #filters > * {
  grid-column: 1 / -1;
}

.v2 .sheet-h {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -20px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--elev);
}

.v2 .sheet-h b {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}

.v2 .sheet-x {
  height: 30px;
  border-color: transparent;
  background: var(--cta);
  color: #fff;
  font-weight: 600;
}

.v2 .sheet-x:hover {
  border-color: transparent;
  background: var(--cta);
  filter: brightness(1.06);
}

.v2 #filters .range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.v2 #filters .range > span:first-child {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.v2 #filters .range input {
  width: 100%;
  height: 38px;
  font-size: 14px;
}

.v2 #filters .range > input:only-of-type {
  grid-column: 1 / -1;
}

.v2 #filters .range > .seg {
  grid-column: 1 / -1;
  justify-self: start;
  max-width: 100%;
  flex-wrap: wrap;
}

.v2 #filters .range.mkt-f .seg button {
  height: auto;
  min-height: 28px;
  white-space: normal;
  text-align: left;
}

.v2 #filters .hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 0;
}

.v2 #filters-reset {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: none;
  color: var(--fg);
  font-size: 13.5px;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- pools: the list (one grid for the head row and the rows) ---------- */

.v2 #tab-pools .table-card {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  box-shadow: none;
  container: plist / inline-size;
}

.v2 #tab-pools .table-scroll {
  overflow: visible;
}

.v2 #pool-table,
.v2 #pool-table thead,
.v2 #pool-table tbody {
  display: block;
  width: 100%;
}

.v2 #pool-table {
  --cols: 34px minmax(190px, 2.3fr) minmax(76px, 1fr) minmax(76px, 1fr) minmax(64px, 0.8fr) minmax(56px, 0.7fr) minmax(64px, 0.8fr) minmax(70px, 0.9fr) minmax(70px, 0.8fr) minmax(92px, 1.1fr) 86px;
  --areas: "av pool tvl vol yield swaps age f5 trend fees act";
}

.v2 #pool-table thead {
  position: sticky;
  z-index: 6;
  top: var(--bar-h);
}

.v2 #pool-table thead tr,
.v2 #pool-table #rows > tr {
  position: relative;
  display: grid;
  grid-template-columns: var(--cols);
  grid-template-areas: var(--areas);
  align-items: center;
  column-gap: 14px;
  padding: 0 16px;
}

.v2 #pool-table thead tr {
  height: 42px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--r) var(--r) 0 0;
  background: var(--card);
}

.v2.scrolled #pool-table thead tr {
  background: color-mix(in srgb, var(--card) 94%, transparent);
}

.v2 #pool-table th {
  position: static;
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-align: right;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.v2 #pool-table th:hover {
  color: var(--fg);
}

.v2 #pool-table th.sorted {
  color: var(--fg);
}

.v2 #pool-table th.c-pool {
  grid-column: av / pool;
  text-align: left;
}

.v2 #pool-table th:nth-child(2) {
  grid-area: tvl;
}

.v2 #pool-table th:nth-child(3) {
  grid-area: fees;
}

.v2 #pool-table th.c-f5 {
  grid-area: f5;
}

.v2 #pool-table th.c-trend {
  grid-area: trend;
  text-align: center;
}

.v2 #pool-table th.c-vol {
  grid-area: vol;
}

.v2 #pool-table th.c-yield {
  grid-area: yield;
}

.v2 #pool-table th.c-swaps {
  grid-area: swaps;
}

.v2 #pool-table th.c-age {
  grid-area: age;
}

.v2 #pool-table th.c-act {
  grid-area: act;
  cursor: default;
}

.v2 #pool-table th.c-liq,
.v2 #pool-table th.c-last {
  display: none;
}

.v2 #pool-table #rows > tr {
  min-height: 58px;
  border: 0;
  border-top: 1px solid var(--sep);
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.15s;
}

.v2 #pool-table #rows > tr:first-child {
  border-top: 0;
}

.v2 #pool-table #rows > tr:hover {
  background-color: var(--hover);
}

.v2 #pool-table #rows > tr.sel {
  background-color: var(--acc-tint);
  box-shadow: inset 2px 0 0 var(--acc);
}

/* rows that just appeared rise in, one after another */
.v2 #pool-table #rows > tr.fresh {
  animation: v2-row 0.5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 28ms);
}

.v2 #pool-table #rows > tr:last-child {
  border-radius: 0 0 var(--r) var(--r);
}

.v2 #pool-table #rows > tr::before {
  content: attr(data-sym);
  grid-area: av;
  width: 32px;
  height: 32px;
  font-size: 11px;
}

.v2 #pool-table #rows > tr.agg-row::before {
  background: var(--acc-tint);
  box-shadow: inset 0 0 0 1px rgba(255, 106, 61, 0.35);
  color: var(--acc);
  font-size: 14px;
}

/* the chain, as a dot on the avatar */
.v2 #pool-table #rows > tr::after {
  content: "";
  grid-area: av;
  align-self: center;
  justify-self: end;
  width: 11px;
  height: 11px;
  margin: 22px -2px 0 0;
  border: 2px solid var(--card);
  border-radius: 50%;
  background: var(--chain, var(--muted));
}

.v2 #rows > tr[data-chain="ethereum"] {
  --chain: #627eea;
}

.v2 #rows > tr[data-chain="solana"] {
  --chain: linear-gradient(135deg, #9945ff, #14f195);
}

.v2 #rows > tr[data-chain="bsc"] {
  --chain: #f0b90b;
}

.v2 #rows > tr[data-chain="base"] {
  --chain: #0052ff;
}

.v2 #rows > tr[data-chain="robinhood"] {
  --chain: #b6e23a;
}

.v2 #pool-table #rows > tr > td {
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: none !important;
  box-shadow: none !important;
  color: var(--fg2);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2 #pool-table #rows > tr > td::before {
  content: none;
}

.v2 #pool-table #rows > tr > td.c-pool {
  grid-area: pool;
  overflow: hidden;
  text-align: left;
}

.v2 #pool-table #rows .pool {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.v2 #pool-table #rows > tr > td:nth-child(2) {
  grid-area: tvl;
}

.v2 #pool-table #rows > tr > td.c-vol {
  grid-area: vol;
}

.v2 #pool-table #rows > tr > td.c-yield {
  grid-area: yield;
}

.v2 #pool-table #rows > tr > td.c-swaps {
  grid-area: swaps;
}

.v2 #pool-table #rows > tr > td.c-age {
  grid-area: age;
  color: var(--muted);
}

.v2 #pool-table #rows > tr > td.c-f5 {
  grid-area: f5;
}

.v2 #pool-table #rows > tr > td.c-f5.hit {
  color: var(--acc);
  font-weight: 600;
}

.v2 #pool-table #rows > tr > td:is(.c-liq, .c-last) {
  display: none;
}

.v2 #pool-table #rows .pair {
  display: block;
  min-width: 0;
  max-width: none;
  overflow: hidden;
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2 #pool-table #rows .tags {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.v2 #pool-table #rows .tags .b {
  flex: none;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.v2 #pool-table #rows .tags .b:first-child {
  display: none;
}

.v2 #pool-table #rows .tags .b:nth-child(3):not(:is(.new, .hook, .iss, .bell, .sus, .blk, .rug))::before {
  content: "·";
  margin-right: 6px;
}

.v2 #pool-table #rows .tags .b:is(.new, .hook, .iss, .bell, .sus, .blk, .rug) {
  height: 17px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  line-height: 17px;
  letter-spacing: 0.03em;
}

.v2 #pool-table #rows .tags .b.new {
  background: var(--acc-tint);
  color: var(--acc);
}

.v2 #pool-table #rows .tags .b.bell {
  background: rgba(230, 174, 72, 0.14);
  color: var(--warn);
}

.v2 #pool-table #rows .tags .b:is(.sus, .blk, .rug) {
  background: var(--danger-bg);
  color: var(--danger);
}

.v2 #pool-table #rows .tags .b.rug.hard {
  background: var(--danger);
  color: #fff;
}

.v2 #pool-table #rows .tags .b:is(.hook, .iss) {
  background: var(--fill2);
  color: var(--fg2);
}

.v2 #pool-table #rows > tr > td.c-trend {
  grid-area: trend;
  overflow: visible;
  text-align: center;
}

.v2 #pool-table #rows > tr > td.c-fees {
  grid-area: fees;
  overflow: visible;
}

.v2 #pool-table #rows .c-fees .big {
  display: inline-block;
  padding: 2px 6px;
  margin-right: -6px;
  border-radius: 6px;
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  font-variant-numeric: tabular-nums;
}

.v2 #pool-table #rows > tr.bump .c-fees .big {
  animation: v2-bump 1.4s var(--ease);
}

.v2 #pool-table #rows .c-fees .sub {
  display: none;
}

.v2 #pool-table #rows > tr > td.c-act {
  grid-area: act;
  overflow: visible;
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 0.15s, transform 0.2s var(--ease);
}

.v2 #pool-table #rows > tr:hover > td.c-act,
.v2 #pool-table #rows > tr:focus-within > td.c-act {
  opacity: 1;
  transform: none;
}

.v2 #pool-table #rows .acts {
  display: inline-flex;
  justify-content: flex-end;
  gap: 6px;
}

.v2 #pool-table #rows .acts > :not(.lpa, .blk),
.v2 #pool-table #rows .acts > .lpa.off {
  display: none;
}

.v2 #pool-table #rows .acts .act {
  display: grid;
  place-items: center;
  height: 26px;
  min-width: 26px;
  padding: 0 10px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: var(--card2);
  color: var(--fg);
  font-size: 12px;
  font-weight: 600;
}

.v2 #pool-table #rows .acts .lpa {
  border-color: transparent;
  background: var(--cta);
  color: #fff;
}

.v2 #pool-table #rows .acts .blk {
  width: 26px;
  padding: 0;
  color: var(--muted);
}

.v2 #pool-table #rows .acts .blk:hover {
  border-color: transparent;
  background: var(--danger-bg);
  color: var(--danger);
}

@media (hover: none) {
  .v2 #pool-table {
    --cols: 34px minmax(170px, 2.3fr) minmax(76px, 1fr) minmax(76px, 1fr) minmax(64px, 0.8fr) minmax(56px, 0.7fr) minmax(64px, 0.8fr) minmax(70px, 0.9fr) minmax(70px, 0.8fr) minmax(92px, 1.1fr);
    --areas: "av pool tvl vol yield swaps age f5 trend fees";
  }

  .v2 #pool-table :is(th, td).c-act {
    display: none !important;
  }
}

@container plist (max-width: 1080px) {
  .v2 #pool-table {
    --cols: 34px minmax(170px, 2.2fr) minmax(76px, 1fr) minmax(76px, 1fr) minmax(56px, 0.7fr) minmax(70px, 0.9fr) minmax(70px, 0.8fr) minmax(92px, 1.1fr) 86px;
    --areas: "av pool tvl vol swaps f5 trend fees act";
  }

  .v2 #pool-table :is(th, td):is(.c-yield, .c-age) {
    display: none !important;
  }
}

@container plist (max-width: 860px) {
  .v2 #pool-table {
    --cols: 34px minmax(150px, 2fr) minmax(76px, 1fr) minmax(70px, 0.9fr) minmax(70px, 0.8fr) minmax(92px, 1.1fr) 80px;
    --areas: "av pool tvl f5 trend fees act";
  }

  .v2 #pool-table :is(th, td):is(.c-vol, .c-swaps) {
    display: none !important;
  }
}

/* narrow list (phone, or a docked pool card): two lines, the essentials only */
@container plist (max-width: 639px) {
  .v2 #pool-table thead {
    display: none;
  }

  .v2 #pool-table #rows > tr {
    grid-template-columns: 34px auto minmax(0, 1fr) auto;
    grid-template-areas:
      "av pool pool fees"
      "av tvl tvl trend";
    column-gap: 12px;
    row-gap: 3px;
    min-height: 0;
    padding: 12px 14px;
  }

  .v2 #pool-table #rows > tr:first-child {
    border-radius: var(--r) var(--r) 0 0;
  }

  .v2 #pool-table #rows > tr::before {
    align-self: center;
    grid-row: 1 / 3;
  }

  .v2 #pool-table #rows > tr::after {
    grid-row: 1 / 3;
  }

  .v2 #pool-table #rows > tr > td:is(.c-vol, .c-yield, .c-swaps, .c-age, .c-f5, .c-act) {
    display: none !important;
  }

  .v2 #pool-table #rows .tags .b:nth-child(2),
  .v2 #pool-table #rows .tags .b:nth-child(3):not(:is(.new, .hook, .iss, .bell, .sus, .blk, .rug)) {
    display: none;
  }

  .v2 #pool-table #rows .pool {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .v2 #pool-table #rows .pair {
    flex: 0 1 auto;
  }

  .v2 #pool-table #rows .tags {
    flex: 1 1 0;
  }

  .v2 #pool-table #rows > tr > td:nth-child(2) {
    color: var(--muted);
    font-size: 12.5px;
    text-align: left;
  }

  .v2 #pool-table #rows > tr > td:nth-child(2)::before {
    content: "TVL ";
    display: inline;
    margin: 0;
    color: var(--faint);
    font-size: 12.5px;
    font-weight: 400;
  }

  .v2 #pool-table #rows .c-fees .big {
    font-size: 15px;
  }

  .v2 #pool-table #rows > tr > td.c-trend {
    text-align: right;
  }

  .v2 #pool-table #rows .trend {
    min-width: 0;
    padding: 1px 6px;
    font-size: 11.5px;
  }
}

/* ---------- pools board (v2.js): the table stays hidden, cards or a leaderboard show the same rows ---------- */

.v2.v2-board #tab-pools .table-scroll {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.v2.v2-board #tab-pools .table-card {
  border: 0;
  background: none;
}

.v2.v2-board #tab-pools .toolbar .sortm {
  display: none;
}

.v2 .bh {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}

.v2 .bh-sort {
  display: flex;
  flex: 1;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 94%, transparent);
  mask-image: linear-gradient(90deg, #000 94%, transparent);
}

.v2 .bh-sort::-webkit-scrollbar {
  display: none;
}

.v2 .bh-sort button {
  position: relative;
  flex: none;
  height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.v2 .bh-sort button:hover {
  color: var(--fg);
}

.v2 .bh-sort button.on {
  background: var(--card3);
  color: var(--fg);
}

.v2 .bh-sort button i {
  margin-left: 4px;
  color: var(--acc);
  font-style: normal;
}

.v2 .bh-sort button i:empty {
  display: none;
}

.v2 .bh-view {
  display: flex;
  flex: none;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
}

.v2 .bh-view button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 26px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.v2 .bh-view button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.v2 .bh-view button[aria-pressed="true"] {
  background: var(--card3);
  color: var(--fg);
}

.v2 .board[data-view="cards"] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.v2 .board[data-view="list"] {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}

.v2 .board:empty {
  display: none;
}

/* avatar shared by cards and list rows */
.v2 .pc-av {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: hsl(var(--h, 20) 70% 58% / 0.2);
  box-shadow: inset 0 0 0 1px hsl(var(--h, 20) 70% 62% / 0.3);
  color: hsl(var(--h, 20) 85% 78%);
  font-size: 12px;
  font-weight: 700;
}

.v2.t-light .pc-av {
  background: hsl(var(--h, 20) 70% 55% / 0.14);
  color: hsl(var(--h, 20) 65% 34%);
}

.v2 .pc-av i {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--card);
  border-radius: 50%;
  background: var(--chain, var(--muted));
}

.v2 :is(.pc, .pr)[data-chain="ethereum"] {
  --chain: #627eea;
}

.v2 :is(.pc, .pr)[data-chain="solana"] {
  --chain: linear-gradient(135deg, #9945ff, #14f195);
}

.v2 :is(.pc, .pr)[data-chain="bsc"] {
  --chain: #f0b90b;
}

.v2 :is(.pc, .pr)[data-chain="base"] {
  --chain: #0052ff;
}

.v2 :is(.pc, .pr)[data-chain="robinhood"] {
  --chain: #b6e23a;
}

.v2 .pc-t {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.v2 .pc-pair {
  overflow: hidden;
  color: var(--fg);
  font-size: 14.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2 .pc-tags {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.v2 .pc-tags .b {
  flex: none;
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.v2 .pc-tags .b:first-child::after {
  content: " ·";
}

.v2 .pc-tags .b:nth-child(2)::after {
  content: " ·";
}

.v2 .pc-tags .b:is(.new, .hook, .iss, .bell, .sus, .blk, .rug, .agg) {
  height: 17px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  line-height: 17px;
}

.v2 .pc-tags .b.new {
  background: var(--acc-tint);
  color: var(--acc);
}

.v2 .pc-tags .b.bell {
  background: rgba(230, 174, 72, 0.14);
  color: var(--warn);
}

.v2 .pc-tags .b:is(.sus, .blk, .rug) {
  background: var(--danger-bg);
  color: var(--danger);
}

.v2 .pc-tags .b:is(.hook, .iss, .agg) {
  background: var(--fill2);
  color: var(--fg2);
}

.v2 .pc-acts {
  display: flex;
  gap: 6px;
  flex: none;
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.15s;
}

.v2 :is(.pc, .pr):is(:hover, :focus-within) .pc-acts {
  opacity: 1;
}

@media (hover: none) {
  .v2 .pc-acts {
    opacity: 1;
  }
}

.v2 .pc-acts button {
  height: 28px;
  min-width: 28px;
  padding: 0 11px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: var(--card2);
  color: var(--fg);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.v2 .pc-acts .pc-lp {
  border-color: transparent;
  background: var(--cta);
  color: #fff;
}

.v2 .pc-acts .pc-x {
  width: 28px;
  padding: 0;
  color: var(--muted);
}

.v2 .pc-acts .pc-x:hover {
  border-color: transparent;
  background: var(--danger-bg);
  color: var(--danger);
}

/* the card */
.v2 .pc {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px 16px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.v2 .pc:hover {
  border-color: var(--line2);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.7);
}

.v2 .pc.sel,
.v2 .pr.sel {
  border-color: rgba(255, 106, 61, 0.6);
  box-shadow: 0 0 0 1px rgba(255, 106, 61, 0.35), 0 14px 40px -20px rgba(255, 90, 46, 0.6);
}

/* the top three: warm light from the corner, like the Helius RPC card */
.v2 .pc.lead {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 106, 61, 0.14), transparent 55%),
    var(--card);
}

.v2 .pc.lead:first-child {
  border-color: rgba(255, 106, 61, 0.35);
}

.v2 .pc.agg {
  border-style: dashed;
}

.v2 .pc.in,
.v2 .pr.in {
  animation: v2-row 0.5s var(--ease) both;
}

.v2 .pc-h {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.v2 .pc-rank {
  flex: none;
  min-width: 18px;
  color: var(--faint);
  font-family: var(--serif);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.v2 .pc.lead .pc-rank {
  color: var(--acc);
}

.v2 .pc-fig {
  display: flex;
  align-items: center;
  gap: 10px;
}

.v2 .pc-v {
  display: inline-block;
  padding: 0 4px;
  margin-left: -4px;
  border-radius: 6px;
  font-family: var(--serif);
  color: var(--fg);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.v2 .pc.bump .pc-v,
.v2 .pr.bump .pr-5 b {
  animation: v2-bump 1.4s var(--ease);
}


/* fees 5 min: the key figure, bright and calm (never red) */
.v2 .pc-cap {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

.v2 .pc-fig {
  margin-top: 2px;
}

.v2 .pc-30 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
}

.v2 .pc-30 b {
  color: var(--fg2);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* the liquidity around the price: app.js's own mini chart (green below the price, red above, the line is the price) */
.v2 .pc-liq {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 10px 12px 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card2);
}

.v2 .pc-liq-l {
  color: var(--faint);
  font-size: 11px;
}

.v2 :is(.pc-liq, .pr-liq) .lq {
  display: block;
  width: 100%;
}

.v2 :is(.pc-liq, .pr-liq) .lqs {
  width: 100%;
  height: 34px;
}

.v2 .pr-liq .lqs {
  height: 26px;
}

.v2 :is(.pc-liq, .pr-liq) .lq-none {
  width: auto;
  color: var(--faint);
}
.v2 .pc-m {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 14px -16px 0;
  border-top: 1px solid var(--line);
}

.v2 .pc-m div {
  min-width: 0;
  padding: 10px 12px 11px;
  border-left: 1px solid var(--line);
}

.v2 .pc-m div:first-child {
  padding-left: 16px;
  border-left: 0;
}

.v2 .pc-m dt {
  color: var(--faint);
  font-size: 11px;
}

.v2 .pc-m dd {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--fg2);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* the leaderboard row */
.v2 .pr {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(130px, max-content) 100px 80px 84px minmax(140px, 1fr) 70px 84px 84px 76px;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border-top: 1px solid var(--sep);
  cursor: pointer;
  transition: background 0.15s;
}

.v2 .pr:first-child {
  border-top: 0;
}

.v2 .pr:hover {
  background: var(--hover);
}

.v2 .pr.sel {
  border-color: var(--sep);
  background: var(--acc-tint);
  box-shadow: inset 2px 0 0 var(--acc);
}

.v2 .pr-n {
  color: var(--faint);
  font-family: var(--serif);
  font-size: 15px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.v2 .pr.lead .pr-n {
  color: var(--acc);
}

.v2 .pr-c {
  display: grid;
  min-width: 0;
  overflow: hidden;
  color: var(--fg2);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.v2 .pr-c small {
  color: var(--faint);
  font-size: 10.5px;
}

.v2 .pr-tr {
  text-align: center;
  overflow: visible;
}

.v2 .pr-5 b {
  display: inline-block;
  justify-self: end;
  padding: 0 4px;
  margin-right: -4px;
  border-radius: 5px;
  color: var(--fg);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@container plist (max-width: 1060px) {
  .v2 .pr {
    grid-template-columns: 26px minmax(130px, 190px) 100px 80px 80px minmax(100px, 1fr) 70px 84px 64px;
  }

  .v2 .pr .pr-apr {
    display: none;
  }
}

@container plist (max-width: 760px) {
  .v2 .pr {
    grid-template-columns: 22px minmax(0, 1fr) auto auto;
    gap: 10px;
    padding: 11px 12px;
  }

  .v2 .pr :is(.pr-liq, .pr-30, .pr-vol, .pr-tvl, .pr-apr, .pc-acts) {
    display: none;
  }
}

@container plist (max-width: 620px) {
  .v2 .board[data-view="cards"] {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .v2 .pc-v {
    font-size: 32px;
  }
}

.v2 #tab-pools .qnote {
  margin: 12px 12px 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card2);
  color: var(--fg2);
  font-size: 13px;
}

.v2 #tab-pools .empty {
  padding: 56px 24px;
  border: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.v2 #tab-pools .pager {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}

.v2 #tab-pools .pager:not(:has(.pn ~ .pn)) {
  display: none;
}

.v2 #tab-pools .pager #range {
  position: absolute;
  left: 16px;
  color: var(--muted);
  font-size: 12px;
}

.v2 #tab-pools .pages {
  display: flex;
  align-items: center;
  gap: 4px;
}

.v2 #tab-pools .pager .btn.icon {
  width: 32px;
  height: 32px;
  border-color: transparent;
  background: none;
  color: var(--fg2);
  font-size: 20px;
  font-weight: 400;
}

.v2 #tab-pools .pager .btn.icon:hover {
  background: var(--fill2);
}

.v2 #tab-pools .pager .btn.icon:disabled {
  opacity: 0.3;
}

.v2 .pn {
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: var(--fg2);
  font-size: 13.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.v2 .pn:hover {
  background: var(--fill2);
}

.v2 .pn.on {
  border-color: var(--line2);
  background: var(--card3);
  color: var(--fg);
}

.v2 .pager .gap {
  color: var(--muted);
}

.v2 #tab-pools .per {
  position: absolute;
  right: 14px;
  font-size: 0;
}

.v2 #tab-pools .per select {
  height: 30px;
  padding: 0 8px;
  font-size: 13px;
}

/* ---------- other tabs: tables, KPI tiles, cards ---------- */

.v2 .table-card,
.v2 .ua-card,
.v2 .al-card,
.v2 .pf-peek,
.v2 .ap-hero {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  box-shadow: none;
}

.v2 .ua-card {
  padding: 18px 20px;
}

.v2 .ua-card h3,
.v2 .al-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}

.v2 .grid th {
  top: var(--bar-h);
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.v2 .grid td {
  border-bottom-color: var(--sep);
}

.v2 .grid tbody tr:hover td {
  background: var(--hover);
}

.v2 .grid .pair {
  font-weight: 500;
}

.v2 .pf-sum {
  gap: 10px;
  margin-top: 16px;
  border: 0;
  border-radius: 0;
  background: none;
  overflow: visible;
}

.v2 .pf-sum .ps {
  position: relative;
  padding: 14px 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  box-shadow: none;
}

.v2 .ps-l {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 400;
}

.v2 .ps-v {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}

.v2 .ps-s {
  color: var(--muted);
  font-size: 12px;
}

.v2 button.ps:not(:disabled):hover {
  border-color: var(--line2);
  background: var(--card2);
}

.v2 .pf-hero {
  gap: 16px;
  padding: 48px 24px;
}

.v2 .pf-hero::before {
  content: "";
  width: 60px;
  height: 60px;
  border: 1px solid var(--line2);
  border-radius: 16px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6a3d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8V7a2.5 2.5 0 0 1 2.5-2.5H16'/%3E%3Crect x='3.5' y='8' width='17' height='11.5' rx='3'/%3E%3Cpath d='M16.5 13.75h.01'/%3E%3C/svg%3E")
      center / 30px no-repeat,
    radial-gradient(circle at 30% 20%, rgba(255, 106, 61, 0.22), transparent 70%),
    var(--card2);
}

.v2 .pf-hero b {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
}

.v2 .pf-hero p,
.v2 .pf-hero > .muted {
  display: none;
}

.v2 .al-r {
  border-bottom-color: var(--sep);
}

.v2 .al-ic {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card2);
}

.v2 .al-r.on .al-ic {
  border-color: rgba(255, 106, 61, 0.4);
  background: var(--acc-tint);
  color: var(--acc);
}

.v2 .api-doc > h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  cursor: pointer;
}

.v2 .api-doc > h3::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.25s var(--spring);
}

.v2 .api-doc.open > h3::after {
  transform: rotate(225deg) translateY(-3px);
}

.v2 .api-doc:not(.open) > :not(h3) {
  display: none;
}

.v2 .api-doc.open > h3 {
  margin-bottom: 14px;
}

/* ---------- pool card ---------- */

.v2 .scrim {
  background: var(--scrim);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  animation: v2-fade 0.25s;
}

.v2 .drawer {
  top: 10px;
  right: 10px;
  bottom: 10px;
  width: var(--dock-w);
  padding: 0 24px 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--elev);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overscroll-behavior: contain;
  scrollbar-width: thin;
  animation: v2-in-r 0.45s var(--spring);
}

.v2 .drawer .close {
  position: sticky;
  z-index: 3;
  top: 14px;
  float: right;
  width: 30px;
  height: 30px;
  margin: 14px -10px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card2);
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.v2 .drawer .close:hover {
  border-color: var(--line2);
  color: var(--fg);
}

.v2 #drawer-body {
  padding-top: 22px;
}

.v2 .d-head {
  gap: 6px;
  padding-right: 36px;
}

.v2 .d-head[data-sym]::before {
  content: attr(data-sym);
  order: -2;
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  font-size: 15px;
}

.v2 .d-head h2 {
  order: -1;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  word-break: break-word;
}

.v2 .d-addr {
  font-size: 12px;
}

.v2 .d-links {
  gap: 8px;
  margin: 18px 0 0;
}

.v2 .d-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 20px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--line);
}

.v2 .d-metrics .m {
  min-width: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  background: var(--card);
}

.v2 .d-metrics .m .l {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.v2 .d-metrics .m .v {
  margin-top: 3px;
  overflow: hidden;
  font-size: 16px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* the hero: what the pool earned in 30 minutes */
.v2 .d-metrics .m:nth-child(2) {
  position: relative;
  order: -1;
  grid-column: 1 / -1;
  padding: 18px 18px 16px;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 106, 61, 0.16), transparent 55%),
    var(--card);
}

.v2 .d-metrics .m:nth-child(2) .l {
  font-size: 12.5px;
}

.v2 .d-metrics .m:nth-child(2) .v {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.v2 .d-metrics .m:nth-child(2) .trend {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
}

.v2 .d-metrics .m:nth-child(3) {
  display: none;
}

.v2 .d-sec {
  margin-top: 28px;
}

.v2 .d-sec h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
}

.v2 .d-sec h3 > .muted {
  display: none;
}

.v2 .drawer .note:not(.sus-note):not(.hook-note) {
  display: none;
}

.v2 .hook-note,
.v2 .sus-note {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card2);
  color: var(--fg2);
  font-size: 13px;
}

.v2 .sus-note {
  margin-top: 16px;
  border-color: rgba(240, 106, 95, 0.3);
  background: var(--danger-bg);
}

.v2 .chart {
  padding: 14px 12px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}

.v2 .tokens .token {
  border-color: var(--line);
}

@media (min-width: 1280px) {
  .v2 .scrim {
    display: none !important;
  }

  .v2.v2-drawer .main {
    margin-right: calc(var(--dock-w) + 20px);
  }

  .v2.v2-drawer .pop {
    right: calc(var(--dock-w) + 36px);
  }
}

/* ---------- popovers, toast, news, login ---------- */

.v2 .pop {
  top: calc(var(--bar-h) + 6px);
  right: 16px;
  width: min(400px, calc(100vw - 32px));
  max-height: calc(100vh - var(--bar-h) - 24px);
  padding: 20px 22px;
  border: 0;
  border-radius: 14px;
  background: var(--pop);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  overscroll-behavior: contain;
  transform-origin: top right;
  animation: v2-pop 0.24s var(--spring);
}

.v2 .pop.news-pop {
  left: auto;
  right: 16px;
  width: min(400px, calc(100vw - 32px));
}

.v2 .pop h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}

.v2 .pop dt {
  font-weight: 600;
}

.v2 .pop dd {
  color: var(--muted);
}

.v2 .news-note {
  right: 20px;
  bottom: 20px;
  border: 0;
  border-radius: 12px;
  background: var(--pop);
  box-shadow: var(--shadow);
}

.v2 .toast {
  bottom: 28px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: var(--toast);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  animation: v2-toast 0.35s var(--spring);
}

.v2 .pf-menu,
.v2 .pf-wmenu {
  border: 0;
  border-radius: 12px;
  background: var(--elev);
  box-shadow: var(--shadow);
}

.v2 .login-card {
  gap: 18px;
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.v2 .login-card input {
  height: 42px;
  font-size: 15px;
}

/* ---------- portfolio (v2.js moves the nodes): wallets column + summary + position cards ---------- */

.v2 .pf2 {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.v2 .pf2-side {
  position: sticky;
  top: calc(var(--bar-h) + 12px);
  display: grid;
  gap: 12px;
  max-height: calc(100vh - var(--bar-h) - 24px);
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  scrollbar-width: thin;
}

.v2 .pf-none .pf2 {
  grid-template-columns: minmax(0, 1fr);
}

.v2 .pf-none .pf2-side {
  display: none;
}

.v2 .pf2-sh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.v2 .pf2-sh b {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}

.v2 .pf2-side {
  overflow-x: hidden;
}

.v2 .pf2-side > * {
  min-width: 0;
}

.v2 .pf2-side #pf-who {
  display: flex;
  width: 100%;
  min-width: 0;
}

.v2 .pf2-side #pf-who button {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 6px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2 .pf2-side .wp {
  min-width: 0;
  overflow: hidden;
}

.v2 .pf2-side .wp-main {
  overflow: hidden;
}

.v2 .pf2-side #pf-who .count {
  display: none;
}

.v2 .pf2-side .pf-rail {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: none;
}

.v2 .pf2-side .wp-all,
.v2 .pf2-side .wp {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  box-shadow: none;
}

.v2 .pf2-side .wp-all {
  justify-content: space-between;
  padding: 0 10px;
  color: var(--fg);
  font-size: 13.5px;
  font-weight: 500;
}

.v2 .pf2-side :is(.wp-all, .wp):hover {
  background: var(--hover);
}

.v2 .pf2-side :is(.wp-all, .wp).on {
  background: var(--card3);
  box-shadow: inset 2px 0 0 var(--acc);
}

.v2 .pf2-side .wp-main {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 9px;
  min-width: 0;
  height: 38px;
  padding: 0 4px 0 10px;
  border: 0;
  background: none;
  color: var(--fg2);
  font-size: 13.5px;
  text-align: left;
}

.v2 .pf2-side .wp.on .wp-main {
  color: var(--fg);
}

.v2 .pf2-side .wp-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2 .pf2-side .wp-v {
  color: var(--fg);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.v2 .pf2-side .wp-n {
  min-width: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--fill2);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.v2 .pf2-side .wp-st {
  color: var(--faint);
  font-size: 12px;
}

.v2 .pf2-side .wp-more {
  flex: none;
  width: 28px;
  height: 28px;
  margin-right: 4px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  opacity: 0.4;
}

.v2 .pf2-side .wp:hover .wp-more {
  opacity: 1;
}

.v2 .pf2-side .pf-connect .btn {
  height: 30px;
}

.v2 .pf2-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.v2 .pf2-main > .pfh {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
}

.v2 .pf2-main > .pfh:not(:has(> :not([hidden]):not(:empty))) {
  display: none;
}

/* the summary: the value big on the left, the other three as a list on the right */
.v2 .pf2-main #pf-kpis {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    radial-gradient(90% 140% at 0% 0%, rgba(255, 106, 61, 0.12), transparent 60%),
    var(--card);
}

.v2 .pf2-main #pf-kpis:empty {
  display: none;
}

.v2 .pf2-main #pf-kpis .ps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0 12px;
  padding: 13px 18px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: none;
  text-align: left;
}

.v2 .pf2-main #pf-kpis .ps + .ps:not(:nth-child(2)) {
  border-top: 1px solid var(--line);
}

.v2 .pf2-main #pf-kpis .ps .ps-l {
  grid-column: 1;
}

.v2 .pf2-main #pf-kpis .ps .ps-v {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-size: 22px;
}

.v2 .pf2-main #pf-kpis .ps .ps-s {
  grid-column: 1;
}

.v2 .pf2-main #pf-kpis .ps:first-child {
  grid-row: 1 / 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 22px 24px;
  border-left: 0;
}

.v2 .pf2-main #pf-kpis .ps:first-child .ps-v {
  align-self: flex-start;
  color: var(--fg);
  font-size: 54px;
  line-height: 1.05;
}

.v2 .pf2-main #pf-kpis .ps.bad .ps-pill {
  color: var(--down);
}

.v2 .pf2-main .pf-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.v2 .pf2-main .pf-tools .pf-q {
  flex: 1 1 auto;
  max-width: 340px;
  margin-left: auto;
}

/* positions: one card each, the range bar across the card */
.v2 #pf-pos {
  border: 0;
  background: none;
}

.v2 #pf-pos .table-scroll {
  overflow: visible;
}

.v2 #pf-table,
.v2 #pf-table tbody {
  display: block;
}

.v2 #pf-table thead {
  display: none;
}

.v2 #pf-table #pf-rows {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.v2 #pf-rows > tr:not(.pf-det) {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.25s var(--ease);
}

.v2 #pf-rows > tr:not(.pf-det):hover {
  border-color: var(--line2);
  transform: translateY(-2px);
}

.v2 #pf-rows > tr.pf-out {
  border-color: rgba(240, 106, 95, 0.45);
}

.v2 #pf-rows > tr.pf-edge {
  border-color: rgba(230, 174, 72, 0.4);
}

.v2 #pf-rows > tr > td {
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 0;
  padding: 10px 16px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none !important;
  text-align: left;
  white-space: nowrap;
}

.v2 #pf-rows > tr > td:nth-child(even of [data-l]) {
  border-left: 1px solid var(--line);
}

.v2 #pf-rows > tr > td[data-l]::before {
  content: attr(data-l);
  color: var(--faint);
  font-size: 11px;
  font-weight: 400;
}

.v2 #pf-rows > tr > td .big {
  color: var(--fg);
  font-size: 17px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.v2 #pf-rows > tr > td .sub {
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  text-overflow: ellipsis;
}

.v2 #pf-rows > tr > td.pf-c-pos {
  grid-column: 1 / -1;
  order: -3;
  padding: 14px 92px 6px 16px;
  border-top: 0;
}

.v2 #pf-rows .pf-pos {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.v2 #pf-rows .pf-pos .pair {
  overflow: hidden;
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
}

.v2 #pf-rows .pf-meta {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.v2 #pf-rows .pf-wl {
  justify-self: start;
  border-color: var(--line);
  background: var(--card2);
}

.v2 #pf-rows > tr > td.pf-c-rg {
  grid-column: 1 / -1;
  order: -2;
  padding: 8px 16px 14px;
  border-top: 0;
}

.v2 #pf-rows .pf-c-rg .rv {
  max-width: none;
}

.v2 #pf-rows .pf-c-rg .rv-bar {
  height: 8px;
}

.v2 #pf-rows > tr > td.pf-c-act,
.v2 .ap2-main .ap-grid tr > td.ap-c-act {
  position: absolute;
  inset: 10px 10px auto auto;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: visible;
  transform: none;
}

.v2 #pf-rows .pf-c-act .acts {
  display: flex;
  gap: 4px;
}

.v2 #pf-rows > tr.pf-det {
  display: block;
  grid-column: 1 / -1;
  margin-top: -6px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card2);
}

.v2 #pf-rows > tr.pf-det > td {
  display: block;
  padding: 14px 16px;
  border: 0;
}

.v2 #pf-pos.nothing #pf-rows {
  display: none;
}

.v2 #pf-pos .empty,
.v2 #pf-feed {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}

/* ---------- autopilot: cockpit, trades left, signals and controls right ---------- */

.v2 #ap-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 22px;
  overflow: hidden;
  background:
    radial-gradient(70% 160% at 100% 0%, rgba(255, 106, 61, 0.14), transparent 60%),
    var(--card);
}

.v2 #ap-mode {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.v2 #ap-mode .ap-mode-t {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.v2 #ap-mode .ap-dot {
  width: 10px;
  height: 10px;
}

.v2 #ap-mode .ap-mode-s {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 12.5px;
}

.v2 #ap-live {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.v2 #ap-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.v2 .ap-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.v2 .ap-kpis .ps-v.ap-up,
.v2 .ap-kpis .ps-v.up {
  color: var(--up);
}

.v2 .ap2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 20px;
  margin-top: 20px;
}

.v2 .ap2-main {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.v2 .ap2-main .ap-sec {
  margin: 0;
}

.v2 .ap2-main .ap-sec-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.v2 .ap2-main .ap-sec-h h3,
.v2 .ap2-main .ap-fold-t {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}

.v2 .ap2-side {
  position: sticky;
  top: calc(var(--bar-h) + 12px);
  display: grid;
  gap: 12px;
  max-height: calc(100vh - var(--bar-h) - 24px);
  overflow: auto;
  scrollbar-width: thin;
}

.v2 .ap2-side > * {
  margin: 0;
}

.v2 .ap2-side h3 {
  display: grid;
  gap: 2px;
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.v2 .ap2-side h3 .ap-n {
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 400;
}

.v2 .ap2-side .ap-j,
.v2 .ap2-side .ap-sigl > * {
  padding: 8px 0;
  border-bottom: 1px solid var(--sep);
  font-size: 12.5px;
  line-height: 1.45;
}

.v2 .ap2-main .ap-grid .ap-st {
  justify-self: start;
}

.v2 .ap2-side .ap-jlist {
  max-height: 320px;
  overflow: auto;
}

.v2 .ap2-side .ap-ctl-row {
  display: grid;
  gap: 6px;
}

.v2 .ap2-side .ap-enter,
.v2 .ap2-side .ap-deny-form {
  display: flex;
  gap: 6px;
}

.v2 .ap2-side :is(.ap-enter, .ap-deny-form) input {
  flex: 1;
  min-width: 0;
}

/* trades as cards: open ones wide, closed ones in a grid */
.v2 .ap2-main .table-card {
  border: 0;
  background: none;
}

.v2 .ap2-main .table-scroll {
  overflow: visible;
}

.v2 .ap2-main .ap-grid,
.v2 .ap2-main .ap-grid tbody {
  display: block;
}

.v2 .ap2-main .ap-grid thead {
  display: none;
}

.v2 #ap-open-t tbody,
.v2 #ap-closed-t #ap-closed {
  display: grid;
  gap: 10px;
}

.v2 #ap-closed-t #ap-closed {
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

.v2 .ap2-main .ap-grid tr:not(.ap-det) {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.2s;
}

.v2 .ap2-main .ap-grid tr:not(.ap-det):hover {
  border-color: var(--line2);
}

.v2 .ap2-main .ap-grid tr.ap-out {
  border-color: rgba(240, 106, 95, 0.45);
}

.v2 .ap2-main .ap-grid tr.ap-edge {
  border-color: rgba(230, 174, 72, 0.4);
}

.v2 .ap2-main .ap-grid tr > td {
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 0;
  padding: 10px 14px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none !important;
  text-align: left;
  white-space: normal;
}

.v2 .ap2-main .ap-grid tr > td[data-l]::before {
  content: attr(data-l);
  color: var(--faint);
  font-size: 11px;
}

.v2 .ap2-main .ap-grid tr > td .big {
  font-size: 16px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.v2 .ap2-main .ap-grid tr > td .sub {
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2 .ap2-main .ap-grid tr > td.ap-c-pos {
  grid-column: 1 / -1;
  order: -3;
  padding: 14px 110px 8px 14px;
  border-top: 0;
}

.v2 .ap2-main .ap-grid .pf-pos {
  display: grid;
  gap: 4px;
}

.v2 .ap2-main .ap-grid .pf-pos .pair {
  font-size: 15px;
  font-weight: 600;
}

.v2 .ap2-main .ap-grid .pf-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.v2 .ap2-main .ap-grid .ap-c-act .acts {
  display: flex;
  gap: 4px;
}

/* open position: range across, then size · fees · net, status at the bottom */
.v2 #ap-open-t tr > td.ap-c-rg {
  grid-column: 1 / -1;
  order: -2;
  border-top: 0;
}

.v2 #ap-open-t tr > td.ap-c-rg .rv {
  max-width: none;
}

.v2 #ap-open-t tr > td:nth-child(6) {
  grid-column: 1 / -1;
  order: 5;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
}

.v2 #ap-open-t tr > td:nth-child(6)::before {
  display: none;
}

.v2 #ap-open-t tr > td:nth-child(5) .big {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}

/* closed position: the result big at the top right, size · time · fees below, the exit reason last */
.v2 #ap-closed > tr > td.ap-c-pos {
  padding-right: 120px;
}

.v2 #ap-closed > tr > td:nth-child(6) {
  position: absolute;
  top: 10px;
  right: 46px;
  display: grid;
  justify-items: end;
  padding: 0;
  border: 0;
  text-align: right;
}

.v2 #ap-closed > tr > td:nth-child(6)::before {
  display: none;
}

.v2 #ap-closed > tr > td:nth-child(6) .big {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
}

.v2 #ap-closed > tr > td:nth-child(4) {
  grid-column: 1 / -1;
  order: 5;
}

.v2 #ap-closed > tr > td:nth-child(4)::before {
  display: none;
}

.v2 .ap2-main .ap-grid tr.ap-det {
  display: block;
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card2);
}

.v2 .ap2-main .ap-grid tr.ap-det > td {
  display: block;
  padding: 14px 16px;
  border: 0;
}

.v2 .ap2-main .ap-empty {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}

/* ---------- pool window: 5-minute fees first, actions pinned to the bottom ---------- */

.v2 {
  --dock-w: min(540px, calc(100vw - 24px));
}

.v2 #drawer-body {
  display: flex;
  flex-direction: column;
}

.v2 #drawer-body > .d-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "av title"
    "av tags"
    "addr addr";
  align-items: center;
  gap: 4px 14px;
  order: 1;
}

.v2 #drawer-body > .d-head[data-sym]::before {
  grid-area: av;
  margin: 0;
}

.v2 #drawer-body > .d-head h2 {
  grid-area: title;
  margin: 0;
}

.v2 #drawer-body > .d-head .tags {
  grid-area: tags;
}

.v2 #drawer-body > .d-head .d-addr {
  grid-area: addr;
  margin-top: 10px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card2);
}

.v2 #drawer-body > .note {
  order: 2;
}

.v2 #drawer-body > .d-metrics {
  order: 3;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.v2 #drawer-body > .d-sec {
  order: 4;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}

.v2 #drawer-body > .d-sec .chart {
  padding: 4px 0 0;
  border: 0;
  background: none;
}

.v2 #drawer-body > .d-sec h3 {
  margin-bottom: 10px;
}

/* the metrics: Fees 5 min across the top, then Fees 30 min and TVL, then four small ones; «Пред. 30м» lives in the trend */
.v2 .d-metrics .m {
  grid-column: span 1;
}

.v2 .d-metrics .m:nth-child(1),
.v2 .d-metrics .m:nth-child(2) {
  order: 0;
  grid-column: span 2;
  padding: 14px 16px;
  background: var(--card);
  box-shadow: none;
}

.v2 .d-metrics .m:nth-child(2) .v {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
}

.v2 .d-metrics .m:nth-child(1) .v {
  font-size: 20px;
}

.v2 .d-metrics .m:nth-child(4) {
  order: -1;
  grid-column: 1 / -1;
  padding: 20px 20px 18px;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(255, 106, 61, 0.16), transparent 55%),
    var(--card);
}

.v2 .d-metrics .m:nth-child(4) .l {
  font-size: 0;
}

.v2 .d-metrics .m:nth-child(4) .l::before {
  content: "Комиссии LP за 5 минут";
  font-size: 12.5px;
}

.v2 .d-metrics .m:nth-child(4) .v {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.v2 .d-metrics .m:nth-child(n + 5) {
  order: 1;
}

.v2 .d-metrics .m:nth-child(n + 5) .v {
  font-size: 14.5px;
}

.v2 #drawer-body > .d-links {
  position: sticky;
  z-index: 4;
  bottom: -32px;
  order: 99;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px -24px -32px;
  padding: 14px 24px 18px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--elev) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.v2 #drawer-body > .d-links .primary {
  flex: 1 1 100%;
  height: 40px;
  font-size: 14px;
}

@media (max-width: 1180px) {
  .v2 .ap2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .v2 .ap2-side {
    position: static;
    max-height: none;
  }
}

@media (max-width: 900px) {
  .v2 .pf2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .v2 .pf2-side {
    position: static;
    max-height: 280px;
  }
}

@media (max-width: 767px) {
  .v2 .pf2-main #pf-kpis {
    grid-template-columns: minmax(0, 1fr);
  }

  .v2 .pf2-main #pf-kpis .ps {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .v2 .pf2-main #pf-kpis .ps:first-child {
    grid-row: auto;
    border-top: 0;
  }

  .v2 .pf2-main #pf-kpis .ps:first-child .ps-v {
    font-size: 42px;
  }

  .v2 .pf2-main .pf-tools {
    flex-wrap: wrap;
  }

  .v2 .pf2-main .pf-tools .pf-q {
    flex-basis: 100%;
    max-width: none;
    order: 3;
  }

  .v2 #drawer-body > .d-links {
    bottom: calc(-28px - env(safe-area-inset-bottom, 0px));
    margin: 20px -16px calc(-28px - env(safe-area-inset-bottom, 0px));
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .v2 #drawer-body .d-metrics .m:nth-child(4) .v {
    font-size: 46px;
  }

  .v2 #drawer-body .d-metrics .m:nth-child(2) .v {
    font-size: 18px;
  }

  .v2 .crumbs {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
  }

  .v2 .bar-t {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .v2 .bar-r {
    gap: 4px;
  }
}

/* ---------- motion ---------- */

@keyframes v2-fade {
  from {
    opacity: 0;
  }
}

@keyframes v2-pop {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(-4px);
  }
}

@keyframes v2-in-r {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
}

@keyframes v2-up {
  from {
    transform: translateY(100%);
  }
}

@keyframes v2-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes v2-row {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@keyframes v2-toast {
  from {
    opacity: 0;
    transform: translate(-50%, 12px) scale(0.97);
  }
}

/* a figure that grew: a soft glow behind it, the digits keep their colour */
@keyframes v2-bump {
  0%,
  20% {
    background: var(--fill);
  }
}

@keyframes v2-tick {
  0% {
    opacity: 0.55;
    transform: translateY(3px);
  }
}

@keyframes v2-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(121, 201, 90, 0.55);
  }

  70%,
  100% {
    box-shadow: 0 0 0 6px rgba(121, 201, 90, 0);
  }
}

@keyframes v2-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes v2-orbit {
  from {
    transform: rotate(-11deg) scale(1);
  }

  to {
    transform: rotate(-6deg) scale(1.04) translateX(-14px);
  }
}

@keyframes v2-run {
  to {
    stroke-dashoffset: -2470;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v2 *,
  .v2 *::before,
  .v2 *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- widths ---------- */

@media (max-width: 1280px) {
  .v2 .hkpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }
}

/* a rail of icons beside the content */
@media (min-width: 768px) and (max-width: 1099px) {
  .v2 {
    --side-w: 72px;
    --pad: 26px;
  }

  .v2 .side {
    align-items: center;
    padding: 16px 10px;
  }

  .v2 .side-brand {
    padding: 0;
  }

  .v2 .mark-t,
  .v2 .tab-t,
  .v2 .nav-l,
  .v2 .side-stat span:last-child,
  .v2 .side .theme-seg span {
    display: none;
  }

  .v2 .side-stat {
    justify-content: center;
    padding: 10px;
  }

  .v2 .side-nav {
    gap: 4px;
  }

  .v2 .nav-ind::before {
    left: -10px;
  }

  .v2 .side-nav .tab {
    justify-content: center;
    width: 48px;
    height: 42px;
    padding: 0;
  }

  .v2 .side-nav .tab-i {
    width: 20px;
    height: 20px;
  }

  .v2 .side-nav .count {
    display: none;
  }

  .v2 .side-nav .count.hot {
    position: absolute;
    top: 3px;
    right: 3px;
    display: block;
    min-width: 16px;
    padding: 0 4px;
    font-size: 10px;
    line-height: 16px;
  }

  .v2 .side .theme-seg {
    flex-direction: column;
    width: 44px;
  }
}

/* a phone: the sections become a tab bar at the bottom, cards become sheets */
@media (max-width: 767px) {
  .v2 {
    --pad: 16px;
    --bar-h: 54px;
    --top-h: 54px;
    --dock: calc(60px + env(safe-area-inset-bottom, 0px));
  }

  .v2 .main {
    margin-left: 0;
    padding: 0 var(--pad) calc(var(--dock) + 28px);
  }

  .v2 .side {
    top: auto;
    right: 0;
    width: auto;
    height: var(--dock);
    flex-direction: row;
    gap: 0;
    padding: 0 max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom, 0px) max(4px, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    border-right: 0;
    background: var(--glass);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
  }

  .v2 .side-brand,
  .v2 .side-foot,
  .v2 .nav-l,
  .v2 .nav-ind {
    display: none;
  }

  .v2 .side-nav {
    display: flex;
    flex: 1;
    gap: 0;
  }

  .v2 .side-nav .tab {
    flex: 1 1 0;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    height: 60px;
    padding: 6px 2px 4px;
    border-radius: 0;
    background: none !important;
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.1;
  }

  .v2 .side-nav .tab.active {
    color: var(--fg);
  }

  .v2 .side-nav .tab.active::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 30%;
    right: 30%;
    height: 2px;
    border-radius: 0 0 2px 2px;
    background: var(--acc);
    box-shadow: 0 0 10px var(--acc);
  }

  .v2 .side-nav .tab-i {
    width: 22px;
    height: 22px;
  }

  .v2 .tab-t {
    flex: none;
    max-width: 100%;
  }

  .v2 .side-nav .count {
    display: none;
  }

  .v2 .side-nav .count.hot {
    position: absolute;
    top: 5px;
    left: calc(50% + 6px);
    display: block;
    min-width: 16px;
    padding: 0 4px;
    box-shadow: 0 0 0 2px var(--bg);
    font-size: 10px;
    line-height: 16px;
  }

  .v2 .bar {
    gap: 10px;
    height: calc(var(--bar-h) + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
  }

  .v2 .bar-mark {
    display: grid;
  }

  .v2 .crumb-root,
  .v2 .crumb-sep {
    display: none;
  }

  .v2 .drop-theme {
    display: flex;
  }

  .v2 .cta,
  .v2 .cta:hover {
    width: 34px;
    padding: 0;
  }

  .v2 .cta span {
    display: none;
  }

  .v2 .head {
    gap: 18px;
    padding: 12px 0 20px;
  }

  .v2 .hero-fx {
    top: -40px;
    width: 140%;
    height: 260px;
  }

  .v2 .lt {
    font-size: 36px;
  }

  .v2 .hkpis {
    flex-basis: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .v2 .kp.hero {
    grid-column: 1 / -1;
  }

  .v2 .kp {
    padding: 11px 12px;
  }

  .v2 .kp-l {
    overflow: hidden;
    font-size: 11.5px;
    text-overflow: ellipsis;
  }

  .v2 .kp-v {
    font-size: 17px;
  }

  .v2 .kp:not(.hero) .kp-s {
    display: none;
  }

  .v2 .kp.hero .kp-v {
    font-size: 32px;
  }

  .v2 #tab-pools .toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .v2 #tab-pools .toolbar > .search {
    flex: 1 1 0;
    order: 0;
    height: 38px;
  }

  .v2 .search kbd {
    display: none;
  }

  .v2 #tab-pools .toolbar .sortm,
  .v2 #tab-pools .toolbar #more {
    order: 1;
  }

  .v2 #more {
    width: 38px;
    height: 38px;
    padding: 0;
    gap: 0;
    font-size: 0;
  }

  .v2 #more .count {
    position: absolute;
    top: -5px;
    right: -5px;
    box-shadow: 0 0 0 2px var(--bg);
  }

  .v2 .sortm .pill {
    height: 38px;
    padding: 0 12px;
  }

  .v2 #tab-pools .toolbar .seg[data-key="chain"] {
    flex: 1 1 100%;
    order: 3;
    margin: 0 calc(-1 * var(--pad));
    padding: 0 var(--pad);
    scroll-padding-inline: var(--pad);
  }

  .v2 #tab-pools .toolbar .seg[data-key="chain"] button {
    flex: none;
    height: 34px;
  }

  .v2 #tab-pools .per,
  .v2 #tab-pools .pager #range {
    display: none;
  }

  .v2 .sheet-scrim {
    background: var(--scrim) !important;
  }

  .v2 #filters {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: 86vh;
    max-height: 86dvh;
    padding: 0 16px calc(20px + env(safe-area-inset-bottom, 0px));
    border-radius: 16px 16px 0 0;
    animation: v2-up 0.42s var(--spring);
  }

  .v2 .sheet-h {
    margin: 0 -16px;
    padding: 18px 16px 12px;
  }

  .v2 .drawer {
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    padding: 0 16px calc(28px + env(safe-area-inset-bottom, 0px));
    border-width: 1px 0 0;
    border-radius: 16px 16px 0 0;
    animation: v2-up 0.45s var(--spring);
  }

  .v2 .drawer::before {
    content: "";
    display: block;
    width: 36px;
    height: 4px;
    margin: 8px auto 0;
    border-radius: 2px;
    background: var(--line2);
  }

  .v2 .drawer .close {
    margin-top: 0;
  }

  .v2 #drawer-body {
    padding-top: 10px;
  }

  .v2 .d-head h2 {
    font-size: 28px;
  }

  .v2 .d-metrics .m:nth-child(2) .v {
    font-size: 38px;
  }

  .v2 .pop,
  .v2 .pop.news-pop {
    top: auto;
    left: 8px;
    right: 8px;
    bottom: calc(var(--dock) + 8px);
    width: auto;
    max-height: calc(100dvh - var(--dock) - var(--bar-h) - 40px);
    padding: 18px;
    transform-origin: bottom center;
  }

  .v2 .news-note {
    left: 12px;
    right: 12px;
    bottom: calc(var(--dock) + 12px);
  }

  .v2 .toast {
    bottom: calc(var(--dock) + 14px);
    max-width: calc(100vw - 32px);
    text-align: center;
  }

  .v2 .pf-sum .ps {
    padding: 12px 14px;
  }

  .v2 .ps-v {
    font-size: 24px;
  }
}

@media (max-width: 400px) {
  .v2 #live {
    width: 32px;
    padding: 0;
    justify-content: center;
  }

  .v2 #live::after {
    content: none;
  }

  .v2 .sortm .sort-t {
    display: none;
  }

  .v2 .sortm .pill {
    width: 38px;
    padding: 0;
    justify-content: center;
  }
}


/* ==========================================================================
 * Minimal pass (owner, 2026-10-24): what matters is easy to see, the rest is quiet or gone.
 * No initials avatars (there are no token logos), no explanatory lines, no title block over the sections.
 * ========================================================================== */

/* the head: only the orbital light stays, as a backdrop */
.v2 .head {
  min-height: 22px;
  padding: 0;
}

.v2 .head-t,
.v2 #v2-kpis {
  display: none !important;
}

.v2 .hero-fx {
  top: -110px;
}

/* initials avatars: gone everywhere */
.v2 :is(.pc-av, .tk-av),
.v2 #pool-table #rows > tr::before,
.v2 #pool-table #rows > tr::after {
  display: none !important;
}

.v2 .d-head[data-sym]::before {
  content: none !important;
  display: none !important;
}

.v2 #drawer-body > .d-head {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "title"
    "tags"
    "addr";
}

/* quiet chrome */
.v2 .side-stat,
.v2 .pfh-read,
.v2 #prefs-note,
.v2 #prefs-saved,
.v2 .hook-note:not(:has(b)),
.v2 .ap-card-f:not(#ap-set-box),
.v2 .ap-mode-s,
.v2 #ap-stream {
  display: none !important;
}

/* pools board: the 5-minute figure and the liquidity chart, the rest whispers */
.v2 .pc-cap {
  margin-top: 14px;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.v2 .pc-cap {
  font-size: 0;
}

.v2 .pc-cap::before {
  content: "5 мин";
  font-size: 11px;
}

.v2 .pc-liq {
  padding: 8px 10px 6px;
  border: 0;
  background: none;
}

.v2 .pc-liq-l {
  display: none;
}

.v2 .pc-m {
  margin-top: 8px;
  border-top-color: var(--sep);
}

.v2 .pc-m div {
  border-left-color: var(--sep);
}

.v2 .pc-m dd {
  color: var(--muted);
  font-weight: 400;
}

.v2 .pc-tags .b:not(:is(.new, .hook, .iss, .bell, .sus, .blk, .rug, .agg)) {
  color: var(--faint);
}

.v2 .pr-c small {
  display: none;
}

.v2 .pr .pr-5 small,
.v2 .pr .pr-30 small,
.v2 .pr .pr-vol small {
  display: block;
}

/* pool window: no address box, no explanations */
.v2 #drawer-body > .d-head .d-addr {
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--faint);
  font-size: 11px;
}

.v2 #drawer-body .d-metrics .m .l {
  color: var(--faint);
}

.v2 #drawer-body > .d-sec h3 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.v2 #drawer-body > .d-sec h3 > .muted,
.v2 #drawer-body .d-sec .note {
  display: none;
}

/* portfolio: numbers only */
.v2 .pf2-main #pf-kpis .ps .ps-s,
.v2 #pf-rows > tr > td .sub {
  display: none;
}

.v2 .pf2-main #pf-kpis .ps:first-child .ps-s {
  display: block;
  color: var(--faint);
  font-size: 12px;
}

.v2 .pf2-main #pf-kpis .ps .ps-pill {
  display: inline-flex;
}

.v2 .pf2-main #pf-kpis .ps.bad .ps-s {
  display: block;
}

.v2 #pf-rows > tr > td[data-l]::before {
  color: var(--faint);
}

/* ---------- alerts: status as small pills, rules as tiles ---------- */

.v2 #tab-alerts > .pfh {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

.v2 #al-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  overflow: visible;
  border: 0;
  background: none;
}

.v2 #al-kpis .ps {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  width: auto;
  min-height: 0;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  cursor: pointer;
}

.v2 #al-kpis .ps::after {
  display: none;
}

.v2 #al-kpis .ps .ps-l {
  color: var(--muted);
  font-size: 12.5px;
}

.v2 #al-kpis .ps .ps-v {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
}

.v2 #al-kpis .ps .ps-v .al-st {
  font-size: 12.5px;
}

.v2 #al-kpis .ps .ps-v .ps-of,
.v2 #al-kpis .ps .ps-s {
  display: none;
}

.v2 #al-kpis .ps .ps-v.zero {
  color: var(--faint);
}

.v2 #prefs-card {
  padding: 0;
  border: 0;
  background: none;
}

.v2 #prefs-card .al-r {
  border: 0;
}

/* the rules: a grid of tiles; an opened one takes the full row */
.v2 #prefs-card:has(.al-r) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.v2 #prefs-card > :not(.al-r) {
  grid-column: 1 / -1;
}

.v2 #prefs-card .al-r {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  transition: border-color 0.2s;
}

.v2 #prefs-card .al-r:hover {
  border-color: var(--line2);
}

.v2 #prefs-card .al-r:has(> .al-rh input:checked) {
  border-color: rgba(255, 106, 61, 0.45);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 106, 61, 0.1), transparent 60%),
    var(--card);
}

.v2 #prefs-card .al-r.open {
  grid-column: 1 / -1;
}

.v2 #prefs-card .al-rh {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 14px 16px;
}

.v2 #prefs-card .al-rt {
  flex: 1;
  min-width: 0;
}

.v2 #prefs-card .al-rt b {
  font-size: 14px;
  font-weight: 500;
}

.v2 #prefs-card .al-rs {
  display: none;
}

.v2 #prefs-card .al-r.open .al-rs {
  display: block;
  color: var(--faint);
  font-size: 12px;
}

.v2 #prefs-card .al-rm {
  color: var(--muted);
  font-size: 12px;
}

.v2 #prefs-card .al-rb {
  border-top: 1px solid var(--line);
}

/* ---------- autopilot: a status line, numbers without boxes, trades as a tape ---------- */

.v2 #tab-autopilot #ap-hero {
  padding: 14px 18px;
  background: var(--card);
}

.v2 #ap-mode .ap-mode-t {
  font-size: 24px;
}

.v2 #ap-live {
  margin-top: 8px;
}

.v2 #ap-live :is(.ap-ok, .ok) {
  display: none;
}

.v2 #ap-kpis.ap-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  margin: 22px 0 6px;
  padding: 0 4px;
  border: 0;
  background: none;
}

.v2 #ap-kpis .ps {
  display: grid;
  gap: 2px;
  padding: 0;
  border: 0;
  background: none;
}

.v2 #ap-kpis .ps::after {
  display: none;
}

.v2 #ap-kpis .ps .ps-l {
  color: var(--faint);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.v2 #ap-kpis .ps .ps-v {
  font-size: 32px;
  line-height: 1.1;
}

.v2 #ap-kpis .ps .ps-s {
  display: none;
}

/* closed trades: one thin line each — pair, exit, time, result */
.v2 .ap2-main #ap-closed-t #ap-closed {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}

.v2 .ap2-main #ap-closed > tr:not(.ap-det) {
  grid-template-columns: minmax(0, 1.3fr) 84px 92px minmax(150px, 1fr) 84px 104px 36px;
  align-items: center;
  border: 0;
  border-top: 1px solid var(--sep);
  border-radius: 0;
  background: none;
}

.v2 .ap2-main #ap-closed > tr:first-child {
  border-top: 0;
}

.v2 .ap2-main #ap-closed > tr:not(.ap-det):hover {
  background: var(--hover);
}

.v2 .ap2-main #ap-closed > tr > td {
  order: 0 !important;
  grid-column: auto !important;
  padding: 11px 12px;
  border: 0;
}

.v2 .ap2-main #ap-closed > tr > td::before,
.v2 .ap2-main #ap-closed > tr > td .sub:not(.ap-warn) {
  display: none !important;
}

.v2 .ap2-main #ap-closed > tr > td.ap-c-pos {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px 11px 16px;
}

.v2 .ap2-main #ap-closed .pf-pos {
  display: flex;
  align-items: center;
  gap: 8px;
}

.v2 .ap2-main #ap-closed .pf-meta .b:not(.ap-b-live) {
  display: none;
}

.v2 .ap2-main #ap-closed > tr > td:nth-child(6) {
  position: static;
  justify-items: end;
  padding: 11px 12px;
}

.v2 .ap2-main #ap-closed > tr > td:nth-child(6) .big {
  font-size: 20px;
}

.v2 .ap2-main #ap-closed > tr > td .big {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--fg2);
}

.v2 .ap2-main #ap-closed > tr > td.ap-c-act {
  position: static;
  padding: 0 8px 0 0;
}

.v2 .ap2-main #ap-closed > tr.ap-det {
  border: 0;
  border-top: 1px solid var(--sep);
  border-radius: 0;
}

/* open trades: the essentials only */
.v2 #ap-open-t tr > td .sub {
  display: none;
}

.v2 #ap-open-t tr > td.ap-c-rg .sub,
.v2 #ap-open-t tr > td:nth-child(6) .sub {
  display: block;
}

/* the side column: no explanations, quiet lists */
.v2 #ap-sig > p,
.v2 #ap-sig > .muted {
  display: none;
}

.v2 .ap2-side .ua-card {
  padding: 14px 16px;
}

.v2 .ap2-side .ap-j,
.v2 .ap2-side .ap-sigl > * {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .v2 .ap2-main #ap-closed > tr:not(.ap-det) {
    grid-template-columns: minmax(0, 1fr) auto 36px;
  }

  .v2 .ap2-main #ap-closed > tr > td:is(:nth-child(2), :nth-child(3), :nth-child(4), :nth-child(5)) {
    display: none;
  }

  .v2 #ap-kpis .ps .ps-v {
    font-size: 24px;
  }
}

.v2 .ap2-main #ap-closed .ap-st {
  white-space: nowrap;
}

.v2 .ap2-side .ap-j,
.v2 .ap2-side .ap-sigl > * {
  display: -webkit-box;
  box-sizing: content-box;
  max-height: 2.9em;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  overflow: hidden;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* ==========================================================================
 * Pass 3 (owner, 2026-10-24): smooth (no flashes, no jumps), nothing left of the old look, stylish minimalism.
 * ========================================================================== */

/* the orbital light stays behind the content */
.v2 .head {
  z-index: 0;
}

.v2 .panel {
  position: relative;
  z-index: 1;
}

/* no flashes on live numbers, no hover jumps */
.v2 .pc.bump .pc-v,
.v2 .pr.bump .pr-5 b,
.v2 #pool-table #rows > tr.bump .c-fees .big,
.v2 .tick {
  animation: none !important;
}

.v2 .pc:hover,
.v2 #pf-rows > tr:not(.pf-det):hover {
  transform: none;
}

.v2 .pc,
.v2 .pr {
  will-change: transform;
}

.v2 :is(.pc-v, .pr-5 b, .kp-v, .ps-v, .d-metrics .v) {
  font-variant-numeric: tabular-nums;
}

/* the empty portfolio keeps its «+ Кошелёк» (the add form lives there) */
.v2 .pf-none .pf2 {
  grid-template-columns: minmax(0, 1fr);
}

.v2 .pf-none .pf2-side {
  display: block;
  position: static;
  max-height: none;
  padding: 0;
  border: 0;
  background: none;
}

.v2 .pf-none .pf2-side :is(#pf-who, #pf-wallets),
.v2 .pf-none .pf2-sh b {
  display: none;
}

.v2 .pf-none .pf2-sh {
  justify-content: flex-end;
}

.v2 .pf-none .pf-hero .btn {
  display: none;
}

/* autopilot: the side column scrolls with the page, controls on top */
.v2 .ap2-side {
  position: static;
  max-height: none;
  overflow: visible;
}

.v2 .ap2-side .ap-ctl-row + .ap-ctl-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--sep);
}

.v2 .ap2-side .ap-ctl-l {
  color: var(--muted);
  font-size: 12px;
}

.v2 .ap2-side details > summary {
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- filters sheet: quiet chips, short labels ---------- */

.v2 #filters .seg.wrap button {
  height: 28px;
  padding: 0 10px;
  border-color: var(--line);
  background: none;
  color: var(--faint);
  font-size: 12.5px;
}

.v2 #filters .seg.wrap button.on {
  border-color: var(--line2);
  background: var(--card3);
  color: var(--fg);
}

.v2 #filters .range > span:first-child {
  color: var(--faint);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.v2 #filters .range input {
  height: 36px;
  font-size: 13.5px;
}

.v2 #filters {
  gap: 18px;
}

/* ---------- API: numbers in a line, quiet cards, no explanations ---------- */

.v2 #tab-api > p.rule,
.v2 .as-note,
.v2 .as-foot,
.v2 .as-why {
  display: none !important;
}

.v2 .as-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin: 8px 0 22px;
  border: 0;
  background: none;
}

.v2 .as-kpi {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
}

.v2 .as-kpi span {
  color: var(--faint);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.v2 .as-kpi b {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.v2 .as-kpi em {
  display: none;
}

.v2 .as-box {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}

.v2 .as-box h4,
.v2 .as-tl-h h4 {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.v2 .as-none {
  color: var(--faint);
  font-size: 12.5px;
}

.v2 #api-new .pf-field,
.v2 #api-new label {
  color: var(--faint);
  font-size: 11.5px;
}

/* ---------- alerts: history and channels ---------- */

.v2 .al-chc {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}

.v2 .al-chh h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
}

.v2 .al-chc > p {
  color: var(--muted);
  font-size: 13px;
}

.v2 #al-ch {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 10px;
}

.v2 #al-ch[hidden] {
  display: none;
}

.v2 .pf-hero b {
  font-size: 22px;
}

/* ---------- popovers: lighter headings ---------- */

.v2 .pop h3 {
  font-size: 20px;
}

.v2 .pop p,
.v2 .pop dd {
  font-size: 13px;
  line-height: 1.55;
}

/* ==========================================================================
 * LP window (lp.js): a thin header, the chart, a borderless form column with the action pinned at the bottom
 * ========================================================================== */

.v2 .lpx {
  background: var(--bg);
}

.v2 .lpx-top {
  gap: 22px;
  min-height: 60px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--side-bg);
}

.v2 .lpx-home,
.v2 .lpx-x {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: none;
  color: var(--fg2);
}

.v2 .lpx-pool {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font-size: 15px;
  font-weight: 600;
}

.v2 .lpx-pool:hover {
  border-color: var(--line2);
}

.v2 .lpx-pxv {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.v2 .lpx-chg {
  font-size: 12px;
}

.v2 .lpx-stats {
  gap: 24px 26px;
}

.v2 .lpx-stats span {
  color: var(--muted);
  font-size: 11.5px;
}

.v2 .lpx-stats b {
  color: var(--fg);
  font-weight: 600;
}

.v2 .lpx-stats > .lpx-cards {
  padding-left: 0;
  border-left: 0;
}

.v2 .lpx-stats .lpx-cd {
  background: var(--card);
  border-color: var(--line);
}

.v2 .lpx-stats .lpx-cd b {
  color: var(--fg);
  font-weight: 700;
}

.v2 .lpx-stats .lpx-cd.z b {
  color: var(--muted);
  font-weight: 500;
}

.v2 .lpx-live {
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}

.v2 .lpx-links :is(a, button) {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
}

.v2 .lpx-main {
  grid-template-columns: minmax(0, 1fr) 400px;
}

.v2 .lpx-left {
  border-right: 1px solid var(--line);
}

.v2 .lpx-tools {
  gap: 6px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--sep);
  background: none;
}

.v2 .lpx-tools .seg {
  border-color: var(--line);
  background: var(--card);
}

.v2 .lpx-tools .seg button {
  height: 26px;
  padding: 0 10px;
}

.v2 .lpx-tools .btn.small {
  height: 30px;
  border-color: transparent;
  background: none;
  color: var(--muted);
}

.v2 .lpx-tools .btn.small:hover {
  background: var(--fill2);
  color: var(--fg);
}

.v2 .lpx-tools .btn.small.on,
.v2 .lpx-tools .btn.small[aria-pressed="true"] {
  border-color: rgba(255, 106, 61, 0.45);
  background: var(--acc-tint);
  color: var(--acc);
}

.v2 .lpx-hist {
  color: var(--faint);
}

.v2 .lpx-chart,
.v2 .lpx-crow {
  background: var(--bg);
}

.v2 .lpx-legend {
  color: var(--faint);
}

.v2 .lpx-split {
  background: var(--line);
}

.v2 .lpx-pos {
  background: var(--side-bg);
}

.v2 .lpx-phd {
  padding: 12px 16px;
  border-bottom: 1px solid var(--sep);
}

.v2 .lpx-phd h3,
.v2 .lpx-phd b:first-child {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}

.v2 .lpx-pempty,
.v2 .lpx-empty {
  color: var(--faint);
  font-size: 13px;
}

/* the form column: sections divided by hairlines instead of boxed cards */
.v2 .lpx-side {
  gap: 0;
  padding: 0 0 0;
  background: var(--side-bg);
}

.v2 .lpx-side > .lpx-card {
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid var(--sep);
  border-radius: 0;
  background: none;
}

.v2 .lpx-h {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.v2 .lpx-h .muted,
.v2 .lpx-h .small {
  text-transform: none;
  letter-spacing: 0;
}

.v2 .lpx-presets button {
  height: 28px;
  min-width: 34px;
  border-radius: 999px;
}

.v2 .lpx-edges {
  gap: 8px;
}

.v2 .lpx-edge {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.v2 .lpx-el {
  color: var(--faint);
  font-size: 11px;
}

.v2 .lpx-ein input {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.v2 .lpx-step {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: none;
  color: var(--fg2);
}

.v2 .lpx-runit,
.v2 .lpx-binfo,
.v2 .lpx-sliphint {
  color: var(--faint);
  font-size: 11.5px;
}

.v2 .lpx-usd {
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.v2 .lpx-usd:focus-within {
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-tint);
}

.v2 .lpx-usd input,
.v2 .lpx-usd input:focus {
  border: 0;
  background: none;
  box-shadow: none;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.v2 .lpx-tok {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.v2 .lpx-tok input,
.v2 .lpx-tok input:focus {
  border: 0;
  background: none;
  box-shadow: none;
  font-size: 17px;
  font-weight: 600;
  text-align: right;
}

.v2 .lpx-tsym {
  font-weight: 600;
}

.v2 .lpx-tbal {
  color: var(--faint);
  font-size: 11.5px;
}

.v2 .lpx-sliplbl {
  color: var(--muted);
  font-size: 12px;
}

.v2 .lpx-slip .seg,
.v2 .lpx-side1 .seg {
  width: 100%;
}

.v2 .lpx-slip .seg button,
.v2 .lpx-side1 .seg button {
  flex: 1;
}

/* the action stays in reach at the bottom of the column */
.v2 .lpx-side > .lpx-go {
  position: sticky;
  z-index: 3;
  bottom: 0;
  flex: none;
  height: 48px;
  margin: auto 0 0;
  border-radius: 0;
  font-size: 15px;
}

.v2 .lpx-side > .lpx-go:disabled,
.v2 .lpx-side > .lpx-go.off {
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--side-bg);
  color: var(--faint);
}

.v2 .lpx-steps {
  margin: 0;
  padding: 12px 18px;
  color: var(--muted);
  font-size: 12.5px;
}

/* pool picker */
.v2 .lpx-picker {
  border: 1px solid var(--line2);
  border-radius: 14px;
  background: var(--pop);
  box-shadow: var(--shadow);
  animation: v2-pop 0.2s var(--spring);
}

.v2 .lpx-picker .search {
  flex: none;
  height: 40px;
}

.v2 .lpx-pcreate {
  height: 38px;
  border: 1px dashed var(--line2);
  border-radius: 10px;
  background: none;
  color: var(--acc);
}

.v2 .lpx-ph {
  color: var(--faint);
}

.v2 .lpx-pi {
  border-radius: 9px;
}

.v2 .lpx-pi:hover {
  background: var(--fill2);
}

.v2 .lpx-list > :last-child:not(.lpx-pi) {
  color: var(--faint);
  font-size: 11px;
}

/* create a pool */
.v2 .lpx-cpbox,
.v2 .lpx-cp {
  border-color: var(--line);
  border-radius: var(--r);
  background: var(--card);
}

.v2 .lpx-cph {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}

.v2 .lpx-cpchip {
  border-color: var(--line);
  border-radius: 999px;
  background: none;
}

.v2 .lpx-cpchip.on {
  border-color: var(--line2);
  background: var(--card3);
  color: var(--fg);
}

@media (max-width: 767px) {
  .v2 .lpx-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .v2 .lpx-pxv {
    font-size: 20px;
  }
}
.v2 .lpx-pnote {
  display: none;
}

.v2 .lpx-pempty:has(#lpx-pconnect) > span.muted {
  display: none;
}

.v2 .lpx-pempty:has(#lpx-pconnect)::before {
  content: "Кошелёк не подключён";
  color: var(--muted);
  font-size: 13px;
}

.v2 .seg.wrap button.on {
  border-color: var(--line2);
  background: var(--card3);
  color: var(--fg);
}
.v2 .ap2-side :is(.ap-enter, .ap-deny-form) {
  flex-wrap: wrap;
}

.v2 .ap2-side :is(.ap-enter, .ap-deny-form) input {
  flex: 1 1 140px;
  width: auto;
  min-width: 0;
}

.v2 .ap2-side .ap-deny-r {
  display: grid;
  gap: 8px;
  min-width: 0;
}

@media (max-width: 767px) {
  .v2 .crumbs {
    display: none;
  }
}
.v2 .ap2-side .ap-ctl-row {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.v2 #tab-autopilot #ap-kpis.ap-kpis {
  margin-inline: 0;
  padding-inline: 2px;
}

.v2 #ap-kpis .ps,
.v2 #ap-kpis .ps .ps-l {
  overflow: visible;
  text-indent: 0;
}

.v2 #filters .seg.wrap {
  display: flex;
  flex-wrap: wrap;
}

.v2 #filters .seg.wrap button {
  flex: none;
  width: auto;
}

/* the liquidity chart: bigger, and a quiet note while the pool's ticks are still being read */
.v2 .pr-liq .lqs {
  height: 30px;
}

.v2 .pc-liq .lqs {
  height: 40px;
}

.v2 :is(.pc-liq, .pr-liq) .lq.wait {
  position: relative;
}

.v2 :is(.pc-liq, .pr-liq) .lq.wait::after {
  content: "читаю ликвидность…";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--faint);
  font-size: 11px;
}

.v2 .pc-30 {
  justify-content: flex-start;
  gap: 14px;
}

.v2 .pc-30 .trend {
  margin-left: auto;
}

.v2 .pr :is(.pr-5, .pr-30, .pr-vol) {
  justify-items: start;
  text-align: left;
}

.v2 .pr .pr-5 b {
  margin: 0 0 0 -4px;
  justify-self: start;
}

/* display figures and titles: Onest, tight (the serif is gone at the owner's request) */
.v2 :is(.lt, .pc-v, .pr-5 b, .kp.hero .kp-v, .ps-v, .as-kpi b, .lpx-pxv, .lpx-usd input, .d-metrics .m:nth-child(4) .v, .d-head h2, .pf2-sh b, .sheet-h b) {
  letter-spacing: -0.03em;
}
/* ---------- an opened alert rule: fields stacked in a grid, quiet chips, no notes ---------- */

.v2 #prefs-card .al-rb {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px 28px;
  padding: 18px 18px 20px;
  background: none;
}

.v2 #prefs-card .al-rb > :not(.al-f),
.v2 #prefs-card .al-rb .note,
.v2 #prefs-card .al-rb > p {
  grid-column: 1 / -1;
}

.v2 #prefs-card .al-rb .note,
.v2 #prefs-card .al-rb > p.muted,
.v2 #prefs-card .al-est {
  display: none;
}

.v2 #prefs-card .al-f {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

/* long chip lists (chains, venues, risks) take the whole row */
.v2 #prefs-card .al-f:has(.chip-tgl:nth-child(4)),
.v2 #prefs-card .al-f:has(.al-in:nth-child(3)) {
  grid-column: 1 / -1;
}

.v2 #prefs-card .al-fl {
  color: var(--faint);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.v2 #prefs-card .al-fc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.v2 #prefs-card .al-in {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card2);
  color: var(--faint);
  font-size: 12px;
  transition: border-color 0.15s;
}

.v2 #prefs-card .al-in:focus-within {
  border-color: var(--acc);
}

.v2 #prefs-card .al-in input,
.v2 #prefs-card .al-in input:focus {
  width: 72px;
  min-width: 0;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--fg);
  font-size: 13.5px;
  font-weight: 500;
}

.v2 #prefs-card .al-in.al-list input {
  width: 150px;
}

.v2 #prefs-card .al-sel {
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: var(--card2);
  color: var(--fg);
  font-size: 13px;
}

/* checkbox chips: on = solid and bright, off = outline and faint */
.v2 .chip-tgl {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--faint);
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.v2 .chip-tgl input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.v2 .chip-tgl span::before {
  content: none !important;
  display: none !important;
}

.v2 .chip-tgl:hover {
  border-color: var(--line2);
  color: var(--fg2);
}

.v2 .chip-tgl:has(input:checked) {
  border-color: var(--line2);
  background: var(--card3);
  color: var(--fg);
}

.v2 .chip-tgl:has(input:focus-visible) {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

.v2 #prefs-card .al-r.open > .al-rh {
  border-bottom: 1px solid var(--line);
}

.v2 #prefs-card .al-r.open {
  border-color: var(--line2);
}
.v2 #prefs-card .al-r:not(.open) > .al-rb {
  display: none;
}

.v2 #prefs-card .al-nets .al-note,
.v2 #prefs-card > .al-foot {
  display: none;
}
/* the add-wallet form opens below its button, over the page (the wallets column must not clip it) */
.v2 .pf2-side {
  overflow: visible;
}

.v2 .pf2-side .pf-connect {
  position: relative;
}

.v2 .pf2-side #pf-menu {
  position: absolute;
  z-index: 70;
  top: calc(100% + 8px);
  left: auto;
  right: auto;
  inset-inline-start: 0;
  width: min(380px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid var(--line2);
  border-radius: 14px;
  background: var(--pop);
  box-shadow: var(--shadow);
  animation: v2-pop 0.2s var(--spring);
}

.v2 .pf2-side .pf2-sh .pf-connect #pf-menu {
  right: 0;
  inset-inline-start: auto;
}

.v2 #pf-menu .pa-form {
  display: grid;
  gap: 8px;
}

.v2 #pf-menu .pa-form input:not([type="checkbox"]) {
  width: 100%;
  height: 38px;
}

.v2 #pf-menu .pa-btns {
  display: flex;
  gap: 8px;
}

.v2 #pf-menu .pa-sep {
  color: var(--faint);
  font-size: 11.5px;
}

/* autopilot settings: in the wide column, fields in a grid of cards */
.v2 .ap2-main #ap-set-box {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}

.v2 .ap2-main #ap-set-box > summary {
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.v2 .ap2-main #ap-set {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  padding: 0 18px 18px;
}

.v2 .ap2-main #ap-set fieldset {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card2);
}

.v2 .ap2-main #ap-set legend {
  padding: 0 4px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.v2 .ap2-main #ap-set label {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.v2 .ap2-main #ap-set :is(input, select) {
  width: 100%;
  height: 34px;
}

.v2 .ap2-main #ap-set > :not(fieldset) {
  grid-column: 1 / -1;
}
.v2 .pf2-side .pf2-sh .pf-connect {
  position: static;
}

.v2 .pf2-side .pf2-sh .pf-connect #pf-menu {
  top: 62px;
  left: 0;
  right: auto;
  inset-inline-start: 0;
  width: min(380px, calc(100vw - 32px));
}

.v2 .pf-none .pf2-side {
  position: relative;
}
.v2 .pf2-side {
  z-index: 6;
}
.v2 .pf2-side #pf-menu,
.v2 .pf-wmenu {
  background: var(--elev) !important;
  opacity: 1;
}

/* ==========================================================================
 * Round 5 (owner, 2026-10-24): an even list with a header, folding filters, a clean autopilot side, short empties
 * ========================================================================== */

/* list: every row shares fixed column widths, so the columns line up */
.v2 .board[data-view="list"] .pr,
.v2 .lh {
  grid-template-columns: 30px 230px 96px 84px 92px minmax(170px, 1fr) 88px 92px 84px 76px;
  column-gap: 14px;
}

.v2 .board[data-view="list"] {
  overflow: visible;
  border-radius: 0 0 var(--r) var(--r);
  border-top: 0;
}

.v2 .board[data-view="list"] .pr:last-child {
  border-radius: 0 0 var(--r) var(--r);
}

.v2 .pr .pc-t {
  overflow: hidden;
}

.v2 .pr .pc-tags {
  flex-wrap: nowrap;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}

.v2 .pr .pr-c small,
.v2 .pr .pr-5 small,
.v2 .pr .pr-30 small,
.v2 .pr .pr-vol small {
  display: none;
}

.v2 .pr .pr-5 b {
  margin: 0;
}

.v2 .pr .pr-liq {
  min-width: 0;
}

.v2 .pr :is(.pr-tvl, .pr-apr) {
  justify-items: end;
  text-align: right;
}

/* the header row */
.v2 .lh {
  position: sticky;
  z-index: 7;
  top: var(--bar-h);
  display: grid;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r) var(--r) 0 0;
  background: color-mix(in srgb, var(--card) 96%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.v2 .lh[hidden] {
  display: none;
}

.v2 .lh > * {
  min-width: 0;
  overflow: hidden;
  color: var(--faint);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.v2 .lh button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: color 0.15s;
}

.v2 .lh button:hover {
  color: var(--fg);
}

.v2 .lh button.on {
  color: var(--acc);
}

.v2 .lh button i {
  margin-left: 3px;
  font-style: normal;
}

.v2 .lh > :nth-child(7) {
  text-align: center;
}

.v2 .lh > :nth-child(8),
.v2 .lh > :nth-child(9) {
  text-align: right;
}

/* in list view the header does the sorting; the chips keep only what has no column */
.v2.v2-list .bh-sort button:not([data-sort="swaps30m"], [data-sort="ageMs"]) {
  display: none;
}

@container plist (max-width: 1060px) {
  .v2 .board[data-view="list"] .pr,
  .v2 .lh {
    grid-template-columns: 30px 200px 92px 80px 88px minmax(120px, 1fr) 84px 88px 64px;
  }

  .v2 .lh > :nth-child(9) {
    display: none;
  }
}

@container plist (max-width: 760px) {
  .v2 .lh {
    display: none;
  }

  .v2 .board[data-view="list"] .pr {
    grid-template-columns: 22px minmax(0, 1fr) auto auto;
  }
}

/* pager: just the pages */
.v2 #tab-pools .pager #range {
  display: none !important;
}

/* empties: one short line */
.v2 #pf-empty {
  font-size: 0;
}

.v2 #pf-empty :is(b, .wait, .pf-hero, .btn) {
  font-size: 14px;
}

.v2 #pf-empty b {
  color: var(--muted);
  font-weight: 500;
}

/* ---------- filters: folding groups ---------- */

.v2 #filters {
  gap: 0;
  padding-bottom: 12px;
}

.v2 #filters .fg {
  display: block;
  border-bottom: 1px solid var(--sep);
}

.v2 #filters .fg-h {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.v2 #filters .fg-t {
  flex: none;
}

.v2 #filters .fg-s {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 400;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2 #filters .fg.set .fg-s {
  color: var(--acc);
}

.v2 #filters .fg-c {
  flex: none;
  width: 7px;
  height: 7px;
  margin: 0 4px 3px 2px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}

.v2 #filters .fg.open .fg-c {
  transform: rotate(225deg) translate(-2px, -2px);
}

.v2 #filters .fg-b {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s var(--ease);
}

.v2 #filters .fg.open .fg-b {
  grid-template-rows: 1fr;
}

.v2 #filters .fg-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

.v2 #filters .fg.open .fg-in {
  padding: 2px 0 16px;
}

.v2 #filters .fg-in > :is(.seg, input:only-of-type) {
  grid-column: 1 / -1;
}

.v2 #filters .fg-in > input:only-of-type {
  grid-column: 1 / -1;
}

.v2 #filters .hint {
  margin-top: 14px;
}

/* ---------- autopilot side: «Сейчас в пулах» as a compact list ---------- */

.v2 #ap-sig h3 .ap-n {
  display: none;
}

.v2 #ap-sig .ap-mini {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.v2 #ap-sig .ap-mini td {
  padding: 8px 0;
  border-bottom: 1px solid var(--sep);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.v2 #ap-sig .ap-mini td:first-child {
  width: 46%;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
}

.v2 #ap-sig .ap-mini td:first-child b {
  font-weight: 500;
}

.v2 #ap-sig .ap-mini td:nth-child(3) {
  display: none;
}

.v2 #ap-sig .ap-mini td:last-child {
  width: 26px;
  font-size: 0;
}

.v2 #ap-sig .ap-mini td:last-child .ap-st {
  display: inline-block;
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 3px var(--up-bg);
}

.v2 #ap-sig .ap-mini td:last-child .muted {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line2);
}

.v2 #ap-sig .ap-mini td .muted.small {
  font-size: 11px;
}

.v2 #ap-sig .ap-mini tr:not(:first-child) td:not(:first-child) .muted.small {
  display: none;
}

.v2 .ap2-side .ap-jlist,
.v2 .ap2-side .ap-sigl {
  max-height: none;
  overflow: visible;
}

.v2 .ap2-side .ap-sigl > :nth-child(n + 7),
.v2 .ap2-side #ap-jlist > :nth-child(n + 9) {
  display: none;
}

.v2 #ap-sig .ap-h {
  margin-top: 18px;
}

/* ---------- portfolio: the scope switch fits ---------- */

.v2 .pf2-side #pf-who button {
  flex: 1 1 auto;
  padding: 0 8px;
  overflow: visible;
}

/* ---------- the orbital light: fixed to the viewport, soft on every edge ---------- */

.v2 .hero-fx {
  position: fixed;
  z-index: -1;
  top: -80px;
  right: 0;
  left: auto;
  width: min(1200px, 78vw);
  height: 360px;
  -webkit-mask-image: radial-gradient(70% 80% at 75% 40%, #000 25%, transparent 72%);
  mask-image: radial-gradient(70% 80% at 75% 40%, #000 25%, transparent 72%);
}

/* ---------- LP window: one surface, soft section edges ---------- */

.v2 .lpx-top {
  background: var(--bg);
  border-bottom-color: var(--sep);
}

.v2 .lpx-left {
  border-right-color: var(--sep);
}

.v2 .lpx-side {
  background: var(--bg);
}

.v2 .lpx-pos {
  border-top: 1px solid var(--sep);
  background: var(--bg);
}

.v2 .lpx-split {
  height: 6px;
  background: none;
  position: relative;
}

.v2 .lpx-split::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 2px;
  width: 36px;
  height: 2px;
  margin-left: -18px;
  border-radius: 2px;
  background: var(--line2);
}

.v2 .lpx-stats > div {
  padding-left: 14px;
  border-left: 1px solid var(--sep);
}

.v2 .lpx-stats > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.v2 .lpx-tools .seg {
  border-color: var(--sep);
  background: none;
}

.v2 .lpx-tools .seg button.on {
  background: var(--card3);
  color: var(--fg);
}

.v2 .lpx-side > .lpx-card {
  border-bottom-color: var(--sep);
}

.v2 .lpx-side > .lpx-go {
  margin: auto 18px 18px;
  border-radius: 12px;
}

.v2 .lpx-side > .lpx-go:disabled,
.v2 .lpx-side > .lpx-go.off {
  border: 1px solid var(--line);
  background: var(--card);
}

.v2 .lpx-phd {
  border-bottom-color: var(--sep);
}

.v2 .lpx-phd .seg {
  border-color: var(--sep);
  background: none;
}
.v2 .pf-none .pf2-main .pf-tools,
.v2 .pf-none .pf2-main > .pfh {
  display: none !important;
}

/* ==========================================================================
 * Round 6 (owner, 2026-10-24): chain marks instead of ranks, no trend/APR, pool card actions on top,
 * LP side panels, trades, closed positions and the calendar in the new style
 * ========================================================================== */

.v2 .board[data-view="list"] .pr,
.v2 .lh {
  grid-template-columns: 26px 240px 100px 88px 96px minmax(180px, 1fr) 96px 76px;
}

@container plist (max-width: 1060px) {
  .v2 .board[data-view="list"] .pr,
  .v2 .lh {
    grid-template-columns: 26px 200px 92px 80px 88px minmax(120px, 1fr) 88px 64px;
  }

  .v2 .lh > :nth-child(9) {
    display: revert;
  }
}

.v2 .lh > :nth-child(7) {
  text-align: right;
}

.v2 .lh > :nth-child(8),
.v2 .lh > :nth-child(9) {
  text-align: left;
}

.v2 .pr :is(.pr-5, .pr-30, .pr-vol) b {
  margin: 0;
}

/* the chain mark */
.v2 .cm {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--card3);
  box-shadow: inset 0 0 0 1px var(--line);
}

.v2 .cm svg {
  width: 16px;
  height: 16px;
}

.v2 .cm .cm-l {
  color: var(--fg2);
  font-size: 11px;
  font-weight: 700;
}

.v2 .pc-h .cm {
  width: 26px;
  height: 26px;
}

.v2 .pc-h .cm svg {
  width: 18px;
  height: 18px;
}

.v2 .pc-30 {
  gap: 16px;
}

.v2 .pc-m {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------- pool card: actions right under the title ---------- */

.v2 #drawer-body > .d-links {
  position: static;
  order: 1;
  margin: 14px 0 6px;
  padding: 0;
  border: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.v2 #drawer-body > .d-head {
  order: 0;
}

/* ---------- LP window: side panels, trades, all pools ---------- */

.v2 .lpx-fx {
  background: var(--bg);
  border-left: 1px solid var(--sep);
}

.v2 .lpx-fxt {
  border-left-color: var(--sep);
  background: var(--bg);
  color: var(--muted);
}

.v2 .lpx-fxh {
  padding: 12px 14px 6px;
}

.v2 .lpx-fxtt {
  font-size: 14px;
  font-weight: 600;
}

.v2 .lpx-fxf {
  gap: 6px;
  padding: 0 14px 10px;
}

.v2 .lpx-fxseg {
  border-color: var(--sep);
  background: none;
}

.v2 .lpx-fxc {
  border-color: var(--sep);
  color: var(--faint);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.v2 .lpx-fxr {
  height: 28px;
  border-bottom: 1px solid color-mix(in srgb, var(--sep) 50%, transparent);
  font-size: 12.5px;
}

.v2 .lpx-fxr.buy .c-u {
  color: var(--up);
  font-weight: 600;
}

.v2 .lpx-fxr.sell .c-u {
  color: var(--down);
  font-weight: 600;
}

.v2 .lpx-fxr:hover {
  background: var(--hover);
}

.v2 .lpx-fxr.new {
  animation: none !important;
}

.v2 .lpx-fxcnt {
  background: var(--fill2);
  color: var(--muted);
}

.v2 .lpx-fxme {
  background: var(--acc);
  color: #fff;
}

/* the token's pools beside the chart */
.v2 .lpx-apools {
  border-left: 1px solid var(--sep);
  background: var(--bg);
}

.v2 .lpx-aptab th {
  border-color: var(--sep);
  background: var(--bg);
  color: var(--faint);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.v2 .lpx-aptab td {
  border-color: var(--sep);
}

.v2 .lpx-aptab tbody tr:nth-child(even) td {
  background: none;
}

.v2 .lpx-aptab tbody tr:hover td {
  background: var(--hover);
}

.v2 #lpx-liqw .seg,
.v2 #lpx-liq {
  border-color: var(--sep);
  background: none;
}

/* ---------- closed positions and the calendar ---------- */

.v2 .pk-note:not(:has(.warn)) {
  display: none;
}

.v2 #pf-closed,
.v2 #pf-peek {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}

.v2 .pk-head {
  gap: 10px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--sep);
}

.v2 .pk-title b {
  font-size: 17px;
  font-weight: 600;
}

.v2 .cl-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 36px;
  margin: 16px 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--faint);
  font-size: 12px;
}

.v2 .cl-kpis b {
  display: block;
  margin-top: 2px;
  color: var(--fg);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.v2 #pf-closed .table-card {
  border: 0;
  background: none;
}

.v2 #pf-closed .grid th {
  background: var(--card);
  color: var(--faint);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.v2 #pf-closed .grid td {
  padding-top: 12px;
  padding-bottom: 12px;
}

.v2 #pf-closed .grid .b {
  border: 0;
  background: none;
  color: var(--faint);
  padding: 0;
}

.v2 #pf-closed .grid .act {
  border-color: var(--sep);
  background: none;
}

.v2 #pf-closed .grid .btn.small {
  height: 28px;
  border-color: var(--sep);
  color: var(--muted);
}

.v2 #pf-closed .grid .btn.small:hover {
  color: var(--fg);
}

.v2 .cl-bar .seg,
.v2 .cl-tabs {
  border-color: var(--sep);
  background: none;
}

.v2 .cl-mt {
  font-size: 17px;
  font-weight: 600;
}

.v2 .cl-grid {
  gap: 4px;
}

.v2 .cl-wd span {
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.v2 .cl-d {
  min-height: 72px;
  border-radius: 8px;
  background: var(--card2);
  box-shadow: none;
  transition: background 0.15s, box-shadow 0.15s;
}

.v2 .cl-d.up,
.v2 .cl-d.down {
  background: var(--card2);
  box-shadow: inset 0 -2px 0 var(--up);
}

.v2 .cl-d.down {
  box-shadow: inset 0 -2px 0 var(--down);
}

.v2 .cl-d.flat,
.v2 .cl-d.nopnl,
.v2 .cl-d.future,
.v2 .cl-d.none {
  background: none;
  box-shadow: inset 0 0 0 1px var(--sep);
}

.v2 .cl-d.future .cl-dv,
.v2 .cl-d.none .cl-dv,
.v2 .cl-d.flat .cl-dv {
  color: var(--faint);
  font-weight: 400;
}

.v2 button.cl-d:hover {
  filter: none;
  background: var(--card3);
}

.v2 .cl-dn {
  color: var(--faint);
  font-size: 11px;
  font-weight: 500;
}

.v2 .cl-dv {
  font-size: 15px;
  font-weight: 600;
}

.v2 .cl-dc {
  color: var(--faint) !important;
  font-size: 11px;
}

.v2 .cl-d.today {
  outline: 1px solid var(--acc);
  outline-offset: -1px;
}

.v2 .cl-d.on {
  outline: 1px solid var(--fg);
  outline-offset: -1px;
}

.v2 .cl-sum,
.v2 .cl-days > :is(.cl-kpis, .cl-tot) {
  color: var(--faint);
}

.v2 .cl-arr {
  border: 1px solid var(--sep);
  border-radius: 8px;
  background: none;
}
.v2 .board[data-view="list"] .pr,
.v2 .lh {
  grid-template-columns: 32px 236px 100px 88px 96px minmax(180px, 1fr) 96px 76px;
}

.v2 .pr .cm {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.v2 .pr .cm svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
 * Round 7 (owner, 2026-10-24): Geist for every figure, TVL after volume, clear chain labels, brighter numbers,
 * no page-size picker, a much simpler pool card
 * ========================================================================== */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/v2/fonts/geist-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* lp.js draws its chart labels (Мин/Макс tags, TVL в ренже, marks, ruler) in "Inter" first: in the new design that name is
 * Geist's Latin subset, so the canvas digits are Geist too; Cyrillic falls back as before (audit LPX-07). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/v2/fonts/geist-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.v2 {
  --num: "Geist", "Onest", system-ui, sans-serif;
}

/* every figure on the site */
.v2 :is(.pc-v, .pr-c, .pr-5 b, .pc-30 b, .pc-m dd, .kp-v, .ps-v, .ps-s, .as-kpi b, .cl-kpis b, .cl-dv, .cl-mtot b,
  .d-metrics .v, .lpx-pxv, .lpx-chg, .lpx-stats b, .lpx-fxr, .lpx-usd input, .lpx-tok input, .lpx-ein input, .lpx-ep,
  .lpx-aptab td, .rv-row, .grid td, .pn, .count, .trend, .ap-st, .wp-v, .ap-mini td, .ap-pg, .lt-s, .news-n) {
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.v2 :is(.pc-v, .pr-5 b, .d-metrics .m:nth-child(4) .v, .kp.hero .kp-v, .ps-v, .lpx-pxv) {
  font-weight: 600;
  letter-spacing: -0.035em;
}

/* list: chain · pool · 5 min · 30 min · volume · TVL · liquidity */
.v2 .board[data-view="list"] .pr,
.v2 .lh {
  grid-template-columns: 58px minmax(180px, 1.1fr) 104px 92px 100px 100px minmax(200px, 1.6fr) 76px;
}

@container plist (max-width: 1060px) {
  .v2 .board[data-view="list"] .pr,
  .v2 .lh {
    grid-template-columns: 54px minmax(150px, 1fr) 96px 84px 92px 92px minmax(140px, 1.3fr) 64px;
  }
}

.v2 .lh > :nth-child(6) {
  text-align: right;
}

.v2 .lh > :nth-child(7) {
  text-align: center;
}

.v2 .lh > :nth-child(1) {
  text-align: center;
}

.v2 .pr .pr-tvl {
  justify-items: end;
  text-align: right;
}

/* brighter secondary figures */
.v2 .pr :is(.pr-30, .pr-vol, .pr-tvl),
.v2 .pc-30 b,
.v2 .pc-m dd {
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  opacity: 0.86;
}

/* the chain: its mark and its short name, readable from afar */
.v2 .cm {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: auto;
  min-width: 44px;
  height: auto;
  padding: 5px 6px 4px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--cc, var(--muted)) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cc, var(--muted)) 30%, transparent);
}

.v2 .cm em {
  color: var(--cc, var(--fg2));
  font-size: 9.5px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.v2 .pr .cm {
  width: auto;
  height: auto;
}

.v2 .pr .cm svg,
.v2 .pc-h .cm svg {
  width: 17px;
  height: 17px;
}

.v2 .pc-h .cm {
  flex-direction: row;
  gap: 6px;
  padding: 4px 8px;
}

.v2 .cm[data-chain="solana"] { --cc: #a77bff; }
.v2 .cm[data-chain="ethereum"] { --cc: #8c9df0; }
.v2 .cm[data-chain="bsc"] { --cc: #f0b90b; }
.v2 .cm[data-chain="base"] { --cc: #4f86ff; }
.v2 .cm[data-chain="robinhood"] { --cc: #c8f24c; }

/* the chain is shown by the mark: its short name in the tags is redundant */
.v2 .pc-tags .b:first-child {
  display: none;
}

.v2 .pc-tags .b:nth-child(2)::before {
  content: none;
}

/* no white flash: hover is a hairline accent, not a light fill */
.v2 .pr:hover,
.v2 #pool-table #rows > tr:hover {
  background: none;
  box-shadow: inset 2px 0 0 color-mix(in srgb, var(--acc) 70%, transparent);
}

.v2 .pc:hover {
  border-color: color-mix(in srgb, var(--acc) 35%, var(--line));
  box-shadow: none;
}

/* no page-size picker */
.v2 #tab-pools .per {
  display: none !important;
}

/* ---------- autopilot «Сейчас в пулах»: one line per pool ---------- */

.v2 #ap-sig .ap-mini td:first-child {
  width: auto;
}

.v2 #ap-sig .ap-mini td:first-child b {
  margin-right: 8px;
}

.v2 #ap-sig .ap-mini td:first-child .muted.small {
  display: inline;
  color: var(--faint);
}

.v2 #ap-sig .ap-mini td:first-child > div {
  display: inline;
}

.v2 #ap-sig .ap-mini td:not(:first-child) .muted.small,
.v2 #ap-sig .ap-mini tr:first-child td:not(:first-child) .muted.small {
  display: none;
}

.v2 #ap-sig .ap-mini td:nth-child(2),
.v2 #ap-sig .ap-mini td:nth-child(4) {
  width: 22%;
}

.v2 #ap-sig .ap-mini td:last-child {
  width: 18px;
  overflow: hidden;
  font-size: 0;
}

.v2 #ap-sig .ap-mini td:last-child > * {
  font-size: 0 !important;
  color: transparent !important;
}

/* ---------- pool card: title, the main action, the figures, the charts — nothing else ---------- */

.v2 #drawer-body > .note,
.v2 #drawer-body .hook-note,
.v2 #drawer-body .sus-note,
.v2 #drawer-body > .d-links [data-act="block-hook"],
.v2 #drawer-body > .d-links [data-act="unblock-hook"],
.v2 #drawer-body > .d-links a[href*="hook"] {
  display: none !important;
}

.v2 #drawer-body .d-head .tags .b:not(:is(.new, .sus, .rug, .bell)) {
  border: 0;
  background: none;
  padding: 0;
  color: var(--faint);
}

.v2 #drawer-body .d-head .d-addr {
  opacity: 0.55;
}

.v2 #drawer-body > .d-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.v2 #drawer-body > .d-links .primary,
.v2 #drawer-body > .d-links .off {
  grid-column: 1 / -1;
}

.v2 #drawer-body > .d-links :not(.primary, .off) {
  justify-content: center;
  height: 32px;
  border-color: var(--sep);
  color: var(--muted);
  font-size: 12.5px;
}

/* figures: the 5-minute hero, then TVL · Fees 30 · volume; the rest goes */
.v2 #drawer-body .d-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.v2 #drawer-body .d-metrics .m:nth-child(1),
.v2 #drawer-body .d-metrics .m:nth-child(2),
.v2 #drawer-body .d-metrics .m:nth-child(5) {
  order: 0;
  grid-column: span 1;
  padding: 12px 14px;
}

.v2 #drawer-body .d-metrics .m:nth-child(2) .trend,
.v2 #drawer-body .d-metrics .m:nth-child(n + 6) {
  display: none;
}

.v2 #drawer-body .d-metrics .m:is(:nth-child(1), :nth-child(2), :nth-child(5)) .v {
  font-size: 17px;
  font-weight: 600;
}

.v2 #drawer-body > .d-sec {
  padding: 0;
  border: 0;
  background: none;
}

.v2 #drawer-body > .d-sec .chart {
  padding: 0;
}
.v2 .pc-h .cm {
  width: auto;
  height: 26px;
  min-width: 0;
}

/* ==========================================================================
 * Round 8: «Telegram и Pushover» — Telegram as one bar, Pushover as a wide card: levels in a grid, delivery in a row
 * ========================================================================== */

.v2 #al-ch:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.v2 #al-ch .al-chc {
  padding: 16px 18px;
}

.v2 #al-ch .al-chh {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.v2 #al-ch .al-chh h3 {
  flex: 1 1 auto;
}

.v2 #al-ch .al-chh .row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.v2 #al-ch .al-chh .btn.small {
  height: 30px;
  border-color: var(--sep);
  color: var(--fg2);
}

.v2 #al-ch .al-chm {
  margin: 8px 0 0 42px;
  color: var(--faint);
  font-size: 12.5px;
}

.v2 #al-ch .b.st-in {
  border: 0;
  background: var(--up-bg);
  color: var(--up);
}

.v2 #al-ch .b.st-out {
  border: 0;
  background: var(--danger-bg);
  color: var(--danger);
}

/* Pushover body */
.v2 #po-card .po-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.v2 #po-card .al-sec {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.v2 #po-card .al-sh {
  margin: 0 0 10px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.v2 #po-card .al-sh span {
  display: none;
}

.v2 #po-card .po-kinds {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 6px;
}

.v2 #po-card .po-k {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 8px 8px 8px 12px;
  border: 1px solid var(--sep);
  border-radius: 9px;
  background: var(--card2);
}

.v2 #po-card .po-k > span {
  min-width: 0;
  color: var(--fg2);
  font-size: 13px;
  line-height: 1.3;
}

.v2 #po-card .po-k .po-off {
  display: block;
  margin-top: 2px;
  color: var(--warn);
  font-size: 11px;
}

.v2 #po-card .po-k select {
  flex: none;
  width: 150px;
  height: 30px;
  font-size: 12.5px;
}

.v2 #po-card .po-k.em {
  border-color: rgba(255, 106, 61, 0.45);
}

.v2 #po-card .po-del {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
}

.v2 #po-card .po-del .pf-field {
  display: grid;
  gap: 4px;
  color: var(--faint);
  font-size: 11.5px;
}

.v2 #po-card .po-del select {
  width: 100%;
  height: 34px;
}

.v2 #po-card .po-legend,
.v2 #po-card .al-sec > p.muted.small:not(#po-reps) {
  display: none;
}

.v2 #po-card #po-reps {
  margin: 8px 0 18px;
  color: var(--faint);
  font-size: 12px;
}

.v2 #po-card .po-recent {
  display: grid;
  gap: 0;
  border: 1px solid var(--sep);
  border-radius: 9px;
  overflow: hidden;
}

.v2 #po-card .po-it {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 12px;
  border-top: 1px solid var(--sep);
  font-size: 12.5px;
}

.v2 #po-card .po-it:first-child {
  border-top: 0;
}

.v2 #po-card .po-ih {
  display: flex;
  gap: 10px;
  min-width: 0;
}

.v2 #po-card .po-t {
  overflow: hidden;
  color: var(--fg2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2 #po-card .po-is {
  display: flex;
  flex: none;
  gap: 10px;
}

.v2 #po-card .po-is .muted {
  display: none;
}

.v2 #po-card .po-recent > .po-it:nth-child(n + 6) {
  display: none;
}
.v2 #po-card .po-k .po-off {
  font-size: 0;
}

.v2 #po-card .po-k .po-off::before {
  content: "выключено в «Что присылать»";
  font-size: 11px;
}

@media (max-width: 767px) {
  .v2 #al-ch .al-chm {
    margin-left: 0;
  }

  .v2 #po-card .po-k select {
    width: 130px;
  }
}

/* ==========================================================================
 * Round 9 (audit, 2026-10-24): every tab, panel and popup checked against the redesign — what was still the old UI
 * recoloured is redone; figures in Geist; no flashes; phone layouts. One section per area, after the shared bits.
 * ========================================================================== */

/* ---------- R9 · shared: the select chevron, one switch drawn on a native checkbox (same input, same listeners) ---------- */

.v2 {
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2380858c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* «Это мой кошелёк», «Скрыть суммы», «Платить ETH вместо WETH», the autopilot's toggles («Цикл» has its own copy in cycle.css) */
.v2 :is(#pf-own, #shr-hide, #lpx-payeth, #tab-autopilot .ap-chk input[type="checkbox"]) {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  flex: none;
  width: 30px;
  height: 18px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--card3);
  box-shadow: inset 0 0 0 1px var(--line2);
  cursor: pointer;
  transition: background 0.2s;
}

.v2 :is(#pf-own, #shr-hide, #lpx-payeth, #tab-autopilot .ap-chk input[type="checkbox"])::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--fg2);
  transition: transform 0.25s var(--spring), background 0.2s;
}

.v2 :is(#pf-own, #shr-hide, #lpx-payeth, #tab-autopilot .ap-chk input[type="checkbox"]):checked {
  background: var(--acc);
  box-shadow: none;
}

.v2 :is(#pf-own, #shr-hide, #lpx-payeth, #tab-autopilot .ap-chk input[type="checkbox"]):checked::before {
  transform: translateX(12px);
  background: #fff;
}

.v2 :is(#pf-own, #shr-hide, #lpx-payeth, #tab-autopilot .ap-chk input[type="checkbox"]):disabled {
  opacity: 0.4;
  cursor: default;
}

.v2 :is(#pf-own, #shr-hide, #lpx-payeth, #tab-autopilot .ap-chk input[type="checkbox"]):focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

/* ---------- R9 · chrome: title bar, ⋯ menu, popovers, login, icon rail (GC-xx; P22 is the shell part of the pools audit) ---------- */

/* GC-01: the Live pill hugs its dot and label (app.css .live{min-width:118px} was sized for the old «live · 12с») */
.v2 #live {
  min-width: 0;
}

/* GC-20: the chrome stays still: no spinning logo ring, a steady Live dot */
.v2 .mark-ring,
.v2 #live .dot {
  animation: none;
}

/* P22: on a phone the pill is its dot alone in every state (the paused / offline labels came back, cut to «Пауз») */
@media (max-width: 480px) {
  .v2 #live {
    width: 32px;
    padding: 0;
    justify-content: center;
  }

  .v2 #live::after,
  .v2 #live.paused::after,
  .v2 #live.offline::after {
    content: none;
  }
}

/* GC-20: the orbital light is the top backdrop only; scrolled content no longer shows it through the gaps */
.v2 .hero-fx {
  transition: opacity 0.4s;
}

.v2.scrolled .hero-fx {
  opacity: 0;
}

/* GC-07: unread news is a dot, like the ⋯ menu's (app.js already puts the count in the button's title) */
.v2 #news .news-n {
  top: 4px;
  right: 4px;
  width: 8px;
  min-width: 8px;
  height: 8px;
  padding: 0;
  font-size: 0;
  line-height: 0;
  box-shadow: 0 0 0 2px var(--bg);
}

/* GC-04: «Идея» lines up with the other menu rows; the bar button loses the old 2px nudge */
.v2 .drop-i.news-btn,
.v2 #news.news-btn {
  margin-left: 0;
}

/* GC-05: sound off is a state (Выкл on the right), not a disabled row */
.v2 #sound.off {
  color: var(--fg);
}

/* GC-08: loading placeholders are still text, no blinking */
.v2 .wait {
  animation: none;
}

/* GC-14: popovers line up with the bar's right edge */
@media (min-width: 768px) {
  .v2 .pop,
  .v2 .pop.news-pop {
    top: calc(var(--bar-h) + 4px);
    right: var(--pad);
  }
}

/* GC-17: thin quiet scrollbars instead of the OS bars with arrows */
html.v2 {
  scrollbar-width: thin;
}

.v2 :is(.pop, .drop, .drawer, .table-scroll, .ap2-side, .pf2-side, #filters) {
  scrollbar-width: thin;
  scrollbar-color: var(--line2) transparent;
}

/* GC-16: on a phone a popover is a sheet: a dimmed page behind it (a tap there closes it) and a grab handle */
@media (max-width: 767px) {
  .v2.v2-pop body::after {
    content: "";
    position: fixed;
    z-index: 59;
    inset: 0;
    background: var(--scrim);
    animation: fade 0.2s;
  }

  .v2 .pop::before {
    content: "";
    display: block;
    width: 36px;
    height: 4px;
    margin: -6px auto 14px;
    border-radius: 2px;
    background: var(--line2);
  }
}

/* GC-06: «Как читать цифры» in the board's words, one short line each (v2.js writes the lines) */
.v2 #help-pop dl {
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 9px 14px;
}

.v2 #help-pop dt {
  color: var(--fg2);
  font-size: 13px;
  font-weight: 500;
}

.v2 #help-pop dd {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.v2 #help-pop #help-rule:empty,
.v2 #help-pop #help-rule-t:has(+ #help-rule:empty) {
  display: none;
}

/* GC-12: no footer explaining Telegram (the switch is on the Alerts tab); the empty list is one word */
.v2 #news-pop .news-foot {
  display: none;
}

.v2 #news-list > p.muted {
  margin: 0;
  padding: 0;
  font-size: 0;
}

.v2 #news-list > p.muted::after {
  content: "Пока пусто";
  color: var(--muted);
  font-size: 13px;
}

/* GC-11: the idea form: a short placeholder (v2.js), no resize grip, the counter on one quiet line */
.v2 #ideas-text {
  resize: none;
  border-color: var(--line);
  background: var(--card2);
}

.v2 #ideas-text:focus {
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-tint);
}

.v2 #ideas-text:focus-visible {
  outline: none;
}

.v2 #ideas-text::placeholder {
  color: var(--faint);
}

.v2 .ideas-row {
  min-height: 34px;
}

.v2 #ideas-left {
  color: var(--faint);
  font-size: 12px;
  white-space: nowrap;
}

.v2 #ideas-left.warn {
  color: var(--warn);
}

/* GC-24: a lost screenshot is an empty tile, not the browser's broken-image icon (v2.js marks it) */
.v2 .idea-shots a:has(> img.v2-gone) {
  background: var(--card3);
}

.v2 .idea-shots img.v2-gone {
  visibility: hidden;
}

/* GC-13: figures in the chrome popovers are Geist (Cyrillic falls back to Onest through the stack) */
.v2 :is(.news-d, #ideas-seg button, #ideas-left, #help-pop dd) {
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
}

/* GC-21: the toast is centred on the content column, not on the window */
@media (min-width: 768px) {
  .v2 .toast {
    left: calc(50% + var(--side-w) / 2);
  }
}

@media (min-width: 1280px) {
  .v2.v2-drawer .toast {
    left: calc(50% + (var(--side-w) - var(--dock-w) - 20px) / 2);
  }
}

/* GC-10: the icon rail names each section on hover and keyboard focus (aria-label set by v2.js) */
@media (min-width: 768px) and (max-width: 1099px) {
  .v2 .side-nav .tab[aria-label]:is(:hover, :focus-visible)::after {
    content: attr(aria-label);
    display: block;
    position: absolute;
    z-index: 70;
    top: 50%;
    left: calc(100% + 12px);
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--pop);
    box-shadow: var(--shadow);
    color: var(--fg);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    pointer-events: none;
    transform: translateY(-50%);
  }
}

/* (GC-02, the empty blacklist, is the one-line empty in the blacklist section: empties are one short line) */

/* GC-03: the login logo keeps its chevron and dot in both themes (the chevron was near-white on a white card) */
.v2 .logo {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke-linecap='round'%3E%3Ccircle cx='14' cy='14' r='11' stroke='%23ff6a3d' stroke-width='2.2' stroke-dasharray='3.2 2.6'/%3E%3Cpath d='M8 17.5c2-4.6 3.9-7 5.8-7 1.8 0 2.1 3.7 5.2 3.7' stroke='%23ecebe6' stroke-width='2'/%3E%3Ccircle cx='19' cy='14.2' r='1.5' fill='%23ff6a3d' stroke='none'/%3E%3C/svg%3E")
    center / 100% no-repeat;
}

.v2.t-light .logo {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke-linecap='round'%3E%3Ccircle cx='14' cy='14' r='11' stroke='%23e8461e' stroke-width='2.2' stroke-dasharray='3.2 2.6'/%3E%3Cpath d='M8 17.5c2-4.6 3.9-7 5.8-7 1.8 0 2.1 3.7 5.2 3.7' stroke='%2317171a' stroke-width='2'/%3E%3Ccircle cx='19' cy='14.2' r='1.5' fill='%23e8461e' stroke='none'/%3E%3C/svg%3E")
    center / 100% no-repeat;
}

/* GC-18: the login card: the sidebar's lockup (v2.js splits the name), no tagline */
.v2 .login-card > p.muted {
  display: none;
}

.v2 .login-card .brand {
  gap: 12px;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.v2 .login-card .brand b {
  margin-left: 0.35em;
  color: var(--acc);
  font-weight: 700;
}

.v2 .login-card .logo {
  width: 30px;
  height: 30px;
}

/* one focus ring on the login fields: their accent border, not a second outline around it */
.v2 .login-card input:focus-visible {
  outline: none;
}

/* ---------- R9 · pools: the tab (board, list, toolbar, filters sheet, search notes, empties) and the pool card (P01…P21) ---------- */

/* P01 — the pool card's figures in Geist: the 5-minute hero and Fees 30м lost to older Onest rules */
.v2 #drawer-body .d-metrics .m .v {
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.v2 #drawer-body .d-metrics .m:nth-child(4) .v {
  letter-spacing: -0.035em;
}

/* Fees 30м sat 4px above TVL and volume (old flex box, line-height 1.1) */
.v2 #drawer-body .d-metrics .m:nth-child(2) .v {
  display: block;
  line-height: inherit;
}

/* P18 — figures still in Onest: typed filter values, the minutes chart axis */
.v2 #filters input,
.v2 #drawer-body .axis span,
.v2 #drawer-body .lq-tip {
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
}

/* P02 — phone: the filters sheet reaches the screen bottom; the tab bar steps aside while it is open */
@media (max-width: 767px) {
  .v2.sheet-open .side {
    display: none;
  }
}

/* P04 — narrow list (phone, or the pool card docked): the header row is hidden, so the sort chips come back (v2.js
 * sets .v2-lh only while the header row is shown) and the sorted figure is a quiet second line under the 5-minute one */
.v2.v2-list:not(.v2-lh) .bh-sort button {
  display: inline-block;
}

@container plist (max-width: 760px) {
  .v2 .board[data-view="list"] .pr {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 1px;
  }

  .v2 .board[data-view="list"] .pr > :is(.cm, .pc-t) {
    grid-row: 1 / span 2;
    align-self: center;
  }

  .v2 .board[data-view="list"] .pr > .pr-5 {
    grid-column: 3;
    grid-row: 1;
    align-self: end;
  }

  .v2 .board[data-view="list"] .pr > :is(.pr-30, .pr-vol, .pr-tvl) {
    grid-column: 3;
    grid-row: 2;
    align-self: start;
    display: none;
    color: var(--fg2);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    opacity: 1;
    text-align: right;
  }

  .v2 .board[data-view="list"] .pr > .pr-30,
  .v2[data-v2-sort="volume30m"] .board[data-view="list"] .pr > .pr-vol,
  .v2[data-v2-sort="tvlUsd"] .board[data-view="list"] .pr > .pr-tvl {
    display: block;
  }

  .v2:is([data-v2-sort="volume30m"], [data-v2-sort="tvlUsd"]) .board[data-view="list"] .pr > .pr-30 {
    display: none;
  }

  .v2 .board[data-view="list"] .pr > .pr-30::before {
    content: "30 мин ";
    color: var(--faint);
    font-family: var(--sans);
    font-weight: 400;
  }

  .v2 .board[data-view="list"] .pr > .pr-vol::before {
    content: "объём ";
    color: var(--faint);
    font-family: var(--sans);
    font-weight: 400;
  }

  .v2 .board[data-view="list"] .pr > .pr-tvl::before {
    content: "TVL ";
    color: var(--faint);
    font-family: var(--sans);
    font-weight: 400;
  }

  .v2 .board[data-view="list"] .pr .pr-5 b {
    font-size: 19px;
    line-height: 1.15;
  }
}

/* P05 — toolbar too narrow for one line (pool card docked, small screens): search and «Фильтры» on top, the chains
 * on their own line instead of scrolling out of sight (v2.js sets .tb-wrap from measured widths) */
@media (min-width: 768px) {
  .v2 #tab-pools .toolbar.tb-wrap {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .v2 #tab-pools .toolbar.tb-wrap > .search {
    flex: 1 1 0;
    order: 0;
  }

  .v2 #tab-pools .toolbar.tb-wrap #more {
    order: 1;
  }

  .v2 #tab-pools .toolbar.tb-wrap .seg[data-key="chain"] {
    flex: 1 1 100%;
    order: 3;
  }
}

/* P20 — one focus ring on the search: the pill's own, not a second one around the text */
.v2 #tab-pools .search input:focus,
.v2 #tab-pools .search input:focus-visible {
  outline: none;
  box-shadow: none;
}

/* P06 — DEX switch in the new style: no separators, brand names as quiet labels, chips like the issuer group,
 * «показать все / скрыть все» as two quiet links */
.v2 #venue-f {
  gap: 10px 14px;
  align-items: center;
}

/* each brand with several venues is a row «Brand  [venue] [venue]»; single-venue brands follow as one chip cloud */
.v2 #venue-f .vg {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
}

.v2 #venue-f > button[data-venue] {
  order: 1;
}

.v2 #venue-f .vg-act {
  order: 2;
}

.v2 #venue-f button:not(.link) {
  opacity: 1;
  font-weight: 500;
  text-decoration: none;
}

.v2 #venue-f button:not(.on):not(.link) {
  border-color: var(--sep);
  background: none;
  color: var(--faint);
}

/* a brand's name switches all its venues: a label, not a chip (#filters #venue-f outranks the sheet's chip rules) */
.v2 #filters #venue-f .vb {
  min-width: 104px;
  padding: 0 2px;
  border-color: transparent;
  background: none;
  color: var(--fg2);
  font-weight: 600;
  justify-content: flex-start;
  text-align: left;
}

.v2 #filters #venue-f .vb:not(.on) {
  color: var(--faint);
}

.v2 #filters #venue-f .vb:hover {
  color: var(--fg);
}

.v2 #venue-f .vg-act {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  width: 100%;
  padding: 2px 0 0;
  font-size: 0;
}

.v2 #venue-f .vg-act .link {
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.v2 #venue-f .vg-act .link:hover {
  color: var(--fg);
}

/* P07 — pool card «Токены»: hairline rows, the blacklist action as a quiet ⊘ square, rows line up */
.v2 #drawer-body .tokens {
  display: grid;
  gap: 0;
}

.v2 #drawer-body .tokens .token {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--sep);
  border-radius: 0;
  background: none;
}

.v2 #drawer-body .tokens .token:last-child {
  border-bottom: 0;
}

.v2 #drawer-body .tokens .token > b {
  flex: none;
  width: 84px;
  overflow: hidden;
  color: var(--fg);
  font-size: 13.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2 #drawer-body .tokens .token code {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: none;
  color: var(--faint);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2 #drawer-body .tokens .token .act {
  flex: none;
  width: 28px;
  height: 28px;
  border-color: transparent;
  background: none;
  color: var(--muted);
}

.v2 #drawer-body .tokens .token .act:hover {
  background: var(--fill2);
  color: var(--fg);
}

.v2 #drawer-body .tokens .token .btn.small {
  flex: none;
  height: 28px;
  padding: 0 10px;
  border-color: var(--sep);
  background: none;
  color: var(--muted);
  font-size: 12px;
}

.v2 #drawer-body .tokens .token .btn.small.blk {
  justify-content: center;
  width: 28px;
  padding: 0;
  border-color: transparent;
  font-size: 0;
}

.v2 #drawer-body .tokens .token .btn.small.blk::before {
  content: "⊘";
  font-size: 14px;
  line-height: 1;
}

.v2 #drawer-body .tokens .token .btn.small.blk:hover {
  border-color: transparent;
  background: var(--danger-bg);
  color: var(--danger);
}

/* the quote token has no action: an empty slot keeps the rows aligned */
.v2 #drawer-body .tokens .token > .muted.small {
  flex: none;
  width: 28px;
  overflow: hidden;
  font-size: 0;
  visibility: hidden;
}

/* P12 — no dead «Открыть позицию» bar when a position cannot be opened here: the three quiet actions stay */
.v2 #drawer-body > .d-links .off {
  display: none;
}

/* P19 — the pool card names the chain with the same mark as the board (v2.js puts it in front of the tags) */
.v2 #drawer-body .d-head .tags > .cm {
  flex-direction: row;
  gap: 5px;
  width: auto;
  min-width: 0;
  height: 22px;
  padding: 0 7px;
  border-radius: 7px;
}

.v2 #drawer-body .d-head .tags > .cm svg {
  width: 14px;
  height: 14px;
}

.v2 #drawer-body .d-head .tags > .cm + .b {
  display: none;
}

.v2 #drawer-body .d-head .tags > .cm + .b + .b::after {
  content: "·";
  margin-left: 5px;
}

/* P21 — scrolled pool card: the close button has its own backing; content fades under the top edge */
.v2 #drawer-close {
  background: var(--elev);
  box-shadow: 0 0 0 6px var(--elev);
}

@media (min-width: 768px) {
  .v2 #drawer {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12px);
    mask-image: linear-gradient(to bottom, transparent 0, #000 12px);
  }
}

/* P13 — orange border means «open» only; the corner glow marks the top three only when the order is a real top */
.v2 .pc.lead:first-child:not(.sel):not(:hover) {
  border-color: var(--line);
}

.v2.v2-sort-asc .pc.lead,
.v2[data-v2-sort]:not([data-v2-sort=""], [data-v2-sort="fees5m"], [data-v2-sort="fees30m"], [data-v2-sort="volume30m"], [data-v2-sort="tvlUsd"]) .pc.lead {
  background: var(--card);
}

/* P14 — light theme: chain labels dark enough to read */
.v2.t-light .cm[data-chain="solana"] { --cc: #7444e0; }
.v2.t-light .cm[data-chain="ethereum"] { --cc: #4659c9; }
.v2.t-light .cm[data-chain="bsc"] { --cc: #7f5b00; }
.v2.t-light .cm[data-chain="base"] { --cc: #1d58e0; }
.v2.t-light .cm[data-chain="robinhood"] { --cc: #4c7a00; }

/* P15 — the tag separator sits between words; no dot after the last tag */
.v2 .pc-tags .b:nth-child(2)::after {
  content: "·";
  margin-left: 5px;
}

.v2 .pc-tags .b:last-child::after {
  content: none;
}

/* P16 — the «все пулы» card lines up with its neighbours */
.v2 .pc.agg {
  border-style: dashed;
  border-color: var(--line2);
}

.v2 .pc.agg .pc-liq {
  visibility: hidden;
}

/* the figures row sits at the card's bottom, so cards in one row line up whatever their liquidity slot holds */
.v2 .board[data-view="cards"] .pc > .pc-m {
  margin-top: auto;
}

.v2 .board[data-view="cards"] .pc > .pc-liq {
  margin-bottom: 8px;
}

/* P17 — phone: the sort chips fade at the edge, so it is clear that more scroll in */
@media (max-width: 767px) {
  .v2 .bh-sort {
    -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent);
    mask-image: linear-gradient(90deg, #000 80%, transparent);
  }
}

/* P08 — a token search: one quiet line over the cards («Все пулы MRNA · Всё равно показать»), no boxed paragraph
 * (v2.js moves the note above the board and keeps only the symbol, the links and the scan spinner) */
.v2 #tab-pools .qnote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
}

.v2 #tab-pools .qnote[hidden] {
  display: none;
}

.v2 #tab-pools .qnote b {
  color: var(--fg);
  font-weight: 600;
}

.v2 #tab-pools .qnote .link {
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg2);
  font-size: 13px;
  text-decoration: none;
}

.v2 #tab-pools .qnote .link:hover {
  color: var(--fg);
}

.v2 #tab-pools .qnote .qscan {
  display: inline-flex;
  align-items: center;
  font-size: 0;
}

.v2 #tab-pools .qnote .err {
  color: var(--warn);
  font-size: 12.5px;
}

/* P09 — empty board: one short line (v2.js trims the advice), the wallet button is a quiet ghost */
.v2 #tab-pools .empty .link {
  margin-left: 6px;
  color: var(--fg);
  font-size: 14px;
}

.v2 #tab-pools .empty .pk-cta {
  margin-top: 16px;
}

.v2 #tab-pools .empty .pk-cta .btn.primary {
  border: 1px solid var(--line2);
  background: none;
  box-shadow: none;
  color: var(--fg);
}

.v2 #tab-pools .empty .pk-cta .btn.primary:hover {
  border-color: var(--muted);
  background: var(--fill2);
  filter: none;
}

/* ---------- R9 · LP window (lp.js): positions as hairline rows, the 5-minute fees as the header's main figure, a phone
 * layout, Geist digits, no flashes, less text (LPX-xx). Only shapes, type and layout: lp.js keeps every node and listener.
 * The canvas labels get Geist digits through the "Inter" face next to Geist (Round 7). ---------- */

/* LPX-07: every figure of the window in Geist */
.v2 :is(#lpx-legend, #lpx-legend b, .lpx-pxv small, .lpx-chg, .lpx-pvrow input, .lpx-ptot b, .lpx-ptab td, .lpx-ptab .rg,
  .lpx-ptab .sub, .lpx-pi > :last-child, .lpx-pi .b, #lpx-pool-name .b, .lpx-tbal, .lpx-ep, #lpx-rw, .lpx-binfo, #lpx-prev .note,
  .lpx-hw, .lpx-fxc, .lpx-slip .seg button, .lpx-presets button, .v2-lpx5 b) {
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
}

/* ---------- LPX-02: header — the 5-minute fees beside the price, the price on one line ---------- */

/* only the stats give way when the header is short of room; the close button never shrinks */
.v2 .lpx-top > :not(.lpx-stats) {
  flex-shrink: 0;
}

.v2 .lpx-price {
  flex: none;
  min-width: 0;
}

.v2 .lpx-pxv {
  white-space: nowrap;
}

.v2 .lpx-pxv small {
  margin-left: 8px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.v2 .v2-lpx5 {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 3px;
  padding-left: 20px;
  border-left: 1px solid var(--sep);
  line-height: 1.05;
  cursor: default;
}

.v2 .v2-lpx5[hidden] {
  display: none;
}

.v2 .v2-lpx5 span {
  color: var(--faint);
  font-size: 10.5px;
  white-space: nowrap;
}

/* never red or orange: the owner's main figure */
.v2 .v2-lpx5 b {
  color: var(--fg);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

/* ---------- LPX-08: no flash animations on every swap ---------- */

.v2 .lpx-live.pulse i,
.v2 .lpx-fxt.buy svg,
.v2 .lpx-fxt.sell svg {
  animation: none;
}

/* ---------- LPX-16 / LPX-10: one toolbar line, no venue status text ---------- */

.v2 #lpx-lost {
  display: none;
}

.v2 #lpx-hist {
  flex: 1 1 0;
  min-width: 0;
  margin-left: auto;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* LPX-07 / LPX-15: the OHLC legend in Geist, kept off the liquidity profile and the trades panel */
.v2 #lpx-legend {
  right: auto;
  width: calc(100% - 280px);
  font-size: 12px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}

.v2 #lpx-legend > .muted {
  color: var(--faint);
}

/* LPX-19: the chart library's attribution stays (licence), quietly */
.v2 #tv-attr-logo {
  opacity: 0.28;
  filter: grayscale(1);
}

/* LPX-15: the trades list header fits */
.v2 .lpx-fxc {
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

/* LPX-17: «Прогрузить период» popup */
.v2 .lpx-pvpop {
  border-color: var(--line2);
  background: var(--pop);
  box-shadow: var(--shadow);
}

.v2 .lpx-pvrow input {
  border-color: var(--line);
  border-radius: 8px;
  background: var(--card2);
  font-size: 13px;
}

.v2.t-light .lpx-pvrow input {
  color-scheme: light;
}

.v2 .lpx-pvrow input:focus {
  border-color: var(--acc);
}

.v2 #lpx-pv-go {
  border: 0;
  background: var(--cta);
  color: #fff;
  font-weight: 600;
}

.v2 #lpx-pv-go:disabled {
  opacity: 0.6;
}

/* ---------- LPX-01 / LPX-14: the positions panel header on one quiet line ---------- */

.v2 .lpx .lpx-phd {
  flex-wrap: nowrap;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
}

/* the tabs name the panel: the title that changed with them (and shifted them sideways) goes */
.v2 .lpx .lpx-phd > b:first-child {
  display: none;
}

.v2 .lpx .lpx-phd > .seg {
  flex: none;
}

.v2 .lpx .lpx-phd .seg button,
.v2 .lpx .lpx-phd .lpx-dbtn {
  height: 28px;
  padding: 0 10px;
  font-size: 12.5px;
}

/* the inner filters (LP wallets: Все / В диапазоне / Вне; closed: Все / Этот пул, Обновить) read as text toggles */
.v2 .lpx .lpx-phd .lpx-hf {
  gap: 0;
  padding: 0;
  border: 0;
  background: none;
}

.v2 .lpx .lpx-phd .lpx-hf button {
  height: 26px;
  padding: 0 8px;
  font-size: 12px;
}

.v2 .lpx .lpx-phd .lpx-cacts button {
  color: var(--faint);
}

.v2 .lpx .lpx-phd .lpx-cacts button:hover {
  color: var(--fg);
}

.v2 .lpx-pos:has(.lpx-pempty #lpx-pconnect) .lpx-cacts {
  display: none;
}

/* the total sits right, the draft button last */
.v2 .lpx .lpx-phd .lpx-ptot {
  flex: 0 1 auto;
  order: 8;
  min-width: 0;
  margin-left: auto;
  overflow: hidden;
  color: var(--faint);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2 .lpx .lpx-phd .lpx-ptot b {
  color: var(--fg);
  font-size: 13.5px;
  font-weight: 600;
}

.v2 .lpx .lpx-phd > .muted.small {
  flex: none;
  order: 9;
  color: var(--faint);
}

.v2 .lpx .lpx-phd .lpx-dbtn {
  flex: none;
  order: 10;
  margin-left: auto;
}

.v2 .lpx .lpx-phd:has(.lpx-ptot) .lpx-dbtn {
  margin-left: 4px;
}

.v2 .lpx .lpx-pempty {
  color: var(--faint);
  font-size: 13px;
}

/* ---------- LPX-01: «Мои позиции», «Этот пул», «Кошельки LP», «Закрытые» as hairline rows ---------- */

.v2 .lpx-ptab {
  font-size: 13px;
}

.v2 .lpx-ptab th {
  padding: 8px 12px;
  border-bottom: 1px solid var(--sep);
  background: var(--bg);
  color: var(--faint);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.v2 .lpx-ptab td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--sep);
  line-height: 1.3;
  white-space: nowrap;
}

.v2 .lpx-ptab .pool {
  flex-wrap: nowrap;
  gap: 8px;
}

.v2 .lpx-ptab .pair {
  max-width: 180px;
  overflow: hidden;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  text-overflow: ellipsis;
}

.v2 .lpx-ptab .tags {
  display: inline-flex;
  align-items: center;
}

.v2 .lpx-ptab .tags .b {
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0;
}

.v2 .lpx-ptab .tags .b + .b::before {
  content: "·";
  margin: 0 5px;
}

.v2 .lpx-ptab .big {
  font-size: 14px;
  font-weight: 600;
}

.v2 .lpx-ptab .sub {
  max-width: 200px;
  margin-top: 2px;
  overflow: hidden;
  color: var(--faint);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2 .lpx-ptab .sub.mono {
  font-family: var(--num);
}

/* own positions: the token amounts stay in the value's tooltip */
.v2 .lpx-ptab:not(.lpx-htab, .lpx-ctab) td:nth-child(3) .sub {
  display: none;
}

.v2 .lpx-ptab .rg {
  gap: 4px;
  min-width: 150px;
  max-width: 240px;
  color: var(--fg2);
  font-size: 12px;
  line-height: 1.2;
}

.v2 .lpx-ptab .rg-pct {
  color: var(--faint);
  font-size: 11px;
}

.v2 .lpx-ptab .rg-track {
  height: 3px;
}

.v2 .lpx-ptab .rg-tick {
  top: -4px;
  height: 11px;
}

.v2 .lpx-hw {
  font-size: 13px;
}

/* rows: the pool on the chart is a thin accent edge, a picked row a soft accent tint — no blue, no violet */
.v2 .lpx-ptab tbody tr:is([data-pid], [data-hid], [data-cid]):hover td {
  background: var(--hover);
}

.v2 .lpx-ptab tr.here td {
  background: none;
}

.v2 .lpx-ptab tr.here td:first-child {
  box-shadow: inset 2px 0 0 var(--acc);
}

.v2 .lpx-ptab tbody tr.sel td,
.v2 .lpx-ptab tbody tr.sel:hover td {
  background: var(--acc-tint);
}

.v2 .lpx-htab tbody tr.sel td,
.v2 .lpx-htab tbody tr.sel:hover td {
  background: var(--fill2);
}

.v2 .lpx-htab tr.sel td:first-child {
  box-shadow: inset 2px 0 0 var(--fg2);
}

.v2 .lpx-hereb {
  color: var(--acc);
  font-weight: 500;
}

/* actions: quiet text buttons, shown on the row under the pointer */
.v2 .lpx-ptab td.c-act {
  width: 1%;
  text-align: right;
}

.v2 .lpx .lpx-acts {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.v2 .lpx .lpx-acts .btn.small,
.v2 .lpx .lpx-rpct .btn.small {
  height: 26px;
  padding: 0 7px;
  border-color: transparent;
  background: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  box-shadow: none;
}

.v2 .lpx .lpx-acts .btn.small:hover,
.v2 .lpx .lpx-rpct .btn.small:hover {
  border-color: transparent;
  background: var(--fill2);
  color: var(--fg);
}

.v2 .lpx .lpx-acts .btn.small.lpx-danger:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

.v2 .lpx .lpx-acts .act {
  width: 26px;
  height: 26px;
  border: 0;
  background: none;
  color: var(--faint);
}

.v2 .lpx .lpx-acts .act:hover {
  background: var(--fill2);
  color: var(--fg);
}

.v2 .lpx .lpx-acts .act svg {
  width: 14px;
  height: 14px;
}

.v2 .lpx .lpx-acts .lpx-prof svg {
  width: 12px;
  height: 12px;
}

.v2 .lpx .lpx-rpct,
.v2 .lpx .lpx-acts > .lpx-rpct {
  flex-wrap: nowrap;
  gap: 0;
  max-width: none;
}

.v2 .lpx .lpx-rpct .btn.small {
  padding: 0 7px;
}

/* LP wallets: the copy button beside the address is a quiet icon */
.v2 .lpx-hwal .act {
  width: 22px;
  height: 22px;
  border: 0;
  background: none;
  color: var(--faint);
}

.v2 .lpx-hwal .act:hover {
  color: var(--fg);
}

.v2 .lpx-hwal .act svg {
  width: 13px;
  height: 13px;
}

/* closed: the pair and its tags on one line, like the other tabs */
.v2 .lpx-ptab .pool,
.v2 .lpx-ctab .pool {
  flex-direction: row;
  align-items: center;
}

/* the picker's search: one focus ring (the field's border), not an outline inside it */
.v2 .lpx-picker .search input:focus-visible {
  outline: none;
}

.v2 .lpx .lpx-rpct > .muted.small {
  margin-right: 4px;
  color: var(--faint);
}

/* With a mouse the actions show only on the row under the pointer (or while picking a share to remove). Own positions
 * (four buttons) and, below 1400 px, LP wallets float them over the row's right end so the table fits the panel instead
 * of scrolling sideways; closed positions (two icons) and wide LP wallets keep them in their own quiet column. */
@media (hover: hover) and (min-width: 768px) {
  .v2 .lpx-ptab tbody tr {
    position: relative;
  }

  .v2 .lpx-ptab tbody tr:not(:hover, :focus-within, :has(.lpx-rpct)) td.c-act {
    pointer-events: none;
  }

  .v2 .lpx-ptab tbody tr:not(:hover, :focus-within, :has(.lpx-rpct)) td.c-act .lpx-acts {
    opacity: 0;
  }

  .v2 .lpx-ptab tbody tr:hover {
    --lpx-row: color-mix(in srgb, var(--fg) 3%, var(--bg));
  }

  .v2 .lpx-ptab tbody tr.sel {
    --lpx-row: color-mix(in srgb, var(--acc) 12%, var(--bg));
  }

  .v2 .lpx-htab tbody tr.sel {
    --lpx-row: color-mix(in srgb, var(--fg) 5%, var(--bg));
  }

  /* floating: no column, so the rows' hairlines run to the panel's edge and the range column takes the spare width */
  .v2 .lpx-ptab:not(.lpx-ctab, .lpx-htab) th.c-act {
    width: 0;
    padding: 0;
  }

  .v2 .lpx-ptab:not(.lpx-ctab, .lpx-htab) tbody td.c-act {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    padding: 0 12px 0 40px;
    border: 0;
    background: none !important;
  }

  .v2 .lpx-ptab:not(.lpx-ctab, .lpx-htab) tbody tr:is(:hover, :focus-within, :has(.lpx-rpct)) td.c-act {
    background: linear-gradient(90deg, transparent, var(--lpx-row, var(--bg)) 36px) !important;
  }
}

@media (hover: hover) and (min-width: 768px) and (max-width: 1399px) {
  .v2 .lpx-htab th.c-act {
    width: 0;
    padding: 0;
  }

  .v2 .lpx-htab tbody td.c-act {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    padding: 0 12px 0 40px;
    border: 0;
    background: none !important;
  }

  .v2 .lpx-htab tbody tr:is(:hover, :focus-within) td.c-act {
    background: linear-gradient(90deg, transparent, var(--lpx-row, var(--bg)) 36px) !important;
  }
}

/* closed: the range column takes the spare width */
.v2 .lpx-ctab th:nth-child(3) {
  width: auto;
}

/* ---------- the form column ---------- */

/* LPX-04: one focus ring: the field's own border, not an outline inside it */
.v2 .lpx-usd input:focus-visible,
.v2 .lpx-tok input:focus-visible,
.v2 .lpx-slipc input:focus-visible {
  outline: none;
}

.v2 .lpx-tok:focus-within {
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-tint);
}

/* LPX-18: a range edge is a label, one input and quiet −/+ */
.v2 .lpx .lpx-edge {
  padding: 0;
  border: 0;
  background: none;
}

.v2 .lpx .lpx-ein input {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.v2 .lpx .lpx-ein input:focus,
.v2 .lpx .lpx-ein input:focus-visible {
  outline: none;
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-tint);
}

.v2 .lpx .lpx-step {
  border: 0;
  background: none;
  color: var(--muted);
}

.v2 .lpx .lpx-step:hover:not(:disabled) {
  background: var(--fill2);
  color: var(--fg);
}

.v2 .lpx-tsym,
.v2 .lpx-tsym b {
  font-weight: 600;
}

/* LPX-10: no explanatory lines under the range and the amount */
.v2 #lpx-runit {
  display: none;
}

.v2 #lpx-prev:has(> p.muted.small:only-child) {
  display: none;
}

/* LPX-10: «Платить ETH вместо WETH» as a small switch on one line (the rest of the sentence is in its tooltip) */
.v2 .lpx .lpx-check {
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--fg2);
  font-size: 12.5px;
  cursor: pointer;
}

/* (the input itself is the shared switch, top of Round 9) */

.v2 #lpx-payeth-txt {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* LPX-05: the pinned action fits the column and is opaque; text scrolling under it no longer shows through */
.v2 .lpx-side > .lpx-go {
  align-self: stretch;
  width: auto;
  box-shadow: 0 6px 20px -8px rgba(255, 80, 30, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 0 18px var(--bg), 0 -24px 18px var(--bg);
}

.v2 .lpx-side > .lpx-go:disabled,
.v2 .lpx-side > .lpx-go.off {
  opacity: 1;
  background: var(--card);
  color: var(--faint);
  box-shadow: 0 0 0 18px var(--bg), 0 -24px 18px var(--bg);
}

/* LPX-09 / LPX-12 dropped (owner, 2026-10-24): «Отменить открытие» keeps the right column (wallet and «Открыть позицию»);
 * only the new range leaves the chart. */

/* LPX-09: one orange call to action: the wallet row's «Подключить» is secondary, the panel's copy goes */
.v2 .lpx:not(.lpx-nodraft):has(#lpx-connect) #lpx-pconnect,
.v2 .lpx:has(#lpx-wallet > p.muted) #lpx-pconnect {
  display: none;
}

.v2 .lpx #lpx-connect {
  border: 1px solid var(--line2);
  background: none;
  color: var(--fg);
  box-shadow: none;
}

.v2 .lpx #lpx-connect::after {
  display: none;
}

.v2 .lpx #lpx-connect:hover {
  border-color: var(--faint);
  background: var(--fill2);
}

.v2 #lpx-wallet > p.muted.small {
  margin: 0;
  color: var(--faint);
  font-size: 12px;
}

/* ---------- LPX-06: create a pool — a dimmed view of the window behind the dialog ---------- */

.v2 .lpx-cp {
  border: 0;
  border-radius: 0;
  background: var(--scrim);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.v2 .lpx-cpbox {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--pop);
  box-shadow: var(--shadow);
}

/* ---------- LPX-20: the pool button and the picker read like the pools board ---------- */

.v2 #lpx-pool-name .b,
.v2 .lpx-pi .b {
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--faint);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.v2 #lpx-pool-name .b + .b::before,
.v2 .lpx-pi .b + .b::before {
  content: "·";
  margin-right: 5px;
}

.v2 #lpx-pool-name .b:first-child {
  height: 20px;
  margin-right: 2px;
  padding: 0 7px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--cc, var(--muted)) 13%, transparent);
  color: var(--cc, var(--fg2));
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.v2 #lpx-pool-name .b:first-child + b + .b::before {
  content: none;
}

.v2 #lpx-pool-name .b.eth { --cc: #8c9df0; }
.v2 #lpx-pool-name .b.sol { --cc: #a77bff; }
.v2 #lpx-pool-name .b.bsc { --cc: #f0b90b; }
.v2 #lpx-pool-name .b.base { --cc: #4f86ff; }
.v2 #lpx-pool-name .b.rh { --cc: #c8f24c; }
.v2.t-light #lpx-pool-name .b.eth { --cc: #4659c9; }
.v2.t-light #lpx-pool-name .b.sol { --cc: #7444e0; }
.v2.t-light #lpx-pool-name .b.bsc { --cc: #7f5b00; }
.v2.t-light #lpx-pool-name .b.base { --cc: #1d58e0; }
.v2.t-light #lpx-pool-name .b.rh { --cc: #4c7a00; }

.v2 .lpx-pi > :last-child {
  color: var(--faint);
  font-size: 12px;
}

/* LPX-03: the phone (≤ 767 px) — a compact header, one-row tools, cards instead of the wide tables */

@media (max-width: 767px) {
  .v2 .lpx-main {
    overflow-x: hidden;
  }

  /* header: home · pool · close, then price · fees 5 min · live */
  .v2 .lpx-top {
    flex-wrap: wrap;
    gap: 8px 10px;
    min-height: 0;
    padding: 8px 12px 10px;
  }

  .v2 .lpx-home {
    order: 1;
    margin: 0;
  }

  .v2 .lpx-pool {
    flex: 1 1 calc(100% - 88px);
    order: 2;
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    font-size: 14px;
  }

  .v2 .lpx-pool #lpx-pool-name {
    min-width: 0;
    overflow: hidden;
  }

  .v2 .lpx-top > :is(.lpx-pool, .lpx-price) {
    flex-shrink: 1;
  }

  .v2 .lpx-x {
    order: 3;
  }

  .v2 .lpx-price {
    flex: 1 1 auto;
    order: 4;
  }

  .v2 .lpx-pxv small {
    display: none;
  }

  .v2 .v2-lpx5 {
    order: 5;
    padding-left: 14px;
  }

  .v2 .v2-lpx5 b {
    font-size: 20px;
  }

  .v2 .lpx-live {
    order: 6;
    gap: 0;
    margin-left: 0;
    padding: 0 9px;
    font-size: 0;
  }

  .v2 .lpx-stats,
  .v2 .lpx-links {
    display: none;
  }

  /* tools: the timeframes across, the rest on one more row */
  .v2 .lpx-tools {
    gap: 6px;
    padding: 8px 12px;
  }

  .v2 .lpx-tools #lpx-tf {
    flex: 1 1 100%;
  }

  .v2 .lpx-tools #lpx-tf button {
    flex: 1;
    padding: 0;
  }

  .v2 .lpx-tools .btn.small {
    height: 28px;
    padding: 0 7px;
    font-size: 12px;
  }

  .v2 .lpx-tools #lpx-unit button {
    padding: 0 8px;
    font-size: 12px;
  }

  .v2 #lpx-pv {
    font-size: 0;
  }

  .v2 #lpx-pv::before {
    content: "Период";
    font-size: 12px;
  }

  /* create a pool: the token buttons keep their label */
  .v2 .lpx-cptk {
    padding: 0 24px 0 12px;
  }

  .v2 #lpx-hist {
    display: none;
  }

  /* the legend: close and change only, clear of the profile */
  .v2 #lpx-legend {
    width: calc(100% - 170px);
    font-size: 11px;
  }

  .v2 #lpx-legend > :is(:nth-child(1), :nth-child(2), :nth-child(3), :nth-child(4), :nth-child(7)) {
    display: none;
  }

  /* trades drawer: filters wrap instead of being cut */
  .v2 .lpx-fxf {
    flex-wrap: wrap;
  }

  /* picker: a sheet across the screen, one line per pool */
  .v2 .lpx-picker {
    left: 8px;
    right: 8px;
    width: auto;
  }

  .v2 .lpx-pi {
    flex-wrap: wrap;
    gap: 2px 8px;
  }

  .v2 .lpx-pi > :last-child {
    flex: 1 1 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* positions panel header: the tabs across (scrolling, with a soft edge), the total and the button below */
  .v2 .lpx .lpx-phd {
    flex-wrap: wrap;
    row-gap: 8px;
    padding: 10px 12px;
  }

  .v2 .lpx .lpx-phd > .seg:not(.lpx-hf) {
    flex: 1 1 100%;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 20px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 20px), transparent);
  }

  .v2 .lpx .lpx-phd > .seg:not(.lpx-hf) button {
    flex: none;
    padding: 0 9px;
  }

  .v2 .lpx .lpx-phd .lpx-ptot {
    flex: 1 1 0;
    order: 8;
    margin-left: 0;
  }

  /* tables as cards: pool · value / range · owed / actions (closed: pool · PnL / closed · fees) */
  .v2 .lpx-ptab,
  .v2 .lpx-ptab tbody {
    display: block;
  }

  .v2 .lpx-ptab thead {
    display: none;
  }

  .v2 .lpx-ptab tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--sep);
  }

  .v2 .lpx-ptab tbody td {
    display: none;
    padding: 0;
    border: 0;
    text-align: left;
  }

  .v2 .lpx-ptab:not(.lpx-ctab) tbody td:nth-child(1),
  .v2 .lpx-ctab tbody td:nth-child(1) {
    display: block;
    grid-area: 1 / 1;
  }

  .v2 .lpx-ptab:not(.lpx-ctab) tbody td:nth-child(3),
  .v2 .lpx-ctab tbody td:nth-child(7) {
    display: block;
    grid-area: 1 / 2;
    text-align: right;
  }

  .v2 .lpx-ptab:not(.lpx-ctab) tbody td:nth-child(2),
  .v2 .lpx-ctab tbody td:nth-child(2) {
    display: block;
    grid-area: 2 / 1;
  }

  .v2 .lpx-ptab:not(.lpx-ctab) tbody td:nth-child(4),
  .v2 .lpx-ctab tbody td:nth-child(6) {
    display: block;
    grid-area: 2 / 2;
    color: var(--fg2);
    text-align: right;
  }

  .v2 .lpx-ptab:not(.lpx-ctab) tbody td:nth-child(4)::before {
    content: "забрать ";
    color: var(--faint);
    font-family: var(--sans);
    font-size: 11px;
  }

  .v2 .lpx-ctab tbody td:nth-child(6)::before {
    content: "комиссии ";
    color: var(--faint);
    font-family: var(--sans);
    font-size: 11px;
  }

  .v2 .lpx-ptab tbody td.c-act {
    display: block;
    grid-area: 3 / 1 / 4 / 3;
    width: auto;
    text-align: left;
  }

  .v2 .lpx-ptab .rg {
    max-width: 220px;
  }

  .v2 .lpx-ptab tbody tr.here {
    box-shadow: inset 2px 0 0 var(--acc);
  }

  .v2 .lpx-ptab tbody tr.here td:first-child {
    box-shadow: none;
  }

  .v2 .lpx-ptab tbody tr.sel {
    background: var(--acc-tint);
  }

  .v2 .lpx-htab tbody tr.sel {
    background: var(--fill2);
    box-shadow: inset 2px 0 0 var(--fg2);
  }

  .v2 .lpx-ptab tbody tr.sel td,
  .v2 .lpx-ptab tbody tr:hover td {
    background: none;
  }

  .v2 .lpx .lpx-acts {
    flex-wrap: wrap;
    gap: 6px;
  }

  .v2 .lpx .lpx-acts .btn.small {
    border-color: var(--sep);
  }
}

/* ---------- R9 · portfolio: the column never outgrows the page, closed positions and «Действия» as tapes, the one-off view
 * as cards, quiet panel heads, menus and share window (pf-xx). The «Цикл» panel and tile are in cycle.css. ---------- */

/* ---------- pf-01: the right column never grows past the page; wide tables scroll inside their card ---------- */
.v2 .pf2-main {
  grid-template-columns: minmax(0, 1fr);
}

.v2 .pf2-main > *,
.v2 :is(#pf-closed, #pf-peek, #pf-feed, #pf-cycle) {
  min-width: 0;
}

.v2 :is(#pf-closed, #pf-feed) .table-scroll {
  overflow-x: auto;
}

/* ---------- pf-02: phone wallets card holds all its rows; a long list scrolls inside the list ---------- */
@media (max-width: 900px) {
  .v2 .pf2-side {
    max-height: none;
  }

  .v2 .pf2-side #pf-wallets {
    max-height: 236px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}

/* ---------- pf-03: empty portfolio — «+ Кошелёк» sits inside the empty card, under «Добавьте кошелёк»;
 * the add form opens right under it. (The side and the card share one grid cell.) ---------- */
.v2 .pf-none .pf2 > :is(.pf2-side, .pf2-main) {
  grid-area: 1 / 1;
}

.v2 .pf-none .pf2-side {
  top: auto;
  align-self: start;
  margin-top: 214px;
  pointer-events: none;
}

.v2 .pf-none .pf2-sh {
  justify-content: center;
}

.v2 .pf-none .pf2-sh .pf-connect {
  position: relative;
  margin: 0 auto;
  pointer-events: auto;
}

.v2 .pf-none #pf-pos {
  margin-top: 0;
}

.v2 .pf-none #pf-empty .pf-hero {
  padding-bottom: 92px;
}

.v2 .pf-none .pf2-side .pf2-sh .pf-connect #pf-menu {
  top: calc(100% + 10px);
  right: auto;
  inset-inline-start: 50%;
  margin-left: calc(min(380px, 100vw - 32px) / -2);
  text-align: left;
}

/* ---------- pf-04: phone calendar — short whole-dollar values that fit the day tile ---------- */
@media (max-width: 640px) {
  .v2 .cl-d {
    min-height: 52px;
    padding: 14px 2px 4px;
  }

  .v2 .cl-dv {
    font-size: 11px;
    letter-spacing: -0.02em;
  }

  .v2 .cl-dc {
    display: none;
  }
}

/* ---------- pf-05: «nothing matches» shows its line and the reset; «reading…» shows too ---------- */
.v2 #pf-empty:has([data-act="pf-reset"]),
.v2 #pf-empty:not(:has(*)) {
  color: var(--muted);
  font-size: 14px;
}

.v2 #pf-empty .link {
  margin-left: 6px;
  color: var(--fg);
  font-size: 14px;
}

.v2 #pf-pos.nothing .empty:not(:has(.pf-hero)) {
  padding: 28px;
}

/* ---------- pf-06: closed positions as a quiet one-line tape ---------- */
.v2 #pf-closed {
  container: pfclosed / inline-size;
}

/* fixed columns: the position takes what is left, so the tape never runs past the card */
.v2 #pf-closed #pf-closed-table {
  width: 100%;
  table-layout: fixed;
}

.v2 #pf-closed #pf-closed-table th:nth-child(2) {
  width: 166px;
}

.v2 #pf-closed #pf-closed-table th:nth-child(3) {
  width: 104px;
}

.v2 #pf-closed #pf-closed-table th:is(:nth-child(4), :nth-child(5), :nth-child(6)) {
  width: 74px;
}

.v2 #pf-closed #pf-closed-table th:nth-child(7) {
  width: 108px;
}

.v2 #pf-closed #pf-closed-table th:nth-child(8):not(.c-act) {
  width: 92px;
}

.v2 #pf-closed #pf-closed-table th.c-act {
  width: 36px;
}

.v2 #pf-closed #pf-closed-table th {
  padding: 8px 8px;
  border-bottom: 1px solid var(--sep);
  background: none;
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.v2 #pf-closed #pf-closed-rows > tr > td {
  padding: 11px 8px;
  overflow: hidden;
  border-bottom: 1px solid var(--sep);
  background: none;
  color: var(--fg2);
  font-size: 13px;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.v2 #pf-closed #pf-closed-rows > tr:last-child > td {
  border-bottom: 0;
}

/* position: pair, then chain · venue · fee in faint text (cut at the column's end); the position links over its end, on hover */
.v2 #pf-closed #pf-closed-rows > tr > td:first-child {
  position: relative;
}

.v2 #pf-closed #pf-closed-rows .pool {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.v2 #pf-closed #pf-closed-rows .pool .pair {
  flex: none;
  color: var(--fg);
  font-size: 13.5px;
  font-weight: 600;
}

.v2 #pf-closed #pf-closed-rows .pool .tags {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 14px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 14px), transparent);
}

.v2 #pf-closed #pf-closed-rows .pool .b {
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 500;
}

.v2 #pf-closed #pf-closed-rows .pool .b + .b::before {
  content: "·";
  margin-right: 5px;
}

.v2 #pf-closed #pf-closed-rows td:first-child > .sub {
  position: absolute;
  top: 50%;
  right: 4px;
  display: flex;
  padding-left: 18px;
  background: linear-gradient(90deg, transparent, var(--card) 16px);
  font-size: 0;
  transform: translateY(-50%);
}

.v2 #pf-closed #pf-closed-rows td:first-child > .sub .mono {
  display: none;
}

.v2 #pf-closed #pf-closed-rows td:first-child > .sub .acts {
  display: inline-flex;
  gap: 2px;
  margin: 0;
}

.v2 #pf-closed #pf-closed-rows td:first-child > .sub .act {
  width: 24px;
  height: 22px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 10.5px;
}

.v2 #pf-closed #pf-closed-rows td:first-child > .sub .act:hover {
  background: var(--fill2);
  color: var(--fg);
}

/* closed: the date, then how long it was held, on one line */
.v2 #pf-closed #pf-closed-rows td:nth-child(2) > span:first-child {
  color: var(--fg2);
  font-family: var(--num);
}

.v2 #pf-closed #pf-closed-rows td:nth-child(2) > .sub {
  display: inline;
  margin-left: 8px;
  color: var(--faint);
  font-size: 12px;
}

/* range: quiet figures over a hairline */
.v2 #pf-closed .rg {
  width: 100%;
  min-width: 0;
  max-width: 150px;
  color: var(--muted);
  font: 500 11px/1.2 var(--num);
}

.v2 #pf-closed .rg .rg-row,
.v2 #pf-closed .rg.in .rg-row,
.v2 #pf-closed .rg .rg-row span {
  color: var(--muted);
}

.v2 #pf-closed .rg-track {
  height: 2px;
  background: var(--line2);
}

.v2 #pf-closed .rg-tick {
  top: -3px;
  height: 8px;
}

/* PnL: the figure in its colour, the % beside it, faint */
.v2 #pf-closed #pf-closed-rows td:nth-child(7) .big {
  font: 600 14px var(--num);
  letter-spacing: -0.01em;
}

.v2 #pf-closed #pf-closed-rows td:nth-child(7) .sub {
  display: inline;
  margin-left: 6px;
  color: var(--faint);
  font-size: 11.5px;
}

/* share: an icon, on hover */
.v2 #pf-closed #pf-closed-rows .shr-row {
  width: 28px;
  height: 28px;
  padding: 0;
  justify-content: center;
  border-color: transparent;
  background: none;
  color: var(--muted);
  font-size: 0;
}

.v2 #pf-closed #pf-closed-rows .shr-row svg {
  width: 14px;
  height: 14px;
  margin: 0;
}

.v2 #pf-closed #pf-closed-rows .shr-row:hover {
  border-color: var(--line);
  color: var(--fg);
}

@media (hover: hover) {
  .v2 #pf-closed #pf-closed-rows > tr:not(:hover):not(:focus-within) :is(.shr-row, td:first-child > .sub) {
    opacity: 0;
  }
}

/* the column narrows step by step: «Выведено» (it is in the PnL tooltip), then the held time, then the range */
@container pfclosed (max-width: 900px) {
  .v2 #pf-closed #pf-closed-table :is(th, td):nth-child(5) {
    display: none;
  }

  /* admin «Цикл» column on: the range makes room for it */
  .v2 #pf-closed #pf-closed-table:has(th:nth-child(8):not(.c-act)) :is(th, td):nth-child(3) {
    display: none;
  }
}

@container pfclosed (max-width: 780px) {
  .v2 #pf-closed #pf-closed-rows td:nth-child(2) > .sub {
    display: none;
  }

  .v2 #pf-closed #pf-closed-table th:nth-child(2) {
    width: 96px;
  }
}

@container pfclosed (max-width: 700px) {
  .v2 #pf-closed #pf-closed-table :is(th, td):nth-child(3) {
    display: none;
  }
}

/* phone / a narrow column: one card per position — pair and PnL, then the date and the fees */
@container pfclosed (max-width: 599px) {
  .v2 #pf-closed #pf-closed-table,
  .v2 #pf-closed #pf-closed-table tbody {
    display: block;
  }

  .v2 #pf-closed #pf-closed-table thead {
    display: none;
  }

  .v2 #pf-closed #pf-closed-rows > tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 3px 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--sep);
  }

  .v2 #pf-closed #pf-closed-rows > tr:last-child {
    border-bottom: 0;
  }

  .v2 #pf-closed #pf-closed-rows > tr > td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
  }

  .v2 #pf-closed #pf-closed-rows > tr > td:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1;
    overflow: hidden;
  }

  .v2 #pf-closed #pf-closed-rows .pool {
    display: flex;
    min-width: 0;
  }

  .v2 #pf-closed #pf-closed-rows .pool .tags {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
  }

  .v2 #pf-closed #pf-closed-rows td:first-child > .sub {
    display: none;
  }

  .v2 #pf-closed #pf-closed-rows > tr > td:nth-child(7) {
    grid-column: 3;
    grid-row: 1;
    text-align: right;
  }

  .v2 #pf-closed #pf-closed-rows > tr > td:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    color: var(--muted);
    font-size: 12px;
  }

  .v2 #pf-closed #pf-closed-rows td:nth-child(2) > span:first-child {
    color: var(--muted);
  }

  .v2 #pf-closed #pf-closed-rows > tr > td:nth-child(6) {
    grid-column: 2;
    grid-row: 2;
    color: var(--faint);
    font-size: 12px;
  }

  .v2 #pf-closed #pf-closed-rows > tr > td:nth-child(6)::before {
    content: "· комиссии ";
  }

  .v2 #pf-closed #pf-closed-rows > tr > td.c-act {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
  }

  .v2 #pf-closed #pf-closed-rows .shr-row {
    width: 24px;
    height: 22px;
    opacity: 1;
  }

  .v2 #pf-closed #pf-closed-rows > tr > td:is(:nth-child(3), :nth-child(4), :nth-child(5)),
  .v2 #pf-closed #pf-closed-rows > tr > td:nth-child(8):not(.c-act) {
    display: none;
  }
}

/* ---------- pf-08: one-off view uses the same position cards as the portfolio ---------- */
.v2 #pf-peek .pk-title b {
  color: var(--fg);
}

.v2 #pf-peek .table-card {
  margin-top: 14px;
  border: 0;
  background: none;
}

.v2 #pf-peek .table-scroll {
  overflow: visible;
}

.v2 #pf-peek-table,
.v2 #pf-peek-table tbody {
  display: block;
}

.v2 #pf-peek-table thead {
  display: none;
}

.v2 #pf-peek-table #pf-peek-rows {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-flow: row dense;
  gap: 12px;
}

.v2 #pf-peek-rows > tr:not(.pf-det) {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  box-shadow: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.v2 #pf-peek-rows > tr:not(.pf-det):hover {
  border-color: var(--line2);
  background: var(--card);
}

.v2 #pf-peek-rows > tr.pf-out {
  border-color: rgba(240, 106, 95, 0.45);
}

.v2 #pf-peek-rows > tr.pf-edge {
  border-color: rgba(230, 174, 72, 0.4);
}

.v2 #pf-peek-rows > tr > td {
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 0;
  padding: 10px 16px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none !important;
  text-align: left;
  white-space: nowrap;
}

.v2 #pf-peek-rows > tr > td:nth-child(even of [data-l]) {
  border-left: 1px solid var(--line);
}

.v2 #pf-peek-rows > tr > td[data-l]::before {
  content: attr(data-l);
  display: block;
  margin: 0;
  color: var(--faint);
  font-size: 11px;
  font-weight: 400;
}

.v2 #pf-peek-rows > tr > td .big {
  color: var(--fg);
  font-size: 17px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.v2 #pf-peek-rows > tr > td .sub {
  display: none;
}

.v2 #pf-peek-rows > tr > td.pf-c-pos {
  grid-column: 1 / -1;
  order: -3;
  padding: 14px 92px 6px 16px !important;
  border-top: 0;
}

.v2 #pf-peek-rows .pf-pos {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.v2 #pf-peek-rows .pf-pos .pair {
  overflow: hidden;
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
}

.v2 #pf-peek-rows > tr > td.pf-c-rg {
  grid-column: 1 / -1;
  order: -2;
  padding: 8px 16px 14px;
  border-top: 0;
}

.v2 #pf-peek-rows .pf-c-rg .rv {
  max-width: none;
}

.v2 #pf-peek-rows .pf-c-rg .rv-bar {
  height: 8px;
}

.v2 #pf-peek-rows > tr > td.pf-c-act {
  position: absolute;
  inset: 10px 10px auto auto;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: visible;
}

.v2 #pf-peek-rows .pf-c-act .acts {
  display: flex;
  gap: 4px;
}

.v2 #pf-peek-rows > tr.pf-det {
  display: block;
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}

.v2 #pf-peek-rows > tr.pf-det > td {
  display: block;
  padding: 14px 16px;
  border: 0;
}

.v2 #pf-peek .pf-card.nothing #pf-peek-rows {
  display: none;
}

.v2 #pf-peek .table-card > .empty {
  padding: 18px 2px 4px;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- pf-09: «Действия» as a quiet tape ---------- */
.v2 #pf-feed {
  container: pffeed / inline-size;
}

@media (min-width: 721px) {
  .v2 #pf-feed-table,
  .v2 #pf-feed-table tbody {
    display: block;
  }

  .v2 #pf-feed-table thead {
    display: none;
  }

  .v2 #pf-feed-rows > tr {
    display: grid;
    grid-template-columns: 84px 100px minmax(0, 1fr) 184px 136px auto;
    align-items: center;
    column-gap: 14px;
    padding: 12px 16px;
    border-top: 1px solid var(--sep);
    cursor: pointer;
  }

  /* a narrower card (rail sidebar, pool card docked): two lines — pair · amount, then time · action */
  @container pffeed (max-width: 719px) {
    .v2 #pf-feed-rows > tr {
      grid-template-columns: auto minmax(0, 1fr) auto;
      grid-template-areas: "pos pos sum" "when kind sum";
      row-gap: 5px;
    }

    .v2 #pf-feed-rows > tr > td.pf-c-pos {
      grid-area: pos;
    }

    .v2 #pf-feed-rows > tr > td[data-l] {
      grid-area: sum;
    }

    .v2 #pf-feed-rows > tr > td.pf-c-when {
      display: flex;
      grid-area: when;
      align-items: baseline;
      gap: 6px;
    }

    .v2 #pf-feed-rows > tr > td.pf-c-kind {
      grid-area: kind;
    }

    .v2 #pf-feed-rows > tr > td:is(.pf-c-rg, .pf-c-act) {
      display: none;
    }

    .v2 #pf-feed-rows .pf-c-when .big {
      font-size: 12px;
      color: var(--muted);
    }

    .v2 #pf-feed-rows .fk {
      font-size: 12px;
    }
  }

  .v2 #pf-feed-rows > tr:first-child {
    border-top: 0;
  }

  .v2 #pf-feed-rows > tr:hover {
    background: var(--hover);
  }

  .v2 #pf-feed-rows > tr > td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none !important;
    box-shadow: none !important;
  }

  .v2 #pf-feed-rows > tr > td[data-l] {
    text-align: right;
  }

  .v2 #pf-feed-rows .pf-pos {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 8px;
    min-width: 0;
  }

  .v2 #pf-feed-rows .pf-pos .pair {
    flex: 0 0 100%;
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.v2 #pf-feed-rows > tr.fresh {
  box-shadow: inset 2px 0 0 var(--acc);
}

.v2 #pf-feed-rows > tr.fresh > td:first-child {
  box-shadow: none;
}

.v2 #pf-feed-rows .pf-c-when .big {
  color: var(--fg);
  font: 500 13px var(--num);
}

.v2 #pf-feed-rows .pf-c-when .sub {
  color: var(--faint);
  font-size: 11.5px;
}

.v2 #pf-feed-rows .fk {
  color: var(--fg2);
  font-size: 13px;
  font-weight: 500;
}

.v2 #pf-feed-rows .fk::before {
  width: 6px;
  height: 6px;
  margin-right: 8px;
  vertical-align: 2px;
  background: var(--faint);
}

.v2 #pf-feed-rows .fk.up::before {
  background: var(--up);
}

.v2 #pf-feed-rows .fk.down::before {
  background: var(--down);
}

.v2 #pf-feed-rows .fk.warn::before {
  background: var(--warn);
}

.v2 #pf-feed-rows .fk.accent::before {
  background: var(--acc);
}

.v2 #pf-feed-rows .pf-pos .pair {
  color: var(--fg);
  font-size: 13.5px;
  font-weight: 600;
}

.v2 #pf-feed-rows .pf-c-rg .rv {
  max-width: none;
}

.v2 #pf-feed-rows .pf-c-rg .rv-bar {
  height: 5px;
}

.v2 #pf-feed-rows .pf-c-rg .rv-row {
  font-size: 11.5px;
}

.v2 #pf-feed-rows .pf-was {
  margin-top: 3px;
  color: var(--faint);
  font-size: 11.5px;
}

.v2 #pf-feed-rows td[data-l] .big {
  color: var(--fg);
  font: 600 14px var(--num);
}

.v2 #pf-feed-rows td[data-l] .sub {
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.35;
  white-space: normal;
}

.v2 #pf-feed-rows .acts {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
}

.v2 #pf-feed-rows .acts .act {
  width: 24px;
  height: 22px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 10.5px;
}

.v2 #pf-feed .pf-feed-more {
  border-top: 1px solid var(--sep);
}

/* the wallet by its name only (the address is in its tooltip) */
.v2 #pf-feed-rows .pf-wl:has(b) span {
  display: none;
}

/* ---------- pf-10: details open under the card row, no box in a box; the neighbour card stays beside ---------- */
.v2 #pf-table #pf-rows {
  grid-auto-flow: row dense;
}

/* a taller neighbour (an extra «Цикл» tile) does not stretch this card */
.v2 :is(#pf-rows, #pf-peek-rows) > tr:not(.pf-det) {
  align-self: start;
  align-content: start;
}

/* phone: the old table-to-cards padding goes, so the tiles' hairlines run edge to edge like on desktop */
@media (max-width: 720px) {
  .v2 :is(#pf-rows, #pf-peek-rows) > tr:not(.pf-det) {
    padding: 0;
    gap: 0;
  }

  .v2 :is(#pf-rows, #pf-peek-rows) > tr:not(.pf-det):is(:hover, .open) {
    background: var(--card);
  }
}

.v2 #pf-rows > tr.pf-det {
  margin-top: 0;
  background: var(--card);
}

.v2 #pf-rows > tr.open,
.v2 #pf-peek-rows > tr.open {
  border-color: var(--line2);
}

.v2 :is(#pf-rows, #pf-peek-rows) .pd {
  gap: 10px 28px;
  padding: 0;
  border: 0;
  background: none;
}

.v2 :is(#pf-rows, #pf-peek-rows) .pd-l {
  color: var(--faint);
  font-size: 11px;
}

.v2 :is(#pf-rows, #pf-peek-rows) .pd-v {
  color: var(--fg);
  font-family: var(--num);
}

.v2 :is(#pf-rows, #pf-peek-rows) .pd-v .act {
  border: 0;
  background: none;
  color: var(--muted);
}

.v2 :is(#pf-rows, #pf-peek-rows) .pd-links .btn {
  height: 28px;
  border-color: var(--sep);
  color: var(--muted);
  font-size: 12.5px;
}

.v2 :is(#pf-rows, #pf-peek-rows) .pd-links .btn:hover {
  border-color: var(--line2);
  color: var(--fg);
}

/* ---------- pf-11: wallet ⋯ menu — items only, the red «Убрать», inside the wallets card ---------- */
.v2 .pf-wmenu {
  width: 252px;
}

.v2 .pf-wmenu .wm-i .muted.small {
  display: none;
}

.v2 .pf-wmenu .wm-i {
  align-content: center;
  min-height: 36px;
  padding: 0 12px;
}

.v2 .pf-wmenu .wm-h .mono {
  color: var(--muted);
  font-family: var(--num);
}

.v2 .pf-wmenu .wm-row .btn.wm-danger {
  border-color: color-mix(in srgb, var(--down) 45%, transparent);
  background: var(--down-bg);
  color: var(--down);
}

.v2 .pf-wmenu .wm-q {
  font-size: 13px;
}

/* ---------- pf-12: panel headers on one line; the status sentence goes to the title's tooltip ---------- */
.v2 :is(#pf-closed, #pf-peek) .pk-head {
  flex-wrap: nowrap;
  align-items: center;
}

.v2 :is(#pf-closed, #pf-peek) .pk-head .pk-title {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
}

.v2 :is(#pf-closed, #pf-peek) .pk-head .pk-title > b {
  flex: none;
  white-space: nowrap;
}

.v2 :is(#pf-closed, #pf-peek) .pk-head .pk-title .mono {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2 :is(#pf-closed, #pf-peek) .pk-head > span.muted:not(.wait) {
  display: none;
}

.v2 :is(#pf-closed, #pf-peek) .pk-head > .btn.small {
  flex: none;
}

.v2 #pf-closed .pk-head [data-cl="share-all"] {
  width: 30px;
  padding: 0;
  justify-content: center;
  font-size: 0;
}

.v2 #pf-closed .pk-head [data-cl="share-all"] svg {
  margin: 0;
}

.v2 .pk-title .mono {
  font-family: var(--sans);
}

/* the chain in a panel title: its name in its colour, no box (as on the cards) */
.v2 :is(#pf-closed, #pf-peek, #pf-cycle) .pk-title .b {
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  font-size: 12px;
  font-weight: 600;
}

.v2.t-light :is(#pf-closed, #pf-peek, #pf-cycle) .pk-title .b {
  filter: brightness(0.7) saturate(1.5);
}

.v2 .pk-note:has(.warn) {
  margin-top: 10px;
  font-size: 0;
}

.v2 .pk-note .warn {
  font-size: 12px;
}

/* (no container on .pf2-main: it holds the fixed wallet menu, which a container would anchor to itself) */
.v2 #pf-peek {
  container: pfpeek / inline-size;
}

@container pfclosed (max-width: 700px) {
  .v2 #pf-closed .pk-head {
    flex-wrap: wrap;
  }

  .v2 #pf-closed .pk-head .pk-title {
    flex: 1 1 100%;
  }
}

@container pfpeek (max-width: 700px) {
  .v2 #pf-peek .pk-head {
    flex-wrap: wrap;
  }

  .v2 #pf-peek .pk-head .pk-title {
    flex: 1 1 100%;
  }
}

/* ---------- pf-13: share window chrome — no note, a switch, quiet secondary buttons ---------- */
.v2 .shr {
  background: var(--scrim);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.v2 .shr-box {
  border: 0;
  border-radius: 16px;
  background: var(--elev);
  box-shadow: var(--shadow);
}

.v2 .shr .shr-head .muted {
  display: none;
}

.v2 .shr-head {
  align-items: center;
}

.v2 .shr-head b {
  font-size: 15px;
  font-weight: 600;
}

.v2 .shr-opts {
  justify-content: space-between;
}

.v2 .shr-hide {
  gap: 9px;
  color: var(--fg2);
  font-size: 13px;
}

.v2 .shr-acts {
  justify-content: flex-end;
  gap: 8px;
}

.v2 .shr-acts .btn {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 16px;
}

.v2 .shr-acts .btn:not(.primary) {
  border-color: var(--line);
  background: none;
  color: var(--fg2);
}

.v2 .shr-acts .btn:not(.primary):hover {
  border-color: var(--line2);
  color: var(--fg);
}

@media (max-width: 520px) {
  .v2 .shr-acts .btn {
    flex: 1 1 auto;
    padding: 0 10px;
  }
}

/* («Это мой кошелёк» and «Скрыть суммы» are the shared switch, top of Round 9) */

/* ---------- pf-14: add-wallet form — plain placeholder, a switch, chain dots, no note ---------- */
.v2 #pf-addr {
  font-family: var(--sans);
}

.v2 #pf-addr:not(:placeholder-shown) {
  font-family: var(--num);
}

.v2 #pf-menu .tgl {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--fg2);
  font-size: 13px;
}

.v2 #pf-wlist > p.muted:first-child {
  display: none;
}

.v2 #pf-menu .pm-h {
  margin-top: 6px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.v2 #pf-menu .pa-wl .wi {
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border-radius: 50%;
  background: #8c9df0;
}

.v2 #pf-menu .pa-wl .wi.sol {
  background: #a77bff;
}

/* ---------- pf-15: calendar summary on one line per figure, empty days quiet, no note, whole dollars ---------- */
.v2 .cl-kpis span:has(> b ~ b) > b ~ b {
  display: inline;
  margin: 0;
  color: var(--fg2);
  font-size: inherit;
  font-weight: 500;
  letter-spacing: 0;
}

.v2 .cl-d.zero {
  background: none;
  box-shadow: inset 0 0 0 1px var(--sep);
}

.v2 .cl-d.zero .cl-dv {
  visibility: hidden;
}

.v2 .cl-days .cl-kpis > span.muted:not(:only-child) {
  display: none;
}

.v2 .cl-d .cl-full {
  display: none;
}

.v2 .cl-d .cl-short {
  display: inline;
}

/* ---------- pf-16: the «В диапазоне» tile shows that the out-of-range filter is on ---------- */
.v2 .pf2-main #pf-kpis .ps-rg:not(:disabled) {
  cursor: pointer;
}

.v2 .pf2-main #pf-kpis .ps-rg:not(:disabled):hover {
  background: var(--hover);
}

.v2 .pf2-main #pf-kpis .ps-rg.on,
.v2 .pf2-main #pf-kpis .ps-rg.on:hover {
  background: var(--down-bg);
  box-shadow: inset 2px 0 0 var(--down);
}

.v2 .pf2-main #pf-kpis .ps-rg.on .ps-pill {
  border-color: var(--down);
  background: var(--down);
  color: #fff;
}

/* ---------- pf-18: a narrow column (pool card docked) — the summary stacks; wallets step aside ---------- */
@media (min-width: 1280px) {
  .v2.v2-drawer #tab-portfolio .pf2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .v2.v2-drawer #tab-portfolio .pf2-side {
    display: none;
  }

  .v2.v2-drawer .pf2-main #pf-kpis {
    grid-template-columns: minmax(0, 1fr);
  }

  .v2.v2-drawer .pf2-main #pf-kpis .ps {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .v2.v2-drawer .pf2-main #pf-kpis .ps:first-child {
    grid-row: auto;
    padding: 18px 18px 16px;
    border-top: 0;
  }

  .v2.v2-drawer .pf2-main #pf-kpis .ps:first-child .ps-v {
    font-size: 44px;
  }

  .v2.v2-drawer .pf2-main .pf-tools {
    flex-wrap: wrap;
  }

  .v2.v2-drawer .pf2-main .pf-tools .pf-q {
    flex: 1 1 100%;
    max-width: none;
    margin-left: 0;
  }
}

/* a two-column page that is still narrow (rail sidebar, 901–1000 px): the summary stacks too */
@media (min-width: 901px) and (max-width: 1000px) {
  .v2 .pf2-main #pf-kpis {
    grid-template-columns: minmax(0, 1fr);
  }

  .v2 .pf2-main #pf-kpis .ps {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .v2 .pf2-main #pf-kpis .ps:first-child {
    grid-row: auto;
    border-top: 0;
  }
}

/* ---------- pf-19: every figure in Geist ---------- */
.v2 :is(#pf-closed .rg-row span, #pf-closed td .sub .mono, #pf-rows .pf-wl span, #pf-peek-rows .pf-wl span, #pf-feed-rows .pf-wl span,
  .pd-v .mono, .pf-wmenu .wm-h .mono, .pf2-side .wp-n, #pf-feed-rows .rv-row, #pf-feed-rows .pf-was, .cl-dn, .cl-mtot b, .cl-pick b) {
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ---------- pf-20: phone sort control in the new style ---------- */
.v2 #pf-sort {
  -webkit-appearance: none;
  appearance: none;
  height: 34px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card) var(--chev) no-repeat right 12px center / 10px 6px;
  color: var(--fg);
  font-size: 13px;
}

.v2 #pf-sort-dir {
  width: 34px;
  height: 34px;
  padding: 0;
  justify-content: center;
  border-color: var(--line);
  border-radius: 999px;
}

/* ---------- pf-21: position cards — chain · venue · fee as quiet text, the wallet without a box ---------- */
.v2 :is(#pf-rows, #pf-peek-rows, #pf-feed-rows) .pf-meta {
  align-items: baseline;
  gap: 0 6px;
}

.v2 :is(#pf-rows, #pf-peek-rows, #pf-feed-rows) .pf-meta .b {
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  font-size: 11.5px;
  font-weight: 500;
}

.v2 :is(#pf-rows, #pf-peek-rows, #pf-feed-rows) .pf-meta .b:not(:first-child) {
  color: var(--faint);
}

.v2 :is(#pf-rows, #pf-peek-rows, #pf-feed-rows) .pf-meta .b + .b::before {
  content: "·";
  margin-right: 6px;
  color: var(--faint);
}

/* the first tag is the chain: its own colour (app.js paints .b.<chain>), bold, like the board's chain mark */
.v2 :is(#pf-rows, #pf-peek-rows, #pf-feed-rows) .pf-meta .b:first-child {
  font-weight: 600;
}

.v2 :is(#pf-rows, #pf-peek-rows, #pf-feed-rows) .pf-meta .b.eth:first-child {
  color: #8c9df0;
}

.v2 :is(#pf-rows, #pf-peek-rows, #pf-feed-rows) .pf-meta .b.rh:first-child {
  color: #c8f24c;
}

/* light theme: chain colours are made for a dark page — darker, so they read on white */
.v2.t-light :is(#pf-rows, #pf-peek-rows, #pf-feed-rows) .pf-meta .b:first-child {
  filter: brightness(0.7) saturate(1.5);
}

.v2 :is(#pf-rows, #pf-peek-rows, #pf-feed-rows) .pf-wl {
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
}

.v2 :is(#pf-rows, #pf-peek-rows, #pf-feed-rows) .pf-wl b {
  font-size: 12px;
  font-weight: 500;
}

.v2 :is(#pf-rows, #pf-peek-rows, #pf-feed-rows) .pf-wl span {
  color: var(--faint);
  font-size: 11px;
}

.v2 :is(#pf-rows, #pf-peek-rows, #pf-feed-rows) .pf-wl:hover b {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- pf-22: no positions — no summary of zeros, no share or search ---------- */
/* (#pf-empty starts with a <b> exactly when the scope has no positions; «nothing matches» has the reset link instead) */
.v2.v2-pf-none .pf2-main :is(#pf-kpis, #pf-share, .pf-q, #pf-sortm) {
  display: none !important;
}

/* ---------- R9 · alerts, blacklist, API: quiet history and channel cards, rules as one list, the chain switch keeps its
 * action, one-line empties, blacklist and keys as cards on the phone, charts in the accent and greys (AL/BL/API/EMP-xx) ---------- */

/* ---------- alerts: status pills (AL-13, FONT-01) ---------- */

.v2 #al-kpis .ps .ps-v {
  font-family: var(--num);
}

.v2 #al-kpis .al-st.none {
  color: var(--faint);
  font-weight: 500;
}

.v2 #al-kpis .al-st.ok {
  color: var(--fg2);
  font-weight: 500;
}

/* ---------- alerts: one line instead of the «connect Telegram» box (AL-05) ---------- */

.v2 #al-hero:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-items: stretch;
  gap: 10px 14px;
  margin: 0 0 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  text-align: left;
}

.v2 #al-hero p {
  display: none;
}

.v2 #al-hero > b {
  flex: 1 1 260px;
  min-width: 0;
  color: var(--fg);
  font-size: 13.5px;
  font-weight: 500;
}

.v2 #al-hero .row {
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
}

.v2 #al-hero .btn {
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
}

.v2 #al-hero .btn:not(.primary) {
  border-color: var(--sep);
  color: var(--fg2);
}

/* ---------- alerts: the chain switch as the pools' segment, its action kept, its explanation gone (AL-01, AL-08) ---------- */

.v2 #prefs-card .al-nets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 18px;
  margin: 0 0 2px;
  padding: 0;
  border: 0;
}

.v2 #prefs-card .al-net-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
}

.v2 #prefs-card .al-net {
  height: 28px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.v2 #prefs-card .al-net:hover {
  color: var(--fg);
}

.v2 #prefs-card .al-net.on {
  background: var(--card3);
  color: var(--fg);
}

.v2 #prefs-card .al-net.own::after {
  top: 5px;
  right: 4px;
  background: var(--acc);
}

.v2 #prefs-card .al-net-row .al-net-more {
  height: 28px;
  padding: 0 26px 0 10px;
  border: 0;
  border-radius: 6px;
  background: var(--chev) right 9px center / 9px 6px no-repeat;
  color: var(--muted);
  font-size: 13px;
  appearance: none;
  -webkit-appearance: none;
}

/* v2.css hides every .al-note with !important; here only the text goes, the button stays */
.v2 #prefs-card .al-nets .al-note:has(.btn) {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0;
  line-height: 1;
}

.v2 #prefs-card .al-nets .al-note:has([data-act="al-own"])::before {
  content: "действуют общие";
  color: var(--faint);
  font-size: 12.5px;
}

.v2 #prefs-card .al-nets .al-note:has([data-act="al-common"])::before {
  content: "свои настройки сети";
  color: var(--faint);
  font-size: 12.5px;
}

.v2 #prefs-card .al-nets .al-note .btn,
.v2 #prefs-card .al-nets .al-note .btn:hover {
  height: 30px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--line2);
  background: none;
  box-shadow: none;
  color: var(--fg2);
  font-size: 12.5px;
  font-weight: 500;
}

.v2 #prefs-card .al-nets .al-note .btn:hover {
  border-color: var(--faint);
  background: var(--fill2);
  color: var(--fg);
}

.v2 #prefs-card .al-nets .al-note .btn::after {
  display: none;
}

/* ---------- alerts: rules as one even list, one quiet «on» cue (AL-09, AL-10, AL-11) ---------- */

.v2 #prefs-card:has(.al-r) {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.v2 #prefs-card .al-rh {
  min-height: 58px;
  padding: 11px 16px;
}

.v2 #prefs-card .al-r:has(> .al-rh input:checked) {
  border-color: var(--line);
  background: var(--card);
}

.v2 #prefs-card .al-r:has(> .al-rh input:checked):hover,
.v2 #prefs-card .al-r.open:has(> .al-rh input:checked) {
  border-color: var(--line2);
}

.v2 #prefs-card .al-r.off .al-rt b {
  color: var(--fg2);
}

.v2 #prefs-card .al-r.open .al-rs,
.v2 #prefs-card .al-hint {
  display: none;
}

/* a warning shows as a dot on a folded rule; the text only in the opened one, under its fields */
.v2 #prefs-card .al-r:not(.open) > .al-warn {
  display: none;
}

.v2 #prefs-card .al-r:not(.open):has(> .al-warn:not([hidden])) .al-rt b::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--warn);
  vertical-align: 2px;
}

.v2 #prefs-card .al-r.open > .al-warn {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 12.5px;
}

/* selects in an opened rule and the digest hour: pills like the chips beside them */
.v2 #prefs-card .al-rb .al-sel,
.v2 #prefs-card .al-rh > .al-sel {
  height: 30px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--chev) right 12px center / 10px 6px no-repeat;
  color: var(--fg2);
  font-size: 12.5px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.v2 #prefs-card .al-rb .al-sel:hover,
.v2 #prefs-card .al-rh > .al-sel:hover {
  border-color: var(--line2);
  color: var(--fg);
}

.v2 #prefs-card .al-rb .al-sel:focus-visible,
.v2 #prefs-card .al-rh > .al-sel:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

/* ---------- alerts: history as quiet lines (AL-02, AL-04, AL-14, EMP-01) ---------- */

.v2 #my-alerts .al-grid thead {
  display: none;
}

.v2 #my-alerts .al-grid tbody tr[data-al] td {
  padding-top: 11px;
  padding-bottom: 11px;
  vertical-align: middle;
}

.v2 #my-alerts .al-grid tbody tr.fresh td:first-child,
.v2 #my-alerts .al-grid tbody tr[data-al].fresh {
  box-shadow: none;
}

.v2 #my-alerts .al-grid td.al-c-when {
  padding-left: 24px;
  white-space: nowrap;
}

.v2 #my-alerts .al-c-when > span:first-child {
  color: var(--fg2);
  font-size: 12.5px;
}

.v2 #my-alerts tr.fresh .al-c-when > span:first-child::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 6px 0 -12px;
  border-radius: 50%;
  background: var(--acc);
  vertical-align: 2px;
}

.v2 #my-alerts .al-ago {
  color: var(--faint);
  font-size: 11.5px;
}

.v2 #my-alerts .al-grid td.al-c-kind {
  padding-right: 20px;
}

.v2 #my-alerts .fk {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 400;
}

.v2 #my-alerts .fk::before {
  width: 6px;
  height: 6px;
  margin-right: 8px;
  background: var(--faint);
}

.v2 #my-alerts .fk.accent::before,
.v2 #my-alerts .fk.iss::before {
  background: var(--acc);
}

.v2 #my-alerts .fk.down::before {
  background: var(--down);
}

.v2 #my-alerts .fk.up::before {
  background: var(--up);
}

.v2 #my-alerts .fk.warn::before {
  background: var(--warn);
}

.v2 #my-alerts .al-m1 {
  color: var(--fg);
  font-size: 13.5px;
}

.v2 #my-alerts .al-m1 b {
  font-weight: 600;
}

.v2 #my-alerts .al-m2 {
  color: var(--muted);
}

.v2 #my-alerts .al-m2 b {
  color: var(--fg2);
  font-weight: 500;
}

.v2 #my-alerts .al-grid tbody tr.open td,
.v2 #my-alerts .al-grid tbody tr.al-det td,
.v2 #my-alerts .al-grid tbody tr.al-det:hover td {
  background: var(--card2);
}

.v2 #my-alerts .al-grid tbody tr.al-det td {
  padding: 0 24px 14px;
}

.v2 #my-alerts .al-dm {
  gap: 10px;
  padding: 2px 0 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.v2 #my-alerts .al-dm pre {
  color: var(--fg2);
  font-family: var(--sans);
  font-size: 12.5px;
}

.v2 #my-alerts .al-dm .btn {
  height: 28px;
  padding: 0 11px;
  border-color: var(--sep);
  color: var(--fg2);
  font-size: 12.5px;
}

/* empty history: one short line */
.v2 #my-alerts .al-empty {
  gap: 0;
  padding: 28px 16px;
}

.v2 #my-alerts .al-empty::before {
  display: none;
}

.v2 #my-alerts .al-empty b {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 400;
}

/* ---------- alerts: channel cards (AL-03, AL-06, AL-12) ---------- */

/* the Round 8 quiet-button rule must not grey the one orange button */
.v2 #al-ch .al-chh .btn.small.primary {
  border: 0;
  color: #fff;
}

/* «Подключить Pushover» is secondary: one orange button per screen */
.v2 #po-card .al-chh .btn.primary[data-act="po-open"],
.v2 #po-card .al-chh .btn.primary[data-act="po-open"]:hover {
  border: 1px solid var(--line2);
  background: none;
  box-shadow: none;
  color: var(--fg);
  font-weight: 500;
}

.v2 #po-card .al-chh .btn.primary[data-act="po-open"]::after {
  display: none;
}

/* the cards keep their state lines; the marketing paragraphs and the numbered steps go */
.v2 #al-ch .al-chc > p:not([class]),
.v2 #tg-card .steps {
  display: none;
}

.v2 #al-ch .al-chc > p.muted {
  margin: 8px 0 0 42px;
  color: var(--faint);
  font-size: 12.5px;
}

/* status badges in the card titles: a dot when fine, quiet text otherwise */
.v2 #al-ch .al-chh h3 .b {
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--faint);
  font-size: 12px;
  font-weight: 400;
}

.v2 #al-ch .al-chh h3 .b.st-out {
  color: var(--danger);
}

.v2 #al-ch .al-chh h3 .b.st-in {
  display: inline-block;
  flex: none;
  width: 6px;
  height: 6px;
  min-width: 0;
  border-radius: 50%;
  background: var(--up);
  font-size: 0;
}

/* Pushover key form: one line of help (the pushover.net link), fields and buttons in one row */
.v2 #po-card .steps {
  margin: 8px 0 0 42px;
  padding: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  list-style: none;
}

.v2 #po-card .steps li:not(:nth-child(2)) {
  display: none;
}

.v2 #po-card .steps b {
  color: var(--fg2);
  font-weight: 500;
}

.v2 #po-card .steps a {
  color: var(--acc);
}

.v2 #po-card:has(.po-form) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 10px;
}

.v2 #po-card:has(.po-form) > * {
  grid-column: 1 / -1;
}

.v2 #po-card:has(.po-form) > .al-chh {
  grid-row: 1;
}

.v2 #po-card:has(.po-form) > .steps {
  grid-row: 2;
}

.v2 #po-card:has(.po-form) > .po-form {
  grid-row: 3;
  grid-column: 1;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 8px;
  margin: 14px 0 0;
}

.v2 #po-card:has(.po-form) > .row {
  grid-row: 3;
  grid-column: 2;
  display: flex;
  gap: 6px;
  margin: 0;
}

.v2 #po-card:has(.po-form) > #po-err {
  grid-row: 4;
}

.v2 #po-card .po-form .pf-field {
  color: var(--faint);
  font-size: 11.5px;
}

.v2 #po-card .po-form input {
  height: 34px;
  font-family: var(--num);
}

.v2 #po-card:has(.po-form) > .row .btn {
  height: 34px;
}

.v2 #po-card #po-err {
  margin: 8px 0 0;
  color: var(--down);
  font-size: 12px;
}

/* linked Pushover: the emergency level is a dot, not two orange frames; no repeat note */
.v2 #po-card .po-k.em {
  border-color: var(--sep);
}

.v2 #po-card .po-k.em select {
  border-color: var(--line);
}

.v2 #po-card .po-k.em > span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--acc);
  vertical-align: 2px;
}

.v2 #po-card #po-reps {
  display: none;
}

.v2 #po-card .al-sec .al-sh:not(:first-child) {
  margin-top: 22px;
}

.v2 #al-ch select {
  padding-right: 28px;
  background: var(--card2) var(--chev) right 11px center / 10px 6px no-repeat;
  appearance: none;
  -webkit-appearance: none;
}

/* the rarely used Pushover actions under ⋯ (v2.js moves them, inside #po-card) */
.v2 #po-card:has(.abl-more) {
  overflow: visible;
}

.v2 #po-card .abl-more {
  position: relative;
  display: inline-flex;
}

.v2 #po-card .abl-more-b {
  width: 30px;
  padding: 0;
  justify-content: center;
  letter-spacing: 0.05em;
}

.v2 #po-card .abl-more-m {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  right: 0;
  display: none;
  flex-direction: column;
  gap: 2px;
  min-width: 200px;
  padding: 6px;
  border-radius: 12px;
  background: var(--pop);
  box-shadow: var(--shadow);
}

.v2 #po-card .abl-more.open .abl-more-m {
  display: flex;
}

.v2 #al-ch .al-chh .abl-more-m .btn.small {
  justify-content: flex-start;
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--fg);
  font-size: 13.5px;
  white-space: nowrap;
}

.v2 #al-ch .al-chh .abl-more-m .btn.small:hover {
  background: var(--fill2);
}

.v2 #al-ch .al-chh .abl-more-m .btn.blk {
  color: var(--danger);
}

/* ---------- blacklist (BL-01, BL-02, EMP-01) ---------- */

.v2 #tab-blacklist .table-card:has(#bl-empty:not([hidden])) .table-scroll {
  display: none;
}

.v2 #bl-empty {
  padding: 28px 16px;
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}

.v2 #bl-rows td {
  vertical-align: middle;
}

.v2 #bl-rows td:first-child {
  white-space: nowrap;
}

.v2 #bl-rows td:first-child .b {
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 400;
}

.v2 #bl-rows td:first-child .b:first-child {
  color: var(--fg2);
  font-weight: 500;
}

.v2 #bl-rows td:first-child .b + .b::before {
  content: "·";
  margin-right: 5px;
  color: var(--faint);
}

.v2 #bl-rows td.mono {
  position: relative;
  color: var(--fg2);
  font-family: var(--num);
  white-space: nowrap;
}

.v2 #bl-rows td.mono a {
  color: inherit;
}

/* the copy button sits after the address without lifting it off the row's baseline */
.v2 #bl-rows .act[data-act="copy"] {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  margin-left: 4px;
  border: 0;
  background: none;
  color: var(--muted);
  opacity: 0;
  transform: translateY(-50%);
}

.v2 #bl-rows tr:hover .act[data-act="copy"],
.v2 #bl-rows .act[data-act="copy"]:focus-visible {
  opacity: 1;
}

.v2 #bl-rows .btn[data-act="unblock"] {
  border-color: transparent;
  color: var(--fg2);
}

.v2 #bl-rows tr:hover .btn[data-act="unblock"],
.v2 #bl-rows .btn[data-act="unblock"]:focus-visible {
  border-color: var(--line2);
  color: var(--fg);
}

@media (hover: none) {
  .v2 #bl-rows .act[data-act="copy"] {
    opacity: 0.7;
  }

  .v2 #bl-rows .btn[data-act="unblock"] {
    border-color: var(--line2);
  }
}

/* ---------- API: keys table, cards, KPIs (API-04, API-05) ---------- */

.v2 #tab-api .ua-card h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
}

.v2 #api-made {
  border-color: var(--line2);
}

@media (min-width: 1360px) {
  .v2 #tab-api th.api-act,
  .v2 #tab-api td.api-act {
    position: static;
    background: none;
    box-shadow: none;
  }
}

.v2 #api-rows .btn[data-act] {
  border-color: transparent;
  color: var(--fg2);
}

.v2 #api-rows tr:hover .btn[data-act],
.v2 #api-rows .btn[data-act]:focus-visible {
  border-color: var(--line2);
  color: var(--fg);
}

@media (hover: none) {
  .v2 #api-rows .btn[data-act] {
    border-color: var(--line2);
  }
}

.v2 #as-key {
  width: auto;
  max-width: 260px;
  height: 32px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card) var(--chev) right 12px center / 10px 6px no-repeat;
  color: var(--fg2);
  font-size: 13px;
  appearance: none;
  -webkit-appearance: none;
}

.v2 #as-card .as-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 28px;
}

.v2 #as-card .as-kpi > span {
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0;
  text-transform: none;
}

.v2 #as-card .as-kpi.warn > b {
  color: var(--fg);
}

.v2 #as-card .as-kpi > b small {
  color: var(--faint);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}

/* ---------- API: charts in one accent and greys (API-02, API-06) ---------- */

.v2 #as-card .as-seg {
  stroke: color-mix(in srgb, var(--fg) 14%, var(--card)) !important;
}

.v2 #as-card .as-lg li i {
  background: color-mix(in srgb, var(--fg) 14%, var(--card)) !important;
}

.v2 #as-card .as-seg[data-i="0"],
.v2 #as-card .as-lg li[data-i="0"] i {
  stroke: var(--acc) !important;
  background: var(--acc) !important;
}

.v2 #as-card .as-seg[data-i="1"],
.v2 #as-card .as-lg li[data-i="1"] i {
  stroke: color-mix(in srgb, var(--acc) 62%, var(--card)) !important;
  background: color-mix(in srgb, var(--acc) 62%, var(--card)) !important;
}

.v2 #as-card .as-seg[data-i="2"],
.v2 #as-card .as-lg li[data-i="2"] i {
  stroke: color-mix(in srgb, var(--acc) 34%, var(--card)) !important;
  background: color-mix(in srgb, var(--acc) 34%, var(--card)) !important;
}

.v2 #as-card .as-seg[data-i="3"],
.v2 #as-card .as-lg li[data-i="3"] i {
  stroke: color-mix(in srgb, var(--fg) 42%, var(--card)) !important;
  background: color-mix(in srgb, var(--fg) 42%, var(--card)) !important;
}

.v2 #as-card .as-seg[data-i="4"],
.v2 #as-card .as-lg li[data-i="4"] i {
  stroke: color-mix(in srgb, var(--fg) 26%, var(--card)) !important;
  background: color-mix(in srgb, var(--fg) 26%, var(--card)) !important;
}

.v2 #as-card .as-chip i {
  background: var(--muted) !important;
}

.v2 #as-card .as-bar.ok > div i,
.v2 #as-card .as-share > div i {
  background: var(--muted);
}

.v2 #as-card .as-col .as-b {
  fill: var(--fg2);
  opacity: 0.38;
}

.v2 #as-card .as-col:not(.fut):has(+ .as-col.fut) .as-b,
.v2 #as-card .as-col:last-child:not(.fut) .as-b {
  fill: var(--acc);
  opacity: 0.85;
}

.v2 #as-card .as-tl .as-col:hover .as-b {
  fill: var(--acc);
  opacity: 1;
}

.v2 #as-card .as-y span.abl-dup {
  display: none;
}

.v2 #as-card .as-heat {
  gap: 2px;
}

.v2 #as-card .as-hr {
  gap: 2px;
}

.v2 #as-card .as-hr > i {
  height: 13px;
  border-radius: 2px;
  background: var(--fill2);
}

.v2 #as-card .as-hr > i b {
  background: color-mix(in srgb, var(--acc) 66%, transparent);
}

/* ---------- API: «why the errors» under a route row (API-01) ---------- */

.v2 #as-card tr.as-why {
  display: table-row !important;
}

.v2 #as-card .as-rt tr.as-why > td {
  padding: 0 14px 10px;
  background: var(--card2);
}

.v2 #as-card .as-why-in {
  padding: 2px 0 2px;
}

.v2 #as-card .as-why-in li {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 8px 0;
  border-bottom-color: var(--sep);
}

/* the main reason's row carries class «main», which v2.css also uses for the page column */
.v2 #as-card .as-why-in li.main {
  min-height: 0;
  margin: 0;
  padding: 8px 0;
  overflow: visible;
  transition: none;
}

.v2 #as-card .as-why-in li.main > * {
  max-width: none;
  margin-inline: 0;
}

.v2 #as-card .as-why-n b {
  font-size: 14px;
  font-weight: 600;
}

.v2 #as-card .as-why-n em {
  color: var(--faint);
  font-size: 11.5px;
}

.v2 #as-card .as-why-t p,
.v2 #as-card .as-main {
  display: none;
}

.v2 #as-card .as-why-t b {
  color: var(--fg);
  font-size: 13px;
  font-weight: 500;
}

.v2 #as-card .as-why-t code {
  margin-top: 2px;
  padding: 0;
  background: none;
  color: var(--faint);
  font-size: 11.5px;
}

.v2 #as-card .as-code {
  padding: 0;
  background: none;
  font-size: 12px;
  font-weight: 600;
}

/* ---------- API: the reference reads as a document (API-03) ---------- */

.v2 .api-doc > p,
.v2 .api-doc .api-fields,
.v2 .api-doc > .api-dl {
  max-width: 820px;
}

.v2 .api-doc > p,
.v2 .api-doc .api-fields {
  color: var(--fg2);
  font-size: 13px;
  line-height: 1.65;
}

.v2 .api-doc .api-dl {
  display: block;
}

.v2 .api-doc .api-dl dt {
  margin: 18px 0 4px;
  color: var(--fg);
  font-size: 12.5px;
  white-space: normal;
}

.v2 .api-doc .api-dl dt:first-child {
  margin-top: 6px;
}

.v2 .api-doc .api-dl dd {
  margin: 0;
  color: var(--fg2);
  font-size: 13px;
  line-height: 1.6;
}

.v2 .api-doc h4 {
  margin: 30px 0 8px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.v2 .api-doc code {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--fill2);
  color: var(--fg2);
  font-weight: 500;
}

.v2 .api-doc :is(dt, h4) code {
  padding: 0;
  background: none;
  color: var(--fg);
  letter-spacing: 0;
  text-transform: none;
}

.v2 .api-doc .api-pre {
  border-color: var(--sep);
  background: var(--card2);
  color: var(--fg2);
}

.v2 .api-doc pre,
.v2 .api-doc code,
.v2 .api-key code {
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "calt" 0;
}

/* ---------- every figure in Geist (FONT-01) ---------- */

.v2 :is(#prefs-card .al-in input, #prefs-card .al-rm, #prefs-card .al-sel, #my-alerts .al-c-when > span:first-child, #al-ch .al-chm,
  #po-card .po-ih .muted, #po-card .po-is .fk, #po-card select, #api-rps, #api-conns, #as-key,
  #as-card .as-y span, #as-card .as-x span, #as-card .as-hx em, #as-card .as-mid b, #as-card .as-lg b, #as-card .as-lg em,
  #as-card .as-bar em, #as-card .as-bar b, #as-card h4 small, #as-card .as-why-n b, #as-card .as-why-n em,
  #as-card .as-code, #as-card .as-chip b, #as-card .as-share em, #as-period button, #as-card .as-rt h4 [data-unused]) {
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
}

/* ---------- phone (AL-07, PH-01, BL-01) ---------- */

@media (max-width: 767px) {
  /* selects keep the 16px that stops iOS zoom, the box grows to fit it */
  .v2 #prefs-card .al-f .al-sel {
    width: 100%;
    max-width: none;
    height: 36px;
  }

  .v2 #prefs-card .al-rh > .al-sel {
    min-width: 132px;
    max-width: none;
    height: 34px;
  }

  .v2 #prefs-card .al-nets .al-note:has(.btn) {
    flex-wrap: wrap;
  }

  .v2 #al-hero .row {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .v2 #my-alerts .al-grid tbody tr[data-al] td,
  .v2 #my-alerts .al-grid td.al-c-when,
  .v2 #my-alerts .al-grid td.al-c-kind {
    padding: 0;
  }

  .v2 #my-alerts tr.fresh .al-c-when > span:first-child::before {
    margin-left: 0;
  }

  .v2 #my-alerts .al-grid tbody tr.al-det td {
    padding: 0 12px 12px;
  }

  .v2 #al-ch .al-chc > p.muted {
    margin-left: 0;
  }

  .v2 #po-card .po-kinds {
    grid-template-columns: minmax(0, 1fr);
  }

  .v2 #po-card .po-k {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .v2 #po-card .po-k select {
    width: 100%;
  }

  .v2 #po-card .po-it {
    flex-wrap: wrap;
    row-gap: 2px;
  }

  .v2 #po-card .po-is {
    flex: 1 1 100%;
  }

  .v2 #po-card .steps {
    margin-left: 0;
  }

  .v2 #po-card:has(.po-form) {
    display: block;
  }

  .v2 #po-card:has(.po-form) > .po-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .v2 #po-card:has(.po-form) > .row {
    margin-top: 10px;
  }

  .v2 #al-feed .pf-tools {
    max-width: 100%;
  }

  .v2 #al-ff {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .v2 #al-ff button {
    gap: 5px;
    padding: 0 8px;
    font-size: 12.5px;
  }

  /* blacklist: one card per entry — name and «Вернуть» on top, chain · kind · address, then reason · date */
  .v2 #tab-blacklist .grid thead {
    display: none;
  }

  .v2 #tab-blacklist .grid,
  .v2 #tab-blacklist .grid tbody {
    display: block;
    width: 100%;
  }

  .v2 #bl-rows tr {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 6px;
    row-gap: 3px;
    padding: 12px 104px 12px 14px;
    border-bottom: 1px solid var(--sep);
  }

  .v2 #bl-rows tr:last-child {
    border-bottom: 0;
  }

  .v2 #bl-rows td,
  .v2 #bl-rows tr:hover td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
  }

  /* the lines: name / chain · kind · address / reason · date (the empty ::before breaks the line) */
  .v2 #bl-rows tr::before {
    content: "";
    order: 2;
    flex: 0 0 100%;
    height: 0;
  }

  .v2 #bl-rows td:nth-child(2) {
    order: 0;
    flex: 0 0 100%;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .v2 #bl-rows td:nth-child(1) {
    order: 1;
    flex: none;
  }

  .v2 #bl-rows td:nth-child(3) {
    order: 1;
    flex: 0 1 auto;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
  }

  .v2 #bl-rows td:nth-child(4),
  .v2 #bl-rows td:nth-child(6) {
    order: 3;
    color: var(--faint);
    font-size: 12px;
    white-space: nowrap;
  }

  /* the date first, then the reason fills what is left of the line (cut with … when long) */
  .v2 #bl-rows td:nth-child(6) {
    flex: none;
  }

  .v2 #bl-rows td:nth-child(4) {
    order: 4;
    flex: 1 1 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .v2 #bl-rows td:nth-child(4)::before {
    content: "· ";
  }

  .v2 #bl-rows td:nth-child(5) {
    display: none;
  }

  .v2 #bl-rows td.c-act {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
  }

  .v2 #bl-rows td:first-child .b {
    font-size: 12px;
  }

  /* API keys: one card per key — owner, note, key · limits · last call, then the admin buttons */
  .v2 #tab-api > .table-card .grid thead {
    display: none;
  }

  .v2 #tab-api > .table-card .grid,
  .v2 #tab-api > .table-card .grid tbody {
    display: block;
    width: 100%;
  }

  .v2 #api-rows tr {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 6px;
    row-gap: 3px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--sep);
  }

  .v2 #api-rows tr:last-child {
    border-bottom: 0;
  }

  .v2 #api-rows td,
  .v2 #api-rows tr:hover td,
  .v2 #api-rows td.api-act,
  .v2 #api-rows tr:hover td.api-act {
    position: static;
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    text-align: left;
  }

  .v2 #api-rows td:nth-child(1),
  .v2 #api-rows td:nth-child(2) {
    flex: 0 0 100%;
  }

  .v2 #api-rows td:nth-child(2) {
    font-size: 12.5px;
  }

  .v2 #api-rows .api-cut {
    max-width: none;
  }

  .v2 #api-rows td:nth-child(8) .api-cut {
    display: inline;
  }

  .v2 #api-rows td:is(:nth-child(3), :nth-child(4), :nth-child(8)) {
    color: var(--faint);
    font-size: 12px;
  }

  .v2 #api-rows td:is(:nth-child(4), :nth-child(8))::before {
    content: "· ";
  }

  .v2 #api-rows td:is(:nth-child(5), :nth-child(6), :nth-child(7), :nth-child(9)) {
    display: none;
  }

  .v2 #api-rows td.api-act {
    flex: 0 0 100%;
    margin-top: 6px;
  }

  .v2 #api-rows td.api-act:empty {
    display: none;
  }

  /* API stats */
  .v2 #as-card .as-ctl {
    width: 100%;
  }

  .v2 #as-key {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 36px;
  }

  .v2 #as-card .as-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
  }

  .v2 #as-card .as-tl-h {
    flex-wrap: wrap;
  }

  .v2 #as-card .as-mseg {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .v2 #as-card .as-mseg button {
    padding: 0 8px;
  }

  /* requests by route: name and count on top, share · average · errors under it */
  .v2 #as-card .as-grid-t thead {
    display: none;
  }

  .v2 #as-card .as-grid-t,
  .v2 #as-card .as-grid-t tbody,
  .v2 #as-card .as-grid-t tr.as-why,
  .v2 #as-card .as-grid-t tr.as-why > td {
    display: block !important;
    width: 100%;
  }

  .v2 #as-card .as-grid-t tr:not(.as-why) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "a a n" "s m e";
    align-items: center;
    gap: 4px 14px;
    padding: 10px 4px;
    border-bottom: 1px solid var(--sep);
  }

  .v2 #as-card .as-grid-t tr:not(.as-why) > td {
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
  }

  .v2 #as-card .as-grid-t tr:not(.as-why) > td:nth-child(1) {
    grid-area: a;
  }

  .v2 #as-card .as-grid-t tr:not(.as-why) > td:nth-child(2) {
    grid-area: n;
    text-align: right;
  }

  .v2 #as-card .as-grid-t tr:not(.as-why) > td:nth-child(3) {
    grid-area: s;
    min-width: 0;
    text-align: left;
    white-space: nowrap;
  }

  .v2 #as-card .as-grid-t .as-share > div {
    width: 56px;
  }

  .v2 #as-card .as-grid-t .as-share em {
    width: auto;
    margin-left: 8px;
  }

  .v2 #as-card .as-grid-t tr:not(.as-why) > td:nth-child(4) {
    grid-area: m;
    color: var(--faint);
    font-size: 12px;
  }

  .v2 #as-card .as-grid-t tr:not(.as-why) > td:nth-child(5) {
    grid-area: e;
    text-align: right;
  }

  .v2 #as-card .as-rt tr.as-why > td {
    padding: 0 4px 10px;
  }

  .v2 #as-card .as-why-in li {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
  }

  .v2 #as-card .as-x span:nth-child(even) {
    display: none;
  }

  .v2 #as-card .as-hr {
    grid-template-columns: 20px repeat(24, minmax(0, 1fr));
  }

  .v2 #as-card .as-rt h4 {
    flex-wrap: wrap;
  }

  .v2 #as-card .as-rt h4 [data-unused] {
    height: auto;
    min-height: 30px;
    margin-left: 0;
    padding: 6px 12px;
    text-align: left;
    white-space: normal;
  }
}

/* ---------- R9 · autopilot: open positions as a tape like the closed trades, the settings a plain sectioned form, every
 * figure Geist, no glow on live fees, signals and journal under the trades so the page has no empty half (AP-xx) ---------- */

/* AP-01: no glow when an open position's fees grow */
.v2 .ap-flash {
  animation: none !important;
  text-shadow: none !important;
  filter: none !important;
}

/* AP-09: every figure in Geist */
.v2 :is(#ap-closed-n, #ap-open-n, #ap-set-n, .ap-pg-of, #ap-set input[type="number"], .rv-st, .rv-px, .ap-hc b, .ap-po-st,
  .ap2-side .ap-j, #ap-kpis .ps-of, #ap-open-t .big, #ap-closed .big, .ap-det .ap-tl) {
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
}

/* AP-04 + AP-10: the result of a trade in Geist, coloured by its sign */
.v2 .ap2-main #ap-closed > tr > td:nth-child(6) .big,
.v2 .ap2-main #ap-open-t tr > td:nth-child(5) .big {
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  white-space: nowrap;
}

.v2 .ap2-main #ap-closed > tr > td:nth-child(6) .big.ap-up,
.v2 .ap2-main #ap-open-t tr > td:nth-child(5) .big.ap-up {
  color: var(--up);
}

.v2 .ap2-main #ap-closed > tr > td:nth-child(6) .big.ap-down,
.v2 .ap2-main #ap-open-t tr > td:nth-child(5) .big.ap-down {
  color: var(--down);
}

/* ---------- AP-14: signals and journal under the trades, «Управление» alone on the right ---------- */

@media (min-width: 1181px) {
  .v2 .ap2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 340px;
  }

  .v2 .ap2 > .ap2-main {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .v2 .ap2 > .ap2-side {
    display: contents;
  }

  .v2 .ap2-side > .ap-ctl {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .v2 .ap2-side > #ap-sig {
    grid-column: 1;
    grid-row: 2;
  }

  .v2 .ap2-side > .ua-card:has(> #ap-jlist) {
    grid-column: 2;
    grid-row: 2;
  }

  /* «Управление» alone in its column: it stays in view while the trades scroll (it fits the screen, no inner scroll) */
  .v2 .ap2-side > .ap-ctl {
    position: sticky;
    top: calc(var(--bar-h) + 12px);
    align-self: start;
    max-height: calc(100vh - var(--bar-h) - 24px);
    overflow-y: auto;
    scrollbar-width: thin;
  }

  /* signals and journal: two cards of one height, their lists scroll inside */
  .v2 .ap2 {
    grid-template-rows: auto minmax(460px, 1fr);
  }

  .v2 .ap2-side > #ap-sig,
  .v2 .ap2-side > .ua-card:has(> #ap-jlist) {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-height: 0;
  }

  .v2 .ap2-side > #ap-sig .ap-sigl,
  .v2 .ap2-side > .ua-card > #ap-jlist {
    flex: 1 1 0;
    min-height: 140px;
    max-height: none;
    contain: size;
  }
}

/* AP-25: the whole journal and every burst reachable: the list scrolls inside its card, a tap opens a line */
.v2 .ap2-side .ap-sigl > :nth-child(n + 7),
.v2 .ap2-side #ap-jlist > :nth-child(n + 9) {
  display: -webkit-box;
}

.v2 .ap2-side .ap-sigl,
.v2 .ap2-side #ap-jlist {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--line2) transparent;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 26px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 26px), transparent);
}

.v2 .ap2-side .ap-sigl {
  max-height: 300px;
}

.v2 .ap2-side #ap-jlist {
  max-height: 452px;
}

.v2 .ap2-side :is(.ap-j, .ap-sigl > *) {
  cursor: pointer;
}

.v2 .ap2-side :is(.ap-j, .ap-sigl > *).v2-open {
  display: block;
  max-height: none;
  -webkit-line-clamp: unset;
  color: var(--fg2);
}

/* AP-23: «Сейчас в пулах»: the pair alone, no cut venue name */
.v2 #ap-sig .ap-mini td:first-child .muted.small {
  display: none;
}

/* ---------- hero ---------- */

/* AP-15: health chips neutral, only the dot carries the state */
.v2 #ap-live .ap-hc,
.v2 #ap-live .ap-hc.warn,
.v2 #ap-live .ap-hc.bad {
  border-color: var(--line);
  background: var(--card2);
  color: var(--fg2);
}

.v2 #ap-live .ap-hc.warn i {
  background: var(--warn);
}

.v2 #ap-live .ap-hc.bad i {
  background: var(--down);
}

/* AP-19: a disabled button looks disabled */
.v2 #tab-autopilot .btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ---------- AP-11: open positions as a tape: one card, two lines per position ---------- */

.v2 .ap2-main #ap-open-t {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}

.v2 .ap2-main #ap-open-t[hidden] {
  display: none;
}

.v2 .ap2-main #ap-open-t > tbody {
  display: block;
}

.v2 .ap2-main #ap-open-t > tbody + tbody {
  border-top: 1px solid var(--sep);
}

.v2 .ap2-main #ap-open-t tr:not(.ap-det) {
  grid-template-columns: minmax(150px, 1.2fr) minmax(150px, 1.3fr) 76px 88px 104px auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.v2 .ap2-main #ap-open-t tr:not(.ap-det):hover {
  border: 0;
  background: var(--hover);
}

.v2 .ap2-main #ap-open-t tr.ap-edge {
  box-shadow: inset 2px 0 0 var(--warn);
}

.v2 .ap2-main #ap-open-t tr.ap-out {
  box-shadow: inset 2px 0 0 var(--down);
}

.v2 .ap2-main #ap-open-t tr:not(.ap-det) > td {
  position: static;
  order: 0;
  grid-row: 1;
  align-content: center;
  min-width: 0;
  padding: 13px 10px 3px;
  border: 0;
  transform: none;
}

.v2 .ap2-main #ap-open-t tr > td[data-l]::before {
  display: none;
}

/* line 1: pair · range · size · fees · result · actions */
.v2 .ap2-main #ap-open-t tr > td.ap-c-pos {
  grid-column: 1;
  padding: 13px 10px 3px 16px !important;
}

.v2 .ap2-main #ap-open-t .pf-pos {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px 8px;
  min-width: 0;
}

.v2 .ap2-main #ap-open-t .pf-meta {
  flex: none;
}

.v2 .ap2-main #ap-open-t .pf-pos .pair {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* venue and «бумага» are in the hero and the detail; live, token and manual stay */
.v2 .ap2-main #ap-open-t .pf-meta .b:first-child,
.v2 .ap2-main #ap-open-t .pf-meta .b:nth-child(2):not(.ap-b-live) {
  display: none;
}

.v2 .ap2-main #ap-open-t .ap-c-pos > .sub {
  display: none;
}

/* the range cell lends its parts to the row: the bar on line 1, pool and exchange prices on line 2 */
.v2 .ap2-main #ap-open-t tr > td.ap-c-rg {
  display: contents;
}

.v2 .ap2-main #ap-open-t td.ap-c-rg > :is(.rv, .muted) {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding: 13px 10px 3px;
}

.v2 .ap2-main #ap-open-t td.ap-c-rg > .muted {
  color: var(--faint);
  font-size: 12px;
}

.v2 .ap2-main #ap-open-t td.ap-c-rg > .sub {
  display: block;
  grid-column: 3 / -1;
  grid-row: 2;
  justify-self: end;
  min-width: 0;
  max-width: 100%;
  padding: 0 16px 13px 10px;
  color: var(--faint);
  font-family: var(--num);
  font-size: 11.5px;
}

.v2 .ap2-main #ap-open-t .rv {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: none;
}

.v2 .ap2-main #ap-open-t .rv-bar {
  flex: 1;
  min-width: 60px;
}

.v2 .ap2-main #ap-open-t .rv-row {
  flex: none;
  margin: 0;
}

.v2 .ap2-main #ap-open-t .rv-px {
  display: none;
}

.v2 .ap2-main #ap-open-t .rv-st {
  font-size: 11.5px;
  white-space: nowrap;
}

.v2 .ap2-main #ap-open-t tr > td:nth-child(3) {
  grid-column: 3;
}

.v2 .ap2-main #ap-open-t tr > td:nth-child(4) {
  grid-column: 4;
}

.v2 .ap2-main #ap-open-t tr > td:nth-child(5) {
  grid-column: 5;
  justify-items: end;
  text-align: right;
}

.v2 .ap2-main #ap-open-t tr > td:is(:nth-child(3), :nth-child(4)) .big {
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}

.v2 .ap2-main #ap-open-t tr > td:nth-child(3) .big {
  color: var(--fg2);
}

.v2 .ap2-main #ap-open-t tr > td:is(:nth-child(3), :nth-child(4), :nth-child(5)) > .muted {
  color: var(--faint);
}

.v2 .ap2-main #ap-open-t tr > td.ap-c-act {
  grid-column: 6;
  inset: auto;
  justify-self: end;
  padding: 13px 12px 3px 8px;
}

.v2 .ap2-main #ap-open-t .ap-c-act .acts {
  display: flex;
  align-items: center;
  gap: 4px;
}

.v2 .ap2-main #ap-open-t .ap-c-act .btn {
  height: 28px;
  padding: 0 10px;
  border-color: var(--sep);
  background: none;
  color: var(--muted);
  font-size: 12px;
  box-shadow: none;
}

.v2 .ap2-main #ap-open-t .ap-c-act .btn:hover {
  border-color: color-mix(in srgb, var(--down) 45%, transparent);
  color: var(--down);
}

.v2 .ap2-main #ap-open-t .ap-c-act .pf-more {
  width: 28px;
  height: 28px;
}

/* line 2: the status and its note, quiet */
.v2 .ap2-main #ap-open-t tr > td:nth-child(6) {
  display: flex;
  grid-column: 1 / 3;
  grid-row: 2;
  align-items: center;
  gap: 8px;
  padding: 2px 10px 13px 16px;
}

.v2 .ap2-main #ap-open-t tr > td:nth-child(6) .ap-st {
  flex: none;
  padding: 1px 8px;
  font-size: 11.5px;
}

.v2 .ap2-main #ap-open-t tr > td:nth-child(6) .sub {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--faint);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* the detail opens inside the same card */
.v2 .ap2-main #ap-open-t tr.ap-det {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--sep);
  border-radius: 0;
  background: var(--card2);
}

/* AP-11 / AP-05: narrow column (phone, laptops with the side column): pair and result, then the bar, then the status */
@container apmain (max-width: 700px) {
  .v2 .ap2-main #ap-open-t tr:not(.ap-det) {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: auto auto auto;
  }

  .v2 .ap2-main #ap-open-t tr > td.ap-c-pos {
    grid-column: 1;
    grid-row: 1;
    padding: 12px 8px 4px 14px !important;
  }

  .v2 .ap2-main #ap-open-t tr > td:nth-child(5) {
    grid-column: 2;
    grid-row: 1;
    padding: 12px 6px 4px;
  }

  .v2 .ap2-main #ap-open-t tr > td.ap-c-act {
    grid-column: 3;
    grid-row: 1;
    padding: 12px 10px 4px 4px;
  }

  .v2 .ap2-main #ap-open-t td.ap-c-rg > :is(.rv, .muted) {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 6px 14px 4px;
  }

  .v2 .ap2-main #ap-open-t td.ap-c-rg > .sub {
    display: none;
  }

  .v2 .ap2-main #ap-open-t tr > td:nth-child(3) {
    display: none;
  }

  .v2 .ap2-main #ap-open-t tr > td:nth-child(4) {
    grid-column: 2 / -1;
    grid-row: 3;
    justify-self: end;
    padding: 4px 14px 12px 6px;
  }

  .v2 .ap2-main #ap-open-t tr > td:nth-child(4)::before {
    content: "комиссии";
    display: inline;
    margin-right: 6px;
    color: var(--faint);
    font-size: 11.5px;
  }

  .v2 .ap2-main #ap-open-t tr > td:nth-child(4) {
    display: flex;
    align-items: baseline;
  }

  .v2 .ap2-main #ap-open-t tr > td:nth-child(4) .sub {
    display: none;
  }

  .v2 .ap2-main #ap-open-t tr > td:nth-child(6) {
    grid-column: 1;
    grid-row: 3;
    padding: 4px 6px 12px 14px;
  }

  .v2 .ap2-main #ap-open-t tr > td:nth-child(5) .big {
    font-size: 18px;
  }
}

/* phone: the fees are inside the result and in the detail; the status gets the whole third line */
@container apmain (max-width: 480px) {
  .v2 .ap2-main #ap-open-t tr > td:nth-child(4) {
    display: none;
  }

  .v2 .ap2-main #ap-open-t tr > td:nth-child(6) {
    grid-column: 1 / -1;
  }

  .v2 .ap2-main #ap-open-t tr > td:nth-child(5) .big {
    font-size: 17px;
  }

  .v2 .ap2-main #ap-open-t .ap-c-act .btn {
    padding: 0 9px;
  }
}

/* AP-26: no open positions: one quiet line, no box */
.v2 .ap2-main .ap-empty {
  padding: 4px 2px;
  border: 0;
  background: none;
  color: var(--faint);
  font-size: 13px;
  text-align: left;
}

/* ---------- closed trades ---------- */

/* AP-02: the pair never runs under the size; under 720 px of column the size and fees step aside */
.v2 .ap2-main {
  container: apmain / inline-size;
}

.v2 .ap2-main #ap-closed > tr > td.ap-c-pos,
.v2 .ap2-main #ap-closed .pf-pos {
  min-width: 0;
}

/* app.css keeps 128 px free on the right of the phone card for its old corner buttons */
.v2 .ap2-main #ap-closed > tr > td.ap-c-pos {
  padding-right: 10px !important;
}

.v2 .ap2-main #ap-closed .pf-pos .pair {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2 .ap2-main #ap-closed .pf-meta {
  flex: none;
}

.v2 .ap2-main #ap-closed > tr > td .big {
  white-space: nowrap;
}

@media (min-width: 901px) {
  @container apmain (max-width: 720px) {
    .v2 .ap2-main #ap-closed > tr:not(.ap-det) {
      grid-template-columns: minmax(0, 1fr) 100px 164px 104px 36px;
    }

    .v2 .ap2-main #ap-closed > tr > td:is(:nth-child(2), :nth-child(5)) {
      display: none;
    }
  }
}

/* AP-27: the pages are enough; «из 100» next to «215» read as a contradiction */
.v2 .ap-pg-of {
  display: none;
}

/* AP-12: the detail as columns split by hairlines, not cards in a card */
.v2 .ap2-main .ap-grid tr.ap-det .ap-dgrid {
  grid-template-columns: none;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 0;
}

.v2 .ap2-main .ap-grid tr.ap-det .ap-dgrid > div {
  min-width: 0;
  padding: 2px 18px;
  border: 0;
  border-left: 1px solid var(--sep);
  border-radius: 0;
  background: none;
}

.v2 .ap2-main .ap-grid tr.ap-det .ap-dgrid > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.v2 .ap2-main .ap-grid tr.ap-det .ap-dgrid h4 {
  margin: 0 0 8px;
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
}

.v2 .ap2-main .ap-grid tr.ap-det .ap-dgrid p {
  margin: 4px 0;
  font-size: 12.5px;
}

@container apmain (max-width: 680px) {
  .v2 .ap2-main .ap-grid tr.ap-det .ap-dgrid {
    grid-auto-flow: row;
  }

  .v2 .ap2-main .ap-grid tr.ap-det .ap-dgrid > div {
    padding: 12px 0;
    border-left: 0;
    border-top: 1px solid var(--sep);
  }

  .v2 .ap2-main .ap-grid tr.ap-det .ap-dgrid > div:first-child {
    padding-top: 2px;
    border-top: 0;
  }
}

/* AP-20: no explanatory sentence at the end of «Разбор» (the data notes in brackets stay) */
.v2 .ap-det .ap-dgrid > div:last-child > p.muted.small:last-child {
  display: none;
}

/* ---------- AP-07 / AP-03 / AP-06 / AP-08: settings as a plain form ---------- */

.v2 #ap-set-box {
  scroll-margin-top: calc(var(--bar-h) + 16px);
}

.v2 .ap2-main #ap-set {
  display: block;
  padding: 0 18px 18px;
}

.v2 .ap2-main #ap-set fieldset {
  min-width: 0;
  margin: 0;
  padding: 16px 0 18px;
  border: 0;
  border-top: 1px solid var(--sep);
  border-radius: 0;
  background: none;
}

.v2 .ap2-main #ap-set legend {
  float: left;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.v2 .ap2-main #ap-set .ap-fgrid {
  clear: both;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
}

.v2 .ap2-main #ap-set label.pf-field {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.v2 .ap2-main #ap-set label.pf-field input {
  flex: none;
  margin-top: auto;
  font-size: 13.5px;
}

.v2 .ap2-main #ap-set .ap-save {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--sep);
}

.v2 .ap2-main #ap-set .ap-save label.ap-chk {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--fg2);
  font-size: 13px;
}

.v2 .ap2-main #ap-set .ap-save .btn {
  flex: none;
}

.v2 .ap2-main #ap-set p.muted {
  display: none;
}

/* AP-13 / AP-03: every checkbox of the tab is the shared switch (top of Round 9; same input, same listeners) */
.v2 #tab-autopilot .ap-chk {
  cursor: pointer;
}

/* ---------- «Управление» ---------- */

/* AP-22: the token form on one line like the other two */
.v2 .ap2-side #ap-tok-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px auto;
  gap: 6px;
}

.v2 .ap2-side #ap-tok-form input {
  width: auto;
  min-width: 0;
}

/* ---------- phone ---------- */

@media (max-width: 767px) {
  /* AP-16: KPIs two by two */
  .v2 #ap-kpis.ap-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
  }

  /* AP-17: section headers on one line */
  .v2 .ap2-main .ap-sec-h h3,
  .v2 .ap2-main .ap-fold-t {
    font-size: 18px;
    white-space: nowrap;
  }

  .v2 .ap2-main .ap-sec-t {
    flex-wrap: wrap;
    row-gap: 2px;
  }

  .v2 #ap-open-n {
    flex-basis: 100%;
  }

  /* AP-18: denser closed rows */
  .v2 .ap2-main #ap-closed > tr > td {
    padding: 10px;
  }

  .v2 .ap2-main #ap-closed > tr > td.ap-c-pos {
    padding-left: 14px;
  }

  /* AP-24: × big enough for a finger */
  .v2 .ap-deny-chip button {
    min-width: 28px;
    min-height: 28px;
    margin: -4px -6px -4px 0;
  }

  /* AP-07: two fields per line */
  .v2 .ap2-main #ap-set .ap-fgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .v2 .ap2-main #ap-set .ap-save {
    flex-wrap: wrap;
  }

  .v2 .ap2-side #ap-tok-form {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  }
}

/* ==================== A: «Настройки» tab (Part A) ====================
 * Every selector carries #tab-alerts, so these rules beat v2.css wherever this file lands (imported at its top for the
 * test, or appended at its end on merge). */

/* Alert rules: one column, an opened rule unfolds in place (nothing jumps); the whole tile is the button. */
.v2 #tab-alerts #prefs-card {
  max-width: 860px;
}

.v2 #tab-alerts #prefs-card:has(.al-r) {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.v2 #tab-alerts #prefs-card .al-r {
  display: flex;
  flex-direction: column;
}

.v2 #tab-alerts #prefs-card .al-r > .al-rh {
  flex: 1 0 auto;
  min-height: 60px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.v2 #tab-alerts #prefs-card .al-rh:hover {
  background: var(--hover);
}

/* no summary line and no hints: the title, the rate and the switch say enough */
.v2 #tab-alerts #prefs-card .al-rs,
.v2 #tab-alerts #prefs-card .al-hint {
  display: none;
}

.v2 #tab-alerts #prefs-card .al-rm {
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
}

/* an opened rule: the few main fields, «Дополнительно» folded under a hairline */
.v2 #tab-alerts #prefs-card .al-rb {
  grid-auto-flow: row dense;
  gap: 20px 28px;
  padding: 20px 20px 16px;
}

/* «Частота» has two long-labelled fields: a row of its own keeps them side by side */
.v2 #tab-alerts #prefs-card .al-f:has([data-p$=".cooldownMin"]) {
  grid-column: 1 / -1;
}

.v2 #tab-alerts #prefs-card .al-more {
  display: grid;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--sep);
}

.v2 #tab-alerts #prefs-card .al-mb {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-flow: row dense;
  gap: 20px 28px;
}

.v2 #tab-alerts #prefs-card .al-more:not(.open) > .al-mb {
  display: none;
}

.v2 #tab-alerts #prefs-card .al-mh {
  height: 26px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.v2 #tab-alerts #prefs-card .al-mh:hover,
.v2 #tab-alerts #prefs-card .al-more.open > .al-mh {
  color: var(--fg);
}

.v2 #tab-alerts #prefs-card .al-mn {
  background: var(--acc-tint);
  color: var(--acc);
  font-family: var(--num);
  font-weight: 600;
}

/* a chain without its own rules: only the button that gives it some (the explanation stays in the old design) */
.v2 #tab-alerts #prefs-card .al-nets .al-note:has(.btn) {
  display: block !important;
  margin: 10px 0 0;
  font-size: 0;
}

.v2 #tab-alerts #prefs-card .al-nets .al-note .btn {
  margin: 0;
  font-size: 12.5px;
}

/* «Цикл»: wallet chips, then the panel without notes (section subtitles and the key note stay in the old design) */
.v2 #tab-alerts #al-cy-w {
  margin: 0 0 12px;
}

.v2 #tab-alerts #al-cy > #pf-cycle {
  margin-top: 0;
  padding: 16px 20px 20px;
}

.v2 #tab-alerts #pf-cycle .cy-sec-h > .muted.small:not(#cy-unres-n),
.v2 #tab-alerts #pf-cycle .cy-bp-f > p.muted {
  display: none;
}

.v2 #tab-alerts #pf-cycle .pk-head {
  padding-bottom: 12px;
}

.v2 #tab-alerts #pf-cycle .cy-sec-h h3 {
  font-size: 15px;
  font-weight: 600;
}

/* a phone: the price field gives way to its «Указать» button instead of pushing it out of the card */
.v2 #tab-alerts #pf-cycle .cy-urs {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 720px) {
  .v2 #tab-alerts #pf-cycle .cy-ur-f {
    min-width: 0;
  }

  .v2 #tab-alerts #pf-cycle .cy-ur-f input {
    width: 0;
    min-width: 0;
  }
}

/* ==================== B: wallet lists, pools fit the window (Part B) ====================
 * Every selector carries an id (#tab-portfolio, #tab-pools), so these rules beat v2.css wherever this file lands. */

/* «Ещё N» / «Свернуть» closes the wallet column: a quiet full-width row, the number in Geist, the chevron on the right. */
.v2 #tab-portfolio .pf2-side .wp-exp {
  justify-content: flex-start;
  width: 100%;
  height: 34px;
  padding: 0 14px 0 10px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.v2 #tab-portfolio .pf2-side .wp-exp:hover {
  background: var(--hover);
  color: var(--fg);
}

.v2 #tab-portfolio .pf2-side .wp-exp .count {
  background: none;
  color: inherit;
  font-family: var(--num);
}

.v2 #tab-portfolio .pf2-side .wp-exp svg {
  margin-left: auto;
}

/* Narrow screens: the wallet card holds its (now short) list instead of a 280px box the rows spill out of. */
@media (max-width: 900px) {
  .v2 #tab-portfolio .pf2-side {
    max-height: none;
  }
}

/* Pools: a short margin under the pager, so one more row fits the window (app.js perFit reads it). */
@media (min-width: 768px) {
  .v2.v2-on-pools .main {
    padding-bottom: 24px;
  }
}

/* ---------- pools list: four even figure columns, all right-aligned, one size for the secondary figures (owner, 2026-10-24) ---------- */
.v2 .board[data-view="list"] .pr,
.v2 .lh {
  grid-template-columns: 58px minmax(180px, 1.1fr) repeat(4, 96px) minmax(200px, 1.6fr) 76px;
  column-gap: 18px;
}

@container plist (max-width: 1060px) {
  .v2 .board[data-view="list"] .pr,
  .v2 .lh {
    grid-template-columns: 54px minmax(150px, 1fr) repeat(4, 86px) minmax(140px, 1.3fr) 64px;
    column-gap: 14px;
  }
}

.v2 .pr :is(.pr-5, .pr-30, .pr-vol, .pr-tvl) {
  align-self: center;
  justify-items: end;
  text-align: right;
}

.v2 .lh > :is(:nth-child(3), :nth-child(4), :nth-child(5), :nth-child(6)) {
  justify-self: end;
  text-align: right;
}

.v2 .pr :is(.pr-30, .pr-vol, .pr-tvl) {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}

.v2 .pr .pr-5 b {
  font-size: 18px;
  line-height: 1.2;
}

.v2 .board[data-view="list"] .pr :is(.pr-5, .pr-30, .pr-vol, .pr-tvl),
.v2 .board[data-view="list"] .pr :is(.pr-5, .pr-30, .pr-vol, .pr-tvl) > b {
  justify-self: end;
  justify-items: end;
  text-align: right;
}

/* ---------- pools toolbar: the cards / list switch left of «Фильтры»; the sort chips row only where it has chips (owner, 2026-10-24) ---------- */
.v2 #tab-pools .toolbar > .bh-view {
  order: 0;
  margin-left: auto;
}

.v2 #tab-pools .toolbar > .bh-view ~ #more {
  margin-left: 0;
}

.v2.v2-list.v2-lh .bh {
  display: none;
}

/* ---------- polish after the audit verifiers (2026-10-24) ---------- */

/* Every digit in Geist: a digits-only Geist face first in the sans stack (letters stay Onest). */
@font-face {
  font-family: "Geist Digits";
  font-weight: 400 700;
  font-display: swap;
  src: url("/v2/fonts/geist-lat.woff2") format("woff2");
  unicode-range: U+0024-0025, U+002B, U+0030-0039, U+2212;
}

.v2 {
  --sans: "Geist Digits", "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: var(--sans);
}

/* No motion when a card or row first appears. */
.v2 .pc.in,
.v2 .pr.in {
  animation: none;
}

/* Autopilot pager like the pools pager. */
.v2 .ap-pg {
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: var(--fg2);
  font-size: 13.5px;
  font-weight: 500;
}

.v2 .ap-pg:hover:not(:disabled):not(.on) {
  border-color: transparent;
  background: var(--fill2);
  color: var(--fg);
}

.v2 .ap-pg.on {
  border-color: var(--line2);
  background: var(--card3);
  color: var(--fg);
}

.v2 .ap-pg:disabled {
  opacity: 0.3;
}

/* Quiet texts: no sentence for an empty list, no amber for an off channel, no empty API stat boxes. */
.v2 #ap-open-empty {
  font-size: 0;
}

.v2 #ap-open-empty::after {
  content: "Нет";
  color: var(--faint);
  font-size: 13px;
}

.v2 #po-card .po-off {
  color: var(--muted);
}

.v2 #as-card .as-box:has(> .as-none) {
  display: none;
}

/* One switch size everywhere. */
.v2 .sw {
  width: 30px;
  height: 18px;
}

.v2 .sw span::after {
  width: 12px;
  height: 12px;
}

.v2 .sw input:checked + span::after {
  transform: translateX(12px);
}

/* Settings rows: the controls end on one line even where nothing unfolds. */
.v2 #tab-alerts #prefs-card .al-cv:empty {
  width: 7px;
}

/* Focus rings drawn inside, so scrolling parents never cut them. */
.v2 :is(#tab-pools .seg, .bh-sort, #v2-board, .pf2-side .wp, #pf-kpis, #prefs-card .al-r) :focus-visible {
  outline-offset: -2px;
}

/* Wallet ⋯ visible where there is no hover. */
@media (hover: none) {
  .v2 .pf2-side .wp-more {
    opacity: 1;
  }
}

.v2 .pf2-side .wp:focus-within .wp-more {
  opacity: 1;
}

@media (max-width: 600px) {
  .v2 :is(#pf-closed, #pf-peek) .pk-head {
    position: relative;
  }

  .v2 :is(#pf-closed, #pf-peek) .pk-title {
    padding-right: 36px;
  }

  .v2 :is(#pf-closed, #pf-peek) .pk-x {
    position: absolute;
    top: 0;
    right: 0;
  }
}

.v2 #pf-closed [data-cl="share-days"] {
  width: 30px;
  padding: 0;
  gap: 0;
  font-size: 0;
}

@media (max-width: 560px) {
  .v2 #ap-kpis > .ps {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .v2 .as-mseg {
    width: 100%;
  }

  .v2 .as-mseg > button {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 4px;
  }
}

/* ---------- wallet column: «Ещё N» stays in place, the rest drops down below it and scrolls inside the card (owner, 2026-10-24) ---------- */
.v2 #tab-portfolio .pf2-side:has(.wp-rest) {
  max-height: none;
}

.v2 #tab-portfolio .pf2-side .wp-exp[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.v2 #tab-portfolio .pf2-side .wp-rest {
  display: grid;
  gap: 2px;
  max-height: min(360px, 45vh);
  margin: 2px 0 0;
  padding: 4px 0 0;
  border-top: 1px solid var(--sep);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line2) transparent;
}
/* ---------- LP window, owner 2026-10-24: own positions keep their buttons in a column of their own, always shown
 * (they used to float over «Можно забрать» / PnL on hover); the open button sits right under the form; status lines
 * are quiet rows with a state mark; the wallet row and the range edges in the cards' style ---------- */
@media (hover: hover) and (min-width: 768px) {
  .v2 .lpx .lpx-ptab:not(.lpx-ctab, .lpx-htab) th.c-act {
    width: 1%;
    padding: 10px 12px;
  }

  .v2 .lpx .lpx-ptab:not(.lpx-ctab, .lpx-htab) tbody tr td.c-act {
    position: static;
    display: table-cell;
    width: 1%;
    padding: 0 12px 0 8px;
    border-bottom: 1px solid var(--sep);
    background: none !important;
    pointer-events: auto;
    text-align: right;
  }

  .v2 .lpx .lpx-ptab:not(.lpx-ctab, .lpx-htab) tbody tr td.c-act .lpx-acts {
    opacity: 1;
  }
}

.v2 .lpx .lpx-ptab:not(.lpx-ctab, .lpx-htab) .lpx-acts {
  gap: 6px;
}

.v2 .lpx .lpx-ptab:not(.lpx-ctab, .lpx-htab) .lpx-acts .btn.small {
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--fg2);
  font-size: 12.5px;
  font-weight: 600;
}

.v2 .lpx .lpx-ptab:not(.lpx-ctab, .lpx-htab) .lpx-acts .btn.small:hover:not(:disabled) {
  border-color: var(--line2);
  background: var(--fill2);
  color: var(--fg);
}

.v2 .lpx .lpx-ptab:not(.lpx-ctab, .lpx-htab) .lpx-acts .btn.small.lpx-danger:hover:not(:disabled) {
  border-color: transparent;
  background: var(--danger-bg);
  color: var(--danger);
}

.v2 .lpx .lpx-ptab:not(.lpx-ctab, .lpx-htab) .lpx-acts .act {
  width: 30px;
  height: 30px;
}

/* the open button follows the form instead of sinking to the column's bottom; it still pins when the form scrolls */
.v2 .lpx .lpx-side > .lpx-go {
  margin: 16px 18px 0;
}

/* status lines */
.v2 .lpx .lpx-steps {
  display: grid;
  gap: 6px;
  margin: 22px 18px 18px;
  padding: 0;
  list-style: none;
  color: var(--fg2);
  font-size: 12.5px;
}

.v2 .lpx .lpx-steps:empty {
  display: none;
}

.v2 .lpx .lpx-steps li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  line-height: 1.35;
}

.v2 .lpx .lpx-steps li::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-top: 1px;
  border: 1.5px solid var(--line2);
  border-radius: 50%;
  box-sizing: border-box;
}

.v2 .lpx .lpx-steps li.wait::before {
  border-color: var(--line2);
  border-top-color: var(--acc);
  animation: v2-spin 0.8s linear infinite;
}

.v2 .lpx .lpx-steps li.sent::before {
  border-color: var(--acc);
  background: radial-gradient(circle, var(--acc) 0 3px, transparent 3.5px);
}

.v2 .lpx .lpx-steps li.ok {
  border-color: color-mix(in srgb, var(--up) 30%, var(--line));
  background: color-mix(in srgb, var(--up) 7%, var(--card));
  color: var(--fg);
}

.v2 .lpx .lpx-steps li.ok::before {
  border: 0;
  background: var(--up) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.v2 .lpx .lpx-steps li.err {
  border-color: color-mix(in srgb, var(--down) 35%, var(--line));
  background: color-mix(in srgb, var(--down) 7%, var(--card));
  color: var(--fg);
}

.v2 .lpx .lpx-steps li.err::before {
  border: 0;
  background: var(--down) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4.5 4.5l5 5M9.5 4.5l-5 5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.v2 .lpx .lpx-steps li.warn::before {
  border-color: var(--warn);
}

.v2 .lpx .lpx-stt {
  min-width: 0;
  font-weight: 500;
}

.v2 .lpx .lpx-sts {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 400;
}

.v2 .lpx .lpx-steps a {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: -2px -4px -2px 0;
  border-radius: 6px;
  color: var(--muted);
}

.v2 .lpx .lpx-steps a:hover {
  background: var(--fill2);
  color: var(--fg);
}

.v2 .lpx .lpx-steps a svg {
  width: 13px;
  height: 13px;
  vertical-align: 0;
}

@keyframes v2-spin {
  to {
    transform: rotate(360deg);
  }
}

/* wallet row: icon, wallet, address and network as one line of equal pills */
.v2 .lpx #lpx-wallet {
  padding-block: 14px;
}

.v2 .lpx .lpx-wrow {
  gap: 8px;
  min-height: 32px;
  font-size: 13px;
}

.v2 .lpx .lpx-wrow > :is(img, .wi) {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.v2 .lpx .lpx-wrow > #lpx-wsel,
.v2 .lpx .lpx-wrow > .lpx-wname {
  height: 32px;
  line-height: 30px;
}

.v2 .lpx .lpx-wrow > #lpx-wsel {
  min-width: 0;
  max-width: 150px;
  padding: 0 28px 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23888' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 9px center / 12px no-repeat;
  color: var(--fg);
  font: inherit;
  font-weight: 600;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.v2 .lpx .lpx-wrow > #lpx-wsel:hover {
  border-color: var(--line2);
}

.v2 .lpx .lpx-wrow > .lpx-addr {
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: none;
  color: var(--fg2);
  font-size: 12px;
}

.v2 .lpx .lpx-wrow > .lpx-addr:hover {
  border-color: var(--line2);
  color: var(--fg);
}

.v2 .lpx .lpx-wrow > .lpx-push {
  display: flex;
  align-items: center;
}

.v2 .lpx .lpx-wrow > .lpx-push > .b {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  color: var(--fg2);
  font-size: 12px;
  font-weight: 600;
  line-height: 30px;
}

/* range: the header on one line, presets as the slippage segment, each edge a card like the token amounts */
.v2 .lpx #lpx-range .lpx-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.v2 .lpx .lpx-prow {
  margin-bottom: 12px;
}

.v2 .lpx .lpx-presets {
  flex: 1;
}

.v2 .lpx .lpx-presets button {
  flex: 1;
}

.v2 .lpx .lpx-edges {
  gap: 8px;
}

.v2 .lpx .lpx-edge {
  display: grid;
  gap: 6px;
  padding: 10px 10px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  text-align: center;
}

.v2 .lpx .lpx-edge:focus-within {
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-tint);
}

.v2 .lpx .lpx-el {
  color: var(--muted);
  font-size: 11.5px;
  text-align: left;
}

.v2 .lpx .lpx-ein {
  gap: 2px;
  margin: 0;
}

.v2 .lpx .lpx-ein input,
.v2 .lpx .lpx-ein input:focus,
.v2 .lpx .lpx-ein input:focus-visible {
  height: 32px;
  padding: 0 2px;
  border: 0;
  background: none;
  box-shadow: none;
  font-size: 17px;
}

.v2 .lpx .lpx-step {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 16px;
}

.v2 .lpx .lpx-ep {
  font-size: 11.5px;
  line-height: 1.2;
}
/* ---------- closed positions, owner 2026-10-24: less text — two quiet lines a row (pair over venue · fee, date over
 * held time, PnL over %), no «Выведено» column (it is in the PnL tooltip); PnL is the cycle's figure for the owner ---------- */
@container pfclosed (min-width: 600px) {
  .v2 #pf-closed #pf-closed-table :is(th, td):nth-child(5) {
    display: none;
  }

  .v2 #pf-closed #pf-closed-table th:nth-child(7) {
    width: 120px;
  }

  .v2 #pf-closed #pf-closed-rows > tr > td {
    padding-block: 10px;
    line-height: 1.3;
  }

  .v2 #pf-closed #pf-closed-rows .pool {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .v2 #pf-closed #pf-closed-rows .pool .pair {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .v2 #pf-closed #pf-closed-rows .pool .tags {
    max-width: 100%;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .v2 #pf-closed #pf-closed-rows td:nth-child(2) > .sub,
  .v2 #pf-closed #pf-closed-rows td:nth-child(7) .sub {
    display: block;
    margin: 2px 0 0;
    color: var(--faint);
    font-size: 11.5px;
  }

  .v2 #pf-closed #pf-closed-rows td:nth-child(7) .cy-cell {
    justify-items: end;
    text-align: right;
  }
}
/* closed positions on a wide card: the columns share the width (the position no longer takes all the spare room),
 * figures right-aligned under right-aligned headers, the range spreads out */
@container pfclosed (min-width: 900px) {
  .v2 #pf-closed #pf-closed-table th:nth-child(1) {
    width: 24%;
  }

  .v2 #pf-closed #pf-closed-table th:nth-child(2) {
    width: 13%;
  }

  .v2 #pf-closed #pf-closed-table th:nth-child(3) {
    width: 19%;
  }

  .v2 #pf-closed #pf-closed-table th:is(:nth-child(4), :nth-child(6)) {
    width: 11%;
  }

  .v2 #pf-closed #pf-closed-table th:nth-child(7) {
    width: 16%;
  }

  .v2 #pf-closed #pf-closed-table th.c-act {
    width: 6%;
  }

  .v2 #pf-closed .rg {
    max-width: 220px;
  }
}

.v2 #pf-closed #pf-closed-table th:is(:nth-child(4), :nth-child(5), :nth-child(6), :nth-child(7)),
.v2 #pf-closed #pf-closed-rows > tr > td:is(:nth-child(4), :nth-child(5), :nth-child(6), :nth-child(7)) {
  text-align: right;
}

.v2 #pf-closed #pf-closed-rows > tr > td:is(:nth-child(4), :nth-child(6)) {
  color: var(--fg2);
  font: 500 13px var(--num);
}

.v2 #pf-closed #pf-closed-rows > tr > td.c-act {
  text-align: right;
}
/* a narrow board: the phone grid again (the even-columns template of 2026-10-24 came later in the file and won) */
@container plist (max-width: 760px) {
  .v2 .board[data-view="list"] .pr {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }
}

/* Settings › Цикл › «Не сведено» (owner, 2026-10-24): folded by default, the header is the toggle; open, the items are
 * compact cards side by side (what and when on the left, the price field and «Указать» on the right, centred) */
.v2 #tab-alerts #pf-cycle .cy-sec-tg {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  margin: -4px -8px 6px;
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--muted);
}

.v2 #tab-alerts #pf-cycle .cy-sec-tg:hover {
  background: var(--fill2);
  color: var(--fg);
}

.v2 #tab-alerts #pf-cycle .cy-sec-tg[aria-expanded="false"] {
  margin-bottom: -4px;
}

.v2 #tab-alerts #pf-cycle .cy-sec-tg > #cy-unres-n {
  color: var(--faint);
}

.v2 #tab-alerts #pf-cycle .cy-urs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr));
  gap: 8px;
}

.v2 #tab-alerts #pf-cycle .cy-ur {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.v2 #tab-alerts #pf-cycle .cy-ur-t {
  gap: 3px;
}

.v2 #tab-alerts #pf-cycle .cy-ur-t > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
}

.v2 #tab-alerts #pf-cycle .cy-ur-t > span:first-child b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2 #tab-alerts #pf-cycle .cy-ur-t > .muted.small {
  overflow: hidden;
  color: var(--faint);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2 #tab-alerts #pf-cycle .cy-ur-f {
  align-items: center;
}

.v2 #tab-alerts #pf-cycle .cy-ur-f input {
  width: 110px;
  height: 30px;
}

.v2 #tab-alerts #pf-cycle .cy-ur-f .btn {
  height: 30px;
}
/* portfolio (owner, 2026-10-24): no manual refresh (figures arrive by server push); with no positions the header row
 * (only the hidden share and the read time were left in it) goes, so «Позиции / Действия» starts level with «Кошельки» */
.v2 #tab-portfolio #pf-refresh {
  display: none;
}

.v2.v2-pf-none #tab-portfolio .pf2-main > .pfh {
  display: none;
}
/* ---------- pools list readability (owner, 2026-10-24): the name and the four figures sit together (the figures share
 * the spare width instead of a gap after the name), the liquidity chart is compact and muted with only the price line
 * bright, «5 мин» stays the one bold figure, the other figures quieter, the issuer tag without its
 * chip, rows 52 px ---------- */
@container plist (min-width: 1061px) {
  .v2 .board[data-view="list"] .pr,
  .v2 .lh {
    grid-template-columns: 58px minmax(190px, 270px) repeat(4, minmax(88px, 136px)) minmax(240px, 1fr) 112px;
  }
}

.v2 .board[data-view="list"] .pr {
  padding-block: 7px;
}

.v2 .board[data-view="list"] .pr :is(.pr-30, .pr-vol, .pr-tvl) {
  color: var(--fg2);
  font-size: 14px;
  font-weight: 400;
}

.v2 .board[data-view="list"] .pr .lqs rect.bid {
  fill: color-mix(in srgb, var(--up) 42%, transparent);
}

.v2 .board[data-view="list"] .pr .lqs rect.ask {
  fill: color-mix(in srgb, var(--down) 40%, transparent);
}

.v2 .board[data-view="list"] .pr .lqs line.floor {
  stroke: var(--sep);
}

.v2 .pc-tags .b.iss {
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--faint);
  font-weight: 500;
}
.v2 .board[data-view="list"] .pr > .pr-liq .lq {
  max-width: 300px;
  margin-inline: auto;
}

/* pools (owner, 2026-10-24): no «алерт» tag on rows and cards; the logo goes to the pools tab; «5 мин» at the
 * burst-alert level in the accent colour (the old design's gold); a figure that grew flashes green once */
.v2 .pc-tags .b.bell {
  display: none;
}

.v2 :is(.side-brand, .bar-mark) {
  cursor: pointer;
}

.v2 .pr.hit .pr-5 b,
.v2 .pc.hit .pc-v {
  color: var(--acc);
}

/* the flash is a green copy of the figure over it (its data-v) that fades out: an opacity animation the compositor
 * runs, so a page of growing figures costs no repaint per frame at 240 Hz (a colour / glow animation repainted the
 * text every frame) */
.v2 .pr .pr-5 b,
.v2 .pr .pr-30 .pr-v,
.v2 .pc .pc-v,
.v2 .pc .pc-30 b {
  position: relative;
  font-style: normal;
}

.v2 .pr .pr-5 b::after,
.v2 .pr .pr-30 .pr-v::after,
.v2 .pc .pc-v::after,
.v2 .pc .pc-30 b::after {
  content: attr(data-v);
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  padding: inherit;
  color: var(--up);
  text-align: inherit;
  text-shadow: 0 0 14px color-mix(in srgb, var(--up) 55%, transparent);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.v2 .pr.up5 .pr-5 b::after,
.v2 .pc.up5 .pc-v::after,
.v2 .pr.up30 .pr-30 .pr-v::after,
.v2 .pc.up30 .pc-30 b::after {
  animation: v2-grew 1.6s var(--ease);
}

@keyframes v2-grew {
  0%,
  18% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v2 :is(.pr, .pc):is(.up5, .up30) *::after {
    animation: none !important;
  }
}
/* pools: the main token's links (Jupiter, OKX Web3, Backpack / Arcus), always shown in place of the hover «LP» / «⊘»:
 * three fixed slots of round 30 px marks, centred in their column, a soft ring on hover */
.v2 :is(.pc, .pr) .pc-acts {
  display: grid;
  grid-template-columns: repeat(3, 30px);
  align-items: center;
  gap: 8px;
  opacity: 1;
}

.v2 .board[data-view="list"] .pr > .pc-acts {
  justify-self: center;
}

.v2 .pc-acts .pc-ln {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  transition: box-shadow 0.15s, transform 0.15s;
}

.v2 .pc-acts a.pc-ln {
  box-shadow: 0 0 0 1px var(--line2);
}

.v2 .pc-acts .pc-ln svg {
  display: block;
  width: 30px;
  height: 30px;
  stroke: none;
}

.v2 .pc-acts a.pc-ln:hover {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--line2);
  transform: translateY(-1px);
}

.v2 .pc-acts a.pc-ln:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--acc);
}
@container plist (max-width: 1060px) {
  .v2 .board[data-view="list"] .pr,
  .v2 .lh {
    grid-template-columns: 54px minmax(150px, 1fr) repeat(4, 86px) minmax(140px, 1.3fr) 112px;
  }
}

/* a picked position's row: the tint runs under its buttons too */
@media (hover: hover) and (min-width: 768px) {
  .v2 .lpx .lpx-ptab:not(.lpx-ctab, .lpx-htab) tbody tr.sel td.c-act {
    background: var(--acc-tint) !important;
  }
}

/* LP window «Мои позиции» (owner, 2026-10-24, variant B): the range keeps its size, the three figures follow it in
 * even columns (right-aligned under right-aligned heads), the spare width sits before the buttons */
@media (min-width: 768px) {
  .v2 .lpx .lpx-ptab:not(.lpx-ctab, .lpx-htab) th:nth-child(2) {
    width: 300px;
  }

  .v2 .lpx .lpx-ptab:not(.lpx-ctab, .lpx-htab) th:is(:nth-child(3), :nth-child(4), :nth-child(5)) {
    width: 120px;
    text-align: right;
  }

  .v2 .lpx .lpx-ptab:not(.lpx-ctab, .lpx-htab) tbody td:is(:nth-child(3), :nth-child(4), :nth-child(5)) {
    text-align: right;
    vertical-align: middle;
  }

  .v2 .lpx .lpx-ptab:not(.lpx-ctab, .lpx-htab) th.c-act {
    width: auto;
  }

  .v2 .lpx .lpx-ptab:not(.lpx-ctab, .lpx-htab) tbody tr td.c-act {
    width: auto;
    text-align: right;
  }

  .v2 .lpx .lpx-ptab:not(.lpx-ctab, .lpx-htab) .rg {
    width: 260px;
    max-width: 260px;
  }
}

/* The same on a wide screen (owner, 2026-11-07): the spare width no longer sits before the buttons, it goes to the three
 * figures, centred in even columns; the range grows to 360 px at most, the buttons keep only their own width. */
@media (min-width: 1200px) {
  .v2 .lpx .lpx-ptab.lpx-mine th:nth-child(2) {
    width: 1%;
  }

  .v2 .lpx .lpx-ptab.lpx-mine th:is(:nth-child(3), :nth-child(4), :nth-child(5)) {
    width: 14%;
    text-align: center;
  }

  .v2 .lpx .lpx-ptab.lpx-mine tbody td:is(:nth-child(3), :nth-child(4), :nth-child(5)) {
    text-align: center;
  }

  .v2 .lpx .lpx-ptab.lpx-mine th.c-act,
  .v2 .lpx .lpx-ptab.lpx-mine tbody tr td.c-act {
    width: 1%;
  }

  .v2 .lpx .lpx-ptab.lpx-mine .rg {
    width: clamp(220px, 19vw, 360px);
    max-width: none;
  }
}
/* ---------- pools list, owner 2026-10-24: TVL before «5 мин»; taller rows and larger text; the header row larger than
 * the rows' secondary text; hairlines left and right of the liquidity column; «Платформы» heads the links ---------- */
.v2 .board[data-view="list"] .pr {
  padding-block: 12px;
}

.v2 .board[data-view="list"] .pr .pc-pair {
  font-size: 16px;
}

.v2 .board[data-view="list"] .pr .pc-tags {
  font-size: 12.5px;
}

.v2 .board[data-view="list"] .pr :is(.pr-tvl, .pr-30, .pr-vol) {
  color: var(--fg2);
  font-size: 15px;
  font-weight: 400;
}

.v2 .board[data-view="list"] .pr .pr-5 b {
  font-size: 21px;
}

.v2 .lh {
  padding-block: 14px;
}

.v2 .lh > * {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

.v2 .lh > :is(:nth-child(3), :nth-child(4), :nth-child(5), :nth-child(6)) {
  justify-self: end;
  text-align: right;
}

.v2 .lh > :nth-child(7),
.v2 .lh > :nth-child(8) {
  justify-self: stretch;
  text-align: center;
}

/* the liquidity column between two hairlines that run the full row (and header) height */
.v2 .board[data-view="list"] .pr > .pr-liq {
  display: flex;
  align-items: center;
  align-self: stretch;
  margin-block: -12px;
  padding: 12px 16px;
  border-inline: 1px solid var(--sep);
}

.v2 .board[data-view="list"] .pr .pr-liq .lqs {
  height: 34px;
}

.v2 .lh > :nth-child(7) {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  margin-block: -14px;
  padding-block: 14px;
  border-inline: 1px solid var(--sep);
}

/* a view switch: drawn hidden until the page size fitted to the new view has landed (v2.js `swap`) */
.v2 .board.swap {
  opacity: 0;
}

.v2 .board.swap > * {
  animation: none !important;
}
/* ---------- 240 Hz (owner, 2026-10-24): the decor never repaints per frame ----------
 * The orbital light turned inside its SVG, so every frame repainted the whole blurred, masked picture — 240 times a
 * second on a 240 Hz screen. Now the SVG element itself turns (a compositor-only transform of a picture painted once);
 * the comets live in their own small SVG on top, turning with it, with a soft wide stroke instead of a drop-shadow
 * filter; and everything stops while the page is scrolled past it. */
.v2 .hero-fx {
  transform-origin: 70% 65%;
  will-change: transform;
  animation: v2-orbit 22s ease-in-out infinite alternate;
}

.v2 .hero-fx .fx-orbit {
  transform: none;
  animation: none;
}

.v2 .hero-fx .fx-run {
  filter: none;
}

.v2 .hero-fx .fx-glow {
  stroke: var(--fx1);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 70 2400;
  opacity: 0.35;
  animation: v2-run 9s linear infinite;
}

.v2 .hero-fx .fx-glow.fx-run2 {
  stroke-dasharray: 40 1500;
  animation-duration: 6.5s;
  animation-delay: -3s;
}

.v2.scrolled .hero-fx,
.v2.scrolled .hero-fx * {
  animation-play-state: paused;
}

/* no layer per pool card / row (dozens of layers to composite every frame, and text and logos rasterised soft);
 * the browser promotes a card only while it moves */
.v2 .pc,
.v2 .pr {
  will-change: auto;
}

/* the sticky list header: a solid surface, no backdrop blur re-run on every scrolled frame */
.v2 .lh {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: var(--card);
}

/* platform marks: crisp app-icon squares */
.v2 .pc-acts .pc-ln {
  border-radius: 8px;
}
/* the comets are the only per-frame repaint left (a stroke-dashoffset cannot run on the compositor): they step 60
 * times a second whatever the screen's rate, so a 240 Hz screen does not repaint them four times as often */
.v2 .hero-fx :is(.fx-run, .fx-glow) {
  animation-timing-function: steps(540);
}

.v2 .hero-fx :is(.fx-run, .fx-glow).fx-run2 {
  animation-timing-function: steps(390);
}
/* ---------- pools list, owner 2026-10-24 (2): marks of one size and quieter, the name closer to TVL, the sorted head
 * not orange, a hairline between every two columns (cell borders, d163) ---------- */
.v2 .pc-acts a.pc-ln {
  box-shadow: none;
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -1px;
  filter: saturate(0.8) brightness(0.92);
  transition: filter 0.15s, transform 0.15s;
}

.v2 .pc-acts a.pc-ln:hover {
  filter: none;
  box-shadow: none;
}

@container plist (min-width: 1061px) {
  .v2 .board[data-view="list"] .pr,
  .v2 .lh {
    grid-template-columns: 58px minmax(170px, 230px) repeat(4, minmax(88px, 124px)) minmax(240px, 1fr) 112px;
  }
}

.v2 .lh button.on {
  color: var(--fg);
}

.v2 .lh button.on i {
  color: var(--muted);
}

/* the rules replace the liquidity column's own two hairlines */
.v2 .board[data-view="list"] .pr > .pr-liq,
.v2 .lh > :nth-child(7) {
  border-inline: 0;
}

/* with the rules between them, the four figures sit in the middle of their columns (closer to the name, no ragged gap) */
.v2 .board[data-view="list"] .pr :is(.pr-tvl, .pr-5, .pr-30, .pr-vol),
.v2 .board[data-view="list"] .pr :is(.pr-tvl, .pr-5, .pr-30, .pr-vol) > b {
  justify-self: center;
  justify-items: center;
  text-align: center;
}

.v2 .lh > :is(:nth-child(3), :nth-child(4), :nth-child(5), :nth-child(6)) {
  justify-self: center;
  text-align: center;
}
/* ---------- pools list column rules, done right (owner, 2026-10-24): every cell is the full row height and draws its
 * own left hairline, so the lines can never drift from the columns (d162 painted them from a one-off measure, which
 * slid off when the table re-laid). The gaps became cell padding: the tracks are 24 px wider than before. ---------- */
@container plist (min-width: 761px) {
  .v2 .board[data-view="list"] .pr.pr,
  .v2 .lh.lh {
    column-gap: 0;
    padding-block: 0;
    grid-template-columns: 82px minmax(194px, 254px) repeat(4, minmax(112px, 148px)) minmax(264px, 1fr) 136px;
  }

  .v2 .lh.lh {
    height: auto;
    min-height: 48px;
  }

  .v2 .board[data-view="list"] .pr.pr > *,
  .v2 .lh.lh > * {
    box-sizing: border-box;
    align-self: stretch;
    justify-self: stretch;
    min-width: 0;
    margin-block: 0;
    padding: 12px;
  }

  .v2 .lh.lh > * {
    display: flex;
    align-items: center;
    padding-block: 14px;
  }

  .v2 .board[data-view="list"] .pr.pr > * + *,
  .v2 .lh.lh > * + * {
    border-left: 1px solid var(--sep);
  }

  /* each cell keeps its content in the middle of the row */
  .v2 .board[data-view="list"] .pr.pr > .cm {
    justify-content: center;
    align-items: center;
  }

  .v2 .board[data-view="list"] .pr.pr > .pc-t {
    align-content: center;
  }

  .v2 .board[data-view="list"] .pr.pr > .pr-c {
    align-content: center;
    justify-content: center;
    justify-items: center;
  }

  .v2 .board[data-view="list"] .pr.pr > .pr-liq {
    align-items: center;
    padding: 12px 16px;
    border-right: 0;
  }

  .v2 .board[data-view="list"] .pr.pr > .pc-acts {
    justify-self: stretch;
    margin: 0;
    align-content: center;
    justify-content: center;
  }

  .v2 .lh.lh > :is(:nth-child(1), :nth-child(3), :nth-child(4), :nth-child(5), :nth-child(6), :nth-child(7), :nth-child(8)) {
    justify-content: center;
    text-align: center;
  }

  .v2 .lh.lh > :nth-child(2) {
    justify-content: flex-start;
  }
}

@container plist (min-width: 761px) and (max-width: 1060px) {
  .v2 .board[data-view="list"] .pr.pr,
  .v2 .lh.lh {
    grid-template-columns: 78px minmax(170px, 1fr) repeat(4, 104px) minmax(160px, 1.3fr) 128px;
  }
}
@container plist (min-width: 761px) {
  /* the chain badge keeps its own size (it is the first cell: no rule of its own) */
  .v2 .board[data-view="list"] .pr.pr > .cm {
    align-self: center;
    justify-self: center;
    width: 54px;
    padding: 6px 6px 5px;
  }
}

/* a narrower board: tighter cells so all eight columns still fit */
@container plist (min-width: 761px) and (max-width: 1060px) {
  .v2 .board[data-view="list"] .pr.pr,
  .v2 .lh.lh {
    grid-template-columns: 60px minmax(120px, 1fr) repeat(4, 88px) minmax(110px, 1fr) 116px;
  }

  .v2 .board[data-view="list"] .pr.pr > :not(.cm),
  .v2 .lh.lh > * {
    padding-inline: 8px;
  }

  .v2 .board[data-view="list"] .pr.pr > .pc-acts {
    gap: 4px;
  }
}
/* ---------- Settings › Цикл › Backpack (owner, 2026-10-24): «Создать ключ» first, the public key to paste with a copy
 * button; pasting one's own API Key + Secret folded under it ---------- */
.v2 #pf-cycle .cy-bp-gen {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.v2 #pf-cycle .cy-bp-gen > p {
  max-width: 760px;
  margin: 0;
  color: var(--fg2);
  line-height: 1.45;
}

.v2 #pf-cycle .cy-bp-gen .ap-save {
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.v2 #pf-cycle .cy-bp-own {
  min-width: 150px;
}

.v2 #pf-cycle .cy-bp-pub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.v2 #pf-cycle .cy-bp-pub code {
  color: var(--fg);
  font-size: 12.5px;
  word-break: break-all;
}

.v2 #pf-cycle .cy-bp-own-key {
  margin-top: 4px;
}

.v2 #pf-cycle .cy-bp-own-key > summary {
  width: max-content;
  color: var(--muted);
  cursor: pointer;
}

.v2 #pf-cycle .cy-bp-own-key[open] > summary {
  margin-bottom: 10px;
}

.v2 #pf-cycle .cy-bp-i code {
  color: var(--fg2);
}
/* ---------- d167: «Действия» — fixed columns (the links' column had no width: RAY / OKX lay over the sum and the
   position column changed width row to row), cells centred top to bottom, a rule between columns ---------- */
@container pffeed (min-width: 720px) {
  .v2 #pf-feed-rows#pf-feed-rows > tr {
    grid-template-columns: 96px 120px minmax(0, 1fr) 236px 156px 96px;
    column-gap: 0;
    align-items: stretch;
    padding: 0;
  }

  .v2 #pf-feed-rows#pf-feed-rows > tr > td {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 66px;
    padding: 12px 16px;
  }

  .v2 #pf-feed-rows#pf-feed-rows > tr > td + td {
    border-left: 1px solid var(--sep);
  }

  .v2 #pf-feed-rows#pf-feed-rows > tr > td:is(.pf-c-kind, .pf-c-rg, [data-l], .pf-c-act) {
    align-items: center;
    text-align: center;
  }

  .v2 #pf-feed-rows#pf-feed-rows .pf-c-rg .rv {
    width: 100%;
  }

  .v2 #pf-feed-rows#pf-feed-rows .pf-c-rg .rv-row {
    justify-content: space-between;
  }

  .v2 #pf-feed-rows#pf-feed-rows > tr > td.pf-c-act {
    width: auto;
    max-width: none;
    overflow: visible;
  }

  .v2 #pf-feed-rows#pf-feed-rows .pf-c-act .acts {
    position: static;
    justify-content: center;
    gap: 4px;
  }
}

/* the change of an add / cut wraps whole, never between its sign and figure */
.v2 #pf-feed-rows td[data-l] .sub :is(.pnl-up, .pnl-down) {
  white-space: nowrap;
}

/* pools list: «нет у цены» / «пул пуст» / «—» in the liquidity column sit in its middle, like the bars */
.v2 .board[data-view="list"] .pr > .pr-liq:has(> :is(.lq-none, .muted)) {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.v2 .board[data-view="list"] .pr > .pr-liq > :is(.lq-none, .muted) {
  width: auto;
  margin: 0 auto;
  border-bottom: 0;
}

/* «Все пулы» panel (owner, 10-25): the pair, one quiet meta line, figures right; the accent dot is the new accent */
.v2 .lpx-aptab td {
  padding-block: 11px;
}

.v2 .lpx-apx {
  background: var(--acc);
}

.v2 .lpx-ameta {
  color: var(--faint);
  font-size: 11.5px;
}

.v2 .lpx-sw.off {
  box-shadow: inset 0 0 0 1px var(--sep);
}

.v2 .lpx-aptab td b {
  color: var(--fg);
  font-weight: 600;
}

/* Backpack key form: a new subaccount's name beside the account select */
.v2 #pf-cycle .cy-bp-sub {
  min-width: 150px;
}

/* «Свапалка» (admin): the tab finds a pool; the LP window in swap mode shows the swap card in place of the position form. */
.lpx-mode { width: 100%; }
.lpx-mode button { flex: 1; }
.lpx-swapc { display: none; flex-direction: column; gap: 10px; }
.lpx.lpx-swapmode .lpx-swapc { display: flex; }
.lpx.lpx-swapmode .lpx-dbtn { display: none !important; }
.lpx.lpx-swapmode #lpx-range, .lpx.lpx-swapmode #lpx-amount, .lpx.lpx-swapmode #lpx-prev, .lpx.lpx-swapmode #lpx-go, .lpx.lpx-swapmode #lpx-steps, .lpx.lpx-swapmode .lpx-nd { display: none !important; }
.lpx-swapc #sw-form { display: flex; flex-direction: column; gap: 10px; }
.lpx-swapc #sw-form[hidden] { display: none; }
.sw-side { width: 100%; }
.sw-side button { flex: 1; }
.sw-amt input { width: 100%; }
.sw-amt-in { display: flex; align-items: center; gap: 8px; }
.sw-unit { color: var(--muted); white-space: nowrap; }
.sw-quote { display: flex; flex-direction: column; gap: 4px; min-height: 18px; }
.sw-get { font-size: 14px; }
.sw-warn { color: var(--warn, #f2b95b); }
.sw-err { color: var(--down); }
.sw-log { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.sw-log:empty { display: none; }
.sw-log .ok { color: var(--up); }
.sw-log .err { color: var(--down); }
/* Свапалка: the beta mark */
.v2 .tab-sw-btn .sw-soon { display: inline; flex: none; color: var(--faint); font-size: 12px; font-weight: 500; }
@media (max-width: 1099px) {
  .v2 .tab-sw-btn .sw-soon { display: none; }
}
.v2 .li-in:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-tint); }
.v2 .lpx-pi.li-tok.hit { border: 1px solid var(--acc); background: var(--acc-tint); }
/* The admin's left panel (owner, 2026-11-05): narrower, beside the pool window too, wide with words or narrow with icons. */
.v2 .side-tg { display: none; }
@media (min-width: 1100px) {
  html.v2.adm-side { --side-w: 184px; }
  html.v2.adm-side.side-mini { --side-w: 64px; }
  .v2.adm-side .mark-t { font-size: 11.5px; letter-spacing: 0.1em; }
  .v2.adm-side .side-tg { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; margin-bottom: 8px; padding: 0 10px; color: var(--muted); background: none; border: 0; border-radius: var(--r-s); font: inherit; font-size: 13px; cursor: pointer; }
  .v2.adm-side .side-tg:hover { color: var(--fg); background: var(--card); }
  .v2.adm-side .side-tg svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; }
  .v2.side-mini .side { align-items: center; padding: 16px 8px; }
  .v2.side-mini .side-brand { padding: 0; }
  .v2.side-mini :is(.mark-t, .tab-t, .nav-l, .side-stat span:last-child, .side-tg span, .side .theme-seg span, .side-nav .sw-soon) { display: none; }
  .v2.side-mini .side-tg { justify-content: center; padding: 0; }
  .v2.side-mini .side-stat { justify-content: center; padding: 10px; }
  .v2.side-mini .side-nav { gap: 4px; }
  .v2.side-mini .nav-ind::before { left: -8px; }
  .v2.side-mini .side-nav .tab { justify-content: center; width: 46px; height: 42px; padding: 0; }
  .v2.side-mini .side-nav .tab-i { width: 20px; height: 20px; }
  .v2.side-mini .side-nav .count { display: none; }
  .v2.side-mini .side-nav .count.hot { position: absolute; top: 3px; right: 3px; display: block; min-width: 16px; padding: 0 4px; font-size: 10px; line-height: 16px; }
  .v2.side-mini .side .theme-seg { flex-direction: column; width: 44px; }
}
@media (min-width: 768px) {
  .v2.adm-side .lpx { left: var(--side-w); }
}
@media (min-width: 1100px) {
  .v2.adm-side:not(.side-mini) .side .theme-seg button { min-width: 0; padding: 0 5px; gap: 4px; font-size: 12px; }
}
/* Behind the pool window nothing has to be drawn: the page's animated background (SVG blur and shadow, repainted every frame) cost the chart its frames. */
.v2 body.lpx-on .hero-fx { display: none; }
.v2 body.lpx-on .panel { visibility: hidden; }
/* Position cards one height: with «Цикл» the last row holds three tiles, not a row more for «За 24ч». */
.v2 :is(#pf-rows, #pf-peek-rows) > tr:not(.pf-det) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.v2 :is(#pf-rows, #pf-peek-rows) > tr:not(.pf-det) > td[data-l] { grid-column: span 3; }
.v2 :is(#pf-rows, #pf-peek-rows) > tr:not(.pf-det):has(> td.pf-c-cy .cy-cell) > :is(td[data-l="PnL"], td.pf-c-cy, td.pf-c-cy + td[data-l]) { grid-column: span 2; padding-inline: 12px 6px; }
.v2 :is(#pf-rows, #pf-peek-rows) > tr:not(.pf-det):has(> td.pf-c-cy .cy-cell) > td[data-l="PnL"] { padding-left: 16px; }
.v2 :is(#pf-rows, #pf-peek-rows) > tr:not(.pf-det) > td.pf-c-cy:has(.cy-cell) + td[data-l] { border-left: 1px solid var(--line); }
/* The blacklist is not in the left panel; its page stays at its address. */
.v2.adm-side .side-nav .tab[data-tab="blacklist"] { display: none; }
/* The range line in the window's own positions: what the position holds, in the site's own two tones: the stable grey, the token the accent. */
.v2 .lpx-ptab .rg.mix { gap: 5px; min-width: 250px; max-width: 300px; }
.v2 .lpx-ptab .rg.mix .rg-track { height: 4px; background: linear-gradient(90deg, var(--fg2) var(--q, 50%), var(--acc) var(--q, 50%)); }
.v2 .lpx-ptab .rg.mix .rg-tick { top: -3px; height: 10px; width: 2px; background: var(--fg); box-shadow: 0 0 0 1.5px var(--card); }
.v2 .lpx-ptab .rg.mix.out .rg-track { opacity: 0.55; }
.v2 .lpx-ptab .rg-mixr { color: var(--faint); font-size: 11px; }
.v2 .lpx-ptab .rg-mixr b { color: var(--fg2); font-size: 12px; font-weight: 500; }
.v2 .lpx-ptab .rg-mixr .rg-b b { color: var(--acc); }

/* ---------- light theme: readable text (owner 2026-11-07, every text >= 4.5:1 on its own background) ---------- */

/* chain tags in the portfolio rows: real light-theme colours instead of a filter over the dark-page ones */
.v2.t-light :is(#pf-rows, #pf-peek-rows, #pf-feed-rows) .pf-meta .b:first-child {
  filter: none;
}

.v2.t-light :is(#pf-rows, #pf-peek-rows, #pf-feed-rows) .pf-meta .b.eth:first-child {
  color: #4659c9;
}

.v2.t-light :is(#pf-rows, #pf-peek-rows, #pf-feed-rows) .pf-meta .b.rh:first-child {
  color: #4c7a00;
}

/* off and disabled controls: told apart by a flat fill and the quiet ink, not by fading the text away */
.v2.t-light :is(#tab-pools .pager .btn.icon, .ap-pg, #tab-autopilot .btn):disabled,
.v2.t-light .btn.off,
.v2.t-light .btn.off:hover,
.v2.t-light .act.lpa.off {
  color: var(--faint);
  opacity: 1;
}

.v2.t-light #lpx-pv-go:disabled {
  background: var(--card3);
  color: var(--faint);
  opacity: 1;
}

.v2.t-light #drawer-body .d-head .d-addr {
  opacity: 1;
}

/* chain badges: app.js paints them in the chain's pale colour, made for a dark page */
.v2.t-light .b[class*=" c-"] {
  color: var(--fg2);
}

/* the black circle fades with every black in the light palette; the white cross on it must not */
.v2.t-light .ideas-shot button {
  background: rgba(23, 23, 26, 0.8);
}

/* small orange words on an orange tint */
.v2.t-light :is(.trend.fresh, .donate-net) {
  color: #a82e0c;
}
