/* BullVision design system — single stylesheet. Tokens first; no inline styles (CSP style-src 'self'). */
/* Inter (OFL 1.1, bv/static/fonts/OFL.txt), self-hosted latin subset. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url(/static/fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url(/static/fonts/inter-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url(/static/fonts/inter-latin-800-normal.woff2) format("woff2"); }
:root {
  --bg: #070B09; --panel: #0F1512; --panel-2: #131B17; --line: #1E2A20; --line-strong: #5A6B5E; --muted-2: #858E87;
  --green: #4CE02A; --green-dim: rgba(76, 224, 42, .12); --red: #FF4D4D;
  --text: #FFFFFF; --muted: #9AA39C; --amber: #F5C04A;
  --radius: 14px; --radius-sm: 8px; --gutter: 20px; --maxw: 1240px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
input, select, button, textarea { font: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.green { color: var(--green); }
.up { color: var(--green); } .down { color: var(--red); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 10px; font: 600 15px/1 var(--font); border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  text-decoration: none !important; }
.btn-primary { background: var(--green); color: #061004; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--green); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn[disabled], .btn.is-disabled { background: var(--panel-2); color: var(--muted); border-color: var(--line-strong);
  cursor: not-allowed; filter: none; }

/* Chips / pills */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px;
  font: 600 11.5px/1 var(--font); letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--line-strong);
  color: var(--muted); white-space: nowrap; }
.chip-demo { color: #061004; background: var(--amber); border-color: var(--amber); }
.chip-live { color: var(--green); border-color: rgba(76,224,42,.4); background: var(--green-dim); }
.chip-off { color: var(--muted); }
.pill { display: inline-flex; align-items: center; align-self: flex-start; width: max-content; max-width: 100%; flex: 0 0 auto;
  padding: 3px 10px; border-radius: 999px; font: 600 12px/1.3 var(--font); white-space: nowrap;
  border: 1px solid var(--line-strong); color: #C9D0CA; background: var(--panel-2); }
.pill-build { color: var(--green); border-color: rgba(76,224,42,.35); background: var(--green-dim); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #070B09; border-bottom: 1px solid var(--line); }
.hdr { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none !important; flex-shrink: 0; }
.brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.wordmark { font: 800 20px/1 var(--font); letter-spacing: -.01em; }
.wordmark .v { color: var(--green); }
.tagline { font-size: 11.5px; color: var(--muted); letter-spacing: .02em; margin-top: 3px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a.active { color: var(--text); text-decoration: none; background: var(--panel); }
.hdr-cta { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; margin-left: auto; }
.drawer { display: none; }

/* Ticker */
.ticker { border-bottom: 1px solid var(--line); background: var(--panel); }
.ticker-row { display: flex; align-items: center; gap: 16px; height: 42px; font-size: 13.5px; }
.ticker-quotes { display: flex; gap: 22px; overflow-x: auto; overflow-y: hidden; flex: 0 1 auto; min-width: 0; white-space: nowrap;
  scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-left: 0; }
.ticker-quotes::-webkit-scrollbar { display: none; }
.tq { display: inline-block; font-family: var(--mono); font-size: 13px; flex-shrink: 0; scroll-snap-align: start; white-space: nowrap; }
.tq b { font-family: var(--font); font-weight: 700; }
.ticker-meta { display: flex; gap: 8px; align-items: center; flex-shrink: 0; color: var(--muted); font-size: 12.5px; }

/* Hero */
.hero { padding: 40px 0 56px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto 40%; height: 620px;
  background: radial-gradient(closest-side, rgba(76,224,42,.14), transparent); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; position: relative; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; color: var(--green); font: 600 13px/1 var(--font);
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--green); }
.nw { white-space: nowrap; }
.hero h1 { font-size: clamp(36px, 4vw, 54px); font-weight: 800; letter-spacing: -.02em; }
.hero h1 em { color: var(--green); font-style: italic; display: block; }
.hero h1 span { display: block; }
.hero .sub { font-size: 18px; color: var(--muted); max-width: 540px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 22px; }
.hero-ctas .btn { height: 50px; padding: 0 24px; font-size: 16px; }
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; padding: 0; margin: 0; list-style: none;
  font-size: 14px; color: var(--muted); max-width: 520px; }
.trust li { display: flex; gap: 8px; align-items: center; }
.trust svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }

/* Laptop device art (real screenshot of our own app shell, fake-data build) */
.device { perspective: 1600px; min-width: 0; }
.laptop { transform: rotateY(-14deg) rotateX(6deg); transform-style: preserve-3d; transition: transform .6s ease; }
.device:hover .laptop { transform: rotateY(-6deg) rotateX(3deg); }
.screen { background: #000; border: 10px solid #1a211d; border-bottom-width: 14px; border-radius: 16px 16px 6px 6px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(76,224,42,.45), 0 0 90px rgba(76,224,42,.28), 0 0 24px rgba(76,224,42,.18);
  overflow: hidden; }
/* App layout preview: fixed 1280px canvas scaled to fit by landing.js; placeholders only, no data. */
.pv-vp { position: relative; overflow: hidden; max-height: 460px; }
.pv-vp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; pointer-events: none;
  background: linear-gradient(transparent, var(--bg)); }
.pv { width: 1280px; transform-origin: 0 0; background: var(--bg); font-size: 15px; color: var(--text); }
.pv-top { display: flex; align-items: center; gap: 28px; height: 60px; padding: 0 22px; background: var(--panel); border-bottom: 1px solid var(--line); }
.pv-logo { font: 800 21px/1 var(--font); }
.pv-logo .v { color: var(--green); }
.pv-nav { display: flex; gap: 6px; flex: 1; color: var(--muted); }
.pv-nav span { padding: 7px 12px; border-radius: 8px; white-space: nowrap; }
.pv-nav .on { color: var(--text); background: var(--panel-2); }
.pv-tag, .pv-chip { border: 1px solid rgba(245,192,74,.5); color: var(--amber); border-radius: 999px; padding: 4px 12px; font: 600 13px/1.2 var(--font); white-space: nowrap; }
.pv-body { display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.pv-side { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; border-right: 1px solid var(--line); min-height: 640px; }
.pv-h { color: var(--muted); font: 600 12px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; margin: 6px 10px 10px; }
.pv-si { padding: 8px 10px; border-radius: 8px; color: #C9D0CA; white-space: nowrap; }
.pv-si.on { background: var(--green-dim); color: var(--green); box-shadow: inset 3px 0 0 var(--green); }
.pv-main { padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pv-title { display: flex; align-items: center; gap: 14px; }
.pv-h1 { font: 700 28px/1.2 var(--font); }
.pv-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pv-kpi, .pv-card { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pv-l, .pv-ct { font-weight: 600; color: var(--muted); }
.pv-ct { color: var(--text); }
.sk { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #1A241E, #233028); }
.sk-v { height: 22px; width: 62%; } .sk-s { width: 38%; } .sk-w { width: 90%; } .sk-m { width: 60%; }
.pv-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; }
.pv-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pv-frame { height: 210px; border: 1px dashed var(--line-strong); border-radius: 10px; display: grid; place-items: center; color: var(--muted);
  background: repeating-linear-gradient(0deg, transparent 0 41px, var(--line) 41px 42px); }
.pv-frame span { background: var(--panel); padding: 4px 12px; border-radius: 8px; }
.base { height: 16px; margin: 0 -6%; background: linear-gradient(#2a332d, #121815); border-radius: 0 0 18px 18px;
  box-shadow: 0 18px 30px -12px rgba(0,0,0,.9); }
.device-cap { margin-top: 40px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* Sections */
section { padding: 48px 0; }
main > section + section { padding-top: 48px; }
.sec-head { max-width: 720px; margin-bottom: 30px; }
.sec-head h2 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -.01em; }
.sec-head p { color: var(--muted); font-size: 17px; }
.card { background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 22px; }
.two.two-eq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.two-top { align-items: start; }
.two.two-fill { align-items: stretch; }
.two-fill > .card { display: flex; flex-direction: column; }
.two-fill > .card > .empty { flex: 1; min-height: 0; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fact b { display: block; font-size: 22px; margin-bottom: 4px; }
.fact span { color: var(--muted); font-size: 14.5px; }

/* Modules */
.modules { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; hyphens: manual; }  /* 10 modules = 2 full rows */
.mod { display: flex; flex-direction: column; gap: 10px; min-height: 200px; transition: border-color .2s, transform .2s; }
.mod:hover { border-color: rgba(76,224,42,.45); transform: translateY(-2px); }
.mod .ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--green-dim);
  color: var(--green); }
.mod .ic svg { width: 22px; height: 22px; }
.mod-t { display: flex; align-items: center; gap: 12px; }
.mod h3 { font-size: 16.5px; margin: 0; hyphens: manual; overflow-wrap: normal; }
.mod p { color: var(--muted); font-size: 13.5px; margin: 0; flex: 1; }

/* Market + performance */
.two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h3 { margin: 0; font-size: 19px; }
table.q { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.q th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12.5px; text-transform: uppercase;
  letter-spacing: .05em; padding: 8px 6px; border-bottom: 1px solid var(--line); }
table.q td { padding: 11px 6px; border-bottom: 1px solid var(--line); }
table.q td.n, table.q th.n { text-align: right; font-family: var(--mono); }
table.q tr:last-child td { border-bottom: 0; }
.empty { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; justify-content: center; min-height: 200px;
  color: var(--muted); }
.empty b { color: var(--text); font-size: 17px; }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tier { display: flex; flex-direction: column; gap: 14px; }
.tier.featured { border-color: rgba(76,224,42,.5); box-shadow: 0 0 0 1px rgba(76,224,42,.25), 0 20px 50px -25px rgba(76,224,42,.35); }
.tier h3 { font-size: 22px; margin: 0; }
.tier-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tier .price { font-size: 15px; color: var(--muted); }
.tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; flex: 1; }
.tier li { display: flex; gap: 9px; }
.tier li::before { content: ""; width: 14px; height: 8px; margin-top: 6px; flex-shrink: 0; border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green); transform: rotate(-45deg) translateY(-2px); }
.lead-form { display: flex; gap: 14px 16px; margin-top: 64px; flex-wrap: wrap; align-items: flex-end; }
.lf-head { width: 100%; }
.lf-head h3 { font-size: 22px; margin: 0 0 4px; }
.lf-head p { margin: 0; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld label { font-size: 14px; color: #C9D0CA; }
.fld-email { flex: 1 1 300px; }
.lead-form input[type=email], .lead-form select { height: 48px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--panel); color: var(--text); padding: 0 14px; font: 15px var(--font); min-width: 0; }
.lead-form input[type=email] { width: 100%; font-size: 16px; }
.lead-form select { font-size: 16px; }
.lead-form select:has(option[value=""]:checked) { color: #9AA39C; }
.lead-form select option { color: var(--text); }
.lead-form input::placeholder, .auth-card input::placeholder, .wl-form input::placeholder { color: #9AA39C; opacity: 1; }
.lead-form select { appearance: none; padding-right: 36px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.lead-form input:focus, .lead-form select:focus { border-color: var(--green); outline: none; }
.lead-form .btn { height: 48px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { width: 100%; font-size: 14px; color: var(--muted); min-height: 1.4em; margin: 0; }
#market-foot { font-size: 13px; }
.lead-form .form-msg:empty { display: none; }
.menu-btn { min-height: 44px; }
.form-msg.ok { color: var(--green); } .form-msg.err { color: var(--red); }

/* Academy + community */
.ac { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ac h3 { font-size: 20px; margin: 0; }
.ac p { color: var(--muted); margin: 0; }
.reason { font-size: 13px; color: var(--muted); }

/* About + footer */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 50px; color: var(--muted); font-size: 13.5px; }
.ft { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.ft nav { display: flex; gap: 18px; flex-wrap: wrap; }
.ft nav a { color: #C9D0CA; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.ft nav a:hover, .ft nav a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.disclaimer { margin-top: 20px; max-width: 900px; line-height: 1.6; }

/* Legal pages */
.legal { max-width: 760px; padding: 56px var(--gutter) 80px; margin: 0 auto; }
.legal h1 { font-size: 36px; } .legal h2 { font-size: 20px; margin-top: 28px; }
.legal p, .legal li { color: #c9d0ca; }

/* Responsive */
@media (max-width: 1180px) {
  .tagline { display: none; }
  .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .nav, .hdr-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .drawer { position: fixed; inset: 68px 0 0 0; background: var(--bg); z-index: 60; padding: 18px var(--gutter);
    flex-direction: column; gap: 6px; border-top: 1px solid var(--line); overflow-y: auto; }
  .drawer.open { display: flex; }
  .drawer a.nl { color: var(--text); font-size: 18px; padding: 14px 4px; min-height: 52px; border-bottom: 1px solid var(--line); }
  body.drawer-open .ticker { visibility: hidden; }
  .drawer .btn { margin-top: 12px; height: 50px; }
  body.drawer-open { overflow: hidden; }
  .hero-grid, .two, .two.two-eq, .about { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .laptop { transform: rotateY(-8deg) rotateX(4deg); }
}
@media (max-width: 640px) {
  .hero { padding: 34px 0 24px; }
  .hero .sub { font-size: 16.5px; }
  .eyebrow { font-size: 11.5px; letter-spacing: .08em; gap: 6px; }
  .eyebrow::before { width: 14px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .trust { grid-template-columns: minmax(0, 1fr); }
  .modules, .facts { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .mod { min-height: 0; position: relative; }
  .mod > .pill { position: absolute; top: 28px; right: 20px; }
  .mod h3 { padding-right: 96px; }
  section, main > section + section { padding: 32px 0; }
  .btn-sm { height: 44px; }
  .lead-form .fld, .lead-form .lf-btn { flex: 1 1 100%; width: 100%; }
  .lead-form select { width: 100%; }
  .pv-vp { max-height: 300px; }
  .ticker-row { gap: 6px; height: auto; padding: 8px var(--gutter) 9px; flex-wrap: wrap; position: relative; }
  .ticker-quotes { flex-wrap: wrap; row-gap: 4px; column-gap: 18px; }
  .ticker-meta { order: -1; flex: 1 1 100%; }
  .ticker-quotes { flex: 1 1 100%; }
  .ticker-meta .asof { display: none; }
  table.q .hide-sm { display: none; }
  .base { margin: 0 -4%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* App shell preview (screenshot source for the landing device art; full shell arrives with /app) */
.shell { min-width: 1200px; }
.sh-top { display: flex; align-items: center; gap: 24px; height: 60px; padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--panel); }
.sh-nav { display: flex; gap: 4px; flex: 1; }
.sh-nav a { color: var(--muted); padding: 7px 12px; border-radius: 8px; font-size: 14px; }
.sh-nav a.on { color: var(--text); background: var(--panel-2); }
.sh-user { width: 32px; height: 32px; border-radius: 50%; background: var(--green-dim); color: var(--green); display: grid; place-items: center; font: 700 12px var(--font); }
.sh-body { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 60px); }
.sh-side { border-right: 1px solid var(--line); padding: 14px 10px; background: var(--bg); }
.sb-h { color: var(--muted); font: 600 12px var(--font); text-transform: uppercase; letter-spacing: .1em; margin: 12px 10px 6px; }
.sb-i { display: block; color: #c9d0ca; padding: 7px 10px; border-radius: 8px; font-size: 14px; }
.sb-i.on { background: var(--green-dim); color: var(--green); }
.sh-main { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.sh-title { display: flex; align-items: baseline; gap: 14px; }
.sh-title h1 { font-size: 26px; margin: 0; }
.sh-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.sh-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sh-card { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

/* ---------- Sign-in ---------- */
.auth-wrap { min-height: calc(100vh - 260px); display: grid; place-items: center; padding: 56px var(--gutter); }
.auth-card { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 8px; padding: 32px; }
.auth-card h1 { font-size: 28px; margin: 0; }
.auth-card > p { margin: 0 0 8px; }
.auth-card label { font-size: 14px; color: #C9D0CA; margin-top: 16px; }
.hdr-back { margin-left: auto; }
.pw-wrap { position: relative; display: flex; }
.pw-wrap input { flex: 1; min-width: 0; padding-right: 76px; }
.pw-toggle { position: absolute; right: 0; top: 0; height: 46px; min-width: 64px; border: 0; background: none; color: var(--green);
  font-weight: 600; cursor: pointer; border-radius: 0 10px 10px 0; }
.pw-toggle:hover { text-decoration: underline; }
.auth-card .auth-note { font-size: 13.5px; margin: 0; }
a.ul, .auth-foot a { text-decoration: underline; text-underline-offset: 3px; }
.auth-card .form-msg { min-height: 20px; margin: -4px 0 -6px; }
.ft-links { display: flex; gap: 18px; flex-wrap: wrap; }
.ft-links a { color: #C9D0CA; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.auth-note a, .auth-foot a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; vertical-align: middle; }  /* M5 F9: full 44x44 targets */
.ft-links a:hover, .ft-links a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.auth-card input { height: 46px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text);
  padding: 0 14px; font: inherit; font-size: 16px; }
.auth-card input:focus { border-color: var(--green); outline: none; }
.auth-card .btn { margin-top: 0; width: 100%; }
.auth-card .auth-foot { font-size: 14px; margin: 16px 0 0; }  /* 8px flex gap + 16 = 24px under Sign in */
.auth-brand { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.auth-brand svg { width: 28px; height: 28px; flex-shrink: 0; }

/* ---------- App shell (/app) ---------- */
.pill-warn { color: var(--amber); border-color: rgba(245,192,74,.35); background: rgba(245,192,74,.08); }
.ap-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 18px; height: 62px; padding: 0 20px;
  background: #0F1512; border-bottom: 1px solid var(--line); }
.ap-top .brand svg { width: 30px; height: 30px; }
.ap-menu { display: none; }
.ap-nav { display: flex; gap: 2px; }
.ap-nav a { color: var(--muted); padding: 7px 11px; border-radius: 8px; font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.ap-nav a:hover, .ap-nav a.on { color: var(--text); background: var(--panel-2); text-decoration: none; }
.ap-nav a.on { box-shadow: inset 0 -2px 0 var(--green); }
.ap-search { position: relative; margin-left: auto; width: 240px; }
.ap-search input { width: 100%; height: 38px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text);
  padding: 0 12px; font: 14px var(--font); }
.ap-search input:focus { border-color: var(--green); outline: none; }
.ap-results { position: absolute; top: 44px; left: 0; right: 0; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 6px; display: flex; flex-direction: column; z-index: 70; box-shadow: 0 18px 40px -20px #000; }
.ap-results[hidden] { display: none; }
.ap-results a, .ap-results span { padding: 8px 10px; border-radius: 8px; color: var(--text); font-size: 14px; }
.ap-results a:hover { background: var(--panel-2); text-decoration: none; }
.ap-pop-wrap { position: relative; }
.ap-icon, .ap-user { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--muted);
  display: grid; place-items: center; cursor: pointer; padding: 0; }
.ap-icon svg { width: 19px; height: 19px; }
.ap-icon:hover { color: var(--text); border-color: var(--green); }
.ap-user { border-radius: 50%; background: var(--green-dim); color: var(--green); font: 700 12.5px var(--font); border-color: rgba(76,224,42,.35); }
.ap-pop { position: absolute; right: 0; top: 46px; width: 260px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 14px; display: flex; flex-direction: column; gap: 8px; z-index: 70; font-size: 14px; box-shadow: 0 18px 40px -20px #000; }
.ap-pop[hidden] { display: none; }
.ap-pad { padding: 0 20px; }
.ap-ticker { position: sticky; top: 62px; z-index: 40; }
.ap-body { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: calc(100vh - 104px); align-items: stretch;
  background: linear-gradient(90deg, var(--bg) 251px, var(--line-strong) 251px 252px, transparent 252px); }
.ap-side { border-right: 1px solid var(--line-strong); padding: 10px 10px 30px; background: var(--bg); position: sticky; top: 104px;
  height: calc(100vh - 104px); overflow-y: auto; }
.ap-side .sb-h { margin: 16px 10px 6px; }
.ap-side .sb-i { display: flex; align-items: center; gap: 9px; padding: 7px 10px; font-size: 14px; line-height: 1.25; min-height: 36px;
  color: #C9D0CA; background: none; }
.ap-side .sb-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-side .sb-i svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--muted); }
.ap-side .sb-n { font: 600 12px var(--mono); color: var(--muted); width: 18px; flex-shrink: 0; }
.ap-side .sb-i:hover { text-decoration: none; color: var(--text); }
@media (hover: hover) and (pointer: fine) { .ap-side .sb-i:not(.on):hover { background: var(--panel); } }
.ap-side .sb-i:focus:not(:focus-visible) { background: none; }
.ap-side .sb-i.on { background: var(--green-dim); color: var(--green); font-weight: 600; box-shadow: inset 3px 0 0 var(--green); }
.ap-side .sb-i.on svg, .ap-side .sb-i.on .sb-n { color: var(--green); }
.ap-scrim { display: none; }
.ap-main { padding: 26px 28px 60px; min-width: 0; }
.mh { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.mh-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--green-dim); color: var(--green); display: grid; place-items: center; }
.mh-ic svg { width: 26px; height: 26px; }
.mh-t { flex: 1; min-width: 200px; }
.mh-row { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; }
.crumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.crumb a { color: #C9D0CA; display: inline-flex; align-items: center; min-height: 44px; }
.crumb .crumb-back { margin-left: auto; color: var(--green); }
.banner { display: flex; gap: 12px; align-items: center; padding: 14px 16px; margin-bottom: 16px; border-radius: 12px;
  border: 1px solid rgba(245,192,74,.55); background: rgba(245,192,74,.08); color: var(--text); font-size: 15px; }
.banner-ic { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--amber); color: #061004; font-weight: 800; }
.lead { font-size: 15px; line-height: 1.6; margin: 0 0 10px; }
.adapters, .gates { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; color: #D5DBD6; }
.adapters li { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.adapters li:last-child { border-bottom: 0; padding-bottom: 0; }
.badge-off { flex-shrink: 0; font: 600 11.5px/1.3 var(--font); padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: #C9D0CA; white-space: nowrap; }
.gates li { display: flex; gap: 10px; align-items: flex-start; }
.gate-ic { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--muted); background: none; }  /* pending: hollow grey circle */
.ap-disc { margin: 32px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.dir-h { font-size: 13px !important; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 22px 0 10px !important; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.dir-i { display: flex; flex-direction: column; gap: 8px; color: var(--text); font-size: 14px; }
.dir-i:hover { text-decoration: none; border-color: rgba(76,224,42,.5); }
.dir-t { display: flex; align-items: center; gap: 10px; }
.dir-t .mh-ic { width: 36px; height: 36px; }
.dir-t .mh-ic svg { width: 20px; height: 20px; }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi-l { font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.kpi-v { font: 700 20px/1.3 var(--font); overflow-wrap: anywhere; text-wrap: balance; }
.nw { white-space: nowrap; }
.kpi-s { font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.cc-chart { margin-bottom: 16px; }
.cc-chart .z-chart { height: 280px; }
.wl-empty { margin: 12px 0 0; font-size: 14px; }
.wl-empty b { color: var(--text); }
.mh-k { margin: 0 0 2px; color: var(--muted); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
.mh h1 { font-size: clamp(24px, 2.4vw, 30px); margin: 0; }
.mh-pills { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mh-k { color: var(--muted); }
.ap-main h2 { font-size: 18px; margin: 0 0 10px; }
.mod-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.mod-wide { grid-column: 1 / -1; }
.mod-note { font-size: 14px; margin: 0; }
.list { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 14.5px; color: #d5dbd6; }
.list li { display: flex; gap: 10px; }
.list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-top: 8px; flex-shrink: 0; }
.list-planned li::before { background: var(--muted); }
.list-check li::before { width: 14px; height: 14px; margin-top: 3px; border-radius: 4px; background: transparent; border: 1.5px solid var(--muted); }
.cc-stale { margin: -6px 0 14px; font-size: 13.5px; }
.cc-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cc-sub { font-size: 13px; }
.cc-src { font-size: 12.5px; margin: 6px 0 0; }
.ses { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.dot-on { background: var(--green); box-shadow: 0 0 0 4px var(--green-dim); }
#cc-regime { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.rg-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rg { font-weight: 700; padding: 4px 10px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line-strong); }
.rg-risk_on { color: var(--green); border-color: rgba(76,224,42,.4); background: var(--green-dim); }
.rg-risk_off { color: var(--red); border-color: rgba(255,77,77,.4); background: rgba(255,77,77,.1); }
.rg-mixed { color: var(--amber); border-color: rgba(245,192,74,.4); }
.rg-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; }
.rg-nums dt { color: var(--muted); font-size: 12px; }
.rg-nums dd { margin: 0; font: 600 15px var(--mono); }
.how { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.how summary { cursor: pointer; color: var(--green); text-decoration: underline; text-underline-offset: 3px; display: flex; align-items: center; min-height: 44px; }
.how p { margin: 8px 0 0; line-height: 1.55; }
.heat { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
.ht { border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line-strong); min-width: 0; }
.ht b { font-size: 14px; }
.ht.ht-ref { border-style: dashed; border-color: #9AA39C; }
.ht-n { font-size: 12.5px; color: #D5DBD6; line-height: 1.3; }
.ht-p { margin-top: auto; padding-top: 4px; font: 600 14px var(--mono); color: var(--text); display: inline-flex; gap: 6px; align-items: center; }
.ht-a { font-size: 10px; color: var(--text); }  /* sign = arrow + tile tint */
.ht-up.ht-1 { background: rgba(76,224,42,.06); } .ht-up.ht-2 { background: rgba(76,224,42,.12); }
.ht-up.ht-3 { background: rgba(76,224,42,.2); } .ht-up.ht-4 { background: rgba(76,224,42,.3); }
.ht-dn.ht-1 { background: rgba(255,77,77,.06); } .ht-dn.ht-2 { background: rgba(255,77,77,.12); }
.ht-dn.ht-3 { background: rgba(255,77,77,.2); } .ht-dn.ht-4 { background: rgba(255,77,77,.3); }
.wl-form { display: flex; gap: 8px; }
.wl-form .btn { height: 44px; }
.wl-form input { flex: 1; min-width: 0; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text);
  padding: 0 12px; font: 14px var(--font); text-transform: uppercase; }
.wl-form input::placeholder { text-transform: none; }
.wl-form input:focus { border-color: var(--green); outline: none; }
.rm { background: none; border: 1px solid var(--line-strong); color: var(--muted); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; font-size: 16px; line-height: 1; }
.rm:hover { color: var(--red); border-color: var(--red); }
.empty-sm { min-height: 110px; }
@media (max-width: 1240px) {
  .ap-nav a { padding: 7px 8px; font-size: 14px; }
  .ap-search { width: 180px; }
}
@media (max-width: 1080px) {
  .ap-nav, .ap-search { display: none; }
  .ap-menu { display: inline-flex; order: 3; margin-left: auto; }
  .ap-pop-wrap { order: 4; }
  .ap-top { gap: 14px; }
  .ap-body { grid-template-columns: minmax(0, 1fr); background: none; }
  .ap-side { position: fixed; top: 62px; left: 0; bottom: 0; height: auto; width: min(320px, 86vw); z-index: 60;
    transform: translateX(-100%); transition: transform .2s ease; visibility: hidden; }
  .ap-side.open { transform: none; visibility: visible; }
  .ap-side { padding-bottom: 24px; box-shadow: 18px 0 40px -12px rgba(0,0,0,.9); scrollbar-width: thin; scrollbar-color: var(--line-strong) var(--bg);
    background: linear-gradient(var(--bg), var(--bg)) bottom / 100% 32px no-repeat local, linear-gradient(transparent, rgba(0,0,0,.75)) bottom / 100% 28px no-repeat scroll, var(--bg); }
  .ap-side .sb-i { min-height: 44px; }
  .ap-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .85); z-index: 55; display: block; }
  body.drawer-open .ap-top { z-index: 58; }
  body.drawer-open .ap-top::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .85); pointer-events: none; }
  body.drawer-open .ap-menu, body.drawer-open .ap-top .brand, body.drawer-open .ap-user { position: relative; z-index: 1; }
  body.drawer-open.side-more::after { content: ""; position: fixed; left: 0; bottom: 0; width: min(320px, 86vw); height: 64px; z-index: 61;
    pointer-events: none; background: linear-gradient(rgba(7,11,9,0), var(--bg) 75%); }
  body.drawer-open .ap-ticker { visibility: hidden; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ap-scrim[hidden] { display: none; }
  body.drawer-open { overflow: hidden; }
  .cc-grid, .mod-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ap-top { padding: 0 20px; }
  .ap-pad { padding: 0 20px; }
  .ap-top .ap-pop-wrap:has(#ap-bell) { display: none; }
  .ap-main { padding: 20px 20px 48px; }
  .heat { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .adapters li { flex-direction: column; gap: 6px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cc-sectors .panel-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .ap-search input, .wl-form input { font-size: 16px; }
  .ap-icon, .ap-user { width: 44px; height: 44px; }
  .ap-top .btn-sm, .crumb a { min-height: 44px; height: 44px; }
  .crumb .crumb-back { margin-left: 0; flex-basis: 100%; }
  .crumb { row-gap: 0; }
  .z-legend { gap: 10px 14px; }
  .mh-ic { width: 40px; height: 40px; }
  .ap-ticker .ticker-meta #ticker-asof { display: none; }
}

/* ---------- 0DTE Bull (module 04) ---------- */
.mono { font-family: var(--mono); }
.zh { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.zh-t { flex: 1; min-width: 0; }
.zh-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.zh h1 { font-size: clamp(26px, 2.6vw, 34px); margin: 0; }
.zh-sub { margin: 8px 0 0; max-width: 760px; font-size: 15px; text-wrap: balance; }
.z-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.seg { display: inline-flex; max-width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; padding: 3px; background: var(--bg); gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; color: var(--muted); font: 600 13.5px var(--font); padding: 7px 13px; border-radius: 7px; cursor: pointer; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--green); color: #061004; }
.seg-sm button { padding: 5px 10px; font-size: 12.5px; }
.tabs-wrap { position: relative; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; scroll-behavior: auto; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; color: var(--muted); font: 600 14.5px var(--font); padding: 11px 14px; min-height: 44px; cursor: pointer;
  white-space: nowrap; flex-shrink: 0; border-bottom: 2px solid transparent; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--green); }
.z-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }

.z-grid-2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.z-grid-chain { grid-template-columns: minmax(0, 1fr); }
.z-grid-chain > .card:last-child { max-width: 760px; }
.z-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.z-col .card { padding: 18px; }
/* M11: columns end level at desktop width: the Signals list scrolls inside the row height the chart column sets (M5 F5) */
@media (min-width: 1240px) { .z-grid:not(.z-grid-chain) { align-items: stretch; }
  .z-col > .z-signal { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 200px; }
  .z-signal > #z-sigc { flex: 1 1 0; height: 0; min-height: 140px; overflow-y: auto; } }
.z-chart { height: 340px; position: relative; }
.z-chart canvas { width: 100%; height: 100%; display: block; }
.z-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; margin-top: 10px; align-items: center; }
.lg { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.lg::before { content: ""; width: 16px; height: 2px; background: currentColor; }
.lg-e9::before { background: var(--amber); } .lg-e21::before { background: #6EA8FE; }
.lg-vw::before { background: repeating-linear-gradient(90deg, #fff 0 6px, transparent 6px 9px); }
.z-kv { display: grid; gap: 10px; margin: 14px 0 0; }
.z-kv dt { color: var(--muted); font-size: 12px; }
.z-kv dd { margin: 0; font-size: 14.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.z-small { font-size: 13px; margin: 10px 0 0; }
.z-off { font-size: 14px; color: #d5dbd6; margin: 0; }
.z-exp { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.z-mark { width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center; flex-shrink: 0; font: 700 13px var(--font);
  border: 1px solid var(--line-strong); color: var(--muted); }
.z-exp.ok .z-mark, .ck-pass .z-mark { color: #061004; background: var(--green); border-color: var(--green); }
.ck-fail .z-mark { color: var(--red); border-color: rgba(255,77,77,.5); background: rgba(255,77,77,.1); }
.ck-unknown .z-mark { color: var(--amber); border-color: rgba(245,192,74,.4); }
.z-roots { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13.5px; }
.z-roots li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; }
.z-roots li > span { color: var(--muted); }
.z-dis { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px;
  color: var(--muted); cursor: not-allowed; font-size: 14px; }
.z-dis svg { width: 18px; height: 18px; flex-shrink: 0; }
.z-dis em { display: block; font-style: normal; font-size: 12.5px; }
.z-dis:hover { text-decoration: none; }
.z-scroll { overflow-x: auto; position: relative; }  /* contains .sr-only table headers */
table.z-ch { font-size: 13.5px; }
table.z-ch th, table.z-ch td { padding: 7px 6px; white-space: nowrap; }
table.z-ch .z-side th { text-align: center; color: var(--text); letter-spacing: .08em; }
table.z-ch .z-side th.z-sh { border-bottom: 2px solid var(--line-strong); }
table.z-ch .show-sm { display: none; }
table.z-ch td.z-k, table.z-ch th.z-k { text-align: center; background: var(--panel-2); font-weight: 600; }
table.z-ch td.z-pick { cursor: pointer; }
table.z-ch tr:hover td.z-pick { background: rgba(255,255,255,.02); }
table.z-ch td.z-stale { color: var(--muted-2); }
table.z-ch td.z-sel { background: rgba(76,224,42,.14); color: var(--text); box-shadow: inset 0 1.5px 0 var(--green), inset 0 -1.5px 0 var(--green); }
table.z-ch td.z-sel.z-sel-l { box-shadow: inset 1.5px 0 0 var(--green), inset 0 1.5px 0 var(--green), inset 0 -1.5px 0 var(--green); }
table.z-ch td.z-sel.z-sel-r { box-shadow: inset -1.5px 0 0 var(--green), inset 0 1.5px 0 var(--green), inset 0 -1.5px 0 var(--green); position: relative; }
table.z-ch-mini td.z-sel.z-sel-l-sm { box-shadow: inset 1.5px 0 0 var(--green), inset 0 1.5px 0 var(--green), inset 0 -1.5px 0 var(--green); }
.z-sel-tag { position: static; display: inline-block; margin-left: 6px; vertical-align: 1px; padding: 0 5px; border-radius: 4px; font: 700 11px/14px var(--font); color: #061004; background: var(--green); }
table.z-ch tr.z-atm td.z-k { color: var(--green); }
table.z-ch tr.z-stalerow td.z-k { color: var(--muted-2); font-weight: 500; }
.z-atm-tag { display: inline-block; vertical-align: baseline; margin-right: 8px; font: 700 11px/1 var(--font); letter-spacing: .04em; color: var(--green); }
.z-atm-tag.z-atm-twin { visibility: hidden; margin: 0 0 0 8px; }
.z-age { font-size: 12px; }
.z-cname { display: flex; flex-direction: column; gap: 2px; margin: 0 0 12px; font-size: 14px; }
.z-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.z-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.z-checks li > span:nth-child(2) { display: flex; flex-direction: column; }
.z-checks .muted { font-size: 13px; }
@media (max-width: 1240px) {
  .z-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .z-grid > .z-col:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 1080px) {
  .z-grid, .z-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .z-grid > .z-col:first-child { order: 2; }
  .z-grid > .z-col:last-child { order: 3; grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .zh .mh-ic { display: none; }
  .seg-scroll { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .seg-scroll::-webkit-scrollbar { display: none; }
  .seg-scroll button { flex-shrink: 0; min-height: 44px; }
  .z-bar { flex-wrap: nowrap; }
  .tabs-wrap::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 32px; pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--bg)); }
  .seg-sm button { min-height: 44px; padding: 5px 14px; }
  table.z-ch .show-sm { display: table-cell; }
  table.z-ch td.z-sel.z-sel-l-sm { box-shadow: inset 1.5px 0 0 var(--green), inset 0 1.5px 0 var(--green), inset 0 -1.5px 0 var(--green); }
  .z-chart { height: 260px; }
  table.z-ch .hide-sm { display: none; }
  table.z-ch th, table.z-ch td { padding: 7px 2px; font-size: 12.5px; }
  table.z-ch td.z-k { padding-left: 0; padding-right: 0; }
  .z-chain-card { padding: 14px 12px; }
  .z-atm-tag { margin-right: 6px; letter-spacing: 0; }
  .z-atm-tag.z-atm-twin { margin: 0 0 0 6px; }
  table.z-ch td.z-age { padding-left: 8px; }
}

/* live engine views (0DTE signals, Trade Factory) */
.chip-warn { color: var(--amber); border-color: rgba(245,192,74,.4); background: rgba(245,192,74,.08); }
.sig-kpi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.sig-kpi div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.sig-kpi b { font: 700 20px/1.2 var(--font); }
.sig-kpi span { font-size: 12.5px; color: var(--muted); }
.sig-last { margin: 0 0 12px; }
.z-sig-f { margin-bottom: 12px; }
.sig-t td { vertical-align: top; }
.st { display: inline-flex; padding: 2px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--line-strong); white-space: nowrap; }
.st-confirmed, .st-confirmation, .st-entry, .st-sent { color: var(--green); border-color: rgba(76,224,42,.4); background: var(--green-dim); }
.st-ready, .st-detection, .st-pending, .st-retry { color: var(--amber); border-color: rgba(245,192,74,.35); background: rgba(245,192,74,.08); }
.st-blocked, .st-invalidation, .st-failed { color: var(--red); border-color: rgba(255,77,77,.35); background: rgba(255,77,77,.08); }
.st-suppressed, .st-expiry, .st-late { color: var(--muted); }
.tf-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.tf-sel { font: inherit; font-size: 14px; color: var(--text); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 10px; min-height: 40px; }
.tf-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.tf-strats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tf-dl { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tf-dl li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.show-sm { display: none; }
@media (max-width: 720px) {
  .tf-kpis, .tf-strats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tf-strats { grid-template-columns: minmax(0, 1fr); }
  .show-sm { display: inline; }
  .tf-sel { flex: 1 1 140px; }
}

.sig-cards.show-m { display: none; }
.sig-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sig-cards li { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; }
.sc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sc-meta, .sc-c, .sc-why { margin: 0; font-size: 13.5px; }
.sc-meta { color: #d5dbd6; }
.nw { white-space: nowrap; }
table.tf-t td.pl, table.tf-t th.pl { padding-left: 28px; }
.z-sig-f { margin-top: 4px; }
@media (max-width: 720px) {
  .hide-m { display: none; } .sig-cards.show-m { display: grid; }
  .z-signal .sig-kpi b { font-size: 18px; }
}

.tf-dl li { display: grid; grid-template-columns: 96px 72px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.tf-dl li:first-child { border-top: 0; }
.tf-dl .st { justify-self: start; }
.sig-kpi div { min-width: 0; padding: 10px 8px; } .sig-kpi span { font-size: 11.5px; line-height: 1.3; word-break: normal; overflow-wrap: normal; }
table.tf-p th, table.tf-p td { white-space: nowrap; }
table.tf-scans td.nw, table.tf-scans th:last-child { padding-left: 28px; }
@media (max-width: 720px) {
  table.tf-p .hide-sm { display: none; }
  table.tf-p th, table.tf-p td { padding-left: 4px; padding-right: 4px; font-size: 13px; }
  table.tf-p th { white-space: normal; }
  table.tf-p td:first-child { white-space: normal; }
  .tf-dl li { row-gap: 2px; }
  .tf-dl li { grid-template-columns: 92px minmax(0, 1fr); }
  .tf-dl li > span:last-child { grid-column: 2; }
}

/* T410 A4: generic data-driven module page (renderData): KPI row + sortable table (>= 641px) / cards (< 641px) + detail drawer */
.dv-note { margin: -6px 0 14px; }
.dv-pill { white-space: normal; overflow-wrap: anywhere; width: auto; max-width: 100%; min-width: 0; flex: 0 1 auto; }
#dv-pill { display: contents; }
.dv-kpis { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.dv-t th[data-k] { cursor: pointer; user-select: none; }
.dv-t tbody tr { cursor: pointer; }
.dv-t tbody tr:focus-visible, .dv-card:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.dv-cards { display: none; list-style: none; margin: 0; padding: 0; }
.dv-card { border-bottom: 1px solid var(--line); padding: 12px 0; cursor: pointer; }
.dv-card:last-child { border-bottom: 0; }
.dv-ct { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 6px; }
.dv-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin: 0; }
.dv-card dt, .dv-dl dt { color: var(--muted); font-size: 12.5px; }
.dv-card dd, .dv-dl dd { margin: 0; overflow-wrap: anywhere; }
.dv-drawer { position: fixed; inset: 0; z-index: 60; background: rgba(7,11,9,.72); display: flex; justify-content: flex-end; }
.dv-drawer[hidden] { display: none; }
.dv-dpanel { width: min(480px, 100%); height: 100%; overflow-y: auto; border-radius: 0; background: var(--panel); }
.dv-dl { display: grid; gap: 10px; margin: 0; }
.dv-dl dd { font-family: var(--mono); font-size: 13.5px; }
@media (max-width: 640px) {
  .dv-table { display: none; }
  .dv-cards { display: block; }
}

/* T410 M7: module filters + Command Center engine panels (existing tokens only) */
.dv-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-nl li { display: grid; gap: 2px; }
.cc-nl a { color: var(--text); }
/* M8 module controls, SVG charts, aside lists, method notes */
.dv-ctlw { margin-bottom: 16px; padding: 0; }
.dv-ctlw > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; cursor: pointer; list-style: none; }
.dv-ctlw > summary::-webkit-details-marker { display: none; }
.dv-ctlw > summary::after { content: '▾'; margin-left: auto; color: var(--muted); }
.dv-ctlw[open] > summary::after { content: '▴'; }
.dv-ctlw > summary .muted { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.dv-ctl { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; padding: 0 16px 14px; }
.dv-ci { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 0 1 140px; }
.dv-ci label { font-size: 12.5px; color: var(--muted); }
.dv-ci .tf-sel { width: 100%; flex: 0 0 auto; height: 44px; min-height: 44px; padding-top: 0; padding-bottom: 0; }
.dv-cdl { margin: -4px 0 14px; } .dv-cdl b { color: var(--text); font-family: var(--mono); }
.dv-chart, .dv-aside, .dv-method { margin-bottom: 16px; }
.dv-chart svg { display: block; width: 100%; height: 240px; }
.ch-axis { stroke: var(--line-strong); stroke-width: 1; }
.ch-up { fill: var(--green); } .ch-down { fill: var(--red); }
.ch-mark { stroke: var(--amber); stroke-width: 1; stroke-dasharray: 4 3; }
.ch-lab { fill: var(--amber); font: 600 11px var(--font); }
.ch-tick { fill: var(--muted); font: 11px var(--mono); }
.ch-l { stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.ch-l.ch-text { stroke: var(--text); } .ch-l.ch-green { stroke: var(--green); } .ch-l.ch-amber { stroke: var(--amber); }
.ch-legend { display: flex; gap: 12px; font-size: 12.5px; color: var(--muted); }
.ch-k::before { content: ""; display: inline-block; width: 12px; height: 2px; margin-right: 6px; vertical-align: middle; background: var(--text); }
.ch-k.ch-green::before { background: var(--green); } .ch-k.ch-amber::before { background: var(--amber); }
.dv-al { list-style: none; margin: 0; padding: 0; }
.dv-al li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dv-al li:last-child { border-bottom: 0; }
.dv-al li div { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.dv-al li > span { flex-shrink: 0; text-align: right; color: var(--muted); font-size: 13.5px; }
.dv-method summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; min-height: 44px; }
.cc-nla { display: inline-flex; align-items: center; min-height: 44px; }  /* M5 F9 tap target */
@media (max-width: 720px) { .dv-f { min-height: 44px; font-size: 16px; } }
.dv-method p { margin: 10px 0 0; }
@media (max-width: 720px) { .dv-ctl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; padding: 0 12px 12px; }
  .dv-ci { gap: 2px; } .dv-ci label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dv-chart svg { height: 200px; } .dv-ctl .btn { grid-column: 1 / -1; min-height: 44px; } }

/* ---------- Bull Alerts (module 32) ---------- */
.al-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#al-body > section, #al-body > .z-grid { margin-bottom: 16px; }
.al-ch { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.al-ch li { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.al-ch li:first-child { border-top: 0; }
.al-act { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.al-res { flex-basis: 100%; }
.al-add { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: 10px; }
.al-add input, .al-rule input[type=time], .al-rule input[type=number], .al-rule select { height: 38px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--text); padding: 0 10px; min-width: 0; color-scheme: dark; }
.al-rule { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.al-rule:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.al-rh { display: flex; gap: 10px; align-items: baseline; margin: 0 0 8px; }
.al-rule fieldset { border: 0; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.al-rule legend { color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; margin-bottom: 6px; padding: 0; }
.al-cb { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.al-cb input { appearance: none; width: 18px; height: 18px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--bg); margin: 0; display: grid; place-content: center; }
.al-cb input:checked { background: var(--green); border-color: var(--green); }
.al-cb input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--bg); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.al-cb input:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.al-cb input:disabled { opacity: .5; }
.al-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; }
.al-row label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.al-row input[type=number] { width: 90px; }
.al-sub { display: block; }
table.al-log td { vertical-align: top; }
table.al-log .btn { margin-top: 6px; }
.al-diag li { grid-template-columns: 64px 80px minmax(0, 1fr); }
.bell-l { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 6px; max-height: 320px; overflow-y: auto; }
.bell-l a { display: flex; flex-direction: column; text-decoration: none; color: var(--text); font-size: 13.5px; }
@media (max-width: 720px) {
  .al-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .al-add { grid-template-columns: minmax(0, 1fr); }
  .al-act { margin-left: 0; }
}

/* ---------- M10 user tools (tools.js) ---------- */
.tl-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tl-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
.tl-form-wide { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 16px; }
.tl-f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); min-width: 0; }
.tl-f input, .tl-f select, .tl-f textarea, .tl-ask input { font: inherit; font-size: 15px; color: var(--text); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 10px; min-height: 40px; width: 100%; min-width: 0; }
.tl-f input:focus-visible, .tl-f textarea:focus-visible, .tl-ask input:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.tl-f input[type=datetime-local] { color-scheme: dark; }
.tl-notes, .tl-tags, .tl-act { grid-column: 1 / -1; }
.tl-tags { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.tl-tags legend, .tl-quiz legend { font-size: 13px; color: var(--muted); margin-bottom: 8px; padding: 0; }
.tl-act { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tl-act .form-msg { width: auto; flex: 1 1 200px; }
.tl-sub { display: block; margin-top: 2px; overflow-wrap: anywhere; }
.tl-rowact { white-space: nowrap; } .tl-rowact .btn + .btn { margin-left: 6px; }
.tl-gate { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.tl-gate li { display: grid; grid-template-columns: auto 130px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 14px; }
.tl-verdict { font-weight: 600; margin: 12px 0 0; }
.tl-h3 { font-size: 16px; margin: 16px 0 0; overflow-wrap: anywhere; }
.tl-ask { display: flex; gap: 10px; margin-bottom: 16px; }
.tl-ask input { flex: 1; }
.tl-answer p { line-height: 1.6; margin: 0; }
.tl-cite { color: var(--green); text-decoration: none; font-weight: 600; }
.tl-hits { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tl-hits li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; padding: 10px 8px; border-radius: 8px; border-bottom: 1px solid var(--line); }
.tl-hits li.on { background: rgba(76,224,42,.07); }
.tl-hits a { color: var(--text); }
.tl-n { font-family: var(--mono); color: var(--muted); }
.tl-lessons { display: grid; gap: 12px; margin-bottom: 16px; }
.tl-lesson summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.tl-lesson summary::-webkit-details-marker { display: none; }
.tl-lesson summary b { flex: 1 1 160px; font-size: 16px; }
.tl-lesson p { line-height: 1.6; color: var(--text); max-width: 72ch; }
.tl-quiz fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.tl-quiz legend { color: var(--text); font-size: 15px; font-weight: 600; padding: 0 4px; }
.al-cb input[type=radio] { border-radius: 50%; }
.al-cb input[type=radio]:checked::after { width: 6px; height: 6px; border: 0; border-radius: 50%; background: var(--bg); transform: none; }
.tl-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tl-bars li { display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 1fr) 56px; gap: 10px; align-items: center; font-size: 14px; }
.tl-bars li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-bars b { text-align: right; font-family: var(--mono); font-weight: 500; }
progress.tl-bar { appearance: none; width: 100%; height: 8px; border: 0; border-radius: 999px; background: var(--line); overflow: hidden; }
progress.tl-bar::-webkit-progress-bar { background: var(--line); border-radius: 999px; }
progress.tl-bar::-webkit-progress-value { background: var(--green); border-radius: 999px; }
progress.tl-bar::-moz-progress-bar { background: var(--green); border-radius: 999px; }
@media (max-width: 1080px) { .tl-form-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .tl-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-form, .tl-form-wide { grid-template-columns: minmax(0, 1fr); }
  .tl-gate li { grid-template-columns: auto minmax(0, 1fr); } .tl-gate li .muted { grid-column: 1 / -1; }
  .tl-ask { flex-direction: column; }
  .tl-rowact .btn + .btn { margin: 6px 0 0; }
}
