/* Advanced 3X ETF – BALANCED 40 · member platform
   Light instrument-panel look matching the original BALANCED 40 cockpit:
   white cards on a cool grey field, tabular mono figures, an annunciator
   board of regime tiles. */
:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --faint: #94a3b8;
  --border: #e5e8ee;
  --accent: #2563eb;
  --accent-ink: #ffffff;
  --accent-soft: #e8f0fe;
  --good: #16a34a;
  --good-soft: #dcfce7;
  --good-line: #86efac;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --warn-line: #fcd34d;
  --bad: #dc2626;
  --bad-soft: #fee2e2;
  --bad-line: #fca5a5;
  --radius: 12px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 1px rgba(15, 23, 42, .03);
}
* { box-sizing: border-box; }
html { font-size: 15px; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5;
  -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0 0 .8rem; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.pos { color: var(--good); }
.neg { color: var(--bad); }
.hidden { display: none !important; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-cockpit { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
@media (max-width: 980px) { .g2, .g3, .g4, .g-cockpit { grid-template-columns: 1fr; } }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: .88rem;
  font-weight: 550; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(.95); }
.btn.danger { color: var(--bad); border-color: var(--bad-line); }
.btn.danger.solid { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn.good { background: var(--good); border-color: var(--good); color: #fff; }
.btn.sm { padding: 5px 10px; font-size: .8rem; }
.btn.lg { padding: 12px 20px; font-size: 1rem; border-radius: 11px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
label.f { display: flex; flex-direction: column; gap: 5px; font-size: .82rem; color: var(--muted); font-weight: 550; }
input, select, textarea { font: inherit; font-size: .92rem; color: var(--text); background: var(--surface);
  border: 1px solid #d5dae2; border-radius: 9px; padding: 9px 11px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
input[type=checkbox], input[type=radio] { width: auto; flex: none; margin: 3px 0 0; accent-color: var(--accent); }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: .88rem; color: var(--text); }
.check input { margin-top: 3px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* toggle switch */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 44px; height: 24px; border-radius: 999px; background: #cbd5e1; position: relative; transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .15s; }
.switch input:checked + .track { background: var(--good); }
.switch input:checked + .track::after { left: 23px; }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); min-width: 0; }
.card h3.ttl, .ttl { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted);
  font-weight: 650; margin-bottom: 14px; }
.notice { border-radius: 10px; padding: 12px 14px; font-size: .9rem; border: 1px solid; margin-bottom: 14px; }
.notice.info { background: var(--accent-soft); border-color: #bfd3fb; color: #1e3a8a; }
.notice.warn { background: var(--warn-soft); border-color: var(--warn-line); color: #78350f; }
.notice.bad { background: var(--bad-soft); border-color: var(--bad-line); color: #7f1d1d; }
.notice.good { background: var(--good-soft); border-color: var(--good-line); color: #14532d; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 650;
  background: #eef2f7; color: #334155; text-transform: uppercase; letter-spacing: .04em; }
.badge.good { background: var(--good-soft); color: #166534; }
.badge.warn { background: var(--warn-soft); color: #92400e; }
.badge.bad { background: var(--bad-soft); color: #991b1b; }
.badge.blue { background: var(--accent-soft); color: #1d4ed8; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted);
  font-weight: 650; padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl input { padding: 5px 8px; font-size: .85rem; max-width: 110px; }

/* ---------- KPI strip ---------- */
.kpi { display: flex; flex-direction: column; min-width: 0; }
.kpi .l { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 650; }
.kpi .v { font-size: 1.45rem; font-weight: 700; font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi .v.sm { font-size: 1.05rem; }

/* ---------- app shell ---------- */
.app-top { display: flex; align-items: center; gap: 22px; padding: 12px 22px; background: var(--surface);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); }
.brand:hover { text-decoration: none; }
.mark { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 800;
  font-size: .82rem; letter-spacing: -.5px; background: linear-gradient(135deg, #4f46e5, #2563eb 60%, #0ea5e9); }
.brand b { display: block; font-size: .95rem; }
.brand span { display: block; font-size: .72rem; color: var(--muted); }
.shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: calc(100vh - 61px); }
.side { background: var(--surface); border-right: 1px solid var(--border); padding: 18px 12px; }
.side .grp { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); font-weight: 700;
  margin: 18px 10px 6px; }
.side a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; color: #334155;
  font-size: .9rem; font-weight: 550; }
.side a:hover { background: var(--surface-2); text-decoration: none; }
.side a.on { background: var(--accent-soft); color: #1d4ed8; }
.side a .ic { width: 18px; text-align: center; opacity: .8; }
.main { padding: 22px; min-width: 0; }
.main > .stack > * + * { margin-top: 16px; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: flex; overflow-x: auto; gap: 4px; padding: 8px; border-right: 0; border-bottom: 1px solid var(--border); }
  .side .grp { display: none; }
  .main { padding: 14px; }
}

/* service sub-tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: .9rem; border-bottom: 2px solid transparent;
  margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--accent); border-bottom-color: var(--accent); }

/* cockpit header */
.cockpit-head { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; padding: 16px 20px; }
.cockpit-head .title b { font-size: 1.05rem; display: block; }
.cockpit-head .title span { font-size: .75rem; color: var(--muted); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-2); font-size: .82rem; font-weight: 550; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.dot.on { background: var(--good); box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.dot.off { background: var(--bad); }
.dot.warn { background: #f59e0b; }

/* regime board */
.regime { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.tile { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--surface-2); min-height: 62px; }
.tile .n { font-size: .74rem; color: var(--muted); }
.tile .s { font-weight: 750; font-size: .85rem; margin-top: 4px; color: var(--faint); letter-spacing: .04em; }
.tile.on { background: var(--good-soft); border-color: var(--good-line); }
.tile.on .s { color: var(--good); }
.tile.on.risk { background: var(--bad-soft); border-color: var(--bad-line); }
.tile.on.risk .s { color: var(--bad); }
.tile.on.guard { background: var(--warn-soft); border-color: var(--warn-line); }
.tile.on.guard .s { color: var(--warn); }
.meta-strip { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 16px; }
.meta-strip .kpi .v { font-size: 1.02rem; }

/* allocation bars */
.alloc { display: grid; grid-template-columns: 54px 1fr 150px; gap: 10px 14px; align-items: center; }
.alloc .sym { font-weight: 700; font-size: .88rem; }
.alloc .bar { position: relative; height: 22px; background: #eef2f7; border-radius: 5px; overflow: hidden; }
.alloc .bar .cur { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 5px; }
.alloc .bar .tgt { position: absolute; top: 0; bottom: 0; width: 3px; background: #0f172a; opacity: .55; }
.alloc .vals { font-family: var(--mono); font-size: .8rem; text-align: right; color: var(--muted); }
.alloc .vals b { color: var(--text); }

/* charts */
.chart { width: 100%; height: 240px; display: block; }
.chart text { font-family: var(--mono); font-size: 10.5px; fill: var(--muted); }
.legend { display: flex; gap: 16px; font-size: .78rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.heat td { text-align: center; font-family: var(--mono); font-size: .8rem; padding: 7px 4px; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: var(--surface); border-radius: 14px; max-width: 720px; width: 100%; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.25);
  max-height: 90vh; overflow: auto; }
.toast { position: fixed; bottom: 20px; right: 20px; background: #0f172a; color: #fff; padding: 12px 16px; border-radius: 10px;
  font-size: .9rem; z-index: 60; max-width: 420px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.toast.err { background: #991b1b; }

/* ---------- public site ---------- */
.site-nav { display: flex; align-items: center; gap: 20px; padding: 16px 32px; background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.site-nav nav { display: flex; gap: 22px; font-size: .92rem; }
.site-nav nav a { color: #334155; font-weight: 550; }
@media (max-width: 760px) { .site-nav nav { display: none; } .site-nav { padding: 12px 16px; } }
@media (max-width: 480px) { .site-nav { gap: 6px; padding: 10px 12px; } .site-nav .sub2 { display: none; } .site-nav .btn { padding: 6px 9px; font-size: .82rem; white-space: nowrap; } }
.hero { padding: 72px 32px 56px; max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding: 40px 16px; } }
.eyebrow { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.03em; line-height: 1.08; margin-bottom: 18px; }
.hero p.lead { font-size: 1.12rem; color: #475569; max-width: 560px; }
.section { max-width: 1160px; margin: 0 auto; padding: 56px 32px; }
@media (max-width: 760px) { .section { padding: 36px 16px; } }
.section h2 { font-size: 1.75rem; letter-spacing: -.02em; margin-bottom: 10px; }
.section .sub { color: var(--muted); max-width: 680px; margin-bottom: 28px; font-size: 1.02rem; }
.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.step { display: flex; gap: 14px; }
.step .k { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 800; }
.weights { display: flex; height: 30px; border-radius: 7px; overflow: hidden; font-size: .74rem; font-weight: 700; color: #fff; }
.weights div { display: grid; place-items: center; }
.layer { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; }
.layer b { display: block; }
.price-card { border: 2px solid var(--accent); }
.price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; }
.footer { padding: 32px; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--border); background: var(--surface); }
.footer .inner { max-width: 1160px; margin: 0 auto; }
.auth-wrap { max-width: 760px; margin: 40px auto; padding: 0 16px; }
.auth-wrap.narrow { max-width: 420px; }
.preview { border-radius: 14px; border: 1px solid var(--border); background: var(--surface); box-shadow: 0 30px 60px -30px rgba(15,23,42,.35); padding: 16px; }

/* ---------- StrategyFolio brand ---------- */
:root { --brand-ink: #0A0F1E; --brand-teal: #0f766e; --brand-mint: #5eead4; --brand-leaf: #3F6212; }
.mark-img { width: 36px; height: 36px; border-radius: 10px; display: block; flex: none; }
.wordmark { font-weight: 800; font-size: 1.16rem; letter-spacing: -.03em; color: var(--brand-ink); line-height: 1; }
.wordmark b, .brand .wordmark b { color: var(--brand-leaf); font-weight: 800; display: inline; font-size: inherit; }
.brand > span { display: block; }
.brand .sub2 { display: block; font-size: .7rem; color: var(--muted); font-weight: 550; margin-top: 3px; letter-spacing: .02em; }
.hero-band { background:
    radial-gradient(900px 420px at 85% 0%, rgba(20, 184, 166, .14), transparent 60%),
    radial-gradient(800px 380px at 0% 100%, rgba(37, 99, 235, .08), transparent 60%), var(--bg); }
.hero h1 .accent { background: linear-gradient(90deg, var(--brand-ink), var(--brand-teal)); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 1160px; margin: 0 auto;
  padding: 0 32px 40px; }
.trust div { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: #334155; }
.trust .ic { flex: none; width: 30px; height: 30px; border-radius: 9px; background: #e6fffa; color: var(--brand-teal);
  display: grid; place-items: center; font-weight: 800; }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr 1fr; padding: 0 16px 28px; } }
.strat-card { display: flex; flex-direction: column; gap: 12px; border-radius: 14px; transition: box-shadow .15s, transform .15s; }
.strat-card:hover { box-shadow: 0 12px 30px -16px rgba(15, 23, 42, .35); transform: translateY(-2px); }
.strat-card .top { display: flex; align-items: center; gap: 10px; }
.strat-card h3 { font-size: 1.15rem; margin: 0; }
.strat-card ul { margin: 0; padding-left: 18px; color: #334155; font-size: .9rem; }
.strat-card .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: .82rem; }
.strat-card .facts span { color: var(--muted); display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 650; }
.strat-card.soon { align-self: start; background: transparent; border-style: dashed; box-shadow: none; }
.strat-card.soon:hover { transform: none; box-shadow: none; }
.spark { width: 100%; height: 64px; display: block; }
.cta-band { background: linear-gradient(120deg, var(--brand-ink), #12395f 55%, var(--brand-teal)); color: #fff; border-radius: 18px;
  padding: 36px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: #cbd5e1; margin: 6px 0 0; }
.btn.light { background: #fff; color: var(--brand-ink); border-color: #fff; }
.brand .wordmark { display: block; font-size: 1.18rem; color: var(--brand-ink); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.brand .sub2 { font-size: .7rem; color: var(--muted); }
@media (max-width: 520px) { .brand .sub2 { display: none; } }

/* ---- FAQ + contact ---- */
.faq { max-width: 860px; }
.faq h3 { margin: 30px 0 10px; font-size: 1.15rem; scroll-margin-top: 80px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 13px 16px; font-weight: 600; list-style: none; display: flex; gap: 10px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--accent); font-weight: 700; width: 14px; flex: none; }
.faq details[open] summary::before { content: "–"; }
.faq details > *:not(summary) { margin: 0 16px 14px 40px; color: #334155; font-size: .95rem; }
.faq details ul { padding-left: 18px; }
.faq-jump { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 4px; }
#faqSearch { max-width: 420px; margin-top: 4px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.badge:empty { display: none; }

/* brokerage-account alerts: first thing a member sees */
.alerts-top { display: grid; gap: 10px; margin-bottom: 18px; }
.notice.alert-line { margin: 0; font-size: .93rem; border-width: 1px 1px 1px 5px; }
.notice.alert-line a { font-weight: 650; white-space: nowrap; }
.alert-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-left: 8px; vertical-align: middle; }
.alert-dot.bad { background: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .18); }
.alert-dot.warn { background: #d97706; box-shadow: 0 0 0 3px rgba(217, 119, 6, .18); }
/* strategy-page backtest KPIs: 4 across, 2 across on phones */
.bt-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .bt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .bt-kpis .card { padding: 14px; } .bt-kpis .kpi .v { font-size: 1.15rem; } }
tr.clickable{cursor:pointer}tr.clickable:hover td{background:rgba(37,99,235,.06)}

/* ===================================================================== See my trades (house account feed)
   Light by default (matches the portal); each member can switch to dark. Tokens live on .smt so the theme is scoped. */
.smt { --s-bg: transparent; --s-card: #ffffff; --s-card2: #f8fafc; --s-ln: #e5e8ee; --s-ln2: #eef1f5; --s-tx: #0f172a; --s-mu: #64748b; --s-faint: #94a3b8;
  --s-acc: #2563eb; --s-model: #15803d; --s-spy: #64748b; --s-qqq: #d97706; --s-up: #15803d; --s-down: #dc2626;
  --s-up-soft: #dcfce7; --s-down-soft: #fee2e2; --s-warn-bg: #fffbeb; --s-warn-ln: #fde68a; --s-warn-tx: #78350f; --s-chip: #f1f5f9; --s-chip-tx: #334155;
  --s-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 1px rgba(15, 23, 42, .03);
  color: var(--s-tx); display: flex; flex-direction: column; gap: 12px; }
.smt[data-theme="dark"] { --s-bg: #0B1020; --s-card: #111A2E; --s-card2: #0D1428; --s-ln: #1E2A4A; --s-ln2: #182239; --s-tx: #E8ECF6; --s-mu: #8A96B3; --s-faint: #5F6B88;
  --s-acc: #7AA2FF; --s-model: #C6F432; --s-spy: #7AA2FF; --s-qqq: #FFB547; --s-up: #B9F03A; --s-down: #FF8A7A;
  --s-up-soft: #1A2A0A; --s-down-soft: #2A1214; --s-warn-bg: #1A1608; --s-warn-ln: #5B4A1A; --s-warn-tx: #F2E3B8; --s-chip: #1A2440; --s-chip-tx: #C3CBDD;
  --s-shadow: none; background: var(--s-bg); padding: 14px; border-radius: 14px; }
.smt .m { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.smt .small { font-size: .8rem; }
.smt .pos { color: var(--s-up); } .smt .neg { color: var(--s-down); }
.smt-muted { color: var(--s-mu); }
.smt h1, .smt h2 { color: var(--s-tx); }
.smt h2 { margin: 0; font-size: 1.02rem; font-weight: 650; letter-spacing: -.01em; }
.smt .k { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; background: var(--s-model); }
.smt .k.qqq { background: var(--s-qqq); } .smt .k.spy { background: var(--s-spy); } .smt .k.dep { background: var(--s-faint); height: 0; border-top: 2px dotted var(--s-faint); }

/* header */
.smt-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 20px; }
.smt-head > div:first-child { flex: 1 1 460px; min-width: 0; }
.smt-kicker { font-size: .8rem; color: var(--s-mu); }
.smt-head h1 { margin: 2px 0 4px; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.smt-sub { margin: 0; max-width: 72ch; color: var(--s-mu); font-size: .88rem; }
.smt-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.smt-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--s-chip); color: var(--s-chip-tx); font-size: .78rem; white-space: nowrap; }
.smt-pill.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--s-up); box-shadow: 0 0 0 3px color-mix(in srgb, var(--s-up) 22%, transparent); }
.smt-theme { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .78rem; font-weight: 550; padding: 5px 10px; min-height: 30px; border-radius: 999px;
  border: 1px solid var(--s-ln); background: var(--s-card); color: var(--s-tx); cursor: pointer; }
.smt-theme:hover { border-color: var(--s-faint); }

/* notice */
.smt-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 8px 12px; border-radius: 10px; background: var(--s-warn-bg); border: 1px solid var(--s-warn-ln); color: var(--s-warn-tx); font-size: .82rem; }
.smt-note svg { flex: 0 0 auto; align-self: center; }
.smt-note p { margin: 0; flex: 1 1 520px; }
.smt-note details { flex: 0 0 auto; } .smt-note details[open] { flex: 1 1 100%; } .smt-note summary { cursor: pointer; display: inline; font-weight: 600; list-style: none; }
.smt-note summary::-webkit-details-marker { display: none; }
.smt-note details[open] summary { display: none; } .smt-note details p { margin-top: 4px; }

/* stat rail */
.smt-rail { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); background: var(--s-card); border: 1px solid var(--s-ln); border-radius: 12px; box-shadow: var(--s-shadow); overflow: hidden; }
.smt-stat { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-left: 1px solid var(--s-ln2); min-width: 0; }
.smt-stat:first-child { border-left: 0; }
.smt-stat .l { font-size: .74rem; color: var(--s-mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.smt-stat .v { font-size: 1.12rem; font-weight: 650; line-height: 1.25; white-space: nowrap; }
.smt-stat .s { font-size: .72rem; color: var(--s-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1180px) { .smt-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); } .smt-stat:nth-child(5) { border-left: 0; } .smt-stat:nth-child(n+5) { border-top: 1px solid var(--s-ln2); } }
@media (max-width: 640px) { .smt-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); } .smt-stat:nth-child(odd) { border-left: 0; } .smt-stat:nth-child(n+3) { border-top: 1px solid var(--s-ln2); } }

/* tabs */
.smt-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--s-ln); overflow-x: auto; scrollbar-width: none; }
.smt-tabs::-webkit-scrollbar { display: none; }
.smt-tabs button { font: inherit; font-size: .88rem; font-weight: 550; color: var(--s-mu); background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 8px 12px; min-height: 40px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.smt-tabs button:hover { color: var(--s-tx); }
.smt-tabs button[aria-selected="true"] { color: var(--s-tx); border-bottom-color: var(--s-tx); }
.smt-tabs .n { font-size: .72rem; color: var(--s-faint); }
.smt-tabs button[aria-selected="true"] .n { color: var(--s-mu); }
.smt-pane { display: flex; flex-direction: column; gap: 12px; }

/* cards + rows */
.smt-card { background: var(--s-card); border: 1px solid var(--s-ln); border-radius: 12px; box-shadow: var(--s-shadow); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.smt-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; }
.smt-pane { container-type: inline-size; }
.smt-cols { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 12px; align-items: start; }
.smt-cols.about { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 1000px) { .smt-cols, .smt-cols.about { grid-template-columns: 1fr; } }
@container (max-width: 1060px) { .smt-cols { grid-template-columns: 1fr; } .smt-alloc .smt-legend2 { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); } }
.smt-seg { display: inline-flex; gap: 2px; background: var(--s-chip); border-radius: 9px; padding: 3px; }
.smt-seg button { font: inherit; font-size: .8rem; font-weight: 550; min-height: 28px; padding: 3px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--s-mu); cursor: pointer; }
.smt-seg button[aria-pressed="true"] { background: var(--s-card); color: var(--s-tx); box-shadow: 0 1px 2px rgba(15, 23, 42, .12); }
.smt-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.smt-tools input { font: inherit; font-size: .82rem; width: 110px; min-height: 34px; padding: 4px 10px; border: 1px solid var(--s-ln); border-radius: 9px; background: var(--s-card); color: var(--s-tx); text-transform: uppercase; }
.smt-tools input::placeholder { text-transform: none; color: var(--s-faint); }
.smt-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .82rem; color: var(--s-mu); }
.smt-legend span { display: inline-flex; align-items: center; gap: 6px; } .smt-legend b { color: var(--s-tx); font-weight: 600; }

/* chart */
.smt-chart { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 8px; }
.smt-yax { position: relative; height: 250px; font-family: var(--mono); font-size: 11px; color: var(--s-faint); text-align: right; }
.smt-yax.lab { height: auto; padding-top: 6px; font-family: var(--font); }
.smt-yax span { position: absolute; right: 0; transform: translateY(-50%); }
.smt-plot { position: relative; height: 250px; cursor: crosshair; touch-action: pan-y; }
.smt-plot svg, .smt-dd svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.smt-grid { stroke: var(--s-ln2); } .smt-base { stroke: var(--s-faint); }
.smt-l-model { stroke: var(--s-model); } .smt-l-spy { stroke: var(--s-spy); } .smt-l-qqq { stroke: var(--s-qqq); } .smt-l-dep { stroke: var(--s-faint); }
.smt-gs { stop-color: var(--s-model); }
.smt-x { position: absolute; inset: 0; pointer-events: none; }
.smt-xl { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--s-faint); }
.smt-xt { position: absolute; top: 8px; transform: translateX(10px); background: var(--s-card); border: 1px solid var(--s-ln); border-radius: 9px; box-shadow: 0 6px 18px rgba(15, 23, 42, .14); padding: 8px 10px; font-size: .78rem; color: var(--s-mu); display: grid; gap: 3px; min-width: 170px; white-space: nowrap; }
.smt-xt.flip { transform: translateX(calc(-100% - 10px)); }
.smt-xt b { color: var(--s-tx); font-weight: 600; margin-bottom: 2px; } .smt-xt span { display: flex; justify-content: space-between; gap: 14px; align-items: center; } .smt-xt .lab { display: inline-flex; align-items: center; }
.smt-xt em { font-style: normal; font-family: var(--mono); color: var(--s-tx); }
.smt-xax { position: relative; height: 18px; font-family: var(--mono); font-size: 11px; color: var(--s-faint); }
.smt-xax span { position: absolute; top: 2px; }
.smt-dd { position: relative; height: 54px; margin-top: 4px; border-top: 1px solid var(--s-ln2); }
.smt-dd path { fill: var(--s-down); fill-opacity: .22; stroke: var(--s-down); stroke-width: 1.2; }
.smt-ddlab { position: absolute; bottom: 2px; font-family: var(--mono); font-size: 11px; color: var(--s-down); white-space: nowrap; }

/* tables */
.smt-scroll { overflow-x: auto; }
.smt-tbl { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .86rem; }
.smt-tbl th { color: var(--s-mu); font-size: .74rem; font-weight: 500; text-align: left; padding: 4px 8px 6px; border-bottom: 1px solid var(--s-ln); }
.smt-tbl td { border-top: 1px solid var(--s-ln2); padding: 7px 8px; vertical-align: middle; }
.smt-tbl tr:first-child td { border-top: 0; }
.smt-tbl .r { text-align: right; }
.smt-tbl .sub { display: block; font-size: .72rem; font-weight: 400; color: var(--s-faint); }
.smt-tbl .why { font-size: .8rem; max-width: 360px; }
.smt-tbl .sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 8px; vertical-align: middle; }
.smt-bar { display: flex; align-items: center; gap: 8px; } .smt-bar > div { flex: 1; height: 6px; background: var(--s-ln2); border-radius: 3px; overflow: hidden; }
.smt-bar > div > div { height: 6px; border-radius: 3px; } .smt-bar span { width: 44px; text-align: right; font-size: .8rem; }
.smt-alloc { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.smt-donut { position: relative; width: 150px; height: 150px; flex: 0 0 auto; }
.smt-donut > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.smt-donut b { font-size: 1rem; }
.smt-legend2 { flex: 1 1 110px; display: grid; grid-template-columns: 1fr; gap: 4px 12px; font-size: .8rem; }
.smt-legend2 div { display: flex; align-items: center; gap: 7px; } .smt-legend2 span { flex: 1; } .smt-legend2 b { color: var(--s-mu); font-weight: 500; }
.smt-legend2 i { width: 9px; height: 9px; border-radius: 2px; }
@media (max-width: 1000px) { .smt-alloc .smt-legend2 { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); } }
.smt-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--s-mu); } .smt-stats b { color: var(--s-tx); font-weight: 600; }

/* trade journal (ledger) */
.smt-ledger { display: flex; flex-direction: column; border-top: 1px solid var(--s-ln); }
.smt-jday { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 6px 5px; font-size: .78rem; font-weight: 600; color: var(--s-mu); }
.smt-jday .m { font-weight: 400; }
.smt-j { border-top: 1px solid var(--s-ln2); }
.smt-j summary { list-style: none; cursor: pointer; display: block; }
.smt-j summary::-webkit-details-marker { display: none; }
.smt-j summary:hover { background: var(--s-card2); }
.smt-j summary:focus-visible { outline: 2px solid var(--s-acc); outline-offset: -2px; border-radius: 6px; }
.smt-jrow { display: grid; grid-template-columns: 66px 44px 60px 150px minmax(0, 1fr) 18px; align-items: center; gap: 10px; padding: 7px 6px; font-size: .86rem; min-height: 38px; }
.smt-jrow .t { color: var(--s-faint); font-size: .78rem; }
.smt-jrow .side { font-size: .72rem; font-weight: 650; padding: 2px 0; border-radius: 5px; text-align: center; }
.smt-jrow .side.b { background: var(--s-up-soft); color: var(--s-up); } .smt-jrow .side.s { background: var(--s-down-soft); color: var(--s-down); }
.smt-jrow .tk { font-weight: 650; }
.smt-jrow .q { font-size: .82rem; white-space: nowrap; }
.smt-jrow .why { color: var(--s-mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.smt-jrow .chev { color: var(--s-faint); transition: transform .15s; }
.smt-j[open] .chev { transform: rotate(90deg); }
.smt-j[open] .why { white-space: normal; }
.smt-jdet { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; padding: 2px 6px 12px 130px; font-size: .84rem; }
.smt-jdet p { margin: 0; color: var(--s-tx); max-width: 72ch; }
.smt-jdet dl { margin: 0; display: grid; grid-template-columns: auto auto; gap: 3px 12px; font-size: .78rem; color: var(--s-tx); align-content: start; }
.smt-jdet dt { color: var(--s-faint); font-family: var(--font); } .smt-jdet dd { margin: 0; }
@media (max-width: 760px) {
  .smt-jrow { grid-template-columns: 58px 44px 1fr 18px; gap: 6px 8px; }
  .smt-jrow .q { grid-column: 1 / 4; margin-top: -4px; } .smt-jrow .why { grid-column: 1 / 4; white-space: normal; }
  .smt-jrow .chev { grid-row: 1; grid-column: 4; }
  .smt-jdet { grid-template-columns: 1fr; padding-left: 6px; } }
.smt-more { align-self: flex-start; font: inherit; font-size: .84rem; font-weight: 550; background: var(--s-card); border: 1px solid var(--s-ln); color: var(--s-tx); border-radius: 9px; padding: 7px 12px; min-height: 36px; cursor: pointer; }
.smt-more:hover { background: var(--s-card2); }

/* monthly heatmap */
.smt-heatt { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 3px; font-family: var(--mono); font-size: .8rem; text-align: center; }
.smt-heatt th { color: var(--s-mu); font-weight: 500; font-size: .74rem; } .smt-heatt tbody th { text-align: left; font-family: var(--font); font-weight: 600; font-size: .82rem; color: var(--s-tx); white-space: nowrap; }
.smt-heat { padding: 8px 5px; border-radius: 6px; } .smt-heat.empty { background: var(--s-card2); color: var(--s-faint); }

/* about + footer */
.smt-ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 5px; font-size: .88rem; }
.smt-cta { background: var(--s-card2); } .smt-cta p { margin: 0; font-size: .9rem; }
.smt-btn { align-self: flex-start; display: inline-flex; align-items: center; background: var(--s-acc); color: #fff !important; font-weight: 600; font-size: .9rem; padding: 10px 16px; border-radius: 10px; min-height: 42px; text-decoration: none !important; }
.smt[data-theme="dark"] .smt-btn { color: #0A0F1E !important; background: var(--s-model); }
.smt-foot { padding-top: 2px; font-size: .74rem; line-height: 1.55; color: var(--s-faint); } .smt-foot p { margin: 0; max-width: 120ch; } .smt-foot b { color: var(--s-mu); }
@media (max-width: 640px) { .smt[data-theme="dark"] { padding: 10px; } .smt-card { padding: 12px; } .smt-chart { grid-template-columns: 44px minmax(0,1fr); } .smt-yax, .smt-plot { height: 200px; } .smt-sub { font-size: .84rem; } }
@media (prefers-reduced-motion: reduce) { .smt-jrow .chev { transition: none; } }

/* site mode: pages carry both wordings; the server marks <html data-mode> */
html:not([data-mode="showcase"]) [data-mode-only="showcase"] { display: none !important; }
html[data-mode="showcase"] [data-mode-only="autopilot"] { display: none !important; }

/* strategy explainer videos (vertical 9:16) */
.vid-feature { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 40px; align-items: center; }
.vid-feature video { width: 100%; aspect-ratio: 9 / 16; border-radius: 18px; background: #0A0F1E; box-shadow: 0 18px 40px rgba(10,15,30,.22); display: block; }
.vid-feature ul { margin: 12px 0 0; padding-left: 20px; color: #475569; }
.vid-feature li { margin: 4px 0; }
@media (max-width: 760px) { .vid-feature { grid-template-columns: 1fr; gap: 20px; } .vid-feature video { max-width: 320px; margin: 0 auto; } }

/* admin health card */
.hdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #9ca3af; vertical-align: middle; margin-right: 4px; }
.hdot.ok { background: #16a34a; } .hdot.warn { background: #f59e0b; } .hdot.bad { background: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.18); }
.tbl.hlth td { padding: 7px 8px; vertical-align: top; }

/* daily brief */
.brief-body { line-height: 1.5; } .brief-body h2 { font-size: 1.25rem; margin: 0 0 12px; } .brief-body h3 { font-size: .95rem; margin: 18px 0 6px; }
.brief-body table { font-size: .9rem; } .brief-body details summary { margin-top: 4px; }
.brief-list a { display: block; padding: 8px 6px; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; }
.brief-list a span { display: block; } .brief-list a.on { background: var(--accent-soft); border-radius: 6px; } .brief-list a:hover { background: var(--surface-2, #f1f5f9); }
