* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f1117;
  color: #e6e6e6;
  margin: 0;
  padding: 0;
}
.app-layout { display: flex; min-height: 100vh; }
.main-content { flex: 1; overflow-y: auto; padding: 2rem; max-width: 920px; }

.sidebar {
  width: 280px;
  background: #11141c;
  border-right: 1px solid #232838;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-header {
  padding: 14px 16px;
  border-bottom: 1px solid #232838;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sidebar-header h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #9aa0aa;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.new-thread-btn {
  padding: 5px 10px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}
.thread-list { flex: 1; overflow-y: auto; padding: 8px; }
.thread-item {
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 4px;
  position: relative;
}
.thread-item:hover { background: #1b1f2a; }
.thread-item.active { background: #232838; }
.thread-item .thread-title {
  font-size: 13px;
  font-weight: 500;
  color: #e6e6e6;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 18px;
}
.thread-item .thread-meta { font-size: 11px; color: #888; }
.thread-item .thread-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  color: #666;
  border: none;
  padding: 0 4px;
  font-size: 14px;
  cursor: pointer;
  display: none;
}
.thread-item:hover .thread-delete { display: block; }
.thread-item .thread-delete:hover { color: #ffb4b4; }
.sidebar-footer {
  padding: 10px;
  border-top: 1px solid #232838;
  display: flex;
  gap: 6px;
}
.sidebar-footer button { flex: 1; }

/* Sidebar collapse button (inside header) */
.sidebar-collapse {
  background: transparent;
  border: none;
  color: #9aa0aa;
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
}
.sidebar-collapse:hover { color: #e6e6e6; background: #1b1f2a; }

/* Sidebar toggle button (hamburger, shows when collapsed or on mobile) */
.sidebar-toggle {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  background: #1b1f2a;
  color: #9aa0aa;
  border: 1px solid #232838;
  border-radius: 6px;
  font-size: 18px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.sidebar-toggle:hover { color: #e6e6e6; background: #232838; }

/* Sidebar overlay (mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}

/* Collapsed state (desktop) */
.sidebar.collapsed {
  width: 0;
  min-width: 0;
  overflow: hidden;
  border-right: none;
  padding: 0;
}
.sidebar { transition: width 0.2s ease, min-width 0.2s ease; }

/* Show toggle when sidebar is collapsed on desktop */
.sidebar.collapsed ~ .main-content ~ .nothing,
.app-layout:has(.sidebar.collapsed) .sidebar-toggle { display: flex; }

/* Mobile responsive */
@media (max-width: 768px) {
  .sidebar-toggle { display: flex; }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay.active {
    display: block;
  }
  .main-content { max-width: 100%; padding: 1rem; padding-top: 56px; }
  h1 { font-size: 1.4rem; }
  .hint { font-size: 0.85rem; }
  /* Stack form on narrow screens */
  form { flex-wrap: wrap; }
  form input[type=text] { flex: 1 1 100%; font-size: 16px; min-height: 44px; }
  form button { flex: 1 1 auto; min-height: 44px; }
  /* Chart responsiveness */
  canvas { max-height: 220px; }
  /* Table scroll */
  .data-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { font-size: 0.82rem; }
  td, th { padding: 6px 8px; white-space: nowrap; }
  /* Examples */
  #examples { font-size: 0.9rem; }
  #examples ol { padding-left: 1.2rem; }
  /* Clarification cards */
  .clarification-options { gap: 6px; }
  .clarification-option { padding: 10px 12px; min-height: 44px; }
}
/* Safe area insets for notched phones */
@supports (padding: max(0px)) {
  .main-content { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
}

.stats-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
}
.stats-content {
  background: #161a23;
  border: 1px solid #232838;
  border-radius: 8px;
  padding: 1.5rem 2rem;
  max-width: 600px;
  width: 90%;
  position: relative;
}
.stats-content h2 { margin-top: 0; }
.stats-content .close-btn {
  position: absolute; top: 8px; right: 12px;
  background: transparent; border: none; color: #888;
  font-size: 22px; cursor: pointer;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 1rem 0;
}
.stat-card {
  background: #1b1f2a;
  border: 1px solid #2a3040;
  border-radius: 6px;
  padding: 14px;
  text-align: center;
}
.stat-value {
  font-family: Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #f2f2f2;
}
.stat-label {
  font-size: 11px;
  color: #9aa0aa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}
.stats-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 1rem; }
main { max-width: 880px; margin: 0 auto; }

.security-indicator {
  position: absolute;
  top: 14px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #9aa0aa;
  background: #1b1f2a;
  border: 1px solid #2a3040;
  padding: 5px 9px;
  border-radius: 4px;
}
.security-dot { width: 8px; height: 8px; border-radius: 50%; background: #888; }
.security-dot.healthy { background: #4caf50; }
.security-dot.unhealthy { background: #f44336; }
.security-dot.checking { background: #ff9800; animation: secpulse 1.2s infinite; }
@keyframes secpulse { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }

.qa-card.blocked { border-left: 3px solid #ff9800; }
.qa-card.blocked .insight { font-style: italic; color: #c8c8c8; }
h1 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.brand-sub {
  color: #8a93a8;
  font-weight: 400;
}
.hint { color: #9aa0aa; margin-bottom: 1.5rem; }
code { background: #1b1f2a; padding: 0 0.25rem; border-radius: 3px; }

form { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
input[type=text] {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background: #1b1f2a;
  color: #e6e6e6;
  border: 1px solid #2a3040;
  border-radius: 6px;
}
button {
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
button:hover { background: #2563eb; }

#status { color: #9aa0aa; margin-bottom: 1rem; min-height: 1em; }

section { margin-top: 1.5rem; }
h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; color: #9aa0aa; margin-bottom: 0.5rem; }
pre {
  background: #1b1f2a;
  border: 1px solid #2a3040;
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  white-space: pre-wrap;
  color: #d0d7e2;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #1b1f2a;
  border-radius: 6px;
  overflow: hidden;
}
th, td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #2a3040;
  font-variant-numeric: tabular-nums;
}
th { background: #242a38; color: #9aa0aa; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }

/* ----- conversation thread ----- */
.conversation-thread {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.qa-card {
  background: #161a23;
  border: 1px solid #232838;
  border-radius: 8px;
  overflow: hidden;
}
.qa-card.chained { border-left: 3px solid #5b7ff5; }
.qa-card.error { border-color: #5a2c2c; }
.question-bubble {
  background: #232838;
  color: #e6e6e6;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.question-text { font-family: Georgia, "Times New Roman", serif; font-size: 1rem; }
.timestamp { font-size: 0.75rem; color: #888; }
.answer-section { padding: 1.25rem 1.5rem; }
.loading-indicator { color: #9aa0aa; font-style: italic; }
.loading-spinner {
  width: 64px;
  height: 64px;
  vertical-align: middle;
  margin-right: 0.4rem;
}

/* ----- analyst output ----- */
.insight {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  color: #f2f2f2;
  margin: 0 0 0.75rem;
  border-left: 3px solid #d62728;
  padding-left: 0.85rem;
}
.analysis {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #c8c8c8;
  margin: 0 0 1rem 0.85rem;
}
.snapshot-byline {
  margin: 0 0 0.5rem 0.85rem;
  color: #8a93a8;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.chart-container {
  position: relative;
  height: 320px;
  margin: 1rem 0 0.5rem;
  background: #f8f8f6;
  border-radius: 6px;
  padding: 1.25rem 1.5rem 1rem;
}
.annotations { margin: 0.25rem 0 1rem; font-family: Georgia, serif; font-size: 0.9rem; color: #c8c8c8; }
.annotation { margin: 0.2rem 0; padding-left: 1rem; position: relative; }
.annotation .marker { display: inline-block; width: 0.6rem; height: 0.6rem; background: #d62728; border-radius: 50%; position: absolute; left: 0; top: 0.4rem; }
.caveats { font-size: 0.85rem; color: #9aa0aa; font-style: italic; margin-top: 0.5rem; }

/* --- Refinement breadcrumb --- */
.refinement-breadcrumb { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; font-size: 0.8rem; color: #8a93a8; }
.refinement-arrow { color: #5b7ff5; }
.refinement-parent-link { color: #5b7ff5; cursor: pointer; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.refinement-parent-link:hover { text-decoration: underline; }
.refinement-focus-btn { margin-left: auto; background: none; border: 1px solid #2a3040; border-radius: 4px; color: #8a93a8; cursor: pointer; padding: 2px 6px; font-size: 0.75rem; display: flex; align-items: center; gap: 4px; }
.refinement-focus-btn:hover { background: #1e2230; color: #c8c8c8; border-color: #5b7ff5; }
.refinement-focus-btn.active { background: #1e2640; color: #5b7ff5; border-color: #5b7ff5; }

/* --- Focus bar --- */
.focus-bar { background: #1e2640; border: 1px solid #2a3858; border-radius: 6px; padding: 0.6rem 1rem; display: none; align-items: center; justify-content: space-between; font-size: 0.85rem; color: #8a93a8; margin-bottom: 1rem; }
.focus-bar.visible { display: flex; }
.focus-bar-dismiss { color: #5b7ff5; cursor: pointer; background: none; border: none; font-size: 0.85rem; }
.focus-bar-dismiss:hover { text-decoration: underline; }

/* --- Focus mode --- */
.conversation-thread.focus-mode .qa-card:not(.focus-visible) { display: none; }

.refine-row { display: flex; gap: 0.5rem; padding: 0.75rem 0 0; margin-top: 0.75rem; border-top: 1px solid #232838; }
.refine-input { flex: 1; background: #1e2230; border: 1px solid #2a3040; border-radius: 4px; color: #e0e0e0; padding: 0.4rem 0.6rem; font-size: 0.85rem; font-family: inherit; outline: none; }
.refine-input:focus { border-color: #3b82f6; }
.refine-input::placeholder { color: #6b7280; }
.refine-btn { background: #2a3040; color: #c8c8c8; border: 1px solid #3a4050; border-radius: 4px; padding: 0.4rem 0.75rem; font-size: 0.85rem; cursor: pointer; white-space: nowrap; }
.refine-btn:hover { background: #3a4050; color: #f0f0f0; }
.loading-hint { color: #8a93a8; font-style: italic; font-size: 0.9rem; padding: 1rem 0; }

details.query-details { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid #232838; }
details.query-details summary { cursor: pointer; color: #888; font-size: 0.8rem; }
details.query-details[open] summary { color: #c8c8c8; }
.qa-card .error-msg { background: #2a1b1b; color: #ffb4b4; padding: 0.75rem 1rem; border-radius: 4px; margin: 0; }

#examples ul { padding-left: 1.25rem; }
#examples a { color: #3b82f6; text-decoration: none; }
#examples a:hover { text-decoration: underline; }

.attempt { margin-bottom: 0.75rem; border: 1px solid #2a3040; border-radius: 6px; overflow: hidden; }
.attempt-header { padding: 0.4rem 0.75rem; font-size: 0.85rem; background: #242a38; color: #9aa0aa; text-transform: uppercase; letter-spacing: 0.03em; }
.attempt.ok .attempt-header { color: #7ed4a3; }
.attempt.error .attempt-header { color: #ffb4b4; }
.attempt pre { margin: 0; border: none; border-radius: 0; }
.attempt .query { background: #1b1f2a; }
.attempt .error-msg { background: #2a1b1b; color: #ffb4b4; border-top: 1px solid #2a3040; }

.snippet { background: #1b2a1f; border-color: #2c4a35; color: #c8e6c9; }
.actions { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
button.secondary { background: #2a3040; }
button.secondary:hover { background: #353c50; }
button.tiny { padding: 0.2rem 0.5rem; font-size: 0.75rem; vertical-align: middle; margin-left: 0.5rem; }
.history-list { list-style: none; padding-left: 0; margin: 0 0 0.75rem 0; }
.history-list li { padding: 0.35rem 0; border-bottom: 1px solid #2a3040; font-size: 0.9rem; }
.history-list code { color: #ffd479; }

/* === Share button + share menu === */

.card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 0.25rem;
}
.card-actions .share-btn:first-of-type {
  margin-left: auto;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: #1f2533;
  border: 1px solid #2a3040;
  border-radius: 6px;
  color: #cfd6e6;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.share-btn:hover {
  background: #262d40;
  border-color: #394057;
  color: #fff;
}
.share-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* Share dropdown */
.share-dropdown-wrap { position: relative; display: inline-block; }
.share-dropdown {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  background: #1a1d27;
  border: 1px solid #2a3040;
  border-radius: 8px;
  min-width: 180px;
  padding: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 50;
}
.share-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  border-radius: 6px;
  color: #cfd6e6;
  font-size: 0.82rem;
  cursor: pointer;
  text-align: left;
}
.share-dropdown-item:hover { background: #262d40; color: #fff; }
.share-dropdown-item svg { flex-shrink: 0; }

/* === Clarification card === */
.qa-card.clarification { border-color: #4a9eff33; }
.clarify-ambiguity {
  color: #cfd6e6;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.clarify-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.clarify-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.75rem 1rem;
  background: #1f2533;
  border: 1px solid #2a3040;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.clarify-option:hover {
  background: #262d40;
  border-color: #4a9eff;
}
.clarify-label {
  font-weight: 600;
  color: #e6ebf5;
  font-size: 0.95rem;
}
.clarify-desc {
  color: #8a93a8;
  font-size: 0.85rem;
  margin-top: 0.15rem;
}
.clarify-freeform {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #2a3040;
}
.clarify-freeform label {
  display: block;
  color: #8a93a8;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.clarify-freeform-row {
  display: flex;
  gap: 0.5rem;
}
.clarify-input {
  flex: 1;
  padding: 0.6rem 0.75rem;
  background: #1a1f2b;
  border: 1px solid #2a3040;
  border-radius: 6px;
  color: #e6ebf5;
  font-size: 0.9rem;
}
.clarify-input:focus {
  outline: none;
  border-color: #4a9eff;
}
.clarify-submit {
  padding: 0.6rem 1rem;
  background: #4a9eff;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}
.clarify-submit:hover { background: #3a8ae6; }
.clarify-skip {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: #666;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}
.clarify-skip:hover { color: #aaa; }

/* === Feedback === */
.feedback-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.feedback-prompt {
  font-size: 0.8rem;
  color: #666;
  margin-right: 0.2rem;
}
.feedback-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 1px solid #2a3040;
  border-radius: 6px;
  cursor: pointer;
  color: #8a93a8;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.feedback-btn:disabled { cursor: default; }
.feedback-up:hover:not(:disabled) { border-color: #22c55e; color: #22c55e; background: rgba(34, 197, 94, 0.08); }
.feedback-down:hover:not(:disabled) { border-color: #ef4444; color: #ef4444; background: rgba(239, 68, 68, 0.08); }
.feedback-btn.feedback-selected {
  border-color: #4a9eff;
  color: #4a9eff;
  background: rgba(74, 158, 255, 0.1);
  cursor: default;
}
.feedback-thanks {
  font-size: 0.8rem;
  color: #22c55e;
}
.feedback-form {
  background: #1a1f2b;
  border: 1px solid #2a3040;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 0.75rem;
}
.feedback-form-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #cfd6e6;
  margin: 0 0 0.75rem;
}
.feedback-issues {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.feedback-issue {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #8a93a8;
  cursor: pointer;
}
.feedback-issue input { cursor: pointer; }
.feedback-comment {
  width: 100%;
  min-height: 60px;
  padding: 0.6rem;
  background: #0f1117;
  border: 1px solid #2a3040;
  border-radius: 6px;
  color: #e6ebf5;
  font-size: 0.85rem;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 0.75rem;
}
.feedback-comment:focus {
  outline: none;
  border-color: #4a9eff;
}
.feedback-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}
.feedback-cancel {
  padding: 0.4rem 0.8rem;
  background: transparent;
  border: 1px solid #2a3040;
  border-radius: 6px;
  color: #8a93a8;
  font-size: 0.85rem;
  cursor: pointer;
}
.feedback-cancel:hover { background: #1f2533; }
.feedback-submit {
  padding: 0.4rem 0.8rem;
  background: #4a9eff;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.feedback-submit:hover { background: #3a8ae6; }
.feedback-submit:disabled { background: #2a5080; cursor: not-allowed; }

.share-btn svg { flex-shrink: 0; }

.app-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #1f2533;
  border: 1px solid #2a3040;
  color: #e6ebf5;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 1000;
}
.app-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.app-toast.error {
  border-color: #6b2d2d;
  background: #2a1b1b;
  color: #ffcece;
}

/* === "Columnbo is broke" error card === */
.qa-card.broke {
  border-color: #5a3a1f;
  background: #241a12;
}
.broke-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 0.5rem 0.25rem;
}
.broke-img {
  width: 180px;
  height: auto;
  flex-shrink: 0;
  border-radius: 10px;
}
.broke-text h3 {
  margin: 0 0 0.5rem 0;
  color: #f0c987;
  font-size: 1.15rem;
}
.broke-text p {
  margin: 0;
  color: #d5c6a1;
  line-height: 1.5;
}
.broke-text a { color: #f0c987; }
@media (max-width: 600px) {
  .broke-card { flex-direction: column; align-items: center; text-align: center; }
  .broke-img { width: 140px; }
}

/* Top indicators bar */
.top-indicators {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.user-indicator select {
  background: #1a1d27;
  color: #9ec9a3;
  border: 1px solid #2e3340;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.78rem;
  cursor: pointer;
}
.user-indicator select:hover { border-color: #5ec269; }

/* Convention items in feedback form */
.feedback-conventions {
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(224, 160, 80, 0.06);
  border-radius: 6px;
  border: 1px solid rgba(224, 160, 80, 0.15);
}
.feedback-conv-title {
  font-size: 0.82rem;
  color: #e0a050;
  margin: 0 0 6px;
  cursor: pointer;
  list-style: none;
}
.feedback-conv-title::marker { content: ''; }
.feedback-conv-title::before { content: '\25b6  '; font-size: 0.7rem; }
details[open] > .feedback-conv-title::before { content: '\25bc  '; }
.feedback-conv-list { margin-top: 6px; }
.feedback-conv-item code {
  background: #2a2f3a;
  color: #e0a050;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.8rem;
}

/* Feedback convention suggestions */
.feedback-suggestion {
  margin-top: 12px;
  padding: 12px;
  background: rgba(108, 158, 255, 0.06);
  border: 1px solid rgba(108, 158, 255, 0.15);
  border-radius: 8px;
}
.feedback-suggestion-msg {
  font-size: 0.85rem;
  color: #9ec9ff;
  margin: 0 0 10px;
}
.feedback-suggestion-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.feedback-suggestion-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #1a1d27;
  border: 1px solid #2e3340;
  border-radius: 6px;
  cursor: pointer;
  color: #e2e4e9;
  font-size: 0.85rem;
  transition: border-color 0.15s;
}
.feedback-suggestion-toggle:hover { border-color: #6c9eff; }
.feedback-suggestion-toggle:has(input:checked) {
  border-color: #6c9eff;
  background: rgba(108, 158, 255, 0.08);
}
.feedback-suggestion-toggle input[type="checkbox"] {
  accent-color: #6c9eff;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.feedback-suggestion-label { font-weight: 500; }
.feedback-suggestion-desc { color: #8b8f9a; font-size: 0.8rem; }
.feedback-suggestion-target {
  margin-left: auto;
  background: #232733;
  color: #5ec269;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.75rem;
}
.feedback-suggestion-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.feedback-suggestion-save {
  padding: 6px 16px;
  background: #206bc4;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}
.feedback-suggestion-save:disabled {
  opacity: 0.4;
  cursor: default;
}
.feedback-suggestion-save:not(:disabled):hover { background: #2a7de0; }
.feedback-suggestion-skip {
  padding: 6px 16px;
  background: none;
  color: #6c757d;
  border: 1px dashed #3a3f4a;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}
.feedback-suggestion-skip:hover { border-color: #6c757d; }

/* Learned convention notice */
.learned-notice {
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(94, 194, 105, 0.08);
  border-left: 3px solid #5ec269;
  border-radius: 0 6px 6px 0;
  font-size: 0.82rem;
  color: #9ec9a3;
}
