.anova-shell {
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 18px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.16), transparent 22rem),
    linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.99));
}

.anova-tabs,
.anova-actions,
.anova-example-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.anova-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
}

.anova-card {
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.anova-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
}

.anova-field textarea {
  width: 100%;
  min-height: 280px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.anova-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.anova-metric {
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 14px;
  padding: 14px;
  background: rgba(248, 250, 252, 0.92);
}

.anova-metric-label {
  display: block;
  color: var(--muted, #64748b);
  font-size: 0.88rem;
}

.anova-metric-value {
  display: block;
  margin-top: 8px;
  font-size: 1.25rem;
  font-weight: 700;
}

.anova-message {
  margin-top: 12px;
  border-radius: 12px;
  padding: 12px 14px;
}

.anova-message--ok {
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  color: #155e75;
}

.anova-message--warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.anova-message--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.anova-warnings {
  margin: 12px 0 0;
  padding-left: 18px;
}

.anova-detail-list {
  margin: 12px 0 0;
  padding-left: 18px;
}

.anova-table-wrap {
  overflow-x: auto;
}

.anova-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.anova-table th,
.anova-table td {
  border-bottom: 1px solid var(--border, #cbd5e1);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.anova-chart-shell {
  margin-top: 16px;
}

.anova-chart-wrap {
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 16px;
  background: #fff;
  padding: 12px;
}

#anova-chart {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

@media (max-width: 960px) {
  .anova-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .anova-metrics {
    grid-template-columns: 1fr;
  }
}
