#speaking-part3-panel[hidden],
.part3-library[hidden],
.part3-detail[hidden] {
  display: none !important;
}

.speaking-part3-panel {
  margin-top: 22px;
}

.part3-practice-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid rgba(9, 148, 130, 0.2);
  border-radius: 30px;
  background:
    radial-gradient(circle at 96% 4%, rgba(14, 169, 147, 0.13), transparent 28%),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 58px rgba(18, 60, 72, 0.12);
}

.part3-practice-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.part3-practice-head h2 {
  margin: 5px 0 8px;
  color: #10233a;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.12;
}

.part3-practice-head p:last-child {
  max-width: 700px;
  margin: 0;
  color: #607388;
  line-height: 1.6;
}

.part3-progress {
  display: grid;
  flex: 0 0 auto;
  min-width: 112px;
  padding: 13px 16px;
  text-align: center;
  border: 1px solid #c7e7e2;
  border-radius: 16px;
  background: #effcf9;
}

.part3-progress strong {
  color: #087b6b;
  font-size: 1.08rem;
}

.part3-progress span {
  margin-top: 2px;
  color: #668079;
  font-size: 0.72rem;
  font-weight: 800;
}

.speaking-library-bar--green {
  border-color: #c7e7e2;
  background: linear-gradient(135deg, #f1fcf9, #f2f8ff);
}

.speaking-library-bar--green button,
.speaking-library-back--green {
  color: #087b6b;
  border-color: #bfe0dc;
}

.part3-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.part3-topic-button {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 17px;
  text-align: left;
  border: 1px solid #d4e7e5;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 75, 76, 0.06);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.part3-topic-button:hover,
.part3-topic-button:focus-visible {
  transform: translateY(-2px);
  border-color: #56b9aa;
  box-shadow: 0 14px 30px rgba(8, 123, 107, 0.12);
}

.part3-topic-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  font-weight: 950;
  border-radius: 15px;
  background: linear-gradient(135deg, #087b6b, #0b8cab);
}

.part3-topic-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.part3-topic-copy strong {
  color: #142b3d;
  font-size: 0.98rem;
  line-height: 1.35;
}

.part3-topic-copy span {
  color: #6a7e8b;
  font-size: 0.76rem;
  font-weight: 700;
}

.part3-topic-copy small {
  color: #0a8f7d;
  font-size: 0.68rem;
  font-weight: 900;
}

.part3-topic-arrow {
  color: #0a8f7d;
  font-size: 1.2rem;
  font-weight: 950;
}

.part3-topic-button.is-viewed::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  color: #fff;
  font-size: 0.65rem;
  border-radius: 50%;
  background: #087b6b;
}

.part3-topic-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding: 22px 24px;
  color: #fff;
  border-radius: 22px;
  background: linear-gradient(135deg, #075f55, #0b8cab);
}

.part3-topic-heading .speaking-label {
  color: #bdf6e9;
}

.part3-topic-heading h2 {
  margin: 5px 0 0;
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.part3-topic-heading > strong {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 11px;
  background: rgba(255,255,255,.12);
}

.part3-question-list {
  display: grid;
  gap: 13px;
  margin-top: 16px;
}

.part3-question-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 21px;
  border: 1px solid #d2e5e3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 75, 76, 0.055);
}

.part3-question-item span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #087b6b;
  font-size: 0.74rem;
  font-weight: 950;
  border-radius: 13px;
  background: #e6f8f4;
}

.part3-question-item div {
  display: grid;
  gap: 6px;
}

.part3-question-item small {
  color: #0a8f7d;
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.part3-question-item strong {
  color: #13283c;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.48;
}

.part3-question-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 390px;
  margin-top: 28px;
  padding: clamp(26px, 5vw, 54px);
  overflow: hidden;
  border: 1px solid #cce5e2;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(242, 253, 251, 0.98), rgba(239, 247, 255, 0.96));
  box-shadow: 0 18px 42px rgba(28, 77, 92, 0.1);
}

.part3-question-card::after {
  content: "?“";
  position: absolute;
  right: 20px;
  bottom: -42px;
  color: rgba(8, 123, 107, 0.06);
  font-size: 11rem;
  font-weight: 950;
  line-height: 1;
}

.part3-card-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
}

.part3-card-meta span {
  padding: 7px 10px;
  color: #087b6b;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  border-radius: 9px;
  background: #dff7f2;
}

.part3-card-meta strong {
  margin-left: auto;
  color: #64758a;
  font-size: 0.8rem;
}

.part3-examiner-label {
  position: relative;
  z-index: 1;
  margin: 38px 0 9px;
  color: #0a8f7d;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.part3-question-card > h2 {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0;
  color: #102038;
  font-size: clamp(1.65rem, 3.5vw, 2.75rem);
  line-height: 1.28;
  letter-spacing: -0.035em;
}

.part3-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 11px;
  margin-top: 20px;
}

.part3-actions button {
  min-height: 50px;
  padding: 0 16px;
  color: #087b6b;
  font: inherit;
  font-weight: 900;
  border: 1px solid #bfe0dc;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.part3-actions button:hover,
.part3-actions button:focus-visible {
  border-color: #0a8f7d;
  background: #f0fbf9;
}

.part3-actions button.is-primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #087b6b, #0b8cab);
  box-shadow: 0 12px 24px rgba(8, 123, 107, 0.2);
}

.part3-source-note {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding: 15px 17px;
  color: #66778b;
  font-size: 0.82rem;
  line-height: 1.55;
  border: 1px solid #dce7ec;
  border-radius: 15px;
  background: #f8fafc;
}

.part3-source-note strong {
  flex: 0 0 auto;
  color: #163044;
}

@media (max-width: 760px) {
  .part3-practice-head,
  .part3-source-note {
    display: block;
  }

  .part3-progress {
    width: fit-content;
    margin-top: 16px;
  }

  .part3-topic-grid {
    grid-template-columns: 1fr;
  }

  .part3-topic-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .part3-question-item {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 17px;
  }

  .part3-question-item span {
    width: 38px;
    height: 38px;
  }

  .part3-question-card {
    min-height: 350px;
  }

  .part3-card-meta {
    flex-wrap: wrap;
  }

  .part3-card-meta strong {
    flex-basis: 100%;
    margin: 3px 0 0;
  }

  .part3-actions {
    grid-template-columns: 1fr;
  }

  .part3-source-note span {
    display: block;
    margin-top: 5px;
  }
}
