.oa-toast-region {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(100px + env(safe-area-inset-bottom));
  width: min(380px, calc(100vw - 32px));
  display: grid;
  gap: 10px;
  z-index: 1200;
  pointer-events: none;
}
.oa-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #fff;
  color: #171b1c;
  border: 1px solid #ccd4df;
  border-left: 4px solid var(--toast-tone, #1454eb);
  border-radius: 14px;
  box-shadow: 0 8px 35px #171b1c26;
  pointer-events: auto;
  animation: oa-toast-enter 180ms ease-out;
  font: 14px/1.5 Body, sans-serif;
}
.oa-toast-success { --toast-tone: #176847; }
.oa-toast-error { --toast-tone: #a62925; }
.oa-toast-warning { --toast-tone: #865500; }
.oa-toast-icon {
  flex: 0 0 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--toast-tone, #1454eb);
  color: #fff;
  text-align: center;
  font-weight: 700;
  line-height: 26px;
}
.oa-toast > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.oa-toast p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; }
.oa-toast-close {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 24px;
}
.oa-toast-close:hover { background: var(--paper, #f8f7f4); }
.oa-loading { color: var(--muted); font-size: 14px; padding: 10px 0; }
.oa-field-error { color: #a62925; font-size: 13px; margin: 5px 0; }
@keyframes oa-toast-enter { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 600px) { .oa-toast-region { right: 16px; } }
@media (prefers-reduced-motion: reduce) { .oa-toast { animation: none; } }

.oa-button-loading { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.oa-button-loading::before, .oa-loading::before { content: ''; display: inline-block; width: 16px; height: 16px; box-sizing: border-box; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; flex: 0 0 16px; animation: oa-loading-spin .8s linear infinite; }
.oa-loading { display: flex; align-items: center; gap: 9px; }
@keyframes oa-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .oa-button-loading::before, .oa-loading::before { animation: none; } }

.oa-toast strong { color: #171b1c !important; font-weight: 700; }
.oa-toast p { color: #3b485c !important; opacity: 1; }
.oa-toast .oa-toast-close { color: #334155 !important; opacity: 1; }
.oa-toast .oa-toast-close:hover { background: #edf1f5; }
.oa-toast .oa-toast-close:focus-visible { outline: 2px solid #1454eb; outline-offset: 2px; }
