.av-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: var(--alpha-ui-color-text, #161616);
  border: 0;
  cursor: pointer;
  font: inherit;
}
.av-trigger svg {
  flex: none;
}
.av-mobilebar {
  flex-direction: column;
  font-size: var(--alpha-ui-font-size-2xs, 0.6875rem);
}
.av-mobile-fallback {
  position: fixed;
  bottom: 90px;
  right: 12px;
  z-index: var(--alpha-ui-z-overlay, 1040);
  padding: 10px;
  background: var(--alpha-ui-color-white, #ffffff);
  border: 1px solid var(--alpha-ui-color-border, #e3e7ec);
  border-radius: var(--alpha-ui-radius-md, 16px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .13);
}
.av-dialog {
  box-sizing: border-box;
  margin: 0 0 0 auto;
  max-width: 95vw;
  width: 440px;
  height: 100dvh;
  max-height: 100dvh;
  padding: 20px;
  border: 0;
  color: var(--alpha-ui-color-text, #161616);
  font-family: inherit;
  overflow: auto;
}
.av-dialog[open] {
  animation: av-in .2s ease;
}
.av-dialog.is-closing {
  animation: av-out .2s ease forwards;
}
.av-dialog::backdrop {
  background: var(--alpha-ui-color-overlay, rgb(17 19 24 / 55%));
}
.av-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--alpha-ui-space-sm, 0.75rem);
}
.av-dialog h2,.av-recent h2 {
  color: var(--alpha-ui-color-text, #161616);
  font-size: var(--alpha-ui-font-size-xl, 1.25rem);
  font-weight: var(--alpha-ui-font-weight-bold, 700);
}
.av-close {
  border: 0;
  background: none;
  font-size: 30px;
  cursor: pointer;
}
.av-items {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: var(--alpha-ui-space-md, 1rem);
}
.av-card {
  min-width: 0;
  border: 1px solid var(--alpha-ui-color-border, #e3e7ec);
  border-radius: var(--alpha-ui-radius-sm, 10px);
  padding: 10px;
}
.av-card a {
  display: block;
  color: inherit;
}
.av-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}
.av-card a span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: var(--alpha-ui-line-height-normal, 1.4);
  min-height: 2.8em;
  font-size: var(--alpha-ui-font-size-sm, 0.8125rem);
  margin-block: var(--alpha-ui-space-xs, 0.5rem);
}
.av-card strong {
  display: block;
}
.av-card button,.av-clear {
  border: 1px solid var(--alpha-ui-color-border, #e3e7ec);
  border-radius: var(--alpha-ui-radius-xs, 6px);
  padding: 5px 10px;
  background: var(--alpha-ui-color-white, #ffffff);
  color: inherit;
  cursor: pointer;
  margin-top: var(--alpha-ui-space-xs, 0.5rem);
}
.av-dialog footer {
  margin-top: var(--alpha-ui-space-md, 1rem);
}
.av-recent {
  margin-block: var(--alpha-ui-space-lg, 1.5rem);
}
.av-carrusel {
  position: relative;
}
.av-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 180px;
  gap: var(--alpha-ui-space-md, 1rem);
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: var(--alpha-ui-space-sm, 0.75rem);
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.av-carousel::-webkit-scrollbar {
  display: none;
}
.av-carousel > * {
  scroll-snap-align: start;
}
@media (prefers-reduced-motion: reduce) {
  .av-carousel { scroll-behavior: auto; }
}
.av-nav {
  position: absolute;
  top: calc(50% - 6px);
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--alpha-ui-color-border, #e3e7ec);
  border-radius: var(--alpha-ui-radius-round, 50%);
  background: var(--alpha-ui-color-white, #ffffff);
  color: var(--alpha-ui-color-text, #161616);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .13);
  cursor: pointer;
}
.av-nav:hover { border-color: var(--alpha-ui-color-text, #161616); }
.av-nav[hidden] { display: none; }
.av-nav--prev { left: -8px; }
.av-nav--next { right: -8px; }
.av-nav::before {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.av-nav--prev::before { transform: translateX(2px) rotate(135deg); }
.av-nav--next::before { transform: translateX(-2px) rotate(-45deg); }
.av-recent[hidden],.av-mobile-fallback[hidden],.av-clear[hidden] {
  display: none!important;
}
@keyframes av-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes av-out {
  to {
    transform: translateX(100%);
  }
}
@media(min-width:992px) {
  .av-mobile-fallback {
    display: none;
  }
}
@media(max-width:991px) {
  .av-desktop {
    display: none;
  }
}
@media(prefers-reduced-motion:reduce) {
  .av-dialog[open],.av-dialog.is-closing {
    animation: none;
  }
}
