/* ==========================================================================
   Greenback Terminal — design system
   Ink-black panels, banknote green, ledger gold. Mono numerals everywhere.
   ========================================================================== */
:root {
  --bg: #0b0e14;
  --bg-2: #0f131a;
  --panel: #131821;
  --panel-2: #181e28;
  --panel-3: #1e2531;
  --line: #222a36;
  --line-2: #2d3644;
  --text: #e6eaf0;
  --text-2: #a3acba;
  --muted: #6c7686;
  --brand: #3b7cf6;
  --brand-2: #2f6ae0;
  --brand-ink: #ffffff;
  --logo: #13a26d;
  --gold: #c9a043;
  --up: #1fae7a;
  --down: #ec4b57;
  --up-bg: rgba(31, 174, 122, .12);
  --down-bg: rgba(236, 75, 87, .12);
  --blue: #3b7cf6;
  --violet: #9b7cf0;
  --warn: #d99a2b;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --radius: 8px;
  --radius-sm: 6px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --hdr: 52px;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f4f6f9;
  --bg-2: #eceff4;
  --panel: #ffffff;
  --panel-2: #f7f8fb;
  --panel-3: #eef1f6;
  --line: #e2e6ed;
  --line-2: #d2d8e2;
  --text: #121826;
  --text-2: #4a5466;
  --muted: #8690a2;
  --brand: #2563eb;
  --brand-2: #1d4fd0;
  --brand-ink: #ffffff;
  --logo: #0e9466;
  --gold: #a87b12;
  --up: #0c9467;
  --down: #d93240;
  --up-bg: rgba(12, 148, 103, .1);
  --down-bg: rgba(217, 50, 64, .09);
  --shadow: 0 10px 30px rgba(18, 28, 45, .12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--brand); color: var(--brand-ink); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 9px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.up { color: var(--up) !important; }
.down { color: var(--down) !important; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header ---------- */
.gb-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--hdr);
  display: flex; align-items: center; gap: 18px;
  padding: 0 16px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; font-size: 15px; white-space: nowrap; }
.logo-mark { width: 28px; height: 28px; display: inline-block; flex: none; line-height: 0; }
.logo-mark svg { width: 100%; height: 100%; display: block; }
.logo b { color: var(--muted); font-weight: 500; }
.nav { display: flex; gap: 2px; }
.nav a {
  padding: 7px 12px; border-radius: 8px; color: var(--text-2); font-weight: 600; font-size: 13px;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--panel-2); color: var(--text); }
.nav a.active { color: var(--text); background: var(--panel-3); }
.hdr-search {
  flex: 1; max-width: 340px; margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px; border-radius: 9px;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted); cursor: text;
}
.hdr-search svg, .hero-search svg, .ss-input svg { width: 18px; height: 18px; flex: none; }
.hdr-search:hover { border-color: var(--line-2); }
.hdr-search kbd { margin-left: auto; font: 11px var(--mono); padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 5px; color: var(--muted); }
.hdr-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--text-2);
}
.icon-btn:hover { background: var(--panel-2); color: var(--text); }
.icon-btn.on { color: var(--brand); background: var(--panel-3); border-color: var(--line-2); }
.icon-btn svg { width: 18px; height: 18px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 13px; color: #fff; border: 0; flex: none;
}
.burger { display: none; }

/* ---------- Ticker strip ---------- */
.ticker {
  height: 32px; overflow: hidden; border-bottom: 1px solid var(--line);
  background: var(--bg-2); position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.ticker-track { display: flex; gap: 28px; width: max-content; height: 100%; align-items: center; animation: tick 70s linear infinite; padding-left: 20px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: flex; gap: 8px; align-items: baseline; font-size: 12px; white-space: nowrap; }
.ticker-item b { font-weight: 700; color: var(--text); }
.ticker-item .num { color: var(--text-2); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Buttons / inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 34px; padding: 0 14px; border-radius: 8px;
  background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text);
  font-weight: 600; font-size: 13px; white-space: nowrap;
  transition: transform .08s, background .15s, border-color .15s;
}
.btn:hover { background: var(--panel-3); border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--panel-2); color: var(--text); }
.btn.buy { background: var(--up); border-color: var(--up); color: #fff; }
.btn.sell { background: var(--down); border-color: var(--down); color: #fff; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn.lg { height: 44px; padding: 0 20px; font-size: 14px; border-radius: 8px; }
.btn svg { width: 16px; height: 16px; }
.input, select.input, textarea.input {
  width: 100%; height: 36px; padding: 0 11px; border-radius: 8px;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); outline: none;
}
textarea.input { height: auto; min-height: 110px; padding: 10px 11px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
label.field { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); }
label.field > span { display: flex; justify-content: space-between; }
.seg { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); gap: 2px; }
.seg button { height: 28px; padding: 0 11px; border-radius: 7px; border: 0; background: transparent; color: var(--text-2); font-weight: 700; font-size: 12px; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--panel-3); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 0 0 1px var(--line-2); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.pill.long { background: var(--up-bg); color: var(--up); }
.pill.short { background: var(--down-bg); color: var(--down); }
.pill.neutral { background: var(--panel-3); color: var(--text-2); }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px; background: var(--panel-3); font: 600 12px var(--mono); color: var(--text); }
.chg { display: inline-flex; padding: 2px 6px; border-radius: 4px; font: 600 12px var(--mono); }
.chg.up { background: var(--up-bg); }
.chg.down { background: var(--down-bg); }

/* ---------- Cards / layout ---------- */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.card-h h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); }
.card-b { padding: 14px 16px; }
.section-title { font-weight: 650; font-size: 22px; letter-spacing: -.02em; margin: 2px 0 0; }
.eyebrow { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.empty > b:first-child { display: block; color: var(--text-2); margin-bottom: 4px; font-size: 15px; }
.skeleton { background: linear-gradient(90deg, var(--panel-2), var(--panel-3), var(--panel-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 6px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: right; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); cursor: pointer; user-select: none; white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl th.sorted::after { content: " ▾"; color: var(--brand); }
.tbl th.sorted.asc::after { content: " ▴"; }
.tbl td { text-align: right; padding: 9px 12px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tbody tr { cursor: pointer; transition: background .12s; }
.tbl tbody tr:hover { background: var(--panel-2); }
.sym-cell { display: flex; align-items: center; gap: 10px; font-family: var(--font); }
.sym-badge { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 9px var(--font); flex: none; color: #fff; }
.sym-cell b { display: block; font-size: 13px; }
.sym-cell small { display: block; color: var(--muted); font-size: 11px; }
.flash-up { animation: fu .8s; }
.flash-down { animation: fd .8s; }
@keyframes fu { from { background: var(--up-bg); } }
@keyframes fd { from { background: var(--down-bg); } }

/* ---------- Modal / toast / menu ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 200; background: rgba(3, 6, 5, .62); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow); animation: pop .18s cubic-bezier(.2,.9,.3,1.2); }
.modal.wide { width: min(880px, 100%); }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 1; }
.modal-h h2 { margin: 0; font-size: 16px; font-weight: 650; }
.modal-b { padding: 18px; display: grid; gap: 14px; }
.modal-f { padding: 14px 18px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.toasts { position: fixed; left: 16px; bottom: 16px; z-index: 300; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.toasts > * { pointer-events: auto; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.toast { position: relative; padding: 12px 36px 12px 14px; transition: opacity .25s, transform .25s; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); border-left: 3px solid var(--brand); box-shadow: var(--shadow); animation: toastIn .22s ease-out; font-size: 13px; }
.toast.err { border-left-color: var(--down); }
.toast.warn { border-left-color: var(--gold); }
.toast b { display: block; margin-bottom: 2px; }
.menu { position: fixed; z-index: 250; min-width: 200px; padding: 6px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow); animation: pop .12s; }
.menu button, .menu a { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: none; border-radius: 7px; text-align: left; color: var(--text); font-size: 13px; }
.menu button:hover, .menu a:hover { background: var(--panel-3); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 0; }
.menu .menu-head { padding: 8px 10px; font-size: 12px; color: var(--muted); }

/* ---------- Symbol search ---------- */
.ss { width: min(640px, 100%); }
.ss-input { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.ss-input input { flex: 1; border: 0; background: none; outline: none; font-size: 18px; font-weight: 700; text-transform: uppercase; }
.ss-tabs { display: flex; gap: 4px; padding: 10px 14px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.ss-tabs button { border: 1px solid var(--line); background: none; color: var(--text-2); padding: 4px 11px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.ss-tabs button.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.ss-list { max-height: 420px; overflow: auto; padding: 6px; }
.ss-row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.ss-row:hover, .ss-row.sel { background: var(--panel-3); }
.ss-row b { font-family: var(--mono); }
.ss-row small { color: var(--muted); }
.ss-row .type { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 34px 0; color: var(--muted); font-size: 12px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.footer a { color: var(--text-2); margin-right: 14px; }
.footer a:hover { color: var(--brand); }

/* ==========================================================================
   HOME
   ========================================================================== */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.25fr; gap: 36px; padding: 56px 20px 48px; align-items: center; }
.hero h1 { font-weight: 700; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -.035em; margin: 12px 0 16px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { color: var(--text-2); font-size: 16px; max-width: 470px; margin: 0 0 26px; }
.hero-search { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 8px 0 18px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line-2); max-width: 470px; cursor: text; }
.hero-search span { flex: 1; color: var(--muted); font-size: 15px; }
.hero-stats { display: flex; gap: 28px; margin-top: 26px; }
.hero-stats div b { display: block; font: 700 20px var(--mono); }
.hero-stats div small { color: var(--muted); font-size: 12px; }
.hero-chart { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.hero-chart-h { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.hero-chart-h .px { font: 700 24px var(--mono); }
.hero-chart-body { height: 340px; }
.hero-chart-tabs { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 var(--brand); animation: pulse 1.8s infinite; display: inline-block; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.home-section { padding: 38px 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.tile { padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; transition: border-color .15s, transform .15s; cursor: pointer; min-width: 0; }
.tile:hover { border-color: var(--line-2); background: var(--panel-2); }
.tile-top { display: flex; justify-content: space-between; align-items: center; }
.tile-top b { font: 700 13px var(--mono); }
.tile .px { font: 700 18px var(--mono); margin: 8px 0 2px; overflow: hidden; text-overflow: ellipsis; }
.tile canvas { width: 100%; height: 44px; display: block; margin-top: 8px; }
.home-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.home-grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.mover { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 9px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.mover:last-child { border-bottom: 0; }
.mover:hover { background: var(--panel-2); }
.mover b { font: 700 13px var(--mono); }
.strength-row { display: grid; grid-template-columns: 42px 1fr 52px; gap: 10px; align-items: center; padding: 6px 16px; font: 700 12px var(--mono); }
.strength-bar { height: 8px; border-radius: 9px; background: var(--panel-3); position: relative; overflow: hidden; }
.strength-bar i { position: absolute; top: 0; bottom: 0; border-radius: 9px; }
.news-item { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.news-item:hover { background: var(--panel-2); }
.news-item b { display: block; font-size: 14px; line-height: 1.35; }
.news-item small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.cta-band { margin-top: 40px; padding: 28px 32px; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); }
.cta-band h2 { font-weight: 650; margin: 0 0 6px; font-size: 22px; letter-spacing: -.02em; }

/* ==========================================================================
   HEATMAP / MARKETS
   ========================================================================== */
.heatmap { position: relative; width: 100%; height: 520px; border-radius: 8px; overflow: hidden; background: var(--bg-2); }
.hm-cell { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px solid var(--bg); cursor: pointer; overflow: hidden; transition: filter .15s; color: #fff; }
.hm-cell:hover { filter: brightness(1.2); z-index: 2; outline: 2px solid #fff; }
.hm-cell b { font-family: var(--font); font-weight: 700; line-height: 1.1; }
.hm-cell span { font-family: var(--mono); opacity: .92; }
.hm-legend { display: flex; gap: 2px; align-items: center; font: 11px var(--mono); color: var(--muted); }
.hm-legend i { width: 30px; height: 12px; display: inline-block; }
.markets-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 22px 0 14px; }
.screener-wrap { overflow: auto; max-height: calc(100vh - 230px); }
.spark { width: 90px; height: 28px; display: block; margin-left: auto; }

/* ==========================================================================
   IDEAS / NEWS
   ========================================================================== */
.ideas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.idea { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.idea:hover { border-color: var(--line-2); }
.idea-img { aspect-ratio: 16/9; background: var(--bg-2) center / cover no-repeat; position: relative; display: grid; place-items: center; color: var(--muted); font: 700 28px var(--mono); }
.idea-img .pill { position: absolute; top: 10px; left: 10px; backdrop-filter: blur(6px); }
.idea-b { padding: 14px; display: grid; gap: 8px; flex: 1; }
.idea-b h4 { margin: 0; font-size: 15px; line-height: 1.3; }
.idea-b p { margin: 0; color: var(--text-2); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.idea-f { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.idea-f .avatar { width: 22px; height: 22px; font-size: 10px; }
.idea-f .stat { margin-left: auto; display: flex; gap: 12px; }
.comment { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.comment .avatar { width: 30px; height: 30px; font-size: 11px; }
.comment b { font-size: 13px; }
.comment p { margin: 2px 0 0; color: var(--text-2); white-space: pre-wrap; word-break: break-word; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.news-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: border-color .15s; }
.news-card:hover { border-color: var(--line-2); }
.news-card .img { aspect-ratio: 2/1; background: var(--bg-2) center / cover; }
.news-card .b { padding: 14px; display: grid; gap: 8px; }
.news-card h4 { margin: 0; font-size: 15px; line-height: 1.35; }
.news-card p { margin: 0; color: var(--text-2); font-size: 13px; }
.page-head { padding: 34px 0 6px; }
.page-head h1 { font-weight: 700; font-size: 30px; letter-spacing: -.03em; margin: 6px 0 6px; }
.page-head p { color: var(--text-2); margin: 0; }

/* ==========================================================================
   SUPERCHARTS
   ========================================================================== */
body.page-chart { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.ca { flex: 1; min-height: 0; min-width: 0; display: grid; grid-template-rows: 44px 1fr auto; grid-template-columns: minmax(0, 1fr); }
.ca > * { min-width: 0; }
.ca-top { display: flex; align-items: center; gap: 6px; padding: 0 10px; border-bottom: 1px solid var(--line); background: var(--panel); overflow-x: auto; overflow-y: hidden; }
.ca-top .sep { width: 1px; height: 22px; background: var(--line-2); margin: 0 4px; flex: none; }
.ca-top .btn { height: 30px; flex: none; }
.sym-btn { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-2); font: 800 13px var(--mono); flex: none; }
.sym-btn:hover { border-color: var(--brand); }
.tf-group { display: flex; gap: 1px; flex: none; }
.tf-group button { height: 30px; min-width: 34px; padding: 0 7px; border: 0; border-radius: 6px; background: transparent; color: var(--text-2); font: 700 12px var(--mono); }
.tf-group button:hover { background: var(--panel-3); color: var(--text); }
.tf-group button.on { color: var(--brand); background: var(--panel-3); }
.ca-mid { display: grid; grid-template-columns: 46px 1fr var(--side-w, 300px); min-height: 0; }
.ca-mid.no-side { grid-template-columns: 46px 1fr 0; }
.ca-left { border-right: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; overflow-y: auto; }
.ca-left .icon-btn { width: 36px; height: 34px; }
.ca-left .icon-btn svg { width: 20px; height: 20px; }
.ca-left hr { width: 24px; border: 0; border-top: 1px solid var(--line-2); margin: 5px 0; }
.panes { display: grid; gap: 1px; background: var(--line); min-width: 0; min-height: 0; position: relative; }
.panes[data-layout="1"] { grid-template: 1fr / 1fr; }
.panes[data-layout="2"] { grid-template: 1fr / 1fr 1fr; }
.panes[data-layout="2v"] { grid-template: 1fr 1fr / 1fr; }
.panes[data-layout="3"] { grid-template: 1fr 1fr / 1.4fr 1fr; }
.panes[data-layout="3"] > .pane:first-child { grid-row: span 2; }
.panes[data-layout="4"] { grid-template: 1fr 1fr / 1fr 1fr; }
.pane { position: relative; background: var(--bg); display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.panes:not([data-layout="1"]) .pane.active { box-shadow: inset 0 0 0 1px var(--brand); z-index: 1; }
.pane-main { position: relative; flex: 1; min-height: 80px; }
.pane-main .chart-host, .pane-sub .chart-host { position: absolute; inset: 0; }
.pane-main canvas.overlay { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 3; }
.pane-sub { position: relative; height: clamp(56px, 22%, 130px); border-top: 1px solid var(--line); flex: none; }
.pane-sub-legend { position: absolute; left: 8px; top: 4px; z-index: 4; display: flex; gap: 8px; align-items: center; font: 11px var(--mono); color: var(--text-2); }
.legend { position: absolute; left: 10px; top: 8px; z-index: 4; display: grid; gap: 3px; pointer-events: none; max-width: calc(100% - 90px); }
.legend-sym { display: flex; align-items: center; gap: 10px; font: 12px var(--mono); flex-wrap: wrap; }
.legend-sym b { font-size: 14px; font-family: var(--font); font-weight: 800; }
.legend-sym .ohlc span { margin-right: 8px; color: var(--muted); }
.legend-sym .ohlc span i { font-style: normal; color: var(--text); }
.legend-ind { display: flex; align-items: center; gap: 8px; font: 11px var(--mono); color: var(--text-2); pointer-events: auto; width: max-content; padding: 1px 6px 1px 0; border-radius: 5px; }
.legend-ind:hover { background: color-mix(in srgb, var(--panel-2) 85%, transparent); }
.legend-ind .x, .pane-sub-legend .x { opacity: 0; cursor: pointer; border: 0; background: none; color: var(--muted); padding: 0 3px; font-size: 13px; }
.legend-ind:hover .x, .pane-sub-legend:hover .x { opacity: 1; }
.legend-ind .x:hover, .pane-sub-legend .x:hover { color: var(--down); }
.pane-status { position: absolute; inset: 0; display: grid; place-items: center; z-index: 5; pointer-events: none; color: var(--muted); font: 13px var(--mono); }
.pane-status.err { pointer-events: auto; }
.fallback-note { position: absolute; right: 80px; top: 8px; z-index: 4; font: 700 10px var(--mono); color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); padding: 3px 7px; border-radius: 5px; }
.draw-bar { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; gap: 4px; align-items: center; padding: 5px 6px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow); }
.draw-bar .sw { width: 16px; height: 16px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.draw-bar .sw.on { border-color: var(--text); }
.draw-bar button { height: 26px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--text-2); font: 700 11px var(--mono); }
.draw-bar button:hover { background: var(--panel-3); color: var(--text); }
.draw-bar button.danger:hover { color: var(--down); }
.draw-bar .sep { width: 1px; height: 18px; background: var(--line-2); }

.ca-side { border-left: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.side-tabs { display: flex; border-bottom: 1px solid var(--line); flex: none; }
.side-tabs button { flex: 1; height: 40px; border: 0; background: none; color: var(--muted); font-weight: 600; font-size: 12px; border-bottom: 2px solid transparent; }
.side-tabs button.on { color: var(--text); border-bottom-color: var(--brand); }
.side-body { flex: 1; overflow: auto; min-height: 0; }
.wl-row { display: grid; grid-template-columns: 1fr auto 62px 18px; gap: 8px; align-items: center; padding: 7px 12px; border-bottom: 1px solid var(--line); cursor: pointer; font: 12px var(--mono); }
.wl-row:hover { background: var(--panel-2); }
.wl-row.on { background: var(--panel-3); box-shadow: inset 2px 0 0 var(--brand); }
.wl-row b { font-size: 12px; }
.wl-row small { display: block; color: var(--muted); font: 10px var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }
.wl-row .rm { opacity: 0; border: 0; background: none; color: var(--muted); padding: 0; }
.wl-row:hover .rm { opacity: 1; }
.wl-row .rm:hover { color: var(--down); }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.side-head b { font-size: 12px; font-weight: 600; color: var(--text-2); }
.sym-detail { padding: 14px 12px; border-bottom: 1px solid var(--line); }
.sym-detail .px { font: 800 26px var(--mono); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding: 12px; font-size: 12px; }
.kv div span { display: block; color: var(--muted); font-size: 11px; }
.kv div b { font-family: var(--mono); }
.gauge-wrap { padding: 14px 12px 4px; text-align: center; }
.gauge-wrap svg { width: 100%; max-width: 250px; }
.gauge-label { font-weight: 700; font-size: 18px; margin-top: -6px; }
.tech-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 10px 12px; text-align: center; }
.tech-grid div { background: var(--bg-2); border-radius: 8px; padding: 8px 4px; }
.tech-grid div b { display: block; font: 800 16px var(--mono); }
.tech-grid div span { font-size: 11px; color: var(--muted); font-weight: 600; }
.tech-table { width: 100%; font-size: 12px; border-collapse: collapse; }
.tech-table td { padding: 6px 12px; border-bottom: 1px solid var(--line); font-family: var(--mono); }
.tech-table td:last-child { text-align: right; font-weight: 700; }
.alert-row { padding: 10px 12px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 12px; }
.alert-row b { font-family: var(--mono); }
.alert-row .acts { grid-row: span 2; display: flex; gap: 2px; align-items: center; }
.alert-row.fired { opacity: .55; }

.ca-bottom { border-top: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; height: 250px; min-height: 0; }
.ca-bottom.collapsed { height: 38px; }
.ca-bottom.collapsed .bottom-body { display: none; }
.bottom-tabs { display: flex; align-items: center; gap: 4px; padding: 0 10px; height: 38px; border-bottom: 1px solid var(--line); flex: none; }
.bottom-tabs > button.tab { height: 38px; border: 0; background: none; padding: 0 12px; color: var(--muted); font-weight: 600; font-size: 12px; border-bottom: 2px solid transparent; }
.bottom-tabs > button.tab.on { color: var(--text); border-bottom-color: var(--brand); }
.acct-stats { margin-left: auto; display: flex; gap: 18px; font: 12px var(--mono); }
.acct-stats span { color: var(--muted); }
.bottom-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 280px 1fr; }
.order-ticket { border-right: 1px solid var(--line); padding: 10px 12px; display: grid; gap: 8px; align-content: start; overflow: auto; }
.order-ticket .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.order-ticket .input { height: 32px; font-family: var(--mono); }
.pos-wrap { overflow: auto; }
.pos-wrap .tbl td, .pos-wrap .tbl th { padding: 7px 10px; }
.pos-wrap .tbl tbody tr { cursor: default; }
body.fs .gb-header, body.fs .ticker { display: none; }

/* Indicator picker */
.ind-list { display: grid; gap: 4px; max-height: 420px; overflow: auto; }
.ind-item { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 10px 12px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.ind-item:hover { background: var(--panel-2); border-color: var(--line); }
.ind-item b { font-size: 14px; }
.ind-item small { display: block; color: var(--muted); font-size: 12px; }
.ind-item .tag { font: 700 10px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .home-grid { grid-template-columns: 1fr 1fr; }
  .ca-mid { grid-template-columns: 46px 1fr 0; }
  .ca-mid:not(.side-open) .ca-side { display: none; }
  .ca-mid.side-open { grid-template-columns: 46px 1fr 280px; }
}
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: var(--hdr); left: 0; right: 0; flex-direction: column; background: var(--panel); border-bottom: 1px solid var(--line); padding: 8px; }
  .nav.open { display: flex; }
  .burger { display: grid; }
  .hdr-search { max-width: none; }
  .hdr-search span, .hdr-search kbd { display: none; }
  .hdr-search { flex: 0 0 34px; padding: 0; justify-content: center; margin-left: auto; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-top: 34px; }
  .hero-grid > * { min-width: 0; }
  .hero-search span { min-width: 0; }
  .hero-stats { flex-wrap: wrap; gap: 14px 22px; }
  .live-count { flex-wrap: wrap; }
  .home-grid, .home-grid-2 { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .ca-mid, .ca-mid.side-open, .ca-mid.no-side { grid-template-columns: 1fr; }
  .ca-left { display: none; }
  .ca-top .seg, #logBtn, #autoBtn, #syncState, #addCompare { display: none; }
  .ca-mid.side-open .ca-side { position: fixed; right: 0; top: 0; bottom: 0; width: 300px; z-index: 60; box-shadow: var(--shadow); }
  .bottom-body { grid-template-columns: 1fr; overflow: auto; }
  .order-ticket { border-right: 0; border-bottom: 1px solid var(--line); }
  .acct-stats { display: none; }
  .panes[data-layout] { grid-template: 1fr / 1fr !important; }
  .panes[data-layout] > .pane:not(.active) { display: none; }
  .heatmap { height: 420px; }
}
@media (max-width: 520px) {
  .logo span.full { display: none; }
  .hero-stats { gap: 16px; }
  .wrap { padding: 0 14px; }
}

.tile .px, .hero-chart-h .px, .sym-detail .px, .hero-stats div b { font-weight: 600; letter-spacing: -.01em; }
.stat svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }

/* ==========================================================================
   v2 components: announcement, bell, notifications, footer, profile,
   settings, admin, calendar, legal pages, sponsor
   ========================================================================== */
.ann-bar { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 48px 8px 16px; font-size: 13px; position: relative; background: color-mix(in srgb, var(--brand) 14%, var(--panel)); border-bottom: 1px solid var(--line); text-align: center; }
.ann-bar.warn { background: color-mix(in srgb, var(--warn) 16%, var(--panel)); }
.ann-bar.success { background: color-mix(in srgb, var(--up) 14%, var(--panel)); }
.ann-bar a { color: var(--brand); font-weight: 600; }
.ann-bar .icon-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; }
.bell { position: relative; }
.bell-count { position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--down); color: #fff; font: 700 10px/16px var(--font); text-align: center; }
.avatar-btn { border: 0; padding: 0; background: none; border-radius: 50%; display: grid; }
img.avatar { display: block; }
.avatar { border-radius: 50%; }
.notif-menu { width: 340px; padding: 0; overflow: hidden; }
.notif-menu .menu-head { padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--text); }
.notif-list { max-height: 420px; overflow: auto; }
.notif { display: grid !important; grid-template-columns: 30px 1fr; gap: 10px; padding: 10px 14px !important; border-radius: 0 !important; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.4; }
.notif.unread { background: color-mix(in srgb, var(--brand) 8%, transparent); }
.notif small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.notif i { color: var(--text-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.footer h4 { margin: 0 0 10px; color: var(--text); font-size: 13px; font-weight: 600; }
.footer-grid a { display: block; margin: 0 0 8px; }
.footer-base { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 18px; }
.link-btn { border: 0; background: none; color: var(--muted); font-size: 12px; padding: 0 4px; }
.link-btn:hover { color: var(--text); text-decoration: underline; }
.cmt-acts { float: right; }
.idea-author { color: var(--text-2); font-weight: 600; }
.idea-author:hover { color: var(--brand); }
.btn svg { flex: none; }
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; font-size: 11px; font-weight: 600; background: var(--panel-3); color: var(--text-2); }
.badge.admin { background: color-mix(in srgb, var(--brand) 20%, transparent); color: var(--brand); }
.badge.mod { background: color-mix(in srgb, var(--violet) 20%, transparent); color: var(--violet); }
.badge.ok { background: var(--up-bg); color: var(--up); }
.badge.bad { background: var(--down-bg); color: var(--down); }

/* profile */
.profile-head { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: start; padding: 26px; margin-top: 28px; }
.profile-head h1 { margin: 0; font-size: 26px; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 10px; }
.profile-meta a { color: var(--brand); }
.profile-stats { display: flex; gap: 26px; margin-top: 16px; flex-wrap: wrap; }
.profile-stats button { border: 0; background: none; padding: 0; text-align: left; color: var(--text); }
.profile-stats b { display: block; font-size: 18px; font-weight: 650; }
.profile-stats span { color: var(--muted); font-size: 12px; }
.user-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.user-row small { display: block; color: var(--muted); }
.tabs-line { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 22px 0 18px; }
.tabs-line button { border: 0; background: none; color: var(--muted); padding: 10px 14px; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs-line button.on { color: var(--text); border-bottom-color: var(--brand); }

/* settings + admin layouts */
.side-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; margin-top: 26px; align-items: start; }
.side-nav { position: sticky; top: calc(var(--hdr) + 16px); display: grid; gap: 2px; }
.side-nav button, .side-nav a { text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 6px; color: var(--text-2); font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.side-nav button:hover { background: var(--panel-2); color: var(--text); }
.side-nav button.on { background: var(--panel-3); color: var(--text); font-weight: 600; }
.side-nav .count { background: var(--down); color: #fff; border-radius: 99px; font-size: 11px; padding: 0 7px; line-height: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.section { padding: 22px; margin-bottom: 18px; }
.section h2 { margin: 0 0 4px; font-size: 17px; font-weight: 650; }
.section > p.desc { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.section-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.danger-zone { border-color: color-mix(in srgb, var(--down) 45%, var(--line)); }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat-card { padding: 16px; }
.stat-card span { color: var(--muted); font-size: 12px; }
.stat-card b { display: block; font-size: 24px; font-weight: 650; margin-top: 4px; }
.stat-card small { color: var(--up); font-size: 12px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding: 10px 0 0; }
.bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; font-size: 10px; color: var(--muted); }
.bars i { display: block; width: 100%; background: var(--brand); border-radius: 3px 3px 0 0; min-height: 2px; }
.bars i.alt { background: var(--up); }
.adm-table td, .adm-table th { text-align: left !important; }
.adm-table tbody tr { cursor: default; }
.adm-table td { font-family: var(--font) !important; }
.report-card { padding: 16px; margin-bottom: 12px; }
.report-card blockquote { margin: 10px 0; padding: 10px 12px; border-left: 3px solid var(--line-2); background: var(--bg-2); border-radius: 4px; color: var(--text-2); white-space: pre-wrap; }

/* calendar */
.cal-day { margin-bottom: 18px; }
.cal-day h3 { font-size: 13px; font-weight: 600; color: var(--text-2); margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.cal-row { display: grid; grid-template-columns: 70px 54px 22px 1fr 90px 90px 90px; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.cal-row:last-child { border-bottom: 0; }
.cal-row.past { opacity: .6; }
.cal-row.next { background: color-mix(in srgb, var(--brand) 8%, transparent); }
.cal-row .num { text-align: right; }
.cal-head { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; background: none !important; }
.impact { display: inline-flex; gap: 2px; }
.impact i { width: 5px; height: 12px; border-radius: 1px; background: var(--line-2); }
.impact.high i { background: var(--down); }
.impact.medium i:nth-child(-n+2) { background: var(--warn); }
.impact.low i:first-child { background: var(--gold); }
.impact.holiday i { background: var(--muted); opacity: .5; }
.next-event { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; margin-bottom: 18px; flex-wrap: wrap; }
.next-event b { font-size: 18px; }
.countdown { font: 600 22px var(--mono); }
.cal-mini .cal-row { grid-template-columns: 52px 40px 22px 1fr; padding: 9px 16px; }

/* legal / prose */
.prose { max-width: 780px; line-height: 1.7; color: var(--text-2); }
.prose h2 { color: var(--text); font-size: 19px; margin: 30px 0 8px; letter-spacing: -.01em; }
.prose h3 { color: var(--text); font-size: 15px; margin: 20px 0 6px; }
.prose a { color: var(--brand); }
.prose ul { padding-left: 20px; }
.prose .updated { color: var(--muted); font-size: 13px; }
.notice { padding: 14px 16px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text-2); font-size: 13px; }
.notice.warn { border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); }

/* sponsor */
.sponsor { display: block; overflow: hidden; }
.sponsor img { width: 100%; display: block; aspect-ratio: 2 / 1; object-fit: cover; background: var(--bg-2); }
.sponsor .sp-b { padding: 12px 14px; }
.sponsor .sp-tag { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.sponsor b { display: block; margin-top: 2px; }
.sponsor p { margin: 4px 0 0; color: var(--text-2); font-size: 13px; }

@media (max-width: 1100px) { .stat-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .side-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; display: flex; overflow-x: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .profile-head { grid-template-columns: auto 1fr; }
  .profile-head > :last-child { grid-column: 1 / -1; }
  .cal-row { grid-template-columns: 52px 44px 22px 1fr; }
  .cal-row .num { display: none; }
  .hide-sm { display: none !important; }
}
@media (max-width: 1100px) { .ideas-layout { grid-template-columns: 1fr !important; } }
.home-grid-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
@media (max-width: 860px) { .home-grid-3 { grid-template-columns: 1fr; } .sp-grid { grid-template-columns: 1fr !important; } }

.menu svg { width: 16px; height: 16px; flex: none; }

/* ---------- Greenback Analyst ---------- */
.an-gate { text-align: center; padding: 28px 18px; }
.an-gate b { display: block; font-size: 16px; margin: 8px 0 4px; }
.an-gate p { color: var(--muted); margin: 0 0 14px; }
.an-gate-ico svg { width: 30px; height: 30px; color: var(--brand); }
.an-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.an-head .badge { text-transform: capitalize; }
.an-tf { font-size: 12px; margin-left: auto; }
.an-sym { font-weight: 700; margin-right: 4px; }
.an-title { margin: 10px 0 8px; font-size: 15px; line-height: 1.35; }
.an-meter { margin: 6px 0 10px; }
.an-meter-bar { position: relative; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--down), var(--panel-3) 50%, var(--up)); }
.an-meter-bar i { position: absolute; top: -4px; width: 4px; height: 14px; margin-left: -2px; border-radius: 2px; background: var(--text); box-shadow: 0 0 0 2px var(--panel); }
.an-meter-lbl { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }
.an-meter-lbl b { font: 600 12px var(--mono); }
.an-sum { color: var(--text-2); font-size: 13px; line-height: 1.6; margin: 0 0 12px; }
.an-report.compact .an-sum { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.an-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.an-card .an-grid { grid-template-columns: 1fr 1fr; }
.an-grid h5 { margin: 0 0 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.an-grid .tech-table td { padding: 5px 0; }
.an-points { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.an-point { background: var(--bg-2); border-radius: 6px; padding: 7px 9px; }
.an-point span { display: block; font-size: 11px; color: var(--muted); }
.an-point b { font-size: 13px; }
.an-foot { color: var(--muted); font-size: 11px; margin: 10px 0 0; }
.an-row { display: grid; grid-template-columns: 80px 74px 1fr 50px; gap: 10px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.an-row:hover { background: var(--panel-2); }
.an-row-h { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-row .mono { text-align: right; font-weight: 600; }
.brief-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; margin-top: 18px; }
.brief-over { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: center; }
.brief-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.brief-chip { display: inline-flex; gap: 6px; align-items: center; padding: 5px 9px; border-radius: 6px; font-size: 12px; background: var(--panel-3); }
.brief-chip span { font-family: var(--mono); }
.brief-chip.bullish { background: var(--up-bg); color: var(--up); }
.brief-chip.bearish { background: var(--down-bg); color: var(--down); }
.side-tabs button { padding: 0 4px; }
@media (max-width: 860px) {
  .brief-grid { grid-template-columns: 1fr; }
  .brief-over, .an-card .an-grid { grid-template-columns: 1fr; }
  .brief-chips { justify-content: flex-start; }
  .an-row { grid-template-columns: 64px 70px 1fr 40px; }
}

.brief-grid > .an-gate { grid-column: 1 / -1; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
#sideBody .an-gate, #homeAnalyst .an-gate { padding: 28px 16px; }

/* ---------- Manual ads ---------- */
.ad-top { position: relative; max-width: 1320px; margin: 10px auto 0; padding: 0 20px; }
.ad-top-in { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); padding: 0; font-size: 14px; }
.ad-top-in span { padding: 10px 16px; }
.ad-top-in img { display: block; width: 100%; max-height: 180px; object-fit: cover; }
.ad-label { position: absolute; left: 28px; top: 6px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(0, 0, 0, .55); padding: 1px 6px; border-radius: 3px; pointer-events: none; }
.ad-x { position: absolute; right: 28px; top: 6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; padding: 0; }
.ad-x svg { width: 12px; height: 12px; }
.ad-card { transition: border-color .15s; }
.ad-card:hover { border-color: var(--line-2); }
.ad-card .btn { pointer-events: none; }
.ideas-grid > #adFeed, .news-grid > #adFeed { display: contents; }
.ad-feed { display: flex; flex-direction: column; }
.ad-feed img { aspect-ratio: 16 / 9; }
.ad-sidebar img, .ad-chart img { aspect-ratio: auto; max-height: 260px; }
body.page-chart .ad-top { display: none; }
@media (max-width: 860px) { .ad-top { padding: 0 14px; } .ad-label { left: 20px; } .ad-x { right: 20px; } }

/* ==========================================================================
   v2.3: verified tick, share sheet, live community counter
   ========================================================================== */
.vtick { display: inline-block; vertical-align: -0.16em; margin-left: 4px; flex: none; }
h1 .vtick { vertical-align: -0.12em; }
.share-hero { background: var(--up-bg); border: 1px solid rgba(31, 174, 122, .35); border-radius: 10px; padding: 12px 14px; color: var(--text-2); }
.share-hero b { color: var(--text); }
.share-grid { display: grid; grid-template-columns: 280px 1fr; gap: 18px; align-items: start; }
.share-prev { aspect-ratio: 4 / 5; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); display: grid; place-items: center; overflow: hidden; text-align: center; padding: 0; }
.share-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.share-nets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.share-net { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 10px 4px; color: var(--text-2); font: 600 12px var(--font); cursor: pointer; transition: background .15s, border-color .15s; }
.share-net:hover { background: var(--panel-2); border-color: var(--line-2); color: var(--text); }
.share-net > span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--text); }
.share-net > span svg { width: 22px; height: 22px; }
@media (max-width: 640px) { .share-grid { grid-template-columns: 1fr; } .share-prev { max-width: 220px; margin: 0 auto; } .share-nets { grid-template-columns: repeat(4, 1fr); } }
.live-count { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 18px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: 13px; color: var(--text-2); width: fit-content; max-width: 100%; }
.live-count b { font: 700 16px var(--mono); color: var(--text); display: inline-block; transition: color .3s; }
.live-count b.bump { animation: lcBump 1.2s ease; }
.live-count small { color: var(--muted); }
@keyframes lcBump { 0% { color: var(--up); transform: translateY(-2px); } 100% { color: var(--text); transform: none; } }

/* ==========================================================================
   v2.4: results tracking, contests, polls, chat, journal, championship, learn
   ========================================================================== */
.st-chip, .feat-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.idea-img .st-chip { position: absolute; top: 10px; right: 10px; backdrop-filter: blur(6px); }
.idea-img .feat-chip { position: absolute; bottom: 10px; left: 10px; background: #f3c969; color: #1a1406; }
.st-wait { background: var(--panel-3); color: var(--text-2); }
.st-open { background: color-mix(in srgb, var(--brand) 22%, transparent); color: var(--brand); }
.st-win { background: var(--up); color: #fff; }
.st-loss { background: var(--down); color: #fff; }
.st-exp { background: var(--panel-3); color: var(--muted); }
.lv-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; }
.lv-row div span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.lv-row div b { font: 600 15px var(--mono); }
.lv-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cmt-img { display: block; max-width: 100%; max-height: 320px; margin-top: 8px; border-radius: 8px; border: 1px solid var(--line); }
.cmt-attach { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.cmt-attach img { height: 70px; border-radius: 6px; border: 1px solid var(--line); }
a.mention, a.hashtag { color: var(--brand); font-weight: 600; }
.hashtag-head { display: inline-block; font: 700 18px var(--font); color: var(--text); margin-right: 6px; }
.mention-box { position: fixed; z-index: 9999; background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: var(--shadow); padding: 4px; display: grid; }
.mention-box button { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--text); padding: 6px 8px; border-radius: 6px; cursor: pointer; font: 500 13px var(--font); text-align: left; }
.mention-box button:hover { background: var(--panel-2); }
/* polls */
.poll { padding: 16px; display: grid; gap: 8px; }
.poll-h { display: flex; justify-content: space-between; align-items: center; }
.poll h4 { margin: 0 0 4px; font-size: 15px; }
.poll-o { text-align: left; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; color: var(--text); font: 500 13px var(--font); cursor: pointer; transition: border-color .15s; }
.poll-o:hover { border-color: var(--brand); }
.poll-r { position: relative; display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 8px; background: var(--panel-2); overflow: hidden; font-size: 13px; cursor: pointer; }
.poll-r i { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--brand) 22%, transparent); }
.poll-r.mine i { background: color-mix(in srgb, var(--up) 28%, transparent); }
.poll-r span, .poll-r b { position: relative; }
.poll-r b { font-family: var(--mono); }
/* home community */
.community-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.feat-wrap { position: relative; }
.feat-label { display: inline-block; margin-bottom: 8px; font-size: 12px; font-weight: 700; color: #f3c969; letter-spacing: .04em; text-transform: uppercase; }
.feat-wrap .idea { max-width: none; }
.contest-card { display: block; padding: 18px; color: inherit; border-color: color-mix(in srgb, #f3c969 45%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, #f3c969 10%, var(--panel)), var(--panel)); }
.contest-card h3, .contest h3 { margin: 4px 0 6px; font-size: 18px; }
.contest-card .prize, .contest .prize { margin: 0 0 10px; color: var(--text-2); }
.contest-card ol { margin: 8px 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: c; }
.contest-card li { display: flex; align-items: center; gap: 8px; font-size: 13px; counter-increment: c; }
.contest-card li::before { content: counter(c); width: 18px; color: var(--muted); font: 600 12px var(--mono); }
.contest-card li small { margin-left: auto; color: var(--muted); }
/* leaderboard */
.lb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.lb-note { font-size: 12px; color: var(--muted); padding: 12px 14px 0; }
.lb-tbl td.medal { font-size: 20px; text-align: center !important; }
.lb-tbl .rk { font: 600 13px var(--mono); color: var(--muted); }
.lb-tbl th.r, .lb-tbl td.r { text-align: right; }
.lb-tbl tr.me td { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.lb-user { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font); }
.lb-promo { display: grid; gap: 4px; padding: 14px 16px; color: inherit; }
.lb-promo span { font-size: 12px; color: var(--muted); }
.contest { padding: 18px; display: grid; gap: 6px; border-color: color-mix(in srgb, #f3c969 45%, var(--line)); }
.contest h5 { margin: 10px 0 4px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.contest-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.contest-list li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; cursor: pointer; }
.contest-list li:hover { background: var(--panel-2); }
.contest-list li div { flex: 1; min-width: 0; }
.contest-list li b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contest-list li small { color: var(--muted); font-size: 11px; }
.contest .sponsor { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px; border: 1px dashed var(--line-2); border-radius: 8px; color: var(--text-2); font-size: 12px; }
.contest .sponsor img { max-height: 32px; max-width: 110px; object-fit: contain; }
.winner { font-size: 13px; padding: 4px 0; }
/* achievements */
.ach-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ach { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--text-2); cursor: default; }
.ach.award { background: color-mix(in srgb, #f3c969 16%, var(--panel)); border-color: color-mix(in srgb, #f3c969 50%, var(--line)); color: var(--text); }
/* chat */
.chat { display: flex; flex-direction: column; height: min(70vh, 640px); }
.chat.compact { height: 100%; min-height: 360px; }
.chat-h { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chat-h small { font-size: 11px; width: 100%; }
.chat.compact .chat-h small { display: none; }
.chat-list { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; }
.chat-m { display: flex; gap: 8px; align-items: flex-start; }
.chat-m > div { min-width: 0; flex: 1; }
.chat-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.chat-meta a { color: var(--text); font-weight: 600; }
.chat-meta small { color: var(--muted); }
.chat-meta .link-btn { margin-left: auto; font-size: 11px; opacity: 0; }
.chat-m:hover .link-btn { opacity: 1; }
.chat-m p { margin: 2px 0 0; font-size: 13px; color: var(--text-2); word-wrap: break-word; white-space: pre-wrap; }
.chat-m.me p { color: var(--text); }
.chat-in { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.chat-rooms { padding: 10px; display: grid; gap: 2px; }
.chat-rooms h5 { margin: 4px 8px 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.chat-rooms button[data-r] { display: flex; justify-content: space-between; align-items: center; background: none; border: 0; padding: 8px 10px; border-radius: 6px; color: var(--text-2); font: 500 13px var(--font); cursor: pointer; text-align: left; }
.chat-rooms button[data-r]:hover { background: var(--panel-2); }
.chat-rooms button[data-r].on { background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--text); font-weight: 600; }
.chat-rooms small { font: 600 11px var(--mono); color: var(--muted); }
/* championship */
.cmp-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 16px; }
.cmp-ticket { padding: 18px; display: grid; gap: 12px; }
.cmp-ticket h3 { margin: 0; font-size: 16px; }
.cmp-px { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px; background: var(--panel-2); border-radius: 8px; }
.cmp-px span { font-size: 12px; color: var(--muted); }
.cmp-px b { font-size: 20px; }
.cmp-side { display: grid !important; grid-template-columns: 1fr 1fr; }
.cmp-side button.on.buy { background: var(--up); color: #fff; }
.cmp-side button.on.sell { background: var(--down); color: #fff; }
.cmp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* journal */
.j-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.j-row { cursor: pointer; }
.stat-card small { display: block; margin-top: 4px; font-size: 11px; }
/* learn */
.learn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.learn-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; color: inherit; transition: border-color .15s, transform .15s; }
.learn-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.learn-card h3 { margin: 0; font-size: 17px; }
.learn-card p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.5; flex: 1; }
.learn-card .go { color: var(--brand); font-size: 13px; font-weight: 600; }
.learn-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; margin-top: 28px; }
.lesson { padding: 28px 32px; }
.lesson h1 { margin: 6px 0 10px; font-size: 32px; letter-spacing: -.02em; }
.lesson .lead { font-size: 17px; color: var(--text-2); margin: 0 0 20px; }
.lesson-body { font-size: 15.5px; line-height: 1.75; color: var(--text-2); }
.lesson-body h2 { font-size: 20px; color: var(--text); margin: 28px 0 8px; }
.lesson-body b { color: var(--text); }
.lesson-body a { color: var(--brand); }
.lesson-body li { margin-bottom: 6px; }
.lesson-cta { display: grid; gap: 6px; margin-top: 28px; padding: 18px; border-radius: 10px; background: var(--up-bg); border: 1px solid color-mix(in srgb, var(--up) 35%, transparent); }
.lesson-cta .btn { justify-self: start; margin-top: 6px; }
.lesson-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; font-weight: 600; }
.lesson-nav a { color: var(--brand); }
.learn-side { padding: 12px; display: grid; gap: 2px; position: sticky; top: 70px; }
.learn-side h5 { margin: 4px 8px 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.learn-side a { padding: 8px 10px; border-radius: 6px; color: var(--text-2); font-size: 13px; font-weight: 500; }
.learn-side a small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.learn-side a:hover { background: var(--panel-2); }
.learn-side a.on { background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--text); }
@media (max-width: 960px) {
  .community-grid, .lb-layout, .cmp-layout, .learn-layout { grid-template-columns: 1fr; }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-rooms { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .chat-rooms h5, #roomAdd { grid-column: 1 / -1; }
  .learn-side { position: static; }
  .j-form { grid-template-columns: 1fr 1fr; }
  .lesson { padding: 20px; }
}
@media (max-width: 560px) { .lv-inputs { grid-template-columns: 1fr 1fr 1fr; gap: 6px; } .j-form { grid-template-columns: 1fr; } }
.lb-layout > *, .cmp-layout > *, .learn-layout > *, .community-grid > *, .chat-layout > *, .lb-layout section, .cmp-layout section { min-width: 0; }
#lbTable, .cmp-layout .card { overflow-x: auto; }
.lesson-body { overflow-wrap: anywhere; }
@media (max-width: 960px) { .cmp-layout .stat-cards, #cmpRoot .stat-cards { grid-template-columns: 1fr 1fr; } }
.lb-layout aside > *, #contest, .contest, .contest-list, .contest-list li { min-width: 0; }
.contest { overflow: hidden; }
@media (max-width: 640px) {
  .profile-head { grid-template-columns: 1fr !important; display: grid !important; justify-items: start; }
  .profile-head > div:last-child { justify-content: flex-start !important; }
  .profile-stats { gap: 14px 20px; }
}
/* championship v2 */
.cmp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; margin-top: 16px; }
.cmp-grid > * { min-width: 0; }
.cmp-chart { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.cmp-chart-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cmp-chart-h .sym-btn { height: 32px; }
.cmp-live { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 16px; }
.cmp-chart-body { height: 440px; position: relative; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cmp-chart-f { font-size: 11px; padding: 8px 12px; border-top: 1px solid var(--line); }
.cmp-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; color: var(--muted); font-size: 13px; z-index: 3; background: color-mix(in srgb, var(--panel) 80%, transparent); }
.cmp-type { display: grid !important; grid-template-columns: repeat(3, 1fr); }
.cmp-prev { font-size: 12px; color: var(--text-2); min-height: 16px; line-height: 1.6; }
.btn.buy { background: var(--up); border-color: var(--up); color: #fff; }
.btn.buy:hover { filter: brightness(1.08); }
.cmp-book { margin-top: 16px; padding: 0; overflow: hidden; }
.cmp-tabs { display: flex; justify-content: space-between; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--line); gap: 10px; }
.cmp-tabs .tabs-line { border: 0; margin: 0; }
.cmp-scroll { overflow-x: auto; }
.cmp-tbl td small { color: var(--muted); font-size: 11px; }
.cmp-tbl tr.sel td { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.cmp-tbl td.acts { white-space: nowrap; }
.cmp-tbl td.acts .btn { margin-left: 4px; }
.cmp-edit { display: grid; gap: 12px; }
.cmp-edit .field small { margin-top: 4px; font-size: 11px; }
@media (max-width: 1000px) { .cmp-grid { grid-template-columns: 1fr; } .cmp-chart-body { height: 340px; } }
/* affiliate + ranks */
.aff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.aff-copy { display: flex; gap: 6px; }
.aff-copy .input { flex: 1; min-width: 0; }
.aff-code { text-transform: uppercase; font-weight: 700; letter-spacing: .06em; }
.aff-tbl td:first-child, .aff-tbl th:first-child { text-align: left; }
.rank-ic { margin-left: 3px; font-size: .9em; cursor: default; }
.rank-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.rank-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; background: linear-gradient(135deg, color-mix(in srgb, #f3c969 28%, var(--panel)), var(--panel-2)); border: 1px solid color-mix(in srgb, #f3c969 55%, var(--line)); }
.rank-chip.none { background: var(--panel-2); border-color: var(--line); color: var(--muted); font-weight: 600; }
.rank-prog { display: grid; gap: 4px; min-width: 220px; flex: 1; max-width: 380px; }
.rank-bar { height: 8px; border-radius: 999px; background: var(--panel-3); overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--up), #f3c969); border-radius: 999px; }
.rank-prog small { font-size: 12px; color: var(--text-2); }
@media (max-width: 760px) { .aff-grid { grid-template-columns: 1fr; } }
.upd-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 9998; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--brand); box-shadow: var(--shadow); font-size: 13px; max-width: calc(100vw - 24px); }
/* chart: bottom panel resize/maximise, account, settings */
.ca-bottom { position: relative; }
.bottom-grip { position: absolute; top: -4px; left: 0; right: 0; height: 8px; cursor: ns-resize; z-index: 5; }
.bottom-grip:hover, .bottom-grip:active { background: linear-gradient(transparent 3px, var(--brand) 3px, var(--brand) 5px, transparent 5px); }
.ca-bottom.collapsed .bottom-grip { display: none; }
.ca-bottom.max { min-height: 300px; }
.bottom-tabs #bottomAcct { margin-left: 6px; }
.bottom-tabs #bottomMax { font-size: 14px; }
.pos-acts { white-space: nowrap; }
.pos-acts .btn { margin-left: 4px; }
.pos-acts .btn svg { width: 13px; height: 13px; }
.pa { display: grid; gap: 16px; }
.pa section { display: grid; gap: 8px; }
.pa h5 { margin: 0; font-size: 13px; }
.pa p { margin: 0; font-size: 12px; }
.pa-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pa-row .input { flex: 1; min-width: 160px; }
.pa-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.pa .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cs { display: grid; gap: 18px; }
.cs h5 { margin: 0 0 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cs-presets { display: flex; gap: 8px; flex-wrap: wrap; }
.cs-presets button { display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: 600 12px var(--font); cursor: pointer; }
.cs-presets button i { width: 10px; height: 16px; border-radius: 2px; display: inline-block; }
.cs-presets button i + i { margin-right: 6px; }
.cs-presets button.on { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 30%, transparent); }
.cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cs-col { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 5px 0; font-size: 13px; color: var(--text-2); }
.cs-col input[type=color] { width: 42px; height: 28px; border: 1px solid var(--line-2); border-radius: 6px; background: none; padding: 2px; cursor: pointer; }
.cs-chk { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-2); padding: 5px 0; }
@media (max-width: 760px) { .cs-grid { grid-template-columns: 1fr; } .pa .row2 { grid-template-columns: 1fr; } }

/* ---------- v2.5.2 drawing tools: grouped flyouts, settings, object list ---------- */
.ca-left .tg { position: relative; }
.ca-left .tg-more { position: absolute; right: -3px; bottom: 1px; width: 11px; height: 14px; padding: 0; border: 0; background: transparent; color: var(--muted); font: 700 11px/1 var(--font); cursor: pointer; opacity: .55; }
.ca-left .tg:hover .tg-more, .ca-left .tg-more:hover { opacity: 1; color: var(--text); }
.ca-left .fav-t { display: contents; }
.ca-left .fav-t .icon-btn { color: var(--gold, #d9a23b); }
.tool-fly { position: fixed; z-index: 60; min-width: 230px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; }
.tool-fly .tf-h { font: 700 10px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 4px 8px 6px; }
.tool-fly .tf-i { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 7px; cursor: pointer; color: var(--text-2); font-size: 13px; }
.tool-fly .tf-i:hover { background: var(--panel-3); color: var(--text); }
.tool-fly .tf-i.on { color: var(--brand); }
.tool-fly .tf-i svg { width: 18px; height: 18px; flex: none; }
.tool-fly .tf-i span { flex: 1; }
.tool-fly kbd { font: 600 10px var(--mono); color: var(--muted); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 4px; }
.tool-fly .tf-star { color: var(--muted); opacity: .35; font-size: 13px; }
.tool-fly .tf-star:hover { opacity: .8; }
.tool-fly .tf-star.on { color: var(--gold, #d9a23b); opacity: 1; }
.draw-bar { flex-wrap: wrap; max-width: calc(100% - 20px); }
.draw-bar .db-name { font: 700 11px var(--font); color: var(--muted); padding: 0 6px 0 2px; white-space: nowrap; }
.draw-bar .sep { width: 1px; align-self: stretch; background: var(--line-2); margin: 0 2px; }
.draw-bar button.on { background: var(--panel-3); color: var(--brand); }
.draw-bar .sw-pick { position: relative; overflow: hidden; background: conic-gradient(#ec4b57, #d9a23b, #1fae7a, #2a9fb6, #3b7cf6, #9b7cf0, #ec4b57); }
.draw-bar .sw-pick input { position: absolute; inset: -6px; opacity: 0; cursor: pointer; }
.ds .ds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ds input[type=color] { width: 100%; height: 36px; padding: 2px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel); }
.ds input[type=range] { width: 100%; }
.ds .ds-chk { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 4px; font-size: 13px; color: var(--text-2); }
.ds .ds-chk label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.ds .ds-coords { margin-top: 10px; }
.ds .ds-coords summary { cursor: pointer; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.dl-list { display: flex; flex-direction: column; gap: 2px; max-height: 60vh; overflow: auto; }
.dl-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.dl-row:hover, .dl-row.on { background: var(--panel-3); }
.dl-row .dl-sw { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dl-row .dl-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-row .dl-p { color: var(--muted); font-size: 11px; }
.dl-row button { border: 0; background: transparent; color: var(--text-2); width: 26px; height: 26px; border-radius: 6px; cursor: pointer; }
.dl-row button:hover { background: var(--panel-2); color: var(--text); }
.dl-row button.danger:hover { color: var(--down); }
@media (max-width: 760px) { .tool-fly { left: 54px !important; min-width: 200px; } }

/* ---------- v2.5.3 admin console layout + phone cards ---------- */
.wrap.wrap-wide { max-width: 1680px; }
@media (min-width: 861px) { .side-layout { grid-template-columns: 210px minmax(0, 1fr); } }
.side-layout > * { min-width: 0; }
.adm-page .card { min-width: 0; }
.adm-page .card-h { flex-wrap: wrap; }
.adm-page .adm-search { width: 260px; max-width: 100%; }
.adm-table th, .adm-table td { padding: 9px 10px; vertical-align: middle; }
.adm-table .adm-email { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.adm-table td.adm-acts { white-space: nowrap; text-align: right !important; }
.adm-table td.adm-acts .btn + .btn { margin-left: 6px; }
.adm-table .btn.sm { white-space: nowrap; }
@media (max-width: 1280px) {
  .adm-page .side-layout { grid-template-columns: 1fr; }
  .adm-page .side-nav { position: static; display: flex; overflow-x: auto; gap: 4px; padding-bottom: 4px; scrollbar-width: none; }
  .adm-page .side-nav button { white-space: nowrap; flex: none; gap: 6px; }
}
@media (max-width: 760px) {
  .adm-page { padding: 0 12px; }
  .adm-page .page-head h1 { font-size: 26px; }
  .adm-page .side-layout { margin-top: 14px; gap: 14px; }
  .adm-page .card-h { padding: 12px; }
  .adm-page .adm-search { width: 100%; }
  .adm-page .stat-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .adm-table, .adm-table tbody { display: block; width: 100%; }
  .adm-table thead { display: none; }
  .adm-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 12px; border-bottom: 1px solid var(--line); }
  .adm-table tbody tr:hover { background: none; }
  .adm-table td { display: flex; flex-direction: column; gap: 2px; padding: 0; border: 0; text-align: left !important; white-space: normal; min-width: 0; font-size: 13px; }
  .adm-table td::before { content: attr(data-label); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
  .adm-table td:first-child, .adm-table td.adm-email, .adm-table td.adm-acts, .adm-table td[colspan] { grid-column: 1 / -1; }
  .adm-table td:first-child::before, .adm-table td.adm-acts::before, .adm-table td:last-child::before, .adm-table td[colspan]::before { display: none; }
  .adm-table td:first-child { font-size: 15px; }
  .adm-table .adm-email { max-width: none; overflow-wrap: anywhere; }
  .adm-table td.adm-acts, .adm-table td:last-child { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 6px; margin-top: 4px; }
  .adm-table td.adm-acts:empty { display: none; }
  .adm-table td > .badge, .adm-table td > a { align-self: flex-start; }
  .adm-table select.input { width: 100% !important; max-width: 140px; }
  .adm-page .tech-table, .adm-page .tbl:not(.adm-table) { display: block; overflow-x: auto; }
}
@media (min-width: 761px) {
  .adm-table td.adm-acts { position: sticky; right: 0; background: var(--panel); box-shadow: -10px 0 12px -8px rgba(0,0,0,.45); }
  .adm-table tbody tr:hover td.adm-acts { background: var(--panel-2); }
}
@media (max-width: 1440px) {
  .adm-page .side-layout { grid-template-columns: 1fr; }
  .adm-page .side-nav { position: static; display: flex; overflow-x: auto; gap: 4px; padding-bottom: 4px; scrollbar-width: none; }
  .adm-page .side-nav button { white-space: nowrap; flex: none; gap: 6px; }
}

/* ---------- v2.6 social login ---------- */
.social-btns { display: grid; gap: 8px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font: 600 14px var(--font, inherit); cursor: pointer; transition: background .15s, border-color .15s; }
.social-btn:hover { background: var(--panel-3); border-color: var(--muted); }
.social-btn.google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.social-btn.google:hover { background: #f4f6f8; }
.social-btn.facebook { background: #1877f2; color: #fff; border-color: #1877f2; }
.social-btn.facebook:hover { background: #166fe0; }
.social-btn.facebook svg path:first-child { fill: #fff; }
.social-btn.facebook svg path:last-child { fill: #1877f2; }
.or-line { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.or-line::before, .or-line::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.oa-uri { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; margin-bottom: 12px; }
.oa-uri code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.oa-box { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-top: 12px; }
.oa-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.oa-h svg { width: 22px; height: 22px; }
.oa-steps { margin: 0 0 12px; font-size: 13px; color: var(--text-2); }
.oa-steps summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.oa-steps ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.5; }
.oa-steps a { color: var(--brand); }
.conn-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.conn-row:last-child { border-bottom: 0; }
.conn-row svg { width: 22px; height: 22px; flex: none; }
.conn-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.conn-row small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
/* v2.6.1 settings/admin on phones: one-line swipeable tabs */
@media (max-width: 860px) {
  .side-nav { gap: 4px; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav button, .side-nav a { white-space: nowrap; flex: none; }
}

/* ---------- v2.7 install as an app ---------- */
.pwa-bar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 70; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.45); animation: pwaUp .35s ease-out; }
.pwa-bar img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.pwa-bar > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pwa-bar b { font-size: 14px; }
.pwa-bar span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pwa-x { border: 0; background: none; color: var(--muted); width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 14px; }
@keyframes pwaUp { from { transform: translateY(120%); opacity: 0; } to { transform: none; opacity: 1; } }
.pwa-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; line-height: 1.5; }
.ios-share { display: inline-block; width: 18px; height: 20px; vertical-align: -4px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 26' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V2M7 7l5-5 5 5'/%3E%3Cpath d='M8 10H5a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V11a1 1 0 0 0-1-1h-3'/%3E%3C/svg%3E"); }
.ios-add { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1.5px solid currentColor; border-radius: 5px; font-size: 13px; line-height: 1; vertical-align: -3px; }
.app-page { padding-bottom: 30px; }
.app-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 40px 0 30px; }
.app-hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.08; margin: 10px 0 14px; letter-spacing: -.02em; }
.app-hero .lead { font-size: 17px; color: var(--text-2); max-width: 560px; line-height: 1.6; margin: 0 0 24px; }
.app-action { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.app-action .btn.lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 12px; display: inline-flex; gap: 10px; align-items: center; }
.app-action .btn.lg svg { width: 20px; height: 20px; }
.app-ok, .app-warn, .app-ios { padding: 14px 16px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); max-width: 520px; line-height: 1.6; }
.app-ok { border-color: color-mix(in srgb, var(--up) 50%, transparent); }
.app-warn { border-color: color-mix(in srgb, #d9a23b 60%, transparent); }
.app-ios ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.app-hero-pic { display: flex; justify-content: center; }
.app-phone { width: min(280px, 70vw); aspect-ratio: 9 / 16; border-radius: 34px; border: 8px solid #20262f; background: #0b0e14; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.5), 0 0 0 1px #2c333d; }
.app-phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 10px 0 18px; }
.app-feats .card { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.app-feats span { color: var(--text-2); font-size: 13px; line-height: 1.5; }
.dl-tabs { margin: 4px 0 14px; }
.app-guide ol { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 10px; line-height: 1.6; }
.app-guide .kbd { border: 1px solid var(--line-2); border-radius: 5px; padding: 0 5px; }
.faq { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--text-2); margin: 8px 0 0; line-height: 1.6; }
@media (max-width: 860px) { .app-hero { grid-template-columns: 1fr; padding-top: 20px; gap: 26px; } .app-feats { grid-template-columns: 1fr 1fr; } .app-hero-pic { order: 2; } }
@media (max-width: 480px) { .app-feats { grid-template-columns: 1fr; } .app-action .btn.lg { width: 100%; justify-content: center; } }
/* running as an installed app: respect the notch */
html.is-app body { padding-top: env(safe-area-inset-top); }
/* header install button */
.hdr-install { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px 0 9px; border-radius: 99px; border: 1px solid color-mix(in srgb, #13a26d 60%, transparent); background: color-mix(in srgb, #13a26d 16%, transparent); color: #2fd394; font: 600 13px var(--font, inherit); cursor: pointer; white-space: nowrap; flex: none; }
.hdr-install:hover { background: color-mix(in srgb, #13a26d 26%, transparent); }
.hdr-install svg { width: 16px; height: 16px; }
.hdr-install.hidden { display: none; }
@media (max-width: 400px) { .hdr-install { padding: 0 9px; gap: 4px; font-size: 12px; } .hdr-actions { gap: 6px; } }
@media (max-width: 340px) { .hdr-install span { display: none; } .hdr-install { width: 32px; padding: 0; justify-content: center; } }
.hdr-install.busy { opacity: .6; pointer-events: none; }
.hdr-install.busy svg { animation: pwaBounce .6s ease-in-out infinite alternate; }
@keyframes pwaBounce { to { transform: translateY(3px); } }
.pwa-one { display: flex; flex-direction: column; gap: 6px; line-height: 1.55; }
.pwa-one span { color: var(--text-2); }
.pwa-ios-steps { display: grid; gap: 10px; }
.pwa-ios-steps > div { display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; align-items: center; padding: 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); font-size: 15px; }
.pwa-ios-steps small { grid-column: 2; color: var(--muted); font-size: 12px; margin-top: 3px; }
.pwa-n { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: #13a26d; color: #fff; display: grid; place-items: center; font-weight: 700; }
.pwa-arrow { text-align: center; font-size: 26px; color: #3b82f6; animation: pwaBounce .7s ease-in-out infinite alternate; }
.pwa-ios-steps p { margin: 0; }

/* ---------- v2.8 TradingView widgets for markets without our own feed ---------- */
.tv-host { position: absolute; inset: 0; z-index: 8; background: var(--bg); }
.tvw-box { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; }
.tvw-box .tradingview-widget-container__widget { flex: 1; min-height: 0; width: 100%; }
.tvw-box iframe { display: block; }
.tvw-box .tradingview-widget-copyright { font-size: 11px; line-height: 22px; text-align: right; padding: 0 8px; color: var(--muted); }
.tvw-box .tradingview-widget-copyright a { color: var(--muted); text-decoration: none; }
.tvw-box .tradingview-widget-copyright .blue-text { color: #2962ff; }
.pane.is-tv .legend, .pane.is-tv .overlay, .pane.is-tv .draw-bar, .pane.is-tv .pane-status { display: none !important; }
body.tv-mode #tools { visibility: hidden; }
body.tv-mode #indBtn, body.tv-mode #typeBtn, body.tv-mode #logBtn, body.tv-mode #autoBtn, body.tv-mode #alertBtn, body.tv-mode #styleBtn { opacity: .45; }
.tv-chip { display: inline-block; font: 700 9px/1 var(--font, inherit); letter-spacing: .04em; padding: 3px 5px; border-radius: 4px; background: color-mix(in srgb, #2962ff 18%, transparent); color: #6b8cff; vertical-align: middle; }
.tv-ticket { display: grid; gap: 8px; align-content: start; }
.tv-ticket p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.55; }
.tv-ticket .btn { justify-self: start; }
.tv-quotes { margin-top: 14px; overflow: hidden; }
.tvq-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tvq-head span { font-size: 12px; }
.tvq-body { width: 100%; }
.tv-go { display: flex; flex-wrap: wrap; gap: 6px; }
/* Greenback mark on our charts (bottom-left, above the time axis) */
.gb-wm { position: absolute; left: 10px; bottom: 36px; z-index: 4; opacity: .55; transition: opacity .15s; text-decoration: none; }
.gb-wm:hover { opacity: 1; }
.gb-wm .logo-mark { width: 26px; height: 26px; font-size: 10px; border-radius: 7px; margin: 0; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.pane.is-tv .gb-wm { display: none; }

/* ---------- v2.9 indicators picker, ICT tools, drawing settings ---------- */
.ind-grp { font: 700 10px var(--font, inherit); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 4px 6px; }
.ind-item.on { border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.ind-item.on .tag { color: var(--brand); }
.ind-set { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ind-chk { display: grid; gap: 8px; font-size: 13px; color: var(--text-2); }
.ind-chk label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.ds-tabs { margin-bottom: 14px; width: 100%; }
.ds-tabs button { flex: 1; }
.fib-lv { display: grid; gap: 6px; max-height: 280px; overflow: auto; }
.fib-row { display: grid; grid-template-columns: 22px 1fr 44px 32px; gap: 8px; align-items: center; }
.fib-row input[type=color] { width: 44px; height: 32px; padding: 2px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel); }
.fib-row .input { height: 32px; }

/* ---------- v2.10 timeframes menu, candle countdown, bar replay, member gates ---------- */
.tf-group #tfMore { min-width: 24px; padding: 0 5px; color: var(--muted); }
.tf-menu { position: fixed; z-index: 60; width: 220px; max-height: 70vh; overflow: auto; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; }
.tf-menu .tf-h { font: 700 10px var(--font, inherit); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 8px 4px; }
.tf-menu .tf-i { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--text-2); }
.tf-menu .tf-i:hover { background: var(--panel-3); color: var(--text); }
.tf-menu .tf-i.on { color: var(--brand); }
.tf-menu .tf-star { color: var(--muted); opacity: .35; }
.tf-menu .tf-star.on { color: var(--gold, #d9a23b); opacity: 1; }
.bar-timer { position: absolute; z-index: 5; height: 17px; line-height: 17px; text-align: center; font: 600 11px var(--mono); color: #fff; pointer-events: none; border-radius: 0 0 3px 3px; opacity: .92; }
.bar-timer.hidden { display: none; }
.pane-main.replay-pick { cursor: crosshair; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand) 60%, transparent); }
.pane.in-replay .pane-main { box-shadow: inset 0 0 0 1px color-mix(in srgb, #d9a23b 60%, transparent); }
#replayBtn.on { color: var(--brand); background: var(--panel-3); }
.replay-bar { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); width: max-content; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; max-width: calc(100% - 24px); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); font-size: 13px; }
.replay-bar .rp-t { font-weight: 700; color: #d9a23b; }
.replay-bar select.input { height: 30px; width: 70px; padding: 0 6px; }
.replay-bar .rp-when { font-size: 11px; }
.guest-wall { position: fixed; inset: 0; z-index: 150; background: rgba(3, 6, 5, .72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; }
.gw-card, .gate-card { max-width: 480px; width: 100%; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; padding: 26px; display: grid; gap: 12px; justify-items: center; text-align: center; box-shadow: var(--shadow); }
.gw-card h2, .gate-card h2 { margin: 4px 0 0; font-size: 21px; }
.gw-card p, .gate-card p { margin: 0; color: var(--text-2); line-height: 1.6; }
.gw-card ul { list-style: none; padding: 0; margin: 0; color: var(--text-2); font-size: 14px; display: grid; gap: 4px; }
.gw-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ideas-gated { position: relative; }
.ideas-gated .idea { filter: blur(5px); pointer-events: none; user-select: none; opacity: .7; }
.ideas-gated .gate-card { position: absolute; z-index: 3; left: 50%; top: 40px; transform: translateX(-50%); }
.idea-locked .gate-card { max-width: none; }
.ideas-gated { min-height: 460px; }

/* ---------- v2.10.1 drawing tools on phones: slide-out toolbar + pencil button ---------- */
.draw-fab { display: none; }
@media (max-width: 860px) {
  .ca-mid { position: relative; }
  .ca-mid > .ca-left { display: flex; position: absolute; left: 0; top: 0; bottom: 0; width: 50px; z-index: 25; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 6px 0 18px rgba(0,0,0,.35); overflow-y: auto; padding-bottom: 60px; }
  body.tools-open .ca-mid > .ca-left { transform: none; }
  .ca-left .icon-btn { width: 40px; height: 38px; }
  .draw-fab { display: grid; place-items: center; position: absolute; left: 10px; bottom: 44px; z-index: 26; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); box-shadow: 0 4px 14px rgba(0,0,0,.4); cursor: pointer; }
  .draw-fab svg { width: 20px; height: 20px; }
  .draw-fab.on { background: var(--brand); color: #fff; border-color: var(--brand); }
  body.tools-open .draw-fab { left: 60px; }
  .gb-wm { display: none; }
  .tool-fly { left: 58px !important; max-height: 70vh; overflow-y: auto; }
  .draw-bar { top: 8px; }
}
.ind-item .ind-rm { margin-left: 8px; color: var(--down); }

/* ---------- v2.11 native apps: download page, phone tab bar, in-app tweaks ---------- */
.dl-cards { display: grid; gap: 10px; max-width: 520px; }
.dl-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-2); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.dl-card:hover { border-color: var(--brand); transform: translateY(-1px); }
.dl-card.mine { border-color: color-mix(in srgb, var(--brand) 70%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.dl-card > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dl-card small { color: var(--muted); font-size: 12px; }
.dl-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-3); flex: none; }
.dl-ico svg { width: 22px; height: 22px; }
#dlAndroid .dl-ico { color: #3ddc84; } #dlWindows .dl-ico { color: #3b9cf6; } #dlIos .dl-ico { color: var(--text); }
/* inside the apps: no download/install prompts */
.in-app #nav a[href="/app"], .in-app .footer a[href="/app"], .in-app #pwaHdr, .in-app #pwaBar { display: none !important; }
/* phone app layout: bottom tab bar */
.app-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--panel); border-top: 1px solid var(--line-2); }
.app-tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); text-decoration: none; font: 600 10.5px var(--font, inherit); }
.app-tabs a svg { width: 21px; height: 21px; }
.app-tabs a.on { color: var(--brand); }
html.has-tabs body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
html.has-tabs body.page-chart { height: 100dvh; }
html.has-tabs .footer, html.has-tabs .burger, html.has-tabs .pwa-bar { display: none !important; }
html.has-tabs .toasts { bottom: 74px; }
.app-more { display: grid; }
.app-more a { display: flex; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; }
.app-more a span { color: var(--muted); }
/* v2.11: header fits the extra "Download" link on laptop screens */
.gb-header .btn, .hdr-actions a { white-space: nowrap; }
@media (min-width: 861px) and (max-width: 1440px) {
  .nav a { padding: 7px 8px; }
  .hdr-search { flex: 0 0 34px; padding: 0; justify-content: center; }
  .hdr-search span, .hdr-search kbd { display: none; }
}
@media (min-width: 861px) and (max-width: 1180px) {
  .nav a { padding: 6px 6px; font-size: 12.5px; }
}
/* app update bar sits above the bottom tabs and stays on one line */
html.has-tabs .upd-bar { bottom: calc(68px + env(safe-area-inset-bottom)); width: calc(100vw - 24px); justify-content: space-between; font-size: 12.5px; padding: 8px 8px 8px 12px; }
html.has-tabs .upd-bar span { flex: 1; min-width: 0; }


/* ---------- 2.12: chart tools (Supercharts + championship) ---------- */
canvas.overlay { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 3; }
.chart-nav { position: absolute; left: 50%; bottom: 38px; transform: translateX(-50%); z-index: 7; display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: color-mix(in srgb, var(--panel-2) 88%, transparent); border: 1px solid var(--line-2); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .18s; }
.chart-nav.show, .chart-nav:hover { opacity: 1; pointer-events: auto; }
.chart-nav button { width: 30px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); font: 700 15px var(--font); cursor: pointer; }
.chart-nav button:hover { background: var(--panel-3); color: var(--text); }
.ctx-menu { min-width: 230px; max-height: calc(100vh - 12px); overflow: auto; }
.mini-tools { position: absolute; left: 6px; top: 8px; z-index: 6; display: flex; flex-direction: column; gap: 1px; padding: 3px; max-height: calc(100% - 40px); overflow-y: auto; scrollbar-width: none; border-radius: 9px; background: color-mix(in srgb, var(--panel-2) 90%, transparent); border: 1px solid var(--line-2); }
.mini-tools button { width: 26px; height: 24px; flex: none; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--text-2); cursor: pointer; padding: 0; }
.mini-tools button svg { width: 15px; height: 15px; }
.mini-tools button:hover { background: var(--panel-3); color: var(--text); }
.mini-tools button.on { background: var(--panel-3); color: var(--brand); }
.older-tip { position: absolute; left: 50px; top: 10px; z-index: 6; padding: 4px 10px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text-2); font: 600 11px var(--font); }
.cmp-chart-body .draw-bar { top: 8px; }
@media (max-width: 700px) { .mini-tools { flex-direction: row; flex-wrap: wrap; max-width: calc(100% - 70px); } .mini-tools button { width: 26px; height: 26px; } }

/* ---------- 2.13: live calendar ---------- */
.cal-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 color-mix(in srgb, var(--up) 60%, transparent); animation: livepulse 1.6s infinite; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.cal-row.flash { animation: calflash 6s ease-out; }
@keyframes calflash { 0%, 30% { background: color-mix(in srgb, var(--brand) 22%, transparent); } 100% { background: transparent; } }
.cal-row b.up { color: var(--up); } .cal-row b.down { color: var(--down); }
.cal-wait { color: var(--warn, #d9a23b); font-weight: 600; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .35; } }
/* admin member panel */
.adm-member { max-width: 1000px; }
.adm-m-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; }
.adm-m-acts { display: flex; flex-direction: column; gap: 8px; }
.adm-m-acts h4, .adm-m-info h4 { margin: 10px 0 2px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.adm-row { display: flex; gap: 6px; align-items: center; } .adm-row.wrap { flex-wrap: wrap; } .adm-row .input { min-width: 0; flex: 1; }
.adm-dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; margin: 14px 0; font-size: 13px; } .adm-dl dt { color: var(--muted); } .adm-dl dd { margin: 0; }
.adm-mini { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 5px 0; border-bottom: 1px solid var(--line); } .adm-mini a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge.warn { background: color-mix(in srgb, #d9a23b 20%, transparent); color: #d9a23b; }
.btn.danger { background: var(--down); color: #fff; border-color: transparent; }
@media (max-width: 760px) { .adm-m-grid { grid-template-columns: 1fr; } }

/* ---------- 2.13: chart settings (sections on the left) ---------- */
.cs-modal { max-width: 780px; width: calc(100vw - 24px); }
.cs-modal .modal-b { padding: 0; }
.cs2 { display: grid; grid-template-columns: 190px 1fr; min-height: 430px; }
.cs-nav { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; border-right: 1px solid var(--line); }
.cs-nav button { text-align: left; padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font: 600 13px var(--font); cursor: pointer; }
.cs-nav button:hover { background: var(--panel-3); color: var(--text); }
.cs-nav button.on { background: var(--panel-3); color: var(--text); box-shadow: inset 3px 0 0 var(--brand); }
.cs-body { padding: 14px 20px 18px; max-height: min(62vh, 560px); overflow: auto; }
.cs-body h5 { margin: 14px 0 8px; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.cs-body h5:first-child { margin-top: 2px; }
.cs-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 5px 0; }
.cs-row > span { color: var(--text-2); font-size: 13px; }
.cs-row > div { display: flex; gap: 8px; align-items: center; }
.cs-row select.input { min-width: 220px; height: 34px; }
.cs-row input[type=color], .cs-body input[type=color] { width: 34px; height: 30px; padding: 2px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel-2); cursor: pointer; }
.cs-chk { display: flex; gap: 9px; align-items: center; padding: 6px 0; font-size: 13px; color: var(--text-2); cursor: pointer; }
.cs-chk.inline { padding: 0; }
.cs-tpl { margin-right: auto; }
@media (max-width: 640px) { .cs2 { grid-template-columns: 1fr; } .cs-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); } .cs-nav button { white-space: nowrap; } .cs-row select.input { min-width: 150px; } }

/* ---------- one-click Buy / Sell on the chart ---------- */
.qt { position: absolute; left: 10px; top: 36px; z-index: 6; display: flex; align-items: stretch; height: 40px; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.25); user-select: none; }
.qt.hidden { display: none; }
.qt button { border: 0; padding: 0 12px; min-width: 92px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; cursor: pointer; color: #fff; font-family: var(--mono); line-height: 1.1; }
.qt button small { font: 700 10px var(--font); letter-spacing: .06em; opacity: .85; }
.qt button b { font-size: 13px; }
.qt .qt-sell { background: var(--down); }
.qt .qt-buy { background: #2f6fed; align-items: flex-end; }
.qt button:hover { filter: brightness(1.12); }
.qt-qty { width: 76px; border: 0; border-left: 1px solid rgba(0,0,0,.2); border-right: 1px solid rgba(0,0,0,.2); background: var(--panel-2); color: var(--text); text-align: center; font: 600 13px var(--mono); -moz-appearance: textfield; }
.qt-qty::-webkit-inner-spin-button, .qt-qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cmp-chart-body .qt { top: 8px; left: 46px; }
@media (max-width: 700px) { .qt { top: auto; bottom: 40px; height: 36px; } .qt button { min-width: 74px; padding: 0 8px; } .qt-qty { width: 60px; } }

/* ---------- ✕ buttons on position lines ---------- */
.line-btns { position: absolute; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.line-x { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; align-items: center; gap: 0; height: 22px; padding: 0; border: 1px solid var(--line-2); border-radius: 5px; background: var(--panel-2); color: var(--text); font: 600 11px var(--mono); cursor: pointer; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.line-x span { padding: 0 7px; }
.line-x b { display: grid; place-items: center; width: 22px; height: 100%; border-left: 1px solid var(--line-2); font-size: 11px; }
.line-x:hover b { background: var(--down); color: #fff; }
.line-x.win span { color: var(--up); } .line-x.loss span { color: var(--down); }

/* ---------- floating chat window ---------- */
.chat-btn { position: relative; }
.chat-btn .live-dot { width: 6px; height: 6px; margin-left: 2px; }
.chat-btn.on { background: var(--panel-3); color: var(--brand); }
.chat-win { position: fixed; right: 18px; bottom: 18px; z-index: 80; width: 360px; max-width: calc(100vw - 24px); height: 480px; max-height: calc(100vh - 90px); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.45); overflow: hidden; resize: both; }
.chat-win-h { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); cursor: move; background: var(--panel-2); }
.chat-win-h .seg button { height: 26px; font-size: 12px; }
.chat-win-b { flex: 1; min-height: 0; display: flex; }
.chat-win-b > .chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-win-b .chat-list { flex: 1; min-height: 0; overflow: auto; }
@media (max-width: 600px) { .chat-win { right: 8px; left: 8px; width: auto; bottom: 70px; height: 60vh; resize: none; } }
.pane-main.qt-on .legend-sym { margin-bottom: 48px; }
.pane-main.qt-on .qt { top: 32px; }
.adm-m-acts .btn.ghost, .adm-m-info .btn.ghost { border: 1px solid var(--line-2); justify-content: center; }
.adm-m-acts > .btn { width: 100%; justify-content: center; }

/* ---------- 2.14: chat — private rooms, dates, images, emojis ---------- */
.chat { position: relative; }
.chat.drop::after { content: 'Drop the screenshot to share it'; position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 18%, transparent); border: 2px dashed var(--brand); border-radius: 10px; font-weight: 700; color: var(--text); z-index: 5; }
.chat-h-acts { margin-left: auto; display: flex; gap: 6px; }
.chat.compact .chat-h-acts .btn { height: 26px; padding: 0 8px; }
.chat-day { display: flex; align-items: center; gap: 10px; color: var(--muted); font: 600 11px var(--font); text-transform: uppercase; letter-spacing: .05em; margin: 4px 0; }
.chat-day::before, .chat-day::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.chat-day span { padding: 2px 10px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel-2); }
.chat-sys { text-align: center; font-size: 12px; color: var(--muted); }
.chat-img { display: block; margin-top: 6px; max-width: min(100%, 360px); max-height: 240px; border-radius: 8px; border: 1px solid var(--line-2); cursor: zoom-in; object-fit: contain; background: var(--panel-2); }
.chat-att { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-2); }
.chat-att img { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line-2); }
.chat-att .icon-btn { margin-left: auto; }
.chat-emoji { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 2px; padding: 8px; max-height: 160px; overflow: auto; border-top: 1px solid var(--line); background: var(--panel-2); }
.chat-emoji button { border: 0; background: transparent; font-size: 20px; height: 34px; border-radius: 6px; cursor: pointer; }
.chat-emoji button:hover { background: var(--panel-3); }
.chat-in { align-items: center; }
.chat-in .icon-btn { flex: none; font-size: 17px; }
.chat-in .input { min-width: 0; flex: 1; }
.room-top { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.room-top button[data-r] { flex: 1; }
.private-btn { white-space: nowrap; }
.chat-win-h .seg button[data-priv].on { color: var(--brand); }
.img-view { max-width: min(96vw, 1400px); width: auto; }
.img-view .modal-b { padding: 10px; display: grid; gap: 10px; }
.img-view img { max-width: 100%; max-height: 80vh; display: block; margin: 0 auto; border-radius: 8px; cursor: zoom-out; }
.img-view-a { display: flex; gap: 8px; justify-content: flex-end; }
/* championship: full screen chart */
.cmp-chart.cmp-full { position: fixed; inset: 0; z-index: 70; border-radius: 0; margin: 0; max-width: none; width: 100vw; height: 100vh; }
.cmp-chart.cmp-full .cmp-chart-body { flex: 1; height: auto; min-height: 0; }
.cmp-chart:fullscreen { background: var(--bg); }
body.no-scroll { overflow: hidden; }
/* championship record of a trader */
.ct-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.ct-stats { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.ct-stats div { display: grid; } .ct-stats span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; } .ct-stats b { font: 700 16px var(--mono); }
.ct-h { margin: 14px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
tr.ct-row { cursor: pointer; } tr.ct-row:hover td { background: var(--panel-2); }

/* ---------- 2.14: language picker ---------- */
.lang-btn { width: auto; padding: 0 8px; gap: 4px; display: inline-flex; align-items: center; font: 700 11px var(--mono); }
.lang-btn svg { width: 17px; height: 17px; }
.lang-modal { max-width: 640px; }
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px; max-height: 56vh; overflow: auto; margin-top: 10px; }
.lang-grid button { text-align: left; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text-2); font: 500 13px var(--font); cursor: pointer; }
.lang-grid button:hover { background: var(--panel-3); color: var(--text); }
.lang-grid button.on { border-color: var(--brand); color: var(--text); }
/* hide the translator's own toolbar and tooltips */
.goog-te-banner-frame, iframe.skiptranslate, .skiptranslate > iframe, #goog-gt-tt, .goog-te-balloon-frame, .goog-tooltip, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
font[style] { vertical-align: inherit !important; }
html.rtl-lang main, html.rtl-lang .page-head, html.rtl-lang .card p { direction: rtl; }
/* chat window header: keep the room buttons on one line */
.chat-win-h { flex-wrap: nowrap; }
.chat-win-h .seg { display: flex; flex-wrap: nowrap; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.chat-win-h .seg button { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; flex: none; }
.chat-win-h > a { white-space: nowrap; flex: none; }
.room-top .private-btn { height: 34px; display: inline-flex; align-items: center; gap: 4px; }
.room-top button[data-r] { height: 34px; }
/* championship board: trades button */
.ct-btn { height: 26px; padding: 0 10px; font-size: 12px; }
.adm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 6px; }
.adm-kpis div { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.adm-kpis span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); } .adm-kpis b { font-size: 17px; }
.adm-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.cmp-season { padding: 10px 14px; margin-bottom: 12px; font-size: 13px; }
.cmp-season:empty { display: none; }
.cmp-tfs { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; scrollbar-width: none; }
.cmp-tfs button { flex: none; }
.bottom-tabs .acct-sel, .acct-sel { height: 30px; width: auto !important; flex: 0 0 auto; max-width: 210px; padding: 0 26px 0 8px; font-size: 12px; font-weight: 600; margin-right: 6px; align-self: center; }
.acct-stats, .acct-stats > * { white-space: nowrap; }
#bottom.acct-comp .bottom-tabs { box-shadow: inset 0 -2px 0 #d9a23b; }

/* ---------- 2.15: idea comments — replies, likes, star ratings ---------- */
.cmt-body { min-width: 0; flex: 1; }
.cmt-tools { display: flex; gap: 12px; margin-top: 4px; font-size: 12px; }
.cmt-tools .link-btn { font-size: 12px; color: var(--muted); }
.cmt-like.on { color: var(--down); }
.cmt-replies { margin-top: 6px; border-left: 2px solid var(--line); padding-left: 10px; }
.cmt-replies:empty { display: none; }
.comment.reply { padding: 6px 0; }
.cmt-replyto { font-size: 12px; color: var(--text-2); margin-top: 8px; padding: 6px 10px; border-radius: 8px; background: var(--panel-2); }
.idea-rate { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.stars { display: inline-flex; }
.stars button { border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--line-2); cursor: pointer; padding: 0 1px; transition: transform .1s; }
.stars button.on { color: #f5b301; }
.stars:not(.ro):hover button { color: #f5b301; }
.stars:not(.ro) button:hover ~ button { color: var(--line-2); }
.stars button:hover { transform: scale(1.15); }
.stars.ro button { cursor: default; }

/* ---------- 2.15: watchlist ---------- */
.side-x { margin-left: auto; flex: none; width: 34px; border: 0; background: transparent; color: var(--text-2); font-size: 15px; cursor: pointer; }
.side-x:hover { color: var(--down); }
@media (min-width: 1101px) { .side-x { display: none; } }
.side-close { width: 26px; height: 26px; }
@media (min-width: 1101px) { .side-close { display: none; } }
.wl-acts { display: flex; gap: 4px; align-items: center; }
.wl-acts .icon-btn { width: 28px; height: 28px; font-size: 16px; }
.wl-headrow { cursor: default; font: 600 10px var(--font); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-top: 5px; padding-bottom: 5px; background: var(--panel-2); }
.wl-headrow:hover { background: var(--panel-2); }
.wl-lbl { min-width: 0; }
.wl-row .sym-badge { width: 24px; height: 24px; font-size: 7px; }
.wl-row b.wl-name { font: 600 12px var(--font); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-row .rm { opacity: .35; font-size: 14px; cursor: pointer; }
.wl-sec { display: flex; align-items: center; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.wl-sec-h { flex: 1; display: flex; align-items: center; gap: 7px; padding: 8px 12px; border: 0; background: transparent; color: var(--text-2); font: 650 11.5px/1.2 var(--font); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; text-align: left; }
.wl-sec-h small { color: var(--muted); font: 600 10.5px var(--font); letter-spacing: 0; background: var(--panel-3); border-radius: 9px; padding: 1px 7px; }
.wl-sec .chev { font-size: 9px; color: var(--muted); width: 10px; }
.wl-sec .chev { transition: transform .15s; display: inline-block; }
.wl-sec.shut .chev { transform: rotate(-90deg); }
.wl-sec .rm { opacity: .6; margin-right: 10px; border: 0; background: none; color: var(--text-2); cursor: pointer; }
@media (max-width: 1100px) { .ca-mid.side-open .ca-side { width: min(340px, 92vw); } }

/* ---------- 2.15: floating favourites bar ---------- */
.fav-float { position: absolute; z-index: 8; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 6px 22px rgba(0,0,0,.18); user-select: none; }
.fav-float .icon-btn { width: 32px; height: 32px; }
.fav-float .icon-btn svg { width: 19px; height: 19px; }
.fav-float .icon-btn.on { background: var(--panel-3); color: var(--brand); }
.fav-grip { cursor: grab; color: var(--muted); padding: 0 4px; font-size: 12px; letter-spacing: -2px; }
.fav-grip:active { cursor: grabbing; }
.fav-float .fav-x { width: 22px; height: 22px; font-size: 11px; color: var(--muted); }

/* ---------- 2.15: sleeker one-click trading ---------- */
.qt { height: 32px; border-radius: 7px; box-shadow: 0 1px 6px rgba(0,0,0,.18); }
.qt button { min-width: 72px; padding: 0 8px; }
.qt button small { font-size: 9px; letter-spacing: .05em; }
.qt button b { font-size: 11.5px; font-weight: 600; }
.qt-qty { width: 58px; font-size: 12px; }
.pane-main.qt-on .legend-sym { margin-bottom: 38px; }
@media (max-width: 700px) { .qt { height: 30px; } .qt button { min-width: 64px; } .qt-qty { width: 50px; } }

/* ---------- 2.15: roomier drawing settings bar ---------- */
.draw-bar { gap: 6px; padding: 7px 10px; border-radius: 12px; }
.draw-bar .sw { width: 20px; height: 20px; }
.draw-bar button { height: 32px; min-width: 32px; padding: 0 10px; border-radius: 8px; font-size: 13px; }
.draw-bar button svg { width: 17px; height: 17px; }
.draw-bar .db-name { font-size: 12.5px; }
.draw-bar .sep { height: 22px; }
.fp-canvas { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2; }
/* ---------- 2.15: script editor ---------- */
.us-modal { max-width: 860px; }
.us-code { width: 100%; min-height: 300px; font: 13px/1.55 var(--mono); tab-size: 2; white-space: pre; resize: vertical; padding: 12px; }
.us-status { font-size: 12.5px; min-height: 18px; margin: 6px 0; }
.us-help summary { cursor: pointer; font-size: 13px; color: var(--text-2); }
.us-help div { font-size: 12.5px; color: var(--text-2); line-height: 1.6; }
.us-help code { background: var(--panel-2); padding: 1px 4px; border-radius: 4px; }
/* 2.19.3: short position lines + label mode select */
.pos-segs { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.pos-seg { position: absolute; height: 0; }
.pos-seg i { position: absolute; left: 0; top: -9px; font: 700 9px/1 var(--mono, monospace); color: #fff; padding: 3px 4px; border-radius: 3px; font-style: normal; }
.pos-vert { position: absolute; width: 0; border-left: 1px dotted; opacity: .55; }
.ds-sel { display: flex; align-items: center; gap: 8px; width: 100%; }
.ds-sel select { height: 30px; flex: 1; max-width: 260px; }
.chat-alert { position: relative; display: flex; gap: 10px; padding: 11px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); border-left: 3px solid var(--brand); box-shadow: var(--shadow); animation: toastIn .22s ease-out; font-size: 13px; transition: opacity .25s, transform .25s; }
.chat-alert.out { opacity: 0; transform: translateX(20px); }
.chat-alert .ca-b { flex: 1; min-width: 0; }
.chat-alert .ca-h { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; padding-right: 20px; }
.chat-alert .ca-room { font: 600 11px var(--mono, monospace); color: var(--brand); background: var(--panel-3); padding: 1px 6px; border-radius: 4px; }
.chat-alert .ca-t { color: var(--text-2); line-height: 1.45; word-break: break-word; }
.chat-alert .ca-a { display: flex; gap: 6px; margin-top: 8px; }
.chat-alert .ca-x { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; }
/* 2.16: chart type menu */
.menu.ct-menu { min-width: 230px; max-height: calc(100vh - 90px); overflow-y: auto; padding: 6px; }
.menu.ct-menu button { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; font-size: 13px; }
.menu.ct-menu .ct-ic { display: inline-flex; width: 18px; justify-content: center; color: var(--text-2); }
.menu.ct-menu button:has(.ct-lbl.on) { background: var(--text); color: var(--bg); }
.menu.ct-menu button:has(.ct-lbl.on) .ct-ic { color: var(--bg); }
.menu.ct-menu hr { margin: 5px 4px; }
#typeBtn svg { flex: none; }

.toast.out, .chat-alert.out { opacity: 0; transform: translateY(10px); }
.toast-x { position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.toast-x:hover { background: var(--panel-3); color: var(--text); }
.toast-x svg { width: 13px; height: 13px; }
/* watchlist drag & drop */
.wl-row[data-sym] { touch-action: pan-y; }
body.wl-dnd, body.wl-dnd * { cursor: grabbing !important; user-select: none; }
.wl-row.wl-dragging { opacity: .35; }
.wl-ghost { position: fixed; z-index: 400; pointer-events: none; background: var(--panel-2); border: 1px solid var(--brand); border-radius: 8px; box-shadow: var(--shadow); opacity: .95; }
.wl-row.wl-drop-before { box-shadow: inset 0 2px 0 var(--brand); }
.wl-row.wl-drop-after { box-shadow: inset 0 -2px 0 var(--brand); }
.wl-sec.wl-drop-in { background: color-mix(in srgb, var(--brand) 18%, var(--panel-2)); }

/* resizable chart layout */
.split-v, .split-h { position: absolute; z-index: 6; background: transparent; transition: background .15s; }
.split-v { top: 0; bottom: 0; width: 7px; cursor: col-resize; }
.split-h { left: 0; right: 0; height: 7px; cursor: row-resize; }
.split-v:hover, .split-h:hover, .split-v.on, .split-h.on { background: color-mix(in srgb, var(--brand) 55%, transparent); }
.ca-side { position: relative; }
.side-grip { position: absolute; left: -3px; top: 0; bottom: 0; width: 7px; cursor: col-resize; z-index: 8; }
.side-grip:hover, .side-grip.on { background: color-mix(in srgb, var(--brand) 55%, transparent); }
body.col-resizing, body.col-resizing * { cursor: col-resize !important; user-select: none; }
body.row-resizing, body.row-resizing * { cursor: row-resize !important; user-select: none; }
@media (max-width: 1100px) { .side-grip { display: none; } }

/* ===== 2.16 Live streams ===== */
.nav-live { display: inline-flex; align-items: center; gap: 7px; margin-left: 6px; padding: 6px 13px; border: 0; border-radius: 8px; background: #16a34a; color: #fff; font: 650 13.5px var(--font); cursor: pointer; box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 4px 14px rgba(22,163,74,.28); transition: background .15s, transform .1s; }
.nav-live:hover, .nav-live.active { background: #15803d; }
.nav-live:active { transform: scale(.97); }
.nav-live i { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: livePulse 1.6s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.menu .mi-ic { font-size: 18px; width: 26px; display: inline-flex; justify-content: center; }
.menu button:has(.mi-sub) { display: flex; align-items: center; gap: 10px; padding: 9px 12px; text-align: left; }
.menu .mi-sub { display: block; color: var(--muted); font-size: 11.5px; font-weight: 500; margin-top: 1px; }
.live-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 28px 0 8px; }
.live-head h1 { margin: 0 0 4px; font-size: 28px; }
.live-head p { margin: 0; max-width: 620px; }
.live-go { background: #16a34a; border-color: #16a34a; }
.live-h { margin: 26px 0 12px; font-size: 15px; letter-spacing: .02em; }
.ls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ls-card { display: block; border-radius: 12px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .15s, border-color .15s; cursor: pointer; }
.ls-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.ls-thumb { position: relative; aspect-ratio: 16 / 9; background: #05070a center / cover no-repeat; }
.ls-live { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 5px; background: #e11d2e; color: #fff; font: 700 11px var(--mono, monospace); letter-spacing: .06em; }
.ls-live i, .dot-live { width: 7px; height: 7px; border-radius: 50%; background: #fff; display: inline-block; animation: blink 1.2s infinite; }
.dot-live { background: #e11d2e; margin-right: 6px; }
@keyframes blink { 50% { opacity: .25; } }
.ls-view, .ls-ended, .ls-sym { position: absolute; bottom: 9px; padding: 2px 7px; border-radius: 5px; background: rgba(0,0,0,.72); color: #fff; font: 600 11px var(--mono, monospace); }
.ls-view, .ls-ended { left: 10px; } .ls-sym { right: 10px; color: #4ade80; }
.ls-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 34px; text-shadow: 0 2px 12px rgba(0,0,0,.6); opacity: .85; }
.ls-del { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border: 0; border-radius: 6px; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; }
.ls-meta { display: flex; gap: 10px; padding: 11px 12px 13px; align-items: flex-start; }
.ls-meta b { display: block; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ls-meta small { color: var(--muted); font-size: 12px; }
.ls-empty { grid-column: 1 / -1; display: grid; gap: 8px; justify-items: center; padding: 40px 20px; }
.ls-room { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; margin: 20px 0 30px; align-items: start; }
.ls-info h1 { font-size: 20px; margin: 14px 0 10px; }
.ls-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ls-who { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.ls-who small { display: block; color: var(--muted); font-size: 12px; }
.ls-stat { color: var(--text-2); font: 600 13px var(--mono, monospace); display: inline-flex; align-items: center; }
#lsLike.liked { border-color: #e11d2e; color: #e11d2e; }
.ls-chat { position: sticky; top: 76px; height: min(78vh, 720px); display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.ls-chat-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ls-chat-b { flex: 1; min-height: 0; display: flex; flex-direction: column; }
body.tp-theater .ls-room { grid-template-columns: 1fr; }
body.tp-theater .ls-chat { position: static; height: 460px; }
@media (max-width: 980px) { .ls-room { grid-template-columns: 1fr; } .ls-chat { position: static; height: 520px; } }
/* terminal player */
.tp { position: relative; border-radius: 12px; overflow: hidden; background: #05070a; border: 1px solid #1f2937; box-shadow: 0 0 0 1px rgba(34,197,94,.08), 0 18px 50px rgba(0,0,0,.35); outline: none; }
.tp-screen { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(ellipse at center, #0b1410 0%, #05070a 70%); }
.tp-yt, .tp-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tp-hud { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; pointer-events: none; font: 600 11px var(--mono, monospace); color: #d1fae5; letter-spacing: .08em; background: linear-gradient(rgba(5,7,10,.65), rgba(5,7,10,0)); }
.tp-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 7px; border-radius: 4px; background: rgba(34,197,94,.18); border: 1px solid rgba(34,197,94,.45); color: #4ade80; }
.tp.is-live .tp-tag { background: #e11d2e; border-color: #e11d2e; color: #fff; }
.tp-tag i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
.tp-sym { color: #4ade80; } .tp-clock { margin-left: auto; color: #9ca3af; }
.tp-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(22,163,74,.9); color: #fff; cursor: pointer; box-shadow: 0 0 0 8px rgba(22,163,74,.2); }
.tp-big svg { width: 30px; height: 30px; margin-left: 4px; }
.tp-wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: #9ca3af; font: 500 13px var(--mono, monospace); text-align: center; padding: 20px; background: #05070a; }
.tp-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #1f2937; border-top-color: #22c55e; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tp-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: linear-gradient(#0b0f15, #080b10); border-top: 1px solid #1f2937; color: #d1d5db; font: 600 12px var(--mono, monospace); }
.tp-b { display: inline-flex; align-items: center; gap: 6px; height: 32px; min-width: 32px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: #e5e7eb; cursor: pointer; font: inherit; }
.tp-b:hover { background: #111827; color: #4ade80; }
.tp-edge { color: #f87171; } .tp-edge.behind { color: #9ca3af; }
.tp-edge span { font-size: 11px; letter-spacing: .08em; }
.tp-vol { width: 84px; accent-color: #22c55e; }
.tp-time { min-width: 90px; color: #9ca3af; padding: 0 6px; }
.tp-seek { position: relative; flex: 1; height: 6px; border-radius: 3px; background: #1f2937; margin: 0 8px; }
.tp-seek-f { position: absolute; left: 0; top: 0; bottom: 0; background: #22c55e; border-radius: 3px; width: 0; }
.tp-seek-r { position: absolute; inset: -6px 0; width: 100%; opacity: 0; cursor: pointer; }
.tp-q { height: 28px; border-radius: 6px; border: 1px solid #1f2937; background: #0b0f15; color: #d1d5db; font: inherit; padding: 0 6px; }
.tp:fullscreen { border-radius: 0; display: flex; flex-direction: column; }
.tp:fullscreen .tp-screen { flex: 1; aspect-ratio: auto; }
@media (max-width: 640px) { .tp-vol, .tp-q, .tp-time { display: none; } }
/* go live */
.gl { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 18px; margin: 24px 0 36px; align-items: start; }
.gl-guide h1 { margin: 0 0 6px; font-size: 24px; }
.gl-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 16px; }
.gl-step { display: flex; gap: 14px; }
.gl-step p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.gl-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #16a34a; color: #fff; font-weight: 700; }
.gl-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-top: 8px; }
.gl-ways > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--panel-2); }
.gl-ways span { display: block; color: var(--text-2); font-size: 13px; margin-top: 4px; line-height: 1.5; }
.gl-form { position: sticky; top: 76px; display: grid; gap: 12px; }
.gl-form h2, .gl-form h3 { margin: 0; }
.gl-form hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; width: 100%; }
.gl-prev { display: flex; align-items: center; gap: 10px; color: var(--up); font-weight: 600; }
.gl-prev img { width: 120px; border-radius: 8px; }
@media (max-width: 900px) { .gl { grid-template-columns: 1fr; } .gl-form { position: static; } }
/* profile stream */
.p-live { display: flex; gap: 14px; align-items: center; padding: 12px; margin: 14px 0 0; text-decoration: none; color: inherit; border-color: #e11d2e66; }
.p-live-th { position: relative; width: 200px; aspect-ratio: 16 / 9; border-radius: 8px; background: #000 center / cover; flex: none; }
.p-live b { display: block; font-size: 16px; margin: 3px 0 8px; }
.p-live-k { color: #e11d2e; font-weight: 700; }
.p-stream-acts { display: flex; gap: 8px; margin-top: 16px; }
.gl-guide, .gl-form { padding: 22px; }
.ls-chat .chat { height: 100%; border: 0; border-radius: 0; }
/* v2.17 admin: streams + premium */
.adm-thumb { width: 72px; height: 40px; object-fit: cover; border-radius: 6px; background: var(--bg-3, #1a2030); flex: none; display: grid; place-items: center; font-size: 11px; color: var(--muted); }
.adm-mini-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.adm-mini-stats b { color: var(--text); font-weight: 650; }
.adm-inline-form { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.adm-inline-form #blUser { width: 180px; }
.adm-pform { display: grid; gap: 12px; }
.adm-pform .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.adm-pform label.chk { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-2); }
@media (max-width: 560px) { .adm-pform .row2 { grid-template-columns: 1fr; } }
.badge.prem { margin-left: 4px; padding: 0 4px; background: transparent; font-size: 12px; }
.adm-acts .btn + .btn { margin-left: 4px; }
/* v2.17 smoothness: lite mode for low-power devices + calmer chart loading */
html.lite *, html.lite *::before, html.lite *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
html.lite .gb-header, html.lite .modal-bg, html.lite .guest-wall, html.lite .idea-img .pill, html.lite .idea-img .st-chip { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html.lite .gb-header { background: var(--bg); }
html.lite .card, html.lite .modal, html.lite .menu { box-shadow: none !important; }
.pane.pane-loading .pane-main > div:first-child { opacity: .55; transition: opacity .15s; }

.wl-row { contain: layout style; }
/* v2.18 stream player: only the video, never YouTube's own interface */
.tp-crop { position: absolute; inset: 0; overflow: hidden; }
.tp-crop > div, .tp-crop iframe { position: absolute; inset: auto; left: 0; width: 100%; top: -64px; height: calc(100% + 128px); border: 0; pointer-events: none; }
.tp-shield { position: absolute; inset: 0; z-index: 2; cursor: pointer; background: transparent; }
.tp-cover { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: radial-gradient(ellipse at center, #0b1410 0%, #05070a 75%); opacity: 0; pointer-events: none; transition: opacity .35s; }
.tp.covered .tp-cover { opacity: 1; pointer-events: auto; cursor: pointer; }
.tp-cover-in { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 120px; text-align: center; }
.tp-cover-logo svg { width: 34px; height: 34px; opacity: .9; }
.tp-cover-t { color: #e5fbe9; font: 650 15px var(--font); letter-spacing: .01em; }
.tp-cover-s { color: #6b7d72; font: 500 11px var(--mono, monospace); letter-spacing: .08em; text-transform: uppercase; }
.tp-hud { z-index: 4; }
.tp-big { z-index: 5; }
.tp-wait { z-index: 6; }
/* v2.18 admin member panel */
.modal.adm-member { max-width: 920px; width: calc(100vw - 32px); }
.mp-title { display: inline-flex; align-items: center; gap: 10px; }
.mp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.mp-who { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.mp-who a { color: var(--brand); }
.mp-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mp-chips .badge { font-size: 11.5px; padding: 3px 8px; }
.badge.prem-chip { background: rgba(124, 92, 255, .14); color: #8b6dff; }
.mp-tabs { display: flex; flex-wrap: wrap; margin-bottom: 16px; width: 100%; }
.mp-tabs button { flex: 1 1 auto; }
.mp-pane { min-height: 320px; }
.mp-two { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; }
.mp-h { margin: 18px 0 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.mp-pane > .mp-h:first-child { margin-top: 2px; }
.mp-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: start; padding: 6px 0; }
.mp-l { font-size: 13px; color: var(--muted); padding-top: 9px; font-weight: 550; }
.mp-c { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mp-c > .input, .mp-c > select.input, .mp-c > textarea.input { width: 100%; }
.mp-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mp-inline > .input { flex: 1 1 140px; min-width: 0; width: auto; }
.mp-inline > select.input { flex: 0 0 auto; }
.mp-inline label.chk { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; white-space: nowrap; }
.mp-note { font-size: 12px; }
.mp-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 4px 142px; }
.mp-item { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid #d9a23b; border-radius: 8px; font-size: 13px; }
.mp-item .muted { margin-top: 3px; }
.btn.warn-btn { background: #d9a23b; color: #1a1205; border-color: #d9a23b; font-weight: 650; }
.mp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 6px; }
.mp-stats > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.mp-stats span { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.mp-stats b { font-size: 18px; }
.mp-stats small { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-danger { border: 1px solid rgba(239, 68, 68, .35); background: rgba(239, 68, 68, .05); border-radius: 12px; padding: 18px; }
.mp-danger p { margin: 6px 0 14px; }
@media (max-width: 720px) {
  .mp-two { grid-template-columns: 1fr; }
  .mp-row { grid-template-columns: 1fr; gap: 4px; }
  .mp-l { padding-top: 0; }
  .mp-list { margin-left: 0; }
  .mp-stats { grid-template-columns: repeat(2, 1fr); }
}
/* v2.18 support chat */
.sup-cta { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 16px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 10px; background: var(--bg-2, rgba(127,127,127,.04)); }
.sup-cta div { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.sup-cta span { color: var(--muted); }
.sup-cta .btn { flex: none; }
.sup-line { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.sup-line a { color: var(--brand); font-weight: 600; }
.modal.sup-modal { max-width: 520px; }
.sup-form { display: grid; gap: 10px; }
.sup-log { height: min(52vh, 420px); overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2, rgba(127,127,127,.03)); }
.sup-msg { max-width: 82%; display: flex; flex-direction: column; gap: 3px; }
.sup-msg small { font-size: 11px; color: var(--muted); }
.sup-msg .sup-b { padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; word-wrap: break-word; }
.sup-msg.me { align-self: flex-end; align-items: flex-end; }
.sup-msg.me .sup-b { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.sup-msg.staff, .sup-msg.them { align-self: flex-start; }
.sup-msg.staff .sup-b, .sup-msg.them .sup-b { background: var(--card, #fff); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.sup-sys { align-self: center; max-width: 90%; text-align: center; font-size: 12px; color: var(--muted); padding: 6px 10px; border-radius: 8px; background: rgba(127,127,127,.08); }
.sup-note { align-self: stretch; font-size: 12px; padding: 6px 10px; border-radius: 8px; background: rgba(217,162,59,.12); color: var(--text-2); }
.sup-note small { color: var(--muted); margin-left: 6px; }
.sup-reset { display: flex; margin-top: 8px; justify-content: center; }
.sup-send { display: flex; gap: 8px; margin-top: 10px; align-items: stretch; }
.sup-send textarea { flex: 1; resize: none; min-height: 46px; }
.sup-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; gap: 8px; }
.sup-admin .sup-grid { display: grid; grid-template-columns: 300px 1fr; gap: 14px; min-height: 560px; }
.sup-list { border-right: 1px solid var(--line); padding-right: 12px; display: flex; flex-direction: column; min-width: 0; }
#supItems { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; max-height: 640px; }
.sup-it { text-align: left; background: none; border: 1px solid transparent; border-radius: 10px; padding: 9px 10px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; color: inherit; font: inherit; }
.sup-it:hover { background: rgba(127,127,127,.06); }
.sup-it.on { border-color: var(--brand); background: rgba(34,197,94,.06); }
.sup-it > div { display: flex; align-items: center; gap: 6px; }
.sup-it > div small { margin-left: auto; color: var(--muted); font-size: 11px; }
.sup-it .muted { font-size: 12px; }
.sup-it.unread b { color: var(--brand); }
.sup-dot { background: #ef4444; color: #fff; border-radius: 9px; font-size: 10px; padding: 0 6px; font-weight: 700; }
.sup-prev { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-conv { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sup-ch { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.sup-acc { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.sup-acc-it { display: flex; gap: 10px; align-items: center; }
.sup-acc-it > div:nth-child(2) { flex: 1; min-width: 0; font-size: 13px; }
.sup-acc-it.linked { background: rgba(34,197,94,.06); border-radius: 8px; padding: 4px 6px; margin: -4px -6px; }
.sup-warn { font-size: 11.5px; }
.sup-conv .sup-log { height: 340px; }
.sup-tpl { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.sup-tpl .btn { flex: none; font-size: 12px; }
@media (max-width: 860px) { .sup-admin .sup-grid { grid-template-columns: 1fr; } .sup-list { border-right: 0; padding-right: 0; } #supItems { max-height: 260px; } }
/* v2.18 security monitor */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sec-head h2 { margin: 0; font-size: 20px; }
.sec-head .seg { margin: 0 !important; }
.sec-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-bottom: 14px; }
.sec-grid .card { margin: 0; }
.sec-chart { display: flex; align-items: flex-end; gap: 2px; height: 150px; padding: 6px 0 18px; }
.sec-bar { flex: 1; height: 100%; display: flex; flex-direction: column-reverse; position: relative; background: rgba(127,127,127,.05); border-radius: 2px; }
.sec-bar i { display: block; width: 100%; }
.sec-bar i.lo { background: rgba(217,162,59,.65); }
.sec-bar i.hi { background: #ef4444; border-radius: 2px 2px 0 0; }
.sec-bar span { position: absolute; bottom: -17px; left: 0; font-size: 10px; color: var(--muted); white-space: nowrap; }
.sec-key { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin: 0 4px 0 10px; vertical-align: -1px; }
.sec-key.hi { background: #ef4444; } .sec-key.lo { background: rgba(217,162,59,.75); }
.sec-types { display: flex; flex-direction: column; gap: 4px; }
.sec-type { display: flex; align-items: center; gap: 10px; background: none; border: 0; border-radius: 8px; padding: 6px 8px; cursor: pointer; color: inherit; font: inherit; text-align: left; }
.sec-type:hover { background: rgba(127,127,127,.07); }
.sec-type span:nth-child(2) { flex: 1; font-size: 13px; }
.sec-sev { min-width: 54px; text-align: center; font-size: 11px; }
.sec-tlist { display: flex; flex-wrap: wrap; gap: 4px; max-width: 360px; }
.sec-tlist span { font-size: 11px; padding: 2px 6px; border-radius: 6px; background: rgba(127,127,127,.1); }
.sec-ip { cursor: pointer; color: var(--brand); }
.sec-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.sec-check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.sec-check > span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; }
.sec-check.ok > span { background: rgba(34,197,94,.15); color: #16a34a; }
.sec-check.bad > span { background: rgba(239,68,68,.15); color: #ef4444; }
.sec-check div { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.sec-check small { color: var(--muted); }
.sec-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.sec-filters .input { width: auto; }
.sec-filters #secQ { min-width: 220px; }
.sec-ev td { vertical-align: top; }
.sec-path, .sec-ua { display: block; max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.sec-watch { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.sec-watch > div { display: grid; grid-template-columns: 28px 1fr; gap: 2px 8px; font-size: 13px; }
.sec-watch span { grid-row: span 2; font-size: 20px; }
.sec-watch small { color: var(--muted); }
@media (max-width: 900px) { .sec-grid { grid-template-columns: 1fr; } }
/* v2.18 championship history window */
.modal.ct-modal { max-width: 900px; width: calc(100vw - 32px); }
.ct-tbl { width: 100%; table-layout: auto; font-size: 12.5px; }
.ct-tbl th, .ct-tbl td { padding: 7px 8px; vertical-align: top; }
.ct-tbl th { font-size: 11px; white-space: nowrap; }
.ct-tbl td.r, .ct-tbl th.r { text-align: right; }
.ct-tbl td { font-family: var(--mono); white-space: nowrap; }
.ct-tbl td:first-child { font-family: var(--font); }
.ct-tbl td small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.ct-side { font-size: 11px; font-weight: 650; margin-left: 4px; }
.ct-pen { margin: 4px 0 6px; padding: 8px 12px; border-radius: 8px; background: rgba(239,68,68,.08); color: #ef4444; font-size: 13px; }
.ct-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; position: sticky; bottom: -1px; background: var(--panel); padding: 10px 0 2px; border-top: 1px solid var(--line); }
.ct-foot select.input { width: auto; max-width: 240px; }
@media (max-width: 640px) { .ct-tbl th:nth-child(2), .ct-tbl td:nth-child(2) { display: none; } .ct-tbl { font-size: 11.5px; } .ct-tbl th, .ct-tbl td { padding: 6px 4px; } }
.mp-c > .btn, .mp-c > button { align-self: flex-start; }
.modal.adm-member .btn.ghost { border: 1px solid var(--line); }
.modal.adm-member .btn.ghost:hover { border-color: var(--muted); }
.mp-c > b, .mp-c > span, .mp-c > code { padding-top: 9px; }
.stat-cards.sec-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .stat-cards.sec-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .stat-cards.sec-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* v2.19 Android app (2.0): website pages inside the app get an app bar instead of the site header */
html.app-native #gb-header, html.app-native .footer, html.app-native #gb-footer, html.app-native .ticker, html.app-native #appTabs, html.app-native #pwaHdr, html.app-native #pwaBar, html.app-native .upd-bar.site { display: none !important; }
html.app-native body { padding-top: 54px; -webkit-tap-highlight-color: transparent; }
html.app-native body.page-chart { height: 100dvh; box-sizing: border-box; }
.app-bar { position: fixed; top: 0; left: 0; right: 0; height: 54px; z-index: 95; display: flex; align-items: center; gap: 2px; padding: 0 4px; background: var(--bg); border-bottom: 1px solid var(--line); box-sizing: border-box; }
.app-bar b { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-left: 2px; }
.app-bar-b { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--text); display: grid; place-items: center; flex: none; }
.app-bar-b svg { width: 23px; height: 23px; }
.app-bar-b:active { background: var(--panel-3); }
html.app-native .modal-bg { align-items: flex-end; padding: 0; }
html.app-native .modal { width: 100%; max-width: 100%; border-radius: 20px 20px 0 0; max-height: 92vh; }
html.app-native .toasts { left: 12px; right: 12px; bottom: 14px; }

/* ---- Supercharts on phones: everything fits the screen width (toolbars scroll sideways instead of widening the page) ---- */
@media (max-width: 760px) {
  .ca-top, .bottom-tabs { scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .ca-top::-webkit-scrollbar, .bottom-tabs::-webkit-scrollbar { display: none; }
  .bottom-tabs { overflow-x: auto; overflow-y: hidden; padding: 0 6px; gap: 2px; min-width: 0; }
  .bottom-tabs > * { flex: none; }
  .bottom-tabs .acct-sel { width: 132px; height: 30px; font-size: 12px; }
  .bottom-tabs > button.tab { padding: 0 9px; }
  .ca-mid, .pane, .panes { min-width: 0; max-width: 100vw; }
  .ca-mid { overflow: hidden; }
  .fav-float { max-width: calc(100% - 12px); overflow-x: auto; scrollbar-width: none; }
  .fav-float::-webkit-scrollbar { display: none; }
  .fav-float > * { flex: none; }
}
