.aiContainer{padding: 20px; box-shadow: 0 0 5px #c6c6c6;  width: 100%;   border-radius: 0 0 5px 5px;}
  /* ── Conversation log ── */
  #log {
    display: flex;
    flex-direction: column;
    gap: 14px;
    /* min-height: 120px;
    max-height: 360px; */
    overflow-y: auto;
    padding-right: 0px;
	

}

  .msg {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    animation: fadeUp 0.25s ease both;
  }

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

  .msg-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-family: 'Space Mono', monospace;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .msg.user .msg-avatar  { background: var(--accent-dim); color: #fff; background:#b80022; }
  .msg.bot  .msg-avatar  { background:#b80022; color: #fff; }

  .msg-bubble {
    background: var(--border);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: calc(100% - 44px);
  }

  .msg.user .msg-bubble { background: #b6b0b0; }
  .msg.bot  .msg-bubble { background:#d3cece; }

  /* ── Mic button ── */
  .mic-wrap {
     margin:15px auto;  border-radius: 50%;     align-items: center; float: none!important; text-align: center;
  }

  #mic-btn {
    /* width: 32px;
    height: 32px; */
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center; margin: auto;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    position: relative;
	border: none; min-width: auto; border-radius: 50px;
	box-shadow: 0px 1px 3px #1a0505;
  }

  #mic-btn:hover { background: var(--glow); }

  #mic-btn.recording {
    background: rgba(255, 92, 106, 0.12);
    border-color: var(--red);
    box-shadow: 0 0 0 6px rgba(255, 92, 106, 0.15), 0 0 0 12px rgba(255, 92, 106, 0.06);
    animation: pulse 1.2s ease infinite;
  }

  #mic-btn.processing {
    border-color: var(--amber);
    /* animation: spin-border 1s linear infinite; */
    cursor: not-allowed;
  }

  @keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(255,92,106,0.55), 0 0 0 12px rgba(255,92,106,0.07); }
    50%       { box-shadow: 0 0 0 6px rgba(255,92,106,0.12), 0 0 0 16px rgba(255,92,106,0.04); }
  }

  @keyframes spin-border {
    to { transform: rotate(360deg); }
  }

  #mic-btn svg { pointer-events: none; }

  #mic-label {
    font-family: 'hind', monospace;
    font-size: 15px;
    letter-spacing:0;
    color: var(--muted);
    text-transform: capitalize;
    text-align: center; padding-top:5px; display: block;
  }

  /* ── Result card ── */
  .card{padding: 20px;  background: #dfdbdb;  border-radius: 10px;  margin-top: 20px;}
  #result-card {
    display: none;
  }

  #result-card h3 {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;text-align: center;
    font-weight: 700;
  }

  .result-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
    gap: 12px;
  }

  .result-row:last-child { border-bottom: none; }

  .result-row .label { color: var(--muted); font-size: 0.8rem; flex-shrink: 0; padding-top: 2px; }

  .result-row .value {
    font-family: 'Space Mono', monospace;
    font-size: 0.82rem;
    color: var(--text);
    text-align: right;
    max-width: 65%;
    word-break: break-word;
  }

  /* Multiple statuses container */
  .statuses-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
  }

  .badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-family: 'Space Mono', monospace;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .badge-purple { background: rgba(124,111,255,0.15); color: var(--accent); }
  .badge-green  { background: rgba(57,217,138,0.15);  color: var(--green); }
  .badge-amber  { background: rgba(255,181,71,0.15);  color: var(--amber); }
  .badge-red    { background: rgba(255,92,106,0.15);  color: var(--red); }
  .badge-cyan   { background: #b80022;  color: #fff; }

  #reset-btn {
    margin-top: 18px;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
	font-weight: 800;;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
  }

  #reset-btn:hover { border-color: var(--accent); color: var(--accent); }

  /* scrollbar */
  #log::-webkit-scrollbar { width: 4px; }
  #log::-webkit-scrollbar-track { background: transparent; }
  #log::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }