
  .signal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
    margin-bottom: 36px;
  }

  .signal-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
  }

  [data-theme="light"] .signal-card {
    background: #ffffff;
    backdrop-filter: none;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }

  [data-theme="light"] .signal-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--card-hover-border);
  }

  .signal-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    border-radius: 2px 0 0 2px;
  }

  .signal-card.bullish::before { background: var(--buy); }
  .signal-card.bearish::before { background: var(--sell); }
  .signal-card.neutral::before { background: var(--text-dim); }

  .signal-card:hover {
    border-color: var(--card-hover-border);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
  }

  .signal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
  }

  .signal-stock-name {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
  }

  .signal-stock-name a { color: inherit; text-decoration: none; }

  .signal-ticker {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    margin-top: 2px;
  }

  .signal-sentiment {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
  }

  .signal-sentiment.bullish { background: rgba(52,211,153,0.12); color: var(--buy); }
  .signal-sentiment.bearish { background: rgba(248,113,113,0.12); color: var(--sell); }
  .signal-sentiment.neutral { background: var(--surface2); color: var(--text-dim); }

  .signal-scores {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
  }

  .signal-score-item {
    text-align: center;
    padding: 10px 6px;
    background: var(--surface2);
    border-radius: var(--radius);
    cursor: help;
  }

  .signal-score-val {
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1;
  }

  .signal-score-val.positive { color: var(--buy); }
  .signal-score-val.negative { color: var(--sell); }

  .signal-score-label {
    font-size: 0.55rem;
    color: var(--text-dim);
    margin-top: 4px;
  }

  .signal-trades {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 2px;
  }

  .signal-trade-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.85rem;
  }

  .signal-trade-row + .signal-trade-row {
    border-top: 1px solid var(--border);
  }

  .trade-name {
    color: var(--text-muted);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .trade-action { font-weight: 500; }
  .trade-action.buy { color: var(--buy); }
  .trade-action.sell { color: var(--sell); }
  .trade-value { color: var(--text-dim); font-size: 0.82rem; }

  .signal-activity {
    display: flex;
    gap: 12px;
    font-size: 0.82rem;
    margin-bottom: 14px;
  }

  .signal-activity span {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .signal-activity .buy-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--buy); }
  .signal-activity .sell-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sell); }

  .refresh-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
  }

  .refresh-btn {
    padding: 10px 22px;
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    background: var(--surface-solid);
    color: var(--text);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all var(--t);
  }

  .refresh-btn:hover { border-color: var(--accent); color: var(--accent); }
  .refresh-btn:disabled { opacity: 0.5; cursor: not-allowed; }

  .refresh-status {
    font-size: 0.85rem;
    color: var(--text-dim);
  }

  .no-insider-data {
    text-align: center;
    padding: 48px 24px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
  }

  .no-insider-data h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 10px;
  }

  .no-insider-data p {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 20px;
  }

  /* ── Stats strip ───────────────────────────────── */
  .insider-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 32px;
  }

  .insider-stat {
    text-align: center;
    padding: 16px 10px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
  }

  [data-theme="light"] .insider-stat {
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }

  .insider-stat-val {
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1;
  }

  .insider-stat-label {
    font-size: 0.58rem;
    color: var(--text-dim);
    margin-top: 6px;
  }

  /* ── Explainer card ────────────────────────────── */
  .explainer {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
  }

  [data-theme="light"] .explainer {
    background: var(--bg2);
    border: 1px solid var(--border);
    box-shadow: none;
  }

  .explainer h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 12px;
  }

  .explainer p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 8px;
  }

  .explainer ul {
    margin: 6px 0 10px;
    padding-left: 1.1em;
  }

  .explainer li {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 6px;
  }

  .explainer strong { color: var(--text); font-weight: 600; }
  .explainer em { color: var(--text); font-style: italic; }

  /* ── All trades feed ───────────────────────────── */
  .trades-feed {
    margin-bottom: 36px;
  }

  .feed-filters {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }

  .feed-filter-btn {
    padding: 6px 14px;
    border: 1px solid var(--border2);
    border-radius: 6px;
    background: transparent;
    color: var(--text-dim);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
  }

  .feed-filter-btn:hover { border-color: var(--accent); color: var(--accent); }
  .feed-filter-btn.active { background: var(--accent); border-color: var(--accent); color: #0a0e17; }
  [data-theme="light"] .feed-filter-btn.active { color: #fff; }

  .feed-table {
    width: 100%;
    border-collapse: collapse;
  }

  .feed-table th {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-dim);
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 2;
  }

  .feed-table td {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
  }

  .feed-table tr:hover td { background: var(--surface2); }

  .feed-table .company-cell {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text);
    white-space: normal;
    max-width: 160px;
  }

  .feed-table .company-cell a { color: inherit; text-decoration: none; }

  /* ── Mobile card view for the trades feed (replaces the wide table) ── */
  .feed-card-list { display: none; }
  .feed-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 8px;
  }
  .feed-card-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
  .feed-card-company { font-weight: 600; color: var(--text); text-decoration: none; flex: 1; line-height: 1.3; }
  .feed-card-action { font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
  .feed-card-action.buy { color: var(--buy); }
  .feed-card-action.sell { color: var(--sell); }
  .feed-card-row {
    display: flex; justify-content: space-between; gap: 10px;
    font-size: 0.85rem; color: var(--text-muted);
  }
  .feed-card-row .who { color: var(--text); }
  .feed-card-val { font-weight: 600; }

  @media (max-width: 640px) {
    .signal-grid { grid-template-columns: 1fr; }
    .insider-stats { grid-template-columns: repeat(3, 1fr); }
    .feed-table-wrap { display: none; }
    .feed-card-list { display: block; }
    .explainer { padding: 16px; }
    .explainer p, .explainer li { font-size: 0.78rem; }
  }

  /* ═══════════ Standout signals ═══════════ */
  .standout-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 40px; }
  .standout-card {
    display: flex; flex-direction: column; gap: 10px;
    background: var(--glass); border: 1px solid var(--glass-border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    text-decoration: none; color: var(--text);
    transition: border-color var(--t), box-shadow var(--t), transform var(--t);
    position: relative;
  }
  [data-theme="light"] .standout-card { background: #fff; box-shadow: var(--shadow-sm); }
  .standout-card:hover { border-color: var(--card-hover-border); box-shadow: var(--shadow-glow); transform: translateY(-2px); }

  /* Tag-tinted left stripe & badge */
  .standout--cluster    { border-left-color: var(--accent); }
  .standout--ceo        { border-left-color: var(--warn); }
  .standout--jumbo      { border-left-color: var(--buy); }
  .standout--first      { border-left-color: var(--accent2); }
  .standout--contrarian { border-left-color: var(--sell); }
  .standout--officer    { border-left-color: var(--accent3); }

  .standout-head { display: flex; align-items: center; gap: 8px; }
  .standout-emoji { font-size: 1.05rem; line-height: 1; }
  .standout-tag { font-size: 0.78rem; color: var(--text-dim); }
  .standout--cluster    .standout-tag { color: var(--accent); }
  .standout--ceo        .standout-tag { color: var(--warn); }
  .standout--jumbo      .standout-tag { color: var(--buy); }
  .standout--first      .standout-tag { color: var(--accent2); }
  .standout--contrarian .standout-tag { color: var(--sell); }
  .standout--officer    .standout-tag { color: var(--accent3); }

  .standout-headline {
    font-family: var(--font-display); font-weight: 400;
    font-size: 1.05rem; line-height: 1.3; color: var(--text);
    text-wrap: balance;
  }
  .standout-stock { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
  .standout-tk { font-family: var(--font-mono); font-weight: 600; font-size: 0.86rem; color: var(--accent); }
  .standout-nm { font-family: var(--font-body); font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .standout-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px dashed var(--border); }
  .standout-insider { font-size: 0.85rem; color: var(--text-muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .standout-value { font-family: var(--font-display); font-size: 1.15rem; color: var(--text); }
  .standout-more-tags { display: flex; flex-wrap: wrap; gap: 4px; }
  .standout-mini-tag {
    font-size: 0.56rem; letter-spacing: 0.08em;
    color: var(--text-dim); padding: 2px 7px; border-radius: 4px;
    border: 1px solid var(--border2); background: var(--surface2);
  }
  .standout-date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim); }
