/* Toasts, approval requests and hint bubbles. */

.toasts {
  position: fixed;
  right: var(--edge);
  bottom: var(--edge);
  z-index: 100;
  display: grid;
  justify-items: end;
  gap: 8px;
  max-width: min(380px, calc(100vw - 28px));
  pointer-events: none;
}
.toast {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--ok);
  border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-float);
  font-size: 13px;
  animation: toast-in .25s var(--ease);
  transition: opacity .25s ease, transform .25s ease;
}
.toast.err { border-left-color: var(--danger); }
.toast.leaving { opacity: 0; transform: translateY(6px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Approvals ---------- */
.approvals {
  position: fixed;
  top: calc(var(--edge) + var(--thumb-size) + 16px);
  right: var(--edge);
  z-index: 95;
  display: grid;
  gap: 10px;
  width: min(300px, calc(100vw - 28px));
}
.approval {
  overflow: hidden;
  border: 1px solid var(--accent);
  border-radius: var(--radius-panel);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-pop), 0 0 0 4px var(--glow);
  animation: toast-in .25s var(--ease);
  transition: opacity .2s ease, transform .2s ease;
}
.approval.leaving { opacity: 0; transform: translateX(12px); }
.approval-head { padding: 10px 12px 0; font-size: 13px; }
.approval-media {
  display: grid;
  place-items: center;
  height: 180px;
  margin: 10px 12px 0;
  overflow: hidden;
  border-radius: var(--radius-control);
  background: #0b0f17;
}
.approval-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.approval-text { margin: 0; padding: 12px; max-height: 100%; overflow: auto; font-size: 13px; white-space: pre-wrap; align-self: start; }
.approval-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px 12px; }

/* ---------- Hints ---------- */
.hint {
  position: fixed;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: var(--shadow-float), 0 0 0 4px var(--glow);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.hint.visible { opacity: 1; }
.hint svg { width: 16px; height: 16px; color: var(--accent); }

.hint.below-bar { top: calc(var(--edge) + var(--thumb-size) + 28px); left: 50%; transform: translate(-50%, -8px); }
.hint.below-bar.visible { transform: translate(-50%, 0); }
.hint.bottom { bottom: 80px; left: 50%; transform: translate(-50%, 8px); }
.hint.bottom.visible { transform: translate(-50%, 0); }
.hint.import { transform: translate(-50%, -6px); }
.hint.import.visible { transform: translate(-50%, 0); }
.hint.share { transform: translate(-6px, -50%); }
.hint.share.visible { transform: translate(0, -50%); }
