@import url("themes.css");
:root {
  --bg: #0b0d14;
  --panel: rgba(18, 21, 31, 0.92);
  --panel-solid: #12151f;
  --panel-strong: rgba(12, 15, 25, 0.96);
  --line: rgba(35, 44, 66, 0.85);
  --text: #e8ebf4;
  --muted: #9aa3ba;
  --trace: #74adfa;
  --trace-2: #a78bfa;
  --hot: #f97316;
  --good: #22c55e;
  --danger: #fb7185;
  --warning: #facc15;
  --th-badge-danger-bg: rgba(244,63,94,.16);
  --th-badge-danger-fg: #fecdd3;
  --th-badge-danger-border: rgba(244,63,94,.36);
  --th-badge-warning-bg: rgba(245,158,11,.16);
  --th-badge-warning-fg: #fde68a;
  --th-badge-warning-border: rgba(245,158,11,.36);
  --th-badge-active-bg: rgba(56,189,248,.16);
  --th-badge-active-fg: #bae6fd;
  --th-badge-active-border: rgba(56,189,248,.36);
  --th-badge-success-bg: rgba(34,197,94,.16);
  --th-badge-success-fg: #bbf7d0;
  --th-badge-success-border: rgba(34,197,94,.36);
  --th-badge-info-bg: rgba(99,102,241,.16);
  --th-badge-info-fg: #c7d2fe;
  --th-badge-info-border: rgba(99,102,241,.36);
  --th-badge-neutral-bg: rgba(148,163,184,.18);
  --th-badge-neutral-fg: #e2e8f0;
  --th-badge-neutral-border: rgba(148,163,184,.34);
  --topmenu-bg: #0b1220;
  --line-solid: #232c42;
  --surface-2: #171b29;
  --surface-3: #0f131d;
  --surface-hover: #1c2130;
  --muted-2: #5d667d;
  --text-soft: #d7dbe6;
  --accent: #3d9bfb;
  --accent-soft: #74adfa;
  --radius: 18px;
  --navbar-h: 58px;
  --sidebar-w: 318px;
  --topmenu-header-h: 46px;
  --menubar-h: 36px;
  --topmenu-total: calc(var(--topmenu-header-h) + var(--menubar-h));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  overflow: hidden;
  padding-top: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.theme-light {
  --bg: #f8fafc;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-solid: #ffffff;
  --panel-strong: rgba(248, 250, 252, 0.92);
  --line: rgba(71, 85, 105, 0.22);
  --text: #0f172a;
  --muted: #475569;
  --th-badge-danger-bg: #FEE2E2;
  --th-badge-danger-fg: #991B1B;
  --th-badge-danger-border: #FCA5A5;
  --th-badge-warning-bg: #FEF3C7;
  --th-badge-warning-fg: #92400E;
  --th-badge-warning-border: #F59E0B;
  --th-badge-active-bg: #DBEAFE;
  --th-badge-active-fg: #1E3A8A;
  --th-badge-active-border: #93C5FD;
  --th-badge-success-bg: #DCFCE7;
  --th-badge-success-fg: #166534;
  --th-badge-success-border: #86EFAC;
  --th-badge-info-bg: #E0F2FE;
  --th-badge-info-fg: #075985;
  --th-badge-info-border: #7DD3FC;
  --th-badge-neutral-bg: #E2E8F0;
  --th-badge-neutral-fg: #334155;
  --th-badge-neutral-border: #94A3B8;
  color-scheme: light;
}

body.theme-light .app-bg {
  background:
    radial-gradient(circle at 18% 14%, rgba(56, 189, 248, .18), transparent 34%),
    radial-gradient(circle at 76% 22%, rgba(167, 139, 250, .16), transparent 30%),
    linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.tracehawk-navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
  --bs-navbar-color: #cbd5e1;
  --bs-navbar-hover-color: #ffffff;
  --bs-navbar-active-color: #020617;
  --bs-navbar-toggler-border-color: rgba(148,163,184,.28);
  --bs-navbar-toggler-focus-width: 0;
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28229,231,235,0.92%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  border-bottom: 1px solid rgba(148,163,184,.14);
  background: #000;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0,0,0,.42);
}

.tracehawk-navbar-inner {
  min-height: var(--navbar-h);
  gap: 10px;
}

.tracehawk-sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tracehawk-topmenu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  display: flex;
  flex-direction: column;
  background: var(--topmenu-bg);
  border-bottom: 1px solid rgba(148,163,184,.14);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  color: #e5e7eb;
}

.tracehawk-topmenu-header {
  height: var(--topmenu-header-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(148,163,184,.10);
}

.tracehawk-topmenu-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #f8fafc;
  text-decoration: none;
}

.tracehawk-topmenu-brand:hover {
  color: #f8fafc;
}

.tracehawk-topmenu-brand .tracehawk-logo-frame {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex: 0 0 auto;
}

.tracehawk-topmenu-brand .tracehawk-logo-square {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.tracehawk-topmenu-brand strong {
  display: block;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.tracehawk-topmenu-brand .eyebrow {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 9px;
  line-height: 1;
  letter-spacing: .12em;
}

.tracehawk-topmenu-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-width: 0;
}

.tracehawk-topmenu-actions .tracehawk-user-pill {
  gap: 8px;
}

.tracehawk-topmenu-actions .tracehawk-user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.2;
}

.tracehawk-topmenu-actions .tracehawk-user-meta small {
  color: #94a3b8;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tracehawk-topmenu-actions .tracehawk-user-meta b {
  color: #f8fafc;
  font-size: 12px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tracehawk-topmenu-actions .th-badge {
  margin-top: 2px;
}

.tracehawk-menubar {
  height: var(--menubar-h);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 8px;
  scrollbar-width: thin;
  list-style: none;
  margin: 0;
}

.tracehawk-menubar > li {
  flex: 0 0 auto;
}

.tracehawk-menubar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.tracehawk-menubar-item:hover,
.tracehawk-menubar-item.active,
.tracehawk-menubar-item[aria-expanded="true"] {
  background: rgba(255,255,255,.06);
  color: #ffffff;
}

.tracehawk-menubar-item.dropdown-toggle::after {
  content: none;
}

.tracehawk-menubar-dropdown {
  max-height: calc(100dvh - var(--topmenu-total) - 20px);
  min-width: 260px;
  margin-top: 0;
  padding: 6px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 10px;
  background: var(--panel-solid);
  box-shadow: 0 20px 45px rgba(0,0,0,.42);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.tracehawk-menubar-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
}

.tracehawk-menubar-dropdown .dropdown-item i {
  width: 18px;
  text-align: center;
  color: #f8fafc;
}

.tracehawk-menubar-dropdown .dropdown-item:hover,
.tracehawk-menubar-dropdown .dropdown-item:focus,
.tracehawk-menubar-dropdown .dropdown-item.active {
  background: rgba(61,155,251,.18);
  color: #ffffff;
}

.tracehawk-menubar-dropdown .dropdown-item:hover i,
.tracehawk-menubar-dropdown .dropdown-item:focus i,
.tracehawk-menubar-dropdown .dropdown-item.active i {
  color: #ffffff;
}

.tracehawk-menubar-dropdown .dropdown-item:disabled {
  color: var(--muted-2);
  opacity: .7;
}

.tracehawk-menubar-dropdown .dropdown-item:disabled i {
  color: var(--muted-2);
}

.tracehawk-menubar-dropdown .dropdown-divider {
  border-color: rgba(148,163,184,.14);
  margin: 6px 0;
}

.tracehawk-menubar-dropdown .sidebar-count-pill {
  margin-left: auto;
  margin-right: 0;
  padding: 1px 7px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 999px;
  background: rgba(15,23,42,.5);
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.4;
}

.tracehawk-menubar-dropdown .view-list {
  display: grid;
  gap: 4px;
}

.tracehawk-menubar-dropdown .view-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  text-align: left;
}

.tracehawk-menubar-dropdown .view-btn:hover,
.tracehawk-menubar-dropdown .view-btn.active {
  background: rgba(61,155,251,.18);
  color: #ffffff;
}

.tracehawk-sidebar-toggle {
  display: none !important;
}

body.theme-light .tracehawk-topmenu {
  background: #ffffff;
  border-bottom-color: var(--line);
  color: #0f172a;
}

body.theme-light .tracehawk-topmenu-header {
  border-bottom-color: rgba(71,85,105,.14);
}

body.theme-light .tracehawk-topmenu-brand {
  color: #0f172a;
}

body.theme-light .tracehawk-topmenu-brand strong {
  color: #0f172a;
}

body.theme-light .tracehawk-topmenu-brand .eyebrow,
body.theme-light .tracehawk-topmenu-actions .tracehawk-user-meta small {
  color: #64748b;
}

body.theme-light .tracehawk-topmenu-actions .tracehawk-user-meta b {
  color: #0f172a;
}

body.theme-light .tracehawk-menubar-item {
  color: #334155;
}

body.theme-light .tracehawk-menubar-item:hover,
body.theme-light .tracehawk-menubar-item.active,
body.theme-light .tracehawk-menubar-item[aria-expanded="true"] {
  background: #eef2f6;
  color: #0f172a;
}

body.theme-light .tracehawk-menubar-dropdown {
  border-color: rgba(71,85,105,.22);
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(15,23,42,.18);
}

body.theme-light .tracehawk-menubar-dropdown .dropdown-item {
  color: #0f172a;
}

body.theme-light .tracehawk-menubar-dropdown .dropdown-item i {
  color: #334155;
}

body.theme-light .tracehawk-menubar-dropdown .dropdown-item:hover,
body.theme-light .tracehawk-menubar-dropdown .dropdown-item:focus,
body.theme-light .tracehawk-menubar-dropdown .dropdown-item.active {
  background: rgba(61,155,251,.14);
  color: #075985;
}

body.theme-light .tracehawk-menubar-dropdown .dropdown-item:hover i,
body.theme-light .tracehawk-menubar-dropdown .dropdown-item:focus i,
body.theme-light .tracehawk-menubar-dropdown .dropdown-item.active i {
  color: #075985;
}

body.theme-light .tracehawk-menubar-dropdown .dropdown-divider {
  border-color: rgba(71,85,105,.16);
}

body.theme-light .tracehawk-menubar-dropdown .sidebar-count-pill {
  border-color: rgba(71,85,105,.2);
  background: #f1f5f9;
  color: #334155;
}

body.theme-light .tracehawk-menubar-dropdown .view-btn {
  color: #0f172a;
}

body.theme-light .tracehawk-menubar-dropdown .view-btn:hover,
body.theme-light .tracehawk-menubar-dropdown .view-btn.active {
  background: rgba(61,155,251,.14);
  color: #075985;
}

.tracehawk-navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 2px 8px 2px 2px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: #f8fafc;
  text-decoration: none;
}

.tracehawk-navbar-brand:hover {
  color: #f8fafc;
}

.tracehawk-navbar-brand strong {
  display: block;
  font-size: 14px;
  line-height: 1.05;
  letter-spacing: -.025em;
}

.tracehawk-brand-text {
  display: block;
  min-width: 0;
}

.tracehawk-brand-text .eyebrow {
  display: block;
  margin-bottom: 1px;
  color: #94a3b8;
  font-size: 9px;
  line-height: 1;
  letter-spacing: .12em;
}

.tracehawk-logo-frame {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148,163,184,.32);
  border-radius: 10px;
  background: #000;
  box-shadow: none;
}

.tracehawk-logo-frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 7px;
  pointer-events: none;
}

.tracehawk-logo-square {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

.tracehawk-logo-square img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-mark-sm {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 13px;
}

.tracehawk-navbar-toggler {
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(2,6,23,.52);
}

.tracehawk-navbar-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.navbar-utility-btn {
  white-space: nowrap;
}

.navbar-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 3px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(56,189,248,.22);
  color: #e0f2fe;
  font-size: 10px;
  font-weight: 950;
}

.navbar-select {
  min-width: 0;
  width: 100%;
}

.tracehawk-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(148,163,184,.28);
  border-radius: 12px;
  background: rgba(2,6,23,.68);
  color: var(--muted);
}

.tracehawk-search-wrap .form-control {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 0;
}

.tracehawk-search-wrap .form-control:focus {
  box-shadow: none !important;
}

body.theme-light .tracehawk-search-wrap {
  border-color: var(--line);
  background: #EEF2F6;
  color: var(--muted);
}

.tracehawk-dropdown {
  min-width: 280px;
  max-width: min(92vw, 520px);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 16px;
  background: rgba(2,6,23,.96);
  box-shadow: 0 20px 45px rgba(0,0,0,.35);
}

.tracehawk-sidebar {
  --bs-offcanvas-width: min(var(--sidebar-w), 92vw);
  border-right: 1px solid rgba(148,163,184,.16);
  background:
    radial-gradient(circle at 12% 0%, rgba(56,189,248,.10), transparent 34%),
    rgba(2,6,23,.98);
  color: #e5e7eb;
  box-shadow: 20px 0 60px rgba(0,0,0,.28);
}

.tracehawk-sidebar-header {
  min-height: 70px;
  border-bottom: 1px solid rgba(148,163,184,.14);
}

.tracehawk-sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.tracehawk-sidebar-brand .tracehawk-logo-frame {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex: 0 0 auto;
}

.tracehawk-sidebar-brand .tracehawk-logo-frame::before {
  inset: 6px;
  border-radius: 8px;
}

.tracehawk-sidebar-brand .tracehawk-logo-square {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.tracehawk-sidebar-brand strong {
  display: block;
  color: #f8fafc;
  font-size: 16px;
  line-height: 1.05;
  letter-spacing: -.025em;
}

.tracehawk-sidebar-brand .eyebrow {
  margin: 3px 0 0;
  font-size: 9px;
}

.tracehawk-version-line {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.theme-toggle-btn {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid rgba(148,163,184,.26);
  border-radius: 999px;
  background: rgba(15,23,42,.58);
  color: #f8fafc;
  font-size: 11px;
  line-height: 1;
}

.theme-toggle-btn:hover {
  border-color: rgba(255,255,255,.42);
  background: rgba(30,41,59,.86);
}

body.theme-light .tracehawk-sidebar,
body.theme-light .graph-toolbar,
body.theme-light .dashboard-heading,
body.theme-light .tracehawk-modal .modal-content,
body.theme-light .panel-card,
body.theme-light .modal-card,
body.theme-light .case-dropzone,
body.theme-light .agent-console,
body.theme-light .agent-sidecar {
  border-color: rgba(26,54,93,.20);
  background: rgba(255,255,255,.88);
  color: #1A365D;
  box-shadow: 0 18px 45px rgba(26,54,93,.12);
}

body.theme-light .tracehawk-sidebar-header,
body.theme-light .tracehawk-sidebar-section,
body.theme-light .tracehawk-sidebar-footer,
body.theme-light .tracehawk-modal .modal-header {
  border-color: rgba(26,54,93,.18);
}

body.theme-light .hub-item,
body.theme-light .mini-item,
body.theme-light .relation-item,
body.theme-light .evidence-section,
body.theme-light .correlation-metric-grid > div,
body.theme-light .relationship-endpoint,
body.theme-light .evidence-timeline-grid > div,
body.theme-light .evidence-case-row {
  border-color: rgba(26,54,93,.16);
  background: #f8fafc;
  color: #1A365D;
}

body.theme-light .relation-path,
body.theme-light .detail-grid dd,
body.theme-light .evidence-section h4,
body.theme-light .correlation-explanation-heading strong,
body.theme-light .correlation-metric-grid strong,
body.theme-light .correlation-explanation h4,
body.theme-light .relationship-endpoint,
body.theme-light .evidence-timeline-grid strong,
body.theme-light .evidence-case-row b,
body.theme-light .evidence-case-row span {
  color: #1A365D;
}

body.theme-light .correlation-explanation-list {
  color: #1A365D;
}

body.theme-light .correlation-limitations-list {
  color: #92400e;
}

body.theme-light .relationship-inspect-action {
  border-color: rgba(37,99,235,.28);
  color: #1E3A8A;
  background: #eef4fb;
}

body.theme-light .relationship-inspect-action:hover {
  border-color: rgba(37,99,235,.45);
  background: #dbeafe;
  color: #1E3A8A;
}

body.theme-light .tracehawk-sidebar-brand strong,
body.theme-light .workspace-menu-item,
body.theme-light .view-btn,
body.theme-light .graph-toolbar .graph-summary-line b,
body.theme-light .graph-toolbar .graph-metric-summary b,
body.theme-light .dashboard-question-card strong,
body.theme-light .dashboard-kpi strong,
body.theme-light .dashboard-list-item b,
body.theme-light .dashboard-rank-count {
  color: #1A365D;
}

body.theme-light .dashboard-kpi,
body.theme-light .dashboard-question-card,
body.theme-light .dashboard-list-item {
  border-color: rgba(26,54,93,.18);
  background: rgba(247,250,255,.84);
}

body.theme-light .dashboard-list-item .group-pill,
body.theme-light .group-pill {
  border-color: rgba(26,54,93,.32);
  background: rgba(26,54,93,.12);
  color: #1A365D;
}

body.theme-light[data-dashboard-summary-endpoint] .dashboard-list-action {
  border: 1px solid rgba(26,54,93,.38);
  background: #FFFFFF;
  color: #1A365D;
  font-weight: 750;
}

body.theme-light[data-dashboard-summary-endpoint] .dashboard-list-action:hover,
body.theme-light[data-dashboard-summary-endpoint] .dashboard-list-action:focus,
body.theme-light[data-dashboard-summary-endpoint] .dashboard-list-action:active {
  border-color: #1A365D;
  background: #1A365D;
  color: #FFFFFF;
}

body.theme-light .tracehawk-sidebar-section .accordion-button,
body.theme-light .tracehawk-sidebar-section .tracehawk-sidebar-link,
body.theme-light .workspace-menu-item,
body.theme-light .view-btn,
body.theme-light .theme-toggle-btn {
  background: transparent;
  color: #4A5568;
}

body.theme-light .tracehawk-sidebar-section .accordion-button:not(.collapsed),
body.theme-light .tracehawk-sidebar-section .tracehawk-sidebar-link.active,
body.theme-light .workspace-menu-item:hover,
body.theme-light .view-btn:hover,
body.theme-light .view-btn.active,
body.theme-light .theme-toggle-btn:hover {
  background: rgba(26,54,93,.12);
  color: #2C5282;
}

body.theme-light .tracehawk-sidebar-section .accordion-button::after {
  filter: brightness(0) saturate(100%) invert(19%) sepia(34%) saturate(1288%) hue-rotate(177deg) brightness(90%) contrast(94%);
  opacity: .95;
}

body.theme-light .graph-toolbar {
  border: 1px solid rgba(26,54,93,.28);
  background: rgba(255,255,255,.96);
  color: #1A365D;
  box-shadow: 0 18px 45px rgba(26,54,93,.18), 0 0 0 1px rgba(255,255,255,.72) inset;
}

body.theme-light .graph-toolbar small,
body.theme-light .graph-toolbar .graph-metric-summary,
body.theme-light .graph-toolbar .graph-summary-line {
  color: #2C5282;
}

body.theme-light .graph-toolbar .btn-outline-light {
  --bs-btn-color: #1A365D;
  --bs-btn-border-color: rgba(26,54,93,.38);
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #1A365D;
  --bs-btn-hover-border-color: #1A365D;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #102A43;
  --bs-btn-active-border-color: #102A43;
  color: #1A365D;
  background: rgba(247,250,255,.94);
  border-color: rgba(26,54,93,.42);
}

body.theme-light .graph-toolbar .btn-outline-light:hover,
body.theme-light .graph-toolbar .btn-outline-light:focus,
body.theme-light .graph-toolbar .btn-outline-light:active {
  color: #ffffff;
  background: #1A365D;
  border-color: #1A365D;
}

body.theme-light .graph-toolbar .btn-outline-light:focus-visible {
  box-shadow: 0 0 0 .18rem rgba(26,54,93,.26);
}

body.theme-light .graph-toolbar .navbar-filter-count {
  background: #1A365D;
  color: #ffffff;
  border: 1px solid rgba(26,54,93,.12);
}

body.theme-light[data-infrastructure-endpoint] .dashboard-heading .tracehawk-sidebar-toggle {
  border: 1px solid rgba(37,99,235,.32);
  background: #FFFFFF;
  color: #1E3A8A;
  box-shadow: 0 8px 20px rgba(15,23,42,.08);
}

body.theme-light[data-infrastructure-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:hover,
body.theme-light[data-infrastructure-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:focus,
body.theme-light[data-infrastructure-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:active {
  border-color: #2563EB;
  background: #EEF4FB;
  color: #1D4ED8;
}

body.theme-light[data-infrastructure-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:focus-visible {
  box-shadow: 0 0 0 .18rem rgba(37,99,235,.22);
}

body.theme-light[data-dashboard-summary-endpoint] .dashboard-heading .tracehawk-sidebar-toggle,
body.theme-light[data-accounts-handles-endpoint] .dashboard-heading .tracehawk-sidebar-toggle,
body.theme-light[data-infrastructure-detail-endpoint] .dashboard-heading .tracehawk-sidebar-toggle,
body.theme-light[data-investigations-endpoint] .dashboard-heading .tracehawk-sidebar-toggle,
body.theme-light[data-phishings-endpoint] .dashboard-heading .tracehawk-sidebar-toggle,
body.theme-light[data-geomap-endpoint] .dashboard-heading .tracehawk-sidebar-toggle,
body.theme-light[data-data-rescue-endpoint] .dashboard-heading .tracehawk-sidebar-toggle,
body.theme-light[data-phishing-kits-endpoint] .dashboard-heading .tracehawk-sidebar-toggle,
body.theme-light[data-settings-endpoint] .dashboard-heading .tracehawk-sidebar-toggle {
  border: 1px solid rgba(37,99,235,.32);
  background: #FFFFFF;
  color: #1E3A8A;
  box-shadow: 0 8px 20px rgba(15,23,42,.08);
}

body.theme-light[data-dashboard-summary-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:hover,
body.theme-light[data-dashboard-summary-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:focus,
body.theme-light[data-dashboard-summary-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:active,
body.theme-light[data-accounts-handles-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:hover,
body.theme-light[data-accounts-handles-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:focus,
body.theme-light[data-accounts-handles-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:active,
body.theme-light[data-infrastructure-detail-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:hover,
body.theme-light[data-infrastructure-detail-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:focus,
body.theme-light[data-infrastructure-detail-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:active,
body.theme-light[data-investigations-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:hover,
body.theme-light[data-investigations-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:focus,
body.theme-light[data-investigations-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:active,
body.theme-light[data-phishings-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:hover,
body.theme-light[data-phishings-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:focus,
body.theme-light[data-phishings-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:active,
body.theme-light[data-geomap-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:hover,
body.theme-light[data-geomap-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:focus,
body.theme-light[data-geomap-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:active,
body.theme-light[data-data-rescue-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:hover,
body.theme-light[data-data-rescue-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:focus,
body.theme-light[data-data-rescue-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:active,
body.theme-light[data-phishing-kits-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:hover,
body.theme-light[data-phishing-kits-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:focus,
body.theme-light[data-phishing-kits-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:active,
body.theme-light[data-settings-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:hover,
body.theme-light[data-settings-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:focus,
body.theme-light[data-settings-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:active {
  border-color: #2563EB;
  background: #EEF4FB;
  color: #1D4ED8;
}

body.theme-light[data-dashboard-summary-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:focus-visible,
body.theme-light[data-accounts-handles-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:focus-visible,
body.theme-light[data-infrastructure-detail-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:focus-visible,
body.theme-light[data-investigations-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:focus-visible,
body.theme-light[data-phishings-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:focus-visible,
body.theme-light[data-geomap-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:focus-visible,
body.theme-light[data-data-rescue-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:focus-visible,
body.theme-light[data-phishing-kits-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:focus-visible,
body.theme-light[data-settings-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:focus-visible {
  box-shadow: 0 0 0 .18rem rgba(37,99,235,.22);
}

body.theme-light[data-investigations-endpoint] .dashboard-heading .tracehawk-sidebar-toggle {
  border: 1px solid rgba(37,99,235,.32);
  background: #FFFFFF;
  color: #1E3A8A;
  box-shadow: 0 8px 20px rgba(15,23,42,.08);
}

body.theme-light[data-investigations-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:hover,
body.theme-light[data-investigations-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:focus,
body.theme-light[data-investigations-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:active {
  border-color: #2563EB;
  background: #EEF4FB;
  color: #1D4ED8;
}

body.theme-light[data-investigation-page="detail"] .dashboard-heading .dashboard-explore-link {
  border: 1px solid rgba(26,54,93,.38);
  background: #FFFFFF;
  color: #1A365D;
  font-weight: 750;
  box-shadow: 0 8px 20px rgba(15,23,42,.07);
}

body.theme-light[data-investigation-page="detail"] .dashboard-heading .dashboard-explore-link i {
  color: inherit;
}

body.theme-light[data-investigation-page="detail"] .dashboard-heading .dashboard-explore-link:hover,
body.theme-light[data-investigation-page="detail"] .dashboard-heading .dashboard-explore-link:focus,
body.theme-light[data-investigation-page="detail"] .dashboard-heading .dashboard-explore-link:active {
  border-color: #1A365D;
  background: #1A365D;
  color: #FFFFFF;
}

body.theme-light[data-investigation-page="detail"] .dashboard-heading .dashboard-explore-link:focus-visible {
  box-shadow: 0 0 0 .18rem rgba(26,54,93,.24);
}

body.theme-light[data-investigation-page="list"] .dashboard-heading .dashboard-explore-link,
body.theme-light[data-investigation-page="list"] .investigation-list-meta .btn-outline-light {
  border: 1px solid rgba(26,54,93,.38);
  background: #FFFFFF;
  color: #1A365D;
  font-weight: 750;
  box-shadow: 0 8px 20px rgba(15,23,42,.07);
}

body.theme-light[data-investigation-page="list"] .dashboard-heading .dashboard-explore-link i {
  color: inherit;
}

body.theme-light[data-investigation-page="list"] .dashboard-heading .dashboard-explore-link:hover,
body.theme-light[data-investigation-page="list"] .dashboard-heading .dashboard-explore-link:focus,
body.theme-light[data-investigation-page="list"] .dashboard-heading .dashboard-explore-link:active,
body.theme-light[data-investigation-page="list"] .investigation-list-meta .btn-outline-light:hover,
body.theme-light[data-investigation-page="list"] .investigation-list-meta .btn-outline-light:focus,
body.theme-light[data-investigation-page="list"] .investigation-list-meta .btn-outline-light:active {
  border-color: #1A365D;
  background: #1A365D;
  color: #FFFFFF;
}

body.theme-light[data-investigation-page="list"] .dashboard-heading .dashboard-explore-link:focus-visible,
body.theme-light[data-investigation-page="list"] .investigation-list-meta .btn-outline-light:focus-visible {
  box-shadow: 0 0 0 .18rem rgba(26,54,93,.24);
}

body.theme-light[data-phishings-endpoint] .dashboard-heading .tracehawk-sidebar-toggle {
  border: 1px solid rgba(37,99,235,.32);
  background: #FFFFFF;
  color: #1E3A8A;
  box-shadow: 0 8px 20px rgba(15,23,42,.08);
}

body.theme-light[data-phishings-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:hover,
body.theme-light[data-phishings-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:focus,
body.theme-light[data-phishings-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:active {
  border-color: #2563EB;
  background: #EEF4FB;
  color: #1D4ED8;
}

body.theme-light .workspace-menu-item.sidebar-menu-placeholder:disabled {
  color: #4A5568;
}

body.theme-light .sidebar-count-pill {
  border-color: rgba(26,54,93,.26);
  background: rgba(26,54,93,.10);
  color: #1A365D;
}

body.theme-light .tracehawk-sidebar {
  --sidebar-bg: #F8FAFC;
  --sidebar-border: #D8E1EB;
  --sidebar-text: #16263D;
  --sidebar-text-secondary: #526174;
  --sidebar-muted: #7A8797;
  --sidebar-accent: #2563EB;
  --sidebar-accent-dark: #1E3A8A;
  --sidebar-hover-bg: #EEF4FB;
  --sidebar-active-bg: #DBEAFE;
  --sidebar-subitem-hover: #F1F5F9;
  --sidebar-count-bg: #E2E8F0;
  --sidebar-footer-border: #E2E8F0;
  border-right: 1px solid var(--sidebar-border);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

body.theme-light .tracehawk-sidebar-header {
  border-bottom-color: var(--sidebar-border);
}

body.theme-light .tracehawk-sidebar-brand strong {
  color: var(--sidebar-text);
}

body.theme-light .tracehawk-sidebar-brand .eyebrow,
body.theme-light .tracehawk-version-line {
  color: #6B7280;
}

body.theme-light .tracehawk-sidebar-accordion {
  border-color: var(--sidebar-border);
  background: transparent;
}

body.theme-light .tracehawk-sidebar-section {
  border-bottom-color: var(--sidebar-footer-border);
}

body.theme-light .tracehawk-sidebar-section .accordion-button,
body.theme-light .tracehawk-sidebar-section .tracehawk-sidebar-link {
  min-height: 42px;
  border-left: 3px solid transparent;
  border-radius: 6px !important;
  background: transparent;
  color: #334155;
}

body.theme-light .tracehawk-sidebar-section .accordion-button:hover,
body.theme-light .tracehawk-sidebar-section .accordion-button:not(.collapsed),
body.theme-light .tracehawk-sidebar-section .tracehawk-sidebar-link:hover {
  background: var(--sidebar-hover-bg);
  color: #1D4ED8;
}

body.theme-light .tracehawk-sidebar-section .tracehawk-sidebar-link.active {
  border-left-color: var(--sidebar-accent);
  background: var(--sidebar-active-bg);
  color: var(--sidebar-accent-dark);
}

body.theme-light .tracehawk-sidebar-section .accordion-button::after {
  color: #64748B;
  filter: none;
  opacity: .9;
}

body.theme-light .tracehawk-sidebar-section .accordion-body {
  gap: 6px;
  background: transparent;
}

body.theme-light .tracehawk-sidebar .accordion-body .workspace-menu-item,
body.theme-light .tracehawk-sidebar .accordion-body .workspace-menu-item:disabled,
body.theme-light .tracehawk-sidebar .accordion-body .view-btn,
body.theme-light .tracehawk-sidebar .accordion-body .view-btn small {
  color: #475569;
}

body.theme-light .tracehawk-sidebar .accordion-body .workspace-menu-item,
body.theme-light .tracehawk-sidebar .accordion-body .view-btn {
  min-height: 42px;
  border-radius: 6px;
  background: transparent;
}

body.theme-light .tracehawk-sidebar .accordion-body .workspace-menu-item:hover,
body.theme-light .tracehawk-sidebar .accordion-body .view-btn:hover {
  background: var(--sidebar-subitem-hover);
  color: #0F172A;
}

body.theme-light .tracehawk-sidebar .accordion-body .workspace-menu-item.active {
  background: #E0F2FE;
  color: #0C4A6E;
}

body.theme-light .tracehawk-sidebar .accordion-body .view-btn.active {
  background: #E0F2FE;
  color: #0C4A6E;
}

body.theme-light .tracehawk-sidebar .accordion-body .workspace-menu-item small {
  color: var(--sidebar-muted);
}

body.theme-light .tracehawk-sidebar .accordion-body .workspace-menu-item i,
body.theme-light .tracehawk-sidebar .accordion-body .workspace-menu-item > span[aria-hidden="true"],
body.theme-light .tracehawk-sidebar .accordion-body .view-btn i {
  color: inherit;
}

body.theme-light .tracehawk-sidebar .sidebar-count-pill {
  border: 0;
  background: var(--sidebar-count-bg);
  color: #1E293B;
}

body.theme-light .tracehawk-sidebar-section .accordion-button:not(.collapsed) .sidebar-count-pill,
body.theme-light .tracehawk-sidebar-section .tracehawk-sidebar-link.active .sidebar-count-pill {
  background: var(--sidebar-active-bg);
  color: #1D4ED8;
}

body.theme-light .tracehawk-sidebar-footer {
  border-color: var(--sidebar-footer-border);
  background: var(--sidebar-bg);
  color: #1F2937;
}

body.theme-light .tracehawk-user-pill small {
  color: #6B7280;
}

body.theme-light .tracehawk-user-pill b {
  color: #1F2937;
}

body.theme-light .tracehawk-user-avatar {
  border-color: var(--sidebar-footer-border);
  background: #FFFFFF;
  color: var(--sidebar-text-secondary);
}

body.theme-light .theme-toggle-btn,
body.theme-light .tracehawk-user-actions .btn-outline-light {
  border-color: var(--sidebar-border);
  background: #FFFFFF;
  color: var(--sidebar-text-secondary);
}

body.theme-light .theme-toggle-btn:hover,
body.theme-light .tracehawk-user-actions .btn-outline-light:hover {
  border-color: var(--sidebar-accent);
  background: var(--sidebar-hover-bg);
  color: var(--sidebar-accent-dark);
}

body.theme-light .tracehawk-modal {
  --modal-header-bg: #F8FAFC;
  --modal-header-border: #D8E1EB;
  --modal-title: #17243A;
  --modal-subtitle: #64748B;
  --modal-eyebrow: #2563EB;
  --modal-icon: #475569;
  --modal-action-bg: #FFFFFF;
  --modal-action-border: #CBD5E1;
  --modal-action-hover: #EEF4FB;
  --modal-close-hover: #E2E8F0;
}

body.theme-light .tracehawk-modal .modal-header,
body.theme-light .filters-modal-header,
body.theme-light .user-manual-modal-header,
body.theme-light .settings-modal-header,
body.theme-light .malicious-modal-header,
body.theme-light .timeline-modal-header,
body.theme-light .reports-modal-header,
body.theme-light .insights-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--modal-header-border);
  background: var(--modal-header-bg) !important;
  color: var(--modal-title);
  box-shadow: none;
}

body.theme-light .tracehawk-modal .modal-title {
  color: var(--modal-title);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.theme-light .tracehawk-modal .modal-context,
body.theme-light .tracehawk-modal .modal-header-subtitle,
body.theme-light .tracehawk-modal .modal-header small,
body.theme-light .tracehawk-modal .modal-header p {
  color: var(--modal-subtitle);
}

body.theme-light .tracehawk-modal .modal-header-eyebrow,
body.theme-light .tracehawk-modal .modal-header .eyebrow {
  color: var(--modal-eyebrow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.theme-light .tracehawk-modal .modal-header-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--modal-header-border);
  border-radius: 8px;
  background: #EAF0F7;
  color: var(--modal-icon);
}

body.theme-light .tracehawk-modal .modal-header i {
  color: inherit;
}

body.theme-light .tracehawk-modal .modal-header .btn {
  border: 1px solid var(--modal-action-border);
  background: var(--modal-action-bg);
  color: #334155;
}

body.theme-light .tracehawk-modal .modal-header .btn:hover,
body.theme-light .tracehawk-modal .modal-header .btn:focus {
  border-color: #94A3B8;
  background: var(--modal-action-hover);
  color: #1E3A8A;
}

body.theme-light .tracehawk-modal .modal-header .btn-primary {
  border-color: #2563EB;
  background: #2563EB;
  color: #FFFFFF;
}

body.theme-light .tracehawk-modal .modal-header .btn-primary:hover,
body.theme-light .tracehawk-modal .modal-header .btn-primary:focus {
  border-color: #1E3A8A;
  background: #1E3A8A;
  color: #FFFFFF;
}

body.theme-light .tracehawk-modal .modal-header .btn-close {
  border-radius: 6px;
  opacity: .7;
  filter: none;
}

body.theme-light .tracehawk-modal .modal-header .btn-close:hover {
  background-color: var(--modal-close-hover);
  opacity: 1;
}

body.theme-light .tracehawk-tabs,
body.theme-light .modal-tabs {
  border-color: #E2E8F0;
  background: #FFFFFF;
}

body.theme-light .tracehawk-tabs .nav-link,
body.theme-light .modal-tabs .nav-link {
  background: transparent;
  color: #64748B;
}

body.theme-light .tracehawk-tabs .nav-link.active,
body.theme-light .modal-tabs .nav-link.active {
  border-bottom: 2px solid #2563EB;
  background: transparent;
  color: #1E3A8A;
}

body.theme-light #network {
  background:
    radial-gradient(circle at 30% 25%, rgba(56,189,248,.20), transparent 36%),
    radial-gradient(circle at 64% 55%, rgba(167,139,250,.13), transparent 36%),
    linear-gradient(180deg, rgba(248,250,252,.92), rgba(226,232,240,.76));
}

.tracehawk-sidebar-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  scrollbar-width: thin;
}

.tracehawk-sidebar-accordion {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 14px;
  background: rgba(15,23,42,.34);
}

.tracehawk-sidebar-section {
  border: 0;
  border-bottom: 1px solid rgba(148,163,184,.14);
  border-radius: 0 !important;
  background: transparent;
}

.tracehawk-sidebar-section:last-child {
  border-bottom: 0;
}

.tracehawk-sidebar-section .accordion-button {
  gap: 8px;
  border: 0;
  padding: 10px 12px;
  background: transparent;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 900;
  box-shadow: none;
}

.tracehawk-sidebar-section .accordion-button:not(.collapsed) {
  background: rgba(30,41,59,.68);
  color: #ffffff;
}

.tracehawk-sidebar-section .accordion-button:focus {
  box-shadow: inset 0 0 0 1px rgba(56,189,248,.28);
}

.tracehawk-sidebar-section .accordion-button::after {
  filter: invert(1) grayscale(1);
  opacity: .7;
}

.tracehawk-sidebar-section .accordion-button[data-bs-toggle="modal"]::after {
  display: none;
}

.tracehawk-sidebar-section .tracehawk-sidebar-link {
  text-decoration: none;
}

.tracehawk-sidebar-section .tracehawk-sidebar-link::after {
  display: none;
}

.tracehawk-sidebar-section .tracehawk-sidebar-link.active {
  background: rgba(14,165,233,.18);
  color: #ffffff;
}

.tracehawk-sidebar-section .accordion-body {
  display: grid;
  gap: 10px;
  padding: 10px 12px 12px;
  background: rgba(2,6,23,.24);
}

.tracehawk-sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 10px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 16px;
  background: rgba(15,23,42,.62);
}

.tracehawk-user-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.tracehawk-user-actions .btn:disabled {
  opacity: .42;
}

.tracehawk-user-pill {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.tracehawk-user-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(148,163,184,.20);
  border-radius: 999px;
  background: rgba(2,6,23,.58);
  color: #cbd5e1;
}

.tracehawk-user-pill small,
.tracehawk-user-pill b {
  display: block;
  line-height: 1.15;
}

.tracehawk-user-pill small {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tracehawk-user-pill b {
  margin-top: 2px;
  color: #f8fafc;
  font-size: 13px;
}

.tracehawk-views-menu {
  width: min(420px, 92vw);
}

.tracehawk-explore-menu {
  width: min(820px, 94vw);
  max-width: min(820px, 94vw);
  max-height: calc(100dvh - var(--navbar-h) - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.tracehawk-controls-menu {
  width: min(560px, 92vw);
  max-width: min(560px, 92vw);
}

.tracehawk-workspace-menu {
  width: 100%;
}

.explore-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.explore-section {
  min-width: 0;
  max-height: none;
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 10px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 14px;
  background: rgba(15,23,42,.34);
}

.explore-section-wide {
  grid-row: auto;
}

.workspace-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #e5e7eb;
  text-align: left;
  text-decoration: none;
}

.workspace-menu-item + .workspace-menu-item {
  margin-top: 6px;
}

.workspace-menu-item:hover {
  background: rgba(30,41,59,.72);
  color: #ffffff;
}

.workspace-menu-item.active {
  background: rgba(14,165,233,.18);
  color: #ffffff;
}

.workspace-menu-item.sidebar-menu-placeholder {
  cursor: default;
  opacity: .82;
}

.workspace-menu-item.sidebar-menu-placeholder:disabled {
  color: #cbd5e1;
}

.workspace-menu-item.sidebar-menu-placeholder:hover {
  background: transparent;
}

.sidebar-count-pill {
  margin-left: auto;
  min-width: 24px;
  padding: 2px 6px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 999px;
  background: rgba(15,23,42,.48);
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
}

.workspace-menu-item i,
.workspace-menu-item > span[aria-hidden="true"] {
  width: 22px;
  text-align: center;
  color: #f8fafc;
}

.workspace-menu-item b,
.workspace-menu-item small {
  display: block;
}

.workspace-menu-item small {
  margin-top: 2px;
  color: #94a3b8;
  font-size: 11px;
}

.navbar-icon-btn {
  width: 32px;
  min-width: 32px;
  padding-left: 0;
  padding-right: 0;
}

.tracehawk-navbar-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.tracehawk-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 999px;
  background: rgba(15,23,42,.58);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.tracehawk-case-limit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  margin: 0;
  padding: 3px 6px 3px 8px;
  border: 1px solid rgba(167,139,250,.30);
  border-radius: 999px;
  background: rgba(15,23,42,.58);
  color: #c4b5fd;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .055em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.tracehawk-case-limit .form-select {
  width: 58px;
  min-height: 20px;
  padding: 1px 21px 1px 8px;
  border-color: rgba(167,139,250,.28);
  border-radius: 999px;
  background-color: rgba(2,6,23,.78);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
}

.tracehawk-status-badge b {
  color: #f8fafc;
  font-size: 12px;
}

.tracehawk-status-badge-wide {
  max-width: min(32vw, 360px);
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--trace);
}

.tracehawk-status-cases { border-color: rgba(249,115,22,.36); background: rgba(249,115,22,.12); }
.tracehawk-status-nodes { border-color: rgba(56,189,248,.36); background: rgba(56,189,248,.12); }
.tracehawk-status-edges { border-color: rgba(167,139,250,.36); background: rgba(167,139,250,.12); }

.app-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(56, 189, 248, .22), transparent 28%),
    radial-gradient(circle at 78% 20%, rgba(167, 139, 250, .18), transparent 30%),
    radial-gradient(circle at 48% 78%, rgba(249, 115, 22, .10), transparent 32%),
    linear-gradient(135deg, #020617 0%, #030712 45%, #000 100%);
  z-index: -3;
}
.app-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(148,163,184,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
  z-index: -2;
}

.tracehawk-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  height: 100vh;
  min-height: 0;
  margin-top: 0;
  padding: calc(var(--topmenu-total) + 14px) 14px 14px;
}

.workspace-stack {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
}

.dashboard-shell {
  overflow: auto;
}

.dashboard-stage {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 100%;
}

.dashboard-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(56,189,248,.18);
  border-radius: 22px;
  background: rgba(15,23,42,.76);
  box-shadow: 0 20px 55px rgba(0,0,0,.22);
}

.dashboard-heading h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 950;
  letter-spacing: -.045em;
}

.dashboard-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-state {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
}

.dashboard-content {
  display: grid;
  gap: 14px;
}

.dashboard-tabs {
  gap: 6px;
}

.dashboard-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dashboard-tab-content > .tab-pane {
  display: none;
}

.dashboard-tab-content > .active {
  display: grid;
  gap: 14px;
}

.dashboard-subtabs {
  gap: 6px;
  margin-bottom: 12px;
}

.dashboard-subtabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dashboard-subtab-content > .tab-pane {
  display: none;
}

.dashboard-subtab-content > .active {
  display: grid;
  gap: 14px;
}

.dashboard-question-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-question-card {
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(56,189,248,.20);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(14,165,233,.15), rgba(15,23,42,.62));
}

.dashboard-question-card span {
  display: block;
  color: var(--trace);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-question-card strong {
  display: block;
  margin-top: 9px;
  color: #f8fafc;
  font-size: 15px;
  line-height: 1.25;
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-kpi {
  padding: 14px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 18px;
  background: rgba(15,23,42,.64);
}

.dashboard-kpi span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-kpi strong {
  display: block;
  margin-top: 6px;
  color: #f8fafc;
  font-size: 25px;
  line-height: 1;
}

.dashboard-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-brand-panel {
  grid-column: 1 / -1;
}

.dashboard-card-question {
  margin: -4px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-list {
  display: grid;
  gap: 8px;
}

.dashboard-list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 13px;
  background: rgba(2,6,23,.30);
}

.dashboard-list-item b {
  display: block;
  color: #f8fafc;
  font-size: 13px;
}

.dashboard-list-item small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.dashboard-list-item .group-pill {
  align-self: center;
  white-space: nowrap;
}

.dashboard-list-action {
  align-self: center;
  white-space: nowrap;
}

.dashboard-brand-item {
  border-color: rgba(250,204,21,.24);
  background: linear-gradient(135deg, rgba(250,204,21,.10), rgba(15,23,42,.38));
}

.dashboard-geo-item {
  align-items: center;
}

.dashboard-rank-count {
  min-width: 56px;
  color: var(--trace);
  font-size: 18px;
  text-align: right;
}

.crime-state {
  display: contents;
}

.crime-content {
  display: grid;
  gap: 14px;
}

.crime-filter-card {
  padding: 12px 14px;
}

.crime-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.crime-filters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.crime-filters select {
  min-width: 140px;
  color: #e2e8f0;
  background-color: rgba(2,6,23,.45);
  border-color: rgba(148,163,184,.25);
}

.crime-analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.crime-panel {
  min-width: 0;
}

.crime-panel-wide {
  grid-column: 1 / -1;
}

.crime-chart-box {
  position: relative;
  height: 260px;
  margin-top: 8px;
}

.crime-chart-sm {
  height: 210px;
}

.crime-empty-note {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 10px;
  border: 1px dashed rgba(148,163,184,.28);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.crime-table {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.crime-table-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 9px;
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 11px;
  background: rgba(2,6,23,.28);
}

.crime-table-row b {
  display: block;
  color: #f8fafc;
  font-size: 12px;
  word-break: break-all;
}

.crime-table-row small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
}

.crime-table-row strong {
  color: var(--trace);
  font-size: 12px;
  white-space: nowrap;
}

.crime-list {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.crime-resolution-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 4px;
}

.crime-resolution-stat {
  padding: 8px 10px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 12px;
  background: rgba(2,6,23,.28);
}

.crime-resolution-stat span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.crime-resolution-stat strong {
  display: block;
  margin-top: 3px;
  color: #f8fafc;
  font-size: 17px;
}

.infrastructure-stage {
  gap: 16px;
}

.infrastructure-inventory-card {
  display: grid;
  gap: 14px;
}

.infrastructure-heading {
  align-items: end;
}

.infrastructure-heading p {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 13px;
}

.infrastructure-filters {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(150px, 190px) minmax(130px, auto);
  gap: 10px;
  align-items: end;
}

.infrastructure-reused-toggle {
  min-height: 34px;
}

.infrastructure-table-wrap {
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 16px;
}

.infrastructure-table {
  margin: 0;
  color: #dbeafe;
}

.infrastructure-table th {
  color: #94a3b8;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.infrastructure-table td {
  vertical-align: middle;
}

.infrastructure-table td b,
.infrastructure-table td small {
  display: block;
}

.infrastructure-table td b {
  color: #f8fafc;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.infrastructure-table td small {
  margin-top: 2px;
  color: #94a3b8;
  font-size: 11px;
}

.infrastructure-row {
  cursor: pointer;
}

.infrastructure-row:hover {
  background: rgba(56,189,248,.08);
}

.infrastructure-detail-stage {
  gap: 16px;
  min-width: 0;
}

.infrastructure-detail-content {
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

.infrastructure-detail-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}

.infrastructure-detail-hero > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

.infrastructure-detail-hero h2 {
  margin: 8px 0 4px;
  color: #f8fafc;
  font-size: clamp(22px, 2.5vw, 32px);
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.infrastructure-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 0 1 360px;
  gap: 7px;
  min-width: 0;
}

.infrastructure-detail-actions .btn.secondary {
  opacity: .78;
}

.infrastructure-detail-tabs-card {
  min-width: 0;
}

.infrastructure-detail-tabs {
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
  flex-wrap: nowrap;
}

.infrastructure-detail-tabs .nav-link {
  white-space: nowrap;
}

.infrastructure-detail-tab-content {
  min-width: 0;
}

.infrastructure-detail-tab-content .tab-pane {
  min-width: 0;
}

.infrastructure-detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.infrastructure-detail-metric {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 14px;
  background: rgba(15,23,42,.48);
}

.infrastructure-detail-metric span {
  display: block;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.infrastructure-detail-metric strong {
  display: block;
  margin-top: 5px;
  color: #f8fafc;
  font-size: 17px;
  overflow-wrap: anywhere;
}

.infrastructure-detail-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.infrastructure-detail-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.infrastructure-detail-table th,
.infrastructure-detail-table td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.infrastructure-detail-table th:nth-child(1),
.infrastructure-detail-table td:nth-child(1) {
  width: 26%;
}

.infrastructure-detail-table th:nth-child(2),
.infrastructure-detail-table td:nth-child(2),
.infrastructure-detail-table th:nth-child(4),
.infrastructure-detail-table td:nth-child(4) {
  width: 10%;
}

.infrastructure-detail-table th:nth-child(3),
.infrastructure-detail-table td:nth-child(3) {
  width: 16%;
}

.infrastructure-detail-table th:nth-child(5),
.infrastructure-detail-table td:nth-child(5),
.infrastructure-detail-table th:nth-child(6),
.infrastructure-detail-table td:nth-child(6) {
  width: 14%;
}

.infrastructure-detail-table th:nth-child(7),
.infrastructure-detail-table td:nth-child(7) {
  width: 12%;
}

.infrastructure-applications-table th:nth-child(1),
.infrastructure-applications-table td:nth-child(1) {
  width: 46%;
}

.infrastructure-applications-table th:nth-child(2),
.infrastructure-applications-table td:nth-child(2) {
  width: 24%;
}

.infrastructure-applications-table th:nth-child(3),
.infrastructure-applications-table td:nth-child(3),
.infrastructure-applications-table th:nth-child(4),
.infrastructure-applications-table td:nth-child(4) {
  width: 15%;
}

.infrastructure-detail-table a,
.infrastructure-detail-action-stack a {
  color: #7dd3fc;
  font-weight: 800;
  text-decoration: none;
}

.infrastructure-detail-table a:hover,
.infrastructure-detail-action-stack a:hover {
  text-decoration: underline;
}

.infrastructure-detail-action-stack {
  display: grid;
  gap: 4px;
  min-width: 130px;
}

.infrastructure-detail-timeline {
  display: grid;
  gap: 8px;
}

.infrastructure-detail-timeline-item {
  padding: 10px 12px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 13px;
  background: rgba(15,23,42,.42);
}

.infrastructure-detail-timeline-item b,
.infrastructure-detail-timeline-item span,
.infrastructure-detail-timeline-item small {
  display: block;
}

.infrastructure-detail-timeline-item b {
  color: #f8fafc;
  font-size: 13px;
}

.infrastructure-detail-timeline-item span,
.infrastructure-detail-timeline-item small {
  margin-top: 3px;
  color: #94a3b8;
  font-size: 12px;
}

body.theme-light .infrastructure-heading p,
body.theme-light .infrastructure-table th,
body.theme-light .infrastructure-table td small {
  color: #64748B;
}

body.theme-light .infrastructure-table {
  color: #17243A;
}

body.theme-light .infrastructure-table td b {
  color: #17243A;
}

body.theme-light .infrastructure-table-wrap {
  border-color: #E2E8F0;
}

body.theme-light .infrastructure-row:hover {
  background: #F1F5F9;
}

body.theme-light .infrastructure-detail-hero h2,
body.theme-light .infrastructure-detail-metric strong,
body.theme-light .infrastructure-detail-timeline-item b {
  color: #1A365D;
}

body.theme-light .infrastructure-detail-metric,
body.theme-light .infrastructure-detail-timeline-item {
  border-color: #E2E8F0;
  background: #F8FAFC;
}

body.theme-light .infrastructure-detail-metric span,
body.theme-light .infrastructure-detail-timeline-item span,
body.theme-light .infrastructure-detail-timeline-item small {
  color: #526174;
}

body.theme-light .infrastructure-detail-table a,
body.theme-light .infrastructure-detail-action-stack a {
  color: #1A365D;
}

body.theme-light .infrastructure-detail-actions .btn-outline-light {
  border-color: rgba(26,54,93,.36);
  background: #FFFFFF;
  color: #1A365D;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15,23,42,.08);
}

body.theme-light .infrastructure-detail-actions .btn-outline-light:hover,
body.theme-light .infrastructure-detail-actions .btn-outline-light:focus,
body.theme-light .infrastructure-detail-actions .btn-outline-light:active {
  border-color: #1A365D;
  background: #1A365D;
  color: #FFFFFF;
}

body.theme-light .infrastructure-detail-actions .btn-outline-light:focus-visible {
  outline: 2px solid rgba(37,99,235,.35);
  outline-offset: 2px;
}

.investigation-stage {
  gap: 16px;
}

.investigation-filter-card,
.investigation-list,
.investigation-detail-list {
  display: grid;
  gap: 10px;
}

.investigation-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 190px) minmax(150px, 190px);
  gap: 10px;
}

.investigation-list-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.investigation-list-item h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 18px;
  letter-spacing: -.03em;
}

.investigation-list-item p {
  margin: 6px 0 0;
  color: #94a3b8;
  font-size: 13px;
}

.investigation-list-meta {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 210px;
}

.investigation-list-meta small {
  flex-basis: 100%;
  color: #94a3b8;
  text-align: right;
}

.investigation-evidence-badges {
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 5px;
  flex-basis: 100%;
}

.investigation-evidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 999px;
  background: rgba(15,23,42,.52);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.investigation-evidence-badge {
  min-width: 38px;
  justify-content: center;
}

.investigation-evidence-badge-empty {
  opacity: .36;
  filter: saturate(.65);
}

.investigation-evidence-badge-template {
  border-color: rgba(251,191,36,.30);
  color: #fde68a;
}

.investigation-evidence-badge-kit {
  border-color: rgba(248,113,113,.32);
  color: #fecaca;
}

.investigation-evidence-badge-rescue {
  border-color: rgba(192,132,252,.34);
  color: #ddd6fe;
}

.investigation-evidence-badge-finding {
  border-color: rgba(56,189,248,.34);
  color: #bae6fd;
}

.investigation-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.investigation-field-wide {
  grid-column: 1 / -1;
}

.investigation-form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.investigation-task-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) auto;
  gap: 8px;
  margin-bottom: 12px;
}

.investigation-finding-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 180px) minmax(170px, 210px);
  gap: 8px;
  align-items: end;
  margin-bottom: 12px;
}

.investigation-finding-wide {
  grid-column: 1 / -1;
}

.investigation-finding-item {
  align-items: flex-start;
}

.investigation-link-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 12px;
}

.investigation-link-message {
  grid-column: 1 / -1;
  color: #94a3b8;
  font-size: 12px;
}

.investigation-template-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px) minmax(220px, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 12px;
}

.investigation-template-source {
  max-height: 46vh;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 12px;
  background: rgba(2,6,23,.45);
  color: #dbeafe;
  font-size: 12px;
  white-space: pre-wrap;
  overflow: auto;
}

.investigation-template-item {
  align-items: center;
}

.investigation-kit-form {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(148,163,184,.16);
}

.investigation-evidence-tabs {
  margin-bottom: 12px;
}

.investigation-evidence-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.evidence-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.evidence-tab-count-template {
  background: rgba(251,146,60,.18);
  color: #fed7aa;
  border-color: rgba(251,146,60,.34);
}

.evidence-tab-count-kit {
  background: rgba(167,139,250,.18);
  color: #ddd6fe;
  border-color: rgba(167,139,250,.34);
}

.evidence-tab-count-rescue {
  background: rgba(45,212,191,.18);
  color: #99f6e4;
  border-color: rgba(45,212,191,.34);
}

.investigation-evidence-content {
  padding-top: 2px;
}

.investigation-evidence-content .tab-pane {
  min-height: 120px;
}

.investigation-detail-labels {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.investigation-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(148,163,184,.12);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.investigation-label-status-active {
  border-color: rgba(34,197,94,.34);
  background: rgba(22,163,74,.16);
  color: #bbf7d0;
}

.investigation-label-status-draft,
.investigation-label-status-monitoring {
  border-color: rgba(56,189,248,.34);
  background: rgba(14,165,233,.14);
  color: #bae6fd;
}

.investigation-label-status-closed,
.investigation-label-status-archived {
  border-color: rgba(148,163,184,.32);
  background: rgba(100,116,139,.16);
  color: #cbd5e1;
}

.investigation-label-priority-medium {
  border-color: rgba(245,158,11,.36);
  background: rgba(217,119,6,.16);
  color: #fde68a;
}

.investigation-label-priority-low {
  border-color: rgba(45,212,191,.34);
  background: rgba(13,148,136,.14);
  color: #99f6e4;
}

.investigation-label-priority-high,
.investigation-label-priority-critical {
  border-color: rgba(248,113,113,.38);
  background: rgba(220,38,38,.16);
  color: #fecaca;
}

.investigation-label-confidence-low,
.investigation-label-status-needs-review {
  border-color: rgba(245,158,11,.36);
  background: rgba(217,119,6,.16);
  color: #fde68a;
}

.investigation-label-confidence-medium {
  border-color: rgba(56,189,248,.34);
  background: rgba(14,165,233,.14);
  color: #bae6fd;
}

.investigation-label-confidence-high,
.investigation-label-status-accepted {
  border-color: rgba(34,197,94,.34);
  background: rgba(22,163,74,.16);
  color: #bbf7d0;
}

.investigation-label-status-rejected {
  border-color: rgba(248,113,113,.38);
  background: rgba(220,38,38,.16);
  color: #fecaca;
}

.investigation-applications-wrap {
  max-width: 100%;
}

.investigation-applications-table {
  table-layout: fixed;
}

.investigation-applications-table th:nth-child(1),
.investigation-applications-table td:nth-child(1) {
  width: 30%;
}

.investigation-applications-table th:nth-child(2),
.investigation-applications-table td:nth-child(2) {
  width: 20%;
}

.investigation-applications-table th:nth-child(3),
.investigation-applications-table td:nth-child(3) {
  width: 13%;
}

.investigation-applications-table th:nth-child(4),
.investigation-applications-table td:nth-child(4) {
  width: 17%;
}

.investigation-applications-table th:nth-child(5),
.investigation-applications-table td:nth-child(5),
.investigation-applications-table th:nth-child(6),
.investigation-applications-table td:nth-child(6),
.investigation-applications-table th:nth-child(7),
.investigation-applications-table td:nth-child(7) {
  width: 6.6%;
}

.investigation-application-url {
  overflow-wrap: anywhere;
}

.investigation-registration-cell {
  display: grid;
  gap: 3px;
}

.investigation-registration-cell small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.investigation-registration-cell b {
  color: var(--text);
}

.investigation-application-ip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.investigation-application-ip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border: 1px solid rgba(56,189,248,.28);
  border-radius: 999px;
  background: rgba(14,165,233,.12);
  color: #bae6fd;
  font-size: 11px;
  font-weight: 800;
}

.investigation-application-ip.shared {
  border-color: rgba(250,204,21,.38);
  background: rgba(202,138,4,.16);
  color: #fef08a;
}

.investigation-application-ip small {
  color: inherit;
  font-size: 9px;
  letter-spacing: .06em;
  opacity: .85;
  text-transform: uppercase;
}

.investigation-data-rescue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.investigation-data-rescue-prepare {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(56,189,248,.18);
  border-radius: 14px;
  background: rgba(2,6,23,.26);
}

.investigation-data-rescue-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px);
  gap: 10px;
}

.investigation-data-rescue-wide {
  grid-column: 1 / -1;
}

.investigation-data-rescue-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.investigation-data-rescue-records-table {
  margin-top: 12px;
}

.investigation-data-rescue-records-table td {
  overflow-wrap: anywhere;
}

.evidence-delete-btn {
  border-color: rgba(248,113,113,.38);
  color: #fecaca;
}

.investigation-overview-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.investigation-overview-title-field,
.investigation-overview-wide-field {
  grid-column: 1 / -1;
}

body.theme-light .investigation-list-item h3 {
  color: #17243A;
}

body.theme-light .investigation-list-item p,
body.theme-light .investigation-list-meta small,
body.theme-light .investigation-link-message {
  color: #64748B;
}

body.theme-light .investigation-evidence-badge {
  border-color: #CBD5E1;
  background: #F8FAFC;
  color: #1A365D;
}

body.theme-light .investigation-evidence-badge-template {
  border-color: rgba(180,83,9,.28);
  background: #FFFBEB;
  color: #92400E;
}

body.theme-light .investigation-evidence-badge-kit {
  border-color: rgba(185,28,28,.24);
  background: #FEF2F2;
  color: #991B1B;
}

body.theme-light .investigation-evidence-badge-rescue {
  border-color: rgba(88,28,135,.24);
  background: #F5F3FF;
  color: #581C87;
}

body.theme-light .investigation-evidence-badge-finding {
  border-color: rgba(37,99,235,.26);
  background: #DBEAFE;
  color: #1E3A8A;
}

body.theme-light .investigation-link-form .btn-outline-light,
body.theme-light .investigation-finding-form .btn-outline-light {
  background: #FFFFFF;
  border-color: rgba(26,54,93,.38);
  color: #1A365D;
  font-weight: 700;
}

body.theme-light .investigation-link-form .btn-outline-light:hover,
body.theme-light .investigation-link-form .btn-outline-light:focus,
body.theme-light .investigation-link-form .btn-outline-light:active,
body.theme-light .investigation-finding-form .btn-outline-light:hover,
body.theme-light .investigation-finding-form .btn-outline-light:focus,
body.theme-light .investigation-finding-form .btn-outline-light:active {
  background: #1A365D;
  border-color: #1A365D;
  color: #FFFFFF;
}

body.theme-light .investigation-template-source {
  border-color: #E2E8F0;
  background: #F8FAFC;
  color: #17243A;
}

body.theme-light .investigation-label {
  border-color: rgba(26,54,93,.22);
  background: #EEF4FB;
  color: #1A365D;
}

body.theme-light .investigation-label-status-active {
  border-color: rgba(21,128,61,.26);
  background: #DCFCE7;
  color: #166534;
}

body.theme-light .investigation-label-status-draft,
body.theme-light .investigation-label-status-monitoring {
  border-color: rgba(37,99,235,.26);
  background: #DBEAFE;
  color: #1E3A8A;
}

body.theme-light .investigation-label-status-closed,
body.theme-light .investigation-label-status-archived {
  border-color: rgba(71,85,105,.22);
  background: #E2E8F0;
  color: #334155;
}

body.theme-light .investigation-label-priority-medium {
  border-color: rgba(180,83,9,.28);
  background: #FEF3C7;
  color: #92400E;
}

body.theme-light .investigation-label-priority-low {
  border-color: rgba(15,118,110,.24);
  background: #CCFBF1;
  color: #115E59;
}

body.theme-light .investigation-label-priority-high,
body.theme-light .investigation-label-priority-critical {
  border-color: rgba(185,28,28,.28);
  background: #FEE2E2;
  color: #991B1B;
}

body.theme-light .investigation-label-confidence-low,
body.theme-light .investigation-label-status-needs-review {
  border-color: rgba(180,83,9,.28);
  background: #FEF3C7;
  color: #92400E;
}

body.theme-light .investigation-label-confidence-medium {
  border-color: rgba(37,99,235,.26);
  background: #DBEAFE;
  color: #1E3A8A;
}

body.theme-light .investigation-label-confidence-high,
body.theme-light .investigation-label-status-accepted {
  border-color: rgba(21,128,61,.26);
  background: #DCFCE7;
  color: #166534;
}

body.theme-light .investigation-label-status-rejected {
  border-color: rgba(185,28,28,.28);
  background: #FEE2E2;
  color: #991B1B;
}

body.theme-light .investigation-application-ip {
  border-color: rgba(37,99,235,.24);
  background: #DBEAFE;
  color: #1E3A8A;
}

body.theme-light .investigation-application-ip.shared {
  border-color: rgba(180,83,9,.28);
  background: #FEF3C7;
  color: #92400E;
}

body.theme-light .investigation-data-rescue-prepare {
  border-color: rgba(26,54,93,.18);
  background: #F8FAFC;
}

body.theme-light .evidence-tab-count-template {
  background: #FFEDD5;
  color: #9A3412;
  border-color: rgba(194,65,12,.24);
}

body.theme-light .evidence-tab-count-kit {
  background: #EDE9FE;
  color: #5B21B6;
  border-color: rgba(109,40,217,.24);
}

body.theme-light .evidence-tab-count-rescue {
  background: #CCFBF1;
  color: #115E59;
  border-color: rgba(15,118,110,.24);
}

body.theme-light .investigation-template-form .btn-outline-light,
body.theme-light .investigation-template-item .btn-outline-light,
body.theme-light .investigation-data-rescue-prepare .btn-outline-light,
body.theme-light[data-data-rescue-endpoint] .investigation-data-rescue-actions .btn-outline-light,
body.theme-light[data-phishing-kits-endpoint] .investigation-data-rescue-actions .btn-outline-light {
  background: #FFFFFF;
  border-color: rgba(26,54,93,.38);
  color: #1A365D;
  font-weight: 700;
}

body.theme-light .investigation-data-rescue-actions .evidence-delete-btn {
  border-color: rgba(185,28,28,.32);
  color: #991B1B;
}

body.theme-light .investigation-template-form .btn-outline-light:hover,
body.theme-light .investigation-template-form .btn-outline-light:focus,
body.theme-light .investigation-template-form .btn-outline-light:active,
body.theme-light .investigation-template-item .btn-outline-light:hover,
body.theme-light .investigation-template-item .btn-outline-light:focus,
body.theme-light .investigation-template-item .btn-outline-light:active,
body.theme-light .investigation-data-rescue-prepare .btn-outline-light:hover,
body.theme-light .investigation-data-rescue-prepare .btn-outline-light:focus,
body.theme-light .investigation-data-rescue-prepare .btn-outline-light:active,
body.theme-light[data-data-rescue-endpoint] .investigation-data-rescue-actions .btn-outline-light:hover,
body.theme-light[data-data-rescue-endpoint] .investigation-data-rescue-actions .btn-outline-light:focus,
body.theme-light[data-data-rescue-endpoint] .investigation-data-rescue-actions .btn-outline-light:active,
body.theme-light[data-phishing-kits-endpoint] .investigation-data-rescue-actions .btn-outline-light:hover,
body.theme-light[data-phishing-kits-endpoint] .investigation-data-rescue-actions .btn-outline-light:focus,
body.theme-light[data-phishing-kits-endpoint] .investigation-data-rescue-actions .btn-outline-light:active {
  background: #1A365D;
  border-color: #1A365D;
  color: #FFFFFF;
}

.templates-stage {
  gap: 16px;
}

.data-rescue-stage {
  gap: 16px;
}

.phishing-kits-stage {
  gap: 16px;
}

.templates-browser-card {
  overflow: hidden;
}

.templates-heading {
  align-items: end;
}

.templates-search {
  min-width: min(320px, 100%);
}

.templates-browser-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 14px;
}

.templates-list {
  max-height: 62vh;
  overflow: auto;
}

.template-source-item {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.template-source-item.active {
  border-color: rgba(96,165,250,.55);
  background: rgba(37,99,235,.16);
}

.templates-source-panel {
  min-width: 0;
}

.templates-source-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.templates-source-heading h4 {
  margin: 2px 0 0;
  color: #f8fafc;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.templates-source-viewer {
  max-height: 62vh;
  white-space: pre;
}

body.theme-light .template-source-item.active {
  border-color: rgba(26,54,93,.38);
  background: #DBEAFE;
}

body.theme-light .templates-source-heading h4 {
  color: #17243A;
}

.phishing-stage {
  gap: 16px;
}

.phishing-stage .dashboard-kpi-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.phishing-inventory-card {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.phishing-heading {
  align-items: end;
}

.phishing-heading p {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 13px;
}

.phishing-filters {
  display: grid;
  grid-template-columns: minmax(190px, 1.15fr) repeat(5, minmax(110px, .75fr));
  gap: 10px;
  align-items: end;
  min-width: 0;
}

.domain-filters {
  display: grid;
  grid-template-columns: minmax(120px, .7fr) minmax(180px, 1.2fr) repeat(8, minmax(105px, .75fr));
  gap: 10px;
  align-items: end;
  min-width: 0;
}

.domain-toggle {
  min-height: 34px;
}

.domain-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.domain-match-summary {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
}

.phishing-table-wrap {
  max-width: 100%;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 16px;
  overflow-x: auto;
  overflow-y: hidden;
}

.phishing-table {
  table-layout: fixed;
  width: 100%;
  margin: 0;
  min-width: 0;
  color: #dbeafe;
}

.phishing-table th {
  color: #94a3b8;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.phishing-table td {
  vertical-align: middle;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.phishing-table td:last-child {
  white-space: nowrap;
}

.phishing-table td .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: max-content;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  flex-shrink: 0;
}

.phishing-table td .btn i,
.phishing-table td .btn .bi {
  flex: 0 0 auto;
}

.phishing-table td b,
.phishing-table td small {
  display: block;
}

.phishing-table td b {
  color: #f8fafc;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.phishing-table td small {
  max-width: 220px;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 11px;
}

.phishing-table th:nth-child(1),
.phishing-table td:nth-child(1) {
  width: 21%;
}

.phishing-table th:nth-child(2),
.phishing-table td:nth-child(2),
.phishing-table th:nth-child(3),
.phishing-table td:nth-child(3),
.phishing-table th:nth-child(4),
.phishing-table td:nth-child(4),
.phishing-table th:nth-child(7),
.phishing-table td:nth-child(7) {
  width: 8%;
}

.phishing-table th:nth-child(5),
.phishing-table td:nth-child(5) {
  width: 12%;
}

.phishing-table th:nth-child(6),
.phishing-table td:nth-child(6) {
  width: 12%;
}

.phishing-table th:nth-child(8),
.phishing-table td:nth-child(8) {
  width: 8%;
}

.phishing-table th:nth-child(9),
.phishing-table td:nth-child(9) {
  width: 11%;
}

.phishing-table th:nth-child(10),
.phishing-table td:nth-child(10) {
  width: 12%;
}

.phishing-row:hover {
  background: rgba(56,189,248,.08);
}

.phishing-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.phishing-page-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.phishing-download-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.phishing-stage .dashboard-heading {
  flex-wrap: wrap;
}

.phishing-stage .phishing-download-actions {
  width: 100%;
  justify-content: flex-end;
}

.phishing-target-summary,
.phishing-scan-target-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.phishing-infrastructure-sections {
  display: grid;
  gap: 16px;
}

.phishing-infra-table-section {
  min-width: 0;
}

.phishing-infra-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.phishing-infra-table {
  min-width: 680px;
  margin: 0;
  color: var(--text);
  vertical-align: middle;
}

.phishing-infra-table th {
  color: var(--muted);
  background: var(--panel-strong);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

.phishing-infra-table td {
  max-width: 360px;
  border-color: var(--line);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.phishing-selected-target {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-strong);
}

.phishing-selected-target span,
.phishing-selected-target small {
  color: var(--muted);
  font-size: 11px;
}

.phishing-selected-target code {
  color: var(--text);
  overflow-wrap: anywhere;
}

.phishing-infrastructure-sections h3,
.phishing-scan-placeholder h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
}

.phishing-scan-placeholder {
  display: grid;
  gap: 16px;
}

.phishing-scan-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.phishing-tool-card[data-who-dat-card] {
  grid-column: 1 / -1;
}

.phishing-tool-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-strong);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}

.phishing-tool-card > div:first-child {
  min-width: 0;
}

.phishing-tool-technique {
  margin-top: 8px;
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 700;
}

.phishing-tool-card details {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.phishing-tool-card details summary {
  display: inline-block;
  cursor: pointer;
  color: var(--text);
}

.phishing-tool-card details span {
  display: block;
  margin-top: 5px;
  line-height: 1.45;
}

.phishing-tool-output {
  grid-column: 1 / -1;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.phishing-tool-output > summary,
.phishing-raw-output > summary {
  cursor: pointer;
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 700;
}

.phishing-raw-output {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.phishing-tool-card h3,
.phishing-tool-card p {
  margin: 0;
}

.phishing-tool-card .small {
  grid-column: 1 / -1;
}

.phishing-tool-card h3 {
  font-size: 17px;
}

.phishing-tool-card p {
  color: var(--muted);
  font-size: 12px;
}

.phishing-tool-card button {
  align-self: end;
  justify-self: end;
  min-width: 110px;
}

.phishing-evidence-accordion {
  display: grid;
  gap: 10px;
}

.phishing-evidence-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-strong);
}

.phishing-evidence-item summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.phishing-evidence-item summary span {
  color: var(--muted);
  font-size: 12px;
}

.phishing-graph-canvas {
  height: min(68vh, 640px);
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #08111f;
}

.phishing-graph-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.phishing-graph-header h3,
.phishing-graph-header p {
  margin: 0;
}

.phishing-graph-header h3 {
  font-size: 16px;
}

.phishing-graph-header p,
.phishing-graph-header > span {
  color: var(--muted);
  font-size: 12px;
}

.phishing-relationship-table-wrap {
  max-height: 300px;
  margin-top: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.phishing-graph-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 16px;
  align-items: start;
}

.phishing-graph-inspector {
  max-height: min(68vh, 640px);
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-strong);
}

.phishing-entity-list {
  display: grid;
  gap: 6px;
  max-height: 240px;
  margin-top: 14px;
  padding: 12px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-strong);
}

.phishing-entity-list h4 {
  margin: 0 0 4px;
  font-size: 13px;
}

.phishing-entity-row {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr);
  gap: 8px;
  padding: 5px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.phishing-entity-row span {
  color: #7dd3fc;
  font-weight: 700;
}

.phishing-entity-row code {
  overflow-wrap: anywhere;
  color: var(--text);
}

.phishing-graph-inspector h4 {
  margin: 18px 0 6px;
  font-size: 14px;
}

.phishing-graph-focus {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(56,189,248,.35);
  border-radius: 12px;
  background: rgba(14,165,233,.08);
}

.phishing-graph-focus small {
  color: #38bdf8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.phishing-graph-focus strong {
  overflow-wrap: anywhere;
}

.phishing-graph-focus span {
  color: var(--muted);
  font-size: 11px;
}

.phishing-relation-group {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(15,23,42,.5);
}

.phishing-relation-group summary {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  cursor: pointer;
  list-style: none;
}

.phishing-relation-name {
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 800;
}

.phishing-relation-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  align-items: center;
}

.phishing-relation-line span {
  color: var(--muted);
  white-space: nowrap;
}

.phishing-relation-line code {
  overflow-wrap: anywhere;
}

@media (max-width: 1000px) {
  .phishing-graph-workspace { grid-template-columns: 1fr; }
  .phishing-graph-inspector { max-height: none; }
}

.phishing-timeline {
  display: grid;
  gap: 0;
  max-width: 900px;
}

.phishing-timeline-event {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.phishing-timeline-event time {
  color: var(--muted);
  font-size: 12px;
}

.phishing-timeline-event small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.phishing-timeline-event.is-important b {
  color: #38bdf8;
}

@media (max-width: 700px) {
  .phishing-timeline-event {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.phishing-scan-targets,
.phishing-previous-scans {
  padding-top: 4px;
}

.phishing-scan-target {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-strong);
}

.phishing-scan-target span {
  color: var(--muted);
  font-size: 12px;
}

.phishing-scan-target strong {
  color: var(--text);
}

.phishing-scan-set-field {
  max-width: 360px;
}

.domain-table-wrap {
  max-width: 100%;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 16px;
  overflow-x: auto;
  overflow-y: hidden;
}

.domain-table {
  table-layout: fixed;
  width: 100%;
  margin: 0;
  min-width: 980px;
  color: #dbeafe;
}

.domain-table th {
  color: #94a3b8;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.domain-table td {
  vertical-align: middle;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.domain-table th:nth-child(1),
.domain-table td:nth-child(1) {
  width: 18%;
}

.domain-table th:nth-child(2),
.domain-table td:nth-child(2) {
  width: 10%;
}

.domain-table th:nth-child(3),
.domain-table td:nth-child(3),
.domain-table th:nth-child(4),
.domain-table td:nth-child(4) {
  width: 16%;
}

.domain-table th:nth-child(5),
.domain-table td:nth-child(5),
.domain-table th:nth-child(6),
.domain-table td:nth-child(6),
.domain-table th:nth-child(7),
.domain-table td:nth-child(7),
.domain-table th:nth-child(8),
.domain-table td:nth-child(8) {
  width: 10%;
}

.domain-row {
  cursor: pointer;
}

.domain-row:hover {
  background: rgba(56,189,248,.08);
}

.domain-row b,
.domain-row small,
.domain-compact-cell small {
  overflow-wrap: anywhere;
}

.domain-row b,
.domain-row small {
  display: block;
}

.domain-row b {
  color: #f8fafc;
}

.domain-row small,
.domain-compact-cell small {
  color: var(--muted);
}

.domain-compact-cell {
  display: grid;
  gap: 3px;
}

.domain-compact-cell b {
  color: var(--text);
}

.domain-section-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  margin: 18px 0 10px;
}

.domain-correlation-grid,
.domain-research-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.domain-correlation-card {
  color: inherit;
  text-decoration: none;
}

.domain-correlation-card small {
  color: var(--muted);
}

.geomap-stage {
  gap: 16px;
}

.geomap-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.geomap-control-card,
.geomap-map-card {
  min-width: 0;
}

.geomap-tabs-card {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.geomap-tabs {
  gap: 6px;
  overflow-x: auto;
  flex-wrap: nowrap;
}

.geomap-tabs .nav-link {
  white-space: nowrap;
}

.geomap-tab-content,
.geomap-tab-content .tab-pane {
  min-width: 0;
}

.geomap-filter-accordion {
  display: grid;
  gap: 10px;
}

.geomap-control-card {
  padding: 12px;
}

.geomap-filter-accordion .geomap-control-card {
  overflow: hidden;
}

.geomap-filter-toggle {
  gap: 10px;
  padding: 0;
  background: transparent;
  color: #f8fafc;
  box-shadow: none;
}

.geomap-filter-toggle:not(.collapsed),
.geomap-filter-toggle:focus {
  background: transparent;
  color: #f8fafc;
  box-shadow: none;
}

.geomap-filter-toggle span {
  color: #f8fafc;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.geomap-filter-toggle small {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

.geomap-filter-toggle::after {
  filter: invert(1);
}

.geomap-filter-accordion .accordion-body {
  padding: 10px 0 0;
}

.geomap-control-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.geomap-control-heading span {
  color: #f8fafc;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.geomap-control-heading small {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

.geomap-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(145px, 1fr));
  gap: 8px 10px;
  align-items: end;
}

.geomap-filters .settings-field,
.geomap-filters .form-check,
.geomap-filters .btn {
  min-width: 0;
}

.geomap-filters .settings-field:nth-child(6) {
  grid-column: span 2;
}

.geomap-filters .settings-field {
  gap: 3px;
}

.geomap-filters .settings-field span {
  font-size: 10px;
  letter-spacing: .04em;
}

.geomap-filters .form-control-sm,
.geomap-filters .form-select-sm {
  min-height: 30px;
  padding-block: 3px;
  font-size: 12px;
}

.geomap-reused-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  margin: 0;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
}

.geomap-filters .btn-sm {
  min-height: 30px;
  padding-block: 3px;
  font-size: 12px;
}

.geomap-map-card {
  display: grid;
  gap: 10px;
}

.geomap-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 12px;
  align-items: stretch;
}

.geomap-map {
  width: 100%;
  min-height: min(68vh, 720px);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 18px;
  background: rgba(2,6,23,.50);
  overflow: hidden;
}

.geomap-context-panel {
  min-width: 0;
  max-height: min(68vh, 720px);
  padding: 14px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 18px;
  background: rgba(15,23,42,.58);
  overflow: auto;
}

.geomap-context-content {
  display: grid;
  gap: 10px;
}

.geomap-context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.geomap-context-stat {
  padding: 9px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 12px;
  background: rgba(2,6,23,.32);
}

.geomap-context-stat span,
.geomap-context-list small {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
}

.geomap-context-stat strong {
  color: #f8fafc;
  font-size: 16px;
}

.geomap-context-section {
  display: grid;
  gap: 6px;
}

.geomap-context-section h4 {
  margin: 4px 0 0;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.geomap-context-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.geomap-context-section-heading span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 750;
}

.geomap-context-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.geomap-context-tabs button {
  padding: 7px 8px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 999px;
  background: rgba(15,23,42,.36);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 850;
}

.geomap-context-tabs button:hover,
.geomap-context-tabs button.active {
  border-color: rgba(56,189,248,.44);
  background: rgba(56,189,248,.16);
  color: #ffffff;
}

.geomap-context-list {
  display: grid;
  gap: 6px;
}

.geomap-context-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(148,163,184,.13);
  border-radius: 10px;
  background: rgba(15,23,42,.38);
  color: #e2e8f0;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.geomap-context-row.btn-reset {
  width: 100%;
  text-align: left;
}

.geomap-context-row.btn-reset:hover {
  background: rgba(37,99,235,.18);
}

.geomap-context-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 8px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 850;
}

.geomap-context-back:hover {
  background: rgba(37,99,235,.16);
  color: #ffffff;
}

.geomap-context-pagination {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.geomap-context-pagination button {
  flex: 1 1 0;
  padding: 7px 8px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 850;
}

.geomap-context-pagination button:hover:not(:disabled) {
  background: rgba(37,99,235,.16);
  color: #ffffff;
}

.geomap-context-pagination button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.geomap-context-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.geomap-context-actions a {
  padding: 7px 8px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 10px;
  color: #dbeafe;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.geomap-context-actions a:hover {
  background: rgba(37,99,235,.18);
  color: #ffffff;
}

.dashboard-state.compact {
  min-height: 120px;
}

.geomap-map .maplibregl-canvas {
  display: block;
}

.geomap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.geomap-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 999px;
  background: rgba(15,23,42,.55);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 850;
}

.geomap-dot,
.geomap-ring {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.geomap-dot-hot { background: #EF4444; }
.geomap-dot-warm { background: #F59E0B; }
.geomap-dot-cool { background: #38BDF8; }
.geomap-dot-cold { background: #94A3B8; }

.geomap-ring {
  border: 2px solid #F8FAFC;
  background: transparent;
}

.geomap-warning-panel {
  display: grid;
  gap: 8px;
}

.geomap-popup {
  min-width: 220px;
  color: #17243A;
}

.geomap-popup h3 {
  margin: 0 0 4px;
  color: #17243A;
  font-size: 16px;
}

.geomap-popup p {
  margin: 0 0 8px;
  color: #475569;
  font-size: 12px;
}

.geomap-popup dl {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 4px 8px;
  margin: 0 0 10px;
  font-size: 12px;
}

.geomap-popup dt {
  color: #64748B;
  font-weight: 800;
}

.geomap-popup dd {
  margin: 0;
  color: #17243A;
  overflow-wrap: anywhere;
}

.geomap-popup-actions {
  display: grid;
  gap: 5px;
}

.geomap-popup-actions a {
  color: #1A365D;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.geomap-popup-actions a:hover {
  text-decoration: underline;
}

body.theme-light[data-geomap-endpoint] .dashboard-heading .tracehawk-sidebar-toggle {
  border: 1px solid rgba(37,99,235,.32);
  background: #FFFFFF;
  color: #1E3A8A;
  box-shadow: 0 8px 20px rgba(15,23,42,.08);
}

body.theme-light[data-geomap-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:hover,
body.theme-light[data-geomap-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:focus,
body.theme-light[data-geomap-endpoint] .dashboard-heading .tracehawk-sidebar-toggle:active {
  border-color: #2563EB;
  background: #EEF4FB;
  color: #1D4ED8;
}

body.theme-light .geomap-reused-toggle {
  color: #17243A;
}

body.theme-light .geomap-control-heading span {
  color: #1A365D;
}

body.theme-light .geomap-control-heading small {
  color: #526174;
}

body.theme-light .geomap-filter-toggle,
body.theme-light .geomap-filter-toggle:not(.collapsed),
body.theme-light .geomap-filter-toggle:focus {
  color: #1A365D;
}

body.theme-light .geomap-filter-toggle span {
  color: #1A365D;
}

body.theme-light .geomap-filter-toggle small {
  color: #526174;
}

body.theme-light .geomap-filter-toggle::after {
  filter: none;
}

body.theme-light .geomap-map {
  border-color: #D8E1EB;
  background: #EAF0F7;
}

body.theme-light .geomap-context-panel {
  border-color: #D8E1EB;
  background: #FFFFFF;
}

body.theme-light .geomap-context-stat,
body.theme-light .geomap-context-row {
  border-color: #E2E8F0;
  background: #F8FAFC;
  color: #17243A;
}

body.theme-light .geomap-context-stat span,
body.theme-light .geomap-context-list small,
body.theme-light .geomap-context-section-heading span {
  color: #526174;
}

body.theme-light .geomap-context-stat strong,
body.theme-light .geomap-context-section h4 {
  color: #1A365D;
}

body.theme-light .geomap-context-tabs button {
  border-color: #D8E1EB;
  background: #F8FAFC;
  color: #1A365D;
}

body.theme-light .geomap-context-tabs button:hover,
body.theme-light .geomap-context-tabs button.active {
  border-color: rgba(26,54,93,.36);
  background: #EEF4FB;
  color: #1E3A8A;
}

body.theme-light .geomap-context-actions a {
  border-color: rgba(26,54,93,.28);
  color: #1A365D;
}

body.theme-light .geomap-context-actions a:hover {
  background: #EEF4FB;
  color: #1E3A8A;
}

body.theme-light .geomap-context-back {
  border-color: rgba(26,54,93,.22);
  color: #1A365D;
}

body.theme-light .geomap-context-back:hover {
  background: #EEF4FB;
  color: #1E3A8A;
}

body.theme-light .geomap-context-pagination button {
  border-color: rgba(26,54,93,.22);
  color: #1A365D;
}

body.theme-light .geomap-context-pagination button:hover:not(:disabled) {
  background: #EEF4FB;
  color: #1E3A8A;
}

body.theme-light .geomap-legend span {
  border-color: #D8E1EB;
  background: #FFFFFF;
  color: #17243A;
}

body.theme-light .geomap-ring {
  border-color: #1A365D;
}

body.theme-light .geomap-filters .btn-outline-light {
  background: #FFFFFF;
  border-color: rgba(26,54,93,.38);
  color: #1A365D;
  font-weight: 700;
}

body.theme-light .geomap-filters .btn-outline-light:hover,
body.theme-light .geomap-filters .btn-outline-light:focus,
body.theme-light .geomap-filters .btn-outline-light:active {
  background: #1A365D;
  border-color: #1A365D;
  color: #FFFFFF;
}

@media (max-width: 1500px) {
  .geomap-filters {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }
}

@media (max-width: 1320px) {
  .geomap-filters {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

.phishing-json-block {
  max-height: 58vh;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 12px;
  background: rgba(2,6,23,.45);
  color: #dbeafe;
  font-size: 12px;
  white-space: pre-wrap;
  overflow: auto;
}

.phishing-raw-source summary {
  margin-bottom: 10px;
  color: #f8fafc;
  cursor: pointer;
  font-weight: 800;
}

body.theme-light .phishing-heading p,
body.theme-light .phishing-table th,
body.theme-light .phishing-table td small {
  color: #64748B;
}

body.theme-light .domain-match-summary {
  color: #64748B;
}

body.theme-light .phishing-table {
  color: #17243A;
}

body.theme-light .phishing-table td b,
body.theme-light .phishing-raw-source summary {
  color: #17243A;
}

body.theme-light .phishing-table-wrap,
body.theme-light .phishing-json-block {
  border-color: #E2E8F0;
}

body.theme-light .phishing-row:hover {
  background: #F1F5F9;
}

body.theme-light .domain-table {
  color: #17243A;
}

body.theme-light .domain-table th,
body.theme-light .domain-table td small,
body.theme-light .domain-compact-cell small,
body.theme-light .domain-correlation-card small {
  color: #64748B;
}

body.theme-light .domain-table td b,
body.theme-light .domain-compact-cell b {
  color: #17243A;
}

body.theme-light .domain-table-wrap {
  border-color: #E2E8F0;
}

body.theme-light .domain-row:hover {
  background: #F1F5F9;
}

body.theme-light .phishing-json-block {
  background: #F8FAFC;
  color: #17243A;
}

body.theme-light[data-phishings-page="detail"] .dashboard-explore-link {
  --bs-btn-color: #1A365D;
  --bs-btn-border-color: rgba(26,54,93,.38);
  --bs-btn-hover-color: #FFFFFF;
  --bs-btn-hover-bg: #1A365D;
  --bs-btn-hover-border-color: #1A365D;
  --bs-btn-active-color: #FFFFFF;
  --bs-btn-active-bg: #102A43;
  --bs-btn-active-border-color: #102A43;
  background: #FFFFFF;
  border-color: rgba(26,54,93,.38);
  color: #1A365D;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15,23,42,.08);
}

body.theme-light[data-phishings-page="detail"] .dashboard-explore-link:hover,
body.theme-light[data-phishings-page="detail"] .dashboard-explore-link:focus,
body.theme-light[data-phishings-page="detail"] .dashboard-explore-link:active {
  background: #1A365D;
  border-color: #1A365D;
  color: #FFFFFF;
}

body.theme-light[data-phishings-page="detail"] .dashboard-explore-link:focus-visible {
  box-shadow: 0 0 0 .18rem rgba(26,54,93,.24);
}

body.theme-light[data-accounts-handles-endpoint] .dashboard-explore-link,
body.theme-light[data-accounts-handles-endpoint] .infrastructure-detail-actions .btn-outline-light {
  --bs-btn-color: #1A365D;
  --bs-btn-border-color: rgba(26,54,93,.38);
  --bs-btn-hover-color: #FFFFFF;
  --bs-btn-hover-bg: #1A365D;
  --bs-btn-hover-border-color: #1A365D;
  --bs-btn-active-color: #FFFFFF;
  --bs-btn-active-bg: #102A43;
  --bs-btn-active-border-color: #102A43;
  background: #FFFFFF;
  border-color: rgba(26,54,93,.38);
  color: #1A365D;
  font-weight: 800;
}

body.theme-light[data-accounts-handles-endpoint] .dashboard-explore-link:hover,
body.theme-light[data-accounts-handles-endpoint] .dashboard-explore-link:focus,
body.theme-light[data-accounts-handles-endpoint] .dashboard-explore-link:active,
body.theme-light[data-accounts-handles-endpoint] .infrastructure-detail-actions .btn-outline-light:hover,
body.theme-light[data-accounts-handles-endpoint] .infrastructure-detail-actions .btn-outline-light:focus,
body.theme-light[data-accounts-handles-endpoint] .infrastructure-detail-actions .btn-outline-light:active {
  background: #1A365D;
  border-color: #1A365D;
  color: #FFFFFF;
}

.accounts-handles-table th:nth-child(1),
.accounts-handles-table td:nth-child(1) {
  width: 26%;
}

.accounts-handles-table th:nth-child(2),
.accounts-handles-table td:nth-child(2),
.accounts-handles-table th:nth-child(3),
.accounts-handles-table td:nth-child(3) {
  width: 14%;
}

.hud {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}

.panel-card, .graph-toolbar {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15,23,42,.84), rgba(2,6,23,.74));
  border-radius: var(--radius);
  box-shadow: 0 20px 45px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(18px);
}
.panel-card { padding: 14px; }

.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #cbd5e1;
}
.panel-title i { color: var(--trace); }

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(56,189,248,.32);
  background: linear-gradient(135deg, rgba(14,165,233,.18), rgba(124,58,237,.10));
  border-radius: 22px;
  box-shadow: 0 24px 55px rgba(14,165,233,.15);
}
.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--trace), var(--trace-2));
  color: #020617;
  font-weight: 950;
  letter-spacing: -.05em;
  box-shadow: 0 0 32px rgba(56,189,248,.38);
}
.eyebrow {
  color: var(--trace);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -.04em; }
.brand-block p { margin: 3px 0 0; color: #cbd5e1; font-size: 12px; line-height: 1.3; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.metric-card {
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(2,6,23,.58);
  border-radius: 16px;
}
.metric-card span { display: block; font-size: 25px; font-weight: 950; color: #f8fafc; }
.metric-card small { color: var(--muted); text-transform: uppercase; font-size: 10px; letter-spacing: .09em; }

.view-list { display: grid; gap: 8px; }
.view-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #e2e8f0;
  text-align: left;
}
.view-btn:hover, .view-btn.active {
  background: rgba(14,165,233,.18);
  color: white;
}
.view-btn small { color: #94a3b8; }

.form-control, .form-select {
  background-color: rgba(2,6,23,.68) !important;
  border-color: rgba(148,163,184,.28) !important;
  color: #f8fafc !important;
}
.form-control:focus, .form-select:focus {
  border-color: rgba(56,189,248,.74) !important;
  box-shadow: 0 0 0 .2rem rgba(56,189,248,.15) !important;
}

body.theme-light .form-control,
body.theme-light .form-select,
body.theme-light textarea {
  background-color: #EEF2F6 !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}
body.theme-light .form-control::placeholder,
body.theme-light textarea::placeholder {
  color: rgba(15, 23, 42, .45);
  opacity: 1;
}
body.theme-light .form-control:focus,
body.theme-light .form-select:focus,
body.theme-light textarea:focus {
  border-color: #2563EB !important;
  box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .14) !important;
}

body.theme-light .btn-outline-light {
  --bs-btn-color: #1A365D;
  --bs-btn-bg: #FFFFFF;
  --bs-btn-border-color: rgba(26,54,93,.38);
  --bs-btn-hover-color: #FFFFFF;
  --bs-btn-hover-bg: #1A365D;
  --bs-btn-hover-border-color: #1A365D;
  --bs-btn-focus-shadow-rgb: 26,54,93;
  --bs-btn-active-color: #FFFFFF;
  --bs-btn-active-bg: #102A43;
  --bs-btn-active-border-color: #102A43;
  --bs-btn-disabled-color: #64748B;
  --bs-btn-disabled-bg: #F1F5F9;
  --bs-btn-disabled-border-color: #CBD5E1;
  background: #FFFFFF;
  border-color: rgba(26,54,93,.38);
  color: #1A365D;
  font-weight: 700;
}
body.theme-light .btn-outline-light i,
body.theme-light .btn-outline-light .bi,
body.theme-light .btn-primary i,
body.theme-light .btn-primary .bi {
  color: inherit;
}
body.theme-light .btn-outline-light:hover,
body.theme-light .btn-outline-light:focus,
body.theme-light .btn-outline-light:active {
  color: #FFFFFF;
  background: #1A365D;
  border-color: #1A365D;
}
body.theme-light .btn-outline-light:focus-visible {
  box-shadow: 0 0 0 .18rem rgba(26,54,93,.24);
}
body.theme-light .btn-outline-light:disabled,
body.theme-light .btn-outline-light.disabled {
  color: #64748B;
  background: #F1F5F9;
  border-color: #CBD5E1;
  opacity: 1;
}

body.theme-light .btn-primary {
  border-color: #2563EB;
  background: #2563EB;
  color: #FFFFFF;
}
body.theme-light .btn-primary:hover,
body.theme-light .btn-primary:focus {
  border-color: #1E3A8A;
  background: #1E3A8A;
  color: #FFFFFF;
}
body.theme-light .btn-primary:focus-visible {
  box-shadow: 0 0 0 .18rem rgba(37,99,235,.22);
}
body.theme-light .btn-primary:disabled,
body.theme-light .btn-primary.disabled {
  border-color: #93C5FD;
  background: #93C5FD;
  color: #FFFFFF;
  opacity: 1;
}

.graph-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(56,189,248,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 28px 80px rgba(0,0,0,.36);
}
#network {
  width: 100%;
  height: 100%;
  min-height: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(30,64,175,.34), transparent 36%),
    radial-gradient(circle at 64% 55%, rgba(88,28,135,.18), transparent 36%),
    radial-gradient(circle at 50% 50%, rgba(2,6,23,.12), rgba(0,0,0,.45));
}
.graph-toolbar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
}
.graph-toolbar > div:first-child {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}
.graph-toolbar small { display: block; color: var(--muted); font-size: 11px; margin-top: 1px; }
.graph-toolbar .graph-metric-summary {
  color: #94a3b8;
  line-height: 1;
}
.graph-toolbar .graph-summary-line {
  flex-basis: 100%;
  margin-left: 40px;
  color: #94a3b8;
}
.graph-toolbar .tracehawk-sidebar-toggle {
  align-self: flex-start;
  margin-top: 0;
}
.graph-toolbar .graph-summary-line b {
  color: #e5e7eb;
}
.live-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34,197,94,.10), 0 0 20px rgba(34,197,94,.65);
}

.hub-list, .mini-list, .relation-list { display: grid; gap: 8px; }
.hub-item, .mini-item, .relation-item {
  padding: 9px 10px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 13px;
  background: rgba(2,6,23,.44);
}
.hub-item { display: flex; justify-content: space-between; gap: 10px; }
.hub-item b, .mini-item b { font-size: 12px; word-break: break-word; }
.hub-item small, .mini-item small, .relation-item small { color: var(--muted); }
.group-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.th-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .01em;
  white-space: nowrap;
  vertical-align: middle;
}
.th-badge i,
.th-badge .bi {
  color: inherit;
}
.th-badge--danger {
  background: var(--th-badge-danger-bg);
  color: var(--th-badge-danger-fg);
  border-color: var(--th-badge-danger-border);
}
.th-badge--warning {
  background: var(--th-badge-warning-bg);
  color: var(--th-badge-warning-fg);
  border-color: var(--th-badge-warning-border);
}
.th-badge--active {
  background: var(--th-badge-active-bg);
  color: var(--th-badge-active-fg);
  border-color: var(--th-badge-active-border);
}
.th-badge--success {
  background: var(--th-badge-success-bg);
  color: var(--th-badge-success-fg);
  border-color: var(--th-badge-success-border);
}
.th-badge--info {
  background: var(--th-badge-info-bg);
  color: var(--th-badge-info-fg);
  border-color: var(--th-badge-info-border);
}
.th-badge--neutral {
  background: var(--th-badge-neutral-bg);
  color: var(--th-badge-neutral-fg);
  border-color: var(--th-badge-neutral-border);
}
.th-badge-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}
.phishing-badge-strip {
  margin-bottom: 12px;
}

.empty-state {
  min-height: 130px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(148,163,184,.28);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
  padding: 14px;
  font-size: 13px;
}
.selected-heading h2 {
  margin: 10px 0 12px;
  font-size: 21px;
  font-weight: 900;
  word-break: break-word;
}
.selected-entity-card h2 {
  margin: 9px 0 0;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -.04em;
  word-break: break-word;
}
.selected-entity-modal .modal-dialog {
  max-width: min(920px, calc(100vw - 28px));
}
.detail-grid {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px 12px;
  margin: 0;
  font-size: 13px;
}
.detail-grid dt { color: var(--muted); }
.detail-grid dd { margin: 0; color: #f8fafc; word-break: break-word; }

.legend-wrap { display: flex; flex-wrap: wrap; gap: 7px; }
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 999px;
  background: rgba(2,6,23,.44);
  font-size: 11px;
  color: #cbd5e1;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35);
}
.signal-list { margin: 0; padding-left: 18px; color: #cbd5e1; font-size: 12px; }
.signal-list li { margin-bottom: 7px; }

.floating-actions {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.tracehawk-float {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border: 1px solid rgba(56,189,248,.55);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(14,165,233,.95), rgba(124,58,237,.95));
  color: white;
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(56,189,248,.24), 0 0 0 1px rgba(255,255,255,.12) inset;
}
.tracehawk-float:hover { transform: translateY(-1px); box-shadow: 0 24px 60px rgba(56,189,248,.33); }
.tracehawk-float i { font-size: 18px; }

.pulse-ring {
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  border: 1px solid rgba(56,189,248,.35);
  animation: pulse 2.2s infinite;
  pointer-events: none;
}
@keyframes pulse { 0% { transform: scale(.96); opacity: .75; } 70% { transform: scale(1.12); opacity: 0; } 100% { opacity: 0; } }

.btn-tracehawk {
  border: 0;
  background: linear-gradient(135deg, var(--trace), var(--trace-2));
  color: #020617;
  font-weight: 900;
}
.btn-tracehawk:hover { color: #020617; filter: brightness(1.08); }

.tracehawk-modal .modal-content {
  border: 1px solid rgba(56,189,248,.22);
  background: linear-gradient(180deg, rgba(15,23,42,.98), rgba(2,6,23,.98));
  box-shadow: 0 30px 90px rgba(0,0,0,.52);
  border-radius: 24px;
  overflow: hidden;
}
.tracehawk-modal .modal-header {
  border-bottom: 1px solid rgba(148,163,184,.18);
  background:
    radial-gradient(circle at 15% 0%, rgba(56,189,248,.14), transparent 38%),
    rgba(2,6,23,.44);
}
.tracehawk-modal .modal-title { margin: 0; font-size: 24px; font-weight: 950; letter-spacing: -.04em; }
.modal-context { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.filters-modal-header {
  background:
    radial-gradient(circle at 18% 0%, rgba(56,189,248,.16), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(20,184,166,.10), transparent 28%),
    rgba(2,6,23,.50) !important;
}
.filters-modal-controls {
  gap: 9px;
}
.filters-modal-field.tracehawk-case-limit {
  justify-content: space-between;
  width: 100%;
  min-height: 34px;
  padding: 7px 9px 7px 11px;
  border-radius: 12px;
}
.filters-modal-field.tracehawk-case-limit .form-select {
  width: 130px;
}
.filters-case-field {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(130px, 170px);
  align-items: center;
  gap: 8px;
}
.filters-case-field .filters-case-search {
  min-width: 0;
  min-height: 28px;
  border-color: rgba(167,139,250,.24);
  border-radius: 999px;
  background-color: rgba(2,6,23,.70);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 800;
}
.filters-case-field .filters-case-search::placeholder {
  color: rgba(203,213,225,.68);
}
.filters-case-field .form-select {
  width: 100% !important;
}
body.theme-light .filters-case-field .filters-case-search {
  border-color: #CBD5E1;
  background: #EEF2F6;
  color: #17243A;
}
body.theme-light .filters-case-field .filters-case-search::placeholder {
  color: #64748B;
}
.graph-toolbar .navbar-filter-count {
  margin-left: 5px;
  background: rgba(56,189,248,.22);
}
.user-manual-modal-header {
  background:
    radial-gradient(circle at 18% 0%, rgba(56,189,248,.14), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(167,139,250,.12), transparent 30%),
    rgba(2,6,23,.50) !important;
}
.manual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.manual-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.manual-legend-card {
  grid-column: 1 / -1;
}
.manual-card h3,
.manual-icon-list span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.manual-card h3 {
  margin-bottom: 8px;
}
.manual-card p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.45;
}
.manual-pill-list,
.manual-icon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.manual-pill,
.manual-icon-list span {
  padding: 6px 9px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 999px;
  background: rgba(15,23,42,.58);
  color: #e5e7eb;
  font-size: 12px;
}
.manual-pill i,
.manual-icon-list i {
  color: var(--trace);
}
.settings-modal-header {
  background:
    radial-gradient(circle at 18% 0%, rgba(148,163,184,.16), transparent 36%),
    rgba(2,6,23,.50) !important;
}
.settings-sync-card {
  display: grid;
  gap: 8px;
}
.settings-sync-form {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.settings-field,
.settings-toggle,
.settings-readonly {
  display: grid;
  gap: 6px;
  margin: 0;
}
.settings-field span,
.settings-toggle span,
.settings-readonly small {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.settings-toggle {
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 12px;
  background: rgba(15,23,42,.48);
}
.settings-toggle span {
  color: #dbeafe;
}
.settings-readonly {
  padding: 7px 10px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 12px;
  background: rgba(15,23,42,.48);
}
.settings-readonly strong {
  color: #f8fafc;
  font-size: 13px;
}
.settings-api-list {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}
.settings-api-item {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 12px;
  background: rgba(15,23,42,.48);
}
.settings-api-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.settings-api-head strong {
  color: #f8fafc;
  font-size: 14px;
}
.settings-api-desc {
  color: #cbd5e1;
  margin: 0;
}
.settings-api-details {
  color: #94a3b8;
}
.settings-api-details code {
  color: #7dd3fc;
  word-break: break-all;
}
.settings-api-missing {
  color: #fbbf24;
}
.settings-api-missing code {
  color: #fcd34d;
}
.settings-tool-run {
  margin-top: 10px;
}
.settings-tool-result {
  max-height: 220px;
  overflow: auto;
}
.settings-tool-output {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 8px;
  background: rgba(2,6,23,.6);
  color: #cbd5e1;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 200px;
  overflow: auto;
}
.settings-suppression-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.settings-suppression-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}
.settings-suppression-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 999px;
  background: rgba(15,23,42,.48);
  color: #e5e7eb;
  font-size: 12px;
}
.settings-suppression-chip button {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: .7;
}
.settings-suppression-chip button:hover,
.settings-suppression-chip button:focus-visible {
  opacity: 1;
  color: #fca5a5;
}
.settings-suppression-empty {
  color: #94a3b8;
  font-size: 13px;
}
body.theme-light .settings-suppression-chip {
  border-color: rgba(26,54,93,.16);
  background: rgba(255,255,255,.8);
  color: #1e293b;
}
body.theme-light .settings-suppression-empty {
  color: #64748b;
}
.api-badge-in-use {
  background: rgba(16,185,129,.16);
  color: #6ee7b7;
  border-color: rgba(16,185,129,.4);
}
.api-badge-configured {
  background: rgba(251,191,36,.14);
  color: #fcd34d;
  border-color: rgba(251,191,36,.38);
}
.api-badge-available {
  background: rgba(148,163,184,.14);
  color: #cbd5e1;
  border-color: rgba(148,163,184,.35);
}
body.theme-light .api-badge-in-use {
  background: rgba(16,185,129,.12);
  color: #047857;
  border-color: rgba(16,185,129,.35);
}
body.theme-light .api-badge-configured {
  background: rgba(217,119,6,.1);
  color: #b45309;
  border-color: rgba(217,119,6,.35);
}
body.theme-light .api-badge-available {
  background: rgba(71,85,105,.1);
  color: #475569;
  border-color: rgba(71,85,105,.3);
}
.malicious-sites-modal .modal-dialog {
  width: min(1320px, calc(100vw - 48px));
  max-width: min(1320px, calc(100vw - 48px));
}
.malicious-sites-modal .modal-content {
  min-height: min(780px, calc(100vh - 56px));
  border-radius: 24px;
}
.malicious-sites-modal .modal-body {
  padding: 22px 24px 24px;
}
.malicious-modal-header {
  background:
    radial-gradient(circle at 10% 0%, rgba(244,63,94,.22), transparent 36%),
    radial-gradient(circle at 70% 20%, rgba(34,211,238,.16), transparent 38%),
    linear-gradient(135deg, rgba(15,23,42,.94), rgba(3,7,18,.96)) !important;
}
.malicious-control-bar {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(170px, 220px) minmax(140px, 180px) auto auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.malicious-search {
  grid-column: auto;
  width: 100%;
}
.malicious-select {
  min-width: 0;
}
.btn-neopunk {
  border: 1px solid rgba(34,211,238,.38);
  background: linear-gradient(135deg, #22d3ee, #fb7185);
  color: #020617;
  font-weight: 950;
}
.btn-neopunk:hover {
  color: #020617;
  filter: brightness(1.08);
}
.malicious-insight-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.malicious-insight {
  --badge-color: #38bdf8;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  min-height: 0;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--badge-color) 58%, rgba(255,255,255,.20));
  border-radius: 999px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--badge-color) 18%, transparent), rgba(2,6,23,.68)),
    rgba(2,6,23,.72);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset;
}
.malicious-insight-url { --badge-color: #fb7185; }
.malicious-insight-host { --badge-color: #38bdf8; }
.malicious-insight-ip { --badge-color: #facc15; }
.malicious-insight-case { --badge-color: #a78bfa; }
.malicious-insight small {
  color: #dbeafe;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.malicious-insight strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--badge-color) 24%, rgba(255,255,255,.06));
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
}
.malicious-insight-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.malicious-insight-note > div {
  min-width: 0;
}
.malicious-insight-note strong {
  display: block;
  margin-top: 5px;
  color: #f8fafc;
  word-break: break-word;
}
.malicious-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}
.malicious-sites-modal table {
  width: 100% !important;
  max-width: 100%;
  table-layout: fixed;
  margin-bottom: 0;
}
.malicious-sites-modal table th,
.malicious-sites-modal table td {
  min-width: 0;
  padding: 10px 12px;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.malicious-sites-modal table th:nth-child(1),
.malicious-sites-modal table td:nth-child(1) { width: 40%; }
.malicious-sites-modal table th:nth-child(2),
.malicious-sites-modal table td:nth-child(2) { width: 23%; }
.malicious-sites-modal table th:nth-child(3),
.malicious-sites-modal table td:nth-child(3) { width: 20%; }
.malicious-sites-modal table th:nth-child(4),
.malicious-sites-modal table td:nth-child(4) { width: 10%; }
.malicious-sites-modal table th:nth-child(5),
.malicious-sites-modal table td:nth-child(5) {
  width: 7%;
  text-align: center;
  white-space: nowrap;
}
.malicious-download-btn {
  min-width: 34px;
}
.malicious-url-cell {
  max-width: none;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.malicious-role-pill {
  display: inline-flex;
  align-items: center;
  margin: 2px 4px 2px 0;
  padding: 4px 8px;
  border: 1px solid rgba(34,211,238,.24);
  border-radius: 999px;
  background: rgba(34,211,238,.10);
  color: #bae6fd;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}
.malicious-cell-stack {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.malicious-cell-stack small {
  color: #cbd5e1;
  line-height: 1.25;
}
.malicious-cell-stack b {
  color: #f8fafc;
}
.malicious-risk-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.malicious-risk-pill.high { background: rgba(244,63,94,.18); color: #fecdd3; }
.malicious-risk-pill.medium { background: rgba(250,204,21,.14); color: #fef08a; }
.malicious-risk-pill.low { background: rgba(34,197,94,.14); color: #bbf7d0; }
.malicious-sites-modal .dt-container,
.malicious-sites-modal .dt-layout-table,
.malicious-sites-modal .dt-container .dt-search input,
.malicious-sites-modal .dt-container .dt-length select,
.malicious-sites-modal .dt-container .dt-info {
  max-width: 100%;
  color: #dbeafe;
}
.malicious-sites-modal .dt-layout-table > div {
  width: 100%;
  overflow-x: hidden;
}
.malicious-sites-modal .dt-container .dt-search input,
.malicious-sites-modal .dt-container .dt-length select {
  border-color: rgba(148,163,184,.24);
  background-color: rgba(2,6,23,.65);
}
.malicious-sites-modal .dt-layout-row {
  gap: 14px;
  margin: 12px 0;
}
.timeline-modal-header {
  background:
    radial-gradient(circle at 18% 0%, rgba(56,189,248,.16), transparent 34%),
    rgba(2,6,23,.50) !important;
}
.timeline-control-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.timeline-control-card h3 {
  margin: 8px 0 5px;
  font-size: 22px;
  letter-spacing: -.035em;
}
.timeline-brand-filter {
  display: grid;
  gap: 6px;
  margin: 0;
}
.timeline-brand-filter span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.timeline-stage-card {
  min-height: 470px;
}
.timeline-container {
  min-height: 420px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(2,6,23,.44);
}
.timeline-modal .vis-timeline {
  border: 0;
  color: #e5e7eb;
}
.timeline-modal .vis-panel,
.timeline-modal .vis-time-axis .vis-text {
  color: #cbd5e1;
}
.timeline-modal .vis-item {
  border-color: rgba(56,189,248,.70);
  border-radius: 999px;
  background: rgba(56,189,248,.18);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
}
.timeline-modal .vis-item.vis-selected {
  border-color: rgba(167,139,250,.95);
  background: rgba(167,139,250,.30);
}
.reports-modal-header {
  background:
    radial-gradient(circle at 16% 0%, rgba(167,139,250,.22), transparent 36%),
    radial-gradient(circle at 88% 0%, rgba(56,189,248,.12), transparent 30%),
    rgba(2,6,23,.50) !important;
}
.insights-modal-header {
  background:
    radial-gradient(circle at 18% 0%, rgba(56,189,248,.16), transparent 36%),
    rgba(2,6,23,.50) !important;
}
.insights-modal .modal-dialog {
  max-width: min(1120px, calc(100vw - 40px));
}
.insights-tabs {
  width: fit-content;
  max-width: 100%;
}
.insights-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}
.insights-summary-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.insight-stat {
  padding: 12px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 14px;
  background: rgba(15,23,42,.50);
}
.insight-stat small {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.insight-stat strong {
  display: block;
  margin-top: 5px;
  color: #f8fafc;
  font-size: 20px;
  line-height: 1.1;
}
.insights-selected-context {
  grid-column: 1 / -1;
}
.evidence-inspector-card {
  grid-column: 1 / -1;
}
.insight-explanation-card {
  grid-column: 1 / -1;
}
.correlation-explanation {
  display: grid;
  gap: 12px;
}
.correlation-explanation-heading {
  display: grid;
  gap: 7px;
}
.correlation-explanation-heading strong {
  color: #f8fafc;
  font-size: 15px;
  font-weight: 900;
}
.correlation-explanation-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.correlation-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.correlation-metric-grid > div {
  padding: 10px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 12px;
  background: rgba(2,6,23,.30);
}
.correlation-metric-grid small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.correlation-metric-grid strong {
  display: block;
  margin-top: 4px;
  color: #f8fafc;
  font-size: 18px;
}
.correlation-explanation h4 {
  margin: 0 0 6px;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.correlation-explanation-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: #dbeafe;
  font-size: 13px;
}
.correlation-limitations-list {
  color: #fde68a;
}
.evidence-inspector {
  display: grid;
  gap: 12px;
}
.evidence-section {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 14px;
  background: rgba(15,23,42,.38);
}
.evidence-section h4 {
  margin: 0;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.relationship-triple {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.relationship-endpoint {
  padding: 6px 9px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 10px;
  background: rgba(2,6,23,.42);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  word-break: break-word;
}
.evidence-detail-grid {
  grid-template-columns: 120px minmax(0, 1fr);
}
.evidence-timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.evidence-timeline-grid > div {
  padding: 10px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 12px;
  background: rgba(2,6,23,.32);
}
.evidence-timeline-grid small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.evidence-timeline-grid strong {
  display: block;
  margin-top: 4px;
  color: #f8fafc;
  font-size: 12px;
  word-break: break-word;
}
.evidence-case-list {
  display: grid;
  gap: 7px;
}
.evidence-case-row {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 12px;
  background: rgba(2,6,23,.28);
}
.evidence-case-row b,
.evidence-case-row span {
  color: #f8fafc;
  font-size: 12px;
}
.evidence-case-row small {
  color: var(--muted);
}
.evidence-empty {
  min-height: 86px;
}
.insights-modal .tab-pane .modal-card {
  min-height: 180px;
}
.reports-empty-state {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
  border-style: dashed;
}
.reports-workspace {
  display: grid;
  gap: 14px;
}
.reports-brief-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background:
    radial-gradient(circle at 8% 0%, rgba(248,113,113,.12), transparent 32%),
    rgba(2,6,23,.50);
}
.reports-brief-card h3 {
  margin: 8px 0 6px;
  font-size: 22px;
  letter-spacing: -.035em;
}
.report-learning-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.report-learning-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 999px;
  background: rgba(15,23,42,.56);
  color: #dbeafe;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .01em;
}
.report-learning-row i {
  color: #c4b5fd;
  font-size: 12px;
}
.reports-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.reports-action-row .btn {
  min-width: 132px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 13px;
  line-height: 1.1;
}
.btn-report-more {
  border: 1px solid rgba(167,139,250,.58);
  background:
    linear-gradient(135deg, rgba(124,58,237,.90), rgba(167,139,250,.72));
  color: #f8fafc;
  font-weight: 850;
  box-shadow: 0 10px 26px rgba(88,28,135,.22);
}
.btn-report-more:hover,
.btn-report-more:focus {
  border-color: rgba(216,180,254,.78);
  background:
    linear-gradient(135deg, rgba(147,51,234,.98), rgba(192,132,252,.86));
  color: #ffffff;
}
.reports-customization {
  margin-top: 14px;
  grid-column: 1 / -1;
}
.reports-customization-inner {
  padding: 12px;
  border: 1px solid rgba(167,139,250,.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(167,139,250,.12), transparent 35%),
    rgba(15,23,42,.54);
}
.reports-card-dropdown .report-preview {
  margin-top: 12px;
}
.report-plan-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}
.report-plan-list div {
  padding: 10px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 13px;
  background: rgba(15,23,42,.48);
}
.report-plan-list b,
.report-plan-list span {
  display: block;
}
.report-plan-list b {
  color: #f8fafc;
  font-size: 13px;
}
.report-plan-list span {
  margin-top: 2px;
  color: #94a3b8;
  font-size: 12px;
}
.report-preview {
  min-height: 360px;
  max-height: min(58vh, 620px);
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 16px;
  overflow: auto;
  background: rgba(0,0,0,.34);
  color: #e5e7eb;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.reports-malicious-card {
  display: grid;
  gap: 14px;
  background:
    radial-gradient(circle at 8% 0%, rgba(56,189,248,.12), transparent 34%),
    rgba(2,6,23,.50);
}
.reports-malicious-heading {
  align-items: center;
  margin-bottom: 0;
}
.reports-malicious-heading h3 {
  margin: 8px 0 5px;
  font-size: 22px;
  letter-spacing: -.035em;
}
.reports-malicious-toolbar {
  display: grid;
  grid-template-columns: 120px minmax(180px, 320px);
  align-items: center;
  gap: 10px;
}
.reports-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.reports-kpi {
  min-height: 72px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--kpi-color, #38bdf8) 42%, transparent);
  border-radius: 15px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--kpi-color, #38bdf8) 16%, transparent), rgba(2,6,23,.58));
}
.reports-kpi small {
  display: block;
  color: #cbd5e1;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.reports-kpi strong {
  display: block;
  margin-top: 6px;
  color: #f8fafc;
  font-size: 21px;
  line-height: 1.15;
  word-break: break-word;
}
.reports-kpi-url { --kpi-color: #fb7185; }
.reports-kpi-case { --kpi-color: #a78bfa; }
.reports-kpi-host { --kpi-color: #38bdf8; }
.report-preview-compact {
  min-height: 220px;
  max-height: 340px;
}
.tracehawk-tabs {
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 18px;
  background: rgba(2,6,23,.52);
}
.tracehawk-tabs .nav-link {
  border-radius: 13px;
  color: #cbd5e1;
  font-weight: 800;
}
.tracehawk-tabs .nav-link.active {
  background: linear-gradient(135deg, rgba(56,189,248,.95), rgba(167,139,250,.95));
  color: #020617;
}
.info-tile, .modal-card, .case-dropzone, .agent-console, .agent-sidecar {
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 18px;
  background: rgba(2,6,23,.50);
  padding: 16px;
}
.info-tile small { display: block; color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: .09em; }
.info-tile strong { display: block; margin-top: 4px; font-size: 25px; }
.info-tile span { color: #cbd5e1; font-size: 12px; }
.modal-card h3, .case-dropzone h3, .agent-sidecar h3 { margin: 0 0 10px; font-size: 16px; font-weight: 900; }
.modal-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.modal-card-heading h3 {
  margin: 0;
}
.kv-table { display: grid; gap: 8px; }
.kv-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(148,163,184,.12); }
.kv-row span:first-child { color: var(--muted); font-size: 12px; }
.kv-row span:last-child { word-break: break-word; }
.relation-item { display: grid; gap: 4px; }
.relation-path { color: #f8fafc; font-size: 13px; word-break: break-word; }
.relationship-inspect-action {
  justify-self: start;
  width: fit-content;
  margin-top: 2px;
  padding: 3px 8px;
  border: 1px solid rgba(56,189,248,.28);
  border-radius: 999px;
  color: #bae6fd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.relationship-inspect-action:hover {
  border-color: rgba(56,189,248,.55);
  background: rgba(56,189,248,.12);
  color: #f0f9ff;
}

.case-dropzone {
  min-height: 420px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 14px;
  border-style: dashed;
  border-color: rgba(56,189,248,.35);
}
.case-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(56,189,248,.12);
  color: var(--trace);
  font-size: 32px;
}
.case-toggle { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.case-input-box { width: min(760px, 100%); }
.case-result {
  width: min(760px, 100%);
  padding: 12px;
  border: 1px solid rgba(34,197,94,.34);
  border-radius: 14px;
  background: rgba(34,197,94,.10);
  color: #dcfce7;
  text-align: left;
  word-break: break-word;
}

.agent-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  min-height: 480px;
}
.agent-console { display: flex; flex-direction: column; min-height: 480px; padding: 0; overflow: hidden; }
.agent-messages { flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.chat-message { max-width: 82%; padding: 10px 12px; border-radius: 16px; font-size: 13px; line-height: 1.42; }
.chat-message.user { align-self: flex-end; background: linear-gradient(135deg, rgba(56,189,248,.9), rgba(167,139,250,.9)); color: #020617; font-weight: 700; }
.chat-message.agent { align-self: flex-start; background: rgba(15,23,42,.86); border: 1px solid rgba(148,163,184,.18); color: #e2e8f0; }
.agent-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(148,163,184,.18); }
.prompt-list { display: grid; gap: 8px; }
.prompt-chip {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(148,163,184,.20);
  background: rgba(15,23,42,.72);
  color: #dbeafe;
  border-radius: 12px;
  padding: 9px 10px;
  font-size: 12px;
}
.prompt-chip:hover { border-color: rgba(56,189,248,.55); background: rgba(14,165,233,.14); }
.toast-host { position: fixed; top: 18px; right: 18px; z-index: 2000; display: grid; gap: 8px; }
.trace-toast {
  padding: 10px 12px;
  border: 1px solid rgba(148,163,184,.25);
  border-radius: 12px;
  background: rgba(15,23,42,.95);
  box-shadow: 0 14px 40px rgba(0,0,0,.32);
  color: #f8fafc;
  font-size: 13px;
}

@media (min-width: 1181px) {
  .tracehawk-shell {
    margin-left: 0;
  }
}

@media (max-width: 1180px) {
  body { overflow: auto; }
  .tracehawk-topmenu {
    position: static;
  }
  .tracehawk-menubar {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--menubar-h);
    padding: 4px 8px;
    row-gap: 2px;
  }
  .tracehawk-shell { height: auto; min-height: 100dvh; grid-template-columns: 1fr; padding-top: 14px; }
  .workspace-stack { order: 2; }
  .dashboard-kpi-grid,
  .dashboard-question-grid,
  .dashboard-panel-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-heading {
    flex-wrap: wrap;
  }
  .infrastructure-filters {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .infrastructure-detail-hero {
    flex-direction: column;
  }
  .infrastructure-detail-actions {
    justify-content: flex-start;
    flex-basis: auto;
    width: 100%;
  }
  .infrastructure-detail-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .phishing-filters {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .domain-filters {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .domain-correlation-grid,
  .domain-research-grid {
    grid-template-columns: 1fr;
  }
  .templates-heading {
    align-items: flex-start;
  }
  .templates-browser-grid {
    grid-template-columns: 1fr;
  }
  .templates-search {
    width: 100%;
  }
  .geomap-kpi-grid,
  .geomap-filters {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .geomap-control-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
  .geomap-workspace {
    grid-template-columns: 1fr;
  }
  .geomap-context-panel {
    max-height: none;
  }
  .investigation-filters,
  .investigation-data-rescue-grid,
  .investigation-form,
  .investigation-overview-form-grid,
  .investigation-template-form,
  .investigation-finding-form,
  .investigation-task-form {
    grid-template-columns: 1fr;
  }
  .investigation-list-item {
    flex-direction: column;
  }
  .investigation-list-meta small {
    text-align: left;
  }
  .hud { max-height: none; overflow: visible; }
  .graph-stage { height: 70vh; min-height: 560px; }
  .selected-card { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --navbar-h: 58px; }
  .metric-grid, .agent-layout { grid-template-columns: 1fr; }
  .correlation-metric-grid,
  .evidence-timeline-grid { grid-template-columns: 1fr; }
  .graph-toolbar { align-items: flex-start; flex-direction: column; }
  .modal-card-heading { flex-direction: column; }
  .settings-sync-form {
    grid-template-columns: 1fr;
  }
  .infrastructure-detail-actions .btn {
    width: 100%;
  }
  .infrastructure-detail-metrics {
    grid-template-columns: 1fr;
  }
  .tracehawk-navbar-badges {
    justify-content: flex-start;
    margin-top: 8px;
    width: 100%;
  }
  .tracehawk-status-badge-wide {
    max-width: 100%;
    width: 100%;
  }
  .tracehawk-navbar-controls {
    grid-template-columns: 1fr;
    min-width: min(86vw, 360px);
  }
  .tracehawk-search-wrap,
  .navbar-select,
  .navbar-utility-btn {
    width: 100%;
  }
  .tracehawk-dropdown {
    min-width: min(92vw, 360px);
  }
  .tracehawk-explore-menu {
    width: min(92vw, 420px);
  }
  .explore-grid {
    grid-template-columns: 1fr;
  }
  .explore-section-wide {
    grid-row: auto;
  }
  .floating-actions { right: 14px; bottom: 14px; }
  .tracehawk-float span:not(.pulse-ring) { display: none; }
  .malicious-control-bar {
    grid-template-columns: 1fr;
  }
  .malicious-insight-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .malicious-insight-note {
    align-items: flex-start;
    flex-direction: column;
  }
  .reports-brief-card {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }
  .reports-malicious-toolbar,
  .reports-kpi-row,
  .timeline-control-card {
    grid-template-columns: 1fr;
  }
  .insights-grid,
  .insights-summary-card,
  .manual-grid,
  .manual-grid-two {
    grid-template-columns: 1fr;
  }
  .kv-row { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 420px) {
  .tracehawk-navbar-brand {
    padding-right: 2px;
  }
  .tracehawk-navbar-brand .tracehawk-brand-text {
    display: none;
  }
}

/* Relationship semantics layer */
.relation-legend, .relation-chip-wrap, .relation-mix, .semantic-paths {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.relation-pill, .relation-chip, .relation-mix-item {
  --rel-color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--rel-color) 55%, transparent);
  background: color-mix(in srgb, var(--rel-color) 16%, transparent);
  color: #e5e7eb;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.relation-pill::before, .relation-chip::before, .relation-mix-item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--rel-color);
  box-shadow: 0 0 14px color-mix(in srgb, var(--rel-color) 55%, transparent);
}
.relation-chip small, .relation-mix-item small {
  color: #cbd5e1;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.relation-help {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}
.path-card {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 14px;
  background: rgba(15,23,42,.56);
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-word;
}
.path-card b { color: #f8fafc; }
.path-hop {
  color: var(--trace);
  font-weight: 900;
}
.relation-path .relation-pill {
  margin-right: 6px;
  vertical-align: middle;
}
.assertion-item {
  border-color: rgba(94, 234, 212, .28);
  background: linear-gradient(135deg, rgba(20, 184, 166, .12), rgba(15, 23, 42, .72));
}
.graph-toolbar .form-select-sm {
  width: auto;
  min-width: 150px;
}

@media (max-width: 575px) {
  .filters-case-field {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .filters-case-field span {
    width: 100%;
  }
}

.lang-switcher {
  font-weight: 600;
  letter-spacing: .4px;
  min-width: 42px;
  padding: .25rem .5rem;
  white-space: nowrap;
}

.lang-switcher-fixed {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 1080;
}

.lang-switcher-header-host {
  align-items: flex-start !important;
}

.lang-switcher-header-host > .lang-switcher {
  margin-left: auto;
  margin-top: 2px;
}

body.theme-light .lang-switcher {
  --bs-btn-color: #1A365D;
  --bs-btn-border-color: rgba(26,54,93,.38);
  --bs-btn-hover-bg: #1A365D;
  --bs-btn-hover-color: #ffffff;
}

/* ============================================================
   IOC Graph Hunter module — VirusTotal-style workspace
   ============================================================ */
.ioc-body {
  overflow: hidden;
}

.ioc-app {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #04060d;
  color: var(--text);
  padding-top: var(--topmenu-total);
}

/* ── cabecera superior 46px ─────────────────────────────────── */
.ioc-header {
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: var(--panel-solid);
  border-bottom: 1px solid #10131f;
  z-index: 10;
}

.ioc-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ioc-header-icon:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.ioc-header-icon.text-link {
  text-decoration: none;
}

.ioc-vt-logo {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
}

.ioc-vt-logo span {
  border-radius: 2px;
  border: 1px solid #6aa7f8;
}

.ioc-vt-logo span.ioc-logo-f {
  background: #6aa7f8;
  border-color: #6aa7f8;
}

.ioc-header-title {
  font-size: 14px;
  font-weight: 500;
  color: #eef1f8;
  margin: 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ioc-scans-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #1e3a5f;
  background: rgba(30, 58, 95, 0.5);
  color: #93c5fd;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  white-space: nowrap;
}

.ioc-header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ioc-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-left: 2px;
}

/* ── barra de menús 36px ────────────────────────────────────── */
.ioc-menubar {
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 8px;
  background: var(--panel-solid);
  border-bottom: 1px solid #10131f;
  z-index: 60;
  position: relative;
}

.ioc-menu-trigger {
  height: 28px;
  padding: 0 10px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text-soft);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ioc-menu-trigger:hover,
.ioc-menu-trigger[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.05);
}

.ioc-menubar .dropdown-menu {
  background: var(--panel-solid);
  border: 1px solid var(--line-solid);
  color: var(--text);
  min-width: 230px;
  max-height: calc(100dvh - var(--topmenu-total) - 70px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 6px;
  padding: 4px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.ioc-menubar .dropdown-item {
  color: var(--text);
  font-size: 13px;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
}

.ioc-menubar .dropdown-item:hover,
.ioc-menubar .dropdown-item:focus {
  background: var(--accent);
  color: #fff;
}

.ioc-menubar .dropdown-item.disabled,
.ioc-menubar .dropdown-item:disabled {
  color: var(--muted-2);
}

.ioc-menubar .dropdown-divider {
  border-top-color: var(--line-solid);
}

.ioc-mn-check {
  font-size: 14px;
  margin-right: 4px;
  vertical-align: -2px;
}

/* ── cuerpo ─────────────────────────────────────────────────── */
.ioc-main-row {
  flex: 1;
  min-height: 0;
  display: flex;
}

/* ── panel izquierdo 300px ──────────────────────────────────── */
.ioc-left-panel {
  width: 300px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  background: var(--surface-3);
  border-right: 1px solid var(--panel-solid);
  min-height: 0;
  overflow: hidden;
}

.ioc-panel-nodes {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.ioc-panel-fortra {
  flex: 0 0 33.333%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--panel-solid);
}

.ioc-panel-scans {
  flex: 0 0 40%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--panel-solid);
}

.ioc-panel-askai {
  flex-shrink: 0;
  border-top: 1px solid var(--panel-solid);
  background: var(--surface-3);
}

.ioc-section-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-2);
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text);
}

.ioc-sec-ico {
  color: #6aa7f8;
  font-size: 14px;
  margin-right: 4px;
}

.ioc-sec-count {
  font-size: 11px;
  color: var(--muted);
}

.ioc-scan-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ── Ask AI (placeholder) ───────────────────────────────────── */
.ioc-askai-body {
  padding: 8px;
}

.ioc-askai-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.ioc-askai-input {
  flex: 1;
  min-height: 0;
  resize: none;
  border-radius: 6px;
  border: 1px solid var(--line-solid);
  background: var(--bg);
  color: #eef1f8;
  font-size: 12px;
  padding: 6px 8px;
  outline: none;
}

.ioc-askai-input:focus {
  border-color: #6aa7f8;
}

.ioc-askai-input:disabled {
  opacity: 0.55;
}

.ioc-askai-send {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid var(--line-solid);
  background: var(--panel-solid);
  color: #c0c6d8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ioc-askai-send:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ioc-askai-hint {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--muted-2);
  line-height: 1.5;
}

/* ── lienzo ─────────────────────────────────────────────────── */
.ioc-canvas-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  background: #04060d;
}

.ioc-searchbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  z-index: 30;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: rgba(21, 24, 38, 0.95);
  border-bottom: 1px solid var(--panel-solid);
}

.ioc-searchbar input {
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
}

.ioc-searchbar input::placeholder {
  color: var(--muted-2);
}

.ioc-search-icons {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
}

.ioc-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ioc-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.ioc-ghost:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.ioc-canvas {
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 25% 25%, rgba(127, 180, 234, 0.05), transparent 45%),
    radial-gradient(circle at 75% 75%, rgba(224, 138, 183, 0.04), transparent 45%),
    #04060d;
}

/* toolbar derecha */
.ioc-right-toolbar {
  position: absolute;
  right: 8px;
  top: 64px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ioc-tool-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid var(--line-solid);
  background: var(--panel-solid);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ioc-tool-btn:hover {
  color: #fff;
}

.ioc-tool-btn.active {
  border-color: #6aa7f8;
  background: var(--accent);
  color: #fff;
}

.ioc-tool-btn.highlight {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.75);
  color: #fff;
}

/* controles zoom verticales */
.ioc-zoom-col {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ioc-zoom-col button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  padding: 2px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.ioc-zoom-col button:hover {
  color: #fff;
}

.ioc-zoom-col #iocFitBtn {
  border: 1px solid rgba(160, 168, 189, 0.5);
  border-radius: 4px;
  padding: 4px;
  font-size: 14px;
}

/* tooltip hover de nodo */
.ioc-hover-tip {
  position: absolute;
  z-index: 40;
  width: 256px;
  border-radius: 6px;
  border: 1px solid var(--line-solid);
  background: var(--panel-solid);
  padding: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  font-size: 12px;
}

.ioc-hover-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ioc-hover-head .ioc-node-badge {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.ioc-hover-value {
  min-width: 0;
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ioc-hover-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.ioc-hover-meta p {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ioc-hover-hint {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 11px;
}

/* drawer de commonalities */
.ioc-common-drawer {
  position: absolute;
  top: 52px;
  bottom: 0;
  right: 0;
  z-index: 40;
  width: 320px;
  display: flex;
  flex-direction: column;
  background: var(--surface-3);
  border-left: 1px solid var(--panel-solid);
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.4);
}

.ioc-common-drawer-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--panel-solid);
  background: var(--surface-2);
  padding: 9px 12px;
}

.ioc-common-drawer-head .ioc-sec-ico {
  margin: 0;
}

.ioc-common-drawer-head .ioc-common-sub {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ioc-common-drawer-head .ioc-common-close {
  margin-left: auto;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 4px;
  border-radius: 4px;
}

.ioc-common-drawer-head .ioc-common-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.ioc-common-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.ioc-common-foot {
  flex-shrink: 0;
  border-top: 1px solid var(--panel-solid);
  padding: 8px 12px;
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted-2);
}

.ioc-common-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}

.ioc-common-group-count {
  margin-left: auto;
  border-radius: 4px;
  background: var(--bg);
  padding: 0 6px;
  font-size: 10px;
  color: var(--muted);
}

.ioc-common-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(19, 24, 39, 0.6);
  cursor: pointer;
}

.ioc-common-entry:hover {
  background: rgba(21, 24, 38, 0.6);
}

.ioc-common-value {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ioc-common-nodes {
  flex-shrink: 0;
  border-radius: 4px;
  background: var(--bg);
  padding: 0 6px;
  font-size: 10px;
  color: var(--muted);
}

.ioc-common-eye {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 4px;
  border-radius: 4px;
  font-size: 14px;
}

.ioc-common-eye:hover {
  background: #1c2233;
  color: #fff;
}

.ioc-common-hub {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #5bd9a9;
  padding: 4px;
  border-radius: 4px;
  font-size: 14px;
}

.ioc-common-hub:hover {
  background: #1c2233;
}

.ioc-common-empty {
  padding: 16px 12px;
  font-size: 12px;
  font-style: italic;
  line-height: 1.6;
  color: var(--muted);
}

/* hint de grafo vacío */
.ioc-empty-hint {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #9aa7c0;
  font-size: 13px;
  pointer-events: none;
}

.ioc-empty-hint i {
  font-size: 34px;
  color: #3d5a8a;
}

.ioc-empty-hint b {
  color: var(--text);
  font-size: 15px;
}

.ioc-empty-hint .ioc-vt-btn {
  pointer-events: auto;
}

/* menú contextual */
.ioc-context-menu {
  position: absolute;
  z-index: 60;
  min-width: 220px;
  max-width: 360px;
  max-height: 72vh;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(21,24,38,0.96), rgba(15,18,30,0.98));
  border: 1px solid rgba(35,44,66,0.85);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(2,6,23,0.66), 0 6px 18px rgba(0,0,0,0.45);
  padding: 6px;
  backdrop-filter: blur(6px);
}

.ioc-ctx-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.ioc-ctx-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(35,44,66,0.6);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  color: #98a2b3;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.ioc-ctx-header i {
  flex-shrink: 0;
}

.ioc-ctx-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  border: none;
  background: transparent;
  color: #e6eef8;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, transform 0.06s ease;
}

.ioc-ctx-item:hover {
  background: rgba(255,255,255,0.04);
  color: #ffffff;
  transform: translateY(-1px);
}

.ioc-ctx-item.danger {
  color: var(--danger);
}

.ioc-ctx-item.danger:hover {
  background: rgba(244,63,94,0.12);
  color: #fff;
}

.ioc-ctx-item.disabled {
  color: var(--muted-2);
  cursor: not-allowed;
}

.ioc-ctx-item.disabled:hover {
  background: transparent;
  color: var(--muted-2);
}

.ioc-ctx-item i {
  font-size: 16px;
  width: 22px;
  text-align: center;
  opacity: 0.95;
}

.ioc-ctx-item:hover i {
  color: inherit;
}

.ioc-ctx-accent-green i { color: #5bd9a9; }
.ioc-ctx-accent-blue i { color: #6aa7f8; }
.ioc-ctx-accent-amber i { color: #e0a35b; }
.ioc-ctx-accent-muted i { color: var(--muted); }
.ioc-ctx-item.danger i { color: #ef6c6c; }

.ioc-ctx-sep {
  border-top: 1px solid rgba(35,44,66,0.6);
  margin: 6px 0;
}

/* ── sidebar de nodos (NodeSidebar) ─────────────────────────── */
.ioc-side-section {
  border-bottom: 1px solid var(--panel-solid);
}

.ioc-side-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: none;
  background: var(--surface-2);
  padding: 9px 12px;
  text-align: left;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}

.ioc-side-head:hover {
  background: #1c2233;
}

.ioc-side-head .ioc-sec-count {
  font-size: 11px;
  font-weight: 500;
  color: #6aa7f8;
}

.ioc-side-row {
  display: flex;
  border-bottom: 1px solid rgba(19, 24, 39, 0.6);
  padding: 8px 12px;
}

.ioc-side-row:last-child {
  border-bottom: 0;
}

.ioc-side-row .k {
  width: 96px;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--muted);
}

.ioc-side-row .v {
  min-width: 0;
  flex: 1;
  word-break: break-all;
  font-size: 12px;
  color: #eef1f8;
}

.ioc-side-listrow {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 12px;
  color: var(--text);
  border-bottom: 1px solid rgba(19, 24, 39, 0.6);
  cursor: pointer;
}

.ioc-side-listrow:last-child {
  border-bottom: 0;
}

.ioc-side-listrow:hover {
  background: var(--panel-solid);
}

.ioc-side-listrow .label {
  min-width: 0;
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ioc-side-listrow .edge-meta {
  flex-shrink: 0;
  font-size: 10px;
  color: var(--muted);
}

.ioc-side-note {
  padding: 12px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted-2);
}

.ioc-side-empty {
  padding: 12px;
  font-size: 12px;
  font-style: italic;
  color: var(--muted);
}

/* badge de tipo de nodo */
.ioc-node-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 4px;
  font-size: 12px;
}

/* tarjeta de nodo */
.ioc-node-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--panel-solid);
  background: rgba(21, 24, 38, 0.5);
}

.ioc-node-card .ioc-node-badge {
  width: 28px;
  height: 28px;
  font-size: 15px;
}

.ioc-node-card-main {
  min-width: 0;
  flex: 1;
}

.ioc-node-card-label {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ioc-node-card-value {
  margin: 0;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: #fff;
  word-break: break-all;
}

.ioc-node-card-value.sub {
  font-size: 11px;
  color: var(--muted);
}

.ioc-node-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 8px;
  border-bottom: 1px solid var(--panel-solid);
  background: rgba(21, 24, 38, 0.5);
}

.ioc-iconbtn {
  border: none;
  background: transparent;
  color: #c0c6d8;
  padding: 6px;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
}

.ioc-iconbtn:hover {
  background: #1c2233;
  color: #fff;
}

.ioc-iconbtn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.ioc-collection-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  border-bottom: 1px solid var(--panel-solid);
  background: #1c2233;
  padding: 9px 12px;
  text-align: left;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}

.ioc-collection-btn:hover {
  background: #1e2738;
}

/* panel multi-selección */
.ioc-multi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--panel-solid);
  background: var(--surface-2);
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text);
}

.ioc-multi-head button {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 4px;
  border-radius: 4px;
}

.ioc-multi-head button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.ioc-multi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid var(--panel-solid);
}

.ioc-multi-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line-solid);
  background: var(--panel-solid);
  color: var(--text);
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ioc-multi-btn:hover {
  background: var(--accent);
  color: #fff;
}

.ioc-multi-del {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(239, 108, 108, 0.4);
  background: rgba(239, 108, 108, 0.1);
  color: #ef6c6c;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ioc-multi-del:hover {
  background: rgba(239, 108, 108, 0.25);
}

/* ── panel Fortra ───────────────────────────────────────────── */
.ioc-fortra-tabs {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--panel-solid);
}

.ioc-fortra-tab {
  flex: 1;
  min-width: 64px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 6px 4px;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.ioc-fortra-tab:hover {
  color: #fff;
}

.ioc-fortra-tab.active {
  border-bottom-color: #6aa7f8;
  color: #fff;
}

.ioc-fortra-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.ioc-fortra-check {
  width: 16px;
  flex-shrink: 0;
  font-size: 15px;
  color: var(--muted-2);
}

.ioc-fortra-check.checked {
  color: #6aa7f8;
}

.ioc-fortra-count {
  flex-shrink: 0;
  border-radius: 4px;
  background: var(--bg);
  padding: 0 6px;
  font-size: 10px;
  color: var(--muted);
}

.ioc-fortra-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--panel-solid);
  padding: 8px;
}

.ioc-fortra-btn {
  border-radius: 4px;
  border: 1px solid var(--line-solid);
  background: var(--panel-solid);
  color: var(--text);
  font-size: 11px;
  padding: 4px 8px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ioc-fortra-btn:hover {
  background: #1c2233;
}

.ioc-fortra-add {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.ioc-fortra-add:hover {
  background: #5fadfc;
}

.ioc-fortra-add:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── panel de escaneos ──────────────────────────────────────── */
.ioc-scan-row {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(28, 33, 48, 0.4);
  font-size: 12px;
}

.ioc-scan-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ioc-scan-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 10px;
}

.ioc-scan-badge.queued { border-color: #b45309; background: rgba(120, 53, 15, 0.4); color: #fbbf24; }
.ioc-scan-badge.running { border-color: #1d4ed8; background: rgba(30, 58, 138, 0.4); color: #60a5fa; }
.ioc-scan-badge.done { border-color: #047857; background: rgba(6, 78, 59, 0.4); color: #34d399; }
.ioc-scan-badge.error { border-color: #b91c1c; background: rgba(127, 29, 29, 0.4); color: #f87171; }

.ioc-scan-target {
  min-width: 0;
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ioc-scan-toggle {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 4px;
  border-radius: 4px;
}

.ioc-scan-toggle:hover {
  background: var(--surface-2);
}

.ioc-scan-time {
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted-2);
}

.ioc-scan-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.ioc-scan-chip {
  border-radius: 4px;
  background: var(--surface-3);
  padding: 2px 6px;
  font-size: 10px;
  color: var(--text-soft);
}

.ioc-scan-add {
  margin-left: auto;
  font-size: 10px;
  color: #34d399;
}

.ioc-scan-error {
  margin-top: 8px;
  border-radius: 4px;
  background: rgba(127, 29, 29, 0.3);
  padding: 4px 8px;
  font-size: 11px;
  color: #f87171;
}

.ioc-scan-logview {
  margin-top: 8px;
  border: 1px solid var(--line-solid);
  border-radius: 4px;
  background: var(--bg);
  max-height: 176px;
  overflow-y: auto;
  padding: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 1.5;
  color: var(--text-soft);
  white-space: pre-wrap;
  word-break: break-all;
}

.ioc-scan-loghead {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-bottom: 1px solid var(--line-solid);
  font-size: 10px;
  color: var(--muted);
}

/* ── spinner ────────────────────────────────────────────────── */
.spin {
  animation: ioc-spin 1s linear infinite;
}

@keyframes ioc-spin {
  to { transform: rotate(360deg); }
}

/* ── lista de grafos (modal) ────────────────────────────────── */
.ioc-graph-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 50vh;
  overflow-y: auto;
}

.ioc-graph-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 9px 11px;
  border-radius: 6px;
  border: 1px solid var(--line-solid);
  background: var(--panel-solid);
  color: var(--text);
  cursor: pointer;
}

.ioc-graph-row:hover {
  background: #1c2233;
}

.ioc-graph-row.active {
  border-color: #6aa7f8;
  background: rgba(127, 180, 234, 0.12);
}

.ioc-graph-row small {
  display: block;
  color: var(--muted);
}

.ioc-graph-row-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.ioc-graph-row-actions button {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ioc-graph-row-actions .btn-outline-danger {
  border-color: rgba(239, 108, 108, 0.4);
  color: #ef6c6c;
}

/* ── detect badge (modal add) ───────────────────────────────── */
.ioc-detect-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}

.ioc-detect-badge .ioc-node-badge {
  width: 22px;
  height: 22px;
}

/* ── modales estilo VT ──────────────────────────────────────── */
.ioc-vt-modal .modal-content {
  background: var(--panel-solid);
  border: 1px solid var(--line-solid);
  color: var(--text);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.ioc-vt-modal .modal-header {
  border-bottom: 1px solid var(--line-solid);
  padding: 12px 16px;
}

.ioc-vt-modal .modal-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.ioc-vt-modal .modal-footer {
  border-top: 1px solid var(--line-solid);
}

.ioc-vt-modal .modal-body {
  padding: 16px;
}

.ioc-vt-modal .btn-close {
  filter: invert(0.8);
}

.ioc-vt-modal .form-label {
  color: var(--muted);
  font-size: 12px;
}

.ioc-vt-modal .form-control,
.ioc-vt-modal .form-select {
  background-color: var(--surface-3);
  border-color: var(--line-solid);
  color: var(--text);
}

.ioc-vt-modal .form-control::placeholder {
  color: var(--muted-2);
}

.ioc-vt-modal .form-text {
  color: var(--muted-2);
}

.ioc-vt-modal .btn-outline-secondary {
  --bs-btn-color: var(--muted);
  --bs-btn-border-color: var(--line-solid);
  --bs-btn-hover-bg: #1c2233;
  --bs-btn-hover-color: #fff;
}

.ioc-vt-input {
  width: 100%;
  background: var(--surface-3);
  border: 1px solid var(--line-solid);
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
  padding: 8px 10px;
  outline: none;
}

.ioc-vt-input:focus {
  border-color: #6aa7f8;
}

.ioc-vt-input::placeholder {
  color: var(--muted-2);
}

.ioc-vt-btn {
  border-radius: 6px;
  border: 1px solid var(--line-solid);
  background: var(--panel-solid);
  color: var(--text);
  font-size: 13px;
  padding: 7px 14px;
  cursor: pointer;
}

.ioc-vt-btn:hover {
  background: #1c2233;
}

.ioc-vt-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ioc-vt-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.ioc-vt-btn-primary:hover {
  background: #5fadfc;
  border-color: #5fadfc;
  color: #fff;
}

.ioc-vt-btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

.ioc-vt-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.ioc-modal-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
  margin-bottom: 8px;
}

.ioc-help-body {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-soft);
}

.ioc-help-body p {
  margin: 0 0 10px;
}

.ioc-help-body b {
  color: var(--text);
}

/* ---------- IOC Graph Hunter: complementary VT widgets ---------- */

.ioc-vt-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
  margin-top: 12px;
}

.ioc-vt-input,
.ioc-vt-select {
  width: 100%;
  background: var(--surface-3);
  border: 1px solid var(--line-solid);
  color: var(--text);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13px;
}

.ioc-vt-input:focus,
.ioc-vt-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(61, 155, 251, 0.2);
}

.ioc-vt-select option {
  background: var(--panel-solid);
  color: var(--text);
}

.ioc-detect-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6aa7f8;
  background: rgba(61, 155, 251, 0.1);
  border: 1px solid rgba(61, 155, 251, 0.35);
  border-radius: 12px;
  padding: 3px 10px;
}

.ioc-scan-target-display {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--text);
  background: var(--surface-3);
  border: 1px solid var(--line-solid);
  border-radius: 6px;
  padding: 8px 10px;
  word-break: break-all;
}

.ioc-fortra-checkall {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.ioc-fortra-checkall .form-check-input {
  background-color: var(--surface-3);
  border-color: var(--line-solid);
}

.ioc-fortra-checkall .form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.ioc-fortra-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
}

.ioc-fortra-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.ioc-fortra-row .form-check-input {
  background-color: var(--surface-3);
  border-color: var(--line-solid);
  flex: none;
}

.ioc-fortra-row .form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.ioc-fortra-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #c6cde0;
}

.ioc-fortra-count {
  flex: none;
  font-size: 10px;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 10px;
  padding: 1px 7px;
}

.ioc-common-drawer {
  position: absolute;
  top: 52px;
  right: 0;
  bottom: 0;
  width: 320px;
  z-index: 20;
  background: var(--surface-3);
  border-left: 1px solid var(--line-solid);
  transform: translateX(105%);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
}

.ioc-common-drawer.open {
  transform: translateX(0);
}

.ioc-common-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-solid);
}

.ioc-common-close {
  background: none;
  border: none;
  color: var(--muted);
  padding: 2px 6px;
}

.ioc-common-close:hover {
  color: #fff;
}

.ioc-common-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.ioc-common-group {
  margin-bottom: 14px;
}

.ioc-common-group-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #6aa7f8;
  margin-bottom: 6px;
}

.ioc-common-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border: 1px solid var(--line-solid);
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 12px;
  color: #c6cde0;
}

.ioc-common-item span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ioc-common-item .btn {
  flex: none;
  padding: 1px 6px;
  font-size: 12px;
}

/* ---------- IOC Graph Hunter: node sidebar ---------- */

.ioc-sb-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #6aa7f8;
  margin: 8px 0 6px;
}

.ioc-sb-count {
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
}

.ioc-legend {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ioc-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #c6cde0;
}

.ioc-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex: none;
}

.ioc-legend-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}

.ioc-node-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.ioc-node-type-badge {
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.ioc-node-pin {
  color: #fbbf24;
}

.ioc-node-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
  margin-bottom: 4px;
}

.ioc-prop-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  padding: 3px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.ioc-prop-row span:last-child {
  color: #c6cde0;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60%;
}

.ioc-rel-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #c6cde0;
  padding: 3px 0;
}

.ioc-rel-label {
  color: #6aa7f8;
  font-size: 10px;
  background: rgba(61, 155, 251, 0.12);
  border-radius: 4px;
  padding: 1px 5px;
}

.ioc-module-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #c6cde0;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.ioc-ms-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.ioc-ms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.ioc-ms-action {
  font-size: 12px;
  padding: 3px 10px;
}

/* ---------- IOC Graph Hunter: scans ---------- */

.ioc-scan-item {
  border: 1px solid var(--line-solid);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 8px;
  background: var(--surface-3);
}

.ioc-scan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.ioc-scan-target {
  font-size: 12px;
  font-weight: 600;
  color: #c6cde0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ioc-scan-status {
  flex: none;
  font-size: 10px;
  padding: 1px 8px;
  border-radius: 10px;
}

.ioc-scan-queued {
  background: rgba(160, 168, 189, 0.15);
  color: var(--muted);
}

.ioc-scan-running {
  background: rgba(61, 155, 251, 0.15);
  color: #6aa7f8;
}

.ioc-scan-done {
  background: rgba(79, 191, 143, 0.15);
  color: #4fbf8f;
}

.ioc-scan-error {
  background: rgba(224, 82, 82, 0.15);
  color: #e05252;
}

.ioc-scan-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.ioc-chip {
  font-size: 10px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line-solid);
  border-radius: 10px;
  padding: 1px 7px;
}

.ioc-chip-new {
  color: #4fbf8f;
  border-color: rgba(79, 191, 143, 0.4);
}

.ioc-scan-log {
  margin: 6px 0 0;
  padding: 8px;
  max-height: 120px;
  overflow: auto;
  font-size: 10px;
  background: #04060d;
  border-radius: 4px;
  color: #9aa7c0;
}

.ioc-scan-log-toggle {
  font-size: 11px;
  padding: 0;
  color: #6aa7f8;
  text-decoration: none;
}

.ioc-hidden {
  display: none !important;
}

.ioc-graph-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: var(--surface-3);
  border: 1px solid var(--line-solid);
  border-radius: 6px;
  color: #c6cde0;
  padding: 8px 10px;
  margin-bottom: 6px;
  cursor: pointer;
}

.ioc-graph-row.active {
  border-color: var(--accent);
}

.ioc-graph-row:hover {
  background: var(--panel-solid);
}

.ioc-graph-row-main {
  min-width: 0;
}

.ioc-graph-row-main b {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.ioc-graph-row-main small {
  color: var(--muted);
  font-size: 11px;
}

.ioc-graph-row-actions {
  display: flex;
  gap: 4px;
  flex: none;
}

.ioc-graph-list {
  max-height: 320px;
  overflow-y: auto;
}

/* ════════════════════════════════════════════════════════════
   IOC Graph Hunter — FASE 1 · HOME (crear investigacion)
   Réplica de Home.tsx del proyecto original
   ════════════════════════════════════════════════════════════ */

.ioc-body:not(.ioc-mode-graph) .ioc-app {
  display: none;
}

.ioc-body.ioc-mode-graph .ioc-home-view {
  display: none;
}

.ioc-home-view {
  height: 100vh;
  overflow-y: auto;
  background: var(--bg);
  color: var(--text);
  padding-top: var(--topmenu-total);
}

/* topbar estilo VT (46px) */
.ioc-home-topbar {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: var(--panel-solid);
  border-bottom: 1px solid #10131f;
}

.ioc-home-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.ioc-home-back:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.ioc-home-topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ioc-home-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
}

.ioc-home-theme:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

/* hero (Home.tsx) */
.ioc-home-hero {
  border-bottom: 1px solid var(--bg);
  background: var(--panel-solid);
}

.ioc-home-hero-inner {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
}

.ioc-home-hero-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(61, 155, 251, 0.2);
  color: var(--accent-soft);
  font-size: 22px;
}

.ioc-home-hero-text h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.ioc-home-hero-text p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* main */
.ioc-home-main {
  max-width: 1024px;
  margin: 0 auto;
  padding: 32px 24px;
}

.ioc-home-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.ioc-home-input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--line-solid);
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.ioc-home-input:focus {
  border-color: var(--accent-soft);
}

.ioc-home-input::placeholder {
  color: var(--muted-2);
}

.ioc-home-input-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--surface-3);
}

.ioc-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.ioc-home-btn:hover:not(:disabled) {
  background: #5fadfc;
  transform: translateY(-1px);
}

.ioc-home-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* sección iniciar investigación */
.ioc-home-section {
  margin-bottom: 32px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line-solid);
  background: var(--surface-2);
}

.ioc-home-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.ioc-home-section-title i {
  color: var(--accent-soft);
}

.ioc-home-section-hint {
  margin: 4px 0 12px;
  font-size: 12px;
  color: var(--muted);
}

.ioc-home-count {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-soft);
}

.ioc-home-amber {
  color: #fbbf24;
}

/* grid de grafos */
.ioc-home-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.ioc-home-card {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line-solid);
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ioc-home-card:hover {
  border-color: rgba(116, 173, 250, 0.6);
  background: var(--surface-hover);
}

.ioc-home-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.ioc-home-card-ico {
  color: var(--accent-soft);
  font-size: 16px;
  margin-top: 2px;
}

.ioc-home-card-head h3 {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.ioc-home-card-del {
  flex-shrink: 0;
  padding: 4px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--muted-2);
  font-size: 14px;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.ioc-home-card:hover .ioc-home-card-del {
  opacity: 1;
}

.ioc-home-card-del:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}

.ioc-home-card-meta {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted-2);
}

.ioc-home-card-stats {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.ioc-home-empty {
  padding: 80px 16px;
  border-radius: 12px;
  border: 1px dashed var(--line-solid);
  text-align: center;
}

.ioc-home-empty i {
  font-size: 48px;
  color: var(--line-solid);
}

.ioc-home-empty p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.osint-mapping-stage {
  position: relative;
  margin-top: 24px;
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(56,189,248,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 28px 80px rgba(0,0,0,.36);
  background: linear-gradient(180deg, rgba(10,14,23,.92), rgba(13,18,30,.96));
  display: block;
  visibility: visible;
  opacity: 1;
}
.osint-mapping-stage .osint-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(56,189,248,.14);
  background: rgba(255,255,255,.02);
}
.osint-mapping-stage .osint-stage-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: .3px;
}
.osint-mapping-stage .osint-stage-desc {
  margin: 0;
  color: #8b93a7;
  font-size: 13px;
}
.osint-mapping-container {
  width: 100%;
  height: 360px;
  min-height: 360px;
  position: relative;
}
.osint-mapping-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 8px;
  color: #8b93a7;
  text-align: center;
  padding: 24px;
}
.osint-mapping-empty i {
  font-size: 40px;
  color: var(--line-solid);
}
.osint-mapping-empty p {
  margin: 8px 0 0;
  color: #cbd5e1;
  font-size: 14px;
}
.osint-mapping-empty small {
  color: #8b93a7;
  font-size: 12px;
}
.osint-mapping-list {
  padding: 16px 20px;
  max-height: 100%;
  overflow: auto;
}
.osint-mapping-list h4 {
  margin: 0 0 12px;
  color: #e2e8f0;
  font-size: 15px;
}
.osint-mapping-list h4 small {
  color: #8b93a7;
  font-weight: 400;
}
.osint-mapping-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.osint-mapping-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.04);
  color: #cbd5e1;
  font-size: 13px;
  word-break: break-word;
}
.osint-mapping-list .group-pill {
  flex-shrink: 0;
}