:is(.section-daily, .section-combined) .container:has(.ps-week-menu) { max-width: var(--width); }
.ps-week-toolbar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-bottom: 16px;
}
.ps-week-controls { grid-area: 1 / 2; }
.ps-week-prev { grid-area: 1 / 1; justify-self: start; --ps-arrow-shift: -3px; }
.ps-week-next { grid-area: 1 / 3; justify-self: end; }
.ps-week-prev svg { transform: rotate(180deg); }
@media (max-width: 680px) {
  .ps-week-toolbar { grid-template-columns: 1fr 1fr; }
  .ps-week-controls { grid-area: 1 / 1 / 2 / -1; }
  .ps-week-prev { grid-area: 2 / 1; }
  .ps-week-next { grid-area: 2 / 2; }
  .ps-week-toolbar .button { padding-inline: 12px; gap: 6px; }
}
.ps-week-controls { display: flex; justify-content: center; align-items: center; gap: 12px; }
.ps-week-controls p { margin: 0; font-weight: 600; }
.ps-week-controls button {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: var(--red); color: white; cursor: pointer;
}
.ps-week-controls button[hidden] { display: none; }
.ps-week-controls button svg { display: block; width: 22px; height: 22px; }
.ps-week-controls [data-step="-1"] { --step-shift: -3px; }
.ps-week-controls [data-step="-1"] svg { transform: rotate(180deg); }
.ps-week-controls button:enabled:is(:hover,:focus-visible) { background: var(--brown); }
.ps-week-controls button:disabled, .ps-week-toolbar .ps-week-next:disabled {
  opacity: .42; cursor: default; pointer-events: none; box-shadow: none;
}
@media (prefers-reduced-motion: no-preference) {
  .ps-week-controls button { transition: background-color .3s, transform .3s; }
  .ps-week-controls button svg { transition: translate .3s ease; }
  .ps-week-controls button:enabled:is(:hover,:focus-visible) { transform: scale(1.06); }
  .ps-week-controls button:enabled:is(:hover,:focus-visible) svg { translate: var(--step-shift, 3px) 0; }
}
.ps-week-track {
  --card: min(82%, 760px);
  display: flex; align-items: center; position: relative; scrollbar-width: none;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
}
.ps-week-track::-webkit-scrollbar { display: none; }
.ps-week-track.is-ready { scroll-snap-type: none; scroll-behavior: auto; touch-action: pan-y pinch-zoom; }
.ps-week-track.is-ready .ps-week-card { opacity: .62; }
.ps-week-track.is-ready .ps-week-card.is-current,
.ps-week-track.is-ready .ps-week-card:focus-within { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .ps-week-card { transition: opacity .35s ease; }
}
.ps-week-card { flex: 0 0 var(--card); min-width: 0; scroll-snap-align: center; }
.ps-week-card + .ps-week-card { margin-left: 16px; }
.ps-week-card:first-child { margin-left: calc((100% - var(--card)) / 2); }
.ps-week-track::after { content: ""; flex: 0 0 calc((100% - var(--card)) / 2); }
.ps-week-card > .ps-day-menu { margin: 0; }
.ps-week-track.is-dragging { cursor: grabbing; user-select: none; scroll-snap-type: none; }
@media (hover: hover) { .ps-week-track:has(.ps-week-card:nth-child(2)) { cursor: grab; } }
@media (max-width: 600px) { .ps-week-track { --card: 94%; } }
