/* Markets Desk: dark (default) and light colour sets. The html element carries data-theme="dark|light". */
/* palette: deep navy with one electric blue. Dark is the default. */
:root {
  --bg: #070d1c; --panel: #0e1730; --panel-2: #132042; --line: #1c2a52; --line-2: #2a3d70;
  --text: #f2f6ff; --muted: #8fa0c4;
  --accent: #2f7bff; --accent-2: #5aa0ff; --accent-g: #2f7bff; --on-accent: #ffffff;
  --violet: #7aa2ff; --pink: #ff6b81; --teal: #4cc9d9; --up: #2ebd85; --down: #f6465d;
  --glass: linear-gradient(var(--panel), var(--panel));
  --r: 10px;
  --font-display: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --font-num: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --fd: var(--font-display); --fb: var(--font-body); --fn: var(--font-num);
  --i1: #0a1226; --i2: #0a1226; --i3: #0a1226; --i4: #080f20; --i5: #101c3a; --i6: #182749;
  --topbg: rgba(7, 13, 28, .88); --topbg-solid: rgba(7, 13, 28, .98); --drawer: #0a1226;
  --tint: rgba(140, 170, 255, .07);
  --shadow: rgba(0, 0, 0, .4);
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f6fd; --panel: #ffffff; --panel-2: #eaf0fb; --line: #d9e2f3; --line-2: #c0cde8;
  --text: #0c1830; --muted: #566a8c;
  --accent: #1f5fe0; --accent-2: #1a4fc0; --accent-g: #1f5fe0; --on-accent: #ffffff;
  --violet: #2f5fd0; --pink: #c9324b; --teal: #0a7f8c; --up: #0a8f5c; --down: #cf2f49;
  --glass: linear-gradient(var(--panel), var(--panel));
  --i1: #eef2f3; --i2: #eef2f3; --i3: #f3f6f7; --i4: #ffffff; --i5: #e9eef0; --i6: #dde5e8;
  --topbg: rgba(255, 255, 255, .92); --topbg-solid: rgba(255, 255, 255, .98); --drawer: #ffffff;
  --tint: rgba(14, 26, 31, .06);
  --shadow: rgba(20, 50, 60, .12);
}
html[data-theme="light"] :is(.join, .ax-card, .prev, .pv, .ax-sec) { box-shadow: 0 14px 40px var(--shadow); }
html[data-theme="light"] :is(.qc, .box, .card, .tool, .bcard, .tbl, .tl, .an, .sc, .mc, .rec div) { box-shadow: 0 1px 2px var(--shadow); }
html[data-theme="light"] .ax-pill { background: var(--tint); }
html[data-theme="light"] .ax-pill.on { background: rgba(11,143,99,.14); color: var(--up); }
html[data-theme="light"] .ax-meter i { background: #ddd4ee; }
html[data-theme="light"] .ax-in input:focus { box-shadow: 0 0 0 3px rgba(168,95,0,.18); }
html[data-theme="light"] .ax-spin { border-color: rgba(255,255,255,.4); border-top-color: #fff; }
html[data-theme="light"] .evticker { background: linear-gradient(90deg, #f1e4ff, #e9e0fb); }
html[data-theme="light"] .evticker.hot { background: linear-gradient(90deg, #ffe0ea, #f7dcf0); }
html[data-theme="light"] .evt-lab { color: #fff; }
html[data-theme="light"] .evt-lab .dot { background: #fff; }
html[data-theme="light"] .menu-btn { background: var(--tint); }
html[data-theme="light"] .pill.on, html[data-theme="light"] .pill.on * { color: #fff; }
html[data-theme="light"] .live .rm { background: #1a1330; }
html[data-theme="light"] .tabs button.on, html[data-theme="light"] .ax-tabs button.on { color: #fff; }
html[data-theme="light"] ::selection { background: rgba(168,95,0,.25); }

/* theme switch button */
.tswitch { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; min-width: 38px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font: 600 14px/1 var(--font-body, var(--fb, system-ui)); cursor: pointer; }
.tswitch:hover { background: var(--tint); }
.tswitch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tswitch svg { width: 18px; height: 18px; flex: none; }
.tswitch .sun { display: none; }
html[data-theme="light"] .tswitch .sun { display: block; }
html[data-theme="light"] .tswitch .moon { display: none; }
.top .tswitch + .btn, .top [data-theme-slot] + .btn { margin-left: 0; }

/* ---------- skin: flat, precise, no glow ---------- */
html body::before, html[data-theme] body::before { background: var(--bg) !important; }
html body { font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
html body :is(h1, h2, h3, .brand, .ax-brand) { font-family: var(--font-display); letter-spacing: -.02em; }
html body :is(h1, h2) { font-weight: 600; }
html body .brand span, html body h1 em, html body .ax-brand span { background: none !important; -webkit-background-clip: initial; background-clip: initial; color: var(--accent) !important; font-style: normal; }
html body .top { border-image: none; border-bottom: 1px solid var(--line); }
html body .head h2::before { background: var(--accent); width: 3px; border-radius: 2px; }
html body :is(.pf, .dcard) { background: var(--panel); border-radius: 12px; }
html body :is(.qc, .box, .card, .tool, .bcard, .tbl, .tl, .an, .sc, .mc, .rec div, .live, .xr, .dp, .join, .prev, .pv, .ax-card, .ax-sec) { border-radius: 12px; box-shadow: none; }
html body :is(.btn, .ctas a, .ax-btn, .tswitch) { border-radius: 8px; }
html body :is(.btn.primary, .btn.gold, .ctas a#joinBtn, .ax-btn:not(.ghost):not(.danger)) { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: none; }
html body :is(.btn.primary, .btn.gold, .ctas a#joinBtn, .ax-btn):hover { filter: brightness(1.08); }
html body :is(.chips a, .pill, .tabs button, .ax-tabs button, .tag, .eyebrow) { border-radius: 8px; }
html body .eyebrow { background: transparent; border: 1px solid var(--line-2); color: var(--muted); }
html body .bar i { background: var(--accent); }
html body .evticker, html body .evticker.hot { background: var(--panel-2); border-bottom: 1px solid var(--line); }
html body .evticker.hot { border-bottom-color: var(--down); }
html body .evt-lab { background: var(--accent); color: var(--on-accent); }
html body .evt-lab .dot { background: var(--on-accent); }
html body .evt-t { background: var(--panel-2); color: var(--accent); border: 1px solid var(--line-2); }
html[data-theme="light"] body .evt-lab { color: #fff; }
html[data-theme="light"] body .evt-lab .dot { background: #fff; }

/* ---------- home: market strip + grouped explore ---------- */
html body #top.hero { padding-block: 34px 26px; background: var(--bg); }
html body #top.hero::before, html body #top.hero::after { display: none; }
html body #top h1 { font-size: clamp(30px, 8vw, 52px); line-height: 1.08; max-width: 22ch; text-wrap: balance; }
html body #top .lede { max-width: 54ch; color: var(--muted); font-size: 17px; line-height: 1.55; }
html body #top .eyebrow { font: 500 13px/1 var(--font-body); padding: 8px 12px; }
html body #top .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
html body #top .actions .btn { padding: 13px 20px; font-weight: 600; font-size: 15px; }
html body #top .quotes { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 28px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
html body #top .quotes .qc { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n p" "n c"; align-items: center; column-gap: 12px; row-gap: 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 16px; background: transparent; }
html body #top .quotes .qc:last-child { border-bottom: 0; }
html body #top .quotes .qn { grid-area: n; display: flex; flex-direction: column; gap: 2px; }
html body #top .quotes .qn b { font-size: 17px; font-weight: 600; }
html body #top .quotes .qn span { font-size: 12px; color: var(--muted); }
html body #top .quotes .qp { grid-area: p; justify-self: end; font-size: 22px; font-weight: 500; }
html body #top .quotes .qch { grid-area: c; justify-self: end; font-size: 13px; }
html body #top .quotes .qs { display: none; }
@media (min-width: 760px) {
  html body #top .quotes { grid-template-columns: repeat(3, 1fr); }
  html body #top .quotes .qc { border-bottom: 0; border-right: 1px solid var(--line); }
  html body #top .quotes .qc:last-child { border-right: 0; }
}
html body #top .chips { margin-top: 18px; gap: 8px; }
html body #top .chips a { --c: var(--line-2); background: transparent; border: 1px solid var(--line-2); color: var(--text); font-weight: 500; padding: 8px 12px; }
html body #top .chips a:hover { border-color: var(--accent); color: var(--accent); }

html body #homeTiles { padding-top: 8px; padding-bottom: 8px; }
.hfeat { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: center; padding: 18px; border: 1px solid var(--accent); border-radius: 12px; background: var(--panel); text-decoration: none; color: var(--text); margin-bottom: 14px; }
.hfeat .hi { width: 44px; height: 44px; border-radius: 10px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.hfeat .hi svg { width: 24px; height: 24px; }
.hfeat .ht { display: flex; flex-direction: column; gap: 4px; }
.hfeat .ht b { font: 600 19px/1.2 var(--font-display); }
.hfeat .ht span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.hfeat .hcta { grid-column: 1 / -1; justify-self: start; padding: 10px 16px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font: 600 14px/1 var(--font-body); }
.hfeat:hover .hcta { filter: brightness(1.08); }
.hgroups { display: grid; gap: 14px; grid-template-columns: 1fr; }
.hg { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.hg h3 { margin: 0; padding: 14px 16px 10px; font: 600 13px/1 var(--font-body); color: var(--muted); }
.hrow { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 13px 16px; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); }
.hrow:hover, .hrow:focus-visible { background: var(--panel-2); outline: none; }
.hrow .hi { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--accent); background: var(--bg); }
.hrow .hi svg { width: 19px; height: 19px; }
.hrow .ht { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hrow .ht b { font: 600 15px/1.25 var(--font-body); }
.hrow .ht span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.hrow .go { width: 18px; height: 18px; color: var(--muted); }
.hrow:hover .go { color: var(--accent); transform: translateX(2px); transition: transform .15s; }
@media (min-width: 900px) {
  .hfeat { grid-template-columns: auto 1fr auto; }
  .hfeat .hcta { grid-column: auto; }
  .hgroups { grid-template-columns: repeat(3, 1fr); align-items: start; }
}

html body #top .quotes .qn { display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; row-gap: 1px; align-items: center; text-align: left; }
html body #top .quotes .qn .ico { grid-row: 1 / 3; width: 38px !important; height: 38px !important; }
html body #top .quotes .qn b, html body #top .quotes .qn span:not(.ico) { grid-column: 2; }
html body .mstats, html body #mstats { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
html body #homeTiles { padding-top: 22px; }

/* ---------- landing page ---------- */
html body .sh h2::before { background: var(--accent); width: 3px; }
html body .sh h2 { font-weight: 600; }
html body .hero h1 { font-weight: 600; letter-spacing: -.03em; }
html body .badge { color: var(--accent); background: transparent; border: 1px solid var(--line-2); border-radius: 8px; font-weight: 500; }
html body .badge i, html body .live i { background: var(--accent); }
html body .fc { --c: var(--accent) !important; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
html body .fc::after { display: none; }
html body .fi { width: 44px; height: 44px; border-radius: 10px; color: var(--accent); background: var(--bg); border: 1px solid var(--line-2); box-shadow: none; }
html body .fi svg { width: 22px; height: 22px; filter: none; }
html body .trust { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
html body .steps { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
html body .steps li { border-left-color: var(--line); }
html body .steps li::before { background: var(--accent); color: var(--on-accent); border-radius: 8px; }
html body .band { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
html body .pv, html body .prev { background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: none; }
html body .pvb, html body .pr, html body .pvbtc, html body .pvr { background: var(--bg); border-radius: 10px; }
html body .tabs { background: var(--bg); border-radius: 10px; }
html body .tabs button { border-radius: 8px; }
html body .tabs button.on { background: var(--accent); color: var(--on-accent); }
html body details.faq { border-radius: 10px; }
html body input[type=text], html body input[type=email] { background: var(--bg); border-radius: 10px; }
html body .tgl { color: var(--accent); }
@media (max-width: 440px) {
  html body .top .wrap { gap: 8px; }
  html body .top .brand { font-size: 20px; }
  html body .top .btn.sm { padding: 9px 11px; font-size: 13px; }
}

/* ---------- trade ticket: one flat card, hairline sections, no boxes inside boxes ---------- */
html body .cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; align-items: start; }
html body .cards .card { padding: 0; gap: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; position: relative; }
html body .cards .card > * { padding: 13px 16px; margin: 0; }
html body .cards .card > * + * { border-top: 1px solid var(--line); }
html body .cards .card.win, html body .cards .card.loss, html body .cards .card.rcard.win, html body .cards .card.rcard.loss { background: var(--panel); border-color: var(--line); }
html body .cards .card.win::before, html body .cards .card.loss::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--up); z-index: 1; }
html body .cards .card.loss::before { background: var(--down); }
html body .cards .card.old { opacity: .6; }

/* header */
html body .cards .card .row { padding-block: 12px; }
html body .cards .card .pair { font: 600 18px/1.1 var(--font-display); letter-spacing: -.01em; gap: 10px; }
html body .cards .card .pair .sample { background: var(--panel-2); color: var(--muted); border: 1px solid var(--line-2); font-size: 10px; border-radius: 4px; }
html body .side { font: 600 12px/1 var(--font-body); letter-spacing: .02em; padding: 6px 9px; border-radius: 6px; border: 0; }
html body .side.long { background: color-mix(in srgb, var(--up) 14%, transparent); color: var(--up); }
html body .side.short { background: color-mix(in srgb, var(--down) 14%, transparent); color: var(--down); }
html body .stbadge { border-radius: 6px; font: 600 12px/1 var(--font-body); padding: 6px 9px; }
html body .stbadge.up { background: color-mix(in srgb, var(--up) 14%, transparent); border-color: transparent; }
html body .stbadge.down { background: color-mix(in srgb, var(--down) 14%, transparent); border-color: transparent; }

/* levels: Stop | Entry | Target, plain columns */
html body .cards .card .levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding-block: 12px; }
html body .cards .card .levels .lv { background: transparent; border: 0; border-radius: 0; padding: 0 10px; border-left: 1px solid var(--line); }
html body .cards .card .levels .lv:first-child { padding-left: 0; border-left: 0; }
html body .cards .card .levels .lv.sl { order: 1; } html body .cards .card .levels .lv.en { order: 2; } html body .cards .card .levels .lv.tp { order: 3; }
html body .cards .card .levels .lv.sl { padding-left: 0; border-left: 0; } html body .cards .card .levels .lv.en { padding-left: 12px; border-left: 1px solid var(--line); }
html body .cards .card .lv small { font: 500 12px/1.2 var(--font-body); color: var(--muted); letter-spacing: 0; text-transform: none; margin-bottom: 4px; }
html body .cards .card .lv b { font: 500 14px/1.2 var(--font-num); white-space: nowrap; letter-spacing: -.01em; }

/* live area */
html body .cards .card .live, html body .cards .card .ncp { background: transparent; border: 0; border-radius: 0; display: flex; flex-direction: column; gap: 12px; margin-top: 0; }
html body :is(.live, .ncp) .lh { display: flex; justify-content: space-between; align-items: center; }
html body :is(.live, .ncp) .lvx { background: transparent; color: var(--text); border: 1px solid var(--line-2); border-radius: 6px; padding: 5px 8px; font: 600 12px/1 var(--font-num); }
html body :is(.live, .ncp) .lst { font: 500 12px/1 var(--font-body); color: var(--muted); gap: 7px; }
html body :is(.live, .ncp) .lst::before { background: var(--up); box-shadow: 0 0 0 3px color-mix(in srgb, var(--up) 22%, transparent); }
html body :is(.live, .ncp) .lt { align-items: flex-end; gap: 12px; }
html body :is(.live, .ncp) .lp small { font: 500 12px/1.2 var(--font-body); color: var(--muted); margin-bottom: 3px; }
html body :is(.live, .ncp) .lp b { font: 500 26px/1.1 var(--font-num); letter-spacing: -.03em; }
html body :is(.live, .ncp) .lp.r b { font-size: 26px; }
html body :is(.live, .ncp) .rt { height: 6px; border-radius: 3px; background: var(--i6); margin: 6px 0 2px; }
html body :is(.live, .ncp) .rf { border-radius: 3px; opacity: 1; }
html body :is(.live, .ncp) .re { top: -4px; height: 14px; width: 2px; background: var(--muted); }
html body :is(.live, .ncp) .rm { width: 12px; height: 12px; top: -3px; background: var(--text); border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--text); }
html body :is(.live, .ncp) .rl { margin-top: 6px; font-size: 12px; }

/* detail rows: label on the left, value on the right */
html body :is(.live, .ncp) .lg, html body :is(.live, .ncp) .lg4 { display: grid; grid-template-columns: 1fr; gap: 0; }
html body :is(.live, .ncp) .cl { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; background: transparent; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); padding: 9px 0; }
html body :is(.live, .ncp) .cl small { display: inline; font: 400 13px/1.3 var(--font-body); color: var(--muted); }
html body :is(.live, .ncp) .cl b { font: 500 13px/1.3 var(--font-num); text-align: right; overflow-wrap: anywhere; }
html body :is(.live, .ncp) .lg:last-of-type .cl:last-child, html body :is(.live, .ncp) .lg:last-child .cl:last-child { border-bottom: 0; }
html body :is(.live, .ncp) .lg + .lg { margin-top: -12px; }
html body :is(.live, .ncp) .ln { font-size: 11px; line-height: 1.5; color: var(--muted); }

/* probability and footer */
html body .cards .card .prob { gap: 7px; }
html body .prob .lab { font: 500 12px/1 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--muted); }
html body .prob .bar { height: 4px; border-radius: 2px; background: var(--i6); }
html body .cards .card .meta { font: 400 11.5px/1.5 var(--font-num); letter-spacing: 0; color: var(--muted); padding-block: 10px; background: var(--bg); }

/* closed trades */
html body .cards .card.rcard .hero2 { gap: 4px; padding-block: 14px; }
html body .hero2 b { font: 600 38px/1 var(--font-display); letter-spacing: -.03em; }
html body .hero2 span { font-size: 13px; }
html body .cards .card.rcard .pnl { font: 500 13px/1.4 var(--font-num); padding-block: 10px; }
html body .cards .card .xr { background: transparent; border: 0; border-radius: 0; display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
html body .xr small { font: 400 12px/1.2 var(--font-body); }
html body .xr b { font: 500 15px/1.2 var(--font-num); }
html body .xr > div:last-child { text-align: right; }

html body :is(.live, .ncp) .lst.up { color: var(--up); font-weight: 600; } html body :is(.live, .ncp) .lst.down { color: var(--down); font-weight: 600; }
html body :is(.live, .ncp) .lst.up::before { background: var(--up); box-shadow: none; } html body :is(.live, .ncp) .lst.down::before { background: var(--down); box-shadow: none; }
html body .res span, html body .res small, html body .rec span, html body .sc small { font-family: var(--font-body); font-size: 12px; letter-spacing: 0; text-transform: none; }
html body .cards .card .badges { flex-wrap: nowrap; gap: 6px; }
html body .cards .card .pair .pn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* compact, human-style open trade cards: key facts first, the rest under Details */
html body .cards .card { padding: 14px 14px 0; gap: 10px; }
html body :is(.live, .ncp) { padding: 0; border: 0; background: transparent; margin-top: 2px; gap: 8px; }
html body :is(.live, .ncp) .lh { justify-content: flex-start; gap: 10px; }
html body :is(.live, .ncp) .lvx { background: transparent; color: var(--muted); padding: 0; font: 500 12px/1 var(--font-body); border-radius: 0; }
html body :is(.live, .ncp) .lvx { border: 0; box-shadow: none; outline: 0; }
html body :is(.live, .ncp) .lp b, html body :is(.live, .ncp) .lp.r b { font-size: 20px; }
html body :is(.live, .ncp) .lp small { font-size: 11.5px; }
html body :is(.live, .ncp) .rl { display: none; }
html body .more { border-top: 1px solid var(--line); margin-top: 2px; }
html body .more > summary { list-style: none; cursor: pointer; padding: 8px 0 2px; font: 500 12px/1 var(--font-body); color: var(--muted); }
html body .more > summary::-webkit-details-marker { display: none; }
html body .more > summary::after { content: " \25BE"; }
html body .more[open] > summary::after { content: " \25B4"; }
html body .more .lg + .lg { margin-top: 0; }
html body .cards .card .meta { padding-block: 8px; }
html body .card.simple.rcard .cl { padding-block: 6px; }
html body .card.simple.rcard .ncp { gap: 4px; }

/* trades page: section headers and result chips */
html body .sh { align-items: center; margin: 4px 0 10px; }
html body .sh h3 { font: 600 15px/1.2 var(--font-body); letter-spacing: 0; color: var(--text); }
html body .sh .cnt { font: 500 12px/1 var(--font-num); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; }
html body .sh.closedh { margin-top: 24px; padding-top: 16px; }
html body .sumchips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
html body .sumchips .sc { display: inline-flex; align-items: center; gap: 7px; font: 500 12px/1 var(--font-body); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; }
html body .sumchips .sc i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
html body .sumchips .sc.up i { color: var(--up); } html body .sumchips .sc.down i { color: var(--down); }
html body .sumchips .sc { display: inline-block; white-space: nowrap; }
html body .sumchips .sc i { display: inline-block; vertical-align: middle; margin: 0 7px 1px 0; }

/* section header bar (Open positions / Closed trades) */
html body .tcol > .sh { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; border-top: 1px solid var(--line); }
html body .tcol > .sh::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
html body .tc-open > .sh::before { background: var(--up); box-shadow: 0 0 0 4px color-mix(in srgb, var(--up) 20%, transparent); }
html body .tc-closed > .sh::before { background: var(--muted); box-shadow: 0 0 0 4px color-mix(in srgb, var(--muted) 18%, transparent); }
html body .tcol > .sh h3 { flex: 1; font: 600 16px/1.2 var(--font-display); letter-spacing: -.01em; }
html body .tcol > .sh .cnt { background: var(--i2); border: 0; color: var(--text); font: 500 12px/1 var(--font-num); padding: 6px 10px; }
html body .tcol > .sh.closedh { margin-top: 0; padding-top: 12px; }
html body .morebtn { display: block; width: 100%; margin: 4px 0 14px; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: var(--text); font: 500 13px/1 var(--font-body); cursor: pointer; }
html body .morebtn[hidden] { display: none; }

/* Market stat tiles: har tile ka apna rang (BTC orange, ETH neela-jamni, Fear laal, Greed hara), bade digits, chhoti bar */
html body .mstats, html body #mstats { border: 0; background: none; padding: 0; gap: 12px; }
html body .mstats .ms { --mc: var(--accent); position: relative; overflow: hidden; gap: 6px; padding: 14px 16px 14px 18px; border-radius: 16px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--mc) 16%, var(--panel)) 0%, var(--panel) 62%); border: 1px solid color-mix(in srgb, var(--mc) 30%, var(--line)); }
html body .mstats .ms::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--mc); }
html body .mstats .ms .ml { font: 600 12.5px/1.2 var(--font-body); color: var(--muted); }
html body .mstats .ms .mv { font: 800 clamp(24px, 6.4vw, 30px)/1.05 var(--font-num); letter-spacing: -.5px; color: var(--mc); text-shadow: 0 0 22px color-mix(in srgb, var(--mc) 35%, transparent); }
html body .mstats .ms .mx { font: 600 12.5px/1.2 var(--font-body); color: var(--muted); background: none; border: 0; padding: 0; text-transform: none; letter-spacing: 0; }
html body .mstats .ms .mx.up { color: var(--up); } html body .mstats .ms .mx.down { color: var(--down); }
html body .mstats .ms.fg .mx { color: var(--mc); font-weight: 800; font-size: 14px; }
html body .mstats .ms .mbar { height: 6px; border-radius: 6px; background: color-mix(in srgb, var(--mc) 18%, transparent); position: relative; }
html body .mstats .ms .mbar i { display: block; height: 100%; border-radius: 6px; background: var(--mc); }
html body .mstats .ms .mbar.gauge { background: linear-gradient(90deg, #f6465d, #ff8a3d 35%, #8fa0c4 50%, #6fdc8c 70%, #2ebd85); }
html body .mstats .ms .mbar.gauge i.pin { position: absolute; top: -3px; width: 4px; height: 12px; border-radius: 3px; background: #fff; box-shadow: 0 0 0 2px rgba(7,13,28,.7); transform: translateX(-2px); }
html[data-theme="light"] body .mstats .ms { background: linear-gradient(160deg, color-mix(in srgb, var(--mc) 12%, #fff), #fff 70%); }
html[data-theme="light"] body .mstats .ms .mv { text-shadow: none; }

/* ---- professional pass: icon chips, blue accents ---- */
.head h2::before { background: linear-gradient(180deg, var(--accent-2), var(--accent)); }
html body .chips a { display: inline-flex; align-items: center; gap: 8px; }
html body .chips a .ic { width: 20px; height: 20px; flex: none; color: var(--c, var(--accent)); }
html body .chips a small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; }
html body .chips a.c1 { --c: #f7931a; } html body .chips a.c2 { --c: #5aa0ff; } html body .chips a.c3 { --c: #e8b84a; }
html body .chips a.c4 { --c: #3ed6c0; } html body .chips a.c5 { --c: #ff6b81; } html body .chips a.c6 { --c: #b6c2d9; } html body .chips a.c7 { --c: #ff8a3d; }
html body .chips.mkrow { margin: 0 0 14px; gap: 10px; }
html body .chips.mkrow a { background: var(--panel); border: 1px solid var(--line-2); color: var(--text); padding: 10px 14px; border-radius: 12px; }
html body .chips.mkrow a:hover { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--panel)); }
html body #top .chips a:hover { border-color: var(--c); color: var(--text); }

/* multi-colour icons: each icon carries its own colours */
html body .chips a .ic { color: inherit; width: 22px; height: 22px; }
html body .chips a .ic * { vector-effect: none; }
.hrow .hi svg { width: 22px; height: 22px; }
.fc .fi svg { stroke-width: 1.7; }

/* ---- readability pass: no tiny text, brighter secondary text ---- */
:root { --muted: #9fb0d2; }
html[data-theme="light"] { --muted: #4f6285; }
html body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html body :is(.evt-t, .loc, .meta, .note2, .tm, label, .credit, .ln, .pn, .fine, .ax-fine, .ax-lbl, small, .cnt, .bias, .dir, .evi, .lst, .lvx, .pill, .sc, .side, .lv, .dnote, .dsrc, .note, .eva, .tag, .upd, .ins span, .rec span, .res span, .lv small) {
  font-size: 13.5px; line-height: 1.5;
}
html body :is(.credit, .ln, .pn, .fine, .ax-fine, .note, .note2, .dnote, .dsrc) { color: var(--muted); font-weight: 500; letter-spacing: .005em; }
html body :is(small, .meta, .loc, .tm, .lst, .lvx) { font-weight: 500; }

/* tappable result pills */
html body .sumchips button.sc { cursor: pointer; font-family: var(--font-body); font-size: 13.5px; font-weight: 600; background: var(--panel); }
html body .sumchips button.sc.up { color: var(--up); border-color: color-mix(in srgb, var(--up) 45%, transparent); }
html body .sumchips button.sc.down { color: var(--down); border-color: color-mix(in srgb, var(--down) 45%, transparent); }
html body .sumchips button.sc.on { background: color-mix(in srgb, currentColor 16%, var(--panel)); box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 55%, transparent); }
html body .sumchips button.sc.all { color: var(--accent); border-color: var(--accent); }
html body .sumchips button.sc:active { transform: scale(.97); }

html body .rec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
html body .rec .note2 { grid-column: 1 / -1; }
@media (min-width: 700px) { html body .rec { grid-template-columns: repeat(4, 1fr); } }
html body .rec div.tap { cursor: pointer; border: 1px solid var(--line-2); transition: border-color .15s, transform .15s; }
html body .rec div.tap:hover, html body .rec div.tap:focus-visible { border-color: var(--accent); outline: none; }
html body .rec div.tap:active { transform: scale(.98); }
html body .rec div.tap::after { content: "Tap to view"; display: block; margin-top: 4px; font-size: 12px; color: var(--accent); font-weight: 600; }

/* results page */
html body .rsback { font: 600 14px/1 var(--font-body); color: var(--accent); text-decoration: none; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 999px; }
html body .rsback:hover { border-color: var(--accent); }
html body .rsseg { margin: 10px 0; flex-wrap: wrap; max-width: 100%; }
html body #rsCat { overflow-x: auto; }
html body #results .sub { color: var(--muted); margin: 4px 0 6px; }
