:root {
  --bg: #07091a;
  --surface: #0f1629;
  --card: #141928;
  --card-border: #1e2840;
  --accent: #3b82f6;
  --accent-dim: #1d4ed8;
  --accent-glow: rgba(59,130,246,0.15);
  --text: #e2e8f0;
  --text-muted: #64748b;
  --text-secondary: #94a3b8;
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #eab308;
  --sidebar-w: 220px;
  --radius: 10px;
  --transition: 0.25s ease;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, sans-serif; display: flex; min-height: 100vh; overflow-x: hidden; }

/* Sidebar */
#sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  position: fixed;
  top: 0; left: 0;
  z-index: 10;
}
#sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 0.75rem;
}
#nav-list { list-style: none; flex: 1; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  color: var(--text-muted);
  border-left: 3px solid transparent;
  transition: all var(--transition);
  font-weight: 500;
}
.nav-item:hover { color: var(--text); background: rgba(59,130,246,0.06); }
.nav-item.active { color: var(--accent); border-left-color: var(--accent); background: var(--accent-glow); }
#model-status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  margin-top: auto;
  border-top: 1px solid var(--card-border);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-dot.red { background: var(--red); box-shadow: 0 0 6px var(--red); }
.status-dot.green { background: var(--green); box-shadow: 0 0 6px var(--green); }

/* Main */
#main-content { margin-left: var(--sidebar-w); flex: 1; padding: 2.5rem; max-width: calc(100vw - var(--sidebar-w)); }

/* Panels */
.panel { display: none; animation: slideIn 0.28s ease; }
.panel.active { display: block; }
@keyframes slideIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }

.panel-header { margin-bottom: 2rem; }
.panel-header h1 { font-size: 1.6rem; font-weight: 700; color: var(--text); }
.panel-subtitle { margin-top: 0.35rem; color: var(--text-muted); font-size: 0.9rem; }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* Upload cards */
.cards-stack { display: flex; flex-direction: column; gap: 1rem; max-width: 620px; }
.upload-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: border-color var(--transition);
}
.upload-card.loaded { border-color: rgba(34,197,94,0.4); }
.upload-card-icon { flex-shrink: 0; padding-top: 0.1rem; }
.upload-card-content { flex: 1; }
.upload-card-content h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.3rem; }
.upload-hint { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; }
input[type="file"] { display: none; }
.file-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
}
.file-label:hover { background: rgba(59,130,246,0.2); border-color: var(--accent); }
.file-label.secondary {
  background: rgba(100,116,139,0.1);
  border-color: rgba(100,116,139,0.3);
  color: var(--text-muted);
}
.file-label.secondary:hover { background: rgba(100,116,139,0.2); border-color: var(--text-muted); }

.badge-required {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(59,130,246,0.15);
  color: var(--accent);
  vertical-align: middle;
  margin-left: 0.4rem;
}
.badge-optional {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(100,116,139,0.15);
  color: var(--text-muted);
  vertical-align: middle;
  margin-left: 0.4rem;
}
.setup-info-box {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: rgba(59,130,246,0.06);
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}
.setup-info-box svg { flex-shrink: 0; margin-top: 0.1rem; }
.setup-info-box code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.78rem;
  background: rgba(59,130,246,0.12);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  color: var(--accent);
}
.file-info { margin-top: 0.6rem; display: flex; align-items: center; gap: 0.5rem; }
.file-info .mono { font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.78rem; color: var(--text); }
.file-size { font-size: 0.75rem; color: var(--text-muted); }
.check-icon { flex-shrink: 0; padding-top: 0.2rem; }
.hidden { display: none !important; }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary:hover:not(:disabled) { background: #2563eb; box-shadow: 0 0 20px rgba(59,130,246,0.35); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 7px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost.small { padding: 0.35rem 0.75rem; font-size: 0.78rem; }
.action-row { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.status-message { font-size: 0.82rem; color: var(--text-muted); }
.status-message.error { color: var(--red); }
.status-message.success { color: var(--green); }

/* Drop Zone */
.drop-zone-wrapper { max-width: 580px; margin-bottom: 1.5rem; }
.drop-zone {
  position: relative;
  border: 2px dashed var(--card-border);
  border-radius: var(--radius);
  padding: 3.5rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.drop-zone:hover, .drop-zone.drag-over { border-color: var(--accent); background: var(--accent-glow); }
.drop-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop-zone-title { font-size: 1rem; font-weight: 600; color: var(--text); margin-top: 1rem; }
.drop-zone-hint { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.35rem; }

/* PDF Preview */
.pdf-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 580px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.pdf-meta { flex: 1; display: flex; flex-direction: column; gap: 0.2rem; }
.mono { font-family: 'JetBrains Mono', 'Fira Code', monospace; }
.bold { font-weight: 600; font-size: 0.88rem; }
.muted { color: var(--text-muted); font-size: 0.78rem; }
.small { font-size: 0.78rem; }

/* Progress bar */
.progress-wrapper { max-width: 580px; margin-bottom: 1.5rem; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.82rem; color: var(--text-muted); }
.progress-bar-track { height: 6px; background: var(--card-border); border-radius: 3px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #818cf8); border-radius: 3px; transition: width 0.3s ease; }

/* Entity Table */
.summary-strip {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.summary-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.6rem 1rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  min-width: 72px;
}
.summary-chip span:first-child { font-size: 1.25rem; font-weight: 700; }
.summary-chip span:last-child { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.summary-chip.person span:first-child { color: #a78bfa; }
.summary-chip.location span:first-child { color: #34d399; }
.summary-chip.org span:first-child { color: #fb923c; }
.summary-chip.misc span:first-child { color: #38bdf8; }

.table-toolbar { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.table-wrapper {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: auto;
  max-height: 380px;
  margin-bottom: 1.5rem;
}
#entity-table { width: 100%; border-collapse: collapse; }
#entity-table thead { position: sticky; top: 0; background: var(--surface); z-index: 2; }
#entity-table th {
  padding: 0.7rem 1rem;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--card-border);
}
#entity-table td { padding: 0.7rem 1rem; font-size: 0.85rem; border-bottom: 1px solid rgba(30,40,64,0.6); }
#entity-table tbody tr:last-child td { border-bottom: none; }
#entity-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
#entity-table tbody tr:hover { background: rgba(59,130,246,0.05); }

/* Toggle switch */
.toggle-switch { position: relative; width: 36px; height: 20px; display: inline-block; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--card-border);
  border-radius: 20px;
  cursor: pointer;
  transition: background var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition);
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(16px); }

/* Confidence badge */
.conf-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: monospace;
}
.conf-high { background: rgba(34,197,94,0.15); color: #4ade80; }
.conf-mid { background: rgba(234,179,8,0.15); color: #facc15; }
.conf-low { background: rgba(239,68,68,0.15); color: #f87171; }

/* Entity type badge */
.type-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.type-person { background: rgba(167,139,250,0.15); color: #a78bfa; }
.type-location { background: rgba(52,211,153,0.15); color: #34d399; }
.type-organization { background: rgba(251,146,60,0.15); color: #fb923c; }
.type-misc { background: rgba(56,189,248,0.15); color: #38bdf8; }

/* Entity text */
.entity-text { font-family: 'JetBrains Mono','Fira Code', monospace; font-size: 0.82rem; max-width: 260px; word-break: break-word; }

/* Skeleton animation */
.skeleton-row td { padding: 0.7rem 1rem; }
.skeleton-cell {
  height: 14px;
  background: linear-gradient(90deg, var(--card-border) 25%, rgba(59,130,246,0.08) 50%, var(--card-border) 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Passphrase / Strength */
.redaction-controls { max-width: 580px; }
.redaction-controls h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 1rem; }
.passphrase-row { display: flex; flex-direction: column; gap: 0.75rem; }
.input-group { display: flex; flex-direction: column; gap: 0.35rem; }
.input-group label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.input-group input {
  padding: 0.6rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 7px;
  color: var(--text);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition);
}
.input-group input:focus { border-color: var(--accent); }
.strength-meter { display: flex; flex-direction: column; gap: 0.3rem; }
.strength-bar-track { height: 4px; background: var(--card-border); border-radius: 2px; overflow: hidden; }
.strength-bar { height: 100%; transition: width 0.3s ease, background 0.3s ease; border-radius: 2px; }
.strength-label { font-size: 0.75rem; color: var(--text-muted); }

/* Restore */
.restore-upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 680px; margin-bottom: 1.5rem; }
.restore-passphrase-card { max-width: 680px; }
.error-msg { margin-top: 0.5rem; color: var(--red); font-size: 0.83rem; font-weight: 500; }
.success-msg { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; color: var(--green); font-size: 0.85rem; font-weight: 500; }

/* Empty state */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem; gap: 0.75rem; color: var(--text-muted); text-align: center; font-size: 0.85rem; }

/* Toast */
#toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 100; display: flex; flex-direction: column; gap: 0.6rem; }
.toast {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 9px;
  font-size: 0.85rem;
  color: var(--text);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  animation: toastIn 0.25s ease;
  max-width: 320px;
}
.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--accent); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(10px); } }
.toast.removing { animation: toastOut 0.2s ease forwards; }

/* Restore success animation */
.success-msg svg { animation: successPop 0.4s cubic-bezier(0.175,0.885,0.32,1.275); }
@keyframes successPop { from { transform: scale(0); } to { transform: scale(1); } }

/* Extended PII type badges */
.type-email { background: rgba(251,191,36,0.15); color: #fbbf24; }
.type-phone { background: rgba(52,211,153,0.15); color: #34d399; }
.type-iban { background: rgba(139,92,246,0.15); color: #8b5cf6; }
.type-credit { background: rgba(239,68,68,0.15); color: #ef4444; }
.type-ssn { background: rgba(249,115,22,0.15); color: #f97316; }
.type-passport { background: rgba(20,184,166,0.15); color: #14b8a6; }
.type-patient { background: rgba(236,72,153,0.15); color: #ec4899; }
.type-insurance { background: rgba(245,158,11,0.15); color: #f59e0b; }
.type-bank { background: rgba(99,102,241,0.15); color: #6366f1; }
.type-national { background: rgba(168,85,247,0.15); color: #a855f7; }

/* Dual PDF Viewer */
.dual-pdf-viewer {
  margin-top: 1.5rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.dual-pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--card-border);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pdf-nav-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pdf-page-indicator {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 100px;
  text-align: center;
}

.pdf-view-labels {
  display: flex;
  gap: 1.5rem;
}

.pdf-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.original-label {
  background: rgba(59,130,246,0.12);
  color: var(--accent);
}

.redacted-label {
  background: rgba(239,68,68,0.12);
  color: var(--red);
}

.pdf-canvases-row {
  display: flex;
  min-height: 400px;
  max-height: 680px;
}

.pdf-canvas-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pdf-canvas-label {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--card-border);
  background: rgba(255,255,255,0.02);
}

.pdf-canvas-divider {
  width: 1px;
  background: var(--card-border);
  flex-shrink: 0;
}

.pdf-canvas-scroll {
  flex: 1;
  overflow: auto;
  position: relative;
  background: #111827;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
}

.pdf-canvas {
  display: none;
  max-width: 100%;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.canvas-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
  padding: 2rem;
}

.canvas-placeholder.hidden { display: none; }

.pdf-viewer-actions {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ─── Confidence Filter ───────────────────────────────────────────────── */
.confidence-filter-bar {
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
}
.conf-filter-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}
.conf-filter-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.conf-value-badge {
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  background: rgba(59,130,246,0.12);
  padding: 0.15rem 0.6rem;
  border-radius: 5px;
  min-width: 46px;
  text-align: center;
}
.conf-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent) var(--slider-pct, 15%), var(--card-border) var(--slider-pct, 15%));
  outline: none;
  cursor: pointer;
  display: block;
  margin-bottom: 0.4rem;
}
.conf-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 8px rgba(59,130,246,0.5);
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.conf-slider::-webkit-slider-thumb:hover { box-shadow: 0 0 16px rgba(59,130,246,0.7); }
.conf-slider::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  cursor: pointer;
}
.conf-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.conf-zone-low { color: #f87171; }
.conf-zone-mid { color: #facc15; }
.conf-zone-high { color: #4ade80; }

/* ─── Review Panel Layout ─────────────────────────────────────────────── */
.review-layout {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.review-left {
  flex: 1 1 0;
  min-width: 0;
}
.review-right {
  width: 340px;
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 3rem);
}
.review-pdf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--card-border);
}
.review-pdf-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.review-highlight-label {
  font-size: 0.72rem;
  color: var(--accent);
  font-family: monospace;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.review-pdf-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.5rem;
  border-bottom: 1px solid var(--card-border);
  background: rgba(255,255,255,0.02);
}
.review-pdf-scroll {
  flex: 1;
  overflow: auto;
  background: #111827;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0.75rem;
  position: relative;
  min-height: 300px;
}
.review-highlight-overlay {
  position: absolute;
  pointer-events: none;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.entity-highlight-rect {
  position: absolute;
  background: rgba(251,191,36,0.35);
  border: 2px solid #fbbf24;
  border-radius: 2px;
  transition: all 0.2s ease;
  animation: highlightPulse 1.5s ease infinite;
}
@keyframes highlightPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251,191,36,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(251,191,36,0); }
}
/* Entity row clickable */
#entity-table tbody tr.entity-row { cursor: pointer; }
#entity-table tbody tr.entity-row.active-entity { background: rgba(59,130,246,0.1) !important; border-left: 2px solid var(--accent); }
