/* Screen-height carousel with a floating, centered navigation. */
.carousel-section { flex:1; min-width:0; display:flex; flex-direction:column; }
.carousel-viewport { flex:1; min-height:0; width:100%; display:flex;
  align-items:center; overflow-x:auto; overflow-y:hidden; scrollbar-width:none;
  scroll-snap-type:x mandatory; scroll-behavior:smooth;
  overscroll-behavior-x:contain; }
.carousel-viewport::-webkit-scrollbar { display:none; }
.carousel-track { display:flex; align-items:center; gap:clamp(12px,2.5vw,36px);
  width:max-content; min-width:100%;
  padding:8px calc((100% - var(--slide-width))/2) 65px; }
.slide { width:var(--slide-width); flex:0 0 var(--slide-width);
  scroll-snap-align:center; opacity:.52; filter:brightness(.84);
  transform:scale(.98); transition:opacity .34s,filter .34s,transform .34s; }
.slide.is-active { opacity:1; filter:none; transform:scale(1); }
.page-shell { position:relative; overflow:hidden; isolation:isolate;
  border-radius:3px; background:#fff; box-shadow:var(--shadow); }
.sheet-open { position:absolute; inset:0; z-index:1; width:100%; height:100%;
  display:grid; place-items:center; padding:0; cursor:zoom-in;
  background:rgba(31,39,36,0); color:white; border:0;
  opacity:0; transition:background-color .22s,opacity .22s; }
.sheet-open .action-icon { width:45px; height:45px; display:grid; place-items:center;
  border-radius:50%; background:#17251fc4; }
.sheet-open .action-icon svg { width:25px; height:25px; }
@media (hover:hover) {
  .page-shell:hover .sheet-open,.sheet-open:focus-visible { opacity:1;
    background:rgba(75,79,77,.26); }
}
.sheet-open:focus-visible { opacity:1; outline-offset:-4px; }
.slide-actions { display:flex; gap:8px; justify-content:flex-end;
  align-items:center; min-height:46px; margin-top:7px; }
.page-action { display:inline-flex; align-items:center; justify-content:center;
  gap:8px; min-height:40px; padding:8px 13px; border:1px solid var(--line);
  border-radius:11px; background:var(--surface); color:var(--ink);
  font-size:13px; font-weight:650; transition:background .2s,transform .2s; }
.page-action:hover { background:var(--surface-soft); transform:translateY(-1px); }
.page-action--primary { background:var(--ui-green-deep); color:var(--on-action);
  border-color:var(--ui-green-deep); }
.page-action--primary:hover { background:var(--ui-green); }
.page-action:disabled { opacity:.55; }
.action-icon { display:inline-flex; flex:none; }
.action-icon svg { width:19px; height:19px; }
.action-label-short { display:none; }
.carousel-footer { position:fixed; left:50%; transform:translateX(-50%);
  bottom:calc(26px + env(safe-area-inset-bottom)); z-index:17;
  display:flex; align-items:center; gap:8px; pointer-events:none; }
.navigation { display:flex; align-items:center; gap:7px; padding:5px;
  border:1px solid var(--line); border-radius:16px;
  background:var(--surface); box-shadow:0 7px 24px #0c1e1620;
  pointer-events:auto; }
.nav-button { width:42px; height:42px; display:grid; place-items:center;
  border:0; border-radius:11px; background:transparent; color:var(--ink);
  transition:background .2s,transform .2s; }
.nav-button svg { width:23px; height:23px; }
.nav-button:not(:disabled):hover { background:var(--surface-soft); }
.nav-button:disabled { opacity:.3; cursor:not-allowed; }
.nav-button:active { transform:scale(.95); }
.dots { display:none; }
.empty { width:var(--slide-width); text-align:center; color:var(--muted);
  min-height:320px; display:grid; place-content:center; }
@media(max-width:650px) {
  .carousel-track { padding-bottom:62px; }
  .page-action { min-width:45px; min-height:40px; padding:8px 11px;
    font-size:13px; }
  .page-action:not(.page-action--primary) .action-label-long { display:none; }
  .page-action--primary .action-label-long { display:none; }
  .page-action--primary .action-label-short { display:inline; }
  .navigation { gap:6px; padding:4px; border-radius:15px; }
  .nav-button { width:40px; height:40px; }
  .carousel-footer { bottom:calc(24px + env(safe-area-inset-bottom)); }
}
@media (hover:none) { .sheet-open { opacity:0; } }
@media (prefers-reduced-motion:reduce) { .carousel-viewport { scroll-behavior:auto; } }
