.cc-course-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .cc-course-actions {
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
  }
}

.cc-action-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 5rem;
  padding: 0.95rem 1.05rem;
  border-radius: 0.95rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(139, 26, 26, 0.16);
  background: #fff;
  box-shadow: 0 4px 14px rgba(42, 34, 34, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

a.cc-action-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(110, 21, 21, 0.08);
  border-color: rgba(139, 26, 26, 0.28);
}

.cc-action-card--final {
  background: linear-gradient(135deg, rgba(139, 26, 26, 0.08), rgba(201, 168, 76, 0.12) 55%, #fff 100%);
  border-color: rgba(139, 26, 26, 0.22);
}

.cc-action-card--practice {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.14), rgba(139, 26, 26, 0.06) 50%, #fff 100%);
  border-color: rgba(201, 168, 76, 0.35);
}

.cc-action-card.is-locked {
  opacity: 0.92;
  cursor: not-allowed;
  box-shadow: none;
}

.cc-action-card.is-done {
  border-color: rgba(22, 163, 74, 0.28);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.08), rgba(201, 168, 76, 0.08), #fff);
}

.cc-action-icon {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 26, 26, 0.1);
  color: #8B1A1A;
  border: 1px solid rgba(201, 168, 76, 0.35);
}

.cc-action-card--practice .cc-action-icon {
  background: rgba(201, 168, 76, 0.18);
  color: #6E1515;
}

.cc-action-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.cc-action-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.cc-action-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #A07828;
}

.cc-action-title {
  font-family: "Noto Serif SC", serif;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.25;
  color: #6E1515;
}

.cc-action-desc {
  font-size: 0.76rem;
  line-height: 1.45;
  color: #7A6A5A;
}

.cc-action-tag {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.22);
}

.cc-action-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.35rem 0.9rem;
  border-radius: 0.6rem;
  background: #8B1A1A;
  color: #F3E6B8;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.cc-action-card--practice .cc-action-cta {
  background: #6E1515;
  color: #F3E6B8;
}

.cc-action-card.is-locked .cc-action-cta {
  background: #F3E6B8;
  color: #6E1515;
  border: 1px solid rgba(139, 26, 26, 0.22);
}

.co-board {
  border-radius: 0.9rem;
  border: 1px solid rgba(139, 26, 26, 0.12);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 4px 18px rgba(42, 34, 34, 0.04);
}

.co-board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(139, 26, 26, 0.08);
}

.co-board-head h3 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: 1.05rem;
  color: #6E1515;
}

.co-board-actions {
  display: flex;
  gap: 0.45rem;
}

.co-board-actions button {
  min-height: 2rem;
  padding: 0.3rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #8B1A1A;
  background: #8B1A1A;
  color: #F3E6B8;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.co-board-actions button:hover { background: #6E1515; }
.co-board-actions button.is-active {
  background: #F3E6B8;
  color: #6E1515;
  border-color: #C9A84C;
}

.co-toc.is-books .co-book-body,
.co-toc.is-books .co-book.is-open > .co-book-body { display: none; }
.co-toc.is-books .co-toggle svg { transform: none; }

.co-toc.is-chapters .co-book > .co-row { display: none; }
.co-toc.is-chapters .co-book-body,
.co-toc.is-chapters .co-book.is-open > .co-book-body {
  display: block;
  padding: 0.15rem 0 0.35rem;
}
.co-toc.is-chapters .co-period-list,
.co-toc.is-chapters .co-chapter.is-open > .co-period-list { display: none; }
.co-toc.is-chapters .co-chapter > .co-row .co-toggle svg { transform: none; }

.co-toc { padding: 0.65rem 0.75rem 0.9rem; }

.co-book,
.co-chapter {
  border-radius: 0.75rem;
}

.co-book { margin-bottom: 0.55rem; background: rgba(139, 26, 26, 0.03); }
.co-book.is-open { background: rgba(139, 26, 26, 0.045); }

.co-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.55rem;
}

.co-toggle {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: #8B1A1A;
  cursor: pointer;
}

.co-toggle svg {
  width: 0.9rem;
  height: 0.9rem;
  display: block;
  margin: 0 auto;
  transition: transform 0.15s ease;
}

.co-book.is-open > .co-row .co-toggle svg,
.co-chapter.is-open > .co-row .co-toggle svg { transform: rotate(90deg); }

.co-link {
  min-width: 0;
  flex: 1;
  color: #2A2222;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.45;
}

.co-link:hover { color: #8B1A1A; }

.co-meta {
  flex: 0 0 auto;
  color: #7A6A5A;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.co-count {
  flex: 0 0 auto;
  min-width: 1.6rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(139, 26, 26, 0.08);
  color: #8B1A1A;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.co-book-body,
.co-period-list { display: none; padding: 0 0.4rem 0.45rem 1.6rem; }
.co-book.is-open > .co-book-body,
.co-chapter.is-open > .co-period-list { display: block; }

.co-chapter {
  margin-bottom: 0.35rem;
  background: #fff;
  border: 1px solid rgba(201, 168, 76, 0.22);
}

.co-period {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.2rem 0;
  padding: 0.45rem 0.55rem 0.45rem 0.7rem;
  border-radius: 0.55rem;
}

.co-period:hover { background: rgba(139, 26, 26, 0.04); }

.co-period.is-done {
  background: rgba(22, 163, 74, 0.06);
}

.co-period.is-done:hover {
  background: rgba(22, 163, 74, 0.1);
}

.co-period .co-link { font-weight: 600; font-size: 0.9rem; flex: 1; min-width: 0; }

.co-done-tag {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #15803d;
  background: rgba(22, 163, 74, 0.14);
  border: 1px solid rgba(22, 163, 74, 0.28);
  white-space: nowrap;
}

.co-quiz {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.45rem 0.4rem 0.65rem 1.6rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.85rem;
  border: 1.5px solid rgba(139, 26, 26, 0.42);
  background:
    linear-gradient(135deg, rgba(139, 26, 26, 0.12) 0%, rgba(201, 168, 76, 0.16) 55%, rgba(248, 241, 220, 0.55) 100%);
  box-shadow: 0 4px 14px rgba(110, 21, 21, 0.08);
}

.co-quiz.is-done {
  border-color: rgba(22, 163, 74, 0.42);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.1), rgba(201, 168, 76, 0.12));
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.1);
}

.co-quiz-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  min-height: 2.35rem;
  border-radius: 0.65rem;
  padding: 0.25rem 0.45rem;
  background: linear-gradient(145deg, #8B1A1A, #6E1515);
  color: #F3E6B8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1px rgba(201, 168, 76, 0.35);
}

.co-quiz-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.co-quiz-main .co-link {
  font-family: "Noto Serif SC", serif;
  font-size: 1rem;
  font-weight: 800;
  color: #6E1515;
}

.co-quiz-main .co-link:hover {
  color: #8B1A1A;
}

.co-quiz-desc {
  margin: 0;
  font-size: 0.74rem;
  color: #7A6A5A;
  line-height: 1.45;
}

.co-quiz-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.35rem 0.9rem;
  border-radius: 0.55rem;
  border: 1px solid #8B1A1A;
  background: #8B1A1A;
  color: #F3E6B8;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(139, 26, 26, 0.22);
}

.co-quiz-btn:hover {
  background: #6E1515;
  color: #F3E6B8;
}

.co-quiz.is-locked {
  opacity: 1;
  border-style: solid;
  border-color: rgba(139, 26, 26, 0.28);
  background:
    linear-gradient(135deg, rgba(139, 26, 26, 0.08) 0%, rgba(201, 168, 76, 0.1) 60%, rgba(255, 255, 255, 0.7) 100%);
  box-shadow: 0 3px 10px rgba(110, 21, 21, 0.05);
}

.co-quiz.is-locked .co-quiz-badge {
  background: linear-gradient(145deg, #9f3a3a, #8B1A1A);
  opacity: 0.92;
}

.co-quiz.is-locked .co-quiz-main .co-link,
.co-quiz.is-locked .co-quiz-main > span.co-link {
  color: #8B1A1A;
}

.co-quiz-btn.is-locked {
  border-color: rgba(139, 26, 26, 0.35);
  background: #F3E6B8;
  color: #6E1515;
  box-shadow: none;
  cursor: not-allowed;
}

.co-toc.is-chapters .co-quiz {
  display: flex;
  margin-left: 0.55rem;
}

.co-toc.is-books .co-quiz {
  display: none;
}
