/* Основные стили с учетом LWSCache */
.csedu-oge-timeline-compact {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.csedu-header {
  text-align: center;
  margin-bottom: 25px;
}

.csedu-header h2 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 10px;
  line-height: 1.3;
}

/* Навигация по периодам */
.csedu-period-nav {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.csedu-period-btn {
  background: #f0f0f0;
  border: none;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #555;
  transition: all 0.2s;
}

.csedu-period-btn.active {
  background: var(--accent-color, #4a89dc);
  color: white;
  font-weight: 500;
}

/* Стили периодов и карточек (оставляем как в предыдущем удачном варианте) */
.csedu-period {
  margin-bottom: 40px;
  border-left: 2px solid #eaeaea;
  padding-left: 20px;
  position: relative;
}

.csedu-period-header {
  margin-bottom: 15px;
}

.csedu-period-title {
  font-weight: 600;
  color: #2c3e50;
  font-size: 1.1rem;
}

.csedu-period-dates {
  color: #7f8c8d;
  font-size: 0.9rem;
}

.csedu-day-group {
  display: flex;
  margin-bottom: 20px;
  position: relative;
}

.csedu-date-badge {
  width: 60px;
  flex-shrink: 0;
  text-align: center;
  margin-right: 15px;
  background: #f8f9fa;
  border-radius: 6px;
  padding: 8px 0;
}

.csedu-date-day {
  font-size: 1.4rem;
  font-weight: 700;
  color: #4a89dc;
  line-height: 1;
}

.csedu-date-month {
  font-size: 0.8rem;
  color: #7f8c8d;
  margin: 2px 0;
}

.csedu-date-weekday {
  font-size: 0.75rem;
  color: #7f8c8d;
}

.csedu-exams-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-grow: 1;
}

.csedu-exam-card {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 12px;
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  cursor: pointer;
  transition: all 0.2s;
}

.csedu-exam-card:hover {
  border-color: #4a89dc;
  box-shadow: 0 3px 10px rgba(74, 137, 220, 0.1);
}

.csedu-exam-icon {
  font-size: 24px;
  margin-right: 12px;
  flex-shrink: 0;
}

.csedu-exam-content {
  flex-grow: 1;
  min-width: 0;
}

.csedu-exam-content h3 {
  margin: 0 0 5px 0;
  color: #2c3e50;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.csedu-exam-duration {
  font-size: 0.8rem;
  color: #7f8c8d;
  background: #f5f7fa;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-block;
}

/* Модальное окно */
.csedu-modal {
  /* Стили остаются без изменений */
}

/* Адаптивность */
@media (max-width: 600px) {
  .csedu-day-group {
    flex-direction: column;
  }
  
  .csedu-date-badge {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 6px;
  }
  
  .csedu-date-day {
    font-size: 1.2rem;
  }
}