.practice-intro .guide-content > .main-paragraph:first-child {
  margin: 0;
}

.practice-links-section > .step-divider:first-child {
  margin-top: 0;
}

.practice-panel {
  position: relative;
  margin: 0 0 25px 0;
}

.practice-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.practice-levels {
  display: inline-flex;
  border: 1px solid #cccccc;
  border-radius: 8px;
  overflow: hidden;
}

.practice-level {
  padding: 8px 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #333333;
  background: #ffffff;
  border: none;
  border-right: 1px solid #cccccc;
  cursor: pointer;
}

.practice-level:last-child {
  border-right: none;
}

.practice-level:hover {
  background: #f2f6ff;
}

.practice-level.active {
  color: #ffffff;
  background: #007BFF;
}

.practice-new {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: #007BFF;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.practice-new:hover {
  background: #0056b3;
}

.practice-new.is-loading svg {
  animation: practice-spin 0.8s linear infinite;
}

.practice-new:disabled,
.practice-check:disabled {
  opacity: 0.75;
  cursor: wait;
}

@keyframes practice-spin {
  to {
    transform: rotate(360deg);
  }
}

.practice-quota {
  margin: 8px 0 0 0;
  text-align: right;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #666666;
}

.practice-locked {
  margin: 0 0 25px 0;
  padding: 4px 16px 22px;
  border: 1px solid #dddddd;
  border-radius: 8px;
  background: #fcfcfd;
  text-align: center;
}

.practice-locked .main-paragraph {
  margin: 0 0 16px 0;
}

.practice-locked .practice-locked-button {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  text-decoration: none;
}

.practice-problem {
  padding: 4px 16px 18px;
  border: 1px solid #dddddd;
  border-radius: 8px;
  background: #fcfcfd;
}

.practice-prompt {
  text-align: center;
  margin: 0 0 12px 0;
}

.practice-problem-math {
  overflow-x: auto;
}

.practice-loading {
  font-size: 14px;
  color: #777777;
}

.practice-answer-title {
  margin-top: 25px;
}

.practice-input {
  margin-bottom: 25px;
}

.practice-panel .keyboard-container {
  margin-top: 0;
  margin-bottom: 25px;
}

.practice-panel .answer-box + .steps-buttons,
.practice-panel .answer-box + .steps-buttons.hidden + .login-please-text {
  margin-top: 25px;
}

.practice-prefix {
  position: absolute;
  left: 21px;
  top: 22px;
  z-index: 5;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  font-family: 'Times New Roman', serif;
  font-size: 18px;
  color: #000000;
}

.practice-input .field-prefix .katex,
.practice-prefix .katex,
.practice-matrix-label .katex {
  font-size: 1.05em;
}

.practice-matrix-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0 18px;
}

.practice-matrix-label {
  font-family: 'Times New Roman', serif;
  font-size: 18px;
}

.practice-matrix {
  display: grid;
  gap: 8px;
  padding: 6px 12px;
  border-left: 2px solid #333333;
  border-right: 2px solid #333333;
  border-radius: 6px;
}

math-field.practice-cell {
  min-height: 44px;
  padding: 10px 8px;
  text-align: center;
}

.practice-choice-wrap .practice-choice {
  width: 100%;
  min-height: 56px;
  padding: 0 14px;
  font-size: 16px;
  border: 1px solid #cccccc;
  background: #ffffff;
}

.answer-box .practice-correct .answer-label {
  color: #15803d;
}

.answer-box .practice-wrong .answer-label,
.answer-box .practice-empty .answer-label {
  color: #b91c1c;
}

.practice-note {
  font-weight: 400;
}

.answer-box .practice-wrong .answer-value .math-expr {
  font-weight: 400;
}

@media (max-width: 768px) {
  .practice-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .practice-levels {
    display: flex;
  }

  .practice-level {
    flex: 1;
    padding: 8px 0;
  }

  .practice-new {
    justify-content: center;
  }

  .practice-quota {
    text-align: center;
  }
}
