/* Custom styles */
figure {
  max-width: 100%;
  overflow-x: auto;
}
figure svg {
  max-width: none;
}
figure svg text {
  font-size: 10px;
}

/* Card styles */
.card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
}
.card h2 {
  margin: 0 0 4px 0;
  font-size: 1.5em;
  font-weight: 700;
}
.card .muted {
  color: #94a3b8;
  font-size: 0.8em;
}
.card.insight {
  background: #f0f9ff;
  border-left: 4px solid #2563eb;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 0.9em;
  color: #1e293b;
}
.card.warn {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 0.85em;
  color: #1e293b;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8em;
}
table th {
  background: #f1f5f9;
  padding: 8px 6px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}
table td {
  padding: 6px;
  border-bottom: 1px solid #f1f5f9;
}
table tr:hover td {
  background: #f8fafc;
}

/* Grid layouts */
.grid {
  display: grid;
  gap: 12px;
}
.grid-cols-2 {
  grid-template-columns: 1fr 1fr;
}
.grid-cols-5 {
  grid-template-columns: repeat(5, 1fr);
}
.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
