dialog[data-operation-error] {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  margin: auto;
  width: min(34rem, calc(100% - 2rem));
  max-width: none;
  height: fit-content;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: clamp(1rem, 4vw, 1.6rem);
  border: 1px solid #cdd7e1;
  border-radius: 1rem;
  font: 1rem/1.5 system-ui, sans-serif;
  color: #172638;
  background: #fff;
  box-shadow: 0 1rem 3rem rgba(13, 33, 53, .26);
}

dialog[data-operation-error]::backdrop { background: rgba(20, 37, 54, .46); }
dialog[data-operation-error] h2 { margin: 0; font-size: 1.35rem; line-height: 1.25; }
dialog[data-operation-error] p { margin: .8rem 0 0; overflow-wrap: anywhere; }

.operation-error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem;
  margin-top: 1.2rem;
}

dialog[data-operation-error] .operation-error-actions > * {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: .45rem .9rem;
  border: 1px solid #235e84;
  border-radius: .6rem;
  background: #235e84;
  color: #fff;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

dialog[data-operation-error] .operation-error-actions > button:not(:only-child) {
  color: #235e84;
  background: #fff;
}

dialog[data-operation-error] .operation-error-actions > :focus-visible {
  outline: 2px solid #235e84;
  outline-offset: 3px;
}
