/* Weekly selector badges and task metadata */
.weekly-week-holiday,
.holiday-badge {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(207, 232, 255, 0.9);
  color: #28577f;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-remain-line {
  margin-top: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}

.task-remain-line strong {
  color: var(--text);
}

.calendar-availability-card {
  border-style: dashed;
  opacity: 0.95;
}

.weekly-title-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.weekly-back-row {
  display: flex;
  justify-content: flex-start;
}

.weekly-header-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.weekly-back-row .weekly-circle-button {
  margin-bottom: 4px;
}

.weekly-header-navigation {
  display: flex;
  align-items: center;
  gap: 10px;
}

.weekly-circle-button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--pill-surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(31, 41, 55, 0.04);
}

.weekly-circle-button:hover {
  background: var(--pill-surface-hover);
}

.weekly-circle-button.back-button {
  font-size: 17px;
}

.weekly-week-title-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  min-width: 0;
  align-items: center;
  text-align: center;
}

.weekly-detail-title {
  font-size: 28px;
  margin: 0;
}

.weekly-detail-subtitle {
  color: var(--muted);
  font-size: 14px;
}

.month-title {
  position: sticky;
  top: 115px;
  align-self: start;
}

.month-title h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
}

.month-title span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 17px;
}

.days-area {
  width: 100%;
}

.weekly-days-area {
  overflow-x: auto;
  padding-bottom: 2px;
}

.week-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.week-days div {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.weekly-days-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(160px, 1fr));
  gap: 12px;
  min-width: 1120px;
}

.day-square {
  aspect-ratio: 1 / 1;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fbfcff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transition: 0.2s;
  overflow: hidden;
}

.day-square:not(.empty-day) {
  cursor: pointer;
}

.day-square:not(.empty-day):hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(31, 41, 55, 0.08);
  border-color: var(--pastel-blue-border);
}

.empty-day {
  background: #f8fbff;
  border: 1px solid var(--line);
  cursor: default;
}

.day-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.today .day-number {
  background: var(--pastel-blue);
  border: 2px solid var(--pastel-blue-border);
  color: #17456f;
  font-weight: bold;
}

