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

.jd-toolbar,
.jd-actions,
.jd-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

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

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

.jd-field textarea {
  width: 100%;
  min-height: 19rem;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
}

.jd-banner {
  margin-top: 12px;
  border-radius: 12px;
  padding: 12px 14px;
}

.jd-banner--ok {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

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

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

.jd-results-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 16px;
}

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

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

.jd-metric-value {
  display: block;
  margin-top: 6px;
  font-size: 1.2rem;
  font-weight: 800;
}

.jd-diff-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.jd-diff-list {
  margin: 10px 0 0;
  padding-left: 18px;
}

.jd-diff-list li {
  margin-bottom: 10px;
}

.jd-diff-list code {
  overflow-wrap: anywhere;
}

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