/* Agent Arena: a standalone app shell. Dark first, light on request.
   Everything is scoped under .ax so it never leaks into the main site. */

:root, [data-ax-theme="dark"] {
  --bg: #08080a;
  --bg-2: #0d0d10;
  --panel: #111114;
  --panel-2: #17171b;
  --hover: #1c1c21;
  --line: #222228;
  --line-2: #2e2e36;
  --text: #ededf0;
  --text-2: #b4b4bd;
  --muted: #84848f;
  --faint: #5a5a64;
  --accent: #8b74f0;
  --accent-2: #7457d1;
  --accent-soft: rgba(139, 116, 240, 0.14);
  --pos: #3ccf8e;
  --pos-soft: rgba(60, 207, 142, 0.12);
  --neg: #f0616d;
  --neg-soft: rgba(240, 97, 109, 0.12);
  --warn: #e8b04a;
  --gold: #e8c066;
  --silver: #b9c0cc;
  --bronze: #d4935f;
  --shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 8px 24px rgba(0,0,0,0.35);
  --av-l: 32%;
  --av-s: 55%;
  --av-t: 85%;
  color-scheme: dark;
  /* For the shared cookie banner. */
  --gray-50: 248 248 250; --gray-100: 228 228 232; --gray-200: 196 196 202; --gray-300: 168 168 176;
  --gray-400: 138 138 148; --gray-500: 108 108 118; --gray-600: 58 58 64; --gray-700: 36 36 40;
  --gray-800: 18 18 20; --gray-900: 8 8 9; --gray-950: 0 0 0;
}
[data-ax-theme="light"] {
  --bg: #f7f7f8;
  --bg-2: #f1f1f3;
  --panel: #ffffff;
  --panel-2: #f6f6f8;
  --hover: #f0f0f3;
  --line: #e7e7eb;
  --line-2: #d9d9df;
  --text: #16161a;
  --text-2: #3c3c44;
  --muted: #6d6d78;
  --faint: #a0a0aa;
  --accent: #6a4fd6;
  --accent-2: #5a3fc6;
  --accent-soft: rgba(106, 79, 214, 0.10);
  --pos: #12935d;
  --pos-soft: rgba(18, 147, 93, 0.10);
  --neg: #d6343f;
  --neg-soft: rgba(214, 52, 63, 0.09);
  --warn: #b7791f;
  --gold: #b88a1b;
  --silver: #7d8696;
  --bronze: #b06a35;
  --shadow: 0 1px 2px rgba(16,16,24,0.04), 0 6px 20px rgba(16,16,24,0.06);
  --av-l: 90%;
  --av-s: 60%;
  --av-t: 30%;
  color-scheme: light;
  --gray-50: 17 17 19; --gray-100: 28 28 32; --gray-200: 55 55 62; --gray-300: 82 82 90;
  --gray-400: 112 112 120; --gray-500: 140 140 148; --gray-600: 198 198 204; --gray-700: 226 226 230;
  --gray-800: 240 240 243; --gray-900: 248 248 250; --gray-950: 255 255 255;
}
:root { --accent-rgb: 116 87 209; --side-w: 244px; --top-h: 52px; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.ax {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
:where(.ax) a { color: inherit; text-decoration: none; }
:where(.ax) button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
.ax button[disabled] { opacity: 0.5; cursor: not-allowed; }
:where(.ax) svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ax svg .fill { fill: currentColor; stroke: none; }
.ax code, .ax pre, .ax kbd { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
:where(.ax) code { font-size: 0.86em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: 0.05em 0.35em; }
.ax kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; font-size: 10.5px; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; line-height: 1; }
:where(.ax) :is(h1, h2, h3) { margin: 0; letter-spacing: -0.015em; font-weight: 600; }
:where(.ax) p { margin: 0; }
.ax :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ax ::selection { background: var(--accent-soft); }

.ax-muted { color: var(--muted); }
.ax-small { font-size: 12px; }
.ax-ellip { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.ax-num { font-variant-numeric: tabular-nums; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.r { text-align: right; justify-content: flex-end; }
.hidden, .ax [hidden] { display: none !important; }

/* ---------- shell ---------- */
.ax-app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.ax-side {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 10px;
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  z-index: 40;
}
.ax-side__top { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 8px; }
.ax-side .ax-side__close { display: none; }
.ax-brand { display: flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -0.01em; font-size: 14.5px; }
.ax-logo { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: linear-gradient(140deg, var(--accent), #4b3aa6); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 4px 14px rgba(116,87,209,0.35); }
.ax-logo svg { width: 16px; height: 16px; stroke-width: 2; }
.ax-search, .ax-new {
  display: flex; align-items: center; gap: 8px; width: 100%;
  height: 32px; padding: 0 8px; border-radius: 7px;
  color: var(--muted); font-size: 13px;
  border: 1px solid var(--line); background: var(--panel);
  transition: border-color .12s, color .12s, background .12s;
}
.ax-search:hover { color: var(--text); border-color: var(--line-2); }
.ax-search span, .ax-new span { flex: 1; text-align: left; }
.ax-new { color: var(--text); background: var(--panel-2); margin-bottom: 6px; }
.ax-new:hover { background: var(--hover); border-color: var(--line-2); }
.ax-nav { display: flex; flex-direction: column; gap: 1px; margin-top: 4px; }
.ax-nav a, .ax-mine a {
  display: flex; align-items: center; gap: 9px;
  height: 30px; padding: 0 8px; border-radius: 6px;
  color: var(--text-2); font-size: 13.5px; font-weight: 500;
  transition: background .1s, color .1s;
}
.ax-nav a span, .ax-mine a .ax-ellip { flex: 1; }
.ax-nav a kbd { opacity: 0; transition: opacity .12s; }
.ax-nav a:hover kbd { opacity: 1; }
.ax-nav a svg { color: var(--muted); }
.ax-nav a:hover, .ax-mine a:hover { background: var(--hover); color: var(--text); }
.ax-nav a.is-on, .ax-mine a.is-on { background: var(--panel-2); color: var(--text); box-shadow: 0 0 0 1px var(--line) inset; }
.ax-nav a.is-on svg { color: var(--accent); }
.ax-season { margin: 12px 4px 4px; padding: 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); font-size: 12px; }
.ax-season__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 7px; font-weight: 500; }
.ax-season__row a { color: var(--accent); font-size: 12px; }
.ax-meter { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.ax-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: inherit; transition: width .4s ease; }
.ax-meter--accent i { background: linear-gradient(90deg, #3ccf8e, #6fe0b0); }
.ax-label { margin: 14px 8px 4px !important; font-size: 11.5px; font-weight: 500; color: var(--faint); text-transform: none; }
.ax-mine { display: flex; flex-direction: column; gap: 1px; }
.ax-mine > p.ax-small { padding: 2px 8px; }
.ax-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--warn); flex: none; }
.ax-side__foot { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.ax-plan { padding: 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); font-size: 12px; }
.ax-plan .ax-meter { margin-bottom: 6px; }
.ax-me { display: flex; align-items: center; gap: 8px; padding: 2px 4px; }
.ax-me .ax-ellip { flex: 1; color: var(--muted); }
.ax-me__av { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; background: var(--accent-soft); color: var(--accent); flex: none; }
.ax-iconbtn { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 6px; color: var(--muted); flex: none; }
.ax-iconbtn:hover { background: var(--hover); color: var(--text); }
.ax-scrim { display: none; }

.ax-body { min-width: 0; display: flex; flex-direction: column; }
.ax-top {
  position: sticky; top: 0; z-index: 30;
  height: var(--top-h); display: flex; align-items: center; gap: 10px;
  padding: 0 24px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.ax-top__menu, .ax-top__search { display: none; }
.ax-crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; min-width: 0; }
.ax-sep { color: var(--faint); }
.ax-top__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ax-market { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.ax-market b { font-weight: 500; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ax-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; position: relative; }
.ax-market.is-open .ax-pulse, .ax-eyebrow .ax-pulse { background: var(--pos); }
.ax-market.is-open .ax-pulse::after, .ax-eyebrow .ax-pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--pos); opacity: 0; animation: ax-ping 2.2s ease-out infinite; }
@keyframes ax-ping { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.4); opacity: 0; } }
.ax-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); z-index: 100; opacity: 0; transition: width .25s ease, opacity .3s; box-shadow: 0 0 8px var(--accent); }
.ax-progress.is-on { opacity: 1; }

.ax-main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 32px 64px; display: flex; flex-direction: column; gap: 20px; animation: ax-in .18s ease both; }
@keyframes ax-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.ax-banner { padding: 8px 12px; border-radius: 8px; font-size: 12.5px; color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 25%, transparent); }
.ax-toast { position: fixed; right: 20px; bottom: 20px; z-index: 90; max-width: 420px; padding: 11px 14px 11px 34px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 13px; animation: ax-toast .25s ease both; }
.ax-toast::before { content: ""; position: absolute; left: 13px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--pos); }
.ax-toast--err::before { background: var(--neg); }
.ax-toast.is-gone { opacity: 0; transform: translateY(8px); transition: .3s; }
.ax-toast--inline { position: relative; right: auto; bottom: auto; max-width: none; margin-bottom: 12px; box-shadow: none; animation: none; }
@keyframes ax-toast { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- building blocks ---------- */
.ax-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 12px; border-radius: 7px;
  font-size: 13px; font-weight: 500; white-space: nowrap;
  color: var(--text) !important; background: var(--panel-2); border: 1px solid var(--line-2) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset;
  transition: background .12s, border-color .12s, transform .06s;
}
.ax-btn:hover { background: var(--hover); border-color: var(--faint) !important; }
.ax-btn:active { transform: translateY(0.5px); }
.ax-btn--primary { background: var(--accent-2); border-color: transparent !important; color: #fff !important; box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 4px 14px rgba(116,87,209,0.28); }
.ax-btn--primary:hover { background: var(--accent); }
.ax-btn--primary kbd { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.2); color: #fff; }
.ax-btn--ghost { background: transparent; border-color: transparent !important; color: var(--text-2) !important; box-shadow: none; }
.ax-btn--ghost:hover { background: var(--hover); }
.ax-btn--danger { color: var(--neg) !important; background: var(--neg-soft); border-color: transparent !important; }
.ax-btn--sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.ax-btn--block { width: 100%; }
.ax-link { color: var(--accent) !important; font-weight: 500; }
.ax-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.ax-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ax-actions form { display: contents; }
.ax-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11.5px; font-weight: 500; color: var(--text-2); background: var(--panel-2); border: 1px solid var(--line); white-space: nowrap; }
.ax-tag--accent { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.ax-tag--warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); background: transparent; }
.ax-tag--neg { color: var(--neg); background: var(--neg-soft); border-color: transparent; }
.ax-pill { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--text-2); background: var(--panel-2); border: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ax-pill--accent { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.ax-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.ax-lede { font-size: 15.5px; line-height: 1.6; color: var(--text-2); max-width: 62ch; }
.ax-fine { font-size: 12px; color: var(--muted); line-height: 1.55; }
.ax-notice { font-size: 12px; color: var(--muted); padding: 10px 12px; border-radius: 8px; border: 1px dashed var(--line-2); line-height: 1.55; }
.ax-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px; font-size: 11px; background: var(--panel-2); color: var(--muted); }

.ax-av {
  --h: 260;
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  display: inline-grid; place-items: center;
  font-size: 11.5px; font-weight: 650; letter-spacing: 0.02em;
  color: hsl(var(--h) 80% var(--av-t));
  background: linear-gradient(140deg, hsl(var(--h) var(--av-s) var(--av-l)), hsl(calc(var(--h) + 40) var(--av-s) calc(var(--av-l) - 6%)));
  box-shadow: 0 0 0 1px hsl(var(--h) 60% 50% / 0.25) inset;
}
.ax-av--sm { width: 20px; height: 20px; border-radius: 5px; font-size: 9px; }
.ax-av--lg { width: 56px; height: 56px; border-radius: 14px; font-size: 20px; }

.ax-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: var(--shadow); min-width: 0; }
.ax-panel > p + p, .ax-panel > p + .ax-copy, .ax-panel > .ax-copy + p, .ax-panel > p + pre, .ax-panel > h2 + p, .ax-panel > pre + h2 { margin-top: 10px; }
.ax-panel > h2 { font-size: 14px; }
.ax-panel > pre + h2, .ax-panel > p + h2 { margin-top: 20px; }
.ax-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ax-panel__head h2 { font-size: 13.5px; display: flex; align-items: center; gap: 7px; }
.ax-panel__head h2 svg { color: var(--muted); }
.ax-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ax-pagehead h1 { font-size: 24px; }
.ax-pagehead p { margin-top: 6px; max-width: 64ch; }
.ax-pagehead__tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ax-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

.ax-seg { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); gap: 2px; }
.ax-seg a, .ax-seg button { height: 26px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 6px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.ax-seg a:hover, .ax-seg button:hover { color: var(--text); }
.ax-seg .is-on { background: var(--panel); color: var(--text); box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(0,0,0,0.2); }
.ax-seg--sm a, .ax-seg--sm button { height: 22px; font-size: 12px; }
.ax-filter { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); min-width: 220px; }
.ax-filter:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ax-filter input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 13px; }

/* ---------- boards ---------- */
.ax-board { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.ax-board__head, .ax-board__row {
  display: grid; align-items: center; gap: 12px;
  grid-template-columns: 44px minmax(0, 1fr) 120px 88px 84px 70px 56px;
  padding: 0 14px;
}
.ax-board__head { height: 34px; font-size: 11.5px; font-weight: 500; color: var(--faint); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.ax-board__row { height: 56px; border-bottom: 1px solid var(--line); transition: background .1s; font-size: 13.5px; }
.ax-board__row:last-child { border-bottom: 0; }
.ax-board__row:hover { background: var(--hover); }
.ax-board__row.is-bench { background: repeating-linear-gradient(-45deg, transparent 0 8px, color-mix(in srgb, var(--line) 35%, transparent) 8px 9px); }
.ax-board__row.is-unranked { color: var(--muted); }
.ax-board--compact .ax-board__head, .ax-board--compact .ax-board__row { grid-template-columns: 30px minmax(0, 1fr) 84px 76px 56px; }
.ax-board--compact .ax-board__head > :nth-child(3), .ax-board--compact .ax-board__row > :nth-child(3),
.ax-board--compact .ax-board__head > :nth-child(7), .ax-board--compact .ax-board__row > :nth-child(7) { display: none; }
.ax-board--compact .ax-board__head > :nth-child(5), .ax-board--compact .ax-board__row > :nth-child(5) { display: none; }
.ax-board--compact .ax-board__head, .ax-board--compact .ax-board__row { grid-template-columns: 30px minmax(0, 1fr) 76px 56px; }
.ax-board--compact { box-shadow: none; border: 0; border-radius: 0; background: transparent; margin: 0 -16px -16px; }
.ax-board--compact .ax-board__head { background: transparent; }
.ax-board--compact .ax-board__row { height: 50px; }
.ax-rank { font-size: 15px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.ax-rank--1 { color: var(--gold); } .ax-rank--2 { color: var(--silver); } .ax-rank--3 { color: var(--bronze); }
.ax-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ax-who__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ax-who__txt b { font-weight: 550; }
.ax-spark { width: 100%; height: 28px; display: block; overflow: visible; }
.ax-spark polyline { fill: none; stroke: var(--muted); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ax-spark.pos polyline { stroke: var(--pos); }
.ax-spark.neg polyline { stroke: var(--neg); }
.ax-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 36px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.ax-empty b { color: var(--text); font-weight: 550; }
.ax-empty--big { padding: 56px 16px; border: 1px dashed var(--line-2); border-radius: 12px; gap: 6px; }
.ax-empty--big .ax-btn { margin-top: 10px; }
.ax-empty--filter { padding: 24px; }
li.ax-empty { list-style: none; }

.ax-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ax-podium__card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); overflow: hidden; transition: border-color .12s, transform .12s; }
.ax-podium__card:hover { border-color: var(--line-2); transform: translateY(-1px); }
.ax-podium__card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--c); opacity: .9; }
.ax-podium__card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%); pointer-events: none; }
.ax-podium__card--1 { --c: var(--gold); } .ax-podium__card--2 { --c: var(--silver); } .ax-podium__card--3 { --c: var(--bronze); }
.ax-podium__rank { position: absolute; right: 14px; top: 8px; font-size: 40px; font-weight: 700; color: var(--c); opacity: 0.22; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }

/* ---------- marketplace cards ---------- */
.ax-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ax-card { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); transition: border-color .12s, transform .12s, background .12s; min-width: 0; }
.ax-card:hover { border-color: var(--line-2); transform: translateY(-1px); background: color-mix(in srgb, var(--panel) 92%, var(--hover)); }
.ax-card__top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ax-card__top .ax-who__txt { flex: 1; }
.ax-card__desc { font-size: 12.5px; color: var(--text-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 37px; }
.ax-spark--card { height: 36px; }
.ax-spark--none { border-bottom: 1px dashed var(--line-2); height: 36px; }
.ax-card__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.ax-card__stats span { min-width: 0; white-space: nowrap; }
.ax-card__stats span { display: flex; flex-direction: column; gap: 1px; }
.ax-card__stats i { font-style: normal; font-size: 11px; color: var(--faint); }
.ax-card__stats b { font-size: 13.5px; font-weight: 600; }
.ax-card__tags { display: flex; flex-wrap: wrap; gap: 5px; }

/* ---------- overview ---------- */
.ax-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 12px 0 8px; }
.ax-hero h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.05; letter-spacing: -0.035em; margin-bottom: 14px; font-weight: 650;
  background: linear-gradient(180deg, var(--text) 30%, color-mix(in srgb, var(--text) 60%, var(--accent))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ax-hero__copy { display: flex; flex-direction: column; gap: 4px; }
.ax-hero__copy .ax-actions { margin: 20px 0 12px; }
.ax-hero__board { position: relative; }
.ax-hero__board::before { content: ""; position: absolute; inset: -1px; border-radius: 13px; padding: 1px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 55%, transparent), transparent 45%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.ax-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ax-step { padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 6px; }
.ax-step p { font-size: 13px; color: var(--muted); line-height: 1.55; }
.ax-step__n { font: 500 11.5px "JetBrains Mono", monospace; color: var(--accent); }
.ax-section { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.ax-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.ax-section__head h2 { font-size: 19px; margin-bottom: 4px; }
.ax-section__head p { max-width: 70ch; font-size: 13.5px; }
.ax-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ax-rule { background: var(--panel); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.ax-rule p { font-size: 13px; color: var(--muted); line-height: 1.55; }
.ax-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.ax-plan-card { padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.ax-plan-card.is-featured { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: linear-gradient(180deg, var(--accent-soft), var(--panel) 40%); }
.ax-plan-card.is-current { box-shadow: 0 0 0 1px var(--accent) inset; }
.ax-plan-card__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ax-plan-card h3 { font-size: 14px; }
.ax-plan-card__price { font-size: 26px; font-weight: 650; letter-spacing: -0.03em; }
.ax-plan-card ul { margin: 8px 0 4px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
.ax-plan-card li { padding-left: 20px; position: relative; }
.ax-plan-card li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 9px; height: 5px; border-left: 1.5px solid var(--pos); border-bottom: 1.5px solid var(--pos); transform: rotate(-45deg); }
.ax-plan-card form { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.ax-check { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }

/* ---------- agent page ---------- */
.ax-agenthead { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ax-agenthead__txt { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 8px; }
.ax-agenthead h1 { font-size: 26px; letter-spacing: -0.025em; }
.ax-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ax-lede--agent { margin-top: -4px; }
.ax-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; position: sticky; top: var(--top-h); z-index: 5; background: var(--bg); margin: 0 -4px; padding: 0 4px; }
.ax-tabs::-webkit-scrollbar { display: none; }
.ax-tabs a { position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 12px; font-size: 13.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.ax-tabs a:hover { color: var(--text); }
.ax-tabs a.is-on { color: var(--text); }
.ax-tabs a.is-on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.ax-tab { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: calc(var(--top-h) + 48px); }
.ax-js .ax-tab:not(.is-on) { display: none; }
.ax-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ax-tile { background: var(--panel); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.ax-tile i { font-style: normal; font-size: 12px; color: var(--muted); }
.ax-tile b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.ax-chartpanel { padding-bottom: 8px; }
.ax-chart { position: relative; height: 260px; margin: 0 -4px; touch-action: pan-y; }
.ax-chart svg.ax-chart__svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ax-chart__fallback { width: 100%; height: 100%; }
.ax-chart__fallback polyline { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.ax-chart .grid line { stroke: var(--line); stroke-dasharray: 2 4; }
.ax-chart .grid text, .ax-chart .xaxis text { fill: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.ax-chart .zero { stroke: var(--line-2); }
.ax-chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ax-chart .area { opacity: 1; }
.ax-chart .cross { stroke: var(--faint); stroke-dasharray: 3 3; }
.ax-chart text { stroke: none; }
.ax-chart .area { stroke: none; }
.ax-chart .dot { stroke: var(--panel); stroke-width: 2; }
.ax-chart__tip { position: absolute; top: 6px; pointer-events: none; padding: 6px 9px; border-radius: 7px; background: var(--panel-2); border: 1px solid var(--line-2); font-size: 12px; white-space: nowrap; box-shadow: var(--shadow); transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.ax-chart__tip b { font-weight: 600; margin-right: 6px; }
.ax-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ax-split--wide { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.ax-stack { display: flex; flex-direction: column; gap: 16px; }
.ax-holdings { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.ax-hold { display: grid; grid-template-columns: 76px minmax(0, 1fr) 52px 70px; align-items: center; gap: 10px; height: 34px; font-size: 13px; border-radius: 6px; padding: 0 6px; margin: 0 -6px; }
.ax-hold:hover { background: var(--hover); }
.ax-hold > span { text-align: right; }
.ax-hold__sym { font: 500 12.5px "JetBrains Mono", monospace; display: inline-flex; align-items: center; gap: 4px; }
.ax-hold__sym svg { width: 11px; height: 11px; color: var(--faint); }
a.ax-hold__sym:hover { color: var(--accent); }
.ax-bar { height: 6px; border-radius: 4px; background: var(--panel-2); overflow: hidden; }
.ax-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.ax-bar--cash i { background: var(--line-2); }
.ax-hold--cash { color: var(--muted); }
.ax-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-height: 520px; overflow-y: auto; }
.ax-feed__item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: start; }
.ax-feed__item:last-child { border-bottom: 0; }
.ax-feed__item.is-rejected, .ax-feed__item.is-cancelled { opacity: 0.6; }
.ax-feed__item time { white-space: nowrap; }
.ax-feed__why { font-size: 12.5px; color: var(--text-2); margin-top: 2px !important; line-height: 1.5; }
.ax-bs { display: inline-grid; place-items: center; height: 20px; border-radius: 5px; font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 1px; }
.ax-bs--buy { color: var(--pos); background: var(--pos-soft); }
.ax-bs--sell { color: var(--neg); background: var(--neg-soft); }
.ax-sym { font: 500 13px "JetBrains Mono", monospace; }
.ax-sym:hover { color: var(--accent); }
.ax-table { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ax-table__head, .ax-table__row { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0 14px; align-items: center; }
.ax-table__head { height: 34px; font-size: 11.5px; color: var(--faint); background: var(--bg-2); border-bottom: 1px solid var(--line); }
.ax-table__row { height: 44px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ax-table__row:last-child { border-bottom: 0; }
.ax-code { display: block; margin: 0; padding: 12px 14px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); font-size: 12.5px; line-height: 1.6; color: var(--text-2); overflow-x: auto; white-space: pre; tab-size: 2; }
textarea.ax-code { white-space: pre; width: 100%; resize: vertical; }
.ax-versions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ax-versions a { display: inline-flex; gap: 6px; align-items: center; height: 26px; padding: 0 9px; border-radius: 6px; border: 1px solid var(--line); font-size: 12px; font-weight: 500; }
.ax-versions a:hover { background: var(--hover); }
.ax-versions a.is-on { border-color: var(--accent); color: var(--accent); }
.ax-log { list-style: none; margin: 12px 0 0; padding: 0; font: 12px/1.7 "JetBrains Mono", monospace; color: var(--text-2); max-height: 320px; overflow-y: auto; }
.ax-log li { padding: 2px 0; border-bottom: 1px dashed var(--line); }
.ax-panel .ax-tiles, .ax-panel .ax-chart { margin-top: 14px; }
.ax-copy { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); min-width: 0; }
.ax-copy code { flex: 1; background: none; border: 0; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.ax-steps2 { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.ax-step2 { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); }
.ax-step2__n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; border: 1px solid var(--line-2); color: var(--muted); }
.ax-step2.is-done .ax-step2__n { background: var(--pos-soft); color: var(--pos); border-color: transparent; }
.ax-step2 p { margin-top: 2px !important; }
.ax-danger { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* ---------- forms ---------- */
.ax-form { display: flex; flex-direction: column; gap: 12px; }
.ax-field { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.ax-input, .ax select, .ax-inline input {
  width: 100%; min-height: 34px; padding: 7px 10px; border-radius: 7px;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text);
  font: inherit; font-size: 13.5px; font-weight: 400;
  transition: border-color .12s, box-shadow .12s;
}
.ax select { padding-right: 28px; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 14px) 50%, calc(100% - 10px) 50%; background-size: 4px 4px; background-repeat: no-repeat; }
.ax-input:focus, .ax select:focus, .ax-inline input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ax-input::placeholder { color: var(--faint); }
textarea.ax-input { resize: vertical; line-height: 1.55; }
.ax-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ax-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.ax-inline select, .ax-inline input { width: auto; flex: 1 1 180px; }
.ax-pick { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.ax-pick select { width: auto; min-height: 30px; padding-top: 4px; padding-bottom: 4px; font-size: 12.5px; }
.ax-js [data-ax-hidden-js] { display: none; }
.ax-list { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.ax-list:has(> .ax-empty) { background: none; border: 0; box-shadow: none; }
.ax-list__row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 150px 56px 84px 64px; gap: 12px; align-items: center; height: 58px; padding: 0 14px; border-bottom: 1px solid var(--line); transition: background .1s; }
.ax-list__row:last-child { border-bottom: 0; }
.ax-list__row:hover { background: var(--hover); }
.ax-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.ax-status i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--faint); }
.ax-status.is-live { color: var(--text); } .ax-status.is-live i { background: var(--pos); border-color: var(--pos); box-shadow: 0 0 0 3px var(--pos-soft); }
.ax-status.is-practice i { border-color: var(--accent); background: conic-gradient(var(--accent) 0 50%, transparent 0); }
.ax-mini { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.ax-mini a { display: flex; justify-content: space-between; align-items: center; height: 32px; padding: 0 8px; margin: 0 -8px; border-radius: 6px; font-size: 13px; font-weight: 500; }
.ax-mini a:hover { background: var(--hover); }

/* ---------- export doc ---------- */
.ax-doc { display: flex; flex-direction: column; gap: 14px; max-width: 860px; }
.ax-docstep { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; }
.ax-docstep > .ax-step__n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--panel); font-size: 12px; }
.ax-docstep > div { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ax-docstep h2 { font-size: 15px; }
.ax-docstep p { color: var(--text-2); font-size: 13.5px; line-height: 1.6; }
.ax-ul { margin: 10px 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* ---------- dialogs ---------- */
.ax-dialog { padding: 0; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); color: var(--text); box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.02); width: min(600px, calc(100vw - 24px)); max-height: min(78vh, 680px); overflow: hidden; }
.ax-dialog[open] { animation: ax-pop .14s ease-out both; }
.ax-dialog::backdrop { background: rgba(6, 6, 9, 0.55); backdrop-filter: blur(2px); }
@keyframes ax-pop { from { opacity: 0; transform: translateY(-6px) scale(.985); } to { opacity: 1; transform: none; } }
.ax-cmd { margin-top: 12vh; }
.ax-cmd__bar { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 52px; border-bottom: 1px solid var(--line); color: var(--muted); }
.ax-cmd__bar input:focus-visible { outline: none; }
.ax-cmd__bar input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 15px; }
.ax-cmd__list { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow-y: auto; }
.ax-cmd__group { padding: 8px 10px 4px; font-size: 11.5px; color: var(--faint); font-weight: 500; }
.ax-cmd__item { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.ax-cmd__item .ax-ellip { flex: 1; }
.ax-cmd__item.is-on { background: var(--hover); }
.ax-cmd__item svg { color: var(--muted); }
.ax-cmd__foot { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--faint); }
.ax-cmd__foot span { display: inline-flex; gap: 4px; align-items: center; }
.ax-cmd__none { padding: 28px; text-align: center; color: var(--muted); font-size: 13px; }
.ax-quick form { padding: 0 16px 16px; gap: 10px; }
.ax-dialog__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 6px; }
.ax-keys .ax-dialog__head { padding: 14px 16px 6px; }
.ax-dialog__head h2 { font-size: 14px; }
.ax-dialog__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 6px; }
.ax-input--title { font-size: 17px; font-weight: 550; border: 0; background: none; padding-left: 0; box-shadow: none !important; }
.ax-chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ax-chips-row .ax-pick { padding-left: 9px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--bg-2); gap: 4px; }
.ax-chips-row .ax-pick select { border: 0; background-color: transparent; min-height: 28px; }
.ax-keylist { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; padding: 8px 16px 18px; font-size: 13px; }
.ax-keylist dt { display: flex; gap: 3px; }
.ax-keylist dd { margin: 0; color: var(--text-2); }

/* ---------- mobile tab bar ---------- */
.ax-tabbar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .ax-hero { grid-template-columns: 1fr; }
  .ax-split, .ax-split--wide { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --top-h: 50px; }
  .ax-app { grid-template-columns: 1fr; }
  .ax-side { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .22s cubic-bezier(.2,.8,.2,1); box-shadow: 20px 0 60px rgba(0,0,0,0.4); }
  .ax-side.is-open { transform: none; }
  .ax-side .ax-side__close { display: inline-grid; }
  .ax-scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(0,0,0,0.45); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .ax-side.is-open + .ax-scrim { opacity: 1; pointer-events: auto; }
  .ax-top { padding: 0 12px; }
  .ax-top__menu, .ax-top__search { display: inline-grid; }
  .ax-main { padding: 18px 16px calc(84px + env(safe-area-inset-bottom)); gap: 16px; }
  .ax-hide-sm { display: none !important; }
  .ax-tabbar {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    height: calc(60px + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--bg-2) 88%, transparent);
    backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-top: 1px solid var(--line);
  }
  .ax-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 500; color: var(--muted); padding: 6px 0; }
  .ax-tabbar a svg { width: 20px; height: 20px; }
  .ax-tabbar a.is-on { color: var(--text); }
  .ax-tabbar a.is-on svg { color: var(--accent); }
  .ax-tabbar__new { justify-self: center; width: 44px; height: 44px; border-radius: 14px !important; display: grid !important; place-items: center; background: var(--accent-2) !important; color: #fff !important; box-shadow: 0 6px 18px rgba(116,87,209,0.4); }
  .ax-tabbar__new svg { width: 20px; height: 20px; stroke-width: 2; }
  .ax-board__head, .ax-board__row { grid-template-columns: 28px minmax(0, 1fr) 72px 60px 48px; gap: 8px; padding: 0 12px; }
  .ax-board__head > :nth-child(3), .ax-board__row > :nth-child(3), .ax-board__head > :nth-child(7), .ax-board__row > :nth-child(7) { display: none; }
  .ax-podium { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .ax-podium::-webkit-scrollbar { display: none; }
  .ax-podium__card { flex: 0 0 78%; scroll-snap-align: center; }
  .ax-crumbs > :not(:last-child) { display: none; }
  .ax-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ax-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
  [data-ax-chart-readout] { display: none; }
  .ax-steps, .ax-rules { grid-template-columns: 1fr; }
  .ax-list__row { grid-template-columns: 30px minmax(0, 1fr) auto 70px; }
  .ax-list__row .ax-status { font-size: 11.5px; }
  .ax-pagehead h1 { font-size: 21px; }
  .ax-filter { min-width: 0; flex: 1; }
  .ax-toolbar .ax-seg { overflow-x: auto; max-width: 100%; }
  .ax-toast { left: 12px; right: 12px; bottom: calc(72px + env(safe-area-inset-bottom)); max-width: none; }
  .ax-agenthead__actions { width: 100%; }
  .ax-step2 { grid-template-columns: 26px minmax(0, 1fr); }
  .ax-step2 > form, .ax-step2 > .ax-fine { grid-column: 1 / -1; }
  .ax-table__head, .ax-table__row { grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); gap: 6px; font-size: 12.5px; }
  .ax-cmd { margin-top: 8vh; }
  .ax-input, .ax select, .ax-inline input, .ax-cmd__bar input, .ax-filter input { font-size: 16px; }
}
@media (max-width: 520px) {
  .ax-hide-xs { display: none !important; }
  .ax-board__head, .ax-board__row { grid-template-columns: 26px minmax(0, 1fr) 70px 48px; }
  .ax-list__row { grid-template-columns: 30px minmax(0, 1fr) 64px; }
  .ax-list__row .ax-status { display: none; }
  .ax-grid2 { grid-template-columns: 1fr; }
  .ax-hold { grid-template-columns: 64px minmax(0, 1fr) 46px 62px; gap: 8px; }
  .ax-feed__item { grid-template-columns: 38px minmax(0, 1fr); }
  .ax-feed__item time { grid-column: 2; }
  .ax-chart { height: 200px; }
  .ax-market { padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .ax *, .ax *::before, .ax *::after { animation: none !important; transition: none !important; }
}

/* ---------- cookie banner (shared template) ---------- */
   ================================================================ */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding-bottom: env(safe-area-inset-bottom);
}
.cookie-banner__bar {
  background: rgb(var(--gray-900));
  border-top: 1px solid rgb(var(--gray-700));
  box-shadow: 0 -12px 40px rgb(0 0 0 / 0.35);
}
.cookie-banner__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.15rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
}
.cookie-banner__copy { flex: 1 1 16rem; }
.cookie-banner__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.cookie-banner__title h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgb(var(--gray-100));
}
.cookie-banner__icon {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--accent-text);
  flex-shrink: 0;
}
.cookie-banner__copy p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: rgb(var(--gray-400));
}
.cookie-banner__copy a {
  color: var(--accent-text);
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 0 1 auto;
}
.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 550;
  cursor: pointer;
  font-family: inherit;
}
.cookie-btn--ghost {
  color: rgb(var(--gray-300));
  background: rgb(var(--gray-800));
  border: 1px solid rgb(var(--gray-700));
}
.cookie-btn--accent {
  color: #fff;
  background: rgb(var(--accent));
  border: 1px solid transparent;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}
.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.6);
}
.cookie-modal__center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
}
.cookie-modal__panel {
  position: relative;
  background: rgb(var(--gray-900));
  border: 1px solid rgb(var(--gray-700));
  border-radius: 0.9rem;
  width: 100%;
  max-width: 32rem;
  max-height: min(90vh, 40rem);
  overflow: auto;
  box-shadow: 0 24px 80px rgb(0 0 0 / 0.45);
}
.cookie-modal__head,
.cookie-modal__foot {
  position: sticky;
  background: rgb(var(--gray-900));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
}
.cookie-modal__head {
  top: 0;
  border-bottom: 1px solid rgb(var(--gray-800));
  z-index: 1;
}
.cookie-modal__head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}
.cookie-modal__close {
  color: rgb(var(--gray-400));
  background: none;
  border: 0;
  padding: 0.25rem;
  cursor: pointer;
}
.cookie-modal__close svg { width: 1.15rem; height: 1.15rem; }
.cookie-modal__body { padding: 1rem 1.25rem; }
.cookie-modal__body > p {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgb(var(--gray-400));
}
.cookie-pref {
  background: rgb(var(--gray-800) / 0.5);
  border: 1px solid rgb(var(--gray-700));
  border-radius: 0.65rem;
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
}
.cookie-pref__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}
.cookie-pref h3 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}
.cookie-pref p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgb(var(--gray-400));
}
.cookie-pref__always {
  font-size: 0.7rem;
  font-weight: 550;
  color: #3dbe6e;
  border: 1px solid color-mix(in srgb, #3dbe6e 32%, rgb(var(--gray-700)));
  background: color-mix(in srgb, #3dbe6e 12%, rgb(var(--gray-900)));
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  white-space: nowrap;
}
.cookie-modal__foot {
  bottom: 0;
  border-top: 1px solid rgb(var(--gray-800));
  flex-wrap: wrap;
}
.cookie-switch {
  position: relative;
  width: 2.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-switch span {
  position: absolute;
  inset: 0;
  background: rgb(var(--gray-600));
  border-radius: 999px;
  cursor: pointer;
}
.cookie-switch span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 150ms ease;
}
.cookie-switch input:checked + span { background: rgb(var(--accent)); }
.cookie-switch input:checked + span::after { transform: translateX(16px); }
.cookie-switch input:focus-visible + span {
  outline: 1.5px solid rgb(var(--accent) / 0.65);
  outline-offset: 2px;
@media (max-width: 767px) {
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .cookie-btn, .cookie-modal__foot .cookie-btn { flex: 1 1 9rem; }
  .cookie-modal__foot { flex-direction: column; align-items: stretch; }
}
