/* Floating Question Box Styles */

#floating-question-box {
  position: fixed;
  top: calc(var(--menu-bar-height, 50px) + 60px);
  right: 48px; /* _TAB_ZONE: 40px drawer tabs + 8px clearance */
  width: 300px;
  z-index: 999;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
  border: 1px solid #cc6600;
  transition:
    right 0.3s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

/* Retracted state — becomes a tab flush with right edge */
#floating-question-box.retracted {
  right: 0 !important;
  width: 40px;
  height: 80px;
  top: calc(var(--menu-bar-height, 50px) + 240px);
  border-radius: 8px 0 0 8px;
  border-right: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
}

#floating-question-box.retracted:hover {
  background: linear-gradient(to bottom, #2a3142, #3a4152);
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
}

#floating-question-box.retracted .question-box-header,
#floating-question-box.retracted .question-box-body,
#floating-question-box.retracted .question-box-footer {
  display: none;
}

#floating-question-box.retracted .question-box-retracted-icon {
  display: flex;
}

/* Retracted tab icon */
.question-box-retracted-icon {
  display: none;
  width: 40px;
  height: 80px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, #1a1f2e, #2a3142);
  cursor: pointer;
}

.question-box-retracted-icon i {
  color: #cc6600;
  font-size: var(--font-size-3xl, 18px);
}

/* Header */
.question-box-header {
  padding: 10px 14px;
  background: linear-gradient(to bottom, #1a1f2e, #2a3142);
  border-bottom: 1px solid var(--gd-header-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.question-box-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.question-box-header-left h3 {
  margin: 0;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-on-dark, #e0e0e0);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.question-box-context-label {
  font-size: var(--font-size-xs);
  color: #cc6600;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.question-box-context-clear {
  display: none;
  background: none;
  border: none;
  color: #cc6600;
  font-size: var(--font-size-sm);
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  opacity: 0.7;
}
.question-box-context-clear:hover {
  opacity: 1;
}

.question-box-collapse {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  font-size: var(--font-size-md);
  flex-shrink: 0;
  margin-left: 6px;
  transition: color 0.2s;
}

.question-box-collapse:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Body */
.question-box-body {
  padding: 10px 14px;
  background: var(--bg-primary, #ffffff);
}

.question-textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-size: var(--font-size-sm);
  font-family: inherit;
  resize: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.question-textarea:focus {
  outline: none;
  border-color: #999;
  box-shadow: none;
}

.question-textarea::placeholder {
  color: #9ca3af;
}

/* Footer */
.question-box-footer {
  padding: 8px 14px;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: flex-end;
  background: var(--bg-primary, #ffffff);
}

/* Shared button styles */
.btn-secondary,
.btn-primary {
  padding: 6px 14px;
  border-radius: 2px;
  font-size: var(--font-size-xs);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.btn-secondary {
  background: white;
  color: #666;
  border-color: #ddd;
}

.btn-secondary:hover {
  background: #f5f5f5;
  border-color: #999;
}

.btn-primary {
  background: #333;
  color: white;
  border-color: #333;
}

.btn-primary:hover:not(:disabled) {
  background: #222;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-loader {
  display: inline-block;
}

/* Risk Criteria Textarea */
.risk-criteria-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: var(--font-size-lg);
  font-family: inherit;
  resize: vertical;
  transition: all 0.2s;
  box-sizing: border-box;
}

.risk-criteria-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.risk-criteria-textarea::placeholder {
  color: #9ca3af;
}

.risk-criteria-search-btn {
  padding: 10px 20px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: var(--font-size-lg);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 100px;
}

.risk-criteria-search-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.search-mode-options {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 2px;
  transition: border-color 0.2s;
  background: white;
}

.radio-option:hover {
  border-color: #999;
  background: #fafafa;
}

.radio-option input[type="radio"] {
  cursor: pointer;
}

.radio-option input[type="radio"]:checked + span {
  color: #333;
  font-weight: 600;
}

.radio-option span {
  font-size: var(--font-size-sm);
  color: #666;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 2px;
  transition: border-color 0.2s;
  background: white;
}

.checkbox-option:hover {
  border-color: #999;
  background: #fafafa;
}

.checkbox-option input[type="checkbox"] {
  cursor: pointer;
  width: 14px;
  height: 14px;
}

.checkbox-option span {
  font-size: var(--font-size-sm);
  color: #666;
}

.checkbox-option input[type="checkbox"]:checked + span {
  color: #333;
  font-weight: 600;
}

.info-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #999;
  font-size: var(--font-size-xs);
  font-weight: 400;
}

.info-icon {
  color: #999;
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #666;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Results Panel Styles */

.results-panel {
  position: fixed;
  right: -400px;
  top: calc(var(--menu-bar-height, 50px) + 0.5rem);
  height: calc(100vh - var(--menu-bar-height, 50px) - 1rem);
  width: 400px;
  background: var(--gd-base, #0d1117);
  box-shadow: var(--shadow-lg);
  border-left: 1px solid var(--gd-rim, #212d3f);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}

.results-panel.active {
  right: 0;
}

.results-header {
  padding: 10px 16px;
  background: linear-gradient(to bottom, #1a1f2e, #2a3142);
  border-bottom: 1px solid var(--gd-header-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  border-top-left-radius: var(--radius-lg);
}

.results-header h3 {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--text-on-dark, #e0e0e0);
  font-weight: 600;
}

.close-results {
  background: none;
  border: none;
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  transition: color 0.2s;
}

.close-results:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Chat-style messages area */
.ask-messages {
  flex: 1;
  min-height: 80px;
  overflow-y: auto;
  padding: 12px;
  background: var(--gd-base, #0d1117);
}

.ask-messages .ai-msg {
  padding: 8px 10px;
  margin: 4px 0;
  border-radius: 4px;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: var(--gd-text-hi, #e8edf5);
}

.ask-messages .ai-msg.user {
  background: var(--gd-elevated, #1a2333);
  margin-left: 20%;
  color: var(--gd-text-mid, #8fa3bd);
}

.ask-messages .ai-msg.assistant {
  background: var(--gd-surface, #131a24);
  border-left: 2px solid var(--gd-amber, #e07b00);
  color: var(--gd-text-hi, #e8edf5);
}

.ask-messages .ai-msg.answer strong {
  color: #fff;
  font-weight: 600;
}

.ask-messages .ai-msg.loading {
  color: var(--gd-text-mid, #8fa3bd);
  font-style: italic;
}

.ask-messages .ai-msg.error {
  background: var(--gd-red-dim, rgba(217, 64, 64, 0.12));
  border-left: 2px solid var(--gd-red, #d94040);
  color: #f5a5a5;
}

/* "How did I do this?" button */
.ask-how-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 2px 0 6px;
}

.ask-how-btn {
  background: none;
  border: none;
  color: var(--gd-text-low, #4d6078);
  font-size: var(--font-size-xs);
  cursor: pointer;
  padding: 2px 0;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

.ask-how-btn:hover {
  color: var(--gd-text-mid, #8fa3bd);
}

/* Report-error flow (link-button → anchored popover → reported + retract).
   The popover card itself comes from .ask-how-popover; these rules add the
   report-specific innards. */
.ask-report-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ask-report-popover {
  width: 280px;
}

.ask-report-popover .ask-report-note {
  width: 100%;
  box-sizing: border-box;
  background: var(--gd-base, #0b111a);
  border: 1px solid var(--gd-rim, #212d3f);
  border-radius: 4px;
  color: var(--gd-text-hi, #e8edf5);
  font-family: inherit;
  font-size: var(--font-size-xs);
  line-height: 1.5;
  padding: 6px 8px;
  resize: none;
}

.ask-report-popover .ask-report-note::placeholder {
  color: var(--gd-text-low, #4d6078);
}

.ask-report-popover .ask-report-note:focus {
  outline: none;
  border-color: var(--gd-text-low, #4d6078);
}

.ask-report-fail {
  color: var(--gd-amber, #f59e0b);
  font-size: var(--font-size-xs);
  margin-top: 6px;
}

.ask-report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.ask-report-cancel,
.ask-report-submit {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.ask-report-cancel {
  background: transparent;
  border: 1px solid var(--gd-rim, #212d3f);
  color: var(--gd-text-mid, #8fa3bd);
}

.ask-report-cancel:hover {
  border-color: var(--gd-text-low, #4d6078);
}

.ask-report-submit {
  background: var(--gd-amber, #f59e0b);
  border: 1px solid transparent;
  color: #000;
}

.ask-report-submit:hover {
  opacity: 0.85;
}

.ask-report-cancel:disabled,
.ask-report-submit:disabled {
  opacity: 0.5;
  cursor: default;
}

.ask-report-status {
  color: var(--gd-text-low, #4d6078);
  font-size: var(--font-size-xs);
}

/* "How" popover */
.ask-how-popover {
  position: fixed;
  background: var(--gd-surface, #131a24);
  border: 1px solid var(--gd-rim, #212d3f);
  border-radius: 6px;
  padding: 10px 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  z-index: 10001;
  max-width: 420px;
  max-height: 320px;
  overflow-y: auto;
}

.ask-how-title {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--gd-text-mid, #8fa3bd);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gd-rim, #212d3f);
}

/* Tabs (Steps | JSON) — mirrors the .detail-tab accent-underline idiom */
.ask-how-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 8px;
}

.ask-how-tab {
  background: transparent;
  border: none;
  padding: 3px 8px;
  color: var(--gd-text-low, #4d6078);
  font-size: var(--font-size-xs);
  font-weight: 500;
  cursor: pointer;
}

.ask-how-tab:hover {
  color: var(--gd-text-mid, #8fa3bd);
}

.ask-how-tab.active {
  color: var(--gd-accent, #4fc3f7);
  border-bottom: 2px solid var(--gd-accent, #4fc3f7);
}

.ask-how-pane {
  display: none;
}

.ask-how-pane.active {
  display: block;
}

/* JSON pane — pretty-printed profile/plan config */
.ask-how-json {
  margin: 0;
  font-family: var(--gd-font-mono);
  font-size: var(--font-size-xs);
  line-height: 1.4;
  color: var(--gd-text-hi, #e8edf5);
  white-space: pre-wrap;
  word-break: break-word;
}

.ask-how-section {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--gd-text-hi, #e8edf5);
  margin: 6px 0 3px;
}

.ask-how-section:first-of-type {
  margin-top: 0;
}

.ask-how-detail {
  font-size: var(--font-size-xs);
  color: var(--gd-text-mid, #8fa3bd);
  line-height: 1.5;
  padding: 1px 0;
}

.ask-how-step {
  font-size: var(--font-size-xs);
  color: var(--gd-text-hi, #e8edf5);
  padding: 3px 0 3px 8px;
  border-left: 2px solid var(--gd-rim, #212d3f);
  margin: 2px 0;
  line-height: 1.5;
}

.ask-how-step-num {
  color: var(--gd-accent, #4fc3f7);
  font-weight: 600;
  margin-right: 4px;
}

.ask-how-unavail {
  color: var(--gd-text-low, #4d6078);
  font-style: italic;
}

.ask-how-mono {
  font-family: var(--gd-font-mono);
  font-size: var(--font-size-xs);
  color: var(--gd-amber, #e07b00);
  background: var(--gd-amber-dim, rgba(224, 123, 0, 0.15));
  padding: 1px 4px;
  border-radius: 2px;
}

/* Input area at bottom of panel */
.ask-input-area {
  flex-shrink: 0;
  padding: 10px 12px;
  border-top: 1px solid var(--gd-rim, #212d3f);
  background: var(--gd-base, #0d1117);
}

.ask-input-box {
  width: 100%;
  background: var(--gd-surface, #131a24);
  border: 1px solid var(--gd-rim, #212d3f);
  min-height: 60px;
  resize: none;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: var(--font-size-sm);
  font-family: inherit;
  box-sizing: border-box;
  color: var(--gd-text-hi, #e8edf5);
  transition: border-color 0.2s;
}

.ask-input-box:focus {
  outline: none;
  border-color: var(--gd-amber, #e07b00);
  box-shadow: 0 0 0 2px var(--gd-amber-dim, rgba(224, 123, 0, 0.15));
}

.ask-input-box::placeholder {
  color: var(--gd-text-low, #4d6078);
}

.ask-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.ask-clear-btn {
  background: none;
  border: 1px solid var(--gd-rim, #212d3f);
  border-radius: 2px;
  padding: 4px 10px;
  font-size: var(--font-size-xs);
  color: var(--gd-text-mid, #8fa3bd);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ask-clear-btn:hover {
  border-color: var(--gd-stroke, #2a3a52);
  color: var(--gd-text-hi, #e8edf5);
}

/* Header left section in results panel */
.results-header .question-box-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.results-header .question-box-header-left h3 {
  margin: 0;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-on-dark, #e0e0e0);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.results-question {
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.results-summary {
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.results-summary strong {
  color: var(--text-primary);
  font-weight: 600;
}

.results-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: white;
}

.result-item {
  margin-bottom: 10px;
  padding: 12px;
  background: #fafafa;
  border-radius: 2px;
  border: 1px solid #ddd;
}

.result-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.result-number {
  background: #666;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs);
  font-weight: 600;
}

.result-score {
  background: #f5f5f5;
  color: #666;
  padding: 3px 6px;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.result-report {
  color: #999;
  font-size: var(--font-size-xs);
  margin-left: auto;
  font-family: var(--gd-font-mono);
}

.result-sentence {
  color: #333;
  line-height: 1.5;
  font-size: var(--font-size-xs);
}

.result-sentence strong {
  color: #1f2937;
  font-weight: 600;
}

.result-sentence p {
  margin: 4px 0;
}

.no-results {
  text-align: center;
  padding: 30px 16px;
  color: #999;
  font-size: var(--font-size-sm);
}

/* Ask results — 3-section layout */

.ask-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 0;
}

.ask-section-title {
  font-size: var(--font-size-2xs);
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.ask-timestamp {
  font-size: var(--font-size-2xs);
  color: #aaa;
  font-family: var(--gd-font-mono);
}

.ask-summary {
  margin: 6px 16px 0;
  padding: 8px 10px;
  background: #f8f8f8;
  border: 1px solid #e5e5e5;
  border-left: 2px solid #cc6600;
  border-radius: 2px;
  line-height: 1.5;
  color: #444;
  font-size: var(--font-size-xs);
}

.ask-summary strong {
  color: #1a1a1a;
  font-weight: 600;
}
.ask-divider {
  height: 1px;
  background: #e5e5e5;
  margin: 8px 16px;
}

.ask-evidence-section {
  padding: 0 16px;
}

.ask-evidence-section-label {
  font-size: var(--font-size-2xs);
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 0 6px;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 6px;
}

.ask-evidence-count {
  font-family: var(--gd-font-mono);
  color: #cc6600;
  margin-left: 4px;
}

.intel-card {
  background: #f8f8f8;
  border: 1px solid #e5e5e5;
  border-radius: 2px;
  padding: 8px 10px;
  margin-bottom: 6px;
  overflow: hidden;
}

.intel-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.intel-card-icon {
  width: 18px;
  height: 18px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xs);
  font-weight: 700;
  color: #fff;
  background: #666;
  flex-shrink: 0;
}

.intel-card-icon.high {
  background: #b91c1c;
}
.intel-card-icon.medium {
  background: #d97706;
}
.intel-card-icon.low {
  background: #2563eb;
}
.intel-card-icon.connection {
  background: #475569;
}

.intel-card-title {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: #222;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.intel-card-subtitle {
  font-size: var(--font-size-2xs);
  color: #999;
  font-family: var(--gd-font-sans);
  text-transform: uppercase;
  flex-shrink: 0;
}

.intel-card-entity {
  display: inline-block;
  font-size: var(--font-size-2xs);
  font-family: var(--gd-font-mono);
  color: #999;
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 1px dashed #e5e5e5;
  width: 100%;
}

.intel-card-body {
  font-size: var(--font-size-xs);
  color: #555;
  line-height: 1.45;
  overflow-wrap: break-word;
  word-break: break-word;
}

.intel-card-body p {
  font-size: inherit;
  line-height: inherit;
  margin: 2px 0;
}

.intel-card-body p:first-child {
  margin-top: 0;
}
.intel-card-body p:last-child {
  margin-bottom: 0;
}

.intel-card-body .metric {
  display: inline;
  font-family: var(--gd-font-mono);
  font-size: var(--font-size-xs);
  background: rgba(204, 102, 0, 0.08);
  color: #cc6600;
  padding: 1px 4px;
  border-radius: 2px;
}

.ask-no-detail {
  color: #bbb;
  font-style: italic;
}

.ask-footer {
  border-top: 1px solid #e5e5e5;
  padding: 8px 16px;
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.ask-footer-stat {
  font-size: var(--font-size-xs);
  color: #666;
  font-weight: 500;
  margin-right: auto;
}

.ask-overflow {
  font-size: var(--font-size-xs);
  color: #999;
  font-style: italic;
  padding: 2px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #floating-question-box:not(.retracted) {
    right: 0 !important;
    left: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    border-radius: 8px 8px 0 0;
  }

  .results-panel {
    width: 100%;
    right: -100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .results-panel.active {
    right: 0;
  }

  .question-textarea {
    background: #111827;
    border-color: #374151;
    color: #f3f4f6;
  }

  .question-textarea:focus {
    border-color: #3b82f6;
  }

  .btn-secondary {
    background: #374151;
    color: #f3f4f6;
  }

  .btn-secondary:hover {
    background: #4b5563;
  }

  .result-item {
    background: #111827;
    border-color: #374151;
  }

  .result-sentence {
    color: #e5e7eb;
  }
}

/* Ask toast notification */
.ask-toast {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(30, 30, 30, 0.95);
  color: #fff;
  padding: 14px 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  font-size: var(--font-size-md, 12px);
  line-height: 1.4;
  max-width: 480px;
  text-align: center;
  z-index: 10001;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.ask-toast.visible {
  opacity: 1;
  transform: translate(-50%, -50%);
}
