/* Visual Intelligence — Mission P1.3 · unified design language */
:root {
  --vi-strong: #22d3ee;
  --vi-home: #38bdf8;
  --vi-away: #fb7185;
  --vi-muted: #475569;
  --vi-warn: #fbbf24;
  --vi-surface: #1e293b;
  --vi-line: #64748b;
  --vi-fill: rgba(34, 211, 238, 0.35);
}

.vi-panel {
  margin: 0;
  padding: 0;
}
.vi-panel-collapsed {
  padding: 0 0 4px;
}
.trust-section-visual {
  padding: 12px 0;
  border-bottom: 1px solid var(--border, #334155);
}
.vi-visual-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.vi-panel-collapsed .vi-visual-row {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 420px) {
  .vi-panel-collapsed .vi-visual-row { grid-template-columns: 1fr; }
}

.vi-visual {
  margin: 0;
  padding: 10px;
  border-radius: 10px;
  background: var(--surface2, #1e293b);
  border: 1px solid var(--border, #334155);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.vi-visual-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #94a3b8);
}
.vi-visual-canvas {
  width: 100%;
  line-height: 0;
}
.vi-svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 110px;
}
.vi-panel-expanded .vi-svg { max-height: 140px; }
.vi-svg-lbl {
  font-size: 7px;
  font-family: system-ui, sans-serif;
}
.vi-visual-decision {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--text, #e2e8f0);
}
.vi-visual-insight {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--muted, #94a3b8);
}

.vi-panel-expanded {
  padding: 16px 0;
}
.vi-panel-expanded .vi-visual-row {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.fir-visual-desk .vi-panel-expanded { padding: 0; }
.fir-visual-desk h5 {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--text, #e2e8f0);
}
