.lexia-generator-embed {
  display: grid;
  gap: 22px;
  border: 1px solid rgba(12, 25, 54, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(37, 86, 226, 0.04) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(0deg, rgba(37, 86, 226, 0.04) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 244, 252, 0.96));
  padding: 24px;
  box-shadow: 0 24px 60px rgba(9, 22, 47, 0.08);
}

.lexia-generator-embed__head {
  display: grid;
  gap: 12px;
}

.lexia-generator-embed__eyebrow {
  margin: 0;
  color: #c88543;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lexia-generator-embed__head h2 {
  margin: 0;
  color: #0d1930;
  font-size: clamp(1.7rem, 1.3rem + 1vw, 2.6rem);
  line-height: 1.02;
}

.lexia-generator-embed__head p {
  margin: 0;
  color: #48607d;
}

.lexia-generator-embed__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lexia-generator-embed__step {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(20, 58, 146, 0.12);
  background: rgba(221, 231, 255, 0.6);
  padding: 0 14px;
  color: #0b2d72;
  font-size: 0.82rem;
  font-weight: 600;
}

.lexia-generator-embed__status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(12, 25, 54, 0.08);
  padding: 0 16px;
  color: #0b2d72;
  font-size: 0.92rem;
  font-weight: 600;
}

.lexia-generator-embed__status[data-tone='ok'] {
  background: rgba(228, 245, 235, 0.96);
  color: #146247;
}

.lexia-generator-embed__status[data-tone='info'] {
  background: rgba(226, 235, 255, 0.96);
  color: #0b2d72;
}

.lexia-generator-embed__status[data-tone='error'] {
  background: rgba(251, 235, 235, 0.96);
  color: #8a2f2f;
}

.lexia-generator-embed__frame {
  width: 100%;
  min-height: 720px;
  border: 1px solid rgba(12, 25, 54, 0.08);
  border-radius: 20px;
  background: #ffffff;
}

.lexia-generator-embed--error {
  color: #8a2f2f;
}
