.academy-dashboard {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.academy-dashboard article,
.start-class {
  min-height: 112px;
  padding: 16px;
  border: 1px solid #d3e6e9;
  border-radius: 20px;
  background: #fff;
}

.academy-dashboard article {
  display: flex;
  align-items: center;
  gap: 10px;
}

.academy-dashboard article > span {
  font-size: 2rem;
}

.academy-dashboard article small,
.academy-dashboard article b {
  display: block;
}

.academy-dashboard article small {
  color: #718b92;
}

.academy-dashboard article b {
  margin-top: 4px;
  font-size: 1.35rem;
}

.level-card {
  display: block !important;
  color: #fff;
  background: linear-gradient(130deg, #075f83, #0ca184) !important;
}

.level-card small,
.level-card span,
.level-card strong {
  display: block;
}

.level-card small,
.level-card span {
  color: #c9fff3;
}

.level-card strong {
  margin: 5px 0;
  font-size: 1.35rem;
  direction: ltr;
  text-align: right;
}

.level-card button {
  margin-top: 10px;
  border: 1px solid #ffffff50;
  border-radius: 10px;
  padding: 7px 10px;
  color: #fff;
  background: #ffffff18;
  font-weight: 900;
}

.start-class {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 0;
  color: #173b47;
  background: linear-gradient(100deg, #ffe27c, #ffc64a);
  box-shadow: 0 8px 0 #dfa82e;
  cursor: pointer;
}

.start-class > span {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #0a8397;
}

.start-class small,
.start-class b {
  display: block;
  text-align: right;
}

.start-class b {
  margin-top: 3px;
  font-size: 1.15rem;
}

.class-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0;
  overflow-x: auto;
}

.class-flow > div {
  min-width: 130px;
  padding: 12px;
  text-align: center;
  border: 1px solid #d4e7e9;
  border-radius: 16px;
  background: #fff;
}

.class-flow i,
.class-flow b,
.class-flow small {
  display: block;
}

.class-flow i {
  width: 27px;
  height: 27px;
  margin: auto auto 5px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #0b94aa;
  font-style: normal;
}

.class-flow small {
  margin-top: 3px;
  color: #728c92;
}

.speaking-lab {
  display: grid;
  grid-template-columns: 1fr 230px;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  padding: 28px 7%;
  overflow: hidden;
  border-radius: 27px;
  color: #fff;
  background: linear-gradient(130deg, #123f78, #593c9b);
}

.speaking-lab small {
  color: #8eeaff;
  font-weight: 900;
}

.speaking-lab h2 {
  margin: 5px 0;
  font-size: 2rem;
  direction: ltr;
  text-align: right;
}

.speaking-lab > div > p {
  color: #d9e8ff;
}

.speaking-lab blockquote {
  margin: 17px 0;
  padding: 15px;
  border: 1px solid #ffffff2f;
  border-radius: 16px;
  background: #ffffff10;
}

.speaking-lab blockquote b,
.speaking-lab blockquote span {
  display: block;
}

.speaking-lab blockquote b {
  font-size: 1.35rem;
  direction: ltr;
  text-align: right;
}

.speaking-lab blockquote span {
  margin-top: 5px;
  color: #c4d5ed;
}

.speak-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.speak-actions button {
  border: 1px solid #ffffff35;
  border-radius: 12px;
  padding: 10px 13px;
  color: #fff;
  background: #ffffff13;
  font-weight: 900;
}

.speak-actions button:nth-child(2) {
  color: #20344c;
  background: #ffd455;
}

.speech-result {
  min-height: 24px;
  font-weight: 900;
}

.mic-orb {
  position: relative;
  display: grid;
  width: 170px;
  height: 170px;
  place-items: center;
  justify-self: center;
  border: 2px solid #ffffff45;
  border-radius: 50%;
  background: #ffffff12;
  font-size: 5rem;
}

.mic-orb span {
  position: absolute;
  inset: 18px;
  border: 2px dashed #77dfff;
  border-radius: 50%;
  animation: spin 9s linear infinite;
}

dialog#placement {
  width: min(520px, calc(100% - 24px));
  border: 0;
  border-radius: 26px;
  padding: 28px;
  color: #153d50;
  box-shadow: 0 30px 80px #102a3a88;
}

dialog#placement::backdrop {
  background: #0d2737bd;
  backdrop-filter: blur(5px);
}

.dialog-close {
  float: left;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #edf4f5;
}

#placement h2 {
  margin: 7px 0 20px;
}

#placement-question {
  min-height: 75px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 900;
}

.placement-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.placement-answers button {
  min-height: 60px;
  border: 1px solid #d2e5e7;
  border-radius: 14px;
  background: #f7fcfd;
  color: #173f51;
  font-weight: 900;
}

#placement-step {
  color: #718a91;
  text-align: center;
}

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

@media (max-width: 780px) {
  .academy-dashboard {
    grid-template-columns: 1fr 1fr;
  }

  .level-card {
    grid-column: 1 / -1;
  }

  .class-flow {
    justify-content: flex-start;
  }

  .speaking-lab {
    grid-template-columns: 1fr;
  }

  .mic-orb {
    width: 120px;
    height: 120px;
    font-size: 3.5rem;
  }
}

@media (max-width: 480px) {
  .academy-dashboard {
    grid-template-columns: 1fr;
  }

  .academy-dashboard article {
    min-height: 90px;
  }

  .class-flow > span {
    display: none;
  }

  .speaking-lab {
    padding: 22px;
  }

  .placement-answers {
    grid-template-columns: 1fr;
  }
}
