    .enrichment-modal {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2000;
    }
    .enrichment-modal-backdrop {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.6);
    }
    .enrichment-modal-content {
      position: relative;
      background: var(--bg-primary);
      border-radius: 12px;
      width: 900px;
      height: 75vh;
      min-width: 500px;
      min-height: 400px;
      max-width: 95vw;
      max-height: 95vh;
      display: flex;
      flex-direction: column;
      box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
      border: 1px solid var(--border);
      overflow: visible;
    }
    [data-theme="light"] .enrichment-modal-content {
      box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.08);
    }
    .enrichment-modal-body {
      overflow-y: auto;
      flex: 1;
    }
    /* Modal resize handles - triangle corners */
    .modal-resize-handle {
      position: absolute;
      bottom: 0;
      width: 14px;
      height: 14px;
      z-index: 9999;
      background: #888;
      user-select: none;
      -webkit-user-select: none;
      pointer-events: auto !important;
      cursor: pointer;
    }
    .modal-resize-handle[data-corner="se"],
    .modal-resize-handle:not([data-corner]) {
      right: 0;
      cursor: nwse-resize;
      clip-path: polygon(100% 0, 100% 100%, 0 100%);
    }
    .modal-resize-handle[data-corner="sw"] {
      left: 0;
      cursor: nesw-resize;
      clip-path: polygon(0 0, 100% 100%, 0 100%);
    }
    .modal-resize-handle:hover {
      background: var(--accent);
    }
    /* Edge resize handles */
    .modal-resize-edge {
      position: absolute;
      z-index: 10000;
      background: transparent;
      user-select: none;
      -webkit-user-select: none;
      pointer-events: auto !important;
    }
    .modal-resize-edge:hover {
      background: rgba(59, 130, 246, 0.25);
    }
    .modal-resize-edge[data-edge="bottom"] {
      bottom: 0;
      left: 16px;
      right: 16px;
      height: 8px;
      cursor: ns-resize;
    }
    .modal-resize-edge[data-edge="left"] {
      left: 0;
      top: 44px;  /* Below header */
      bottom: 16px;
      width: 8px;
      cursor: ew-resize;
    }
    .modal-resize-edge[data-edge="right"] {
      right: 0;
      top: 44px;  /* Below header */
      bottom: 16px;
      width: 8px;
      cursor: ew-resize;
    }
    /* Prevent selection during modal drag/resize */
    body.modal-interacting {
      user-select: none !important;
      -webkit-user-select: none !important;
    }
    body.modal-interacting * {
      user-select: none !important;
      -webkit-user-select: none !important;
    }
    .enrichment-modal-header {
      cursor: move;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 8px 16px;
      border-bottom: 1px solid var(--border);
    }
    .enrichment-modal-header h3 {
      margin: 0;
      font-size: 0.9rem;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
    }
    .enrichment-modal-controls {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .enrichment-elapsed {
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--accent);
      background: var(--bg-tertiary);
      padding: 2px 8px;
      border-radius: 4px;
    }
    .enrichment-close-btn {
      background: var(--bg-tertiary);
      border: 1px solid var(--border);
      color: var(--text-secondary);
      font-size: 1.3rem;
      cursor: pointer;
      line-height: 1;
      padding: 4px 8px;
      border-radius: 6px;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 28px;
      height: 28px;
    }
    .enrichment-close-btn:hover {
      background: var(--bg-secondary);
      color: var(--text-primary);
      border-color: var(--text-muted);
      transform: scale(1.05);
    }
    .enrichment-close-btn:active {
      transform: scale(0.98);
    }
    .enrichment-footer-buttons {
      display: flex;
      gap: 8px;
      align-items: center;
    }
    .enrichment-footer-btn {
      background: var(--bg-tertiary);
      border: 1px solid var(--border-color);
      color: var(--text-primary);
      font-size: 0.85rem;
      font-weight: 500;
      cursor: pointer;
      padding: 6px 14px;
      transition: background 0.15s, border-color 0.15s, color 0.15s;
      border-radius: 4px;
    }
    .enrichment-footer-btn:hover:not(:disabled) {
      background: var(--bg-secondary);
      color: var(--text-primary);
      border-color: var(--accent-color);
    }
    .enrichment-footer-btn.primary {
      background: var(--accent-color);
      border-color: var(--accent-color);
      color: #fff;
    }
    .enrichment-footer-btn.primary:hover:not(:disabled) {
      background: #4f46e5;
      border-color: #4f46e5;
      color: #fff;
    }
    .enrichment-footer-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }
    .enrichment-modal-body {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      padding: 4px 16px 16px;
      min-height: 0;
    }
    /* Progress section - flex container for growing panes */
    #enrichmentProgressSection {
      flex: 1;
      display: flex;
      flex-direction: column;
      min-height: 0;
      overflow-y: auto;
    }
    /* Results sections - flex container for growing panes */
    #enrichmentResultSections {
      flex: 1;
      display: flex;
      flex-direction: column;
      min-height: 0;
      overflow-y: auto;
    }

    /* Enrichment Tab UI                                                 */
    /* ───────────────────────────────────────────────────────────────── */
    .enrichment-summary-header {
      padding: 12px 14px;
      background: linear-gradient(135deg, rgba(59,130,246,0.1) 0%, rgba(147,51,234,0.08) 100%);
      border: 1px solid rgba(59,130,246,0.2);
      border-radius: 8px;
      margin-bottom: 12px;
    }
    .enrichment-summary-text {
      font-size: 0.9rem;
      line-height: 1.5;
      color: var(--text-primary);
      margin-bottom: 6px;
    }
    .enrichment-summary-stats {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
      font-size: 0.75rem;
      color: var(--text-secondary);
    }
    .enrichment-summary-stats span {
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .enrichment-summary-stats .stat-value {
      font-weight: 600;
      color: var(--text-primary);
    }
    .enrichment-summary-stats .stat-warning {
      color: #ef4444;
      font-weight: 600;
    }
    .enrichment-summary-stats .stat-success {
      color: #22c55e;
      font-weight: 600;
    }

    .enrichment-tab-bar {
      display: flex;
      gap: 2px;
      padding: 4px;
      background: var(--bg-secondary);
      border-radius: 8px;
      margin-bottom: 8px;
      flex-wrap: wrap;
    }
    .enrichment-tab {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 8px 14px;
      border: none;
      background: transparent;
      color: var(--text-secondary);
      font-size: 0.8rem;
      font-weight: 500;
      cursor: pointer;
      border-radius: 6px;
      transition: all 0.15s ease;
      white-space: nowrap;
    }
    .enrichment-tab:hover {
      background: var(--bg-tertiary);
      color: var(--text-primary);
    }
    .enrichment-tab.active {
      background: var(--accent);
      color: white;
    }
    .enrichment-tab-badge {
      font-size: 0.7rem;
      background: rgba(255,255,255,0.2);
      padding: 1px 6px;
      border-radius: 8px;
      min-width: 16px;
      text-align: center;
    }
    .enrichment-tab:not(.active) .enrichment-tab-badge {
      background: var(--bg-tertiary);
      color: var(--text-secondary);
    }
    .enrichment-tab-elapsed {
      font-size: 0.75rem;
      color: var(--accent);
      font-weight: 600;
      display: flex;
      align-items: center;
      font-family: monospace;
    }

    .enrichment-tab-panels {
      flex: 1;
      display: flex;
      flex-direction: column;
      min-height: 0;
      overflow: hidden;
    }
    .enrichment-tab-panel {
      display: none;
      flex: 1;
      overflow-y: auto;
      padding: 8px 4px;
      min-height: 0;
    }
    .enrichment-tab-panel.active {
      display: flex;
      flex-direction: column;
    }
    .enrichment-tab-panel-actions {
      display: flex;
      justify-content: flex-end;
      margin-bottom: 8px;
    }

    .enrichment-section {
      margin-bottom: 12px;
      border: 1px solid var(--border);
      border-radius: 8px;
      overflow: hidden;
      flex-shrink: 0;
    }
    /* Allow output and fields sections to grow and fill space */
    .enrichment-section.enrichment-output-pane,
    .enrichment-section.enrichment-fields-pane {
      flex: 1 1 auto;
      min-height: 0;
      display: flex;
      flex-direction: column;
    }
    .enrichment-section-header {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 12px;
      background: var(--bg-secondary);
      cursor: pointer;
      user-select: none;
    }
    .enrichment-section-header:hover {
      background: var(--bg-tertiary);
    }
    .enrichment-section-icon {
      font-size: 0.9rem;
    }
    .enrichment-section-title {
      font-weight: 500;
      font-size: 0.85rem;
    }
    .enrichment-badge {
      background: var(--accent);
      color: white;
      font-size: 0.7rem;
      padding: 2px 6px;
      border-radius: 10px;
      min-width: 18px;
      text-align: center;
    }
    /* Inline badges for classifications table */
    .enrichment-badge-inline {
      display: inline-block;
      font-size: 0.7rem;
      padding: 2px 8px;
      border-radius: 10px;
      font-weight: 500;
      white-space: nowrap;
    }
    /* Semantic type badge colors */
    .badge-key { background: #7c3aed; color: white; }
    .badge-dimension { background: #2563eb; color: white; }
    .badge-measure { background: #059669; color: white; }
    .badge-timestamp { background: #d97706; color: white; }
    .badge-attribute { background: #6b7280; color: white; }
    /* Classification badge colors */
    .badge-pii { background: #dc2626; color: white; }
    .badge-phi { background: #be185d; color: white; }
    .badge-pci { background: #9333ea; color: white; }
    .badge-sensitive { background: #ea580c; color: white; }
    .badge-confidential { background: #c2410c; color: white; }
    .badge-restricted { background: #b91c1c; color: white; }
    .badge-internal { background: #0369a1; color: white; }
    .badge-public { background: #16a34a; color: white; }
    .badge-default { background: #4b5563; color: white; }

    .enrichment-profile-pane {
      flex: 1 1 auto;
      min-height: 0;
      display: flex;
      flex-direction: column;
    }
    .enrichment-profile-content {
      max-height: none;
      flex: 1;
      min-height: 0;
      overflow-y: auto;
    }
    .enrichment-profile-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 12px;
      padding: 4px;
    }
    .enrichment-profile-card {
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 10px;
      font-size: 0.8rem;
    }
    .profile-card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
      padding-bottom: 6px;
      border-bottom: 1px solid var(--border);
    }
    .profile-col-name {
      font-weight: 600;
      font-size: 0.75rem;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      max-width: 140px;
    }
    .profile-col-type {
      font-size: 0.65rem;
      padding: 2px 6px;
      border-radius: 3px;
      text-transform: uppercase;
    }
    .type-numeric { background: #3b82f6; color: white; }
    .type-categorical { background: #10b981; color: white; }
    .profile-stats-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 8px;
    }
    .profile-stat {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .stat-label {
      font-size: 0.6rem;
      color: var(--text-muted);
      text-transform: uppercase;
    }
    .stat-value {
      font-size: 0.75rem;
      font-weight: 500;
      color: var(--text-primary);
    }
    .profile-chart-area {
      min-height: 45px;
    }
    .profile-no-chart {
      color: var(--text-muted);
      font-size: 0.7rem;
      text-align: center;
      padding: 10px 0;
    }
    /* Histogram SVG */
    .profile-histogram {
      display: block;
      margin: 0 auto;
    }
    .histogram-bar {
      fill: #3b82f6;
      opacity: 0.8;
    }
    .histogram-bar:hover {
      opacity: 1;
    }
    .histogram-label {
      font-size: 8px;
      fill: var(--text-muted);
    }
    /* Range bar for numeric without histogram */
    .profile-range-bar {
      padding: 4px 0;
    }
    .range-track {
      position: relative;
      height: 8px;
      background: var(--bg-tertiary);
      border-radius: 4px;
      margin-bottom: 4px;
    }
    .range-iqr {
      position: absolute;
      top: 0;
      height: 100%;
      background: rgba(59, 130, 246, 0.4);
      border-radius: 4px;
    }
    .range-median {
      position: absolute;
      top: -2px;
      width: 3px;
      height: 12px;
      background: #3b82f6;
      border-radius: 1px;
      transform: translateX(-50%);
    }
    .range-mean {
      position: absolute;
      top: -2px;
      width: 3px;
      height: 12px;
      background: #10b981;
      border-radius: 1px;
      transform: translateX(-50%);
    }
    .range-labels {
      display: flex;
      justify-content: space-between;
      font-size: 0.65rem;
      color: var(--text-muted);
    }
    /* Top values bar chart */
    .profile-top-values {
      display: flex;
      flex-direction: column;
      gap: 3px;
    }
    .top-value-row {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .top-value-label {
      width: 60px;
      font-size: 0.65rem;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: var(--text-secondary);
    }
    .top-value-bar-container {
      flex: 1;
      height: 6px;
      background: var(--bg-tertiary);
      border-radius: 3px;
      overflow: hidden;
    }
    .top-value-bar {
      height: 100%;
      background: #10b981;
      border-radius: 3px;
    }
    .top-value-count {
      width: 36px;
      font-size: 0.65rem;
      text-align: right;
      color: var(--text-muted);
    }

    .enrichment-section-toggle {
      margin-left: auto;
      color: var(--text-secondary);
      font-size: 0.7rem;
    }

    /* ── Profile Detail Panel (ECharts-powered modal) ── */
    .profileDetailOverlay {
      position: fixed;
      inset: 0;
      z-index: 9999;
      background: rgba(0, 0, 0, 0.5);
      display: flex;
      justify-content: center;
      align-items: flex-start;
      padding-top: 5vh;
      opacity: 0;
      transition: opacity 0.2s ease;
    }
    .profileDetailOverlay.visible {
      opacity: 1;
    }
    .profileDetailPanel {
      background: var(--bg-primary);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      width: 740px;
      max-width: 92vw;
      max-height: 80vh;
      display: flex;
      flex-direction: column;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
      transform: translateY(-10px);
      transition: transform 0.2s ease;
    }
    .profileDetailOverlay.visible .profileDetailPanel {
      transform: translateY(0);
    }
    .profileDetailHeader {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px 20px;
      border-bottom: 1px solid var(--border-color);
      flex-shrink: 0;
    }
    .profileDetailClose {
      background: none;
      border: none;
      color: var(--text-muted);
      font-size: 1.5rem;
      cursor: pointer;
      padding: 4px 8px;
      border-radius: 6px;
      line-height: 1;
      transition: background 0.15s, color 0.15s;
    }
    .profileDetailClose:hover {
      background: var(--bg-tertiary);
      color: var(--text-primary);
    }
    .profileDetailBody {
      padding: 16px 20px;
      overflow-y: auto;
      flex: 1;
      min-height: 0;
    }
    .pdStatsGrid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1px;
      background: var(--border-color);
      border: 1px solid var(--border-color);
      border-radius: 8px;
      overflow: hidden;
      margin-bottom: 14px;
    }
    .pdStat {
      display: flex;
      align-items: baseline;
      gap: 6px;
      padding: 7px 10px;
      background: var(--bg-primary);
    }
    .pdStatLabel {
      font-size: 0.8rem;
      color: var(--text-secondary);
      white-space: nowrap;
    }
    .pdStatVal {
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--text-primary);
      font-variant-numeric: tabular-nums;
      margin-left: auto;
      text-align: right;
    }
    .profileDetailSection {
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--text-secondary);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin: 16px 0 8px;
      padding-bottom: 4px;
      border-bottom: 1px solid var(--border-color);
    }
    .profileChartsRow {
      display: flex;
      gap: 12px;
      align-items: stretch;
    }
    .profileDetailSamples {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }
    .profileDetailSamples code {
      background: var(--bg-tertiary);
      padding: 3px 8px;
      border-radius: 4px;
      font-size: 0.78rem;
      color: var(--text-secondary);
    }
    /* Outlier badge on profile cards & detail panel */
    .profile-outlier-badge {
      font-size: 0.7rem;
      padding: 2px 8px;
      border-radius: 4px;
      background: linear-gradient(135deg, #ef4444, #dc2626);
      color: white;
      font-weight: 600;
      white-space: nowrap;
    }
    /* Outlier detail strip */
    .profileOutlierStrip {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 12px;
      margin-bottom: 14px;
      background: rgba(239, 68, 68, 0.08);
      border: 1px solid rgba(239, 68, 68, 0.2);
      border-radius: 8px;
      font-size: 0.82rem;
      color: var(--text-secondary);
    }
    .profileOutlierStrip strong {
      color: var(--text-primary);
    }
    /* Core | Raw histogram toggle */
    .profileHistToggle {
      display: flex;
      border: 1px solid var(--border-color);
      border-radius: 6px;
      overflow: hidden;
    }
    .profileHistToggleBtn {
      background: none;
      border: none;
      padding: 3px 12px;
      font-size: 0.75rem;
      font-weight: 500;
      color: var(--text-muted);
      cursor: pointer;
      transition: background 0.15s, color 0.15s;
      text-transform: uppercase;
      letter-spacing: 0.3px;
    }
    .profileHistToggleBtn:hover {
      background: var(--bg-tertiary);
      color: var(--text-primary);
    }
    .profileHistToggleBtn.active {
      background: var(--accent);
      color: white;
    }
    /* Force reprofile button */
    .force-reprofile-btn {
      padding: 4px 10px;
      font-size: 0.75rem;
      border: 1px solid rgba(59, 130, 246, 0.5);
      border-radius: 6px;
      background: rgba(59, 130, 246, 0.1);
      color: #3b82f6;
      cursor: pointer;
      transition: all 0.2s;
      font-weight: 500;
      margin-left: auto;
      margin-right: 8px;
    }
    .force-reprofile-btn:hover {
      background: #3b82f6;
      border-color: #3b82f6;
      color: white;
      transform: translateY(-1px);
      box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
    }
    .force-reprofile-btn:active {
      transform: translateY(0);
    }
    .enrichment-section-content {
      padding: 12px;
      background: var(--bg-primary);
    }
    /* Make section content in expandable panes fill and scroll */
    .enrichment-output-pane .enrichment-section-content,
    .enrichment-fields-pane .enrichment-section-content {
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
    }
    .enrichment-tools-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .enrichment-tool-line {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.85rem;
    }
    .enrichment-tool-status {
      width: 16px;
      text-align: center;
    }
    .enrichment-tool-name {
      flex: 1;
    }
    .enrichment-tool-time {
      font-size: 0.75rem;
    }
    .enrichment-output {
      font-family: var(--font-mono);
      font-size: 0.8rem;
      line-height: 1.6;
      white-space: pre-wrap;
      word-break: break-word;
      background: #1a1a1a;
      color: #e0e0e0;
      padding: 16px;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.1);
      box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
      flex: 1;
      min-height: 100px;
      overflow-y: auto;
      scroll-behavior: smooth;
    }
    .enrichment-setup-section {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 6px 16px;
      border-bottom: 1px solid var(--border-color);
      flex-wrap: wrap;
    }
    .enrichment-setup-header {
      flex-shrink: 0;
    }
    .enrichment-artifact-name {
      font-size: 0.85rem;
      flex-shrink: 1;
      min-width: 0;
      max-width: 300px;
      overflow: hidden;
    }
    .enrichment-artifact-name code {
      background: var(--bg-tertiary);
      padding: 3px 8px;
      border-radius: 4px;
      font-weight: 500;
      word-break: break-all;
      display: inline-block;
      max-width: 100%;
    }
    .enrichment-setup-options {
      display: flex;
      align-items: center;
      gap: 12px;
      flex: 1;
    }
    .enrichment-setup-option {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-shrink: 0;
    }
    .enrichment-setup-option > label:first-child {
      font-size: 0.75rem;
      color: var(--text-muted);
    }
    .enrichment-model-select {
      padding: 4px 8px;
      font-size: 0.8rem;
      min-width: 140px;
    }
    .enrichment-checkbox-label {
      display: flex;
      align-items: center;
      gap: 5px;
      cursor: pointer;
      font-size: 0.75rem;
      white-space: nowrap;
    }
    .enrichment-checkbox-label input[type="checkbox"] {
      width: 13px;
      height: 13px;
      cursor: pointer;
    }
    .enrichment-setup-buttons {
      display: flex;
      gap: 6px;
      margin-left: auto;
      flex-shrink: 0;
    }
    .enrichment-action-btn {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 2px 8px;
      font-size: 0.75rem;
    }
    .enrichment-action-btn:disabled {
      opacity: 0.4;
      cursor: not-allowed;
    }
    /* Stop button - red styling */
    .enrichment-stop-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      font-size: 0.8rem;
      font-weight: 500;
      background: #dc2626;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      transition: background 0.15s, opacity 0.15s;
    }
    .enrichment-stop-btn:hover:not(:disabled) {
      background: #b91c1c;
    }
    .enrichment-stop-btn:disabled {
      opacity: 0.4;
      cursor: not-allowed;
      background: #6b7280;
    }
    .enrichment-stop-btn svg {
      fill: currentColor;
    }
    .enrichment-setup-divider {
      display: none; /* Border on section replaces this */
    }
    .enrichment-setup-sep {
      color: var(--border-color);
      font-size: 0.9rem;
      opacity: 0.6;
    }

    /* Enrichment Result Panes */
    .enrichment-result-pane {
      margin-top: 8px;
      flex-shrink: 0;
    }
    /* Fields pane in results should grow to fill space */
    .enrichment-result-pane.enrichment-fields-pane {
      flex: 1 1 auto;
      min-height: 0;
      display: flex;
      flex-direction: column;
    }
    /* Classifications pane should also grow to fill space */
    .enrichment-result-pane.enrichment-classifications-pane {
      flex: 1 1 auto;
      min-height: 0;
      display: flex;
      flex-direction: column;
    }
    .enrichment-result-content {
      max-height: 200px;
      overflow-y: auto;
    }
    /* Fields and Classifications content should fill available space */
    .enrichment-fields-pane .enrichment-result-content,
    .enrichment-fields-pane .enrichment-section-content,
    .enrichment-classifications-pane .enrichment-result-content,
    .enrichment-classifications-pane .enrichment-section-content {
      max-height: none;
      flex: 1;
      min-height: 0;
      display: flex;
      flex-direction: column;
    }
    .enrichment-desc-item {
      margin-bottom: 12px;
    }
    .enrichment-desc-item:last-child {
      margin-bottom: 0;
    }
    .enrichment-desc-item strong {
      display: block;
      margin-bottom: 4px;
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .enrichment-desc-item p {
      margin: 0;
      color: var(--text-primary);
      font-size: 0.85rem;
      line-height: 1.5;
    }
    .enrichment-insights-list {
      margin: 0;
      padding-left: 20px;
    }
    .enrichment-insights-list li {
      margin-bottom: 6px;
      font-size: 0.85rem;
      color: var(--text-primary);
      line-height: 1.4;
    }
    .enrichment-fields-content {
      display: flex;
      flex-direction: column;
      flex: 1;
      min-height: 0;
    }
    /* Row highlighting for sensitive classifications */
    .row-highlight-critical {
      background-color: rgba(220, 38, 38, 0.08) !important;
      border-left: 3px solid #dc2626;
    }
    .row-highlight-critical:hover {
      background-color: rgba(220, 38, 38, 0.12) !important;
    }
    .row-highlight-warning {
      background-color: rgba(234, 88, 12, 0.06) !important;
      border-left: 3px solid #ea580c;
    }
    .row-highlight-warning:hover {
      background-color: rgba(234, 88, 12, 0.10) !important;
    }
    /* Inline editing controls */
    .enrichment-edit-actions {
      display: flex;
      justify-content: flex-end;
      margin-bottom: 8px;
    }
    .enrichment-edit-btn {
      padding: 6px 12px;
      font-size: 0.85rem;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: var(--bg-secondary);
      color: var(--text-primary);
      cursor: pointer;
      transition: all 0.2s;
      font-weight: 500;
    }
    .enrichment-edit-btn:hover {
      background: #3b82f6;
      border-color: #3b82f6;
      color: white;
    }
    .enrichment-save-buttons {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px;
      background: rgba(59, 130, 246, 0.08);
      border: 1px solid rgba(59, 130, 246, 0.3);
      border-radius: 8px;
      margin-bottom: 10px;
    }
    .enrichment-save-btn {
      padding: 8px 16px;
      font-size: 0.9rem;
      border: 1px solid #3b82f6;
      border-radius: 6px;
      background: #3b82f6;
      color: white;
      cursor: pointer;
      transition: all 0.2s;
      font-weight: 600;
    }
    .enrichment-save-btn:hover {
      background: #2563eb;
      border-color: #2563eb;
      transform: translateY(-1px);
      box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    }
    .enrichment-save-btn:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
    }
    .enrichment-cancel-btn {
      padding: 8px 16px;
      font-size: 0.9rem;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: var(--bg-secondary);
      color: var(--text-secondary);
      cursor: pointer;
      transition: all 0.2s;
    }
    .enrichment-cancel-btn:hover {
      background: var(--bg-tertiary);
      color: var(--text-primary);
    }
    .enrichment-save-hint {
      font-size: 0.75rem;
      color: var(--text-muted);
      font-style: italic;
      margin-left: auto;
    }
    .inline-edit-select {
      width: 100%;
      padding: 4px 6px;
      font-size: 0.85rem;
      border: 1px solid var(--border);
      border-radius: 4px;
      background: var(--bg-primary);
      color: var(--text-primary);
      cursor: pointer;
    }
    .inline-edit-select:focus {
      outline: none;
      border-color: #3b82f6;
      box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    }
    .inline-edit-input {
      width: 100%;
      padding: 4px 6px;
      font-size: 0.85rem;
      border: 1px solid var(--border);
      border-radius: 4px;
      background: var(--bg-primary);
      color: var(--text-primary);
    }
    .inline-edit-input:focus {
      outline: none;
      border-color: #3b82f6;
      box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    }
    .enrichment-fields-table-container {
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      border: 1px solid var(--border);
      border-radius: 8px;
    }
    .enrichment-fields-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.85rem;
    }
    .enrichment-fields-table thead {
      position: sticky;
      top: 0;
      z-index: 1;
    }
    .enrichment-fields-table th {
      background: var(--bg-tertiary);
      padding: 8px 12px;
      text-align: left;
      font-weight: 600;
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--text-secondary);
      border-bottom: 1px solid var(--border);
      cursor: pointer;
      user-select: none;
    }
    .enrichment-fields-table th:hover {
      background: var(--bg-secondary);
    }
    .enrichment-fields-table th .sort-indicator {
      margin-left: 4px;
      opacity: 0.5;
    }
    .enrichment-fields-table th.sorted .sort-indicator {
      opacity: 1;
    }
    .enrichment-field-row {
      border-bottom: 1px solid var(--border);
    }
    .enrichment-field-row:last-child {
      border-bottom: none;
    }
    .enrichment-field-row:hover {
      background: var(--bg-secondary);
    }
    .enrichment-field-row td {
      padding: 8px 12px;
      vertical-align: top;
    }
    .enrichment-field-name code {
      background: var(--bg-tertiary);
      padding: 2px 6px;
      border-radius: 4px;
      font-size: 0.8rem;
      color: var(--accent);
    }
    .enrichment-field-desc {
      color: var(--text-secondary);
      font-size: 0.8rem;
      line-height: 1.4;
    }

    /* Table Tabs — moved to tables-ui.css */