/**
 * EODR (End of Day Report) Styles
 * Styling for report preview modal, settings panel, and formatted reports
 *
 * @version 1.0.0
 */

/* ========================================
   MODAL STYLES
   ======================================== */

.eodr-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
}

.eodr-modal.eodr-modal-visible {
  display: flex;
  align-items: center;
  justify-content: center;
}

.eodr-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: eodr-fade-in 0.2s ease-out;
}

.eodr-modal-container {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  animation: eodr-slide-up 0.3s ease-out;
}

/* Modal Header */
.eodr-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.eodr-modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #111827;
}

.eodr-modal-close {
  background: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}

.eodr-modal-close:hover {
  background: #f3f4f6;
  color: #374151;
}

/* Modal Body */
.eodr-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* Modal Footer */
.eodr-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* ========================================
   BUTTON STYLES
   ======================================== */

.eodr-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eodr-btn-primary {
  background: #3b82f6;
  color: #ffffff;
}

.eodr-btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.eodr-btn-primary:active {
  transform: translateY(0);
}

.eodr-btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

.eodr-btn-secondary:hover {
  background: #e5e7eb;
}

.eodr-btn-icon {
  font-size: 16px;
}

/* ========================================
   REPORT CONTENT STYLES
   ======================================== */

.eodr-report {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1f2937;
  line-height: 1.6;
}

/* ========================================
   EMAIL-STYLE REPORT (GitLab inspired)
   ======================================== */

.eodr-report--email {
  max-width: 600px;
  margin: 0 auto;
  background: #f9fafb;
  padding: 40px 20px;
}

/* Email Header */
.eodr-email-header {
  text-align: center;
  margin-bottom: 32px;
}

.eodr-logo {
  font-size: 48px;
  margin-bottom: 16px;
}

.eodr-email-title {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.025em;
}

.eodr-email-subtitle {
  margin: 0;
  font-size: 15px;
  color: #6b7280;
}

/* Email Stats */
.eodr-email-stats {
  text-align: center;
  margin-bottom: 32px;
  padding: 16px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  color: #6b7280;
}

.eodr-stat-inline strong {
  color: #111827;
  font-weight: 600;
}

.eodr-stat-separator {
  margin: 0 12px;
  color: #d1d5db;
}

/* Card Style */
.eodr-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 20px;
}

.eodr-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.eodr-card-icon--alert {
  background: #fee2e2;
}

.eodr-card-icon--warning {
  background: #fef3c7;
}

.eodr-card-icon--success {
  background: #d1fae5;
}

.eodr-card-content {
  flex: 1;
}

.eodr-card-title {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.eodr-card-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
}

.eodr-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.eodr-card-list-item {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}

.eodr-card-list-item:last-child {
  border-bottom: none;
}

.eodr-card-list-item--alert {
  color: #991b1b;
}

.eodr-list-bullet {
  color: #9ca3af;
  flex-shrink: 0;
}

/* Special card variants */
.eodr-card--summary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
}

.eodr-card--summary .eodr-card-icon {
  background: rgba(255, 255, 255, 0.2);
}

.eodr-card--summary .eodr-card-title,
.eodr-card--summary .eodr-card-text {
  color: #ffffff;
}

.eodr-card--alert {
  border-left: 4px solid #ef4444;
}

.eodr-card--warning {
  border-left: 4px solid #f59e0b;
}

.eodr-card--success {
  border-left: 4px solid #10b981;
}

/* Email Footer */
.eodr-email-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.eodr-footer-text {
  margin: 0;
  font-size: 13px;
  color: #9ca3af;
}

/* ========================================
   SUBTLE STATUS INDICATOR
   ======================================== */

.eodr-header-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.eodr-status-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 16px;
  flex-shrink: 0;
}

.eodr-status-indicator--on-track {
  background: #d1fae5;
}

.eodr-status-indicator--at-risk {
  background: #f5f5f4;
}

.eodr-status-indicator--blocked {
  background: #fee2e2;
}

/* Header */
.eodr-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 24px;
}

.eodr-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  color: #111827;
}

.eodr-date {
  margin: 0 0 8px;
  font-size: 16px;
  color: #6b7280;
}

.eodr-from {
  margin: 0;
  font-size: 14px;
  color: #9ca3af;
}

.eodr-from strong {
  color: #374151;
  font-weight: 600;
}

/* Email Stats */
.eodr-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.eodr-stat {
  text-align: center;
}

.eodr-stat-value {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 4px;
}

.eodr-stat-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sections */
.eodr-section {
  margin-bottom: 28px;
}

.eodr-section-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eodr-section-icon {
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Summary Section */
.eodr-summary-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  padding: 16px;
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  border-radius: 4px;
}

/* Lists */
.eodr-list {
  margin: 0;
  padding-left: 0;
  list-style-type: none;
}

.eodr-list li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 28px;
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
}

/* Icon styling */
.eodr-icon {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* Decision-specific styling */
.eodr-list--decisions .decision-approval .eodr-icon {
  color: #059669;
}

.eodr-list--decisions .decision-rejection .eodr-icon {
  color: #dc2626;
}

.eodr-list--decisions .decision-commitment .eodr-icon {
  color: #3b82f6;
}

.eodr-list--decisions .decision-approval {
  border-left: 3px solid #059669;
  padding-left: 25px;
  margin-left: 3px;
}

.eodr-list--decisions .decision-rejection {
  border-left: 3px solid #dc2626;
  padding-left: 25px;
  margin-left: 3px;
}

/* Blocker-specific styling */
.eodr-list--blockers .blocker-urgent {
  background: #fef2f2;
  border-left: 3px solid #dc2626;
  padding: 8px 8px 8px 25px;
  margin-left: 3px;
  border-radius: 4px;
}

.eodr-list--blockers .blocker-urgent .eodr-icon {
  color: #dc2626;
}

/* Priority-specific styling */
.eodr-list--priorities .priority-complete {
  opacity: 0.7;
  text-decoration: line-through;
}

.eodr-list--priorities .priority-complete .eodr-icon {
  color: #059669;
}

.eodr-list--priorities .priority-active .eodr-icon {
  color: #f59e0b;
}

.eodr-list--priorities .priority-blocked {
  background: #fef3c7;
  padding: 8px 8px 8px 25px;
  margin-left: 3px;
  border-radius: 4px;
}

.eodr-list--priorities .priority-blocked .eodr-icon {
  color: #64748b;
}

/* Follow-up-specific styling */
.eodr-list--followups .followup-urgent {
  background: #fef2f2;
  border-left: 3px solid #dc2626;
  padding: 8px 8px 8px 25px;
  margin-left: 3px;
  border-radius: 4px;
  font-weight: 500;
}

.eodr-list--followups .followup-urgent .eodr-icon {
  color: #dc2626;
}

.eodr-list--followups .followup-soon {
  background: #fef3c7;
  padding: 8px 8px 8px 25px;
  margin-left: 3px;
  border-radius: 4px;
}

.eodr-list--followups .followup-soon .eodr-icon {
  color: #f59e0b;
}

/* Empty State */
.eodr-empty {
  margin: 0;
  padding: 12px 16px;
  font-size: 14px;
  color: #9ca3af;
  font-style: italic;
  background: #f9fafb;
  border-radius: 6px;
}

.eodr-empty--positive {
  color: #059669;
  background: #ecfdf5;
  font-style: normal;
}

/* Manager Cues */
.eodr-cues {
  padding: 20px;
  background: #fef3c7;
  border-radius: 8px;
  border: 1px solid #fde047;
}

.eodr-cue-group {
  margin-bottom: 16px;
}

.eodr-cue-group:last-child {
  margin-bottom: 0;
}

.eodr-cue-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.eodr-cue-positive .eodr-cue-title {
  color: #059669;
}

.eodr-cue-concern .eodr-cue-title {
  color: #64748b;
}

.eodr-cue-risk .eodr-cue-title {
  color: #dc2626;
}

/* Footer */
.eodr-footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
}

.eodr-generated,
.eodr-confidence {
  margin: 4px 0;
}

/* ========================================
   LOADING & ERROR STATES
   ======================================== */

.eodr-loading {
  text-align: center;
  padding: 60px 20px;
}

.eodr-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: eodr-spin 0.8s linear infinite;
}

.eodr-loading p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.eodr-error {
  text-align: center;
  padding: 40px 20px;
}

.eodr-error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.eodr-error h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: #dc2626;
}

.eodr-error p {
  margin: 0 0 20px;
  font-size: 14px;
  color: #6b7280;
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */

.eodr-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  background: #111827;
  color: #ffffff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 10001;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease-out;
}

.eodr-toast-show {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes eodr-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes eodr-slide-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes eodr-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .eodr-modal-container {
    width: 95%;
    max-height: 95vh;
  }

  .eodr-modal-header,
  .eodr-modal-body,
  .eodr-modal-footer {
    padding: 16px;
  }

  .eodr-title {
    font-size: 22px;
  }

  .eodr-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .eodr-modal-footer {
    flex-direction: column;
  }

  .eodr-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .eodr-modal-container {
    border-radius: 0;
    width: 100%;
    max-height: 100vh;
    height: 100vh;
  }

  .eodr-modal-title {
    font-size: 16px;
  }

  .eodr-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  .eodr-modal-backdrop,
  .eodr-modal-header,
  .eodr-modal-footer {
    display: none !important;
  }

  .eodr-modal-container {
    box-shadow: none;
    border: none;
    max-height: none;
  }

  .eodr-modal-body {
    padding: 0;
  }

  .eodr-report {
    page-break-inside: avoid;
  }

  .eodr-section {
    page-break-inside: avoid;
  }
}

/* ========================================
   EXECUTIVE MODE STYLES
   ======================================== */

/* Executive Report Container */
.eodr-report--executive {
  max-width: 100%;
  font-size: 15px;
}

/* Executive Header */
.eodr-report--executive .eodr-header {
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.eodr-report--executive .eodr-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.eodr-report--executive .eodr-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 4px 0;
}

.eodr-report--executive .eodr-from {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
  text-align: left;
}

.eodr-report--executive .eodr-date {
  margin: 0;
  font-size: 13px;
  color: #9ca3af;
  text-align: left;
}

/* Status Badge */
.eodr-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 24px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.eodr-status-badge.status-on-track {
  background: #d1fae5;
  color: #047857;
}

.eodr-status-badge.status-at-risk {
  background: #f5f5f4;
  color: #1e3a8a;
}

.eodr-status-badge.status-blocked {
  background: #fee2e2;
  color: #dc2626;
}

.eodr-status-icon {
  font-size: 14px;
}

/* Compact Stats */
.eodr-stats--compact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 0;
  background: transparent;
  font-size: 13px;
  color: #6b7280;
}

.eodr-stat-inline {
  font-weight: 500;
}

.eodr-stat-divider {
  color: #d1d5db;
}

/* Executive Summary */
.eodr-section--summary {
  margin-bottom: 28px;
}

.eodr-executive-summary {
  font-size: 16px;
  line-height: 1.7;
  color: #111827;
  font-weight: 400;
  margin: 0;
  padding: 20px;
  background: #f9fafb;
  border-left: 4px solid #3b82f6;
  border-radius: 6px;
}

/* Highlights Section */
.eodr-section--highlights {
  margin-bottom: 28px;
}

.eodr-section--highlights .eodr-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 16px 0;
  letter-spacing: -0.015em;
}

.eodr-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eodr-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s;
}

.eodr-highlight-item:hover {
  border-color: #10b981;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
}

.eodr-highlight-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d1fae5;
  border-radius: 50%;
  color: #047857;
  font-size: 12px;
  font-weight: 700;
}

.eodr-highlight-text {
  flex: 1;
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
}

/* Needs Attention Section */
.eodr-section--attention {
  margin-bottom: 28px;
}

.eodr-section-title--warning {
  font-size: 16px;
  font-weight: 600;
  color: #dc2626;
  margin: 0 0 16px 0;
  letter-spacing: -0.015em;
}

.eodr-attention-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eodr-attention-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  border-radius: 8px;
}

.eodr-attention-icon {
  flex-shrink: 0;
  font-size: 18px;
}

.eodr-attention-text {
  flex: 1;
  font-size: 14px;
  color: #7f1d1d;
  line-height: 1.5;
  font-weight: 500;
}

/* All Clear Section */
.eodr-section--clear {
  margin-bottom: 28px;
}

.eodr-all-clear {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
}

.eodr-all-clear-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d1fae5;
  border-radius: 50%;
  color: #047857;
  font-size: 14px;
  font-weight: 700;
}

.eodr-all-clear-text {
  flex: 1;
  font-size: 14px;
  color: #166534;
  font-weight: 500;
}

/* ========================================
   MODERN TEMPLATE STYLES (eodr-v10)
   Inspired by executive briefing design
   ======================================== */

/* Import Google Fonts for modern design */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* Modern Report Root Variables */
.eodr-modern-report {
  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --ink: #1c1917;
  --ink-secondary: #44403c;
  --ink-muted: #78716c;
  --ink-faint: #a8a29e;
  --surface: #fafaf9;
  --surface-raised: #ffffff;
  --surface-inset: #f5f5f4;
  --surface-hover: #f5f5f4;
  --border: #e7e5e4;
  --border-subtle: #f0efed;
  --hold: #475569;
  --hold-surface: #f1f5f9;
  --hold-border: #f5f5f4;
  --hold-accent: #64748b;
  --decision: #4338ca;
  --decision-surface: #eef2ff;
  --decision-border: #c7d2fe;
  --decision-accent: #6366f1;
  --decision-hover: #e0e7ff;
  --win: #047857;
  --win-surface: #ecfdf5;
  --win-border: #a7f3d0;
  --risk: #be123c;
  --risk-surface: #fff1f2;
  --risk-border: #fecdd3;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 2px rgba(28,25,23,0.04), 0 4px 16px rgba(28,25,23,0.03);
}

/* Modern Report Container */
.eodr-modern-report {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface-raised);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

/* Header */
.eodr-modern-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.eodr-modern-header-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
  color: #ffffff;
}

.eodr-modern-header-role {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2px;
}

.eodr-modern-header-right {
  text-align: right;
}

.eodr-modern-header-date {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  display: block;
}

.eodr-modern-header-time {
  font-size: 12px;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.85);
}

/* Anchor Section (Today's Bottom Line) */
.eodr-modern-anchor {
  padding: var(--space-lg) var(--space-xl);
  background: linear-gradient(135deg, var(--surface-inset), var(--surface-raised));
  border-bottom: 1px solid var(--border);
}

.eodr-modern-anchor-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ink-muted);
  margin-bottom: var(--space-sm);
}

.eodr-modern-anchor-headline {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  margin: 0 0 var(--space-md) 0;
  color: var(--ink);
}

.eodr-modern-anchor-headline strong {
  font-weight: 600;
}

/* Highlighted elements in bottom line */
.eodr-bottomline-financial {
  font-weight: 700;
  color: #059669; /* Green for financial amounts */
  font-family: var(--font-display);
}

.eodr-bottomline-timing {
  font-weight: 600;
  color: #dc2626; /* Red for urgency/timing */
  font-family: var(--font-display);
}

.eodr-bottomline-action {
  font-weight: 600;
  color: #ea580c; /* Orange for actions */
  font-style: italic;
}

.eodr-bottomline-status {
  font-weight: 600;
  color: #2563eb; /* Blue for status */
}

.eodr-modern-anchor-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.eodr-modern-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.eodr-modern-stat-value {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.eodr-modern-stat-positive {
  color: var(--win);
}

.eodr-modern-stat-pending {
  color: var(--hold-accent);
}

.eodr-modern-stat-hold {
  color: var(--hold);
}

.eodr-modern-stat-decision {
  color: var(--decision);
}

.eodr-modern-stat-alert {
  color: var(--risk);
}

.eodr-modern-stat-label {
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 500;
}

/* Section Labels */
.eodr-modern-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: var(--space-md);
}

.eodr-modern-hold-label {
  color: var(--hold);
}

.eodr-modern-decision-label {
  color: var(--decision);
}

/* Hold Section (Blockers) */
.eodr-modern-hold-section {
  padding: 20px var(--space-xl);
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
}

.eodr-modern-hold-card {
  background: white;
  border: 1px solid #fde68a;
  border-left: 3px solid #f59e0b;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  cursor: pointer;
  transition: box-shadow 0.15s ease;
}

.eodr-modern-hold-card:last-child {
  margin-bottom: 0;
}

.eodr-modern-hold-card:hover {
  box-shadow: 0 2px 8px rgba(71,85,105,0.12);
}

.eodr-modern-hold-summary {
  padding: var(--space-md) 18px;
}

.eodr-modern-hold-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: var(--space-xs);
  color: var(--ink);
}

.eodr-modern-hold-context {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}

.eodr-modern-hold-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.eodr-modern-hold-owner {
  font-size: 12px;
  color: var(--ink-muted);
}

.eodr-modern-hold-owner strong {
  color: #92400e;
  font-weight: 600;
}

.eodr-modern-hold-escalation {
  font-size: 11px;
  font-weight: 600;
  color: #92400e;
  background: rgba(146,64,14,0.08);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

.eodr-modern-hold-details {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.25s ease-out, opacity 0.15s ease;
}

.eodr-modern-hold-card[aria-expanded="true"] .eodr-modern-hold-details {
  max-height: 500px;
  opacity: 1;
  border-top: 1px solid var(--border);
  padding: var(--space-md) 18px;
}

.eodr-modern-detail-block {
  margin-bottom: var(--space-md);
}

.eodr-modern-detail-block:last-child {
  margin-bottom: 0;
}

.eodr-modern-detail-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--ink-muted);
  margin-bottom: var(--space-xs);
}

.eodr-modern-detail-text {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.55;
}

/* Decisions Section */
.eodr-modern-decisions-section {
  padding: 0 var(--space-xl) 20px var(--space-xl);
  border-bottom: 1px solid var(--decision-border);
}

/* Priorities Section */
.eodr-modern-priorities-section {
  padding: 0 var(--space-xl) 20px var(--space-xl);
  /* background: var(--decision-surface); */
  border-bottom: 1px solid var(--decision-border);
}

/* Waiting Section */
.eodr-modern-waiting-section {
  padding: 0 var(--space-xl) 20px var(--space-xl);
  /* background: var(--decision-surface); */
  border-bottom: 1px solid var(--decision-border);
}

/* Wins Section */
.eodr-modern-wins-section {
  padding: 0 var(--space-xl) 20px var(--space-xl);
  display: block;
  width: 100%;
  /* background: var(--win-surface); */
  /* border-bottom: 1px solid var(--win-border); */
}

/* Noted Section */
.eodr-modern-noted-section {
  padding: 0 var(--space-xl) 20px var(--space-xl);
}

.eodr-modern-decision-card {
  background: var(--surface-raised);
  border: 1px solid var(--decision-border);
  border-left: 3px solid var(--decision-accent);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.eodr-modern-decision-card:last-child {
  margin-bottom: 0;
}

.eodr-modern-decision-collapsed {
  padding: 18px 20px;
  cursor: pointer;
  background: var(--decision-surface);
  transition: background 0.15s ease;
}

/* Decision cards without expandable details */
.eodr-decision-no-details .eodr-modern-decision-collapsed {
  cursor: default;
}

/* .eodr-modern-decision-collapsed:hover {
  background: var(--decision-hover);
} */

.eodr-modern-decision-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  /* margin-bottom: var(--space-sm); */
  min-height: 28px;
}

.eodr-modern-decision-text {
  font-weight: 700;
  font-size: 15px;
  flex: 1;
  line-height: 1.5;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Read status badges */
.eodr-modern-read-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 3px 7px;
  border-radius: 3px;
  flex-shrink: 0;
  margin-left: 6px;
}

.eodr-modern-read-badge-read {
  background: var(--surface-inset);
  color: var(--ink-faint);
}

.eodr-modern-read-badge-unread {
  background: var(--risk-surface);
  color: var(--risk);
  border: 1px solid var(--risk-border);
}

/* Decision timing */
.eodr-modern-decision-timing {
  flex-shrink: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.eodr-modern-timing-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  margin-top: -5px;
}

.eodr-modern-timing-urgent {
  background: var(--risk-surface);
  color: var(--risk);
  border: 1px solid var(--risk-border);
}

.eodr-modern-timing-done {
  background: var(--win-surface);
  color: var(--win);
  border: 1px solid var(--win-border);
}

.eodr-modern-timing-countdown {
  font-size: 10px;
  color: #a8a29e;
}

/* Exposure/Impact Bar */
.eodr-modern-exposure-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-top: 12px;
  border-top: 1px dashed var(--decision-border);
}

.eodr-modern-exposure-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
}

.eodr-modern-exposure-positive {
  color: var(--win);
}

.eodr-modern-exposure-negative {
  color: var(--risk);
}

/* Specific upside/downside colors (match HTML example) */
.eodr-modern-exposure-up {
  color: var(--win);
}

.eodr-modern-exposure-down {
  color: var(--risk);
}

.eodr-modern-exposure-muted {
  color: var(--ink-muted);
}

.eodr-modern-exposure-icon {
  flex-shrink: 0;
}

/* Decision Expanded Details */
.eodr-modern-decision-expanded {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.25s ease-out, opacity 0.15s ease;
  background: var(--surface-raised);
}

.eodr-modern-decision-collapsed[aria-expanded="true"] + .eodr-modern-decision-expanded {
  max-height: 800px;
  opacity: 1;
  padding: 18px 20px;
  border-top: 1px solid var(--decision-border);
}

.eodr-modern-exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.eodr-modern-exp-block {
  padding: 12px 14px;
  background: var(--surface-inset);
  border-radius: var(--radius-sm);
}

.eodr-modern-exp-full {
  grid-column: 1 / -1;
}

.eodr-modern-exp-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--ink-muted);
  margin-bottom: 5px;
}

.eodr-modern-exp-content {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.eodr-modern-exp-content ul {
  margin: 0;
  padding-left: var(--space-md);
}

.eodr-modern-exp-content li {
  margin-bottom: 3px;
}

.eodr-modern-exp-footer {
  margin-top: var(--space-md);
  padding: 12px 14px;
  background: rgba(67, 56, 202, 0.05);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--decision);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 500;
}

.eodr-modern-exp-footer svg {
  flex-shrink: 0;
}

/* Collapsible Sections */
.eodr-modern-section {
  border-bottom: 1px solid var(--border);
}

.eodr-modern-section:last-of-type {
  border-bottom: none;
}

.eodr-modern-section-header {
  padding: var(--space-md) var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}

.eodr-modern-section-header:hover {
  background: var(--surface-hover);
}

.eodr-modern-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--ink-secondary);
}

.eodr-modern-section-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eodr-modern-section-preview {
  font-size: 13px;
  color: var(--ink-muted);
}

.eodr-modern-section-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--win);
}

.eodr-modern-section-count {
  font-size: 12px;
  color: var(--ink-faint);
  background: var(--surface-inset);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 600;
}

.eodr-modern-section-chevron {
  color: var(--ink-faint);
  transition: transform 0.15s ease-out;
}

.eodr-modern-section-header[aria-expanded="true"] .eodr-modern-section-chevron {
  transform: rotate(90deg);
}

.eodr-modern-section-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.25s ease-out, opacity 0.15s ease;
}

.eodr-modern-section-content.eodr-modern-section-show {
  max-height: 600px;
  opacity: 1;
}

/* Section Items */
.eodr-modern-item {
  padding: 11px 14px;
  background: #f5f5f4;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  border-left: 3px solid #d6d3d1;
}

.eodr-modern-item:last-child {
  margin-bottom: 0;
}

.eodr-modern-item-text {
  line-height: 1.45;
  color: var(--ink);
}

.eodr-modern-item-text strong {
  font-weight: 700;
}

.eodr-modern-item-win {
  border-left-color: #047857;
  background: #f5f5f4;
  border: none;
  border-left: 3px solid #047857;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  margin-bottom: var(--space-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.eodr-modern-item-win .eodr-modern-item-text {
  display: block;
  flex: 1;
}

.eodr-modern-item-waiting {
  border-left-color: #cbd5e1;
  background: #f5f5f4;
  width: 100%;
  box-sizing: border-box;
}

.eodr-modern-item-noted {
  border-left-color: #d6d3d1;
  background: #f5f5f4;
  border: none;
  border-left: 3px solid #d6d3d1;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  margin-bottom: var(--space-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.eodr-modern-item-noted .eodr-modern-item-text {
  display: block;
  flex: 1;
}

.eodr-modern-item-priority {
  border-left-color: var(--decision-accent);
  background: #f5f5f4;
  border: none;
  border-left: 3px solid var(--decision-accent);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  margin-bottom: var(--space-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.eodr-modern-item-priority .eodr-modern-item-text {
  display: block;
  flex: 1;
}

.eodr-modern-item-followup {
  border-left-color: var(--hold-accent);
}

.eodr-modern-item-hold {
  border-left-color: var(--hold-accent);
  display: block;
}

.eodr-modern-item-hold .eodr-modern-item-text {
  display: block;
}

.eodr-modern-hold-context {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 6px;
  line-height: 1.5;
}

.eodr-modern-hold-meta {
  font-size: 11px;
  color: var(--ink-subtle);
  margin-top: 8px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.eodr-modern-hold-owner {
  font-weight: 500;
}

.eodr-modern-hold-action {
  color: var(--hold-accent);
  font-weight: 500;
}

.eodr-modern-item-meta {
  font-size: 11px;
  color: var(--ink-muted);
  text-align: right;
  flex-shrink: 0;
  font-weight: 500;
}

.eodr-modern-item-meta-value {
  font-weight: 700;
  color: var(--win);
}

/* Footer */
.eodr-modern-footer {
  padding: 14px var(--space-xl);
  background: var(--surface-inset);
  border-top: 1px solid var(--border-subtle);
}

.eodr-modern-footer-meta {
  font-size: 11px;
  color: var(--ink-faint);
  font-weight: 500;
  margin: 0 0 0 var(--space-md);
  text-align: left;
}

/* Responsive Design */
@media (max-width: 640px) {
  .eodr-modern-header {
    flex-direction: column;
    gap: var(--space-xs);
  }
  
  .eodr-modern-header-right {
    text-align: left;
  }
  
  .eodr-modern-anchor-stats {
    flex-wrap: wrap;
  }
}

/* ========================================
   FULL PAGE DAILY REPORT VIEW
   ======================================== */

/* Ensure parent container supports absolute positioning */
.reading-pane__content {
  position: relative;
  overflow: hidden;
}

.daily-report-area {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  background: var(--ink-faint, #f8fafc);
  overflow: hidden;
  z-index: 10;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

/* Slide in from right when visible */
.daily-report-area:not([hidden]) {
  transform: translateX(0);
}

/* Hidden state - positioned off screen to the right */
.daily-report-area[hidden] {
  transform: translateX(100%);
  pointer-events: none;
}

.daily-report-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--surface-inset, #e2e8f0);
  flex-shrink: 0;
}

.daily-report-back {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--surface-inset, #e2e8f0);
  border-radius: 8px;
  color: var(--ink-secondary, #475569);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.daily-report-back:hover {
  background: var(--surface-hover, #f1f5f9);
  border-color: var(--ink-muted, #94a3b8);
}

.daily-report-title {
  flex: 1;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink, #0f172a);
}

.daily-report-actions {
  display: flex;
  gap: 8px;
}

.daily-report-refresh,
.daily-report-copy,
.daily-report-send {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--surface-inset, #e2e8f0);
  border-radius: 8px;
  color: var(--ink-secondary, #475569);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.daily-report-refresh:hover,
.daily-report-copy:hover {
  background: var(--surface-hover, #f1f5f9);
  border-color: var(--ink-muted, #94a3b8);
}

.daily-report-send {
  background: var(--decision, #4338ca);
  border-color: var(--decision, #4338ca);
  color: #ffffff;
}

.daily-report-send:hover {
  background: #3730a3;
  border-color: #3730a3;
}

.daily-report-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* Loading state for daily report */
.daily-report-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
}

.daily-report-loading .eodr-spinner {
  width: 48px;
  height: 48px;
}

.daily-report-loading p {
  font-size: 16px;
  color: var(--ink-secondary, #475569);
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .daily-report-header {
    flex-wrap: wrap;
    padding: 12px 16px;
  }
  
  .daily-report-title {
    width: 100%;
    order: -1;
    margin-bottom: 8px;
  }
  
  .daily-report-actions {
    flex: 1;
    justify-content: flex-end;
  }
  
  .daily-report-refresh,
  .daily-report-copy,
  .daily-report-send {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .daily-report-content {
    padding: 16px;
  }
}

/* ========================================
   PILOT AI VOICE ENGINE
   ======================================== */

.pilot-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--decision, #4338ca);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15), 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.pilot-toggle:hover {
  transform: scale(1.08);
}

body.pilot-open .pilot-toggle {
  display: none;
}

.pilot-toggle .ready-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--win, #047857);
  border: 2px solid var(--surface-raised, #ffffff);
  display: none;
}

.pilot-toggle.preloaded .ready-dot {
  display: block;
  animation: readyPulse 2s ease-in-out infinite;
}

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

.pilot-panel {
  position: fixed;
  top: 0;
  right: -420px;
  bottom: 0;
  width: 400px;
  z-index: 1000;
  background: var(--surface-raised, #ffffff);
  border-left: 1px solid var(--border, #e7e5e4);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.pilot-open .pilot-panel {
  right: 0;
}

.pilot-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border, #e7e5e4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--decision-surface, #eef2ff), var(--surface-raised, #ffffff));
  flex-shrink: 0;
}

.pilot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pilot-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--pilot, #4338ca);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.pilot-title {
  font-weight: 700;
  font-size: 15px;
}

.pilot-subtitle {
  font-size: 11px;
  color: var(--ink-muted, #78716c);
  margin-top: 1px;
}

.pilot-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--ink-muted, #78716c);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pilot-close:hover {
  background: var(--surface-inset, #f5f5f4);
  color: var(--ink, #1c1917);
}

.pilot-status {
  padding: 8px 20px;
  border-bottom: 1px solid var(--border, #e7e5e4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-inset, #f5f5f4);
  flex-shrink: 0;
}

.pilot-status-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-muted, #78716c);
}

.pilot-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--win, #047857);
}

.pilot-status-dot.thinking {
  background: var(--hold-accent, #d97706);
  animation: dotPulse 1s ease-in-out infinite;
}

.pilot-status-dot.speaking {
  background: var(--pilot, #4338ca);
  animation: dotPulse 0.8s ease-in-out infinite;
}

.pilot-status-dot.listening {
  background: var(--risk, #be123c);
  animation: dotPulse 0.6s ease-in-out infinite;
}

.pilot-status-dot.preloading {
  background: var(--hold-accent, #d97706);
  animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.pilot-voice-toggle {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid var(--border, #e7e5e4);
  background: var(--surface-raised, #ffffff);
  color: var(--ink-muted, #78716c);
  cursor: pointer;
  font-weight: 600;
}

.pilot-voice-toggle.active {
  background: var(--pilot, #4338ca);
  color: white;
  border-color: var(--pilot, #4338ca);
}

.pilot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

.pilot-msg {
  font-size: 13px;
  line-height: 1.55;
  border-radius: 12px;
  padding: 12px 16px;
  max-width: 92%;
}

.pilot-msg.pilot {
  background: var(--decision-surface, #eef2ff);
  border: 1px solid var(--decision-border, #c7d2fe);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.pilot-msg.user {
  background: var(--surface-inset, #f5f5f4);
  border: 1px solid var(--border, #e7e5e4);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.pilot-msg.action {
  background: var(--win-surface, #ecfdf5);
  border: 1px solid var(--win-border, #a7f3d0);
  align-self: stretch;
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  color: var(--win, #047857);
  padding: 10px;
}

.pilot-msg .msg-meta {
  font-size: 10px;
  color: var(--ink-faint, #a8a29e);
  margin-top: 6px;
}

.pilot-thinking {
  display: flex;
  gap: 5px;
  padding: 12px 16px;
  background: var(--decision-surface, #eef2ff);
  border: 1px solid var(--decision-border, #c7d2fe);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  width: fit-content;
}

.pilot-thinking-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--decision-accent, #6366f1);
  opacity: 0.4;
  animation: thinkingDot 1.2s ease-in-out infinite;
}

.pilot-thinking-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.pilot-thinking-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes thinkingDot {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

.pilot-input-area {
  padding: 14px 20px;
  border-top: 1px solid var(--border, #e7e5e4);
  background: var(--surface-inset, #f5f5f4);
  flex-shrink: 0;
}

.pilot-input-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.pilot-mic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border, #e7e5e4);
  background: var(--surface-raised, #ffffff);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pilot-mic:hover {
  background: var(--risk-surface, #fff1f2);
  border-color: var(--risk-border, #fecdd3);
}

.pilot-mic.listening {
  background: var(--risk, #be123c);
  border-color: var(--risk, #be123c);
  animation: micPulse 1s ease-in-out infinite;
}

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

.pilot-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border, #e7e5e4);
  background: var(--surface-raised, #ffffff);
  color: var(--ink, #1c1917);
  font-family: var(--font-body, 'Plus Jakarta Sans', -apple-system, sans-serif);
  font-size: 13px;
  resize: none;
  line-height: 1.5;
}

.pilot-input:focus {
  outline: none;
  border-color: var(--decision-accent, #6366f1);
}

.pilot-send {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: var(--pilot, #4338ca);
  color: white;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pilot-send:disabled {
  opacity: 0.4;
}
