/* Form 4 lane — InsideTerminal matte skin (active development) */

#lane-form4 {
  --f4-surface: rgba(30, 41, 59, 0.4);
  --f4-surface-hover: rgba(30, 41, 59, 0.6);
  --f4-border: rgba(255, 255, 255, 0.08);
  --f4-text: #f8fafc;
  --f4-muted: #94a3b8;
  --f4-dim: #64748b;
  --f4-blue: #60a5fa;
  --f4-emerald: #34d399;
  --f4-amber: #fbbf24;
  /* Type scale — display / heading / body / caption / label */
  --f4-type-display: 1.75rem;
  --f4-type-heading: 1.1rem;
  --f4-type-subhead: 0.95rem;
  --f4-type-body: 0.875rem;
  --f4-type-caption: 0.8rem;
  --f4-type-label: 0.7rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: var(--f4-type-body);
  -webkit-font-smoothing: antialiased;
}

/* Demoted audit stream → collapsible "Excluded trades" after scanner */
#lane-form4 .f4-excluded-details {
  margin: 0.65rem 0 0;
}
#lane-form4 .f4-excluded-summary {
  font-family: Inter, system-ui, sans-serif;
  font-size: var(--f4-type-caption);
  color: var(--f4-blue);
  cursor: pointer;
  user-select: none;
}
#lane-form4 .f4-excluded-summary::-webkit-details-marker { display: none; }
#lane-form4 .f4-excluded-summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.4rem;
  color: #94a3b8;
  transition: transform 120ms ease;
}
#lane-form4 details[open] > .f4-excluded-summary::before { transform: rotate(90deg); }
#lane-form4 .f4-excluded-count { color: var(--f4-muted); margin-left: 0.35rem; }
#lane-form4 .f4-excluded-panel {
  margin-top: 0.6rem;
}

/* Section headers + count chips (matches 13D/G + unified mock) */
#lane-form4 .f4-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 2.5rem 0 0.35rem;
}
#lane-form4 .f4-section-title {
  font-family: Inter, system-ui, sans-serif;
  font-size: var(--f4-type-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--f4-text);
  margin: 0;
}
#lane-form4 .f4-section-count {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-size: var(--f4-type-caption);
  color: var(--f4-muted);
  background: var(--f4-surface);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--f4-border);
  white-space: nowrap;
}
#lane-form4 .f4-section-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
#lane-form4 .scanner-depth-toggle {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--f4-border);
  border-radius: 99px;
  overflow: hidden;
  background: var(--f4-surface);
}
#lane-form4 .scanner-depth-btn {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--f4-dim);
  background: transparent;
  border: none;
  padding: 0.28rem 0.65rem;
  cursor: pointer;
}
#lane-form4 .scanner-depth-btn + .scanner-depth-btn {
  border-left: 1px solid var(--f4-border);
}
#lane-form4 .scanner-depth-btn:hover:not(.is-active) {
  color: var(--f4-text);
  background: rgba(255, 255, 255, 0.04);
}
#lane-form4 .scanner-depth-btn.is-active {
  color: var(--f4-emerald);
  background: rgba(16, 185, 129, 0.1);
}
#lane-form4 .scanner-table-wrap .scanner-score {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-weight: 600;
  text-align: center;
}
#lane-form4 .scanner-table-wrap .scanner-score--a {
  color: #34d399;
}
#lane-form4 .scanner-table-wrap .scanner-score--b {
  color: #60a5fa;
}
#lane-form4 .scanner-table-wrap .scanner-score--c {
  color: #64748b;
}
#lane-form4 .scanner-table-wrap .scanner-score--na {
  color: #475569;
  font-weight: 400;
}

/* Scanner verdicts — plain mono text (no pills in grid) */
#lane-form4 .scanner-table-wrap .verdict-clear,
#lane-form4 .scanner-table-wrap .verdict-risk-drift,
#lane-form4 .scanner-table-wrap .verdict-low-liquidity,
#lane-form4 .scanner-table-wrap .verdict-distribution,
#lane-form4 .scanner-table-wrap .verdict-pending,
#lane-form4 .scanner-table-wrap .col-verdict-clear,
#lane-form4 .scanner-table-wrap .col-verdict-drift,
#lane-form4 .scanner-table-wrap .col-verdict-sell,
#lane-form4 .scanner-table-wrap .col-verdict-thin,
#lane-form4 .scanner-table-wrap .col-verdict-pending {
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  display: inline;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
}
#lane-form4 .scanner-table-wrap .col-verdict-clear,
#lane-form4 .scanner-table-wrap .verdict-clear { color: var(--f4-emerald); }
#lane-form4 .scanner-table-wrap .col-verdict-drift,
#lane-form4 .scanner-table-wrap .verdict-risk-drift { color: var(--f4-amber); }
#lane-form4 .scanner-table-wrap .col-verdict-sell,
#lane-form4 .scanner-table-wrap .verdict-distribution { color: #f87171; }
#lane-form4 .scanner-table-wrap .col-verdict-thin,
#lane-form4 .scanner-table-wrap .verdict-low-liquidity { color: #fb923c; }
#lane-form4 .scanner-table-wrap .col-verdict-pending,
#lane-form4 .scanner-table-wrap .verdict-pending { color: var(--f4-muted); }

#lane-form4 .panel-header-nested,
#lane-form4 .f4-subsection-title {
  font-family: Inter, system-ui, sans-serif;
  font-size: var(--f4-type-subhead);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--f4-text);
  border-left: none;
  margin: 0.85rem 0 0.4rem;
}

/* Trade tables — screener-dense grid (scanner + focus trades) */
#lane-form4 .scanner-table-wrap {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
  overflow-anchor: none;
  background: #0c1018;
  border: 1px solid #2a3548;
  border-radius: 8px;
  margin-bottom: 1rem;
}
#lane-form4 .scanner-table-wrap .term-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
}
#lane-form4 .scanner-table-wrap .term-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #141c28;
  color: #64748b;
  font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid #2a3548;
  white-space: nowrap;
}
#lane-form4 .scanner-table-wrap .scanner-sort-th {
  cursor: pointer;
  user-select: none;
}
#lane-form4 .scanner-table-wrap .scanner-sort-th:hover {
  color: #94a3b8;
}
#lane-form4 .scanner-table-wrap .scanner-sort-th.is-sorted {
  color: #cbd5e1;
}
#lane-form4 .scanner-table-wrap .scanner-sort-indicator {
  margin-left: 0.2rem;
  font-size: 9px;
  opacity: 0.45;
}
#lane-form4 .scanner-table-wrap .scanner-sort-th.is-sorted .scanner-sort-indicator {
  opacity: 0.95;
  color: var(--f4-emerald);
}
#lane-form4 .scanner-table-wrap .term-table tbody td {
  background: #0c1018;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.25;
  border-bottom: 1px solid #1a2230;
  padding: 4px 9px;
  vertical-align: middle;
}
#lane-form4 .scanner-table-wrap .term-table tbody tr:nth-child(even) td {
  background: #0a0e16;
}
#lane-form4 .scanner-table-wrap .term-table tbody tr {
  transition: background 0.12s ease, color 0.12s ease;
}
#lane-form4 .scanner-table-wrap .term-table tbody tr:hover td {
  background: #141c28;
  color: #e2e8f0;
}
#lane-form4 .scanner-table-wrap .term-table tbody tr:last-child td {
  border-bottom: none;
}
#lane-form4 .scanner-table-wrap .col-ticker {
  font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--f4-blue) !important;
  position: sticky;
  left: 0;
  z-index: 2;
  background: #0c1018;
  box-shadow: 1px 0 0 #1a2230;
}
#lane-form4 .scanner-table-wrap .term-table tbody tr:nth-child(even) .col-ticker {
  background: #0a0e16;
}
#lane-form4 .scanner-table-wrap .term-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 4;
  background: #141c28;
  box-shadow: 1px 0 0 #2a3548;
}
#lane-form4 .scanner-table-wrap .scanner-row-click:hover .col-ticker {
  background: #141c28;
}
#lane-form4 .scanner-table-wrap .scanner-row-click.is-selected .col-ticker {
  background: rgba(30, 58, 95, 0.98);
}
#lane-form4 .scanner-table-wrap .scanner-col-insider {
  max-width: 14rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #94a3b8;
}
#lane-form4 .scanner-table-wrap .scanner-col-signal {
  max-width: 10.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#lane-form4 .scanner-table-wrap .scanner-signal-chip {
  font-size: 0.55rem;
  padding: 0 4px;
  margin-right: 3px;
  vertical-align: middle;
  line-height: 1.35;
}
#lane-form4 .scanner-table-wrap .scanner-signal-text {
  color: #94a3b8;
  font-size: 11px;
}
#lane-form4 .scanner-table-wrap .col-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  white-space: nowrap;
  text-align: right;
  color: #cbd5e1;
}
#lane-form4 .scanner-table-wrap .col-type {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
#lane-form4 .scanner-table-wrap .col-buy { color: var(--f4-emerald); }
#lane-form4 .scanner-table-wrap .col-sell { color: #f87171; }
#lane-form4 .scanner-table-wrap .spark-cell {
  display: block;
  width: 72px;
  max-width: 72px;
  padding: 1px 4px !important;
  line-height: 0;
}
#lane-form4 .scanner-table-wrap .spark-cell img {
  display: block;
  max-width: 64px;
  height: 18px;
  margin: 0 auto;
}
#lane-form4 .scanner-row-click.is-selected td {
  background: rgba(96, 165, 250, 0.12) !important;
  box-shadow: inset 3px 0 0 var(--f4-blue);
  color: var(--f4-text);
}

/* Command ribbon → glass filter bar */
#lane-form4 .command-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0;
  background: transparent;
  border: none;
  backdrop-filter: none;
}
#lane-form4 .ribbon-label {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-size: var(--f4-type-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--f4-dim);
  margin: 0 0.25rem 0 0;
}
#lane-form4 .preset-chip {
  font-family: Inter, system-ui, sans-serif;
  font-size: var(--f4-type-caption);
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  border: 1px solid var(--f4-border);
  background: var(--f4-surface);
  backdrop-filter: blur(8px);
  color: var(--f4-muted);
}
#lane-form4 .preset-chip:hover:not(.active) {
  color: var(--f4-text);
  border-color: rgba(255, 255, 255, 0.12);
}
#lane-form4 .preset-chip.active {
  border-color: rgba(52, 211, 153, 0.4);
  color: var(--f4-emerald);
  background: rgba(16, 185, 129, 0.1);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.1);
}
#lane-form4 .preset-chip.active[data-strategy="inst"],
#lane-form4 .preset-chip.active[data-strategy="institutional"] {
  border-color: rgba(167, 139, 250, 0.45);
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.12);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.12);
}
#lane-form4 .acct-chip {
  margin-left: auto;
  font-family: Inter, system-ui, sans-serif;
  font-size: var(--f4-type-caption);
  font-weight: 500;
  color: var(--f4-muted);
  border: 1px solid var(--f4-border);
  border-radius: 99px;
  padding: 0.35rem 0.75rem;
  background: var(--f4-surface);
  backdrop-filter: blur(8px);
}

/* A-list strip — terminal tape (matches form4-current-look sample) */
#lane-form4 .alist-strip {
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.08) 0%, rgba(96, 165, 250, 0.02) 100%);
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0.75rem 0 0.5rem;
  box-shadow: none;
  backdrop-filter: none;
}
#lane-form4 .alist-strip--alpha {
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.1) 0%, rgba(52, 211, 153, 0.02) 100%);
  border-color: rgba(52, 211, 153, 0.4);
}
#lane-form4 .alist-strip--alpha .alist-title { color: #34d399; }
#lane-form4 .alist-strip--institutional {
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.1) 0%, rgba(167, 139, 250, 0.02) 100%);
  border-color: rgba(167, 139, 250, 0.4);
}
#lane-form4 .alist-strip--institutional .alist-title { color: #c4b5fd; }
#lane-form4 .alist-strip--value {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.1) 0%, rgba(251, 191, 36, 0.02) 100%);
  border-color: rgba(251, 191, 36, 0.4);
}
#lane-form4 .alist-strip--value .alist-title { color: #fbbf24; }
#lane-form4 .alist-strip--free-preview .alist-title { color: #93c5fd; }
#lane-form4 .alist-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 8px;
}
#lane-form4 .strategy-strip-note {
  margin: 0.35rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: var(--f4-type-caption);
  color: var(--f4-dim);
  line-height: 1.45;
}
#lane-form4 .alist-item-wrap {
  border-bottom: 1px solid rgba(96, 165, 250, 0.12);
}
#lane-form4 .alist-item-wrap:last-child {
  border-bottom: none;
}
#lane-form4 .alist-item {
  font-size: 0.88rem;
  color: #e2e8f0;
  line-height: 1.55;
  padding: 6px 0;
  border-bottom: none;
  display: block;
}
#lane-form4 .alist-score {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  color: #7dd3fc;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-right: 0.35rem;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  opacity: 0.85;
}
#lane-form4 .alist-ticker {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  color: #60a5fa;
  letter-spacing: 0.04em;
}
#lane-form4 .alist-ticker[data-ticker] {
  cursor: pointer;
}
#lane-form4 .alist-ticker[data-ticker]:hover,
#lane-form4 .alist-ticker[data-ticker]:focus-visible {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
  outline: none;
}
#lane-form4 .alist-meta {
  color: #94a3b8;
  font-size: 0.82rem;
}
#lane-form4 .alist-mixed-note {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 2px;
  padding-left: 0.25rem;
}
/* Strip micro-badges — IBM Plex terminal pills (no dots) */
#lane-form4 .alist-item .signal-chip,
#lane-form4 .alist-item .alist-badge {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: none;
  padding: 2px 7px;
  border-radius: 4px;
  margin-right: 6px;
  line-height: 1.2;
  vertical-align: baseline;
  border: 1px solid transparent;
  white-space: nowrap;
}
#lane-form4 .alist-item .alist-badge {
  text-transform: uppercase;
}
#lane-form4 .alist-item .signal-chip--super,
#lane-form4 .alist-item .alist-badge.signal-chip--super {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(251, 191, 36, 0.5);
}
#lane-form4 .alist-item .signal-chip--coord,
#lane-form4 .alist-item .alist-badge:not(.signal-chip--buy):not(.signal-chip--sell):not(.signal-chip--super) {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.35);
}
#lane-form4 .alist-item .signal-chip--buy,
#lane-form4 .alist-item .alist-badge-cluster-buy {
  color: #34d399;
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.45);
}
#lane-form4 .alist-item .signal-chip--sell,
#lane-form4 .alist-item .alist-badge-cluster-sell,
#lane-form4 .alist-item .verdict-distribution {
  color: #f87171;
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.42);
}
#lane-form4 .alist-item .verdict-clear {
  color: #34d399;
  background: rgba(52, 211, 153, 0.18);
  border-color: rgba(52, 211, 153, 0.45);
}
#lane-form4 .alist-item .verdict-risk-drift {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.16);
  border-color: rgba(251, 191, 36, 0.45);
}
#lane-form4 .alist-item .verdict-low-liquidity,
#lane-form4 .alist-item .signal-chip--warn {
  color: #fb923c;
  background: rgba(251, 146, 60, 0.14);
  border-color: rgba(251, 146, 60, 0.42);
}
#lane-form4 .alist-item .verdict-pending,
#lane-form4 .alist-item .signal-chip--muted,
#lane-form4 .alist-item .alist-badge-scheduled {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.28);
  opacity: 0.9;
}
#lane-form4 .delayed-tape-banner,
#lane-form4 .premium-teaser {
  background: var(--f4-surface);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  border: 1px solid var(--f4-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
#lane-form4 .delayed-tape-banner {
  border-color: rgba(251, 191, 36, 0.25);
}
#lane-form4 .premium-teaser {
  border-color: rgba(96, 165, 250, 0.25);
}
#lane-form4 #f4-chart.is-focus-swapping,
#lane-form4 #f4-review.is-focus-swapping {
  opacity: 0.9;
  transition: opacity 0.15s ease;
  pointer-events: none;
}
#lane-form4 #f4-chart.is-focus-swapping #f4-chart-plot {
  pointer-events: none;
}
#lane-form4 #f4-chart,
#lane-form4 #f4-chart-plot,
#lane-form4 #f4-focus-trades,
#lane-form4 #f4-review {
  overflow-anchor: none;
}
#lane-form4 .focus-grc-loading {
  min-height: 6rem;
  margin: 0;
}
#lane-form4 .chart-box {
  background: #0c1018;
  border: 1px solid #2a3548;
  border-radius: 8px;
  padding: 0.35rem 0.5rem 0.45rem;
  margin-bottom: 0.35rem;
  width: 100%;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
#lane-form4 .chart-title {
  font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.03em;
  margin: 0 0 0.15rem;
}
#lane-form4 #focus-workspace {
  margin: 1.5rem 0 1rem;
}
#lane-form4 #focus-workspace + .f4-section-header {
  margin-top: 0;
  margin-bottom: 0.2rem;
}
#lane-form4 #focus-workspace + .f4-section-header + .panel-sub {
  margin: 0 0 0.45rem;
}
#lane-form4 .regime-caption {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  line-height: 1.35;
}
#lane-form4 .ticker-nav {
  display: grid;
  grid-template-columns: 26px 1fr 26px;
  gap: 0.25rem;
  align-items: center;
  margin: 0.5rem 0 0.65rem;
  max-width: 11rem;
}
#lane-form4 .nav-btn {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  line-height: 1;
  padding: 0.2rem 0;
  min-height: 1.5rem;
  background: #0c1018;
  border: 1px solid #334155;
  border-radius: 4px;
  color: #94a3b8;
}
#lane-form4 .nav-btn:hover:not(:disabled) {
  border-color: var(--f4-blue);
  color: var(--f4-blue);
}
#lane-form4 .ticker-nav select,
#lane-form4 .ticker-nav-select {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 1.1rem 0.15rem 0.35rem;
  min-height: 1.5rem;
  line-height: 1.25;
  background: #0f172a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2394a3b8' d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 0.35rem center;
  border: 1px solid #334155;
  border-radius: 4px;
  color: var(--f4-blue);
  text-align: center;
  text-align-last: center;
  width: 100%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
#lane-form4 .ticker-nav select:hover,
#lane-form4 .ticker-nav-select:hover {
  border-color: var(--f4-blue);
}
#lane-form4 .ticker-nav select:focus,
#lane-form4 .ticker-nav-select:focus {
  outline: none;
  border-color: var(--f4-blue);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.35);
}
.alist-strip {
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.08) 0%, rgba(96, 165, 250, 0.02) 100%);
  border: 1px solid rgba(96, 165, 250, 0.35); border-radius: 8px;
  padding: 12px 16px; margin: 0.75rem 0 0.5rem;
}
.alist-title {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: #93c5fd; margin-bottom: 8px;
}
.alist-item {
  font-size: 0.88rem; color: #e2e8f0; line-height: 1.55;
  padding: 6px 0;
}
.alist-item-wrap { border-bottom: 1px solid rgba(96, 165, 250, 0.12); }
.alist-item-wrap:last-child { border-bottom: none; }
.alist-item:last-child { border-bottom: none; }
.alist-score {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  color: #7dd3fc;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-right: 0.35rem;
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.signal-chip--super,
.alist-badge.signal-chip--super {
  color: #fbbf24; background: rgba(251, 191, 36, 0.18);
  border-color: rgba(251, 191, 36, 0.5); font-weight: 700;
}
.alist-ticker {
  font-family: 'IBM Plex Mono', monospace; font-weight: 700; color: #60a5fa;
}
.alist-meta { color: #94a3b8; font-size: 0.82rem; }
.alist-mixed-note {
  font-size: 0.78rem; color: #94a3b8; margin-top: 2px; padding-left: 0.25rem;
}
.alist-expander {
  margin-top: 0.65rem;
  border-top: 1px solid rgba(51, 65, 85, 0.55);
  padding-top: 0.35rem;
}
.alist-expander-head {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: #93c5fd;
  cursor: pointer;
  padding: 0.45rem 0;
  list-style: none;
}
.alist-expander-head::-webkit-details-marker { display: none; }
.alist-expander-head::before {
  content: "▸ ";
  color: #64748b;
}
.alist-expander[open] .alist-expander-head::before {
  content: "▾ ";
}
.alist-expander-body {
  padding: 0.25rem 0 0.35rem;
}
.alist-overflow-title {
  font-size: 11px;
  color: #64748b;
  margin: 0 0 0.5rem;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.04em;
}

.delayed-tape-banner {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.16) 0%, rgba(251, 191, 36, 0.04) 100%);
  border: 1px solid rgba(251, 191, 36, 0.5); border-radius: 8px;
  padding: 14px 18px; margin: 0.5rem 0 1rem;
}
.delayed-tape-title {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: #fbbf24; margin-bottom: 8px;
}
.delayed-tape-body { font-size: 0.9rem; color: #cbd5e1; line-height: 1.55; }

.premium-teaser {
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.14) 0%, rgba(96, 165, 250, 0.04) 100%);
  border: 1px solid rgba(96, 165, 250, 0.45); border-radius: 8px;
  padding: 14px 18px; margin: 0.75rem 0 1rem;
}
.premium-teaser-title {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: #60a5fa; margin-bottom: 10px;
}
.premium-teaser-line { font-size: 0.92rem; color: #e2e8f0; line-height: 1.6; margin: 4px 0; }
.premium-lock { color: #fbbf24; margin-right: 6px; }

.panel-header {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: #60a5fa;
  border-left: 3px solid #60a5fa; padding: 4px 0 4px 10px;
  margin: 1.5rem 0 0.35rem;
}
#lane-form4 .panel-sub {
  font-size: 0.88rem;
  color: var(--f4-dim);
  margin: 0 0 0.85rem;
}
.panel-sub {
  font-size: 0.78rem; color: #64748b; margin: 0 0 0.75rem;
}

#lane-form4 .audit-metrics {
  background: var(--f4-surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--f4-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 0.75rem 0 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
#lane-form4 .audit-metrics-note {
  font-size: 0.8rem;
  color: var(--f4-muted);
  padding: 0.75rem 1rem;
  background: rgba(96, 165, 250, 0.05);
  border-left: 2px solid rgba(96, 165, 250, 0.3);
  border-radius: 6px;
}
#lane-form4 .audit-logs summary {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--f4-blue);
}
.audit-metrics {
  background: #111820; border: 1px solid #243044; border-radius: 8px;
  padding: 14px 18px; margin: 0.75rem 0 1rem;
}
.audit-metrics-head {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: #94a3b8; margin-bottom: 6px;
}
.audit-metrics-sub { font-size: 0.88rem; color: #e2e8f0; margin-bottom: 12px; }
.audit-histogram { width: 100%; border-collapse: collapse; margin-bottom: 12px; font-size: 0.72rem; }
.audit-histogram th {
  text-align: left; color: #64748b; font-weight: 500; padding: 6px 8px 4px 0;
  border-bottom: 1px solid #243044; vertical-align: bottom;
}
.audit-histogram td {
  padding: 10px 8px 4px 0; color: #e2e8f0;
  font-family: 'IBM Plex Mono', monospace; font-size: 1.1rem; font-weight: 600;
  border-bottom: 1px solid #1a2332;
}
.hist-sub { display: block; font-size: 0.65rem; font-weight: 400; color: #64748b; margin-top: 2px; }
.audit-metrics-note {
  font-size: 0.78rem; color: #64748b; line-height: 1.45; margin-bottom: 10px;
  padding: 8px 10px; background: rgba(96, 165, 250, 0.06);
  border-left: 2px solid rgba(96, 165, 250, 0.35); border-radius: 4px;
}
.audit-logs summary {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; color: #93c5fd;
  cursor: pointer; margin-top: 8px;
}
.audit-item {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; color: #94a3b8;
  padding: 5px 0; border-bottom: 1px solid #1a2332;
}
.audit-ticker { color: #60a5fa; font-weight: 700; }
.audit-badge { color: #fbbf24; }

.scanner-wrap {
  border: 1px solid #2a3548; border-radius: 8px; overflow: hidden; margin-bottom: 1rem;
}
/* Legacy Streamlit table defaults — superseded by #lane-form4 rules at end of file */
.term-table { width: 100%; border-collapse: collapse; }

#lane-form4 .divider {
  height: 1px;
  background: var(--f4-border);
  margin: 2.5rem 0;
}
.divider {
  height: 1px;
  background: #334155;
  margin: 2rem 0;
}
.focus-lookup input {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.85rem;
  padding: 0.45rem 0.65rem; background: #0c1018; border: 1px solid #334155;
  border-radius: 6px; color: #e2e8f0; width: 120px;
}
.focus-ticker-line {
  font-size: 0.88rem; color: #94a3b8; margin: 0.35rem 0 0.75rem;
}
.focus-ticker-line strong {
  font-family: 'IBM Plex Mono', monospace; color: #60a5fa; font-weight: 700;
}
.regime-caption {
  font-size: 0.82rem; color: #94a3b8; margin-bottom: 0.5rem;
  font-family: 'IBM Plex Mono', monospace;
}
.chart-box {
  background: rgba(12, 16, 24, 0.95);
  border: 1px solid #2a3548; border-radius: 8px;
  padding: 0.5rem 0.75rem 0.75rem; margin-bottom: 1rem;
}
.chart-title {
  font-size: 0.88rem; font-weight: 600; color: #e2e8f0; margin-bottom: 0.35rem;
}
.chart-svg { width: 100%; height: 220px; display: block; }
.ticker-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 0.75rem 0 1rem;
}
.nav-btn {
  font-family: 'IBM Plex Mono', monospace;
  text-align: center;
  padding: 0.45rem 0.65rem;
  min-width: 2.5rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid #334155;
  border-radius: 6px;
  color: #cbd5e1;
  cursor: pointer;
}
.ticker-select {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.85rem;
  padding: 0.45rem 0.65rem; background: #0c1018; border: 1px solid #334155;
  border-radius: 6px; color: #60a5fa; width: 100%;
}
.panel-header-nested {
  font-size: 0.68rem; letter-spacing: 0.12em; margin: 1.15rem 0 0.55rem;
  color: #94a3b8; border-left-color: #475569;
}
#lane-form4 .grc-verdict-card {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(30, 41, 59, 0.45);
  backdrop-filter: blur(12px);
}
#lane-form4 .grc-brief-table {
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(30, 41, 59, 0.35);
}
.grc-verdict-card {
  border-radius: 8px; border: 1px solid #334155;
  background: rgba(15, 23, 42, 0.65); padding: 12px 14px;
  margin: 0.5rem 0 0.75rem;
  border-left: 3px solid #34d399;
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.08) 0%, rgba(15, 23, 42, 0.55) 40%);
}
.grc-verdict-badge {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: #34d399;
}
.grc-health-summary {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 0.5rem;
  line-height: 1.45;
}
.grc-brief-plain {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: #cbd5e1;
  font-weight: 500;
}
.drift-status-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
}
.drift-badge-major { color: #fda4af; background: rgba(244, 63, 94, 0.15); border-color: rgba(244, 63, 94, 0.45); }
.drift-badge-elevated { color: #fcd34d; background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.4); }
.drift-badge-moderate { color: #93c5fd; background: rgba(96, 165, 250, 0.1); border-color: rgba(96, 165, 250, 0.35); }
.drift-badge-stable { color: #6ee7b7; background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.35); }
.drift-badge-caution-high { color: #fda4af; background: rgba(244, 63, 94, 0.12); border-color: rgba(244, 63, 94, 0.35); }
.drift-badge-caution { color: #fbbf24; background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.35); }
.drift-badge-neutral { color: #94a3b8; background: rgba(148, 163, 184, 0.08); border-color: #475569; }
.grc-brief-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.grc-brief-signal { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.grc-brief-pct { font-family: 'IBM Plex Mono', monospace; font-size: 1rem; font-weight: 700; color: #f1f5f9; }
.grc-brief-delta { font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; font-weight: 600; color: #fbbf24; }
.grc-brief-findings { font-size: 0.78rem; color: #94a3b8; max-width: 36rem; line-height: 1.45; }
.grc-brief-filing { font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; color: #64748b; margin-top: 4px; }
.grc-brief-edgar {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; font-weight: 600;
  color: #60a5fa !important; text-decoration: none; white-space: nowrap;
}
.grc-brief-edgar:hover { color: #93c5fd !important; text-decoration: underline; }
.grc-brief-table {
  width: 100%; border-collapse: collapse; font-size: 0.8rem;
  margin: 0.5rem 0 0.75rem; background: rgba(15, 23, 42, 0.45);
  border: 1px solid #334155; border-radius: 8px; overflow: hidden;
}
.grc-brief-table th {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: #64748b;
  text-align: left; padding: 8px 12px; background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid #334155;
}
.grc-brief-table td {
  padding: 10px 12px; vertical-align: top;
  border-bottom: 1px solid rgba(51, 65, 85, 0.55); color: #cbd5e1; line-height: 1.4;
}
.grc-brief-dim {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; font-weight: 600;
  color: #94a3b8; width: 11rem;
}
.section-note {
  font-size: 0.78rem; color: #64748b; margin-top: 2rem; padding-top: 1rem;
  border-top: 1px dashed #334155; line-height: 1.5;
}

/* ── Typography overrides (lane beats legacy Streamlit globals) ── */
#lane-form4 .panel-sub,
#lane-form4 .scanner-caption {
  font-size: var(--f4-type-caption);
  color: var(--f4-dim);
}
#lane-form4 .panel-sub { margin: -0.25rem 0 1rem; }
#lane-form4 .scanner-caption { margin: -0.35rem 0 0.85rem; line-height: 1.45; }
#lane-form4 .scanner-caption strong { color: var(--f4-muted); }

#lane-form4 .alist-meta,
#lane-form4 .alist-mixed-note { font-size: var(--f4-type-caption); }
#lane-form4 .alist-hl-value {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}
#lane-form4 .alist-narrative-tail {
  color: #94a3b8;
  font-weight: 400;
}
#lane-form4 .alist-narrative-tail .alist-hl-own {
  font-family: inherit;
  font-weight: 400;
}
#lane-form4 .alist-narrative-tail .alist-hl-own.col-sell { color: #fca5a5; }
#lane-form4 .alist-narrative-tail .alist-hl-own.col-buy { color: #86efac; }
#lane-form4 .alist-strip--institutional .alist-hl-own.col-sell { color: #fca5a5; font-weight: 600; }
#lane-form4 .alist-strip--institutional .alist-hl-own.col-buy { color: #86efac; font-weight: 600; }
#lane-form4 .alist-expander-head { font-size: var(--f4-type-caption); font-family: Inter, sans-serif; }
#lane-form4 .alist-overflow-title { font-size: var(--f4-type-label); }

#lane-form4 .delayed-tape-title,
#lane-form4 .premium-teaser-title {
  font-family: Inter, sans-serif;
  font-size: var(--f4-type-label);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
#lane-form4 .delayed-tape-body,
#lane-form4 .premium-teaser-line { font-size: var(--f4-type-body); }

#lane-form4 .audit-metrics-head {
  font-family: Inter, sans-serif;
  font-size: var(--f4-type-label);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--f4-dim);
}
#lane-form4 .audit-metrics-sub { font-size: var(--f4-type-body); }
#lane-form4 .audit-histogram th {
  font-size: var(--f4-type-label);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--f4-dim);
}
#lane-form4 .audit-histogram td {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--f4-text);
}
#lane-form4 .hist-sub { font-size: var(--f4-type-label); text-transform: none; letter-spacing: 0; }
#lane-form4 .audit-item { font-size: var(--f4-type-caption); }
#lane-form4 .audit-ticker { font-size: var(--f4-type-caption); }

#lane-form4 .term-table thead th {
  font-family: Inter, sans-serif;
  font-size: var(--f4-type-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--f4-dim);
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--f4-border);
  padding: 0.85rem 1rem;
}
#lane-form4 .term-table tbody td {
  font-family: Inter, sans-serif;
  font-size: var(--f4-type-body);
  color: var(--f4-muted);
  background: transparent;
  border-bottom: 1px solid var(--f4-border);
  padding: 0.85rem 1rem;
}
#lane-form4 .term-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
  color: var(--f4-text);
}
#lane-form4 .col-ticker {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-size: var(--f4-type-caption);
}

#lane-form4 .col-buy { color: var(--f4-emerald); font-weight: 600; }
#lane-form4 .col-sell { color: #f87171; font-weight: 600; }

#lane-form4 .focus-hint { font-size: var(--f4-type-caption); color: var(--f4-dim); }
#lane-form4 .regime-caption { font-size: var(--f4-type-caption); }
#lane-form4 .chart-title { font-size: 0.75rem; font-weight: 600; }
#lane-form4 .chart-loading,
#lane-form4 .empty-state { font-size: var(--f4-type-caption); }

#lane-form4 .grc-verdict-badge {
  font-family: Inter, sans-serif;
  font-size: var(--f4-type-label);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
#lane-form4 .grc-health-summary,
#lane-form4 .grc-brief-findings { font-size: var(--f4-type-body); }
#lane-form4 .grc-brief-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin: 0.5rem 0 0.75rem;
  background: #0c1018;
  border: 1px solid #2a3548;
  border-radius: 8px;
  overflow: hidden;
}
#lane-form4 .grc-brief-table th {
  font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  text-align: left;
  padding: 6px 10px;
  background: #141c28;
  border-bottom: 1px solid #2a3548;
}
#lane-form4 .grc-brief-table td {
  padding: 7px 10px;
  vertical-align: top;
  border-bottom: 1px solid #1a2230;
  color: #cbd5e1;
  line-height: 1.4;
  font-size: 12px;
}
#lane-form4 .grc-brief-table tbody tr:nth-child(even) td {
  background: #0a0e16;
}
#lane-form4 .grc-brief-table tbody tr:hover td {
  background: #141c28;
}
#lane-form4 .grc-brief-table tbody tr:last-child td {
  border-bottom: none;
}
#lane-form4 .grc-brief-dim { font-size: 11px; }
#lane-form4 .grc-brief-edgar { font-size: var(--f4-type-caption); }
#lane-form4 .section-note {
  font-size: var(--f4-type-caption);
  border-top: none;
  margin: 0.5rem 0 0;
  padding-top: 0;
}
#lane-form4 #f4-footer-note:empty { display: none; }

#lane-form4 .macro-context-card {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(30, 41, 59, 0.45);
  backdrop-filter: blur(12px);
  padding: 12px 14px;
  margin: 0.5rem 0 0.75rem;
  color: #cbd5e1;
  font-size: 0.82rem;
  line-height: 1.4;
}
#lane-form4 .macro-context-card--calm {
  color: #94a3b8;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(30, 41, 59, 0.4);
}
#lane-form4 .macro-context-card--high {
  border-color: rgba(251, 191, 36, 0.5);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(15, 23, 42, 0.65));
}
#lane-form4 .macro-context-card--moderate {
  border-color: rgba(96, 165, 250, 0.45);
}
#lane-form4 .macro-vol-headline {
  font-family: 'IBM Plex Mono', monospace;
  font-size: var(--f4-type-body);
  font-weight: 600;
  color: #e2e8f0;
  margin: 0 0 4px;
  letter-spacing: 0.03em;
  line-height: 1.35;
}
#lane-form4 .macro-context-card--calm .macro-vol-headline {
  color: #94a3b8;
  font-weight: 500;
}
#lane-form4 .macro-context-calm {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: var(--f4-type-caption);
  font-weight: 500;
  line-height: 1.45;
  color: #93c5fd;
  letter-spacing: 0.02em;
}
#lane-form4 .macro-context-vol {
  font-family: 'IBM Plex Mono', monospace;
  font-size: var(--f4-type-caption);
  line-height: 1.45;
  color: #94a3b8;
}
#lane-form4 .macro-vol-hint-row { margin: 0; }
#lane-form4 .macro-vol-hint {
  font-family: Inter, system-ui, sans-serif;
  font-size: var(--f4-type-caption);
  color: #94a3b8;
  line-height: 1.45;
}
#lane-form4 .macro-feed-health-row {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 6px;
}
#lane-form4 .macro-feed-health {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
}
#lane-form4 .macro-schedule {
  margin-top: 10px;
  font-size: var(--f4-type-caption);
  color: #94a3b8;
}
#lane-form4 .macro-schedule summary {
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: var(--f4-type-caption);
  color: #93c5fd;
  margin-bottom: 6px;
  list-style: none;
}
#lane-form4 .macro-schedule summary::-webkit-details-marker {
  display: none;
}
#lane-form4 .macro-schedule-line {
  font-family: 'IBM Plex Mono', monospace;
  padding: 5px 0;
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
  line-height: 1.4;
  font-size: var(--f4-type-caption);
}
#lane-form4 .macro-schedule-line:last-child {
  border-bottom: none;
}
#lane-form4 .macro-schedule-line strong {
  font-weight: 600;
  color: #e2e8f0;
}
#lane-form4 .macro-impact-tag {
  color: #fbbf24;
  font-size: 0.62rem;
  font-weight: 600;
}

/* Risk intel stack — parity with Streamlit GRC drill-down */
#lane-form4 .risk-intel-stack { margin-top: 0.25rem; }
#lane-form4 .risk-intel-title {
  font-family: Inter, sans-serif;
  font-size: var(--f4-type-subsection);
  font-weight: 600;
  color: #e2e8f0;
  margin: 0 0 0.35rem;
}
#lane-form4 .risk-intel-caption {
  font-size: var(--f4-type-caption);
  color: #94a3b8;
  margin: 0 0 0.45rem;
  line-height: 1.45;
}
#lane-form4 .risk-intel-dashboard {
  margin: 0.5rem 0 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.35);
  overflow: hidden;
}
#lane-form4 .risk-intel-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--f4-type-body);
}
#lane-form4 .risk-intel-grid thead th {
  font-family: Inter, sans-serif;
  font-size: var(--f4-type-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  text-align: left;
  padding: 8px 12px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.35);
}
#lane-form4 .risk-intel-grid tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.45);
  vertical-align: top;
}
#lane-form4 .risk-intel-grid tbody tr:last-child td { border-bottom: none; }
#lane-form4 .risk-intel-metric { font-weight: 600; color: #e2e8f0; white-space: nowrap; width: 8rem; }
#lane-form4 .risk-intel-status { color: #cbd5e1; }
#lane-form4 .risk-intel-drift {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: #f1f5f9;
  text-align: right;
  white-space: nowrap;
  width: 4.5rem;
}
#lane-form4 .risk-intel-filing {
  font-size: var(--f4-type-caption);
  color: #64748b;
  margin-top: 4px;
}
#lane-form4 .risk-intel-k {
  font-family: Inter, sans-serif;
  font-size: var(--f4-type-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  display: block;
  margin-bottom: 4px;
}
#lane-form4 .risk-intel-drivers,
#lane-form4 .risk-intel-ops-pressure {
  margin: 0.5rem 0 0.65rem;
  font-size: var(--f4-type-body);
  color: #cbd5e1;
  line-height: 1.45;
}
#lane-form4 .risk-intel-briefing {
  margin: 0 0 0.85rem;
  padding: 10px 12px;
  border-left: 3px solid #60a5fa;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 0 8px 8px 0;
}
#lane-form4 .risk-intel-briefing p {
  margin: 0;
  font-size: var(--f4-type-body);
  color: #cbd5e1;
  line-height: 1.5;
}
#lane-form4 .risk-intel-evidence-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.25rem 0 0.35rem;
}
#lane-form4 .risk-intel-evidence-head .risk-intel-evidence-label { margin: 0; }
#lane-form4 .risk-intel-evidence-bulk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  border: 1px solid rgba(96, 165, 250, 0.45);
  border-radius: 4px;
  background: rgba(30, 58, 138, 0.35);
  cursor: pointer;
  flex-shrink: 0;
}
#lane-form4 .risk-intel-evidence-bulk-btn::before {
  content: "▸";
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1;
  transition: transform 120ms ease, color 120ms ease;
}
#lane-form4 .risk-intel-evidence-bulk-btn:hover {
  border-color: rgba(147, 197, 253, 0.65);
  background: rgba(30, 58, 138, 0.55);
}
#lane-form4 .risk-intel-evidence-bulk-btn:hover::before { color: #ffffff; }
#lane-form4 .risk-intel-evidence-bulk-btn.is-expanded::before {
  transform: rotate(90deg);
}
#lane-form4 .risk-intel-evidence-bulk-btn.is-expanded {
  background: rgba(30, 58, 138, 0.5);
  border-color: rgba(147, 197, 253, 0.55);
}
#lane-form4 .risk-intel-evidence {
  margin: 0.35rem 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.35);
}
#lane-form4 .risk-intel-evidence summary {
  cursor: pointer;
  padding: 8px 12px;
  font-size: var(--f4-type-body);
  font-weight: 600;
  color: #cbd5e1;
  list-style: none;
}
#lane-form4 .risk-intel-evidence summary::-webkit-details-marker { display: none; }
#lane-form4 .risk-intel-evidence summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.4rem;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1;
  transition: transform 120ms ease;
}
#lane-form4 .risk-intel-evidence[open] > summary::before {
  transform: rotate(90deg);
}
#lane-form4 .risk-intel-evidence-body { padding: 0 12px 12px; }
#lane-form4 .risk-intel-evidence-teaser {
  font-size: var(--f4-type-caption);
  color: #94a3b8;
  line-height: 1.4;
  margin: 0 0 0.5rem;
}
#lane-form4 .risk-intel-edgar-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0.65rem 0 0.25rem;
}
#lane-form4 .risk-intel-edgar-btn {
  font-size: var(--f4-type-caption);
  font-weight: 600;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.65);
  color: #93c5fd !important;
  text-decoration: none !important;
}
#lane-form4 .risk-intel-edgar-btn:hover {
  border-color: #60a5fa;
  color: #e2e8f0 !important;
}
#lane-form4 .risk-intel-thermometer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0.35rem 0 0.5rem;
  flex-wrap: wrap;
}
#lane-form4 .risk-intel-thermometer .risk-intel-k { margin: 0; flex: 0 0 auto; }
#lane-form4 .risk-therm-track {
  flex: 1 1 8rem;
  max-width: 14rem;
  height: 6px;
  border-radius: 3px;
  background: rgba(51, 65, 85, 0.65);
  overflow: hidden;
}
#lane-form4 .risk-therm-fill { height: 100%; border-radius: 3px; }
#lane-form4 .risk-therm-fill.risk-therm-low { background: linear-gradient(90deg, #22c55e, #4ade80); }
#lane-form4 .risk-therm-fill.risk-therm-moderate { background: linear-gradient(90deg, #eab308, #facc15); }
#lane-form4 .risk-therm-fill.risk-therm-elevated { background: linear-gradient(90deg, #f97316, #fb923c); }
#lane-form4 .risk-therm-fill.risk-therm-high { background: linear-gradient(90deg, #ef4444, #f87171); }
#lane-form4 .risk-therm-label {
  font-size: var(--f4-type-caption);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
#lane-form4 .risk-therm-label.risk-therm-low { color: #4ade80; }
#lane-form4 .risk-therm-label.risk-therm-moderate { color: #facc15; }
#lane-form4 .risk-therm-label.risk-therm-elevated { color: #fb923c; }
#lane-form4 .risk-therm-label.risk-therm-high { color: #f87171; }
#lane-form4 .risk-intel-gov-alert {
  margin: 0.35rem 0 0.55rem;
  padding: 8px 12px;
  border: 1px solid rgba(251, 146, 60, 0.45);
  border-radius: 8px;
  background: rgba(124, 45, 18, 0.22);
  font-size: var(--f4-type-body);
  color: #fdba74;
  line-height: 1.4;
}
#lane-form4 .risk-drift-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #60a5fa;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0.35rem 0 0.75rem;
  background: rgba(30, 41, 59, 0.45);
}
#lane-form4 .risk-drift-hero-label,
#lane-form4 .risk-drift-k {
  font-size: var(--f4-type-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
#lane-form4 .risk-drift-hero-sub,
#lane-form4 .risk-drift-v,
#lane-form4 .grc-verdict-body { font-size: var(--f4-type-body); color: #cbd5e1; line-height: 1.45; }
#lane-form4 .grc-evidence-caption,
#lane-form4 .grc-evidence-empty,
#lane-form4 .grc-diff-caption { font-size: var(--f4-type-caption); color: #94a3b8; margin: 0.25rem 0 0.5rem; }
#lane-form4 .grc-diff-heading { font-size: var(--f4-type-body); font-weight: 600; color: #e2e8f0; margin: 0.5rem 0 0.35rem; }
#lane-form4 .grc-evidence-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: 8px;
  margin: 0.5rem 0 0.75rem;
}
#lane-form4 .grc-evidence-metric {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.35);
}
#lane-form4 .grc-evidence-k {
  display: block;
  font-size: var(--f4-type-label);
  color: #64748b;
  margin-bottom: 2px;
}
#lane-form4 .grc-evidence-v { font-size: var(--f4-type-body); font-weight: 600; color: #f1f5f9; }
#lane-form4 .grc-evidence-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--f4-type-caption);
  margin-bottom: 0.65rem;
}
#lane-form4 .grc-evidence-table th,
#lane-form4 .grc-evidence-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.45);
  text-align: left;
}
#lane-form4 .grc-excerpt-wrap { margin: 0.35rem 0 0.55rem; }
#lane-form4 .grc-excerpt-label {
  font-size: var(--f4-type-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
}
#lane-form4 .grc-excerpt-block {
  font-size: var(--f4-type-body);
  line-height: 1.55;
  color: #cbd5e1;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 11rem;
  overflow-y: auto;
}
#lane-form4 .grc-excerpt-added .grc-excerpt-block { border-left: 3px solid #4ade80; }
#lane-form4 .grc-excerpt-removed .grc-excerpt-block { border-left: 3px solid #f87171; color: #94a3b8; }
#lane-form4 .grc-excerpt-edited .grc-excerpt-block { border-left: 3px solid #60a5fa; }

/* GRC excerpt — one text node; clip in place (matches Item 4 modal) */
#lane-form4 .grc-excerpt-block.grc-excerpt-surface {
  display: flex;
  flex-direction: column;
  max-height: none;
  overflow: visible;
}

#lane-form4 .grc-excerpt-collapsed .grc-excerpt-body {
  max-height: 9.5rem;
  overflow: hidden;
}

#lane-form4 .grc-excerpt-expanded .grc-excerpt-body {
  max-height: min(55vh, 32rem);
  overflow-y: auto;
}

#lane-form4 .grc-excerpt-toggle {
  align-self: flex-start;
  margin: 0.45rem 0 0;
  padding: 0;
  border: none;
  background: none;
  font-size: var(--f4-type-caption);
  color: #93c5fd;
  cursor: pointer;
  font-family: inherit;
}

#lane-form4 .grc-excerpt-toggle:hover {
  color: #bfdbfe;
}
