@media screen {
  .ak-toast-stack {
    position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 90; width: min(420px, calc(100vw - 40px)); display: grid; gap: 10px; pointer-events: none;
  }
  .ak-toast-stack [data-toast-slot]:has(> [hidden]) { display: none; }
  .ak-toast, .md-shell .md-undo.ak-toast {
    display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; margin: 0; padding: 12px 14px 12px 18px;
    border: 0; border-radius: 10px; background: #244c34; color: #fffefa;
    box-shadow: 0 8px 24px -8px #172f204d; font: 500 14px/1.5 var(--font); pointer-events: auto;
    overflow-wrap: anywhere; text-align: left;
  }
  .ak-toast[hidden] { display: none; }
  .ak-toast > [role="status"], .ak-toast-message { flex: 1; min-width: 0; }
  .ak-toast-dismiss, .md-shell .ak-toast .md-button {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    min-width: 44px; min-height: 44px; padding: 8px; border: 0; border-radius: 6px;
    background: transparent; color: inherit; cursor: pointer; font: inherit;
  }
  .ak-toast-dismiss:hover, .md-shell .ak-toast .md-button:hover { background: #386047; color: #fffefa; }
  .ak-toast-dismiss:focus-visible, .md-shell .ak-toast .md-button:focus-visible { outline: 2px solid #fffefa; outline-offset: -2px; }
  .md-shell .ak-toast [data-md-action="undo"] { text-decoration: underline; text-underline-offset: 3px; }
  body:has(.ak-toast:not([hidden])) { padding-bottom: 120px; }
  @media (max-width: 600px) {
    .ak-toast-stack { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100vw - 24px); }
  }
}
@media print { .ak-toast-stack { display: none !important; } }
