/* Agenz Foundation v136: legible feedback and professional English defaults. */
html[lang="en"] body {
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

#brief-result,
#workspace-toast,
.workspace-toast,
.form-status,
[role="status"],
[aria-live="polite"] {
  overflow-wrap: anywhere;
}

#brief-result:not(:empty),
#workspace-toast.show,
.workspace-toast.show {
  position: fixed !important;
  z-index: 10000 !important;
  top: max(18px, env(safe-area-inset-top)) !important;
  right: max(18px, env(safe-area-inset-right)) !important;
  bottom: auto !important;
  left: auto !important;
  width: min(420px, calc(100vw - 36px)) !important;
  max-width: calc(100vw - 36px) !important;
  margin: 0 !important;
  padding: 17px 19px !important;
  border: 1px solid rgba(126, 191, 255, .36) !important;
  border-radius: 15px !important;
  background: #07152d !important;
  color: #f7fbff !important;
  box-shadow: 0 18px 52px rgba(4, 16, 39, .34) !important;
  font-size: .82rem !important;
  line-height: 1.55 !important;
}

#brief-result:not(:empty) strong,
#workspace-toast.show strong,
.workspace-toast.show strong {
  display: block !important;
  margin-bottom: 5px !important;
  color: #8bdcff !important;
  font-size: .72rem !important;
  font-weight: 850 !important;
  letter-spacing: .045em !important;
}

#brief-result:not(:empty) span {
  display: block !important;
  color: #e8f1ff !important;
}

@media (max-width: 560px) {
  #brief-result:not(:empty),
  #workspace-toast.show,
  .workspace-toast.show {
    top: max(12px, env(safe-area-inset-top)) !important;
    right: 12px !important;
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
  }
}
