/* Folha inferior / janela central e aviso rápido. */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center;
  background: var(--overlay); animation: fade var(--t-base) ease-out;
}
.sheet {
  width: 100%; max-height: 90dvh; overflow: auto; background: var(--surface); color: var(--fg);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-flutuante);
  padding: var(--s3) var(--s4) calc(var(--s5) + env(safe-area-inset-bottom));
  animation: rise var(--t-base) ease-out;
}
.sheet::before {
  content: ""; display: block; width: 40px; height: 4px; margin: 0 auto var(--s3);
  border-radius: var(--radius-pill); background: var(--line);
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.sheet-body > * + * { margin-top: var(--s3); }
.sheet-foot { display: grid; gap: var(--s2); margin-top: var(--s5); }

@media (min-width: 1024px) {
  .sheet-backdrop { align-items: center; padding: var(--s5); }
  .sheet { width: 480px; border-radius: var(--radius-lg); padding: var(--s5); animation-name: pop; }
  .sheet::before { display: none; }
  .sheet-foot { display: flex; justify-content: flex-end; }
}

.toasts {
  position: fixed; left: 0; right: 0; z-index: 110; display: grid; justify-items: center; gap: var(--s2);
  bottom: calc(var(--tabbar-h) + var(--s3) + env(safe-area-inset-bottom)); padding: 0 var(--s4); pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: var(--s2); max-width: 480px; padding: var(--s3) var(--s4);
  background: var(--fg); color: var(--bg); border-radius: var(--radius-md); box-shadow: var(--shadow-media);
  font-weight: 500; pointer-events: auto; animation: rise var(--t-base) ease-out;
}
@media (min-width: 1024px) { .toasts { bottom: var(--s5); } }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
