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

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      background: #FFFFFF;
      color: #1D1C1D;
      min-height: 100vh;
    }

    header {
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-bottom: 1px solid #E1E4E8;
      padding: 24px 0;
      box-shadow: none;
      position: sticky;
      top: 0;
      z-index: 100;
    }

    .header-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    /* Hero Section Styles */
    .hero-banner {
      background: #FFFFFF;
      border: 1px solid #E1E4E8;
      position: relative;
      overflow: hidden;
      min-height: 200px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 40px;
      animation: fadeIn 0.6s ease;
      box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    }

    .hero-content {
      position: relative;
      z-index: 2;
      text-align: center;
      padding: 40px 20px;
    }

    .hero-icon {
      font-size: 60px;
      margin-bottom: 16px;
      animation: float 3s ease-in-out infinite;
    }

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

    .hero-title {
      font-size: 42px;
      font-weight: 700;
      color: #1D1D1F;
      margin-bottom: 12px;
      text-shadow: none;
    }

    .hero-subtitle {
      font-size: 18px;
      color: #616061;
      margin-bottom: 20px;
      font-weight: 400;
    }

    .hero-stats-mini {
      display: flex;
      gap: 12px;
      justify-content: center;
      align-items: center;
      font-size: 15px;
      color: #616061;
    }

    .hero-stat {
      font-weight: 500;
    }

    .hero-stat .stat-number {
      font-weight: 700;
      font-size: 18px;
      color: #1D1D1F;
    }

    .hero-stat-separator {
      opacity: 0.6;
      font-size: 20px;
    }

    .hero-cta-btn {
      margin-top: 20px;
      padding: 14px 28px;
      background: #000000;
      color: white;
      border: none;
      border-radius: 8px;
      font-weight: 600;
      font-size: 15px;
      cursor: pointer;
      transition: all 0.2s;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .hero-cta-btn:hover {
      background: #2D2D2D;
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .hero-cta-btn:active {
      transform: translateY(0);
    }

    .hero-decoration {
      display: none;
    }

    .nav-links a {
      color: #000000;
      text-decoration: none;
      margin-left: 20px;
      font-size: 14px;
      font-weight: 500;
      transition: color 0.2s;
    }

    .nav-links a:hover {
      color: #2D2D2D;
      text-decoration: underline;
    }

    /* View Toggle Button */
    .view-toggle-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 20px;
      background: #F8F9FA;
      border: 2px solid #E1E4E8;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 600;
      color: #1D1D1F;
      cursor: pointer;
      transition: all 0.2s ease;
      white-space: nowrap;
    }

    .view-toggle-btn:hover {
      background: #E1E4E8;
      transform: translateY(-1px);
    }

    .view-toggle-btn.chat-active {
      background: #000000;
      color: #FFFFFF;
      border-color: #000000;
    }

    .view-toggle-btn.chat-active:hover {
      background: #2D2D2D;
    }

    .container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

    h1 {
      font-size: 32px;
      font-weight: 700;
      color: #1a1a1a;
    }

    .stats {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 20px;
      margin: 24px 0;
    }

    .stat-card {
      background: #FFFFFF;
      padding: 28px;
      border-radius: 8px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.08);
      border: 1px solid #E1E4E8;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      position: relative;
      overflow: hidden;
      animation: fadeInUp 0.6s ease backwards;
    }

    /* Stagger animation for stats cards */
    .stat-card:nth-child(1) { animation-delay: 0s; }
    .stat-card:nth-child(2) { animation-delay: 0.1s; }
    .stat-card:nth-child(3) { animation-delay: 0.2s; }
    .stat-card:nth-child(4) { animation-delay: 0.3s; }
    .stat-card:nth-child(5) { animation-delay: 0.4s; }
    .stat-card:nth-child(6) { animation-delay: 0.5s; }
    .stat-card:nth-child(7) { animation-delay: 0.6s; }
    .stat-card:nth-child(8) { animation-delay: 0.7s; }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* Clean minimal styling - only first card gets purple accent */
    .stat-card:nth-child(1) {
      background: #F8F9FA;
      border-color: #000000;
    }

    .stat-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    }

    .stat-card h3 {
      font-size: 13px;
      color: #616061;
      margin-bottom: 12px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .stat-card h3::before {
      font-size: 18px;
    }

    /* Icons for each card */
    .stat-card:nth-child(1) h3::before { content: '📊'; }
    .stat-card:nth-child(2) h3::before { content: '✅'; }
    .stat-card:nth-child(3) h3::before { content: '💡'; }
    .stat-card:nth-child(4) h3::before { content: '📌'; }
    .stat-card:nth-child(5) h3::before { content: '🎯'; }
    .stat-card:nth-child(6) h3::before { content: '🎨'; }
    .stat-card:nth-child(7) h3::before { content: '⚙️'; }
    .stat-card:nth-child(8) h3::before { content: '📈'; }

    .stat-card .number {
      font-size: 40px;
      font-weight: 800;
      color: #1D1D1F;
      text-shadow: none;
    }

    .stat-card:nth-child(1) .number {
      color: #000000;
    }

    /* Condensed Stats for Chat View */
    .stats-condensed {
      display: none;
      flex-direction: row;
      gap: 16px;
      padding: 16px 24px;
      background: #F8F9FA;
      border-radius: 12px;
      margin: 24px 0;
      border: 1px solid #E1E4E8;
      flex-wrap: wrap;
      justify-content: center;
    }

    .stat-chip {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 16px;
      background: #FFFFFF;
      border: 1px solid #E1E4E8;
      border-radius: 20px;
      font-size: 14px;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .stat-chip .stat-label {
      color: #616061;
      font-weight: 500;
    }

    .stat-chip .stat-value {
      color: #000000;
      font-weight: 700;
      font-size: 16px;
    }

    .filters {
      background: #ffffff;
      padding: 24px;
      border-radius: 12px;
      margin-bottom: 24px;
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
      border: 1px solid #e2e8f0;
    }

    .filter-group { flex: 1; min-width: 220px; }

    .filter-group label {
      display: block;
      font-size: 14px;
      font-weight: 500;
      margin-bottom: 6px;
      color: #334155;
    }

    .filter-group input, .filter-group select {
      width: 100%;
      padding: 8px 12px;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      font-size: 14px;
      transition: all 0.15s;
      background: #ffffff;
      box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }

    .filter-group input:focus, .filter-group select:focus {
      outline: none;
      border-color: #000000;
      box-shadow: 0 0 0 3px rgba(74, 21, 75, 0.1);
    }

    .decisions-table {
      background: #ffffff;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
      border: 1px solid #e2e8f0;
    }

    table { width: 100%; border-collapse: collapse; }

    thead { background: #f8fafc; }

    th {
      text-align: left;
      padding: 12px 24px;
      font-weight: 600;
      font-size: 12px;
      color: #64748b;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    td {
      padding: 16px 24px;
      border-bottom: 1px solid #e2e8f0;
      font-size: 14px;
    }

    tbody tr {
      transition: all 0.2s ease;
    }

    tbody tr:nth-child(even) {
      background-color: #f8f9fa;
    }

    tbody tr:hover {
      background: #F8F9FA;
      transform: none;
      box-shadow: none;
    }

    .badge {
      display: inline-block;
      padding: 6px 12px;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 500;
      text-transform: capitalize;
      border: 1px solid #E1E4E8;
      box-shadow: none;
      background: #F8F9FA;
      color: #1D1D1F;
    }

    .badge-product {
      background: #F8F9FA;
      color: #1D1D1F;
      border-color: #E1E4E8;
    }

    .badge-ux {
      background: #F8F9FA;
      color: #1D1D1F;
      border-color: #E1E4E8;
    }

    .badge-technical {
      background: #F8F9FA;
      color: #1D1D1F;
      border-color: #E1E4E8;
    }

    .badge-decision {
      background: #F8F9FA;
      color: #000000;
      border-color: #000000;
    }

    .badge-explanation {
      background: #F8F9FA;
      color: #1D1D1F;
      border-color: #E1E4E8;
    }

    .badge-context {
      background: #F8F9FA;
      color: #1D1D1F;
      border-color: #E1E4E8;
    }

    .tag {
      background: #f1f5f9;
      color: #334155;
      padding: 4px 10px;
      border-radius: 9999px;
      font-size: 12px;
      margin: 2px;
      display: inline-block;
      font-weight: 500;
      border: 1px solid #e2e8f0;
    }

    .jira-link {
      color: #000000;
      text-decoration: none;
      font-weight: 600;
      transition: color 0.15s;
    }

    .jira-link:hover {
      color: #2D2D2D;
      text-decoration: underline;
    }

    .jira-title { color: #64748b; font-size: 12px; }

    .loading {
      text-align: center;
      padding: 60px;
      color: #718096;
      font-size: 15px;
    }

    .export-btn {
      background: #F8F9FA;
      color: #000000;
      border: 1px solid #000000;
      padding: 8px 16px;
      border-radius: 6px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      margin-top: 10px;
      transition: all 0.15s;
      box-shadow: none;
    }

    .export-btn:hover {
      background: #000000;
      color: white;
    }

    .delete-btn {
      background: #fef2f2;
      color: #dc2626;
      border: 1px solid #fecaca;
      padding: 6px 12px;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.15s;
    }

    .delete-btn:hover {
      background: #fee2e2;
      border-color: #fca5a5;
    }

    .modal-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.6);
      backdrop-filter: blur(4px);
      z-index: 1000;
      justify-content: center;
      align-items: center;
      animation: fadeIn 0.2s ease;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .modal-overlay.active { display: flex; }

    .modal {
      background: #fff;
      padding: 32px;
      border-radius: 20px;
      max-width: 440px;
      width: 90%;
      text-align: center;
      box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
      animation: slideUp 0.3s ease;
    }

    @keyframes slideUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .modal h2 {
      margin-bottom: 16px;
      font-size: 22px;
      font-weight: 700;
      color: hsl(222, 47%, 11%);
    }

    .modal p {
      margin-bottom: 24px;
      color: hsl(215, 16%, 47%);
      line-height: 1.6;
    }

    .modal-buttons {
      display: flex;
      gap: 12px;
      justify-content: center;
    }

    .modal-btn {
      padding: 12px 24px;
      border-radius: 10px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      border: 1px solid transparent;
      transition: all 0.15s;
    }

    .modal-btn-cancel {
      background: #e2e8f0;
      color: #2d3748;
    }

    .modal-btn-cancel:hover {
      background: #cbd5e0;
    }

    .modal-btn-delete {
      background: #fee2e2;
      color: #dc2626;
      border: 1px solid #fca5a5;
    }

    .modal-btn-delete:hover {
      background: #fecaca;
      border-color: #f87171;
    }

    .view-btn {
      background: #000000;
      color: white;
      border: 1px solid #000000;
      padding: 8px 16px;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 500;
      cursor: pointer;
      margin-right: 6px;
      transition: all 0.2s ease;
      box-shadow: none;
    }

    .view-btn:hover {
      background: #2D2D2D;
      border-color: #2D2D2D;
    }

    .decision-text {
      max-width: 400px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .detail-modal {
      max-width: 750px;
      width: 90%;
      text-align: left;
      max-height: 90vh;
      overflow-y: auto;
    }

    .detail-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 24px;
      padding-bottom: 20px;
      border-bottom: 1px solid #e2e8f0;
    }

    .detail-header h2 {
      margin: 0;
      font-size: 24px;
      font-weight: 600;
      color: #1a1a1a;
    }

    .detail-section {
      margin-bottom: 24px;
    }

    .detail-section h3 {
      font-size: 12px;
      color: #64748b;
      margin-bottom: 10px;
      text-transform: uppercase;
      font-weight: 600;
      letter-spacing: 0.05em;
    }

    .detail-section .content {
      background: #f8fafc;
      padding: 16px;
      border-radius: 8px;
      font-size: 15px;
      line-height: 1.6;
      border: 1px solid #e2e8f0;
    }

    .detail-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
      margin-bottom: 24px;
    }

    .detail-item {
      background: #f8fafc;
      padding: 16px;
      border-radius: 8px;
      border: 1px solid #e2e8f0;
    }

    .detail-item label {
      font-size: 12px;
      color: #64748b;
      text-transform: uppercase;
      font-weight: 600;
      display: block;
      margin-bottom: 8px;
      letter-spacing: 0.05em;
    }

    .detail-item .value {
      font-size: 15px;
      color: #1a1a1a;
      font-weight: 500;
    }

    .confidence-badge {
      background: #F8F9FA;
      color: #1D1D1F;
      border: 1px solid #E1E4E8;
      padding: 6px 14px;
      border-radius: 9999px;
      font-size: 13px;
      font-weight: 500;
      display: inline-block;
    }

    .close-btn {
      background: #e2e8f0;
      color: #2d3748;
      border: none;
      padding: 10px 18px;
      border-radius: 10px;
      cursor: pointer;
      font-size: 14px;
      font-weight: 600;
      transition: all 0.2s;
    }

    .close-btn:hover {
      background: #cbd5e0;
    }

    .date-presets {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 12px;
    }

    .preset-btn {
      background: hsl(0, 0%, 100%);
      border: 2px solid hsl(214, 32%, 91%);
      padding: 8px 14px;
      border-radius: 10px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
    }

    .preset-btn:hover {
      border-color: hsl(215, 16%, 47%);
      background: hsl(210, 20%, 98%);
    }

    .preset-btn.active {
      background: #F8F9FA;
      color: #000000;
      border-color: #000000;
    }

    .date-inputs {
      display: flex;
      gap: 12px;
    }

    .date-inputs input {
      flex: 1;
    }

    .clear-dates-btn {
      background: #fee2e2;
      color: #dc2626;
      border: 1px solid #fca5a5;
      padding: 8px 14px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.15s;
    }

    .clear-dates-btn:hover {
      background: #fecaca;
      border-color: #f87171;
    }

    .edit-btn {
      background: #d1fae5;
      color: #047857;
      border: 1px solid #a7f3d0;
      padding: 10px 18px;
      border-radius: 8px;
      cursor: pointer;
      font-size: 14px;
      font-weight: 500;
      transition: all 0.15s;
    }

    .edit-btn:hover {
      background: #a7f3d0;
      border-color: #6ee7b7;
    }

    .edit-modal {
      max-width: 650px;
      width: 90%;
      text-align: left;
    }

    .form-group {
      margin-bottom: 24px;
    }

    .form-group label {
      display: block;
      font-size: 14px;
      font-weight: 500;
      margin-bottom: 6px;
      color: #334155;
    }

    .form-group input, .form-group select, .form-group textarea {
      width: 100%;
      padding: 8px 12px;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      font-size: 14px;
      font-family: 'Inter', -apple-system, sans-serif;
      transition: all 0.15s;
      box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }

    .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
      outline: none;
      border-color: #000000;
      box-shadow: 0 0 0 3px rgba(74, 21, 75, 0.1);
    }

    .form-group textarea {
      resize: vertical;
      min-height: 100px;
    }

    .form-group small {
      display: block;
      margin-top: 6px;
      font-size: 12px;
      color: #718096;
    }

    .modal-btn-primary {
      background: #000000;
      color: white;
      border: 1px solid #000000;
    }

    .modal-btn-primary:hover {
      background: #2D2D2D;
      border-color: #2D2D2D;
    }

    footer {
      background: #ffffff;
      border-top: 1px solid #e5e7eb;
      padding: 24px 0;
      margin-top: 48px;
      text-align: center;
    }

    .footer-links {
      display: flex;
      gap: 24px;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
    }

    .footer-links a {
      color: #000000;
      text-decoration: none;
      font-size: 14px;
      font-weight: 500;
      transition: color 0.15s;
    }

    .footer-links a:hover {
      color: #2D2D2D;
      text-decoration: underline;
    }

    .footer-links .separator {
      color: #cbd5e0;
      font-weight: 300;
    }

    .footer-copyright {
      margin-top: 12px;
      font-size: 13px;
      color: #718096;
    }

    .gdpr-section {
      background: #ffffff;
      padding: 24px;
      border-radius: 12px;
      margin-bottom: 24px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
      border: 1px solid #e2e8f0;
    }

    .gdpr-section h2 {
      font-size: 20px;
      margin-bottom: 12px;
      color: #1a1a1a;
      font-weight: 600;
    }

    .gdpr-section p {
      color: #64748b;
      font-size: 14px;
      margin-bottom: 20px;
      line-height: 1.6;
    }

    .gdpr-actions {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
    }

    .gdpr-btn {
      padding: 12px 20px;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.15s;
    }

    .gdpr-btn-export {
      background: #d1fae5;
      color: #047857;
      border: 1px solid #a7f3d0;
    }

    .gdpr-btn-export:hover {
      background: #a7f3d0;
      border-color: #6ee7b7;
    }

    .gdpr-btn-info {
      background: #F8F9FA;
      color: #000000;
      border: 1px solid #000000;
    }

    .gdpr-btn-info:hover {
      background: #000000;
      color: white;
    }

    .gdpr-btn-danger {
      background: #fee2e2;
      color: #dc2626;
      border: 1px solid #fca5a5;
    }

    .gdpr-btn-danger:hover {
      background: #fecaca;
      border-color: #f87171;
    }

    .gdpr-warning {
      background: #fef3c7;
      border-left: 4px solid #f59e0b;
      padding: 16px;
      border-radius: 8px;
      margin-bottom: 16px;
    }

    .gdpr-warning p {
      color: #92400e;
      margin: 0;
      font-size: 13px;
    }

    /* ========================================
       Chat View (Main Interface) Styles
       ======================================== */

    .view-container {
      min-height: 600px;
    }

    .chat-view-wrapper {
      max-width: 900px;
      margin: 0 auto;
      padding: 120px 24px 24px; /* Large top padding to position input in upper-middle */
      min-height: calc(100vh - 200px); /* Header + stats */
      display: flex;
      flex-direction: column;
      transition: all 0.3s ease;
    }

    .chat-view-wrapper.has-messages {
      padding-top: 24px; /* Reset to normal padding when messages exist */
    }

    .chat-welcome {
      text-align: center;
      padding: 0;
      margin-bottom: 24px;
      animation: fadeIn 0.6s ease;
    }

    /* Hide welcome when messages exist */
    .chat-view-wrapper.has-messages .chat-welcome {
      display: none;
    }

    .chat-welcome-icon {
      font-size: 40px;
      margin-bottom: 8px;
    }

    .chat-welcome-title {
      font-size: 24px;
      font-weight: 600;
      color: #1D1D1F;
    }

    .chat-messages-area {
      flex: 0 1 auto; /* Don't force expansion when empty */
      max-height: 600px;
      overflow-y: auto;
      margin-bottom: 20px;
    }

    .chat-view-wrapper.has-messages .chat-messages-area {
      flex: 1; /* Expand when messages exist */
      min-height: 300px;
    }


    .chat-message-main {
      margin: 16px 0;
      display: flex;
      flex-direction: column;
      animation: fadeInUp 0.3s ease;
    }

    .chat-message-main.user {
      align-items: flex-end;
    }

    .chat-message-main.bot {
      align-items: flex-start;
    }

    .chat-message-bubble {
      max-width: 75%;
      padding: 14px 18px;
      border-radius: 16px;
      font-size: 15px;
      line-height: 1.5;
      word-wrap: break-word;
    }

    .chat-message-main.user .chat-message-bubble {
      background: #000000;
      color: #FFFFFF;
    }

    .chat-message-main.bot .chat-message-bubble {
      background: #F8F9FA;
      border: 1px solid #E1E4E8;
      color: #1D1D1F;
    }

    .chat-message-bubble strong {
      font-weight: 700;
    }

    .chat-message-bubble em {
      font-style: italic;
    }

    .chat-message-bubble code {
      background: rgba(0, 0, 0, 0.08);
      padding: 2px 6px;
      border-radius: 4px;
      font-family: 'Monaco', 'Courier New', monospace;
      font-size: 13px;
    }

    /* Toggle button for showing/hiding decisions */
    .chat-decisions-toggle {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 12px;
      padding: 10px 16px;
      background: #F8F9FA;
      border: 2px solid #E1E4E8;
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.2s ease;
      font-size: 14px;
      font-weight: 500;
      color: #1D1D1F;
      max-width: fit-content;
    }

    .chat-decisions-toggle:hover {
      background: #000000;
      color: #FFFFFF;
      border-color: #000000;
      transform: translateY(-1px);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .chat-decisions-toggle .toggle-icon {
      font-size: 16px;
    }

    .chat-decisions-toggle .toggle-arrow {
      font-size: 10px;
      margin-left: 4px;
      transition: transform 0.2s ease;
    }

    .chat-decision-cards-main {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 12px;
      max-width: 75%;
      transition: max-height 0.3s ease, opacity 0.3s ease;
      overflow: hidden;
    }

    /* Hide decision cards by default */
    .chat-decision-cards-main.collapsed {
      display: none;
    }

    .chat-decision-card-main {
      background: #FFFFFF;
      border: 2px solid #E1E4E8;
      border-radius: 12px;
      padding: 14px 16px;
      cursor: pointer;
      transition: all 0.2s ease;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    }

    .chat-decision-card-main:hover {
      border-color: #000000;
      transform: translateX(4px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

    .chat-decision-card-main .card-header {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 6px;
    }

    .chat-decision-card-main .card-id {
      font-size: 12px;
      font-weight: 700;
      color: #616061;
    }

    .chat-decision-card-main .card-badge {
      font-size: 11px;
      padding: 3px 8px;
      border-radius: 4px;
      background: #F8F9FA;
      border: 1px solid #E1E4E8;
      font-weight: 600;
      text-transform: uppercase;
    }

    .chat-decision-card-main .card-text {
      font-size: 14px;
      color: #1D1D1F;
      line-height: 1.4;
      margin-bottom: 6px;
    }

    .chat-decision-card-main .card-meta {
      font-size: 12px;
      color: #616061;
    }

    .chat-typing-main {
      display: flex;
      gap: 6px;
      padding: 14px 18px;
      background: #F8F9FA;
      border: 1px solid #E1E4E8;
      border-radius: 16px;
      max-width: fit-content;
    }

    .chat-typing-main span {
      width: 8px;
      height: 8px;
      background: #616061;
      border-radius: 50%;
      animation: typing 1.4s infinite;
    }

    .chat-typing-main span:nth-child(2) {
      animation-delay: 0.2s;
    }

    .chat-typing-main span:nth-child(3) {
      animation-delay: 0.4s;
    }

    .chat-input-area-main {
      display: flex;
      gap: 12px;
      align-items: center;
      padding: 20px 0;
      position: sticky;
      bottom: 0;
      background: #FFFFFF;
    }

    .chat-input-main {
      flex: 1;
      padding: 16px 20px;
      border: 2px solid #E1E4E8;
      background: #FFFFFF;
      border-radius: 12px;
      font-size: 15px;
      font-family: 'Inter', -apple-system, sans-serif;
      outline: none;
      transition: all 0.2s ease;
    }

    .chat-input-main:focus {
      border-color: #000000;
      box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
    }

    .chat-input-main::placeholder {
      color: #9CA3AF;
    }

    .chat-send-btn-main {
      background: #000000;
      color: white;
      border: none;
      width: 56px;
      height: 56px;
      border-radius: 12px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
      flex-shrink: 0;
    }

    .chat-send-btn-main:hover {
      transform: translateY(-2px);
      background: #2D2D2D;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }

    .chat-send-btn-main:active {
      transform: translateY(0);
    }

    .chat-send-btn-main:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
    }

    .chat-error-main {
      background: #FEF2F2;
      border: 1px solid #FCA5A5;
      color: #DC2626;
      padding: 14px 18px;
      border-radius: 12px;
      font-size: 14px;
      margin: 12px 0;
      text-align: center;
    }

    /* Success Toast Notification */
    .success-toast {
      position: fixed;
      top: 24px;
      right: 24px;
      background: #000000;
      color: #FFFFFF;
      padding: 16px 24px;
      border-radius: 12px;
      font-size: 15px;
      font-weight: 600;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
      z-index: 10000;
      animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    }

    @keyframes slideInRight {
      from {
        transform: translateX(400px);
        opacity: 0;
      }
      to {
        transform: translateX(0);
        opacity: 1;
      }
    }

    @keyframes fadeOut {
      from {
        opacity: 1;
      }
      to {
        opacity: 0;
      }
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }

    /* Feedback Widget Styles */
    .feedback-widget {
      position: fixed;
      bottom: 24px;
      left: 24px;
      z-index: 1000;
    }

    .feedback-toggle {
      background: #2EB67D;
      color: white;
      border: none;
      padding: 14px 24px;
      border-radius: 50px;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
      transition: transform 0.2s, box-shadow 0.2s;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .feedback-toggle:hover {
      transform: translateY(-2px);
      background: #2A9D68;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .feedback-modal {
      max-width: 550px;
      width: 90%;
      text-align: left;
    }

    .feedback-modal .form-group textarea {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }

    @media (max-width: 768px) {
      .feedback-widget {
        left: 50%;
        transform: translateX(-50%);
        bottom: 100px;
      }

      .feedback-toggle {
        font-size: 14px;
        padding: 12px 20px;
      }
    }

    .chat-widget {
      position: fixed;
      bottom: 24px;
      right: 24px;
      z-index: 1000;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    }

    .chat-toggle {
      width: 70px;
      height: 70px;
      background: #000000;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      transition: transform 0.2s, box-shadow 0.2s;
      color: white;
    }

    .chat-toggle:hover {
      transform: scale(1.05);
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    }

    .chat-container {
      position: absolute;
      bottom: 90px;
      right: 0;
      width: 450px;
      max-width: calc(100vw - 48px);
      height: 650px;
      max-height: calc(100vh - 140px);
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-radius: 20px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      animation: slideUp 0.3s ease;
    }

    @keyframes slideUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .chat-header {
      background: #000000;
      color: white;
      padding: 24px;
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      border-radius: 20px 20px 0 0;
    }

    .chat-header h3 {
      margin: 0 0 4px 0;
      font-size: 20px;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .chat-header h3::before {
      content: "✨";
    }

    .chat-header p {
      margin: 0;
      font-size: 13px;
      opacity: 0.9;
    }

    .chat-close-btn {
      background: rgba(255, 255, 255, 0.2);
      border: none;
      color: white;
      font-size: 28px;
      width: 32px;
      height: 32px;
      border-radius: 8px;
      cursor: pointer;
      line-height: 1;
      transition: background 0.2s;
    }

    .chat-close-btn:hover {
      background: rgba(255, 255, 255, 0.3);
    }

    .chat-messages {
      flex: 1;
      overflow-y: auto;
      padding: 20px;
      background: #f8fafc;
    }

    .chat-message {
      margin-bottom: 16px;
      animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .chat-message.user {
      display: flex;
      justify-content: flex-end;
    }

    .chat-message.bot {
      display: flex;
      justify-content: flex-start;
    }

    .chat-message-content {
      max-width: 85%;
      padding: 12px 16px;
      border-radius: 12px;
      font-size: 14px;
      line-height: 1.5;
    }

    .chat-message.user .chat-message-content {
      background: #000000;
      color: white;
      font-weight: 500;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
      border-radius: 20px 20px 4px 20px;
    }

    .chat-message.bot .chat-message-content {
      background: white;
      color: #1a1a1a;
      border: 1px solid #e5e7eb;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
      border-radius: 20px 20px 20px 4px;
    }

    .chat-message.bot .chat-message-content p {
      margin: 0 0 8px 0;
    }

    .chat-message.bot .chat-message-content p:last-child {
      margin-bottom: 0;
    }

    .chat-message.bot .chat-message-content strong {
      color: #000000;
    }

    .chat-message.bot .chat-message-content ul {
      margin: 8px 0;
      padding-left: 20px;
    }

    .chat-message.bot .chat-message-content li {
      margin: 4px 0;
    }

    .chat-decision-card {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      padding: 12px;
      margin: 8px 0;
      cursor: pointer;
      transition: all 0.2s;
    }

    .chat-decision-card:hover {
      background: #eff6ff;
      border-color: #93c5fd;
    }

    .chat-decision-title {
      font-weight: 600;
      color: #0f172a;
      margin-bottom: 4px;
    }

    .chat-decision-meta {
      font-size: 12px;
      color: #64748b;
    }

    .chat-typing {
      display: flex;
      gap: 4px;
      padding: 12px 16px;
      background: white;
      border-radius: 20px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .chat-typing span {
      width: 8px;
      height: 8px;
      background: #000000;
      border-radius: 50%;
      animation: typing 1.4s infinite;
    }

    .chat-typing span:nth-child(2) { animation-delay: 0.2s; }
    .chat-typing span:nth-child(3) { animation-delay: 0.4s; }

    @keyframes typing {
      0%, 60%, 100% { transform: translateY(0); }
      30% { transform: translateY(-10px); }
    }

    .chat-suggestions {
      display: flex;
      gap: 8px;
      padding: 12px 16px 0 16px;
      background: white;
      flex-wrap: wrap;
    }

    .suggestion-chip {
      background: rgba(74, 21, 75, 0.1);
      color: #000000;
      border: 1px solid rgba(74, 21, 75, 0.2);
      padding: 8px 16px;
      border-radius: 20px;
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .suggestion-chip:hover {
      background: #000000;
      color: white;
      transform: scale(1.05);
      border-color: #000000;
    }

    .chat-input-container {
      display: flex;
      gap: 8px;
      padding: 16px;
      background: white;
      border-top: 1px solid #e2e8f0;
    }

    .chat-input {
      flex: 1;
      padding: 14px 16px;
      border: 2px solid #E1E4E8;
      background: white;
      border-radius: 12px;
      font-size: 15px;
      outline: none;
      transition: all 0.3s ease;
    }

    .chat-input:focus {
      border-color: #000000;
      box-shadow: 0 0 0 4px rgba(74, 21, 75, 0.1);
    }

    .chat-send-btn {
      background: #000000;
      color: white;
      border: none;
      width: 48px;
      height: 48px;
      border-radius: 12px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

    .chat-send-btn:hover {
      transform: translateY(-2px);
      background: #2D2D2D;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    }

    .chat-send-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
    }

    .chat-error {
      background: #fef2f2;
      border: 1px solid #fecaca;
      color: #dc2626;
      padding: 12px;
      border-radius: 8px;
      font-size: 13px;
      margin: 8px 0;
    }

    @media (max-width: 640px) {
      .chat-container {
        width: calc(100vw - 48px);
        height: calc(100vh - 140px);
      }
    }

    /* ========================================
       Mobile Responsive Styles for Chat View
       ======================================== */

    @media (max-width: 768px) {
      /* Header adjustments */
      .header-content {
        flex-direction: column;
        gap: 12px;
      }

      .header-content > div {
        flex-direction: column;
        gap: 12px;
        width: 100%;
      }

      .nav-links {
        display: flex;
        flex-direction: row;
        gap: 12px;
        justify-content: center;
      }

      /* View toggle button - icon only on mobile */
      .view-toggle-btn {
        padding: 10px 16px;
        width: 100%;
        justify-content: center;
      }

      #toggle-text {
        display: none;
      }

      #toggle-icon-chat,
      #toggle-icon-classic {
        font-size: 20px;
      }

      /* Stats - stack vertically */
      .stats-condensed {
        flex-direction: column;
        align-items: stretch;
      }

      .stat-chip {
        justify-content: space-between;
      }

      /* Chat view adjustments */
      .chat-view-wrapper {
        padding: 80px 16px 16px; /* Less top padding on tablet, but still centered */
      }

      .chat-view-wrapper.has-messages {
        padding-top: 16px;
      }

      .chat-welcome {
        padding: 0;
        margin-bottom: 20px;
      }

      .chat-welcome-icon {
        font-size: 36px;
      }

      .chat-welcome-title {
        font-size: 22px;
      }

      .chat-messages-area {
        min-height: 300px;
        max-height: 500px;
      }

      .chat-message-bubble {
        max-width: 90%;
        font-size: 14px;
      }

      .chat-decisions-toggle {
        font-size: 13px;
        padding: 8px 14px;
      }

      .chat-decision-cards-main {
        max-width: 90%;
      }

      .chat-input-area-main {
        padding: 12px 0;
      }

      .chat-input-main {
        padding: 12px 16px;
        font-size: 14px;
      }

      .chat-send-btn-main {
        width: 48px;
        height: 48px;
      }
    }

    @media (max-width: 480px) {
      .hero-title {
        font-size: 32px;
      }

      .hero-subtitle {
        font-size: 16px;
      }

      .chat-welcome-title {
        font-size: 20px;
      }

      .chat-welcome-icon {
        font-size: 32px;
      }

      .chat-message-bubble {
        max-width: 95%;
        padding: 10px 14px;
      }

      .chat-decision-cards-main {
        max-width: 95%;
      }
    }
