*{box-sizing:border-box}

.three-months{
  display:flex;
  gap:12px;
  align-items:flex-start;
  margin-bottom:8px;
  flex-wrap:wrap;
}

.month-card{
  background:rgba(255,255,255,1);
  border-radius:0px;
  padding:12px;
  border: 1px solid rgba(0,0,0,.2);
  color: rgba(0,0,0,1);
  flex:1 1 260px;
  min-width:260px;
}

.month-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
}

.month-title{
  font-weight:600;
}

.weekdays{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:6px;
  color:rgba(102, 102, 102,1);
  font-size:0.9rem;
  margin-bottom:6px;
}

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

.day{
  min-height:40px;
  background:#fff;
  padding:6px;
  border:1px solid rgba(0,0,0,0.03);
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  position:relative;
  overflow:hidden;
  transition:transform .08s ease;
}

.day .num{
  font-weight:600;
  text-align: center;
  font-size:0.9rem;
  z-index:3;
}

.day.small{ min-height:48px; padding:6px 8px; }

.out-of-month{
  opacity:0.32;
}

/* full states */
.free{ background:linear-gradient(180deg, rgba(46,204,113,0.40), rgba(46,204,113,0.02)); border:1px solid rgba(46,204,113,0.14); }
.busy{ background:linear-gradient(180deg, rgba(231,76,60,0.40), rgba(231,76,60,0.02)); border:1px solid rgba(231,76,60,0.12); color:#2b1b19; }

/* partial split - left/right halves; colors applied via classes */
.day.partial { background: transparent; border:1px solid rgba(0,0,0,0.06); }
.split {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  z-index: 1;
  border-radius: 0px;
  overflow: hidden;
}
.split-left, .split-right {
  flex: 1 1 50%;
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
  padding:6px;
  min-height:60px;
  box-sizing:border-box;
}
/* default halves (left free, right busy) */
.split-left.free-half { background: linear-gradient(180deg, rgba(46,204,113,0.40), rgba(46,204,113,0.02)); border-right:1px solid rgba(0,0,0,0.02); }
.split-right.busy-half { background: linear-gradient(180deg, rgba(231,76,60,0.40), rgba(231,76,60,0.02)); border-left:1px solid rgba(0,0,0,0.02); }
/* reversed halves (left busy, right free) */
.split-left.busy-half { background: linear-gradient(180deg, rgba(231,76,60,0.40), rgba(231,76,60,0.02)); border-right:1px solid rgba(0,0,0,0.02); }
.split-right.free-half { background: linear-gradient(180deg, rgba(46,204,113,0.40), rgba(46,204,113,0.02)); border-left:1px solid rgba(0,0,0,0.02); }

/* ensure numbers and tooltip are on top of split layers */
.day .num, .event-tooltip { position: relative; z-index: 3; }

/* legend and dots */
.dot{
  display:inline-block;
  width:12px;height:12px;border-radius:50%;
  margin-right:6px;vertical-align:middle;
}

.legend-item{ display:flex; align-items:center; gap:1px; }

.free.dot{ background:rgba(46, 204, 113,1); box-shadow:0 0 0 4px rgba(46,204,113,0.06);}
.busy.dot{ background:rgba(231, 76, 60,1); box-shadow:0 0 0 4px rgba(231,76,60,0.06);}


