.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 120ms ease, box-shadow 120ms ease,
    background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.btn--primary {
  background: #5b7566;
  color: #fdf7ee;
  box-shadow: 0 10px 28px rgba(77, 104, 88, 0.45);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 35px rgba(77, 104, 88, 0.6);
}

.btn--secondary {
  background: #f3e3d0;
  color: #3b2a20;
  border: 1px solid rgba(185, 155, 129, 0.9);
  box-shadow: 0 8px 24px rgba(127, 101, 79, 0.35);
}

.btn--secondary:hover {
  background: #f7ebdd;
}

.btn--ghost {
  background: transparent;
  color: #5b7566;
  border: 1px solid rgba(91, 117, 102, 0.4);
}

.btn--ghost:hover {
  background: rgba(91, 117, 102, 0.08);
}

.btn--full {
  width: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid transparent;
}

.pill--soft {
  background: #efe0cf;
  color: #6a503b;
  border-color: rgba(154, 122, 93, 0.7);
}

.card {
  border-radius: 0.9rem;
  padding: 1.1rem 1.2rem;
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 14px 40px rgba(92, 68, 47, 0.24);
}

.card--topic h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: #3b2a20;
}

.card--topic p {
  margin: 0;
  font-size: 0.88rem;
  color: #6e5c4d;
}

.auth-shell {
  display: flex;
  justify-content: center;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 1.8rem 1.9rem 1.7rem;
  border-radius: 1.2rem;
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 18px 55px rgba(86, 62, 41, 0.22);
}

.auth-card h1 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.6rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.form-field span:first-child {
  color: #5a4b3f;
  font-weight: 500;
}

.form-field input,
.form-field textarea {
  border-radius: 0.8rem;
  border: 1px solid #ddc8af;
  padding: 0.55rem 0.8rem;
  font: inherit;
  background: #fdf8f0;
  color: #3f332b;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(91, 117, 102, 0.7);
  outline-offset: 1px;
}

.form__hint {
  margin: 0.1rem 0 0;
  font-size: 0.8rem;
  color: #7b6756;
}

.form__error {
  margin: 0.3rem 0 0;
  font-size: 0.84rem;
  color: #8a3232;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-summary {
  min-width: 200px;
  text-align: right;
  font-size: 0.88rem;
  color: #6e5c4d;
}

.dashboard-topics h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.cards-column {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.topic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.4fr);
  gap: 2rem;
}

.notes {
  font-size: 0.94rem;
  line-height: 1.7;
  color: #5a4b3f;
}

.topic-questions__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.topic-progress {
  font-size: 0.9rem;
  color: #6e5c4d;
}

.question-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.5fr);
  gap: 2rem;
}

.question-text {
  margin-top: 0.6rem;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  background: #f4ece2;
  font-size: 0.96rem;
  line-height: 1.7;
}

.question-marks {
  font-size: 0.86rem;
  color: #7f6b5b;
}

.answer-panel h2 {
  margin-top: 0;
}

.answer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.3rem;
}

.feedback {
  margin-top: 1.4rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: #f4ece2;
}

.feedback__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.feedback-score {
  font-size: 0.9rem;
  color: #6e5c4d;
}

.feedback-steps {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: #5a4b3f;
}

.feedback-steps ul {
  margin: 0.3rem 0 0;
  padding-left: 1.1rem;
}

.recent-attempts {
  margin-top: 1.4rem;
  font-size: 0.86rem;
  color: #6e5c4d;
}

.recent-attempts ul {
  padding-left: 1.1rem;
}

.admin-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .dashboard-header,
  .topic-layout,
  .question-layout {
    flex-direction: column;
    display: flex;
  }

  .dashboard-summary {
    text-align: left;
  }
}

@media (max-width: 900px) {
  .dashboard-header,
  .topic-layout,
  .question-layout {
    flex-direction: column;
    display: flex;
  }

  .dashboard-summary {
    text-align: left;
  }
}



