/* WealthGenix Trading — Explore Demo (integrated into the WealthGenixAI website, /demos/wealthgenix-trading/).
 * FUTURE PRODUCT VISION — CONCEPT VISUALIZATION. Every rule is scoped under .wgx-demo so the site design is unaffected.
 * Source: reports/WEALTHGENIXAI_FUTURE_DEMOS_V2_2026-10-15/explore-demo (classes that collided with site.css are prefixed dm-). */
/* ==========================================================================
   Explore the Future of WealthGenix Trading — interactive concept demo
   FUTURE PRODUCT VISION — CONCEPT VISUALIZATION. Scripted, fictional, offline.
   ========================================================================== */
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/Lora-Variable.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
/* ---- 1. Tokens ---------------------------------------------------------- */
.wgx-demo {
  --navy-950: #060b16;
  --navy-900: #0a1222;
  --navy-850: #0e1830;
  --navy-800: #13203d;
  --navy-700: #1b2c52;
  --line: rgba(196, 214, 255, 0.10);
  --line-strong: rgba(196, 214, 255, 0.20);

  --text-hi: #f2f5fb;
  --text: #c9d3e6;
  --text-lo: #8f9cb6;

  --gold: #d4af6a;
  --gold-hi: #ecd29c;
  --gold-wash: rgba(212, 175, 106, 0.12);
  --teal: #38c9b6;
  --teal-hi: #7fe3d5;
  --teal-wash: rgba(56, 201, 182, 0.12);
  --coral: #ef8a78;
  --coral-wash: rgba(239, 138, 120, 0.12);
  --violet: #8f9cff;

  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Lora", "Iowan Old Style", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.75);
  --glow-gold: 0 0 0 1px rgba(212, 175, 106, 0.35), 0 12px 40px -16px rgba(212, 175, 106, 0.45);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms;
  --t-med: 360ms;
  --t-slow: 700ms;

  --rail-w: 268px;
  --bar-h: 64px;
}
/* ---- 2. Base ------------------------------------------------------------ */
.wgx-demo *, .wgx-demo *::before, .wgx-demo *::after { box-sizing: border-box; }
.wgx-demo {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(56, 201, 182, 0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(212, 175, 106, 0.08), transparent 60%),
    var(--navy-950);
  -webkit-font-smoothing: antialiased;
}
/* Tabular figures only where numbers align (applied globally, 'tnum' widens spaces and hyphens in Lora/Inter). */
.wgx-demo .price, .wgx-demo .balance .big, .wgx-demo .kv dd, .wgx-demo .preview .row span:last-child, .wgx-demo .dm-ledger td, .wgx-demo .dm-facts dd, .wgx-demo .compare td, .wgx-demo .dm-field > .amount-out, .wgx-demo .progress-meta, .wgx-demo .legend b, .wgx-demo .strength { font-variant-numeric: tabular-nums; }
.wgx-demo h1, .wgx-demo h2, .wgx-demo h3, .wgx-demo h4 { margin: 0; color: var(--text-hi); }
.wgx-demo p { margin: 0; }
.wgx-demo button { font: inherit; color: inherit; }
.wgx-demo :focus-visible { outline: 2px solid var(--teal-hi); outline-offset: 3px; border-radius: 6px; }
.wgx-demo .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* ---- 3. Concept banner (persistent) ------------------------------------ */
.wgx-demo .concept-banner {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 14px;
  min-height: 34px; padding: 6px 16px;
  background: linear-gradient(90deg, #b8924f, #e9cf97 50%, #b8924f);
  color: #17110a; font-size: 12px; text-align: center;
}
.wgx-demo .concept-banner strong { letter-spacing: 0.12em; font-weight: 700; }
.wgx-demo .concept-banner span { opacity: 0.85; }
/* ---- 4. App shell ------------------------------------------------------- */
.wgx-demo .app { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: calc(100vh - 34px); }
.wgx-demo .rail {
  position: sticky; top: 34px; align-self: start; height: calc(100vh - 34px);
  display: flex; flex-direction: column; gap: 18px;
  padding: 22px 18px; border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 24, 48, 0.85), rgba(6, 11, 22, 0.9));
  overflow-y: auto;
}
.wgx-demo .dm-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.wgx-demo .dm-brand-mark { width: 38px; height: 38px; flex: 0 0 auto; }
.wgx-demo .dm-brand-name { display: block; font-weight: 700; color: var(--text-hi); letter-spacing: -0.01em; line-height: 1.15; }
.wgx-demo .dm-brand-name em { font-style: normal; color: var(--gold); }
.wgx-demo .dm-brand-sub { display: block; font-size: 11px; color: var(--text-lo); letter-spacing: 0.04em; }
.wgx-demo .rail-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-lo); }
.wgx-demo .chapter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: ch; }
.wgx-demo .chapter-link {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 10px;
  width: 100%; padding: 9px 10px; border: 1px solid transparent; border-radius: var(--r-md);
  background: transparent; text-align: left; cursor: pointer; color: var(--text);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.wgx-demo .chapter-link:hover { background: rgba(196, 214, 255, 0.05); }
.wgx-demo .chapter-link .num {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line-strong); font-size: 12px; font-weight: 600; color: var(--text-lo);
}
.wgx-demo .chapter-link .t { font-size: 14px; font-weight: 500; line-height: 1.3; }
.wgx-demo .chapter-link[aria-current="step"] { background: var(--gold-wash); border-color: rgba(212, 175, 106, 0.35); color: var(--text-hi); }
.wgx-demo .chapter-link[aria-current="step"] .num { background: var(--gold); border-color: var(--gold); color: var(--navy-950); }
.wgx-demo .chapter-link.is-done .num { border-color: var(--teal); color: var(--teal-hi); }
.wgx-demo .chapter-link.is-done .num::after { content: "✓"; font-size: 13px; }
.wgx-demo .chapter-link.is-done .num span { display: none; }
.wgx-demo .rail-foot { margin-top: auto; font-size: 11.5px; line-height: 1.5; color: var(--text-lo); border-top: 1px solid var(--line); padding-top: 14px; }
.wgx-demo .stage { display: flex; flex-direction: column; min-width: 0; }
.wgx-demo .topbar {
  position: sticky; top: 34px; z-index: 20;
  display: flex; align-items: center; gap: 16px; min-height: var(--bar-h); padding: 10px 28px;
  border-bottom: 1px solid var(--line); background: rgba(6, 11, 22, 0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.wgx-demo .topbar-brand { display: none; }
.wgx-demo .progress-wrap { flex: 1 1 auto; min-width: 0; }
.wgx-demo .progress-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--text-lo); margin-bottom: 6px; }
.wgx-demo .progress-meta b { color: var(--text-hi); font-weight: 600; }
.wgx-demo .progress { height: 6px; border-radius: var(--r-pill); background: rgba(196, 214, 255, 0.08); overflow: hidden; }
.wgx-demo .progress-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--gold)); transition: width var(--t-slow) var(--ease); }
.wgx-demo .tag-scripted { flex: 0 0 auto; padding: 5px 10px; border: 1px solid rgba(56, 201, 182, 0.4); border-radius: var(--r-pill); font-size: 11.5px; color: var(--teal-hi); background: var(--teal-wash); }
.wgx-demo .dm-main { flex: 1 1 auto; padding: 34px clamp(18px, 4vw, 56px) 40px; }
.wgx-demo .chapter { max-width: 1120px; margin: 0 auto; }
.wgx-demo .chapter[hidden] { display: none; }
.wgx-demo .chapter-head { display: grid; gap: 10px; margin-bottom: 26px; max-width: 760px; }
.wgx-demo .eyebrow { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.wgx-demo .chapter-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 2.2vw + 14px, 42px); line-height: 1.12; letter-spacing: -0.01em; }
.wgx-demo .chapter-head p { font-size: 17px; color: var(--text); max-width: 64ch; }
.wgx-demo .controls {
  position: sticky; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 12px clamp(18px, 4vw, 56px); border-top: 1px solid var(--line);
  background: rgba(6, 11, 22, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.wgx-demo .controls .group { display: flex; gap: 8px; flex-wrap: wrap; }
/* ---- 5. Buttons, chips, cards ------------------------------------------ */
.wgx-demo .dm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: rgba(196, 214, 255, 0.04);
  color: var(--text-hi); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.wgx-demo .dm-btn:hover { border-color: rgba(196, 214, 255, 0.4); background: rgba(196, 214, 255, 0.08); }
.wgx-demo .dm-btn:disabled, .wgx-demo .dm-btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }
.wgx-demo .dm-btn--gold { background: linear-gradient(135deg, #e6c98d, #c49a54); border-color: transparent; color: #16110a; }
.wgx-demo .dm-btn--gold:hover { background: linear-gradient(135deg, #f0d7a2, #cfa660); box-shadow: var(--glow-gold); }
.wgx-demo .dm-btn--teal { background: var(--teal); border-color: transparent; color: #04211d; }
.wgx-demo .dm-btn--teal:hover { background: var(--teal-hi); }
.wgx-demo .dm-btn--ghost { background: transparent; }
.wgx-demo .dm-btn--sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.wgx-demo .dm-chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: var(--r-pill);
  border: 1px solid rgba(56, 201, 182, 0.35); background: var(--teal-wash); color: var(--text-hi);
  font-size: 14px; text-align: left; cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.wgx-demo .dm-chip:hover { background: rgba(56, 201, 182, 0.2); border-color: var(--teal); }
.wgx-demo .dm-chip[aria-pressed="true"] { background: var(--teal); color: #04211d; border-color: var(--teal); }
.wgx-demo .dm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wgx-demo .dm-card {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(19, 32, 61, 0.7), rgba(10, 18, 34, 0.8));
  box-shadow: var(--shadow); padding: 22px;
}
.wgx-demo .dm-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.005em; }
.wgx-demo .card-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-lo); font-weight: 600; }
.wgx-demo .dm-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 600; border: 1px solid var(--line-strong); color: var(--text); }
.wgx-demo .dm-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.wgx-demo .dm-badge--teal { color: var(--teal-hi); border-color: rgba(56, 201, 182, 0.4); background: var(--teal-wash); }
.wgx-demo .dm-badge--gold { color: var(--gold-hi); border-color: rgba(212, 175, 106, 0.4); background: var(--gold-wash); }
.wgx-demo .dm-badge--coral { color: var(--coral); border-color: rgba(239, 138, 120, 0.4); background: var(--coral-wash); }
.wgx-demo .scripted-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding: 10px 12px; border-radius: var(--r-md); border: 1px dashed rgba(212, 175, 106, 0.45); font-size: 12.5px; color: var(--text-lo); }
.wgx-demo .scripted-note::before { content: "◆"; color: var(--gold); font-size: 10px; margin-top: 3px; }
.wgx-demo details.explain { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(6, 11, 22, 0.45); }
.wgx-demo details.explain > summary { list-style: none; cursor: pointer; padding: 11px 14px; font-size: 13.5px; font-weight: 600; color: var(--teal-hi); display: flex; justify-content: space-between; gap: 10px; }
.wgx-demo details.explain > summary::-webkit-details-marker { display: none; }
.wgx-demo details.explain > summary::after { content: "+"; font-size: 18px; line-height: 1; color: var(--text-lo); transition: transform var(--t-fast); }
.wgx-demo details.explain[open] > summary::after { transform: rotate(45deg); }
.wgx-demo details.explain > div { padding: 0 14px 14px; font-size: 14px; color: var(--text); display: grid; gap: 8px; }
/* ---- 6. Intro ----------------------------------------------------------- */
.wgx-demo .intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; min-height: 62vh; }
.wgx-demo .intro h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 3.6vw + 12px, 64px); line-height: 1.05; letter-spacing: -0.015em; }
.wgx-demo .intro h1 span { color: var(--gold); }
.wgx-demo .intro p.lead { margin-top: 18px; font-size: 18.5px; max-width: 54ch; }
.wgx-demo .intro .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.wgx-demo .intro-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--text-lo); }
.wgx-demo .intro-points li::before { content: "—"; color: var(--teal); margin-right: 8px; }
.wgx-demo .orbit { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
.wgx-demo .orbit svg { width: 100%; height: 100%; overflow: visible; }
.wgx-demo .orbit-label { font-size: 13px; fill: var(--text); font-family: var(--font-ui); }
.wgx-demo .orbit-num { font-size: 12px; font-weight: 700; fill: var(--navy-950); font-family: var(--font-ui); }
/* ---- 7. Chapter 1: AI companion --------------------------------------- */
.wgx-demo .companion { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 22px; align-items: start; }
.wgx-demo .chat { display: flex; flex-direction: column; min-height: 420px; padding: 0; overflow: hidden; }
.wgx-demo .chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(6, 11, 22, 0.45); }
.wgx-demo .avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, var(--teal-hi), var(--teal) 55%, #136e63); color: #04211d; font-weight: 700; font-size: 13px; flex: 0 0 auto; box-shadow: 0 0 0 4px rgba(56, 201, 182, 0.15); }
.wgx-demo .chat-head .who b { display: block; color: var(--text-hi); font-size: 14px; }
.wgx-demo .chat-head .who span { font-size: 12px; color: var(--text-lo); }
.wgx-demo .chat-log { flex: 1 1 auto; display: flex; flex-direction: column; gap: 12px; padding: 18px; min-height: 260px; max-height: min(46vh, 460px); overflow-y: auto; scroll-behavior: smooth; }
.wgx-demo .msg { max-width: 86%; padding: 12px 15px; border-radius: 16px; font-size: 15px; line-height: 1.55; animation: dm-rise var(--t-med) var(--ease) both; }
.wgx-demo .msg--user { align-self: flex-end; background: linear-gradient(135deg, #2a4fae, #233f8c); color: #fff; border-bottom-right-radius: 5px; }
.wgx-demo .msg--ai { align-self: flex-start; background: rgba(196, 214, 255, 0.06); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.wgx-demo .msg--ai p + p, .wgx-demo .msg--ai p + ul, .wgx-demo .msg--ai ul + p { margin-top: 8px; }
.wgx-demo .msg--ai ul { margin: 0; padding-left: 18px; }
.wgx-demo .msg--ai .msg-tag { display: block; margin-bottom: 6px; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.wgx-demo .typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 14px 16px; border-radius: 16px; background: rgba(196, 214, 255, 0.06); border: 1px solid var(--line); }
.wgx-demo .typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-hi); animation: dm-blink 1.1s infinite ease-in-out; }
.wgx-demo .typing i:nth-child(2) { animation-delay: 0.15s; }
.wgx-demo .typing i:nth-child(3) { animation-delay: 0.3s; }
.wgx-demo .chat-choices { padding: 14px 18px 18px; border-top: 1px solid var(--line); background: rgba(6, 11, 22, 0.35); }
.wgx-demo .chat-choices .card-label { margin-bottom: 10px; display: block; }
.wgx-demo .side-stack { display: grid; gap: 16px; }
.wgx-demo .principles { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.wgx-demo .principles li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; }
.wgx-demo .principles li::before { content: ""; width: 10px; height: 10px; margin-top: 6px; border-radius: 3px; background: var(--teal); transform: rotate(45deg); }
/* ---- 8. Chapter 2: basics ---------------------------------------------- */
.wgx-demo .basics { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.wgx-demo .terms { display: grid; gap: 8px; }
.wgx-demo .term {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%;
  padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(19, 32, 61, 0.55);
  cursor: pointer; text-align: left; transition: border-color var(--t-fast), background var(--t-fast);
}
.wgx-demo .term:hover { border-color: var(--line-strong); }
.wgx-demo .term[aria-selected="true"] { border-color: rgba(212, 175, 106, 0.55); background: var(--gold-wash); }
.wgx-demo .term-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(6, 11, 22, 0.6); border: 1px solid var(--line); }
.wgx-demo .term-icon svg { width: 24px; height: 24px; stroke: var(--gold); fill: none; stroke-width: 1.8; }
.wgx-demo .term b { display: block; color: var(--text-hi); font-size: 15px; }
.wgx-demo .term span { font-size: 13px; color: var(--text-lo); }
.wgx-demo .lesson { min-height: 470px; }
.wgx-demo .lesson h3 { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.wgx-demo .lesson .plain { margin-top: 8px; font-size: 16px; }
.wgx-demo .viz { margin-top: 18px; padding: 16px; border-radius: var(--r-md); background: rgba(6, 11, 22, 0.55); border: 1px solid var(--line); }
.wgx-demo .viz svg { display: block; width: 100%; height: auto; }
.wgx-demo .viz-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 13.5px; }
.wgx-demo .viz-controls label { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; }
.wgx-demo input[type="range"] { flex: 1 1 auto; accent-color: var(--gold); min-height: 30px; }
.wgx-demo .viz-caption { margin-top: 10px; font-size: 13.5px; color: var(--text-lo); }
.wgx-demo .kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.wgx-demo .kv div { padding: 10px 12px; border-radius: var(--r-sm); background: rgba(196, 214, 255, 0.04); border: 1px solid var(--line); }
.wgx-demo .kv dt { font-size: 11.5px; color: var(--text-lo); }
.wgx-demo .kv dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; color: var(--text-hi); }
.wgx-demo .svg-axis { stroke: rgba(196, 214, 255, 0.12); stroke-width: 1; }
.wgx-demo .svg-text { fill: var(--text-lo); font-size: 11px; font-family: var(--font-ui); }
.wgx-demo .line-calm { fill: none; stroke: var(--teal); stroke-width: 2.5; }
.wgx-demo .line-wild { fill: none; stroke: var(--gold); stroke-width: 2.5; }
.wgx-demo .band { fill: rgba(212, 175, 106, 0.12); }
.wgx-demo .path-draw { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: dm-draw 1.6s var(--ease) forwards; }
/* ---- 9. Chapter 3: research ------------------------------------------- */
.wgx-demo .research { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 22px; align-items: start; }
.wgx-demo .company { display: grid; gap: 14px; }
.wgx-demo .company-top { display: flex; gap: 14px; align-items: center; }
.wgx-demo .logo-tile { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #1d3b6e, #0f2347); border: 1px solid var(--line-strong); font-family: var(--font-display); font-weight: 700; color: var(--gold-hi); font-size: 22px; }
.wgx-demo .company-top .logo-tile { font-size: 24px; color: var(--gold-hi); }
.wgx-demo .company-top b { display: block; color: var(--text-hi); font-size: 18px; }
.wgx-demo .company-top span { font-size: 12.5px; color: var(--text-lo); }
.wgx-demo .dm-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.wgx-demo .dm-facts div { padding: 10px 12px; border-radius: var(--r-sm); background: rgba(196, 214, 255, 0.04); border: 1px solid var(--line); }
.wgx-demo .dm-facts dt { font-size: 11.5px; color: var(--text-lo); }
.wgx-demo .dm-facts dd { margin: 2px 0 0; font-weight: 600; color: var(--text-hi); }
.wgx-demo .seg { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: rgba(6, 11, 22, 0.6); border: 1px solid var(--line); gap: 4px; flex-wrap: wrap; }
.wgx-demo .seg button { min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 0; background: transparent; color: var(--text); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.wgx-demo .seg button[aria-pressed="true"] { background: var(--navy-700); color: var(--text-hi); box-shadow: inset 0 0 0 1px var(--line-strong); }
.wgx-demo .evidence { display: grid; gap: 10px; margin-top: 14px; }
.wgx-demo .ev { display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(19, 32, 61, 0.5); animation: dm-rise var(--t-med) var(--ease) both; }
.wgx-demo .ev::before { content: ""; border-radius: 3px; background: var(--teal); align-self: stretch; }
.wgx-demo .ev.ev--bear::before { background: var(--coral); }
.wgx-demo .ev.ev--unk::before { background: var(--violet); }
.wgx-demo .ev b { color: var(--text-hi); display: block; font-size: 14.5px; }
.wgx-demo .ev p { font-size: 13.5px; color: var(--text); margin-top: 3px; }
.wgx-demo .ev .src { font-size: 11.5px; color: var(--text-lo); margin-top: 6px; display: block; }
.wgx-demo .strength { display: grid; gap: 4px; justify-items: end; font-size: 11px; color: var(--text-lo); white-space: nowrap; }
.wgx-demo .strength i { display: inline-block; width: 7px; height: 14px; margin-left: 2px; border-radius: 2px; background: rgba(196, 214, 255, 0.15); }
.wgx-demo .strength i.dm-on { background: var(--gold); }
.wgx-demo .compare { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.wgx-demo .compare th, .wgx-demo .compare td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.wgx-demo .compare th { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-lo); font-weight: 600; }
.wgx-demo .compare td:first-child { color: var(--text-lo); }
.wgx-demo .compare td.hi { color: var(--teal-hi); font-weight: 600; }
.wgx-demo .uncert { margin-top: 16px; }
.wgx-demo .uncert-bar { position: relative; height: 12px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--coral), #b7a26e 50%, var(--teal)); opacity: 0.85; }
.wgx-demo .uncert-pin { position: absolute; top: -5px; width: 4px; height: 22px; border-radius: 2px; background: var(--text-hi); transition: left var(--t-slow) var(--ease); }
.wgx-demo .uncert-range { position: absolute; top: -3px; height: 18px; border-radius: var(--r-pill); border: 2px solid var(--text-hi); transition: left var(--t-slow) var(--ease), width var(--t-slow) var(--ease); }
.wgx-demo .uncert-scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11.5px; color: var(--text-lo); }
/* ---- 10. Chapter 4: analytics ----------------------------------------- */
.wgx-demo .analytics { display: grid; gap: 18px; }
.wgx-demo .chart-card { padding: 18px 18px 14px; }
.wgx-demo .chart-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.wgx-demo .price { font-size: 30px; font-weight: 700; color: var(--text-hi); letter-spacing: -0.02em; }
.wgx-demo .price small { font-size: 13px; color: var(--teal-hi); font-weight: 600; margin-left: 8px; }
.wgx-demo .toggles { display: flex; gap: 8px; flex-wrap: wrap; }
.wgx-demo .toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: transparent; color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.wgx-demo .toggle i { width: 14px; height: 3px; border-radius: 2px; background: currentColor; }
.wgx-demo .toggle[aria-pressed="true"] { background: rgba(196, 214, 255, 0.08); color: var(--text-hi); }
.wgx-demo .toggle[data-ind="ma20"] i { background: var(--teal); }
.wgx-demo .toggle[data-ind="ma50"] i { background: var(--gold); }
.wgx-demo .toggle[data-ind="vol"] i { background: var(--violet); }
.wgx-demo .toggle[data-ind="rsi"] i { background: var(--coral); }
.wgx-demo #chart { display: block; width: 100%; height: auto; margin-top: 10px; touch-action: pan-y; }
.wgx-demo .price-line { fill: none; stroke: #e9eefb; stroke-width: 2; }
.wgx-demo .price-area { fill: url(#areaGrad); }
.wgx-demo .ma20 { fill: none; stroke: var(--teal); stroke-width: 2; }
.wgx-demo .ma50 { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 6 4; }
.wgx-demo .volbar { fill: rgba(143, 156, 255, 0.35); }
.wgx-demo .rsi-line { fill: none; stroke: var(--coral); stroke-width: 1.8; }
.wgx-demo .rsi-band { fill: rgba(239, 138, 120, 0.06); }
.wgx-demo .marker circle { fill: var(--gold); stroke: var(--navy-950); stroke-width: 3; cursor: pointer; }
.wgx-demo .marker text { fill: var(--navy-950); font-size: 11px; font-weight: 700; font-family: var(--font-ui); pointer-events: none; }
.wgx-demo .crosshair { stroke: rgba(196, 214, 255, 0.35); stroke-dasharray: 3 3; }
.wgx-demo .tip-bg { fill: rgba(6, 11, 22, 0.92); stroke: var(--line-strong); }
.wgx-demo .tip-text { fill: var(--text-hi); font-size: 12px; font-family: var(--font-ui); }
.wgx-demo .ind-explain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.wgx-demo .ind-card { padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(19, 32, 61, 0.45); font-size: 13.5px; }
.wgx-demo .ind-card b { display: block; color: var(--text-hi); margin-bottom: 4px; font-size: 14px; }
.wgx-demo .ind-card.is-on { border-color: var(--line-strong); background: rgba(19, 32, 61, 0.8); }
.wgx-demo .dm-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 14px 0 0; padding: 0; }
.wgx-demo .dm-flow li button {
  width: 100%; height: 100%; text-align: left; padding: 12px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: rgba(6, 11, 22, 0.5); color: var(--text); cursor: pointer; display: grid; gap: 4px; font-size: 13px;
}
.wgx-demo .dm-flow li button b { color: var(--text-hi); font-size: 14px; }
.wgx-demo .dm-flow li button .n { font-size: 11px; color: var(--gold); font-weight: 700; letter-spacing: 0.1em; }
.wgx-demo .dm-flow li button[aria-pressed="true"] { border-color: rgba(56, 201, 182, 0.55); background: var(--teal-wash); }
.wgx-demo .flow-detail { margin-top: 12px; padding: 14px 16px; border-radius: var(--r-md); border-left: 3px solid var(--teal); background: rgba(56, 201, 182, 0.06); font-size: 14.5px; animation: dm-rise var(--t-med) var(--ease) both; }
/* ---- 11. Chapter 5: practice ------------------------------------------ */
.wgx-demo .practice { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.wgx-demo .balance { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.wgx-demo .balance .big { font-size: 30px; font-weight: 700; color: var(--text-hi); letter-spacing: -0.02em; }
.wgx-demo .dm-field { display: grid; gap: 6px; margin-top: 16px; }
.wgx-demo .dm-field > span { font-size: 12.5px; color: var(--text-lo); font-weight: 600; letter-spacing: 0.03em; }
.wgx-demo .instrument { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(6, 11, 22, 0.5); }
.wgx-demo .instrument b { color: var(--text-hi); }
.wgx-demo .dm-field > .amount-out { font-size: 24px; font-weight: 700; color: var(--gold-hi); letter-spacing: -0.01em; }
.wgx-demo .preview { display: grid; gap: 0; margin-top: 4px; }
.wgx-demo .preview .row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.wgx-demo .preview .row span:first-child { color: var(--text-lo); }
.wgx-demo .preview .row span:last-child { color: var(--text-hi); font-weight: 600; text-align: right; }
.wgx-demo .meter { margin-top: 14px; }
.wgx-demo .meter-track { position: relative; height: 10px; border-radius: var(--r-pill); background: rgba(196, 214, 255, 0.08); overflow: hidden; }
.wgx-demo .meter-fill { height: 100%; border-radius: inherit; transition: width var(--t-med) var(--ease), background var(--t-med); }
.wgx-demo .meter-guide { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text-hi); opacity: 0.7; }
.wgx-demo .meter-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-lo); margin-top: 6px; }
.wgx-demo .risk-say { margin-top: 12px; font-size: 14.5px; padding: 12px 14px; border-radius: var(--r-md); background: rgba(6, 11, 22, 0.5); border: 1px solid var(--line); }
.wgx-demo .dm-checks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.wgx-demo .dm-checks label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.wgx-demo .dm-checks input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--teal); flex: 0 0 auto; }
.wgx-demo .confirm { text-align: center; padding: 30px 22px; animation: dm-rise var(--t-med) var(--ease) both; }
.wgx-demo .confirm .seal { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-wash); border: 2px solid var(--teal); color: var(--teal-hi); font-size: 34px; }
.wgx-demo .confirm h3 { font-family: var(--font-display); font-size: 24px; }
.wgx-demo .dm-ledger { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 14px; text-align: left; }
.wgx-demo .dm-ledger th, .wgx-demo .dm-ledger td { padding: 8px 6px; border-bottom: 1px solid var(--line); }
.wgx-demo .dm-ledger th { color: var(--text-lo); font-weight: 600; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; }
/* ---- 12. Chapter 6: review -------------------------------------------- */
.wgx-demo .review { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 22px; align-items: start; }
.wgx-demo .donut-wrap { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; align-items: center; }
.wgx-demo .donut svg { width: 170px; height: 170px; display: block; }
.wgx-demo .legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.wgx-demo .legend li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.wgx-demo .legend i { width: 12px; height: 12px; border-radius: 4px; }
.wgx-demo .legend b { color: var(--text-hi); }
.wgx-demo .dm-timeline { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 0; }
.wgx-demo .dm-timeline li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding-bottom: 14px; position: relative; }
.wgx-demo .dm-timeline li::before { content: ""; width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-wash); z-index: 1; }
.wgx-demo .dm-timeline li::after { content: ""; position: absolute; left: 5px; top: 18px; bottom: 0; width: 2px; background: var(--line-strong); }
.wgx-demo .dm-timeline li:last-child::after { display: none; }
.wgx-demo .dm-timeline b { color: var(--text-hi); font-size: 14px; display: block; }
.wgx-demo .dm-timeline span { font-size: 13.5px; }
.wgx-demo .lessons { display: grid; gap: 10px; margin-top: 14px; }
.wgx-demo .lesson-card { padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(19, 32, 61, 0.5); }
.wgx-demo .lesson-card b { color: var(--gold-hi); display: block; margin-bottom: 4px; }
.wgx-demo .quiz fieldset { border: 0; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.wgx-demo .quiz legend { font-weight: 600; color: var(--text-hi); margin-bottom: 8px; padding: 0; }
.wgx-demo .quiz-opt { display: block; width: 100%; text-align: left; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: rgba(6, 11, 22, 0.5); cursor: pointer; font-size: 14.5px; }
.wgx-demo .quiz-opt:hover { border-color: var(--teal); }
.wgx-demo .quiz-opt.is-right { border-color: var(--teal); background: var(--teal-wash); }
.wgx-demo .quiz-opt.is-wrong { border-color: var(--coral); background: var(--coral-wash); }
.wgx-demo .quiz-feedback { margin-top: 10px; font-size: 14px; min-height: 1.5em; }
.wgx-demo .finish { margin-top: 18px; padding: 22px; border-radius: var(--r-lg); text-align: center; border: 1px solid rgba(212, 175, 106, 0.45); background: linear-gradient(135deg, rgba(212, 175, 106, 0.12), rgba(56, 201, 182, 0.08)); }
.wgx-demo .finish h3 { font-family: var(--font-display); font-size: 24px; }
.wgx-demo .finish p { margin-top: 6px; }
.wgx-demo .finish .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
/* ---- 13. Motion -------------------------------------------------------- */
@keyframes dm-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes dm-blink { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes dm-draw { to { stroke-dashoffset: 0; } }
@keyframes dm-spin { to { transform: rotate(360deg); } }
@keyframes dm-pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.9; } }
.wgx-demo .chapter.is-entering { animation: dm-rise var(--t-slow) var(--ease) both; }
.wgx-demo .orbit .ring { transform-origin: 230px 230px; animation: dm-spin 60s linear infinite; }
.wgx-demo .orbit .core { animation: dm-pulse 3.5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
.wgx-demo *, .wgx-demo *::before, .wgx-demo *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
.wgx-demo .path-draw { stroke-dashoffset: 0; }
}
/* ---- 14. Responsive ---------------------------------------------------- */
@media (max-width: 1100px) {
.wgx-demo .ind-explain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wgx-demo .dm-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
.wgx-demo { --rail-w: 0px; }
.wgx-demo .app { grid-template-columns: minmax(0, 1fr); }
.wgx-demo .rail { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 16px; gap: 12px; }
.wgx-demo .rail .dm-brand, .wgx-demo .rail .rail-label, .wgx-demo .rail-foot { display: none; }
.wgx-demo .chapter-list { grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.wgx-demo .chapter-list li { scroll-snap-align: start; }
.wgx-demo .topbar-brand { display: flex; }
.wgx-demo .topbar { top: 34px; }
.wgx-demo .intro, .wgx-demo .companion, .wgx-demo .basics, .wgx-demo .research, .wgx-demo .practice, .wgx-demo .review { grid-template-columns: minmax(0, 1fr); }
.wgx-demo .orbit { max-width: 340px; }
}
@media (max-width: 640px) {
.wgx-demo .dm-main { padding: 24px 16px 28px; }
.wgx-demo .topbar { padding: 10px 16px; gap: 10px; }
.wgx-demo .topbar-brand .dm-brand-sub, .wgx-demo .tag-scripted { display: none; }
.wgx-demo .controls { padding: 10px 16px; }
.wgx-demo .controls .dm-btn { padding: 0 14px; }
.wgx-demo .kv { grid-template-columns: minmax(0, 1fr); }
.wgx-demo .dm-facts { grid-template-columns: minmax(0, 1fr); }
.wgx-demo .ind-explain, .wgx-demo .dm-flow { grid-template-columns: minmax(0, 1fr); }
.wgx-demo .donut-wrap { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.wgx-demo .msg { max-width: 94%; }
.wgx-demo .dm-card { padding: 16px; }
.wgx-demo .concept-banner span { display: none; }
.wgx-demo .controls { flex-wrap: nowrap; gap: 6px; }
.wgx-demo .controls .group { flex-wrap: nowrap; gap: 6px; }
.wgx-demo .controls .dm-btn { min-height: 44px; padding: 0 12px; font-size: 13px; }
.wgx-demo .lbl-long { display: none; }
.wgx-demo .progress-meta { white-space: nowrap; }
.wgx-demo #progress-label { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
}
.wgx-demo .lbl-short { display: none; }
@media (max-width: 640px) {
.wgx-demo .lbl-short { display: inline; }
}
/* ---- 15. Utilities (no inline styles: the page CSP forbids them) ------- */
.wgx-demo .mt8 { margin-top: 8px; }
.wgx-demo .mt12 { margin-top: 12px; }
.wgx-demo .mt16 { margin-top: 16px; }
.wgx-demo .board-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.wgx-demo .msg--wide { max-width: 100%; animation: none; }
.wgx-demo .btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.wgx-demo .meter-guide { left: 25%; }
@media (max-width: 380px) {
.wgx-demo .lbl-mid { display: none; }
.wgx-demo .controls .dm-btn { padding: 0 11px; }
.wgx-demo .dm-main { padding-inline: 12px; }
}

/* ---- Website integration (2026-10-15) ---- */
.wgx-demo { position: relative; color: var(--text); background:
    radial-gradient(1100px 700px at 85% -10%, rgba(56, 201, 182, 0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(212, 175, 106, 0.08), transparent 60%),
    var(--navy-950); }
.wgx-demo .concept-banner { top: var(--site-header-h, 76px); }
.wgx-demo .app { min-height: calc(100vh - var(--site-header-h, 76px) - 34px); }
.wgx-demo .rail { top: calc(var(--site-header-h, 76px) + 34px); height: calc(100vh - var(--site-header-h, 76px) - 34px); }
.wgx-demo .topbar { top: calc(var(--site-header-h, 76px) + 34px); }
.wgx-demo .dm-return { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--teal-hi); text-decoration: none; }
.wgx-demo .dm-return:hover { color: #fff; text-decoration: underline; }
.wgx-demo p + p { margin-top: 0; }
.wgx-demo img, .wgx-demo svg { max-width: none; }
.wgx-demo .orbit svg, .wgx-demo #chart, .wgx-demo .viz svg { max-width: 100%; }
/* Keep the site's Ask WealthGenixAI launcher clear of the demo's sticky control bar. */
.page-demo .ask { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 76px); }
@media (max-width: 980px) {
  .wgx-demo .rail { position: static; height: auto; }
  .wgx-demo .topbar { top: calc(var(--site-header-h, 76px) + 34px); }
}
@media (max-width: 640px) {
  .page-demo .ask { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 70px); }
}
.wgx-demo .topbar-return { display: none; flex: 0 0 auto; }
@media (max-width: 980px) { .wgx-demo .topbar-return { display: inline-flex; } .wgx-demo .topbar-brand { display: none; } }
/* The site body enables tabular figures globally; in Lora/Inter that widens spaces and hyphens. */
.wgx-demo { font-variant-numeric: normal; }
@media (max-width: 980px) {
  .wgx-demo .topbar { position: static; }
}
@media (max-width: 640px) {
  .wgx-demo .concept-banner { min-height: 30px; padding: 6px 10px; font-size: 10.5px; }
  .wgx-demo .concept-banner strong { letter-spacing: 0.06em; }
}

/* ---- 11b. Chapter 5: company choice + 30-day practice market (2026-10-15) ---- */
.wgx-demo .co-pick { display: grid; gap: 8px; }
.wgx-demo .co-pick .instrument { width: 100%; font: inherit; color: var(--text); cursor: pointer; text-align: left; transition: border-color var(--t-fast), background var(--t-fast); }
.wgx-demo .co-pick .instrument:hover { border-color: var(--line-strong); }
.wgx-demo .co-pick .instrument[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-wash); box-shadow: var(--glow-gold); }
.wgx-demo .co-pick .instrument:focus-visible, .wgx-demo .pm button:focus-visible { outline: 2px solid var(--teal-hi); outline-offset: 2px; }
.wgx-demo .co-px { color: var(--text-hi); font-weight: 600; font-variant-numeric: tabular-nums; }
.wgx-demo .pm { margin-top: 22px; }
.wgx-demo .pm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.wgx-demo .pm-title { font-family: var(--font-display); font-size: 22px; color: var(--text-hi); margin: 6px 0 4px; }
.wgx-demo .pm-sub { margin: 0; max-width: 62ch; font-size: 13.5px; color: var(--text-lo); }
.wgx-demo .pm-day { display: grid; justify-items: end; text-align: right; }
.wgx-demo .pm-day b { font-size: 34px; line-height: 1.1; color: var(--text-hi); font-variant-numeric: tabular-nums; }
.wgx-demo .pm-day span:last-child { font-size: 12px; color: var(--text-lo); }
.wgx-demo .pm-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.wgx-demo .pm-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; margin-top: 16px; align-items: start; }
.wgx-demo .pm-tabs { margin-bottom: 8px; }
.wgx-demo #pm-chart { display: block; width: 100%; height: auto; }
.wgx-demo .pm-future { fill: rgba(196, 214, 255, 0.035); }
.wgx-demo .pm-area { fill: rgba(56, 201, 182, 0.12); }
.wgx-demo .pm-avg { stroke: var(--gold); stroke-width: 1.2; stroke-dasharray: 5 5; }
.wgx-demo .pm-avg-label { fill: var(--gold-hi); }
.wgx-demo .pm-event { fill: rgba(212, 175, 106, 0.2); stroke: var(--gold); stroke-width: 1.2; }
.wgx-demo .pm-event-n { fill: var(--gold-hi); font-size: 10px; font-weight: 700; font-family: var(--font-ui); }
.wgx-demo .pm-buy { fill: var(--teal); }
.wgx-demo .pm-sell { fill: var(--coral); }
.wgx-demo .pm-now { fill: var(--text-hi); stroke: var(--teal); stroke-width: 2; }
.wgx-demo .pm-news { margin-top: 6px; padding: 8px 10px; border-left: 2px solid var(--gold); border-radius: 4px; background: var(--gold-wash); font-size: 13.5px; color: var(--text); }
.wgx-demo .pm-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.wgx-demo .pm-up { color: var(--teal-hi); }
.wgx-demo .pm-down { color: var(--coral); }
.wgx-demo .pm-h4 { margin: 16px 0 8px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-lo); }
.wgx-demo .pm-holdings { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wgx-demo .pm-pos { padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(6, 11, 22, 0.5); }
.wgx-demo .pm-pending { border-style: dashed; }
.wgx-demo .pm-pos-head { display: flex; justify-content: space-between; gap: 8px; font-variant-numeric: tabular-nums; }
.wgx-demo .pm-pos-head b { color: var(--text-hi); }
.wgx-demo .pm-pos-meta { margin: 4px 0 8px; font-size: 13px; color: var(--text-lo); font-variant-numeric: tabular-nums; }
.wgx-demo .pm-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.wgx-demo .pm-empty { padding: 10px 0; font-size: 13.5px; color: var(--text-lo); }
.wgx-demo .pm-status { min-height: 1.4em; margin-top: 10px; font-size: 13.5px; color: var(--teal-hi); }
.wgx-demo .pm-history { margin-top: 18px; }
.wgx-demo .pm-history > div { overflow-x: auto; }
.wgx-demo .pm-review { margin-top: 18px; display: grid; gap: 8px; justify-items: start; }
.wgx-demo .pm-review > div { justify-self: stretch; }
.wgx-demo .pm-fb { margin-top: 6px; padding: 16px; border: 1px solid rgba(212, 175, 106, 0.35); border-radius: var(--r-md); background: rgba(6, 11, 22, 0.55); }
.wgx-demo .pm-fb h4 { margin: 6px 0 2px; font-family: var(--font-display); font-size: 19px; color: var(--text-hi); }
.wgx-demo .pm-fb-list { margin: 12px 0 0; padding-left: 1.1rem; display: grid; gap: 8px; font-size: 14px; }
.wgx-demo .pm-fb-list b { color: var(--text-hi); }
.wgx-demo .pm-fb-next { margin-top: 12px; font-size: 14px; }
@media (max-width: 980px) { .wgx-demo .pm-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .wgx-demo .pm-day { justify-items: start; text-align: left; }
  .wgx-demo .pm-controls .dm-btn { flex: 1 1 auto; }
  .wgx-demo .pm-acts .dm-btn { flex: 1 1 40%; }
  .wgx-demo #pm-chart .svg-text { font-size: 19px; }
  .wgx-demo #pm-chart .pm-event-n { font-size: 13px; }
  .wgx-demo .pm-kv dd { font-size: 15px; }
}
