/* CDON Audit Dashboard - Viva Media Branding */
:root {
  /* Viva-palett */
  --viva-lime: #CAE780;
  --viva-dark-green: #103833;
  --viva-light-green: #49C09D;
  --viva-orange: #FF6E23;
  --viva-pink: #FBD0FF;

  /* Severity */
  --critical: #EF4444;
  --high: #F97316;
  --medium: #EAB308;
  --low: #22C55E;

  /* Status */
  --status-new: #3B82F6;
  --status-progress: #F59E0B;
  --status-fixed: #22C55E;
  --status-verified-ok: #49C09D;
  --status-parked: #9CA3AF;

  /* Typ-chips */
  --type-f: #EF4444;
  --type-swe: #DC2626;
  --type-nlf: #8B5CF6;
  --type-rec: #3B82F6;

  /* UI - ljus body, mörk hero */
  --bg: #F5F4F0;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAFAF8;
  --bg-surface: #ECEAE4;
  --border: rgba(16, 56, 51, 0.12);
  --border-light: rgba(16, 56, 51, 0.22);
  --text: #1A1A1A;
  --text-muted: #4A4A4A;
  --text-dim: #7A7A7A;

  /* Accentfärger anpassade för ljust tema */
  --accent-heading: #103833;
  --accent-label: #0D6B5E;
  --accent-chip-bg: #103833;

  /* Layout */
  --max-width: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, #0a2818 0%, var(--viva-dark-green) 50%, #1a3825 100%);
  border-bottom: 3px solid;
  border-image: linear-gradient(90deg, var(--viva-lime), var(--viva-light-green)) 1;
  padding: 64px 32px 56px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--viva-lime) 0%, transparent 70%);
  opacity: 0.08;
  border-radius: 50%;
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--viva-light-green) 0%, transparent 70%);
  opacity: 0.06;
  border-radius: 50%;
  pointer-events: none;
}

@keyframes heroGlow {
  0%, 100% { opacity: 0.08; transform: scale(1); }
  50% { opacity: 0.14; transform: scale(1.05); }
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(202, 231, 128, 0.1);
  border: 1px solid rgba(202, 231, 128, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--viva-lime);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.hero-client-logo {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.client-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.client-icon-ring {
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--viva-lime), var(--viva-light-green));
  z-index: 0;
  opacity: 0.6;
}

.hero h1 {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--viva-lime);
  line-height: 1;
}

.hero-title-row {
  margin-bottom: 14px !important;
}

.hero-client-logo {
  width: 64px !important;
  height: 64px !important;
}
.client-icon {
  width: 64px !important;
  height: 64px !important;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
  line-height: 1.5;
}

/* Pulse-indikator under subtiteln */
.hero-pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 6px 14px;
  background: rgba(46, 182, 125, 0.12);
  border: 1px solid rgba(46, 182, 125, 0.3);
  border-radius: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  font-family: 'JetBrains Mono', monospace;
}
.hero-pulse-dot {
  width: 8px;
  height: 8px;
  background: #2EB67D;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(46, 182, 125, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(46, 182, 125, 0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(46, 182, 125, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 182, 125, 0); }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px 28px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--viva-lime), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.stat-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(202, 231, 128, 0.3);
  transform: translateY(-2px);
}
.stat-card:hover::before {
  opacity: 0.6;
}

.stat-value {
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--viva-lime);
  letter-spacing: -1px;
}

.stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

/* ========== CUSTOMER-FLAGGED HIGHLIGHTS ========== */
.flagged-highlights {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f7ff 100%);
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.flagged-highlights::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  opacity: 0.06;
  border-radius: 50%;
  pointer-events: none;
}
.flagged-highlights-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.flagged-highlights-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}
.flagged-highlights-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0;
  letter-spacing: -0.3px;
}
.flagged-highlights-subtitle {
  font-size: 13px;
  color: #3b82f6;
  margin-top: 2px;
}
.flagged-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  position: relative;
}
.flagged-mini-card {
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.flagged-mini-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  transform: translateY(-1px);
}
.flagged-mini-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
}
.flagged-mini-id {
  font-family: 'JetBrains Mono', monospace;
  background: #eff6ff;
  color: #1e40af;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
}
.flagged-mini-date {
  color: #6b7280;
  font-family: 'JetBrains Mono', monospace;
}
.flagged-mini-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
}
.flagged-mini-by {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
}

/* ========== MOMENTUM CHART ========== */
.momentum-section {
  background: linear-gradient(180deg, #0a2818 0%, #061a10 100%);
  padding: 32px 32px 48px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.momentum-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.momentum-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.momentum-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--viva-lime);
  letter-spacing: -0.5px;
}
.momentum-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}
.momentum-legend {
  display: flex;
  gap: 18px;
  font-size: 12px;
}
.momentum-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.7);
}
.momentum-legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 3px;
}
.momentum-chart-wrap {
  position: relative;
  width: 100%;
  height: 180px;
}
.momentum-chart {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.momentum-grid line {
  stroke: rgba(255,255,255,0.06);
  stroke-dasharray: 2 4;
}
.momentum-axis-label {
  fill: rgba(255,255,255,0.4);
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
}
.momentum-area-total {
  fill: url(#gradTotal);
}
.momentum-area-closed {
  fill: url(#gradClosed);
}
.momentum-line-total {
  fill: none;
  stroke: var(--viva-lime);
  stroke-width: 2;
}
.momentum-line-closed {
  fill: none;
  stroke: #10b981;
  stroke-width: 2;
}
.momentum-area-total, .momentum-line-total,
.momentum-area-closed, .momentum-line-closed {
  animation: drawIn 1.2s ease-out;
}
@keyframes drawIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.momentum-point {
  fill: #fff;
  stroke: var(--viva-lime);
  stroke-width: 2;
  cursor: pointer;
  transition: r 0.15s;
}
.momentum-point:hover { r: 7; }
.momentum-point-closed {
  fill: #fff;
  stroke: #10b981;
}
.momentum-tooltip {
  position: absolute;
  background: #fff;
  color: var(--viva-dark-green);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  white-space: nowrap;
  transform: translate(-50%, -110%);
  z-index: 10;
}
.momentum-tooltip.visible { opacity: 1; }
.momentum-tooltip-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.momentum-tooltip-stat {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========== FADE-IN ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tab-panel.active > * {
  animation: fadeInUp 0.4s ease backwards;
}
.tab-panel.active > *:nth-child(1) { animation-delay: 0.05s; }
.tab-panel.active > *:nth-child(2) { animation-delay: 0.1s; }
.tab-panel.active > *:nth-child(3) { animation-delay: 0.15s; }
.tab-panel.active > *:nth-child(4) { animation-delay: 0.2s; }

/* Language toggle */
.lang-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  overflow: hidden;
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--viva-lime);
  color: var(--viva-dark-green);
}

.lang-btn:hover:not(.active) {
  color: white;
}

/* ========== TABS ========== */
.tabs-container {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.tabs {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 0;
  padding: 0 32px;
  overflow-x: auto;
}

.tab {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  color: var(--viva-dark-green);
  border-bottom-color: var(--viva-dark-green);
  font-weight: 600;
}

.tab-count {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 11px;
  color: var(--text-dim);
}

.tab.active .tab-count {
  background: var(--viva-dark-green);
  border-color: var(--viva-dark-green);
  color: white;
}

/* ========== CONTENT ========== */
.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 32px 48px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Section chapters (Viva-stil) */
.section-chapter {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-label);
  margin-bottom: 16px;
  font-weight: 600;
}

.section-chapter::before {
  content: '// ';
  color: var(--text-dim);
}

/* ========== LEGEND ========== */
.legend {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  margin-bottom: 28px;
}

.legend-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.legend-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== FINDINGS SUMMARY BAR ========== */
.findings-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.findings-summary-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.findings-summary-item:hover {
  border-color: var(--border-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.findings-summary-item.active {
  border-color: var(--viva-dark-green);
  box-shadow: 0 0 0 1px var(--viva-dark-green);
}

.summary-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.summary-count {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.summary-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========== TOPIC TABS ========== */
.topic-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.topic-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.topic-tab:hover {
  border-color: var(--border-light);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.topic-tab.active {
  background: var(--viva-dark-green);
  border-color: var(--viva-dark-green);
  color: #fff;
}

.topic-tab-count {
  background: rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 600;
}

.topic-tab.active .topic-tab-count {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* ========== FINDING CARDS ========== */
.finding-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  overflow: hidden;
  border-left: 4px solid var(--border);
}

.finding-card.severity-critical { border-left-color: var(--critical); }
.finding-card.severity-high { border-left-color: var(--high); }
.finding-card.severity-medium { border-left-color: var(--medium); }
.finding-card.severity-low { border-left-color: var(--low); }

.finding-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.finding-card.expanded {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.finding-card.verified-ok {
  opacity: 0.5;
  border-left-color: var(--status-verified-ok);
}

.finding-card.finding-closed {
  opacity: 0.55;
  border-left-color: var(--status-fixed);
}

.finding-card.finding-closed .finding-title {
  text-decoration: line-through;
  text-decoration-color: rgba(0,0,0,0.25);
}

.finding-card.finding-closed:hover {
  opacity: 0.8;
}

.chip-status-closed {
  background: var(--status-fixed);
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========== SORT BAR ========== */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.sort-bar-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
}
.sort-bar-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.sort-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s ease;
}
.sort-btn:hover {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--text-dim);
}
.sort-btn.active {
  background: var(--viva-dark-green);
  color: #fff;
  border-color: var(--viva-dark-green);
  font-weight: 600;
}

/* ========== TIMELINE — VERTIKAL ========== */
.timeline-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 13px;
}
.timeline-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}
.timeline-legend-dot {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
}

.timeline-vertical {
  position: relative;
  padding-left: 0;
}
.timeline-vertical::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: linear-gradient(180deg, var(--viva-dark-green), rgba(0,0,0,0.06) 95%);
}
.timeline-event {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  margin-bottom: 18px;
  position: relative;
  animation: fadeInUp 0.5s ease backwards;
}
.timeline-event:nth-child(1) { animation-delay: 0.05s; }
.timeline-event:nth-child(2) { animation-delay: 0.1s; }
.timeline-event:nth-child(3) { animation-delay: 0.15s; }
.timeline-event:nth-child(4) { animation-delay: 0.2s; }
.timeline-event:nth-child(5) { animation-delay: 0.25s; }
.timeline-event:nth-child(n+6) { animation-delay: 0.3s; }
.timeline-event-marker {
  width: 48px;
  height: 48px;
  background: var(--type-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--bg), 0 4px 10px rgba(0,0,0,0.08);
}
.timeline-event-icon {
  font-size: 22px;
}
.timeline-event-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--type-color);
  border-radius: 10px;
  padding: 14px 18px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.timeline-event-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transform: translateX(2px);
}
.timeline-event-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.timeline-event-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
}
.timeline-event-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.timeline-event-what {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px 0;
  line-height: 1.4;
}
.timeline-event-result {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Mini-timeline (i overview "Senaste aktivitet") */
.timeline-item-mini {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding: 10px 0;
  align-items: start;
}
.timeline-mini-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.timeline-mini-meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  margin-bottom: 2px;
}
.timeline-mini-date {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-dim);
}
.timeline-mini-type {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.timeline-mini-what {
  font-size: 13px;
  color: var(--text);
}

/* ========== DECISIONS PANEL (intern - används ej i UI) ========== */
.decisions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.decision-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  border-left: 4px solid var(--viva-dark-green);
  transition: box-shadow 0.15s ease;
}
.decision-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.decision-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.decision-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
}
.decision-category {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 4px;
  background: #f5f5f4;
  color: #57534e;
}
.category-vision { background: #ede9fe; color: #5b21b6; }
.category-arkitektur { background: #cffafe; color: #155e75; }
.category-schema { background: #fed7aa; color: #9a3412; }
.category-deploy { background: #d1fae5; color: #065f46; }
.category-regel { background: #fee2e2; color: #991b1b; }
.category-design { background: #fce7f3; color: #9d174d; }
.category-feature { background: #dbeafe; color: #1e40af; }
.category-compliance { background: #fef3c7; color: #92400e; }
.category-metod, .category-verktyg { background: #f3e8ff; color: #6b21a8; }
.decision-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px 0;
  line-height: 1.4;
}
.decision-reasoning {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ========== PARKED STATUS ========== */
.parked-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  color: #92400e;
  background: #fef3c7;
  padding: 2px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.parked-badge::before {
  content: "\23F8";
  font-size: 9px;
}

.finding-card.finding-parked {
  opacity: 0.85;
  border-left-color: #d97706;
}
.finding-card.finding-parked .finding-title {
  font-weight: 500;
}
.finding-card.finding-parked:hover {
  opacity: 1;
}

.parked-section {
  background: #fffbeb;
  border-left: 3px solid #d97706;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin-top: 16px;
}
.parked-section .parked-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #92400e;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.parked-section .parked-tag {
  background: #fbbf24;
  color: #78350f;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}
.parked-section .parked-reason {
  font-size: 14px;
  line-height: 1.6;
  color: #44403c;
  margin-bottom: 12px;
}
.parked-section .parked-meta {
  font-size: 12px;
  color: #78716c;
  border-top: 1px solid #fde68a;
  padding-top: 8px;
}

/* ========== VERIFICATION SECTION ========== */
.verification-section {
  background: #fafafa;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  padding: 14px 18px;
  margin-top: 12px;
}
.verification-section h4 {
  margin-bottom: 10px;
}
.verification-block .confidence-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e7e5e4;
}
.confidence-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 4px;
}
.confidence-low .confidence-badge { background: #fee2e2; color: #991b1b; }
.confidence-medium .confidence-badge { background: #fef3c7; color: #92400e; }
.confidence-high .confidence-badge { background: #d1fae5; color: #065f46; }
.confidence-verified .confidence-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}
.confidence-meta {
  font-size: 12px;
  color: #78716c;
}
.verification-sources {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.verification-sources li {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  grid-template-areas: "type result date" "name result date";
  gap: 4px 12px;
  font-size: 12px;
  padding: 8px 10px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #f5f5f4;
}
.source-type {
  grid-area: type;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 3px;
  background: #e7e5e4;
  color: #44403c;
  align-self: start;
  width: fit-content;
}
.source-type-agent { background: #ede9fe; color: #5b21b6; }
.source-type-firecrawl-js { background: #dbeafe; color: #1e40af; }
.source-type-firecrawl-no-js { background: #cffafe; color: #155e75; }
.source-type-curl-no-js { background: #f3e8ff; color: #6b21a8; }
.source-type-webfetch { background: #fce7f3; color: #9d174d; }
.source-type-chrome { background: #fef3c7; color: #92400e; }
.source-type-gsc { background: #d1fae5; color: #065f46; }
.source-type-ahrefs { background: #fed7aa; color: #9a3412; }
.source-type-slack { background: #f3e8ff; color: #6b21a8; }
.source-type-ricky-manual {
  background: linear-gradient(135deg, #2EB67D, #10b981);
  color: #fff;
}
.source-name {
  grid-area: name;
  font-size: 11px;
  color: #57534e;
  font-weight: 500;
}
.source-result {
  grid-area: result;
  color: #292524;
  line-height: 1.4;
}
.source-date {
  grid-area: date;
  font-size: 11px;
  color: #a8a29e;
  font-family: 'JetBrains Mono', monospace;
}

/* ========== CUSTOMER-FLAGGED BADGE ========== */
.customer-flagged-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  color: #1e40af;
  background: #dbeafe;
  padding: 2px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.customer-flagged-badge::before {
  content: "\25C6";
  font-size: 8px;
}

.finding-card.customer-flagged {
  border-left-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15), 0 2px 8px rgba(59, 130, 246, 0.08);
}

.customer-flagged-section {
  background: #f0f7ff;
  border-left: 3px solid #3b82f6;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin-top: 16px;
}

.customer-flagged-section .flagged-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #1e40af;
  margin-bottom: 8px;
}

.customer-flagged-section .flagged-quote {
  font-style: italic;
  color: #334155;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.customer-flagged-section .flagged-meta {
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.flagged-meta .slack-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.flagged-source-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f0ee;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #4a154b;
}

.customer-flagged-section .flagged-response {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(59, 130, 246, 0.15);
  font-size: 13px;
  color: #1e293b;
  line-height: 1.5;
}

.customer-flagged-section .flagged-response strong {
  color: #1e40af;
}

.customer-flagged-section .flagged-evidence {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.flagged-evidence-item {
  flex: 1;
  min-width: 200px;
  max-width: 400px;
}

.flagged-evidence-item img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.flagged-evidence-item img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.flagged-evidence-item .evidence-caption {
  font-size: 11px;
  color: #64748b;
  margin-top: 6px;
  line-height: 1.4;
}

/* Fullscreen lightbox for evidence images */
.evidence-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 32px;
}

.evidence-lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.finding-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 24px;
  cursor: pointer;
  flex-wrap: wrap;
  user-select: none;
}

.finding-id {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
}

.finding-title {
  font-size: 15px;
  font-weight: 600;
  flex: 1;
  line-height: 1.3;
  min-width: 200px;
}

.finding-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-dim);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.finding-card.expanded .finding-chevron {
  transform: rotate(180deg);
}

.finding-scope-tag {
  font-size: 10px;
  color: var(--text-dim);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.chip-severity-critical { background: rgba(239, 68, 68, 0.15); color: var(--critical); border: 1px solid rgba(239, 68, 68, 0.25); }
.chip-severity-high { background: rgba(249, 115, 22, 0.15); color: var(--high); border: 1px solid rgba(249, 115, 22, 0.25); }
.chip-severity-medium { background: rgba(234, 179, 8, 0.15); color: var(--medium); border: 1px solid rgba(234, 179, 8, 0.25); }
.chip-severity-low { background: rgba(34, 197, 94, 0.15); color: var(--low); border: 1px solid rgba(34, 197, 94, 0.25); }

.chip-type-F { background: rgba(239, 68, 68, 0.12); color: var(--type-f); border: 1px solid rgba(239, 68, 68, 0.2); }
.chip-type-SWE { background: rgba(220, 38, 38, 0.12); color: var(--type-swe); border: 1px solid rgba(220, 38, 38, 0.2); }
.chip-type-NLF { background: rgba(139, 92, 246, 0.12); color: var(--type-nlf); border: 1px solid rgba(139, 92, 246, 0.2); }
.chip-type-REC { background: rgba(59, 130, 246, 0.12); color: var(--type-rec); border: 1px solid rgba(59, 130, 246, 0.2); }

.chip-status-new { background: rgba(59, 130, 246, 0.12); color: var(--status-new); border: 1px solid rgba(59, 130, 246, 0.2); }
.chip-status-closed { background: rgba(34, 197, 94, 0.12); color: var(--low); border: 1px solid rgba(34, 197, 94, 0.2); }
.chip-status-fixed { background: rgba(34, 197, 94, 0.12); color: var(--low); border: 1px solid rgba(34, 197, 94, 0.2); }
.chip-status-verified-ok { background: rgba(73, 192, 157, 0.12); color: var(--status-verified-ok); border: 1px solid rgba(73, 192, 157, 0.2); }

.finding-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  opacity: 0;
}

.finding-card.expanded .finding-details {
  max-height: 1200px;
  opacity: 1;
}

.finding-body {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}

.finding-body .finding-section {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.finding-body .finding-section:nth-child(1),
.finding-body .finding-section:nth-child(2) {
  border-top: 1px solid var(--border);
}

.finding-body .finding-section.full-width {
  grid-column: 1 / -1;
}

.finding-body h4 {
  color: var(--accent-label);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.finding-body h4::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 12px;
  background: var(--accent-label);
  border-radius: 2px;
}

.finding-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}

.finding-meta {
  display: flex;
  gap: 16px;
  padding: 12px 24px 16px;
  font-size: 11px;
  color: var(--text-dim);
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}

.finding-meta-tag {
  display: flex;
  align-items: center;
  gap: 4px;
}

.finding-meta-tag::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--border-light);
  border-radius: 50%;
}

/* Method info */
.method-toggle {
  background: rgba(16, 56, 51, 0.06);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  color: var(--accent-label);
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  margin-left: auto;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.method-toggle:hover {
  background: rgba(16, 56, 51, 0.12);
}

.method-details {
  display: none;
  width: 100%;
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.6;
}

.method-details.open {
  display: block;
}

.method-row {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.method-label {
  color: var(--text-dim);
  min-width: 70px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.5px;
  padding-top: 1px;
}

.method-value {
  color: var(--text-muted);
}

.method-value code {
  background: rgba(16, 56, 51, 0.06);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}

/* ========== FINDING VERSION ========== */
.finding-version-header {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--viva-dark-green);
  background: rgba(16, 56, 51, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
}

/* ========== OBSERVATIONS CHAIN ========== */
.obs-entry {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.obs-entry:last-child { border-bottom: none; }

.obs-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.obs-index {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  flex-shrink: 0;
}

.obs-result-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
}

.obs-identified { background: rgba(59, 130, 246, 0.1); color: var(--status-new); }
.obs-confirmed { background: rgba(34, 197, 94, 0.1); color: var(--low); }
.obs-updated { background: rgba(234, 179, 8, 0.1); color: var(--medium); }
.obs-closed { background: rgba(34, 197, 94, 0.15); color: var(--low); }
.obs-denied { background: rgba(239, 68, 68, 0.1); color: var(--critical); }

.obs-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
}

.obs-model {
  font-size: 11px;
  color: var(--text-dim);
  margin-left: auto;
}

.obs-tools {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 28px;
}

.obs-tools code {
  background: rgba(16, 56, 51, 0.06);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
}

.obs-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 28px;
  margin-top: 4px;
  line-height: 1.5;
}

/* ========== EXAMPLE URLS ========== */
.example-urls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.example-url-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--viva-dark-green);
  border: 1.5px solid var(--viva-dark-green);
  border-radius: 8px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: all 0.15s ease;
  letter-spacing: 0.01em;
}

.example-url-link:hover {
  background: #0a2924;
  border-color: var(--viva-lime);
  box-shadow: 0 2px 8px rgba(16, 56, 51, 0.25);
}

.example-url-icon {
  font-size: 16px;
  opacity: 0.85;
}

/* ========== DEV ACTION ========== */
.dev-action-section {
  border-top: 2px solid var(--viva-dark-green) !important;
}

.dev-action-title {
  color: var(--viva-dark-green) !important;
}

.dev-action-title::before {
  background: var(--viva-dark-green) !important;
}

.dev-action-box {
  background: rgba(16, 56, 51, 0.04);
  border: 1px solid rgba(16, 56, 51, 0.15);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 13px;
}

.dev-action-who {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--viva-dark-green);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dev-action-who::before {
  content: '\2699';
  font-size: 14px;
}

.dev-action-task {
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 10px;
}

.dev-action-verify {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.dev-action-verify-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 10px;
}

.dev-action-verify code {
  background: rgba(16, 56, 51, 0.06);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  word-break: break-all;
}

/* ========== QUICKWINS ========== */
.quickwin-area {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.quickwin-area h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quickwin-area h3::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--low);
  border-radius: 50%;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.check-item:last-child {
  border-bottom: none;
}

.check-icon {
  color: var(--viva-light-green);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.check-label {
  font-weight: 500;
}

.check-detail {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 2px;
}

/* ========== TIMELINE ========== */
.timeline-item {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-date {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  color: var(--text-dim);
  min-width: 100px;
  flex-shrink: 0;
}

.timeline-what {
  font-weight: 500;
  font-size: 14px;
}

.timeline-result {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
}

/* ========== OVERVIEW SECTION ========== */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.overview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.overview-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.domain-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.domain-tag {
  background: rgba(16, 56, 51, 0.06);
  border: 1px solid rgba(16, 56, 51, 0.15);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 13px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: var(--viva-dark-green);
  font-weight: 600;
}

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center;
  padding: 64px 32px;
  color: var(--text-dim);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state h3 {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* ========== TEAM SECTION ========== */
.team-section {
  background: var(--viva-dark-green);
  padding: 48px 32px;
  margin-top: 48px;
  border-top: 3px solid;
  border-image: linear-gradient(90deg, var(--viva-lime), var(--viva-light-green)) 1;
}

.team-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.team-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--viva-light-green);
  margin-bottom: 24px;
}

.team-title::before {
  content: '// ';
  color: rgba(255,255,255,0.3);
}

.team-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.team-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s;
  min-width: 280px;
  flex: 1;
}

.team-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(202, 231, 128, 0.3);
}

.team-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--viva-lime);
  flex-shrink: 0;
}

.team-name {
  font-weight: 600;
  color: white;
  font-size: 15px;
  margin-bottom: 2px;
}

.team-role {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.team-company {
  font-size: 11px;
  color: var(--viva-lime);
  margin-top: 2px;
}

/* ========== FOOTER ========== */
/* ========== DISCLAIMER ========== */
.disclaimer-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.disclaimer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.disclaimer-inner p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-dim);
  font-style: italic;
  margin: 0;
}

.footer {
  background: var(--viva-dark-green);
  padding: 24px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.footer a {
  color: var(--viva-lime);
  text-decoration: none;
}

.footer a:hover {
  color: white;
}

/* ========== HREFLANG ========== */
.hreflang-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  align-items: center;
}

.hreflang-brand-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-heading);
  margin-bottom: 16px;
}

.hreflang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.hreflang-matrix-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.hreflang-matrix-card h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.hreflang-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.hreflang-table th {
  font-weight: 600;
  color: var(--text-dim);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 6px 4px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hreflang-table th:first-child {
  text-align: left;
  font-size: 9px;
  color: var(--text-dim);
}

.hreflang-table td {
  padding: 8px 4px;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.hreflang-row-label {
  text-align: left !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--viva-dark-green);
}

.hreflang-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.hreflang-status.ok {
  background: rgba(34, 197, 94, 0.15);
  color: var(--low);
}

.hreflang-status.broken {
  background: rgba(249, 115, 22, 0.15);
  color: var(--high);
}

.hreflang-status.error {
  background: rgba(239, 68, 68, 0.15);
  color: var(--critical);
  font-size: 9px;
  width: auto;
  padding: 0 6px;
  border-radius: 8px;
}

.hreflang-status.missing {
  color: var(--text-dim);
}

.hreflang-status.pending {
  background: rgba(156, 163, 175, 0.15);
  color: var(--text-dim);
  font-size: 11px;
}

.hreflang-status.self {
  color: var(--border-light);
  font-size: 18px;
}

.hreflang-status.na {
  color: var(--text-dim);
  opacity: 0.4;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero { padding: 32px 20px; }
  .hero h1 { font-size: 24px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .overview-grid { grid-template-columns: 1fr; }
  .tabs { padding: 0 16px; }
  .content { padding: 24px 16px; }
  .finding-header { flex-direction: column; align-items: flex-start; }
  .legend-grid { flex-direction: column; gap: 8px; }
  .topic-tabs { gap: 6px; }
  .topic-tab { padding: 6px 12px; font-size: 12px; }
}
