/* Yesso Academy — the crash panel shown by assets/error-boundary.js.

   Lives beside the boundary rather than inside a cabinet stylesheet because
   both cabinets show the same panel: coach.css is coach-only and
   parent-assets/styles.css is a purged Tailwind build, so neither can host
   it for the other. Tokens only, no new colours or radii. */

.yesso-crash {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  background: var(--yesso-paper);
  font-family: var(--font-body);
  color: var(--yesso-ink);
}

.yesso-crash-card {
  width: 100%;
  max-width: 520px;
  background: var(--yesso-card);
  border: 1px solid var(--yesso-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-pop);
  padding: var(--space-8);
}

.yesso-crash-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
  font-size: 28px;
  margin-bottom: var(--space-3);
}

.yesso-crash-text {
  color: var(--yesso-muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: var(--space-6);
}

.yesso-crash-btn {
  height: var(--btn-height-sm);
  padding: var(--btn-pad-sm);
  border: none;
  border-radius: var(--radius-pill);
  background: var(--yesso-lime);
  color: var(--yesso-ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.yesso-crash-btn:hover { background: var(--yesso-lime-deep); }

.yesso-crash-details {
  margin-top: var(--space-6);
  border-top: 1px solid var(--yesso-border);
  padding-top: var(--space-4);
}

.yesso-crash-details summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: var(--kicker-size);
  letter-spacing: var(--kicker-tracking);
  text-transform: uppercase;
  color: var(--yesso-muted);
}

.yesso-crash-details pre {
  margin-top: var(--space-3);
  padding: var(--space-3);
  background: var(--yesso-paper-deep);
  border-radius: var(--radius-tile);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 240px;
  overflow: auto;
}
