/* ============================================================
   My Day — Tab-specific styles (gym, today, month)
   ============================================================ */

/* ---------- Gym ---------- */
.split-tabs { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-5); }
.split-tab {
  padding: var(--s-3) var(--s-5); border-radius: var(--r-pill);
  font-weight: 800; background: var(--bg-sunken); color: var(--text-soft);
  transition: all var(--dur-fast) var(--ease-out);
}
.split-tab[aria-selected="true"] { background: linear-gradient(120deg, var(--pink-300), var(--pink-200)); color: var(--accent-strong); box-shadow: var(--sh-sm); }

.exercise {
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s-4); margin-bottom: var(--s-3); background: var(--cream);
}
.exercise__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); flex-wrap: wrap; }
.exercise__name { font-family: var(--font-display); font-size: var(--fs-lg); }
.set-row { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-2); flex-wrap: wrap; }
.set-row__n { width: 26px; height: 26px; border-radius: 8px; background: var(--pink-100); color: var(--accent-strong); display: grid; place-items: center; font-weight: 800; font-size: var(--fs-xs); flex: none; }

.gym-stat { display: flex; gap: var(--s-3); align-items: baseline; }
.gym-stat__big { font-family: var(--font-display); font-size: var(--fs-2xl); }
.pr-flag {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--good-bg); color: var(--good);
  padding: 2px 10px; border-radius: var(--r-pill); font-weight: 800; font-size: var(--fs-xs);
}

/* ---------- Today timeline ---------- */
.timeline { position: relative; padding-left: 64px; }
.timeline::before {
  content: ""; position: absolute; left: 52px; top: 8px; bottom: 8px; width: 2px;
  background: var(--line);
}
.tl-hour { position: relative; min-height: 56px; padding: var(--s-1) 0; }
.tl-hour__time {
  position: absolute; left: -64px; top: 6px; width: 48px; text-align: right;
  font-size: var(--fs-xs); font-weight: 800; color: var(--text-muted);
}
.tl-hour__dot {
  position: absolute; left: -16px; top: 12px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--line); border: 2px solid var(--bg-elevated);
}
.tl-hour.has-task .tl-hour__dot { background: var(--accent); }
.tl-task {
  border-radius: var(--r-md); padding: var(--s-3) var(--s-4); margin-bottom: 6px;
  font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  border: 1px solid rgba(0,0,0,0.04);
  animation: viewIn var(--dur) var(--ease-out);
}
.tl-task__time { font-size: var(--fs-xs); font-weight: 800; opacity: 0.7; }
.tl-task__del { opacity: 0; transition: opacity var(--dur-fast); }
.tl-task:hover .tl-task__del { opacity: 0.6; }
.tl-task__del:hover { opacity: 1; }

/* ---------- Month calendar ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-4); gap: var(--s-3); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s-2); }
.cal-dow { text-align: center; font-size: var(--fs-xs); font-weight: 800; color: var(--text-muted); padding-bottom: var(--s-1); }
.cal-cell {
  min-height: 92px; min-width: 0; border-radius: var(--r-md);
  background: var(--cream); border: 1px solid var(--line);
  padding: var(--s-2); display: flex; flex-direction: column; gap: 3px;
  transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-fast);
  text-align: left; align-items: stretch; overflow: hidden;
}
.cal-cell:hover { transform: translateY(-2px); box-shadow: var(--sh-sm); }
.cal-cell.is-out { opacity: 0.4; }
.cal-cell.is-today { border-color: var(--pink-300); box-shadow: 0 0 0 2px var(--pink-200); }
.cal-cell__n { font-weight: 800; font-size: var(--fs-sm); }
.cal-cell.is-today .cal-cell__n { color: var(--accent-strong); }
.cal-event {
  font-size: 0.66rem; font-weight: 800; padding: 2px 6px; border-radius: 7px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%; min-width: 0; display: block;
  border: 1px solid rgba(0,0,0,0.04);
}
.cal-legend { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-4); }
.cal-legend__item { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; }
.cal-legend__dot { width: 12px; height: 12px; border-radius: 4px; }

@media (max-width: 600px) {
  .cal-cell { min-height: 64px; }
  .cal-event { font-size: 0.55rem; }
}

/* ---------- Settings ---------- */
.set-group { padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.set-group:last-child { border-bottom: none; }
.switch { position: relative; width: 50px; height: 28px; border-radius: var(--r-pill); background: var(--ink-300); transition: background var(--dur); flex: none; }
.switch[aria-checked="true"] { background: var(--good); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform var(--dur) var(--ease-spring); box-shadow: var(--sh-sm); }
.switch[aria-checked="true"]::after { transform: translateX(22px); }
