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

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

.part2-practice-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid rgba(124, 92, 214, 0.18);
  border-radius: 30px;
  background:
    radial-gradient(circle at 96% 3%, rgba(124, 92, 214, 0.12), transparent 27%),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 58px rgba(29, 42, 74, 0.12);
}

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

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

.part2-practice-head p:last-child {
  max-width: 690px;
  margin: 0;
  color: #65738a;
  line-height: 1.6;
}

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

.part2-progress strong {
  color: #5b3fb2;
  font-size: 1.08rem;
}

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

.speaking-library-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid #ddd5f7;
  border-radius: 18px;
  background: linear-gradient(135deg, #faf8ff, #f3f6ff);
}

.speaking-library-bar > div {
  display: grid;
  gap: 3px;
}

.speaking-library-bar strong {
  color: #17213b;
  font-size: 0.95rem;
}

.speaking-library-bar span {
  color: #718097;
  font-size: 0.78rem;
  font-weight: 700;
}

.speaking-library-bar button,
.speaking-library-back {
  min-height: 44px;
  padding: 0 16px;
  color: #5b3fb2;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 900;
  border: 1px solid #d3c9f1;
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
}

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

.part2-topic-button {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 102px;
  padding: 16px;
  text-align: left;
  border: 1px solid #dce2ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(46, 53, 91, 0.06);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.part2-topic-button:hover,
.part2-topic-button:focus-visible {
  transform: translateY(-2px);
  border-color: #9d88df;
  box-shadow: 0 13px 28px rgba(91, 63, 178, 0.12);
}

.part2-topic-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  font-weight: 950;
  border-radius: 13px;
  background: linear-gradient(135deg, #7654d8, #496ec5);
}

.part2-topic-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.part2-topic-copy small {
  color: #7654d8;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.part2-topic-copy strong {
  overflow-wrap: anywhere;
  color: #18233c;
  font-size: 0.9rem;
  line-height: 1.35;
}

.part2-topic-arrow {
  color: #7654d8;
  font-size: 1.2rem;
  font-weight: 950;
}

.part2-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: #0a9b7b;
}

.speaking-library-back {
  margin-top: 26px;
}

.part2-card {
  position: relative;
  margin-top: 28px;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  color: #17213b;
  border: 1px solid #d7dff2;
  border-top: 7px solid #7654d8;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(61, 52, 112, 0.1);
}

.part2-card::after {
  content: "2";
  position: absolute;
  right: 22px;
  bottom: -72px;
  color: rgba(118, 84, 216, 0.055);
  font-size: 13rem;
  font-weight: 950;
  line-height: 1;
}

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

.part2-card-meta span {
  padding: 7px 10px;
  color: #5c46a6;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  border-radius: 9px;
  background: #f0ecff;
}

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

.part2-card > h2 {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 26px 0 22px;
  color: #121d35;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.part2-prompt-box {
  position: relative;
  z-index: 1;
  padding: 22px;
  border-left: 4px solid #7654d8;
  border-radius: 0 18px 18px 0;
  background: #f8f7ff;
}

.part2-prompt-box > strong {
  color: #51399e;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.part2-prompt-box ul {
  display: grid;
  gap: 11px;
  margin: 15px 0 0;
  padding-left: 22px;
}

.part2-prompt-box li {
  padding-left: 4px;
  font-weight: 750;
  line-height: 1.5;
}

.part2-prompt-box li::marker {
  color: #7654d8;
}

.part2-live-timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 17px 18px;
  border: 1px solid #dfce95;
  border-radius: 17px;
  background: linear-gradient(135deg, #fffaf0, #f7f9ff);
}

.part2-live-timer.is-speaking { border-color: #9bcfc5; background: linear-gradient(135deg, #eefbf7, #f2f8ff); }
.part2-live-timer.is-complete { border-color: #b7dec0; background: #f1fbf3; }
.part2-live-timer > div:first-child { display: grid; grid-template-columns: auto auto; gap: 3px 12px; align-items: center; }
.part2-live-timer > div:first-child span { color: #94701c; font-size: .68rem; font-weight: 950; letter-spacing: .09em; }
.part2-live-timer > div:first-child strong { grid-row: 1 / 3; grid-column: 2; color: #172b48; font-size: 1.65rem; font-variant-numeric: tabular-nums; }
.part2-live-timer > div:first-child small { color: #738096; font-weight: 700; }
.part2-live-timer > div:last-child { display: flex; gap: 8px; }
.part2-live-timer button { min-height: 43px; padding: 0 13px; color: #5b3fb2; font: inherit; font-size: .75rem; font-weight: 900; border: 1px solid #d3c9f1; border-radius: 12px; background: #fff; cursor: pointer; }
.part2-live-timer button.is-primary { color: #fff; border-color: transparent; background: linear-gradient(135deg, #7654d8, #496ec5); }
.part2-live-timer button:disabled { cursor: wait; opacity: .65; }

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

.part2-actions button {
  min-height: 50px;
  padding: 0 16px;
  color: #4c3a8f;
  font: inherit;
  font-weight: 900;
  border: 1px solid #d3c9f1;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.part2-actions button:hover,
.part2-actions button:focus-visible {
  border-color: #7654d8;
  background: #f7f4ff;
}

.part2-actions button.is-primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #7654d8, #496ec5);
  box-shadow: 0 12px 24px rgba(92, 70, 174, 0.22);
}

.part2-related-part3 {
  width: 100%;
  min-height: 54px;
  margin-top: 12px;
  padding: 0 18px;
  color: #075f55;
  font: inherit;
  font-weight: 950;
  border: 1px solid #9edbd1;
  border-radius: 15px;
  background: linear-gradient(135deg, #eafaf6, #edf7ff);
  cursor: pointer;
}

.part2-related-part3:hover,
.part2-related-part3:focus-visible {
  border-color: #087b6b;
  background: #def7f1;
}

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

.part2-source-note strong {
  flex: 0 0 auto;
  color: #17213b;
}

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

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

  .speaking-library-bar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .part2-topic-button {
    min-height: 92px;
  }

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

  .part2-live-timer { align-items: stretch; flex-direction: column; }
  .part2-live-timer > div:last-child { display: grid; grid-template-columns: 1fr 1fr; }

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

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

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

@media (prefers-reduced-motion: reduce) {
  .part2-actions button {
    transition: none;
  }
}
