/* Keep local inference notifications visible without interrupting editing. */
.nano-toasts {
  position: fixed;
  z-index: 30;
  inset: 76px 16px auto auto;
  display: grid;
  justify-items: end;
  gap: 8px;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}

.nano-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  padding: 10px 14px 10px 10px;
  background: #fff;
  color: #28214e;
  border: 1px solid #ded5fb;
  border-radius: 11px;
  box-shadow: 0 6px 24px #23184a24;
  font-size: .87rem;
  font-weight: 625;
}

.nano-icon {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: var(--nano-icon-size, 40px);
  height: var(--nano-icon-size, 40px);
  background: #40219a;
  color: #ffda63;
  border-radius: calc(var(--nano-icon-size, 40px) / 4);
  font-size: calc(var(--nano-icon-size, 40px) * .65);
  line-height: 1;
  vertical-align: middle;
}

.nano-icon[hidden] { display: none; }
.ocr-icon { background: #00695d; color: #fff; font-size: 12px; font-weight: 720; }
.download-icon { background: #137151; color: #fff; }
.nano-toast[data-stage="failed"] { border-color: #edc0cb; }
#field-nano-icon { --nano-icon-size: 24px; margin-inline-end: 5px; }
