@media (min-width: 761px) {
  .chat-mode-panel.chameleon-compact-source.compact-open {
    left: 16px;
    width: min(340px, calc(100% - 32px));
    max-height: 420px;
    padding: 10px;
  }

  .chat-mode-panel.chameleon-compact-source .model-options,
  .chat-mode-panel.chameleon-compact-source .behavior-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
  }

  .chat-mode-panel.chameleon-compact-source .model-options > button,
  .chat-mode-panel.chameleon-compact-source .behavior-options > button {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .chat-mode-panel.chameleon-compact-source .model-options > button {
    min-height: 66px;
  }

  .chat-mode-panel.chameleon-compact-source .behavior-options > button {
    min-height: 52px;
  }
}

@media (max-width: 760px) {
  .chat-mode-panel.chameleon-compact-source .model-options,
  .chat-mode-panel.chameleon-compact-source .behavior-options {
    display: grid;
    grid-template-columns: 1fr;
    overflow-x: hidden;
  }

  .chat-mode-panel.chameleon-compact-source .model-options > button,
  .chat-mode-panel.chameleon-compact-source .behavior-options > button {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}
