    /* ── Chat Search Section ── */
    .chat-search-section {
      padding: 0 24px 60px;
      max-width: 800px;
      margin: 0 auto;
    }
    .chat-search-input-wrap {
      position: relative;
      margin-bottom: 8px;
    }
    .chat-search-input {
      width: 100%;
      padding: 18px 60px 18px 22px;
      border-radius: 16px;
      border: 1px solid var(--border);
      background: var(--bg-card);
      color: var(--text);
      font-size: 16px;
      line-height: 1.5;
      outline: none;
      resize: none;
      min-height: 56px;
      max-height: 160px;
      font-family: inherit;
      transition: border-color .25s, box-shadow .25s;
    }
    .chat-search-input::placeholder {
      color: var(--text-dim);
    }
    .chat-search-input:focus {
      border-color: var(--orange);
      box-shadow: 0 0 0 3px var(--orange-glow), 0 4px 24px rgba(244,114,43,.10);
    }
    .chat-send-btn {
      position: absolute;
      right: 10px;
      bottom: 8px;
      width: 40px;
      height: 40px;
      border-radius: 12px;
      border: none;
      background: var(--orange);
      color: #fff;
      font-size: 18px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform .15s, box-shadow .15s, opacity .15s;
      opacity: 0.5;
    }
    .chat-send-btn.active {
      opacity: 1;
    }
    .chat-send-btn:hover {
      transform: scale(1.05);
      box-shadow: 0 4px 16px var(--orange-glow);
    }
    .chat-mic-btn {
      width: 44px; height: 44px; border-radius: 50%;
      background: transparent; border: none; cursor: pointer;
      font-size: 20px; color: var(--text-dim);
      display: flex; align-items: center; justify-content: center;
      transition: all .2s; flex-shrink: 0;
      position: relative;
    }
    .chat-mic-btn:hover { color: var(--text); background: rgba(255,255,255,.05); }
    .chat-mic-btn.listening {
      color: #ef4444;
      animation: micPulse 1.2s ease-in-out infinite;
    }
    .chat-mic-btn.listening::after {
      content: "";
      position: absolute; inset: -4px;
      border: 2px solid #ef4444;
      border-radius: 50%;
      animation: micRing 1.2s ease-out infinite;
    }
    @keyframes micPulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.1); }
    }
    @keyframes micRing {
      0% { transform: scale(1); opacity: 1; }
      100% { transform: scale(1.5); opacity: 0; }
    }
    .chat-mic-btn.unsupported { display: none; }

    .chat-hint {
      text-align: center;
      color: var(--text-dim);
      font-size: 12px;
      margin-bottom: 24px;
      opacity: 0.7;
    }

    /* Chat conversation area */
    .chat-conversation {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .chat-bubble {
      max-width: 88%;
      animation: chatFadeIn .4s ease-out;
    }
    @keyframes chatFadeIn {
      from { opacity: 0; transform: translateY(12px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* User bubble — right aligned */
    .chat-bubble.user {
      align-self: flex-end;
    }
    .chat-bubble.user .bubble-content {
      background: rgba(244,114,43,.12);
      border: 1px solid rgba(244,114,43,.2);
      border-radius: 16px 16px 4px 16px;
      padding: 14px 18px;
      font-size: 15px;
      color: var(--text);
      line-height: 1.5;
    }
    .chat-bubble.user .bubble-label {
      text-align: right;
      font-size: 12px;
      color: var(--text-dim);
      margin-top: 4px;
      padding-right: 4px;
    }

    /* Bot bubble — left aligned */
    .chat-bubble.bot {
      align-self: flex-start;
    }
    .chat-bubble.bot .bubble-label {
      font-size: 12px;
      color: var(--text-dim);
      margin-bottom: 4px;
      padding-left: 4px;
    }
    .chat-bubble.bot .bubble-content {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 16px 16px 16px 4px;
      padding: 16px 20px;
      font-size: 15px;
      color: var(--text);
      line-height: 1.5;
    }
    .chat-bubble.bot .bubble-summary {
      margin-bottom: 12px;
      color: var(--text);
      font-size: 15px;
    }
    .chat-bubble.bot .no-results {
      color: var(--text-dim);
      font-style: italic;
    }

    /* Result cards inside bot bubble */
    .chat-result-cards {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .chat-result-card {
      background: var(--bg-card-hover);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 16px;
      transition: border-color .2s, transform .2s;
    }
    .chat-result-card:hover {
      border-color: rgba(244,114,43,.3);
      transform: translateY(-2px);
      box-shadow: 0 4px 16px rgba(0,0,0,.2);
    }
    .chat-result-card .crc-header {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 8px;
    }
    .chat-result-card .crc-emoji {
      font-size: 24px;
      flex-shrink: 0;
    }
    .chat-result-card .crc-name {
      font-size: 16px;
      font-weight: 600;
      color: var(--text);
    }
    .chat-result-card .crc-meta {
      font-size: 13px;
      color: var(--text-dim);
    }
    .chat-result-card .crc-desc {
      font-size: 14px;
      color: var(--text-dim);
      line-height: 1.5;
      margin-bottom: 10px;
    }
    .chat-result-card .crc-tags {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      margin-bottom: 10px;
    }
    .chat-result-card .crc-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    .chat-result-card .crc-btn {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 5px 12px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      transition: all .2s;
      text-decoration: none;
    }
    .chat-result-card .crc-btn.primary {
      background: rgba(244,114,43,.12);
      color: var(--orange);
      border: 1px solid rgba(244,114,43,.2);
    }
    .chat-result-card .crc-btn.primary:hover {
      background: rgba(244,114,43,.2);
      border-color: var(--orange);
      opacity: 1;
    }
    .chat-result-card .crc-btn.secondary {
      background: rgba(59,130,246,.1);
      color: var(--blue);
      border: 1px solid rgba(59,130,246,.2);
    }
    .chat-result-card .crc-btn.secondary:hover {
      background: rgba(59,130,246,.2);
      border-color: var(--blue);
      opacity: 1;
    }

    /* Loading dots animation */
    .chat-loading-dots {
      display: inline-flex;
      gap: 4px;
      align-items: center;
      padding: 4px 0;
    }
    .chat-loading-dots span {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--orange);
      animation: dotBounce 1.2s infinite;
    }
    .chat-loading-dots span:nth-child(2) { animation-delay: .15s; }
    .chat-loading-dots span:nth-child(3) { animation-delay: .3s; }
    @keyframes dotBounce {
      0%, 60%, 100% { opacity: .3; transform: scale(.8); }
      30% { opacity: 1; transform: scale(1); }
    }

