.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.cal-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cal-nav h2 {
  font-size: 16px;
  margin: 0;
  min-width: 160px;
  text-align: center;
}

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

.cal-weekdays span {
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding-bottom: 6px;
}

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

.cal-cell {
  min-height: 96px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: default;
  transition: border-color 0.15s;
}

.cal-cell.outside {
  opacity: 0.35;
}

.cal-cell.today {
  border-color: var(--accent-2);
}

.cal-cell.drag-over {
  border-color: var(--accent-2);
  background: rgba(221, 42, 123, 0.08);
}

.cal-post-chip[draggable="true"] {
  cursor: grab;
}

.cal-post-chip.dragging {
  opacity: 0.4;
}

.cal-cell .cal-date {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-dim);
}

.cal-cell.today .cal-date {
  color: var(--accent-2);
}

.cal-post-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  padding: 3px 6px;
  border-radius: 5px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cal-post-chip:hover {
  border-color: var(--accent-2);
  color: var(--text);
}

.cal-post-chip.scheduled {
  border-left: 3px solid var(--warning);
}

.cal-post-chip.posted {
  border-left: 3px solid var(--success);
}

.cal-post-chip.publishing {
  border-left: 3px solid var(--accent-4);
}

.cal-post-chip.failed {
  border-left: 3px solid var(--danger);
}

.cal-post-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cal-more {
  font-size: 10px;
  color: var(--text-faint);
  padding-left: 6px;
}

@media (max-width: 760px) {
  .cal-cell {
    min-height: 70px;
  }
  .cal-weekdays span {
    font-size: 10px;
  }
}

/* Day modal list */
.day-post-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.day-post-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.day-post-item .thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
}

.day-post-item .thumb img,
.day-post-item .thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.day-post-item .info {
  min-width: 0;
  flex: 1;
}

.day-post-item .info .cap {
  font-size: 12.5px;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-post-item .info .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.day-post-item .actions {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
}

.day-post-item .actions button {
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 13px;
  padding: 4px;
}

.day-post-item .actions button:hover {
  color: var(--danger);
}

.day-modal {
  grid-template-columns: 1fr;
  max-width: 480px;
}
