:root {
  --slopit-bg: #ffffff;
  --slopit-bg-secondary: #f8f9fa;
  --slopit-bg-tertiary: #e9ecef;
  --slopit-text: #212529;
  --slopit-text-secondary: #6c757d;
  --slopit-border: #dee2e6;
  --slopit-clean: #28a745;
  --slopit-clean-bg: #d4edda;
  --slopit-suspicious: #ffc107;
  --slopit-suspicious-bg: #fff3cd;
  --slopit-flagged: #dc3545;
  --slopit-flagged-bg: #f8d7da;
  --slopit-severity-low: #17a2b8;
  --slopit-severity-medium: #ffc107;
  --slopit-severity-high: #dc3545;
  --slopit-primary: #0d6efd;
  --slopit-primary-hover: #0b5ed7;
  --slopit-focus-ring: rgba(13, 110, 253, 0.25);
  --slopit-space-xs: .25rem;
  --slopit-space-sm: .5rem;
  --slopit-space-md: 1rem;
  --slopit-space-lg: 1.5rem;
  --slopit-space-xl: 2rem;
  --slopit-font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --slopit-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  --slopit-font-size-sm: .875rem;
  --slopit-font-size-base: 1rem;
  --slopit-font-size-lg: 1.25rem;
  --slopit-radius-sm: .25rem;
  --slopit-radius-md: .375rem;
  --slopit-radius-lg: .5rem;
  --slopit-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --slopit-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
}
[data-theme="dark"] {
  --slopit-bg: #1a1a1a;
  --slopit-bg-secondary: #2d2d2d;
  --slopit-bg-tertiary: #404040;
  --slopit-text: #f8f9fa;
  --slopit-text-secondary: #adb5bd;
  --slopit-border: #495057;
  --slopit-clean-bg: #1e4620;
  --slopit-suspicious-bg: #4d3800;
  --slopit-flagged-bg: #4d1a1f;
}
.slopit-dashboard {
  font-family: var(--slopit-font-family);
  font-size: var(--slopit-font-size-base);
  color: var(--slopit-text);
  background: var(--slopit-bg);
  line-height: 1.5;
}
.slopit-dashboard * {
  box-sizing: border-box;
}
.slopit-verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--slopit-space-xs);
  padding: var(--slopit-space-xs) var(--slopit-space-sm);
  border-radius: var(--slopit-radius-sm);
  font-size: var(--slopit-font-size-sm);
  font-weight: 500;
  text-transform: capitalize;
}
.slopit-verdict-badge--clean {
  background: var(--slopit-clean-bg);
  color: var(--slopit-clean);
}
.slopit-verdict-badge--suspicious {
  background: var(--slopit-suspicious-bg);
  color: var(--slopit-suspicious);
}
.slopit-verdict-badge--flagged {
  background: var(--slopit-flagged-bg);
  color: var(--slopit-flagged);
}
.slopit-session-list {
  width: 100%;
}
.slopit-session-table {
  width: 100%;
  border-collapse: collapse;
}
.slopit-session-table th,
.slopit-session-table td {
  padding: var(--slopit-space-sm) var(--slopit-space-md);
  text-align: left;
  border-bottom: 1px solid var(--slopit-border);
}
.slopit-session-table th {
  background: var(--slopit-bg-secondary);
  font-weight: 600;
  font-size: var(--slopit-font-size-sm);
  color: var(--slopit-text-secondary);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.slopit-session-table tr:hover {
  background: var(--slopit-bg-secondary);
  cursor: pointer;
}
.slopit-session-id {
  font-family: var(--slopit-font-mono);
  font-size: var(--slopit-font-size-sm);
}
.slopit-session-detail {
  padding: var(--slopit-space-lg);
}
.slopit-session-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--slopit-space-lg);
  padding-bottom: var(--slopit-space-md);
  border-bottom: 1px solid var(--slopit-border);
}
.slopit-session-title {
  font-size: var(--slopit-font-size-lg);
  font-weight: 600;
  margin: 0 0 var(--slopit-space-xs) 0;
}
.slopit-session-meta {
  color: var(--slopit-text-secondary);
  font-size: var(--slopit-font-size-sm);
}
.slopit-trial-timeline {
  position: relative;
  padding-left: var(--slopit-space-lg);
}
.slopit-trial-timeline:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--slopit-border);
}
.slopit-trial-item {
  position: relative;
  padding: var(--slopit-space-md);
  margin-bottom: var(--slopit-space-md);
  background: var(--slopit-bg-secondary);
  border-radius: var(--slopit-radius-md);
}
.slopit-trial-item:before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--slopit-space-lg) - 4px);
  top: var(--slopit-space-md);
  width: 10px;
  height: 10px;
  background: var(--slopit-primary);
  border-radius: 50%;
}
.slopit-trial-index {
  font-weight: 600;
  color: var(--slopit-text-secondary);
  font-size: var(--slopit-font-size-sm);
}
.slopit-flag-distribution {
  padding: var(--slopit-space-md);
}
.slopit-flag-bar {
  display: flex;
  align-items: center;
  margin-bottom: var(--slopit-space-sm);
}
.slopit-flag-label {
  width: 150px;
  font-size: var(--slopit-font-size-sm);
  color: var(--slopit-text-secondary);
}
.slopit-flag-bar-track {
  flex: 1;
  height: 20px;
  background: var(--slopit-bg-tertiary);
  border-radius: var(--slopit-radius-sm);
  overflow: hidden;
}
.slopit-flag-bar-fill {
  height: 100%;
  background: var(--slopit-primary);
  transition: width .3s ease;
}
.slopit-flag-count {
  width: 50px;
  text-align: right;
  font-family: var(--slopit-font-mono);
  font-size: var(--slopit-font-size-sm);
}
.slopit-histogram {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 100px;
  padding: var(--slopit-space-md);
}
.slopit-histogram-bar {
  flex: 1;
  background: var(--slopit-primary);
  border-radius: var(--slopit-radius-sm) var(--slopit-radius-sm) 0 0;
  transition: height .3s ease;
}
.slopit-card {
  background: var(--slopit-bg);
  border: 1px solid var(--slopit-border);
  border-radius: var(--slopit-radius-lg);
  box-shadow: var(--slopit-shadow-sm);
}
.slopit-card-header {
  padding: var(--slopit-space-md);
  border-bottom: 1px solid var(--slopit-border);
  font-weight: 600;
}
.slopit-card-body {
  padding: var(--slopit-space-md);
}
.slopit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--slopit-space-xs);
  padding: var(--slopit-space-sm) var(--slopit-space-md);
  background: var(--slopit-primary);
  color: #fff;
  border: none;
  border-radius: var(--slopit-radius-md);
  font-size: var(--slopit-font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background .2s ease;
}
.slopit-button:hover {
  background: var(--slopit-primary-hover);
}
.slopit-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--slopit-focus-ring);
}
.slopit-button--secondary {
  background: var(--slopit-bg-secondary);
  color: var(--slopit-text);
  border: 1px solid var(--slopit-border);
}
.slopit-button--secondary:hover {
  background: var(--slopit-bg-tertiary);
}
.slopit-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--slopit-space-xl);
  color: var(--slopit-text-secondary);
}
.slopit-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--slopit-border);
  border-top-color: var(--slopit-primary);
  border-radius: 50%;
  animation: slopit-spin .8s linear infinite;
}
@keyframes slopit-spin {
  to {
    transform: rotate(360deg);
  }
}
.slopit-connection-status {
  display: inline-flex;
  align-items: center;
  gap: var(--slopit-space-xs);
  font-size: var(--slopit-font-size-sm);
}
.slopit-connection-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.slopit-connection-indicator--connected {
  background: var(--slopit-clean);
}
.slopit-connection-indicator--disconnected {
  background: var(--slopit-text-secondary);
}
.slopit-connection-indicator--error {
  background: var(--slopit-flagged);
}
.slopit-connection-indicator--connecting {
  background: var(--slopit-suspicious);
  animation: slopit-pulse 1s ease-in-out infinite;
}
@keyframes slopit-pulse {
  0%,
  to {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.slopit-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--slopit-space-sm);
  padding: var(--slopit-space-md);
}
.slopit-pagination-info {
  color: var(--slopit-text-secondary);
  font-size: var(--slopit-font-size-sm);
}
