.study-structural-toolbar,
.study-resource-organizer,
.study-simulado-fallback {
  margin: 16px 0 20px;
  padding: 16px;
  border: 1px solid rgba(255, 129, 47, 0.24);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.study-structural-head,
.study-resource-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.study-structural-head strong,
.study-resource-head h2 {
  display: block;
  margin: 0;
  font-size: 18px;
  color: inherit;
}

.study-structural-head span,
.study-resource-head p {
  display: block;
  margin: 4px 0 0;
  opacity: 0.78;
  font-size: 13px;
}

.study-structural-head small {
  opacity: 0.5;
  font-size: 11px;
}

.study-structural-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.study-structural-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 260px;
  font-size: 13px;
  opacity: 0.95;
}

.study-structural-row select {
  min-height: 42px;
  border-radius: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 129, 47, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

.study-structural-row button,
.study-resource-card,
#studyStartSimulado,
.study-simulado-actions button,
#studySimuladoRestart {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 700;
}

#studyStructuralApply,
#studyStartSimulado,
#studySimuladoRestart {
  background: #ff812f;
  color: #111;
}

#studyStructuralClear,
.study-simulado-actions button {
  background: rgba(255, 255, 255, 0.10);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.study-structural-counts,
.study-resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.study-structural-chip,
.study-resource-card {
  text-align: left;
  background: rgba(255, 255, 255, 0.07);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.study-structural-chip b {
  float: right;
  color: #ff812f;
}

.study-resource-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.study-resource-card.active {
  border-color: #ff812f;
  box-shadow: 0 0 0 2px rgba(255, 129, 47, 0.18);
}

.study-resource-card span,
.study-resource-note {
  opacity: 0.75;
  font-size: 13px;
}

.study-resource-note {
  margin-top: 12px;
}

.study-simulado-progress {
  margin: 10px 0;
  font-weight: 700;
  color: #ff812f;
}

.study-simulado-question {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.study-simulado-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.study-simulado-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 129, 47, 0.14);
  font-size: 12px;
}

.study-simulado-question h3 {
  margin: 10px 0 14px;
  line-height: 1.45;
}

.study-simulado-alternativas {
  display: grid;
  gap: 8px;
}

.study-simulado-alt {
  display: grid;
  grid-template-columns: auto 28px 1fr;
  gap: 8px;
  align-items: start;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.study-simulado-alt b {
  color: #ff812f;
}

.study-simulado-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  gap: 10px;
}

.study-simulado-result {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.study-simulado-breakdown {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}

.study-simulado-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 720px) {
  .study-structural-row label {
    min-width: 100%;
  }

  .study-structural-head,
  .study-resource-head {
    flex-direction: column;
  }
}
