:root #readme-button {
    display: none !important;
  }

/*
  #theme-toggle {
    display: none !important;
  }
*/

  /* Chain of Thought and Sources collapse/expand styling */
  .chain-of-thought-container,
  .sources-container {
    margin: 8px 0;
  }

  .cot-toggle-btn,
  .sources-toggle-btn {
    background: none !important;
    border: none !important;
    cursor: pointer;
    padding: 8px 0;
    font-weight: bold;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
  }

  .cot-toggle-btn:hover,
  .sources-toggle-btn:hover {
    opacity: 0.8;
  }

  .cot-chevron,
  .sources-chevron {
    font-size: 0.8em;
    opacity: 0.7;
    transition: transform 0.2s ease;
  }

  .sources-content {
    margin-top: 8px;
    padding-left: 16px;
  }

  .sources-content ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
  }

  .sources-content li {
    margin: 4px 0;
    padding-left: 4px;
  }

  /* Chain of Thought header styling */
  .chain-of-thought-header {
    cursor: pointer;
    user-select: none;
  }

  .sources-header {
    cursor: pointer;
    user-select: none;
  }

  /* ================================================================
     Agent-questions card styling
     ================================================================ */

  .agent-q-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
  }

  .agent-q-icon {
    font-size: 1.1em;
  }

  .agent-q-title {
    font-weight: 600;
    font-size: 0.9em;
  }

  .agent-q-counter {
    margin-left: auto;
    font-size: 0.8em;
    opacity: 0.6;
  }

  .agent-q-text {
    font-size: 0.95em;
    margin-bottom: 8px;
    line-height: 1.5;
  }

  .agent-q-selected {
    font-size: 0.85em;
    opacity: 0.7;
    margin-bottom: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(128, 128, 128, 0.08);
  }

  /* ---- Answers summary card ---- */

  .agent-q-summary {
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 4px 0;
  }

  .agent-q-summary-header {
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.15);
  }

  .agent-q-summary-item {
    margin-bottom: 8px;
  }

  .agent-q-summary-item:last-child {
    margin-bottom: 0;
  }

  .agent-q-summary-question {
    font-size: 0.85em;
    opacity: 0.7;
    margin-bottom: 2px;
  }

  .agent-q-summary-answer {
    font-size: 0.9em;
    font-weight: 500;
  }

  /* ================================================================
     Action buttons: one option per line
     ================================================================
     Chainlit renders actions as MUI Chips (role="button") inside a
     MUI Stack (flex-direction: row; flex-wrap: wrap).
     We override the container to column layout via:
       1. The .agent-q-actions class added by collapse.js  (JS approach)
       2. CSS :has() selectors as a standalone fallback    (CSS approach)
     ================================================================ */

  /* --- JS approach: class added by collapse.js --- */
  .agent-q-actions {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  /* --- CSS-only fallback (covers MUI Chips, role="button" divs, <button>s) --- */

  /* Any container with 3+ MUI Chip children */
  div:has(> .MuiChip-root:nth-child(3)) {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  /* Any container with 3+ role="button" children */
  div:has(> [role="button"]:nth-child(3)) {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  /* Any container with 3+ <button> children */
  div:has(> button:nth-child(3)) {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }