/* English Communication full Dictation v6.15.478. Only scoped elements; PLUS gating remains in existing Listening tabs. */
#listeningQuiz .v478-full .v478-switcher{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0;}
#listeningQuiz .v478-full .v478-switcher button{min-width:0;border:1px solid #bddbd1;background:#f6fbf9;color:#12574b;border-radius:12px;padding:11px 9px;text-align:left;font-size:13px;font-weight:800;line-height:1.4;overflow-wrap:anywhere;}
#listeningQuiz .v478-full .v478-switcher button.active{border-color:#159080;background:#e1f4ec;box-shadow:inset 0 0 0 1px #159080;}
#listeningQuiz .v478-full .v478-switcher small{display:block;font-size:11px;margin-top:3px;color:#566c64;}
#listeningQuiz .v478-full .v478-part[hidden]{display:none!important;}
#listeningQuiz .v478-full .v478-part-heading{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center;margin:12px 0;padding:12px;background:#eef8f4;border-left:3px solid #179685;border-radius:10px;}
#listeningQuiz .v478-full .v478-part-heading b{font-size:15px;color:#164d44;}
#listeningQuiz .v478-full .v478-part-heading span{font-size:12px;color:#566e65;}
#listeningQuiz .v478-full .v478-line{margin:0 0 10px;padding:13px;border:1px solid #dceae4;border-radius:13px;background:white;}
#listeningQuiz .v478-full .v478-line-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;}
#listeningQuiz .v478-full .v478-line-head strong{font-size:14px;}
#listeningQuiz .v478-full .v478-line-head span{background:#e9f5ef;color:#256758;padding:4px 9px;border-radius:999px;font-size:12px;font-weight:800;}
#listeningQuiz .v478-full .v478-entry-label{display:block;margin:9px 0 6px;font-weight:700;font-size:13px;}
#listeningQuiz .v478-full textarea[data-v478-answer]{width:100%;min-height:62px;box-sizing:border-box;font:inherit;font-size:16px;border:1px solid #d4e2dc;border-radius:10px;padding:10px;resize:vertical;}
#listeningQuiz .v478-full .v478-row-actions{display:flex;gap:10px;align-items:center;margin-top:8px;flex-wrap:wrap;}
#listeningQuiz .v478-full [data-v478-check]{padding:10px 15px;min-height:40px;background:#0f8f83;color:white;border:0;border-radius:9px;font-weight:800;}
#listeningQuiz .v478-full [data-v478-check]:disabled{opacity:.55;}
#listeningQuiz .v478-full .v478-good{font-size:13px;color:#197357;font-weight:750;}
#listeningQuiz .v478-full .v478-bad{font-size:13px;color:#ae4e37;font-weight:700;}
#listeningQuiz .v478-full .v478-next{width:100%;margin:8px 0 14px;min-height:44px;border:1px solid #a8d3c4;color:#16574d;background:#effbf6;border-radius:10px;font-weight:800;}
#listeningQuiz .listening-dictation-section .v478-pending{padding:14px;background:#fff9eb;border:1px solid #edd9aa;border-radius:12px;color:#75551f;font-size:14px;line-height:1.5;}
@media(max-width:520px){#listeningQuiz .v478-full .v478-switcher button{font-size:12px;padding:9px 8px;}#listeningQuiz .v478-full .v478-line{padding:11px;}#listeningQuiz .v478-full .listening-control-buttons{gap:6px;flex-wrap:wrap;}#listeningQuiz .v478-full .listening-control-buttons button{font-size:12px;min-height:40px;flex:1 1 42%;}}

/* v6.15.479: masked length and punctuation hints ONLY for the PLUS English full Dictation cards. */
#listeningQuiz .listening-dictation-section.v478-full .v478-line .v479-mask{
  display:flex;flex-wrap:wrap;gap:8px;align-items:baseline;margin:9px 0 6px;
  border:1px solid #dce9df;border-radius:10px;background:#f6faf6;
  padding:9px 12px;max-width:100%;min-width:0;box-sizing:border-box;
}
#listeningQuiz .listening-dictation-section.v478-full .v478-line .v479-mask > span{
  font-weight:750;font-size:12px;color:#48695a;white-space:nowrap;
}
#listeningQuiz .listening-dictation-section.v478-full .v478-line .v479-mask-text{
  display:block;max-width:100%;min-width:0;white-space:pre-wrap;overflow-wrap:anywhere;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:17px;letter-spacing:.03em;line-height:1.55;font-weight:750;color:#245a4b;
  background:transparent;border:0;padding:0;
}

/* v6.15.484: For Lessons with one genuine audio dialogue, the only
   selection button takes the full available width. No fictitious Part 2. */
#listeningQuiz .v478-full .v478-switcher button:only-child{
  grid-column:1 / -1;
}
