/* MarketLoop design system: an exchange-style trading UI (dark first, light too).
   Theme: the OS setting by default, or the viewer's choice via data-theme on <html>.
   Tokens: --brand is the yellow fill (buttons, active marks); --accent is its text-safe tone. */

:root {
  color-scheme: light;
  --page: #fafafa;
  --page-2: #f5f5f5;
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --surface-3: #eaecef;
  --ink: #1e2329;
  --ink-2: #474d57;
  --muted: #707a8a;
  --grid: #eaecef;
  --axis: #d8dce1;
  --border: #eaecef;
  --border-strong: #d8dce1;
  --brand: #fcd535;
  --brand-hover: #f0b90b;
  --brand-ink: #181a20;
  --accent: #c99400;
  --accent-2: #f0b90b;
  --accent-soft: rgba(240, 185, 11, 0.14);
  --accent-ink: #181a20;
  --ring: 0 0 0 3px rgba(240, 185, 11, 0.40);
  --series-1: #c99400;
  --good: #03a66d;
  --good-ink: #03a66d;
  --good-soft: rgba(3, 166, 109, 0.10);
  --bad: #cf304a;
  --bad-ink: #cf304a;
  --bad-soft: rgba(207, 48, 74, 0.09);
  --warn-bg: #fff8e1;
  --warn-ink: #7a5a00;
  --shadow: 0 1px 2px rgba(24, 26, 32, .04), 0 2px 8px rgba(24, 26, 32, .04);
  --shadow-lift: 0 4px 24px rgba(24, 26, 32, .10);
  --topbar: #ffffff;
  --hero-glow: radial-gradient(900px 480px at 85% -10%, rgba(240, 185, 11, .16), transparent 60%);
  --r-sm: 6px;
  --r: 12px;
  --r-lg: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #0b0e11;
    --page-2: #0b0e11;
    --surface: #181a20;
    --surface-2: #1e2329;
    --surface-3: #2b3139;
    --ink: #eaecef;
    --ink-2: #b7bdc6;
    --muted: #848e9c;
    --grid: #2b3139;
    --axis: #474d57;
    --border: #2b3139;
    --border-strong: #474d57;
    --accent: #f0b90b;
    --accent-soft: rgba(240, 185, 11, 0.12);
    --ring: 0 0 0 3px rgba(240, 185, 11, 0.45);
    --series-1: #f0b90b;
    --good: #0ecb81;
    --good-ink: #0ecb81;
    --good-soft: rgba(14, 203, 129, 0.12);
    --bad: #f6465d;
    --bad-ink: #f6465d;
    --bad-soft: rgba(246, 70, 93, 0.12);
    --warn-bg: rgba(240, 185, 11, 0.10);
    --warn-ink: #f0b90b;
    --shadow: none;
    --shadow-lift: 0 8px 32px rgba(0, 0, 0, .5);
    --topbar: #181a20;
    --hero-glow: radial-gradient(900px 480px at 85% -10%, rgba(240, 185, 11, .10), transparent 60%);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0b0e11;
  --page-2: #0b0e11;
  --surface: #181a20;
  --surface-2: #1e2329;
  --surface-3: #2b3139;
  --ink: #eaecef;
  --ink-2: #b7bdc6;
  --muted: #848e9c;
  --grid: #2b3139;
  --axis: #474d57;
  --border: #2b3139;
  --border-strong: #474d57;
  --accent: #f0b90b;
  --accent-soft: rgba(240, 185, 11, 0.12);
  --ring: 0 0 0 3px rgba(240, 185, 11, 0.45);
  --series-1: #f0b90b;
  --good: #0ecb81;
  --good-ink: #0ecb81;
  --good-soft: rgba(14, 203, 129, 0.12);
  --bad: #f6465d;
  --bad-ink: #f6465d;
  --bad-soft: rgba(246, 70, 93, 0.12);
  --warn-bg: rgba(240, 185, 11, 0.10);
  --warn-ink: #f0b90b;
  --shadow: none;
  --shadow-lift: 0 8px 32px rgba(0, 0, 0, .5);
  --topbar: #181a20;
  --hero-glow: radial-gradient(900px 480px at 85% -10%, rgba(240, 185, 11, .10), transparent 60%);
}

/* ---------------------------------------------------------------- base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
::selection { background: var(--accent-soft); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num, .tile .value, td.num, .value { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- top bar */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--topbar); border-bottom: 1px solid var(--border); }
.topbar .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; font-weight: 800; font-size: 18px; color: var(--ink);
  text-decoration: none; letter-spacing: -.01em; flex: none; }
.brand::before {
  content: ""; width: 28px; height: 28px; border-radius: 8px; flex: none; margin-right: 9px;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M7 18.5l4.5-5 4 3.2 7-8.2' fill='none' stroke='%23181A20' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='22.5' cy='8.5' r='2.3' fill='%23181A20'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.brand span { color: var(--accent); }
.topbar nav { display: flex; gap: 2px; align-items: center; }
.topbar nav.nav-main { flex: 1; min-width: 0; }
.topbar nav.nav-tools, .topbar nav:only-of-type { margin-left: auto; gap: 8px; }
.topbar nav a.link { color: var(--ink-2); text-decoration: none; padding: 8px 12px; font-weight: 600;
  font-size: 14px; white-space: nowrap; border-radius: 8px; transition: color .15s, background .15s; }
.topbar nav a.link:hover { color: var(--accent); }
.topbar nav a.link[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.theme-toggle, .icon-link { width: 36px; height: 36px; border-radius: 8px; border: 0; background: transparent;
  color: var(--ink-2); cursor: pointer; display: grid; place-items: center; font-size: 17px; flex: none; position: relative;
  text-decoration: none; }
.theme-toggle:hover, .icon-link:hover { color: var(--accent); background: var(--surface-2); }
.icon-link svg { width: 20px; height: 20px; }
.count { position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: var(--bad); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); color: var(--ink); display: grid;
  place-items: center; font-weight: 700; font-size: 13px; text-decoration: none; flex: none; }
.avatar:hover { box-shadow: 0 0 0 2px var(--brand); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px;
  background: var(--surface-2); color: var(--ink-2); border: 0; white-space: nowrap;
}
.badge.demo { background: var(--warn-bg); color: var(--warn-ink); }
.badge.demo::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--good-soft); color: var(--good-ink); }
.badge.bad { background: var(--bad-soft); color: var(--bad-ink); }

.banner { background: var(--warn-bg); color: var(--warn-ink); font-size: 13px; font-weight: 600; text-align: center; padding: 8px 16px; }
.banner.bad { background: var(--bad-soft); color: var(--bad-ink); }

/* ---------------------------------------------------------------- bottom nav (phones) */
.bottom-nav { display: none; }
@media (max-width: 760px) {
  .topbar nav.nav-main { display: none; }
  .topbar .wrap { height: 56px; gap: 10px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--topbar); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a { display: grid; justify-items: center; gap: 3px; color: var(--muted); text-decoration: none; font-size: 11px;
    font-weight: 600; padding: 4px 0; position: relative; }
  .bottom-nav a svg { width: 22px; height: 22px; }
  .bottom-nav a[aria-current="page"] { color: var(--ink); }
  .bottom-nav a[aria-current="page"] svg { color: var(--accent); }
  .bottom-nav a.trade svg { width: 44px; height: 44px; margin-top: -20px; padding: 10px; border-radius: 50%;
    background: var(--brand); color: var(--brand-ink); box-shadow: 0 4px 16px rgba(240, 185, 11, .35); }
  .bottom-nav .count { top: 0; right: calc(50% - 20px); }
  body.has-bottom-nav { padding-bottom: 76px; }
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; border-radius: 8px; padding: 9px 18px; min-height: 40px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, opacity .15s;
}
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: var(--brand-hover); }
.btn.ghost { background: var(--surface-2); color: var(--ink); border-color: transparent; }
.btn.ghost:hover { background: var(--surface-3); }
.btn.outline { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn.outline:hover { border-color: var(--accent); color: var(--accent); }
.btn.buy { background: var(--good); color: #fff; }
.btn.sell, .btn.danger { background: var(--bad-soft); color: var(--bad-ink); }
.btn.sell:hover, .btn.danger:hover { background: var(--bad); color: #fff; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.lg { padding: 12px 24px; font-size: 16px; min-height: 48px; }
.btn.sm { min-height: 30px; padding: 5px 12px; font-size: 13px; border-radius: 6px; }
.btn.block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--bad-ink); cursor: pointer; font: inherit; text-decoration: underline; }
.tile-link { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.icon-btn { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; padding: 4px 8px; border-radius: 6px; }
.icon-btn:hover { color: var(--bad-ink); background: var(--bad-soft); }

/* ---------------------------------------------------------------- tabs */
.tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--border); margin: 0 0 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a { background: none; border: 0; font: inherit; font-weight: 600; font-size: 15px; color: var(--muted); padding: 10px 0;
  cursor: pointer; white-space: nowrap; text-decoration: none; box-shadow: inset 0 -2px 0 transparent; }
.tabs [aria-selected="true"], .tabs [aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); }
.tabs button:hover, .tabs a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- landing */
body.landing { background: var(--hero-glow), var(--page); background-repeat: no-repeat; }
.hero { padding: 64px 0 32px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); padding-top: 36px; gap: 32px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 56px); letter-spacing: -.02em; line-height: 1.08; font-weight: 800; }
.hero h1 .grad { color: var(--accent); }
.hero p.lead { font-size: 18px; color: var(--ink-2); max-width: 34em; margin: 20px 0 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; gap: 8px 20px; flex-wrap: wrap; color: var(--ink-2); font-size: 14px; }
.hero-points li::before { content: "✓"; color: var(--good-ink); font-weight: 800; margin-right: 6px; }
.signup-note { color: var(--ink-2); font-size: 14px; margin: 14px 0 0; }
.signup-note:empty { display: none; }

.preview-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lift);
  padding: 18px; position: relative; }
.pp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pp-head b { font-size: 15px; }
.pp-head .price { margin-left: auto; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pp-sub { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.pp-chart { height: 200px; }
.pp-chart svg { width: 100%; height: 100%; display: block; }
.pp-chart .pp-line { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pp-chart .pp-area { fill: url(#ppfill); }
.pp-chart .pp-dot { fill: var(--series-1); stroke: var(--surface); stroke-width: 2; }
.pp-chart .pp-grid { stroke: var(--grid); stroke-width: 1; }
.pp-trades { display: grid; gap: 6px; margin-top: 12px; }
.pp-trade { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }
.pp-trade .k { font-weight: 600; }
.pp-trade .r { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.pp-trade .r.pos { color: var(--good-ink); } .pp-trade .r.neg { color: var(--bad-ink); }
.pp-float { position: absolute; left: -22px; bottom: -26px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-lift); padding: 10px 14px; font-size: 13px; display: grid; gap: 2px; }
.pp-float b { font-size: 18px; color: var(--good-ink); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .pp-float { display: none; } }
.pp-caption { font-size: 12px; color: var(--muted); margin-top: 10px; text-align: right; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.chip { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 6px; background: var(--surface-2); border: 1px solid transparent;
  color: var(--ink-2); }
.chip.soon { opacity: .6; }

.section-title { font-size: clamp(20px, 2.6vw, 26px); margin: 48px 0 8px; font-weight: 700; }
.section-sub { color: var(--muted); margin: 0 0 18px; max-width: 52em; }
.features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; }
.feature h3 { font-size: 16px; margin: 12px 0 6px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 14px; }
.ficon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 19px;
  background: var(--accent-soft); color: var(--accent); }
.ficon.v { background: var(--surface-2); color: var(--ink); }
.ficon.g { background: var(--good-soft); color: var(--good-ink); }
.ficon.r { background: var(--bad-soft); color: var(--bad-ink); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 8px 0 0; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; position: relative; }
.step .num { width: 32px; height: 32px; border-radius: 8px; background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center; font-weight: 800; font-size: 14px; margin-bottom: 12px; }
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-2); font-size: 14px; }
.notice { background: var(--warn-bg); color: var(--warn-ink); border-radius: var(--r); padding: 16px 20px; margin: 28px 0; }
.notice strong { display: block; margin-bottom: 4px; }
.safety { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.safety li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 18px; }
.safety li b { display: block; margin-bottom: 2px; }
.safety li span { color: var(--ink-2); font-size: 14px; }
.cta-band { margin: 56px 0 0; padding: 32px; border-radius: var(--r-lg); display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); }
.cta-band h2 { font-size: clamp(20px, 3vw, 26px); }
.cta-band p { margin: 6px 0 0; color: var(--ink-2); }
.cta-band .btn { margin-left: auto; }
footer { color: var(--muted); font-size: 13px; padding: 32px 0; border-top: 1px solid var(--border); margin-top: 56px; }
footer .wrap { display: flex; gap: 12px 24px; flex-wrap: wrap; justify-content: space-between; }

/* ---------------------------------------------------------------- app layout */
main.app { padding-top: 24px; padding-bottom: 64px; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; }
.page-head .sub { color: var(--muted); font-size: 14px; flex-basis: 100%; margin-top: -4px; }
.page-head .spacer { flex: 1; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.card + .card, .grid + .card, .card + .grid { margin-top: 16px; }
.card h2 { font-size: 16px; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.card h2 .hint { font-weight: 500; color: var(--muted); font-size: 13px; margin-left: auto; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid.two, .grid.three { grid-template-columns: minmax(0, 1fr); } }
.grid > .card { margin-top: 0; }
.grid + .grid { margin-top: 16px; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; margin: 0; }
.fine { color: var(--muted); font-size: 12px; margin: 12px 0 0; }
.wide { grid-column: 1 / -1; }
.top-gap { margin-top: 14px; }
code { font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: 1px 6px; border-radius: 4px; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- stat tiles */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 16px; }
.tiles.spaced { margin-top: 16px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 18px; position: relative; overflow: hidden; }
.tile .label { font-size: 13px; color: var(--muted); font-weight: 500; }
.tile .value { font-size: clamp(22px, 5vw, 28px); font-weight: 700; margin-top: 4px; line-height: 1.15; }
.tile .value.sm { font-size: 20px; }
.tile .note { font-size: 12px; color: var(--muted); margin-top: 4px; }
.tile-head { display: flex; align-items: center; gap: 8px; }
.tile-btn { margin-left: auto; font: inherit; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--surface-2);
  border: 0; border-radius: 4px; padding: 2px 10px; cursor: pointer; }
.tile-btn:hover { background: var(--surface-3); color: var(--ink); }
.pos { color: var(--good-ink); }
.neg { color: var(--bad-ink); }

/* ---------------------------------------------------------------- forms */
form.run-form { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); align-items: end; }
label.field, div.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
label.field input, label.field select, label.field textarea, .input {
  font: inherit; font-weight: 500; color: var(--ink); background: var(--surface-2); border: 1px solid transparent;
  border-radius: 8px; padding: 9px 12px; min-height: 40px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
label.field input:hover, label.field select:hover, .input:hover { border-color: var(--brand-hover); }
label.field input:focus, label.field select:focus, label.field textarea:focus, .input:focus { outline: none; border-color: var(--brand-hover); }
label.field select { text-overflow: ellipsis; }
.field-note { font-weight: 400; font-size: 12px; color: var(--muted); }
.segmented { display: flex; background: var(--surface-2); border-radius: 8px; padding: 3px; gap: 3px; }
.segmented label { position: relative; flex: 1; text-align: center; padding: 7px 10px; cursor: pointer; color: var(--muted); font-weight: 600;
  font-size: 14px; border-radius: 6px; transition: background .15s, color .15s; white-space: nowrap; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; inset: 0; width: 100%; height: 100%; margin: 0; }
.segmented label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.segmented label:has(input:focus-visible) { box-shadow: var(--ring); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; align-self: end; padding-bottom: 10px; cursor: pointer; color: var(--ink-2); }
.check input { width: 16px; height: 16px; accent-color: var(--brand-hover); }
.form-msg { grid-column: 1 / -1; font-size: 14px; margin: 0; min-height: 1.2em; color: var(--ink-2); }
.form-msg.err { color: var(--bad-ink); }
.form-msg.ok { color: var(--good-ink); }
.engine-note { grid-column: 1 / -1; margin: -4px 0 0; font-size: 13px; color: var(--muted); }
.engine-note:empty { display: none; }
form.stack { display: grid; gap: 14px; }
.settings-grid { display: grid; gap: 14px 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.inline-select { font: inherit; font-weight: 700; padding: 3px 8px; border-radius: 6px; border: 0; background: var(--surface-2); color: var(--ink); }
.row-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.test-result { font-size: 14px; color: var(--ink-2); }
.test-result.pos { color: var(--good-ink); } .test-result.neg { color: var(--bad-ink); }
.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 400; }
.copy-row code { flex: 1 1 200px; padding: 9px 12px; border-radius: 8px; }
.save-bar { padding: 16px 0; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--border); margin: 16px 0; }
.save-bar .form-msg { grid-column: auto; margin: 0; }
textarea.code, .import-row textarea, #publish-text { font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; width: 100%; padding: 12px; border-radius: 8px;
  border: 1px solid transparent; background: var(--surface-2); color: var(--ink); }

/* switches (admin toggles, alert channels) */
.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-3); transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.switch input:checked + span { background: var(--brand-hover); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { box-shadow: var(--ring); }
.switch-list { display: grid; }
.switch-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.switch-row:last-child { border-bottom: 0; }
.switch-row .t { flex: 1; min-width: 0; }
.switch-row .t b { display: block; font-weight: 600; }
.switch-row .t span { color: var(--muted); font-size: 13px; }

/* ---------------------------------------------------------------- status, progress */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 8px;
  border-radius: 4px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; text-transform: capitalize; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.pill.running { background: var(--accent-soft); color: var(--accent); }
.pill.running::before { background: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
.pill.finished { background: var(--good-soft); color: var(--good-ink); }
.pill.finished::before { background: var(--good); }
.pill.failed { background: var(--bad-soft); color: var(--bad-ink); }
.pill.failed::before { background: var(--bad); }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .pill.running::before { animation: none; } }
.progress { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 10px 0 6px; }
.progress > div { width: 0; height: 100%; background: var(--brand-hover); border-radius: 999px; transition: width .4s; }
.progress-label { font-size: 13px; color: var(--muted); }
.active-run { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.active-run .grow { flex: 1; min-width: 220px; }
.active-run + .active-run { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.active-pnl { min-width: 110px; text-align: right; }
.active-pnl .label, .active-pnl .note { font-size: 12px; color: var(--muted); }
.active-pnl .value { font-size: 20px; font-weight: 700; }
.tag { display: inline-block; padding: 1px 6px; border-radius: 4px; background: var(--surface-2); font-weight: 600; font-size: 12px;
  color: var(--ink-2); margin-left: 6px; vertical-align: 1px; }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 8px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }
td.num, th.num { text-align: right; }
tr.clickable { cursor: pointer; }
tr.series td { font-weight: 600; }
.series-toggle { border: 0; cursor: pointer; font: inherit; font-size: 12px; }
tr.series-child td { background: var(--surface-2); }
tr.series-child td:first-child { padding-left: 28px; }
.result { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; padding: 2px 8px; border-radius: 4px; font-size: 13px; }
.result.win { color: var(--good-ink); background: var(--good-soft); }
.result.loss { color: var(--bad-ink); background: var(--bad-soft); }
.result.open { color: var(--muted); font-weight: 500; }
.empty { color: var(--muted); text-align: center; padding: 30px 10px; }
.rank { font-weight: 700; color: var(--muted); }
.rank.top { color: var(--accent); }

/* ---------------------------------------------------------------- charts (single series) */
.chart { position: relative; width: 100%; height: 240px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .grid-line { stroke: var(--grid); stroke-width: 1; }
.chart .zero-line { stroke: var(--axis); stroke-width: 1; }
.chart .axis-label { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .line { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--series-1); stroke: var(--surface); stroke-width: 2; }
.chart .cross { stroke: var(--axis); stroke-width: 1; }
.chart .hit { fill: transparent; }
.tooltip { position: absolute; pointer-events: none; background: var(--surface-3); color: var(--ink); font-size: 12px;
  padding: 6px 9px; border-radius: 6px; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); display: none;
  box-shadow: var(--shadow-lift); }
.tooltip b { font-variant-numeric: tabular-nums; }
.chart-empty { height: 240px; display: grid; place-items: center; color: var(--muted); font-size: 14px;
  border: 1px dashed var(--border-strong); border-radius: 10px; text-align: center; padding: 16px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 80px; }
.bars div { flex: 1; min-width: 3px; border-radius: 2px 2px 0 0; background: var(--good); }
.bars div.neg { background: var(--bad); }

/* ---------------------------------------------------------------- run page details */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.events { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.events li { padding: 9px 0; border-bottom: 1px solid var(--border); display: flex; gap: 10px; }
.events li:last-child { border-bottom: 0; }
.events time { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.error-box { background: var(--bad-soft); border-left: 3px solid var(--bad); padding: 12px 14px; border-radius: 6px;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-x: auto; }
.engine-title { margin: 32px 0 4px; font-size: 20px; font-weight: 700; display: flex; align-items: baseline; gap: 10px; }
.engine-title .hint { font-size: 14px; color: var(--muted); font-weight: 500; }
.ladder { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ladder li { border: 1px solid var(--border); border-radius: 10px; padding: 12px; background: var(--surface-2); color: var(--ink-2); }
.ladder li b { display: block; color: var(--ink); font-size: 14px; }
.ladder li span { font-size: 12px; }
.ladder li.current { border: 2px solid var(--brand-hover); background: var(--accent-soft); padding: 11px; }
.ladder li.current b::after { content: " ● now"; color: var(--accent); font-size: 12px; font-weight: 700; }
.ladder li.current[data-rung="KILL"] { border-color: var(--bad); background: var(--bad-soft); }
.ladder li.current[data-rung="KILL"] b::after { color: var(--bad-ink); }
@media (max-width: 800px) { .ladder { grid-template-columns: minmax(0, 1fr); } }
.battery { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; font-size: 14px; }
.battery dt { color: var(--muted); }
.battery dd { margin: 0; }
.battery dd .q { display: block; color: var(--muted); font-size: 12px; }
.battery .rationale { grid-column: 1 / -1; color: var(--muted); font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; border-top: 1px solid var(--border); padding-top: 10px; }
.action-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; margin: 16px 0 8px; gap: 2px; background: var(--surface); }
.action-bar > div { min-width: 4px; }
.action-bar .a-rise, .action-legend .a-rise::before { background: var(--good); }
.action-bar .a-fall, .action-legend .a-fall::before { background: var(--bad); }
.action-bar .a-skip, .action-legend .a-skip::before { background: var(--axis); }
.action-bar .a-stand, .action-legend .a-stand::before { background: var(--muted); }
.action-legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); }
.action-legend li { display: inline-flex; align-items: center; gap: 6px; }
.action-legend li::before { content: ""; width: 10px; height: 10px; border-radius: 2px; }
.action-legend b { color: var(--ink); font-variant-numeric: tabular-nums; }
.more-btn { margin-top: 12px; }
.strategy-history { list-style: none; padding: 0; margin: 12px 0 0; font-size: 13px; }
.strategy-history li { padding: 8px 0; border-top: 1px solid var(--border); display: flex; gap: 10px; }
.strategy-history time { color: var(--muted); flex: none; font-variant-numeric: tabular-nums; }
.sub-title { font-size: 15px; margin: 20px 0 6px; }
.edge-verdict { font-size: 14px; color: var(--ink-2); margin: 0 0 8px; }
.edge-verdict.pos { color: var(--good-ink); } .edge-verdict.neg { color: var(--bad-ink); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.checks li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }
.checks .mark { font-weight: 800; width: 1em; }
.checks li.ok .mark { color: var(--good-ink); } .checks li.no .mark { color: var(--bad-ink); }
.checks .val { color: var(--muted); font-size: 13px; margin-left: auto; font-variant-numeric: tabular-nums; }
.review { display: grid; gap: 8px; }
.review .headline { font-weight: 700; font-size: 15px; }
.review ul { margin: 0; padding-left: 18px; color: var(--ink-2); }

/* ---------------------------------------------------------------- dashboard choices */
.choices { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 16px; }
.choice { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; text-decoration: none; color: var(--ink); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r); padding: 16px 18px; transition: border-color .15s; }
.choice:hover { border-color: var(--brand-hover); }
.choice .ficon { grid-row: span 3; }
.choice b { font-size: 15px; }
.choice span { color: var(--muted); font-size: 13px; }
.choice em { font-style: normal; color: var(--accent); font-weight: 600; font-size: 13px; }
.choice em::after { content: " →"; }

/* ---------------------------------------------------------------- bots */
.bot-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.bot-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px;
  display: flex; flex-direction: column; gap: 8px; transition: border-color .15s; }
.bot-card:hover { border-color: var(--border-strong); }
.bot-card h3 { font-size: 16px; font-weight: 600; }
.bot-card .row-actions { margin-top: auto; padding-top: 8px; gap: 8px; }
.bot-card.recommended { border-color: var(--brand-hover); }
.bot-summary { margin: 0; font-weight: 600; font-size: 13px; color: var(--accent); background: var(--accent-soft); padding: 3px 8px;
  border-radius: 4px; align-self: flex-start; }
.bot-meta { font-size: 12px; color: var(--muted); }
.empty-card { border: 1px dashed var(--border-strong); border-radius: var(--r); padding: 24px; display: grid; gap: 10px; justify-items: start; background: var(--surface); }
.empty-card p { margin: 0; color: var(--ink-2); }
.import-row { display: grid; gap: 10px; }
.fam-list { display: grid; gap: 8px; }
.fam-row { display: grid; grid-template-columns: 200px auto 1fr; gap: 12px; align-items: center; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; }
.fam-row.soon { opacity: .6; }
@media (max-width: 640px) { .fam-row { grid-template-columns: 1fr auto; } .fam-row .muted { grid-column: 1 / -1; } }
.lib-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; font-size: 14px; }
.badge.risk-low { background: var(--good-soft); color: var(--good-ink); }
.badge.risk-medium { background: var(--warn-bg); color: var(--warn-ink); }
.badge.risk-high { background: var(--bad-soft); color: var(--bad-ink); }
.bot-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bot-tip { margin: 0; font-size: 13px; color: var(--ink-2); border-left: 3px solid var(--brand-hover); padding-left: 10px; }
.bt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin: 2px 0 0; padding: 10px 12px;
  background: var(--surface-2); border-radius: 8px; font-size: 12px; }
.bt div { display: grid; gap: 1px; min-width: 0; }
.bt dt { color: var(--muted); }
.bt dd { margin: 0; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.bt .bt-note { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.chips.filter { margin: 0 0 14px; }
.chips.filter .chip { cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); }
.chips.filter .chip[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.guide { margin-top: 28px; }
.guide-list { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--ink-2); }
.guide-list b { color: var(--ink); }
.report { font-size: 13px; display: grid; gap: 6px; }
.report ul { margin: 0; padding-left: 18px; }
.report .bad { color: var(--bad-ink); }

/* builder: blocks that snap together */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .builder { grid-template-columns: minmax(0, 1fr); } }
.blocks { display: grid; gap: 0; }
.block { position: relative; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--blk);
  border-radius: 10px; margin-top: 12px; }
.block + .block::before { content: ""; position: absolute; top: -13px; left: 26px; width: 34px; height: 13px; background: var(--blk);
  border-radius: 6px 6px 0 0; }
.block-head { font-weight: 600; padding: 12px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.block-tag { background: var(--blk); color: #fff; border-radius: 5px; min-width: 24px; padding: 1px 7px; text-align: center; font-size: 12px; font-weight: 700; }
.block-body { padding: 16px; }
.b-market { --blk: #f0b90b; } .b-contract { --blk: #3a8dff; } .b-side { --blk: #8b5cf6; }
.b-entry { --blk: #0ecb81; } .b-stake { --blk: #eb8a2a; } .b-stop { --blk: #f6465d; } .b-exit { --blk: #22b8cf; }
.b-market .block-tag { color: #181a20; }
.fam-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.fam { text-align: left; display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; border: 1px solid transparent;
  background: var(--surface-2); color: var(--ink); cursor: pointer; font: inherit; transition: border-color .15s, background .15s; position: relative; }
.fam:hover:not([disabled]) { border-color: var(--brand-hover); }
.fam span { font-size: 12px; color: var(--muted); }
.fam:has(.fam-new) b { padding-right: 32px; }
.fam-new { position: absolute; top: 7px; right: 8px; font-size: 10px; font-style: normal; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.fam[aria-checked="true"] { border: 1px solid var(--brand-hover); background: var(--accent-soft); }
.fam.soon { opacity: .45; cursor: not-allowed; }
.cond-list { display: grid; gap: 8px; }
.cond { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
.cond.dragging { opacity: .5; }
.cond select, .cond input { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 6px 9px; min-height: 34px; }
.cond input.v { width: 90px; } .cond input.n, .cond input.d { width: 64px; } .cond select.tf { width: auto; }
.cond .mini { display: inline-flex; gap: 4px; align-items: center; font-size: 13px; color: var(--muted); }
.cond .mini[hidden] { display: none; }
.cond-help { flex-basis: 100%; margin: 0; }
.grip { cursor: grab; color: var(--muted); font-size: 18px; user-select: none; }
.builder-side .sticky { position: sticky; top: 80px; }
.preview { margin: 0 0 12px; line-height: 1.6; }
.json-box { margin-top: 12px; font-size: 13px; }
.json-box pre { max-height: 320px; overflow: auto; background: var(--surface-2); padding: 10px; border-radius: 6px; font-size: 12px; }
.ai-box { display: grid; gap: 10px; }
.ai-box textarea { min-height: 80px; resize: vertical; }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.days label { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; padding: 6px 8px; border-radius: 6px;
  background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer; position: relative; }
.days input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.days label:has(input:checked) { background: var(--accent-soft); color: var(--accent); }

/* ---------------------------------------------------------------- lists: alerts, schedules */
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.list li:last-child { border-bottom: 0; }
.list .dotm { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-hover); margin-top: 7px; flex: none; }
.list .dotm.read { background: var(--surface-3); }
.list .body { flex: 1; min-width: 0; }
.list .body b { display: block; }
.list .body span { color: var(--ink-2); font-size: 13px; }
.list time { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ---------------------------------------------------------------- admin console */
body.admin { background: var(--page); }
.admin-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 16px 12px; position: sticky; top: 0; height: 100vh;
  overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.sidebar a.brand { padding: 4px 8px 16px; font-weight: 800; font-size: 18px; color: var(--ink); gap: 0; }
.sidebar a.brand:hover { background: none; }
.sidebar .group { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 14px 10px 6px; }
.sidebar a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--ink-2);
  text-decoration: none; font-weight: 500; font-size: 14px; }
.sidebar a svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.sidebar a:hover { background: var(--surface-2); color: var(--ink); }
.sidebar a[aria-current="page"] { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.sidebar a[aria-current="page"] svg { color: var(--accent); }
.sidebar .foot { margin-top: auto; padding-top: 16px; display: grid; gap: 6px; }
.admin-main { min-width: 0; }
.admin-top { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 24px; border-bottom: 1px solid var(--border);
  background: var(--topbar); position: sticky; top: 0; z-index: 20; }
.admin-top h1 { font-size: 18px; font-weight: 700; }
.admin-top .spacer { flex: 1; }
.admin-body { padding: 24px; max-width: 1100px; }
.admin-section[hidden] { display: none; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; z-index: 50; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .2s;
    box-shadow: var(--shadow-lift); }
  .sidebar.open { transform: none; }
  .menu-btn { display: grid; }
  .admin-top { padding: 0 12px; }
  .admin-body { padding: 16px; }
}
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 45; }

/* ---------------------------------------------------------------- admin/login cards, messages */
.card.narrow { max-width: 440px; margin: 48px auto; }
.narrow-card { max-width: 520px; }
.message { max-width: 520px; margin: 88px auto; text-align: center; }
.message h1 { font-size: 26px; margin-bottom: 12px; }
.message p { color: var(--ink-2); margin-bottom: 24px; }
.install { display: flex; gap: 12px; align-items: center; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 520px) {
  .topbar .badge.demo { display: none; }
  .brand { font-size: 16px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 14px; }
  .tile .value { font-size: 20px; }
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 16px; }
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  .cta-band { padding: 24px; }
  .cta-band .btn { margin-left: 0; }
  main.app { padding-top: 16px; }
}
.narrow-input { max-width: 260px; }

/* ---------------------------------------------------------------- platforms: landing, auth, hub, venue, memory */
:root { --v-deriv: #ff444f; --v-binance: #f0b90b; --v-alpaca: #3b82f6; }
.topbar nav.nav-main { overflow-x: auto; scrollbar-width: none; }
.topbar nav.nav-main::-webkit-scrollbar { display: none; }
.land-nav { flex: 1; }
.land-cta { margin-left: auto; gap: 8px !important; }
@media (max-width: 760px) { .land-nav { display: none !important; } }

.pc-logo { width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; font-weight: 800;
  font-size: 17px; color: #fff; background: var(--muted); flex: none; }
.pc-logo.deriv, .deriv .pc-logo { background: var(--v-deriv); }
.pc-logo.binance, .binance .pc-logo { background: var(--v-binance); color: #181a20; }
.pc-logo.alpaca, .alpaca .pc-logo { background: var(--v-alpaca); }
.pc-logo.lg { width: 64px; height: 64px; border-radius: 16px; font-size: 30px; }
.pc-top { display: flex; align-items: center; gap: 10px; }
.pc-top b { font-size: 17px; }
.pc-top .badge { margin-left: auto; }

.platforms { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.platform-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r); text-decoration: none;
  color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--muted);
  transition: transform .15s, box-shadow .15s, border-color .15s; }
.platform-card.deriv { border-top-color: var(--v-deriv); }
.platform-card.binance { border-top-color: var(--v-binance); }
.platform-card.alpaca { border-top-color: var(--v-alpaca); }
.platform-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.platform-card p { margin: 0; color: var(--ink-2); font-size: 14px; }
.platform-card ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; display: grid; gap: 4px; }
.platform-card em { margin-top: auto; font-style: normal; font-weight: 600; color: var(--accent); font-size: 14px; }
.platform-card em::after { content: " →"; }
.plat-hero { display: flex; gap: 24px; align-items: flex-start; padding: 56px 0 16px; }
.plat-hero h1 { font-size: clamp(30px, 4.6vw, 46px); letter-spacing: -.02em; line-height: 1.1; font-weight: 800; margin: 6px 0 0; }
.plat-hero .lead { font-size: 17px; color: var(--ink-2); max-width: 40em; margin: 16px 0 24px; }
.plat-hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) { .plat-hero { flex-direction: column; padding-top: 32px; } }
.faq { display: grid; gap: 8px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 18px; }
.faq-item summary { font-weight: 600; cursor: pointer; }
.faq-item p { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; }

/* auth */
.auth-page { background: var(--page) var(--hero-glow) no-repeat; min-height: 100vh; }
.auth-wrap { display: grid; place-items: start center; padding: 48px 16px 64px; }
.auth-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-lift); }
.auth-card h1 { font-size: 24px; margin: 18px 0 4px; }
.auth-card > .muted { margin: 0 0 20px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 10px; padding: 4px; }
.auth-tabs a { text-align: center; padding: 8px; border-radius: 7px; font-weight: 600; font-size: 14px; color: var(--muted); text-decoration: none; }
.auth-tabs a[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.auth-form { display: grid; gap: 14px; }
.auth-form .field input { width: 100%; }
.oauth { display: flex; gap: 10px; justify-content: center; align-items: center; }
.oauth svg { width: 18px; height: 18px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-links { display: flex; justify-content: space-between; font-size: 13px; margin: 0; }
.auth-links a { color: var(--accent); }
.alt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.alt-row .btn[hidden] { display: none; }

/* hub */
.venue-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.venue-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--r); background: var(--surface);
  border: 1px solid var(--border); border-top: 3px solid var(--muted); }
.venue-card.deriv { border-top-color: var(--v-deriv); }
.venue-card.binance { border-top-color: var(--v-binance); }
.venue-card.alpaca { border-top-color: var(--v-alpaca); }
.venue-card .pc-top > div { display: grid; }
.venue-card .env { font-size: 12px; color: var(--muted); font-weight: 600; }
.venue-card .what { margin: 0; color: var(--ink-2); font-size: 14px; }
.venue-stat { display: grid; gap: 2px; padding: 10px 12px; background: var(--surface-2); border-radius: 8px; min-height: 52px; }
.venue-stat .label { font-size: 12px; color: var(--muted); }
.venue-stat b { font-size: 20px; font-variant-numeric: tabular-nums; }
.venue-card .btn-row { margin-top: auto; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.vtag { font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 4px; border-left: 3px solid var(--muted); background: var(--surface-2); }
.vtag.deriv { border-left-color: var(--v-deriv); } .vtag.binance { border-left-color: var(--v-binance); } .vtag.alpaca { border-left-color: var(--v-alpaca); }
.badge.warn { background: var(--warn-bg); color: var(--warn-ink); }

/* venue page */
.connect-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 800px) { .connect-grid { grid-template-columns: minmax(0, 1fr); } }
.connect-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--ink-2); font-size: 14px; }
.connect-form { display: grid; gap: 12px; }
.connect-form input { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
form.run-form.single { grid-template-columns: minmax(0, 1fr); }
.bot-line { margin: -6px 0 0; font-size: 13px; }
table.markets td { vertical-align: middle; }
table.compare th[scope], table.compare tbody th { text-align: left; font-weight: 500; color: var(--muted); }
#vbt-out, #m-compare-out { margin-top: 8px; }

/* memory */
.lessons { display: grid; gap: 10px; }
.lesson { border: 1px solid var(--border); border-left: 3px solid var(--muted); border-radius: 10px; padding: 14px 16px; background: var(--surface); display: grid; gap: 10px; }
.lesson.avoid { border-left-color: var(--bad); } .lesson.watch { border-left-color: var(--brand-hover); } .lesson.lifted { border-left-color: var(--good); }
.lesson.expired, .lesson.lifted { opacity: .8; }
.lesson-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lesson-head .muted { margin-left: auto; }
.lesson-kv { font-size: 14px; }
.tag.act-skip { background: var(--warn-bg); color: var(--warn-ink); }
.tag.act-buy { background: var(--good-soft); color: var(--good-ink); }
.tag.act-sell, .tag.act-settle { background: var(--accent-soft); color: var(--accent); }
.tag.act-shadow { background: var(--surface-2, transparent); color: var(--muted, inherit); border: 1px dashed currentColor; }
.danger-zone { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }

/* ---------------------------------------------------------------- trading terminal + candle chart */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.page-head.compact { margin-bottom: 12px; }
.page-head.compact h1 { font-size: 22px; }
.terminal { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "chart side" "order side"; }
.t-chart { grid-area: chart; padding: 0; overflow: hidden; }
.t-side { grid-area: side; display: grid; gap: 8px; align-content: start; }
.t-order { grid-area: order; padding: 14px 16px; }
@media (max-width: 1000px) {
  .terminal { grid-template-columns: minmax(0, 1fr); grid-template-areas: "chart" "order" "side"; }
}
.t-bottom { margin-top: 8px; padding: 0 16px 12px; }
.t-bottom .table-wrap { margin: 0 -16px; padding: 0 16px; }

.chart-panel .ticker { display: flex; gap: 12px 28px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.tk-main { display: flex; gap: 14px; align-items: center; }
.tk-symbol { font: inherit; font-weight: 700; font-size: 18px; background: transparent; color: var(--ink); border: 0; padding: 4px 22px 4px 0; cursor: pointer; }
.tk-symbol option { background: var(--surface); }
.tk-price { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tk-sub { font-size: 12px; color: var(--muted); }
.tk-stats { display: flex; gap: 8px 26px; flex-wrap: wrap; }
.tk-stats div { display: grid; gap: 2px; }
.tk-stats span { font-size: 12px; color: var(--muted); }
.tk-stats b { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tf-row { display: flex; align-items: center; gap: 12px; padding: 6px 12px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tf-tabs { display: flex; gap: 2px; }
.tf-tabs button { font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); background: none; border: 0; padding: 4px 9px; border-radius: 4px; cursor: pointer; }
.tf-tabs button:hover { color: var(--ink); }
.tf-tabs button[aria-selected="true"] { color: var(--ink); background: var(--surface-2); }
.tk-source { margin-left: auto; font-size: 12px; color: var(--good-ink); }
.tk-source::before { content: "● "; }
.tk-source.sim { color: var(--warn-ink); }
.cchart { position: relative; }
.cchart canvas { display: block; cursor: crosshair; }
.cc-legend { position: absolute; left: 10px; top: 6px; font-size: 12px; pointer-events: none; display: grid; gap: 2px; z-index: 1; }
.cc-legend div { display: flex; gap: 10px; flex-wrap: wrap; }
.cc-legend span { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.cc-legend i { font-style: normal; color: var(--muted); margin-right: 3px; }
.cc-legend .up { color: var(--good-ink); } .cc-legend .down { color: var(--bad-ink); } .cc-legend .t { color: var(--muted); }
.cc-legend .ma0 { color: #f0b90b; } .cc-legend .ma1 { color: #e377c2; } .cc-legend .ma2 { color: #8e7cc3; }
.cc-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; pointer-events: none; }
.cc-empty[hidden] { display: none; }

.t-markets { padding: 10px 0 6px; }
.t-search { margin: 0 12px 8px; width: calc(100% - 24px); }
.t-mk-head, .t-mk { display: grid; grid-template-columns: 1.1fr 1fr .8fr; gap: 6px; padding: 5px 12px; font-size: 12px; }
.t-mk-head { color: var(--muted); }
.t-mk-head span:not(:first-child), .t-mk .num { text-align: right; }
.t-mk-list { max-height: 330px; overflow-y: auto; }
.t-mk { width: 100%; background: none; border: 0; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.t-mk:hover, .t-mk.on { background: var(--surface-2); }
.t-mk b { font-weight: 600; } .t-mk i { font-style: normal; color: var(--muted); font-size: 11px; }
.t-account { padding: 12px 14px; display: grid; gap: 6px; }
.t-acct-row { display: flex; justify-content: space-between; font-size: 13px; }
.t-acct-row span { color: var(--muted); }
.t-account .fine { margin: 2px 0 0; }

.o-tabs, .b-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--border); margin: -2px 0 12px; }
.b-tabs { margin: 0 0 4px; padding-top: 6px; }
.o-tabs button, .b-tabs button { font: inherit; font-weight: 600; font-size: 14px; color: var(--muted); background: none; border: 0;
  padding: 8px 0 10px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 6px; align-items: center; }
.o-tabs button[aria-selected="true"], .b-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); }
.count-pill { font-size: 11px; background: var(--surface-2); border-radius: 999px; padding: 0 6px; }
.count-pill:empty { display: none; }
.o-type { margin: 0 0 10px; font-weight: 600; font-size: 13px; }
.o-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .o-cols { grid-template-columns: 1fr; } }
.o-form { display: grid; gap: 10px; }
.o-avail { display: flex; justify-content: space-between; font-size: 12px; }
.o-avail span { color: var(--muted); }
.o-input { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid transparent; border-radius: 8px; padding: 0 12px; }
.o-input:focus-within { border-color: var(--brand-hover); }
.o-input span { font-size: 13px; color: var(--muted); }
.o-input input { flex: 1; min-width: 0; background: none; border: 0; color: var(--ink); font: inherit; text-align: right; padding: 10px 0; outline: none; }
.o-input em { font-style: normal; font-size: 13px; font-weight: 600; }
.o-pcts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.o-pcts button { font: inherit; font-size: 12px; color: var(--ink-2); background: var(--surface-2); border: 0; border-radius: 4px; padding: 5px 0; cursor: pointer; }
.o-pcts button:hover:not([disabled]) { color: var(--ink); background: var(--surface-3); }
.btn.sell-solid { background: var(--bad); color: #fff; }
.btn.sell-solid:hover { filter: brightness(1.08); }
.dash-chart { margin-bottom: 16px; }
.run-candles { margin-top: 16px; }

.connect-card { padding: 14px 18px; margin-bottom: 8px; }
.connect-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.connect-bar > div { flex: 1; min-width: 220px; }
.connect-card .connect-grid { margin-top: 16px; }
.connect-steps { align-content: start; }
.cta-band .btn + .btn { margin-left: 0; }

.o-side-toggle { display: none; }
@media (max-width: 560px) {
  .o-side-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--surface-2); border-radius: 8px; padding: 3px; margin-bottom: 12px; }
  .o-side-toggle button { font: inherit; font-weight: 700; border: 0; background: none; color: var(--muted); padding: 8px; border-radius: 6px; cursor: pointer; }
  .o-side-toggle button[data-side="buy"][aria-selected="true"] { background: var(--good); color: #fff; }
  .o-side-toggle button[data-side="sell"][aria-selected="true"] { background: var(--bad); color: #fff; }
  .o-cols[data-side="buy"] .o-form.sell, .o-cols[data-side="sell"] .o-form.buy { display: none; }
  .cc-legend { font-size: 11px; left: 6px; }
  .cc-legend div:last-child { display: none; }
  .tk-stats { gap: 6px 16px; }
  .chart-panel .ticker { padding: 10px 12px; }
}
.b-memory { --blk: #0ecb81; }
#spot-block .settings-grid { align-items: start; }

.lr-progress { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.lr-progress div { height: 100%; background: linear-gradient(90deg, var(--c-blue), var(--c-purple)); border-radius: inherit; }
.weights { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 7px; }
.weights li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 48px; gap: 10px; align-items: center; font-size: 13px; }
.wlabel { color: var(--ink-2); }
.wtrack { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.wbar { display: block; height: 100%; border-radius: inherit; }
.wbar.pos { background: var(--good); } .wbar.neg { background: var(--bad); }
.learner-box { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--surface-2); }
.learner-box .settings-grid { margin-top: 8px; }

/* ---------------------------------------------------------------- accent colours (Binance base + green/red/blue/purple accents) */
:root { --c-green: #03a66d; --c-red: #cf304a; --c-blue: #1e6fff; --c-purple: #7c3aed; --c-yellow: #f0b90b; }
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) { --c-green: #0ecb81; --c-red: #f6465d; --c-blue: #3b8bff; --c-purple: #a26bfa; --c-yellow: #fcd535; }
}
:root[data-theme="dark"] { --c-green: #0ecb81; --c-red: #f6465d; --c-blue: #3b8bff; --c-purple: #a26bfa; --c-yellow: #fcd535; }

/* app pages: a faint blue/violet glow behind the content */
body:has(main.app) {
  background: radial-gradient(900px 480px at 100% -8%, color-mix(in srgb, var(--c-blue) 7%, transparent), transparent 60%),
              radial-gradient(700px 420px at -10% 20%, color-mix(in srgb, var(--c-purple) 5%, transparent), transparent 60%), var(--page);
  background-attachment: fixed;
}

/* tiles: each metric gets its colour; P&L follows its sign */
.tiles > .tile:nth-child(4n+1) { --tc: var(--c-green); }
.tiles > .tile:nth-child(4n+2) { --tc: var(--c-blue); }
.tiles > .tile:nth-child(4n+3) { --tc: var(--c-purple); }
.tiles > .tile:nth-child(4n+4) { --tc: var(--c-yellow); }
.tiles > .tile.c-green { --tc: var(--c-green); } .tiles > .tile.c-blue { --tc: var(--c-blue); }
.tiles > .tile.c-purple { --tc: var(--c-purple); } .tiles > .tile.c-yellow { --tc: var(--c-yellow); }
.tiles > .tile.c-red { --tc: var(--c-red); }
.tiles > .tile.c-pnl, .tiles > .tile:has(.value.pos) { --tc: var(--c-green); }
.tiles > .tile.tile:has(.value.neg) { --tc: var(--c-red); }
.tile {
  background: radial-gradient(130% 150% at 0% 0%, color-mix(in srgb, var(--tc, var(--c-yellow)) 15%, transparent), transparent 58%), var(--surface);
  border-color: color-mix(in srgb, var(--tc, var(--c-yellow)) 40%, var(--border));
  box-shadow: 0 12px 32px -20px color-mix(in srgb, var(--tc, var(--c-yellow)) 75%, transparent);
  transition: border-color .2s, box-shadow .2s;
}
.tile:hover { border-color: color-mix(in srgb, var(--tc, var(--c-yellow)) 70%, var(--border)); }
.tile:has(> .ti) { padding-left: 72px; min-height: 108px; }
.tile .ti { position: absolute; left: 18px; top: 18px; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--tc) 18%, transparent); color: var(--tc);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 35%, transparent); }
.tile .ti svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile .value { color: var(--ink); }
.tile .value.pos { color: var(--good-ink); } .tile .value.neg { color: var(--bad-ink); }
.spark { height: 34px; margin-top: 8px; color: var(--tc); }
.spark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.meter { position: relative; height: 6px; border-radius: 999px; background: var(--surface-3); margin-top: 10px; }
.meter i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 60%, transparent), var(--tc)); width: 0; transition: width .4s; }
.meter b { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--ink-2); border-radius: 1px; display: none; }
.minibars { display: flex; align-items: flex-end; gap: 3px; height: 30px; margin-top: 8px; }
.minibars span { flex: 1; min-width: 3px; max-width: 10px; border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--tc), color-mix(in srgb, var(--tc) 45%, transparent)); }

/* shortcut cards: green, blue, purple, each with a pill button and an arrow */
.choices > .choice:nth-child(3n+1) { --tc: var(--c-green); }
.choices > .choice:nth-child(3n+2) { --tc: var(--c-blue); }
.choices > .choice:nth-child(3n+3) { --tc: var(--c-purple); }
.choice { position: relative; padding-right: 52px;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--tc) 13%, transparent), transparent 60%), var(--surface);
  border-color: color-mix(in srgb, var(--tc) 45%, var(--border));
  box-shadow: 0 12px 32px -22px color-mix(in srgb, var(--tc) 80%, transparent); }
.choice:hover { border-color: var(--tc); }
.choice .ficon { background: color-mix(in srgb, var(--tc) 18%, transparent); color: var(--tc); }
.choice em { justify-self: start; margin-top: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px;
  background: var(--tc); color: #fff; box-shadow: 0 6px 16px -8px var(--tc); }
.choices > .choice:nth-child(3n+1) em { background: var(--brand); color: var(--brand-ink); }
.choice::after { content: "→"; position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; color: var(--tc); background: color-mix(in srgb, var(--tc) 16%, transparent); }

/* coloured icon squares and buttons */
.ficon.b { background: color-mix(in srgb, var(--c-blue) 18%, transparent); color: var(--c-blue); }
.ficon.p, .ficon.v { background: color-mix(in srgb, var(--c-purple) 18%, transparent); color: var(--c-purple); }
.ficon.sm { width: 30px; height: 30px; font-size: 15px; border-radius: 8px; display: inline-grid; }
.btn.go { color: #fff; background: linear-gradient(135deg, var(--c-green), color-mix(in srgb, var(--c-green) 70%, #0b7a52));
  box-shadow: 0 8px 22px -10px var(--c-green); }
.btn.go:hover { filter: brightness(1.08); }
.btn.blue { background: var(--c-blue); color: #fff; } .btn.purple { background: var(--c-purple); color: #fff; }
.card:has(> h2 .ficon.g) { border-color: color-mix(in srgb, var(--c-green) 35%, var(--border)); }

/* venue cards and platform cards pick up the same glow */
.venue-card, .platform-card { box-shadow: 0 14px 34px -24px var(--vc, transparent); }
.venue-card.deriv, .platform-card.deriv { --vc: var(--v-deriv); }
.venue-card.binance, .platform-card.binance { --vc: var(--v-binance); }
.venue-card.alpaca, .platform-card.alpaca { --vc: var(--v-alpaca); }
.venue-card { background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--vc) 10%, transparent), transparent 55%), var(--surface); }

/* top navigation icons */
.topbar nav a.link svg { width: 17px; height: 17px; margin-right: 7px; vertical-align: -3px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topbar nav a.link[aria-current="page"] { color: var(--accent); }
@media (max-width: 1180px) { .topbar nav.nav-main a.link svg { display: none; } }
.learner-card .kv { margin-top: 12px; } .learner-card .lr-progress { margin-top: 4px; }
