*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid #2f7bbf; outline-offset: 3px; }

[hidden] { display: none !important; }

button, .btn, [data-add], [data-cat-btn], [data-open-quote], .wa-float, .tile, .aud, .look a, table.lista button {
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-ghost { background: transparent; }

#am-toast {
  position: fixed;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #111;
  color: #fff;
  padding: 0.7rem 1.1rem;
  opacity: 0;
  pointer-events: none;
  z-index: 80;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
#am-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

#am-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.55);
  display: none;
  place-items: center;
  z-index: 70;
  padding: 1rem;
}
#am-modal.is-on { display: grid; }
.modal-panel {
  background: #fff;
  width: min(32rem, 100%);
  padding: 1.5rem;
  max-height: 80vh;
  overflow: auto;
}
.modal-list p { display: flex; justify-content: space-between; gap: 1rem; margin: 0.4rem 0; }
.modal-list button { border: 0; background: none; text-decoration: underline; cursor: pointer; }
.modal-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; }

.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 60;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}
.wa-float svg { width: 1.6rem; height: 1.6rem; fill: currentColor; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: 0.5rem; z-index: 90; }
