.server-error-dialog {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  margin: auto;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--foreground);
  background: var(--card);
  box-shadow: 0 24px 80px var(--shadow-dialog);
  overflow: auto;
}
.server-error-dialog::backdrop { background: var(--backdrop); }
.server-error-heading { display: flex; gap: 12px; align-items: center; }
.server-error-heading h2 { margin: 0; font-size: 20px; line-height: 1.3; flex: 1; }
.server-error-icon { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--danger-soft); color: var(--danger); font-weight: 700; font-size: 22px; }
#server-error-message { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.55; margin: 20px 0 0; }
#server-error-hint { font-size: 14px; line-height: 1.5; margin: 14px 0 0; }
#server-error-hint:empty { display: none; }
.server-error-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.server-error-actions [hidden] { display: none; }
@media (max-width: 480px) {
  .server-error-dialog { padding: 20px; }
  .server-error-heading h2 { font-size: 18px; }
}
