/* MemRL Demo — Light High-Contrast Theme */
:root {
  --bg-primary: #f5f5f7;
  --bg-panel: #ffffff;
  --bg-card: #f0f1f4;
  --bg-input: #e8eaef;
  --border: #c4c8d4;
  --border-active: #4a5baa;
  --text-primary: #111318;
  --text-secondary: #4a4f5e;
  --text-muted: #7c8294;
  --accent: #3b4fc4;
  --accent-hover: #4d62d0;
  --green: #15803d;
  --green-dim: #dcfce7;
  --red: #b91c1c;
  --red-dim: #fee2e2;
  --yellow: #92400e;
  --yellow-dim: #fef3c7;
  --blue: #1d4ed8;
  --purple: #6d28d9;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --transition: 150ms ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.5;
  overflow: hidden;
}

#app {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  height: 100vh;
  min-width: 1200px;
}

#site-credit {
  text-align: center;
  padding: 4px 0;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
}

#site-credit a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

#site-credit a:hover {
  text-decoration: underline;
}

/* Paper Reference Header */
#paper-reference {
  background: var(--bg-panel);
  border-bottom: 2px solid var(--border);
  padding: 8px 16px;
  font-size: 16px;
}

#paper-reference .header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

#paper-reference .title {
  font-weight: 700;
  color: var(--accent);
}

#paper-reference a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

#paper-reference a:hover {
  text-decoration: underline;
}

#paper-reference .algo-cards {
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 12px 0 4px;
}

#paper-reference.expanded .algo-cards {
  display: grid;
}

.algo-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.algo-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 79, 196, 0.15);
  background: #eef0ff;
}

.algo-card h4 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--accent);
}

/* Main Panels Grid */
#panels {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr 1fr;
  gap: 2px;
  background: var(--border);
  overflow: hidden;
}

.panel {
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-header {
  padding: 10px 14px;
  border-bottom: 2px solid var(--border);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  flex-shrink: 0;
  background: var(--bg-card);
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.panel-body::-webkit-scrollbar {
  width: 6px;
}

.panel-body::-webkit-scrollbar-track {
  background: transparent;
}

.panel-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* Control Panel Footer */
#control-panel {
  background: var(--bg-panel);
  border-top: 2px solid var(--border);
  padding: 10px 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  overflow-x: auto;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-group label {
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
  font-weight: 600;
}

.control-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
  flex-shrink: 0;
}

/* Inputs & Controls */
input[type="text"],
input[type="password"],
input[type="number"],
select {
  background: var(--bg-panel);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  padding: 5px 8px;
  font-size: 15px;
  font-family: var(--font-mono);
  outline: none;
  transition: border-color var(--transition);
}

input:focus, select:focus {
  border-color: var(--accent);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  width: 80px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
}

button {
  background: var(--bg-panel);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  padding: 5px 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

button:hover {
  background: var(--bg-card);
  border-color: var(--border-active);
}

button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

button.primary:hover {
  background: var(--accent-hover);
}

button.danger {
  border-color: var(--red);
  color: var(--red);
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Toggle Switch */
.toggle {
  position: relative;
  width: 36px;
  height: 20px;
  display: inline-block;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle .slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--transition);
}

.toggle .slider::before {
  content: '';
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
}

.toggle input:checked + .slider {
  background: var(--accent);
}

.toggle input:checked + .slider::before {
  transform: translateX(16px);
  background: white;
}

/* World Panel */
.location-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--yellow);
  margin-bottom: 4px;
}

.location-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.task-display {
  background: var(--yellow-dim);
  border: 2px solid #e0c97a;
  border-radius: var(--radius);
  padding: 8px 10px;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 16px;
  color: var(--yellow);
}

.task-display .label {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 800;
  margin-bottom: 2px;
}

.object-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.object-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  padding: 3px 6px;
  border-radius: 3px;
}

.object-item .state-badge {
  font-size: 13px;
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-weight: 600;
}

.state-badge.on { background: var(--green-dim); color: var(--green); }
.state-badge.off { background: var(--red-dim); color: var(--red); }
.state-badge.neutral { background: var(--bg-input); color: var(--text-secondary); }

.inventory {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 8px 10px;
  margin-bottom: 12px;
}

.inventory h4 {
  font-size: 14px;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: 4px;
}

.narrative-log {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.narrative-entry {
  font-size: 15px;
  padding: 6px 8px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border-left: 3px solid var(--border);
}

.narrative-entry.dm { border-left-color: var(--purple); }
.narrative-entry.agent { border-left-color: var(--blue); }
.narrative-entry.system { border-left-color: var(--yellow); }

.step-counter {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: right;
  padding: 4px 0;
}

/* DM Contract & Scratch */
.dm-contract, .dm-scratch {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  margin-bottom: 10px;
}

.dm-contract[open], .dm-scratch[open] {
  border-color: var(--accent);
}

.dm-contract summary, .dm-scratch summary {
  font-weight: 700;
}

.dm-contract-body, .dm-scratch-body {
  margin-top: 8px;
}

.dm-field {
  margin-bottom: 8px;
}

.dm-field-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3px;
  letter-spacing: 0.3px;
}

.dm-field-value {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dm-step {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-primary);
  padding: 1px 0;
}

.dm-condition {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--green);
  font-weight: 600;
}

.dm-axiom {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 1px 0;
  border-left: 2px solid var(--border);
  padding-left: 6px;
}

.dm-scratch-note {
  font-size: 14px;
  padding: 3px 0;
  border-bottom: 1px solid var(--bg-input);
  line-height: 1.5;
}

.dm-scratch-note:last-child {
  border-bottom: none;
}

.dm-scratch-idx {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  margin-right: 4px;
}

/* Retrieval Inspector */
.phase-section {
  margin-bottom: 16px;
}

.phase-section h3 {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.similarity-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  font-family: var(--font-mono);
  min-height: 20px;
  line-height: 1.3;
}

.similarity-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-input);
  border-radius: 4px;
  overflow: hidden;
}

.similarity-bar .fill {
  height: 100%;
  border-radius: 4px;
  transition: width 300ms ease;
}

.similarity-bar .fill.above { background: var(--green); }
.similarity-bar .fill.below { background: var(--text-muted); }

.threshold-line {
  border-top: 2px dashed var(--yellow);
  position: relative;
  margin: 12px 0 8px;
  display: flex;
  justify-content: flex-end;
}

.threshold-line::after {
  content: attr(data-label);
  position: relative;
  top: 2px;
  font-size: 12px;
  color: var(--yellow);
  font-weight: 700;
  font-family: var(--font-mono);
}

/* Scoring Table (Phase B) */
.scoring-table {
  width: 100%;
  font-size: 14px;
  font-family: var(--font-mono);
  border-collapse: collapse;
}

.scoring-table th {
  text-align: left;
  padding: 4px 6px;
  border-bottom: 2px solid var(--border);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
}

.scoring-table td {
  padding: 4px 6px;
  border-bottom: 1px solid var(--bg-card);
}

.scoring-table tr.selected {
  background: rgba(59, 79, 196, 0.08);
}

.scoring-table tr.selected td:first-child {
  border-left: 3px solid var(--accent);
}

/* Context Preview */
.context-preview {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
}

/* Memory Bank Viewer */
.memory-table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
}

.memory-table th {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 2px solid var(--border);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
}

.memory-table th:hover {
  color: var(--text-primary);
}

.memory-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--bg-card);
  vertical-align: middle;
}

.q-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.q-bar .bar {
  flex: 1;
  height: 10px;
  background: var(--bg-input);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.q-bar .bar .fill {
  height: 100%;
  border-radius: 5px;
  transition: width 500ms ease, background 500ms ease;
  position: absolute;
  left: 50%;
}

.q-bar .bar .fill.positive {
  background: var(--green);
  transform-origin: left;
}

.q-bar .bar .fill.negative {
  background: var(--red);
  transform-origin: right;
}

.q-bar .value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  min-width: 40px;
  text-align: right;
}

.memory-expand {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  margin: 4px 0 8px;
  font-size: 15px;
  line-height: 1.6;
}

@keyframes memoryGlow {
  0% { box-shadow: 0 0 0 0 rgba(59, 79, 196, 0.4); }
  50% { box-shadow: 0 0 16px 2px rgba(59, 79, 196, 0.2); }
  100% { box-shadow: 0 0 0 0 rgba(59, 79, 196, 0); }
}

.memory-new {
  animation: memoryGlow 1.5s ease-out;
}

/* Convergence Chart */
.chart-container {
  position: relative;
  width: 100%;
  height: 160px;
  margin-top: 12px;
}

.chart-container canvas {
  width: 100%;
  height: 100%;
}

/* Agent Panel */
.agent-thinking {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  font-size: 15px;
  margin-bottom: 8px;
  font-style: italic;
  color: var(--text-secondary);
}

.agent-action {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  padding: 6px 10px;
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-bottom: 8px;
}

.reward-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--bg-card);
  border-radius: var(--radius);
  font-family: var(--font-mono);
}

.reward-display .label {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 700;
}

.reward-display .value.positive { color: var(--green); }
.reward-display .value.negative { color: var(--red); }

/* Q-Update Overlay */
.q-update-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.q-update-card {
  background: var(--bg-panel);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.q-update-card h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
}

.q-update-step {
  font-family: var(--font-mono);
  font-size: 16px;
  padding: 4px 0;
  line-height: 1.8;
}

.q-update-step .highlight {
  color: var(--yellow);
  font-weight: 700;
}

/* Warmup Progress */
.warmup-progress {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 12px;
}

.warmup-progress .bar {
  height: 8px;
  background: var(--bg-input);
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0;
}

.warmup-progress .bar .fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 200ms ease;
}

.warmup-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
  font-size: 12px;
  font-family: var(--font-mono);
}

.warmup-stats .label { color: var(--text-secondary); font-weight: 600; font-size: 15px; }
.warmup-stats .value { text-align: right; font-weight: 700; font-size: 15px; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal {
  background: var(--bg-panel);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.modal h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.modal textarea {
  width: 100%;
  min-height: 120px;
  background: var(--bg-panel);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 15px;
  padding: 10px;
  resize: vertical;
  outline: none;
}

.modal textarea:focus {
  border-color: var(--accent);
}

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

/* Section Labels */
.section-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 800;
  margin-bottom: 6px;
}

/* Utility */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mono {
  font-family: var(--font-mono);
}

.empty-state {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
}

.badge {
  display: inline-block;
  font-size: 13px;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
}

.badge.success { background: var(--green-dim); color: var(--green); }
.badge.failure { background: var(--red-dim); color: var(--red); }
.badge.info { background: #dbeafe; color: var(--blue); }

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 12px;
}

.tab {
  padding: 6px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}

.tab:hover {
  color: var(--text-primary);
}

.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Tooltip styling for native title attributes */
[title] {
  cursor: help;
}

button[title], a[title] {
  cursor: pointer;
}

/* Busy Overlay — locks input during LLM processing */
.busy-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: wait;
}

.busy-overlay.active {
  display: flex;
}

.busy-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-panel);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

/* (threshold-line::after styles consolidated above) */

/* Narration Overlay (Guided Mode) */
.narration-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  height: 100vh;
  background: var(--bg-panel);
  border-left: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  z-index: 50;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.narration-header {
  padding: 14px 16px;
  border-bottom: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  background: var(--bg-card);
}

.narration-steps {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.narration-footer {
  padding: 12px 16px;
  border-top: 2px solid var(--border);
  flex-shrink: 0;
  background: var(--bg-card);
}

.narration-card {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  animation: narrationSlideIn 200ms ease-out;
}

@keyframes narrationSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.narration-card.narration-info {
  border-style: dashed;
  opacity: 0.8;
}

.narration-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.narration-content {
  flex: 1;
  min-width: 0;
}

.narration-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.narration-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 6px;
}

.narration-details {
  margin-top: 4px;
}

.narration-details summary {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  padding: 2px 0;
}

.narration-details summary:hover {
  text-decoration: underline;
}

.narration-prompt {
  max-height: 300px;
  overflow-y: auto;
  margin-top: 6px;
}

.narration-msg {
  margin-bottom: 8px;
  border-left: 3px solid var(--border);
  padding-left: 8px;
}

.narration-role {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1px 5px;
  border-radius: 3px;
  margin-bottom: 3px;
}

.narration-role.system {
  background: #fef3c7;
  color: #92400e;
}

.narration-role.user {
  background: #dbeafe;
  color: #1d4ed8;
}

.narration-role.assistant {
  background: #dcfce7;
  color: #15803d;
}

.narration-msg-content {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-primary);
  max-height: 200px;
  overflow-y: auto;
}

.narration-response {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  margin-top: 6px;
  max-height: 250px;
  overflow-y: auto;
  color: var(--text-primary);
}
