.speech-modal-open {
  overflow: hidden;
}
.speech-dialog {
  width: min(600px, calc(100% - 28px));
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  border: 1px solid #dce4d5;
  border-radius: 28px;
  padding: 26px 30px;
  color: #28483e;
  background: #fffef8;
  box-shadow: 0 28px 100px #16372c45;
}
.speech-dialog::backdrop {
  background: #153629a6;
  backdrop-filter: blur(4px);
}
.speech-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.speech-eyebrow {
  color: #697a61;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 800;
}
.speech-close {
  font-size: 30px;
  line-height: 1;
  min-width: 48px;
  border-radius: 50%;
  background: #edf1e7;
  color: #28483e;
}
.speech-dialog h2 {
  font-size: clamp(24px, 5vw, 30px);
  margin: 8px 0 10px;
  line-height: 1.2;
}
.speech-dialog p {
  line-height: 1.6;
  margin: 10px 0;
}
.speech-dialog .speech-learning {
  margin: 16px 0 -10px;
  color: #637365;
  font-size: 14px;
  text-align: center;
}
.speech-learning span {
  font-size: 18px;
  color: #28483e;
}
.speech-word {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #dbe4ce;
  border-radius: 24px;
  background: linear-gradient(130deg, #f0f5e5, #fbf4df);
  padding: 22px 16px;
  margin: 20px 0 14px;
}
.speech-word strong {
  font-size: 56px;
  line-height: 1.25;
  font-weight: 700;
  font-family: "Segoe UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
.speech-word .speech-reading {
  color: #637655;
  font-size: 23px;
}
.speech-word > span:last-child {
  font-size: 16px;
  color: #5a715f;
}
.speech-listen {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.speech-listen button {
  margin: 0;
  border-radius: 16px;
  padding: 11px 17px;
}
.speech-service-status {
  font-size: 13px;
  color: #637365;
  margin: 14px 0;
  line-height: 1.5;
}
.speech-service-status[data-ready="false"] {
  background: #fff2d8;
  padding: 12px 15px;
  border-radius: 14px;
  color: #735d36;
}
.speech-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.speech-controls button {
  flex: 1;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 17px;
  min-height: 56px;
  margin: 0;
}
.speech-stop {
  color: #713e29;
  background: #ffe2b9;
}
.speech-recording {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
  font-size: 14px;
}
.speech-recording[hidden],
.speech-controls [hidden] {
  display: none;
}
.speech-record-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b85530;
}
.speech-recording progress {
  appearance: auto;
  flex: 1;
  min-width: 100px;
  height: 12px;
  accent-color: #2c5747;
}
.speech-feedback {
  padding: 15px 17px;
  border-radius: 16px;
  background: #eff2e9;
  line-height: 1.55;
  margin-top: 15px;
  font-size: 16px;
}
.speech-feedback[data-kind="success"] {
  background: #e0edce;
  color: #365629;
}
.speech-feedback[data-kind="help"] {
  background: #fcf0d8;
  color: #775b30;
}
.speech-transcript:empty {
  display: none;
}
.speech-transcript {
  font-size: 14px;
  color: #64725e;
}
.speech-replay {
  width: 100%;
  margin: 8px 0;
}
.speech-privacy {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid #dce4d5;
  font-size: 12px;
  color: #69766c;
  line-height: 1.6;
}
.speech-privacy summary {
  cursor: pointer;
  min-height: 32px;
}
.speech-privacy p {
  margin: 10px 0;
}
@media (max-width: 520px) {
  .speech-dialog {
    padding: 18px;
    border-radius: 22px;
  }
  .speech-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .speech-word {
    padding: 15px;
    margin-top: 15px;
  }
  .speech-dialog h2 {
    margin-top: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .speech-dialog *,
  .speech-dialog *::before,
  .speech-dialog *::after {
    transition: none !important;
    animation: none !important;
  }
}
.workshop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin: 26px 0;
}
.workshop-card {
  text-align: center;
}
.workshop-card > strong {
  display: block;
  font-size: 46px;
  font-family:
    Segoe UI,
    Microsoft YaHei,
    sans-serif;
  line-height: 1.5;
}
.workshop-card .lesson-reading {
  display: block;
  min-height: 28px;
}
.workshop-head > p {
  max-width: 700px;
}
.speech-report {
  border-top: 1px solid #dce4d5;
  margin-top: 24px;
  padding-top: 14px;
}
