/* montraspec extras on top of perpspad's compiled CSS (assets/vendor/styles-*.css).
   Only what their CSS has no class for: the toast (they use sonner, which injects its own styles at run time),
   the candle chart canvas and a few one-off sizes. */

/* ---- toast: sonner, dark, bottom-right ---- */
.ms-toaster {
  position: fixed;
  right: 16px;
  bottom: 52px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(356px, calc(100vw - 32px));
  pointer-events: none;
}
.ms-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid hsl(0, 0%, 20%);
  background: hsl(0, 0%, 9%);
  color: hsl(0, 0%, 99%);
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: ms-toast-in 0.4s cubic-bezier(0.21, 1.02, 0.73, 1) both;
}
.ms-toast.ms-out { animation: ms-toast-out 0.2s ease forwards; }
.ms-toast-ico { width: 16px; height: 16px; flex-shrink: 0; margin-right: 4px; }
.ms-toast[data-type='success'] .ms-toast-ico { color: var(--up); }
.ms-toast[data-type='error'] .ms-toast-ico { color: var(--down); }
.ms-toast-text { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ms-toast-title { font-weight: 500; line-height: 1.5; }
.ms-toast-desc { color: hsl(0, 0%, 63%); line-height: 1.4; word-break: break-word; }
.ms-toast-act {
  margin-left: auto;
  flex-shrink: 0;
  height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  background: hsl(0, 0%, 99%);
  color: hsl(0, 0%, 9%);
}
@keyframes ms-toast-in { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: none; } }
@keyframes ms-toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---- candle chart (token page) ---- */
.ms-chart { position: relative; width: 100%; height: 100%; }
.ms-chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ms-chart-tip {
  position: absolute;
  left: 8px;
  top: 6px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--muted-foreground);
  pointer-events: none;
  white-space: nowrap;
}

/* hero art fallback: keep the card colour when the art file is missing */
img.ms-noart { visibility: hidden; }

/* token page: trade box swap arrow, full-width row in the coin grid */
.ms-swap { margin-block: -10px; }
.ms-swap-ring { border: 4px solid var(--panel-deep); }
.ms-ph::placeholder { color: color-mix(in oklab, var(--foreground) 70%, transparent); }
.ms-span-all { grid-column: 1 / -1; }
