/* ==========================================================================
   VERTEX — the Arenyze network design system.
   One skeleton for every tracker; each game only swaps its palette and its
   texture (themes.css). Signature: the chamfered vertex cut on every module
   (the Arenyze mark), registration marks, mono index labels, readouts on
   tick rulers, the oversized outlined word behind every page head.
   ========================================================================== */

:root {
  --f: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --wrap: 1320px;
  --gut: clamp(16px, 3.6vw, 40px);
  --net-h: 36px;
  --hdr-h: 62px;
  --cut: 14px;
  --cut-s: 8px;
  --r: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t: .22s var(--ease);
  --t-slow: .5s var(--ease-out);
  --plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11'%3E%3Cpath d='M5 0h1v11H5zM0 5h11v1H0z'/%3E%3C/svg%3E");

  /* dark (default) */
  color-scheme: dark;
  --bg: #0b0c0e;
  --bg-2: #0e1013;
  --s1: #121418;
  --s2: #171a1f;
  --s3: #1e2228;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --line-3: rgba(255, 255, 255, .22);
  --ink: #eceef1;
  --ink-2: #a8adb6;
  --ink-3: #6e747e;
  --ink-4: #4a4f58;
  --dot: rgba(255, 255, 255, .085);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --glass: rgba(11, 12, 14, .78);
  --ok: #3ddc97;
  --bad: #ff5d6c;
  --warn: #ffb547;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f4f3ef; --bg-2: #eceae4; --s1: #ffffff; --s2: #f8f7f4; --s3: #efede8;
    --line: rgba(16, 18, 22, .085); --line-2: rgba(16, 18, 22, .14); --line-3: rgba(16, 18, 22, .26);
    --ink: #111317; --ink-2: #4b5059; --ink-3: #7c818b; --ink-4: #a6aab2;
    --dot: rgba(16, 18, 22, .1); --shadow: 0 24px 50px -28px rgba(20, 22, 28, .35); --glass: rgba(244, 243, 239, .82);
    --ok: #0f9e6a; --bad: #d92d43; --warn: #b86e00;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f3ef; --bg-2: #eceae4; --s1: #ffffff; --s2: #f8f7f4; --s3: #efede8;
  --line: rgba(16, 18, 22, .085); --line-2: rgba(16, 18, 22, .14); --line-3: rgba(16, 18, 22, .26);
  --ink: #111317; --ink-2: #4b5059; --ink-3: #7c818b; --ink-4: #a6aab2;
  --dot: rgba(16, 18, 22, .1); --shadow: 0 24px 50px -28px rgba(20, 22, 28, .35); --glass: rgba(244, 243, 239, .82);
  --ok: #0f9e6a; --bad: #d92d43; --warn: #b86e00;
}

/* ---- base --------------------------------------------------------------- */
/* THE FINALS: the element rules live in the old CSS layer "base", so the layered page components (.btn, .tabs…) still win over them */
@layer base {
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 56px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.55 var(--f); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  min-height: 100vh; overflow-x: clip;
}
::selection { background: var(--acc); color: var(--acc-ink); }
a { color: inherit; text-decoration: none; }
p a, .vx-prose a, .vx-note a, dd a, .vx-text a { color: var(--acc-t); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--acc-t) 40%, transparent); text-underline-offset: 3px; transition: text-decoration-color var(--t); }
p a:hover, .vx-prose a:hover, .vx-note a:hover, dd a:hover { text-decoration-color: currentColor; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: -.012em; }
p { margin: 0 0 .8em; }
p:last-child { margin-bottom: 0; }
code, kbd, .vx-mono { font-family: var(--f-mono); font-size: .9em; }
code { padding: 1px 5px; background: var(--s3); border: 1px solid var(--line); border-radius: 3px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
}
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 1.1em; height: 1.1em; flex: none; fill: currentColor; vertical-align: -.17em; }
.vx-skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--acc); color: var(--acc-ink); padding: 10px 14px; font-weight: 700; }
.vx-skip:focus { top: 12px; }
.vx-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.vx-muted { color: var(--ink-3); }
.vx-small { font-size: 13px; color: var(--ink-2); }
.vx-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.vx-row.is-c { justify-content: center; margin-top: 14px; }
.vx-h3 { font-size: 14px; font-weight: 650; margin: 14px 0 8px; }
/* a note is running text (links, dates inline) with its icon hung in the margin */
.vx-note { position: relative; display: block; padding-left: 22px; font-size: 13px; line-height: 1.55; color: var(--ink-3); margin: 14px 0 0; }
.vx-note > .ic:first-child { position: absolute; left: 0; top: .2em; color: var(--ink-3); }

/* cross-document view transitions: the chrome stays, the page slides in */
@view-transition { navigation: auto; }
.vx-hdr { view-transition-name: vx-hdr; }
.vx-dock { view-transition-name: vx-dock; }
main { view-transition-name: vx-main; }
::view-transition-old(vx-main) { animation: vx-vt-out .18s var(--ease) both; }
::view-transition-new(vx-main) { animation: vx-vt-in .38s var(--ease-out) both; }
@keyframes vx-vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vx-vt-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* ---- type ----------------------------------------------------------------- */
.vx-kicker {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font: 600 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3);
}
.vx-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 7px; color: var(--acc-t); border: 1px solid color-mix(in srgb, var(--acc) 35%, transparent); background: color-mix(in srgb, var(--acc) 8%, transparent); }
.vx-live i { width: 6px; height: 6px; background: var(--acc); box-shadow: 0 0 0 0 color-mix(in srgb, var(--acc) 60%, transparent); animation: vx-pulse 2s infinite; }
@keyframes vx-pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.vx-h1 {
  display: flex; align-items: center; gap: 16px;
  font-size: clamp(30px, 4.3vw, 54px); font-weight: 780; font-stretch: 112%; letter-spacing: -.028em; line-height: 1.02;
  text-wrap: balance;
}
.vx-h1.is-xl { font-size: clamp(36px, 6vw, 76px); }
.vx-h1-ic { --s: 56px; }
.vx-lead { color: var(--ink-2); font-size: clamp(15px, 1.25vw, 17px); max-width: 64ch; margin-top: 14px; text-wrap: pretty; }
.vx-prose { color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.vx-prose b, .vx-prose strong { color: var(--ink); font-weight: 650; }
.vx-flavor { font-style: italic; color: var(--ink-3); border-left: 2px solid var(--line-2); padding-left: 14px; margin-top: 14px; }
.vx-richp { color: var(--ink-2); line-height: 1.65; }
.rt-term { border-bottom: 1px dotted currentColor; }

/* ---- the Arenyze network rail ------------------------------------------- */
.vx-net { height: var(--net-h); background: color-mix(in srgb, var(--bg) 55%, #000); border-bottom: 1px solid var(--line); position: relative; z-index: 41; }
:root[data-theme="light"] .vx-net { background: #101216; color: #eceef1; --line: rgba(255,255,255,.07); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .vx-net { background: #101216; color: #eceef1; } }
.vx-net-in { height: 100%; display: flex; align-items: stretch; gap: 0; }
.vx-net-home { display: flex; align-items: center; gap: 9px; padding-right: 16px; flex: none; color: #eceef1; }
.vx-net-home img { width: 20px; height: 20px; border-radius: 5px; transition: transform var(--t); }
.vx-net-home:hover img { transform: rotate(-8deg) scale(1.08); }
.vx-net-home b { font: 800 12.5px/1 var(--f); font-stretch: 122%; letter-spacing: .1em; text-transform: uppercase; }
.vx-net-sep { width: 1px; height: 16px; align-self: center; background: rgba(255,255,255,.16); flex: none; }
.vx-net-games { display: flex; align-items: stretch; margin-left: 4px; overflow-x: auto; scrollbar-width: none; }
.vx-net-games::-webkit-scrollbar { display: none; }
.vx-net-g { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 12px; flex: none; color: #eceef1; opacity: .48; font-size: 12.5px; font-weight: 560; transition: opacity var(--t), color var(--t); }
.vx-net-g:hover, .vx-net-g.is-on { opacity: 1; }
.vx-net-g:hover .vx-net-m, .vx-net-g.is-on .vx-net-m { color: var(--gc); }
.vx-net-g.is-on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--gc); box-shadow: 0 0 14px var(--gc); }
.vx-net-m { width: 17px; height: 17px; flex: none; transition: color var(--t); }
.vx-net-m.is-mask { background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.vx-net-s { display: none; }

/* ---- header ---------------------------------------------------------------- */
.vx-hdr {
  position: sticky; top: 0; z-index: 40; height: var(--hdr-h);
  background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.vx-hdr-in { height: 100%; display: flex; align-items: center; gap: 18px; }
.vx-brand { display: flex; align-items: center; gap: 11px; flex: none; }
.vx-brand-m {
  width: 36px; height: 36px; display: grid; place-items: center; color: var(--acc-ink); background: var(--acc);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%); transition: transform var(--t);
}
.vx-brand-m svg { width: 24px; height: 24px; }
.vx-brand:hover .vx-brand-m { transform: rotate(-4deg); }
.vx-brand-t { display: flex; flex-direction: column; line-height: 1; }
.vx-brand-t b { font-size: 17px; font-weight: 850; font-stretch: 125%; text-transform: uppercase; letter-spacing: .01em; }
.vx-brand-t small { margin-top: 4px; font: 600 9.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); display: flex; gap: 6px; }
.vx-brand-t small i { font-style: normal; color: var(--acc-t); }
.vx-nav { position: relative; display: flex; align-items: center; gap: 2px; margin-left: 8px; height: 100%; }
.vx-nav-a {
  position: relative; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 11px;
  font-size: 13.5px; font-weight: 560; color: var(--ink-2); border-radius: var(--r); transition: color var(--t), background var(--t);
}
.vx-nav-a .ic { font-size: 16px; color: var(--ink-3); transition: color var(--t); }
.vx-nav-a:hover, .vx-nav-a[aria-expanded="true"] { color: var(--ink); background: var(--s2); }
.vx-nav-a.is-on { color: var(--ink); }
.vx-nav-a.is-on .ic { color: var(--acc-t); }
.vx-nav > .vx-ink { position: absolute; bottom: -1px; height: 2px; left: 0; width: 0; background: var(--acc); box-shadow: 0 0 12px color-mix(in srgb, var(--acc) 60%, transparent); transform: translateX(var(--x, 0)); width: var(--w, 0); transition: transform .35s var(--ease-out), width .35s var(--ease-out), opacity .2s; }
.vx-caret { font-size: 12px !important; transition: transform var(--t); }
[aria-expanded="true"] > .vx-caret { transform: rotate(180deg); }
.vx-more { position: relative; }
.vx-mega {
  position: absolute; top: calc(100% + 13px); left: -40px; z-index: 50; width: min(820px, 92vw);
  background: var(--s1); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  animation: vx-pop .22s var(--ease-out);
}
@keyframes vx-pop { from { opacity: 0; transform: translateY(-6px); } }
.vx-mega-in { display: grid; grid-template-columns: repeat(3, 1fr) 1.05fr; gap: 6px; padding: 14px; }
.vx-mega-c { display: flex; flex-direction: column; gap: 2px; }
.vx-mega-l { display: block; font: 600 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: 10px 10px 8px; }
.vx-mega-a { display: flex; gap: 11px; align-items: flex-start; padding: 9px 10px; border-radius: var(--r); transition: background var(--t); }
.vx-mega-a:hover { background: var(--s2); }
.vx-mega-a b { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 620; }
.vx-mega-a b em { font: 700 9px/1 var(--f-mono); font-style: normal; padding: 3px 5px; background: var(--acc); color: var(--acc-ink); letter-spacing: .06em; }
.vx-mega-a small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.vx-mega-ic { width: 32px; height: 32px; display: grid; place-items: center; flex: none; background: var(--s3); border: 1px solid var(--line); color: var(--acc-t); font-size: 16px; }
.vx-mega-promo {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 16px; min-height: 180px; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--acc) 22%, var(--s2)), var(--s2) 60%); border: 1px solid color-mix(in srgb, var(--acc) 28%, var(--line));
}
.vx-mega-promo::before { content: ''; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 30%, transparent), transparent); }
.vx-mega-promo b { font-size: 16px; font-stretch: 110%; line-height: 1.2; position: relative; }
.vx-mega-promo small { color: var(--ink-2); font-size: 12px; position: relative; }
.vx-mega-promo > .ic { position: absolute; right: 14px; bottom: 16px; color: var(--acc-t); transition: transform var(--t); }
.vx-mega-promo:hover > .ic { transform: translateX(4px); }
.vx-hdr-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.vx-find {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 8px 0 12px; min-width: 280px;
  background: var(--s1); border: 1px solid var(--line-2); color: var(--ink-3); font-size: 13px; transition: border-color var(--t), background var(--t);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-s)), calc(100% - var(--cut-s)) 100%, 0 100%);
}
.vx-find:hover { border-color: var(--line-3); color: var(--ink-2); }
.vx-find .ic { font-size: 16px; }
.vx-find-t { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
kbd, .vx-find kbd { font: 600 10.5px/1 var(--f-mono); padding: 4px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--s2); color: var(--ink-3); border-radius: 3px; }
.vx-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; overflow: hidden; pointer-events: none; }
.vx-progress i { display: block; height: 100%; background: var(--acc); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .vx-progress i { animation: vx-progress linear both; animation-timeline: scroll(root); }
  @keyframes vx-progress { to { transform: scaleX(1); } }
}
.vx-btn.vx-burger { display: none; }

/* account */
.vx-acct { display: flex; align-items: center; gap: 8px; }
.vx-acct-w { position: relative; }
.vx-acct-av { display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 10px 0 4px; border: 1px solid var(--line-2); background: var(--s1); font-size: 13px; font-weight: 600; transition: border-color var(--t); }
.vx-acct-av:hover { border-color: var(--line-3); }
.vx-acct-av img, .vx-acct-av > span { width: 28px; height: 28px; object-fit: cover; display: grid; place-items: center; background: var(--acc); color: var(--acc-ink); font-weight: 800; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%); }
.vx-acct, .vx-acct-w, .vx-acct-av { flex: none; }
.vx-acct-av b { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vx-bell { position: relative; }
.vx-bell-n { position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; display: grid; place-items: center; font: 700 9.5px/1 var(--f-mono); background: var(--acc); color: var(--acc-ink); }
.vx-menu-p {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: 300px; background: var(--s1); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: vx-pop .2s var(--ease-out);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.vx-menu-p:not(.is-wide) { width: max-content; min-width: 200px; max-width: 280px; }
.vx-menu-p:not(.is-wide) .vx-menu-a { white-space: nowrap; padding-right: 22px; }
.vx-menu-p.is-wide { width: 360px; }
.vx-menu-h { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.vx-menu-h b { flex: 1; font-size: 13.5px; }
.vx-menu-h button { font-size: 12px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 5px; }
.vx-menu-h button:hover { color: var(--ink); }
.vx-menu-a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13.5px; color: var(--ink-2); width: 100%; transition: background var(--t), color var(--t); }
.vx-menu-a:hover { background: var(--s2); color: var(--ink); }
.vx-menu-a.is-bad { color: var(--bad); }
.vx-menu-list { max-height: 380px; overflow: auto; }
.vx-noti { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.vx-noti.is-new { background: color-mix(in srgb, var(--acc) 5%, transparent); box-shadow: inset 2px 0 0 var(--acc); }
.vx-noti b { display: block; font-size: 13px; }
.vx-noti p { font-size: 12.5px; color: var(--ink-2); margin: 2px 0 0; }
.vx-noti time { font: 500 10.5px var(--f-mono); color: var(--ink-3); }
.vx-menu-f { display: flex; justify-content: center; gap: 6px; padding: 11px; font-size: 12.5px; color: var(--acc-t); border-top: 1px solid var(--line); }

/* ---- buttons, tags, chips ------------------------------------------------ */
.vx-btn {
  --c: var(--cut-s);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px;
  font-size: 13.5px; font-weight: 640; letter-spacing: .005em; white-space: nowrap; color: var(--ink);
  background: var(--s2); border: 1px solid var(--line-2);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%);
  transition: background var(--t), border-color var(--t), color var(--t), transform .12s;
  isolation: isolate; overflow: hidden;
}
.vx-btn::after { content: ''; position: absolute; right: 0; bottom: 0; width: var(--c); height: var(--c); background: linear-gradient(to top left, transparent calc(50% - .7px), var(--line-2) calc(50% - .7px), var(--line-2) calc(50% + .7px), transparent calc(50% + .7px)); }
.vx-btn:hover { background: var(--s3); border-color: var(--line-3); }
.vx-btn:active { transform: translateY(1px); }
.vx-btn .ic { font-size: 16px; }
.vx-btn[disabled] { opacity: .55; pointer-events: none; }
.vx-btn.is-acc { background: var(--acc); color: var(--acc-ink); border-color: transparent; }
.vx-btn.is-acc::after { display: none; }
.vx-btn.is-acc::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.45) 48%, transparent 62%); transform: translateX(-120%); transition: transform .6s var(--ease-out);
}
.vx-btn.is-acc:hover { background: color-mix(in srgb, var(--acc) 88%, #fff); }
.vx-btn.is-acc:hover::before { transform: translateX(120%); }
.vx-btn.is-ghost { background: transparent; }
.vx-btn.is-ghost:hover { background: var(--s2); }
.vx-btn.is-sm { height: 32px; padding: 0 12px; font-size: 12.5px; --c: 6px; }
.vx-btn.is-lg { height: 48px; padding: 0 22px; font-size: 14.5px; --c: 10px; }
.vx-btn.is-icon { width: 40px; padding: 0; }
.vx-btn.is-sm.is-icon { width: 32px; }
.vx-btn.is-block { width: 100%; margin-top: 14px; }
.vx-btn.is-bad { color: var(--bad); }
.vx-btn.is-bad:hover { background: color-mix(in srgb, var(--bad) 10%, transparent); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.vx-btn.is-done { color: var(--ok); }
.vx-btn.is-busy { pointer-events: none; }
.vx-btn.is-busy::before { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 40%; background: currentColor; animation: vx-busy 1s var(--ease) infinite; transform: none; }
@keyframes vx-busy { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

.vx-tag {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; white-space: nowrap;
  font: 600 10.5px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
  background: var(--s2); border: 1px solid var(--line-2);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%);
}
.vx-tag .ic { font-size: 12px; }
.vx-tag.is-acc { color: var(--acc-t); border-color: color-mix(in srgb, var(--acc) 40%, transparent); background: color-mix(in srgb, var(--acc) 8%, transparent); }
.vx-tag.is-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.vx-tag.is-bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); background: color-mix(in srgb, var(--bad) 8%, transparent); }
.vx-tag.is-link { text-decoration: none; transition: border-color var(--t), color var(--t); }
.vx-tag.is-link:hover { color: var(--ink); border-color: var(--line-3); }
.vx-el { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 640; color: color-mix(in srgb, var(--c, var(--ink-2)) 78%, var(--ink)); white-space: nowrap; }
.vx-el i { width: 8px; height: 8px; background: var(--c, var(--ink-3)); transform: rotate(45deg); box-shadow: 0 0 10px color-mix(in srgb, var(--c, transparent) 60%, transparent); flex: none; }
.vx-rar { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.vx-rar b { font: 700 11.5px/1 var(--f-mono); color: var(--rc); }
.vx-rar-s { display: inline-flex; gap: 2px; }
.vx-rar-s i { width: 5px; height: 11px; background: var(--rc); transform: skewX(-22deg); opacity: .95; }
.vx-rar.is-big b { font-size: 14px; }
.vx-rar.is-big .vx-rar-s i { width: 7px; height: 14px; }
.vx-dot { width: 7px; height: 7px; background: var(--c); transform: rotate(45deg); display: inline-block; flex: none; }
.vx-badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; font-size: 12px; font-weight: 600; color: var(--ink-2); background: color-mix(in srgb, var(--s2) 80%, transparent); border: 1px solid var(--line-2); }
.vx-badge.is-mono { font-family: var(--f-mono); font-size: 11.5px; }
.vx-badge.is-acc { color: var(--acc-t); border-color: color-mix(in srgb, var(--acc) 40%, transparent); }
.vx-badge.is-acc:hover { background: color-mix(in srgb, var(--acc) 12%, transparent); }
.vx-badge.is-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.vx-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.vx-chiplink { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; font-size: 12.5px; font-weight: 560; color: var(--ink-2); background: var(--s1); border: 1px solid var(--line-2); transition: color var(--t), border-color var(--t), transform var(--t); }
.vx-chiplink:hover { color: var(--ink); border-color: color-mix(in srgb, var(--acc) 50%, var(--line-2)); transform: translateY(-1px); }

/* ---- thumbs ---------------------------------------------------------------- */
.vx-thumb {
  --s: 44px; width: var(--s); height: var(--s); flex: none; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--rc, var(--ink-3)) 22%, transparent), transparent 70%), var(--s3);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
}
.vx-thumb img { width: 100%; height: 100%; object-fit: contain; }
.vx-thumb.is-empty::before { content: ''; width: 30%; height: 30%; border: 1px dashed var(--line-3); transform: rotate(45deg); }
.vx-thumb.is-round { border-radius: 50%; clip-path: none; }
.vx-thumb.is-round img { object-fit: cover; }
.vx-thumb.is-rar { box-shadow: inset 0 -2px 0 var(--rc); }

/* ---- page head --------------------------------------------------------------- */
.vx-head { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.vx-head-field, .vx-hero-field, .vx-ophero-field { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.vx-head-field::before, .vx-hero-field::before, .vx-ophero-field::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.3px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 75% 0%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 80% 90% at 75% 0%, #000 10%, transparent 75%);
}
.vx-head-field::after, .vx-hero-field::after {
  content: ''; position: absolute; right: -10%; top: -40%; width: 60%; height: 140%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 9%, transparent), transparent); filter: blur(20px);
}
.vx-head-in { position: relative; padding-block: 34px 0; }
.vx-head-in::before, .vx-head-in::after { content: ''; position: absolute; width: 11px; height: 11px; background: var(--ink-4); -webkit-mask: var(--plus); mask: var(--plus); }
.vx-head-in::before { left: calc(var(--gut) - 22px); top: 14px; }
.vx-head-in::after { right: calc(var(--gut) - 22px); top: 14px; }
.vx-head-row { display: flex; gap: 32px; align-items: flex-end; justify-content: space-between; margin-top: 18px; }
.vx-head-main { min-width: 0; padding-bottom: 28px; }
.vx-head-kick { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 14px; }
.vx-head-side { flex: none; padding-bottom: 28px; max-width: 420px; }
.vx-head-meta { display: flex; flex-wrap: wrap; gap: 0; margin: -4px 0 28px; border: 1px solid var(--line); background: color-mix(in srgb, var(--s1) 70%, transparent); width: fit-content; }
.vx-head-meta .vx-ro { padding: 12px 22px; border-right: 1px solid var(--line); }
.vx-head-meta .vx-ro:last-child { border-right: 0; }
.vx-head-meta .vx-ro-v { font-size: 24px; }
.vx-head:not(:has(.vx-tabs)) .vx-head-in { padding-bottom: 6px; }
.vx-head-effect { padding: 16px 18px; background: var(--s1); border: 1px solid var(--line-2); border-left: 2px solid var(--acc); }
.vx-head-effect .vx-ro-l { display: flex; margin-bottom: 8px; }
.vx-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font: 500 11.5px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.vx-crumbs a { transition: color var(--t); }
.vx-crumbs a:hover { color: var(--acc-t); }
.vx-crumbs i { font-style: normal; color: var(--ink-4); }
.vx-crumbs [aria-current] { color: var(--ink-2); }

.vx-tabs { position: relative; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-top: 6px; }
.vx-tabs::-webkit-scrollbar { display: none; }
.vx-tab { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; flex: none; font-size: 14px; font-weight: 600; color: var(--ink-3); transition: color var(--t); }
.vx-tab .ic { font-size: 17px; }
.vx-tab:hover, .vx-tab.is-on { color: var(--ink); }
.vx-tab.is-on .ic { color: var(--acc-t); }
.vx-tabs > .vx-ink, .vx-spy-in > .vx-ink { position: absolute; bottom: 0; left: 0; height: 2px; background: var(--acc); transform: translateX(var(--x, 0)); width: var(--w, 0); transition: transform .35s var(--ease-out), width .35s var(--ease-out); }
html:not(.js) .vx-tab.is-on { box-shadow: inset 0 -2px 0 var(--acc); }

/* ---- page body, modules ------------------------------------------------------- */
.vx-page { padding-block: 28px 72px; counter-reset: mod; }
.vx-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.vx-split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.vx-aside { position: sticky; top: calc(var(--hdr-h) + 16px); }
.vx-mod {
  position: relative; background: var(--s1); border: 1px solid var(--line); min-width: 0;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.vx-mod::after { content: ''; position: absolute; top: 0; right: 0; width: var(--cut); height: var(--cut); background: linear-gradient(to bottom left, transparent calc(50% - .7px), var(--line-2) calc(50% - .7px), var(--line-2) calc(50% + .7px), transparent calc(50% + .7px)); pointer-events: none; }
.vx-mod-h { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 20px; border-bottom: 1px solid var(--line); position: relative; }
.vx-mod-h::after { content: ''; position: absolute; left: -1px; bottom: -1px; width: 40px; height: 1px; background: var(--acc); }
.vx-mod-t { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 680; letter-spacing: -.005em; }
.vx-mod-t::before { counter-increment: mod; content: counter(mod, decimal-leading-zero); font: 600 10.5px/1 var(--f-mono); color: var(--acc-t); letter-spacing: .04em; padding-right: 10px; border-right: 1px solid var(--line-2); }
.vx-aside { counter-reset: side; }
.vx-aside .vx-mod-t::before { counter-increment: side; content: counter(side, upper-alpha); }
.vx-mod-t .ic { color: var(--ink-3); font-size: 16px; }
.vx-mod-m { margin-left: auto; display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-3); }
.vx-mod-b { padding: 18px 20px; }
.vx-mod.is-table .vx-tbl-w { border: 0; }
.vx-mod > .vx-empty { border: 0; }

/* sections */
.vx-sec { display: flex; align-items: center; gap: 16px; margin: 44px 0 16px; }
.vx-sec:first-child { margin-top: 8px; }
.vx-sec-t { font-size: clamp(19px, 1.8vw, 23px); font-weight: 760; font-stretch: 110%; letter-spacing: -.02em; flex: 0 1 auto; min-width: 0; text-wrap: balance; }
.vx-sec-rule { flex: 1 1 24px; min-width: 24px; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); position: relative; }
.vx-sec-rule::before { content: ''; position: absolute; left: 0; top: -2px; width: 5px; height: 5px; background: var(--acc); transform: rotate(45deg); }
.vx-sec-a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); flex: none; transition: color var(--t), gap var(--t); }
.vx-sec-a:hover { color: var(--acc-t); gap: 9px; }
.vx-sec.is-sm { margin: 26px 0 10px; }
.vx-sec.is-sm .vx-sec-t { font-size: 13px; font-family: var(--f-mono); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.vx-sec-n { font: 600 11px var(--f-mono); color: var(--ink-3); }

/* readouts */
.vx-ro { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.vx-ro-l { display: inline-flex; align-items: center; gap: 6px; font: 600 10.5px/1.1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-ro-l .ic { font-size: 13px; }
.vx-ro-v { font-size: 30px; font-weight: 720; font-stretch: 108%; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vx-ro-v small { font-size: .48em; color: var(--ink-3); font-weight: 560; margin-left: 4px; letter-spacing: 0; }
.vx-ro-a { position: absolute; inset: 0; }
.vx-telemetry { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--s1); border: 1px solid var(--line); position: relative; }
.vx-telemetry::after { content: ''; position: absolute; top: -1px; right: -1px; width: var(--cut); height: var(--cut); background: linear-gradient(to bottom left, var(--bg) 50%, var(--line-2) 50%, var(--line-2) calc(50% + 1px), transparent calc(50% + 1px)); }
.vx-telemetry > .vx-ro { padding: 18px 20px 20px; border-right: 1px solid var(--line); transition: background var(--t); }
.vx-telemetry > .vx-ro:last-child { border-right: 0; }
.vx-telemetry > .vx-ro::after {
  content: ''; height: 6px; margin-top: 4px;
  background: repeating-linear-gradient(90deg, var(--line-3) 0 1px, transparent 1px 7px);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent); mask-image: linear-gradient(90deg, #000, transparent);
}
.vx-telemetry > .vx-ro:has(.vx-ro-a):hover { background: var(--s2); }
.vx-telemetry > .vx-ro:has(.vx-ro-a):hover .vx-ro-l { color: var(--acc-t); }
.vx-telemetry.is-player { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 16px; }

/* spec sheet */
.vx-spec { margin: 0; display: flex; flex-direction: column; }
.vx-spec > div { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.vx-spec > div:last-child { border-bottom: 0; }
.vx-spec dt { color: var(--ink-3); font-size: 13px; flex: none; }
.vx-spec dd { margin: 0 0 0 auto; text-align: right; font-size: 13.5px; font-weight: 600; min-width: 0; }
.vx-spec dd a { text-decoration: none; color: var(--acc-t); }

/* tables */
.vx-tbl-w { overflow-x: auto; }
.vx-tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.vx-tbl th { text-align: left; font: 600 10.5px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--s1); }
.vx-tbl td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.vx-tbl tbody tr:last-child td { border-bottom: 0; }
.vx-tbl tbody th { text-align: left; font: 500 12.5px var(--f); color: var(--ink-2); text-transform: none; letter-spacing: 0; padding: 9px 16px; white-space: nowrap; }
.vx-tbl .num, .vx-tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.vx-tbl .right { text-align: right; }
.vx-tbl td.num { font-family: var(--f-mono); font-size: 13px; }
.vx-tbl.is-click tbody tr { cursor: pointer; transition: background var(--t); }
.vx-tbl.is-click tbody tr:hover { background: var(--s2); }
.vx-tbl.is-click tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--rc, var(--acc)); }
.vx-tbl.is-click tbody tr:hover a { color: var(--acc-t); }
.vx-tbl.is-compact td, .vx-tbl.is-compact th { padding: 8px 12px; }
.vx-tbl.is-params td.num { font-size: 12px; }
.vx-td-id { display: flex; align-items: center; gap: 12px; font-weight: 620; min-width: 220px; }
.vx-td-id > span { display: flex; flex-direction: column; min-width: 0; }
.vx-td-id small { font: 500 11px var(--f-mono); color: var(--ink-3); }
.vx-td-sub { color: var(--ink-3); font-size: 12.5px; }

/* empty / loading */
.vx-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 52px 24px; }
.vx-empty-ic { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 8px; font-size: 24px; color: var(--acc-t); background: color-mix(in srgb, var(--acc) 8%, transparent); border: 1px solid color-mix(in srgb, var(--acc) 30%, transparent); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
.vx-empty h3 { font-size: 17px; }
.vx-empty p { color: var(--ink-3); max-width: 46ch; }
.vx-loading { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px; background: var(--s1); border: 1px solid var(--line); overflow: hidden; }
.vx-loading b { font-size: 15px; }
.vx-loading small { color: var(--ink-3); font-size: 13px; }
.vx-scan { position: absolute; inset: 0; pointer-events: none; }
.vx-scan i { position: absolute; top: 0; bottom: 0; width: 30%; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--acc) 8%, transparent), transparent); animation: vx-scan 1.6s var(--ease) infinite; }
@keyframes vx-scan { from { left: -30%; } to { left: 100%; } }
.vx-dots i { font-style: normal; animation: vx-blink 1.2s infinite; }
.vx-dots i:nth-child(2) { animation-delay: .2s; }
.vx-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes vx-blink { 50% { opacity: .2; } }
.vx-sk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.vx-sk { display: block; height: 64px; background: linear-gradient(90deg, var(--s2), var(--s3), var(--s2)); background-size: 200% 100%; animation: vx-sk 1.4s linear infinite; }
@keyframes vx-sk { to { background-position: -200% 0; } }

/* ---- filter toolbar ---------------------------------------------------------- */
.vx-tools-w { position: sticky; top: var(--hdr-h); z-index: 20; margin: 0 calc(var(--gut) * -1) 18px; padding: 12px var(--gut); background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color var(--t); }
.vx-tools-w.is-stuck { border-bottom-color: var(--line); }
.vx-tools { display: flex; flex-direction: column; gap: 10px; }
/* row 1: name filter + selects + reset, all 40px high; row 2: segmented filter + count */
.vx-tools-row { display: flex; gap: 10px; align-items: center; min-width: 0; }
.vx-tools-row > .vx-q { flex: 1 1 auto; min-width: 220px; }
.vx-tools-row > .vx-select, .vx-tools-reset { flex: none; }
.vx-tools-sub { display: flex; align-items: center; gap: 10px 16px; min-width: 0; }
.vx-tools-sub > .vx-seg { flex: 0 1 auto; min-width: 0; }
.vx-select > .vx-sel { flex: 1; }
.vx-seg { position: relative; display: inline-flex; gap: 2px; padding: 3px; background: var(--s1); border: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.vx-seg::-webkit-scrollbar { display: none; }
.vx-seg-o { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; font-size: 13px; font-weight: 600; color: var(--ink-3); white-space: nowrap; transition: color var(--t); }
.vx-seg-o:hover { color: var(--ink); }
.vx-seg-o.is-on { color: var(--ink); }
.vx-seg > .vx-ink { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; background: var(--s3); box-shadow: inset 0 -2px 0 var(--acc); transform: translateX(var(--x, 0)); width: var(--w, 0); transition: transform .35s var(--ease-out), width .35s var(--ease-out); }
html:not(.js) .vx-seg-o.is-on { background: var(--s3); box-shadow: inset 0 -2px 0 var(--acc); }
.vx-seg.is-sm .vx-seg-o { height: 28px; padding: 0 10px; font-size: 12.5px; }
.vx-q { position: relative; flex: 1; min-width: 220px; display: flex; align-items: center; height: 40px; background: var(--s1); border: 1px solid var(--line-2); transition: border-color var(--t), box-shadow var(--t); }
.vx-q:focus-within { border-color: color-mix(in srgb, var(--acc) 60%, var(--line-2)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 14%, transparent); }
.vx-q > .ic { margin: 0 4px 0 13px; color: var(--ink-3); font-size: 16px; }
.vx-q input { flex: 1; min-width: 0; height: 100%; padding: 0 8px; background: transparent; border: 0; outline: 0; font-size: 14px; }
.vx-q input::-webkit-search-cancel-button { filter: grayscale(1); opacity: .5; }
.vx-q kbd { margin-right: 6px; }
.vx-q:focus-within kbd { display: none; }
.vx-q-go { width: 38px; height: 100%; display: grid; place-items: center; color: var(--ink-3); border-left: 1px solid var(--line); transition: color var(--t), background var(--t); }
.vx-q-go:hover { color: var(--acc-ink); background: var(--acc); }
.vx-select { position: relative; display: inline-flex; align-items: center; }
.vx-select select { appearance: none; -webkit-appearance: none; height: 40px; padding: 0 34px 0 13px; background: var(--s1); border: 1px solid var(--line-2); font-size: 13px; font-weight: 560; cursor: pointer; transition: border-color var(--t); }
.vx-select select:hover { border-color: var(--line-3); }
.vx-select .ic { position: absolute; right: 11px; pointer-events: none; color: var(--ink-3); font-size: 13px; }
.vx-select option { background: var(--s1); color: var(--ink); }
.vx-count { margin: 0 0 0 auto; font: 500 12px var(--f-mono); color: var(--ink-3); white-space: nowrap; text-transform: uppercase; letter-spacing: .06em; }
.vx-count b { color: var(--ink); font-size: 15px; font-weight: 700; }
.vx-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.vx-pager-n { display: flex; gap: 4px; font: 600 12.5px var(--f-mono); }
.vx-pager-n a, .vx-pager-n b, .vx-pager-n i { min-width: 32px; height: 32px; display: grid; place-items: center; font-style: normal; border: 1px solid var(--line); color: var(--ink-3); transition: border-color var(--t), color var(--t); }
.vx-pager-n a:hover { border-color: var(--line-3); color: var(--ink); }
.vx-pager-n b { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.vx-pager-n i { border: 0; }

/* search popover + palette rows */
.vx-drop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--s1); border: 1px solid var(--line-2); box-shadow: var(--shadow); max-height: 380px; overflow: auto; animation: vx-pop .18s var(--ease-out); text-align: left; }
.vx-opt { display: flex; align-items: center; gap: 12px; padding: 9px 12px; cursor: pointer; border-left: 2px solid transparent; }
.vx-opt.is-on, .vx-opt:hover { background: var(--s2); border-left-color: var(--acc); }
.vx-opt-ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; background: var(--s3); border: 1px solid var(--line); color: var(--ink-3); overflow: hidden; }
.vx-opt-ic.is-round { border-radius: 50%; }
.vx-opt-ic img { width: 100%; height: 100%; object-fit: cover; }
.vx-opt-m { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vx-opt-m b { font-size: 13.5px; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-opt-m small { color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-opt-e { font: 600 11px var(--f-mono); color: var(--ink-3); }
.vx-opt-empty { padding: 18px; text-align: center; color: var(--ink-3); font-size: 13px; }

/* command palette */
.vx-pal { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.vx-pal-back { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 60%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: vx-fade .2s; }
@keyframes vx-fade { from { opacity: 0; } }
.vx-pal-box { position: relative; width: min(680px, 100%); max-height: 76vh; display: flex; flex-direction: column; background: var(--s1); border: 1px solid var(--line-2); box-shadow: 0 40px 120px -30px rgba(0,0,0,.7); animation: vx-pal-in .28s var(--ease-out); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
@keyframes vx-pal-in { from { opacity: 0; transform: translateY(-10px) scale(.985); } }
.vx-pal-in { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 60px; border-bottom: 1px solid var(--line); }
.vx-pal-in .ic { font-size: 20px; color: var(--acc-t); }
.vx-pal-in input { flex: 1; height: 100%; background: transparent; border: 0; outline: 0; font-size: 17px; }
.vx-pal-sc { display: flex; gap: 4px; padding: 10px 14px; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.vx-pal-sc::-webkit-scrollbar { display: none; }
.vx-pal-in, .vx-pal-sc, .vx-pal-f { flex: none; }
.vx-pal-sc button { flex: none; }
.vx-pal-sc button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); border: 1px solid transparent; }
.vx-pal-sc button[aria-selected="true"] { color: var(--ink); border-color: var(--line-2); background: var(--s2); box-shadow: inset 0 -2px 0 var(--acc); }
.vx-pal-list { overflow: auto; padding: 6px 0; flex: 1; }
.vx-pal-g { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 6px; font: 600 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.vx-pal-g button { font: inherit; color: var(--acc-t); letter-spacing: .08em; }
.vx-pal-list .vx-opt { padding: 9px 16px; }
.vx-pal-list .vx-opt .vx-opt-go { opacity: 0; color: var(--acc-t); transition: opacity var(--t), transform var(--t); transform: translateX(-4px); }
.vx-pal-list .vx-opt.is-on .vx-opt-go { opacity: 1; transform: none; }
.vx-pal-f { display: flex; gap: 14px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-3); }
.vx-pal-f a { margin-left: auto; color: var(--acc-t); display: inline-flex; gap: 5px; align-items: center; }
body.is-modal { overflow: hidden; }

/* toast */
.vx-toast { position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: flex; gap: 10px; align-items: center; padding: 12px 16px; background: var(--s1); border: 1px solid var(--line-2); border-left: 2px solid var(--acc); box-shadow: var(--shadow); font-size: 13.5px; font-weight: 560; transition: opacity .25s, transform .35s var(--ease-out); }
.vx-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.vx-toast.is-bad { border-left-color: var(--bad); }

/* ---- footer --------------------------------------------------------------- */
.vx-foot { position: relative; margin-top: 40px; border-top: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.vx-foot-net { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); margin-inline: calc(var(--gut) * -1); }
.vx-foot-g { position: relative; display: flex; align-items: center; gap: 14px; padding: 22px var(--gut); border-right: 1px solid var(--line); transition: background var(--t); }
.vx-foot-g:last-child { border-right: 0; }
.vx-foot-g .vx-net-m { width: 26px; height: 26px; color: var(--ink-3); }
.vx-foot-g:hover .vx-net-m, .vx-foot-g.is-on .vx-net-m { color: var(--gc); }
.vx-foot-g span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.vx-foot-g b { font-size: 14px; }
.vx-foot-g small { font: 500 10.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.vx-foot-g > .ic { color: var(--ink-4); transition: color var(--t), transform var(--t); }
.vx-foot-g:hover { background: var(--s1); }
.vx-foot-g:hover > .ic { color: var(--gc); transform: translate(2px, -2px); }
.vx-foot-g.is-on::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--gc); }
.vx-foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; padding: 44px 0 32px; }
.vx-foot-b p { color: var(--ink-3); font-size: 13.5px; max-width: 40ch; margin: 16px 0; }
.vx-foot-social { display: flex; gap: 8px; }
.vx-foot-social a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--ink-3); transition: color var(--t), border-color var(--t); }
.vx-foot-social a:hover { color: var(--ink); border-color: var(--line-3); }
.vx-foot-social svg { width: 16px; height: 16px; }
.vx-foot-c h4 { font: 600 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.vx-foot-c a { display: block; padding: 5px 0; font-size: 13.5px; color: var(--ink-2); transition: color var(--t), transform var(--t); }
.vx-foot-c a:hover { color: var(--ink); transform: translateX(3px); }
.vx-foot-bar { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); position: relative; z-index: 1; }
.vx-theme { display: inline-flex; padding: 2px; border: 1px solid var(--line-2); background: var(--s1); margin-right: 8px; }
.vx-theme button { width: 30px; height: 26px; display: grid; place-items: center; color: var(--ink-3); transition: color var(--t), background var(--t); }
.vx-theme button[aria-checked="true"] { background: var(--s3); color: var(--acc-t); }

/* preview-only palette switcher */
.vx-palette { position: fixed; left: 16px; bottom: 16px; z-index: 70; display: flex; align-items: center; gap: 4px; padding: 5px; background: var(--s1); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 11px; }
.vx-palette > button[data-palette-toggle] { padding: 0 8px 0 6px; font: 600 10px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.vx-palette:not(.is-open) > button[data-game-set] { display: none; }
.vx-palette > span { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px 0 6px; font: 600 10px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.vx-palette button { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; font-weight: 620; color: var(--ink-2); border: 1px solid transparent; }
.vx-palette button i { width: 9px; height: 9px; background: var(--gc); transform: rotate(45deg); }
.vx-palette button[aria-pressed="true"] { border-color: var(--line-2); background: var(--s3); color: var(--ink); }

/* ---- phone dock + sheet ----------------------------------------------------- */
.vx-dock { display: none; }
.vx-sheet { position: fixed; inset: 0; z-index: 90; }
.vx-sheet-back { position: absolute; inset: 0; background: rgba(0,0,0,.5); animation: vx-fade .2s; }
.vx-sheet-p { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow: auto; padding: 14px 16px calc(24px + env(safe-area-inset-bottom)); background: var(--s1); border-top: 1px solid var(--line-2); animation: vx-sheet .34s var(--ease-out); }
@keyframes vx-sheet { from { transform: translateY(40%); opacity: 0; } }
.vx-sheet-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.vx-sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.vx-sheet-grid a { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 12px; background: var(--s2); border: 1px solid var(--line); font-size: 13px; font-weight: 620; }
.vx-sheet-grid a .ic { font-size: 20px; color: var(--ink-3); }
.vx-sheet-grid a.is-on { border-color: color-mix(in srgb, var(--acc) 50%, var(--line)); }
.vx-sheet-grid a.is-on .ic { color: var(--acc-t); }

/* ---- reveal ------------------------------------------------------------------ */
html.js.vx-motion [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(14px); }
html.js.vx-motion [data-reveal] { transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
html.js.vx-motion [data-stagger] > * { transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), border-color var(--t), background var(--t), box-shadow var(--t); }
html.js.vx-motion [data-stagger]:not(.is-in) > * { opacity: 0; transform: translateY(12px); }

/* ---- responsive ---------------------------------------------------------- */
@media (max-width: 1180px) {
  .vx-find { min-width: 0; width: 40px; padding: 0; justify-content: center; }
  .vx-find-t, .vx-find kbd { display: none; }
  .vx-nav-a { padding: 0 9px; }
  .vx-telemetry { grid-template-columns: repeat(3, 1fr); }
  .vx-telemetry > .vx-ro:nth-child(3n) { border-right: 0; }
  .vx-telemetry > .vx-ro:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .vx-telemetry.is-player { grid-template-columns: repeat(5, 1fr); }
  .vx-telemetry.is-player > .vx-ro { border-bottom: 0; border-right: 1px solid var(--line); }
  .vx-split { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 980px) {
  :root { --hdr-h: 58px; }
  .vx-nav { display: none; }
  .vx-btn.vx-burger { display: inline-flex; }
  .vx-split { grid-template-columns: 1fr; }
  .vx-aside { position: static; }
  .vx-foot-grid { grid-template-columns: 1fr 1fr; }
  .vx-foot-b { grid-column: 1 / -1; }
  .vx-foot-net { grid-template-columns: 1fr 1fr; }
  .vx-foot-g:nth-child(2) { border-right: 0; }
  .vx-foot-g:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .vx-head-row { flex-direction: column; align-items: stretch; gap: 0; }
  .vx-head-side { max-width: none; }
  .vx-telemetry.is-player { grid-template-columns: repeat(3, 1fr); }
  .vx-telemetry.is-player > .vx-ro:nth-child(3n) { border-right: 0; }
  .vx-telemetry.is-player > .vx-ro:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 720px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .vx-net-n { display: none; }
  .vx-net-s { display: inline; }
  .vx-net-home b { display: none; }
  .vx-net-g { padding: 0 9px; font-size: 12px; }
  .vx-brand-t small { display: none; }
  .vx-hdr-in { gap: 10px; }
  .vx-find { display: none; }
  .vx-acct-av b { max-width: 84px; font-size: 12.5px; }
  .vx-acct-av { padding: 0 8px 0 4px; gap: 7px; }
  .vx-acct-av .vx-caret { display: none; }
  .vx-dock {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 45; height: 58px;
    background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid var(--line-2); box-shadow: var(--shadow);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  }
  .vx-dock > a, .vx-dock > button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--ink-3); }
  .vx-dock .ic { font-size: 20px; }
  .vx-dock .is-on { color: var(--ink); }
  .vx-dock .is-on .ic { color: var(--acc-t); }
  .vx-dock-find { justify-self: center; width: 46px; height: 46px; justify-content: center; background: var(--acc); color: var(--acc-ink) !important; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%); }
  .vx-btn.vx-burger { display: none; }
  .vx-telemetry, .vx-telemetry.is-player { grid-template-columns: repeat(2, 1fr); }
  .vx-telemetry > .vx-ro, .vx-telemetry.is-player > .vx-ro { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; padding: 14px 16px 16px; }
  .vx-telemetry > .vx-ro:nth-child(2n), .vx-telemetry.is-player > .vx-ro:nth-child(2n) { border-right: 0 !important; }
  .vx-ro-v { font-size: 24px; }
  .vx-mod-h { padding: 10px 14px; }
  .vx-mod-b { padding: 14px; }
  .vx-tools-w { position: static; padding-block: 0; margin-bottom: 14px; background: none; backdrop-filter: none; }
  .vx-tools-sub { flex-wrap: wrap; }
  .vx-tools-sub > .vx-seg { max-width: 100%; }
  .vx-foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .vx-palette { bottom: calc(80px + env(safe-area-inset-bottom)); left: 10px; right: 10px; overflow-x: auto; }
  .vx-palette { right: auto; }
  .vx-head-meta { width: 100%; }
  .vx-head-meta .vx-ro { flex: 1; padding: 12px 14px; }
  .vx-tbl th, .vx-tbl td { padding-inline: 12px; }
  .vx-td-id { min-width: 180px; }
  .vx-menu-p, .vx-menu-p.is-wide { position: fixed; left: 10px; right: 10px; top: calc(var(--hdr-h) + 8px); width: auto; }
  .vx-menu-p:not(.is-wide) { left: auto; width: max-content; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.vx-pal-in input::-webkit-search-cancel-button { display: none; }

/* ---- card hover: the vertex lights up ------------------------------------------
   Chamfered cards brighten their border, a soft spotlight follows the pointer
   (--mx/--my from vertex.js) and the cut corner lights up: the diagonal and two
   short accent lines fading along the top and right edges. */
.vx-idx, .vx-feat { --cc: var(--cut); }
.vx-set, .vx-item, .vx-result { --cc: 10px; }
.vx-op { --cc: 12px; }
.vx-idx, .vx-set, .vx-item, .vx-result, .vx-feat { --mx: 50%; --my: 0%; }
.vx-idx::after, .vx-set::after, .vx-item::after, .vx-result::after, .vx-feat::after, .vx-op::before {
  content: ''; position: absolute; top: 0; right: 0; width: 140px; height: 72px; max-width: 70%; pointer-events: none; z-index: 2;
  --hl-c: var(--hl, var(--acc));
  background:
    linear-gradient(to bottom left, transparent calc(50% - .8px), var(--hl-c) calc(50% - .8px), var(--hl-c) calc(50% + .8px), transparent calc(50% + .8px)) right top / var(--cc) var(--cc) no-repeat,
    linear-gradient(to left, var(--hl-c), transparent) right var(--cc) top / calc(100% - var(--cc)) 1px no-repeat,
    linear-gradient(to bottom, var(--hl-c), transparent) right top var(--cc) / 1px calc(100% - var(--cc)) no-repeat;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--hl-c) 70%, transparent));
  opacity: 0; clip-path: inset(0 0 100% 100%); transition: opacity .25s var(--ease-out), clip-path .5s var(--ease-out);
}
.vx-op::before { --hl: var(--ec); }
.vx-idx:hover::after, .vx-set:hover::after, .vx-item:hover::after, .vx-result:hover::after, .vx-feat:hover::after, .vx-op:hover::before { opacity: 1; clip-path: inset(0 0 0 0); }
.vx-idx, .vx-set, .vx-item, .vx-result, .vx-feat {
  background-image: radial-gradient(260px circle at var(--mx) var(--my), color-mix(in srgb, var(--acc) 7%, transparent), transparent 70%);
  background-repeat: no-repeat;
}
.vx-idx:hover, .vx-set:hover, .vx-item:hover, .vx-result:hover, .vx-feat:hover { border-color: color-mix(in srgb, var(--acc) 26%, var(--line-2)); }
.vx-idx:active, .vx-set:active, .vx-item:active, .vx-result:active { transform: scale(.99); }

/* ---- selects: the VERTEX listbox over the native <select> (vertex.js customSelect) ----
   The button reads like a readout: a mono key, the value, the caret; the panel is a
   chamfered module with the accent tick, a keyboard cursor bar and a check on the value. */
.vx-sel { position: relative; display: inline-flex; min-width: 0; }
.vx-sel.is-block { display: flex; width: 100%; }
.vx-sel-native { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; pointer-events: none; }
.vx-sel-btn {
  --c: var(--cut-s);
  position: relative; display: inline-flex; align-items: center; gap: 10px; width: 100%; min-width: 172px; height: 40px; padding: 0 12px 0 13px;
  font: 600 13px/1 var(--f); letter-spacing: 0; text-transform: none; text-align: left; color: var(--ink);
  background: var(--s1); border: 1px solid var(--line-2);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%);
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.vx-sel-btn::after { content: ''; position: absolute; right: 0; bottom: 0; width: var(--c); height: var(--c); background: linear-gradient(to top left, transparent calc(50% - .7px), var(--line-2) calc(50% - .7px), var(--line-2) calc(50% + .7px), transparent calc(50% + .7px)); }
.vx-sel-btn:hover { background: var(--s2); border-color: var(--line-3); }
.vx-sel-k { flex: none; padding-right: 10px; border-right: 1px solid var(--line-2); font: 600 9.5px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); transition: color var(--t); }
.vx-sel-v { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-sel-c { font-size: 13px; color: var(--ink-3); transition: transform .35s var(--ease-out), color var(--t); }
.vx-sel.is-set .vx-sel-btn { border-color: color-mix(in srgb, var(--acc) 42%, var(--line-2)); }
.vx-sel.is-set .vx-sel-k { color: var(--acc-t); }
.vx-sel.is-open .vx-sel-btn { background: var(--s2); border-color: color-mix(in srgb, var(--acc) 60%, var(--line-2)); box-shadow: inset 0 -2px 0 var(--acc); }
.vx-sel.is-open .vx-sel-c { transform: rotate(180deg); color: var(--acc-t); }
.vx-sel-dot { width: 8px; height: 8px; flex: none; background: var(--c); transform: rotate(45deg); box-shadow: 0 0 8px color-mix(in srgb, var(--c) 55%, transparent); }
.vx-sel-p {
  position: fixed; z-index: 95; display: flex; flex-direction: column; max-height: min(340px, 60vh); max-width: calc(100vw - 16px);
  background: var(--s1); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  opacity: 0; transform: translateY(-6px) scaleY(.96); transform-origin: 50% 0; transition: opacity .16s var(--ease), transform .26s var(--ease-out);
}
.vx-sel-p.is-up { transform-origin: 50% 100%; transform: translateY(6px) scaleY(.96); }
.vx-sel-p.is-in { opacity: 1; transform: none; }
.vx-sel-p::before { content: ''; position: absolute; left: -1px; top: -1px; width: 40px; height: 1px; background: var(--acc); z-index: 1; }
.vx-sel-p::after { content: ''; position: absolute; top: 0; right: 0; width: 12px; height: 12px; background: linear-gradient(to bottom left, transparent calc(50% - .7px), var(--line-2) calc(50% - .7px), var(--line-2) calc(50% + .7px), transparent calc(50% + .7px)); }
.vx-sel-h { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 14px 9px; border-bottom: 1px solid var(--line); font: 600 9.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.vx-sel-h em { font-style: normal; color: var(--ink-4); }
.vx-sel-l { overflow: auto; padding: 4px 0; overscroll-behavior: contain; scrollbar-width: thin; }
.vx-sel-o { display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 12px; border-left: 2px solid transparent; font-size: 13.5px; font-weight: 560; color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: background .12s, color .12s; }
.vx-sel-o > span { flex: 1; }
.vx-sel-o.is-active { background: var(--s2); color: var(--ink); border-left-color: var(--acc); }
.vx-sel-o.is-on { color: var(--ink); font-weight: 650; }
.vx-sel-o.is-off { opacity: .4; cursor: default; }
.vx-sel-ok { color: var(--acc-t); font-size: 14px; }
html.vx-motion .vx-sel-p.is-in .vx-sel-o { animation: vx-sel-o .32s var(--ease-out) both; }
html.vx-motion .vx-sel-p.is-in .vx-sel-o:nth-child(2) { animation-delay: .02s; } html.vx-motion .vx-sel-p.is-in .vx-sel-o:nth-child(3) { animation-delay: .04s; }
html.vx-motion .vx-sel-p.is-in .vx-sel-o:nth-child(4) { animation-delay: .06s; } html.vx-motion .vx-sel-p.is-in .vx-sel-o:nth-child(5) { animation-delay: .08s; }
html.vx-motion .vx-sel-p.is-in .vx-sel-o:nth-child(n+6) { animation-delay: .1s; }
@keyframes vx-sel-o { from { opacity: 0; transform: translateX(-6px); } }
.fs-pick .vx-sel-btn { height: 38px; background: var(--s2); }
@media (max-width: 720px) {
  .vx-select .vx-sel, .vx-select .vx-sel-btn { width: 100%; }
  .vx-sel-btn { min-width: 0; }
}

/* toolbar on narrow screens: the name filter takes its own line, the selects share the next */
@media (max-width: 860px) {
  .vx-tools-row { flex-wrap: wrap; }
  .vx-tools-row > .vx-q { flex: 1 1 100%; min-width: 0; }
  .vx-tools-row > .vx-select { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .vx-tools-row > .vx-select .vx-sel-btn { min-width: 0; }
  .vx-tools-reset { flex: 1 1 auto; }
}

/* in-place navigation of the database lists */
.vx-load { position: fixed; left: 0; right: 0; top: 0; z-index: 210; height: 2px; pointer-events: none; opacity: 0; transition: opacity .3s; }
.vx-load i { display: block; height: 100%; width: 100%; background: var(--acc); box-shadow: 0 0 10px var(--acc); transform-origin: 0 50%; transform: scaleX(0); }
.vx-load.is-on { opacity: 1; }
.vx-load.is-on i { animation: vx-load 2.4s cubic-bezier(.1, .7, .2, 1) forwards; }
.vx-load.is-done i { animation: none; transform: scaleX(1); transition: transform .2s; }
.vx-load.is-done { opacity: 0; transition: opacity .3s .15s; }
@keyframes vx-load { to { transform: scaleX(.85); } }
#main.is-busy .vx-page > :not(.vx-tools-w) { opacity: .5; pointer-events: none; transition: opacity .2s .08s; }

/* the Frame Shop promo of the mega menu shows a frame on a silhouette */
.vx-mega-promo { min-height: 210px; }
.vx-mega-frame { position: absolute; right: 10px; top: 8px; width: 112px; height: 112px; display: grid; place-items: center; pointer-events: none; transition: transform .45s var(--ease-out); }
.vx-mega-frame img { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 8px 18px color-mix(in srgb, var(--acc) 35%, transparent)); }
.vx-mega-sil { width: 72%; height: 72%; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, var(--s3), var(--s1)); color: var(--ink-4); font-size: 40px; }
.vx-mega-promo:hover .vx-mega-frame { transform: scale(1.08); }
html.vx-motion .vx-mega:not([hidden]) .vx-mega-frame { animation: vx-frame-in .5s var(--ease-out) backwards .08s; }
@keyframes vx-frame-in { from { opacity: 0; transform: scale(.94); } }
.vx-sel-v { padding-right: 4px; }

/* header: the search button gives way before the account name does */
.vx-hdr-tools { min-width: 0; }
.vx-find { flex: 0 1 280px; min-width: 150px; }
/* the mega menu hangs from the navigation, never past the right edge */
.vx-more { position: static; }
.vx-mega { left: 0; max-width: calc(100vw - 2 * var(--gut)); }
@media (max-width: 720px) {
  .vx-acct-av b { max-width: 104px; }
  .vx-brand-t b { font-size: 15.5px; }
}

/* clickable tables on phones: each row is a compact card — the name on top, the other
   columns underneath as labelled values (data-l from VR.table) */
@media (max-width: 720px) {
  .vx-tbl-w:has(> .vx-tbl.is-click) { overflow: visible; }
  .vx-tbl.is-click, .vx-tbl.is-click tbody { display: block; }
  .vx-tbl.is-click thead { display: none; }
  .vx-tbl.is-click tbody tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .vx-tbl.is-click tbody tr:last-child { border-bottom: 0; }
  .vx-tbl.is-click tbody td { display: block; padding: 0; border: 0; text-align: left; font-size: 12.5px; }
  .vx-tbl.is-click tbody td.vx-td-id { flex: 1 1 100%; min-width: 0; display: flex; align-items: center; font-size: 14px; }
  .vx-tbl.is-click tbody td.vx-td-id a { white-space: normal; }
  .vx-tbl.is-click tbody td[data-l]:not(.vx-td-id)::before { content: attr(data-l); display: block; margin-bottom: 3px; font: 600 9px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); }
  .vx-tbl.is-click tbody td.vx-td-sub { flex: 1 1 100%; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .vx-tbl.is-click tbody td.vx-td-sub::before { display: none !important; }
  .vx-tbl.is-click tbody tr:hover td:first-child { box-shadow: none; }
  .vx-tbl.is-click tbody tr:active { background: var(--s2); }
}

/* filter bar, final: one row where it fits — segmented filter, a normal-width name filter,
   the selects, reset, and the count pushed to the end; it wraps only when it must */
.vx-tools { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
.vx-tools-row, .vx-tools-sub { display: contents; }
.vx-tools-sub > .vx-seg { order: 0; flex: 0 1 auto; }
.vx-tools-row > .vx-q { order: 1; flex: 0 1 270px; min-width: 200px; }
.vx-tools-row > .vx-select { order: 2; flex: none; }
.vx-tools-reset { order: 3; flex: none; }
.vx-tools-sub > .vx-count { order: 4; margin: 0 0 0 auto; }
@media (max-width: 860px) {
  .vx-tools-sub > .vx-seg { flex: 1 1 100%; }
  .vx-tools-row > .vx-q { flex: 1 1 100%; min-width: 0; }
  .vx-tools-row > .vx-select { flex: 1 1 calc(50% - 5px); min-width: 0; }
}
/* selects open at once: no entrance, no stagger */
.vx-sel-p, .vx-sel-p.is-up { transform: none; transition: opacity .08s linear; }
html.vx-motion .vx-sel-p.is-in .vx-sel-o { animation: none; }
/* swapped list content after a filter change: a short fade, nothing more */
.vx-swap { animation: vx-swap .22s var(--ease-out) both; }
@keyframes vx-swap { from { opacity: .35; } }
#main.is-busy .vx-page > :not(.vx-tools-w):not(.vx-cats) { opacity: .5; }
@media (prefers-reduced-motion: reduce) { .vx-swap { animation: none; } }
/* toolbar selects size to their value; the key shows once a filter is set */
.vx-tools .vx-sel-btn { min-width: 0; width: auto; }
.vx-tools .vx-sel:not(.is-set) .vx-sel-k { display: none; }
.vx-tools-row > .vx-q { flex-basis: 240px; }
@media (max-width: 860px) { .vx-tools .vx-sel-btn { width: 100%; } }
.vx-tools .vx-sel-btn { gap: 12px; padding-right: 14px; }
.vx-tools .vx-sel-v { flex: 0 0 auto; overflow: visible; }
@media (max-width: 860px) { .vx-tools .vx-sel-v { flex: 1 1 auto; overflow: hidden; } }
.vx-select .vx-sel-btn .ic { position: static; }

/* dropdowns and popovers are plain rectangles: no cut corner (selects, More menu, account menus) */
.vx-sel-p, .vx-mega, .vx-menu-p { clip-path: none; }
.vx-sel-p::after { content: none; }

/* the counter band and the mobile menu sheet: whole corners (2026-11-22) */
.vx-telemetry { clip-path: none; }
.vx-telemetry::after { content: none; }
.vx-sheet-p { clip-path: none; }
