/* Schedule page — slot-based */

/* Week bar: compact adherence heatmap */
.sched-weekbar {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.sched-weekbar__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  flex: 1;
}
.sched-weekday {
  padding: 8px 6px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: transparent;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 8px;
  align-items: center;
  transition: background .12s, border-color .12s;
  text-align: left;
  cursor: pointer;
}
.sched-weekday:hover { background: var(--bg-inset); }
.sched-weekday.is-active { background: var(--bg-inset); border-color: var(--border-strong); }
.sched-weekday__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-faint);
  font-weight: 600;
  grid-row: 1;
}
.sched-weekday__num {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-strong);
  grid-row: 2;
}
.sched-weekday__bar {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 5px;
  height: 28px;
  background: var(--bg-inset);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.sched-weekday__fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 2px;
  transition: height .2s;
}

/* Today: slot rows */
.sched-slots {
  padding: 4px 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sched-slot {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  overflow: hidden;
  transition: border-color .12s;
}
.sched-slot:hover { border-color: var(--border-strong); }
.sched-slot.is-open { border-color: var(--border-strong); }
.sched-slot--done { background: color-mix(in oklab, var(--ok) 4%, var(--bg-elev)); }
.sched-slot--overdue { border-color: color-mix(in oklab, var(--warn) 40%, var(--border)); }

.sched-slot__row {
  width: 100%;
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
}
.sched-slot__time { display: flex; flex-direction: column; gap: 2px; }
.sched-slot__hour {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-strong);
  letter-spacing: -0.01em;
  line-height: 1;
}
.sched-slot__phase {
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 500;
}
.sched-slot__main {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.sched-slot__summary {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sched-slot__dots {
  display: flex;
  gap: 3px;
  margin-left: 4px;
}
.sched-slot__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid;
  background: transparent;
  transition: all .15s;
}
.sched-slot__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sched-slot__detail {
  border-top: 1px solid var(--border);
  padding: 10px 16px 14px 116px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-inset);
}
.sched-slot__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: all 0.12s;
  text-align: left;
  width: 100%;
  cursor: pointer;
}
.sched-slot__item:hover { border-color: var(--border-strong); }
.sched-slot__item.is-taken { opacity: 0.65; }

.sched-check {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: grid; place-items: center;
  color: transparent;
  flex-shrink: 0;
}
.sched-check.is-taken { background: var(--ok); border-color: var(--ok); color: white; }

.sched-regimen {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-bottom: 8px;
}
