.dre-lre{
  --dre-blue:#18a5dd;
  --dre-pink:#ed4db4;
  --dre-grey-dark:#4F535D;
  font-family:Nunito, Arial, sans-serif;
  width:100%;
  box-sizing:border-box;
}

.dre-lre *{
  box-sizing:border-box;
}

/* Critical hidden fixes */
.dre-lre-panel[hidden],
.dre-lre-paused-msg[hidden]{
  display:none !important;
}

/* Toggle */
.dre-lre-toggle{
  all:unset;
  box-sizing:border-box;

  display:block;
  width:220px;
  max-width:100%;
  height:40px;

  margin:0 auto 18px;
  padding:0 22px;

  border:2px solid #ed4db4;
  border-radius:999px;

  background:#ffffff;
  color:#ed4db4;

  font-family:Nunito, Arial, sans-serif;
  font-size:16px;
  font-weight:700;
  line-height:40px;

  text-align:center;
  cursor:pointer;
}

.dre-lre-toggle:hover,
.dre-lre-toggle:focus,
.dre-lre-toggle:active{
  background:#ed4db4;
  color:#ffffff;
  border-color:#ed4db4;
  outline:none;
}

.dre-lre-toggle:focus-visible{
  outline:2px solid rgba(237,77,180,.35);
  outline-offset:2px;
}

/* Revealed panel */
.dre-lre-panel{
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1.5px solid #e4e4e4;
  border-radius:14px;
  padding:22px;
}

/* Audio panel */
.dre-lre-audio-panel{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:0;
  margin:6px auto 20px;
}

.dre-lre .dre-dictation-btn{
  all:unset;
  width:46px;
  height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  background:var(--dre-blue);
  color:#fff;
  font-size:1.55rem;
  font-weight:900;
}

.dre-lre .dre-dictation-btn-left{
  border-radius:16px 0 0 16px;
}

.dre-lre .dre-dictation-btn-main{
  margin:0 2px;
}

.dre-lre .dre-dictation-btn-right{
  border-radius:0 16px 16px 0;
}

.dre-lre .dre-dictation-btn:hover{
  background:#1fb0ea;
}

.dre-lre .dre-dictation-btn:focus-visible{
  outline:2px solid rgba(79,83,93,.35);
  outline-offset:2px;
}

/* Transcript */
.dre-lre-transcript{
  max-height:220px;
  overflow-y:auto;
  padding:18px 20px;
  background:#fff;
  border:1px solid #edf1f4;
  border-radius:12px;
    color:#7f8a99;
  font-size:1.02rem;
  line-height:1.55;
}

.dre-lre-transcript p{
  margin:0 0 12px;
  padding:2px 0;
}

.dre-lre-transcript p:last-child{
  margin-bottom:0;
}

.dre-lre-transcript p.is-playing{
  color:#4F535D;
  font-weight:400;

  background:rgba(24,165,221,.12);
  border-radius:10px;

  padding:4px 8px;
  margin-left:-8px;
  margin-right:-8px;
}

/* Clickable phrases */
.dre-lre-term{
  all:unset !important;
  appearance:none !important;
  -webkit-appearance:none !important;

  display:inline !important;
  cursor:pointer;

  color:#4F535D !important;
  font:inherit !important;
  font-weight:700 !important;

  background:transparent !important;
  border:none !important;
  border-radius:0 !important;

  padding:0 !important;
  margin:0 !important;

  box-shadow:none !important;
  -webkit-tap-highlight-color:transparent;
}

.dre-lre-term:hover,
.dre-lre-term.is-active{
  color:#ed4db4 !important;
}

.dre-lre-term:focus,
.dre-lre-term:active,
.dre-lre-term:focus-visible{
  color:#ed4db4 !important;
  outline:none !important;
  box-shadow:none !important;
}
/* Paused message */
.dre-lre-paused-msg{
  width:fit-content;
  margin:10px auto 14px;
  padding:6px 14px;

  background:#f7f9fb;
  border:none;
  border-radius:999px;

  color:#5f6b7a;
  font-size:.9rem;
  font-weight:400;
  line-height:1.4;

  text-align:center;
}

/* Explanation panel */
.dre-lre-reveal{
  margin-top:22px;
  padding:16px 18px;
  background:#f6fbfe;
  border:1px solid #d7edf8;
  border-radius:12px;
  color:var(--dre-grey-dark);
}

.dre-lre-reveal span,
.dre-lre-reveal strong{
  display:block;
}

.dre-lre-selected-title{
  color:var(--dre-blue);
  margin-bottom:6px;
}

.dre-lre-selected-note,
.dre-lre-selected-listening{
  margin-top:8px;
}

/* Mobile */
@media (max-width:640px){
  .dre-lre-panel{
    padding:0;
    border:none;
    border-radius:0;
    background:transparent;
  }

.dre-lre-transcript{
    max-height:120px;
    font-size:1rem;
    line-height:1.55;
    padding:14px 16px;
  }

  .dre-lre-reveal{
    width:100%;
    margin-top:18px;
  }
}