.assignment-panel {
  margin: 0 0 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  padding: 0.8rem 0.9rem;
  font-family: inherit;
}

.assignment-panel summary {
  cursor: pointer;
  font-weight: 700;
  color: #2a3b52;
  font-family: inherit;
  list-style-position: outside;
}

.assignment-panel-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 0.8rem;
}

.assignment-panel-grid label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.9rem;
  font-family: inherit;
}

.assignment-panel-grid input,
.assignment-panel-grid select,
.assignment-panel-grid button {
  border-radius: 8px;
  border: 1px solid #c7d2de;
  min-height: 2.3rem;
  padding: 0.35rem 0.55rem;
  font-family: inherit;
}

.assignment-panel-grid button {
  background: #2f80ed;
  color: #fff;
  border: none;
  font-weight: 700;
}

.assignment-panel-hint {
  margin: 0.55rem 0 0;
  color: #5e6b79;
  font-size: 0.9rem;
  font-family: inherit;
}

.assignment-panel-feedback {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  font-family: inherit;
}

.exercise.assign-selectable {
  padding-right: 4.5rem;
}

.exercise.assign-selectable .exercise-levels-panel {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.assign-exercise-toggle.exercise-levels-btn {
  font-style: normal;
  font-weight: 700;
}

.assign-exercise-toggle--selected,
.exercise.assign-selected .assign-exercise-toggle {
  color: #b45309;
  border-color: #d97706;
  background: rgba(245, 158, 11, 0.18);
}

.exercise.assign-selected {
  outline: 2px solid rgba(245, 158, 11, 0.95);
  background: rgba(255, 251, 235, 0.72);
  box-shadow:
    0 0 0 3px rgba(253, 224, 71, 0.55),
    0 0 18px rgba(245, 158, 11, 0.5);
}
