/* ============================================
   TIMELINE DISPLAY
   ============================================ */

.timeline-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 1200px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.timeline-header {
  text-align: center;
  margin-bottom: 1rem;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.5rem;
}

.timeline-date {
  font-size: 1.5rem;
  font-weight: 700;
  color: #10b981;
}

/* Progress Bar */
.timeline-bar-container {
  position: relative;
  height: 50px;
  margin: 1.5rem 0;
}

.timeline-bar {
  position: relative;
  height: 40px;
  background: linear-gradient(90deg, 
    #10b981 0%,      /* Green - plenty of time */
    #10b981 40%,
    #f59e0b 60%,     /* Orange - getting urgent */
    #ef4444 100%     /* Red - critical */
  );
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: rgba(0, 0, 0, 0.15);
  transition: width 1s ease;
  border-right: 3px solid white;
  box-shadow: 2px 0 8px rgba(0,0,0,0.2);
}

.timeline-marker {
  position: absolute;
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(0,0,0,0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  white-space: nowrap;
}

.timeline-marker.start {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.timeline-marker.end {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.timeline-marker.current {
  top: -40px;
  background: white;
  color: #334155;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 0.5rem 1rem;
  z-index: 10;
  animation: bobbing 2s ease-in-out infinite;
}

.timeline-marker.current::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid white;
}

@keyframes bobbing {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}

/* Time Remaining Display */
.time-remaining {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.time-unit {
  text-align: center;
}

.time-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #10b981;
  line-height: 1;
}

.time-label {
  display: block;
  font-size: 0.875rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

/* Urgency Indicator */
.urgency-indicator {
  text-align: center;
  padding: 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.urgency-level {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.urgency-icon {
  font-size: 1.8rem;
}

/* Different urgency states */
.urgency-indicator.calm {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.urgency-indicator.calm .urgency-level {
  color: #065f46;
}

.urgency-indicator.moderate {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.urgency-indicator.moderate .urgency-level {
  color: #92400e;
}

.urgency-indicator.urgent {
  background: linear-gradient(135deg, #fed7aa, #fdba74);
  animation: pulse-gentle 2s ease-in-out infinite;
}

.urgency-indicator.urgent .urgency-level {
  color: #9a3412;
}

.urgency-indicator.critical {
  background: linear-gradient(135deg, #fecaca, #fca5a5);
  animation: pulse-warning 1.5s ease-in-out infinite;
}

.urgency-indicator.critical .urgency-level {
  color: #991b1b;
}

.urgency-indicator.desperate {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  animation: pulse-danger 1s ease-in-out infinite;
}

.urgency-indicator.desperate .urgency-level {
  color: white;
  font-size: 1.3rem;
  text-transform: uppercase;
}

@keyframes pulse-gentle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

@keyframes pulse-warning {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes pulse-danger {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); 
  }
  50% { 
    transform: scale(1.08); 
    box-shadow: 0 0 20px 10px rgba(239, 68, 68, 0); 
  }
}

/* Mission Duration Badge */
.mission-duration-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 2px solid #3b82f6;
  border-radius: 12px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e40af;
  margin-top: 0.5rem;
}

.duration-icon {
  font-size: 1.2rem;
}

/* ============================================
   CRISIS MODAL
   ============================================ */

.crisis-modal {
  background: white;
  border-radius: 24px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: crisisAppear 0.4s ease-out;
}

@keyframes crisisAppear {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.crisis-header {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  padding: 2rem;
  text-align: center;
  color: white;
  border-radius: 24px 24px 0 0;
  position: relative;
  overflow: hidden;
}

.crisis-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.02); opacity: 0.4; }
}

.crisis-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.crisis-icon {
  font-size: 2rem;
  animation: shake 0.5s ease-out 1;
}

@keyframes shake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(-3px) rotate(-3deg); }
  75% { transform: translateX(3px) rotate(3deg); }
}

.crisis-severity {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.crisis-title {
  font-size: 2.5rem;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}

.crisis-location {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.crisis-content {
  padding: 2rem;
}

.crisis-description {
  font-size: 1.3rem;
  line-height: 1.8;
  color: #1e293b;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border-left: 4px solid #ef4444;
  border-radius: 12px;
  font-weight: 500;
}

.crisis-context {
  font-size: 1rem;
  line-height: 1.7;
  color: #64748b;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  font-style: italic;
}

.crisis-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #92400e;
  margin-top: 1.5rem;
}

.timer-icon {
  font-size: 1.5rem;
}

.crisis-choices {
  padding: 0 2rem 2rem 2rem;
}

.crisis-choice-btn {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 3px solid #10b981;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: block;
  width: 100%;
}

.crisis-choice-btn:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
  border-color: #059669;
}

.crisis-choice-btn.locked {
  opacity: 0.4;
  cursor: not-allowed;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border-color: #cbd5e1;
  transform: none !important;
}

.crisis-choice-btn.locked::before {
  content: '🔒';
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
}

.crisis-choice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.crisis-choice-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #10b981;
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.crisis-choice-btn.locked .crisis-choice-letter {
  background: #94a3b8;
}

.crisis-choice-text {
  flex: 1;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
}

.crisis-choice-duration {
  font-size: 0.875rem;
  color: #64748b;
  background: white;
  padding: 0.35rem 0.75rem;
  border-radius: 12px;
  white-space: nowrap;
  font-weight: 600;
}

.crisis-choice-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #475569;
  margin: 0.75rem 0;
  padding-left: 46px;
}

.crisis-choice-impacts {
  display: flex;
  gap: 0.75rem;
  margin: 1rem 0;
  padding-left: 46px;
  flex-wrap: wrap;
}

.impact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 16px;
  font-weight: 600;
  font-size: 0.875rem;
}

.impact-badge.positive {
  background: #d1fae5;
  color: #065f46;
}

.impact-badge.negative {
  background: #fee2e2;
  color: #991b1b;
}

.impact-badge.neutral {
  background: #f1f5f9;
  color: #475569;
}

.crisis-choice-requirements {
  padding: 0.75rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b;
  font-size: 0.875rem;
  margin-top: 0.75rem;
  margin-left: 46px;
  font-weight: 600;
}

.crisis-warning {
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border-top: 3px solid #ef4444;
  color: #991b1b;
  font-weight: 700;
  border-radius: 0 0 24px 24px;
  font-size: 1.05rem;
}


/* ============================================
   CRISIS COORDINATION CENTER
   ============================================ */

.crisis-consultation-cta {
  margin: 1.5rem 0;
  text-align: center;
}

.btn-consult-team {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 1.25rem 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-consult-team:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.consult-badge {
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.9;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow: hidden;    /* ← CHANGED to hidden */
}

/* Coordination Center Modal */
.coordination-modal {
  background: white;
  border-radius: 24px;
  max-width: 800px;
  width: 95%;
  max-height: 95vh;
  height: 95vh;        /* ← Make sure this is here */
  display: flex;
  flex-direction: column;
  overflow: hidden;    /* ← CRITICAL - this must be here */
  animation: slideInFromBottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideInFromBottom {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Header */
.coordination-header {
  background: linear-gradient(135deg, #1e40af, #1e3a8a);
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 24px 24px 0 0;
}

.coordination-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.coord-icon {
  font-size: 2rem;
  animation: pulse-subtle 2s ease-in-out infinite;
}

@keyframes pulse-subtle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.coordination-title h2 {
  margin: 0;
  font-size: 1.5rem;
}

.coord-subtitle {
  margin: 0.25rem 0 0 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.coordination-actions {
  padding: 1.5rem 2rem;
  margin-top: 0.5rem;  /* ← ADD THIS - creates gap above actions */
  border-top: 2px solid #e2e8f0;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  background: #f8fafc;
  border-radius: 0 0 24px 24px;
}

.coord-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coord-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Agent Grid */
/* Agent Grid */
.coordination-agents {
  padding: 0.75rem 1.5rem;
  border-bottom: 2px solid #e2e8f0;
  background: #f8fafc;
  flex-shrink: 0;
}

.agent-grid {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

/* Agent cards in coordination modal - compact version */
.coordination-agents .agent-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  min-width: 140px;
  max-width: 180px;
}

.coordination-agents .agent-card:hover {
  border-color: #3b82f6;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.coordination-agents .agent-card.active {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.coordination-agents .agent-card.active::after {
  content: '🔊';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1.2rem;
  animation: speaking 1s ease-in-out infinite;
}

@keyframes speaking {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.coordination-agents .agent-card.consulted {
  border-color: #10b981;
}

.coordination-agents .agent-card.consulted::before {
  content: '✓';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #10b981;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.coordination-agents .agent-avatar {
  font-size: 2rem;
  margin-bottom: 0.25rem;
  display: block;
}

.coordination-agents .agent-avatar-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.25rem;
}

.coordination-agents .agent-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.1rem;
}

.coordination-agents .agent-title {
  font-size: 0.7rem;
  color: #64748b;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.coordination-agents .agent-status {
  margin-top: 0.35rem;
  padding: 0.2rem 0.4rem;
  background: #f1f5f9;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #475569;
}

/* Agent Instruction Banner */
.agent-instruction {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 8px;
  border-left: 3px solid #f59e0b;
}

.agent-instruction .instruction-icon {
  font-size: 1.2rem;
  animation: point-bounce 1.5s ease-in-out infinite;
}

.agent-instruction .instruction-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #92400e;
}

@keyframes point-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}


/* Consultation Empty State */
.consultation-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
}

.consultation-empty .empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.consultation-empty .empty-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: #475569;
  margin: 0 0 0.5rem 0;
}

.consultation-empty .empty-subtext {
  font-size: 0.95rem;
  color: #94a3b8;
  margin: 0;
  max-width: 400px;
}

/* Perspective-based Agent Card Colors */
.agent-card[data-perspective="planet"] {
  border-color: #86efac;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.agent-card[data-perspective="planet"]:hover {
  border-color: #22c55e;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.25);
}

.agent-card[data-perspective="equity"] {
  border-color: #c4b5fd;
  background: linear-gradient(135deg, #faf5ff, #f3e8ff);
}

.agent-card[data-perspective="equity"]:hover {
  border-color: #8b5cf6;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.25);
}

.agent-card[data-perspective="prosperity"] {
  border-color: #fcd34d;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.agent-card[data-perspective="prosperity"]:hover {
  border-color: #f59e0b;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}


/* ============================================
   CONSULTATION PANEL - STACKING VERSION
   ============================================ */

.consultation-panel {
  flex: 1;
  min-height: 0;  /* Critical for flex */
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
}

.consultation-header-main {
  padding: 1.5rem 2rem;
  background: white;
  border-bottom: 2px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.consultation-header-main h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
  color: #1e293b;
}

.consultation-instructions {
  margin: 0;
  font-size: 0.95rem;
  color: #64748b;
}

.consultations-list {
  flex: 1;
  min-height: 0;  /* Critical for flex */
  padding: 1rem;
  overflow-y: scroll !important;  /* Force scroll */
  overflow-x: hidden;
}

/* Individual Consultation Card */
.consultation-card {
  background: white;
  border-radius: 16px;
  border: 3px solid #e2e8f0;
  overflow: hidden;
  animation: slideInFromLeft 0.4s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 1rem;  /* Add gap between cards */
  flex-shrink: 0;  /* Prevent cards from shrinking */
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-20px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Card Header */
.consultation-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-bottom: 2px solid #e2e8f0;
}

.consultation-card-avatar {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  border: 3px solid #3b82f6;
  flex-shrink: 0;
}

.consultation-card-info {
  flex: 1;
  min-width: 0; /* Allow text truncation */
}

.consultation-card-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 0.25rem;
}

.consultation-card-title {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.consultation-card-expertise {
  font-size: 0.85rem;
  color: #475569;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  display: inline-block;
}

/* Card Body */
.consultation-card-body {
  padding: 1.5rem;
}

/* Loading State in Card */
.consultation-card-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: #64748b;
}

.consultation-card-loading .loading-spinner-large {
  font-size: 2.5rem;
  animation: spin 1.5s linear infinite;
  margin-bottom: 1rem;
}

.consultation-card-loading .loading-text {
  font-size: 1rem;
}

/* Agent Message in Card */
.consultation-card-message {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #1e293b;
  margin-bottom: 1rem;
}

/* Recommendation in Card */
.consultation-card-recommendation {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 3px solid #f59e0b;
  border-radius: 12px;
  padding: 1rem;
}

.recommendation-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 0.75rem;
}

.recommendation-choice {
  font-size: 0.95rem;
  color: #78350f;
  background: white;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.choice-letter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f59e0b;
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.recommendation-rationale {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #78350f;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(245, 158, 11, 0.3);
}

.recommendation-rationale strong {
  color: #92400e;
}

/* Compact Summary Above Actions */
.consultation-summary-compact {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-top: 3px solid #f59e0b;
  border-bottom: 3px solid #f59e0b;
  padding: 0.75rem 1.5rem;
  flex-shrink: 0;
  margin-bottom: 0;
}

.summary-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #92400e;
  flex-wrap: wrap;
}

.summary-icon {
  font-size: 1.2rem;
}

.summary-divider {
  color: #d97706;
}

.summary-consensus {
  font-weight: 700;
}

.reset-button {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  padding: 0.5rem 1rem;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.reset-button:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.reset-button:active {
  transform: translateY(0);
}

/* ============================================
   THREE-COLUMN DASHBOARD LAYOUT
   ============================================ */

.dashboard-horizontal-triple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.dashboard-col {
  min-width: 0; /* Prevents overflow */
}

.section-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.section-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #059669;
  margin: 0 0 1rem 0;
  text-align: center;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e5e7eb;
}

/* Timeline Column Styles */
.timeline-date {
  font-size: 1.3rem;
  font-weight: 700;
  color: #10b981;
  text-align: center;
  margin-bottom: 1rem;
}

.timeline-bar-container {
  position: relative;
  height: 50px;
  margin: 1rem 0;
}

.time-remaining-compact {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.time-remaining-compact .time-unit {
  text-align: center;
}

.time-remaining-compact .time-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #10b981;
  line-height: 1;
}

.time-remaining-compact .time-label {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

/* Meters Column - Vertical Stack */
.meters-vertical {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}

.meter-container-vertical {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.meter-label-vertical {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #2d2d2d;
}

.meter-label-vertical .icon {
  font-size: 1.3rem;
}

.meter-bar {
  height: 28px;
  background: #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.meter-fill {
  height: 100%;
  transition: width 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 0.85rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.meter-fill.planet {
  background: linear-gradient(90deg, #10b981, #059669);
}

.meter-fill.equity {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.meter-fill.prosperity {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.meter-fill.critical {
  background: linear-gradient(90deg, #ef4444, #dc2626) !important;
  animation: pulse 1.5s ease-in-out infinite;
}

/* Urgency Column Styles */
.section-card .urgency-indicator {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 1rem;
  margin: 0;
}

.section-card .urgency-level {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.section-card .urgency-icon {
  font-size: 2.5rem;
}

.section-card .urgency-text {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .dashboard-horizontal-triple {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  
  /* Urgency status spans both columns on tablets */
  .dashboard-col:last-child {
    grid-column: 1 / -1;
  }
  
  /* Make urgency horizontal again when full width */
  .dashboard-col:last-child .urgency-level {
    flex-direction: row;
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  .dashboard-horizontal-triple {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0 1rem;
  }
  
  .dashboard-col:last-child {
    grid-column: 1;
  }
  
  .section-card {
    padding: 1.25rem;
  }
  
  .section-card h3 {
    font-size: 1rem;
  }
  
  .time-remaining-compact .time-value {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .dashboard-horizontal-triple {
    margin: 1rem auto;
  }
  
  .timeline-date {
    font-size: 1.1rem;
  }
  
  .time-remaining-compact {
    gap: 1rem;
  }
  
  .time-remaining-compact .time-value {
    font-size: 1.5rem;
  }
  
  .meter-label-vertical {
    font-size: 0.85rem;
  }
  
  .meter-bar {
    height: 24px;
  }
  
  .meter-fill {
    font-size: 0.75rem;
  }
}

/* ============================================
   FLOATING RESET BUTTON
   ============================================ */


.floating-reset-btn {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-reset-btn:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

.floating-reset-btn:active {
  transform: scale(0.95) rotate(90deg);
}

/* Optional: Add tooltip on hover */
.floating-reset-btn::before {
  content: 'Reset Game';
  position: absolute;
  right: 60px;
  background: #1e293b;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.floating-reset-btn:hover::before {
  opacity: 1;
}

/* ============================================
   ENHANCED STATUS COLUMN
   ============================================ */

/* Make status card flexible to fit all content */
.dashboard-col:last-child .section-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Adjust urgency indicator for better fit */
.section-card .urgency-indicator {
  flex: 0 0 auto;
  padding: 0.75rem;
  margin: 0;
}

.section-card .urgency-level {
  flex-direction: row;
  gap: 0.5rem;
}

.section-card .urgency-icon {
  font-size: 1.8rem;
}

.section-card .urgency-text {
  font-size: 0.85rem;
}

/* Crisis Warning Container */
.crisis-warning-container {
  display: none; /* Hidden by default */
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 0.75rem;
  animation: warningPulse 2s ease-in-out infinite;
}

.crisis-warning-container.active {
  display: block;
}

@keyframes warningPulse {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); 
  }
  50% { 
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); 
  }
}

.crisis-warning-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.warning-icon {
  font-size: 1.5rem;
  animation: shake 0.5s ease-in-out infinite;
}

@keyframes shake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(-3px) rotate(-3deg); }
  75% { transform: translateX(3px) rotate(3deg); }
}

.warning-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.warning-message {
  font-size: 0.85rem;
  color: #78350f;
  line-height: 1.4;
  margin: 0 0 0.75rem 0;
}

/* Warning Countdown Display */
.warning-countdown {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(146, 64, 14, 0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.countdown-icon {
  font-size: 1.2rem;
}

.countdown-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: #92400e;
  flex: 1;
}

/* Severe Crisis Warning */
.crisis-warning-container.severe {
  background: linear-gradient(135deg, #fecaca, #fca5a5);
  border-color: #ef4444;
  animation: severeWarningPulse 1s ease-in-out infinite;
}

@keyframes severeWarningPulse {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    transform: scale(1.02);
  }
}

.crisis-warning-container.severe .warning-title {
  color: #991b1b;
}

.crisis-warning-container.severe .warning-message {
  color: #7f1d1d;
  font-weight: 600;
}

.crisis-warning-container.severe .countdown-text {
  color: #991b1b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: urgentFlash 1.5s ease-in-out infinite;
}

@keyframes urgentFlash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Moderate Warning */
.crisis-warning-container.moderate {
  background: linear-gradient(135deg, #fed7aa, #fdba74);
  border-color: #f97316;
}

.crisis-warning-container.moderate .warning-title {
  color: #9a3412;
}

.crisis-warning-container.moderate .warning-message {
  color: #7c2d12;
}

/* Risk Indicators */
.risk-indicators {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.risk-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.risk-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.risk-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  flex: 1;
}

.risk-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.risk-status.stable {
  background: #d1fae5;
  color: #065f46;
}

.risk-status.warning {
  background: #fef3c7;
  color: #92400e;
  animation: pulse-gentle 2s ease-in-out infinite;
}

.risk-status.danger {
  background: #fecaca;
  color: #991b1b;
  animation: pulse-warning 1.5s ease-in-out infinite;
}

.risk-status.critical {
  background: #ef4444;
  color: white;
  animation: pulse-danger 1s ease-in-out infinite;
}

/* Highlight risk items when they become dangerous */
.risk-item.at-risk {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.risk-item.critical {
  border-color: #ef4444;
  background: linear-gradient(135deg, #fecaca, #fca5a5);
}


/* ============================================
   FLOATING TEAM CONSULTATION BUTTON
   ============================================ */

.floating-team-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5);
  transition: all 0.3s ease;
  z-index: 999;
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  animation: float 3s ease-in-out infinite;
}

.floating-team-btn.active {
  display: flex;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.floating-team-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 30px rgba(59, 130, 246, 0.7);
  animation: none;
}

.floating-team-btn:active {
  transform: scale(0.95);
}

.floating-team-btn::before {
  content: 'Consult Your Team';
  position: absolute;
  right: 75px;
  background: #1e293b;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.floating-team-btn:hover::before {
  opacity: 1;
}

.team-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #10b981;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ============================================ */
/* REORGANIZED LAYOUT - OPTIONS + TEAM IN RIGHT */
/* ============================================ */

/* Mission Card Layout */
.mission-card {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  grid-template-rows: auto auto;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.mission-info-column {
  grid-column: 1;
  grid-row: 1;
}

.mission-choices-column {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mission-feedback-section {
  grid-column: 1 / -1;
  grid-row: 2;
}

/* ============================================ */
/* LEFT COLUMN (No changes from before) */
/* ============================================ */

/* SDG Header */
.sdg-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.sdg-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sdg-icon {
  font-size: 3rem;
  line-height: 1;
  flex-shrink: 0;
}

.sdg-title-block {
  flex: 1;
}

.sdg-title-block h2 {
  margin: 0 0 0.25rem 0;
  font-size: 1.5rem;
  color: #1f2937;
  line-height: 1.3;
}

.sdg-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  font-weight: 600;
}

@media (max-width: 768px) {
  .sdg-image {
    width: 60px;
    height: 60px;
  }
}

/* Mission Challenge */
.mission-challenge {
  margin-bottom: 1.5rem;
}

.challenge-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #059669;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mission-riddle {
  font-size: 1rem;
  line-height: 1.6;
  color: #374151;
  margin: 0;
}

/* Context Box */
.mission-context {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left: 4px solid #f59e0b;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
}

.context-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #92400e;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.context-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #78350f;
  margin: 0;
}

/* ============================================ */
/* SDG TARGETS SECTIONS */
/* ============================================ */

/* Official Target */
.official-target {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-left: 4px solid #3b82f6;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.target-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #1e40af;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.target-text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #1e3a8a;
  margin: 0;
  font-weight: 500;
}

/* Key Targets */
.key-targets {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-left: 4px solid #059669;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.targets-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #065f46;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.targets-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.targets-list li {
  font-size: 0.8rem;
  line-height: 1.4;
  color: #064e3b;
  padding-left: 1.25rem;
  position: relative;
  font-weight: 500;
}

.targets-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Mobile responsive for targets */
@media (max-width: 768px) {
  .official-target,
  .key-targets {
    padding: 0.875rem;
  }
  
  .target-text {
    font-size: 0.8rem;
  }
  
  .targets-list li {
    font-size: 0.75rem;
  }
}

/* ============================================ */
/* RIGHT COLUMN - CHOICES + TEAM */
/* ============================================ */

/* Header */
.choices-header {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-left: 4px solid #3b82f6;
  padding: 1rem 1.25rem;
  border-radius: 8px;
}

.choices-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e40af;
}

/* Choice Options - SINGLE ROW */
.choice-options-single-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

/* Compact Choice Cards for Single Row */
.choice-btn {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.875rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  min-height: auto;
}

.choice-btn:hover {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.choice-btn.selected {
  border-color: #2563eb;
  border-width: 3px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.choice-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Choice Letter - Smaller for single row */
.choice-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}

/* Choice Text - More compact */
.choice-text {
  font-size: 0.825rem;
  line-height: 1.3;
  color: #334155;
  font-weight: 500;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Impact Direction Indicators - More compact */
.choice-impacts {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  padding-top: 0.5rem;
  border-top: 1px solid #e2e8f0;
}

.impact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}

.impact-icon {
  font-size: 0.875rem;
  margin-right: 0.125rem;
}

.impact-meter-label {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #64748b;
  font-size: 0.7rem;
}

.impact-direction {
  font-weight: 700;
  font-size: 1rem;
  min-width: 35px;
  text-align: right;
  font-family: system-ui;
}

/* Direction colors */
.impact-direction.strong-positive {
  color: #059669;
}

.impact-direction.positive {
  color: #10b981;
}

.impact-direction.neutral {
  color: #6b7280;
}

.impact-direction.negative {
  color: #f59e0b;
}

.impact-direction.strong-negative {
  color: #dc2626;
}

/* Duration Badge - Smaller */
.choice-duration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  color: #64748b;
  padding: 0.25rem 0.5rem;
  background: #f1f5f9;
  border-radius: 10px;
  font-weight: 600;
}

/* Guidance Section */
.choices-guidance {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left: 4px solid #f59e0b;
  padding: 0.875rem 1rem;
  border-radius: 8px;
}

.guidance-text {
  font-size: 0.8rem;
  color: #78350f;
  line-height: 1.5;
  margin: 0;
}

.guidance-text strong {
  color: #92400e;
  font-weight: 700;
}

/* Team Section - Moved to Right Column */
.team-section {
  background: #f0f9ff;  /* Very light blue instead of gradient */
  border: 2px solid #3b82f6;
  border-radius: 12px;
  padding: 1rem;
  margin-top: 0.5rem;
}

.team-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #bfdbfe;
}

.team-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.team-icon {
  font-size: 1.25rem;
}

.team-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #1e40af;
}

.team-hint {
  font-size: 0.75rem;
  color: #3b82f6;
  font-weight: 600;
  animation: pulse-subtle 2s ease-in-out infinite;
}

@keyframes pulse-subtle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Agent Grid */
.coordination-agents .agent-grid {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

/* Agent Cards */
.agent {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0.5rem;
  background: white;  /* Keep white, not dark blue */
  border: 2px solid #3b82f6;
  border-radius: 12px;
  color: #1e40af;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
}

.agent:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  border-color: #2563eb;
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.agent:active {
  transform: translateY(0);
}

.agent-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  display: block;
}

.agent-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 0.125rem;
}

.agent-perspective {
  font-size: 0.65rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Perspective color coding */
.agent[data-perspective="planet"] {
  border-color: #059669;
}

.agent[data-perspective="planet"]:hover {
  border-color: #047857;
  background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
}

.agent[data-perspective="planet"] .agent-perspective {
  color: #059669;
}

.agent[data-perspective="equity"] {
  border-color: #dc2626;
}

.agent[data-perspective="equity"]:hover {
  border-color: #b91c1c;
  background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.agent[data-perspective="equity"] .agent-perspective {
  color: #dc2626;
}

.agent[data-perspective="prosperity"] {
  border-color: #2563eb;
}

.agent[data-perspective="prosperity"]:hover {
  border-color: #1d4ed8;
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.agent[data-perspective="prosperity"] .agent-perspective {
  color: #2563eb;
}

/* ============================================ */
/* RESPONSIVE - TABLET & MOBILE */
/* ============================================ */

@media (max-width: 1024px) {
  .mission-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .mission-info-column {
    grid-column: 1;
    grid-row: 1;
  }
  
  .mission-choices-column {
    grid-column: 1;
    grid-row: 2;
  }
  
  .mission-feedback-section {
    grid-column: 1;
    grid-row: 3;
  }
}

@media (max-width: 768px) {
  .choice-options-single-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .agent-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-hint {
    display: none;
  }
}

@media (max-width: 480px) {
  .choice-options-single-row {
    grid-template-columns: 1fr;
  }
  
  .choice-btn {
    flex-direction: row;
    text-align: left;
    padding: 0.75rem;
    gap: 0.75rem;
  }
  
  .choice-letter {
    width: 2rem;
    height: 2rem;
    font-size: 1.1rem;
  }
  
  .choice-text {
    -webkit-line-clamp: 2;
  }
  
  .choice-impacts {
    flex-direction: row;
    flex-wrap: wrap;
    border-top: none;
    padding-top: 0;
  }
  
  .agent-grid {
    grid-template-columns: 1fr;
  }
}

.un-logo-small {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-right: 0.25rem;
}


/* Consistent font sizing for all info boxes */
.context-text,
.target-text,
.mission-riddle {
  font-family: inherit; /* Use same font family */
  line-height: 1.6;
  color: inherit; /* Keeps the specific colors from parent */
  margin: 0;
}

/* Mission challenge - slightly larger */
.mission-riddle {
  font-size: 1rem; /* Slightly larger */
  font-weight: 500;
}

/* Other text boxes - standard size */
.context-text,
.target-text {
  font-size: 0.875rem; /* Standard size */
  font-weight: 400;
}

/* Labels - all consistent */
.context-label,
.target-label,
.challenge-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
