/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #2563eb;
  --primary-dk: #1d4ed8;
  --accent:     #7c3aed;
  --accent-lt:  #ede9fe;
  --surface:    #f8fafc;
  --surface2:   #f1f5f9;
  --border:     #e2e8f0;
  --text:       #0f172a;
  --text-muted: #64748b;
  --success:    #059669;
  --gold:       #d97706;
  --radius:     0.75rem;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
  font-size: 1rem;
}

/* ===== LAYOUT ===== */
.container       { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container.narrow{ max-width: 1000px; }

.section         { padding: 5rem 0; }
.section-alt     { background: var(--surface); }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 2.5rem;
}
.subsection-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--text);
}

/* ===== HERO ===== */
.hero {
  background: #fff;
  color: var(--text);
  padding: 5.5rem 0 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero .container { position: relative; }

.venue-badge {
  display: inline-block;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--primary);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.paper-title {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1.2rem;
  color: var(--text);
}

.authors {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* ===== CTA BUTTONS ===== */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem 1.4rem;
  border-radius: .55rem;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  border: none;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; box-shadow: none; }

.btn-primary  { background: var(--primary);  color: #fff; }
.btn-primary:hover { background: var(--primary-dk); }
.btn-secondary{ background: #f1f5f9; color: #334155; border: 1px solid var(--border); }
.btn-secondary:hover { background: #e2e8f0; }
.btn-accent   { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #6d28d9; }

.btn-demo     { background: #0ea5e9; color: #fff; position: relative; }
.btn-demo:hover { background: #0284c7; }
.btn-badge    { background: rgba(255,255,255,0.25); font-size: 0.7rem; font-weight: 600;
                padding: 1px 6px; border-radius: 999px; margin-left: 6px; }

/* ===== DEMO LEGEND ===== */
.demo-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.2rem;
  padding: 0.55rem 1.6rem;
  background: #dbeafe;
  border-radius: 999px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1e293b;
}
.demo-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.legend-goal {
  color: #16a34a;
  font-size: 1.1rem;
  line-height: 1;
}
.legend-line {
  display: inline-block;
  width: 28px;
  height: 2.5px;
  border-radius: 2px;
}
.legend-gt   { background: #2563eb; }
.legend-pred { background: #dc2626; }
.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-left: -4px;
}
.legend-dot-gt   { background: #2563eb; }
.legend-dot-pred { background: #dc2626; }

/* ===== ABSTRACT ===== */
.abstract-text {
  font-size: 1.05rem;
  color: #334155;
  margin-bottom: 1rem;
  text-align: justify;
}
.abstract-text:last-child { margin-bottom: 0; }

/* ===== FRAMEWORK FIGURE ===== */
.figure-section { background: var(--surface); padding: 3.5rem 0; }
.figure-section .container { max-width: 1200px; }

.paper-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  margin-top: 2rem;
}
.paper-figure img {
  width: 100%;
  max-width: 1200px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: #fff;
}
.paper-figure figcaption {
  max-width: 900px;
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.55;
  text-align: center;
  font-style: italic;
}
.paper-figure figcaption strong {
  color: #334155;
  font-style: normal;
}

/* ===== STATS ===== */
.stats-section { background: linear-gradient(135deg, #0f172a, #1e3a5f); padding: 3.5rem 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}
.stat-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: transform .2s, background .2s;
}
.stat-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.13); }
.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #a5b4fc;
  letter-spacing: -0.02em;
}
.stat-label {
  display: block;
  font-size: .78rem;
  color: #94a3b8;
  margin-top: .25rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ===== CONTRIBUTIONS ===== */
.contrib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.contrib-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.contrib-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.contrib-number {
  width: 2.2rem; height: 2.2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem;
  margin-bottom: 1rem;
}
.contrib-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .6rem;
}
.contrib-card p { color: #475569; font-size: .9rem; }

/* ===== FRAMEWORK ===== */
.framework-desc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.framework-col {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.framework-col h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--primary);
}
.framework-col p { font-size: .9rem; color: #475569; }

.equation-box {
  margin-top: 2.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
}
.eq-label {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.eq-display {
  margin: 1rem 0;
  overflow-x: auto;
}
.eq-math {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  color: var(--text);
}
.eq-desc { font-size: .85rem; color: #475569; margin-top: .75rem; }

/* ===== QUALITATIVE EXAMPLES ===== */
.example-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.example-col {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.style-label {
  text-align: center;
  margin-bottom: .25rem;
}
.example-media {
  position: relative;
  border-radius: .5rem;
  overflow: hidden;
  background: #0f172a;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.example-media img,
.example-media video {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.media-tag {
  position: absolute;
  bottom: .4rem;
  left: .4rem;
  background: rgba(0,0,0,.6);
  color: #e2e8f0;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: .15rem .45rem;
  border-radius: .3rem;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .example-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 580px) {
  .example-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== DATASET SAMPLES VIEWER ===== */
.viewer-shell {
  max-width: 1000px;
  margin: 2rem auto 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.viewer-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}
.viewer-counter {
  font-size: .75rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.viewer-name {
  font-size: .8rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.viewer-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.viewer-img-wrap {
  position: relative;
  background: #fff;
  overflow: hidden;
  cursor: grab;
  user-select: none;
}
.viewer-img-wrap:last-child {
  background: #1e293b;
}
.viewer-img-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  pointer-events: none;
  background: #fff;
}

.zoom-controls {
  position: absolute;
  bottom: .5rem;
  right: .5rem;
  display: flex;
  gap: .25rem;
  z-index: 10;
}
.zoom-controls button {
  width: 26px; height: 26px;
  border-radius: .35rem;
  border: none;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  line-height: 1;
}
.zoom-controls button:hover { background: rgba(0,0,0,.8); }
.sample-tag {
  position: absolute;
  top: .5rem;
  left: .5rem;
  background: rgba(37,99,235,.88);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: .2rem .5rem;
  border-radius: .3rem;
  text-transform: uppercase;
}
.sample-tag.carla { background: rgba(124,58,237,.88); }

.viewer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.25rem;
  border-top: 1px solid var(--border);
  background: #f8fafc;
  gap: 1rem;
}
.viewer-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: .45rem;
  padding: .45rem 1.1rem;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.viewer-btn:hover { background: var(--primary-dk); }

.viewer-dots {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  justify-content: center;
  flex: 1;
  max-height: 52px;
  overflow: hidden;
}
.vdot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
  padding: 0;
  transition: background .15s, transform .15s;
  flex-shrink: 0;
}
.vdot:hover { background: #94a3b8; transform: scale(1.2); }
.vdot.active { background: var(--primary); transform: scale(1.25); }

/* ===== BEHAVIOR VIDEOS ===== */
.video-shell {
  max-width: 100%;
  margin: 2rem auto 0;
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
#samples .container {
  max-width: 1200px !important;
  padding: 0 1rem;
}
.samples-divider {
  border: none;
  border-top: 2px solid var(--border);
  margin: 4rem 0 0;
}
.video-shell .viewer-header {
  background: #1e293b;
  border-bottom: 1px solid #334155;
}
.video-shell .viewer-header .viewer-counter { color: #7dd3fc; }
.video-shell .viewer-header .viewer-name { color: #94a3b8; }

/* 5-column grid of video columns (each col has 1× 2d + 1× FPV) */
.video-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  padding: 3px;
  background: #1e293b;
}
.video-wrap {
  position: relative;
  background: #0f172a;
}

.video-wrap video {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  background: #000;
  object-fit: contain;
}
.behavior-tag {
  position: absolute;
  top: .5rem;
  left: .5rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .22rem .55rem;
  border-radius: .3rem;
  color: #fff;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 5;
}
.bt-default  { background: rgba(37,99,235,.92); }
.bt-balanced { background: rgba(22,163,74,.92); }
.bt-comfort  { background: rgba(8,145,178,.92); }
.bt-sporty   { background: rgba(217,119,6,.92); }
.bt-safety   { background: rgba(220,38,38,.92); }

/* Column wrapper — stacks 2d on top, then 3d pair below */
.video-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.v3d-wrap video {
  aspect-ratio: 1 / 1;
}
/* Type badges (2D / Bird-3D / FPV) */
.vid-type-tag {
  position: absolute;
  bottom: .4rem;
  right: .4rem;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: .15rem .4rem;
  border-radius: .25rem;
  color: #fff;
  background: rgba(0,0,0,.55);
  pointer-events: none;
  z-index: 5;
  text-transform: uppercase;
}
.tag-3d  { background: rgba(124,58,237,.85); }
.tag-fpv { background: rgba(5,150,105,.85); }

/* Play / Stop / Reset all controls */
.video-action-bar {
  display: flex;
  gap: .75rem;
  padding: .65rem 1.25rem;
  background: #1e293b;
  border-top: 1px solid #334155;
  justify-content: center;
}
.vab-btn {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .42rem 1rem;
  border: none;
  border-radius: .4rem;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, opacity .15s;
  color: #fff;
}
.vab-play  { background: #16a34a; }
.vab-stop  { background: #dc2626; }
.vab-reset { background: #475569; }
.vab-btn:hover { opacity: .85; }

.video-shell .viewer-nav {
  background: #1e293b;
  border-top: 1px solid #334155;
}
.video-shell .viewer-btn { background: #2563eb; }
.video-shell .viewer-btn:hover { background: #1d4ed8; }

@media (max-width: 900px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* ===== DATASET ===== */
.dataset-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin: 2rem 0 2.5rem;
}
.ds-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.75rem;
  text-align: center;
  min-width: 140px;
  box-shadow: var(--shadow-sm);
}
.ds-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.ds-label { display: block; font-size: .78rem; color: var(--text-muted); margin-top: .2rem; }

/* Style badges */
.style-badge {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
}
.balanced { background: #dbeafe; color: #1d4ed8; }
.comfort  { background: #d1fae5; color: #065f46; }
.default  { background: #f1f5f9; color: #475569; }
.sporty   { background: #fee2e2; color: #991b1b; }
.safety   { background: #fef3c7; color: #92400e; }

/* ===== TABLES ===== */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  background: #fff;
}
.results-table th {
  background: #1e293b;
  color: #e2e8f0;
  font-weight: 600;
  padding: .75rem 1rem;
  text-align: left;
  white-space: nowrap;
}
.results-table td {
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--border);
  color: #334155;
}
.results-table tbody tr:hover { background: #f8fafc; }
.results-table .group-header td {
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .5rem 1rem;
}
.results-table .best-row { background: #eff6ff !important; }
.results-table .best-row td { color: #1e3a8a; }
.results-table .best-row:hover { background: #dbeafe !important; }
.results-table .best { font-weight: 700; color: var(--success); }

.table-note {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: .75rem;
  text-align: center;
  font-style: italic;
}

/* ===== BIBTEX ===== */
.bibtex-block {
  position: relative;
  background: #0f172a;
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}
.bibtex-block pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem;
  color: #94a3b8;
  overflow-x: auto;
  line-height: 1.7;
  white-space: pre;
}
.copy-btn {
  position: absolute;
  top: 1rem; right: 1rem;
  display: flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: #cbd5e1;
  border-radius: .4rem;
  padding: .35rem .75rem;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.copy-btn svg { width: 13px; height: 13px; }
.copy-btn:hover { background: rgba(255,255,255,.18); }
.copy-btn.copied { color: #6ee7b7; border-color: rgba(110,231,183,.3); }

/* ===== FOOTER ===== */
.footer {
  background: #0f172a;
  color: #64748b;
  text-align: center;
  padding: 2rem 0;
  font-size: .85rem;
}
.footer p + p { margin-top: .25rem; }
.footer-note { font-size: .75rem; color: #475569; }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }
  .paper-title { font-size: 1.65rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contrib-grid, .framework-desc { grid-template-columns: 1fr; }
  .dataset-stats { gap: .75rem; }
  .ds-stat { min-width: 100px; padding: 1rem 1.25rem; }
  .results-table { font-size: .78rem; }
  .results-table th, .results-table td { padding: .5rem .65rem; }
  .vqa-body { flex-direction: column; }
  .vqa-img-wrap { max-width: 100%; }
}

/* ── VQA Section ── */
.vqa-shell {
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-top: 2rem;
}
.vqa-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .65rem 1.4rem;
  background: #1e293b;
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
  min-height: 44px;
}
.vqa-body {
  display: flex;
  min-height: 520px;
}
/* Left image column */
.vqa-img-col {
  flex: 0 0 480px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: #000;
}
.vqa-img-label {
  padding: .4rem .8rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: #0a1628;
}
.vqa-img-col img {
  flex: 1;
  width: 100%;
  object-fit: contain;
  display: block;
}
/* Right column */
.vqa-right-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* Generic block */
.vqa-block {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
}
.vqa-block:last-child { border-bottom: none; flex: 1; }
.vqa-block-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.2rem;
  background: #1a2744;
  border-bottom: 1px solid var(--border);
}
.vqa-block-icon { font-size: 1rem; }
.vqa-block-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent);
}
/* Instruction text */
.vqa-instr-text {
  color: #cbd5e1;
  font-size: .88rem;
  line-height: 1.65;
  margin: 0;
  padding: 1rem 1.4rem .6rem;
  white-space: pre-line;
}
/* Collapsible structured data */
.vqa-details {
  border-top: 1px solid var(--border);
}
.vqa-details summary {
  cursor: pointer;
  padding: .45rem 1.4rem;
  font-size: .78rem;
  font-weight: 600;
  color: #94a3b8;
  background: #0f1e35;
  user-select: none;
  list-style: none;
}
.vqa-details summary::-webkit-details-marker { display:none; }
.vqa-details summary::before {
  content: '▶ ';
  font-size: .65rem;
  color: var(--accent);
  margin-right: .3rem;
}
.vqa-details[open] summary::before { content: '▼ '; }
/* Code blocks */
.vqa-code {
  margin: 0;
  padding: 1rem 1.4rem;
  font-family: 'Courier New', Consolas, monospace;
  font-size: .77rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-y: auto;
}
.vqa-code-input {
  color: #93c5fd;
  background: #0a1628;
  max-height: 260px;
}
.vqa-resp-block { flex: 1; overflow: hidden; }
.vqa-resp-block .vqa-code-output {
  color: #86efac;
  background: #071020;
  height: 100%;
  max-height: 340px;
}
