/* PeakFour 1.0.37.24 – full-width Chunking and separated, centered mic. */
/* Explicitly defeat any legacy two-column workspace styles and stale maximum widths. */
#page-chunking.pf100-chunking.pf-is-learning,
#page-chunking.pf100-chunking #chunk-workspace {
  width:100%; max-width:none; min-width:0; box-sizing:border-box;
}
#page-chunking.pf100-chunking #chunk-workspace .pf-ls-workspace-grid {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  grid-auto-columns:minmax(0,1fr);
  gap:0 !important;
  width:100% !important;
  max-width:none !important;
  margin-inline:0 !important;
  min-width:0;
}
#page-chunking.pf100-chunking #chunk-workspace .pf-ls-practice-column {
  grid-column:1/-1 !important;
  box-sizing:border-box !important;
  width:100% !important;
  max-width:none !important;
  min-width:0;
  justify-self:stretch;
}
#page-chunking.pf100-chunking #chunk-session-content.pfv2-content {
  display:block;
  width:100% !important;
  max-width:none !important;
  margin-inline:0 !important;
  box-sizing:border-box;
}
/* The English sentence can use the extra space, with readable wrapping. */
#page-chunking .pfv2-content .pfv2-phrase,
#page-chunking .pfv2-content .pfv2-translation {
  width:100%; max-width:min(100%,1250px); margin-inline:auto;
  overflow-wrap:break-word;
}
/* Two listening buttons above; one centered mic below. No pseudo-controls. */
#page-chunking .pfv2-controls.pfv2-controls-stacked {
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  flex-wrap:nowrap !important;
  row-gap:19px;
  width:100%;
  margin:29px auto 34px;
}
#page-chunking .pfv2-audio-row,
#page-chunking .pfv2-mic-row {
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  width:100%;
  text-align:center;
}
#page-chunking .pfv2-mic-row .pfv2-mic {
  margin:0 auto !important;
  flex:none !important;
}

#page-chunking .pfv2-step-audio-support {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:12px;
  width:100%;
  margin:18px auto 10px;
}
#page-chunking .pfv2-step-audio-support .pfv2-playback-pair {display:inline-flex;align-items:center;gap:10px;}
/* Correct and incorrect choices are pastel filled, not merely bordered.
   Selector specificity is greater than the global card styling loaded previously. */
#page-chunking.pf100-chunking .pfv2-content .pfv2-choice.is-correct,
#page-chunking.pf100-chunking .pfv2-content .pfv2-choice[data-answer-state="correct"],
#page-chunking.pf100-chunking .pf-chunk-option.correct {
  background:#dcfce7 !important;
  border:2px solid #22a06b !important;
  color:#166534 !important;
  box-shadow:none !important;
}
#page-chunking.pf100-chunking .pfv2-content .pfv2-choice.is-wrong,
#page-chunking.pf100-chunking .pfv2-content .pfv2-choice[data-answer-state="wrong"],
#page-chunking.pf100-chunking .pf-chunk-option.incorrect {
  background:#ffe4e6 !important;
  border:2px solid #e25a68 !important;
  color:#9f1239 !important;
  box-shadow:none !important;
}
#page-chunking.pf100-chunking .pfv2-content :is(.pfv2-choice.is-correct,.pfv2-choice.is-wrong):focus-visible,
#page-chunking.pf100-chunking .pf-chunk-option:is(.correct,.incorrect):focus-visible {
  outline:3px solid #2563eb;outline-offset:3px;
}
:root[data-pf-theme="dark"] #page-chunking.pf100-chunking .pfv2-content .pfv2-choice.is-correct,
:root[data-pf-theme="dark"] #page-chunking.pf100-chunking .pf-chunk-option.correct {
  background:#153d32 !important; border-color:#34d399 !important; color:#bbf7d0 !important;
}
:root[data-pf-theme="dark"] #page-chunking.pf100-chunking .pfv2-content .pfv2-choice.is-wrong,
:root[data-pf-theme="dark"] #page-chunking.pf100-chunking .pf-chunk-option.incorrect {
  background:#4b2030 !important; border-color:#fb7185 !important; color:#fecdd3 !important;
}
@media(max-width:700px){
  #page-chunking .pfv2-controls.pfv2-controls-stacked{row-gap:16px;margin-block:23px;}
  #page-chunking .pfv2-audio-row{gap:9px;}
  #page-chunking .pfv2-mic-row .pfv2-mic{min-width:74px;min-height:74px;}
}

/* Evidence-based Knowledge discovery. Only lessons with matching steps show it. */
#page-chunking .pfv2-lesson-knowledge-summary{
  display:block;align-self:start;width:fit-content;max-width:100%;
  margin:10px 0 0;padding:5px 11px;border:1px solid var(--pf100-edge,#343b59);
  border-radius:9px;color:var(--pf100-muted,#b4bfd5);background:transparent;
  font-size:12px;font-weight:650;line-height:1.55;overflow-wrap:anywhere;
}
#page-chunking .pfv2-lesson-knowledge-action{font-size:12px;line-height:1.4;padding:9px 10px;min-height:40px;white-space:normal}
@media(max-width:700px){
  #page-chunking .pfv2-lesson-knowledge-summary{font-size:11px;padding:6px 9px}
  #page-chunking .pfv2-lesson-knowledge-action{flex:1 1 100%;min-width:0}
}


/* 2026-11-12: safety net for stale cached guide buttons. */
#page-chunking button[aria-label="Nghe hướng dẫn tiếng Việt"],
#page-chunking button[title="Nghe hướng dẫn tiếng Việt"]{display:none !important;}
