.pqaie-panel{
  border: 1px solid #ddd;
  padding: 14px 16px;
  border-radius: 8px;
  margin: 18px 0;
  background: #fafafa;
  width: 100%;
  box-sizing: border-box;
}
.pqaie-actions{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:6px; }
.pqaie-controls-inline{ display:flex; align-items:center; gap:6px; margin-right:8px; }
.pqaie-label{
  font-weight:600;
}
.pqaie-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;
}
.pqaie-info-btn:hover {
  background: #e0e0e0;
}
.pqaie-btn{
  display:inline-block;
  border:1px solid #ccc;
  padding:8px 12px;
  border-radius:6px;
  background:#fff;
  cursor:pointer;
}
.pqaie-btn:hover{ background:#f5f5f5; }
.pqaie-question{ 
  width:100%; 
  box-sizing:border-box; 
  margin-bottom: 12px; 
}
.pqaie-output{ margin-top:10px; white-space:pre-wrap; }
.pqaie-text{ white-space:pre-wrap; }
.pqaie-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; }
.pqaie-debug-table{ width:100%; border-collapse:collapse; margin-top:6px; }
.pqaie-debug-table th, .pqaie-debug-table td{ border:1px solid #e0e0e0; padding:4px 6px; text-align:left; vertical-align:top; }
.pqaie-debug-note{ color:#555; font-size:12px; }

/* Popover styles */
.pqaie-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;
}
.pqaie-popover-content {
  max-height: 50vh;
  overflow-y: auto;
}
.pqaie-popover-close {
  position: absolute;
  top: 4px;
  right: 8px;
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #888;
}