/* IMDwindowshopper — dark design system in the shadcn/ui spirit (zinc palette, 1px borders, 8px radii, quiet type) with a
   liquid-glass layer: surfaces are translucent and blur what scrolls behind them. Flat colors only: no gradients
   anywhere (owner's choice, 2026-10-08). Motion is short and respects prefers-reduced-motion. */

:root {
  color-scheme: dark;
  /* surfaces */
  --bg: #09090b;
  --surface: rgba(24, 24, 27, 0.62);
  --surface-solid: #131316;
  --surface-hi: rgba(39, 39, 42, 0.7);
  --muted: #18181b;
  --muted-2: #27272a;
  /* text */
  --ink: #fafafa;
  --ink-2: #d4d4d8;
  --ink-3: #a1a1aa;
  --ink-4: #71717a;
  /* lines */
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.13);
  --ring: rgba(212, 212, 216, 0.28);
  /* accents (flat) */
  --primary: #fafafa;
  --primary-ink: #09090b;
  --accent: #5b7cff;
  --accent-soft: rgba(91, 124, 255, 0.14);
  --up: #22c55e;
  --up-soft: rgba(34, 197, 94, 0.12);
  --down: #ef4444;
  --down-soft: rgba(239, 68, 68, 0.12);
  --warn: #f59e0b;
  /* shape + type */
  --r-lg: 12px;
  --r-md: 10px;
  --r-sm: 8px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: "Inter", "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background-color: var(--bg);
  /* fine dot grid (an SVG tile, not a gradient) gives the glass something to blur */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23ffffff' fill-opacity='0.045'/%3E%3C/svg%3E");
  background-attachment: fixed;
  color: var(--ink);
  font: 14px/1.5 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(91, 124, 255, 0.35); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
* { scrollbar-width: thin; scrollbar-color: #3f3f46 transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #3f3f46; border-radius: 4px; border: 2px solid transparent; background-clip: padding-box; }

/* old decorative layers: not used any more */
.ambient, .grain { display: none; }

/* ---------- glass surface ---------- */
.glass {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -16px rgba(0, 0, 0, 0.7);
}

/* ---------- shell ---------- */
.app { position: relative; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 700px) { .wrap { padding: 0 16px; } }

.navwrap { position: sticky; top: 0; z-index: 50; padding: 10px 16px; background: rgba(9, 9, 11, 0.55); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); }
.nav { margin: 0 auto; max-width: none; display: flex; align-items: center; gap: 14px; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -0.01em; font-size: 15px; white-space: nowrap; }
.brand .logo { width: 32px; height: 32px; flex: none; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6)); }
/* wordmark: IMD in white, windowshopper in muted ink, one word */
.brand .wm { letter-spacing: -0.015em; }
.brand .wm b { font-weight: 500; color: var(--ink-3); }
.login .wm2 { font-weight: 500; color: var(--ink-3); }
.nav .links { display: flex; gap: 2px; margin-left: 10px; }
.nav .links a { padding: 6px 12px; border-radius: var(--r-sm); color: var(--ink-3); font-weight: 500; font-size: 13.5px; transition: background 0.15s, color 0.15s; }
.nav .links a:hover { color: var(--ink); background: var(--muted); }
.nav .links a[aria-current="page"] { color: var(--ink); background: var(--muted-2); }
.nav .spacer { flex: 1; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); position: relative; flex: none; }
.live-dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid var(--up); animation: ping 2.4s var(--ease) infinite; }
.live-dot.off { background: var(--ink-4); }
.live-dot.off::after { display: none; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(2); opacity: 0; } }
.icon-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: transparent; cursor: pointer; color: var(--ink-3); transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.icon-btn:hover { color: var(--ink); background: var(--muted); border-color: var(--line-2); }
.icon-btn svg { width: 16px; height: 16px; }
.kbd { font: 500 11px var(--mono); color: var(--ink-4); border: 1px solid var(--line-2); border-radius: 5px; padding: 0 5px; line-height: 18px; }
.search-btn { display: flex; align-items: center; gap: 10px; height: 32px; min-width: 220px; padding: 0 6px 0 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: rgba(24, 24, 27, 0.6); color: var(--ink-4); cursor: pointer; transition: border-color 0.15s, color 0.15s; font-size: 13px; }
.search-btn .t { flex: 1; text-align: left; }
.search-btn:hover { border-color: var(--line-2); color: var(--ink-3); }
.search-btn svg { width: 14px; height: 14px; }
@media (max-width: 900px) { .nav .live-pill, .search-btn .kbd, .search-btn .t { display: none; } .search-btn { min-width: 0; width: 32px; padding: 0; justify-content: center; } }
@media (max-width: 700px) { .brand .wm { display: none; } }
@media (max-width: 560px) { .nav .links { margin-left: 4px; } .nav .links a { padding: 6px 9px; } }

main.wrap { padding-block: 32px 96px; }

/* ---------- type ---------- */
.eyebrow { font-size: 12px; color: var(--ink-4); font-weight: 500; }
h1.display { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.03em; margin: 6px 0 8px; font-weight: 650; }
h1.display em { font-style: normal; color: var(--ink-3); }
.lede { color: var(--ink-3); font-size: 15px; max-width: 660px; margin: 0; }
h2 { font-size: 16px; letter-spacing: -0.01em; margin: 0; font-weight: 600; }
h3 { font-size: 13px; color: var(--ink); font-weight: 600; margin: 0 0 12px; letter-spacing: -0.005em; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--mono); font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.up { color: var(--up); }
.down { color: var(--down); }

/* ---------- controls (shadcn: Tabs, Badge, Input, Button) ---------- */
.seg { position: relative; display: inline-flex; padding: 3px; border-radius: var(--r-md); gap: 2px; background: var(--muted); border: 1px solid var(--line); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.seg button {
  position: relative; z-index: 1; border: 0; background: none; padding: 5px 12px; border-radius: 7px; cursor: pointer;
  color: var(--ink-3); font-weight: 500; font-size: 13px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; transition: color 0.15s;
}
.seg button:hover { color: var(--ink-2); }
.seg button[aria-pressed="true"] { color: var(--ink); }
.seg button .count { font-size: 11.5px; color: var(--ink-4); font-weight: 500; font-variant-numeric: tabular-nums; }
.seg .thumb { position: absolute; z-index: 0; top: 0; left: 0; border-radius: 7px; background: var(--muted-2); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), inset 0 0 0 1px var(--line); transition: transform 0.25s var(--ease), width 0.25s var(--ease); }
.seg.small button { padding: 4px 10px; font-size: 12.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--line); background: transparent; border-radius: var(--r-sm); padding: 5px 12px; font-size: 13px; font-weight: 500;
  color: var(--ink-3); cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; white-space: nowrap;
}
.chip:hover { color: var(--ink); background: var(--muted); }
.chip[aria-pressed="true"] { color: var(--primary-ink); background: var(--primary); border-color: var(--primary); }
.input {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: var(--r-sm); min-width: 240px;
  border: 1px solid var(--line-2); background: rgba(9, 9, 11, 0.5); transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus-within { border-color: rgba(212, 212, 216, 0.4); box-shadow: 0 0 0 3px var(--ring); }
.input svg { width: 15px; height: 15px; color: var(--ink-4); flex: none; }
.input input { all: unset; flex: 1 1 auto; min-width: 0; width: 100%; font-size: 13.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.input input::placeholder { color: var(--ink-4); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-weight: 500; font-size: 13.5px; transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--muted); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.primary:hover { background: #e4e4e7; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.toolbar .grow { flex: 1; }

/* ---------- page heads + stat cards ---------- */
.hero { display: grid; gap: 20px; margin-bottom: 24px; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; max-width: 760px; }
.stat-chip { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--r-lg); min-width: 0; }
.stat-chip b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; order: 2; }
.stat-chip span { font-size: 12.5px; color: var(--ink-3); font-weight: 500; order: 1; }
.scope-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
@media (max-width: 1180px) { .scope-grid { grid-template-columns: 1fr; } .feed-col { display: none; } }
.list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }

/* token rows (classic list) */
.tcard {
  display: grid; grid-template-columns: auto minmax(0, 1.6fr) repeat(4, minmax(78px, 0.7fr)) auto; align-items: center; gap: 16px;
  padding: 12px 14px; cursor: pointer; transition: border-color 0.15s, background 0.15s; overflow: hidden;
}
.tcard:hover { border-color: var(--line-2); background: var(--surface-hi); }
.tcard .who { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tcard .sym { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.tcard .sym b { font-size: 15px; font-weight: 600; white-space: nowrap; }
.tcard .sym span { color: var(--ink-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 500; padding: 1px 7px; line-height: 18px; border-radius: 6px; background: var(--muted); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.tag.accent { color: #c7d2fe; background: var(--accent-soft); border-color: rgba(91, 124, 255, 0.3); }
.tag.hot { color: #fcd34d; background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.3); }
.metric { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.metric span { font-size: 11.5px; color: var(--ink-4); font-weight: 500; }
.metric b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric.big b { font-size: 16px; }
.quick { display: flex; gap: 6px; }
.quick a { width: 30px; height: 30px; border-radius: var(--r-sm); display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink-3); transition: background 0.15s, color 0.15s; }
.quick a:hover { color: var(--ink); background: var(--muted); }
.quick svg { width: 14px; height: 14px; }
@media (max-width: 1100px) { .tcard { grid-template-columns: auto minmax(0, 1fr) repeat(2, minmax(80px, auto)) auto; } .tcard .m3, .tcard .m4 { display: none; } }
@media (max-width: 640px) { .tcard { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; } .tcard .m2, .tcard .quick { display: none; } }

/* avatars: image or flat-color initials */
.avatar { position: relative; width: 44px; height: 44px; flex: none; }
.avatar .img { width: 100%; height: 100%; border-radius: var(--r-md); object-fit: cover; display: grid; place-items: center; font-weight: 600; font-size: 15px; color: rgba(255, 255, 255, 0.92); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
/* Token without a picture: our logo, already blurred in the file (a CSS blur on hundreds of cards would cost scroll speed). */
.avatar .img.art { position: relative; }
.avatar .img.art::after { content: ""; position: absolute; inset: 12%; background: url("/brand/logo-blur.png") center / contain no-repeat; opacity: 0.6; pointer-events: none; }
.avatar .chain { position: absolute; right: -4px; bottom: -4px; font-size: 9px; font-weight: 600; padding: 0 4px; line-height: 15px; border-radius: 5px; background: var(--bg); border: 1px solid var(--line-2); color: var(--ink-3); letter-spacing: 0.02em; }
.avatar.lg { width: 64px; height: 64px; }
.avatar.lg .img { border-radius: 14px; font-size: 21px; }

.xchip { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 12px; padding: 1px 7px; border-radius: 6px; background: var(--up-soft); color: var(--up); border: 1px solid rgba(34, 197, 94, 0.3); }
.xchip.big { background: var(--accent-soft); color: #c7d2fe; border-color: rgba(91, 124, 255, 0.35); }
.pct { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- live feed ---------- */
.feed { position: sticky; top: 76px; padding: 16px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; }
.feed header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.feed .items { overflow: hidden; display: flex; flex-direction: column; gap: 6px; }
.ev { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: start; padding: 8px; border-radius: var(--r-sm); border: 1px solid transparent; font-size: 13px; }
.ev .ico { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--muted); color: var(--ink-3); }
.ev .ico svg { width: 13px; height: 13px; }
.ev.buy .ico { color: var(--up); background: var(--up-soft); }
.ev.sell .ico { color: var(--down); background: var(--down-soft); }
.ev.job .ico { color: #c7d2fe; background: var(--accent-soft); }
.ev .t { color: var(--ink-4); font-size: 11.5px; white-space: nowrap; }
.ev p { margin: 0; color: var(--ink-3); line-height: 1.35; }
.ev p b { color: var(--ink); font-weight: 600; }
.ev.enter { animation: evIn 0.35s var(--ease); border-color: var(--line-2); }
@keyframes evIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- token page ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-weight: 500; font-size: 13px; margin-bottom: 16px; cursor: pointer; transition: color 0.15s; }
.back:hover { color: var(--ink); }
.back svg { width: 15px; height: 15px; }
.thead { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 18px 20px; margin-bottom: 16px; }
.thead .title { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.thead .title h1 { margin: 0; font-size: 24px; font-weight: 650; letter-spacing: -0.025em; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.thead .title h1 span { font-size: 15px; color: var(--ink-3); font-weight: 500; letter-spacing: 0; }
.thead .price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.thead .price b { display: block; font-size: 26px; font-weight: 650; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.thead .price span { font-size: 12.5px; color: var(--ink-3); }
.thead .price a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.ca { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 9px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--muted); cursor: pointer; font: 12px var(--mono); color: var(--ink-3); transition: color 0.15s, border-color 0.15s; width: fit-content; max-width: 100%; }
.ca:hover { border-color: var(--line-2); color: var(--ink); }
.ca svg { width: 13px; height: 13px; }
.ca > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tgrid { display: grid; grid-template-columns: 260px minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.tgrid > * { min-width: 0; }
@media (max-width: 1280px) { .tgrid { grid-template-columns: 240px minmax(0, 1fr); } .tgrid .right { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; } }
.panel { padding: 16px; }
.panel + .panel { margin-top: 16px; }
.linkgroup + .linkgroup { margin-top: 14px; }
.linkgroup h4 { margin: 0 0 6px; font-size: 12px; color: var(--ink-4); font-weight: 500; }
.linkrow { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--r-sm); color: var(--ink-2); font-size: 13.5px; font-weight: 500; transition: background 0.15s, color 0.15s; }
.linkrow:hover { background: var(--muted-2); color: var(--ink); }
.linkrow .li { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--muted); border: 1px solid var(--line); flex: none; color: var(--ink-3); }
.linkrow .li svg { width: 13px; height: 13px; }
.linkrow .ext { margin-left: auto; width: 13px; height: 13px; opacity: 0.4; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 13px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.chartbox { padding: 12px 12px 8px; }
.chartbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 2px 2px 10px; }
.chart { height: 440px; border-radius: var(--r-sm); overflow: hidden; position: relative; }
@media (max-width: 700px) { .chart { height: 320px; } }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--ink-3); font-size: 13.5px; padding: 20px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kv .cell { padding: 10px 12px; border-radius: var(--r-md); background: rgba(9, 9, 11, 0.4); border: 1px solid var(--line); min-width: 0; }
.kv .cell > span { display: block; font-size: 12px; color: var(--ink-3); font-weight: 500; margin-bottom: 2px; }
.kv .cell b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ratio { height: 4px; border-radius: 2px; background: var(--down); overflow: hidden; margin-top: 8px; opacity: 0.85; }
.ratio i { display: block; height: 100%; background: var(--up); transition: width 0.6s var(--ease); }
.holder { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.holder:first-child { border-top: 0; }
.holder .bar { grid-column: 1 / -1; height: 3px; border-radius: 2px; background: var(--muted-2); overflow: hidden; }
.holder .bar i { display: block; height: 100%; background: var(--ink-3); border-radius: 2px; }

table.trades { width: 100%; border-collapse: collapse; font-size: 13px; }
table.trades th { text-align: left; font-weight: 500; color: var(--ink-4); font-size: 12px; padding: 0 10px 8px; border-bottom: 1px solid var(--line); }
table.trades td { padding: 8px 10px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.trades tr:hover td { background: rgba(255, 255, 255, 0.02); }
table.trades tr.buy td.side { color: var(--up); }
table.trades tr.sell td.side { color: var(--down); }
table.trades tr.flash td { animation: rowflash 1.4s var(--ease); }
@keyframes rowflash { 0% { background: rgba(91, 124, 255, 0.16); } 100% { background: transparent; } }
.tablewrap { overflow-x: auto; }

/* ---------- jobs ---------- */
.jrow { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 14px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.jrow:hover { border-color: var(--line-2); background: var(--surface-hi); }
.jicon { position: relative; width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--muted); border: 1px solid var(--line); color: var(--ink-2); }
.jicon svg { width: 16px; height: 16px; }
.jicon .runs { position: absolute; right: -7px; bottom: -6px; font-size: 10px; font-weight: 600; padding: 0 4px; line-height: 15px; border-radius: 5px; background: var(--primary); color: var(--primary-ink); font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--bg); }
.jrow .ttl { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jrow .sub { font-size: 12.5px; color: var(--ink-4); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 3px; }
.state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 0 8px; line-height: 20px; border-radius: 6px; border: 1px solid var(--line); white-space: nowrap; color: var(--ink-3); background: var(--muted); text-transform: capitalize; }
.state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.state.executing, .state.working, .state.submitted, .state.dispatched, .state.reviewing { color: #a5b4fc; background: var(--accent-soft); border-color: rgba(91, 124, 255, 0.3); }
.state.executing::before, .state.working::before { animation: breathe 1.6s ease-in-out infinite; }
.state.completed, .state.accepted, .state.live { color: var(--up); background: var(--up-soft); border-color: rgba(34, 197, 94, 0.28); }
.state.blocked, .state.failed, .state.rejected, .state.cancelled { color: #f87171; background: var(--down-soft); border-color: rgba(239, 68, 68, 0.28); }
@keyframes breathe { 50% { opacity: 0.25; } }

.journey { position: relative; display: flex; flex-direction: column; gap: 10px; padding-left: 24px; }
.journey::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px; background: var(--line-2); }
.step { position: relative; padding: 12px 14px; border-radius: var(--r-md); box-shadow: none; }
.step::before { content: ""; position: absolute; left: -22px; top: 17px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--ink-4); }
.step.done::before { border-color: var(--up); background: var(--up); }
.step.active::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: breathe 1.6s ease-in-out infinite; }
.step.bad::before { border-color: var(--down); background: var(--down); }
.step .top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.step .role { font-weight: 600; text-transform: capitalize; }
.step .meta { margin-top: 6px; font-size: 12.5px; color: var(--ink-4); display: flex; flex-wrap: wrap; gap: 10px; }
.agent-chip { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px 0 3px; line-height: 22px; border-radius: 6px; background: var(--muted); border: 1px solid var(--line); font-size: 12px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: border-color 0.15s, color 0.15s; }
.agent-chip:hover { color: var(--ink); border-color: var(--line-2); }
.objective { white-space: pre-wrap; font-size: 13px; color: var(--ink-3); line-height: 1.6; max-height: 260px; overflow: hidden; }
.objective.open { max-height: none; }

.runs-list { display: flex; flex-direction: column; max-height: 380px; overflow-y: auto; margin: 0 -6px; }
.run { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 7px 6px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); border-radius: 6px; }
.run:hover { background: var(--muted); color: var(--ink-2); }
.run .no { font-variant-numeric: tabular-nums; color: var(--ink-4); font-weight: 500; }
.run .ttl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.run.current { background: var(--muted-2); color: var(--ink); }
@media (max-width: 520px) { .run { grid-template-columns: 44px minmax(0, 1fr) auto; } .run > :last-child { display: none; } }

/* ---------- agents ---------- */
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-top: 16px; }
.acard { padding: 14px; cursor: pointer; transition: border-color 0.15s, background 0.15s; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.acard:hover { border-color: var(--line-2); background: var(--surface-hi); }
.ring { width: 50px; height: 50px; }
.ring circle { fill: none; stroke-width: 4; }
.ring .track { stroke: var(--muted-2); }
.ring .val { stroke: var(--ink); stroke-linecap: round; transition: stroke-dashoffset 0.8s var(--ease); }
.ring text { fill: var(--ink); font-size: 13px; font-weight: 600; }
.agent-img { display: inline-block; object-fit: cover; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.agent-img.sm { width: 22px; height: 22px; }
.agent-img.chip { width: 16px; height: 16px; }
.agent-img.lg { width: 60px; height: 60px; border-radius: 14px; }

/* ---------- loading ---------- */
.skel { border-radius: var(--r-lg); height: 84px; background: var(--muted); border: 1px solid var(--line); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.45; } }
.boot { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); transition: opacity 0.4s var(--ease), visibility 0.4s; }
.boot.done { opacity: 0; visibility: hidden; }
.boot { grid-auto-flow: row; align-content: center; gap: 18px; }
.boot-logo { width: 96px; height: 96px; object-fit: contain; animation: bootPulse 1.6s ease-in-out infinite; }
@keyframes bootPulse { 50% { transform: scale(0.96); opacity: 0.85; } }
.boot .core { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--muted-2); border-top-color: var(--ink); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.rise { animation: rise 0.35s var(--ease) both; animation-delay: calc(var(--i, 0) * 20ms); }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } }
.page-enter { animation: pageIn 0.25s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; } }
.new-glow { animation: newGlow 1.8s var(--ease); }
@keyframes newGlow { 0% { border-color: var(--accent); } }
.tick-up { animation: tickUp 1s var(--ease); }
.tick-down { animation: tickDown 1s var(--ease); }
@keyframes tickUp { 0% { color: var(--up); } }
@keyframes tickDown { 0% { color: var(--down); } }

/* toast (shadcn Sonner-like) */
.toasts { position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { padding: 10px 14px; font-size: 13px; font-weight: 500; background: var(--surface-solid); animation: toastIn 0.25s var(--ease); }
.toast.out { animation: toastOut 0.25s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(4px); } }

/* command palette (shadcn Command) */
.palette-bg { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: grid; justify-items: center; align-items: start; padding-top: 14vh; animation: fadeIn 0.15s var(--ease); }
.palette { width: min(600px, calc(100vw - 32px)); padding: 0; overflow: hidden; background: var(--surface-solid); animation: popIn 0.2s var(--ease); }
.palette .input { min-width: 0; height: 46px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; padding: 0 14px; }
.palette .results { max-height: 50vh; overflow: auto; padding: 6px; }
.palette .res { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer; font-size: 13.5px; }
.palette .res[aria-selected="true"], .palette .res:hover { background: var(--muted-2); }
.palette .res > [data-icon] svg { width: 16px; height: 16px; color: var(--ink-3); }
.palette .avatar { width: 30px; height: 30px; }
.palette .avatar .img { border-radius: 7px; font-size: 11.5px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(0.98); } }

.empty { padding: 36px; text-align: center; color: var(--ink-3); }
.loadmore { display: flex; justify-content: center; margin-top: 16px; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; align-content: center; padding: 20px; }
.login .card { width: min(380px, 100%); padding: 28px 24px; text-align: left; }
.login .logo { display: block; width: 88px; height: 88px; margin: 0 auto 16px; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6)); }
.login .card h1, .login .card p { text-align: center; }
.login h1 { margin: 0 0 4px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.login p { margin: 0 0 20px; color: var(--ink-3); font-size: 13.5px; }
.login .input { min-width: 0; margin-bottom: 12px; }
.login .btn { width: 100%; height: 38px; }
.login .msg { color: #f87171; font-size: 13px; min-height: 18px; margin-bottom: 6px; }

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

/* ---------- phones ---------- */
@media (max-width: 860px) {
  .tgrid { grid-template-columns: minmax(0, 1fr) !important; }
  .tgrid .center { order: 1; }
  .tgrid .right { order: 2; display: block; }
  .tgrid .left { order: 3; }
  .tgrid .right .panel + .panel, .tgrid .left .panel + .panel { margin-top: 16px; }
}
@media (max-width: 640px) {
  .toolbar .input { min-width: 0; flex: 1 1 100%; }
  .toolbar .grow { display: none; }
  .thead { padding: 16px; gap: 14px; }
  .thead .price { text-align: left; width: 100%; align-items: flex-start; }
  .thead .title h1 { font-size: 21px; }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .jrow { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; padding: 12px; }
  .jrow > :last-child { display: none; }
  .jrow .ttl { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 480px) {
  .navwrap { padding: 8px 10px; }
  .nav { gap: 8px; }
  .nav .links { gap: 0; }
  .nav .links a { padding: 6px 8px; font-size: 13px; }
  #logoutForm { display: none; }
}
.thead .title h1.jtitle { font-size: 20px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) { .thead .title h1.jtitle { font-size: 17px; } }

/* ================= Pulse: live columns (Axiom-style) ================= */
main.wrap.wide { max-width: none; padding-inline: 16px; padding-block: 16px 16px; }
@media (max-width: 700px) { main.wrap.wide { padding-inline: 8px; padding-block: 10px; } }
.pulse-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.pulse-head h1 { margin: 0; font-size: 20px; letter-spacing: -0.02em; font-weight: 650; display: flex; align-items: baseline; gap: 8px; }
.pulse-head h1 span { font-size: 13px; color: var(--ink-4); font-weight: 500; letter-spacing: 0; }
.pulse-head .grow { flex: 1; }
.mini-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-stat { display: inline-flex; align-items: baseline; gap: 5px; padding: 0 9px; line-height: 26px; border-radius: var(--r-sm); font-size: 12px; color: var(--ink-4); box-shadow: none; }
.mini-stat b { color: var(--ink-2); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pulse-tabs { display: none; margin-bottom: 10px; }
.pulse-tabs .seg { width: 100%; }
.pulse-tabs .seg button { flex: 1; justify-content: center; }

.pulse { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; height: calc(100vh - 122px); min-height: 520px; }
.pcol { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
/* column header: title + sort on one row, search under it (never squeezed) */
.pcol-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title sort" "search search"; align-items: center; gap: 8px; padding: 10px; border-bottom: 1px solid var(--line); }
.pcol-head h2 { grid-area: title; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; white-space: nowrap; min-width: 0; overflow: hidden; }
.pcol-head h2 .n { font-size: 11.5px; color: var(--ink-4); font-weight: 500; font-variant-numeric: tabular-nums; padding: 0 6px; line-height: 18px; border-radius: 5px; background: var(--muted-2); }
.pcol-head h2 .n:empty { display: none; }
.pcol-head .grow { display: none; }
.pcol-head .input { grid-area: search; min-width: 0; width: 100%; height: 30px; padding: 0 9px; }
.pcol-head .input input { font-size: 12.5px; }
.pcol-head .input svg { width: 13px; height: 13px; }
.sortbar { grid-area: sort; display: flex; gap: 1px; padding: 2px; border-radius: 7px; background: var(--muted); border: 1px solid var(--line); }
.sortbar button { border: 0; background: none; color: var(--ink-4); font-size: 11.5px; font-weight: 500; padding: 2px 7px; line-height: 18px; border-radius: 5px; cursor: pointer; transition: color 0.15s, background 0.15s; white-space: nowrap; }
.sortbar button:hover { color: var(--ink-2); }
.sortbar button[aria-pressed="true"] { color: var(--ink); background: var(--muted-2); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
.pcol-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; container-type: inline-size; }
.pcol-empty { padding: 30px 16px; color: var(--ink-4); text-align: center; font-size: 13px; }
.pcol .sentinel { height: 1px; }
.pcol .skel { height: 92px; margin: 8px; border-radius: var(--r-md); }

/* card: [avatar] [identity + stats + pills] [market], trade buttons below */
.pcard {
  position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "pic body side" "pic buys buys";
  column-gap: 14px; row-gap: 10px; padding: 14px 12px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background 0.12s;
}
.pcard:hover { background: rgba(255, 255, 255, 0.025); }
.pcard:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
.pcard .pic { grid-area: pic; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; padding-top: 2px; }
.pcard .avatar { width: 56px; height: 56px; }
.pcard .avatar .img { border-radius: var(--r-md); font-size: 17px; }
.pcard .ca-mini { font: 10px var(--mono); color: var(--ink-4); background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap; max-width: 60px; overflow: hidden; text-overflow: ellipsis; }
.pcard .ca-mini:hover { color: var(--ink-2); }
.pcard .body { grid-area: body; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.pcard .l1 { display: flex; align-items: center; gap: 7px; min-width: 0; height: 20px; }
.pcard .l1 b { font-size: 14px; font-weight: 600; white-space: nowrap; }
.pcard .l1 .nm { color: var(--ink-4); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pcard .l1 .cp { flex: none; width: 16px; height: 16px; color: var(--ink-4); cursor: pointer; background: none; border: 0; padding: 0; display: inline-grid; place-items: center; }
.pcard .l1 .cp:hover { color: var(--ink); }
.pcard .l1 .cp svg { width: 12px; height: 12px; }
/* "i" = what is this token (tooltip, scope.js aboutTip) */
.pcard .l1 .info { flex: none; width: 16px; height: 16px; padding: 0; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface-hi); color: var(--ink-3); font: italic 600 10px/1 Georgia, "Times New Roman", serif; cursor: help; transition: color 0.12s, border-color 0.12s, background 0.12s; }
.pcard .l1 .info:hover, .pcard .l1 .info:focus-visible, .pcard .l1 .info[aria-describedby] { color: var(--ink); border-color: var(--accent); background: var(--accent-soft); }
.pcard .l1 .info[hidden] { display: none; }
.pcard .l2 { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-3); min-width: 0; height: 22px; overflow: hidden; flex-wrap: wrap; }
.pcard .l2 > * { flex: none; }
.pcard .age { font-weight: 600; color: var(--up); font-variant-numeric: tabular-nums; }
.pcard .age.old { color: var(--ink-3); }
.pcard .ic { display: inline-flex; align-items: center; gap: 3px; color: var(--ink-4); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pcard .ic b { color: var(--ink-2); font-weight: 500; }
.pcard .ic svg { width: 12px; height: 12px; }
.pcard a.ic { transition: color 0.15s; }
.pcard a.ic:hover { color: var(--ink); }
/* pills: one row; a pill that does not fit wraps onto a hidden second row instead of being squeezed */
.pcard .l3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; height: 22px; overflow: hidden; }
.pill { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; padding: 0 7px; line-height: 18px; border-radius: 5px; background: var(--muted); border: 1px solid var(--line); color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill svg { width: 10px; height: 10px; flex: none; }
.pill.good { color: var(--up); border-color: rgba(34, 197, 94, 0.25); }
.pill.bad { color: #f87171; border-color: rgba(239, 68, 68, 0.25); }
.pill.x { color: #c7d2fe; background: var(--accent-soft); border-color: rgba(91, 124, 255, 0.3); }
.pcard .side { grid-area: side; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 0; }
.pcard .vm { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pcard .vm small { font-size: 10.5px; color: var(--ink-4); font-weight: 500; margin-right: 3px; }
.pcard .vm .mc { order: 1; font-size: 14px; font-weight: 600; color: var(--ink); }
.pcard .vm .v { order: 2; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.pcard .lt { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-4); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pcard .lt b { color: var(--ink-3); font-weight: 500; }
.bs { width: 36px; height: 3px; border-radius: 2px; background: var(--down); overflow: hidden; display: inline-block; opacity: 0.85; }
.bs i { display: block; height: 100%; background: var(--up); }
.pcard .buys { grid-area: buys; display: flex; justify-content: flex-end; gap: 6px; min-width: 0; }
.tradebtn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 28px; padding: 0 12px; border-radius: 6px; font-size: 12px; font-weight: 500; color: var(--ink-2); background: var(--muted); border: 1px solid var(--line-2); transition: background 0.15s, color 0.15s; white-space: nowrap; }
.tradebtn:hover { background: var(--muted-2); color: var(--ink); }
.tradebtn svg { width: 12px; height: 12px; }
.tradebtn.main { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.tradebtn.main:hover { background: #6d8bff; }
.pcard.hit-buy { animation: hitBuy 1s var(--ease); }
.pcard.hit-sell { animation: hitSell 1s var(--ease); }
@keyframes hitBuy { 0% { background: var(--up-soft); box-shadow: inset 2px 0 0 var(--up); } }
@keyframes hitSell { 0% { background: var(--down-soft); box-shadow: inset 2px 0 0 var(--down); } }
.pcard.fresh { animation: freshIn 0.4s var(--ease), freshGlow 2s var(--ease); }
@keyframes freshIn { from { opacity: 0; transform: translateY(-6px); } }
@keyframes freshGlow { 0% { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); } }

/* narrow columns (container query): smaller avatar, the market block moves under the stats */
@container (max-width: 340px) {
  .pcard { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "pic body" "pic side" "buys buys"; }
  .pcard .avatar { width: 44px; height: 44px; }
  .pcard .avatar .img { font-size: 14px; border-radius: 9px; }
  .pcard .ca-mini { display: none; }
  .pcard .side { flex-direction: row; align-items: center; justify-content: space-between; }
  .pcard .vm { flex-direction: row; align-items: baseline; gap: 10px; }
  .pcard .vm .mc { order: 0; }
  .pcard .buys .tradebtn { flex: 1; }
}

/* one column at a time below 1400 px, chosen with tabs */
@media (max-width: 1400px) {
  .pulse-tabs { display: block; }
  .pulse { grid-template-columns: minmax(0, 1fr); height: calc(100vh - 168px); }
  .pulse .pcol { display: none; }
  .pulse[data-active="jobs"] .pcol[data-col="jobs"], .pulse[data-active="imd"] .pcol[data-col="imd"], .pulse[data-active="pairs"] .pcol[data-col="pairs"], .pulse[data-active="future"] .pcol[data-col="future"] { display: flex; }
  .pcol-head { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "search sort"; }
  .pcol-head h2 { display: none; }
  .pcol-head .input { height: 32px; }
}
@media (max-width: 560px) {
  .mini-stats { display: none; }
  .pulse-head h1 span { display: none; }
  .pulse { height: calc(100vh - 150px); }
  .pcol-head { grid-template-areas: "search" "sort"; grid-template-columns: minmax(0, 1fr); }
  .sortbar button { flex: 1; }
  .pulse-tabs .seg { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .pulse-tabs .seg button { padding: 6px 8px; font-size: 12.5px; }
}

/* ---------- build complexity ---------- */
.cxbars { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 9px; flex: none; }
.cxbars b { width: 2px; border-radius: 1px; background: currentColor; opacity: 0.25; }
.cxbars b:nth-child(1) { height: 3px; } .cxbars b:nth-child(2) { height: 4.5px; } .cxbars b:nth-child(3) { height: 6px; }
.cxbars b:nth-child(4) { height: 7.5px; } .cxbars b:nth-child(5) { height: 9px; }
.cxbars b.on { opacity: 1; }
.pill.cx { gap: 5px; }
.pill.cx.lv1 { color: var(--ink-3); }
.pill.cx.lv2 { color: #5eead4; border-color: rgba(94, 234, 212, 0.25); }
.pill.cx.lv3 { color: #93c5fd; border-color: rgba(147, 197, 253, 0.28); }
.pill.cx.lv4 { color: #c4b5fd; border-color: rgba(196, 181, 253, 0.3); }
.pill.cx.lv5 { color: #fcd34d; border-color: rgba(252, 211, 77, 0.32); background: rgba(245, 158, 11, 0.08); }
.cxpanel { margin-top: 16px; }
.cxhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cxlevel { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; letter-spacing: -0.02em; }
.cxlevel .cxbars { height: 14px; gap: 2px; }
.cxlevel .cxbars b { width: 3.5px; }
.cxlevel .cxbars b:nth-child(1) { height: 4px; } .cxlevel .cxbars b:nth-child(2) { height: 7px; } .cxlevel .cxbars b:nth-child(3) { height: 9.5px; }
.cxlevel .cxbars b:nth-child(4) { height: 12px; } .cxlevel .cxbars b:nth-child(5) { height: 14px; }
.cxlevel.l1 { color: var(--ink-3); } .cxlevel.l2 { color: #5eead4; } .cxlevel.l3 { color: #93c5fd; } .cxlevel.l4 { color: #c4b5fd; } .cxlevel.l5 { color: #fcd34d; }
.cxlevel b { color: var(--ink); font-weight: 600; }
.cxscore { text-align: right; line-height: 1.1; }
.cxscore b { font-size: 24px; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cxscore span { display: block; font-size: 11.5px; color: var(--ink-4); }
.cxmeter { height: 4px; border-radius: 2px; background: var(--muted-2); overflow: hidden; margin: 12px 0 10px; }
.cxmeter i { display: block; height: 100%; border-radius: 2px; background: var(--ink-2); transition: width 0.8s var(--ease); }
.cxcalc { width: 100%; border-collapse: collapse; font-size: 13px; }
.cxcalc td { padding: 6px 0; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink-3); }
.cxcalc td.v { text-align: right; padding: 6px 10px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cxcalc td.p { text-align: right; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cxcalc tr.tot td { font-weight: 600; color: var(--ink); border-top: 1px solid var(--line-2); }
.cxscale { font-size: 11.5px; margin: 10px 0 0; color: var(--ink-4); }
.cxagents { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }
.cxagents .faces { display: flex; flex-wrap: wrap; gap: 4px; }
.cxagents .faces .agent-img { width: 24px; height: 24px; transition: transform 0.15s; }
.cxagents .faces a:hover .agent-img { transform: translateY(-1px); }

/* ---------- Future tickers (not trading yet; the card opens the job) ---------- */
.fcard { grid-template-areas: "pic body side" "pic buys buys"; }
.fcard .ttl2 { font-size: 12px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 18px; }
.fcard .l2 .state { font-size: 11px; line-height: 18px; padding: 0 7px; }
.fcard .soon { font-size: 10.5px; font-weight: 500; color: var(--ink-3); padding: 0 6px; line-height: 18px; border-radius: 5px; border: 1px dashed var(--line-2); white-space: nowrap; }
@container (max-width: 340px) {
  .fcard .side { justify-content: flex-start; }
}

/* avatar ring = token type, same colors as the bot's alerts: 🟡 job · 🟣 IMD launch · 🟢 $IMD pair */
.avatar { --kind: transparent; }
.avatar.k-job, .avatar.k-future { --kind: #facc15; }
.avatar.k-launch { --kind: #a855f7; }
.avatar.k-pair { --kind: #22c55e; }
.avatar[class*="k-"] .img { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4.5px var(--kind); }
.avatar.k-future .img { box-shadow: 0 0 0 2px var(--bg); outline: 2.5px dashed var(--kind); outline-offset: 2px; }
.avatar.lg[class*="k-"] .img { box-shadow: 0 0 0 2.5px var(--bg), 0 0 0 5.5px var(--kind); }
.palette .avatar[class*="k-"] .img { box-shadow: 0 0 0 1.5px var(--bg), 0 0 0 3px var(--kind); }

/* FOMO = highlighted buy option on the token page */
.linkrow.featured { background: var(--accent); color: #fff; font-weight: 600; }
.linkrow.featured:hover { background: #6d8bff; color: #fff; }
.linkrow.featured .li { background: rgba(255, 255, 255, 0.16); border-color: transparent; color: #fff; }
.linkrow.featured .ext { opacity: 0.8; }
.thead .price .buy-cta { margin-top: 10px; height: 34px; padding: 0 16px; font-size: 13px; }
.thead .price .buy-cta svg { width: 14px; height: 14px; }
@media (max-width: 640px) { .thead .price .buy-cta { width: 100%; } }

/* token page: trades pager (15 per page) */
.tpager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 12.5px; }
.tpager[hidden] { display: none; }
.tpager b { color: var(--ink); font-weight: 600; }
.btn.sm { height: 30px; padding: 0 12px; font-size: 12.5px; }
.btn[disabled] { opacity: 0.4; cursor: default; pointer-events: none; }

/* token page: holders rank + pager */
.holder .hrow { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; }
.holder .rank { font-size: 11.5px; color: var(--ink-4); font-variant-numeric: tabular-nums; min-width: 30px; }
#hpager .btn.sm { padding: 0 10px; }

/* ---------- footer: one compact row (brand · dev · links) + one legal line ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 16px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); font-size: 12px; color: var(--ink-4); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.foot-brand { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.foot-brand img { width: 20px; height: 20px; object-fit: contain; }
.foot-brand b { color: var(--ink-2); font-weight: 600; }
.foot-brand b span { color: var(--ink-3); font-weight: 500; }
.foot-brand .sep { color: var(--ink-4); }
.site-footer a { color: var(--ink-3); transition: color 0.15s; }
.site-footer a:hover { color: var(--ink); }
.foot-links { display: inline-flex; align-items: center; gap: 14px; }
.foot-links a { display: inline-flex; align-items: center; gap: 5px; }
.foot-links svg { width: 11px; height: 11px; }
.foot-legal { margin: 6px auto 0; font-size: 11px; line-height: 1.5; color: var(--ink-4); }
/* Pulse fills the screen; its footer starts right below the columns */
main.wrap.wide + .site-footer { margin-top: 0; }
.login-foot { margin: 18px 0 0; font-size: 12px; color: var(--ink-4); text-align: center; }
.login-foot a { color: var(--ink-3); }
.login-foot a:hover { color: var(--ink); }

/* ---------- token page: rows that line up (chart | market, trades | holders, then three equal info cards) ---------- */
.tp { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "chart market" "trades holders" "info info"; align-items: stretch; }
.tp > *, .tp-info > * { min-width: 0; }
.tp > .panel + .panel, .tp-info > .panel + .panel, .tp-info .cxpanel { margin-top: 0; }
.tp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; margin-bottom: 12px; }
.tp-head h3 { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.tp-head h3 .muted { font-weight: 500; }
.tp-src { font-size: 12px; }
.tp-chart { grid-area: chart; display: flex; flex-direction: column; padding: 12px 12px 8px; }
.tp-chart .chartbar { margin: 0 0 10px; }
.tp-chart .chart { flex: 1 1 0; height: auto; min-height: 460px; } /* height from the row (or min-height), never from the canvas */
.tp-market { grid-area: market; display: flex; flex-direction: column; }
.tp-market .kv { flex: 1 1 auto; grid-auto-rows: 1fr; } /* cells share the card height evenly */
.tp-market .kv .cell { display: flex; flex-direction: column; justify-content: center; }
.tp-trade { margin-top: auto; padding-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tp-trade .tradebtn { height: 36px; font-size: 13px; padding: 0 8px; }
.tp-trades { grid-area: trades; display: flex; flex-direction: column; }
.tp-holders { grid-area: holders; display: flex; flex-direction: column; }
.tp-holderlist { flex: 1 1 auto; }
.tp-trades .tpager, .tp-holders .tpager { margin-top: auto; padding-top: 14px; }
.tp-info { grid-area: info; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: stretch; }
#cxbox { display: contents; }
.tp-info .linkrow .lt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-info .linkrow .state { margin-left: auto; font-size: 11px; line-height: 18px; padding: 0 7px; }
.chart-note { position: absolute; top: 10px; left: 12px; z-index: 3; pointer-events: none; font-size: 12px; color: var(--ink-3); background: rgba(9, 9, 11, 0.7); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }
@media (max-width: 1180px) {
  .tp { grid-template-columns: minmax(0, 1fr); grid-template-areas: "chart" "market" "trades" "holders" "info"; }
  .tp-chart .chart { min-height: 380px; }
}
@media (max-width: 700px) {
  .tp-chart .chart { min-height: 300px; }
  .tp-trade .tradebtn { height: 34px; }
}

/* ---------- a token that just appeared: glows in its type color for 3 minutes (shadows only, no gradients) ---------- */
.pcard.is-new {
  --glow: #facc15;
  margin: 6px 8px;
  border-radius: 10px;
  border-bottom-color: transparent;
  background: color-mix(in srgb, var(--glow) 7%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--glow) 75%, transparent), inset 0 0 22px -6px color-mix(in srgb, var(--glow) 50%, transparent), 0 0 16px -2px color-mix(in srgb, var(--glow) 55%, transparent);
  animation: newGlowPulse 2.4s ease-in-out infinite;
}
.pcard.is-new.glow-launch { --glow: #a855f7; }
.pcard.is-new.glow-pair { --glow: #22c55e; }
.pcard.is-new.glow-job, .pcard.is-new.glow-future { --glow: #facc15; }
.pcard.is-new.fresh { animation: freshIn 0.4s var(--ease), newGlowPulse 2.4s ease-in-out 0.4s infinite; }
.pcard.is-new:hover { background: color-mix(in srgb, var(--glow) 11%, transparent); }
@keyframes newGlowPulse {
  50% { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--glow) 45%, transparent), inset 0 0 12px -8px color-mix(in srgb, var(--glow) 35%, transparent), 0 0 8px -4px color-mix(in srgb, var(--glow) 35%, transparent); }
}

/* ---------- "what is this token" tooltip on Pulse cards (scope.js aboutTip) ---------- */
.about-tip.glass {
  position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none;
  padding: 12px 14px; border-color: var(--line-2); background: rgba(19, 19, 22, 0.94);
  opacity: 0; transform: translateY(4px); transition: opacity 0.14s var(--ease), transform 0.14s var(--ease);
}
.about-tip.show { opacity: 1; transform: none; }
.about-tip .at-h { display: flex; align-items: baseline; gap: 8px; min-width: 0; margin-bottom: 6px; }
.about-tip .at-h b { font-size: 13px; }
.about-tip .at-h span { color: var(--ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.about-tip p { margin: 0; color: var(--ink-2); font-size: 12.5px; line-height: 1.55; overflow-wrap: anywhere; }
.about-tip .at-s { margin-top: 8px; color: var(--ink-4); font-size: 11px; }
@media (prefers-reduced-motion: reduce) { .about-tip.glass { transition: none; transform: none; } }

/* ---------- Pulse column filters (scope.js filterPanel / filterControls) ---------- */
.pcol-head .srow { grid-area: search; display: flex; gap: 6px; min-width: 0; }
.pcol-head .srow .input { flex: 1 1 auto; min-width: 0; width: auto; }
.fbtn { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 9px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--muted); color: var(--ink-3); font-size: 12px; font-weight: 500; cursor: pointer; transition: color 0.12s, border-color 0.12s, background 0.12s; }
.fbtn:hover, .fbtn[aria-expanded="true"] { color: var(--ink); border-color: var(--line-2); }
.fbtn.on { color: var(--ink); border-color: var(--accent); background: var(--accent-soft); }
.fbtn .fcount { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 10.5px; line-height: 16px; text-align: center; font-variant-numeric: tabular-nums; }
.pcol-head h2 .n.filtered { background: var(--accent-soft); color: var(--ink); }
.fpanel { flex: none; display: flex; flex-direction: column; gap: 10px; padding: 10px; border-bottom: 1px solid var(--line); background: rgba(9, 9, 11, 0.35); max-height: 62%; overflow-y: auto; }
.fpanel[hidden] { display: none; }
.frow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.flabel { color: var(--ink-4); font-size: 11.5px; min-width: 74px; }
.fchips { display: flex; flex-wrap: wrap; gap: 1px; padding: 2px; border-radius: 7px; background: var(--muted); border: 1px solid var(--line); }
.fchips button { border: 0; background: none; color: var(--ink-4); font-size: 11.5px; font-weight: 500; padding: 2px 7px; line-height: 18px; border-radius: 5px; cursor: pointer; }
.fchips button:hover { color: var(--ink-2); }
.fchips button[aria-pressed="true"] { color: var(--ink); background: var(--muted-2); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
.finput { display: flex; align-items: center; height: 28px; padding: 0 8px; min-width: 0; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--muted); }
.finput:focus-within { border-color: var(--ring); }
.finput.bad { border-color: var(--down); }
.finput input, .finput select { width: 100%; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: 12px; font-variant-numeric: tabular-nums; }
.finput select { cursor: pointer; }
.finput select option { background: var(--surface-solid); color: var(--ink); }
.finput input::placeholder { color: var(--ink-4); }
.fday { width: 150px; color-scheme: dark; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ffield { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ffield > span:first-child { color: var(--ink-4); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fchecks { gap: 6px 14px; }
.fcheck { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 12px; cursor: pointer; }
.fcheck input { accent-color: var(--accent); margin: 0; }
.ffoot { justify-content: space-between; }
.fresult { color: var(--ink-3); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.flink { border: 0; background: none; padding: 0; color: var(--ink-3); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.flink:hover { color: var(--ink); }
.pcol-empty .flink { margin-top: 8px; }
.btn.small { height: 28px; padding: 0 12px; font-size: 12px; }
@media (max-width: 380px) { .fbtn > span { display: none; } }

/* ---------- "new version" bar after a deploy (ui.js checkVersion) ---------- */
.update-bar.glass { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; max-width: calc(100vw - 24px); border-color: var(--line-2); background: rgba(19, 19, 22, 0.94); font-size: 13px; color: var(--ink-2); }
.update-bar span { min-width: 0; }

/* =====================================================================================================
   Design v2 (owner, 2026-10-09: "more modern, Apple-style font, columns with a stronger frame", Axiom Pulse as
   reference). Self-hosted fonts (OFL, from the official npm packages, checksums verified, web/fonts/LICENSE-*):
   Inter Variable with optical sizing (closest free design to Apple's SF Pro, which may not be used on the web)
   and Geist Mono for addresses / numbers. Spacing is unchanged (Screener UI rules); this layer only restyles.
   ===================================================================================================== */
@font-face { font-family: "InterVar"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/fonts/inter-latin-opsz-normal.woff2") format("woff2-variations"), url("/fonts/inter-latin-opsz-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "InterVar"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/fonts/inter-latin-ext-opsz-normal.woff2") format("woff2-variations"), url("/fonts/inter-latin-ext-opsz-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "GeistMonoVar"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations"), url("/fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --font: "InterVar", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, sans-serif;
  --mono: "GeistMonoVar", ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  /* deeper base, more contrast between the page, the columns and the cards */
  --bg: #060608;
  --col: #0c0c10;
  --col-head: #101015;
  --col-line: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --c-job: #facc15;
  --c-launch: #a855f7;
  --c-pair: #22c55e;
}
body { font-optical-sizing: auto; letter-spacing: -0.006em; font-feature-settings: "cv11", "ss01", "calt"; text-rendering: optimizeLegibility; }
h1, h2, h3, .brand { letter-spacing: -0.02em; }
.mono, .kbd, .pcard .ca-mini, code { font-family: var(--mono); letter-spacing: 0; }
/* numbers line up everywhere */
.pcard .vm, .pcard .lt, .pill, .mini-stat b, .num, td { font-variant-numeric: tabular-nums; }

/* ---------- top bar ---------- */
.navwrap { background: rgba(6, 6, 8, 0.72); border-bottom-color: var(--col-line); }
.brand { font-weight: 650; }
.nav .links a { font-weight: 550; letter-spacing: -0.01em; }
.nav .links a[aria-current="page"] { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------- Pulse header ---------- */
.pulse-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.pulse-head h1 span { font-weight: 500; letter-spacing: -0.01em; }
.mini-stat { background: var(--col); border: 1px solid var(--col-line); }
.mini-stat b { font-weight: 650; color: var(--ink); }

/* ---------- columns: solid panels with a clear frame and a thin accent line in the column's token color ---------- */
.pulse { gap: 12px; }
.pcol.glass {
  background: var(--col); backdrop-filter: none; -webkit-backdrop-filter: none; border: 1px solid var(--col-line); border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.55), 0 24px 48px -28px rgba(0, 0, 0, 0.9);
}
.pcol::before { content: ""; position: absolute; z-index: 2; top: 0; left: 14px; right: 14px; height: 2px; border-radius: 0 0 2px 2px; background: var(--col-accent, transparent); opacity: 0.9; }
.pcol[data-col="jobs"] { --col-accent: var(--c-job); }
.pcol[data-col="imd"] { --col-accent: var(--c-launch); }
.pcol[data-col="pairs"] { --col-accent: var(--c-pair); }
.pcol[data-col="future"]::before { background: none; height: 0; border-top: 2px dashed var(--c-job); opacity: 0.6; }
.pcol-head { background: var(--col-head); border-bottom: 1px solid var(--col-line); padding: 12px 10px 10px; }
.pcol-head h2 { font-size: 14px; font-weight: 650; letter-spacing: -0.02em; }
.pcol-head h2 .n { background: rgba(255, 255, 255, 0.07); color: var(--ink-3); font-weight: 600; }
.pcol-head .input { background: var(--col); border-color: var(--line-2); }
.sortbar, .fchips { background: var(--col); border-color: var(--line-2); }
.sortbar button[aria-pressed="true"], .fchips button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px var(--line-2); }
.fbtn { background: var(--col); border-color: var(--line-2); }
.fpanel { background: var(--col-head); border-bottom-color: var(--col-line); }

/* ---------- cards ---------- */
.pcard { border-bottom-color: var(--line); transition: background 0.12s, box-shadow 0.12s; }
.pcard:hover { background: rgba(255, 255, 255, 0.035); box-shadow: inset 2px 0 0 var(--col-accent, var(--line-2)); }
.pcard .l1 b { font-size: 14.5px; font-weight: 650; letter-spacing: -0.02em; line-height: 20px; }
.pcard .l1 .nm { line-height: 20px; }
.pcard .l1 .nm { font-weight: 450; }
.pcard .vm .mc { font-size: 14.5px; font-weight: 650; letter-spacing: -0.015em; }
.pcard .vm small { font-weight: 600; letter-spacing: 0.02em; }
.pcard .age { font-weight: 650; }
.pill { border-radius: 6px; font-weight: 550; background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); }
.tradebtn { border-radius: 7px; font-weight: 550; background: rgba(255, 255, 255, 0.05); border-color: var(--line-2); letter-spacing: -0.005em; }
.tradebtn:hover { background: rgba(255, 255, 255, 0.1); }
.tradebtn.main { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 6px 16px -8px rgba(91, 124, 255, 0.8); }
.pcard .avatar .img { border-radius: 12px; }

/* ---------- general surfaces ---------- */
.btn { font-weight: 550; letter-spacing: -0.01em; }
.btn.primary { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset; }
.seg { background: var(--col); border-color: var(--line-2); }
.seg .thumb { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px var(--line-2); }
/* the first pill of a card row may shrink (its label then ends in "…"); the others wrap away as before */
.pcard .l3 > .pill:first-child { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.pill .pt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- chain logos in the chain switch (scope.js CHAIN_ICON) ---------- */
.chain-ic { width: 16px; height: 16px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.chain-ics { display: inline-flex; flex: none; }
.chain-ics .chain-ic + .chain-ic { margin-left: -5px; box-shadow: 0 0 0 1.5px var(--col); }
#chain button { gap: 6px; }
#chain button:not([aria-pressed="true"]) .chain-ic { opacity: 0.75; filter: saturate(0.8); transition: opacity 0.15s, filter 0.15s; }
#chain button:hover .chain-ic { opacity: 1; filter: none; }

/* ---------- build complexity: one soft color per level (owner, 2026-10-09: different, not loud) ---------- */
.pill.cx.lv1 { color: #a1a1aa; background: rgba(161, 161, 170, 0.07); border-color: rgba(161, 161, 170, 0.22); }
.pill.cx.lv2 { color: #5eead4; background: rgba(45, 212, 191, 0.08); border-color: rgba(45, 212, 191, 0.26); }
.pill.cx.lv3 { color: #7dd3fc; background: rgba(56, 189, 248, 0.08); border-color: rgba(56, 189, 248, 0.28); }
.pill.cx.lv4 { color: #c4b5fd; background: rgba(167, 139, 250, 0.09); border-color: rgba(167, 139, 250, 0.3); }
.pill.cx.lv5 { color: #fcd34d; background: rgba(245, 158, 11, 0.09); border-color: rgba(245, 158, 11, 0.32); }
.cxlevel.l3 { color: #7dd3fc; }

/* ---------- chain logo on avatars (ui.js chainBadge) ---------- */
.avatar .chain.logo { padding: 0; width: 18px; height: 18px; right: -5px; bottom: -5px; border-radius: 50%; border: 2px solid var(--col); background: var(--col); display: grid; place-items: center; line-height: 0; }
.avatar .chain.logo img { width: 14px; height: 14px; border-radius: 50%; display: block; object-fit: cover; }
.avatar.lg .chain.logo { width: 22px; height: 22px; }
.avatar.lg .chain.logo img { width: 18px; height: 18px; }

/* ---------- agent cards: big picture, small acceptance ring under it (agents.js) ---------- */
.acard { grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px; }
.acard .apic { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.agent-img.card { width: 64px; height: 64px; border-radius: 14px; }
.acard .apct .ring { width: 34px; height: 34px; display: block; }
.acard .apct .ring circle { stroke-width: 5; }
.acard .apct .ring text { font-size: 16px; font-weight: 700; }
.acard .abody { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.acard .aname { display: flex; align-items: center; gap: 8px; min-width: 0; }
.acard .aname b { font-size: 15px; font-weight: 650; letter-spacing: -0.02em; white-space: nowrap; }
.acard .aname .state { padding: 2px 8px; }
.acard .astat { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.acard .astat b { color: var(--ink-2); font-weight: 600; }
.acard .aago { color: var(--ink-4); font-size: 12px; }
.palette .avatar .chain.logo { width: 14px; height: 14px; right: -3px; bottom: -3px; border-width: 1.5px; }
.palette .avatar .chain.logo img { width: 11px; height: 11px; }

/* ---------- safety checks on cards (scope.js safetyChips; server safety.js) ---------- */
.pcard .buys .safe { display: flex; align-items: center; gap: 4px; margin-right: auto; min-width: 0; }
.pcard .buys .safe:empty { display: none; }
.sc { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 6px 0 5px; border-radius: 7px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--ink-3); font: 600 11px/1 var(--font); letter-spacing: -0.005em; cursor: help; white-space: nowrap; transition: border-color 0.12s, background 0.12s; }
.sc svg { flex: none; }
.sc.ok { color: #4ade80; border-color: rgba(34, 197, 94, 0.3); background: rgba(34, 197, 94, 0.07); }
.sc.warn { color: #fbbf24; border-color: rgba(245, 158, 11, 0.32); background: rgba(245, 158, 11, 0.07); }
.sc.bad { color: #f87171; border-color: rgba(239, 68, 68, 0.45); background: rgba(239, 68, 68, 0.12); }
.sc.unk { color: var(--ink-4); }
.sc:hover, .sc[aria-describedby] { border-color: currentColor; }
/* tooltip rows for the checks */
.about-tip .at-row { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; margin-top: 9px; }
.about-tip .at-row svg { width: 13px; height: 13px; margin-top: 2px; }
.about-tip .at-row b { font-size: 12.5px; color: var(--ink); font-weight: 600; }
.about-tip .at-row p { margin: 2px 0 0; }
.about-tip .at-row.ok svg { color: #4ade80; } .about-tip .at-row.warn svg { color: #fbbf24; }
.about-tip .at-row.bad svg { color: #f87171; } .about-tip .at-row.unk svg { color: var(--ink-4); }
.about-tip .at-row.bad b { color: #fca5a5; }
/* icon-only checks + slightly tighter trade buttons so checks and buttons share one row in a 4-column Pulse */
.sc { width: 24px; flex: none; padding: 0; justify-content: center; }
.sc svg { width: 13px; height: 13px; }
.pcard .buys { gap: 5px; }
.pcard .buys .safe { gap: 3px; }
.pcard .tradebtn { padding: 0 9px; }
/* token page: safety checks inside the Token card (token.js) */
.tsafety { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.tsafety h4 { margin: 0; font-size: 11.5px; font-weight: 600; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.06em; }
.tsafety .at-row { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; margin-top: 10px; font-size: 12.5px; }
.tsafety .at-row svg { width: 13px; height: 13px; margin-top: 2px; }
.tsafety .at-row b { font-size: 12.5px; color: var(--ink); font-weight: 600; }
.tsafety .at-row p { margin: 2px 0 0; color: var(--ink-3); line-height: 1.5; overflow-wrap: anywhere; }
.tsafety .at-row.ok svg { color: #4ade80; } .tsafety .at-row.warn svg { color: #fbbf24; }
.tsafety .at-row.bad svg { color: #f87171; } .tsafety .at-row.unk svg { color: var(--ink-4); }
.tsafety .at-row.bad b { color: #fca5a5; }
.tsafety .tsnote { margin: 10px 0 0; font-size: 11px; color: var(--ink-4); }

/* ---------- launchpad label on cards (scope.js pills: PepesFamily / LaunchHook) ---------- */
.pill.pad { font-weight: 600; }
.pill.pad-pepes { color: #86efac; background: rgba(34, 197, 94, 0.08); border-color: rgba(34, 197, 94, 0.3); }
.pill.pad-launchhook { color: #a5b4fc; background: rgba(99, 102, 241, 0.09); border-color: rgba(99, 102, 241, 0.3); }

/* Pills row: every pill stays visible (owner, 2026-10-12: the launchpad label had pushed build complexity onto the
   hidden second row). The row now grows to a second line when needed instead of hiding what does not fit. */
.pcard .l3 { height: auto; min-height: 22px; overflow: visible; row-gap: 5px; }
/* The pills row is its own grid row across the card (under the name / stats and the market block), not inside the
   narrow body column: complexity + launchpad + the rest fit in one or two lines instead of four. */
.pcard { grid-template-areas: "pic body side" "pic pills pills" "pic buys buys"; }
.pcard > .l3 { grid-area: pills; min-width: 0; }
.pcard > .l3:empty { display: none; }
@container (max-width: 340px) {
  .pcard { grid-template-areas: "pic body" "pic side" "pills pills" "buys buys"; }
}

/* =====================================================================================================
   Card v3 (owner, 2026-10-12: "looks like slop, gaps everywhere, make it flow"). One strict rhythm: 20 px rows,
   6 px between rows, 8 px between blocks, 12 px padding. Left (name, stats) and right (MC, V · L) are both exactly
   two rows, so nothing leaves a hole. Pills are flat chips (tint, no border); the three safety checks are one grouped
   control; trade buttons share that same flat style. No gradients.
   ===================================================================================================== */
.pcard {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  grid-template-areas: "pic body side" "pic pills pills" "pic buys buys";
  column-gap: 12px; row-gap: 8px; padding: 12px 12px 12px 12px; align-items: start;
}
.pcard .pic { gap: 6px; padding-top: 0; }
.pcard .avatar { width: 48px; height: 48px; }
.pcard .avatar .img { border-radius: 11px; font-size: 15px; }
.pcard .ca-mini { font-size: 9.5px; max-width: 52px; letter-spacing: 0.01em; }
.pcard .body { gap: 6px; }
.pcard .l1 { height: 20px; gap: 6px; }
.pcard .l1 b { font-size: 14px; line-height: 20px; }
.pcard .l1 .nm { font-size: 12px; line-height: 20px; }
.pcard .l2 { height: 20px; gap: 9px; font-size: 11.5px; }
.pcard .l2 .ic svg { width: 11px; height: 11px; }
/* right block: two rows that line up with l1 / l2 */
.pcard .side { gap: 6px; }
.pcard .side .mc { display: flex; align-items: baseline; gap: 4px; height: 20px; line-height: 20px; font-size: 14px; font-weight: 650; letter-spacing: -0.015em; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pcard .side .vl { display: flex; align-items: center; gap: 8px; height: 20px; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pcard .side small { font-size: 10px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-4); margin-right: 3px; }
.pcard .side .vl .v, .pcard .side .vl .lq { display: inline-flex; align-items: baseline; }
.pcard .side .vl .lq b { font-weight: 500; color: var(--ink-3); }
.pcard .side .vl .lq { padding-left: 8px; border-left: 1px solid var(--line-2); }
.bs { width: 28px; height: 3px; border-radius: 2px; opacity: 0.9; }
/* pills row: flat chips, one tone, tint only when the value means something */
.pcard > .l3 { gap: 4px 5px; min-height: 20px; }
.pill { height: 20px; line-height: 20px; padding: 0 7px; border: 0; border-radius: 6px; font-size: 11px; font-weight: 550; letter-spacing: -0.005em; background: rgba(255, 255, 255, 0.055); color: var(--ink-2); }
.pill svg { width: 10px; height: 10px; opacity: 0.8; }
.pill.good { color: #4ade80; background: rgba(34, 197, 94, 0.11); }
.pill.bad { color: #f87171; background: rgba(239, 68, 68, 0.13); }
.pill.x { color: #c7d2fe; background: rgba(91, 124, 255, 0.16); }
.pill.cx.lv1 { color: var(--ink-3); background: rgba(255, 255, 255, 0.055); }
.pill.cx.lv2 { color: #5eead4; background: rgba(45, 212, 191, 0.11); }
.pill.cx.lv3 { color: #7dd3fc; background: rgba(56, 189, 248, 0.11); }
.pill.cx.lv4 { color: #c4b5fd; background: rgba(167, 139, 250, 0.13); }
.pill.cx.lv5 { color: #fcd34d; background: rgba(245, 158, 11, 0.13); }
.pill.pad { font-weight: 600; }
.pill.pad-pepes { color: #86efac; background: rgba(34, 197, 94, 0.1); }
.pill.pad-launchhook { color: #a5b4fc; background: rgba(99, 102, 241, 0.13); }
.cxbars { height: 8px; gap: 1.5px; }
/* bottom row: safety group left, trade buttons right, all 26 px */
.pcard .buys { gap: 5px; align-items: center; }
.pcard .buys .safe { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: rgba(255, 255, 255, 0.055); margin-right: auto; }
.sc { width: 22px; height: 22px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-4); transition: background 0.12s, color 0.12s; }
.sc svg { width: 12px; height: 12px; }
.sc.ok { color: #4ade80; background: rgba(34, 197, 94, 0.14); }
.sc.warn { color: #fbbf24; background: rgba(245, 158, 11, 0.14); }
.sc.bad { color: #f87171; background: rgba(239, 68, 68, 0.18); }
.sc.unk { color: var(--ink-4); background: transparent; }
.sc:hover, .sc[aria-describedby] { border-color: transparent; background: rgba(255, 255, 255, 0.12); }
.tradebtn { height: 26px; padding: 0 10px; border: 0; border-radius: 7px; font-size: 12px; font-weight: 550; background: rgba(255, 255, 255, 0.07); color: var(--ink-2); }
.tradebtn:hover { background: rgba(255, 255, 255, 0.13); color: var(--ink); }
.tradebtn.main { background: var(--accent); color: #fff; box-shadow: none; }
.tradebtn.main:hover { background: #6d8bff; }
.tradebtn svg { width: 11px; height: 11px; }
/* narrow column: market block under the name, pills and buttons full width */
@container (max-width: 340px) {
  .pcard { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "pic body" "pic side" "pills pills" "buys buys"; }
  .pcard .avatar { width: 44px; height: 44px; }
  .pcard .avatar .img { border-radius: 10px; font-size: 14px; }
  .pcard .side { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
  .pcard .side .mc { order: 0; }
}
/* labels and numbers centred on the 20 px row (baseline alignment pushed the 10 px label 1 px below the row) */
.pcard .side .mc, .pcard .side .vl .v, .pcard .side .vl .lq { align-items: center; }
.pcard .side small { line-height: 20px; }
/* a very long ticker truncates with "…" instead of pushing the "i" / copy buttons out of the row */
.pcard .l1 b { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pcard .l1 .nm { flex: 0 1 auto; }
/* the name gives way first (basis 0, takes what is left); the ticker keeps its width up to 60% of the row, then "…" */
.pcard .l1 b { flex: 0 0 auto; max-width: calc(100% - 56px); } /* always leaves room for the "i" + copy buttons */
.pcard .l1 .nm { flex: 1 1 0; }
/* a slightly tighter V · L row leaves long tickers ($CADENCEIMD) their full width in a 4-column Pulse */
.pcard .side .vl { font-size: 11px; gap: 6px; }
.pcard .side .vl .lq { padding-left: 6px; }
.pcard .side small { margin-right: 2px; }
.pcard .side .vl .bs { width: 24px; }

/* =====================================================================================================
   v3 everywhere (owner, 2026-10-12): the same language as the Pulse card on agents, jobs and the token page.
   Flat chips (no 1px borders), 20 px rows, 6 / 8 / 12 px rhythm, one button style. No gradients.
   ===================================================================================================== */
/* chips used across pages: state badges and tags become flat like the card pills */
.state, .tag { height: 20px; line-height: 20px; padding: 0 7px; border: 0; border-radius: 6px; font-size: 11.5px; font-weight: 550; letter-spacing: -0.005em; background: rgba(255, 255, 255, 0.055); color: var(--ink-2); }
.state { gap: 5px; }
.state::before { width: 5px; height: 5px; }
.state.executing, .state.working, .state.submitted, .state.dispatched, .state.reviewing { color: #a5b4fc; background: rgba(99, 102, 241, 0.14); }
.state.completed, .state.accepted, .state.live { color: #4ade80; background: rgba(34, 197, 94, 0.12); }
.state.blocked, .state.failed, .state.rejected, .state.cancelled { color: #f87171; background: rgba(239, 68, 68, 0.14); }
.tag.accent { color: #c7d2fe; background: rgba(91, 124, 255, 0.16); }
.tag.hot { color: #fcd34d; background: rgba(245, 158, 11, 0.13); }

/* ---------- agents: picture + ring on the left, three 20 px rows on the right, nothing may leave the card ---------- */
.agrid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.acard { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 12px; align-items: center; }
.acard .apic { gap: 6px; }
.agent-img.card { width: 56px; height: 56px; border-radius: 12px; }
.acard .apct .ring { width: 30px; height: 30px; }
.acard .apct .ring text { font-size: 17px; }
.acard .abody { gap: 4px; padding-top: 0; }
.acard .aname { height: 20px; gap: 6px; }
.acard .aname b { font-size: 14px; line-height: 20px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.acard .aname .state { flex: none; }
.acard .astat { height: 20px; line-height: 20px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acard .aago { height: 20px; line-height: 20px; font-size: 12px; white-space: nowrap; }

/* ---------- jobs list: icon · title + chips · state · id, one 20 px rhythm ---------- */
.jrow { grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 12px; padding: 12px; }
.jrow .ttl { font-size: 14px; font-weight: 550; line-height: 20px; letter-spacing: -0.01em; }
.jrow .sub { margin-top: 4px; gap: 6px; font-size: 12px; line-height: 20px; }
.jrow .sub > span:not(.pill):not(.tag) { color: var(--ink-4); }
.jrow .state { flex: none; }
.jrow > .mono { font-size: 11px; color: var(--ink-4); }

/* ---------- token page ---------- */
.thead { padding: 16px 20px; gap: 16px; }
.thead .title { gap: 6px; }
.thead .tags { gap: 5px; }
.thead .price span { font-size: 12px; }
.thead .price .buy-cta { height: 32px; font-size: 12.5px; }
.panel { padding: 16px; }
.panel h3 { font-size: 13px; margin: 0 0 12px; }
.tp-head { min-height: 24px; margin-bottom: 12px; }
/* market cells: flat tiles, label / value aligned to the same baseline grid */
.kv { gap: 6px; }
.kv .cell { padding: 9px 12px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.035); }
.kv .cell > span { font-size: 11px; font-weight: 600; letter-spacing: 0.03em; color: var(--ink-4); margin-bottom: 1px; }
.kv .cell b { font-size: 15px; font-weight: 650; letter-spacing: -0.015em; }
.tp-trade { padding-top: 12px; gap: 6px; }
.tp-trade .tradebtn { height: 32px; font-size: 12.5px; }
/* links: flat icon tiles, 32 px rows */
.linkrow { padding: 6px 8px; gap: 10px; font-size: 13px; min-height: 32px; }
.linkrow .li { width: 24px; height: 24px; border: 0; background: rgba(255, 255, 255, 0.06); border-radius: 6px; }
.linkrow .li svg { width: 12px; height: 12px; }
.linkgroup h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 4px; }
.linkgroup + .linkgroup { margin-top: 12px; }
/* token facts: 20 px rows */
.facts { gap: 6px 14px; font-size: 12.5px; line-height: 20px; }
.facts dt { color: var(--ink-4); }
.facts dd { color: var(--ink-2); font-weight: 500; }
/* trades + holders: quieter lines, same row height */
table.trades th { font-size: 11px; font-weight: 600; letter-spacing: 0.03em; color: var(--ink-4); padding: 0 8px 8px; border-bottom-color: var(--line); }
table.trades td { padding: 0 8px; height: 32px; font-size: 12.5px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.tpager { font-size: 12px; }
.tpager .btn { height: 28px; padding: 0 10px; font-size: 12px; }
/* "what is this token" and safety rows inside the Token card */
.tsafety .at-row { font-size: 12.5px; margin-top: 8px; }
.tsafety h4 { margin-top: 2px; }

/* ---------- job page (v3): journey steps, objective, runs, deliverables on the same rhythm ---------- */
.thead .jicon { border-radius: 14px !important; }
.journey { gap: 8px; padding-left: 22px; }
.journey::before { left: 6px; }
.step.glass { padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.035); border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.step::before { left: -20px; top: 15px; width: 8px; height: 8px; }
.step .top { min-height: 20px; gap: 6px; }
.step .role { font-size: 13px; font-weight: 600; line-height: 20px; letter-spacing: -0.01em; }
.step .meta { margin-top: 4px; font-size: 12px; line-height: 20px; gap: 8px; }
.objective { font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
.runs-list { margin: 0 -4px; }
.runs-list > * { min-height: 32px; border-radius: 8px; }
.cxpanel .cxhead { min-height: 24px; }
.cxlevel { font-size: 16px; }

/* ---------- Accounts (2026-10-15): sign-in, account menu, bell, alert dialog, Watchlist / Alerts / Account pages.
   Same v3 language: 20 px rows, flat tinted chips, 8-12 px radii, no gradients. ---------- */
/* sign-in */
.login .auth { width: min(400px, 100%); padding: 28px 24px 22px; }
.login .auth .sub { margin-bottom: 18px; }
.login .auth .msg { min-height: 0; margin: 0 0 10px; }
.login .auth .msg:empty { display: none; }
.login .auth .msg.ok { color: #86efac; }
.auth-note { margin: 0 0 14px; padding: 9px 12px; border-radius: var(--r-sm); background: var(--muted); color: var(--ink-3); font-size: 12.5px; line-height: 1.5; text-align: left !important; }
.auth-note.ok { background: rgba(34, 197, 94, 0.1); color: #bbf7d0; }
.auth-note[hidden] { display: none; }
.astep[hidden] { display: none; }
.astep .lead { margin: 0 0 14px; color: var(--ink-2); font-size: 13.5px; text-align: left !important; line-height: 1.5; }
.astep .lead b { color: var(--ink); font-weight: 600; word-break: break-all; }
.login .stack { display: flex; flex-direction: column; gap: 10px; }
.login .stack .input { margin: 0; }
.login .stack[hidden] { display: none; }
.gbtn { width: 100%; height: 40px; background: #fafafa; color: #18181b; border-color: #fafafa; font-weight: 600; gap: 10px; }
.gbtn:hover { background: #e4e4e7 !important; }
.gbtn[hidden] { display: none; }
.or { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--ink-4); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.or[hidden] { display: none; }
.otp input { font: 600 20px/1 var(--mono); letter-spacing: 0.4em; text-align: center; }
.astep .links { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.astep .links .flink:disabled { opacity: 0.5; cursor: default; text-decoration: none; }
.login .more { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.login .more summary { cursor: pointer; color: var(--ink-3); font-size: 12.5px; list-style: none; text-align: center; }
.login .more summary::-webkit-details-marker { display: none; }
.login .more summary:hover { color: var(--ink); }
.login .more[open] summary { margin-bottom: 12px; }
.login .legal { margin: 14px 0 0; font-size: 11.5px; color: var(--ink-4); }
.login .legal a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }

/* nav: bell + account button */
.icon-btn.bell { position: relative; }
.icon-btn.bell[hidden] { display: none; }
.icon-btn.bell .badge { position: absolute; top: -5px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--bg); }
.icon-btn.bell .badge[hidden] { display: none; }
.icon-btn svg { width: 16px; height: 16px; }
.me-btn { width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; flex: none; }
.me-av { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--muted-2); color: var(--ink); font-size: 12px; font-weight: 650; letter-spacing: 0.01em; box-shadow: inset 0 0 0 1px var(--line-2); flex: none; }
.me-av svg { width: 16px; height: 16px; color: var(--ink-3); }
.me-btn:hover .me-av, .me-btn[aria-expanded="true"] .me-av { box-shadow: inset 0 0 0 1px var(--ink-4), 0 0 0 3px var(--ring); }
.me-av.lg { width: 38px; height: 38px; font-size: 13.5px; }
.me-av.xl { width: 52px; height: 52px; font-size: 17px; }
@media (max-width: 560px) { .nav .links .nl-watch { display: none; } }
@media (max-width: 760px) { .nav .links .nl-guide { display: none; } } /* in the account menu there */

/* dropdown menus (account, bell) */
.menu-pop.glass { position: fixed; z-index: 85; width: 280px; max-width: calc(100vw - 16px); padding: 6px; border-color: var(--line-2); background: rgba(19, 19, 22, 0.97); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); animation: popIn 0.16s var(--ease); }
.mp-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; min-width: 0; }
.mp-head > div { display: flex; flex-direction: column; min-width: 0; }
.mp-head b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 20px; }
.mp-head span:not(.me-av) { font-size: 12px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 18px; }
.mp-cta { width: calc(100% - 12px); margin: 2px 6px 6px; }
.mp-list a, .mp-out button { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border-radius: var(--r-sm); color: var(--ink-2); font-size: 13px; font-weight: 500; border: 0; background: none; cursor: pointer; text-align: left; }
.mp-list a:hover, .mp-out button:hover { background: var(--muted-2); color: var(--ink); }
.mp-list svg, .mp-out svg { width: 15px; height: 15px; color: var(--ink-4); flex: none; }
.mp-list a span { flex: 1; }
.mp-list a b { font-size: 11.5px; color: var(--ink-4); font-weight: 600; font-variant-numeric: tabular-nums; }
.mp-out { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }
.menu-pop.bellpop { width: 360px; padding: 0; }
.mp-title { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.mp-title b { font-size: 13px; }
.bellpop .notes { max-height: min(420px, 60vh); overflow-y: auto; padding: 4px; }
.mp-foot { display: block; padding: 9px 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); text-align: center; }
.mp-foot:hover { color: var(--ink); background: var(--muted); }
.muted.pad { padding: 14px 12px; font-size: 12.5px; line-height: 1.5; }

/* one notification */
.note { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 8px; border-radius: var(--r-sm); color: var(--ink-2); }
.note:hover { background: var(--muted-2); }
.note .ni { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--muted-2); color: var(--ink-3); }
.note .ni svg { width: 14px; height: 14px; }
.note.k-safety .ni { color: #fca5a5; background: var(--down-soft); }
.note.k-new .ni { color: #c7d2fe; background: var(--accent-soft); }
.note.k-whale .ni, .note.k-mcap .ni, .note.k-change .ni { color: #86efac; background: var(--up-soft); }
.note .nt { display: flex; flex-direction: column; min-width: 0; }
.note .nt b { font-size: 13px; font-weight: 550; line-height: 20px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note .nt span { font-size: 12px; color: var(--ink-4); line-height: 18px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.note time { font-size: 11.5px; color: var(--ink-4); line-height: 20px; font-variant-numeric: tabular-nums; }
.note.unread .nt b { color: var(--ink); font-weight: 650; }
.note.unread time::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 1px; }

/* Pulse card: watchlist star + hide */
.pcard .l1 .st, .pcard .l1 .hd { flex: none; width: 16px; height: 16px; padding: 0; border: 0; background: none; cursor: pointer; display: inline-grid; place-items: center; color: var(--ink-4); }
.pcard .l1 .st svg, .pcard .l1 .hd svg { width: 13px; height: 13px; }
.pcard .l1 .st:hover, .pcard .l1 .hd:hover { color: var(--ink); }
.pcard .l1 .st.on { color: #facc15; }
.pcard .l1 .hd { opacity: 0; transition: opacity 0.12s; }
.pcard:hover .l1 .hd, .pcard:focus-within .l1 .hd { opacity: 1; }
@media (hover: none) { .pcard .l1 .hd { opacity: 0.7; } }
.pcard .l1 b { max-width: calc(100% - 96px); }
.pcard.folding { animation: fold 0.22s var(--ease) forwards; overflow: hidden; }
@keyframes fold { to { opacity: 0; transform: translateX(-12px); } }
.toast.undo { display: flex; align-items: center; gap: 14px; pointer-events: auto; }
.toast.undo a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink-3); }
.ffoot { gap: 8px 12px; }
.flink.falert { display: inline-flex; align-items: center; gap: 4px; }
.flink.falert svg { width: 12px; height: 12px; }

/* token page: Watch · Alert · Hide */
.tacts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tact { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--r-sm); border: 0; background: var(--muted-2); color: var(--ink-2); font-size: 12.5px; font-weight: 550; cursor: pointer; }
.tact svg { width: 14px; height: 14px; }
.tact:hover { background: #3f3f46; color: var(--ink); }
.tact.on { background: rgba(250, 204, 21, 0.12); color: #fde68a; }

/* new-alert dialog */
.dialog.glass { width: min(440px, calc(100vw - 24px)); padding: 18px; background: var(--surface-solid); border-color: var(--line-2); display: flex; flex-direction: column; gap: 14px; animation: popIn 0.2s var(--ease); }
.dlg-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dlg-head > div { display: flex; flex-direction: column; min-width: 0; }
.dlg-head b { font-size: 15px; line-height: 20px; }
.dlg-head span { font-size: 12.5px; color: var(--ink-4); line-height: 18px; }
.dialog .seg { align-self: flex-start; }
.dialog .seg button { position: relative; z-index: 1; border: 0; background: none; color: var(--ink-3); font-size: 12.5px; font-weight: 550; padding: 4px 10px; border-radius: 7px; cursor: pointer; }
.dialog .seg button[aria-pressed="true"] { background: var(--muted-2); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
.dlg-body { display: flex; flex-direction: column; gap: 10px; }
.dlg-body[hidden] { display: none; }
.frow2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.frow2 select, .rules select { height: 32px; padding: 0 8px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--muted); color: var(--ink); font: inherit; font-size: 13px; color-scheme: dark; }
.frow2 .finput { height: 32px; flex: 1 1 110px; }
.frow2 .finput input { font-size: 13px; }
.dialog .chips .chip { padding: 3px 10px; font-size: 12px; }
.dialog .chips .chip:disabled { opacity: 0.4; cursor: default; }
.dialog .chips .small { align-self: center; font-size: 12px; }
.dialog .msg { color: #f87171; font-size: 12.5px; min-height: 0; }
.dialog .msg:empty { display: none; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; }

/* small icon buttons in tables */
.icon-btn.sm { width: 28px; height: 28px; }
.icon-btn.sm svg { width: 14px; height: 14px; }
.icon-btn.sm.on { color: #facc15; }
.btn.danger { color: #fca5a5; border-color: rgba(239, 68, 68, 0.35); }
.btn.danger:hover { background: var(--down-soft); }
.btn svg { width: 14px; height: 14px; }

/* watchlist */
.wl-panel { padding: 6px 4px; margin-top: 16px; }
table.wl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.wl th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.03em; color: var(--ink-4); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.wl td { padding: 0 10px; height: 52px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); white-space: nowrap; }
table.wl tr:last-child td { border-bottom: 0; }
table.wl .r { text-align: right; }
table.wl .up { color: var(--up); }
table.wl .down { color: var(--down); }
table.wl td.acts { text-align: right; width: 1%; }
table.wl td.acts .icon-btn + .icon-btn { margin-left: 4px; }
.wl-tok { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wl-tok .avatar { width: 32px; height: 32px; flex: none; }
.wl-tok .avatar .img { border-radius: 8px; font-size: 11px; }
.wl-tok > span { display: flex; flex-direction: column; min-width: 0; }
.wl-tok b { font-size: 13.5px; line-height: 18px; }
.wl-tok .muted { font-size: 12px; line-height: 16px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.wl-empty { height: auto !important; padding: 28px 10px !important; text-align: center; color: var(--ink-3); white-space: normal !important; }
.wl-empty svg { width: 13px; height: 13px; vertical-align: -2px; }
.safe.mini { display: inline-flex; gap: 3px; }
.safe.mini .sc { width: 20px; height: 20px; border-radius: 6px; display: inline-grid; place-items: center; }

/* alerts page */
.al-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.al-grid > .panel { margin: 0 !important; }
.al-grid > .panel:first-child { grid-row: span 2; }
@media (max-width: 980px) { .al-grid { grid-template-columns: 1fr; } .al-grid > .panel:first-child { grid-row: auto; } }
.panel h3 .muted { font-weight: 500; }
.panel p.small { font-size: 12.5px; margin: -4px 0 12px; line-height: 1.5; }
.rules { display: flex; flex-direction: column; gap: 6px; }
.rule { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.035); }
.rule.off { opacity: 0.55; }
.rule .rk { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: #c7d2fe; }
.rule .rk svg { width: 14px; height: 14px; }
.rule .rt { display: flex; flex-direction: column; min-width: 0; }
.rule .rt b { font-size: 13px; font-weight: 550; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rule .rt span { font-size: 12px; line-height: 18px; }
.rule .rt a { text-decoration: underline; text-underline-offset: 3px; }
.al-add { position: relative; margin-top: 12px; }
.al-add .input { min-width: 0; }
.tq-res { position: absolute; left: 0; right: 0; top: 42px; z-index: 20; padding: 4px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: rgba(19, 19, 22, 0.98); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); }
.tq-res[hidden] { display: none; }
.tq-row { display: grid; grid-template-columns: 28px auto minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; height: 40px; padding: 0 8px; border: 0; border-radius: var(--r-sm); background: none; cursor: pointer; text-align: left; font-size: 13px; }
.tq-row:hover { background: var(--muted-2); }
.tq-row .avatar { width: 28px; height: 28px; }
.tq-row .avatar .img { border-radius: 7px; font-size: 10px; }
.tq-row .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.fgrid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.fgrid2 .finput { height: 32px; }
.fgrid2 .finput input, .fgrid2 .finput select { font-size: 13px; }
#newForm .fchecks { margin-bottom: 12px; }
#newForm .msg { color: #f87171; font-size: 12.5px; margin-bottom: 8px; }
#newForm .msg:empty { display: none; }
.switch { display: flex; align-items: center; gap: 10px; min-height: 32px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 34px; height: 20px; margin: 0; border-radius: 10px; background: var(--muted-2); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; transition: background 0.15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink-3); transition: transform 0.15s var(--ease), background 0.15s; }
.switch input:checked { background: var(--accent); box-shadow: none; }
.switch input:checked::after { transform: translateX(14px); background: #fff; }
.switch.tiny { min-height: 20px; }
#permNote:empty { display: none; }
.notes-panel { margin-top: 16px; }
.np-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.np-head h3 { margin: 0; }
.notes-panel .notes { display: flex; flex-direction: column; }

/* account page */
.ac-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ac-grid > .panel { margin: 0 !important; }
@media (max-width: 900px) { .ac-grid { grid-template-columns: 1fr; } }
.ac-prof { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; min-width: 0; }
.ac-prof > div { display: flex; flex-direction: column; min-width: 0; }
.ac-prof b { font-size: 14px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-prof .muted { font-size: 12.5px; line-height: 18px; }
.ac-name { display: flex; gap: 8px; }
.ac-name .input { flex: 1; min-width: 0; }
.sess { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.srow2 { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.035); }
.srow2 > div { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
.srow2 b { font-size: 13px; line-height: 20px; }
.srow2 .muted { flex-basis: 100%; font-size: 12px; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hid { display: flex; flex-direction: column; gap: 4px; max-height: 360px; overflow-y: auto; }
.hid .hrow { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 13px; }
.hid .hrow .muted { flex: 1; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hid .muted { font-size: 12.5px; }
.ac-data { display: flex; flex-wrap: wrap; gap: 8px; }
.btn[hidden], .icon-btn[hidden] { display: none; }
.dialog .dlg-head .avatar { width: 40px; height: 40px; }
.dialog .dlg-head .avatar .img { border-radius: 10px; font-size: 13px; }

/* ---------- Sign-in page v3 (owner, 2026-10-15: "Apple grade, no slop, same black theme, IMD Discovery Layer"):
   one centered column, generous whitespace, Apple-ID style fields with the arrow inside, no boxed messages,
   1.5 px line icons, pure black. ---------- */
body.signin { background: #000; background-image: none; color: #f5f5f7; }
.si { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 20px 32px; }
.si [hidden] { display: none !important; }
.si svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.si-card { width: min(440px, 100%); text-align: center; padding: 52px 44px 40px; border-radius: 28px; background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 50px 100px -50px rgba(0, 0, 0, 1); }
.si-logo { display: block; width: 84px; height: 84px; margin: 0 auto; object-fit: contain; }
.si-eyebrow { margin: 26px 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #8ea2ff; }
.si h1 { margin: 0; font-size: 32px; line-height: 1.12; font-weight: 650; letter-spacing: -0.032em; color: #f5f5f7; text-wrap: balance; }
.si-sub { margin: 12px auto 34px; max-width: 330px; font-size: 15px; line-height: 1.5; color: #86868b; text-wrap: balance; }
.si-ok { margin: -18px 0 24px; font-size: 14px; color: #30d158; }
.si-lead { margin: -14px 0 22px; font-size: 15px; line-height: 1.5; color: #86868b; }
.si-lead b { color: #f5f5f7; font-weight: 600; word-break: break-all; }
.si-form { display: flex; flex-direction: column; gap: 12px; }
.si-field { position: relative; display: flex; align-items: center; height: 54px; border-radius: 14px; background: #1c1c1e; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); transition: box-shadow 0.18s ease, background 0.18s ease; }
.si-field:hover { background: #222224; }
.si-field:focus-within { background: #1c1c1e; box-shadow: inset 0 0 0 1px rgba(91, 124, 255, 0.75), 0 0 0 4px rgba(91, 124, 255, 0.18); }
.si-field input { all: unset; box-sizing: border-box; width: 100%; height: 100%; padding: 0 56px 0 18px; font-size: 16px; color: #f5f5f7; text-align: left; }
.si-field input::placeholder { color: #6e6e73; }
.si-go { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; padding: 0; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; color: #48484a; cursor: pointer; transition: color 0.18s ease, transform 0.18s ease; }
.si-go svg { width: 28px; height: 28px; stroke-width: 1.4; }
.si-field:has(input:not(:placeholder-shown)) .si-go { color: #8ea2ff; }
.si-go:hover { color: #f5f5f7; }
.si-go:active { transform: translateY(-50%) scale(0.94); }
.si-otp input { padding: 0; text-align: center; font: 600 26px/1 var(--mono); letter-spacing: 0.5em; text-indent: 0.5em; }
.si-otp input::placeholder { color: #3a3a3c; }
.si-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; border: 0; border-radius: 14px; font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; cursor: pointer; transition: background 0.18s ease, transform 0.1s ease; }
.si-btn:active { transform: scale(0.99); }
.si-btn:disabled { opacity: 0.5; cursor: default; }
.si-primary { background: var(--accent); color: #fff; }
.si-primary:hover { background: #6d8bff; }
/* dark Google button (Google's own dark theme: dark fill, hairline, white label, colored G), in tone with the page */
.si-google { background: #1c1c1e; color: #f5f5f7; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.si-google:hover { background: #242426; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.si-google:focus-visible { outline: 0; box-shadow: inset 0 0 0 1px rgba(91, 124, 255, 0.75), 0 0 0 4px rgba(91, 124, 255, 0.18); }
.si-or { display: flex; align-items: center; gap: 14px; margin: 22px 0; font-size: 13px; color: #6e6e73; }
.si-or::before, .si-or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.08); }
.si-hint { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: #6e6e73; }
.si-wait { margin: 0 auto; max-width: 320px; }
.si-links { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; }
.si-link { border: 0; background: none; padding: 0; font: inherit; font-size: 14px; color: #8ea2ff; cursor: pointer; }
.si-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.si-link:disabled { color: #6e6e73; cursor: default; text-decoration: none; }
.si-dot { color: #48484a; }
.si-err { margin: 16px 0 0; font-size: 14px; line-height: 1.45; color: #ff6961; }
.si-err.ok { color: #30d158; }
.si-err:empty { display: none; }
.si-more { margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.si-more summary { display: inline-block; list-style: none; font-size: 14px; color: #8ea2ff; cursor: pointer; }
.si-more summary::-webkit-details-marker { display: none; }
.si-more summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.si-more[open] summary { color: #86868b; text-decoration: none; }
.si-more .si-form { margin-top: 16px; }
.si-feats { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 30px; list-style: none; margin: 36px 0 0; padding: 0; }
.si-feats li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #86868b; }
.si-feats svg { width: 18px; height: 18px; color: #a1a1a6; }
.si-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; font-size: 12px; color: #6e6e73; }
.si-foot a { color: #86868b; }
.si-foot a:hover { color: #f5f5f7; }
@media (max-width: 480px) {
  .si { justify-content: flex-start; padding-top: 40px; }
  .si-card { padding: 8px 4px 0; background: none; box-shadow: none; }
  .si h1 { font-size: 28px; }
  .si-feats { gap: 10px 20px; }
}
.si-more.solo { margin-top: 20px; padding-top: 0; border-top: 0; }
/* sign-in v3: username + password as one grouped control (Apple ID style), account switch line */
.si-group { gap: 0; }
.si-group .si-field:first-child { border-radius: 14px 14px 0 0; }
.si-group .si-field:last-child { border-radius: 0 0 14px 14px; margin-top: 1px; }
.si-group .si-field:focus-within { z-index: 1; }
.si-switch { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.07); font-size: 14px; color: #86868b; }
.si-form .si-hint { margin-top: 4px; }
.ac-pass { display: flex; flex-direction: column; gap: 8px; }
.ac-pass .input { min-width: 0; }
.ac-pass .btn { align-self: flex-start; }
.pw-msg { margin: 0; font-size: 12.5px; color: #fca5a5; }
.pw-msg.ok { color: #86efac; }
.pw-msg:empty { display: none; }
/* sign-in with a browser wallet (EVM / Solana) */
.si-wallets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.si-wallet { background: #1c1c1e; color: #f5f5f7; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); font-size: 14px; }
.si-wallet:hover { background: #242426; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.si-wallet .wic { width: 18px; height: 18px; flex: none; }
.si-wallet span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.si-wnote { margin-top: 12px; font-size: 12px; }
.wl-pick { display: flex; flex-direction: column; gap: 4px; margin: 10px 0 0; padding: 6px; border-radius: 14px; background: #141416; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 20px 40px -20px rgba(0, 0, 0, 0.9); }
.wl-pick button { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: #f5f5f7; font: inherit; font-size: 14px; font-weight: 550; cursor: pointer; text-align: left; }
.wl-pick button:hover { background: #222224; }
.wl-pick img { width: 22px; height: 22px; border-radius: 6px; }
.wl-dot { width: 22px; height: 22px; border-radius: 6px; background: #2c2c2e; flex: none; }
@media (max-width: 380px) { .si-wallets { grid-template-columns: 1fr; } }
.wl-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.wl-list .hrow { display: flex; align-items: center; gap: 10px; min-height: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 13px; }
.wl-list .hrow .muted { flex: 1; font-size: 12px; }
.panel .wl-pick { background: var(--surface-solid); }
/* ---------- tracked future tickers: Track button, Upcoming list, the road (stepper) ---------- */
.tradebtn.track { gap: 5px; }
.tradebtn.track svg { width: 12px; height: 12px; }
.tradebtn.track.on { background: rgba(250, 204, 21, 0.14); color: #fde68a; }
.wl-tabs { margin-bottom: 14px; }
.wl-tabs button { position: relative; z-index: 1; border: 0; background: none; color: var(--ink-3); font-size: 13px; font-weight: 550; padding: 5px 12px; border-radius: 7px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.wl-tabs button[aria-pressed="true"] { color: var(--ink); }
.wl-tabs .count { font-size: 11px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.wl-tabs .count:empty { display: none; }
#upView[hidden], #tokView[hidden] { display: none; }
.up-list { display: flex; flex-direction: column; gap: 10px; }
.upcard { padding: 14px 16px; border-radius: 14px; }
.upcard.off { opacity: 0.6; }
.up-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 28px; }
.up-t { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.up-t b { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.up-t .muted { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.up-head .btn.on { background: rgba(250, 204, 21, 0.12); color: #fde68a; border-color: rgba(250, 204, 21, 0.3); }
.pill.hot { color: #c7d2fe; background: var(--accent-soft); }
.up-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: 12.5px; color: var(--ink-2); line-height: 18px; }
.up-meta .down { color: #fca5a5; }
.up-meta .btn { margin-left: auto; }
/* the road: six stages on one line */
.road { display: grid; grid-template-columns: repeat(6, 1fr); margin: 14px 0 0; position: relative; }
.road::before { content: ""; position: absolute; left: calc(100% / 12); right: calc(100% / 12); top: 7px; height: 2px; background: var(--line-2); }
.rs { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.rs i { width: 16px; height: 16px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line-2); z-index: 1; }
.rs b { font-size: 11px; font-weight: 550; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rs.past i { background: var(--up); box-shadow: inset 0 0 0 2px var(--up); }
.rs.past b { color: var(--ink-3); }
.rs.now i { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: breathe 1.6s ease-in-out infinite; }
.rs.now b { color: var(--ink); }
.road.done .rs i { background: var(--up); box-shadow: inset 0 0 0 2px var(--up); }
.road.done .rs:last-child i { box-shadow: 0 0 0 4px var(--up-soft); }
.road.done .rs b { color: var(--ink-2); }
.rs.stop i { background: var(--down); box-shadow: 0 0 0 4px var(--down-soft); }
.rs.stop b { color: #fca5a5; }
.road-panel { margin-top: 16px; }
@media (max-width: 560px) { .rs b { font-size: 10px; } .up-t .muted { max-width: 160px; } }

/* ---------- Token page: safety in the header + chart controls (owner, 2026-10-22) ----------
   The three checks of the Pulse card (same glyphs, same ok / warn / bad / unk tints), with their names, under the
   title; a click shows the full explanation in the Token card. Chart: style (candles / line / area), Log, Vol. */
.tsafe { display: flex; flex-wrap: wrap; gap: 6px; }
.tsc { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px 0 8px; border-radius: 8px; font: 550 12.5px/1 var(--font);
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--ink-3); cursor: pointer; white-space: nowrap; transition: background 0.12s, border-color 0.12s; }
.tsc svg { width: 13px; height: 13px; flex: none; }
.tsc span { color: var(--ink-2); }
.tsc b { font-weight: 650; }
.tsc.ok { color: #4ade80; border-color: rgba(34, 197, 94, 0.3); background: rgba(34, 197, 94, 0.07); }
.tsc.warn { color: #fbbf24; border-color: rgba(245, 158, 11, 0.32); background: rgba(245, 158, 11, 0.07); }
.tsc.bad { color: #f87171; border-color: rgba(239, 68, 68, 0.45); background: rgba(239, 68, 68, 0.12); }
.tsc.unk { color: var(--ink-4); }
.tsc:hover { filter: brightness(1.15); }
.tsc:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tsafety:first-child { margin-top: 2px; padding-top: 0; border-top: 0; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tsafety .at-row { border-radius: 8px; transition: background 0.3s; }
.tsafety .at-row.pulse { animation: tsafe-pulse 1.6s ease-out; }
@keyframes tsafe-pulse { 0%, 30% { background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08); } 100% { background: transparent; box-shadow: 0 0 0 6px transparent; } }
.tp-chart .chartbar { justify-content: flex-start; }
.cstyle button { width: 30px; padding: 0; display: inline-grid; place-items: center; }
.cstyle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cstyle svg .fill { fill: currentColor; fill-opacity: 0.25; }
.ctoggles { display: inline-flex; gap: 4px; margin-left: auto; }
.ctog { height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-3); font: 600 12px/1 var(--font); cursor: pointer; }
.ctog[aria-pressed="true"] { color: var(--ink); background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); }
.ctog:hover { color: var(--ink-2); }
#unit .sm { display: none; }
@media (max-width: 640px) {
  #unit .lg { display: none; }
  #unit .sm { display: inline; }
  .tp-chart .chartbar #unit button { padding: 0 9px; }
  .cstyle button { width: 28px; }
  .ctoggles { gap: 3px; }
  .ctog { padding: 0 8px; font-size: 11.5px; }
  .tsc { height: 26px; font-size: 12px; }
  .tp-chart .chartbar { gap: 6px; }
  .tp-chart .chartbar #tf { order: 3; width: 100%; display: flex; }
  .tp-chart .chartbar #tf button { flex: 1; }
}

/* =====================================================================================================
   Token page v4, trading-terminal layout (owner, 2026-10-22: "like Axiom", screenshot as reference).
   Top bar = identity + stat strip + buy; grid areas "chart feed side" / "tabs tabs side"; feed hidden below 1440,
   one column below 1100. Same tokens as everywhere: zinc panels, flat chips, no gradients.
   ===================================================================================================== */
main.wrap.wide.tkpage { max-width: 1760px; margin-inline: auto; }
.tkpage .back { margin-bottom: 10px; }
/* top bar */
.tk-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "id stats buy" "row2 row2 row2"; align-items: center; gap: 12px 22px; padding: 14px 18px; margin-bottom: 12px; border-radius: 14px; }
.tk-id { grid-area: id; display: flex; align-items: center; gap: 12px; min-width: 0; }
.tk-id .title { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tk-id h1 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.025em; line-height: 24px; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.tk-id h1 span { font-size: 13.5px; font-weight: 500; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.tk-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 24px; }
.tk-sub .age { font-size: 12.5px; font-weight: 600; color: #4ade80; font-variant-numeric: tabular-nums; }
.qlinks { display: inline-flex; gap: 2px; }
.qlinks a { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; color: var(--ink-3); transition: background 0.12s, color 0.12s; }
.qlinks a:hover { background: rgba(255, 255, 255, 0.07); color: var(--ink); }
.qlinks svg { width: 14px; height: 14px; }
.tk-sub .ca { height: 24px; font-size: 11.5px; padding: 0 8px; }
.tk-stats { grid-area: stats; display: flex; align-items: center; gap: 4px 26px; flex-wrap: wrap; min-width: 0; }
.tst { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tst span { font-size: 11.5px; color: var(--ink-4); white-space: nowrap; }
.tst b { font-size: 14.5px; font-weight: 650; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tst.big b { font-size: 24px; letter-spacing: -0.03em; line-height: 28px; }
.tst.big i { font-style: normal; font-size: 12px; font-weight: 550; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.tst.big i .pct { font-weight: 650; }
.tst.big i .up { color: var(--up); } .tst.big i .down { color: var(--down); }
.tk-buy { grid-area: buy; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.tk-buy .buy-cta { height: 36px; padding: 0 18px; font-size: 13px; }
.tk-buy .buy-cta svg { width: 14px; height: 14px; }
.tk-buy .tacts { display: flex; gap: 4px; }
.tk-row2 { grid-area: row2; display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.tk-row2 .tags { display: flex; flex-wrap: wrap; gap: 6px; }
/* grid */
/* row 2 is the flexible one: a tall sidebar grows it, never the chart row (no hole under the chart) */
.tk { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) 300px 340px; grid-template-rows: auto 1fr; grid-template-areas: "chart feed side" "tabs tabs side"; align-items: start; }
.tk > *, .tk-side > * { min-width: 0; }
.tk > .panel, .tk-side > .panel { margin: 0; border-radius: 14px; }
.tk-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; min-height: 24px; }
.tk-h h3 { margin: 0; font-size: 11.5px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.tk-h .live-pill { height: 24px; font-size: 11.5px; }
.tk-chart { grid-area: chart; display: flex; flex-direction: column; padding: 12px 12px 8px; height: 560px; }
.tk-chart .chartbar { margin: 0 0 10px; justify-content: flex-start; }
.tk-chart .chart { flex: 1 1 0; height: auto; min-height: 0; }
/* live trades feed */
.tk-feed { grid-area: feed; height: 560px; display: flex; flex-direction: column; padding: 12px 10px 6px; }
.feed-head, .fdrow { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 46px 40px; gap: 6px; align-items: center; padding: 0 6px; }
.feed-head { font-size: 11px; color: var(--ink-4); padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.feed-head span:nth-child(n+2), .fdrow > span:nth-child(n+2) { text-align: right; }
.feed { flex: 1 1 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.12) transparent; }
.fdrow { height: 26px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--ink-2); border-radius: 6px; }
.fdrow:hover { background: rgba(255, 255, 255, 0.04); }
.fdrow .v { font-weight: 650; }
.fdrow.buy .v { color: var(--up); } .fdrow.sell .v { color: var(--down); }
.fdrow .mono { font-size: 11px; color: var(--ink-3); }
.fdrow.flash { animation: rowflash 1.4s var(--ease); }
.feed-empty { padding: 18px 6px; font-size: 12.5px; }
/* tabs under the chart */
.tk-tabs { grid-area: tabs; padding: 12px 14px; }
.tk-tabbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.tk-tabbar .live-pill { height: 26px; font-size: 11.5px; }
#tabs .count { margin-left: 4px; font-size: 11px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
#tabs button[aria-pressed="true"] .count { color: var(--ink-3); }
.tk-tabs [hidden] { display: none !important; }
table.trades.hold td { padding-top: 7px; padding-bottom: 7px; }
table.trades .r { text-align: right; }
table.trades .rank { width: 36px; }
table.trades .barcol { width: 32%; }
table.trades .bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
table.trades .bar i { display: block; height: 100%; background: var(--ink-3); border-radius: 2px; }
table.trades .hlabel { font-family: var(--font); font-weight: 600; color: var(--ink-2); }
.tk-tabs .tpager { margin-top: 10px; }
/* the tables card reaches the sidebar's bottom; its rows fill it (token.js fitRows) and the pager sits at the foot */
.tk-tabs { align-self: stretch; display: flex; flex-direction: column; }
.tk-tabs > #paneHolders:not([hidden]), .tk-tabs > #paneTrades:not([hidden]) { flex: 1 1 auto; display: flex; flex-direction: column; }
.tk-tabs .tpager { margin-top: auto; padding-top: 10px; }
@media (max-width: 1100px) { .tk-tabs { align-self: start; } }
/* sidebar */
.tk-side { grid-area: side; display: flex; flex-direction: column; gap: 12px; }
.tk-side > .panel { padding: 14px; width: 100%; max-width: 100%; overflow: hidden; }
.tk-tradebtns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tk-tradebtns .tradebtn { height: 34px; font-size: 12.5px; }
.tk-tradebtns .tradebtn.wide { grid-column: 1 / -1; height: 40px; font-size: 13.5px; font-weight: 650; }
.tk-tradebtns .tradebtn.wide svg { width: 14px; height: 14px; }
.tk-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ti { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; padding: 8px 4px; border-radius: 10px; background: rgba(255, 255, 255, 0.035); text-align: center; min-width: 0; }
.ti b { font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ti span { font-size: 10.5px; color: var(--ink-4); line-height: 1.25; }
.ti.good b { color: #4ade80; } .ti.warn b { color: #fbbf24; }
.ti.wide { grid-column: 1 / -1; min-height: 0; padding: 4px 6px; background: none; }
.ti.wide .ratio { width: 100%; margin: 0; }
.ti.note { font-size: 12px; color: var(--ink-3); background: rgba(245, 158, 11, 0.07); padding: 8px 10px; text-align: left; }
.tk-side .tsafety { margin: 0; padding: 0; border: 0; }
.tk-side .tsafety h4 { margin: 0 0 2px; }
.tk-ca { display: flex; align-items: center; gap: 8px; width: 100%; height: 34px; padding: 0 10px; margin-bottom: 12px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); color: var(--ink-2); cursor: pointer; font: 12px var(--mono); min-width: 0; }
.tk-ca .k { font: 600 11px var(--font); color: var(--ink-4); }
.tk-ca .mono { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.tk-ca svg { width: 13px; height: 13px; flex: none; color: var(--ink-3); }
.tk-ca:hover { border-color: rgba(255, 255, 255, 0.2); color: var(--ink); }
.tk-side .linkgroup + .linkgroup { margin-top: 10px; }
.tk-side .linkrow .lt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-side .linkrow .state { margin-left: auto; font-size: 11px; line-height: 18px; padding: 0 7px; }
.tk-side .cxpanel { margin: 0; border-radius: 14px; }
.tk-about .facts { margin: 0; }
.tk-desc { margin: 12px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); overflow-wrap: anywhere; }
/* medium: no feed column (the Trades tab has every trade) */
@media (max-width: 1440px) {
  .tk { grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "chart side" "tabs side"; }
  .tk-feed { display: none; }
}
@media (max-width: 1240px) {
  .tk-top { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "id buy" "stats stats" "row2 row2"; }
  .tk-stats { padding-top: 12px; border-top: 1px solid var(--line); }
}
/* small: one column, chart first, then the sidebar, then the tables */
@media (max-width: 1100px) {
  .tk { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "chart" "side" "tabs"; }
  .tk-chart { height: 460px; }
  .tk-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
}
@media (max-width: 640px) {
  .tk-top { grid-template-columns: minmax(0, 1fr); grid-template-areas: "id" "stats" "buy" "row2"; padding: 14px; gap: 12px; }
  .tk-buy { align-items: stretch; }
  .tk-buy .buy-cta { width: 100%; }
  .tk-buy .tacts { justify-content: space-between; }
  .tk-buy .tacts .tact { flex: 1; justify-content: center; }
  .tk-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; }
  .tst.big { grid-column: 1 / -1; }
  .tst b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; }
  .tk-chart { height: 400px; padding: 10px 8px 6px; }
  .tk-chart .chartbar { gap: 6px; }
  .tk-chart .chartbar #tf { order: 3; width: 100%; display: flex; }
  .tk-chart .chartbar #tf button { flex: 1; }
  .tk-side { display: flex; }
  .tk-tabs { padding: 10px; }
  table.trades .barcol { width: 22%; }
}

/* ---------- Job page v4, same terminal layout as the token page (owner, 2026-10-22) ----------
   Grid "journey side" / "tabs side" (rows auto 1fr): the Objective / History card reaches the sidebar's bottom and
   its text scrolls inside; when the journey is the taller side, the sidebar's last card stretches instead. */
.jk-top .tk-id { max-width: 620px; }
.jk-icon { width: 48px !important; height: 48px !important; border-radius: 14px !important; flex: none; }
.jk-icon svg { width: 20px; height: 20px; }
.tk-id h1.jk-title { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -0.02em; line-height: 22px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.jk-top .tk-sub { gap: 6px; }
.tst.big b small { font-size: 15px; color: var(--ink-4); font-weight: 600; }
.jk-prog { width: 120px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-top: 4px; }
.jk-prog i { display: block; height: 100%; border-radius: 2px; background: var(--up); }
.jk-prog i.bad { background: var(--down); }
.jk-cx { font-size: 13.5px; }
.jk-cx.lv1 { color: #a1a1aa; } .jk-cx.lv2 { color: #5eead4; } .jk-cx.lv3 { color: #7dd3fc; } .jk-cx.lv4 { color: #c4b5fd; } .jk-cx.lv5 { color: #fcd34d; }
.jk-top .tk-buy { flex-direction: column; align-items: stretch; }
.jk-top .tk-buy .tradebtn { height: 34px; justify-content: center; }
.jk-top .tk-buy .tradebtn svg { width: 13px; height: 13px; }
.jk-top .buy-cta.on { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); color: var(--ink); }
.jk-road { flex-direction: column; align-items: stretch; gap: 10px; }
.jk-road-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.jk-road-h b { font-size: 14px; }
.jk-road-h .muted { font-size: 12.5px; }
.jk-road .up-meta { margin: 0; }
.tk.jk { grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: auto 1fr; grid-template-areas: "journey side" "tabs side"; }
.jk-journey { grid-area: journey; padding: 14px; }
.jk-tabs { grid-area: tabs; }
.jk-count { font-size: 12px; }
.jk-pane { flex: 1 1 0; min-height: 280px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.12) transparent; }
.jk-pane[hidden] { display: none; }
.jk-obj { max-height: none; overflow: visible; }
.jk-pane .runs-list { max-height: none; overflow: visible; }
.jk-side { align-self: stretch; }
.jk-side > :last-child { flex: 1 1 auto; }
.jk-agents { display: flex; flex-direction: column; }
.jk-agent { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 6px; border-radius: 8px; color: var(--ink-2); border-top: 1px solid var(--line); }
.jk-agent:first-child { border-top: 0; }
.jk-agent:hover { background: rgba(255, 255, 255, 0.04); }
.jk-an { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.jk-an b { font-size: 13px; font-weight: 600; color: var(--ink); }
.jk-an span { font-size: 11.5px; color: var(--ink-4); text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jk-agent .state { flex: none; }
@media (max-width: 1100px) {
  .tk.jk { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "journey" "side" "tabs"; }
  .jk-pane { flex: none; min-height: 0; max-height: 460px; }
  .jk-side { align-self: start; }
  .jk-side > :last-child { flex: none; }
}
@media (max-width: 640px) {
  .jk-top .tk-id { max-width: none; }
  .jk-top .tk-buy { flex-direction: column; }
  .jk-prog { width: 100%; }
}

/* ---------- Four safety checks on the Pulse cards (2026-10-22: + Creator & insiders) ----------
   The tray never shrinks below its four squares; in narrow columns the squares and the trade buttons get a bit
   tighter so tray + Axiom · GMGN · Pump · FOMO fit on one row whenever they can. */
.pcard .buys .safe { flex: none; }
@container (max-width: 420px) {
  .pcard .buys .safe { gap: 1px; padding: 2px; }
  .pcard .buys .safe .sc { width: 20px; height: 20px; }
  .pcard .buys .safe .sc svg { width: 11px; height: 11px; }
  .pcard .buys .tradebtn { padding: 0 7px; }
}
/* Four buy buttons (2026-11-03, + Pump) and the tray do not fit one row in a narrow column: tray above, buttons below, full width. */
@container (max-width: 420px) {
  .pcard:not(.fcard) .buys { flex-wrap: wrap; }
  .pcard:not(.fcard) .buys .safe { margin-right: calc(100% - 90px); }
  .pcard:not(.fcard) .buys .tradebtn { flex: 1; }
}

/* ---------- X link preview (hover the X icon of a Pulse card; scope.js xPreviewHtml) ---------- */
.about-tip.xtip { padding: 0; overflow: hidden; }
.about-tip.xtip.show { pointer-events: auto; } /* "Open on X" is tappable on phones */
.xp { font-size: 12.5px; color: var(--ink-2); }
.xp-body { padding: 12px 14px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.xp-top { display: flex; align-items: center; gap: 8px; color: var(--ink-3); line-height: 1.45; }
.xp-x { flex: none; display: inline-flex; width: 16px; height: 16px; color: var(--ink); }
.xp-x svg { width: 14px; height: 14px; }
.xp-banner { height: 92px; background: #1d1d22; overflow: hidden; }
.xp-bimg { display: block; width: 100%; height: 100%; object-fit: cover; }
.xp-av { display: block; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #26262b; border: 3px solid rgb(19, 19, 22); }
.xp-user .xp-av { margin-top: -44px; }
.xp-av.sm { width: 36px; height: 36px; border-width: 0; flex: none; }
.xp-av.none { display: block; }
.xp-name { display: flex; align-items: center; gap: 4px; min-width: 0; }
.xp-name b { color: var(--ink); font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xp-v { flex: none; display: inline-flex; width: 16px; height: 16px; color: #1d9bf0; }
.xp-v svg { width: 16px; height: 16px; }
.xp-lock { flex: none; font-size: 10.5px; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 6px; padding: 0 5px; }
.xp-handle { color: var(--ink-3); font-size: 12px; margin-top: -4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xp-bio, .xp-text { margin: 2px 0 0; color: var(--ink); line-height: 1.5; overflow-wrap: anywhere; white-space: pre-line; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.xp-meta { color: var(--ink-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xp-meta i { font-style: normal; margin: 0 5px; color: var(--ink-4); }
.xp-meta:empty { display: none; }
.xp-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--ink-3); font-size: 12px; }
.xp-stats b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.xp-author { display: flex; align-items: center; gap: 9px; min-width: 0; }
.xp-who { flex: 1 1 auto; min-width: 0; }
.xp-who .xp-handle { margin-top: 0; }
.xp-media { position: relative; display: grid; gap: 2px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); max-height: 180px; }
.xp-media.n2, .xp-media.n4 { grid-template-columns: 1fr 1fr; }
.xp-media.n3 { grid-template-columns: 1fr 1fr; }
.xp-media.n3 .xp-mimg:first-child { grid-row: span 2; }
.xp-mimg { display: block; width: 100%; height: 100%; min-height: 0; max-height: 180px; object-fit: cover; background: #1d1d22; }
.xp-media.n4 .xp-mimg, .xp-media.n3 .xp-mimg { max-height: 89px; }
.xp-media.n3 .xp-mimg:first-child { max-height: 180px; }
.xp-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 14px; }
.xp-open { align-self: flex-start; margin-top: 2px; color: var(--ink-2); font-size: 12px; text-decoration: none; border: 1px solid var(--line-2); border-radius: 8px; padding: 3px 9px; }
.xp-open:hover { color: var(--ink); border-color: var(--ink-4); }

/* ---------- Guidelines page (guidelines.js): the app's own surfaces (column frame, zinc ink, one accent) ---------- */
.gl { --frame: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.55), 0 24px 48px -28px rgba(0, 0, 0, 0.9); display: flex; flex-direction: column; gap: 40px; padding: 8px 0 24px; }
.gl-eyebrow { display: inline-block; font-size: 11px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); }
/* hero */
.gl-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; align-items: center; min-height: 360px; }
.gl-title { margin: 12px 0 14px; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; color: var(--ink); }
.gl-title span { display: inline-block; animation: glRise 0.8s var(--ease) both; }
.gl-title span:nth-child(2) { animation-delay: 0.08s; }
.gl-title span:nth-child(3) { animation-delay: 0.16s; }
.gl-title .dim { color: var(--ink-4); }
.gl-lede { margin: 0; max-width: 46ch; color: var(--ink-3); font-size: 16px; line-height: 1.55; animation: glRise 0.8s 0.24s var(--ease) both; }
.gl-cta { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; animation: glRise 0.8s 0.32s var(--ease) both; }
.gl-go { height: 40px; padding: 0 18px; border-radius: var(--r-md); border: 0; background: var(--primary); color: var(--primary-ink); font: 650 14px var(--font); cursor: pointer; transition: transform 0.15s var(--ease); }
.gl-go span { display: inline-block; transition: transform 0.2s var(--ease); }
.gl-go:hover span { transform: translateX(3px); }
.gl-go:active { transform: scale(0.98); }
.gl-ghost { height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: var(--r-md); border: 1px solid var(--line-2); color: var(--ink-2); font-size: 14px; font-weight: 550; text-decoration: none; }
.gl-ghost:hover { color: var(--ink); background: var(--muted); }
@keyframes glRise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
/* the hero card: the real Pulse card, floating in a column frame */
.gl-herocard { position: relative; display: block; width: 100%; padding: 0; text-align: left; border: 1px solid var(--col-line); border-radius: 14px; background: var(--col); box-shadow: var(--frame); cursor: pointer; color: inherit; font: inherit; animation: glRise 0.9s 0.2s var(--ease) both, glFloat 7s 1.2s ease-in-out infinite; transition: border-color 0.2s; }
.gl-herocard::before { content: ""; position: absolute; z-index: 2; top: 0; left: 14px; right: 14px; height: 2px; border-radius: 0 0 2px 2px; background: var(--c-launch); opacity: 0.9; }
.gl-herocard:hover { border-color: var(--line-2); }
.gl-herocard .gl-cardwrap { width: 100%; pointer-events: none; border-radius: 14px; overflow: hidden; }
.gl-herocard .pcard { border-bottom: 0; }
@keyframes glFloat { 50% { transform: translateY(-6px); } }
.gl-dot { position: absolute; z-index: 3; left: var(--x); top: var(--y); width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--accent); animation: glPing 2.4s ease-out infinite; pointer-events: none; }
.gl-dot:nth-of-type(2) { animation-delay: 0.8s; }
.gl-dot:nth-of-type(3) { animation-delay: 1.6s; }
@keyframes glPing { 0% { box-shadow: 0 0 0 0 rgba(91, 124, 255, 0.55); } 70% { box-shadow: 0 0 0 14px rgba(91, 124, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(91, 124, 255, 0); } }
.gl-tap { position: absolute; z-index: 3; right: 12px; bottom: -13px; padding: 4px 10px; border-radius: 999px; background: var(--muted-2); border: 1px solid var(--line-2); color: var(--ink-2); font-size: 11.5px; font-weight: 550; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.8); }
/* chapter tiles */
.gl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gl-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 196px; padding: 18px; text-align: left; border: 1px solid var(--col-line); border-radius: 14px; background: var(--col); box-shadow: var(--frame); color: inherit; font: inherit; cursor: pointer; opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease) var(--d, 0ms), transform 0.6s var(--ease) var(--d, 0ms), border-color 0.2s, background 0.2s; }
.gl-tile.in { opacity: 1; transform: none; }
.gl-tile:hover { border-color: var(--line-2); background: var(--col-head); }
.gl-tile:hover .gl-tf i { transform: translateX(4px); }
.gl-tile:focus-visible, .gl-herocard:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.gl-tn { position: absolute; top: 16px; right: 18px; font: 600 12px var(--mono); color: var(--ink-4); }
.gl-ti { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 8px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.gl-ti svg { width: 18px; height: 18px; }
.gl-tile b { font-size: 16px; font-weight: 650; letter-spacing: -0.015em; color: var(--ink); }
.gl-tk { font-size: 12.5px; color: var(--ink-3); }
.gl-tile p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-4); }
.gl-tf { margin-top: auto; padding-top: 10px; font-size: 12px; font-weight: 550; color: var(--ink-3); }
.gl-tf i { display: inline-block; font-style: normal; transition: transform 0.2s var(--ease); }
/* colors & terms */
.gl-legend h2 { margin: 0 0 14px; font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.gl-lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gl-lcard { padding: 16px 18px; border: 1px solid var(--col-line); border-radius: 14px; background: var(--col); box-shadow: var(--frame); opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease) var(--d, 0ms), transform 0.6s var(--ease) var(--d, 0ms); }
.gl-lcard.in { opacity: 1; transform: none; }
.gl-lcard.wide { grid-column: 1 / -1; }
.gl-lcard h3 { margin: 0 0 10px; font-size: 13px; font-weight: 650; color: var(--ink); }
.gl-lcard p { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; font-size: 13px; color: var(--ink-3); }
.gl-lcard .sw { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid var(--c); }
.gl-lcard .sw.dashed { border-style: dashed; }
.gl-lcard dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font-size: 13px; }
.gl-lcard dt { color: var(--ink); font-weight: 600; }
.gl-lcard dd { margin: 0; color: var(--ink-3); line-height: 1.5; }
.gl-fine { margin: 14px 0 0; font-size: 12px; color: var(--ink-4); }
@media (max-width: 900px) {
  .gl-hero { grid-template-columns: 1fr; gap: 36px; min-height: 0; }
  .gl-herocard { max-width: 440px; }
}
@media (max-width: 560px) { .gl-lcard dl { grid-template-columns: 1fr; gap: 2px; } .gl-lcard dd { margin-bottom: 8px; } }

/* focus mode: a tile grows into this sheet; the model on the left, the story on the right */
html.gl-lock { overflow: hidden; }
.gl-focus { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; }
.gl-scrim { position: absolute; inset: 0; background: rgba(4, 4, 6, 0.72); backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%); }
.gl-sheet { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 360px; width: min(1240px, 100%); height: min(760px, 100%); border: 1px solid var(--col-line); border-radius: 18px; background: var(--col); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.55), 0 40px 90px -30px rgba(0, 0, 0, 0.95); overflow: hidden; transform-origin: center; }
.gl-sheet::before { content: ""; position: absolute; z-index: 6; top: 0; left: 18px; right: 18px; height: 2px; border-radius: 0 0 2px 2px; background: var(--accent); opacity: 0.9; }
.gl-stagewrap { position: relative; display: grid; place-items: center; min-width: 0; min-height: 0; padding: 16px; background-color: var(--bg); background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px); background-size: 18px 18px; overflow: hidden; }
.gl-stage { position: relative; }
.gl-stage > .gm { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.gl-ring { position: absolute; z-index: 5; left: 0; top: 0; width: 0; height: 0; border-radius: 12px; pointer-events: none; opacity: 0; border: 1.5px solid var(--accent); box-shadow: 0 0 0 9999px rgba(4, 4, 6, 0.62), 0 0 0 4px rgba(91, 124, 255, 0.18), 0 0 28px rgba(91, 124, 255, 0.35); transition: left 0.55s var(--ease), top 0.55s var(--ease), width 0.55s var(--ease), height 0.55s var(--ease), opacity 0.3s; }
.gl-ring.on { opacity: 1; }
.gl-ring::after { content: ""; position: absolute; inset: -1.5px; border-radius: inherit; border: 1.5px solid var(--accent); animation: glHalo 1.8s ease-out infinite; }
@keyframes glHalo { from { opacity: 0.8; transform: scale(1); } to { opacity: 0; transform: scale(1.06); } }
.gl-panel { display: flex; flex-direction: column; gap: 14px; min-height: 0; padding: 22px 22px 18px; border-left: 1px solid var(--col-line); background: var(--col-head); overflow: hidden; }
.gl-panel > * { flex-shrink: 0; }
.gl-panel > .gl-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.gl-ph { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gl-x { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--muted); color: var(--ink-2); cursor: pointer; }
.gl-x:hover { color: var(--ink); background: var(--muted-2); }
.gl-x svg { width: 14px; height: 14px; }
.gl-prog { height: 3px; border-radius: 3px; background: var(--muted-2); overflow: hidden; }
.gl-prog i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width 0.45s var(--ease); }
.gl-say { min-height: 168px; }
.gl-count { font: 600 11.5px var(--mono); color: var(--ink-4); }
.gl-say h2 { margin: 6px 0 8px; font-size: 22px; line-height: 1.2; letter-spacing: -0.025em; font-weight: 700; color: var(--ink); }
.gl-say p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.gl-nav { display: flex; gap: 8px; }
.gl-nav button { height: 36px; border-radius: var(--r-md); font: 600 13.5px var(--font); cursor: pointer; transition: transform 0.12s var(--ease), background 0.15s; }
.gl-nav button:active { transform: scale(0.97); }
.gl-prev { width: 40px; border: 1px solid var(--line-2); background: var(--muted); color: var(--ink-2); }
.gl-next { flex: 1; border: 0; background: var(--primary); color: var(--primary-ink); }
.gl-play { padding: 0 12px; border: 1px solid var(--line-2); background: var(--muted); color: var(--ink-3); }
.gl-play[aria-pressed="true"] { color: var(--accent); border-color: rgba(91, 124, 255, 0.45); background: var(--accent-soft); }
.gl-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 1px; counter-reset: gl; }
.gl-list button { width: 100%; display: flex; gap: 10px; padding: 7px 8px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-4); font: 500 13px var(--font); text-align: left; cursor: pointer; counter-increment: gl; transition: color 0.15s, background 0.15s; }
.gl-list button::before { content: counter(gl, decimal-leading-zero); font: 500 11px var(--mono); padding-top: 2px; color: var(--ink-4); }
.gl-list button:hover { color: var(--ink-2); background: var(--muted); }
.gl-list button[aria-current] { color: var(--ink); background: var(--muted-2); }
.gl-list button[aria-current]::before { color: var(--accent); }
.gl-more { padding-top: 12px; border-top: 1px solid var(--col-line); font-size: 12.5px; color: var(--ink-4); }
.gl-more button { border: 0; background: none; padding: 0; color: var(--ink-2); font: 600 12.5px var(--font); cursor: pointer; }
.gl-more button:hover { color: var(--ink); }
.gl-focus .gl-stage .pcard { cursor: default; }
@media (max-width: 900px) {
  .gl-focus { padding: 0; }
  .gl-sheet { grid-template-columns: 1fr; grid-template-rows: minmax(0, 46%) minmax(0, 1fr); height: 100%; border-radius: 0; border: 0; }
  .gl-panel { border-left: 0; border-top: 1px solid var(--col-line); padding: 16px 16px 14px; gap: 12px; }
  .gl-say { min-height: 0; }
  .gl-say h2 { font-size: 19px; }
  .gl-list { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gl-title span, .gl-lede, .gl-cta, .gl-herocard, .gl-dot, .gl-ring::after, .gm-card.glow, .gm-road .now i, .gm-step.executing > i { animation: none; }
  .gl-tile, .gl-lcard { opacity: 1; transform: none; transition: none; }
  .gl-ring, .gl-prog i { transition: none; }
}

/* the models (schematics of the larger pages, same surfaces as the app) */
.gl-cardwrap { width: 400px; background: var(--col); }
.gm { color: var(--ink-2); font-size: 12px; }
.gm-cardonly, .gm-safety { width: 420px; }
.gm-safety { display: flex; flex-direction: column; gap: 12px; }
.gm-cardonly .gl-cardwrap, .gm-safety .gl-cardwrap { width: 420px; border: 1px solid var(--col-line); border-radius: 14px; overflow: hidden; }
.gm-cardonly .pcard, .gm-safety .pcard { border-bottom: 0; }
.gm-rows { padding: 12px 14px; border: 1px solid var(--col-line); border-radius: 14px; background: var(--surface-solid); }
.gm-rows .at-row { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; margin-top: 9px; padding: 4px; border-radius: 8px; }
.gm-rows .at-row:first-child { margin-top: 0; }
.gm-rows .at-row svg { width: 13px; height: 13px; margin-top: 2px; }
.gm-rows .at-row b { font-size: 12.5px; color: var(--ink); }
.gm-rows .at-row p { margin: 2px 0 0; font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.gm-bar { display: block; height: 7px; border-radius: 4px; background: var(--muted-2); }
.gm-note { color: var(--ink-4); font-size: 11px; display: inline-flex; align-items: center; gap: 5px; }
.gm-note svg { width: 11px; height: 11px; }
.gm-seg { display: inline-flex; gap: 1px; padding: 2px; border-radius: 7px; background: var(--muted); border: 1px solid var(--line); }
.gm-seg em { font-style: normal; padding: 2px 6px; border-radius: 5px; font-size: 10.5px; color: var(--ink-4); white-space: nowrap; }
.gm-seg em.on { color: var(--ink); background: var(--muted-2); }
.gm-tag { font-style: normal; display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--muted); border: 1px solid var(--line); font-size: 10.5px; color: var(--ink-3); }
.gm-av { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--muted-2); color: var(--ink); font-size: 10px; font-weight: 700; box-shadow: 0 0 0 2px var(--ring-c, var(--ink-4)); }
.gm-av.big { width: 44px; height: 44px; font-size: 13px; }
.gm-av.sm { width: 22px; height: 22px; font-size: 8.5px; }
.gm-av.k-launch { --ring-c: var(--c-launch); }
.gm-av.k-job { --ring-c: var(--c-job); }
.gm-av.k-pair { --ring-c: var(--c-pair); }
.gm-av.k-future { box-shadow: none; outline: 2px dashed var(--c-job); }
.gm-lines { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.gm-lines b { color: var(--ink); font-size: 12px; }
.gm-mc { text-align: right; color: var(--ink); font-weight: 650; font-size: 12px; }
.gm-mc small { display: block; color: var(--ink-4); font-size: 9.5px; font-weight: 500; }
.gm-h1 { font-size: 17px; color: var(--ink); letter-spacing: -0.02em; }
.gm-chip { padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--muted); font-size: 10.5px; color: var(--ink-3); }
.gm-chip b { color: var(--ink); }
.gm-sp { flex: 1; }
.gm-ht { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-4); }
.gm-ht svg { width: 12px; height: 12px; }
.gm-panel { padding: 10px; border: 1px solid var(--col-line); border-radius: 12px; background: var(--col); display: flex; flex-direction: column; gap: 7px; }
.gm-buy { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 28px; padding: 0 12px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 650; font-size: 11.5px; white-space: nowrap; }
.gm-buy svg { width: 12px; height: 12px; }
.gm-buy.wide { width: 100%; }
.gm-track { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--ink-2); font-size: 10.5px; white-space: nowrap; }
.gm-track svg { width: 11px; height: 11px; }
.gm-state { font-style: normal; padding: 1px 7px; border-radius: 5px; font-size: 10px; background: var(--muted-2); color: var(--ink-3); }
.gm-state.completed { color: var(--up); background: var(--up-soft); }
.gm-state.executing { color: var(--accent); background: var(--accent-soft); }
.gm-state.blocked { color: var(--down); background: var(--down-soft); }
/* pulse model */
.gm-pulse { width: 960px; display: flex; flex-direction: column; gap: 12px; }
.gm-top { display: flex; align-items: center; gap: 8px; }
.gm-chain .gm-seg em { font-size: 11px; }
.gm-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gm-col { position: relative; border: 1px solid var(--col-line); border-radius: 14px; background: var(--col); overflow: hidden; }
.gm-col::before { content: ""; position: absolute; top: 0; left: 14px; right: 14px; height: 2px; background: var(--ac); opacity: 0.9; }
.gm-col[data-spot="future"]::before { background: none; border-top: 2px dashed var(--ac); opacity: 0.6; }
.gm-colh { display: flex; align-items: center; gap: 6px; padding: 12px 10px 8px; background: var(--col-head); }
.gm-colh b { font-size: 12px; color: var(--ink); white-space: nowrap; }
.gm-colh .gm-seg { margin-left: auto; }
.gm-colh .gm-seg em { padding: 2px 4px; font-size: 9.5px; }
.gm-n { padding: 0 5px; border-radius: 5px; background: var(--muted-2); font-size: 10px; color: var(--ink-4); }
.gm-tools { display: flex; gap: 6px; padding: 0 10px 10px; background: var(--col-head); border-bottom: 1px solid var(--col-line); }
.gm-search { flex: 1; display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--line); background: var(--muted); color: var(--ink-4); font-size: 10.5px; }
.gm-search svg { width: 11px; height: 11px; }
.gm-btn { display: inline-flex; align-items: center; height: 26px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--line); color: var(--ink-3); font-size: 10.5px; }
.gm-card { display: flex; align-items: center; gap: 9px; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.gm-card.glow { box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.5), inset 0 0 14px -6px rgba(168, 85, 247, 0.5); animation: glGlow 2.4s ease-in-out infinite; }
@keyframes glGlow { 50% { box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.25), inset 0 0 8px -6px rgba(168, 85, 247, 0.3); } }
/* token page model */
.gm-token { width: 1000px; display: flex; flex-direction: column; gap: 10px; }
.gm-ttop { display: flex; align-items: center; gap: 18px; padding: 12px 14px; border: 1px solid var(--col-line); border-radius: 14px; background: var(--col); }
.gm-id { display: flex; align-items: center; gap: 10px; }
.gm-id b { display: block; font-size: 15px; color: var(--ink); }
.gm-stats { display: flex; gap: 18px; flex: 1; }
.gm-stats span { display: flex; flex-direction: column; gap: 2px; }
.gm-stats small { font-size: 9.5px; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.05em; }
.gm-stats b { font-size: 12.5px; color: var(--ink); }
.gm-stats b.big { font-size: 18px; letter-spacing: -0.02em; }
.gm-stats em { font-style: normal; font-size: 10.5px; }
.gm-stats .good { color: var(--up); }
.gm-stats .lv3 { color: #38bdf8; }
.gm-trow { display: flex; gap: 6px; }
.gm-sc { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 10.5px; font-weight: 550; }
.gm-sc svg { width: 11px; height: 11px; }
.gm-sc.ok { color: var(--up); background: var(--up-soft); }
.gm-sc.warn { color: var(--warn); background: rgba(245, 158, 11, 0.12); }
.gm-tgrid { display: grid; grid-template-columns: minmax(0, 1fr) 170px 230px; grid-template-areas: "chart feed side" "tabs tabs side"; gap: 10px; }
.gm-chart { grid-area: chart; display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--col-line); border-radius: 14px; background: var(--col); }
.gm-ctools { display: flex; gap: 6px; flex-wrap: wrap; }
.gm-chart svg { width: 100%; height: 190px; }
.gm-chart rect.up, .gm-chart line.up { fill: var(--up); stroke: var(--up); }
.gm-chart rect.dn, .gm-chart line.dn { fill: var(--down); stroke: var(--down); }
.gm-chart polyline.link { fill: none; stroke: rgba(255, 255, 255, 0.18); stroke-width: 1; }
.gm-feed { grid-area: feed; display: flex; flex-direction: column; gap: 7px; padding: 10px; border: 1px solid var(--col-line); border-radius: 14px; background: var(--col); }
.gm-tr { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; }
.gm-tr span { width: 48px; flex: none; }
.gm-tr .gm-bar { flex: 1; }
.gm-tr.buy span { color: var(--up); }
.gm-tr.sell span { color: var(--down); }
.gm-side { grid-area: side; display: flex; flex-direction: column; gap: 10px; }
.gm-2 { display: flex; gap: 6px; }
.gm-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gm-tiles span { display: flex; flex-direction: column; gap: 1px; padding: 6px; border-radius: 7px; background: var(--muted); font-size: 11.5px; color: var(--ink); font-weight: 600; }
.gm-tiles small { font-size: 9.5px; color: var(--ink-4); font-weight: 500; }
.gm-cx { color: #38bdf8; font-weight: 600; font-size: 11.5px; }
.gm-tabs { grid-area: tabs; display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--col-line); border-radius: 14px; background: var(--col); }
.gm-tabs > .gm-seg { align-self: flex-start; }
.gm-row { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.gm-row span { width: 24px; color: var(--ink-4); }
.gm-row em { margin-left: auto; font-style: normal; color: var(--ink-2); }
/* jobs model */
.gm-jobs { width: 900px; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 12px; }
.gm-jlist, .gm-jpage { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--col-line); border-radius: 14px; background: var(--col); }
.gm-jlist > .gm-seg { align-self: flex-start; }
.gm-job { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 10px; background: var(--muted); position: relative; }
.gm-job b { font-size: 12px; color: var(--ink); padding-right: 70px; }
.gm-job .gm-state { position: absolute; top: 10px; right: 10px; }
.gm-jtop { display: flex; flex-direction: column; gap: 8px; }
.gm-jtop > b { font-size: 15px; color: var(--ink); }
.gm-jtop .gm-track { align-self: flex-start; }
.gm-road { display: flex; gap: 4px; }
.gm-road span { flex: 1; display: flex; flex-direction: column; gap: 5px; font-size: 10px; color: var(--ink-4); }
.gm-road i { display: block; height: 4px; border-radius: 2px; background: var(--muted-2); }
.gm-road .done i { background: var(--up); }
.gm-road .done { color: var(--ink-2); }
.gm-road .now i { background: var(--accent); animation: glBreath 1.6s ease-in-out infinite; }
.gm-road .now { color: var(--accent); }
.gm-road.mini { width: 120px; }
@keyframes glBreath { 50% { opacity: 0.45; } }
.gm-journey { display: flex; flex-direction: column; gap: 8px; }
.gm-step { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: var(--muted); }
.gm-step > i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--ink-4); }
.gm-step.completed > i { background: var(--up); }
.gm-step.executing > i { background: var(--accent); animation: glBreath 1.6s infinite; }
.gm-step b { display: block; font-size: 12px; color: var(--ink); }
.gm-step .gm-state { margin-left: auto; }
/* watchlist model */
.gm-watch { width: 760px; display: flex; flex-direction: column; gap: 10px; }
.gm-wtabs { align-self: flex-start; }
.gm-wrow { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--col-line); border-radius: 14px; background: var(--col); }
.gm-x { font-style: normal; padding: 2px 8px; border-radius: 6px; background: var(--up-soft); color: var(--up); font-weight: 650; font-size: 11px; }
.gm-starbtn { color: #facc15; }
.gm-starbtn svg { width: 15px; height: 15px; }
.gm-alerts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gm-rule { padding: 7px 9px; border-radius: 8px; background: var(--muted); font-size: 11.5px; color: var(--ink-2); }
.gm-badge { font-style: normal; margin-left: 4px; padding: 0 5px; border-radius: 999px; background: var(--down); color: #fff; font-size: 9.5px; }
/* search & account model */
.gm-srch { width: 820px; display: flex; flex-direction: column; gap: 16px; }
.gm-navbar { display: flex; align-items: center; gap: 4px; padding: 8px 10px; border: 1px solid var(--col-line); border-radius: 14px; background: var(--surface-solid); }
.gm-navbar > b { margin-right: 10px; font-size: 13px; color: var(--ink); }
.gm-navbar > b span { font-weight: 500; color: var(--ink-3); }
.gm-navbar em { font-style: normal; padding: 5px 9px; border-radius: 7px; font-size: 11.5px; color: var(--ink-3); }
.gm-navbar em.on { color: var(--ink); background: rgba(255, 255, 255, 0.08); }
.gm-live { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-3); }
.gm-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 8px var(--up); }
.gm-sbtn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--muted); color: var(--ink-4); font-size: 11.5px; }
.gm-sbtn svg, .gm-bell svg { width: 13px; height: 13px; }
.gm-sbtn kbd { font: 10px var(--mono); padding: 1px 4px; border-radius: 4px; background: var(--muted-2); }
.gm-bell { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--ink-3); }
.gm-me { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--muted-2); color: var(--ink); font-size: 10.5px; font-weight: 650; }
.gm-palette { align-self: center; width: 520px; display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface-solid); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9); }
.gm-pin { display: flex; align-items: center; gap: 8px; padding: 6px 6px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 14px; color: var(--ink); }
.gm-pin svg { width: 15px; height: 15px; color: var(--ink-4); }
.gm-prow { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; font-size: 12px; color: var(--ink-2); }
.gm-prow.on { background: var(--muted-2); color: var(--ink); }
.gm-palette .gm-note { padding: 6px 6px 0; }

/* footer donations line (owner, 2026-10-24) */
.foot-donate { margin: 10px auto 0; font-size: 12px; line-height: 1.6; color: var(--ink-3); }
.don-addr { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin-left: 2px; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--muted); color: var(--ink-2); font: 500 11.5px var(--mono); cursor: pointer; vertical-align: baseline; transition: color 0.15s, border-color 0.15s; }
.don-addr span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.don-addr:hover { color: var(--ink); border-color: var(--ink-4); }
.don-addr svg { width: 11px; height: 11px; flex: none; }

/* ---------- status bar at the bottom of every page (owner, 2026-10-24, Axiom-style): BTC / ETH / SOL + connection ---------- */
:root { --sb-h: 34px; }
body { padding-bottom: calc(var(--sb-h) + env(safe-area-inset-bottom)); }
.statusbar { position: fixed; z-index: 85; left: 0; right: 0; bottom: 0; height: calc(var(--sb-h) + env(safe-area-inset-bottom)); padding: 0 16px env(safe-area-inset-bottom); display: flex; align-items: center; gap: 16px; background: rgba(9, 9, 11, 0.86); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-top: 1px solid var(--line); font-size: 12px; }
.sb-tick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 18px; overflow-x: auto; scrollbar-width: none; }
.sb-tick::-webkit-scrollbar { display: none; }
.sb-coin { flex: none; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); white-space: nowrap; animation: sbIn 0.4s var(--ease) both; }
.sb-coin svg, .sb-coin img { width: 16px; height: 16px; flex: none; border-radius: 50%; }
.sb-coin b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.sb-coin em { font-style: normal; font-size: 11.5px; font-weight: 550; font-variant-numeric: tabular-nums; }
.sb-coin em.up { color: var(--up); }
.sb-coin em.down { color: var(--down); }
@keyframes sbIn { from { opacity: 0; } to { opacity: 1; } }
.sb-state { flex: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12px; }
.sb-state i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sb-state.ok { color: var(--up); }
.sb-state.ok i { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); animation: sbPulse 2.4s ease-out infinite; }
.sb-state.wait { color: var(--warn); }
.sb-state.bad { color: var(--down); }
@keyframes sbPulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); } 70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
/* floating things sit above the bar */
.toasts { bottom: calc(var(--sb-h) + max(16px, env(safe-area-inset-bottom))); }
.update-bar.glass { bottom: calc(var(--sb-h) + 18px); }
@media (max-width: 560px) {
  .statusbar { gap: 10px; padding-inline: 10px; }
  .sb-tick { gap: 12px; }
  .sb-coin em { font-size: 11px; }
}
@media (max-width: 480px) { .sb-coin em { display: none; } .sb-coin b { font-size: 11.5px; } } /* all three prices fit a phone; the % is in the title */
@media (prefers-reduced-motion: reduce) { .sb-coin, .sb-state.ok i { animation: none; } }
/* Pulse fills the screen down to the status bar (not under it) */
.pulse { height: calc(100vh - 122px - var(--sb-h)); }
.feed { max-height: calc(100vh - 100px - var(--sb-h)); }
@media (max-width: 1400px) { .pulse { height: calc(100vh - 168px - var(--sb-h)); } }
@media (max-width: 560px) { .pulse { height: calc(100vh - 150px - var(--sb-h)); } }
.gm-statusbar { display: flex; align-items: center; gap: 16px; padding: 7px 12px; border: 1px solid var(--col-line); border-radius: 10px; background: var(--surface-solid); font-size: 11.5px; }
.gm-statusbar > span { display: inline-flex; align-items: center; gap: 6px; }
.gm-statusbar b { color: var(--ink); font-weight: 600; }
.gm-statusbar em { font-style: normal; font-size: 10.5px; }
.gm-statusbar em.down { color: var(--down); }
.gm-statusbar .c { width: 13px; height: 13px; border-radius: 50%; }
.gm-statusbar .c.btc { background: #F7931A; }
.gm-statusbar .c.eth { background: #627EEA; }
.gm-statusbar .c.sol { background: #9945FF; }
.gm-stable { color: var(--up); font-weight: 600; }
.gm-stable i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); }
.sb-coin svg.sq { border-radius: 3px; } /* the IMD mark is square */
.gm-statusbar .c.imd { background: #fff; border-radius: 2px; box-shadow: inset 0 0 0 2px #000; }
@media (max-width: 420px) { .statusbar { gap: 8px; } .sb-tick { gap: 10px; } .sb-coin { gap: 4px; } .sb-coin svg, .sb-coin img { width: 14px; height: 14px; } .sb-state span { display: none; } } /* 4 prices on a phone: Stable becomes its dot */

/* ---------- profile photo (owner, 2026-10-24): nav / menu / account circle + the crop dialog ---------- */
.me-av.photo { padding: 0; overflow: hidden; background: var(--muted-2); }
.me-av.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.ac-photo { position: relative; flex: none; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; }
.ac-photo i { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-solid); border: 1px solid var(--line-2); color: var(--ink-2); }
.ac-photo i svg { width: 12px; height: 12px; }
.ac-photo:hover .me-av, .ac-photo:focus-visible .me-av { box-shadow: inset 0 0 0 1px var(--ink-4), 0 0 0 3px var(--ring); }
.ac-photoacts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 4px; }
.pc-dlg { width: min(340px, calc(100vw - 24px)); }
.pc-stage { position: relative; align-self: center; width: 260px; height: 260px; border-radius: 14px; overflow: hidden; background: #111; touch-action: none; }
.pc-stage canvas { display: block; width: 260px; height: 260px; cursor: grab; }
.pc-stage canvas:active { cursor: grabbing; }
.pc-mask { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 200px rgba(6, 6, 8, 0.62); outline: 1px solid rgba(255, 255, 255, 0.35); outline-offset: -1px; pointer-events: none; }
.pc-zoom { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 15px; }
.pc-zoom input { flex: 1; accent-color: var(--accent); }

/* ---------- Account page v2 (owner, 2026-10-24: "cleaner and more ordered"): one column of grouped sections ---------- */
.acx { width: 100%; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; }
.acx-head { margin-bottom: 22px; }
.acx-label { margin: 26px 0 8px 4px; font-size: 11px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); }
.acx-label .muted { letter-spacing: 0; text-transform: none; font-weight: 500; }
.acx-card { border: 1px solid var(--col-line); border-radius: 14px; background: var(--col); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 40px -30px rgba(0, 0, 0, 0.9); overflow: hidden; }
.acx-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 18px; }
.acx-row + .acx-row, .acx-list + .acx-row, .acx-list .acx-row + .acx-row { border-top: 1px solid var(--line); }
.acx-row > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acx-row b { font-size: 14px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.acx-row .muted { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.acx-row.muted { font-size: 13px; color: var(--ink-4); }
.acx-row .muted.small { white-space: normal; margin: 0; }
.acx-k { flex: none; width: 150px; font-size: 13.5px; color: var(--ink-3); }
.acx-row > label { flex: none; width: 150px; font-size: 13.5px; color: var(--ink-3); }
.acx-v { flex: 1; margin: 0; font-size: 13.5px; color: var(--ink-2); text-align: right; }
.acx-ctl { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.acx-ctl .input { flex: 1; min-width: 0; }
.acx-ctl.col { flex-direction: column; align-items: stretch; }
.acx-pass { align-items: flex-start; }
.acx-pass .acx-k { padding-top: 9px; }
.acx-end { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.acx-end .pw-msg { flex: 1; margin: 0; text-align: left; }
.acx-foot { background: rgba(255, 255, 255, 0.015); }
.acx-foot[hidden] { display: none; }
.acx-btns { flex: none; display: flex; gap: 8px; }
.acx-msg:empty { display: none; }
.acx-msg { margin: 0; padding: 0 18px 12px; }
.acx .btn.ghost { background: transparent; }
.acx .btn svg { width: 13px; height: 13px; }
/* identity */
.acx-me { display: flex; align-items: center; gap: 18px; padding: 18px; }
.acx-av { width: 72px; height: 72px; font-size: 24px; }
.acx-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.acx-id > b { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acx-id > span { font-size: 12.5px; color: var(--ink-4); }
.acx-photoacts { display: flex; gap: 8px; margin-top: 8px; }
/* the end of the page, set apart */
.acx-danger { margin-top: 34px; border-color: rgba(239, 68, 68, 0.22); }
.acx-danger b { color: #fca5a5; }
@media (max-width: 640px) {
  .acx-row { flex-wrap: wrap; padding: 12px 14px; gap: 10px; }
  .acx-k, .acx-row > label { width: 100%; }
  .acx-v { text-align: left; }
  .acx-pass .acx-k { padding-top: 0; }
  .acx-me { padding: 14px; gap: 14px; }
  .acx-av { width: 60px; height: 60px; font-size: 20px; }
  .acx-foot .acx-btns { width: 100%; }
  .acx-foot .acx-btns .btn { flex: 1; }
}
