/* Feed day slider — smooth ±1 day slide with preview pane */

#s-home > .feed-day-slider {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.feed-day-slider-track {
  display: flex;
  flex-direction: row;
  width: 200%;
  height: 100%;
  will-change: transform;
}

.feed-day-slide {
  flex: 0 0 50%;
  width: 50%;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feed-day-slide--current {
  overflow: hidden;
}

.feed-day-slide--current #home-scroll {
  flex: 1;
  min-height: 0;
  height: 100%;
  width: 100%;
}

.feed-day-slide--incoming {
  visibility: hidden;
  pointer-events: none;
}

.feed-day-slide--incoming.feed-day-slide--visible {
  visibility: visible;
  pointer-events: auto;
}

.feed-day-preview {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 24px 20px;
  background: var(--bg);
  border-left: 1px solid var(--border);
}

.feed-day-slider-track--back .feed-day-preview {
  border-left: none;
  border-right: 1px solid var(--border);
}

.feed-day-preview-inner {
  text-align: center;
  padding: 28px 24px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--sh);
  max-width: min(280px, 72vw);
}

.feed-day-preview-label {
  display: block;
  font-family: Manrope, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.feed-day-preview-sub {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--t3);
}

body.feed-day-swipe-dragging .feed-day-slider,
body.feed-day-swipe-dragging #home-scroll {
  touch-action: none;
}

/* Calendar sheet */
.feed-cal-sheet .sheet {
  max-height: min(88vh, 640px);
}

.feed-cal-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.feed-cal-title {
  font-family: Manrope, sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.feed-cal-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.feed-cal-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--s2);
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feed-cal-today-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(var(--brand-rgb, 45, 106, 79), 0.35);
  background: var(--brand-dim);
  color: var(--brand);
  font-family: Manrope, sans-serif;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.feed-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}

.feed-cal-weekday {
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.feed-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.feed-cal-cell {
  aspect-ratio: 1;
  min-height: 40px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  background: var(--s2);
  color: var(--text);
  font-family: Manrope, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px;
  position: relative;
}

.feed-cal-cell--muted {
  opacity: 0.35;
  pointer-events: none;
}

.feed-cal-cell--today {
  border-color: rgba(var(--brand-rgb, 45, 106, 79), 0.45);
}

.feed-cal-cell--active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.feed-cal-cell-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

.feed-cal-cell--active .feed-cal-cell-dot {
  background: #fff;
}

.feed-cal-cell-dot.social {
  background: var(--coral);
}

.feed-cal-cell-dot.friend {
  background: var(--t3);
}

.feed-day-jump-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.feed-day-jump-cal {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--s2);
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
}

.feed-day-jump-cal-ico {
  font-size: 11px;
  line-height: 1;
  opacity: 0.92;
}

.feed-day-jump-cal-num {
  font-family: Manrope, sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  margin-top: 1px;
  letter-spacing: -0.02em;
}

.feed-day-jump-cal:active {
  transform: scale(0.96);
}
