/* PROEX INTELLIGENCE — EDITORIAL LUXURY & TERMINAL DESIGN SYSTEM */
/* VERSION: SPRINT 1 LOCAL INTEGRATION */

/* ==========================================================================
       PROEX INTELLIGENCE — DESIGN SYSTEM TOKENS (EDITORIAL LUXURY)
       ========================================================================== */
    :root {
      --bg-canvas: #FAF9F5;
      --bg-surface: #FFFFFF;
      --bg-subtle: #F3EFE6;
      --bg-card: #FFFFFF;
      --navy-950: #060D1A;
      --navy-900: #0A1428;
      --navy-800: #101F3C;
      --navy-700: #1A2F5A;
      --charcoal-900: #12161F;
      --charcoal-800: #222733;
      --ink-primary: #0A1428;
      --ink-secondary: #4A5568;
      --ink-muted: #718096;
      --accent-gold: #C5A880;
      --accent-gold-dark: #A28256;
      --accent-gold-light: #F7F3EC;
      --accent-gold-hairline: rgba(197, 168, 128, 0.35);
      --border-light: #E8E4DC;
      --border-subtle: #F0ECE4;
      --status-emerald: #0D5F3A;
      --status-emerald-bg: #EAF7EE;
      --status-amber: #92400E;
      --status-amber-bg: #FEF3C7;
      --status-crimson: #991B1B;
      --status-crimson-bg: #FEE2E2;
      --font-serif: "Newsreader", Georgia, serif;
      --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      --shadow-subtle: 0 4px 20px rgba(10, 20, 40, 0.04);
      --shadow-elevated: 0 12px 36px rgba(10, 20, 40, 0.08);
      --shadow-drawer: -12px 0 40px rgba(6, 13, 26, 0.22);
      --radius-sm: 4px;
      --radius-md: 6px;
      --radius-lg: 10px;
      --radius-pill: 9999px;
      --transition-spring: 280ms cubic-bezier(0.16, 1, 0.3, 1);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html, body {
      width: 100%;
      min-height: 100%;
      background: var(--bg-canvas);
      color: var(--ink-primary);
      font-family: var(--font-sans);
      font-size: 15px;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }

    :focus-visible {
      outline: 2px solid var(--accent-gold);
      outline-offset: 2px;
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }
    }

    .tabular { font-variant-numeric: tabular-nums; }

    /* ==========================================================================
       AUTHENTIC PROEX LUXURY NAVIGATION (ZERO PROTOTYPE CONTROLS HERE)
       ========================================================================== */
    .proex-luxury-header {
      background: var(--navy-900);
      color: #FFFFFF;
      border-bottom: 1px solid var(--accent-gold-hairline);
      position: -webkit-sticky;
      position: sticky;
      top: 0;
      z-index: 1000;
      box-shadow: 0 4px 24px rgba(6, 13, 26, 0.35);
    }
    .header-inner {
      max-width: 1440px;
      margin: 0 auto;
      padding: 16px 36px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .brand-group {
      display: flex;
      align-items: center;
      gap: 16px;
    }
    .brand-logo-link {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      color: #FFFFFF;
    }
    .brand-symbol {
      width: 32px;
      height: 32px;
      background: var(--accent-gold);
      color: var(--navy-950);
      font-family: var(--font-serif);
      font-weight: 800;
      font-size: 19px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: var(--radius-sm);
      letter-spacing: -0.5px;
    }
    .brand-text {
      font-size: 16px;
      font-weight: 800;
      letter-spacing: 1.2px;
      color: #FFFFFF;
      text-transform: uppercase;
    }
    .brand-sub-badge {
      font-size: 10px;
      font-weight: 700;
      background: rgba(197, 168, 128, 0.18);
      color: var(--accent-gold);
      border: 1px solid var(--accent-gold-hairline);
      padding: 3px 8px;
      border-radius: 2px;
      letter-spacing: 1px;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 24px;
    }
    .nav-item {
      color: #CBD5E1;
      text-decoration: none;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.3px;
      padding: 6px 0;
      position: relative;
      transition: color 0.2s ease;
      background: none;
      border: none;
      cursor: pointer;
    }
    .nav-item:hover, .nav-item.active {
      color: var(--accent-gold);
    }
    .nav-item.active::after {
      content: "";
      position: absolute;
      bottom: -4px;
      left: 0;
      width: 100%;
      height: 2px;
      background: var(--accent-gold);
    }
    .nav-advisor-btn {
      background: var(--accent-gold);
      color: var(--navy-950);
      font-size: 12px;
      font-weight: 700;
      padding: 8px 18px;
      border-radius: var(--radius-sm);
      border: none;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: all 0.2s ease;
    }
    .nav-advisor-btn:hover {
      background: #D8BD98;
      transform: translateY(-1px);
    }

    /* MOBILE NAV TOGGLE */
    .mobile-hamburger-btn {
      display: none;
      background: transparent;
      border: 1px solid var(--accent-gold-hairline);
      color: var(--accent-gold);
      padding: 8px 12px;
      border-radius: var(--radius-sm);
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
    }

    /* GLOBAL NOTICE STRIP (GROUNDED FIXTURE DISCLOSURE) */
    .grounded-disclosure-strip {
      background: #0D1933;
      border-bottom: 1px solid var(--navy-700);
      color: #94A3B8;
      font-size: 11px;
      padding: 8px 36px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
    }
    .disclosure-left {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .tag-fixture-mode {
      background: rgba(245, 158, 11, 0.15);
      color: var(--status-amber);
      border: 1px solid rgba(245, 158, 11, 0.3);
      font-size: 10px;
      font-weight: 800;
      padding: 2px 6px;
      border-radius: 2px;
      letter-spacing: 0.5px;
    }

    /* ==========================================================================
       MAIN CONTENT CONTAINER
       ========================================================================== */
    .proex-main-layout {
      max-width: 1440px;
      margin: 0 auto;
      padding: 40px 36px 100px 36px;
    }

    .screen-view {
      display: none;
      animation: fadeIn 0.25s ease-out;
    }
    .screen-view.active-screen {
      display: block;
    }
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(4px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .intelligence-viewport-main {
      max-width: 1440px;
      margin: 0 auto;
      padding: 0 clamp(20px, 2.5vw, 40px) 60px;
      box-sizing: border-box;
    }

    /* EDITORIAL MASTHEAD */
    .editorial-masthead {
      background: transparent !important;
      position: static !important;
      box-shadow: none !important;
      border: none !important;
      border-bottom: 1px solid rgba(23, 23, 23, 0.08) !important;
      padding: 32px 0 20px 0 !important;
      margin-bottom: 28px !important;
      display: flex !important;
      justify-content: space-between !important;
      align-items: flex-end !important;
      flex-wrap: wrap !important;
      gap: 20px !important;
    }
    .editorial-masthead h1 {
      font-family: var(--font-serif, "Newsreader", Georgia, serif) !important;
      font-size: clamp(26px, 3vw, 36px) !important;
      font-weight: 600 !important;
      letter-spacing: -0.02em !important;
      line-height: 1.2 !important;
      color: #171717 !important;
      margin: 6px 0 0 0 !important;
    }
    .masthead-meta {
      font-size: 11.5px !important;
      font-weight: 700 !important;
      color: #B28A52 !important;
      text-transform: uppercase !important;
      letter-spacing: 0.1em !important;
    }
    .editorial-masthead-desc {
      font-size: 13px !important;
      color: #52525B !important;
      max-width: 440px !important;
      line-height: 1.6 !important;
    }

    /* BADGES & EVIDENCE TRIGGER PILLS */
    .evidence-trigger-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: var(--accent-gold-light);
      border: 1px solid var(--accent-gold);
      color: var(--navy-950);
      font-size: 11px;
      font-weight: 700;
      padding: 4px 10px;
      border-radius: var(--radius-sm);
      cursor: pointer;
      text-decoration: none;
      transition: all 0.2s ease;
    }
    .evidence-trigger-pill:hover {
      background: var(--accent-gold);
      color: var(--navy-950);
    }
    .badge-editorial {
      font-size: 11px;
      font-weight: 700;
      padding: 3px 8px;
      border-radius: 2px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }
    .badge-editorial.emerald { background: var(--status-emerald-bg); color: var(--status-emerald); }
    .badge-editorial.amber { background: var(--status-amber-bg); color: var(--status-amber); }
    .badge-editorial.navy { background: var(--navy-900); color: #FFFFFF; }
    .badge-editorial.fixture { background: #FEF3C7; color: #92400E; border: 1px dashed #D97706; }

    /* ==========================================================================
       SCREEN 1: JOURNAL VIEW
       ========================================================================== */
    .journal-lead-grid {
      display: grid;
      grid-template-columns: 8fr 4fr;
      gap: 36px;
      margin-bottom: 48px;
    }
    .article-hero-box {
      background: var(--bg-surface);
      border: 1px solid var(--border-light);
      border-radius: var(--radius-sm);
      overflow: hidden;
      box-shadow: var(--shadow-subtle);
      display: flex;
      flex-direction: column;
    }
    .hero-image-wrap {
      width: 100%;
      height: 380px;
      overflow: hidden;
      position: relative;
    }
    .hero-image-wrap img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease;
    }
    .hero-image-caption {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 8px 16px;
      background: linear-gradient(to top, rgba(6, 13, 26, 0.85) 0%, transparent 100%);
      color: #FFFFFF;
      font-size: 11px;
      display: flex;
      justify-content: space-between;
    }
    .hero-text-content {
      padding: 32px 36px;
    }
    .hero-headline {
      font-family: var(--font-serif);
      font-size: 32px;
      line-height: 1.25;
      font-weight: 600;
      margin-bottom: 14px;
      color: var(--navy-950);
    }
    .hero-synopsis {
      font-size: 16px;
      line-height: 1.7;
      color: var(--ink-secondary);
      margin-bottom: 24px;
    }
    .article-side-stack {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    .ticker-summary-card {
      background: var(--navy-900);
      color: #FFFFFF;
      padding: 24px;
      border-radius: var(--radius-sm);
      border-top: 3px solid var(--accent-gold);
    }
    .side-article-item {
      background: var(--bg-surface);
      border: 1px solid var(--border-light);
      padding: 20px;
      border-radius: var(--radius-sm);
    }

    /* ==========================================================================
       SCREEN 2: MARKET PULSE VIEW
       ========================================================================== */
    .pulse-control-panel {
      background: var(--bg-surface);
      border: 1px solid var(--border-light);
      padding: 18px 24px;
      border-radius: var(--radius-sm);
      margin-bottom: 28px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
    }
    .filter-dropdown-select {
      padding: 8px 14px;
      border: 1px solid var(--border-light);
      border-radius: var(--radius-sm);
      font-size: 13px;
      font-weight: 600;
      color: var(--navy-950);
      background: #FFFFFF;
      outline: none;
      cursor: pointer;
    }
    .kpi-four-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
      margin-bottom: 32px;
    }
    .kpi-metric-box {
      background: var(--bg-surface);
      border: 1px solid var(--border-light);
      padding: 24px;
      border-radius: var(--radius-sm);
      box-shadow: var(--shadow-subtle);
      position: relative;
    }
    .kpi-header-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
    }
    .kpi-title-label {
      font-size: 11px;
      font-weight: 700;
      color: var(--ink-muted);
      letter-spacing: 0.8px;
      text-transform: uppercase;
    }
    .kpi-value-huge {
      font-size: 34px;
      font-weight: 800;
      color: var(--navy-950);
      line-height: 1.1;
      margin-bottom: 6px;
    }
    .kpi-subtext-row {
      font-size: 12px;
      color: var(--ink-secondary);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    /* SVG CHART CONTAINER */
    .svg-chart-card {
      background: var(--bg-surface);
      border: 1px solid var(--border-light);
      padding: 28px;
      border-radius: var(--radius-sm);
      box-shadow: var(--shadow-subtle);
    }
    .chart-header-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
    }
    .svg-viewport-wrapper {
      width: 100%;
      height: 240px;
      position: relative;
    }
    .live-tooltip-box {
      position: absolute;
      background: var(--navy-950);
      color: #FFFFFF;
      padding: 8px 12px;
      border-radius: 4px;
      font-size: 12px;
      pointer-events: none;
      display: none;
      box-shadow: 0 4px 14px rgba(0,0,0,0.3);
      z-index: 100;
      transform: translate(-50%, -120%);
    }

    /* ==========================================================================
       SCREEN 3: PRICE DNA (MOBILE-FIRST REDESIGNED)
       ========================================================================== */
    .dna-above-fold-card {
      background: #FFFFFF;
      border: 1px solid var(--border-light);
      border-top: 4px solid var(--accent-gold);
      border-radius: var(--radius-sm);
      padding: 32px 36px;
      margin-bottom: 28px;
      box-shadow: var(--shadow-subtle);
    }
    .dna-first-view-row {
      display: grid;
      grid-template-columns: 7fr 5fr;
      gap: 32px;
      align-items: center;
      margin-bottom: 24px;
    }
    .dna-asset-headline {
      font-family: var(--font-serif);
      font-size: 32px;
      color: var(--navy-950);
      font-weight: 700;
      line-height: 1.2;
      margin-bottom: 8px;
    }
    .dna-asset-specs-line {
      font-size: 14px;
      color: var(--ink-secondary);
      margin-bottom: 16px;
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
    }
    .dna-price-display-block {
      background: var(--bg-canvas);
      border: 1px solid var(--border-light);
      padding: 20px 24px;
      border-radius: var(--radius-sm);
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
    }
    .dna-price-huge {
      font-size: 40px;
      font-weight: 800;
      color: var(--navy-950);
      line-height: 1;
    }
    .dna-unit-price {
      font-size: 14px;
      color: var(--ink-muted);
      margin-top: 4px;
    }
    .dna-freshness-meta-box {
      font-size: 12px;
      color: var(--ink-secondary);
      line-height: 1.5;
    }

    /* COMPACT OBSERVATION STRIP (ABOVE THE FOLD TIMELINE) */
    .compact-observation-strip {
      background: var(--navy-900);
      color: #FFFFFF;
      padding: 16px 20px;
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      overflow-x: auto;
    }
    .obs-strip-title {
      font-size: 11px;
      font-weight: 700;
      color: var(--accent-gold);
      letter-spacing: 0.5px;
      text-transform: uppercase;
      white-space: nowrap;
    }
    .obs-nodes-cluster {
      display: flex;
      align-items: center;
      gap: 16px;
    }
    .obs-node-pill {
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.15);
      color: #FFFFFF;
      font-size: 12px;
      padding: 6px 14px;
      border-radius: var(--radius-pill);
      cursor: pointer;
      white-space: nowrap;
      transition: all 0.2s ease;
    }
    .obs-node-pill:hover, .obs-node-pill.active {
      background: var(--accent-gold);
      color: var(--navy-950);
      border-color: var(--accent-gold);
      font-weight: 700;
    }

    /* DNA TWO COLUMNS LOWER AREA */
    .dna-two-col {
      display: grid;
      grid-template-columns: 7fr 5fr;
      gap: 32px;
      margin-top: 24px;
    }
    .panel-luxury-box {
      background: #FFFFFF;
      border: 1px solid var(--border-light);
      padding: 28px;
      border-radius: var(--radius-sm);
      box-shadow: var(--shadow-subtle);
    }
    .panel-heading {
      font-family: var(--font-serif);
      font-size: 20px;
      color: var(--navy-950);
      margin-bottom: 18px;
      font-weight: 600;
    }

    /* ==========================================================================
       SCREEN 4: BANKING INTELLIGENCE (MOBILE-FIRST REDESIGNED)
       ========================================================================== */
    .banking-split-view {
      display: grid;
      grid-template-columns: 7fr 5fr;
      gap: 32px;
    }
    .bank-summary-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
      margin-bottom: 24px;
    }
    .bank-card-summary {
      background: #FFFFFF;
      border: 1px solid var(--border-light);
      border-left: 4px solid var(--accent-gold-dark);
      padding: 20px 24px;
      border-radius: var(--radius-sm);
      box-shadow: var(--shadow-subtle);
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
    }
    .bank-name-col h4 {
      font-size: 16px;
      font-weight: 700;
      color: var(--navy-950);
    }
    .bank-name-col span {
      font-size: 11px;
      color: var(--ink-muted);
    }
    .bank-rate-col {
      text-align: right;
    }
    .bank-rate-val {
      font-size: 22px;
      font-weight: 800;
      color: var(--navy-900);
    }
    .bank-rate-sub {
      font-size: 11px;
      color: var(--ink-muted);
    }
    .bank-action-col {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    /* ASSUMPTIONS & DISCLAIMERS CALLOUT */
    .assumptions-callout-card {
      background: #F8FAFC;
      border: 1px solid #E2E8F0;
      border-radius: var(--radius-sm);
      padding: 20px 24px;
      margin-top: 24px;
      font-size: 12px;
      color: var(--ink-secondary);
      line-height: 1.6;
    }
    .assumptions-title {
      font-size: 12px;
      font-weight: 800;
      color: var(--navy-950);
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .disclaimer-box-legal {
      margin-top: 14px;
      padding-top: 12px;
      border-top: 1px dashed #CBD5E1;
      color: #64748B;
      font-size: 11px;
    }

    /* LOAN CALCULATOR PANEL */
    .calc-interactive-panel {
      background: #FFFFFF;
      border: 1px solid var(--border-light);
      padding: 28px;
      border-radius: var(--radius-sm);
      box-shadow: var(--shadow-subtle);
    }
    .slider-row {
      margin-bottom: 22px;
    }
    .slider-label-bar {
      display: flex;
      justify-content: space-between;
      font-size: 13px;
      font-weight: 700;
      color: var(--navy-950);
      margin-bottom: 8px;
    }
    .calc-slider-input {
      width: 100%;
      height: 6px;
      accent-color: var(--accent-gold-dark);
      cursor: pointer;
    }
    .calc-results-slate {
      background: var(--navy-950);
      color: #FFFFFF;
      padding: 20px;
      border-radius: var(--radius-sm);
      margin-top: 20px;
    }
    .res-metric-item {
      display: flex;
      justify-content: space-between;
      padding: 8px 0;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      font-size: 13px;
    }
    .cashflow-verdict-banner {
      margin-top: 16px;
      padding: 12px 14px;
      border-radius: var(--radius-sm);
      font-size: 12px;
      line-height: 1.5;
    }

    /* ==========================================================================
       SCREEN 5: AI ADVISOR (EVIDENCE-FIRST 3-PART STRUCTURE)
       ========================================================================== */
    .advisor-layout-page {
      display: grid;
      grid-template-columns: 8fr 4fr;
      gap: 36px;
    }
    .advisor-chat-viewport {
      background: #FFFFFF;
      border: 1px solid var(--border-light);
      border-radius: var(--radius-sm);
      box-shadow: var(--shadow-drawer);
      display: flex;
      flex-direction: column;
      height: 720px;
      overflow: hidden;
    }
    .chat-top-header {
      background: var(--navy-950);
      color: #FFFFFF;
      padding: 16px 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid var(--accent-gold-hairline);
    }
    .chat-stream-body {
      flex: 1;
      padding: 24px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 20px;
      background: #FAF9F5;
    }
    .chat-bubble-user {
      align-self: flex-end;
      background: var(--navy-900);
      color: #FFFFFF;
      padding: 12px 18px;
      border-radius: 12px 12px 2px 12px;
      max-width: 80%;
      font-size: 14px;
    }

    /* 3-PART AI RESPONSE CONTAINER */
    .chat-bubble-ai-evidence {
      align-self: flex-start;
      background: #FFFFFF;
      border: 1px solid var(--border-light);
      border-radius: 4px 12px 12px 12px;
      max-width: 90%;
      padding: 20px;
      box-shadow: 0 4px 12px rgba(10,20,40,0.04);
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .ai-part-block {
      padding: 12px 16px;
      border-radius: var(--radius-sm);
      font-size: 13px;
      line-height: 1.6;
    }
    .ai-part-block.grounded {
      background: var(--status-emerald-bg);
      border-left: 3px solid var(--status-emerald);
      color: #064E3B;
    }
    .ai-part-block.inference {
      background: #F8FAFC;
      border-left: 3px solid #3B82F6;
      color: #1E3A8A;
    }
    .ai-part-block.unknowns {
      background: var(--status-amber-bg);
      border-left: 3px solid var(--status-amber);
      color: #78350F;
    }
    .ai-part-heading {
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      margin-bottom: 4px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .chat-input-toolbar {
      padding: 16px 20px;
      background: #FFFFFF;
      border-top: 1px solid var(--border-light);
      display: flex;
      gap: 10px;
    }
    .chat-input-text {
      flex: 1;
      padding: 10px 16px;
      border: 1px solid var(--border-light);
      border-radius: var(--radius-sm);
      font-size: 13px;
      outline: none;
    }
    .chat-send-btn {
      background: var(--navy-900);
      color: #FFFFFF;
      border: none;
      padding: 10px 20px;
      border-radius: var(--radius-sm);
      font-weight: 700;
      cursor: pointer;
    }

    /* ==========================================================================
       SCREEN 6: FOUNDER COMMAND CENTER (MOBILE-FIRST PRIORITIZED)
       ========================================================================== */
    .founder-command-header {
      background: var(--navy-950);
      color: #FFFFFF;
      padding: 20px 28px;
      border-radius: var(--radius-sm);
      margin-bottom: 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
    }
    .founder-first-screen-grid {
      display: grid;
      grid-template-columns: 6fr 6fr;
      gap: 24px;
      margin-bottom: 32px;
    }
    .urgent-work-panel {
      background: #FFFFFF;
      border: 1px solid var(--border-light);
      border-top: 4px solid var(--status-crimson);
      padding: 24px;
      border-radius: var(--radius-sm);
      box-shadow: var(--shadow-subtle);
    }
    .urgent-work-panel.match-queue {
      border-top-color: #3182CE;
    }
    .hot-lead-card-row {
      background: var(--bg-canvas);
      border: 1px solid var(--border-light);
      padding: 14px 18px;
      border-radius: var(--radius-sm);
      margin-bottom: 12px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;
    }
    .simulated-action-btn {
      background: var(--navy-900);
      color: #FFFFFF;
      border: none;
      padding: 6px 14px;
      border-radius: var(--radius-sm);
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }
    .simulated-action-btn.outline {
      background: transparent;
      color: var(--navy-900);
      border: 1px solid var(--navy-900);
    }

    /* AUDIT TRAIL LOG STRIP */
    .audit-trail-strip {
      background: #1E293B;
      color: #E2E8F0;
      padding: 12px 18px;
      border-radius: var(--radius-sm);
      font-family: monospace;
      font-size: 11px;
      margin-top: 12px;
      border-left: 3px solid var(--accent-gold);
    }

    /* ==========================================================================
       EVIDENCE PANEL MODAL / DRAWER (THE GROUNDING CORE)
       ========================================================================== */
    .evidence-modal-backdrop {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(6, 13, 26, 0.7);
      backdrop-filter: blur(4px);
      z-index: 99999;
      justify-content: flex-end;
    }
    .evidence-modal-backdrop.open {
      display: flex;
    }
    .evidence-drawer-window {
      background: #FFFFFF;
      width: 580px;
      max-width: 100%;
      height: 100%;
      box-shadow: var(--shadow-drawer);
      display: flex;
      flex-direction: column;
      animation: slideInRight 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    }
    @keyframes slideInRight {
      from { transform: translateX(100%); }
      to { transform: translateX(0); }
    }
    .drawer-header-bar {
      background: var(--navy-950);
      color: #FFFFFF;
      padding: 20px 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid var(--accent-gold-hairline);
    }
    .drawer-title-main {
      font-family: var(--font-serif);
      font-size: 20px;
      font-weight: 700;
      color: #FFFFFF;
    }
    .drawer-close-btn {
      background: transparent;
      border: none;
      color: var(--accent-gold);
      font-size: 24px;
      cursor: pointer;
      line-height: 1;
    }
    .drawer-scroll-body {
      flex: 1;
      padding: 28px 24px;
      overflow-y: auto;
      font-size: 13px;
      line-height: 1.7;
    }
    .evidence-field-row {
      margin-bottom: 18px;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--border-light);
    }
    .evidence-field-label {
      font-size: 11px;
      font-weight: 800;
      color: var(--ink-muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 4px;
    }
    .evidence-field-value {
      font-weight: 600;
      color: var(--navy-950);
      word-break: break-word;
    }

    /* ==========================================================================
       RESPONSIVE ADJUSTMENTS (390px, 768px, 1024px, 1440px)
       ========================================================================== */
    @media (max-width: 1024px) {
      .journal-lead-grid,
      .kpi-four-grid,
      .dna-first-view-row,
      .dna-two-col,
      .banking-split-view,
      .advisor-layout-page,
      .founder-first-screen-grid {
        grid-template-columns: 1fr;
        gap: 24px;
      }
      .nav-links { display: none; }
      .mobile-hamburger-btn { display: block; }
    }

    @media (max-width: 480px) {
      .header-inner { padding: 12px 18px; }
      .proex-main-layout { padding: 20px 16px 80px 16px; }
      .editorial-masthead h1 { font-size: 26px; }
      .hero-image-wrap { height: 220px; }
      .hero-headline { font-size: 22px; }
      .hero-text-content { padding: 20px 16px; }
      .dna-above-fold-card { padding: 20px 16px; }
      .dna-asset-headline { font-size: 24px; }
      .dna-price-huge { font-size: 32px; }
      .compact-observation-strip { flex-direction: column; align-items: flex-start; }
      .obs-nodes-cluster { width: 100%; overflow-x: auto; padding-bottom: 4px; }
      .evidence-drawer-window { width: 100%; }
      .advisor-chat-viewport { height: 580px; }
    }