:root {
  --primary: #18b6ff;
  --primary2: #6c7bff;
}

.nav-links a.is-active {
  color: var(--text);
  background: rgba(24, 182, 255, 0.12);
  border: 1px solid rgba(24, 182, 255, 0.22);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.glass {
  border: 1px solid var(--stroke);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.glass-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(11, 16, 32, 0.08);
  background: rgba(11, 16, 32, 0.02);
}

.glass-title {
  margin-left: 6px;
  font-weight: 760;
  color: var(--muted);
  font-size: 13px;
}

.glass-body {
  padding: 18px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  opacity: 0.92;
}
.dot-red {
  background: #ff5f57;
}
.dot-yellow {
  background: #febc2e;
}
.dot-green {
  background: #28c840;
}

.note {
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid rgba(11, 16, 32, 0.1);
  background: rgba(11, 16, 32, 0.02);
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.note-k {
  font-weight: 760;
  color: rgba(11, 16, 32, 0.86);
  white-space: nowrap;
}
.note-v {
  color: var(--muted);
  line-height: 1.7;
}

.section-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tabs-body {
  padding: 14px;
}
.tabs-pane {
  display: none;
}
.tabs-pane.is-active {
  display: block;
}

.course-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(11, 16, 32, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 255, 0.84));
  box-shadow: 0 18px 42px rgba(15, 18, 27, 0.08);
}

.course-search {
  width: 100%;
}

.course-search input {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(11, 16, 32, 0.12);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
}
.course-search input::placeholder {
  color: rgba(11, 16, 32, 0.45);
}
.course-search input:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.course-filters {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.chip:hover {
  transform: translateY(-1px);
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
}
.chip:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
.chip.is-active {
  color: rgba(11, 16, 32, 0.92);
  border-color: rgba(24, 182, 255, 0.35);
  background: linear-gradient(135deg, rgba(24, 182, 255, 0.18), rgba(108, 123, 255, 0.14));
}

.course-grid .card {
  min-height: unset;
  position: relative;
  border-color: rgba(11, 16, 32, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 255, 0.92));
  box-shadow:
    0 18px 40px rgba(15, 18, 27, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.course-grid .card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(24, 182, 255, 0.34), rgba(108, 123, 255, 0.16));
}

.course-grid .card:hover {
  border-color: rgba(24, 182, 255, 0.28);
  box-shadow:
    0 22px 48px rgba(15, 18, 27, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.course-card-title {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11, 16, 32, 0.1);
  background: rgba(11, 16, 32, 0.02);
  color: rgba(11, 16, 32, 0.74);
  font-size: 12px;
  white-space: nowrap;
}
.pill--primary {
  border-color: rgba(24, 182, 255, 0.24);
  background: rgba(24, 182, 255, 0.08);
  color: rgba(11, 16, 32, 0.82);
}

.course-status {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.course-count {
  font-size: 14px;
  font-weight: 620;
  color: rgba(11, 16, 32, 0.72);
}

.course-message {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.course-empty {
  padding: 22px 20px;
}

.course-empty h3 {
  margin-bottom: 8px;
}

.course-empty p {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .tabs-body {
    padding: 12px;
  }
  .course-toolbar {
    padding: 14px;
    border-radius: 20px;
  }
  .course-search input {
    width: 100%;
    min-height: 52px;
    font-size: 16px;
  }
  .course-filters {
    gap: 10px;
  }
  .course-filters .chip {
    min-height: 46px;
    padding: 10px 14px;
    font-size: 14px;
  }
  .course-grid {
    margin-top: 16px;
    gap: 14px;
  }
  .course-grid .card {
    padding: 16px 16px 15px;
  }
}
