.crqc-ai6-panel{
  border: 1px solid #ddd;
  padding: 14px 16px;
  border-radius: 8px;
  margin: 18px 0;
  background: #fafafa;
  width: 100%;
  box-sizing: border-box;
}
.crqc-ai6-header{ margin-bottom:8px; }
.crqc-ai6-actions{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:6px; }
.crqc-ai6-persona-inline{ display:flex; align-items:center; gap:6px; margin-right:8px; }
.crqc-ai6-persona-label{
  font-weight:600;
}
.crqc-ai6-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: #f0f0f0;
  color: #555;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  margin-left: -2px;
}
.crqc-ai6-info-btn:hover {
  background: #e0e0e0;
}
.crqc-ai6-btn{
  display:inline-block;
  border:1px solid #ccc;
  padding:8px 12px;
  border-radius:6px;
  background:#fff;
  cursor:pointer;
}
.crqc-ai6-btn:hover{ background:#f5f5f5; }
.crqc-ai6-ask-drawer{ margin:8px 0; padding:8px; border:1px dashed #ccc; border-radius:6px; background:#fff; }
.crqc-ai6-question{ width:100%; box-sizing:border-box; margin:6px 0; }
.crqc-ai6-output{ margin-top:10px; white-space:pre-wrap; }
.crqc-ai6-text{ white-space:pre-wrap; }
.crqc-ai6-debug{ margin-top:10px; padding:8px; border:1px dashed #aaa; background:#fff; border-radius:6px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size:12px; }
.crqc-ai6-debug-table{ width:100%; border-collapse:collapse; margin-top:6px; }
.crqc-ai6-debug-table th, .crqc-ai6-debug-table td{ border:1px solid #e0e0e0; padding:4px 6px; text-align:left; vertical-align:top; }
.crqc-ai6-debug-note{ color:#555; font-size:12px; }

/* Popover styles */
.crqc-ai6-popover {
  position: absolute;
  z-index: 10001;
  width: min(350px, 90vw);
  background: #ffffff;
  color: #111111;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 14px;
  font-size: 14px;
}
.crqc-ai6-popover-content {
  max-height: 50vh;
  overflow-y: auto;
}
.crqc-ai6-popover-close {
  position: absolute;
  top: 4px;
  right: 8px;
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #888;
}