.calendarView { min-width: 0; }
.calToolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.calNav { display: flex; align-items: center; gap: 6px; }
.calTitle { margin: 0; color: #e7e1d6; font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.calBtn {
  min-height: 35px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #24231f, #1b1a18);
  color: #d8d4cb;
  cursor: pointer;
}
.calBtn:hover:not(:disabled) { border-color: #514d44; color: var(--txt); }
.calBtn:disabled { color: #77746d; cursor: not-allowed; }
.calToday { font-size: 12px; }
.calSync { justify-self: end; min-width: 150px; }
.calStatus {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: rgba(24, 24, 22, .72);
  color: var(--mut);
  font-size: 11.5px;
}
.calHidden { margin-left: auto; color: #7f7b72; white-space: nowrap; }
.calError { color: #cf887c; }
.calendarGrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #171714;
  box-shadow: inset 0 1px rgba(255,255,255,.035), var(--shadow);
}
.calWeekday {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 35px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line);
  background: #201f1c;
  color: #8f8b82;
  font-size: 11px;
  font-weight: 620;
}
.calWeekday:nth-child(7) { border-right: 0; }
.calDay {
  min-height: 116px;
  padding: 8px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255,255,255,.004);
}
.calDay:nth-child(7n + 7) { border-right: 0; }
.calDay:nth-last-child(-n + 7) { border-bottom: 0; }
.calDay.outside { background: rgba(0,0,0,.12); }
.calDayNumber {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  border-radius: 50%;
  color: #b5b0a7;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.calDay.outside .calDayNumber { color: #615f59; }
.calDay.today .calDayNumber { background: #c2ae87; color: #171511; font-weight: 700; }
.calItems { display: flex; flex-direction: column; gap: 3px; }
.calItem {
  min-width: 0;
  overflow: hidden;
  padding: 3px 6px;
  border: 1px solid #35332e;
  border-radius: 5px;
  background: #211f1b;
  color: #cfc9be;
  font-size: 10.5px;
  line-height: 1.4;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
button.calItem { width: 100%; cursor: pointer; }
.calItem.task::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 6px 1px 0; border-radius: 50%; background: var(--todo); }
.calItem.task.in_progress::before { background: var(--in_progress); }
.calItem.task.blocked::before { background: var(--blocked); }
.calItem.google { border-color: #4b453a; background: #29251f; color: #c9b894; }
.calMore { padding-left: 6px; color: #77736b; font-size: 10px; }

@media (max-width: 900px) {
  .calendarGrid { grid-template-columns: repeat(7, minmax(102px, 1fr)); }
  .calToolbar { grid-template-columns: auto 1fr auto; }
}

@media (max-width: 600px) {
  .calToolbar { grid-template-columns: 1fr auto; }
  .calTitle { grid-row: 1; grid-column: 1 / -1; text-align: center; }
  .calNav { grid-row: 2; }
  .calSync { grid-row: 2; min-width: 0; }
  .calStatus { align-items: flex-start; flex-direction: column; gap: 4px; }
  .calHidden { margin-left: 0; }
  .calendarGrid { grid-template-columns: repeat(7, minmax(96px, 1fr)); }
  .calDay { min-height: 106px; }
}
