/* JTG NT1: responsive shared notifications; existing dialogs/page styles are untouched. */
#jtg-toast-region {
  --toast-accent:#2563eb; --toast-soft:#eff6ff;
  position:fixed; inset:auto; top:max(72px,calc(env(safe-area-inset-top,0px) + 12px));
  right:max(20px,env(safe-area-inset-right,0px)); bottom:auto; left:auto;
  width:min(440px,calc(100vw - 32px)); max-width:calc(100vw - 32px);
  max-height:calc(100vh - 96px); max-height:calc(100dvh - 96px);
  z-index:2147483000; padding:0; margin:0; border:0; background:transparent;
  pointer-events:none; font-family:inherit; font-size:14px; color:#173553;
}
#jtg-toast-region .jtg-toast-list {display:grid;gap:10px;max-height:inherit;overflow:auto;padding:3px 3px 14px;overscroll-behavior:contain;}
#jtg-toast-region .jtg-toast {
  display:grid;grid-template-columns:24px minmax(0,1fr) 44px;align-items:start;gap:12px;
  position:relative;width:100%;box-sizing:border-box;padding:16px 10px 16px 16px;
  border:1px solid #dce4ef;border-left:4px solid var(--toast-accent);border-radius:16px;
  background:#fff;box-shadow:0 10px 36px #17355321;pointer-events:auto;
  animation:jtg-toast-in .18s ease-out;line-height:1.5;text-align:start;
}
#jtg-toast-region .jtg-toast--error {--toast-accent:#be123c;--toast-soft:#fff1f2;}
#jtg-toast-region .jtg-toast--warning {--toast-accent:#a85a08;--toast-soft:#fffbeb;}
#jtg-toast-region .jtg-toast--info {--toast-accent:#47627e;--toast-soft:#f1f5f9;}
#jtg-toast-region .jtg-toast-icon {width:24px;height:24px;stroke:var(--toast-accent);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;margin-top:2px;}
#jtg-toast-region .jtg-toast-content {min-width:0;}
#jtg-toast-region strong {display:block;font-size:14px;font-weight:700;color:#173553;margin:0 0 4px;}
#jtg-toast-region p {margin:0;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;font-size:14px;color:#465970;line-height:1.65;}
#jtg-toast-region .jtg-toast-close {display:grid;place-items:center;min-width:44px;min-height:44px;width:44px;height:44px;margin:-8px 0 0;border:0;border-radius:12px;background:transparent;color:#64748b;font-size:25px;line-height:1;cursor:pointer;touch-action:manipulation;box-shadow:none;padding:0;}
#jtg-toast-region .jtg-toast-close:hover {background:var(--toast-soft);color:var(--toast-accent);}
#jtg-toast-region .jtg-toast-close:focus-visible {outline:3px solid #93b4fc;outline-offset:1px;background:var(--toast-soft);}
#jtg-toast-region .jtg-toast-repeat {display:inline-block;margin-top:8px;padding:1px 7px;border-radius:8px;background:var(--toast-soft);color:var(--toast-accent);font-size:12px;font-weight:700;}
#jtg-toast-region .jtg-toast-pending {padding:0 6px;font-size:12px;color:#465970;text-align:right;}
#jtg-toast-region [hidden] {display:none!important;}
#jtg-toast-region .jtg-toast-announcer {position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
@keyframes jtg-toast-in {from {opacity:0;transform:translateY(-7px);}to {opacity:1;transform:translateY(0);}}
@media(max-width:640px) {
  #jtg-toast-region {top:calc(env(safe-area-inset-top,0px) + 12px);right:12px;left:12px;width:auto;max-width:none;max-height:calc(100vh - 48px);max-height:calc(100dvh - env(safe-area-inset-top,0px) - 48px);}
  #jtg-toast-region .jtg-toast {gap:9px;padding:14px 7px 14px 12px;border-radius:14px;}
}
@media(prefers-reduced-motion:reduce) {#jtg-toast-region .jtg-toast {animation:none;}}
@media print {#jtg-toast-region {display:none!important;}}
