/* Vendored from packages/toast/src/toast.css by scripts/vendor-kit.mjs. Do not edit. */
/* @bearmark/toast — the look of a one-off notice (design/core/BmToast.tsx).
   Only the kit's roles: --bm-surface, --bm-border, --bm-text*, the status
   fills and their inks, --bm-focus/--bm-focus-ring, radius, shadow, motion.
   A page that ships the kit's theme needs nothing else.

   The tone is a pair, as everywhere in the kit: a FILL that tints the card
   (10% wash, 32% edge, the badge — BmAlert's strengths) and an INK for the marks (icon, action,
   timer). warn is brick and means error; caution is amber and means warning;
   info is teal and carries tips; a plain word and progress are muted. */

.bm-toasts {
  /* Distance from the edge it is pinned to; an app with a bottom bar or a
     tall header may raise it. */
  --bm-toast-inset: 8px;
  --bm-toast-width: 420px;
  --bm-toast-gap: 8px;
  position: fixed;
  z-index: var(--bm-z-toast, 1400);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 0 8px;
  pointer-events: none;
}
.bm-toasts[data-placement='top'] {
  top: calc(env(safe-area-inset-top, 0px) + var(--bm-toast-inset));
}
.bm-toasts[data-placement='bottom'] {
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--bm-toast-inset));
}
.bm-toasts__list {
  display: flex;
  flex-direction: column;
  width: min(100%, var(--bm-toast-width));
  margin: 0;
  padding: 0;
  list-style: none;
}
/* The live regions: heard, never seen. */
.bm-toasts__say {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- one notice ---------------------------------------------------------- */

.bm-toast {
  --bm-toast-tone: var(--bm-good);
  --bm-toast-ink: var(--bm-good-ink);
  /* The grid row collapses on the way out, so the others close up smoothly. */
  display: grid;
  grid-template-rows: 1fr;
  margin-block-end: var(--bm-toast-gap);
  pointer-events: auto;
  touch-action: none;
  opacity: var(--bm-toast-fade, 1);
  transform: translate(var(--bm-toast-dx, 0px), var(--bm-toast-dy, 0px));
  transition:
    grid-template-rows var(--bm-dur-moderate, 220ms) var(--bm-ease-out, ease-out),
    margin var(--bm-dur-moderate, 220ms) var(--bm-ease-out, ease-out),
    opacity var(--bm-dur-base, 160ms) var(--bm-ease-standard, ease),
    transform var(--bm-dur-moderate, 220ms) var(--bm-ease-out, ease-out),
    translate var(--bm-dur-moderate, 220ms) var(--bm-ease-out, ease-out),
    scale var(--bm-dur-moderate, 220ms) var(--bm-ease-out, ease-out);
}
.bm-toasts[data-placement='bottom'] .bm-toast {
  margin-block: var(--bm-toast-gap) 0;
}
.bm-toast[data-tone='warning'] {
  --bm-toast-tone: var(--bm-caution);
  --bm-toast-ink: var(--bm-caution-ink);
}
.bm-toast[data-tone='error'] {
  --bm-toast-tone: var(--bm-warn);
  --bm-toast-ink: var(--bm-warn-ink);
}
.bm-toast[data-tone='tip'] {
  --bm-toast-tone: var(--bm-info);
  --bm-toast-ink: var(--bm-info-ink);
}
.bm-toast[data-tone='info'],
.bm-toast[data-tone='progress'] {
  --bm-toast-tone: var(--bm-muted);
  --bm-toast-ink: var(--bm-text-soft);
}

/* Arriving from the edge it is pinned to, and leaving by folding away. */
.bm-toast[data-state='entering'],
.bm-toast[data-state='leaving'] {
  grid-template-rows: 0fr;
  margin-block: 0;
  opacity: 0;
}
.bm-toast[data-state='entering'] {
  transform: translateY(-10px) scale(0.97);
}
.bm-toasts[data-placement='bottom'] .bm-toast[data-state='entering'] {
  transform: translateY(10px) scale(0.97);
}
.bm-toast[data-state='leaving'] {
  pointer-events: none;
  transform: scale(0.97);
}
.bm-toast[data-state='leaving'][data-swiped='left'] {
  transform: translateX(-110%);
}
.bm-toast[data-state='leaving'][data-swiped='right'] {
  transform: translateX(110%);
}
.bm-toast[data-state='leaving'][data-swiped='up'] {
  transform: translateY(-120%);
}
.bm-toasts[data-placement='bottom'] .bm-toast[data-state='leaving'][data-swiped='up'] {
  transform: translateY(120%);
}
.bm-toast[data-dragging] {
  transition: none;
}

.bm-toast__card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 2px;
  min-height: 0;
  overflow: hidden;
  padding: 0 6px 0 12px;
  border: 1px solid color-mix(in srgb, var(--bm-toast-tone) 32%, var(--bm-border));
  border-radius: var(--bm-radius-lg, 12px);
  background: color-mix(in srgb, var(--bm-toast-tone) 10%, var(--bm-surface));
  box-shadow: var(--bm-shadow-lg);
  color: var(--bm-text);
  font-family: var(--bm-font-body, inherit);
  -webkit-user-select: none;
  user-select: none;
}
.bm-toast [hidden] {
  display: none !important;
}

.bm-toast__icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 12px 8px 0 0;
  color: var(--bm-toast-ink);
}
.bm-toast svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bm-toast__track {
  opacity: 0.25;
}
.bm-toast[data-tone='progress'] .bm-toast__icon svg {
  animation: bm-toast-spin 0.9s linear infinite;
}

.bm-toast__body {
  flex: 1;
  min-width: 0;
  padding: 12px 6px 12px 0;
}
.bm-toast__title,
.bm-toast__text {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  overflow-wrap: anywhere;
}
.bm-toast__title {
  font-weight: 600;
}
.bm-toast--titled .bm-toast__text {
  margin-top: 1px;
  color: var(--bm-text-soft);
  font-size: 13px;
  line-height: 18px;
}

.bm-toast__count,
.bm-toast__step {
  flex: none;
  align-self: center;
  font-family: var(--bm-font-mono, ui-monospace, monospace);
  font-size: 12px;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
}
.bm-toast__count {
  margin-inline-end: 2px;
  padding: 0 6px;
  border-radius: var(--bm-radius-pill, 999px);
  background: color-mix(in srgb, var(--bm-toast-tone) 16%, transparent);
  color: var(--bm-toast-ink);
  font-weight: 700;
}
.bm-toast__step {
  padding-inline: 2px;
  color: var(--bm-text-soft);
}

.bm-toast__action,
.bm-toast__close {
  flex: none;
  align-self: center;
  height: 32px;
  margin-block: 6px;
  border: 0;
  border-radius: var(--bm-radius-md, 8px);
  background: transparent;
  cursor: pointer;
  transition: background-color var(--bm-dur-fast, 120ms) var(--bm-ease-standard, ease);
}
.bm-toast__action {
  padding: 0 10px;
  color: var(--bm-toast-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.bm-toast__action:hover {
  background: color-mix(in srgb, var(--bm-toast-tone) 14%, transparent);
}
.bm-toast__close {
  width: 32px;
  padding: 7px;
  color: var(--bm-text-soft);
}
.bm-toast__close:hover {
  background: var(--bm-track);
  color: var(--bm-text);
}
/* The kit's one focus indicator (design/core/focusRing.ts). */
.bm-toast button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--bm-focus),
    0 0 0 5px var(--bm-focus-ring);
}

/* What is left of its time: a hairline along the bottom edge. */
.bm-toast__timer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--bm-toast-ink);
  opacity: 0.45;
  transform-origin: left center;
  animation: bm-toast-time var(--bm-toast-time, 4s) linear forwards;
}
[dir='rtl'] .bm-toast__timer {
  transform-origin: right center;
}
.bm-toast[data-paused] .bm-toast__timer {
  animation-play-state: paused;
}
/* Under way has no time to show, even when it has a safety limit. */
.bm-toast[data-tone='progress'] .bm-toast__timer {
  visibility: hidden;
}

/* The same notice again: a short nudge with the count. */
.bm-toast--bump .bm-toast__card {
  animation: bm-toast-bump 280ms var(--bm-ease-out, ease-out);
}

/* A narrow screen keeps one notice's height: the newest lies on top and two
   older ones peek out 8px each behind it. Swiped away or timed out, the next
   one comes forward. Their words were said when they came; behind, they are
   only edges, out of reach of a finger, a pointer and Tab. */
@media (max-width: 599px) {
  .bm-toasts__list {
    display: grid;
  }
  .bm-toasts__list > .bm-toast {
    grid-area: 1 / 1;
    align-self: start;
    margin: 0;
    transform-origin: center bottom;
  }
  .bm-toasts[data-placement='bottom'] .bm-toasts__list > .bm-toast {
    align-self: end;
    transform-origin: center top;
  }
  .bm-toast[data-depth='0'],
  .bm-toast[data-state='leaving'] {
    z-index: 4;
  }
  .bm-toast[data-depth='1'] {
    z-index: 3;
    translate: 0 8px;
    scale: 0.94;
  }
  .bm-toast[data-depth='2'],
  .bm-toast[data-depth='3'] {
    z-index: 2;
    translate: 0 16px;
    scale: 0.88;
  }
  .bm-toast[data-depth='3'] {
    z-index: 1;
    opacity: 0;
  }
  .bm-toasts[data-placement='bottom'] .bm-toast[data-depth='1'] {
    translate: 0 -8px;
  }
  .bm-toasts[data-placement='bottom'] .bm-toast[data-depth='2'],
  .bm-toasts[data-placement='bottom'] .bm-toast[data-depth='3'] {
    translate: 0 -16px;
  }
  .bm-toast:is([data-depth='1'], [data-depth='2'], [data-depth='3']) {
    pointer-events: none;
  }
  .bm-toast:is([data-depth='1'], [data-depth='2'], [data-depth='3']) .bm-toast__card {
    height: var(--bm-toast-front, auto);
  }
  .bm-toast:is([data-depth='1'], [data-depth='2'], [data-depth='3']) .bm-toast__card > * {
    visibility: hidden;
  }
}

/* A finger needs a larger target; the card grows by 8px, no more. */
@media (pointer: coarse) {
  .bm-toast__action,
  .bm-toast__close {
    height: 36px;
  }
  .bm-toast__close {
    width: 36px;
    padding: 9px;
  }
  .bm-toast__icon {
    margin-top: 14px;
  }
  .bm-toast__body {
    padding-block: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bm-toast {
    transition: opacity var(--bm-dur-fast, 120ms) linear;
  }
  .bm-toast[data-state] {
    transform: none;
  }
  .bm-toast[data-dragging] {
    transform: translate(var(--bm-toast-dx, 0px), var(--bm-toast-dy, 0px));
  }
  .bm-toast__timer {
    visibility: hidden;
  }
  .bm-toast--bump .bm-toast__card {
    animation: none;
  }
  .bm-toast[data-tone='progress'] .bm-toast__icon svg {
    animation-duration: 2.4s;
  }
}

@keyframes bm-toast-time {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}
@keyframes bm-toast-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes bm-toast-bump {
  40% {
    transform: scale(1.025);
  }
}
