:root{
  --color-primary:#e63946;
  --color-primary-hover:#d62839;
  --color-bg:#fff;
  --color-text:#111;
  --color-text-2:#444;
  --color-muted:#6b7280;
  --color-surface:#fafafa;
  --color-surface-2:#f5f5f7;
  --color-surface-3:#f0f1f4;
  --border:#111;
  --border-subtle:#e5e7eb;
  --border-strong:#d1d5db;
  --radius:10px;
  --radius-sm:4px;
  --radius-md:6px;
  --radius-lg:12px;
  --space:1rem;
  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:16px;
  --space-5:24px;
  --space-6:32px;
  --shadow-sm:0 1px 2px rgba(15,23,42,0.06);
  --shadow-md:0 4px 12px rgba(15,23,42,0.10);
  --shadow-lg:0 12px 32px rgba(15,23,42,0.18);
  --shadow-focus:0 0 0 3px rgba(230,57,70,0.18);
  --font-sans:'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono:Consolas,'SFMono-Regular',Menlo,monospace;
  --severity-critical:#8b0000;
  --severity-high:#d63384;
  --severity-medium:#fd7e14;
  --severity-low:#198754;
  --status-ok:#198754;
  --status-warn:#b45309;
  --status-danger:#b91c1c;
  --status-info:#1d4ed8;
  --cora-primary:#667eea;
  --cora-secondary:#764ba2;
  --cora-gradient:linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --cora-success:#10b981;
  --cora-step-passed:#22c55e;
  --cora-step-warning:#f59e0b;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;width:100%;height:100%;overflow:hidden}
body{background:var(--color-bg);color:var(--color-text);font-family:var(--font-sans);position:fixed;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column}

/* ===== Progress/Step Indicator ===== */
.step-indicator {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
  gap: 0;
}

.step-indicator-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.step-indicator-circle {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #ddd;
  background: #fff;
  color: #999;
}

.step-indicator-item.completed .step-indicator-circle {
  background: var(--severity-low);
  border-color: var(--severity-low);
  color: #fff;
}

.step-indicator-item.active .step-indicator-circle {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.2);
}

.step-indicator-label {
  font-size: 0.8rem;
  color: #999;
  font-weight: 500;
  transition: color 0.3s ease;
}

.step-indicator-item.completed .step-indicator-label,
.step-indicator-item.active .step-indicator-label {
  color: var(--color-text);
}

.step-indicator-line {
  width: 40px;
  height: 2px;
  background: #ddd;
  margin: 0 0.5rem;
  transition: background 0.3s ease;
}

.step-indicator-line.completed {
  background: var(--severity-low);
}

/* Compact variant for smaller containers */
.step-indicator.compact {
  margin-bottom: 1rem;
}

.step-indicator.compact .step-indicator-circle {
  width: 24px;
  height: 24px;
  min-width: 24px;
  font-size: 0.75rem;
}

.step-indicator.compact .step-indicator-label {
  display: none;
}

.step-indicator.compact .step-indicator-line {
  width: 30px;
}

/* Dark theme variant for auth pages */
.step-indicator.dark .step-indicator-circle {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.6);
}

.step-indicator.dark .step-indicator-item.completed .step-indicator-circle {
  background: #198754;
  border-color: #198754;
  color: #fff;
}

.step-indicator.dark .step-indicator-item.active .step-indicator-circle {
  background: #e63946;
  border-color: #e63946;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.3);
}

.step-indicator.dark .step-indicator-label {
  color: rgba(255,255,255,0.5);
}

.step-indicator.dark .step-indicator-item.completed .step-indicator-label,
.step-indicator.dark .step-indicator-item.active .step-indicator-label {
  color: rgba(255,255,255,0.9);
}

.step-indicator.dark .step-indicator-line {
  background: rgba(255,255,255,0.2);
}

.step-indicator.dark .step-indicator-line.completed {
  background: var(--severity-low);
}

.topbar{
  display:flex;justify-content:space-between;align-items:center;
  padding:.75rem 1rem;border-bottom:1px solid var(--border);background:#fff;z-index:10;
  flex-shrink:0;height:48px;
}
.brand{display:flex;align-items:center;gap:.5rem}
.brand img{height:28px}
.top-actions{display:flex;gap:.75rem;align-items:center}

/* Tenant Selector Styling */
#tenantSelect {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: var(--color-text);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 200px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
}

#tenantSelect:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

#tenantSelect:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

#tenantSelect option {
  padding: 0.5rem;
}

.btn{
  background:var(--color-primary);color:#fff;border:none;border-radius:4px;
  padding:.5rem .8rem;cursor:pointer;transition: all 0.2s ease;
}
.btn:hover {
  background: #d62839;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.btn.secondary{background:transparent;color:var(--color-primary);border:1px solid var(--color-primary)}
.btn.secondary:hover {
  background: rgba(230, 57, 70, 0.05);
  transform: translateY(-1px);
}
.btn:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}

.btn-small {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}
.btn-small:hover {
  background: #d62839;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.btn-small:active {
  transform: translateY(0);
}

.app{display:grid;grid-template-columns:240px minmax(0,1fr);flex:1;min-height:0;overflow:hidden}
.sidebar{
  border-right:1px solid var(--border);padding:1rem;min-height:0;overflow-y:auto;overflow-x:hidden;
  display:flex;flex-direction:column;gap:.25rem;flex-shrink:0;
}
.nav-link{
  display:block;padding:.6rem .7rem;border-radius:6px;text-decoration:none;color:var(--color-text)
}
.nav-link.active, .nav-link:hover{background:#f6f6f6}

/* View transitions for smooth page changes */
.view{
  padding:1rem 1.25rem;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
}
.view-transition-out {
  opacity: 0.5;
  transform: translateY(4px);
}
.view-transition-in {
  animation: viewFadeIn 0.2s ease-out;
}
@keyframes viewFadeIn {
  from { opacity: 0.7; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* GPU acceleration for animated elements */
.panel, .card, .btn, .nav-link, .badge {
  will-change: transform;
  transform: translateZ(0);
}

.panel-grid{display:grid;gap:1rem;grid-template-columns:minmax(0,auto) minmax(0,1fr)}
.panel{border:1px solid var(--border);border-radius:var(--radius);padding:1rem;background:#fff;min-width:0;overflow:hidden}
.span-2{grid-column:span 2}

.kpi{font-size:2rem;font-weight:700;color:var(--color-primary)}
.list{margin:.5rem 0;padding-left:1rem}
.muted{color:var(--color-text-2)}

.severity-high{color:var(--severity-high);font-weight:600}
.severity-medium{color:var(--severity-medium);font-weight:600}
.severity-low{color:var(--severity-low);font-weight:600}

/* Table wrapper for proper scrolling - use max-height for pages with filters above */
.table-wrapper{overflow:auto;border:1px solid #ddd;border-radius:var(--radius);width:100%;max-height:calc(100vh - 320px)}
.table-wrapper .table{margin:0;border:none}

.table{width:100%;border-collapse:collapse;font-size:.95rem}
.table th,.table td{border-bottom:1px solid #ddd;padding:.6rem;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.table th{background:#fafafa;position:sticky;top:0;z-index:1}
.table tbody tr{
  transition: background-color 0.15s ease;
}
.table tbody tr:hover{background:#f9f9f9}

/* Table row fade-in animation */
.table tbody tr {
  animation: tableRowFadeIn 0.25s ease-out;
  animation-fill-mode: both;
}
.table tbody tr:nth-child(1) { animation-delay: 0ms; }
.table tbody tr:nth-child(2) { animation-delay: 25ms; }
.table tbody tr:nth-child(3) { animation-delay: 50ms; }
.table tbody tr:nth-child(4) { animation-delay: 75ms; }
.table tbody tr:nth-child(5) { animation-delay: 100ms; }
.table tbody tr:nth-child(n+6) { animation-delay: 125ms; }

@keyframes tableRowFadeIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Hunting results table */
.hunt-table{
  width:max-content;
  min-width:100%;
  border-collapse:collapse;
  font-size:.85rem;
  table-layout:fixed;
}
.hunt-table th,.hunt-table td{
  border-bottom:1px solid #ddd;
  padding:.5rem .6rem;
  text-align:left;
  vertical-align:top;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.hunt-table td.hunt-cell-expanded{
  white-space:normal;
  word-break:break-all;
}
.hunt-table th{
  background:#fafafa;
  white-space:nowrap;
  position:sticky;
  top:0;
  z-index:2;
  cursor:pointer;
  user-select:none;
  position:relative;
}
.hunt-table th:hover{background:#f0f0f0}
.hunt-col-resize{
  position:absolute;
  right:0;
  top:0;
  bottom:0;
  width:5px;
  cursor:col-resize;
  z-index:3;
}
.hunt-col-resize:hover,
.hunt-col-resize.active{
  background:var(--color-primary);
}
.hunt-table th .sort-arrow{
  display:inline-block;
  margin-left:4px;
  font-size:.7rem;
  color:#999;
}
.hunt-table th .sort-arrow.active{color:var(--color-primary)}
.hunt-table tbody tr:hover{background:#f5f5f5}
.hunt-table tbody tr.hunt-row-selected{background:#e8f0fe}
.hunt-table tbody tr.hunt-row-expanded{background:#f0f4ff}

/* Expand chevron column */
.hunt-expand-th{
  width:32px;
  min-width:32px;
  max-width:32px;
  padding:0;
  cursor:default;
}
.hunt-expand-cell{
  width:32px;
  min-width:32px;
  max-width:32px;
  text-align:center;
  cursor:pointer;
  padding:.5rem 0;
  user-select:none;
}
.hunt-expand-chevron{
  font-size:.65rem;
  color:#888;
  transition:color .15s;
}
.hunt-expand-cell:hover .hunt-expand-chevron{
  color:var(--color-primary);
}

/* Inline expand row (Log Analytics style) */
.hunt-expand-row td{
  background:#f8f9fc;
  padding:0;
  border-bottom:1px solid #ddd;
}
.hunt-expand-content{
  padding:.8rem 1rem .8rem 2.5rem;
  max-height:400px;
  overflow-y:auto;
}
.hunt-expand-field{
  display:flex;
  gap:.6rem;
  padding:3px 0;
  border-bottom:1px solid #eee;
  font-size:.83rem;
  align-items:baseline;
}
.hunt-expand-field:last-child{
  border-bottom:none;
}
.hunt-expand-label{
  font-weight:600;
  color:#555;
  min-width:160px;
  flex-shrink:0;
  white-space:nowrap;
}
.hunt-expand-val{
  color:#222;
  word-break:break-all;
}
.hunt-expand-list{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.hunt-expand-list-item{
  color:#222;
  word-break:break-all;
  padding:1px 6px;
  background:#fff;
  border:1px solid #e8e8e8;
  border-radius:3px;
  font-size:.82rem;
}

.hunt-results-scroll{
  overflow:auto;
  max-height:520px;
  max-width:100%;
  border:1px solid #ddd;
  border-radius:6px;
}
.hunt-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:.5rem;
  margin-bottom:.5rem;
}
.hunt-toolbar input[type="text"]{
  padding:.35rem .6rem;
  border:1px solid #ccc;
  border-radius:4px;
  font-size:.85rem;
  width:220px;
}
.hunt-pagination{
  display:flex;
  align-items:center;
  gap:.4rem;
  font-size:.85rem;
  color:#555;
}
.hunt-pagination button{
  padding:.25rem .5rem;
  font-size:.8rem;
  border:1px solid #ccc;
  border-radius:4px;
  background:#fff;
  cursor:pointer;
}
.hunt-pagination button:disabled{opacity:.4;cursor:default}
.hunt-pagination button:not(:disabled):hover{background:#f0f0f0}

/* Sticky first column (expand chevron) */
.hunt-table th.hunt-sticky-col,
.hunt-table td.hunt-sticky-col{
  position:sticky;
  left:0;
  z-index:1;
  background:#fff;
  box-shadow:2px 0 4px rgba(0,0,0,.08);
  clip-path:inset(0 -4px 0 0);
}
.hunt-table th.hunt-sticky-col{
  z-index:3;
  background:#fafafa;
}
.hunt-table tbody tr:hover td.hunt-sticky-col{
  background:#f5f5f5;
}

/* Column picker */
.hunt-col-picker-wrap{
  position:relative;
}
.hunt-col-picker-dropdown{
  display:none;
  position:absolute;
  top:100%;
  right:0;
  z-index:50;
  background:#fff;
  border:1px solid #ddd;
  border-radius:6px;
  box-shadow:0 4px 16px rgba(0,0,0,.12);
  min-width:220px;
  max-height:360px;
  overflow:hidden;
  flex-direction:column;
}
.hunt-col-picker-dropdown.open{
  display:flex;
}
.hunt-col-picker-list{
  overflow-y:auto;
  padding:.4rem 0;
  max-height:300px;
}
.hunt-col-picker-item{
  display:flex;
  align-items:center;
  gap:.4rem;
  padding:.25rem .6rem;
  font-size:.82rem;
  cursor:pointer;
  white-space:nowrap;
}
.hunt-col-picker-item:hover{
  background:#f5f5f5;
}
.hunt-col-picker-action{
  font-size:.75rem;
  padding:.15rem .5rem;
  border:1px solid #ccc;
  border-radius:3px;
  background:#fff;
  cursor:pointer;
}
.hunt-col-picker-action:hover{
  background:#f0f0f0;
}

/* Hunting Graph Visualization */
.hunt-graph-container {
  width: 100%;
  height: 800px;
  background: rgb(17, 17, 17);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.hunt-graph-swimlane {
  fill: rgba(255, 255, 255, 0.03);
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
}

.hunt-graph-swimlane-label {
  fill: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hunt-graph-node {
  cursor: pointer;
  transition: filter 0.2s ease;
}

.hunt-graph-node:hover {
  filter: brightness(1.3);
}

.hunt-graph-node-circle {
  stroke-width: 2;
}

.hunt-graph-node-label {
  font-size: 11px;
  fill: #fff;
  text-anchor: middle;
  pointer-events: none;
}

.hunt-graph-link {
  fill: none;
  stroke-opacity: 0.6;
  transition: stroke-opacity 0.2s ease;
}

.hunt-graph-link:hover {
  stroke-opacity: 1;
}

.hunt-graph-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  pointer-events: none;
  z-index: 100;
  max-width: 350px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hunt-graph-tooltip-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #e63946;
  word-break: break-all;
}

.hunt-graph-tooltip-row {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.hunt-graph-tooltip-label {
  color: rgba(255, 255, 255, 0.6);
  min-width: 60px;
}

.hunt-graph-tooltip-value {
  color: #fff;
  word-break: break-all;
}

.hunt-graph-legend {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.7);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.hunt-graph-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.hunt-graph-legend-item:last-child {
  margin-bottom: 0;
}

.hunt-graph-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.hunt-view-btn-active {
  background: var(--color-primary) !important;
  color: #fff !important;
  border-color: var(--color-primary) !important;
}

.filters{display:flex;gap:1rem;align-items:center;margin:.5rem 0}
.filters input,.filters select{
  padding:.5rem .75rem;
  border:1px solid #ddd;
  border-radius:6px;
  font-family:var(--font-sans);
  font-size:0.9rem;
  transition: all 0.2s ease;
}
.filters input:focus, .filters select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}
.filters select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 10px;
  padding-right: 2rem;
}
.filters select:hover {
  border-color: var(--color-primary);
}

.card{border:1px solid var(--border);border-radius:var(--radius);padding:1rem;background:#fff;margin:.75rem 0}
.code{font-family:var(--mono);background:#0f0f0f;color:#f5f5f5;border-radius:8px;padding:.75rem;overflow:auto}

/* KQL Syntax Highlighting */
.kql-keyword { color: #569CD6; font-weight: 500; }
.kql-operator { color: #B4B4B4; }
.kql-string { color: #CE9178; }
.kql-function { color: #DCDCAA; }
.kql-number { color: #B5CEA8; }
.kql-field { color: #9CDCFE; }
.kql-comment { color: #6A9955; font-style: italic; }

.badge{
  display:inline-block;
  padding:.25rem .5rem;
  font-size:.75rem;
  font-weight:600;
  border-radius:4px;
  text-transform:uppercase;
}
.badge-admin{background:#d6338420;color:#d63384;border:1px solid #d63384}
.badge-member{background:#19875420;color:#198754;border:1px solid #198754}
.badge-active{background:#19875420;color:#198754;border:1px solid #198754}
.badge-inactive{background:#6c757d20;color:#6c757d;border:1px solid #6c757d}

/* Rule scope + state badges */
.badge-scope-global{background:#f1f5f9;color:#475569;border:1px solid #cbd5e1}
.badge-scope-custom{background:#fef9ee;color:#92400e;border:1px solid #fcd34d}
.badge-disabled{background:#fef2f2;color:#991b1b;border:1px solid #fca5a5}

/* Pagination strip used under tables */
.pagination{display:flex;align-items:center;gap:.5rem;justify-content:center;margin-top:1rem}
.pagination__info{color:var(--color-muted);font-size:.85rem}
.pagination .btn{padding:.5rem .75rem}
.pagination .btn[disabled]{opacity:.5;cursor:not-allowed}

/* Alert Status & Severity Badges */
.badge-status-new{background:#dc354520;color:#dc3545;border:1px solid #dc3545}
.badge-status-acknowledged{background:#ffc10720;color:#b8860b;border:1px solid #ffc107}
.badge-status-resolved{background:#28a74520;color:#28a745;border:1px solid #28a745}

.badge-severity-critical{background:#8b000020;color:#8b0000;border:1px solid #8b0000}
.badge-severity-high{background:#d6338420;color:#d63384;border:1px solid #d63384}
.badge-severity-medium{background:#fd7e1420;color:#d16400;border:1px solid #fd7e14}
.badge-severity-low{background:#19875420;color:#198754;border:1px solid #198754}

/* Modal */
.modal{
  position:fixed;top:0;left:0;width:100%;height:100%;
  background:rgba(0,0,0,0.5);z-index:1000;
  display:flex;align-items:center;justify-content:center;
  padding:2rem;
}
.modal-content{
  background:#fff;border-radius:12px;max-width:900px;width:100%;
  max-height:90vh;overflow:auto;box-shadow:0 10px 40px rgba(0,0,0,0.3);
}
.modal-header{
  display:flex;justify-content:space-between;align-items:center;
  padding:1.5rem;border-bottom:1px solid #ddd;
}
.modal-header h2{margin:0}
.modal-header-tail{display:flex;align-items:center;gap:0.75rem}
.modal-header-actions{display:flex;gap:0.5rem}
.modal-header-actions:empty{display:none}
.modal-close{
  background:none;border:none;font-size:2rem;cursor:pointer;
  color:#666;line-height:1;padding:0;width:32px;height:32px;
  border-radius:6px;transition:background 0.2s;
}
.modal-close:hover{background:#f0f0f0}
.modal-body{padding:1.5rem}

/* Alert Modal Header */
.alert-modal-header{
  display:flex;align-items:flex-start;gap:1rem;margin-bottom:1.5rem;
  padding-bottom:1rem;border-bottom:1px solid #e0e0e0;
}
.alert-severity-bar{
  width:4px;height:100%;min-height:60px;border-radius:2px;flex-shrink:0;
}
.alert-severity-bar.critical{background:#dc3545}
.alert-severity-bar.high{background:#fd7e14}
.alert-severity-bar.medium{background:#ffc107}
.alert-severity-bar.low{background:#17a2b8}
.alert-modal-title-section{flex:1;min-width:0}
.alert-modal-title{font-size:1.4rem;font-weight:600;margin-bottom:0.35rem;color:#111}
.alert-modal-subtitle{font-size:1rem;color:#555;line-height:1.4}
.alert-modal-badges{display:flex;gap:0.5rem;margin-top:0.6rem;flex-wrap:wrap}

/* Asset Modal Styles */
.asset-modal-header{
  display:flex;align-items:flex-start;gap:1rem;margin-bottom:1.5rem;
  padding-bottom:1rem;border-bottom:1px solid #e0e0e0;
}
.asset-status-indicator{
  width:4px;height:100%;min-height:60px;border-radius:2px;flex-shrink:0;
}
.asset-modal-title-section{flex:1}
.asset-modal-title{font-size:1.5rem;font-weight:600;margin-bottom:0.25rem;color:#111}
.asset-modal-subtitle{font-size:1rem;color:#555}
.asset-modal-badges{display:flex;gap:0.5rem;margin-top:0.5rem;flex-wrap:wrap}
.asset-status-badge{
  font-size:0.75rem;font-weight:600;padding:0.2rem 0.5rem;border-radius:4px;
}
.asset-section{
  background:#f8f9fa;border-radius:8px;padding:1rem;margin-bottom:0.75rem;
}
.asset-section-title{
  font-size:0.75rem;font-weight:600;color:#666;text-transform:uppercase;
  letter-spacing:0.3px;margin-bottom:0.75rem;
}
.asset-detail-grid{
  display:grid;grid-template-columns:120px 1fr;gap:0.5rem 1rem;font-size:0.9rem;
}
.asset-detail-label{color:#666}
.asset-detail-value{color:#111;word-break:break-word}

/* Compact Info Grid */
.alert-info-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:0.75rem;
  margin-bottom:1.5rem;background:#f8f9fa;border-radius:8px;padding:1rem;
}
.alert-info-item{
  padding:0;border:none;background:none;
}
.alert-info-label{
  font-size:0.75rem;color:#666;text-transform:uppercase;
  font-weight:600;margin-bottom:0.15rem;letter-spacing:0.3px;
}
.alert-info-value{font-size:0.95rem;font-weight:500;color:#111}

/* Event Cards */
.event-list{margin-top:1rem}
.event-item{
  border:1px solid #e0e0e0;border-radius:8px;padding:0;
  margin-bottom:0.75rem;background:#fff;overflow:hidden;
}
.event-header{
  display:flex;justify-content:space-between;align-items:center;
  padding:0.75rem 1rem;background:#f8f9fa;border-bottom:1px solid #e0e0e0;
}
.event-header strong{color:#111;font-size:0.9rem}
.event-body{padding:1rem}
.event-section{margin-bottom:1rem}
.event-section:last-child{margin-bottom:0}
.event-section-title{
  font-size:0.75rem;font-weight:600;color:#666;text-transform:uppercase;
  letter-spacing:0.3px;margin-bottom:0.5rem;padding-bottom:0.25rem;
  border-bottom:1px solid #eee;
}
.event-grid{
  display:grid;grid-template-columns:130px 1fr;gap:0.4rem 0.75rem;font-size:0.875rem;
}
.event-label{color:var(--color-muted)}
.event-value{color:var(--color-text);word-break:break-word}
.event-value code{font-size:0.8rem;background:var(--color-surface-2);padding:0.1rem 0.3rem;border-radius:var(--radius-sm)}
.event-value--signed{color:var(--status-ok);font-weight:500}
.event-value--hash{font-size:0.75rem;color:var(--color-muted);word-break:break-all;font-family:var(--font-mono, monospace)}
.event-value--device{font-size:0.8rem}

/* Inline chips inside event headers/values (aggregated, type, action) */
.event-chip{
  display:inline-block;padding:0.15rem 0.4rem;border-radius:var(--radius-sm);
  font-size:0.75rem;font-weight:500;line-height:1.2;
  background:var(--color-surface-2);color:var(--color-text-2);
  border:1px solid var(--border-subtle);
}
.event-chip + .event-chip{margin-left:0.4rem}
.event-header .event-chip{margin-left:0.5rem}
.event-chip--aggregated{background:#fff7ed;color:#9a3412;border-color:#fed7aa}
.event-chip--type{background:var(--color-surface-2);color:var(--color-text-2);border-color:var(--border-subtle)}
.event-chip--action{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe;font-size:0.8rem}

/* Generic raw JSON pre-block fallback */
.event-raw{
  background:var(--color-surface-2);padding:0.5rem;border-radius:var(--radius-sm);
  overflow:auto;font-size:0.8rem;margin:0;color:var(--color-text);
}

/* Aggregated File Path List */
.aggregated-filepaths {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.filepath-item {
  display: flex;
  flex-direction: column;
  padding: 0.35rem 0.5rem;
  background: #f8f9fa;
  border-radius: 4px;
  border-left: 3px solid #e0e0e0;
}
.filepath-name {
  font-weight: 600;
  font-size: 0.8rem;
  color: #1a1a1a;
  font-family: 'SFMono-Regular', Consolas, monospace;
}
.filepath-dir {
  font-size: 0.7rem;
  color: #888;
  font-family: 'SFMono-Regular', Consolas, monospace;
  word-break: break-all;
}
.filepath-hidden {
  display: none;
}
.aggregated-filepaths.expanded .filepath-hidden {
  display: flex;
}
.filepath-toggle {
  font-size: 0.78rem;
  color: var(--color-primary);
  cursor: pointer;
  padding: 0.3rem 0;
  font-weight: 500;
  user-select: none;
}
.filepath-toggle:hover {
  text-decoration: underline;
}

/* Automated Actions Styles */
.automated-actions-section{
  margin-top:1.5rem;border-top:1px solid #ddd;padding-top:1.5rem;
}

.action-card{
  border:1px solid #e0e0e0;border-radius:8px;padding:0;
  margin-bottom:0.75rem;background:#fff;overflow:hidden;
}

.action-header{
  display:flex;justify-content:space-between;align-items:center;
  padding:0.75rem 1rem;background:#f8f9fa;border-bottom:1px solid #e0e0e0;
  margin-bottom:0;
}

.action-type{
  font-size:0.9rem;font-weight:600;color:#111;
  letter-spacing:0.3px;
}

.action-body{padding:1rem}

.action-status-badge{
  font-size:0.7rem;font-weight:600;text-transform:uppercase;
  padding:0.2rem 0.5rem;border-radius:4px;
}

.action-status-completed{
  background:#28a74520;color:#28a745;border:1px solid #28a745;
}

.action-status-failed{
  background:#dc354520;color:#dc3545;border:1px solid #dc3545;
}

.action-status-pending{
  background:#ffc10720;color:#b8860b;border:1px solid #ffc107;
}

.action-status-in-progress{
  background:#17a2b820;color:#17a2b8;border:1px solid #17a2b8;
}

.action-details-grid{
  display:grid;grid-template-columns:130px 1fr;gap:0.4rem 0.75rem;
  font-size:0.875rem;
}

.action-details-label{
  color:#666;
}

/* Inline value styles inside action-details-grid */
.action-value-code{font-size:.85rem}
.action-value-code--sm{font-size:.8rem;word-break:break-all}
.action-value-code--xs{font-size:.75rem;word-break:break-all;color:var(--color-text)}
.action-value-mono{font-size:.8rem;font-family:var(--mono)}
.action-value--ok{color:var(--status-ok);font-weight:500}
.action-value--bad{color:var(--status-danger);font-weight:500}
.action-value--unsigned{color:var(--color-muted);font-style:italic}
.action-value--note{color:var(--color-muted);font-style:italic}

/* "Agent (Local)" / source chip in action header rows */
.action-source-chip{
  display:inline-block;background:#eff6ff;color:#1d4ed8;
  border:1px solid #bfdbfe;padding:.15rem .4rem;border-radius:var(--radius-sm);
  font-size:.75rem;font-weight:500;
}

/* Section heading inside automated actions */
.section-heading{
  margin-bottom:1rem;font-size:1rem;font-weight:600;color:var(--color-text);
}

/* Sub-line under acknowledged/resolved name in alert info strip */
.alert-info-sub{
  font-size:.8rem;color:var(--color-muted);margin-top:.15rem;
}
.alert-info-item--full{
  grid-column:1 / -1;border-top:1px solid var(--border-subtle);
  padding-top:.75rem;margin-top:.25rem;
}
.alert-info-value--capitalize{text-transform:capitalize}

.action-result-box{
  background:#f8f9fa;padding:0.5rem;border-radius:4px;
  margin:0;font-size:0.85rem;overflow-x:auto;
  border:1px solid #e0e0e0;font-family:var(--mono);
}

.action-error-box{
  background:#ffe6e6;padding:0.5rem;border-radius:4px;
  margin:0;font-size:0.85rem;overflow-x:auto;
  border:1px solid #ffcccc;font-family:var(--mono);
  color:#dc3545;
}

/* Tab Styles */
.tab-btn {
  transition: all 0.2s ease;
}
.tab-btn:hover {
  color: var(--color-primary) !important;
}
.tab-btn.active {
  color: var(--color-primary) !important;
  border-bottom: 2px solid var(--color-primary) !important;
}
.tab-content {
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 900px){
  .app{grid-template-columns:1fr}
  .sidebar{flex-direction:row;flex-wrap:wrap;gap:.5rem;border-right:none;border-bottom:1px solid var(--border);max-height:none;overflow-x:auto;overflow-y:hidden}
  .sidebar .nav-section{display:none}
  .sidebar .nav-spacer{display:none}
  .panel-grid{grid-template-columns:minmax(0,1fr)}
  .span-2{grid-column:span 1}
  .alert-info-grid{grid-template-columns:1fr}
  
  /* Hunting page - force single column layout on mobile */
  #huntingLayout{grid-template-columns:1fr !important}
  #huntSidebar{display:block !important}
}

/* Process Visualization - 3D Cubes */
.process-node-container {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  perspective: 1000px;
}

.process-cube {
  width: 70px;
  height: 70px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 8s infinite linear;
  cursor: pointer;
  transition: transform 0.3s ease;
  margin: 20px;
}

.process-cube:hover {
  animation-play-state: paused;
  transform: scale(1.1);
}

.cube-face {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backface-visibility: hidden;
}

/* Parent Process - Larger cube (90px) */
.signed-process.process-cube:not(.child-process),
.unsigned-process.process-cube:not(.child-process) {
  width: 90px;
  height: 90px;
  margin: 25px;
}

.signed-process:not(.child-process) .cube-face,
.unsigned-process:not(.child-process) .cube-face {
  width: 90px;
  height: 90px;
}

/* Signed Process - Green */
.signed-process .cube-face {
  background: linear-gradient(135deg, rgba(81, 207, 102, 0.7) 0%, rgba(55, 178, 77, 0.7) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(81, 207, 102, 0.4);
}

/* Unsigned Process - Grey */
.unsigned-process .cube-face {
  background: linear-gradient(135deg, rgba(173, 181, 189, 0.7) 0%, rgba(134, 142, 150, 0.7) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(134, 142, 150, 0.4);
}

/* Unknown Process - Darker grey with dashed border */
.unknown-process .cube-face {
  background: linear-gradient(135deg, rgba(108, 117, 125, 0.6) 0%, rgba(73, 80, 87, 0.6) 100%);
  color: white;
  border: 2px dashed rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Child Process and File Target - Same size (70px) */
.child-process.process-cube,
.file-target.process-cube {
  width: 70px;
  height: 70px;
  margin: 20px;
}

.child-process .cube-face,
.file-target .cube-face {
  width: 70px;
  height: 70px;
}

/* Child Process Colors */
.child-process.signed-process .cube-face {
  background: linear-gradient(135deg, rgba(81, 207, 102, 0.7) 0%, rgba(55, 178, 77, 0.7) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(81, 207, 102, 0.4);
}

.child-process.unsigned-process .cube-face {
  background: linear-gradient(135deg, rgba(173, 181, 189, 0.7) 0%, rgba(134, 142, 150, 0.7) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(134, 142, 150, 0.4);
}

/* File Target - Blue */
.file-target .cube-face {
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.7) 0%, rgba(0, 242, 254, 0.7) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
}

/* Aggregated Target - Orange/Amber */
.aggregated-target.process-cube {
  width: 70px;
  height: 70px;
  margin: 20px;
}

.aggregated-target .cube-face {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(255, 167, 38, 0.8) 0%, rgba(255, 112, 67, 0.8) 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(255, 152, 0, 0.5);
}

.aggregated-target .cube-front { transform: rotateY(0deg) translateZ(35px); }
.aggregated-target .cube-back { transform: rotateY(180deg) translateZ(35px); }
.aggregated-target .cube-right { transform: rotateY(90deg) translateZ(35px); }
.aggregated-target .cube-left { transform: rotateY(-90deg) translateZ(35px); }
.aggregated-target .cube-top { transform: rotateX(90deg) translateZ(35px); }
.aggregated-target .cube-bottom { transform: rotateX(-90deg) translateZ(35px); }

/* Parent process cube faces (90px) */
.signed-process:not(.child-process) .cube-front,
.unsigned-process:not(.child-process) .cube-front {
  transform: rotateY(0deg) translateZ(45px);
}

.signed-process:not(.child-process) .cube-back,
.unsigned-process:not(.child-process) .cube-back {
  transform: rotateY(180deg) translateZ(45px);
}

.signed-process:not(.child-process) .cube-right,
.unsigned-process:not(.child-process) .cube-right {
  transform: rotateY(90deg) translateZ(45px);
}

.signed-process:not(.child-process) .cube-left,
.unsigned-process:not(.child-process) .cube-left {
  transform: rotateY(-90deg) translateZ(45px);
}

.signed-process:not(.child-process) .cube-top,
.unsigned-process:not(.child-process) .cube-top {
  transform: rotateX(90deg) translateZ(45px);
}

.signed-process:not(.child-process) .cube-bottom,
.unsigned-process:not(.child-process) .cube-bottom {
  transform: rotateX(-90deg) translateZ(45px);
}

/* Child and file cube faces (70px) */
.child-process .cube-front,
.file-target .cube-front {
  transform: rotateY(0deg) translateZ(35px);
}

.child-process .cube-back,
.file-target .cube-back {
  transform: rotateY(180deg) translateZ(35px);
}

.child-process .cube-right,
.file-target .cube-right {
  transform: rotateY(90deg) translateZ(35px);
}

.child-process .cube-left,
.file-target .cube-left {
  transform: rotateY(-90deg) translateZ(35px);
}

.child-process .cube-top,
.file-target .cube-top {
  transform: rotateX(90deg) translateZ(35px);
}

.child-process .cube-bottom,
.file-target .cube-bottom {
  transform: rotateX(-90deg) translateZ(35px);
}

@keyframes rotateCube {
  from {
    transform: rotateX(0deg) rotateY(0deg);
  }
  to {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

.process-arrow {
  font-size: 2rem;
  color: #adb5bd;
  font-weight: bold;
  align-self: center;
  margin: 0 0.5rem;
  margin-bottom: 1.5rem;
}

.process-label {
  text-align: center;
  font-size: 0.9rem;
  max-width: 150px;
  word-wrap: break-word;
}

/* Alert Tab Styling */
.alert-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-subtle);
}
.alert-tab {
  padding: 0.6rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-weight: 500;
  cursor: pointer;
  color: var(--color-muted);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.alert-tab:hover {
  color: var(--color-primary);
  background: rgba(230, 57, 70, 0.05);
}
.alert-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}

.alert-tab-content {
  animation: fadeIn 0.3s ease;
}

.alert-tab-content__heading {
  margin: 1.25rem 0 1rem;
  font-size: 1rem;
  color: var(--color-text);
}

/* Process visualization shell */
.process-viz {
  text-align: center;
  padding: 2rem;
}
.process-viz__title {
  margin-bottom: 2rem;
  color: var(--color-muted);
  font-weight: 500;
}
.process-viz__nav {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.process-viz__nav-counter {
  font-weight: 500;
  color: var(--color-muted);
}
.process-viz__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1rem;
}
.process-viz__empty {
  color: var(--color-muted);
  text-align: center;
  padding: 2rem;
}

/* Process label sub-lines */
.process-label__name--unknown {
  color: var(--color-muted);
  font-style: italic;
}
.process-label__id {
  color: var(--color-muted);
  font-size: 0.85rem;
}
.process-label__sig {
  font-size: 0.8rem;
  font-weight: 500;
}
.process-label__sig--signed { color: var(--status-ok); }
.process-label__sig--unsigned { color: #6c757d; }
.process-label__sig--unknown { color: #adb5bd; }

.process-label__type {
  color: var(--color-muted);
  font-size: 0.85rem;
}
.process-label__type--aggregated {
  color: #c2410c;
  font-size: 0.85rem;
}
.process-label__bytes {
  color: var(--color-muted);
  font-size: 0.75rem;
}

/* Floating dark tooltip for process cubes */
.process-tooltip {
  display: none;
  position: fixed;
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  padding: 1rem;
  border-radius: var(--radius-md);
  z-index: 10000;
  max-width: 400px;
  font-size: 0.85rem;
  box-shadow: var(--shadow-lg);
}
.process-tooltip__title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #4dabf7;
}
.process-tooltip__row {
  margin-bottom: 0.25rem;
  word-break: break-word;
}
.process-tooltip__label {
  color: #adb5bd;
}
.process-tooltip code {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  word-break: break-all;
}
.process-tooltip code.is-block {
  display: block;
  font-size: 0.7rem;
}
.process-tooltip__sig--signed { color: #51cf66; font-weight: 500; }
.process-tooltip__sig--unsigned { color: #ff6b6b; font-weight: 500; }
.process-tooltip__chip {
  background: rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
  padding: 0.1rem 0.3rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}
.process-tooltip__action {
  text-transform: uppercase;
  font-weight: 600;
}

/* Centered error message inside a modal body */
.modal-error {
  text-align: center;
  padding: 2rem;
  color: var(--status-danger, #b91c1c);
}

/* ========== Hunt side panel (history / saved / save form) ========== */
.hunt-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .65rem .9rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--color-surface-2);
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}
.hunt-panel-header__title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .95rem;
  font-weight: 600;
}
.hunt-panel-body {
  padding: 1rem;
}
.hunt-panel-body--scroll-sm { max-height: 380px; overflow: auto; }
.hunt-panel-body--scroll-md { max-height: 420px; overflow: auto; }
.hunt-panel-body--empty {
  padding: 1.25rem;
  color: var(--color-muted);
  font-size: .9rem;
}
.hunt-panel-body--loading {
  padding: 1rem;
  color: var(--color-muted);
}
.hunt-panel-body--error {
  padding: 1rem;
  color: var(--status-danger, #b91c1c);
}

.hunt-history-item,
.hunt-saved-item {
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
}
.hunt-history-item:hover,
.hunt-saved-item:hover { background: var(--color-surface-2); }
.hunt-history-item__row,
.hunt-saved-item__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
}
.hunt-history-item__query {
  font-size: .82rem;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.hunt-history-item__meta,
.hunt-saved-item__meta {
  font-size: .75rem;
  color: var(--color-muted);
  margin-top: .25rem;
}
.hunt-saved-item__main {
  flex: 1;
  min-width: 0;
}
.hunt-saved-item__title-row {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.hunt-saved-item__name {
  font-size: .9rem;
  font-weight: 600;
}
.hunt-saved-item__desc {
  font-size: .78rem;
  color: var(--color-text-2);
  margin-top: .2rem;
}
.hunt-saved-item__query {
  display: block;
  font-size: .78rem;
  color: var(--color-text-2);
  margin-top: .3rem;
  overflow-wrap: anywhere;
}
.hunt-saved-item__actions {
  display: flex;
  gap: .35rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hunt-tag {
  display: inline-block;
  padding: .05rem .4rem;
  margin-right: .25rem;
  background: var(--color-surface-2);
  border-radius: 10px;
  font-size: .7rem;
  color: var(--color-text-2);
}
.hunt-tag--shared {
  background: #eff6ff;
  color: #1d4ed8;
  margin-right: 0;
}

/* Generic small button used inside hunt panels */
.btn.btn-xxs {
  padding: .15rem .5rem;
  font-size: .75rem;
}
.btn.btn-xxs.btn-danger-text { color: var(--color-primary); }

/* Save query form */
.sq-form { padding: 1rem; }
.sq-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--color-text-2);
  margin-bottom: .2rem;
}
.sq-label__hint {
  color: var(--color-muted);
  font-weight: 400;
}
.sq-input,
.sq-textarea {
  width: 100%;
  padding: .4rem .55rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  margin-bottom: .7rem;
  font-family: inherit;
  font-size: .9rem;
}
.sq-textarea {
  resize: vertical;
  font-size: .85rem;
}
.sq-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: .7rem;
  flex-wrap: wrap;
}
.sq-inline-label {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
}
.sq-select { padding: .2rem .4rem; }
.sq-preview {
  margin-bottom: .7rem;
}
.sq-preview > summary {
  cursor: pointer;
  font-size: .78rem;
  color: var(--color-text-2);
}
.sq-preview pre {
  margin: .4rem 0 0;
  padding: .5rem;
  background: var(--color-surface-2);
  border-radius: var(--radius-sm);
  max-height: 160px;
  overflow: auto;
  font-size: .78rem;
}
.sq-error {
  padding: .4rem .6rem;
  margin-bottom: .7rem;
  background: rgba(230, 57, 70, .08);
  color: var(--status-danger, #b91c1c);
  border-radius: var(--radius-sm);
  font-size: .8rem;
}
.sq-actions {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
}

/* Hunt status messages above results */
.hunt-status { margin: 0; }
.hunt-status--info { color: var(--color-muted); }
.hunt-status--ok   { color: var(--status-ok); }
.hunt-status--warn { color: var(--status-warn); }
.hunt-status--err  { color: var(--status-danger, #b91c1c); }
.hunt-status--brand { color: var(--color-primary); }

/* ========== File Intelligence – Burst modal ========== */
.modal-overlay--scroll {
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 1rem;
  overflow-y: auto;
  background: rgba(15, 23, 42, .55);
}
.fi-burst-modal {
  background: #fff;
  border-radius: var(--radius);
  max-width: 760px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  overflow: hidden;
}
.fi-burst-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--color-surface-2);
}
.fi-burst-modal__eyebrow {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--status-warn, #92400e);
}
.fi-burst-modal__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: .15rem;
}
.fi-burst-modal__body {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.fi-burst-modal__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .6rem;
  font-size: .8rem;
}
.fi-stat__label {
  color: var(--color-muted);
  font-size: .72rem;
}
.fi-stat__value {
  font-weight: 600;
}
.fi-stat__value--break {
  word-break: break-all;
}
.fi-burst-modal__window {
  font-size: .78rem;
  color: var(--color-text-2);
}
.fi-burst-modal__window-label {
  color: var(--color-muted);
}
.fi-burst-modal__files-label {
  font-size: .78rem;
  color: var(--color-muted);
  margin-bottom: .3rem;
}
.fi-burst-modal__files-list {
  list-style: none;
  padding: .4rem .75rem;
  margin: 0;
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
}
.fi-burst-modal__file-item {
  font-family: var(--font-mono, monospace);
  font-size: .78rem;
  word-break: break-all;
  padding: .18rem 0;
}
.fi-burst-modal__file-item--empty {
  color: #9ca3af;
  font-family: inherit;
}
.fi-burst-modal__footer {
  display: flex;
  gap: .5rem;
  justify-content: flex-end;
  padding-top: .5rem;
  border-top: 1px solid #f3f4f6;
}
.btn--sm {
  font-size: .85rem;
}

/* ========== File Intelligence – Rename Chain ========== */
.fi-rename-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: .5rem;
  padding: .25rem 0;
}
.fi-rename-step {
  background: var(--color-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: .5rem .75rem;
  max-width: 320px;
}
.fi-rename-step__path {
  word-break: break-all;
  font-size: .82rem;
  display: block;
}
.fi-rename-step__meta {
  font-size: .72rem;
  color: #9ca3af;
  margin-top: .2rem;
}
.fi-rename-step__label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.fi-rename-step__action {
  margin-top: .4rem;
  font-size: .73rem;
  padding: .2rem .5rem;
}
.fi-rename-arrow {
  color: #9ca3af;
  font-size: 1.4rem;
  align-self: center;
  margin: 0 .5rem;
}
.fi-rename-step--move        { background: #ecfeff; border-color: #a5f3fc; }
.fi-rename-step--move .fi-rename-step__label,
.fi-rename-step--move .fi-rename-step__path { color: #06b6d4; }
.fi-rename-step--rename      { background: #f5f3ff; border-color: #ddd6fe; }
.fi-rename-step--rename .fi-rename-step__label,
.fi-rename-step--rename .fi-rename-step__path { color: #7c3aed; }
.fi-rename-step--move-rename { background: #eef2ff; border-color: #c7d2fe; }
.fi-rename-step--move-rename .fi-rename-step__label,
.fi-rename-step--move-rename .fi-rename-step__path { color: #6366f1; }

/* ========== File Intelligence – Action pills (raw table) ========== */
.fi-action-pill {
  font-size: .72rem;
  padding: .12rem .35rem;
  border-radius: 3px;
  color: #fff;
  background: #3b82f6;
}
.fi-action-pill--write       { background: #f59e0b; }
.fi-action-pill--delete      { background: var(--color-primary); }
.fi-action-pill--move        { background: #06b6d4; }
.fi-action-pill--move-rename { background: #6366f1; }
.fi-action-pill--rename      { background: #8b5cf6; }
.fi-action-pill--read        { background: #9ca3af; }

/* ========== File Intelligence – Raw events table ========== */
.fi-raw-cell {
  font-size: .78rem;
}
.fi-raw-cell--muted    { color: var(--color-muted); }
.fi-raw-cell--nowrap   { white-space: nowrap; }
.fi-raw-cell--break    { word-break: break-all; }
.fi-raw-cell--path     { max-width: 240px; }
.fi-raw-cell--newpath  { max-width: 180px; }

/* ========== Settings panels (notifications, etc.) ========== */
.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.settings-label {
  font-weight: 500;
}
.settings-hint {
  font-size: .85rem;
  margin-top: .15rem;
}
.settings-hint--mt {
  margin-top: .5rem;
}
.settings-block-label {
  font-weight: 500;
  margin-bottom: .5rem;
}
.settings-checkbox-row {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.settings-checkbox-item {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.settings-checkbox-item--clickable { cursor: pointer; }
.settings-actions {
  padding-top: .75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
}
.settings-status {
  font-size: .85rem;
}
.settings-error {
  color: var(--status-danger, #b91c1c);
}
.settings-muted-hint {
  color: var(--color-muted);
}

.settings-input-row {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
}
.settings-input {
  flex: 1;
  padding: .5rem .75rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: .9rem;
}
.form-select--narrow { width: 150px; }

/* ========== Investigation: empty state + resolution card ========== */
.investigation-empty {
  text-align: center;
  padding: 2rem;
  color: var(--color-muted);
}
.investigation-empty--lg {
  padding: 3rem;
}
.investigation-empty__hint {
  font-size: .9rem;
}

/* Resolution card — bracket-framed wrap-up entry */
.investigation-entry--resolution {
  position: relative;
  border: none;
  padding: 1.5rem;
}
.investigation-entry--resolution .investigation-entry-header {
  border-bottom: none;
}
.investigation-entry__resolution-content {
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
}
.investigation-classification-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border-subtle);
}
.investigation-classification-label {
  font-weight: 600;
  color: var(--color-text);
}
.investigation-classification-badge {
  padding: .25rem .75rem;
  border-radius: var(--radius-md);
  font-size: .875rem;
  font-weight: 600;
  text-transform: capitalize;
  background: #dbeafe;
  color: #1e40af;
}
.investigation-classification-badge--true-positive  { background: #fee2e2; color: #991b1b; }
.investigation-classification-badge--false-positive { background: #fef3c7; color: #92400e; }
.investigation-resolution-body {
  color: var(--color-text);
  line-height: 1.6;
}

/* Corner brackets — applied via ::before/::after on a single element */
.bracket-frame {
  position: relative;
}
.bracket-frame__corner {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 0 solid var(--color-primary);
  pointer-events: none;
}
.bracket-frame__corner--tl { top: -1px; left: -1px;  border-top-width: 3px; border-left-width: 3px; }
.bracket-frame__corner--tr { top: -1px; right: -1px; border-top-width: 3px; border-right-width: 3px; }
.bracket-frame__corner--bl { bottom: -1px; left: -1px;  border-bottom-width: 3px; border-left-width: 3px; }
.bracket-frame__corner--br { bottom: -1px; right: -1px; border-bottom-width: 3px; border-right-width: 3px; }

/* ========== Artifact Correlation Modal ========== */
.modal-content--md { max-width: 700px; }
.artifact-correlation__value-box {
  margin-bottom: 1rem;
  padding: .75rem;
  background: var(--color-surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
}
.artifact-correlation__value-label {
  font-size: .75rem;
  color: var(--color-muted);
  margin-bottom: .25rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.artifact-correlation__value-code {
  font-size: .9rem;
  word-break: break-all;
  color: var(--color-text);
}
.artifact-correlation__empty {
  text-align: center;
  padding: 2rem;
  color: var(--color-muted);
}
.artifact-correlation__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .75rem;
}
.artifact-correlation__title {
  margin: 0;
  font-size: .95rem;
  color: var(--color-text);
}
.artifact-correlation__page-info {
  font-size: .8rem;
  color: var(--color-muted);
}
.artifact-correlation__table-wrap {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
}
.artifact-correlation__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}
.artifact-correlation__page-counter {
  font-size: .85rem;
  color: var(--color-muted);
}
.correlation-table th.col-status { width: 100px; }
.correlation-table th.col-time   { width: 140px; }
.correlation-table tr.is-clickable { cursor: pointer; }
.correlation-table .cell-id     { font-size: .85rem; }
.correlation-table .cell-status { text-align: center; font-size: .85rem; color: var(--color-text); }
.correlation-table .cell-time   { font-size: .8rem; color: var(--color-muted); }

/* ========== Investigation alert summary header ========== */
.alert-summary-header h2 { margin: .5rem 0; }
.alert-summary-header__meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: .5rem;
  flex-wrap: wrap;
}
.alert-summary-header__time {
  color: var(--color-muted);
}
.alert-summary-scope-badge {
  background: #e3f2fd;
  color: #1976d2;
  padding: .2rem .5rem;
  border-radius: var(--radius-sm);
  font-size: .8rem;
}
.alert-summary-item--full { grid-column: 1 / -1; }
.alert-summary-classification {
  text-transform: capitalize;
}
.alert-summary-actions-row {
  display: flex;
  gap: .5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.alert-summary-action-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .5rem;
}
.alert-summary-action-pill {
  padding: .5rem .75rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--status-info);
  background: #e3f2fd;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.alert-summary-action-pill__name { font-weight: 500; }
.alert-summary-action-pill--completed {
  background: #e8f5e9;
  border-left-color: #4caf50;
}
.alert-summary-action-pill--failed {
  background: #ffebee;
  border-left-color: #f44336;
}
.alert-summary-action-pill--pending {
  background: #fff8e1;
  border-left-color: #ff9800;
}

/* ========== Account info card (Settings) ========== */
.account-info-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.member-avatar--lg {
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
}
.account-info-row__body { flex: 1; }
.account-info-row__name {
  font-weight: 600;
  font-size: 1.1rem;
}
.account-info-row__email { color: var(--color-text-2); }
.account-info-row__since {
  color: var(--color-text-2);
  font-size: .8rem;
  margin-top: .25rem;
}
.btn--compact {
  font-size: .82rem;
  padding: .45rem .9rem;
  white-space: nowrap;
}

/* ========== Alerts table ========== */
#alertsTable th.col-checkbox { width: 40px; }
#alertsTable th.col-time     { width: 180px; }
#alertsTable th.col-severity { width: 100px; }
#alertsTable th.col-status   { width: 130px; }
#alertsTable th.col-assigned { width: 120px; }
#alertsTable th.col-events   { width: 70px; }
#alertsTable th.col-actions  { width: 110px; text-align: center; }
#alertsTable tr.row-clickable { cursor: pointer; }
#alertsTable .cell-time { white-space: nowrap; }
#alertsTable tr.row-new-critical { background: rgba(220, 53, 69, 0.05); }
#alertsTable tr.row-new-high     { background: rgba(255, 152, 0, 0.05); }
.alerts-load-error {
  text-align: center;
  padding: 2rem;
  color: var(--severity-high);
}

/* ========== Resolve-alert dialog ========== */
.resolve-dialog__card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
}
.resolve-dialog__title {
  margin: 0 0 1rem 0;
}
.resolve-dialog__field {
  margin-bottom: 1rem;
}
.resolve-dialog__field--last {
  margin-bottom: 1.5rem;
}
.resolve-dialog__label {
  display: block;
  margin-bottom: .5rem;
  font-weight: 500;
}
.resolve-dialog__control {
  width: 100%;
  padding: .5rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  font-size: 1rem;
}
textarea.resolve-dialog__control {
  min-height: 100px;
  resize: vertical;
}
.resolve-dialog__error {
  color: var(--severity-high);
  font-size: .875rem;
  margin-top: .25rem;
}
.resolve-dialog__error.is-hidden { display: none; }
.resolve-dialog__control.has-error { border-color: var(--severity-high); }

/* ========== Hunt toolbar (results header) ========== */
.hunt-toolbar__left {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}
.hunt-toolbar__right {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.hunt-toolbar__count {
  font-weight: 500;
  color: var(--color-muted);
}
.btn--xs { font-size: .85rem; }
.hunt-col-picker-actions-row {
  padding: .4rem .6rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  gap: .5rem;
}
.hunt-col-picker-item--empty { color: #999; }

/* ========== PCAP viewer + Note edit modal ========== */
.pcap-filter-status {
  margin-left: 10px;
  color: var(--color-muted);
}
.pcap-page-info {
  margin: 0 15px;
}
.pcap-page-size {
  margin-left: 15px;
  padding: 4px 8px;
}
.pcap-protocol-chart {
  max-width: 400px;
  margin: 0 auto;
}
.reputation-loading {
  text-align: center;
  padding: 20px;
}
.modal-content--lg {
  max-width: 800px;
  max-height: 90vh;
}

/* ========== Rules table cells ========== */
.rules-actions-row {
  display: flex;
  gap: .5rem;
  align-items: center;
}
.rules-action-toggle {
  font-size: .875rem;
  cursor: pointer;
}
.rules-cell-actions { text-align: right; }
.rules-readonly-tag {
  color: var(--color-muted);
  font-size: .875rem;
}

/* ========== Bulk-assign member picker (alerts) ========== */
.bulk-assign-item {
  padding: .5rem .75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.bulk-assign-item:hover {
  background: #f5f5f5;
}
.bulk-assign-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1976d2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  flex-shrink: 0;
}
.bulk-assign-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bulk-assign-empty {
  padding: .5rem .75rem;
  color: #888;
}

/* ========== Asset detail modal ========== */
/* Status indicator dot + badge driven by data-status */
.asset-status-indicator[data-status="active"]   { background: #22c55e; }
.asset-status-indicator[data-status="inactive"] { background: #f59e0b; }
.asset-status-indicator[data-status="other"]    { background: #dc3545; }

.asset-status-badge[data-status="active"] {
  background: rgba(34, 197, 94, .125);
  color: #22c55e;
  border: 1px solid #22c55e;
}
.asset-status-badge[data-status="inactive"] {
  background: rgba(245, 158, 11, .125);
  color: #f59e0b;
  border: 1px solid #f59e0b;
}
.asset-status-badge[data-status="other"] {
  background: rgba(220, 53, 69, .125);
  color: #dc3545;
  border: 1px solid #dc3545;
}

.asset-detail-meta {
  color: var(--color-muted);
  font-size: .85rem;
}

.asset-modal-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: .5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.btn--isolate      { background: #dc3545; color: #fff; }
.btn--unisolate    { background: #22c55e; color: #fff; }
.btn--scan         { background: #f59e0b; color: #fff; }
.btn--decommission { background: #dc3545; color: #fff; }

/* Assets table state cells */
.assets-load-error {
  text-align: center;
  padding: 2rem;
  color: #dc3545;
}
.isolation-badge {
  font-size: .7rem;
  padding: 2px 6px;
  color: #fff;
}
.isolation-badge--isolated         { background: #dc3545; }
.isolation-badge--isolation-pending,
.isolation-badge--unisolation-pending { background: #f59e0b; }
.isolation-empty {
  font-size: .85rem;
}

/* Dashboard detail spacing */
.dash-row--mb { margin-bottom: 1rem; }
.dash-empty--padded { padding: 2rem; }
.dash-empty--loading { padding: 3rem 0; }

/* Home page failure messages */
.home-strong--ok      { color: var(--severity-low); }
.home-strong--bad     { color: var(--color-primary); }
.home-list-error      { color: var(--color-primary); }
.home-stats-error     { color: red; }
.home-alerts-error    { text-align: center; color: red; }

/* Quarantine table */
.quarantine-action-empty { color: #999; }
.quarantine-badge {
  font-size: .75rem;
  padding: 3px 8px;
  color: #fff;
}
.quarantine-badge--quarantined { background: #dc3545; }
.quarantine-badge--released    { background: #198754; }
.quarantine-badge--failed,
.quarantine-badge--unknown     { background: #6c757d; }

/* Quarantine table cells */
.quarantine-load-error {
  text-align: center;
  padding: 3rem;
  color: #dc3545;
}
.quarantine-hash {
  font-size: .75rem;
  color: #111;
  word-break: break-all;
}
.quarantine-hash-empty { color: #999; }
.quarantine-device-code {
  font-size: .8rem;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
}

/* File-investigation cards (fi-*) */
.fi-card-header__main {
  min-width: 0;
  flex: 1;
}
.fi-card-events-count {
  font-weight: 700;
  font-size: 1.1rem;
  color: #111827;
  white-space: nowrap;
}
.fi-action-segs__empty {
  font-size: .75rem;
  color: #9ca3af;
}
.fi-card-meta--accounts { color: #4b5563; }
.fi-card-meta__events {
  font-weight: 600;
  color: #111827;
}

/* Investigation page state messages */
.investigation-state {
  padding: 2rem;
  text-align: center;
}
.investigation-state__error {
  color: var(--color-danger);
}

/* Artifacts list */
.artifacts-empty {
  text-align: center;
  padding: 3rem;
  color: var(--color-muted);
}
.artifacts-empty__hint {
  font-size: .9rem;
}
.artifact-value__inline {
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* Skeleton loaders */
.skeleton-list-item__body { flex: 1; }
.skeleton-text--dim { opacity: .7; }

/* Rules table fallback rows */
.rules-load-error {
  text-align: center;
  color: var(--error-color, #dc3545);
}
.rules-empty-cell {
  text-align: center;
  color: var(--text-muted, var(--color-muted));
}
.rules-builtin-note {
  color: var(--text-muted, var(--color-muted));
  display: block;
  margin-top: .25rem;
}

/* Investigation event row Hunt button */
.fi-event-row__hunt-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Investigation read-run collapsible body (toggled imperatively) */
.fi-read-run-body--collapsed { display: none; }

/* Whitelist button (alert event header) */
.btn--micro {
  font-size: .7rem;
  padding: .2rem .5rem;
}

/* Aggregated event file-paths label vertical alignment */
.event-label--top {
  align-self: start;
  padding-top: .4rem;
}

/* Quarantine page state cells */
.quarantine-state-cell {
  text-align: center;
  padding: 3rem;
}

/* Settings: notification recipients/severity hint */
.settings-hint--mb { margin-bottom: .75rem; }

/* Members list */
.members-empty { color: var(--text-muted, var(--color-muted)); }
.members-count {
  font-size: .85rem;
  color: var(--color-text-2);
  margin-bottom: 1rem;
}

/* Misc utility classes for legacy inline-style spots */
.text-mb-sm  { margin-bottom: .75rem; }
.text-mt-sm  { margin-top: 1.5rem; }
.dash-row--mb-sm { margin-bottom: .5rem; }
.row-link-cursor { cursor: pointer; }
.empty-cell-center {
  text-align: center;
  color: var(--text-muted, var(--color-muted));
}
.muted-block-center {
  text-align: center;
  padding: 2rem;
}
.loading-block {
  text-align: center;
  padding: 2rem;
}
.alert-info-value--id {
  font-size: .8rem;
  font-family: monospace;
}
.textarea-resize-v {
  width: 100%;
  height: 200px;
  resize: vertical;
}
.textarea-min-100 { min-height: 100px; }
.hunt-truncated-note {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(230, 57, 70, .06);
  border-left: 3px solid var(--color-primary);
  font-size: .85rem;
  color: var(--color-text-2);
}
.col-narrow { width: 1.5rem; }
.pcap-empty-cell {
  padding: 20px;
  color: #888;
}
.tl-expand-btn { font-size: .8rem; }
.text-center { text-align: center; }
.resolve-dialog__actions {
  display: flex;
  gap: .5rem;
  justify-content: flex-end;
}

.notif-recipient-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}
.notif-recipient-row__email {
  flex: 1;
  font-size: .9rem;
}
.notif-recipient-row__empty {
  font-size: .85rem;
}

/* ========== Asset list / whitelist tables ========== */
.row-clickable { cursor: pointer; }
.row-disabled  { opacity: .6; }

.asset-status--active        { color: #22c55e; }
.asset-status--inactive      { color: var(--color-muted); }
.asset-status--decommissioned{ color: #d63384; }

.dim-code {
  font-size: .7rem;
  color: var(--color-muted);
}

.wl-cell-code {
  font-size: .8rem;
  word-break: break-all;
}
.wl-cell-code--sm {
  font-size: .75rem;
  word-break: break-all;
}
.wl-cell-hash {
  font-size: .7rem;
  word-break: break-all;
  max-width: 120px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wl-cell-reason {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wl-cell-center { text-align: center; }
.wl-any         { color: var(--color-muted); }
.wl-signature   { color: var(--status-ok); font-weight: 500; }
.wl-suppressed  { color: #3b82f6; }
.wl-status--on  { color: #22c55e; }
.wl-status--off { color: var(--color-muted); }

.btn-table-action {
  padding: .25rem .5rem;
  font-size: .875rem;
}
.btn-table-action + .btn-table-action {
  margin-left: .25rem;
}

/* ── Whitelist table: pin Actions column so buttons stay visible while
       horizontally scrolling the wide column set ── */
#whitelistsTable th,
#whitelistsTable td {
  padding: .45rem .55rem;
  font-size: .85rem;
}
#whitelistsTable th:last-child,
#whitelistsTable td:last-child {
  position: sticky;
  right: 0;
  background: #fff;
  box-shadow: -6px 0 6px -4px rgba(0, 0, 0, .08);
  white-space: nowrap;
  z-index: 2;
}
#whitelistsTable th:last-child {
  background: #fafafa;
  z-index: 3;
}
#whitelistsTable tr.row-disabled td:last-child {
  background: #fafafa;
}

/* ── Whitelist table: condensed default view + expandable detail row ── */
#whitelistsTable .wl-expand-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: .15rem .35rem;
  color: var(--color-text-2);
  font-size: .9rem;
  line-height: 1;
  transition: transform .15s ease;
}
#whitelistsTable tr.is-expanded .wl-expand-toggle {
  transform: rotate(90deg);
}
#whitelistsTable .wl-detail-row > td {
  background: var(--color-surface-2);
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
#whitelistsTable .wl-detail-row { display: none; }
#whitelistsTable .wl-detail-row.is-open { display: table-row; }
.wl-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: .65rem 1.25rem;
  font-size: .82rem;
}
.wl-detail-field {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}
.wl-detail-field__label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-muted);
  font-weight: 600;
}
.wl-detail-field__value {
  word-break: break-all;
  font-family: var(--font-mono, monospace);
  font-size: .8rem;
}
.wl-detail-field__value--text {
  font-family: inherit;
  word-break: normal;
}

.table-empty-row {
  text-align: center;
  color: var(--color-muted);
}

.modal-loading {
  text-align: center;
  padding: 2rem;
}

/* Asset detail modal status badges (color-driven via CSS vars per badge) */
.asset-status-badge--isolated   { background: rgba(220, 53, 69, .12); color: #dc3545; border: 1px solid #dc3545; }
.asset-status-badge--pending    { background: rgba(245, 158, 11, .12); color: #f59e0b; border: 1px solid #f59e0b; }
.asset-status-badge--version    { background: rgba(108, 117, 125, .12); color: #6c757d; border: 1px solid #6c757d; }

.mono-text { font-family: var(--font-mono, monospace); }
.mono-text--xs { font-family: var(--font-mono, monospace); font-size: .8rem; }

/* ===== Standardized Loading States ===== */

/* Base spinner - multiple sizes */
.loading-spinner {
  display: inline-block;
  border-radius: 50%;
  border-style: solid;
  border-color: #f0f0f0;
  border-top-color: var(--color-primary);
  animation: spinner-rotate 0.8s linear infinite;
}

/* Spinner sizes */
.loading-spinner { width: 32px; height: 32px; border-width: 3px; }
.loading-spinner.sm { width: 16px; height: 16px; border-width: 2px; }
.loading-spinner.lg { width: 48px; height: 48px; border-width: 4px; }
.loading-spinner.xl { width: 64px; height: 64px; border-width: 5px; }

/* Inline spinner for buttons/text */
.loading-spinner.inline {
  width: 14px;
  height: 14px;
  border-width: 2px;
  vertical-align: middle;
  margin-right: 0.5rem;
}

@keyframes spinner-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Loading container - centered with optional text */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: #666;
  animation: loading-fade-in 0.2s ease-out;
}

.loading-container.compact {
  padding: 1.5rem 1rem;
}

.loading-container.minimal {
  padding: 1rem;
  flex-direction: row;
  gap: 0.75rem;
}

.loading-container.minimal .loading-text {
  margin-top: 0;
}

@keyframes loading-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.loading-text {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #666;
}

/* Inline loading text with spinner */
.loading-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  font-size: 0.9rem;
}

/* Loading overlay for sections */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: inherit;
}

/* Panel/Card with loading state */
.panel.is-loading,
.card.is-loading {
  position: relative;
  min-height: 120px;
}

.panel.is-loading::after,
.card.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 3px solid #f0f0f0;
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spinner-rotate 0.8s linear infinite;
}

/* Button loading state */
.btn.is-loading,
.btn-small.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn.is-loading::after,
.btn-small.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spinner-rotate 0.7s linear infinite;
}

.btn.secondary.is-loading::after,
.btn-small.secondary.is-loading::after {
  border-color: rgba(230, 57, 70, 0.2);
  border-top-color: var(--color-primary);
}

/* Table cell loading state */
.table td.is-loading {
  position: relative;
}

.table td.is-loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #f0f0f0;
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spinner-rotate 0.8s linear infinite;
  vertical-align: middle;
}

/* ===== Skeleton Loaders ===== */
.skeleton {
  background: linear-gradient(90deg, #f5f5f5 25%, #ebebeb 50%, #f5f5f5 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Skeleton text lines */
.skeleton-text {
  height: 1em;
  margin-bottom: 0.5rem;
  border-radius: 3px;
}

.skeleton-text.sm { width: 40%; }
.skeleton-text.md { width: 70%; }
.skeleton-text.lg { width: 90%; }
.skeleton-text:last-child { margin-bottom: 0; }

/* Skeleton heading */
.skeleton-heading {
  height: 1.5em;
  width: 50%;
  margin-bottom: 1rem;
  border-radius: 4px;
}

/* Skeleton avatar/icon */
.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-avatar.sm { width: 24px; height: 24px; }
.skeleton-avatar.lg { width: 56px; height: 56px; }

/* Skeleton badge */
.skeleton-badge {
  display: inline-block;
  width: 60px;
  height: 22px;
  border-radius: 4px;
}

/* Skeleton button */
.skeleton-btn {
  display: inline-block;
  width: 80px;
  height: 32px;
  border-radius: 4px;
}

/* Skeleton table */
.skeleton-table {
  width: 100%;
}

.skeleton-row {
  display: flex;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  animation: skeleton-row-fade 0.3s ease-out;
  animation-fill-mode: both;
}

.skeleton-row:nth-child(1) { animation-delay: 0ms; }
.skeleton-row:nth-child(2) { animation-delay: 50ms; }
.skeleton-row:nth-child(3) { animation-delay: 100ms; }
.skeleton-row:nth-child(4) { animation-delay: 150ms; }
.skeleton-row:nth-child(5) { animation-delay: 200ms; }

@keyframes skeleton-row-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.skeleton-row:last-child {
  border-bottom: none;
}

.skeleton-cell {
  height: 20px;
  border-radius: 4px;
  flex: 1;
}

.skeleton-cell.narrow { flex: 0 0 80px; }
.skeleton-cell.wide { flex: 2; }

/* Skeleton card grid */
.skeleton-card {
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 1rem;
  background: #fff;
}

.skeleton-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.skeleton-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Skeleton list item */
.skeleton-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f5f5f5;
}

.skeleton-list-item:last-child {
  border-bottom: none;
}

/* Button loading state */
.btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}
.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-top: -8px;
  margin-left: -8px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Fade transitions for dynamic content */
.fade-enter {
  opacity: 0;
  transform: translateY(10px);
}
.fade-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Custom Confirmation Dialog */
.confirm-dialog-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
  padding: 1rem;
}

.confirm-dialog-overlay.show {
  display: flex;
}

.confirm-dialog {
  background: #fff;
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-lg, 0 10px 40px rgba(0,0,0,0.3));
  max-width: 480px;
  width: 100%;
  animation: slideDown 0.2s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@keyframes slideDown {
  from {
    transform: translateY(-30px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.confirm-dialog-header {
  padding: 1.25rem 1.5rem 1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle, #e5e7eb);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
}

.confirm-dialog-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.confirm-dialog-icon.warning { color: var(--severity-medium, #fd7e14); }
.confirm-dialog-icon.error   { color: var(--status-danger, #b91c1c); }
.confirm-dialog-icon.info    { color: var(--status-info,   #1d4ed8); }
.confirm-dialog-icon.success { color: var(--status-ok,     #198754); }

.confirm-dialog-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text, #111);
  margin: 0;
  line-height: 1.3;
}

.confirm-dialog-body {
  padding: 1.25rem 1.5rem 1.25rem 1.5rem;
  color: var(--color-text-2, #444);
  font-size: 0.95rem;
  line-height: 1.55;
}

.confirm-dialog-input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border-strong, #d1d5db);
  border-radius: var(--radius-md, 6px);
  font-size: 0.95rem;
  margin-top: 0.5rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.confirm-dialog-input:focus {
  outline: none;
  border-color: var(--color-primary, #e63946);
  box-shadow: var(--shadow-focus, 0 0 0 3px rgba(230, 57, 70, 0.18));
}

.confirm-dialog-footer {
  padding: 0.75rem 1.5rem 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle, #e5e7eb);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  background: var(--color-surface-2, #fafafa);
}

.confirm-dialog-btn {
  padding: 0.5rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md, 6px);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
  line-height: 1.2;
}

.confirm-dialog-btn-cancel {
  background: #fff;
  color: var(--color-text, #111);
  border-color: var(--border-strong, #d1d5db);
}

.confirm-dialog-btn-cancel:hover {
  background: var(--color-surface-2, #f8f8f8);
  border-color: #b3b8c0;
}

.confirm-dialog-btn-confirm {
  background: var(--color-primary, #e63946);
  color: #fff;
}

.confirm-dialog-btn-confirm:hover {
  background: var(--color-primary-hover, #d62839);
}

.confirm-dialog-btn-confirm:focus,
.confirm-dialog-btn-cancel:focus,
.confirm-dialog-input:focus {
  outline: none;
  box-shadow: var(--shadow-focus, 0 0 0 3px rgba(230, 57, 70, 0.18));
}

.confirm-dialog-btn-confirm.danger {
  background: var(--status-danger, #b91c1c);
}

.confirm-dialog-btn-confirm.danger:hover {
  background: #991616;
}

/* ===== Investigation Page Styles ===== */

.investigation-container {
  padding: 1.5rem;
  max-width: 100%;
  margin: 0;
}

/* Alert Summary Card */
.investigation-alert-summary {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  margin-bottom: 1.5rem;
}

.alert-summary-header h2 {
  font-size: 1.5rem;
  color: var(--color-text);
}

.alert-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.alert-summary-item label {
  display: block;
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.alert-summary-item div,
.alert-summary-item code {
  font-size: 0.9rem;
  color: var(--color-text);
}

.alert-summary-item code {
  background: #f5f5f5;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.85rem;
  display: inline-block;
}

/* Investigation Tabs */
.investigation-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 1.5rem;
}

.investigation-tab {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #666;
  transition: all 0.2s;
  margin-bottom: -2px;
}

.investigation-tab:hover {
  color: var(--color-primary);
  background: rgba(230, 57, 70, 0.05);
}

.investigation-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.investigation-tab-content {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

/* Timeline Header */
.investigation-timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
}

.investigation-timeline-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--color-text);
}

.investigation-header {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.back-link {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.back-link:hover {
  text-decoration: underline;
}

.investigation-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.alert-summary-sidebar {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  height: fit-content;
}

.alert-summary-sidebar h3 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 0.5rem;
}

.alert-detail-item {
  margin-bottom: 1rem;
}

.alert-detail-item label {
  display: block;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.alert-detail-item div,
.alert-detail-item code {
  font-size: 0.95rem;
  color: var(--color-text);
}

.alert-detail-item code {
  background: #f5f5f5;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.85rem;
  word-break: break-all;
  display: block;
}

.investigation-timeline {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.investigation-timeline h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1.1rem;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 0.5rem;
}

.investigation-entry {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.investigation-entry:last-child {
  margin-bottom: 0;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e0e0e0;
}

.entry-header strong {
  color: var(--color-text);
  font-size: 0.95rem;
}

.entry-time {
  color: #888;
  font-size: 0.85rem;
  margin-left: 0.75rem;
}

.entry-edited {
  color: #999;
  font-size: 0.8rem;
  font-style: italic;
  margin-left: 0.5rem;
}

.entry-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-icon {
  background: transparent;
  border: none;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  opacity: 0.6;
  transition: opacity 0.2s;
  color: #666;
}

.btn-icon:hover {
  opacity: 1;
  color: #333;
}

.entry-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-2);
}

/* User-authored notes (non-CORA) may contain pre-formatted text */
.entry-content p:empty {
  display: none;
}

.entry-description {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.screenshot-container {
  margin-top: 0.75rem;
}

.screenshot-container img {
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: transform 0.2s;
}

.screenshot-container img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.screenshot-filename {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.5rem;
}

.investigation-note {
  border-left: 3px solid #e0e0e0;
}

.investigation-note.cora-note {
  border-left: none;
}

.investigation-screenshot {
  border-left: 3px solid #e0e0e0;
}

/* Screenshot fullscreen viewer */
.screenshot-fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 2rem;
}

.screenshot-fullscreen-content {
  position: relative;
  max-width: 95%;
  max-height: 95%;
}

.screenshot-fullscreen-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 8px;
}

.screenshot-fullscreen-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 40px;
  height: 40px;
}

.screenshot-fullscreen-filename {
  color: white;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* Modal styling for investigation */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay .modal-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay h3 {
  margin: 0 0 1.5rem 0;
  color: var(--color-text);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

textarea.form-control {
  resize: vertical;
  font-family: var(--mono);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Inline form validation message under a field */
.form-error {
  color: var(--status-danger, #b91c1c);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

/* Rich Note Editor - Persistent */
.add-note-editor-persistent {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 2rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

.add-note-editor-persistent:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

/* Rich Note Editor - Legacy (for modals) */
.add-note-editor {
  background: #f8f9fa;
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.note-editor-header {
  background: var(--color-primary);
  color: white;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.note-editor-header strong {
  font-size: 1rem;
}

.btn-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  line-height: 1;
  opacity: 0.8;
}

.btn-close:hover {
  opacity: 1;
}

.note-editor-body {
  padding: 1rem;
}

.note-content-editable {
  min-height: 100px;
  max-height: 400px;
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  font-size: 0.95rem;
  line-height: 1.6;
  font-family: var(--font-sans);
  margin-bottom: 1rem;
  position: relative;
}

.note-content-editable:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.note-content-editable:empty:before {
  content: attr(placeholder);
  color: #999;
  font-style: italic;
  pointer-events: none;
  position: absolute;
}

.note-content-editable.has-content:before {
  content: none;
}

.note-content-editable img {
  max-width: 100%;
  margin: 0.5rem 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  display: block;
}

.note-editor-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* Artifacts Section */
.artifacts-container {
  min-height: 400px;
}

.artifacts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
}

.artifacts-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--color-text);
}

.add-artifact-form {
  background: #f8f9fa;
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.artifact-group {
  margin-bottom: 2rem;
}

.artifact-group h4 {
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e0e0e0;
  color: var(--color-text);
  font-size: 1.1rem;
}

.artifact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.artifact-item {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.artifact-value {
  flex: 1;
}

.artifact-value code {
  background: white;
  padding: 0.5rem;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.9rem;
  display: inline-block;
  word-break: break-all;
  border: 1px solid #ddd;
}

.artifact-description {
  margin: 0.5rem 0 0 0;
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}

.artifact-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: #888;
  white-space: nowrap;
}

.artifact-meta button {
  opacity: 0.6;
  transition: opacity 0.2s;
}

.artifact-meta button:hover {
  opacity: 1;
}

/* Artifact Correlation Styles */
.artifact-item.has-correlation {
  cursor: pointer;
  transition: all 0.2s ease;
}

.artifact-item.has-correlation:hover {
  background: #e8f4f8;
  border-color: #4a9eff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(74, 158, 255, 0.15);
}

.artifact-correlation-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #4a9eff;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  min-width: 24px;
  cursor: pointer;
}

.correlation-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.correlation-item {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.correlation-item:hover {
  background: #e8f4f8;
  border-color: #4a9eff;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(74, 158, 255, 0.15);
}

.severity-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.correlation-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.correlation-table thead {
  background: #f8f9fa;
}

.correlation-table th {
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  color: #666;
  border-bottom: 2px solid #e0e0e0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.correlation-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #f0f0f0;
}

.correlation-table tbody tr {
  transition: background 0.15s ease;
}

.correlation-table tbody tr:hover {
  background: #f8f9fa;
}

.correlation-table tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 768px) {
  .investigation-layout {
    grid-template-columns: 1fr;
  }
  
  .alert-summary-sidebar {
    position: static;
  }
  
  .artifact-item {
    flex-direction: column;
  }
  
  .artifact-meta {
    align-items: flex-start;
    width: 100%;
  }
}

/* Organization Risk Overview */
.risk-overview {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Blast Radius Infographic */
.blast-radius-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
}

.blast-radius {
  position: relative;
  flex-shrink: 0;
}

.blast-org-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 3px solid #dee2e6;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.blast-threat-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at center, 
    rgba(230, 57, 70, 0.9) 0%, 
    rgba(230, 57, 70, 0.6) 40%, 
    rgba(230, 57, 70, 0.3) 70%, 
    rgba(230, 57, 70, 0.1) 100%);
  transform: scale(0);
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.blast-threat-circle.pulse {
  animation: threatPulse 2s ease-in-out infinite;
}

@keyframes threatPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.blast-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blast-percentage {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.1;
}

.blast-label {
  font-size: 0.65rem;
  color: var(--color-text-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blast-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.blast-stat {
  display: flex;
  flex-direction: column;
}

.blast-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

.blast-stat-label {
  font-size: 0.8rem;
  color: var(--color-text-2);
}

/* Risk level colors for blast radius */
.blast-threat-circle.risk-low {
  background: radial-gradient(circle at center, 
    rgba(25, 135, 84, 0.8) 0%, 
    rgba(25, 135, 84, 0.4) 50%, 
    rgba(25, 135, 84, 0.1) 100%);
}

.blast-threat-circle.risk-medium {
  background: radial-gradient(circle at center, 
    rgba(253, 126, 20, 0.85) 0%, 
    rgba(253, 126, 20, 0.5) 50%, 
    rgba(253, 126, 20, 0.15) 100%);
}

.blast-threat-circle.risk-high {
  background: radial-gradient(circle at center, 
    rgba(214, 51, 132, 0.85) 0%, 
    rgba(214, 51, 132, 0.5) 50%, 
    rgba(214, 51, 132, 0.15) 100%);
}

.blast-threat-circle.risk-critical {
  background: radial-gradient(circle at center, 
    rgba(139, 0, 0, 0.9) 0%, 
    rgba(230, 57, 70, 0.6) 50%, 
    rgba(230, 57, 70, 0.2) 100%);
}

/* Risk bar styles */
.risk-bar-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.risk-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--color-text-2);
}

.risk-percentage {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text);
}

.risk-bar {
  height: 12px;
  background: #f0f0f0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.risk-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.5s ease-out, background-color 0.3s;
  background: var(--severity-low);
}

.risk-bar-fill.risk-low { background: var(--severity-low); }
.risk-bar-fill.risk-medium { background: var(--severity-medium); }
.risk-bar-fill.risk-high { background: var(--severity-high); }
.risk-bar-fill.risk-critical { background: #8b0000; }

.severity-section {
  margin-top: 0.5rem;
}

.severity-section-label {
  font-size: 0.8rem;
  color: var(--color-text-2);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.severity-breakdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.severity-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius);
  border: 1px solid #eee;
  background: #fafafa;
}

.severity-item .severity-count {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.severity-item .severity-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-2);
  margin-top: 0.25rem;
}

.severity-item.severity-critical .severity-count { color: #8b0000; }
.severity-item.severity-high .severity-count { color: var(--severity-high); }
.severity-item.severity-medium .severity-count { color: #d16400; }
.severity-item.severity-low .severity-count { color: var(--severity-low); }

.top-affected {
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

.top-affected-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-2);
}

.view-all-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8rem;
}

.view-all-link:hover {
  text-decoration: underline;
}

.top-affected-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.top-affected-list li.no-data {
  text-align: center;
  color: var(--color-text-2);
  padding: 1rem;
}

.top-affected-list li.affected-device {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #eee;
}

.device-name {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--color-text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.device-stats .alert-count {
  font-size: 0.8rem;
  color: var(--color-text-2);
}

@media (max-width: 600px) {
  .severity-breakdown {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Threat Intelligence Feed */
.threat-intel-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 400px;
  min-height: 150px;
  overflow-y: auto;
}

.threat-intel-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  color: var(--color-text-2);
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #eee;
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.threat-intel-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #eee;
  transition: background-color 0.15s;
}

.threat-intel-item:last-child {
  border-bottom: none;
}

.threat-intel-item:hover {
  background-color: #f8f9fa;
}

.threat-intel-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.threat-intel-icon.cisa {
  background: linear-gradient(135deg, #003366 0%, #004080 100%);
  color: white;
}

.threat-intel-icon.news {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #e63946;
}

.threat-intel-icon.vuln {
  background: linear-gradient(135deg, #8b0000 0%, #b22222 100%);
  color: white;
}

.threat-intel-content {
  flex: 1;
  min-width: 0;
}

.threat-intel-title {
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.threat-intel-title a {
  color: inherit;
  text-decoration: none;
}

.threat-intel-title a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.threat-intel-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--color-text-2);
}

.threat-intel-source {
  font-weight: 500;
}

.threat-intel-date {
  color: #888;
}

.threat-intel-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.threat-intel-tag.critical {
  background: #8b000020;
  color: #8b0000;
}

.threat-intel-tag.high {
  background: #d6338420;
  color: #d63384;
}

.threat-intel-tag.advisory {
  background: #00336620;
  color: #003366;
}

.threat-intel-error {
  text-align: center;
  padding: 2rem;
  color: var(--color-text-2);
}

.threat-intel-error a {
  color: var(--color-primary);
  text-decoration: none;
}

.threat-intel-error a:hover {
  text-decoration: underline;
}

/* Settings Page Styles */
.settings-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-2);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.settings-search {
  padding: 0.35rem 0.6rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.8rem;
  width: 140px;
}

.settings-search:focus {
  outline: none;
  border-color: var(--color-primary);
}

.settings-account-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.settings-tenant-info .tenant-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.settings-tenant-info .tenant-id {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--color-text-2);
  background: #f5f5f5;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.settings-tenant-info .tenant-desc {
  color: var(--color-text-2);
  font-size: 0.9rem;
}

/* Member list */
.member-row {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.member-row:last-child {
  border-bottom: none;
}

.member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.member-info {
  flex: 1;
  min-width: 0;
}

.member-name {
  font-weight: 500;
  color: var(--color-text);
}

.member-email {
  font-size: 0.8rem;
  color: var(--color-text-2);
}

.member-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* PCAP/Network Capture Viewer Styles */
.pcap-container {
  min-height: 400px;
}

.pcap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
}

.pcap-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--color-text);
}

.pcap-files-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pcap-file-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.pcap-file-card:hover {
  border-color: var(--color-primary);
  background: #fff;
}

.pcap-file-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pcap-file-icon {
  font-size: 2rem;
}

.pcap-file-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
}

.pcap-file-meta {
  font-size: 0.85rem;
  color: var(--color-text-2);
  margin-top: 0.25rem;
}

.pcap-file-actions {
  display: flex;
  gap: 0.5rem;
}

.pcap-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-text-2);
}

.pcap-empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.pcap-empty-state h4 {
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.pcap-empty-state p {
  margin: 0;
  font-size: 0.95rem;
}

/* PCAP Viewer */
.pcap-viewer {
  margin-top: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

/* Fullscreen mode */
.pcap-viewer.pcap-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  border-radius: 0;
  z-index: 9999;
  background: white;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pcap-viewer.pcap-fullscreen .pcap-viewer-header {
  flex-shrink: 0;
}

.pcap-viewer.pcap-fullscreen .pcap-stats {
  flex-shrink: 0;
}

.pcap-viewer.pcap-fullscreen .pcap-viewer-tabs {
  flex-shrink: 0;
}

.pcap-viewer.pcap-fullscreen .pcap-viewer-content {
  flex: 1;
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
  padding: 1rem;
  /* Calculate height: 100vh minus header(~60px), stats(~100px), tabs(~50px) */
  height: calc(100vh - 210px);
  max-height: none;
}

.pcap-viewer.pcap-fullscreen .pcap-viewer-content[style*="display: none"] {
  display: none !important;
}

.pcap-viewer.pcap-fullscreen .pcap-viewer-content .pcap-filter-bar {
  flex-shrink: 0;
}

.pcap-viewer.pcap-fullscreen .pcap-viewer-content .pcap-pagination {
  flex-shrink: 0;
}

.pcap-viewer.pcap-fullscreen .pcap-viewer-content .pcap-table-container {
  flex: 1;
  overflow: auto;
  max-height: calc(100vh - 320px);
}

.pcap-viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.pcap-viewer-header h4 {
  margin: 0;
  font-size: 1rem;
}

.pcap-viewer-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.pcap-viewer-actions .btn {
  min-width: auto;
}

#pcapFullscreenBtn {
  padding: 0.35rem 0.6rem;
  font-size: 1.1rem;
  line-height: 1;
}

.pcap-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fafafa;
  border-bottom: 1px solid #e0e0e0;
}

.pcap-stat-card {
  text-align: center;
  padding: 0.75rem;
  background: white;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.pcap-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.pcap-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-text-2);
  letter-spacing: 0.5px;
}

.pcap-viewer-tabs {
  display: flex;
  background: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
}

.pcap-viewer-tab {
  padding: 0.75rem 1.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

.pcap-viewer-tab:hover {
  background: #e8e8e8;
  color: var(--color-text);
}

.pcap-viewer-tab.active {
  background: white;
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.pcap-viewer-content {
  padding: 1rem;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pcap-table-container {
  overflow: auto;
  flex: 1;
  min-height: 0;
  max-height: 450px;
}

.pcap-viewer.pcap-fullscreen .pcap-table-container {
  max-height: none !important;
  flex: 1;
  overflow: auto !important;
}

.pcap-pagination {
  flex-shrink: 0;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid #eee;
}

.pcap-filter-bar {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pcap-filter-bar input {
  flex: 1;
  min-width: 200px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
}

.pcap-filter-bar input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.pcap-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-top: 1px solid #e0e0e0;
  background: #f8f9fa;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pcap-pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pcap-pagination select {
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  cursor: pointer;
}

.pcap-packets-table-container {
  overflow-x: auto;
}

.pcap-packets-table,
.pcap-conversations-table,
.pcap-dns-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  font-family: var(--mono);
}

.pcap-packets-table th,
.pcap-conversations-table th,
.pcap-dns-table th {
  padding: 0.5rem;
  text-align: left;
  font-weight: 600;
  background: #f8f9fa;
  border-bottom: 2px solid #e0e0e0;
  white-space: nowrap;
}

.pcap-packets-table td,
.pcap-conversations-table td,
.pcap-dns-table td {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
}

.pcap-packets-table tr:hover,
.pcap-conversations-table tr:hover,
.pcap-dns-table tr:hover {
  background: #f8f9fa;
}

.pcap-proto {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pcap-proto-tcp { background: #e3f2fd; color: #1565c0; }
.pcap-proto-udp { background: #f3e5f5; color: #7b1fa2; }
.pcap-proto-dns { background: #e8f5e9; color: #2e7d32; }
.pcap-proto-http { background: #fff3e0; color: #e65100; }
.pcap-proto-tls { background: #fce4ec; color: #c2185b; }
.pcap-proto-icmp { background: #e0f7fa; color: #00838f; }
.pcap-proto-arp { background: #f5f5f5; color: #616161; }
.pcap-proto-ipv6 { background: #ede7f6; color: #512da8; }

.pcap-protocol-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.pcap-protocol-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pcap-protocol-name {
  width: 80px;
}

.pcap-protocol-bar-container {
  flex: 1;
  height: 20px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.pcap-protocol-bar {
  height: 100%;
  background: var(--color-primary);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.pcap-protocol-count {
  width: 100px;
  text-align: right;
  font-size: 0.85rem;
  color: var(--color-text-2);
}

@media (max-width: 768px) {
  .pcap-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pcap-file-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .pcap-file-actions {
    width: 100%;
  }
  
  .pcap-file-actions .btn {
    flex: 1;
  }
}

/* ============================================
   Activity Dashboard
   ============================================ */
.dashboard-view {
  padding: 1.25rem;
  overflow-y: auto;
  height: 100%;
  box-sizing: border-box;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dashboard-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* KPI strip — auto-fit so any tile count (4–7) flows evenly */
.dash-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.dash-kpi {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dash-kpi-danger {
  border-color: var(--color-primary);
  background: #fff8f8;
}

.dash-kpi-value {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
}

.dash-kpi-danger .dash-kpi-value {
  color: var(--color-primary);
}

.dash-kpi-label {
  font-size: 0.78rem;
  color: var(--color-text-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Chart panels */
.dash-panel-full {
  margin-bottom: 1rem;
}

.dash-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dash-panel {
  min-height: 0;
}

.dash-panel-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dash-legend {
  display: inline-flex;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--color-text-2);
  margin-left: auto;
}

.dash-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.25rem;
  vertical-align: middle;
}

.dash-chart-wrap {
  position: relative;
  height: 240px;
}

.dash-chart-wrap-tall {
  height: 320px;
}

.dash-empty {
  padding: 2rem;
  text-align: center;
  color: var(--color-text-2);
  font-size: 0.9rem;
}

.dash-error {
  padding: 1rem;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius);
  background: #fff8f8;
  color: var(--color-primary);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.dash-scatter-legend {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--color-text-2);
}

.dash-scatter-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.25rem;
  vertical-align: middle;
}

@media (max-width: 900px) {
  .dash-kpi-row { grid-template-columns: repeat(3, 1fr); }
  .dash-row-2 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .dash-kpi-row { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   File Intelligence
   ============================================ */

/* Story banner — headline sentence + risk pills */
.fi-story {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.95rem 1.1rem;
  background: linear-gradient(135deg, #fafbff 0%, #f8faff 100%);
  border: 1px solid #e5e7eb;
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
}
.fi-story.risk-high   { border-left-color: #dc2626; background: linear-gradient(135deg,#fff5f5 0%, #fff8f7 100%); }
.fi-story.risk-medium { border-left-color: #f59e0b; background: linear-gradient(135deg,#fffbeb 0%, #fefce8 100%); }
.fi-story-icon {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: #eff6ff;
  color: #2563eb;
  font-size: 1.25rem;
}
.fi-story.risk-high   .fi-story-icon { background: #fee2e2; color: #b91c1c; }
.fi-story.risk-medium .fi-story-icon { background: #fef3c7; color: #b45309; }
.fi-story-body { flex: 1; min-width: 0; }
.fi-story-headline {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #1f2937;
  margin-bottom: 0.45rem;
}
.fi-story-headline code {
  background: #eef2ff;
  color: #3730a3;
  padding: 0.05rem 0.35rem;
  border-radius: 3px;
  font-size: 0.85em;
}
.fi-story-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.fi-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.73rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.fi-pill-info   { background:#eff6ff; color:#1d4ed8; border-color:#bfdbfe; }
.fi-pill-good   { background:#ecfdf5; color:#047857; border-color:#a7f3d0; }
.fi-pill-warn   { background:#fffbeb; color:#b45309; border-color:#fde68a; }
.fi-pill-danger { background:#fef2f2; color:#b91c1c; border-color:#fecaca; }
.fi-pill-neutral{ background:#f3f4f6; color:#374151; border-color:#e5e7eb; }

/* Horizontal action breakdown bar (writes/reads/renames/deletes/...) */
.fi-action-breakdown {
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:8px;
  padding:0.75rem 1rem;
}
.fi-action-breakdown-title {
  font-size:0.72rem;
  text-transform:uppercase;
  letter-spacing:0.06em;
  color:#6b7280;
  font-weight:600;
  margin-bottom:0.45rem;
}
.fi-action-bar {
  display:flex;
  height:10px;
  border-radius:5px;
  overflow:hidden;
  background:#f3f4f6;
}
.fi-action-bar-seg { height:100%; }
.fi-action-legend {
  display:flex;
  flex-wrap:wrap;
  gap:0.75rem;
  margin-top:0.55rem;
  font-size:0.78rem;
}
.fi-action-legend-item { display:inline-flex; align-items:center; gap:0.35rem; color:#4b5563; }
.fi-action-legend-swatch { width:10px; height:10px; border-radius:2px; display:inline-block; }

/* ========== Burst card (Bulk Action Context) ========== */
.fi-burst-card {
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--color-text-2);
  border-radius: var(--radius-md);
  padding: .75rem 1rem;
  background: var(--color-surface);
  display: grid;
  gap: .5rem;
}
.fi-burst-card--write  { border-left-color: var(--status-info, #1d4ed8); }
.fi-burst-card--delete { border-left-color: var(--status-danger, #b91c1c); }
.fi-burst-card--read   { border-left-color: var(--color-muted); }
.fi-burst-card--rename { border-left-color: #8b5cf6; }
.fi-burst-card--write  .fi-burst-card__action { color: var(--status-info, #1d4ed8); }
.fi-burst-card--delete .fi-burst-card__action { color: var(--status-danger, #b91c1c); }
.fi-burst-card--read   .fi-burst-card__action { color: var(--color-muted); }
.fi-burst-card--rename .fi-burst-card__action { color: #6d28d9; }

.fi-burst-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  flex-wrap: wrap;
}
.fi-burst-card__title {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  flex-wrap: wrap;
  min-width: 0;
}
.fi-burst-card__action {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-text-2);
}
.fi-burst-card__count {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}
.fi-burst-card__sub {
  font-size: .8rem;
  color: var(--color-muted);
}
.fi-burst-card__bytes {
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-text-2);
  margin-left: auto;
  padding-left: .75rem;
}

/* Definition-list style metadata (key on left, value on right) */
.fi-meta-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .35rem .9rem;
  margin: 0;
  font-size: .78rem;
}
.fi-meta-list dt {
  color: var(--color-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .68rem;
  margin-bottom: .1rem;
}
.fi-meta-list dd {
  margin: 0;
  color: var(--color-text);
  font-size: .8rem;
  word-break: break-word;
}
.fi-meta-list dd code {
  font-size: .78rem;
  padding: .05rem .3rem;
  background: var(--color-surface-2);
  border-radius: var(--radius-sm);
  color: var(--color-text);
}

.fi-burst-card__foot {
  font-size: .75rem;
  color: var(--color-muted);
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  padding-top: .5rem;
  border-top: 1px dashed var(--border-subtle);
}

/* ========== Event timeline row ========== */
.fi-event-row {
  display: flex;
  gap: .85rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.fi-event-row:last-child { border-bottom: none; }

.fi-event-row__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 26px;
  flex-shrink: 0;
}
.fi-event-row__rail-line {
  width: 2px;
  flex: 1;
  background: var(--border-subtle);
  margin-top: 4px;
  min-height: 8px;
}
.fi-event-row__body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: .35rem;
}
.fi-event-row__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.fi-event-row__chips {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.fi-event-row__time {
  color: var(--color-muted);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fi-event-row__path {
  font-size: .85rem;
  line-height: 1.45;
  color: var(--color-text);
  word-break: break-all;
}
.fi-event-row__path-arrow {
  color: var(--color-muted);
  margin: 0 .35rem;
}
.fi-event-row__path-new {
  color: #8b5cf6;
}
.fi-event-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  font-size: .76rem;
  color: var(--color-text-2);
}
.fi-event-row__meta-item {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.fi-event-row__meta-label {
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .66rem;
  font-weight: 500;
}
.fi-event-row__meta-value {
  color: var(--color-text);
}
.fi-event-row__bytes {
  color: var(--color-text-2);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.fi-unsigned {
  color: var(--status-warn, #b45309);
  font-size: .7rem;
  margin-left: .25rem;
}

/* Card grid — used by Device Spread and Accessor Summary */
.fi-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}
.fi-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.fi-card:hover { box-shadow: 0 4px 14px rgba(15,23,42,0.06); border-color: #d1d5db; }
.fi-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}
.fi-card-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: #111827;
  word-break: break-all;
  line-height: 1.25;
}
.fi-card-sub {
  font-size: 0.72rem;
  color: #9ca3af;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  word-break: break-all;
}
.fi-card-meta { font-size: 0.76rem; color: #6b7280; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fi-card-accent { border-left: 3px solid transparent; }
.fi-card-accent-warn   { border-left-color: #f59e0b; }
.fi-card-accent-danger { border-left-color: #dc2626; }
.fi-card-accent-good   { border-left-color: #10b981; }

/* Action segment pills inside device cards */
.fi-action-segs {
  display:flex;
  flex-wrap:wrap;
  gap:0.3rem;
}
.fi-action-seg {
  display:inline-flex;
  align-items:center;
  gap:0.3rem;
  font-size:0.72rem;
  font-weight:600;
  padding:0.12rem 0.5rem;
  border-radius:4px;
  background:#f3f4f6;
  color:#374151;
  border:1px solid #e5e7eb;
}
.fi-action-seg-write   { background:#eff6ff; color:#1d4ed8; border-color:#bfdbfe; }
.fi-action-seg-read    { background:#f3f4f6; color:#4b5563; border-color:#e5e7eb; }
.fi-action-seg-rename  { background:#f5f3ff; color:#6d28d9; border-color:#ddd6fe; }
.fi-action-seg-move    { background:#ecfeff; color:#0e7490; border-color:#a5f3fc; }
.fi-action-seg-delete  { background:#fef2f2; color:#b91c1c; border-color:#fecaca; }
.fi-action-seg-create  { background:#ecfdf5; color:#047857; border-color:#a7f3d0; }

/* Trust badges on accessor cards */
.fi-trust {
  display:inline-flex;
  align-items:center;
  gap:0.3rem;
  font-size:0.7rem;
  font-weight:700;
  padding:0.18rem 0.5rem;
  border-radius:4px;
  text-transform:uppercase;
  letter-spacing:0.04em;
  white-space:nowrap;
}
.fi-trust-signed   { background:#ecfdf5; color:#047857; border:1px solid #a7f3d0; }
.fi-trust-unsigned { background:#fffbeb; color:#b45309; border:1px solid #fde68a; }

/* Timeline day headers */
.fi-day-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  padding: 0.5rem 0.25rem 0.4rem;
  margin-top: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:0.75rem;
}
.fi-day-header:first-child { margin-top: 0; }
.fi-day-header-date {
  font-weight: 700;
  font-size: 0.85rem;
  color: #111827;
}
.fi-day-header-rel {
  font-size: 0.72rem;
  color: #9ca3af;
  font-weight: 500;
}
.fi-day-header-count {
  font-size: 0.72rem;
  color: #6b7280;
}

/* Collapsed read-run banner */
.fi-read-run {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:0.6rem;
  margin: 0.25rem 0 0.25rem 1.5rem;
  padding:0.35rem 0.7rem;
  background:#f9fafb;
  border:1px dashed #d1d5db;
  border-radius:6px;
  font-size:0.78rem;
  color:#6b7280;
}
.fi-read-run button {
  background:none;
  border:none;
  color:#2563eb;
  font-size:0.75rem;
  cursor:pointer;
  font-weight:600;
}
.fi-read-run button:hover { text-decoration: underline; }

/* Action-icon styling used in the timeline dot position */
.fi-action-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 0.82rem;
  flex-shrink:0;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0,0,0,0.05);
}

.fi-burst-badge {
  cursor:pointer;
  font-size: .68rem;
  padding: .1rem .4rem;
  border-radius: 3px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-weight: 600;
}
.fi-burst-badge:hover { filter: brightness(0.95); }

/* ============================================
   Dashboard Drill-down Overlay
   ============================================ */

.dash-detail-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dash-detail-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  flex-shrink: 0;
}

.dash-detail-back {
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
  color: #374151;
  flex-shrink: 0;
}
.dash-detail-back:hover { background: #f3f4f6; }

.dash-detail-title {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-detail-title code {
  font-family: ui-monospace, monospace;
  font-size: 0.92em;
  background: #f3f4f6;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.dash-detail-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: #6b7280;
  padding: 0.2rem 0.5rem;
  flex-shrink: 0;
}
.dash-detail-close:hover { color: #111827; }

.dash-detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.dash-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.85rem;
  color: #374151;
  padding: 0.6rem 0.75rem;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  margin-bottom: 1rem;
}

.dash-files-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.845rem;
  margin-top: 0.5rem;
}
.dash-files-table th {
  text-align: left;
  padding: 0.45rem 0.65rem;
  border-bottom: 2px solid #e5e7eb;
  color: #6b7280;
  font-weight: 600;
  white-space: nowrap;
}
.dash-files-table td {
  padding: 0.4rem 0.65rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}
.dash-files-table tr:hover td { background: #f9fafb; }

.dash-file-path {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  color: #374151;
  word-break: break-all;
}
.dash-file-count {
  text-align: right;
  white-space: nowrap;
  color: #6b7280;
}

/* ============================================
   IP Reputation Styles
   ============================================ */

.reputation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 6px;
}

.reputation-header p {
  margin: 0;
  color: var(--color-text-2);
  font-size: 0.9rem;
}

.pcap-reputation-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.pcap-reputation-table th {
  background: #f8f9fa;
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
}

.pcap-reputation-table th.sortable-header {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s;
  background: #f8f9fa;
}

.pcap-reputation-table th.sortable-header:hover {
  background: #e9ecef;
}

.pcap-reputation-table th.sortable-header.sorted {
  background: #e3e7eb;
}

/* Non-sortable Actions column */
.pcap-reputation-table th:last-child {
  background: #f8f9fa;
}

.pcap-reputation-table th .sort-indicator {
  color: #007bff;
  font-size: 0.75rem;
}

.pcap-reputation-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.pcap-reputation-table tr:hover {
  background: #f8f9fa;
}

.pcap-reputation-table code {
  background: #f0f0f0;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.8rem;
}

/* Reputation score badges */
.reputation-score {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
}

.reputation-clean {
  background: #d4edda;
  color: #155724;
}

.reputation-low {
  background: #fff3cd;
  color: #856404;
}

.reputation-medium {
  background: #ffe0b2;
  color: #e65100;
}

.reputation-high {
  background: #f8d7da;
  color: #721c24;
}

.reputation-critical {
  background: #dc3545;
  color: white;
}

.reputation-pending {
  color: #6c757d;
  font-style: italic;
}

.reputation-checking {
  color: var(--color-primary);
  font-style: italic;
}

.reputation-error {
  color: #dc3545;
  font-style: italic;
}

/* Row highlighting for dangerous IPs */
.reputation-row-danger {
  background: #fff5f5 !important;
}

.reputation-row-danger:hover {
  background: #fee !important;
}

.reputation-row-warning {
  background: #fffbf0 !important;
}

.reputation-row-warning:hover {
  background: #fff5e0 !important;
}

/* Extra small button */
.btn-xs {
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
}

/* Spinner for loading */
.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== Quarantine Page Styles ===== */
.quarantine-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.quarantine-stat-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.2s ease;
}

.quarantine-stat-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.quarantine-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.quarantine-stat-card:nth-child(1) .quarantine-stat-value { color: #dc3545; }
.quarantine-stat-card:nth-child(2) .quarantine-stat-value { color: #198754; }
.quarantine-stat-card:nth-child(3) .quarantine-stat-value { color: #6c757d; }
.quarantine-stat-card:nth-child(4) .quarantine-stat-value { color: #0d6efd; }

.quarantine-stat-label {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
  font-weight: 500;
}

#quarantineTable {
  width: 100%;
}

#quarantineTable th {
  text-align: left;
  font-weight: 600;
  padding: 0.75rem;
  background: #f8f9fa;
  border-bottom: 2px solid #e5e7eb;
}

#quarantineTable td {
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

#quarantineTable tr:hover {
  background: #f8f9fa;
}

/* Quarantine status badges */
.quarantine-status-quarantined {
  background: #dc3545;
  color: white;
}

.quarantine-status-released {
  background: #198754;
  color: white;
}

.quarantine-status-failed {
  background: #6c757d;
  color: white;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 26px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--color-primary);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.toggle-switch input:disabled + .toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form Select */
.form-select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: var(--color-text);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
}

.form-select:hover {
  border-color: var(--color-primary);
}

.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

.form-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== CORA AI Analyst ===== */

.cora-badge {
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cora-badge--investigating {
  background: var(--color-primary);
}

.cora-badge--complete {
  background: var(--color-text);
}

.cora-btn {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

.cora-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.cora-btn:active {
  transform: translateY(0);
}

.cora-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.cora-label {
  color: var(--color-primary);
  font-weight: 600;
}

/* CORA live investigation progress */
.cora-progress {
  background: var(--color-bg);
  border: none;
  border-radius: 0;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  position: relative;
}

/* Corner brackets — ZeroExfil signature */
.cora-progress::before,
.cora-progress::after,
.cora-progress-corners::before,
.cora-progress-corners::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
}

.cora-progress::before {
  top: 0; left: 0;
  border-top: 3px solid var(--color-primary);
  border-left: 3px solid var(--color-primary);
  animation: none;
  background: none;
}

.cora-progress::after {
  top: 0; right: 0;
  border-top: 3px solid var(--color-primary);
  border-right: 3px solid var(--color-primary);
}

.cora-progress-corners::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 28px; height: 28px;
  border-bottom: 3px solid var(--color-primary);
  border-left: 3px solid var(--color-primary);
}

.cora-progress-corners::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 28px; height: 28px;
  border-bottom: 3px solid var(--color-primary);
  border-right: 3px solid var(--color-primary);
}

@keyframes cora-shimmer {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.cora-progress-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.cora-progress-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}

.cora-progress-subtitle {
  font-size: 0.8rem;
  color: var(--color-text-2);
  margin-top: 0.125rem;
}

.cora-progress-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #e0e0e0;
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

.cora-progress-steps {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.5rem;
  padding-left: 0.125rem;
}

.cora-progress-step {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.825rem;
  color: var(--color-text-2);
  padding: 0.2rem 0;
  transition: color 0.3s;
}

.cora-progress-step--active {
  color: var(--color-text);
  font-weight: 500;
}

.cora-progress-step--done {
  color: var(--color-text);
}

.cora-step-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d0d0d0;
  flex-shrink: 0;
  transition: background 0.3s, box-shadow 0.3s;
}

.cora-progress-step--active .cora-step-dot {
  background: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

.cora-progress-step--done .cora-step-dot {
  background: var(--color-text);
}

.cora-progress-complete::before {
  border-color: var(--color-text);
}

.cora-progress-complete::after {
  border-color: var(--color-text);
}

.cora-progress-complete .cora-progress-corners::before {
  border-color: var(--color-text);
}

.cora-progress-complete .cora-progress-corners::after {
  border-color: var(--color-text);
}

/* ─── Rule Detail Modal ─────────────────────────────────────── */

.rule-name-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.rule-name-link:hover {
  text-decoration: underline;
}

/* Modal body top meta strip */
.rule-detail-meta {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}
.rule-detail-meta-left {
  flex: 1;
  min-width: 0;
}
.rule-detail-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0.6rem;
}
.rule-detail-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #444;
  margin: 0 0 0.5rem;
}
.rule-detail-mitre {
  font-size: 0.8rem;
  color: #888;
}
.rule-detail-mitre strong {
  color: #555;
  font-weight: 600;
}

/* Section titles — no borders, just spacing and weight */
.rule-detail-section {
  margin-bottom: 1.5rem;
}
.rule-detail-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  margin: 0 0 0.75rem;
}

.rule-detail-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #444;
  margin: 0;
}

/* Investigation stepper */
.rule-playbook {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.rule-playbook-nav {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  gap: 0;
}
.rule-playbook-track {
  flex: 1;
  height: 2px;
  background: #e5e7eb;
  min-width: 8px;
}
.rule-playbook-pill {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #d1d5db;
  color: #9ca3af;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.rule-playbook-pill:hover {
  border-color: #6b7280;
  color: #374151;
}
.rule-playbook-pill.active {
  border-color: #111;
  background: #111;
  color: #fff;
}

/* Step panels */
.rule-playbook-step {
  display: none;
  padding: 1.25rem;
}
.rule-playbook-step.active { display: block; }
.rule-playbook-step-header {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}
.rule-playbook-step-n {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  white-space: nowrap;
  flex-shrink: 0;
}
.rule-playbook-step-title {
  margin: 0;
  font-size: 0.975rem;
  font-weight: 600;
  color: #111;
  line-height: 1.3;
}

/* Signal columns */
.rule-playbook-signals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}
.rule-playbook-signal-col {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  background: #fff;
}
.rule-playbook-signal-col--warn {
  background: #fffbeb;
  border-color: #fde68a;
}
.rule-playbook-signal-col--ok {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.rule-playbook-signal-head {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-bottom: 0.4rem;
}
.rule-playbook-signal-col--warn .rule-playbook-signal-head { color: #92400e; }
.rule-playbook-signal-col--ok  .rule-playbook-signal-head { color: #166534; }
.rule-playbook-signal-col ul {
  margin: 0;
  padding: 0 0 0 1rem;
  font-size: 0.8rem;
  color: #555;
  line-height: 1.5;
}
.rule-playbook-signal-col--warn ul { color: #78350f; }
.rule-playbook-signal-col--ok  ul { color: #14532d; }
.rule-playbook-signal-col li { margin-bottom: 0.2rem; }

/* Queries */
.rule-playbook-queries { margin-top: 1.25rem; }
.rule-playbook-queries-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}
.rule-playbook-query {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.rule-playbook-query:last-child { margin-bottom: 0; }
.rule-playbook-query-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.55rem 0.75rem;
  background: #f9fafb;
  gap: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}
.rule-playbook-query-name {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  color: #374151;
}
.rule-playbook-query-desc {
  display: block;
  font-size: 0.775rem;
  color: #9ca3af;
  margin-top: 0.1rem;
}
.rule-playbook-copy-btn {
  flex-shrink: 0;
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  color: #6b7280;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.rule-playbook-copy-btn:hover { background: #f3f4f6; color: #374151; }
.rule-playbook-kql {
  margin: 0;
  padding: 0.75rem;
  background: #1e1e2e;
  color: #cdd6f4;
  font-size: 0.775rem;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Step footer nav */
.rule-playbook-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 0.9rem;
  border-top: 1px solid #f3f4f6;
}
.rule-playbook-nav-btn {
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
  color: #374151;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.rule-playbook-nav-btn:hover:not(:disabled) {
  background: #f3f4f6;
  border-color: #d1d5db;
}
.rule-playbook-nav-btn:disabled {
  color: #d1d5db;
  border-color: #f3f4f6;
  cursor: default;
}
.rule-playbook-progress {
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 500;
}

/* Red flags */
.rule-detail-flags {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}
.rule-detail-flags li {
  padding: 0.5rem 0.75rem 0.5rem 0.9rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #555;
  border-bottom: 1px solid #f3f4f6;
  border-left: 3px solid #f59e0b;
}
.rule-detail-flags li:last-child { border-bottom: none; }

/* Response grid */
.rule-detail-response-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.rule-detail-response-col {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.75rem;
}
.rule-detail-response-col h5 {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ca3af;
}
.rule-detail-response-col ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .rule-detail-response-grid { grid-template-columns: 1fr; }
  .rule-detail-meta { flex-direction: column; }
}

/* ============================================================
   Guided Tutorial (tutorial.js)
   ============================================================ */
.zex-tut-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
  background: transparent;
}
.zex-tut-overlay.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease, visibility 0s linear 0s;
}
.zex-tut-spot {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-radius: 8px;
  pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.62);
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  transition: left 320ms cubic-bezier(.2,.8,.2,1),
              top 320ms cubic-bezier(.2,.8,.2,1),
              width 320ms cubic-bezier(.2,.8,.2,1),
              height 320ms cubic-bezier(.2,.8,.2,1),
              opacity 220ms ease;
  opacity: 0;
}
.zex-tut-spot::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 10px;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.5);
  animation: zexTutPulse 2s ease-out infinite;
}
@keyframes zexTutPulse {
  0%   { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(230, 57, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

/* Faux cursor */
.zex-tut-cursor {
  position: fixed;
  z-index: 99993;
  width: 28px;
  height: 28px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-4px, -2px);
  transition: left 700ms cubic-bezier(.4,.0,.2,1),
              top 700ms cubic-bezier(.4,.0,.2,1),
              opacity 180ms ease,
              visibility 0s linear 180ms;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
}
.zex-tut-cursor.show {
  opacity: 1;
  visibility: visible;
  transition: left 700ms cubic-bezier(.4,.0,.2,1),
              top 700ms cubic-bezier(.4,.0,.2,1),
              opacity 180ms ease,
              visibility 0s linear 0s;
}
.zex-tut-cursor.clicking svg {
  animation: zexTutCursorPress 360ms ease-out;
}
@keyframes zexTutCursorPress {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.78); }
  100% { transform: scale(1); }
}
.zex-tut-cursor-ripple {
  position: absolute;
  left: 4px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(230, 57, 70, 0.55);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  pointer-events: none;
}
.zex-tut-cursor.clicking .zex-tut-cursor-ripple {
  animation: zexTutCursorRipple 520ms ease-out;
}
@keyframes zexTutCursorRipple {
  0%   { opacity: 0.85; transform: translate(-50%, -50%) scale(0.4); }
  100% { opacity: 0;    transform: translate(-50%, -50%) scale(3.2); }
}

.zex-tut-tip {
  position: fixed;
  z-index: 99992;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  color: var(--color-text);
  border-radius: 12px;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.35),
              0 0 0 1px rgba(15, 23, 42, 0.06);
  padding: 1.1rem 1.15rem 0.95rem;
  font-family: var(--font-sans);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 220ms ease, transform 220ms ease, visibility 0s linear 220ms,
              left 280ms cubic-bezier(.2,.8,.2,1),
              top 280ms cubic-bezier(.2,.8,.2,1);
}
.zex-tut-tip.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 220ms ease, visibility 0s linear 0s,
              left 280ms cubic-bezier(.2,.8,.2,1),
              top 280ms cubic-bezier(.2,.8,.2,1);
}
.zex-tut-tip-arrow {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #ffffff;
  transform: rotate(45deg);
  box-shadow: -1px -1px 0 rgba(15, 23, 42, 0.06);
}
.zex-tut-tip[data-placement="bottom"] .zex-tut-tip-arrow { top: -6px; transform: translateX(-50%) rotate(45deg); }
.zex-tut-tip[data-placement="top"] .zex-tut-tip-arrow {
  bottom: -6px; transform: translateX(-50%) rotate(225deg);
  box-shadow: -1px -1px 0 rgba(15, 23, 42, 0.06);
}
.zex-tut-tip[data-placement="right"] .zex-tut-tip-arrow { left: -6px; transform: translateY(-50%) rotate(-45deg); }
.zex-tut-tip[data-placement="left"] .zex-tut-tip-arrow { right: -6px; transform: translateY(-50%) rotate(135deg); }
.zex-tut-tip[data-placement="center"] .zex-tut-tip-arrow { display: none; }

.zex-tut-tip-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin-bottom: 0.55rem;
}
.zex-tut-skip {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 150ms ease, background 150ms ease;
}
.zex-tut-skip:hover { color: var(--color-primary); background: rgba(230, 57, 70, 0.07); }

.zex-tut-tip-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  line-height: 1.3;
  color: var(--color-text);
}
.zex-tut-tip-body {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #374151;
  margin: 0 0 0.85rem;
}
.zex-tut-tip-progressbar {
  height: 3px;
  width: 100%;
  background: #f1f5f9;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}
.zex-tut-tip-progressbar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), #ff7a85);
  width: 0%;
  transition: width 320ms cubic-bezier(.2,.8,.2,1);
  border-radius: 2px;
}
.zex-tut-tip-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}
.zex-tut-btn {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: 7px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 100ms ease;
}
.zex-tut-btn:active { transform: translateY(1px); }
.zex-tut-btn.primary {
  background: var(--color-primary);
  color: #fff;
}
.zex-tut-btn.primary:hover { background: #c81f2c; }
.zex-tut-btn.secondary {
  background: #fff;
  color: #374151;
  border-color: #e5e7eb;
}
.zex-tut-btn.secondary:hover { background: #f9fafb; border-color: #d1d5db; }
.zex-tut-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Welcome / finale modal */
.zex-tut-welcome-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99995;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}
.zex-tut-welcome-backdrop.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease, visibility 0s linear 0s;
}
.zex-tut-welcome {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 460px;
  padding: 2rem 1.75rem 1.5rem;
  text-align: center;
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.45);
  transform: translateY(8px) scale(0.98);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1);
}
.zex-tut-welcome-backdrop.show .zex-tut-welcome { transform: translateY(0) scale(1); }
.zex-tut-welcome-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}
.zex-tut-welcome-icon img { display: block; width: 64px; height: 64px; }
.zex-tut-welcome-icon-success {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}
.zex-tut-welcome h2 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
}
.zex-tut-welcome p {
  margin: 0 0 0.6rem;
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.55;
}
.zex-tut-welcome-sub {
  font-size: 0.8rem !important;
  color: #6b7280 !important;
  margin-top: 0.25rem;
}
.zex-tut-welcome-actions {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.zex-tut-welcome-actions .zex-tut-btn {
  min-width: 130px;
  padding: 0.6rem 1rem;
}

@media (max-width: 480px) {
  .zex-tut-tip { width: calc(100vw - 24px); }
  .zex-tut-welcome { padding: 1.5rem 1.25rem 1.25rem; }
}

/* Demo data badge */
.zex-tut-demo-badge {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99991;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.45);
  pointer-events: none;
  animation: zexTutBadgeIn 320ms cubic-bezier(.2,.8,.2,1);
}
.zex-tut-demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
  animation: zexTutBadgePulse 1.6s ease-out infinite;
}
@keyframes zexTutBadgeIn {
  from { opacity: 0; transform: translate(-50%, 6px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes zexTutBadgePulse {
  0%   { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* ===== Hunting reference sidebar ===== */
.hunt-ref { padding: 0; overflow: hidden; }
.hunt-ref-header {
  padding: 0.85rem 1rem 0.7rem;
  border-bottom: 1px solid #ececec;
  background: #fafafa;
}
.hunt-ref-title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
}
.hunt-ref-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--color-text-2);
  line-height: 1.35;
}
.hunt-ref-section { padding: 0.5rem 0; }
.hunt-ref-section + .hunt-ref-section { border-top: 1px solid #ececec; }
.hunt-ref-section-label {
  padding: 0.5rem 1rem 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-2);
}
.hunt-ref-group { border-bottom: 1px solid #f3f3f3; }
.hunt-ref-group:last-child { border-bottom: none; }
.hunt-ref-group > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.hunt-ref-group > summary::-webkit-details-marker { display: none; }
.hunt-ref-group > summary::after {
  content: "+";
  font-weight: 400;
  color: var(--color-text-2);
  font-size: 1rem;
  line-height: 1;
}
.hunt-ref-group[open] > summary::after { content: "−"; }
.hunt-ref-group > summary:hover { background: #f7f7f7; }
.hunt-ref-fields,
.hunt-ref-snippets {
  list-style: none;
  margin: 0;
  padding: 0 0.5rem 0.6rem;
}
.hunt-ref-fields li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.82rem;
  transition: background-color 0.1s;
}
.hunt-ref-fields li:hover { background: #f3f3f3; }
.hunt-ref-fields code {
  background: none;
  padding: 0;
  font-size: 0.82rem;
  color: var(--color-text);
}
.hunt-ref-fields span {
  font-size: 0.7rem;
  color: var(--color-text-2);
  font-style: italic;
  margin-left: 0.5rem;
  flex-shrink: 0;
}
.hunt-ref-snippets li {
  padding: 0.4rem 0.5rem 0.5rem;
  border-radius: 4px;
}
.hunt-ref-snippets li + li { margin-top: 0.15rem; }
.hunt-ref-snippet-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-2);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hunt-ref-snippets code {
  display: block;
  background: #f6f6f6;
  border: 1px solid #ececec;
  padding: 0.4rem 0.5rem;
  border-radius: 4px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--color-text);
  word-break: break-word;
  cursor: pointer;
  transition: border-color 0.1s, background-color 0.1s;
}
.hunt-ref-snippets code:hover {
  border-color: var(--color-primary);
  background: #fff5f6;
}

/* =====================================================================
   DESIGN SYSTEM v2 — shared primitives
   Goal: replace inline-styled, page-local patterns with one source of truth.
   Adopt incrementally; legacy classes still work.
   ===================================================================== */

/* Utility: hide without removing semantics. Replaces style="display:none" */
.hidden { display: none !important; }

/* ---------- Buttons: size + state extensions ---------- */
.btn.btn-sm,
.btn-small {
  padding: .35rem .7rem;
  font-size: .82rem;
  font-weight: 500;
}
.btn.btn-xs {
  padding: .2rem .5rem;
  font-size: .72rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
}
.btn.btn-ghost {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn.btn-ghost:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
  border-color: var(--color-text-2);
  transform: translateY(-1px);
}
.btn.btn-ghost:active {
  background: var(--color-surface-3, var(--color-surface-2));
  transform: translateY(0);
  box-shadow: none;
}
.btn:disabled,
.btn[disabled],
.btn-small:disabled,
.btn-small[disabled] {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.btn.secondary:focus-visible,
.btn.btn-ghost:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ---------- KPI tile (replaces ad-hoc .panel + .kpi pattern) ---------- */
.kpi-strip {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 1rem;
}
.kpi-tile {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-width: 0;
  transition: box-shadow .15s ease, transform .15s ease;
}
.kpi-tile:hover { box-shadow: var(--shadow-sm); }
.kpi-tile__label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--color-muted);
  font-weight: 600;
}
.kpi-tile__value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.1;
}
.kpi-tile__sub {
  font-size: .75rem;
  color: var(--color-muted);
}
.kpi-tile--ok .kpi-tile__value { color: var(--status-ok); }
.kpi-tile--warn .kpi-tile__value { color: var(--status-warn); }
.kpi-tile--danger .kpi-tile__value { color: var(--status-danger); }
.kpi-tile--info .kpi-tile__value { color: var(--status-info); }
.kpi-tile--brand .kpi-tile__value { color: var(--color-primary); }

/* ---------- Filter bar (replaces inline-styled search/select rows) ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
}
.filter-bar > .filter-bar__grow { flex: 1 1 280px; min-width: 200px; }
.filter-bar input,
.filter-bar select,
.filter-input,
.filter-select {
  padding: .4rem .65rem;
  font-size: .9rem;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.filter-bar input:focus,
.filter-bar select:focus,
.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}
.filter-bar input::placeholder { color: var(--color-muted); }

/* ---------- Bulk-actions bar (Alerts, etc.) ---------- */
.bulk-bar {
  background: var(--color-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: .65rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.bulk-bar__actions {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ---------- Selected row state for bulk-action tables ---------- */
.table tbody tr.row-selected,
.table tbody tr.row-selected:hover {
  background: #eef4ff;
}
.table tbody tr.row-selected td {
  border-bottom-color: #d6e4ff;
}

/* ---------- Badge contrast fix (overrides earlier definitions) ---------- */
/* Tinted backgrounds bumped 20→30 + text colors deepened to pass WCAG AA. */
.badge-admin{background:#d6338428;color:#a02468;border:1px solid #d63384}
.badge-member{background:#19875428;color:#0f5132;border:1px solid #198754}
.badge-active{background:#19875428;color:#0f5132;border:1px solid #198754}
.badge-inactive{background:#6c757d28;color:#495057;border:1px solid #6c757d}
.badge-status-new{background:#dc354528;color:#9c1d29;border:1px solid #dc3545}
.badge-status-acknowledged{background:#ffc10728;color:#7a5b00;border:1px solid #d39e00}
.badge-status-resolved{background:#19875428;color:#0f5132;border:1px solid #198754}
.badge-severity-critical{background:#8b000028;color:#660000;border:1px solid #8b0000}
.badge-severity-high{background:#d6338428;color:#a02468;border:1px solid #d63384}
.badge-severity-medium{background:#fd7e1428;color:#a04a00;border:1px solid #fd7e14}
.badge-severity-low{background:#19875428;color:#0f5132;border:1px solid #198754}

/* ---------- Toast / snackbar ---------- */
.toast-stack {
  position: fixed;
  top: 70px;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  z-index: 11000;
  pointer-events: none;
}
.toast {
  background: #111;
  color: #fff;
  padding: .65rem .9rem;
  border-radius: var(--radius-md);
  font-size: .85rem;
  box-shadow: var(--shadow-md);
  min-width: 220px;
  max-width: 360px;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: .5rem;
  animation: toastIn .18s ease-out;
  border-left: 3px solid var(--color-muted);
}
.toast--success { border-left-color: var(--status-ok); }
.toast--error   { border-left-color: var(--status-danger); }
.toast--info    { border-left-color: var(--status-info); }
.toast--warn    { border-left-color: var(--status-warn); }
.toast.toast--leaving { animation: toastOut .15s ease-in forwards; }
@keyframes toastIn  { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-6px); } }

/* ---------- Sidebar section header (optional grouping) ---------- */
.nav-section {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--color-muted);
  padding: .9rem .7rem .25rem;
}
.nav-section:first-child { padding-top: .25rem; }

/* ---------- Empty state ---------- */
.empty-state {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--color-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.empty-state__title {
  color: var(--color-text);
  font-weight: 600;
  font-size: 1rem;
}
.empty-state__hint {
  font-size: .85rem;
  color: var(--color-muted);
  max-width: 420px;
}
/* When .empty-state is rendered inside a table cell */
.empty-row td {
  padding: 0;
  background: transparent;
}
.empty-row td .empty-state {
  padding: 2.5rem 1rem;
}
.empty-row:hover td { background: transparent; }

/* ---------- Tabs (replaces inline-styled tab buttons) ---------- */
.tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}
.tabs .tab-btn {
  appearance: none;
  background: none;
  border: none;
  padding: .75rem .25rem;
  margin-bottom: -1px;
  cursor: pointer;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-muted);
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.tabs .tab-btn:hover { color: var(--color-text); }
.tabs .tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.tabs .tab-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.tab-panel { display: block; }
.tab-panel.hidden { display: none !important; }

/* ---------- Sidebar section header ---------- */
/* (.nav-section already defined above; this rule pairs it with link spacing) */
.sidebar .nav-link + .nav-section { margin-top: .25rem; }
.nav-spacer { flex: 1 1 auto; min-height: .5rem; }

/* ---------- Page header ---------- */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3, 1rem);
  flex-wrap: wrap;
  margin-bottom: var(--space-4, 1.25rem);
}
.page-header__main { min-width: 0; flex: 1 1 auto; }
.page-header__title {
  margin: 0 0 .25rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
}
.page-header__subtitle {
  margin: 0;
  font-size: .9rem;
  color: var(--color-text-2);
  max-width: 720px;
}
.page-header__actions {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

/* ---------- Form field label (small caption above input) ---------- */
.field-label {
  display: block;
  margin-bottom: .25rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--color-text-2);
}
.field-label--inline {
  display: inline-block;
  margin-bottom: 0;
  white-space: nowrap;
}
.field-label__optional {
  font-weight: 400;
  color: var(--color-muted);
  margin-left: .25rem;
}

/* ---------- Panel title hint (small text appended to a panel/section title) ---------- */
.panel-title-hint {
  font-size: .75rem;
  color: var(--color-muted);
  font-weight: 400;
  margin-left: .5rem;
}

/* ---------- Section eyebrow (used as a small in-panel label) ---------- */
.section-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-text-2);
  margin: 0 0 var(--space-2, .5rem);
}
.section-eyebrow--accent { color: var(--color-primary); }

/* ---------- Code block with overlay copy button ---------- */
.code-block {
  position: relative;
}
.code-block > .code,
.code-block > pre.code {
  margin: 0;
  font-size: .82rem;
  white-space: pre-wrap;
  word-break: break-all;
  padding: .75rem;
  padding-right: 4.5rem;
  border-radius: var(--radius-md, 6px);
}
.code-block > .copy-btn {
  position: absolute;
  top: .4rem;
  right: .4rem;
}
/* Copy button sits on top of dark <pre.code>; force a readable on-dark style */
.code-block > .copy-btn,
.code-block > .copy-btn.btn,
.code-block > .copy-btn.btn-ghost {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: .25rem .6rem;
  font-size: .72rem;
  line-height: 1.2;
  border-radius: var(--radius-sm, 4px);
  backdrop-filter: blur(2px);
  transition: background .15s ease, border-color .15s ease;
}
.code-block > .copy-btn:hover {
  background: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.code-block > .copy-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}
.code-block > .copy-btn.copied {
  background: var(--status-ok, #198754);
  border-color: var(--status-ok, #198754);
  color: #fff;
}

/* ---------- Method card (deployment methods, integrations, etc.) ---------- */
.method-card__header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: var(--space-3, .75rem);
  padding-bottom: var(--space-2, .5rem);
  border-bottom: 1px solid var(--border-subtle, #e5e7eb);
}
.method-card__title {
  font-weight: 600;
  font-size: .95rem;
  color: var(--color-text);
}
.method-card__steps {
  padding-left: 1.2rem;
  margin: 0;
  font-size: .875rem;
  line-height: 1.7;
  color: var(--color-text-2);
}
.method-card__steps li + li { margin-top: .15rem; }
.method-card__steps strong { color: var(--color-text); font-weight: 600; }

/* ---------- Wave card (rollout phases, generic state-tinted card) ---------- */
.wave-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3, .75rem);
}
@media (max-width: 900px) {
  .wave-grid { grid-template-columns: 1fr; }
}
.wave-card {
  padding: var(--space-3, .75rem) var(--space-4, 1rem);
  background: var(--color-surface-2, #fafafa);
  border-radius: var(--radius-md, 6px);
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-left-width: 3px;
}
.wave-card--active { border-left-color: var(--color-primary); }
.wave-card--upcoming { border-left-color: var(--border-strong, #d1d5db); }
.wave-card__eyebrow {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-text-2);
  margin: 0 0 .35rem;
}
.wave-card--active .wave-card__eyebrow { color: var(--color-primary); }
.wave-card__body {
  margin: 0;
  font-size: .85rem;
  color: var(--color-text-2);
  line-height: 1.45;
}

/* ---------- Stack helper ---------- */
.stack { display: flex; flex-direction: column; }
.stack--gap-3 { gap: var(--space-3, .75rem); }
.stack--gap-4 { gap: var(--space-4, 1rem); }
.stack--gap-5 { gap: var(--space-5, 1.5rem); }



/* ---------- Interactive rollout planner ---------- */
.rollout-planner__header {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.rollout-step { cursor: pointer; user-select: none; transition: opacity .15s ease; }
.rollout-step:hover { opacity: .85; }
.rollout-step:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; border-radius: 4px; }
.rollout-wave-card {
  cursor: pointer; text-align: left; font: inherit; color: inherit;
  display: flex; flex-direction: column; gap: .5rem;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.rollout-wave-card:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.rollout-wave-card:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.rollout-wave-card__meta { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .25rem; }
.rollout-chip {
  display: inline-block; padding: .15rem .55rem;
  border-radius: 999px; font-size: .72rem; font-weight: 600;
  background: var(--color-surface, #fff); color: var(--color-text-2);
  border: 1px solid var(--border-subtle, #e5e7eb);
}
.rollout-chip--primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.rollout-chip--muted { background: transparent; }
.rollout-detail {
  margin-top: 1.25rem;
  background: var(--color-surface-2, #fafafa);
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: var(--radius-md, 6px);
  padding: 1.1rem 1.25rem;
}
.rollout-detail__header { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.rollout-detail__eyebrow { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--color-primary); margin-bottom: .25rem; }
.rollout-detail__title { margin: 0; font-size: 1rem; font-weight: 600; color: var(--color-text-1); line-height: 1.4; }
.rollout-detail__chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.rollout-detail__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1rem; }
@media (max-width: 800px) { .rollout-detail__grid { grid-template-columns: 1fr; } }
.rollout-detail__col-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-2); margin-bottom: .5rem; }
.rollout-list { margin: 0; padding-left: 1.1rem; font-size: .85rem; color: var(--color-text-2); line-height: 1.55; }
.rollout-list li { margin-bottom: .25rem; }
.rollout-checklist { display: flex; flex-direction: column; gap: .35rem; }
.rollout-check { display: flex; gap: .55rem; align-items: flex-start; font-size: .85rem; color: var(--color-text-1); cursor: pointer; padding: .35rem .5rem; border-radius: 4px; transition: background .12s ease; }
.rollout-check:hover { background: var(--color-surface, #fff); }
.rollout-check input { margin-top: .2rem; }
.rollout-check--done > span { color: var(--color-text-2); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.rollout-detail__footer { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; gap: .5rem; }
.rollout-detail__done-label { color: var(--color-success, #16a34a); font-weight: 600; font-size: .85rem; }
.rollout-progress { margin-top: 1rem; display: flex; align-items: center; gap: .75rem; }
.rollout-progress__bar { flex: 1; height: 6px; background: var(--border-subtle, #e5e7eb); border-radius: 999px; overflow: hidden; }
.rollout-progress__fill { height: 100%; background: var(--color-primary); transition: width .25s ease; }
.rollout-progress__label { font-size: .75rem; color: var(--color-text-2); white-space: nowrap; }
