.smc-root {
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 10px 30px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.smc-page h2 {
  font-size: 20px;
  margin: 4px 0 8px;
}

.smc-subtitle {
  margin: 0 0 12px;
  color: #555;
}

.smc-level-list,
.smc-lesson-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.smc-card {
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.smc-level-card h3,
.smc-lesson-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.smc-level-card p,
.smc-lesson-card p {
  margin: 0 0 6px;
}

.smc-status {
  font-size: 13px;
  color: #666;
}

.smc-locked {
  opacity: 0.6;
}

.smc-completed {
  border: 1px solid #1abc9c;
}

.smc-tip-card ul {
  padding-left: 20px;
  margin: 6px 0 0;
}

.smc-btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  margin-top: 6px;
  font-size: 14px;
  cursor: pointer;
  background: #f1f1f1;
}

.smc-btn-primary {
  background: #9e3232;
  color: #fff;
}

.smc-btn-secondary {
  background: #eee;
  color: #333;
}

.smc-btn-link {
  background: transparent;
  color: #0066ff;
  padding: 0;
  margin-bottom: 8px;
}

.smc-btn-link:hover {
  text-decoration: underline;
}

.smc-counter {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

.smc-quiz-question {
  font-weight: 600;
  margin-top: 4px;
}

.smc-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0;
}

.smc-btn-option {
  width: 100%;
  text-align: left;
}

.smc-selected {
  outline: 2px solid #0066ff;
}

.smc-feedback {
  font-size: 13px;
  margin-top: 6px;
}

.smc-feedback-error {
  color: #d9534f;
}

.smc-feedback-success {
  color: #1abc9c;
}

.smc-btn-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

@media (prefers-color-scheme: dark) {
  .smc-root {
    background: #050505;
    color: #f5f5f5;
  }
  .smc-card {
    background: #111;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  }
  .smc-subtitle,
  .smc-status {
    color: #aaa;
  }
  .smc-btn {
    background: #222;
    color: #f5f5f5;
  }
  .smc-btn-primary {
    background: #0d6efd;
  }
}
