/* ═══ B4: UTTERANCE SCORE PANEL ═══
   Shows the 4-criteria IELTS-style score (Fluency, Pronunciation, Lexical
   Resource, Grammatical Range) computed by B2+B3, plus playback of the
   actual recording (B1). Reuses the same overlay/box visual pattern as
   bug-report.css for consistency across the page. */

.scorebtn {
  font-size: .65rem; color: var(--muted); background: none;
  border: 1px solid var(--beige-dk, #D8D0C4); border-radius: 20px;
  padding: .13rem .55rem; cursor: pointer; font-family: var(--sans);
  display: flex; align-items: center; gap: 3px; transition: background .15s;
}
.scorebtn:hover { background: rgba(28,43,94,.05); }

.scorepanel-overlay {
  position: fixed; inset: 0; background: rgba(17,27,62,.7);
  display: none; align-items: center; justify-content: center;
  z-index: 8001; padding: 1.25rem;
}
.scorepanel-overlay.open { display: flex; }
.scorepanel-box {
  background: var(--white); border-radius: 18px; padding: 1.5rem;
  width: 100%; max-width: 440px; max-height: 85vh; overflow-y: auto;
}
.scorepanel-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: .8rem; }
.scorepanel-audio { width: 100%; margin-bottom: 1.1rem; }

.scorepanel-criterion { margin-bottom: 1rem; }
.scorepanel-criterion:last-child { margin-bottom: 0; }
.scorepanel-crit-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: .3rem;
}
.scorepanel-crit-name { font-size: .85rem; font-weight: 700; color: var(--navy); font-family: var(--sans); }
.scorepanel-crit-band { font-size: .95rem; font-weight: 700; color: var(--navy); font-family: var(--serif); }
.scorepanel-bar-track {
  width: 100%; height: 7px; border-radius: 5px;
  background: rgba(28,43,94,.08); overflow: hidden; margin-bottom: .35rem;
}
.scorepanel-bar-fill {
  height: 100%; border-radius: 5px; background: var(--navy);
  transition: width .4s ease;
}
.scorepanel-feedback { font-size: .78rem; color: var(--muted); line-height: 1.5; }

.scorepanel-close {
  display: block; margin: 1.2rem auto 0; padding: .6rem 1.4rem;
  background: none; color: var(--muted); border: 1.5px solid var(--beige-dk, #D8D0C4);
  border-radius: 30px; font-size: .85rem; cursor: pointer; font-family: var(--sans);
}

.scorepanel-loading { font-size: .82rem; color: var(--muted); text-align: center; padding: 1rem 0; }
