<style>
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --bg: #0D1117; --bg-card: #161B22; --bg-card-2: #1C2128;
    --neutral: var(--border-strong); --neutral-text: var(--text-muted);
    --teal: #00E5A0; --violet: #7C5CFC; --amber: #F5A623; --red: #FF4B4B; --teal-rgb: 0,229,160; --signal-calm: #22C55E; --signal-calm-rgb: 34,197,94; --signal-orange: var(--amber); --signal-red: var(--red);
    --teal-text: #00E5A0; --violet-text: #7C5CFC; --amber-text: #F5A623; --red-text: #FF4B4B;
    --text: #E6EDF3; --text-muted: #8B949E; --text-dim: #484F58;
    --border: #21262D; --border-light: #30363D; --border-strong: #6E7681;
    --gold-wordmark: #F5A623;
    --on-teal: #0D1117;
    --overlay-scrim: rgba(0,0,0,0.72);
  }
    html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
  body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; min-height: 100vh; -webkit-font-smoothing: antialiased; overflow-x: hidden; width: 100%; }
    body.light { --bg: #F4F6F8; --bg-card: #FFFFFF; --bg-card-2: #EEF1F4; --teal: #047857; --violet: #5B3FD6; --amber: #A35700; --red: #B91C1C; --teal-text: #047857; --violet-text: #5B3FD6; --amber-text: #A35700; --red-text: #B91C1C; --text: #0D1117; --text-muted: #57606A; --text-dim: #A0A7AF; --border: #D8DDE3; --border-light: #C4CAD1; --border-strong: #6B7280; --gold-wordmark: #B8860B; --on-teal: #FFFFFF; --overlay-scrim: rgba(0,0,0,0.55); --teal-rgb: 12,138,94; --signal-calm: #16A34A; --signal-calm-rgb: 22,163,74; --signal-orange: var(--amber); --signal-red: var(--red); }
  body.light nav { background: rgba(244,246,248,0.92); }
  body.light .market-dropdown-menu { background: #FFFFFF; }

  body.widget-mode { background: transparent; min-height: unset; }
  button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

  nav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 0 2rem; height: 56px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: rgba(13,17,23,0.92); backdrop-filter: blur(12px); z-index: 100; gap: 1rem; }
  .nav-left { display: flex; align-items: center; gap: 12px; }
  .logo { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.3px; cursor: pointer; }
  .logo-bolt { font-size: 20px; }
  .logo span:first-of-type { color: var(--text-muted); font-weight: 300; }
  .logo span:last-of-type { color: var(--text); }
  .market-dropdown { position: relative; }
  .market-dropdown-btn { display: flex; align-items: center; gap: 6px; height: 30px; background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 8px; color: var(--text); font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 500; cursor: pointer; padding: 0 10px; transition: border-color 0.2s; letter-spacing: 0.5px; white-space: nowrap; }
  .market-dropdown-btn:hover { border-color: var(--teal); }
  .market-dropdown-arrow { font-size: 9px; color: var(--text-dim); transition: transform 0.2s; }
  .market-dropdown.open .market-dropdown-arrow { transform: rotate(180deg); }
  .market-dropdown-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 10px; min-width: 280px; z-index: 200; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.45); }  
  .market-dropdown.open .market-dropdown-menu { display: block; }
  .market-option { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; transition: background 0.15s; border-bottom: 1px solid var(--border); }
  .market-option:last-child { border-bottom: none; }
  .market-option:hover:not(.coming-soon) { background: var(--bg-card-2); }
  .market-option.active { background: rgba(var(--teal-rgb),0.06); }
  .market-option.coming-soon { opacity: 0.45; cursor: not-allowed; }
  .market-option-code { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 700; color: var(--teal-text); min-width: 52px; letter-spacing: 0.5px; }
  .market-option.coming-soon .market-option-code { color: var(--text-dim); }
  .market-option-name { font-size: 12px; color: var(--text-muted); line-height: 1.3; }
  .market-option-badge { font-size: 10px; font-weight: 600; letter-spacing: 0.5px; color: var(--text-dim); background: var(--bg-card-2); border: 1px solid var(--border); border-radius: 8px; padding: 2px 6px; margin-left: auto; }
  .market-live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); flex-shrink: 0; animation: pulse 2s infinite; }
  .market-live-dot.wip { background: var(--amber); }
  .nav-links { display: flex; gap: 2rem; list-style: none; justify-self: center; }
  .nav-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; cursor: pointer; }
  .nav-links a.active { color: var(--teal-text); }
  .nav-links a:hover { color: var(--text); }
  .nav-right { display: flex; align-items: center; gap: 12px; justify-self: end; }
  .live-badge { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--teal-text); letter-spacing: 0.5px; }
  .premium-pill-wrap { position: relative; }
  .premium-pill { font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: 1px; border-radius: 20px; padding: 5px 12px; cursor: pointer; border: 1px solid var(--border-light); background: var(--bg-card-2); color: var(--text-muted); transition: background 0.2s, border-color 0.2s, color 0.2s; }
  .premium-pill.is-premium { background: rgba(124,92,252,0.12); border-color: rgba(124,92,252,0.35); color: var(--violet-text); }
  .premium-pill:hover { border-color: var(--teal); color: var(--teal-text); }
  .premium-pill.is-premium:hover { border-color: rgba(124,92,252,0.5); color: var(--violet-text); }
  .premium-popover { position: absolute; top: calc(100% + 10px); right: 0; width: 280px; background: var(--bg-card-2); border: 1px solid var(--border-light); border-radius: 10px; padding: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.4); z-index: 400; }
  .premium-popover-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
  .premium-popover-input { width: 100%; box-sizing: border-box; background: var(--bg); border: 1px solid var(--border-light); border-radius: 6px; padding: 8px 10px; font-size: 13px; color: var(--text); font-family: 'Inter', sans-serif; margin-bottom: 10px; }
  .premium-popover-btn { width: 100%; background: var(--teal); border: none; border-radius: 6px; color: var(--on-teal); font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 700; cursor: pointer; padding: 8px; }
  .premium-popover-btn:disabled { opacity: 0.6; cursor: not-allowed; }
  .premium-popover-msg { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
  @media (max-width: 768px) { .premium-popover { width: 240px; right: -20px; } }
  #export-nav-btn svg, .theme-icon { display: none; }
  @media (max-width: 768px) {
    #export-nav-btn svg { display: block; }
    #export-nav-btn .export-btn-text { display: none; }
    .theme-icon { display: inline; }
    .theme-text { display: none; }
  }
  .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: pulse 2s infinite; }
  .theme-toggle { background: none; border: 1px solid var(--border-light); border-radius: 20px; color: var(--text-muted); font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500; cursor: pointer; padding: 4px 10px; display: flex; align-items: center; gap: 5px; transition: color 0.2s, border-color 0.2s; letter-spacing: 0.3px; }
  .theme-toggle:hover { color: var(--text); border-color: var(--text-muted); }
  @keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }

  main { max-width: 1400px; margin: 0 auto; padding: 2rem; }

  /* ONBOARDING */
  
  .onboarding-logo { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; margin-bottom: 1.5rem; }




  /* ONBOARDING v3 - 3-step wizard */
  body.onboarding-active > nav,
  body.onboarding-active > main { filter: blur(6px); transition: filter 0.2s; pointer-events: none; }
  .onb-card { position: relative; display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 16px; padding: 2rem 2.5rem 1.75rem; max-width: 660px; width: 100%; max-height: 88vh; overflow-y: auto; }
  .onb-logo-big { justify-content: center; font-size: 26px; margin-bottom: 1.5rem; }
  .onb-logo-big .logo-bolt { font-size: 28px; }
  .onb-body-wrap { display: flex; flex-direction: column; padding-top: 0.5rem; }
  .onb-dots { display: flex; justify-content: center; gap: 7px; margin: 1.25rem 0; flex-shrink: 0; }
  .onb-dot { width: 7px; height: 7px; border-radius: 50%; background: transparent; border: 1.5px solid var(--border-strong); transition: background 0.2s, border-color 0.2s; cursor: pointer; }
  .onb-dot.active { background: var(--teal); border-color: var(--teal); }
  .onb-step-title { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; color: var(--text); margin-bottom: 0.6rem; text-align: center; }
  .onb-step-body { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; margin-bottom: 1.25rem; text-align: center; }
  .onb-how-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .onb-how-step { flex: 1; border-radius: 10px; padding: 0.75rem 0.6rem; text-align: center; }
  .onb-how-arrow { color: var(--border-strong); font-size: 16px; flex-shrink: 0; text-align: center; transform: rotate(90deg); }
  .onb-how-num { font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700; margin-bottom: 4px; }
  .onb-how-label { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
  .onb-how-sub { font-size: 10.5px; color: var(--text-dim); line-height: 1.35; }
  .onb-pages-grid { display: flex; flex-direction: column; gap: 0.85rem; }
  .onb-page-card { display: flex; align-items: center; gap: 10px; background: var(--bg-card-2); border-radius: 10px; padding: 1.15rem 1.3rem; text-align: left; min-height: 68px; box-sizing: border-box; }
  .onb-page-card-askgp { background: rgba(var(--teal-rgb),0.08); border: 1px solid rgba(var(--teal-rgb),0.3); }
  body.light .onb-page-card-askgp { background: rgba(var(--teal-rgb),0.08); border-color: rgba(var(--teal-rgb),0.3); }
  .onb-page-name { font-size: 13.5px; font-weight: 700; color: var(--teal-text); flex-shrink: 0; min-width: 68px; }
  .onb-askgp-name { color: var(--teal-text); min-width: 74px; }
  .onb-page-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
  .onb-persona-grid { display: flex; flex-direction: column; gap: 0.55rem; }
  .onb-persona-card { display: flex; flex-direction: column; gap: 3px; background: var(--bg-card-2); border: 1px solid var(--border); border-radius: 10px; padding: 0.85rem 1rem; cursor: pointer; transition: border-color 0.15s, background 0.15s; text-align: left; }
  .onb-persona-card:hover { border-color: var(--teal); background: rgba(var(--teal-rgb),0.04); }
  .onb-persona-label { font-size: 13.5px; font-weight: 600; color: var(--text); }
  .onb-persona-hint { font-size: 11.5px; color: var(--text-muted); line-height: 1.4; }
  .onb-persona-dest { font-size: 12.5px; font-weight: 700; font-family: 'IBM Plex Mono', monospace; color: var(--teal-text); margin-top: 4px; opacity: 0.9; }
  .onb-footer { display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
  .onb-btn { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; border-radius: 8px; padding: 8px 18px; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s; }
  .onb-btn-next { background: var(--teal); border: none; color: var(--on-teal); }
  .onb-btn-next:hover { opacity: 0.9; }
  .onb-btn-back { background: none; border: 1px solid var(--border-strong); color: var(--text-muted); margin-right: 8px; }
  .onb-btn-back:last-child { margin-right: 0; }
  .onb-btn-back:hover { color: var(--text); border-color: var(--text-muted); }
  @media (max-width: 640px) {
    .onb-card { max-width: 94vw; padding: 1.5rem 1rem 1.25rem; }
    .onb-logo-big { font-size: 20px; }
    .onb-logo-big .logo-bolt { font-size: 22px; }
    .onb-step-title { font-size: 17px; }
    .onb-how-step, .onb-page-card, .onb-persona-card { padding-left: 0.85rem; padding-right: 0.85rem; }
  }


  .modal-overlay { position: fixed; inset: 0; background: var(--overlay-scrim); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 1rem; animation: fadeIn 0.25s ease forwards; }
  .modal-card { position: relative; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 16px; padding: 2rem 2.25rem; max-width: 460px; width: 100%; }
  .modal-close-btn { position: absolute; top: 0.85rem; right: 0.85rem; background: none; border: none; color: var(--text-dim); font-size: 20px; cursor: pointer; line-height: 1; padding: 4px; border-radius: 6px; transition: background 0.15s, color 0.15s; }
  .modal-close-btn:hover { background: var(--bg-card-2); color: var(--text); }



  /* BRIEF */
  .brief-top { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
  .signal-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; min-height: 220px; position: relative; overflow: hidden; }
  .signal-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; }
  .signal-card.CALM::after { background: var(--signal-calm); } .signal-card.WATCH::after { background: var(--amber); } .signal-card.ELEVATED::after { background: var(--red); }
  .signal-card.CALM { border-color: rgba(var(--signal-calm-rgb),0.2); } .signal-card.WATCH { border-color: rgba(245,166,35,0.2); } .signal-card.ELEVATED { border-color: rgba(255,75,75,0.2); }
  .signal-date-row { display: flex; justify-content: space-between; align-items: center; }
  .signal-date { font-size: 13px; color: var(--text-muted); font-family: 'IBM Plex Mono', monospace; }
  .signal-word { font-size: clamp(52px, 8vw, 80px); font-weight: 700; letter-spacing: -2px; line-height: 1; text-align: center; margin: 0.5rem 0; }
  .signal-word.CALM { color: var(--signal-calm); } .signal-word.WATCH { color: var(--amber-text); } .signal-word.ELEVATED { color: var(--red-text); }
  .signal-reason { font-size: 13px; color: var(--text-muted); text-align: center; line-height: 1.5; max-width: 340px; margin: 0 auto; }
  .insight-card { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--teal); border-radius: 12px; padding: 1.75rem; }
  .card-label { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 1rem; }
  .recap-label { color: var(--teal-text); } .outlook-label { color: var(--violet-text); }
  .card-text { font-size: 15px; line-height: 1.7; color: var(--text); font-weight: 400; }

  .stat-label { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; }
  .stat-value { font-size: 24px; font-weight: 500; color: var(--text); letter-spacing: -0.2px; font-family: 'IBM Plex Mono', monospace; }

  .outlook-card { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--violet); border-radius: 12px; padding: 1.75rem; margin-bottom: 1rem; display: flex; flex-direction: column; justify-content: space-between; }
  .premium-gate { position: relative; min-height: 150px; }
  .premium-gate-blur { filter: blur(6px); pointer-events: none; user-select: none; }
  .premium-gate-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: rgba(13,17,23,0.55); border-radius: 8px; padding: 1rem; text-align: center; --text: #E6EDF3; --text-muted: #C9D1D9; --text-dim: #8B949E; --teal-text: #00E5A0; --violet-text: #7C5CFC; --border: rgba(255,255,255,0.25); --bg-card-2: rgba(255,255,255,0.08); }
  body.light .premium-gate-overlay { background: rgba(244,246,248,0.88); --text: #0D1117; --text-muted: #3D444D; --text-dim: #57606A; --teal-text: #047857; --violet-text: #5B3FD6; --border: rgba(13,17,23,0.15); --bg-card-2: rgba(13,17,23,0.05); }
  .premium-gate-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
  .premium-gate-cta { font-size: 11px; color: var(--text-dim); margin-top: 10px; }
  .premium-gate-cta a { color: var(--teal-text); text-decoration: none; }
  .premium-gate-cta a:hover { text-decoration: underline; }
  .accuracy-dot-wrap { position: relative; display: inline-flex; }
  .accuracy-dot { transition: transform 0.15s ease; cursor: pointer; }
  .accuracy-dot-wrap:hover .accuracy-dot { transform: scale(1.35); }
  .accuracy-tooltip { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(4px); background: var(--bg-card-2); border: 1px solid var(--border-light); border-radius: 8px; padding: 8px 11px; font-size: 11px; line-height: 1.5; color: var(--text-muted); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s ease, transform 0.15s ease; z-index: 20; }
  .accuracy-dot-wrap:hover .accuracy-tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }

  .bias-row { display: flex; align-items: center; gap: 12px; margin-bottom: 0.6rem; }
  .bias-badge { font-size: 13px; font-weight: 700; letter-spacing: 1px; font-family: 'IBM Plex Mono', monospace; padding: 4px 10px; border-radius: 8px; }
  .bias-badge.SHORT-VOL, .bias-badge.LONG-VOL, .bias-badge.NEUTRAL { color: var(--neutral-text); background: var(--bg-card-2); border: 1px solid var(--border-light); }
  .bias-reason { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
  .action-items { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.25rem; }
  .action-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.6; color: var(--text); }
  .action-num { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 700; color: var(--amber-text); background: rgba(245,166,35,0.1); border-radius: 4px; padding: 2px 6px; flex-shrink: 0; margin-top: 2px; }
  .key-risk-row { display: flex; align-items: flex-start; gap: 10px; padding-top: 1rem; border-top: 1px solid var(--border); }
  .key-risk-label { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--red-text); font-family: 'IBM Plex Mono', monospace; flex-shrink: 0; margin-top: 2px; }
  .key-risk-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; }


  /* HISTORY STRIP + CHART */
  .history-strip-wrap { margin-bottom: 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.75rem; }
  .history-strip-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
  .history-strip-label { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); }
  .chart-toggle-btn, .chart-toggle-btn.active { display: flex; align-items: center; gap: 5px; background: var(--bg-card-2); border: 1px solid var(--border-strong); border-radius: 8px; color: var(--text); font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500; cursor: pointer; padding: 3px 8px; letter-spacing: 0.3px; transition: border-color 0.2s; }
  .chart-toggle-btn:hover { border-color: var(--text-dim); }
  .forward-look-btn { display: flex; align-items: center; gap: 5px; border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; cursor: pointer; padding: 3px 8px; letter-spacing: 0.3px; transition: color 0.2s, border-color 0.2s, background 0.2s; background: var(--bg-card-2); border: 1px solid var(--border-strong); color: var(--text-muted); }
  .forward-look-btn:hover { border-color: var(--text-dim); color: var(--text); }
  .forward-look-btn.active { background: rgba(var(--teal-rgb),0.12); border-color: var(--teal); color: var(--teal-text); }
  .chart-legend { display: flex; align-items: center; gap: 14px; margin-top: 0.6rem; font-size: 10px; color: var(--text-muted); flex-wrap: wrap; }
  .chart-legend-item { display: inline-flex; align-items: center; gap: 4px; }
  .chart-legend-dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
  .chart-legend-note { color: var(--text-dim); }
  .forward-disclaimer-inline { font-size: 10px; color: var(--text-dim); margin-top: 0.7rem; padding-top: 0.7rem; border-top: 1px solid var(--border); }
  .forward-narrative { margin-top: 0.75rem; }
  .forward-outlook-box { background: var(--bg-card-2); border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem 1rem; margin-top: 0.75rem; }
  .forward-outlook-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; }
  .forward-outlook-text { font-size: 12px; line-height: 1.6; color: var(--text); }
  .forward-tone-chips { display: flex; gap: 8px; margin-top: 0.7rem; flex-wrap: wrap; }
  .forward-tone-chips { align-items: stretch; }
  .forward-tone-chip { flex: 1; min-width: 130px; border-radius: 8px; padding: 0.6rem 0.8rem; display: flex; flex-direction: column; gap: 3px; }
  .forward-tone-chip-label { font-size: 9px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 2px; }
  .forward-tone-chip-driver { font-size: 10px; color: var(--text-muted); }
  .history-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .history-strip::-webkit-scrollbar { display: none; }
  .history-chip { flex: 1; min-width: 92px; min-height: 92px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 16px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
  .forecast-chip { border-style: dashed; opacity: 0.85; }
  .history-price { font-size: 11px; font-weight: 700; font-family: 'IBM Plex Mono', monospace; color: var(--text-muted); }
  .history-day { font-size: 10px; font-weight: 600; letter-spacing: 1px; color: var(--text-muted); text-transform: uppercase; font-family: 'IBM Plex Mono', monospace; }
  .history-signal { display: flex; align-items: center; gap: 5px; }
  .history-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
  .history-label { font-size: 11px; font-weight: 600; }
  .history-chart-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem 1.5rem; }
  .history-chart-scroll { overflow-x: auto; scrollbar-width: none; }
  .history-chart-scroll::-webkit-scrollbar { display: none; }

  /* MARKETS */
  .markets-page { display: flex; flex-direction: column; gap: 1rem; }
  .markets-top { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .markets-lmp-row { display: flex; flex-direction: column; gap: 1rem; }

  .split-card-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; }
  .split-card-half-left { padding: 1.75rem; }
  .split-card-half-right { padding: 1.75rem; border-left: 1px solid var(--border); }
  .signal-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
  .day-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.75rem; display: flex; flex-direction: column; }
  .day-card-signal-word { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; text-align: center; margin: 3rem 0; }
  @media (max-width: 1099px) { .signal-row { grid-template-columns: 1fr; } }
  .chart-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.75rem; }
  .chart-header-actions { display: flex; align-items: center; gap: 6px; }
  .chart-icon-btn { background: none; border: 1px solid var(--border-light); border-radius: 6px; color: var(--text-dim); cursor: pointer; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; padding: 0; transition: background 0.2s, color 0.2s, border-color 0.2s; }
  .chart-icon-btn:hover { background: var(--bg-card-2); color: var(--text); border-color: var(--teal); }
  .chart-icon-btn svg { width: 14px; height: 14px; }


  .chart-mobile-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--bg-card-2); border: 1px solid var(--border-light); border-radius: 8px; padding: 10px 16px; font-size: 12px; color: var(--text); z-index: 10000; box-shadow: 0 4px 16px rgba(0,0,0,0.4); }


  .chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
  .chart-title { font-size: 15px; font-weight: 600; color: var(--text); }
  .chart-subtitle { font-size: 12px; color: var(--text-muted); font-family: 'IBM Plex Mono', monospace; margin-top: 2px; }
  .chart-wrap { width: 100%; overflow-x: auto; }
  svg.demand-chart { width: 100%; aspect-ratio: 5 / 1; display: block; }
  svg.bar-chart { width: 100%; display: block; }
.chart-y-label { font-size: 13px; fill: #8B949E; font-family: 'IBM Plex Mono', monospace; }
.chart-x-label { font-size: 13px; fill: #8B949E; font-family: 'IBM Plex Mono', monospace; }
  .chart-grid-line { stroke: #21262D; stroke-width: 1; }
  .chart-line { fill: none; stroke: #00E5A0; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
  .chart-area { fill: url(#areaGradient); }
  .chart-dot { fill: #00E5A0; }
  body.light .chart-x-label, body.light .chart-y-label { fill: #57606A; }
  body.light .chart-grid-line { stroke: #D8DDE3; }
  body.light .chart-line { stroke: #047857; }
  body.light .chart-dot { fill: #047857; }
  .markets-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .market-stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem 1.5rem; }
  .market-stat-card.highlight { border-color: rgba(var(--teal-rgb),0.25); }
  .vol-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.75rem; }
  .vol-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
  .vol-signal-badge { display: flex; align-items: center; gap: 10px; }
  .vol-signal-word { font-size: 28px; font-weight: 700; letter-spacing: -1px; }
  .vol-signal-word.CALM { color: var(--signal-calm); } .vol-signal-word.WATCH { color: var(--amber-text); } .vol-signal-word.ELEVATED { color: var(--red-text); }
  .vol-signal-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
  .vol-signal-dot.CALM { background: var(--signal-calm); } .vol-signal-dot.WATCH { background: var(--amber); } .vol-signal-dot.ELEVATED { background: var(--red); }
  .vol-reason { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
  .vol-indicators { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .vol-indicator { background: var(--bg-card-2); border-radius: 8px; padding: 0.9rem 1rem; display: flex; flex-direction: column; }
  .vol-indicator-label { font-size: 10px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
  .vol-indicator-value { font-size: 24px; font-weight: 500; color: var(--text); font-family: 'IBM Plex Mono', monospace; }

  .data-source-badge { font-size: 11px; color: var(--text-dim); font-family: 'IBM Plex Mono', monospace; margin-top: 0.5rem; text-align: right; }

  /* ABOUT */
  .about-page { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: stretch; }
  .about-hero { grid-column: 1 / -1; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 2.5rem; text-align: center; min-width: 0; }
  .about-hero h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 0.75rem; }
  .about-hero h1 span { color: var(--teal-text); }
  .about-hero p { font-size: 15px; line-height: 1.8; color: var(--text-muted); margin: 0 auto; }
  .about-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.75rem; min-width: 0; }
  .about-section h2 { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal-text); margin-bottom: 1rem; }
  .about-section p { font-size: 14px; line-height: 1.8; color: var(--text-muted); margin-bottom: 0.75rem; }
  .about-section p:last-child { margin-bottom: 0; }
  .about-section a { color: var(--teal-text); text-decoration: none; }
  .about-section a:hover { text-decoration: underline; }
  .who-for-grid { grid-template-columns: repeat(4, 1fr); }
  @media (max-width: 1099px) { .who-for-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 480px) { .who-for-grid { grid-template-columns: 1fr; } }
  @media (max-width: 768px) {
    .how-it-works-flow { flex-direction: column !important; align-items: stretch !important; }
    .how-it-works-arrow { display: none !important; }
    .how-it-works-step { flex: none !important; min-width: 0 !important; width: 100% !important; }
    .how-it-works-arrow-down { display: flex !important; justify-content: center; font-size: 18px; color: var(--text-dim); padding: 0.25rem 0; }
  }
  .data-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0.75rem; }
  .data-pill { background: var(--bg-card-2); border: 1px solid var(--border-light); border-radius: 8px; padding: 6px 12px; font-size: 12px; font-family: 'IBM Plex Mono', monospace; color: var(--text-muted); }
  .signal-pill { display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: 12px; font-weight: 600; margin-right: 4px; }
  .signal-pill.CALM { color: var(--signal-calm); background: rgba(var(--signal-calm-rgb),0.1); }
  .signal-pill.WATCH { color: var(--amber-text); background: rgba(245,166,35,0.1); }
  .signal-pill.ELEVATED { color: var(--red-text); background: rgba(255,75,75,0.1); }


  footer { text-align: center; padding: 2rem; color: var(--text-dim); font-size: 12px; border-top: 1px solid var(--border); margin-top: 2rem; }
  .loading { display: flex; align-items: center; justify-content: center; min-height: 300px; color: var(--text-muted); font-size: 14px; gap: 10px; }
  .spinner { width: 16px; height: 16px; border: 2px solid var(--border-light); border-top-color: var(--teal); border-radius: 50%; animation: spin 0.8s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes gp-shimmer { 0% { background-position: -200px 0; } 100% { background-position: 200px 0; } }
  .gp-skeleton { background: linear-gradient(90deg, var(--bg-card-2) 25%, var(--border-light) 37%, var(--bg-card-2) 63%); background-size: 400px 100%; animation: gp-shimmer 1.4s ease-in-out infinite; border-radius: 8px; }
  .error-state { text-align: center; padding: 3rem; color: var(--text-muted); }
  .fade-in { animation: fadeIn 0.4s ease forwards; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

  .mobile-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: rgba(13,17,23,0.96); border-top: 1px solid var(--border); padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom)); z-index: 100; }
  .mobile-nav-inner { display: flex; justify-content: space-around; align-items: center; }
  .mobile-nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-muted); font-size: 11px; font-weight: 500; cursor: pointer; transition: color 0.2s; }
  .mobile-nav-item.active { color: var(--teal); }
  .mobile-nav-icon { display: flex; align-items: center; justify-content: center; }

  /* LEARN */
  .learn-page { display: flex; flex-direction: column; gap: 1.5rem; }
  .learn-hero { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 2rem 2.5rem; }
  .learn-hero h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 0.5rem; color: var(--text); }
  .learn-hero h1 span { color: var(--teal-text); }
  .learn-hero p { font-size: 14px; line-height: 1.7; color: var(--text-muted); max-width: 640px; }

  .stakes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .stakes-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem 1.3rem; display: flex; flex-direction: column; gap: 0.6rem; }
  .stakes-term { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 500; color: var(--teal-text); letter-spacing: 0.3px; }
  .stakes-what { font-size: 13px; line-height: 1.6; color: var(--text-muted); }
  .stakes-risk-row { display: flex; align-items: flex-start; gap: 7px; padding-top: 0.6rem; border-top: 1px solid var(--border); margin-top: auto; }
  .stakes-risk-label { font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.8px; color: var(--amber-text); text-transform: uppercase; flex-shrink: 0; padding-top: 1px; }
  .stakes-risk-text { font-size: 12px; line-height: 1.55; color: var(--text-muted); }

  .learn-tabs-track { display: flex; gap: 4px; background: var(--bg-card-2); border: 1px solid var(--border); border-radius: 10px; padding: 4px; margin-bottom: 1.5rem; overflow-x: auto; }
  .learn-tab { flex: 1; white-space: nowrap; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; color: var(--text-muted); background: none; border: none; border-radius: 7px; padding: 9px 12px; cursor: pointer; transition: background 0.15s, color 0.15s; }
  .learn-tab:hover { color: var(--text); }
  .learn-tab.active { background: var(--bg-card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
  .learn-tab-panel { display: none; }
  .learn-tab-panel.active { display: block; }
  .learn-persona-footer { margin-top: 1.5rem; padding: 1rem 1.1rem; background: var(--bg-card-2); border: 1px solid var(--border); border-radius: 8px; font-size: 12px; line-height: 1.8; color: var(--text-muted); }
  .learn-persona-footer strong { color: var(--text); }
  .market-compare-switcher { display: flex; align-items: center; gap: 10px; margin: 1rem 0 0.75rem; flex-wrap: wrap; }
  .market-compare-select-wrap { position: relative; display: inline-flex; align-items: center; }
.market-compare-select { -webkit-appearance: none; -moz-appearance: none; appearance: none; background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 8px; color: var(--text); font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 500; cursor: pointer; padding: 5px 24px 5px 10px; letter-spacing: 0.5px; transition: border-color 0.2s; }
.market-compare-select:hover { border-color: var(--teal); }
.market-compare-arrow { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 9px; color: var(--text-dim); pointer-events: none; }
  .curriculum-list { display: flex; flex-direction: column; gap: 1rem; }
  .chapter-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem 1.75rem; }
  .chapter-num { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500; color: var(--text-dim); letter-spacing: 1px; margin-bottom: 0.4rem; }
  .chapter-title { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -0.2px; margin-bottom: 0.85rem; }
  .chapter-body { font-size: 14px; line-height: 1.75; color: var(--text-muted); margin-bottom: 1rem; }
  .chapter-body p { margin-bottom: 0.6rem; } .chapter-body p:last-child { margin-bottom: 0; }
  .chapter-why { display: flex; align-items: flex-start; gap: 8px; padding-top: 1rem; border-top: 1px solid var(--border); }
  .chapter-why-label { font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.8px; color: var(--teal-text); text-transform: uppercase; flex-shrink: 0; padding-top: 2px; }
  .chapter-why-text { font-size: 13px; line-height: 1.6; color: var(--text-muted); }
  .market-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 1rem 0; }
  .market-compare-col { background: var(--bg-card-2); border-radius: 8px; padding: 1rem 1.1rem; }
  .market-compare-name { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 700; color: var(--teal-text); margin-bottom: 0.75rem; letter-spacing: 0.5px; }
  .market-compare-row { display: flex; flex-direction: column; gap: 2px; margin-bottom: 0.6rem; }
  .market-compare-row:last-child { margin-bottom: 0; }
  .market-compare-key { font-size: 10px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-dim); }
  .market-compare-val { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

  .primer-list { display: flex; flex-direction: column; gap: 1rem; }
  .primer-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 0.5rem 0 0.25rem; }
  .primer-compare-col { background: var(--bg-card-2); border-radius: 8px; padding: 1rem 1.1rem; }
  .primer-compare-col.block-col { border-top: 2px solid var(--amber); }
  .primer-compare-col.hourly-col { border-top: 2px solid var(--teal); }
  .primer-compare-name { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 700; margin-bottom: 0.75rem; letter-spacing: 0.5px; }
  .primer-compare-name.block { color: var(--amber-text); } .primer-compare-name.hourly { color: var(--teal-text); }
  .primer-compare-row { display: flex; flex-direction: column; gap: 2px; margin-bottom: 0.6rem; }
  .primer-compare-row:last-child { margin-bottom: 0; }
  .primer-compare-key { font-size: 10px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-dim); }
  .primer-compare-val { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
  .primer-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem 1.75rem; }
  .primer-card-title { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -0.2px; margin-bottom: 0.75rem; }
  .primer-card-body { font-size: 14px; line-height: 1.75; color: var(--text-muted); }
  .primer-card-body p { margin-bottom: 0.6rem; } .primer-card-body p:last-child { margin-bottom: 0; }
  .primer-skills { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
  .primer-skill-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
  .primer-skill-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--amber); flex-shrink: 0; margin-top: 8px; }
  .primer-why { display: flex; align-items: flex-start; gap: 8px; padding-top: 1rem; border-top: 1px solid var(--border); margin-top: 1rem; }
  .primer-why-label { font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.8px; color: var(--amber-text); text-transform: uppercase; flex-shrink: 0; padding-top: 2px; }
  .primer-why-text { font-size: 13px; line-height: 1.6; color: var(--text-muted); }
  .learn-disclaimer { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.5rem; display: flex; align-items: center; gap: 10px; }
  .learn-disclaimer-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim); flex-shrink: 0; }
  .learn-disclaimer p { font-size: 12px; color: var(--text-dim); font-family: 'IBM Plex Mono', monospace; line-height: 1.5; }
  .learn-disclaimer p span { color: var(--teal-text); }

  /* SIGNAL EXPLAINER */
  .signal-explainer-wrap { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
  .signal-explainer-toggle { display: flex; align-items: center; gap: 6px; background: none; border: none; color: var(--text); font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500; cursor: pointer; padding: 0; transition: color 0.2s; opacity: 0.75; }
  .signal-explainer-toggle:hover { opacity: 1; }
  .signal-explainer-toggle .toggle-icon { font-size: 10px; transition: transform 0.25s ease; display: inline-block; }
  .signal-explainer-toggle.open .toggle-icon { transform: rotate(180deg); }
  .signal-explainer-body { overflow: hidden; max-height: 0; transition: max-height 0.35s ease, opacity 0.3s ease; opacity: 0; }
  .signal-explainer-body.open { max-height: 320px; opacity: 1; }
  .signal-explainer-inner { padding-top: 0.85rem; font-size: 13px; line-height: 1.7; color: var(--text-muted); }
  .signal-explainer-inner strong { color: var(--text); font-weight: 600; }

  /* JARGON */
  .jargon { text-decoration: underline; text-decoration-style: dashed; text-decoration-color: var(--teal); text-underline-offset: 3px; cursor: help; position: relative; display: inline; }
  .jargon-tooltip { display: none; position: fixed; background: var(--bg-card-2); border: 1px solid var(--border-light); border-radius: 8px; padding: 10px 13px; width: 240px; z-index: 500; pointer-events: none; }  
  .jargon:hover .jargon-tooltip, .jargon:focus .jargon-tooltip { display: block; }
  .jargon { cursor: help; }
  .tooltip-term { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500; color: var(--teal-text); margin-bottom: 5px; letter-spacing: 0.3px; }
  .tooltip-def { font-size: 12px; line-height: 1.6; color: var(--text-muted); }

  /* WIDGET */
  .widget-wrap { width: 100%; max-width: 320px; font-family: 'Inter', sans-serif; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
  .widget-signal-bar { height: 3px; width: 100%; }
  .widget-signal-bar.CALM { background: var(--signal-calm); } .widget-signal-bar.WATCH { background: var(--amber); } .widget-signal-bar.ELEVATED { background: var(--red); }
  .widget-body { padding: 1rem 1.1rem 0.75rem; }
  .widget-top-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
  .widget-market-badge { font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--teal-text); background: rgba(var(--teal-rgb),0.1); border: 1px solid rgba(var(--teal-rgb),0.2); border-radius: 4px; padding: 2px 7px; }
  .widget-timestamp { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--text-dim); letter-spacing: 0.3px; }
  .widget-signal-word { font-size: 42px; font-weight: 700; letter-spacing: -2px; line-height: 1; margin: 0.35rem 0 0.3rem; }
  .widget-signal-word.CALM { color: var(--signal-calm); } .widget-signal-word.WATCH { color: var(--amber-text); } .widget-signal-word.ELEVATED { color: var(--red-text); }
  .widget-signal-reason { font-size: 12px; line-height: 1.5; color: var(--text-muted); margin-bottom: 0.75rem; }
  .widget-divider { height: 1px; background: var(--border); margin: 0 0 0.65rem; }
  .widget-bias-row { display: flex; align-items: center; gap: 8px; margin-bottom: 0.65rem; }
  .widget-bias-label { font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); }
  .widget-bias-badge { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; padding: 2px 8px; border-radius: 8px; }
  .widget-bias-badge.SHORT-VOL { color: var(--teal-text); background: rgba(var(--teal-rgb),0.1); border: 1px solid rgba(var(--teal-rgb),0.2); }
  .widget-bias-badge.LONG-VOL { color: var(--red-text); background: rgba(255,75,75,0.1); border: 1px solid rgba(255,75,75,0.2); }
  .widget-bias-badge.NEUTRAL { color: var(--amber-text); background: rgba(245,166,35,0.1); border: 1px solid rgba(245,166,35,0.2); }
  .widget-footer { display: flex; align-items: center; justify-content: space-between; padding: 0.55rem 1.1rem; border-top: 1px solid var(--border); background: var(--bg-card-2); }
  .widget-footer-link { font-size: 11px; color: var(--text-dim); text-decoration: none; transition: color 0.15s; letter-spacing: 0.2px; }
  .widget-footer-link:hover { color: var(--text-muted); }
  .widget-powered { font-size: 11px; color: var(--text-dim); letter-spacing: 0.2px; }
  .widget-powered a { color: var(--teal-text); text-decoration: none; font-weight: 600; }
  .widget-powered a:hover { text-decoration: underline; }

  /* RESPONSIVE */
  @media (max-width: 900px) { .stakes-grid { grid-template-columns: repeat(2, 1fr); } .primer-compare { grid-template-columns: 1fr; } .market-compare { grid-template-columns: 1fr; } }
  @media (max-width: 1099px) { .brief-top { grid-template-columns: 1fr; } .markets-top { grid-template-columns: 1fr; } .split-card-grid { grid-template-columns: 1fr; } .split-card-half-right { border-left: none; border-top: 1px solid var(--border); } }
  @media (max-width: 1080px) and (min-width: 769px) {
    nav { padding: 0 1.25rem; gap: 0.6rem; }
    .nav-links { gap: 1.25rem; }
    .nav-right { gap: 8px; }
    .theme-toggle { padding: 4px 8px; font-size: 11px; }
    #askgp-nav-btn { padding: 5px 9px !important; font-size: 11px !important; }
    #export-nav-btn { padding: 5px 9px !important; font-size: 11px !important; }
    .live-badge { font-size: 11px; }
  }
  @media (max-width: 768px) {
    nav { display: flex; justify-content: space-between; padding: 0 0.75rem; gap: 0.5rem; flex-wrap: nowrap; height: auto; min-height: 56px; }
    nav .nav-links { display: none; }
    .nav-right { gap: 7px; }
    .live-badge { font-size: 11px; gap: 4px; }
    .live-dot { width: 6px; height: 6px; }
    .theme-toggle { padding: 4px 7px; font-size: 11px; }
    #askgp-nav-btn { padding: 5px 8px !important; font-size: 11px !important; }
    .askgp-btn-text { display: none; }
    .logo-wordmark { display: none !important; }
    .export-btn-text { display: none; }
    .learn-tab { font-size: 12px; padding: 8px 8px; }
    .learn-hero { padding: 1.5rem 1.5rem; }
    .market-dropdown-btn { padding: 5px 8px; font-size: 11px; }
    .market-dropdown { position: static; }
    .market-dropdown-menu { position: fixed; top: 56px; left: 1rem; right: 1rem; width: auto; min-width: 0; }
    .market-option { flex-wrap: wrap; }
    .market-option-name { white-space: normal; word-break: break-word; }
    .market-option-badge { margin-left: auto; }
    .mobile-nav { display: block; }
    main { padding: 1rem; padding-bottom: 80px; }
    footer { padding-bottom: calc(2rem + 64px + env(safe-area-inset-bottom)); }
    .brief-top { grid-template-columns: 1fr; }

    .markets-stats { grid-template-columns: 1fr 1fr; }
    .vol-indicators { grid-template-columns: 1fr 1fr; }
    .about-page { grid-template-columns: 1fr; }
    .about-hero { grid-column: 1; padding: 1.25rem 1rem !important; }
    .about-section { grid-column: 1 !important; }
    .how-it-works-flow { flex-direction: column !important; gap: 8px !important; }
    .how-it-works-step { width: 100% !important; min-width: 0 !important; flex: none !important; }
    .signal-word { font-size: 64px; }
    .about-hero h1 { font-size: 24px; }

    .learn-hero { padding: 1.5rem; }
    .learn-hero h1 { font-size: 18px; }
    .stakes-grid { grid-template-columns: 1fr; }
    .modal-card { padding: 1.5rem 1.25rem; max-height: 85vh; overflow-y: auto; }

  }
  @media (max-width: 480px) { .signal-word { font-size: 52px; } .stat-value { font-size: 20px; } .vol-indicators { grid-template-columns: 1fr; } }

  /* ASK GP */
  .askgp-card { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--teal); border-radius: 12px; overflow: hidden; margin-top: 1rem; }
  .askgp-card-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem 0; }
  .askgp-card-title-row { display: flex; align-items: center; gap: 10px; }
  .askgp-card-icon { font-size: 18px; line-height: 1; }
  .askgp-card-title { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -0.2px; }
  .askgp-card-sub { font-size: 11px; color: var(--text-dim); font-family: 'IBM Plex Mono', monospace; margin-top: 2px; }
  .askgp-messages { padding: 1rem 1.5rem 0; display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
  .askgp-msg { max-width: 88%; font-size: 13px; line-height: 1.6; padding: 9px 12px; border-radius: 10px; }
  .askgp-msg.gp { background: var(--bg-card-2); color: var(--text-muted); align-self: flex-start; border: 1px solid var(--border); border-bottom-left-radius: 3px; }
  .askgp-msg.gp strong { color: var(--text); font-weight: 600; }
  .askgp-msg.gp a { color: var(--teal-text); text-decoration: none; font-weight: 600; font-size: 12px; }
  .askgp-msg.gp a:hover { text-decoration: underline; }
  .askgp-msg.user { background: rgba(var(--teal-rgb),0.1); color: var(--text); border: 1px solid rgba(var(--teal-rgb),0.2); align-self: flex-end; border-bottom-right-radius: 3px; }
  #askgp-welcome { background: none; border: none; padding: 0; color: var(--text-muted); }
  .askgp-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0.85rem 1.5rem 0; }
  .askgp-chip { background: var(--bg-card-2); border: 1px solid var(--border-light); border-radius: 20px; padding: 5px 11px; font-size: 11px; color: var(--text-muted); cursor: pointer; transition: border-color 0.15s, color 0.15s; white-space: nowrap; font-family: 'Inter', sans-serif; }
  .askgp-chip:hover { border-color: var(--teal); color: var(--teal-text); }
  .askgp-chip:disabled { opacity: 0.4; cursor: not-allowed; }
  .askgp-counter { font-size: 10px; font-family: 'IBM Plex Mono', monospace; color: var(--text-dim); text-align: right; padding: 0; }
  .askgp-counter.warn { color: var(--amber-text); }
  .askgp-counter.over { color: var(--red-text); }
  .askgp-counter-group { display: flex; align-items: center; gap: 8px; }

  @media (max-width: 480px) {
    .askgp-counter-group { flex-direction: column; align-items: flex-start; gap: 2px; }

  }
  .askgp-input-row { display: flex; align-items: flex-end; gap: 8px; padding: 0.6rem 1.5rem 1.25rem; }
  .askgp-textarea { flex: 1; background: var(--bg-card-2); border: 1px solid var(--border-strong); border-radius: 10px; padding: 8px 11px; color: var(--text); font-family: 'Inter', sans-serif; font-size: 13px; resize: none; outline: none; min-height: 38px; max-height: 100px; line-height: 1.5; transition: border-color 0.2s; }
  .askgp-textarea:focus { border-color: var(--teal); }
  .askgp-textarea::placeholder { color: var(--text-dim); }
  .askgp-send { background: var(--teal); border: none; border-radius: 8px; color: var(--on-teal); font-size: 16px; width: 36px; height: 36px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: opacity 0.2s; font-weight: 700; }
  .askgp-send:disabled { opacity: 0.35; cursor: not-allowed; }
  .askgp-typing { display: flex; align-items: center; gap: 5px; padding: 9px 12px; background: var(--bg-card-2); border: 1px solid var(--border); border-radius: 10px; border-bottom-left-radius: 3px; align-self: flex-start; }
  .askgp-typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--text-dim); animation: askgp-bounce 1.2s infinite; }
  .askgp-typing span:nth-child(2) { animation-delay: 0.2s; }
  .askgp-typing span:nth-child(3) { animation-delay: 0.4s; }
  @keyframes askgp-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: 0.4; } 40% { transform: translateY(-5px); opacity: 1; } }


  body.light #export-nav-btn { color: #047857 !important; }
  body.light #askgp-nav-btn { color: #047857 !important; }
 
</style>
