/* tickbot web — one dark, calm palette; money is the only thing allowed to shout (the phone's theme.ts) */
:root {
  --bg0: #05070A; --bg1: #090C12; --s1: #0D1118; --s2: #141A24; --s3: #1B2331;
  --line: #1A212D; --line-strong: #273143; --edge: rgba(255,255,255,0.05);
  --text: #E6EDF7; --dim: #8B9BB4; --faint: #71809A; --mute: #3E4B62;
  --gain: #34E3A0; --gain-tint: rgba(52,227,160,0.13); --loss: #FF6B6B; --loss-tint: rgba(255,107,107,0.14);
  --warn: #F5B759; --warn-tint: rgba(245,183,89,0.14); --info: #6AA6FF; --info-tint: rgba(106,166,255,0.14);
  --accent: #A78BFA; --accent-tint: rgba(167,139,250,0.14); --neutral-tint: rgba(139,155,180,0.12);
  --steady: #2DD4BF; --steady-tint: rgba(45,212,191,0.12); --muted: #8B9BB4; --muted-tint: rgba(139,155,180,0.12);
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --font: 'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow: 0 20px 60px rgba(0,0,0,0.45), 0 1px 0 var(--edge) inset;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg0); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; background:
  radial-gradient(1200px 500px at 15% -10%, rgba(52,227,160,0.07), transparent 60%),
  radial-gradient(900px 500px at 100% 0%, rgba(106,166,255,0.05), transparent 60%), var(--bg0); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--gain); outline-offset: 2px; border-radius: 6px; }
a { color: inherit; text-decoration: none; }
.num, .hero-num, .pos-rate, .pos-pct, .pos-money, .delta, .stat-v, .row-rate, .best-rate, .flow-v, .fv-n, td, .tank-n, .v-eq, .v-net { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 12.5px; color: var(--dim); word-break: break-all; line-height: 1.5; }
.c-gain { color: var(--gain) !important; } .c-loss { color: var(--loss) !important; } .c-warn { color: var(--warn) !important; } .c-info { color: var(--info) !important; }
.sub { font-size: 12.5px; color: var(--dim); } .micro { font-size: 10.5px; font-weight: 600; letter-spacing: 0.2px; color: var(--faint); } .dim2 { color: var(--faint); }
.label { font-size: 10.5px; line-height: 14px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); font-weight: 700; }
h1 { font-size: 22px; line-height: 28px; letter-spacing: -0.4px; margin: 0; font-weight: 700; }
h2 { font-size: 15px; line-height: 20px; letter-spacing: -0.2px; margin: 0; font-weight: 700; }
p.body { font-size: 14px; color: var(--text); margin: 0 0 12px; line-height: 1.5; }

/* ---------------------------------------------------------------- shell */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; height: 58px; padding: 0 22px; background: rgba(5,7,10,0.72); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-n { font-weight: 800; letter-spacing: -0.4px; font-size: 16px; }
.logo { display: inline-flex; flex: 0 0 auto; filter: drop-shadow(0 4px 14px rgba(52,227,160,0.35)); }
.nav { display: flex; gap: 2px; flex: 1 1 auto; justify-content: center; }
.tab { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; color: var(--dim); font-weight: 600; font-size: 13.5px; transition: background .15s, color .15s; }
.tab:hover { color: var(--text); background: var(--s1); }
.tab.on { color: var(--text); background: var(--s2); box-shadow: 0 0 0 1px var(--line) inset; }
.tab.on .tab-i { color: var(--gain); }
.tab-i { display: inline-flex; }
.top-r { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.live { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--dim); height: 30px; padding: 0 12px; border-radius: 999px; background: var(--s1); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--s1); border: 1px solid var(--line); color: var(--dim); font-size: 12.5px; font-weight: 600; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.on { color: var(--text); background: var(--s3); border-color: var(--line-strong); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips.groups { margin: 0 0 14px; }
.main { max-width: 1480px; margin: 0 auto; padding: 22px 22px 60px; }
.pane { display: none; } .pane.on { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.page-head .sub { margin-top: 3px; }
.card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: 0 1px 0 var(--edge) inset; }
.card + .card { margin-top: 14px; }
.sect-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sect-toggle { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; }
.sect-toggle .chev { margin-left: auto; color: var(--faint); }
.hair { height: 1px; background: var(--line); margin: 0 2px; }
.empty { padding: 26px 10px; text-align: center; color: var(--dim); }
.empty-t { font-weight: 600; color: var(--text); } .empty-b { font-size: 12.5px; margin-top: 4px; }
.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 11px 4px; text-align: left; border-radius: 10px; transition: background .12s; }
.row:hover { background: var(--s2); }
.row.static:hover { background: none; }
.row-l { flex: 1 1 auto; min-width: 0; }
.row-t { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-s { font-size: 12.5px; color: var(--dim); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.row-r { flex: 0 0 auto; text-align: right; }
.row-rate { font-weight: 700; font-size: 14px; color: var(--gain); } .row-rate.dim { color: var(--dim); font-weight: 600; }
.row-rs, .when { font-size: 11.5px; color: var(--faint); margin-top: 2px; font-variant-numeric: tabular-nums; }
.pair { font-weight: 700; } .dex { color: var(--faint); font-weight: 500; font-size: 12.5px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1px; white-space: nowrap; }
.pill.small { height: 18px; padding: 0 7px; font-size: 10.5px; }
.pill .dot { width: 6px; height: 6px; border-radius: 3px; }
.pulse { display: inline-block; border-radius: 50%; background: var(--gain); box-shadow: 0 0 0 0 rgba(52,227,160,0.5); animation: pulse 1.8s ease-out infinite; }
.pulse.off { background: var(--loss); animation: none; box-shadow: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,227,160,0.45); } 70% { box-shadow: 0 0 0 7px rgba(52,227,160,0); } 100% { box-shadow: 0 0 0 0 rgba(52,227,160,0); } }
.seg { display: inline-flex; background: var(--s1); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg-b { height: 28px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--faint); }
.seg-b.on { background: var(--s3); color: var(--text); }
.stack { display: flex; gap: 2px; border-radius: 4px; overflow: hidden; background: var(--s3); }
.stack i { display: block; height: 100%; transition: flex .6s cubic-bezier(.2,.8,.2,1); }
.rail { position: relative; border-radius: 2px; background: var(--s3); overflow: hidden; } .rail i { display: block; height: 100%; border-radius: 2px; transition: width .6s; }
.facts { margin-top: 14px; }
.facts-t { font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 6px; }
.fact { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.fact:last-child { border-bottom: 0; }
.fact-k { color: var(--dim); font-size: 13.5px; } .fact-h { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.fact-v { font-weight: 600; text-align: right; font-size: 13.5px; font-variant-numeric: tabular-nums; max-width: 60%; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.btn { height: 42px; padding: 0 18px; border-radius: 12px; font-weight: 700; background: var(--s3); color: var(--text); width: 100%; }
.btn.primary { background: var(--gain); color: #06140E; box-shadow: 0 10px 30px rgba(52,227,160,0.25); }
.btn.primary:disabled { opacity: 0.6; cursor: default; }
.btn.danger { background: var(--loss-tint); color: var(--loss); }
.wallet { margin-top: 14px; } .wallet .mono { margin-top: 4px; padding: 10px 12px; background: var(--bg1); border: 1px solid var(--line); border-radius: 10px; color: var(--text); }
pre.raw { font-family: var(--mono); font-size: 11.5px; color: var(--dim); background: var(--bg1); border: 1px solid var(--line); border-radius: 10px; padding: 12px; overflow: auto; max-height: 50vh; white-space: pre-wrap; word-break: break-word; margin: 6px 0 0; }
ul.why { margin: 10px 0 0; padding-left: 18px; color: var(--dim); font-size: 13px; }
.dec { padding: 8px 0; border-bottom: 1px solid var(--line); } .dec:last-child { border: 0; } .dec-h { font-size: 13px; } .dec-b { font-size: 12.5px; color: var(--dim); margin-top: 2px; }
.flash { animation: flash .6s ease; } @keyframes flash { 0% { color: var(--gain); } 100% { color: inherit; } }
.err { color: var(--loss); font-size: 13px; margin-top: 10px; }

/* ---------------------------------------------------------------- home */
.home-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr); grid-template-areas: 'hero vec' 'pos pos'; gap: 18px; align-items: stretch; }
.hero-card { grid-area: hero; } .vec-host { grid-area: vec; min-width: 0; } .side { grid-area: pos; }
/* one bot only (no second bot configured): the first screen is the hero beside the positions, as it was */
.single .home-grid { grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr); grid-template-areas: 'hero pos' 'hero pos'; }
.single .pos-list { grid-template-columns: 1fr; } .single .side { margin-top: 0; }
@media (max-width: 1100px) { .single .home-grid { grid-template-columns: 1fr; grid-template-areas: 'hero' 'pos'; } }
.hero-card { background: linear-gradient(180deg, var(--s1), var(--bg1)); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px 22px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero-card::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; background: radial-gradient(600px 220px at 20% 0%, rgba(52,227,160,0.09), transparent 70%); }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.hero-label { font-size: 12px; letter-spacing: 0.4px; color: var(--faint); font-weight: 600; }
.hero-num { font-size: 52px; line-height: 58px; font-weight: 700; letter-spacing: -2.2px; margin-top: 2px; }
.ranges { display: inline-flex; background: var(--s2); border: 1px solid var(--line); border-radius: 999px; padding: 2px; flex: 0 0 auto; margin-top: 4px; }
.range-b { height: 26px; min-width: 40px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.4px; color: var(--faint); }
.range-b.on { background: var(--s3); color: var(--text); } .range-b:disabled { opacity: 0.35; cursor: default; }
.hero-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.delta { height: 28px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; }
.delta.up { background: var(--gain-tint); color: var(--gain); } .delta.down { background: var(--loss-tint); color: var(--loss); }
.hero-rate { font-size: 13px; color: var(--dim); display: flex; align-items: center; gap: 8px; }
.hero-rate .proj { font-size: 11.5px; color: var(--faint); font-weight: 600; } .dots { letter-spacing: 2px; font-weight: 800; } .dots.up { color: var(--gain); } .dots.down { color: var(--loss); }
.chart-host { margin: 14px -6px 0 0; height: 236px; position: relative; }
.chart { position: relative; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.chart-svg { display: block; width: 100%; height: 100%; }
.chart-lvl { font-size: 10.5px; fill: var(--faint); font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart-ax { font-size: 10px; fill: var(--mute); font-family: var(--font); }
.chart-proj { font-size: 10.5px; font-weight: 700; font-family: var(--font); opacity: 0.85; }
.chart-breath { opacity: 0.18; animation: breath 2.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes breath { 0%, 100% { transform: scale(0.8); opacity: 0.1; } 50% { transform: scale(1.25); opacity: 0.28; } }
.chart-bubble { position: absolute; pointer-events: none; font-size: 11.5px; font-weight: 700; color: var(--text); background: var(--s3); border: 1px solid var(--line-strong); border-radius: 8px; padding: 4px 8px; white-space: nowrap; font-variant-numeric: tabular-nums; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.chart-empty { height: 100%; border-radius: 12px; background: repeating-linear-gradient(90deg, var(--s2) 0 2px, transparent 2px 8px); opacity: 0.35; }
.flow { margin-top: 16px; }
.flow-head { display: flex; justify-content: space-between; gap: 10px; }
.flow-col { flex: 1 1 0; min-width: 0; } .flow-col.right { text-align: right; }
.flow-k { font-size: 10.5px; font-weight: 600; color: var(--faint); display: flex; align-items: center; gap: 5px; letter-spacing: 0.2px; } .flow-col.right .flow-k { justify-content: flex-end; }
.flow-k i { width: 6px; height: 6px; border-radius: 3px; display: inline-block; }
.flow-v { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; margin-top: 3px; }
.flow .stack { margin-top: 12px; }
.flow-detail { margin-top: 12px; }
.flow-venue { display: grid; grid-template-columns: 90px repeat(3, minmax(0, 1fr)) 80px; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim); }
.fv-name { display: flex; align-items: center; gap: 7px; color: var(--text); font-weight: 600; } .fv-name i { width: 7px; height: 7px; border-radius: 4px; display: inline-block; }
.fv-net { text-align: right; font-weight: 700; }
.keys { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 10.5px; color: var(--faint); font-weight: 600; }
.key { display: inline-flex; align-items: center; gap: 6px; } .key-dash { width: 14px; height: 0; border-top: 1.5px dashed var(--dim); } .key-ghost { width: 14px; height: 1.5px; background: var(--text); opacity: 0.35; } .key-dots { letter-spacing: 2px; color: var(--gain); }
.split-host { margin-top: 10px; height: 72px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 10.5px; color: var(--faint); font-weight: 600; } .legend i { width: 10px; height: 2px; display: inline-block; margin-right: 6px; vertical-align: middle; }
.flow-toggle { margin-top: 8px; font-size: 11.5px; color: var(--faint); font-weight: 600; } .flow-toggle:hover { color: var(--text); }
.venues { display: flex; gap: 10px; margin-top: 16px; }
.venue { position: relative; flex: 1 1 0; min-width: 0; height: 40px; border-radius: 20px; background: var(--s2); border: 1px solid var(--line); padding: 0 14px 5px 10px; display: flex; align-items: center; gap: 10px; text-align: left; transition: border-color .15s, background .15s; }
.venue:hover { border-color: var(--line-strong); background: var(--s3); }
.v-name { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--dim); }
.v-eq { font-size: 14px; font-weight: 700; letter-spacing: -0.2px; margin-left: auto; }
.v-net { font-size: 11.5px; font-weight: 700; }
.v-rail { position: absolute; left: 14px; right: 14px; bottom: 5px; }
.idle { display: flex; align-items: center; gap: 7px; margin: 10px auto 0; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--dim); }
.idle:hover { background: var(--s2); color: var(--text); } .idle-key { width: 12px; height: 2px; background: var(--s3); border-radius: 1px; } .chev { color: var(--faint); }
.tre { display: flex; justify-content: center; }
.tre-b { display: inline-flex; align-items: center; gap: 8px; height: 22px; padding: 0 10px; font-size: 11.5px; color: var(--faint); font-weight: 600; border-radius: 999px; } .tre-b:hover { color: var(--text); background: var(--s2); }
.tre-k { color: var(--dim); }
.side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 2px 10px; }
.side-head h2 { font-size: 18px; letter-spacing: -0.3px; } .side-sub { font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.pos-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; align-items: start; }
.pos-list .group-head { grid-column: 1 / -1; }
@media (max-width: 1100px) { .pos-list { grid-template-columns: 1fr; } }
.side { margin-top: 6px; }
.vec-card { height: 100%; display: flex; flex-direction: column; } .vec-safe { margin-top: auto; padding-top: 16px; } .vec-book-wrap { margin-top: 20px; }
.group-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 6px 2px; }
.g-name { display: flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: 1.4px; font-weight: 800; color: var(--dim); } .g-name i { width: 7px; height: 7px; border-radius: 4px; display: inline-block; background: var(--info); } .g-name.solana i { background: var(--accent); }
.g-rate { font-size: 12px; color: var(--dim); font-weight: 600; font-variant-numeric: tabular-nums; }
.pos { position: relative; display: block; width: 100%; text-align: left; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px 12px; transition: transform .12s, border-color .15s, background .15s; box-shadow: 0 1px 0 var(--edge) inset; }
.pos:hover { border-color: var(--line-strong); background: #0F141D; } .pos:active { transform: scale(0.992); }
.pos.steady { border-color: rgba(45,212,191,0.45); } .pos.steady::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 2px 2px 0; background: var(--steady); }
.pos-l1 { display: flex; justify-content: space-between; gap: 10px; }
.pos-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pos-names { min-width: 0; } .pos-pair { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: -0.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-sub { display: block; font-size: 10.5px; font-weight: 500; color: var(--faint); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-r { text-align: right; flex: 0 0 auto; } .pos-rate { display: block; font-size: 16px; font-weight: 800; letter-spacing: -0.3px; } .pos-pct { display: block; font-size: 10.5px; color: var(--faint); font-weight: 600; margin-top: 1px; }
.pos-band { margin-top: 9px; }
.pos-l3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 7px; }
.pos-money { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pos-money b { color: var(--dim); font-weight: 600; }
.pos-note { flex: 0 0 auto; }
.rank { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #0A0F16; font-weight: 800; flex: 0 0 auto; }
.rank.steady { background: var(--steady-tint); color: var(--steady); border: 1.5px solid rgba(45,212,191,0.6); }

/* the live band */
.band { position: relative; height: 18px; --band-col: var(--gain); --band-tint: var(--gain-tint); }
.band-flat { position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 2px; background: var(--line); } .band-flat.on { background: #1C7A58; }
.band-track { position: absolute; left: 11px; right: 11px; top: 7.5px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, rgba(255,107,107,0.55) 0%, rgba(255,107,107,0.18) 22%, var(--line) 50%, rgba(52,227,160,0.18) 78%, rgba(52,227,160,0.55) 100%); }
.band-arrow { position: absolute; top: 2px; font-size: 9px; line-height: 14px; width: 10px; text-align: center; } .band-arrow.l { left: 0; color: var(--loss); } .band-arrow.r { right: 0; color: var(--gain); }
.band-cap { position: absolute; top: 4px; height: 10px; border-radius: 5px; background: var(--band-tint); border: 1px solid color-mix(in srgb, var(--band-col) 45%, transparent); overflow: hidden; margin-left: 14px; width: calc(var(--w) * 1%); transform: translateX(0); }
.band-cap, .band-dot, .band-halo, .band-ring { --track: calc(100% - 28px); }
.band-cap { left: 14px; width: 0; }
.band-run { position: absolute; top: 0; bottom: 0; width: 38%; min-width: 28px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--band-col) 40%, transparent), transparent); animation: run linear infinite; }
@keyframes run { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.band-lit { position: absolute; inset: 0; background: var(--band-col); opacity: 0; } .band-lit.go { animation: lit 1.3s ease-out; }
@keyframes lit { 0% { opacity: 0.45; } 100% { opacity: 0; } }
.band-dot { position: absolute; top: 3.5px; width: 11px; height: 11px; border-radius: 50%; background: var(--band-col); border: 1.5px solid var(--bg0); transform: translateX(-50%); z-index: 2; }
.band-halo { position: absolute; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--band-col); opacity: 0.18; transform: translateX(-50%); animation: halo 2.8s ease-in-out infinite; }
@keyframes halo { 0%, 100% { transform: translateX(-50%) scale(0.8); opacity: 0.1; } 50% { transform: translateX(-50%) scale(1.15); opacity: 0.26; } }
.band-ring { position: absolute; top: 0; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--band-col); opacity: 0; transform: translateX(-50%) scale(0.6); }
.band-ring.go { animation: ring 1.1s ease-out; } @keyframes ring { 0% { opacity: 0.75; transform: translateX(-50%) scale(0.6); } 100% { opacity: 0; transform: translateX(-50%) scale(2.4); } }
.sheet-band { padding: 14px 0 4px; } .sheet-band-k { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); margin-top: 10px; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- market / costs */
.market-grid, .costs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.mcol { min-width: 0; }
.best { background: linear-gradient(180deg, rgba(52,227,160,0.08), transparent 70%), var(--s1); }
.best-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 6px 0; }
.best-pair { font-size: 20px; font-weight: 800; letter-spacing: -0.4px; } .best-rate { font-size: 22px; font-weight: 800; color: var(--gain); letter-spacing: -0.5px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: right; font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--faint); font-weight: 700; padding: 6px 4px; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
td { text-align: right; padding: 8px 4px; border-bottom: 1px solid var(--line); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
table.split td:first-child { color: var(--dim); font-weight: 500; }
.tanks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tank { background: var(--bg1); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.tank-h { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; } .tank-n { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; margin: 4px 0 2px; }
.feed .day-rule { display: flex; align-items: center; gap: 10px; font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); font-weight: 700; padding: 12px 4px 6px; }
.feed .day-rule::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.evt { align-items: flex-start; } .evt-dot { width: 7px; height: 7px; border-radius: 4px; margin-top: 7px; flex: 0 0 auto; }
.evt .row-t { font-size: 13.5px; } .evt .row-s { white-space: normal; }

/* ---------------------------------------------------------------- sheet */
.sheet-back { position: fixed; inset: 0; z-index: 50; background: rgba(3,6,10,0.55); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; display: flex; justify-content: flex-end; }
.sheet-back.in { opacity: 1; }
.sheet { width: min(520px, 100%); height: 100%; background: var(--s1); border-left: 1px solid var(--line); box-shadow: -30px 0 80px rgba(0,0,0,0.5); transform: translateX(30px); transition: transform .22s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
.sheet.wide { width: min(720px, 100%); }
.sheet-back.in .sheet { transform: none; }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 12px; border-bottom: 1px solid var(--line); cursor: grab; touch-action: none; user-select: none; }
.sheet-grab { display: none; }
.sheet-titles { flex: 1; min-width: 0; } .sheet-title { font-size: 19px; font-weight: 800; letter-spacing: -0.4px; } .sheet-sub { font-size: 12px; color: var(--dim); margin-top: 2px; }
.sheet-x { width: 34px; height: 34px; border-radius: 50%; background: var(--s2); color: var(--dim); font-size: 22px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; } .sheet-x:hover { color: var(--text); background: var(--s3); }
.sheet-body { padding: 8px 20px 30px; overflow: auto; flex: 1; }
body.sheet-open { overflow: hidden; }

/* ---------------------------------------------------------------- login */
.login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.login-card { width: min(420px, 100%); background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 30px 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.login-card h1 { margin-top: 10px; } .login-card .label { margin-top: 14px; }
.code { height: 56px; border-radius: 14px; background: var(--bg1); border: 1px solid var(--line-strong); color: var(--text); font-family: var(--mono); font-size: 24px; letter-spacing: 6px; text-align: center; text-transform: uppercase; padding: 0 12px; }
.code::placeholder { color: var(--mute); letter-spacing: 6px; }
.lang-row { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.login-foot { margin-top: 18px; font-size: 12px; color: var(--mute); letter-spacing: 1px; }

/* ---------------------------------------------------------------- narrow screens */
@media (max-width: 1100px) { .home-grid { grid-template-columns: 1fr; grid-template-areas: 'hero' 'vec' 'pos'; } .side { margin-top: 4px; } .all-strip { flex-wrap: wrap; } .all-plus, .all-eq, .all-sep { display: none; } .all-cell { flex: 1 1 40%; } }
@media (max-width: 860px) {
  .market-grid, .costs-grid { grid-template-columns: 1fr; } .tanks { grid-template-columns: 1fr; }
  .top { gap: 10px; padding: 0 14px; height: 54px; } .tab-t { display: none; } .tab { padding: 0 11px; } .brand-n { display: none; } .live span { display: none; } .live { padding: 0 9px; }
  .main { padding: 14px 14px 80px; } .hero-card { padding: 18px 16px 14px; border-radius: 22px; } .hero-num { font-size: 42px; line-height: 48px; }
  .flow-venue { grid-template-columns: 80px 1fr 1fr; } .flow-venue .fv-n:nth-child(4) { display: none; }
  .sheet-back { align-items: flex-end; justify-content: stretch; }
  .sheet { width: 100%; height: auto; max-height: 92vh; border-left: 0; border-top: 1px solid var(--line-strong); border-radius: 22px 22px 0 0; transform: translateY(40px); }
  .sheet-grab { display: block; position: absolute; top: 8px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 2px; background: var(--mute); }
  .sheet-head { position: relative; padding-top: 22px; }
}

/* ---------------------------------------------------------------- everything, in one line */
.all-strip { display: flex; align-items: center; gap: 18px; padding: 12px 20px; margin-bottom: 16px; background: linear-gradient(90deg, rgba(52,227,160,0.07), rgba(139,155,180,0.04) 45%, rgba(245,200,66,0.06)); border: 1px solid var(--line); border-radius: var(--r-lg); }
.all-cell { min-width: 0; }
.all-k { display: flex; align-items: center; gap: 7px; font-size: 10.5px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--faint); font-weight: 700; white-space: nowrap; }
.all-mark { width: 8px; height: 8px; border-radius: 2px; display: inline-block; transform: rotate(45deg); }
.all-mark.tick { background: var(--gain); } .all-mark.vec { background: var(--info); } .all-mark.safe { background: #F5C842; } .all-mark.all { background: var(--text); }
.all-v { font-size: 22px; font-weight: 800; letter-spacing: -0.6px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.all-s { font-size: 11.5px; color: var(--dim); font-weight: 600; margin-top: 1px; }
.all-plus, .all-eq { color: var(--mute); font-size: 20px; font-weight: 300; flex: 0 0 auto; }
.all-eq { color: var(--dim); } .all-strip .all-cell.sum .all-v { color: var(--text); font-size: 26px; }
.all-sep { width: 1px; height: 36px; background: var(--line-strong); margin-left: auto; flex: 0 0 auto; }
.all-strip .all-cell:last-child { text-align: right; opacity: 0.85; } .all-strip .all-cell:last-child .all-k { justify-content: flex-end; } .all-strip .all-cell:last-child .all-v { color: #F5C842; }

/* ---------------------------------------------------------------- VECTOR */
.vec-card { position: relative; overflow: hidden; background: linear-gradient(180deg, #0C1220, var(--bg1)); border: 1px solid #1E2A3F; border-radius: var(--r-xl); padding: 22px 22px 16px; box-shadow: var(--shadow); cursor: pointer; transition: border-color .15s; }
.vec-card:hover { border-color: #2B3A55; }
.vec-card::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; background: radial-gradient(520px 220px at 85% 0%, rgba(106,166,255,0.12), transparent 70%), radial-gradient(400px 200px at 0% 100%, rgba(245,200,66,0.06), transparent 70%); }
.vec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; position: relative; }
.vec-label { display: flex; align-items: center; gap: 7px; font-size: 12px; letter-spacing: 1.2px; font-weight: 800; color: var(--info); }
.vec-mark { display: inline-flex; color: var(--info); filter: drop-shadow(0 0 8px rgba(106,166,255,0.6)); }
.vec-kind { color: var(--faint); font-weight: 600; letter-spacing: 0.2px; text-transform: none; }
.vec-num { font-size: 40px; line-height: 46px; font-weight: 700; letter-spacing: -1.6px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.vec-sub { font-size: 11.5px; color: var(--faint); font-weight: 600; }
.vec-state { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; border: 1px solid var(--line); background: rgba(255,255,255,0.03); color: var(--dim); flex: 0 0 auto; }
.vec-state.on { color: var(--gain); border-color: rgba(52,227,160,0.3); } .vec-state.off { color: var(--loss); border-color: rgba(255,107,107,0.3); }
.vec-k { font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.vec-cycle { margin-top: 18px; position: relative; }
.vec-cyc-l { display: flex; align-items: baseline; gap: 10px; }
.vec-pct { font-size: 20px; font-weight: 800; letter-spacing: -0.4px; font-variant-numeric: tabular-nums; } .vec-usd { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; opacity: 0.9; }
.vec-fil { margin-top: 8px; height: 26px; } .vec-fil-svg { width: 100%; height: 100%; display: block; }
.vec-fil-k { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--faint); font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.vec-book-wrap { margin-top: 18px; position: relative; }
.vec-book-k { display: flex; justify-content: space-between; align-items: baseline; }
.vec-side { font-size: 11px; font-weight: 800; letter-spacing: 1px; } .vec-side.short { color: #FF8A8A; } .vec-side.long { color: var(--gain); }
.vec-book { display: flex; align-items: flex-end; gap: 10px; height: 46px; margin-top: 8px; }
.vec-rank { flex: 1 1 0; display: flex; align-items: flex-end; gap: 4px; height: 100%; }
.vec-slot { flex: 1 1 0; height: 100%; border-radius: 3px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.05); transition: background .3s; }
.vec-rank.short .vec-slot.on { background: linear-gradient(180deg, rgba(255,107,107,0.9), rgba(255,107,107,0.35)); border-color: rgba(255,107,107,0.5); box-shadow: 0 0 12px rgba(255,107,107,0.25); animation: vslot 3.2s ease-in-out infinite; }
.vec-rank.long .vec-slot.on { background: linear-gradient(180deg, rgba(52,227,160,0.95), rgba(52,227,160,0.35)); border-color: rgba(52,227,160,0.5); box-shadow: 0 0 12px rgba(52,227,160,0.25); animation: vslot 3.2s ease-in-out infinite; }
@keyframes vslot { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
.vec-seam { width: 2px; height: 100%; background: linear-gradient(180deg, transparent, rgba(255,255,255,0.5), transparent); flex: 0 0 auto; position: relative; }
.vec-seam::before { content: ''; position: absolute; top: -7px; left: -3px; width: 8px; height: 8px; background: var(--text); transform: rotate(45deg); border-radius: 1px; opacity: 0.8; }
.vec-book-s { font-size: 11.5px; color: var(--dim); font-weight: 600; margin-top: 8px; text-align: center; }
.vec-safe { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); position: relative; }
.vec-safe-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.vec-safe-n { font-size: 26px; font-weight: 800; letter-spacing: -0.8px; color: #F5C842; font-variant-numeric: tabular-nums; margin-top: 2px; text-shadow: 0 0 18px rgba(245,200,66,0.25); }
.vec-safe-r { text-align: right; padding-top: 16px; }
.vec-months { display: flex; align-items: flex-end; gap: 8px; height: 72px; margin-top: 14px; }
.vec-month { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.vec-month-v { font-size: 9.5px; color: var(--faint); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vec-month-bar { width: 100%; flex: 1 1 auto; display: flex; align-items: flex-end; }
.vec-month-bar i { display: block; width: 100%; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #F5C842, rgba(245,200,66,0.25)); box-shadow: 0 0 12px rgba(245,200,66,0.18); transition: height .6s cubic-bezier(.2,.8,.2,1); }
.vec-month-l { font-size: 10px; color: var(--mute); font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; }
.vec-events { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.vec-ev { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.vec-ev-t { flex: 1; } .vec-ev-u { color: var(--text); font-weight: 700; }
.vec-foot { margin-top: 12px; font-size: 10.5px; color: var(--mute); font-weight: 600; text-align: right; }
.vec-empty { padding: 30px 0; color: var(--dim); text-align: center; }

.words { width: 100%; min-height: 84px; border-radius: 14px; background: var(--bg1); border: 1px solid var(--line-strong); color: var(--text); font-family: var(--mono); font-size: 15px; line-height: 1.6; padding: 12px 14px; resize: vertical; }
.words:focus { outline: none; border-color: var(--gain); }
.linkish { margin-top: 12px; font-size: 12.5px; color: var(--dim); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; } .linkish:hover { color: var(--text); }
