    [data-theme="dark"] .trends-analysis {
      --surface: #151d30;
      --border: #3a4660;
      --cyan: #00D9FF;
      --cyan-dim: rgba(0,217,255,0.12);
      --accent-bright: #3d8bfd;
      --accent-light: #6ea8fe;
      --gold: #facc15;
      --red: #f87171;
      --text: #f8f9fa;
      --text-muted: #adb5bd;
      --white: #ffffff;
    }

    .trends-analysis {
      position: relative;
      background: transparent;
      color: var(--text);
      font-family: var(--font-body);
      min-height: 100vh;
      overflow-x: hidden;
      padding-bottom: clamp(56px, 8vh, 96px);
    }

    /* ── GRID NOISE TEXTURE ── */
    .trends-analysis::before { content: none; }

    .grid-bg { display: none; }

    .analysis-container {
      position: relative;
      z-index: 1;
    }

    .analysis-header {
      padding: clamp(28px, 5vh, 44px) 0 28px;
      border-bottom: 1px solid var(--border);
    }

    .analysis-container {
      max-width: var(--wrap);
      margin: 0 auto;
      padding-inline: var(--gut);
    }

    .header-inner {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 24px;
      flex-wrap: wrap;
    }

    .brand-tag {
      font-family: var(--font-mono);
      font-size: 10px;
      color: var(--cyan);
      letter-spacing: 3px;
      text-transform: uppercase;
    }

    .brand-title {
      font-family: var(--font-display);
      font-size: clamp(28px, 4vw, 48px);
      font-weight: 900;
      line-height: 1;
      color: var(--white);
      letter-spacing: -1px;
      margin-top: 8px;
    }

    .brand-title span { color: var(--cyan); }
    .brand-sub { font-size: 14px; color: var(--text-muted); margin-top: 8px; }

    /* Controls */
    .controls {
      padding: 24px 0;
      display: flex;
      flex-direction: column;
      gap: 10px;
      align-items: stretch;
      flex-wrap: wrap;
      border-bottom: 1px solid var(--border);
    }

    .filter-lbl {
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 1px;
      white-space: nowrap;
    }

    .filter-group {
      display: flex;
      gap: 8px;
      align-items: center;
      flex-wrap: wrap;
      width: 100%;
    }

    .trends-analysis .pill {
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 8px 13px;
      font-size: 11px;
      color: var(--text-muted);
      cursor: pointer;
      font-family: var(--font-mono);
      letter-spacing: 0.06em;
      text-transform: uppercase;
      transition: all 0.2s;
      white-space: nowrap;
    }

    .trends-analysis .pill:hover, .trends-analysis .pill.active {
      border-color: var(--cyan);
      color: var(--cyan);
      background: var(--cyan-dim);
    }

    /* Main Layout */
    .main {
      padding: clamp(28px, 5vh, 44px) 0;
      display: grid;
      grid-template-columns: 1fr;
      gap: 20px;
    }

    .section-insights {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: flex-end;
      max-width: 100%;
    }

    .insight-pill {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 9px 14px;
      min-height: 38px;
      max-width: 100%;
      min-width: 0;
    }

    .insight-label {
      font-family: var(--font-mono);
      font-size: 10px;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 1px;
      white-space: nowrap;
    }

    .insight-value {
      display: block;
      font-size: 11px;
      color: var(--text);
      line-height: 1.4;
      min-width: 0;
      max-width: 28ch;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    /* Matrix Section */
    .matrix-section {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 32px;
    }

    @media (max-width: 720px) {
      .insight-pill {
        width: 100%;
        border-radius: 12px;
      }

      .insight-value {
        max-width: 100%;
      }

      #verticalsContainer {
        grid-template-columns: 1fr;
      }

    }

    .section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 14px;
      margin-bottom: 24px;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--border);
    }

    .section-title {
      font-family: var(--font-display);
      font-size: 18px;
      font-weight: 700;
      color: var(--white);
    }

    .section-sub {
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 4px;
    }

    /* Correlation Matrix */
    .matrix-container {
      overflow-x: auto;
      margin-bottom: 32px;
    }

    .matrix {
      display: grid;
      gap: 1px;
      background: var(--border);
      padding: 1px;
      min-width: 600px;
    }

    .matrix-row {
      display: grid;
      grid-template-columns: 200px repeat(auto-fit, minmax(80px, 1fr));
      gap: 1px;
    }

    .matrix-cell {
      background: var(--surface);
      padding: 12px;
      text-align: center;
      font-size: 11px;
      min-height: 60px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s;
    }

    .matrix-cell:hover {
      background: var(--cyan-dim);
      color: var(--cyan);
    }

    .matrix-label {
      background: var(--surface);
      font-weight: 600;
      font-family: var(--font-mono);
      font-size: 10px;
      color: var(--cyan);
      text-align: left;
      padding-left: 12px;
    }

    .correlation-score {
      font-weight: 700;
      font-family: var(--font-mono);
    }

    .score-strong { color: #ff4d6d; }
    .score-moderate { color: #facc15; }
    .score-weak { color: #6c757d; }

    /* Heatmap Styles */
    .heatmap-wrapper {
      overflow-x: auto;
      margin-bottom: 24px;
    }

    .heatmap {
      display: grid;
      gap: 2px;
      background: transparent;
      min-width: fit-content;
    }

    .heatmap-row {
      display: flex;
      flex-direction: row;
      gap: 2px;
      align-items: center;
    }

    .heatmap-label {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 4px;
      font-family: var(--font-mono);
      font-size: 10px;
      color: var(--text-muted);
      font-weight: 600;
      flex-shrink: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .heatmap-label--corner,
    .heatmap-label--row {
      width: 28px;
      height: 28px;
    }

    .heatmap-label--corner {
      background: transparent;
      border-color: transparent;
    }

    .heatmap-label--col {
      width: 28px;
      height: 28px;
      writing-mode: vertical-rl;
      text-orientation: mixed;
    }

    .heatmap-label--name {
      background: transparent;
      border: none;
      padding: 0 0 0 10px;
      justify-content: flex-start;
      gap: 8px;
      color: var(--text);
      font-family: var(--font-body);
      font-size: 12px;
      font-weight: 500;
      height: 28px;
      max-width: 320px;
      text-overflow: ellipsis;
    }

    .heatmap-label--abbr {
      font-family: var(--font-mono);
      font-size: 11px;
      font-weight: 700;
      color: var(--cyan);
      letter-spacing: 0.5px;
    }

    .heatmap-label--dash {
      color: var(--text-muted);
    }

    .heatmap-label--full {
      color: var(--text);
    }

    .heatmap-cell {
      width: 28px;
      height: 28px;
      flex-shrink: 0;
      border: 1px solid var(--border);
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
      font-size: 10px;
      font-weight: 700;
      font-family: var(--font-mono);
      position: relative;
      background: var(--cell-color, rgba(108,117,125,0.12));
    }

    .heatmap-cell:hover {
      border-color: var(--cyan);
      transform: scale(1.18);
      z-index: 10;
      box-shadow: 0 4px 16px rgba(0,217,255,0.3);
    }

    .heatmap-cell.is-empty {
      background: rgba(108,117,125,0.10);
    }

    /* Out-of-scope (filter active, trend not in current industry/vertical) */
    .heatmap-cell.is-out-of-scope {
      background: rgba(108,117,125,0.06) !important;
      opacity: 0.35;
      filter: grayscale(0.8);
    }

    .heatmap-label.is-out-of-scope {
      opacity: 0.4;
      color: var(--text-muted) !important;
      background: var(--surface) !important;
    }

    .corr-card.is-out-of-scope {
      opacity: 0.35;
      filter: grayscale(0.85);
    }

    .heatmap-cell.is-selected,
    .heatmap-cell.is-selected-mirror {
      border: 2px solid var(--cyan);
      box-shadow: 0 0 0 1px rgba(0,217,255,0.4), 0 4px 16px rgba(0,217,255,0.3);
      z-index: 5;
    }

    .heatmap-cell.is-anchor-row,
    .heatmap-cell.is-anchor-col {
      outline: 1px solid rgba(0,217,255,0.45);
      outline-offset: -1px;
    }

    .heatmap-cell.diagonal {
      background: var(--surface);
      color: var(--cyan);
      border: 1px dashed var(--cyan);
    }

    .heatmap-label--row,
    .heatmap-label--col {
      cursor: pointer;
      transition: color 0.15s, background 0.15s;
    }

    .heatmap-label--row:hover,
    .heatmap-label--col:hover {
      color: var(--cyan);
      background: var(--cyan-dim);
    }

    .heatmap-label--row.is-anchor,
    .heatmap-label--col.is-anchor {
      color: var(--cyan);
      border-color: var(--cyan);
      background: var(--cyan-dim);
    }

    .heatmap-legend {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-top: 16px;
      padding: 10px 14px;
      background: var(--surface);
      border-radius: 8px;
      font-size: 10px;
      font-family: var(--font-mono);
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 1px;
      flex-wrap: wrap;
    }

    .heatmap-legend-bar {
      flex: 1;
      min-width: 120px;
      height: 8px;
      border-radius: 4px;
      background: linear-gradient(90deg, #2563eb 0%, #10b981 25%, #facc15 50%, #f97316 75%, #dc2626 100%);
      border: 1px solid var(--border);
    }

    /* ── Correlation Explorer (matrix + pair pane) ── */
    .corr-explorer-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(280px, 1fr);
      gap: 24px;
      align-items: start;
    }

    .corr-hover-status {
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--cyan);
      letter-spacing: 0.5px;
      padding: 6px 10px;
      margin-bottom: 8px;
      min-height: 26px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 6px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    @media (max-width: 1080px) {
      .corr-explorer-grid {
        grid-template-columns: 1fr;
      }
    }

      .section-insights {
        width: 100%;
        justify-content: flex-start;
      }

    /* In compact explorer mode, hide trailing full-name labels (use tooltip + pair pane instead) */
    .corr-explorer-grid .heatmap-label--name { display: none; }

    .corr-pair-pane {
      position: sticky;
      top: 16px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 16px;
      min-height: 240px;
    }

    .corr-pair-empty {
      color: var(--text-muted);
      font-size: 12px;
      font-style: italic;
      text-align: center;
      padding: 40px 12px;
    }

    .pair-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-left: 3px solid var(--pair-color, var(--cyan));
      border-radius: 8px;
      padding: 12px 14px;
      margin-bottom: 8px;
    }

    .pair-card-head {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 4px;
    }

    .pair-card-icon { font-size: 18px; line-height: 1; }

    .pair-card-tag {
      font-family: var(--font-mono);
      font-size: 9px;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-left: auto;
    }

    .pair-card-title {
      font-family: var(--font-display);
      font-size: 13px;
      font-weight: 700;
      color: var(--white);
      line-height: 1.25;
      margin-bottom: 4px;
    }

    .pair-card-meta {
      font-family: var(--font-mono);
      font-size: 10px;
      color: var(--text-muted);
      letter-spacing: 0.5px;
    }

    .pair-divider {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 6px 4px;
      margin: 4px 0;
    }

    .pair-divider-bar {
      flex: 1;
      height: 6px;
      border-radius: 3px;
      background: linear-gradient(90deg, var(--surface) 0%, var(--pair-color, var(--text-muted)) 50%, var(--surface) 100%);
      opacity: 0.85;
    }

    .pair-divider-score {
      font-family: var(--font-mono);
      font-size: 16px;
      font-weight: 800;
      color: var(--pair-color, var(--text-muted));
      min-width: 64px;
      text-align: center;
    }

    .pair-divider-score.is-zero { color: var(--text-muted); }

    .pair-notes {
      margin-top: 12px;
      padding-top: 12px;
      border-top: 1px dashed var(--border);
      font-size: 11px;
      color: var(--text-muted);
      line-height: 1.55;
    }

    .pair-notes strong {
      color: var(--cyan);
      font-family: var(--font-mono);
      font-size: 9px;
      text-transform: uppercase;
      letter-spacing: 1px;
      display: block;
      margin-bottom: 4px;
    }

    .pair-notes-tokens {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      margin-top: 4px;
    }

    .pair-notes-token {
      background: rgba(0,217,255,0.08);
      border: 1px solid rgba(0,217,255,0.25);
      border-radius: 3px;
      padding: 2px 6px;
      font-family: var(--font-mono);
      font-size: 10px;
      color: var(--cyan);
    }

    .legend-item {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .legend-box {
      width: 20px;
      height: 20px;
      border-radius: 3px;
      border: 1px solid var(--border);
    }

    /* ── Correlation Cards View ── */
    .corr-anchor-bar {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 20px;
      padding: 14px 16px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
    }

    .corr-anchor-lbl {
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 1px;
      white-space: nowrap;
    }

    .corr-anchor-select {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 8px 12px;
      color: var(--text);
      font-family: var(--font-body);
      font-size: 12px;
      min-width: 260px;
      outline: none;
      cursor: pointer;
      transition: border-color 0.2s;
    }

    .corr-anchor-select:focus { border-color: var(--cyan); }

    .corr-clear-btn {
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 7px 12px;
      color: var(--text-muted);
      font-family: var(--font-mono);
      font-size: 10px;
      letter-spacing: 1px;
      text-transform: uppercase;
      cursor: pointer;
      transition: all 0.2s;
    }

    .corr-clear-btn:hover { border-color: var(--cyan); color: var(--cyan); }
    .corr-clear-btn[disabled] { opacity: 0.4; cursor: default; }
    .corr-clear-btn[disabled]:hover { border-color: var(--border); color: var(--text-muted); }

    .corr-scale {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-left: auto;
      font-family: var(--font-mono);
      font-size: 10px;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .corr-scale-bar {
      width: 140px;
      height: 8px;
      border-radius: 4px;
      background: linear-gradient(90deg, #2563eb 0%, #10b981 25%, #facc15 50%, #f97316 75%, #dc2626 100%);
      border: 1px solid var(--border);
    }

    .corr-cards-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 12px;
    }

    .corr-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 14px;
      cursor: pointer;
      transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.25s ease;
      position: relative;
      overflow: hidden;
      --corr-color: var(--text-muted);
    }

    .corr-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 3px;
      background: var(--corr-color);
      opacity: 0.85;
    }

    .corr-card:hover {
      transform: translateY(-2px);
      border-color: var(--corr-color);
      box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    }

    .corr-card.is-anchor {
      border-color: var(--cyan);
      box-shadow: 0 0 0 1px var(--cyan), 0 8px 24px rgba(0,217,255,0.12);
    }

    .corr-card.is-anchor::before {
      background: var(--cyan);
      height: 4px;
    }

    .corr-card.is-faded {
      opacity: 0.45;
    }

    .corr-card-head {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 8px;
    }

    .corr-card-icon {
      font-size: 18px;
      line-height: 1;
    }

    .corr-card-anchor-tag {
      font-family: var(--font-mono);
      font-size: 9px;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: var(--cyan);
      margin-left: auto;
      background: var(--cyan-dim);
      border: 1px solid rgba(0,217,255,0.3);
      border-radius: 3px;
      padding: 2px 6px;
    }

    .corr-card-title {
      font-family: var(--font-display);
      font-size: 13px;
      font-weight: 700;
      color: var(--white);
      line-height: 1.25;
      margin-bottom: 6px;
    }

    .corr-card-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      font-family: var(--font-mono);
      font-size: 10px;
      color: var(--text-muted);
      letter-spacing: 0.5px;
    }

    .corr-card-industries {
      display: flex;
      gap: 4px;
      margin-top: 6px;
      font-size: 13px;
      line-height: 1;
      filter: saturate(1.1);
    }

    .corr-card-industries span {
      cursor: help;
    }

    .corr-card-score {
      color: var(--corr-color);
      font-weight: 700;
    }

    .corr-card-bar {
      margin-top: 10px;
      height: 4px;
      background: rgba(255,255,255,0.05);
      border-radius: 2px;
      overflow: hidden;
    }

    .corr-card-fill {
      height: 100%;
      width: 0%;
      background: var(--corr-color);
      border-radius: 2px;
      transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .corr-empty-hint {
      font-size: 11px;
      color: var(--text-muted);
      font-style: italic;
      margin-top: 8px;
    }

    /* Relationship Cards */
    .relationships-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 16px;
    }

    .relationship-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 16px;
      transition: all 0.2s;
    }

    .relationship-card:hover {
      border-color: var(--cyan);
      box-shadow: 0 8px 24px rgba(0,217,255,0.1);
    }

    .card-trend-title {
      font-family: var(--font-mono);
      font-size: 10px;
      color: var(--cyan);
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 6px;
    }

    .card-title {
      font-size: 13px;
      font-weight: 700;
      color: var(--white);
      margin-bottom: 10px;
    }

    .card-relationship {
      font-size: 11px;
      color: var(--text-muted);
      line-height: 1.5;
    }

    /* Vertical Profiles */
    #verticalsContainer {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }

    .vertical-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 20px;
      margin-bottom: 0;
      transition: all 0.2s;
      cursor: pointer;
    }

    .vertical-card:hover {
      border-color: var(--cyan);
      box-shadow: 0 8px 24px rgba(0,217,255,0.1);
      transform: translateY(-1px);
    }

    .vertical-card.is-active {
      border-color: var(--cyan);
      box-shadow: 0 0 0 1px var(--cyan), 0 8px 24px rgba(0,217,255,0.18);
      background: linear-gradient(180deg, rgba(0,217,255,0.05), var(--surface));
    }

    .vertical-card-name {
      font-family: var(--font-display);
      font-size: 14px;
      font-weight: 700;
      color: var(--white);
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .vertical-card-name .v-icon {
      font-size: 18px;
    }

    .vertical-card-active-tag {
      font-family: var(--font-mono);
      font-size: 9px;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: var(--cyan);
      margin-left: auto;
      background: var(--cyan-dim);
      border: 1px solid rgba(0,217,255,0.3);
      border-radius: 3px;
      padding: 2px 6px;
    }

    .vertical-card-desc {
      font-size: 11px;
      color: var(--text-muted);
      margin-bottom: 10px;
      line-height: 1.5;
    }

    .vertical-card-challenge {
      font-family: var(--font-mono);
      font-size: 10px;
      background: rgba(250,204,21,0.1);
      border-left: 2px solid var(--gold);
      padding: 8px 12px;
      margin-top: 10px;
      color: var(--gold);
    }

    .vertical-trends {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 12px;
    }

    .trend-tag {
      background: rgba(0,217,255,0.1);
      border: 1px solid rgba(0,217,255,0.3);
      border-radius: 4px;
      padding: 4px 8px;
      font-size: 10px;
      color: var(--cyan);
      font-family: var(--font-mono);
    }

    /* Compact stat pills (header-aligned) */
    .stats {
      display: flex;
      flex-direction: column;
      gap: 6px;
      align-items: stretch;
      min-width: 200px;
    }

    .stat-box {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 12px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 6px 12px;
    }

    .stat-number {
      font-family: var(--font-mono);
      font-size: 16px;
      font-weight: 700;
      color: var(--cyan);
      line-height: 1;
    }

    .stat-label {
      font-size: 10px;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    @media (max-width: 720px) {
      .stats { width: 100%; }
    }

    .trends-analysis a { color: var(--cyan); }
    .trends-analysis a:hover { color: #f8f9fa; }

    .report-topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 0 16px;
      position: relative;
      z-index: 1;
    }

    .report-topbar a {
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: 1px;
      text-transform: uppercase;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      white-space: nowrap;
    }
