:root { font: 16px system-ui, sans-serif; color: #1a1a1a; background: #f3f3f3; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; }
main {
  width: min(calc(100% - 24px), 1280px, max(320px, (100svh - 116px) * 16 / 9));
  margin: 10px auto;
}
header, nav { display: flex; align-items: center; gap: 10px; }
header { margin-bottom: 10px; justify-content: space-between; }
header span { color: #565656; font-size: .875rem; }
.swiper { aspect-ratio: 16 / 9; background: white; border: 1px solid #dedede; border-radius: 8px; }
.swiper.swiper-horizontal { touch-action: pan-y pinch-zoom; }
.swiper-slide { position: relative; display: grid; place-items: center; }
.swiper-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.swiper-slide img[hidden] { display: none; }
.slide-status { position: absolute; padding: 12px; text-align: center; }
nav { margin-top: 10px; justify-content: center; }
button, select {
  min-height: 44px; min-width: 46px; padding: 4px 12px;
  color: inherit; background: white; border: 1px solid #d5d5d5; border-radius: 7px;
  font: inherit; cursor: pointer;
}
button:disabled { color: #888; background: transparent; cursor: default; }
select { width: min(100%, 440px); min-width: 0; text-overflow: ellipsis; }
button { flex: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
