/* =========================================================
   STV LIST SENTENCE — CSS NAMESPACE
   Mọi selector của trang danh sách câu mẫu đều nằm dưới
   .stv_list_sentence để không ảnh hưởng header/footer/site chung.
   ========================================================= */
.stv_list_sentence,
.stv_list_sentence *{box-sizing:border-box}
.stv_list_sentence{
  --purple:#6544d9;
  --purple2:#5535c9;
  --blue:#0d5df5;
  --text:#17223f;
  --muted:#6f7c92;
  --line:#e1e6ee;
  --bg:#f8faff;
  --green:#16a463;
  --red:#e64c54;
  --shadow:0 12px 32px rgba(26,45,90,.055);
}
.stv_list_sentence{
  background:var(--bg);
  color:var(--text);
  font:14px/1.45 Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
}
.stv_list_sentence button,
.stv_list_sentence input,
.stv_list_sentence select{font:inherit}
.stv_list_sentence button{cursor:pointer}
.stv_list_sentence a{text-decoration:none;color:inherit}
.stv_list_sentence svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.stv_list_sentence .svg-sprite{position:absolute;width:0;height:0;overflow:hidden}

/* Header của HTML demo đã loại bỏ. Trang này dùng header chung của website. */

/* Page */
.stv_list_sentence .page{
  max-width:1180px;
  margin:auto;
  padding:24px 20px 110px;
}
.stv_list_sentence .breadcrumb{
  margin-bottom:14px;
  display:flex;align-items:center;gap:8px;
  color:#8792a4;font-size:11.5px;
}
.stv_list_sentence .breadcrumb strong{color:#59667d}

.stv_list_sentence .hero{
  min-height:154px;
  padding:28px 32px;
  border:1px solid #e1e5ee;
  border-radius:16px;
  background:
    radial-gradient(circle at 92% 15%,rgba(115,79,224,.13),transparent 32%),
    linear-gradient(135deg,#fff,#f7f4ff);
  display:flex;align-items:center;justify-content:space-between;
  box-shadow:var(--shadow);
}
.stv_list_sentence .eyebrow{
  display:block;
  margin-bottom:7px;
  color:#7052d8;
  font-size:11px;
  font-weight:800;
  letter-spacing:1.2px;
}
.stv_list_sentence .hero h1{
  margin:0;
  font-size:31px;
  letter-spacing:-.5px;
}
.stv_list_sentence .hero p{
  max-width:640px;
  margin:9px 0 0;
  color:#6f7c91;
  font-size:13px;
  line-height:1.65;
}
.stv_list_sentence .hero-icon{
  width:82px;height:82px;
  flex:0 0 82px;
  border-radius:22px;
  background:linear-gradient(145deg,#7150df,#5d3acb);
  color:#fff;
  display:grid;place-items:center;
  box-shadow:0 15px 30px rgba(94,58,203,.18);
  transform:rotate(3deg);
}
.stv_list_sentence .hero-icon svg{width:40px;height:40px}

/* Search/filter */
.stv_list_sentence .toolbar-card{
  margin-top:16px;
  padding:15px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#fff;
  box-shadow:var(--shadow);
}
.stv_list_sentence .search-row{display:flex;gap:9px}
.stv_list_sentence .search-box{
  flex:1;height:47px;
  position:relative;
  border:1px solid #d7dfe9;
  border-radius:9px;
  background:#fff;
  display:flex;align-items:center;
}
.stv_list_sentence .search-box>svg{
  width:18px;height:18px;
  margin-left:14px;
  color:#8b96a7;
}
.stv_list_sentence .search-box input{
  flex:1;height:100%;
  padding:0 42px 0 10px;
  border:0;outline:0;
  background:transparent;
  color:#2b3850;
}
.stv_list_sentence .clear-search{
  display:none;
  position:absolute;right:8px;
  width:30px;height:30px;
  border:0;border-radius:7px;
  background:#f3f5f8;
  color:#8a95a6;
  font-size:18px;
}
.stv_list_sentence .filter-btn{
  height:47px;padding:0 16px;
  border:1px solid #d8dfe8;
  border-radius:9px;
  background:#fff;
  color:#536079;
  display:flex;align-items:center;gap:8px;
  font-weight:700;
}
.stv_list_sentence .filter-btn:hover,
.stv_list_sentence .filter-btn.open{
  border-color:#c0b1ee;
  background:#f8f6ff;
  color:#6244d3;
}
.stv_list_sentence .filter-btn svg{width:17px;height:17px}
.stv_list_sentence .filter-panel{
  padding-top:13px;
  display:flex;align-items:flex-end;gap:24px;
}
.stv_list_sentence .filter-group>span{
  display:block;
  margin-bottom:7px;
  color:#808b9d;
  font-size:11px;font-weight:700;
}
.stv_list_sentence .chip-group{display:flex;gap:6px;flex-wrap:wrap}
.stv_list_sentence .filter-chip{
  height:31px;padding:0 11px;
  border:1px solid #e0e5ec;
  border-radius:99px;
  background:#fff;
  color:#647188;
  font-size:11px;font-weight:650;
}
.stv_list_sentence .filter-chip:hover,
.stv_list_sentence .filter-chip.active{
  border-color:#c2b5ee;
  background:#f3f0ff;
  color:#6043d4;
}
.stv_list_sentence .filter-group select,
.stv_list_sentence #sortSelect{
  height:34px;
  padding:0 32px 0 10px;
  border:1px solid #dfe4eb;
  border-radius:7px;
  background:#fff;
  color:#59667d;
  outline:0;
  font-size:11px;
}
.stv_list_sentence .saved-only{
  margin-left:auto;
  height:34px;
  display:flex;align-items:center;gap:8px;
  color:#647188;
  font-size:11px;
  cursor:pointer;
}
.stv_list_sentence .saved-only input{display:none}
.stv_list_sentence .saved-only i{
  width:34px;height:19px;
  border-radius:99px;
  background:#d9dee7;
  position:relative;
}
.stv_list_sentence .saved-only i:after{
  content:"";
  position:absolute;top:2px;left:2px;
  width:15px;height:15px;
  border-radius:50%;
  background:#fff;
  transition:.18s;
  box-shadow:0 1px 3px rgba(0,0,0,.15);
}
.stv_list_sentence .saved-only input:checked+i{background:#6847dc}
.stv_list_sentence .saved-only input:checked+i:after{left:17px}

/* List toolbar */
.stv_list_sentence .list-toolbar{
  min-height:54px;
  margin-top:18px;
  display:flex;align-items:center;justify-content:space-between;
}
.stv_list_sentence .list-meta,
.stv_list_sentence .list-actions{
  display:flex;align-items:center;gap:10px;
}
.stv_list_sentence .select-all{
  display:flex;align-items:center;gap:8px;
  color:#59667d;
  font-size:11px;
  cursor:pointer;
}
.stv_list_sentence .select-all input{display:none}
.stv_list_sentence .select-all>span,
.stv_list_sentence .sentence-select span{
  width:18px;height:18px;
  border:1.5px solid #ccd4df;
  border-radius:5px;
  background:#fff;
  display:grid;place-items:center;
  transition:.15s;
}
.stv_list_sentence .select-all input:checked+span,
.stv_list_sentence .sentence-select input:checked+span{
  border-color:#6544d9;
  background:#6544d9;
}
.stv_list_sentence .select-all input:checked+span:after,
.stv_list_sentence .sentence-select input:checked+span:after{
  content:"✓";
  color:#fff;
  font-size:11px;font-weight:900;
}
.stv_list_sentence .divider{width:1px;height:20px;background:#e2e7ee}
.stv_list_sentence .list-meta strong{font-size:12px}
.stv_list_sentence .list-meta small{color:#8a95a6}
.stv_list_sentence .review-top-btn{
  height:35px;padding:0 11px;
  border:1px solid #d9d1f7;
  border-radius:8px;
  background:#f7f5ff;
  color:#6244d3;
  display:flex;align-items:center;gap:7px;
  font-size:11px;font-weight:700;
}
.stv_list_sentence .review-top-btn svg{width:15px;height:15px}
.stv_list_sentence .review-top-btn span{
  min-width:19px;height:19px;padding:0 5px;
  border-radius:99px;
  background:#6544d9;color:#fff;
  display:grid;place-items:center;
  font-size:11px;
}
.stv_list_sentence .review-top-btn:disabled{
  border-color:#e3e7ed;
  background:#f5f6f8;
  color:#a1a9b5;
  cursor:not-allowed;
}
.stv_list_sentence .review-top-btn:disabled span{background:#bdc4ce}

/* Sentence cards */
.stv_list_sentence .sentence-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.stv_list_sentence .sentence-card{
  position:relative;
  border:1px solid var(--line);
  border-radius:13px;
  background:#fff;
  box-shadow:0 7px 22px rgba(30,48,87,.04);
  transition:.17s;
  overflow:hidden;
}
.stv_list_sentence .sentence-card:hover{
  border-color:#cfd7e3;
  box-shadow:0 12px 30px rgba(30,48,87,.07);
  transform:translateY(-1px);
}
.stv_list_sentence .sentence-card.selected{
  border-color:#b9a9ed;
  box-shadow:0 0 0 2px rgba(101,68,217,.055),0 10px 26px rgba(54,37,120,.075);
}
.stv_list_sentence .sentence-main{
  padding:16px 17px 13px;
  display:grid;
  grid-template-columns:32px minmax(0,1fr) auto;
  gap:12px;
}
.stv_list_sentence .sentence-select{
  padding-top:3px;
  cursor:pointer;
}
.stv_list_sentence .sentence-select input{display:none}
.stv_list_sentence .sentence-content{min-width:0}
.stv_list_sentence .sentence-topline{
  display:flex;align-items:center;gap:7px;
  margin-bottom:7px;
}
.stv_list_sentence .sentence-number{
  color:#9aa4b3;
  font-size:11px;font-weight:700;
}
.stv_list_sentence .level-badge,
.stv_list_sentence .topic-badge{
  height:21px;padding:0 7px;
  border-radius:99px;
  display:inline-flex;align-items:center;
  font-size:11px;font-weight:750;
}
.stv_list_sentence .level-badge.basic{background:#edf8f2;color:#168751}
.stv_list_sentence .level-badge.conversation{background:#eef5ff;color:#2767c7}
.stv_list_sentence .level-badge.advanced{background:#f5efff;color:#7041bb}
.stv_list_sentence .level-badge.ielts{background:#fff3e7;color:#bf6714}
.stv_list_sentence .topic-badge{background:#f3f5f8;color:#6a768a}
.stv_list_sentence .sentence-en{
  margin:0;
  color:#1d2942;
  font-size:15px;
  font-weight:650;
  line-height:1.6;
}
.stv_list_sentence .sentence-en mark{
  padding:0 2px;
  background:#fff1a7;
  color:inherit;
  border-radius:3px;
}
.stv_list_sentence .sentence-vi{
  margin:5px 0 0;
  color:#6f7c92;
  font-size:12px;
  line-height:1.55;
}
.stv_list_sentence .sentence-actions{
  min-width:166px;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
}
.stv_list_sentence .primary-actions{
  display:flex;align-items:center;gap:6px;
}
.stv_list_sentence .icon-action{
  width:35px;height:35px;
  border:1px solid #e0e5ec;
  border-radius:8px;
  background:#fff;
  color:#768298;
  display:grid;place-items:center;
}
.stv_list_sentence .icon-action:hover{
  border-color:#c7baef;
  background:#f8f6ff;
  color:#6244d3;
}
.stv_list_sentence .icon-action svg{width:17px;height:17px}
.stv_list_sentence .icon-action.saved{
  border-color:#f2c4cf;
  background:#fff5f7;
  color:#df4d6c;
}
.stv_list_sentence .review-one{
  height:35px;padding:0 11px;
  border:1px solid #ddd5f8;
  border-radius:8px;
  background:#faf9ff;
  color:#6244d3;
  display:flex;align-items:center;gap:6px;
  font-size:11px;font-weight:700;
}
.stv_list_sentence .review-one:hover{background:#f1edff}
.stv_list_sentence .review-one svg{width:15px;height:15px}

.stv_list_sentence .audio-row{
  min-height:49px;
  padding:9px 17px 9px 61px;
  border-top:1px solid #eef1f5;
  background:#fbfcfe;
  display:flex;align-items:center;justify-content:space-between;
}
.stv_list_sentence .audio-left{
  display:flex;align-items:center;gap:8px;
}
.stv_list_sentence .play-btn{
  height:32px;padding:0 10px;
  border:1px solid #dcd4f7;
  border-radius:8px;
  background:#fff;
  color:#6244d3;
  display:flex;align-items:center;gap:6px;
  font-size:11px;font-weight:700;
}
.stv_list_sentence .play-btn:hover,
.stv_list_sentence .play-btn.playing{
  background:#f3f0ff;
  border-color:#bdaeee;
}
.stv_list_sentence .play-btn svg{width:16px;height:16px}
.stv_list_sentence .speed-control{
  display:flex;gap:3px;
  padding:2px;
  border:1px solid #e1e5eb;
  border-radius:7px;
  background:#f5f6f8;
}
.stv_list_sentence .speed-control button{
  height:26px;min-width:38px;padding:0 6px;
  border:0;border-radius:5px;
  background:transparent;
  color:#8490a2;
  font-size:11px;font-weight:700;
}
.stv_list_sentence .speed-control button:hover,
.stv_list_sentence .speed-control button.active{
  background:#fff;
  color:#6244d3;
  box-shadow:0 1px 5px rgba(38,52,85,.07);
}
.stv_list_sentence .audio-meta{
  display:flex;align-items:center;gap:13px;
  color:#929cad;
  font-size:11px;
}
.stv_list_sentence .copy-btn,
.stv_list_sentence .analysis-btn{
  border:0;background:transparent;
  color:#7b8799;
  font-size:11px;
  font-weight:650;
}
.stv_list_sentence .copy-btn:hover,
.stv_list_sentence .analysis-btn:hover{color:#6043d4}

/* Empty */
.stv_list_sentence .empty-state{
  padding:60px 20px;
  border:1px dashed #d9e0ea;
  border-radius:13px;
  background:#fff;
  text-align:center;
  color:#7d889b;
}
.stv_list_sentence .empty-state strong{display:block;color:#344159;margin-bottom:4px}

/* Pagination */
.stv_list_sentence .pagination{
  margin-top:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:6px;
}
.stv_list_sentence .page-btn{
  min-width:36px;
  height:36px;
  padding:0 10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #dce2ec;
  border-radius:8px;
  background:#fff;
  color:#647188;
  font-size:13px;
  line-height:1;
  font-weight:600;
  text-decoration:none;
  box-shadow:none;
  transition:border-color .16s ease,background .16s ease,color .16s ease;
}
.stv_list_sentence .page-btn:hover{
  border-color:#c7bbec;
  background:#faf9ff;
  color:#6046c9;
}
.stv_list_sentence .page-btn.active{
  border-color:#a99af0;
  background:#f3efff;
  color:#6043d4;
  font-weight:700;
}
.stv_list_sentence .page-btn.disabled{
  opacity:.45;
  cursor:not-allowed;
  pointer-events:none;
}
.stv_list_sentence .pagination > span:not(.page-btn){
  min-width:20px;
  height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#748197;
  font-size:13px;
  font-weight:600;
}

/* Selection bar */
.stv_list_sentence .stv-selection-bar{
  position:fixed;
  left:50%;bottom:18px;
  z-index:40;
  width:min(760px,calc(100% - 30px));
  min-height:68px;
  padding:10px 12px 10px 15px;
  border:1px solid #d3c8f5;
  border-radius:14px;
  background:rgba(255,255,255,.97);
  box-shadow:0 18px 50px rgba(31,38,69,.18);
  backdrop-filter:blur(12px);
  display:flex;align-items:center;justify-content:space-between;gap:15px;
  opacity:0;pointer-events:none;
  transform:translate(-50%,20px);
  transition:.2s;
}
.stv_list_sentence .stv-selection-bar.show{
  opacity:1;pointer-events:auto;
  transform:translate(-50%,0);
}
.stv_list_sentence .stv-selection-bar>div:first-child{
  display:flex;align-items:center;gap:10px;
}
.stv_list_sentence .selection-check{
  width:36px;height:36px;
  border-radius:50%;
  background:#eee9ff;
  color:#6043d4;
  display:grid;place-items:center;
  font-weight:900;
}
.stv_list_sentence .stv-selection-bar strong{display:block;font-size:12px}
.stv_list_sentence .stv-selection-bar small{display:block;margin-top:2px;color:#8390a3;font-size:11px}
.stv_list_sentence .selection-actions{display:flex;gap:7px}
.stv_list_sentence .selection-clear,
.stv_list_sentence .selection-review{
  height:39px;padding:0 13px;
  border-radius:8px;
  font-size:11px;font-weight:700;
}
.stv_list_sentence .selection-clear{
  border:1px solid #dfe4eb;
  background:#fff;color:#6b778b;
}
.stv_list_sentence .selection-review{
  border:0;
  background:linear-gradient(135deg,#6845dc,#5535c9);
  color:#fff;
  display:flex;align-items:center;gap:7px;
}
.stv_list_sentence .selection-review svg{width:15px;height:15px}

/* Modal */
.stv_list_sentence .stv-review-modal{
  position:fixed;inset:0;z-index:100;
  display:none;place-items:center;
  padding:20px;
}
.stv_list_sentence .stv-review-modal.show{display:grid}
.stv_list_sentence .stv-review-modal-backdrop{
  position:absolute;inset:0;
  background:rgba(24,31,47,.57);
  backdrop-filter:blur(4px);
}
.stv_list_sentence .stv-review-modal-dialog{
  position:relative;
  width:min(540px,100%);
  padding:0;
  border-radius:16px;
  background:#fff;
  box-shadow:0 28px 80px rgba(18,27,45,.28);
  overflow:hidden;
  animation:modalIn .2s ease;
}
.stv_list_sentence .stv-review-modal-head{
  padding:20px 21px 16px;
  border-bottom:1px solid #edf0f4;
  display:flex;align-items:flex-start;justify-content:space-between;gap:10px;
}
.stv_list_sentence .stv-review-modal-head h2{margin:0;font-size:19px}
.stv_list_sentence .stv-review-modal-head p{margin:5px 0 0;color:#7a8597;font-size:11px}
.stv_list_sentence .stv-review-modal-close{
  width:34px;height:34px;
  border:0;border-radius:8px;
  background:#f5f6f8;color:#7b8799;
  display:grid;place-items:center;
}
.stv_list_sentence .stv-review-modal-close svg{width:16px;height:16px}
.stv_list_sentence .review-modes{
  padding:17px;
  display:grid;gap:9px;
}
.stv_list_sentence .review-mode{
  min-height:74px;
  padding:10px 12px;
  border:1px solid #e0e5ec;
  border-radius:11px;
  background:#fff;
  display:flex;align-items:center;gap:11px;
  text-align:left;
  color:#344159;
  position:relative;
}
.stv_list_sentence .review-mode:hover,
.stv_list_sentence .review-mode.selected{
  border-color:#bbaeed;
  background:#faf9ff;
}
.stv_list_sentence .review-mode-icon{
  width:43px;height:43px;
  flex:0 0 43px;
  border-radius:10px;
  display:grid;place-items:center;
}
.stv_list_sentence .review-mode-icon.purple{background:#eee9ff;color:#6043d4}
.stv_list_sentence .review-mode-icon.blue{background:#ebf3ff;color:#1764d8}
.stv_list_sentence .review-mode-icon svg{width:21px;height:21px}
.stv_list_sentence .review-mode strong{display:block;font-size:12px}
.stv_list_sentence .review-mode small{display:block;margin-top:3px;color:#7e899b;font-size:11px}
.stv_list_sentence .review-mode>i{
  position:absolute;right:10px;top:9px;
  padding:3px 6px;
  border-radius:99px;
  background:#ece7ff;color:#6544d9;
  font-style:normal;font-size:11px;font-weight:800;
}
.stv_list_sentence .stv-review-modal-foot{
  padding:13px 17px;
  border-top:1px solid #edf0f4;
  background:#fbfcfe;
  display:flex;justify-content:flex-end;gap:8px;
}
.stv_list_sentence .stv-review-modal-cancel,
.stv_list_sentence .stv-review-modal-confirm{
  height:39px;padding:0 14px;
  border-radius:8px;
  font-size:11px;font-weight:700;
}
.stv_list_sentence .stv-review-modal-cancel{
  border:1px solid #dfe4eb;
  background:#fff;color:#6b778b;
}
.stv_list_sentence .stv-review-modal-confirm{
  border:0;
  background:linear-gradient(135deg,#6845dc,#5535c9);
  color:#fff;
  display:flex;align-items:center;gap:7px;
}
.stv_list_sentence .stv-review-modal-confirm svg{width:14px;height:14px}
@keyframes modalIn{
  from{opacity:0;transform:translateY(10px) scale(.98)}
  to{opacity:1;transform:none}
}

/* Toast */
.stv_list_sentence .toast{
  position:fixed;right:22px;bottom:22px;z-index:120;
  padding:11px 14px;
  border-radius:8px;
  background:#17213c;color:#fff;
  font-size:11px;
  opacity:0;pointer-events:none;
  transform:translateY(8px);
  transition:.2s;
}
.stv_list_sentence .toast.show{opacity:1;transform:none}

/* Responsive */
@media (max-width:720px){
  .stv_list_sentence .page{padding:17px 12px 105px}
  .stv_list_sentence .hero{padding:22px 20px;min-height:135px}
  .stv_list_sentence .hero h1{font-size:26px}
  .stv_list_sentence .hero-icon{width:62px;height:62px;flex-basis:62px;border-radius:17px}
  .stv_list_sentence .hero-icon svg{width:30px;height:30px}

  .stv_list_sentence .search-row{flex-direction:column}
  .stv_list_sentence .filter-btn{width:100%;justify-content:center}
  .stv_list_sentence .filter-panel{
    display:none;
    align-items:stretch;
    flex-direction:column;
    gap:13px;
  }
  .stv_list_sentence .filter-panel.show{display:flex}
  .stv_list_sentence .saved-only{margin-left:0}

  .stv_list_sentence .list-toolbar{align-items:flex-start;flex-direction:column;gap:10px}
  .stv_list_sentence .list-actions{width:100%;justify-content:space-between}
  .stv_list_sentence #sortSelect{flex:1}

  .stv_list_sentence .sentence-main{
    grid-template-columns:28px minmax(0,1fr);
    padding:14px 13px 12px;
  }
  .stv_list_sentence .sentence-actions{
    grid-column:2;
    width:100%;
    min-width:0;
    flex-direction:row;
    align-items:center;
    justify-content:flex-end;
  }
  .stv_list_sentence .sentence-en{font-size:14px}
  .stv_list_sentence .audio-row{
    padding:10px 13px;
    align-items:flex-start;
    flex-direction:column;
    gap:9px;
  }
  .stv_list_sentence .audio-left{width:100%;justify-content:space-between}
  .stv_list_sentence .audio-meta{width:100%;justify-content:flex-end}

  .stv_list_sentence .stv-selection-bar{
    bottom:10px;
    min-height:0;
    padding:10px;
    align-items:stretch;
    flex-direction:column;
  }
  .stv_list_sentence .selection-actions{display:grid;grid-template-columns:1fr 1.4fr}
  .stv_list_sentence .selection-actions button{width:100%;justify-content:center}

  .stv_list_sentence .stv-review-modal{padding:12px}
}
@media (max-width:480px){
  .stv_list_sentence .hero-icon{display:none}
  .stv_list_sentence .chip-group{gap:5px}
  .stv_list_sentence .filter-chip{padding:0 9px}
  .stv_list_sentence .sentence-actions{
    justify-content:space-between;
  }
  .stv_list_sentence .review-one span{display:none}
  .stv_list_sentence .speed-control button{min-width:35px}
  .stv_list_sentence .audio-meta{justify-content:space-between}
}


/* =========================================================
   FULL SCREEN REVIEW WORKSPACE
   ========================================================= */

.stv_list_sentence .review-workspace{
  position:fixed;
  inset:0;
  z-index:200;
  display:none;
  background:#f7f9fd;
  opacity:0;
}
.stv_list_sentence .review-workspace.show{
  display:block;
  animation:workspaceFade .22s ease forwards;
}
.stv_list_sentence .review-shell{
  min-height:100vh;
}
.stv_list_sentence .review-header{
  height:74px;
  padding:0 26px;
  border-bottom:1px solid #e2e7ee;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  position:sticky;
  top:0;
  z-index:3;
}
.stv_list_sentence .review-header-left,
.stv_list_sentence .review-header-right{
  display:flex;
  align-items:center;
  gap:18px;
}
.stv_list_sentence .review-back{
  height:38px;
  padding:0 12px;
  border:1px solid #dfe4eb;
  border-radius:8px;
  background:#fff;
  color:#667389;
  font-size:11px;
  font-weight:700;
}
.stv_list_sentence .review-back:hover{
  background:#f8f9fc;
  color:#6043d4;
}
.stv_list_sentence .review-title-wrap{
  display:flex;
  align-items:center;
  gap:10px;
}
.stv_list_sentence .review-title-icon{
  width:39px;
  height:39px;
  border-radius:10px;
  background:#eee9ff;
  color:#6043d4;
  display:grid;
  place-items:center;
}
.stv_list_sentence .review-title-icon.blue{
  background:#ebf4ff;
  color:#1764d8;
}
.stv_list_sentence .review-title-icon svg{
  width:20px;
  height:20px;
}
.stv_list_sentence .review-title-wrap strong{
  display:block;
  font-size:13px;
}
.stv_list_sentence .review-title-wrap small{
  display:block;
  margin-top:2px;
  color:#8490a2;
  font-size:11px;
}
.stv_list_sentence .review-progress-text{
  display:flex;
  align-items:baseline;
  gap:6px;
  color:#8490a2;
  font-size:11px;
}
.stv_list_sentence .review-progress-text strong{
  color:#29354d;
  font-size:12px;
}
.stv_list_sentence .review-progress-track{
  width:190px;
  height:7px;
  border-radius:99px;
  overflow:hidden;
  background:#e9edf3;
}
.stv_list_sentence .review-progress-track i{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#6845dc,#856ce8);
  transition:.3s;
}
.stv_list_sentence .workspace-close-x{
  width:36px;
  height:36px;
  border:0;
  border-radius:8px;
  background:#f5f6f8;
  color:#7d8899;
  display:grid;
  place-items:center;
}
.stv_list_sentence .workspace-close-x svg{
  width:16px;
  height:16px;
}
.stv_list_sentence .review-body{
  max-width:1180px;
  margin:auto;
  padding:30px 20px 45px;
}
.stv_list_sentence .review-panel-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 255px;
  gap:18px;
  align-items:start;
}
.stv_list_sentence .review-main-card,
.stv_list_sentence .review-side-card{
  border:1px solid #e0e6ee;
  border-radius:15px;
  background:#fff;
  box-shadow:0 14px 34px rgba(28,45,82,.055);
}
.stv_list_sentence .review-main-card{
  padding:0 24px 20px;
  overflow:hidden;
}
.stv_list_sentence .review-question-head{
  min-height:108px;
  padding:20px 0 18px;
  border-bottom:1px solid #edf0f4;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.stv_list_sentence .review-step-label{
  display:block;
  margin-bottom:7px;
  color:#6846d8;
  font-size:11px;
  font-weight:900;
  letter-spacing:1px;
}
.stv_list_sentence .review-step-label.blue{
  color:#1764d8;
}
.stv_list_sentence .review-question-head h2{
  max-width:650px;
  margin:0;
  color:#303c55;
  font-size:15px;
  line-height:1.6;
}
.stv_list_sentence .review-listen-tools{
  display:flex;
  align-items:center;
  gap:7px;
}
.stv_list_sentence .workspace-listen-btn{
  height:37px;
  padding:0 11px;
  border:1px solid #dcd4f7;
  border-radius:8px;
  background:#fff;
  color:#6043d4;
  display:flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  font-weight:700;
}
.stv_list_sentence .workspace-listen-btn:hover,
.stv_list_sentence .workspace-listen-btn.playing{
  background:#f3efff;
}
.stv_list_sentence .workspace-listen-btn svg{
  width:15px;
  height:15px;
}
.stv_list_sentence .workspace-speed{
  display:flex;
  gap:3px;
  padding:2px;
  border:1px solid #e1e5eb;
  border-radius:7px;
  background:#f5f6f8;
}
.stv_list_sentence .workspace-speed button{
  height:29px;
  min-width:41px;
  padding:0 6px;
  border:0;
  border-radius:5px;
  background:transparent;
  color:#8590a2;
  font-size:11px;
  font-weight:800;
}
.stv_list_sentence .workspace-speed button:hover,
.stv_list_sentence .workspace-speed button.active{
  background:#fff;
  color:#6043d4;
  box-shadow:0 1px 5px rgba(38,52,85,.07);
}
.stv_list_sentence .sort-answer-block,
.stv_list_sentence .sort-bank-block{
  padding-top:20px;
}
.stv_list_sentence .sort-section-label{
  display:block;
  margin-bottom:9px;
  color:#788499;
  font-size:11px;
  font-weight:700;
}
.stv_list_sentence .sort-answer-zone{
  min-height:83px;
  padding:10px;
  border:1px dashed #d7dee9;
  border-radius:10px;
  background:#fafbfe;
  display:flex;
  flex-wrap:wrap;
  align-content:flex-start;
  gap:8px;
}
.stv_list_sentence .sort-answer-zone.empty:before{
  content:"Click các từ bên dưới để ghép thành câu";
  margin:auto;
  color:#a0a9b7;
  font-size:11px;
}
.stv_list_sentence .sort-word-bank{
  min-height:62px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.stv_list_sentence .review-word-chip{
  min-width:66px;
  height:42px;
  padding:0 13px;
  border:1px solid #dbe2eb;
  border-radius:8px;
  background:#fff;
  color:#354159;
  font-size:11.5px;
  font-weight:700;
  transition:.15s;
}
.stv_list_sentence .review-word-chip:hover{
  border-color:#bcaeed;
  background:#f9f7ff;
  color:#6043d4;
  transform:translateY(-1px);
}
.stv_list_sentence .sort-answer-zone .review-word-chip{
  border-color:#cabbf1;
  background:#f4f1ff;
  color:#5f42d1;
}
.stv_list_sentence .sort-answer-zone .review-word-chip.good{
  border-color:#83d0a7;
  background:#edf9f2;
  color:#158b55;
}
.stv_list_sentence .sort-answer-zone .review-word-chip.bad{
  border-color:#f0aaaf;
  background:#fff1f2;
  color:#d8444d;
  animation:workspaceShake .22s linear 2;
}
.stv_list_sentence .workspace-feedback{
  min-height:30px;
  padding-top:9px;
  font-size:11.5px;
  font-weight:700;
}
.stv_list_sentence .workspace-feedback.good{
  color:#15915a;
}
.stv_list_sentence .workspace-feedback.bad{
  color:#d74850;
}
.stv_list_sentence .review-question-actions{
  padding-top:15px;
  border-top:1px solid #edf0f4;
  display:flex;
  justify-content:flex-end;
  gap:8px;
}
.stv_list_sentence .workspace-secondary-btn,
.stv_list_sentence .workspace-primary-btn{
  height:40px;
  padding:0 15px;
  border-radius:8px;
  font-size:11px;
  font-weight:750;
}
.stv_list_sentence .workspace-secondary-btn{
  border:1px solid #dfe4eb;
  background:#fff;
  color:#68758b;
}
.stv_list_sentence .workspace-primary-btn{
  min-width:126px;
  border:0;
  background:linear-gradient(135deg,#6845dc,#5535c9);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  box-shadow:0 6px 14px rgba(101,68,217,.17);
}
.stv_list_sentence .workspace-primary-btn.blue{
  background:linear-gradient(135deg,#1768ee,#0c57d0);
  box-shadow:0 6px 14px rgba(24,101,224,.17);
}
.stv_list_sentence .workspace-primary-btn svg{
  width:15px;
  height:15px;
}
.stv_list_sentence .review-side-card{
  padding:16px;
}
.stv_list_sentence .review-side-section{
  padding-bottom:16px;
  margin-bottom:16px;
  border-bottom:1px solid #edf0f4;
}
.stv_list_sentence .review-side-section:last-child{
  padding-bottom:0;
  margin-bottom:0;
  border-bottom:0;
}
.stv_list_sentence .review-side-section h3{
  margin:0 0 11px;
  font-size:12px;
}
.stv_list_sentence .review-score-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.stv_list_sentence .score-item{
  padding:11px;
  border:1px solid #e4e8ef;
  border-radius:9px;
  background:#fbfcfe;
}
.stv_list_sentence .score-item span{
  display:block;
  color:#8490a3;
  font-size:11px;
}
.stv_list_sentence .score-item strong{
  display:block;
  margin-top:3px;
  font-size:20px;
}
.stv_list_sentence .score-item.good strong{
  color:#15915a;
}
.stv_list_sentence .score-item.bad strong{
  color:#dc4650;
}
.stv_list_sentence .review-rule p,
.stv_list_sentence .review-tip-box p{
  margin:0;
  color:#6f7c91;
  font-size:11px;
  line-height:1.65;
}
.stv_list_sentence .review-tip-box{
  padding:12px;
  border:1px solid #e2dbfa;
  border-radius:9px;
  background:#f8f5ff;
}
.stv_list_sentence .review-tip-box strong{
  display:block;
  margin-bottom:5px;
  color:#6243d4;
  font-size:11px;
}
.stv_list_sentence .review-tip-box.blue{
  border-color:#d7e5fb;
  background:#f4f8ff;
}
.stv_list_sentence .review-tip-box.blue strong{
  color:#1764d8;
}

/* Listen & write */
.stv_list_sentence .listen-write-card{
  padding-bottom:20px;
}
.stv_list_sentence .listen-write-top{
  padding:24px 0 20px;
  border-bottom:1px solid #edf0f4;
  text-align:center;
}
.stv_list_sentence .big-listen-btn{
  min-width:265px;
  min-height:67px;
  padding:0 19px;
  border:1px solid #d5e2f6;
  border-radius:12px;
  background:#fff;
  color:#1764d8;
  display:inline-flex;
  align-items:center;
  gap:12px;
  text-align:left;
  box-shadow:0 7px 18px rgba(29,89,172,.065);
}
.stv_list_sentence .big-listen-btn:hover,
.stv_list_sentence .big-listen-btn.playing{
  background:#f5f9ff;
  border-color:#9ebfe9;
}
.stv_list_sentence .big-listen-icon{
  width:41px;
  height:41px;
  border-radius:50%;
  background:#eaf3ff;
  display:grid;
  place-items:center;
}
.stv_list_sentence .big-listen-icon svg{
  width:20px;
  height:20px;
}
.stv_list_sentence .big-listen-btn strong{
  display:block;
  font-size:12px;
}
.stv_list_sentence .big-listen-btn small{
  display:block;
  margin-top:3px;
  color:#8793a5;
  font-size:11px;
}
.stv_list_sentence .listen-write-controls{
  margin-top:13px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.stv_list_sentence .listen-write-controls>span{
  color:#8a95a6;
  font-size:11px;
}
.stv_list_sentence .listen-write-input-block{
  padding-top:20px;
}
.stv_list_sentence .listen-write-label{
  margin-bottom:8px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.stv_list_sentence .listen-write-label label{
  color:#405069;
  font-size:11px;
  font-weight:700;
}
.stv_list_sentence .listen-write-label span{
  color:#909aaa;
  font-size:11px;
}
.stv_list_sentence #listenWriteInput{
  width:100%;
  min-height:105px;
  padding:13px 14px;
  border:1px solid #d8dfe8;
  border-radius:9px;
  outline:0;
  resize:vertical;
  color:#2c3851;
  line-height:1.65;
}
.stv_list_sentence #listenWriteInput:focus{
  border-color:#9cbbe5;
  box-shadow:0 0 0 3px rgba(23,100,216,.065);
}
.stv_list_sentence #listenWriteInput.good{
  border-color:#87d0aa;
  background:#f3fbf6;
}
.stv_list_sentence #listenWriteInput.bad{
  border-color:#efa8ae;
  background:#fff5f5;
}
.stv_list_sentence .listen-write-compare{
  margin:3px 0 14px;
  border:1px solid #e2e7ee;
  border-radius:10px;
  overflow:hidden;
}
.stv_list_sentence .listen-write-compare>div{
  min-height:49px;
  display:grid;
  grid-template-columns:75px 1fr;
  border-bottom:1px solid #edf0f4;
}
.stv_list_sentence .listen-write-compare>div:last-child{
  border-bottom:0;
}
.stv_list_sentence .listen-write-compare span{
  padding:12px 10px;
  border-right:1px solid #edf0f4;
  color:#8490a3;
  font-size:11px;
  font-weight:700;
}
.stv_list_sentence .listen-write-compare p{
  margin:0;
  padding:11px 12px;
  color:#344159;
  font-size:11px;
  line-height:1.6;
}
.stv_list_sentence .listen-write-compare .correct-row{
  background:#f6fbf8;
}
.stv_list_sentence .listen-write-compare .translation-row{
  background:#fafbfe;
}
.stv_list_sentence .review-metric{
  height:36px;
  border-bottom:1px solid #edf0f4;
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#718096;
  font-size:11px;
}
.stv_list_sentence .review-metric:last-child{
  border-bottom:0;
}
.stv_list_sentence .review-metric strong{
  color:#1764d8;
}

/* Complete */
.stv_list_sentence .review-complete{
  max-width:620px;
  margin:55px auto;
  padding:38px 30px;
  border:1px solid #e0e6ee;
  border-radius:16px;
  background:#fff;
  box-shadow:0 18px 45px rgba(29,44,80,.08);
  text-align:center;
}
.stv_list_sentence .complete-icon{
  width:66px;
  height:66px;
  margin:auto;
  border-radius:50%;
  background:#eaf8f1;
  color:#15915a;
  display:grid;
  place-items:center;
  font-size:30px;
  font-weight:900;
}
.stv_list_sentence .review-complete h2{
  margin:15px 0 6px;
  font-size:23px;
}
.stv_list_sentence .review-complete>p{
  margin:0;
  color:#778397;
  font-size:12px;
}
.stv_list_sentence .complete-stats{
  margin-top:22px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:9px;
}
.stv_list_sentence .complete-stats div{
  padding:15px 8px;
  border:1px solid #e4e8ef;
  border-radius:10px;
  background:#fbfcfe;
}
.stv_list_sentence .complete-stats strong{
  display:block;
  font-size:23px;
}
.stv_list_sentence .complete-stats span{
  display:block;
  margin-top:3px;
  color:#8792a4;
  font-size:11px;
}
.stv_list_sentence .complete-actions{
  margin-top:20px;
  display:flex;
  justify-content:center;
  gap:8px;
}
.stv_list_sentence .hidden{
  display:none !important;
}
@keyframes workspaceFade{
  from{opacity:0}
  to{opacity:1}
}
@keyframes workspaceShake{
  25%{transform:translateX(-3px)}
  75%{transform:translateX(3px)}
}

@media (max-width:850px){
  .stv_list_sentence .review-header{
    height:auto;
    min-height:72px;
    padding:11px 14px;
    align-items:flex-start;
  }
  .stv_list_sentence .review-title-wrap{
    display:none;
  }
  .stv_list_sentence .review-header-right{
    flex:1;
    justify-content:flex-end;
  }
  .stv_list_sentence .review-progress-track{
    width:120px;
  }
  .stv_list_sentence .review-body{
    padding:17px 12px 32px;
  }
  .stv_list_sentence .review-panel-grid{
    grid-template-columns:1fr;
  }
  .stv_list_sentence .review-side-card{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
  }
  .stv_list_sentence .review-side-section{
    margin:0;
    padding:0;
    border:0;
  }
}
@media (max-width:620px){
  .stv_list_sentence .review-header-left{
    gap:5px;
  }
  .stv_list_sentence .review-back{
    width:38px;
    padding:0;
    font-size:0;
  }
  .stv_list_sentence .review-back span{
    font-size:17px;
  }
  .stv_list_sentence .review-progress-text span{
    display:none;
  }
  .stv_list_sentence .review-progress-track{
    width:90px;
  }
  .stv_list_sentence .review-main-card{
    padding:0 14px 15px;
  }
  .stv_list_sentence .review-question-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .stv_list_sentence .review-listen-tools{
    width:100%;
    justify-content:space-between;
  }
  .stv_list_sentence .review-question-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .stv_list_sentence .review-question-actions button{
    width:100%;
    justify-content:center;
  }
  .stv_list_sentence .review-side-card{
    grid-template-columns:1fr;
  }
  .stv_list_sentence .big-listen-btn{
    width:100%;
    min-width:0;
    justify-content:center;
  }
  .stv_list_sentence .complete-stats{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   DIRECT REVIEW BUTTONS PER SENTENCE — V3
   ========================================================= */

.stv_list_sentence .item-review-actions{
  width:100%;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:5px;
}

.stv_list_sentence .item-review-btn{
  min-height:34px;
  padding:0 8px;
  border:1px solid #dddff0;
  border-radius:8px;
  background:#fff;
  color:#657087;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  white-space:nowrap;
  font-size:11px;
  font-weight:750;
  transition:.15s;
}

.stv_list_sentence .item-review-btn svg{
  width:14px;
  height:14px;
}

.stv_list_sentence .item-review-sort{
  border-color:#ded5f8;
  background:#faf9ff;
  color:#6244d3;
}

.stv_list_sentence .item-review-sort:hover{
  border-color:#bbaeed;
  background:#f1edff;
  color:#5738c7;
  transform:translateY(-1px);
}

.stv_list_sentence .item-review-listen{
  border-color:#d8e4f6;
  background:#f8fbff;
  color:#2165c5;
}

.stv_list_sentence .item-review-listen:hover{
  border-color:#adc7eb;
  background:#eef5ff;
  color:#1558b4;
  transform:translateY(-1px);
}

/*
 The old .review-one style remains harmless, but the element
 is no longer rendered in the cards.
*/

@media (max-width:720px){
  .stv_list_sentence .sentence-actions{
    align-items:stretch;
  }

  .stv_list_sentence .item-review-actions{
    width:auto;
    min-width:180px;
  }

  .stv_list_sentence .item-review-btn{
    min-height:36px;
    font-size:11px;
  }
}

@media (max-width:480px){
  .stv_list_sentence .sentence-actions{
    grid-column:1 / -1;
    margin-left:28px;
    align-items:stretch;
    flex-direction:column;
  }

  .stv_list_sentence .primary-actions{
    justify-content:flex-end;
  }

  .stv_list_sentence .item-review-actions{
    width:100%;
    min-width:0;
  }

  .stv_list_sentence .item-review-btn{
    min-height:38px;
    font-size:11px;
  }
}


/* =========================================================
   V4 — "ÔN CÂU NÀY" DROPDOWN
   ========================================================= */

.stv_list_sentence .item-review-actions{
  position:relative;
  display:block;
  width:100%;
}

.stv_list_sentence .item-review-btn{
  display:none !important;
}

.stv_list_sentence .item-review-dropdown-btn{
  width:100%;
  min-height:35px;
  padding:0 11px;
  border:1px solid #ddd5f8;
  border-radius:8px;
  background:#faf9ff;
  color:#6244d3;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  font-size:11px;
  font-weight:750;
  transition:.15s;
}

.stv_list_sentence .item-review-dropdown-btn:hover,
.stv_list_sentence .item-review-actions.open .item-review-dropdown-btn{
  border-color:#b9abea;
  background:#f2eeff;
  color:#5839c8;
}

.stv_list_sentence .item-review-dropdown-btn svg{
  width:14px;
  height:14px;
}

.stv_list_sentence .item-review-dropdown-btn .stv-review-caret{
  margin-left:2px;
  font-size:11px;
  transition:.15s;
}

.stv_list_sentence .item-review-actions.open .stv-review-caret{
  transform:rotate(180deg);
}

.stv_list_sentence .item-review-menu{
  position:absolute;
  right:0;
  top:calc(100% + 6px);
  z-index:20;
  width:185px;
  padding:5px;
  border:1px solid #dfe4eb;
  border-radius:10px;
  background:#fff;
  box-shadow:0 12px 32px rgba(25,40,72,.14);
  display:none;
}

.stv_list_sentence .item-review-actions.open .item-review-menu{
  display:block;
  animation:itemMenuIn .14s ease;
}

.stv_list_sentence .item-review-menu button{
  width:100%;
  min-height:42px;
  padding:7px 9px;
  border:0;
  border-radius:7px;
  background:#fff;
  display:flex;
  align-items:center;
  gap:9px;
  text-align:left;
  color:#536078;
}

.stv_list_sentence .item-review-menu button:hover{
  background:#f7f5ff;
  color:#6043d4;
}

.stv_list_sentence .item-review-menu button+button{
  margin-top:2px;
}

.stv_list_sentence .item-review-menu .menu-icon{
  width:31px;
  height:31px;
  flex:0 0 31px;
  border-radius:8px;
  display:grid;
  place-items:center;
}

.stv_list_sentence .item-review-menu .menu-icon.purple{
  background:#eee9ff;
  color:#6043d4;
}

.stv_list_sentence .item-review-menu .menu-icon.blue{
  background:#eaf3ff;
  color:#1764d8;
}

.stv_list_sentence .item-review-menu .menu-icon svg{
  width:16px;
  height:16px;
}

.stv_list_sentence .item-review-menu strong{
  display:block;
  font-size:11px;
}

.stv_list_sentence .item-review-menu small{
  display:block;
  margin-top:2px;
  color:#909aab;
  font-size:11px;
}

@keyframes itemMenuIn{
  from{opacity:0;transform:translateY(-4px)}
  to{opacity:1;transform:none}
}


/* =========================================================
   V4 — SINGLE SENTENCE REVIEW POPUP
   ========================================================= */

.stv_list_sentence .single-review-modal{
  position:fixed;
  inset:0;
  z-index:180;
  display:none;
  place-items:center;
  padding:18px;
}

.stv_list_sentence .single-review-modal.show{
  display:grid;
}

.stv_list_sentence .single-review-backdrop{
  position:absolute;
  inset:0;
  background:rgba(24,31,47,.56);
  backdrop-filter:blur(4px);
}

.stv_list_sentence .single-review-dialog{
  position:relative;
  width:min(690px,100%);
  max-height:calc(100vh - 36px);
  overflow:auto;
  border-radius:16px;
  background:#fff;
  box-shadow:0 30px 90px rgba(15,23,42,.28);
  animation:singleModalIn .18s ease;
}

.stv_list_sentence .single-review-head{
  min-height:82px;
  padding:17px 20px;
  border-bottom:1px solid #edf0f4;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:15px;
}

.stv_list_sentence .single-review-head h2{
  margin:5px 0 2px;
  font-size:18px;
}

.stv_list_sentence .single-review-head p{
  margin:0;
  color:#8390a3;
  font-size:11px;
}

.stv_list_sentence .single-mode-badge{
  height:22px;
  padding:0 7px;
  border-radius:99px;
  background:#eee9ff;
  color:#6043d4;
  display:inline-flex;
  align-items:center;
  font-size:11px;
  font-weight:850;
  letter-spacing:.5px;
}

.stv_list_sentence .single-mode-badge.blue{
  background:#eaf3ff;
  color:#1764d8;
}

.stv_list_sentence .single-review-close{
  width:34px;
  height:34px;
  border:0;
  border-radius:8px;
  background:#f4f6f8;
  color:#788499;
  display:grid;
  place-items:center;
}

.stv_list_sentence .single-review-close svg{
  width:16px;
  height:16px;
}

.stv_list_sentence .single-review-panel{
  padding:18px 20px 20px;
}

.stv_list_sentence .single-question-line{
  padding:12px 14px;
  border:1px solid #e5e9ef;
  border-radius:10px;
  background:#fbfcfe;
}

.stv_list_sentence .single-question-line span{
  display:block;
  margin-bottom:4px;
  color:#8792a4;
  font-size:11px;
  font-weight:700;
}

.stv_list_sentence .single-question-line strong{
  color:#334058;
  font-size:12.5px;
  line-height:1.55;
}

.stv_list_sentence .single-listen-row{
  margin-top:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.stv_list_sentence .single-listen-btn{
  height:36px;
  padding:0 11px;
  border:1px solid #dcd4f7;
  border-radius:8px;
  background:#fff;
  color:#6043d4;
  display:flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  font-weight:750;
}

.stv_list_sentence .single-listen-btn.playing{
  background:#f3efff;
}

.stv_list_sentence .single-listen-btn svg{
  width:15px;
  height:15px;
}

.stv_list_sentence .single-speed{
  display:flex;
  gap:3px;
  padding:2px;
  border:1px solid #e1e5eb;
  border-radius:7px;
  background:#f5f6f8;
}

.stv_list_sentence .single-speed button{
  height:28px;
  min-width:40px;
  padding:0 5px;
  border:0;
  border-radius:5px;
  background:transparent;
  color:#8490a2;
  font-size:11px;
  font-weight:800;
}

.stv_list_sentence .single-speed button.active{
  background:#fff;
  color:#6043d4;
  box-shadow:0 1px 5px rgba(38,52,85,.07);
}

.stv_list_sentence .single-sort-section{
  margin-top:16px;
}

.stv_list_sentence .single-sort-section label,
.stv_list_sentence .single-write-block label{
  display:block;
  margin-bottom:7px;
  color:#69768c;
  font-size:11px;
  font-weight:700;
}

.stv_list_sentence .single-sort-answer{
  min-height:78px;
  padding:9px;
  border:1px dashed #d8dfe9;
  border-radius:9px;
  background:#fafbfe;
  display:flex;
  flex-wrap:wrap;
  align-content:flex-start;
  gap:7px;
}

.stv_list_sentence .single-sort-answer.empty:before{
  content:"Click từ bên dưới để ghép thành câu";
  margin:auto;
  color:#a1a9b6;
  font-size:11px;
}

.stv_list_sentence .single-sort-bank{
  min-height:58px;
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.stv_list_sentence .single-word-chip{
  min-width:62px;
  height:39px;
  padding:0 11px;
  border:1px solid #dce2ea;
  border-radius:7px;
  background:#fff;
  color:#354159;
  font-size:11px;
  font-weight:700;
}

.stv_list_sentence .single-word-chip:hover{
  border-color:#bcaeed;
  background:#f9f7ff;
  color:#6043d4;
}

.stv_list_sentence .single-sort-answer .single-word-chip{
  border-color:#cbbff2;
  background:#f4f1ff;
  color:#5f43d1;
}

.stv_list_sentence .single-word-chip.good{
  border-color:#86d0a9 !important;
  background:#edf9f2 !important;
  color:#158b55 !important;
}

.stv_list_sentence .single-word-chip.bad{
  border-color:#efacb2 !important;
  background:#fff2f3 !important;
  color:#d8444d !important;
}

.stv_list_sentence .single-feedback{
  min-height:28px;
  padding-top:8px;
  font-size:11px;
  font-weight:700;
}

.stv_list_sentence .single-feedback.good{color:#15915a}
.stv_list_sentence .single-feedback.bad{color:#d74850}

.stv_list_sentence .single-review-foot{
  margin-top:10px;
  padding-top:13px;
  border-top:1px solid #edf0f4;
  display:flex;
  justify-content:flex-end;
  gap:7px;
}

.stv_list_sentence .single-secondary-btn,
.stv_list_sentence .single-primary-btn{
  height:38px;
  padding:0 13px;
  border-radius:8px;
  font-size:11px;
  font-weight:750;
}

.stv_list_sentence .single-secondary-btn{
  border:1px solid #dfe4eb;
  background:#fff;
  color:#68758b;
}

.stv_list_sentence .single-primary-btn{
  min-width:115px;
  border:0;
  background:linear-gradient(135deg,#6845dc,#5535c9);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}

.stv_list_sentence .single-primary-btn.blue{
  background:linear-gradient(135deg,#1768ee,#0c57d0);
}

.stv_list_sentence .single-primary-btn svg{
  width:14px;
  height:14px;
}

/* listen/write single */
.stv_list_sentence .single-big-listen-wrap{
  text-align:center;
}

.stv_list_sentence .single-big-listen{
  min-width:255px;
  min-height:62px;
  padding:0 17px;
  border:1px solid #d7e3f5;
  border-radius:11px;
  background:#fff;
  color:#1764d8;
  display:inline-flex;
  align-items:center;
  gap:11px;
  text-align:left;
  box-shadow:0 6px 17px rgba(28,86,169,.06);
}

.stv_list_sentence .single-big-listen.playing{
  background:#f4f8ff;
}

.stv_list_sentence .single-big-listen-icon{
  width:38px;
  height:38px;
  border-radius:50%;
  background:#eaf3ff;
  display:grid;
  place-items:center;
}

.stv_list_sentence .single-big-listen-icon svg{
  width:19px;
  height:19px;
}

.stv_list_sentence .single-big-listen strong{
  display:block;
  font-size:11px;
}

.stv_list_sentence .single-big-listen small{
  display:block;
  margin-top:2px;
  color:#8894a6;
  font-size:11px;
}

.stv_list_sentence .single-listen-meta{
  margin-top:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.stv_list_sentence .single-listen-meta>span{
  color:#8995a6;
  font-size:11px;
}

.stv_list_sentence .single-write-block{
  margin-top:17px;
}

.stv_list_sentence #singleListenInput{
  width:100%;
  min-height:98px;
  padding:12px 13px;
  border:1px solid #d9dfe8;
  border-radius:9px;
  outline:0;
  resize:vertical;
  color:#334058;
  line-height:1.6;
}

.stv_list_sentence #singleListenInput:focus{
  border-color:#9ebde6;
  box-shadow:0 0 0 3px rgba(23,100,216,.06);
}

.stv_list_sentence #singleListenInput.good{
  border-color:#86d0a9;
  background:#f3fbf6;
}

.stv_list_sentence #singleListenInput.bad{
  border-color:#efacb2;
  background:#fff5f5;
}

.stv_list_sentence .single-compare{
  margin-top:4px;
  border:1px solid #e2e7ee;
  border-radius:9px;
  overflow:hidden;
}

.stv_list_sentence .single-compare>div{
  display:grid;
  grid-template-columns:70px 1fr;
  border-bottom:1px solid #edf0f4;
}

.stv_list_sentence .single-compare>div:last-child{
  border-bottom:0;
}

.stv_list_sentence .single-compare span{
  padding:10px;
  border-right:1px solid #edf0f4;
  color:#8792a4;
  font-size:11px;
  font-weight:700;
}

.stv_list_sentence .single-compare p{
  margin:0;
  padding:9px 11px;
  color:#354159;
  font-size:11px;
  line-height:1.55;
}

.stv_list_sentence .single-compare .good{
  background:#f5fbf8;
}

@keyframes singleModalIn{
  from{opacity:0;transform:translateY(8px) scale(.985)}
  to{opacity:1;transform:none}
}

@media (max-width:620px){
  .stv_list_sentence .item-review-menu{
    right:0;
    width:180px;
  }

  .stv_list_sentence .single-review-modal{
    padding:10px;
    align-items:end;
  }

  .stv_list_sentence .single-review-dialog{
    width:100%;
    max-height:92vh;
    border-radius:15px 15px 0 0;
  }

  .stv_list_sentence .single-review-head{
    padding:14px 15px;
  }

  .stv_list_sentence .single-review-panel{
    padding:14px 15px 16px;
  }

  .stv_list_sentence .single-listen-row{
    align-items:stretch;
    flex-direction:column;
  }

  .stv_list_sentence .single-listen-btn{
    justify-content:center;
  }

  .stv_list_sentence .single-speed{
    width:100%;
  }

  .stv_list_sentence .single-speed button{
    flex:1;
  }

  .stv_list_sentence .single-review-foot{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .stv_list_sentence .single-review-foot button{
    width:100%;
    justify-content:center;
  }

  .stv_list_sentence .single-big-listen{
    width:100%;
    min-width:0;
    justify-content:center;
  }
}


/* =========================================================
   V5 — PERSISTENT MULTI-SELECTION BAR
   ========================================================= */

/*
   Thanh chọn nhiều câu luôn hiển thị để người dùng biết
   ngay từ đầu rằng trang có chế độ ôn nhiều câu.
*/
.stv_list_sentence .stv-selection-bar{
  opacity:1 !important;
  pointer-events:auto !important;
  transform:translate(-50%,0) !important;
}

.stv_list_sentence .stv-selection-bar.empty-selection{
  border-color:#e0e5ec;
  box-shadow:0 14px 36px rgba(31,38,69,.11);
}

.stv_list_sentence .stv-selection-bar.empty-selection .selection-check{
  background:#f2f4f7;
  color:#9ba5b3;
}

.stv_list_sentence .stv-selection-bar.empty-selection .selection-review{
  background:#e3e7ed;
  color:#9aa3b0;
  box-shadow:none;
  cursor:not-allowed;
}

.stv_list_sentence .stv-selection-bar.empty-selection .selection-review svg{
  opacity:.65;
}

.stv_list_sentence .stv-selection-bar.empty-selection strong{
  color:#59667d;
}

/* =========================================================
   V5 — SINGLE ITEM DROPDOWN: THIRD OPTION "ĐIỀN TỪ"
   ========================================================= */

.stv_list_sentence .item-review-menu{
  width:205px;
}





/* =========================================================
   V6 — FIX DROPDOWN BỊ CẮT MỤC "NGHE & VIẾT"
   ========================================================= */

/*
 .sentence-card gốc dùng overflow:hidden để bo góc card.
 Khi dropdown có 3 mục, mục cuối bị cắt khỏi card.
 Chỉ khi dropdown đang mở mới cho phép overflow visible.
*/
.stv_list_sentence .sentence-card.review-menu-open{
  overflow:visible;
  z-index:35;
}

/* Ensure surrounding cards do not paint over the menu. */
.stv_list_sentence .sentence-card{
  z-index:1;
}

.stv_list_sentence .sentence-card.review-menu-open .item-review-menu{
  z-index:60;
}

/*
 Keep the rounded bottom audio section visually clean even while
 the outer card temporarily allows overflow.
*/
.stv_list_sentence .sentence-card.review-menu-open .audio-row{
  border-radius:0 0 13px 13px;
}

/* Give the three-item menu enough room and make every option explicit. */
.stv_list_sentence .item-review-menu{
  min-height:96px;
}

.stv_list_sentence .item-review-menu .single-review-listen{
  display:flex !important;
}


/* =========================================================
   V8 — ÔN NHIỀU CÂU CŨNG DÙNG POPUP
   Không điều hướng / không full-screen page riêng
   ========================================================= */

.stv_list_sentence .review-workspace{
  position:fixed;
  inset:0;
  z-index:190;
  display:none;
  place-items:center;
  padding:18px;
  background:transparent !important;
  opacity:1;
}

.stv_list_sentence .review-workspace.show{
  display:grid;
  animation:none;
}

.stv_list_sentence .multi-review-backdrop{
  position:absolute;
  inset:0;
  background:rgba(24,31,47,.58);
  backdrop-filter:blur(4px);
}

.stv_list_sentence .review-shell.multi-review-dialog{
  position:relative;
  width:min(1050px,100%);
  min-height:0;
  max-height:calc(100vh - 36px);
  overflow:hidden;
  border-radius:17px;
  background:#f7f9fd;
  box-shadow:0 30px 90px rgba(15,23,42,.30);
  animation:multiReviewModalIn .2s ease;
}

.stv_list_sentence .review-workspace .review-header{
  position:relative;
  top:auto;
  height:72px;
  border-radius:17px 17px 0 0;
}

.stv_list_sentence .review-workspace .review-body{
  max-width:none;
  height:auto;
  max-height:calc(100vh - 108px);
  margin:0;
  padding:22px;
  overflow-y:auto;
  overscroll-behavior:contain;
}

.stv_list_sentence .review-workspace .review-panel-grid{
  grid-template-columns:minmax(0,1fr) 235px;
}

.stv_list_sentence .review-workspace .review-main-card{
  box-shadow:0 9px 25px rgba(28,45,82,.045);
}

.stv_list_sentence .review-workspace .review-side-card{
  box-shadow:0 9px 25px rgba(28,45,82,.045);
}

.stv_list_sentence .review-workspace .review-progress-track{
  width:175px;
}

/* Màn hoàn thành nằm gọn trong popup thay vì giữa full-screen */
.stv_list_sentence .review-workspace .review-complete{
  margin:24px auto;
}

/* Nút X ở góc phải rõ vai trò đóng modal */
.stv_list_sentence .review-workspace .workspace-close-x{
  flex:0 0 36px;
}

/* Không cần hiệu ứng "page fade" cũ */
@keyframes multiReviewModalIn{
  from{
    opacity:0;
    transform:translateY(10px) scale(.985);
  }
  to{
    opacity:1;
    transform:none;
  }
}

/*
 Trên tablet/mobile popup nhiều câu gần full-screen để đủ diện tích,
 nhưng vẫn là modal: đóng là trở về danh sách tại chỗ.
*/
@media (max-width:850px){
  .stv_list_sentence .review-workspace{
    padding:10px;
    align-items:center;
  }

  .stv_list_sentence .review-shell.multi-review-dialog{
    width:100%;
    max-height:calc(100vh - 20px);
    border-radius:15px;
  }

  .stv_list_sentence .review-workspace .review-header{
    border-radius:15px 15px 0 0;
  }

  .stv_list_sentence .review-workspace .review-body{
    max-height:calc(100vh - 92px);
    padding:15px 12px 22px;
  }

  .stv_list_sentence .review-workspace .review-panel-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:620px){
  .stv_list_sentence .review-workspace{
    padding:0;
    align-items:end;
  }

  .stv_list_sentence .review-shell.multi-review-dialog{
    max-height:96vh;
    border-radius:16px 16px 0 0;
  }

  .stv_list_sentence .review-workspace .review-header{
    min-height:66px;
    border-radius:16px 16px 0 0;
  }

  .stv_list_sentence .review-workspace .review-body{
    max-height:calc(96vh - 66px);
  }

  .stv_list_sentence .review-workspace .review-progress-track{
    width:82px;
  }
}


/* =========================================================
   V9 — SENTENCE ANALYSIS POPUP
   ========================================================= */

.stv_list_sentence .analysis-modal{
  position:fixed;
  inset:0;
  z-index:230;
  display:none;
  place-items:center;
  padding:22px;
}

.stv_list_sentence .analysis-modal.show{
  display:grid;
}

.stv_list_sentence .analysis-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(20,28,46,.58);
  backdrop-filter:blur(4px);
}

.stv_list_sentence .analysis-modal-dialog{
  position:relative;
  width:min(820px,100%);
  max-height:calc(100vh - 44px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid rgba(103,86,199,.12);
  border-radius:18px;
  background:#fff;
  box-shadow:0 30px 90px rgba(18,28,50,.28);
  animation:analysisModalIn .2s ease;
}

.stv_list_sentence .analysis-modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:19px 22px;
  border-bottom:1px solid #edf0f6;
  background:
    linear-gradient(135deg,rgba(245,247,255,.98),rgba(255,255,255,.98));
}

.stv_list_sentence .analysis-title-wrap{
  display:flex;
  align-items:center;
  gap:12px;
}

.stv_list_sentence .analysis-title-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  flex:0 0 42px;
  border:1px solid #e1ddff;
  border-radius:12px;
  background:#f6f4ff;
  color:#6657c7;
}

.stv_list_sentence .analysis-title-icon svg{
  width:19px;
  height:19px;
}

.stv_list_sentence .analysis-kicker{
  display:block;
  margin-bottom:3px;
  color:#7568c9;
  font-size:11px;
  line-height:1;
  font-weight:800;
  letter-spacing:.1em;
}

.stv_list_sentence .analysis-modal-head h2{
  margin:0;
  color:#202a3b;
  font-size:19px;
  line-height:1.2;
}

.stv_list_sentence .analysis-modal-close{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  flex:0 0 38px;
  border:1px solid #e8ebf1;
  border-radius:10px;
  background:#fff;
  color:#7a8494;
  cursor:pointer;
  transition:.18s ease;
}

.stv_list_sentence .analysis-modal-close:hover{
  border-color:#cdc5fb;
  background:#f7f5ff;
  color:#5f50bc;
}

.stv_list_sentence .analysis-modal-close svg{
  width:16px;
  height:16px;
}

.stv_list_sentence .analysis-modal-body{
  padding:20px 22px 23px;
  overflow-y:auto;
  overscroll-behavior:contain;
}

.stv_list_sentence .analysis-sentence-box{
  position:relative;
  padding:18px 18px 17px;
  border:1px solid #e5e8f1;
  border-radius:14px;
  background:#fafbfe;
}

.stv_list_sentence .analysis-sentence-meta{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-bottom:11px;
}

.stv_list_sentence .analysis-sentence-en{
  margin:0;
  color:#1e293b;
  font-size:20px;
  line-height:1.48;
  font-weight:700;
  letter-spacing:-.01em;
}

.stv_list_sentence .analysis-sentence-vi{
  margin:6px 0 0;
  color:#7b8597;
  font-size:13px;
  line-height:1.6;
}

.stv_list_sentence .analysis-listen-btn{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-top:13px;
  padding:8px 11px;
  border:1px solid #dcd8f7;
  border-radius:9px;
  background:#fff;
  color:#6254bd;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  transition:.18s ease;
}

.stv_list_sentence .analysis-listen-btn:hover,
.stv_list_sentence .analysis-listen-btn.playing{
  border-color:#bfb5f5;
  background:#f5f2ff;
}

.stv_list_sentence .analysis-listen-btn svg{
  width:15px;
  height:15px;
}

.stv_list_sentence .analysis-sections{
  display:grid;
  gap:10px;
  margin-top:14px;
}

.stv_list_sentence .analysis-section{
  display:grid;
  grid-template-columns:32px minmax(0,1fr);
  gap:12px;
  padding:14px 15px;
  border:1px solid #edf0f5;
  border-radius:13px;
  background:#fff;
}

.stv_list_sentence .analysis-section-index{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#f4f5f9;
  color:#8a92a2;
  font-size:11px;
  font-weight:800;
}

.stv_list_sentence .analysis-section h3{
  margin:1px 0 6px;
  color:#263247;
  font-size:13px;
}

.stv_list_sentence .analysis-section p{
  margin:0;
  color:#596477;
  font-size:13px;
  line-height:1.72;
}

.stv_list_sentence .analysis-section em{
  color:#42368d;
  font-style:normal;
  font-weight:700;
}

.stv_list_sentence .analysis-section.structure{
  border-color:#ddd8fb;
  background:#faf9ff;
}

.stv_list_sentence .analysis-section.structure .analysis-section-index{
  background:#ece8ff;
  color:#6555c3;
}

.stv_list_sentence .analysis-section.natural{
  border-color:#d9e9ff;
  background:#f8fbff;
}

.stv_list_sentence .analysis-section.natural .analysis-section-index{
  background:#e7f1ff;
  color:#3775bd;
}

.stv_list_sentence .analysis-section.pattern{
  border-color:#dceade;
  background:#f9fcf9;
}

.stv_list_sentence .analysis-section.pattern .analysis-section-index{
  background:#e9f4ea;
  color:#54825a;
}

.stv_list_sentence .analysis-modal-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 22px;
  border-top:1px solid #edf0f6;
  background:#fbfcfe;
}

.stv_list_sentence .analysis-modal-foot span{
  color:#8a93a3;
  font-size:11px;
}

.stv_list_sentence .analysis-modal-foot button{
  min-width:92px;
  padding:9px 16px;
  border:0;
  border-radius:9px;
  background:#6254bd;
  color:#fff;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  transition:.18s ease;
}

.stv_list_sentence .analysis-modal-foot button:hover{
  background:#5547aa;
}

@keyframes analysisModalIn{
  from{
    opacity:0;
    transform:translateY(10px) scale(.985);
  }
  to{
    opacity:1;
    transform:none;
  }
}

@media (max-width:620px){
  .stv_list_sentence .analysis-modal{
    padding:0;
    align-items:end;
  }

  .stv_list_sentence .analysis-modal-dialog{
    width:100%;
    max-height:94vh;
    border-radius:18px 18px 0 0;
  }

  .stv_list_sentence .analysis-modal-head{
    padding:16px;
  }

  .stv_list_sentence .analysis-modal-body{
    padding:15px 14px 18px;
  }

  .stv_list_sentence .analysis-sentence-en{
    font-size:17px;
  }

  .stv_list_sentence .analysis-section{
    grid-template-columns:28px minmax(0,1fr);
    gap:10px;
    padding:13px 12px;
  }

  .stv_list_sentence .analysis-section-index{
    width:27px;
    height:27px;
  }

  .stv_list_sentence .analysis-modal-foot{
    padding:12px 14px;
  }

  .stv_list_sentence .analysis-modal-foot span{
    display:none;
  }

  .stv_list_sentence .analysis-modal-foot button{
    width:100%;
  }
}


/* =========================================================
   V10 — Analysis HTML one-field rendering
   ========================================================= */

.stv_list_sentence .analysis-rich-content{
  margin-top:14px;
  padding:4px 17px;
  border:1px solid #e7eaf1;
  border-radius:14px;
  background:#fff;
}

.stv_list_sentence .analysis-rich-content > div{
  display:block;
}

.stv_list_sentence .analysis-rich-content p{
  margin:0;
  padding:14px 0;
  border-bottom:1px solid #edf0f5;
  color:#566276;
  font-size:13px;
  line-height:1.78;
}

.stv_list_sentence .analysis-rich-content p:last-child{
  border-bottom:0;
  margin:4px -8px;
  padding:13px 10px;
  border-radius:10px;
  background:#f8fbf8;
}

.stv_list_sentence .analysis-rich-content strong{
  color:#263247;
  font-weight:800;
}

.stv_list_sentence .analysis-rich-content p:last-child strong{
  color:#47734e;
}

.stv_list_sentence .analysis-rich-content em{
  color:#4b3b9a;
  font-style:normal;
  font-weight:700;
}

/* =========================================================
   V10 — Guest auth CTA in review popups
   ========================================================= */

.stv_list_sentence .review-head-actions,
.stv_list_sentence .single-review-head-actions{
  display:flex;
  align-items:flex-start;
  gap:10px;
}

.stv_list_sentence .review-guest-auth{
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
}

.stv_list_sentence .review-guest-auth > span{
  color:#8a94a6;
  font-size:11px;
  font-weight:600;
}

.stv_list_sentence .review-guest-auth > div{
  display:flex;
  align-items:center;
  gap:6px;
}

.stv_list_sentence .review-auth-login,
.stv_list_sentence .review-auth-register{
  height:30px;
  padding:0 9px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  font-size:11px;
  font-weight:800;
  text-decoration:none;
  transition:.18s ease;
}

.stv_list_sentence .review-auth-login{
  border:1px solid #d9ddea;
  background:#fff;
  color:#59667b;
}

.stv_list_sentence .review-auth-login:hover{
  border-color:#bdb3ee;
  background:#faf9ff;
  color:#6043d4;
}

.stv_list_sentence .review-auth-register{
  border:1px solid #6453c5;
  background:#6453c5;
  color:#fff;
}

.stv_list_sentence .review-auth-register:hover{
  border-color:#5545b2;
  background:#5545b2;
  color:#fff;
}

.stv_list_sentence .review-guest-auth.compact{
  gap:6px;
}

.stv_list_sentence .review-guest-auth.compact > span{
  margin-right:2px;
}

.stv_list_sentence .review-guest-auth.workspace-auth{
  padding-right:15px;
  border-right:1px solid #e7eaf0;
}

.stv_list_sentence .review-guest-auth.workspace-auth > div{
  gap:5px;
}

/* Make room for auth controls without making the review popup feel crowded */
.stv_list_sentence .single-review-head > div:first-child{
  min-width:0;
}

@media (max-width:860px){
  .stv_list_sentence .review-guest-auth.workspace-auth > span{
    display:none;
  }

  .stv_list_sentence .review-guest-auth.workspace-auth{
    padding-right:10px;
  }

  .stv_list_sentence .review-auth-login,
.stv_list_sentence .review-auth-register{
    height:29px;
    padding:0 8px;
  }
}

@media (max-width:700px){
  .stv_list_sentence .review-guest-auth > span,
.stv_list_sentence .review-guest-auth.compact > span{
    display:none;
  }

  .stv_list_sentence .single-review-head{
    align-items:flex-start;
  }

  .stv_list_sentence .single-review-head-actions{
    gap:7px;
  }

  .stv_list_sentence .review-guest-auth{
    gap:5px;
  }

  .stv_list_sentence .review-auth-login,
.stv_list_sentence .review-auth-register{
    height:28px;
    padding:0 7px;
    font-size:11px;
  }
}

@media (max-width:540px){
  .stv_list_sentence .stv-review-modal-head{
    align-items:flex-start;
  }

  .stv_list_sentence .review-guest-auth.compact{
    display:none;
  }

  .stv_list_sentence .single-review-head{
    padding:15px 13px;
  }

  .stv_list_sentence .single-review-head p{
    max-width:230px;
  }

  .stv_list_sentence .review-guest-auth:not(.workspace-auth){
    flex-direction:column;
    align-items:flex-end;
  }

  .stv_list_sentence .review-guest-auth.workspace-auth{
    display:none;
  }

  .stv_list_sentence .analysis-rich-content{
    padding:3px 13px;
  }

  .stv_list_sentence .analysis-rich-content p{
    padding:12px 0;
    font-size:12.5px;
  }
}


/* =========================================================
   V11 — LOGIN / REGISTER CTA MOVED TO REVIEW FOOTER
   ========================================================= */

/* Header no longer carries guest auth */
.stv_list_sentence .review-head-actions,
.stv_list_sentence .single-review-head-actions{
  align-items:center;
}

/* Footer rows: CTA on the left, review controls on the right */
.stv_list_sentence .stv-review-modal-foot,
.stv_list_sentence .single-review-foot,
.stv_list_sentence .review-question-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.stv_list_sentence .stv-review-modal-foot-actions,
.stv_list_sentence .single-review-foot-actions,
.stv_list_sentence .review-question-action-buttons{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex:0 0 auto;
}

/* Stronger but still product-like guest conversion block */
.stv_list_sentence .review-save-cta{
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
  padding:7px 9px 7px 10px;
  border:1px solid #ddd6fe;
  border-radius:10px;
  background:linear-gradient(135deg,#faf8ff 0%,#f7f5ff 100%);
  box-shadow:0 3px 12px rgba(92,70,190,.06);
}

.stv_list_sentence .review-save-cta-text{
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
  color:#5d53a7;
}

.stv_list_sentence .review-save-cta-text svg{
  width:14px;
  height:14px;
  flex:0 0 14px;
  color:#6b55d7;
}

.stv_list_sentence .review-save-cta-text strong{
  font-size:11px;
  line-height:1.2;
  font-weight:800;
  white-space:nowrap;
}

.stv_list_sentence .review-save-cta-buttons{
  display:flex;
  align-items:center;
  gap:6px;
}

.stv_list_sentence .review-save-cta .review-auth-login,
.stv_list_sentence .review-save-cta .review-auth-register{
  position:relative;
  height:31px;
  padding:0 10px;
  border-radius:8px;
  font-size:11px;
  font-weight:850;
  line-height:31px;
  white-space:nowrap;
  overflow:hidden;
  isolation:isolate;
}

.stv_list_sentence .review-save-cta .review-auth-login{
  border:1px solid #cbc4ef;
  background:#fff;
  color:#5549a4;
}

.stv_list_sentence .review-save-cta .review-auth-login:hover{
  border-color:#9e8fe8;
  background:#f8f6ff;
  color:#493a9e;
  transform:translateY(-1px);
}

.stv_list_sentence .review-save-cta .review-auth-register{
  border:1px solid #6446dc;
  background:linear-gradient(135deg,#7252e8,#5b3bd0);
  color:#fff;
  box-shadow:0 5px 13px rgba(99,70,216,.22);
}

/* A tasteful pulse to draw the eye without becoming a harsh blink */
.stv_list_sentence .review-save-cta .review-auth-register.pulse-cta{
  animation:reviewAuthPulse 1.6s ease-in-out infinite;
}

.stv_list_sentence .review-save-cta .review-auth-register.pulse-cta::after{
  content:"";
  position:absolute;
  top:-30%;
  bottom:-30%;
  width:20px;
  left:-28px;
  transform:rotate(18deg);
  background:rgba(255,255,255,.36);
  filter:blur(1px);
  animation:reviewAuthShine 2.6s ease-in-out infinite;
  pointer-events:none;
}

.stv_list_sentence .review-save-cta .review-auth-register:hover{
  animation-play-state:paused;
  transform:translateY(-1px);
  background:linear-gradient(135deg,#6545df,#5132c5);
  color:#fff;
}

@keyframes reviewAuthPulse{
  0%,100%{
    box-shadow:0 5px 13px rgba(99,70,216,.20),0 0 0 0 rgba(100,70,220,.23);
    transform:scale(1);
  }
  50%{
    box-shadow:0 7px 18px rgba(99,70,216,.30),0 0 0 5px rgba(100,70,220,0);
    transform:scale(1.035);
  }
}

@keyframes reviewAuthShine{
  0%,48%{left:-28px;opacity:0}
  54%{opacity:.9}
  72%{left:calc(100% + 18px);opacity:0}
  100%{left:calc(100% + 18px);opacity:0}
}

/* Keep the review buttons visually dominant on the right */
.stv_list_sentence .single-review-foot-actions .single-primary-btn,
.stv_list_sentence .review-question-action-buttons .workspace-primary-btn,
.stv_list_sentence .stv-review-modal-foot-actions .modal-confirm{
  flex:0 0 auto;
}

/* We no longer need the previous header-style guest block in these modals */
.stv_list_sentence .review-guest-auth{
  display:none !important;
}

@media (max-width:900px){
  .stv_list_sentence .review-save-cta-text strong{
    white-space:normal;
    max-width:150px;
  }
}

@media (max-width:760px){
  .stv_list_sentence .stv-review-modal-foot,
.stv_list_sentence .single-review-foot,
.stv_list_sentence .review-question-actions{
    align-items:stretch;
    flex-direction:column;
  }

  .stv_list_sentence .review-save-cta{
    width:100%;
    justify-content:space-between;
  }

  .stv_list_sentence .stv-review-modal-foot-actions,
.stv_list_sentence .single-review-foot-actions,
.stv_list_sentence .review-question-action-buttons{
    width:100%;
  }
}

@media (max-width:500px){
  .stv_list_sentence .review-save-cta{
    gap:7px;
    padding:7px;
  }

  .stv_list_sentence .review-save-cta-text strong{
    max-width:120px;
    font-size:11px;
  }

  .stv_list_sentence .review-save-cta .review-auth-login,
.stv_list_sentence .review-save-cta .review-auth-register{
    height:29px;
    padding:0 8px;
    line-height:29px;
    font-size:11px;
  }

  .stv_list_sentence .single-review-foot-actions button,
.stv_list_sentence .review-question-action-buttons button{
    flex:1 1 0;
  }
}

/* Respect reduced-motion accessibility setting */
@media (prefers-reduced-motion:reduce){
  .stv_list_sentence .review-save-cta .review-auth-register.pulse-cta,
.stv_list_sentence .review-save-cta .review-auth-register.pulse-cta::after{
    animation:none;
  }
}


/* =========================================================
   V12 — AUTH CTA COLOR SEPARATION
   Đăng nhập/Đăng ký dùng hệ xanh, tách khỏi nút Kiểm tra màu tím
   ========================================================= */

.stv_list_sentence .review-save-cta{
  border-color:#d8e6f8;
  background:linear-gradient(135deg,#f7fbff 0%,#f2f8ff 100%);
  box-shadow:0 3px 12px rgba(41,112,190,.06);
}

.stv_list_sentence .review-save-cta-text{
  color:#456b99;
}

.stv_list_sentence .review-save-cta-text svg{
  color:#2e7cc9;
}

.stv_list_sentence .review-save-cta .review-auth-login{
  border:1px solid #aacced;
  background:#ffffff;
  color:#256aa8;
  box-shadow:none;
}

.stv_list_sentence .review-save-cta .review-auth-login:hover{
  border-color:#72aee2;
  background:#f3f9ff;
  color:#175d99;
}

.stv_list_sentence .review-save-cta .review-auth-register{
  border:1px solid #238ac7;
  background:linear-gradient(135deg,#2f9bd4,#2477bd);
  color:#ffffff;
  box-shadow:0 5px 13px rgba(37,128,193,.20);
}

.stv_list_sentence .review-save-cta .review-auth-register.pulse-cta{
  animation:reviewAuthPulseBlue 1.65s ease-in-out infinite;
}

.stv_list_sentence .review-save-cta .review-auth-register.pulse-cta::after{
  background:rgba(255,255,255,.38);
  animation:reviewAuthShineBlue 2.7s ease-in-out infinite;
}

.stv_list_sentence .review-save-cta .review-auth-register:hover{
  background:linear-gradient(135deg,#278fc9,#1d6fad);
  border-color:#1f78b3;
  color:#fff;
}

@keyframes reviewAuthPulseBlue{
  0%,100%{
    box-shadow:
      0 5px 13px rgba(37,128,193,.18),
      0 0 0 0 rgba(47,155,212,.22);
    transform:scale(1);
  }
  50%{
    box-shadow:
      0 7px 18px rgba(37,128,193,.28),
      0 0 0 5px rgba(47,155,212,0);
    transform:scale(1.035);
  }
}

@keyframes reviewAuthShineBlue{
  0%,48%{left:-28px;opacity:0}
  54%{opacity:.9}
  72%{left:calc(100% + 18px);opacity:0}
  100%{left:calc(100% + 18px);opacity:0}
}

/* Modal chọn mode sau khi tích nhiều câu chỉ có action buttons */
.stv_list_sentence .stv-review-modal-foot{
  justify-content:flex-end;
}


/* =========================================================
   V13 — SINGLE SORT LISTEN/SPEED + DRAG/DROP
   ========================================================= */

/* Tốc độ nằm ngay cạnh nút Nghe câu, không bị đẩy sang mép phải */
.stv_list_sentence #singleSortPanel .single-listen-row{
  justify-content:flex-start;
  gap:8px;
}

.stv_list_sentence #singleSortPanel .single-speed{
  flex:0 0 auto;
}

/* Desktop drag affordance */
.stv_list_sentence .single-word-chip[draggable="true"],
.stv_list_sentence .review-word-chip[draggable="true"]{
  cursor:grab;
  user-select:none;
  -webkit-user-select:none;
}

.stv_list_sentence .single-word-chip[draggable="true"]:active,
.stv_list_sentence .review-word-chip[draggable="true"]:active{
  cursor:grabbing;
}

.stv_list_sentence .single-word-chip.dragging,
.stv_list_sentence .review-word-chip.dragging{
  opacity:.45;
  transform:scale(.97);
}

/* Drop zones */
.stv_list_sentence .single-sort-answer.drag-over,
.stv_list_sentence .sort-answer-zone.drag-over{
  border-color:#8f7ee5;
  background:#f7f4ff;
  box-shadow:inset 0 0 0 1px rgba(96,67,212,.08);
}

.stv_list_sentence .single-sort-bank.drag-over,
.stv_list_sentence .sort-word-bank.drag-over{
  min-height:62px;
  border-radius:9px;
  outline:1px dashed #a99be6;
  outline-offset:5px;
  background:#fbfaff;
}

/* Empty hint now explains both interactions */
.stv_list_sentence .single-sort-answer.empty:before{
  content:"Kéo thả hoặc click các từ bên dưới để ghép thành câu";
}

.stv_list_sentence .sort-answer-zone.empty:before{
  content:"Kéo thả hoặc click các từ bên dưới để ghép thành câu";
}

/*
 Touch devices vẫn dùng click/tap là chính.
 Không cố ép HTML5 drag trên mobile để tránh xung đột scroll/touch.
*/
@media (hover:none),(pointer:coarse){
  .stv_list_sentence .single-word-chip[draggable="true"],
.stv_list_sentence .review-word-chip[draggable="true"]{
    cursor:pointer;
  }
}


/* =========================================================
   V15 — INLINE WORD LOOKUP IN SENTENCE LIST
   ========================================================= */

/* Every English word can be clicked without changing line layout */
.stv_list_sentence .sentence-en .inline-word{
  display:inline;
  margin:0;
  padding:1px 1px 2px;
  border:0;
  border-bottom:1px dashed #c9d2e2;
  border-radius:3px;
  background:transparent;
  color:inherit;
  font:inherit;
  font-weight:inherit;
  line-height:inherit;
  cursor:pointer;
  transition:
    background .16s ease,
    color .16s ease,
    border-color .16s ease;
}

.stv_list_sentence .sentence-en .inline-word:hover{
  border-bottom-color:#6a55d5;
  background:#f4f1ff;
  color:#5139b8;
}

.stv_list_sentence .sentence-en .inline-word.keyword-word{
  padding-left:2px;
  padding-right:2px;
  border-bottom-color:#e2c763;
  background:#fff1a7;
}

.stv_list_sentence .sentence-en .inline-word.active-word{
  border-bottom-color:#5b47c8;
  background:#ebe6ff;
  color:#4e39b0;
}


/* ---------- Desktop popover ---------- */

.stv_list_sentence .word-popover{
  position:fixed;
  z-index:310;
  display:none;
  width:340px;
  pointer-events:none;
}

.stv_list_sentence .word-popover.show{
  display:block;
}

.stv_list_sentence .word-popover-backdrop{
  display:none;
}

.stv_list_sentence .word-popover-card{
  position:relative;
  width:100%;
  overflow:hidden;
  border:1px solid #e1e5ed;
  border-radius:13px;
  background:#fff;
  box-shadow:
    0 18px 46px rgba(28,38,58,.18),
    0 2px 8px rgba(28,38,58,.05);
  pointer-events:auto;
  animation:wordPopoverIn .16s ease;
}

.stv_list_sentence .word-popover-card:after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-7px;
  width:13px;
  height:13px;
  border-right:1px solid #e1e5ed;
  border-bottom:1px solid #e1e5ed;
  background:#fff;
  transform:translateX(-50%) rotate(45deg);
}

.stv_list_sentence .word-popover:not(.open-up) .word-popover-card:after{
  top:-7px;
  bottom:auto;
  border-right:0;
  border-bottom:0;
  border-left:1px solid #e1e5ed;
  border-top:1px solid #e1e5ed;
}

.stv_list_sentence .word-popover-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:14px 15px 11px;
  border-bottom:1px solid #edf0f5;
  background:#fbfcfe;
}

.stv_list_sentence .word-title-row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
}

.stv_list_sentence .word-title-row strong{
  color:#1d2940;
  font-size:17px;
  line-height:1.2;
}

.stv_list_sentence .word-pos{
  padding:3px 6px;
  border-radius:99px;
  background:#eef3fb;
  color:#64748b;
  font-size:11px;
  font-weight:800;
  text-transform:lowercase;
}

.stv_list_sentence .word-pronunciation{
  display:block;
  margin-top:4px;
  color:#7b8799;
  font-size:11px;
}

.stv_list_sentence #wordLookupClose{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  flex:0 0 30px;
  border:1px solid transparent;
  border-radius:8px;
  background:transparent;
  color:#8b95a5;
  cursor:pointer;
}

.stv_list_sentence #wordLookupClose:hover{
  border-color:#e2e6ed;
  background:#fff;
  color:#525f72;
}

.stv_list_sentence #wordLookupClose svg{
  width:13px;
  height:13px;
}

.stv_list_sentence .word-popover-body{
  padding:13px 15px 14px;
}

.stv_list_sentence .word-context-block{
  padding:11px 12px;
  border:1px solid #e7e2fb;
  border-radius:10px;
  background:#f8f6ff;
}

.stv_list_sentence .word-context-block span{
  display:block;
  margin-bottom:4px;
  color:#7668bd;
  font-size:11px;
  font-weight:800;
  letter-spacing:.035em;
  text-transform:uppercase;
}

.stv_list_sentence .word-context-block strong{
  display:block;
  color:#33275f;
  font-size:13px;
  line-height:1.52;
}

.stv_list_sentence .word-popover-actions{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:10px;
}

.stv_list_sentence .word-popover-actions button{
  min-height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:0 9px;
  border:1px solid #dde2eb;
  border-radius:8px;
  background:#fff;
  color:#5d697d;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
  transition:.16s ease;
}

.stv_list_sentence .word-popover-actions button:hover{
  border-color:#bdb2ec;
  background:#f8f6ff;
  color:#5541b7;
}

.stv_list_sentence .word-popover-actions svg{
  width:13px;
  height:13px;
}

.stv_list_sentence #wordLookupSave{
  border-color:#cadcf3;
  background:#f7fbff;
  color:#3475b4;
}

.stv_list_sentence #wordLookupSave.saved{
  border-color:#d6eadc;
  background:#f4fbf6;
  color:#438052;
}

.stv_list_sentence .word-more-btn{
  margin-left:auto;
  border-color:#6952d4 !important;
  background:#6952d4 !important;
  color:#fff !important;
}

.stv_list_sentence .word-more-btn:hover{
  background:#5943c4 !important;
}

.stv_list_sentence .word-popover-details{
  display:none;
  margin-top:12px;
  padding-top:2px;
  border-top:1px solid #edf0f4;
}

.stv_list_sentence .word-popover.expanded .word-popover-details{
  display:block;
}

.stv_list_sentence .word-detail-row{
  padding:10px 0;
  border-bottom:1px solid #eef1f5;
}

.stv_list_sentence .word-detail-row > span{
  display:block;
  margin-bottom:4px;
  color:#354258;
  font-size:11px;
  font-weight:850;
}

.stv_list_sentence .word-detail-row p{
  margin:0;
  color:#687489;
  font-size:11px;
  line-height:1.6;
}

.stv_list_sentence .word-detail-row .context-sentence{
  color:#3e4c64;
  font-style:italic;
}

.stv_list_sentence .word-example p{
  padding:8px 10px 2px;
  border-left:2px solid #5c9ae8;
  border-radius:7px 7px 0 0;
  background:#f5f9ff;
  color:#38485f;
}

.stv_list_sentence .word-example em{
  display:block;
  padding:0 10px 8px 12px;
  border-left:2px solid #5c9ae8;
  border-radius:0 0 7px 7px;
  background:#f5f9ff;
  color:#6b7890;
  font-size:11px;
  line-height:1.5;
}

.stv_list_sentence .word-full-link{
  width:100%;
  min-height:35px;
  margin-top:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:1px solid #d9d3f5;
  border-radius:8px;
  background:#faf9ff;
  color:#5b48b7;
  font-size:11px;
  font-weight:850;
  cursor:pointer;
}

.stv_list_sentence .word-full-link svg{
  width:12px;
  height:12px;
}

@keyframes wordPopoverIn{
  from{
    opacity:0;
    transform:translateY(4px) scale(.985);
  }
  to{
    opacity:1;
    transform:none;
  }
}


/* ---------- Mobile bottom sheet ---------- */

@media (max-width:640px){
  .stv_list_sentence .word-popover{
    inset:0;
    width:auto;
    display:none;
    pointer-events:auto;
  }

  .stv_list_sentence .word-popover.show{
    display:flex;
    align-items:flex-end;
  }

  .stv_list_sentence .word-popover-backdrop{
    position:absolute;
    inset:0;
    display:block;
    background:rgba(24,31,45,.42);
    backdrop-filter:blur(2px);
  }

  .stv_list_sentence .word-popover-card{
    width:100%;
    max-height:78vh;
    overflow-y:auto;
    border:0;
    border-radius:16px 16px 0 0;
    box-shadow:0 -14px 40px rgba(20,28,43,.2);
    animation:wordSheetIn .2s ease;
  }

  .stv_list_sentence .word-popover-card:after{
    display:none;
  }

  .stv_list_sentence .word-popover-head{
    position:sticky;
    top:0;
    z-index:2;
  }

  .stv_list_sentence .word-popover-actions{
    flex-wrap:wrap;
  }

  .stv_list_sentence .word-more-btn{
    margin-left:0;
  }

  @keyframes wordSheetIn{
    from{transform:translateY(18px);opacity:.5}
    to{transform:none;opacity:1}
  }
}


/* =========================================================
   V4 — CSS FIX: multi selection + review dropdown + review modal
   ========================================================= */

/* Thanh ôn nhiều câu: giữ bố cục gọn trên desktop/tablet. */
.stv_list_sentence .stv-selection-bar{
  z-index:2050;
  width:min(760px,calc(100vw - 32px));
  min-height:68px;
  align-items:center;
}
.stv_list_sentence .stv-selection-bar.empty-selection .selection-check{
  background:#f1f4f8;
  color:#a4afbf;
}
.stv_list_sentence .stv-selection-bar.empty-selection .selection-review,
.stv_list_sentence .stv-selection-bar.empty-selection .selection-clear{
  opacity:.72;
}
.stv_list_sentence .stv-selection-bar .selection-actions{
  flex:0 0 auto;
  align-items:center;
}
.stv_list_sentence .stv-selection-bar .selection-clear,
.stv_list_sentence .stv-selection-bar .selection-review{
  min-height:40px;
  white-space:nowrap;
  font-size:12px;
}
.stv_list_sentence .stv-selection-bar strong{font-size:13px;line-height:1.35}
.stv_list_sentence .stv-selection-bar small{font-size:11px;line-height:1.4}

/* 561–720px trước đây bị ép thành cột, làm thanh chọn nhiều trông vỡ. */
@media (min-width:561px) and (max-width:720px){
  .stv_list_sentence .stv-selection-bar{
    padding:10px 12px 10px 14px;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:12px;
  }
  .stv_list_sentence .stv-selection-bar .selection-actions{
    display:flex;
    grid-template-columns:none;
    width:auto;
    gap:7px;
  }
  .stv_list_sentence .stv-selection-bar .selection-actions button{
    width:auto;
  }
}
@media (max-width:560px){
  .stv_list_sentence .stv-selection-bar{
    bottom:10px;
    padding:11px;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }
  .stv_list_sentence .stv-selection-bar .selection-actions{
    display:grid;
    grid-template-columns:1fr 1.45fr;
    width:100%;
  }
  .stv_list_sentence .stv-selection-bar .selection-actions button{
    width:100%;
    justify-content:center;
  }
}

/* Tránh xung đột Bootstrap .caret: chỉ còn đúng một mũi tên. */
.stv_list_sentence .item-review-dropdown-btn .stv-review-caret{
  margin-left:2px;
  display:inline-flex;
  width:auto;
  height:auto;
  border:0 !important;
  line-height:1;
  font-size:11px;
  transform:none;
  transition:transform .15s ease;
}
.stv_list_sentence .item-review-actions.open .stv-review-caret{
  transform:rotate(180deg);
}

/* Modal chọn kiểu ôn tập dùng class riêng để không bị Bootstrap .modal/.modal-backdrop đè. */
.stv_list_sentence .stv-review-modal{
  position:fixed;
  inset:0;
  z-index:2200;
  display:none;
  place-items:center;
  padding:20px;
  isolation:isolate;
  overflow:auto;
}
.stv_list_sentence .stv-review-modal.show{display:grid}
.stv_list_sentence .stv-review-modal-backdrop{
  position:absolute;
  inset:0;
  z-index:0 !important;
  opacity:1 !important;
  background:rgba(24,31,47,.57);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}
.stv_list_sentence .stv-review-modal-dialog{
  position:relative;
  z-index:1 !important;
  width:min(540px,100%);
  margin:auto;
  padding:0;
  border:0;
  border-radius:16px;
  background:#fff;
  box-shadow:0 28px 80px rgba(18,27,45,.28);
  overflow:hidden;
  opacity:1 !important;
  transform:none;
  animation:modalIn .2s ease;
}
.stv_list_sentence .stv-review-modal-head{
  padding:20px 21px 16px;
  border-bottom:1px solid #edf0f4;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.stv_list_sentence .stv-review-modal-head h2{margin:0;font-size:20px}
.stv_list_sentence .stv-review-modal-head p{margin:5px 0 0;color:#7a8597;font-size:12px}
.stv_list_sentence .stv-review-modal-close{
  width:36px;
  height:36px;
  border:0;
  border-radius:9px;
  background:#f5f6f8;
  color:#7b8799;
  display:grid;
  place-items:center;
}
.stv_list_sentence .stv-review-modal-close svg{width:17px;height:17px}
.stv_list_sentence .stv-review-modal-foot{
  padding:13px 17px;
  border-top:1px solid #edf0f4;
  background:#fbfcfe;
  display:flex;
  justify-content:flex-end;
  gap:8px;
}
.stv_list_sentence .stv-review-modal-foot-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}
.stv_list_sentence .stv-review-modal-cancel,
.stv_list_sentence .stv-review-modal-confirm{
  min-height:40px;
  padding:0 15px;
  border-radius:8px;
  font-size:12px;
  font-weight:700;
}
.stv_list_sentence .stv-review-modal-cancel{
  border:1px solid #dfe4eb;
  background:#fff;
  color:#6b778b;
}
.stv_list_sentence .stv-review-modal-confirm{
  border:0;
  background:linear-gradient(135deg,#6845dc,#5535c9);
  color:#fff;
  display:flex;
  align-items:center;
  gap:7px;
}
.stv_list_sentence .stv-review-modal-confirm svg{width:14px;height:14px}

/* Tăng chữ ở các vùng người dùng thao tác thường xuyên. */
.stv_list_sentence .item-review-dropdown-btn,
.stv_list_sentence .item-review-menu strong,
.stv_list_sentence .item-review-menu small,
.stv_list_sentence .review-mode small,
.stv_list_sentence .sentence-number,
.stv_list_sentence .level-badge,
.stv_list_sentence .topic-badge,
.stv_list_sentence .play-btn,
.stv_list_sentence .speed-control button,
.stv_list_sentence .audio-meta,
.stv_list_sentence .copy-btn,
.stv_list_sentence .analysis-btn{
  font-size:11px;
}
.stv_list_sentence .review-mode strong,
.stv_list_sentence .sentence-vi,
.stv_list_sentence .filter-btn,
.stv_list_sentence .filter-chip,
.stv_list_sentence .filter-group>span,
.stv_list_sentence .saved-only,
.stv_list_sentence #sortSelect,
.stv_list_sentence .filter-group select{
  font-size:12px;
}

/* =========================================================
   V5 — SELECTION BAR LUÔN NẰM NGANG
   Override các media query cũ từng ép thanh chọn nhiều thành cột.
   ========================================================= */
.stv_list_sentence .stv-selection-bar,
.stv_list_sentence .stv-selection-bar.show,
.stv_list_sentence .stv-selection-bar.empty-selection{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:14px !important;
  min-height:68px;
  padding:10px 12px 10px 15px;
}

.stv_list_sentence .stv-selection-bar > div:first-child{
  display:flex !important;
  flex:1 1 auto;
  min-width:0;
  align-items:center !important;
  gap:10px;
}

.stv_list_sentence .stv-selection-bar > div:first-child > div{
  min-width:0;
}

.stv_list_sentence .stv-selection-bar .selection-check{
  flex:0 0 36px;
}

.stv_list_sentence .stv-selection-bar .selection-actions{
  display:flex !important;
  flex:0 0 auto;
  width:auto !important;
  min-width:0;
  align-items:center !important;
  justify-content:flex-end !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  gap:7px;
}

.stv_list_sentence .stv-selection-bar .selection-actions button,
.stv_list_sentence .stv-selection-bar .selection-clear,
.stv_list_sentence .stv-selection-bar .selection-review{
  width:auto !important;
  flex:0 0 auto;
  justify-content:center;
  white-space:nowrap;
}

/* Màn hình hẹp vẫn giữ một hàng; ẩn mô tả phụ để đủ chỗ cho 2 nút. */
@media (max-width:560px){
  .stv_list_sentence .stv-selection-bar,
  .stv_list_sentence .stv-selection-bar.show,
  .stv_list_sentence .stv-selection-bar.empty-selection{
    bottom:8px;
    width:calc(100vw - 16px);
    padding:8px 9px;
    gap:8px !important;
  }

  .stv_list_sentence .stv-selection-bar small{
    display:none !important;
  }

  .stv_list_sentence .stv-selection-bar strong{
    font-size:12px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .stv_list_sentence .stv-selection-bar .selection-check{
    width:32px;
    height:32px;
    flex-basis:32px;
  }

  .stv_list_sentence .stv-selection-bar .selection-clear,
  .stv_list_sentence .stv-selection-bar .selection-review{
    min-height:36px;
    height:36px;
    padding:0 9px;
    font-size:11px;
  }
}


/* =========================================================
   V6 — ẨN THANH CHỌN NHIỀU KHI ĐANG ÔN TẬP
   Thanh chọn nhiều là công cụ của trang danh sách, không được
   nổi đè lên popup/workspace Ghép từ hoặc Nghe & viết.
   ========================================================= */
.stv_list_sentence .stv-selection-bar.review-session-hidden,
.stv_list_sentence .stv-selection-bar.show.review-session-hidden,
.stv_list_sentence .stv-selection-bar.empty-selection.review-session-hidden{
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
  transform:translate(-50%,20px) !important;
}

/* =========================================================
   V7 — SINGLE REVIEW POPUP: PORTAL + VIEWPORT SAFE
   - Popup Ôn câu này được đưa ra body bằng JS để không bị ancestor
     của layout/header làm sai position:fixed.
   - Ẩn thanh chọn nhiều trong suốt lúc popup từng câu đang mở.
   - Dialog luôn nằm trọn trong viewport; phần nội dung tự scroll.
   ========================================================= */

/* Namespace portal được JS gắn trực tiếp dưới <body>. */
.stv-review-body-portal.stv_list_sentence{
  position:static !important;
  width:0;
  height:0;
  min-width:0;
  min-height:0;
  margin:0;
  padding:0;
  background:transparent !important;
}

.stv-review-body-portal.stv_list_sentence .single-review-modal{
  position:fixed !important;
  inset:0 !important;
  z-index:10050 !important;
  width:100vw;
  height:100vh;
  height:100dvh;
  padding:16px !important;
  place-items:center !important;
  align-items:center !important;
  justify-items:center !important;
  overflow:hidden !important;
}

.stv-review-body-portal.stv_list_sentence .single-review-backdrop{
  position:absolute !important;
  inset:0 !important;
  z-index:0;
}

.stv-review-body-portal.stv_list_sentence .single-review-dialog{
  position:relative !important;
  z-index:1;
  width:min(720px,calc(100vw - 32px)) !important;
  max-width:720px;
  max-height:calc(100vh - 32px) !important;
  max-height:calc(100dvh - 32px) !important;
  margin:0 !important;
  display:flex !important;
  flex-direction:column;
  overflow:hidden !important;
}

.stv-review-body-portal.stv_list_sentence .single-review-head{
  flex:0 0 auto;
}

.stv-review-body-portal.stv_list_sentence .single-review-dialog > .single-review-panel:not(.hidden){
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto !important;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}

/* Viewport thấp: thu gọn khoảng đệm để phần đầu/cuối popup luôn nhìn thấy. */
@media (max-height:650px){
  .stv-review-body-portal.stv_list_sentence .single-review-modal{
    padding:8px !important;
  }

  .stv-review-body-portal.stv_list_sentence .single-review-dialog{
    width:min(720px,calc(100vw - 16px)) !important;
    max-height:calc(100vh - 16px) !important;
    max-height:calc(100dvh - 16px) !important;
  }

  .stv-review-body-portal.stv_list_sentence .single-review-head{
    min-height:0;
    padding:11px 16px;
  }

  .stv-review-body-portal.stv_list_sentence .single-review-head h2{
    margin-top:3px;
    font-size:17px;
  }

  .stv-review-body-portal.stv_list_sentence .single-review-panel{
    padding:12px 16px 14px;
  }

  .stv-review-body-portal.stv_list_sentence .single-sort-section{
    margin-top:12px;
  }

  .stv-review-body-portal.stv_list_sentence .single-review-foot{
    margin-top:7px;
    padding-top:10px;
  }
}


/* =========================================================
   V8 — MULTI REVIEW PORTAL + LOGIN CTA THEO SESSION PHP
   - #reviewWorkspace được JS chuyển trực tiếp dưới body giống popup từng câu.
   - Tránh ancestor của template làm position:fixed bị cắt ở mép trên/dưới.
   - Dialog luôn nằm trọn viewport; chỉ phần nội dung ở giữa được cuộn.
   ========================================================= */
.stv-review-body-portal.stv_list_sentence .review-workspace{
  position:fixed !important;
  inset:0 !important;
  z-index:10040 !important;
  width:100vw !important;
  height:100vh !important;
  height:100dvh !important;
  padding:16px !important;
  place-items:center !important;
  align-items:center !important;
  justify-items:center !important;
  overflow:hidden !important;
}

.stv-review-body-portal.stv_list_sentence .review-workspace .multi-review-backdrop{
  position:absolute !important;
  inset:0 !important;
  z-index:0 !important;
}

.stv-review-body-portal.stv_list_sentence .review-shell.multi-review-dialog{
  position:relative !important;
  z-index:1 !important;
  width:min(1050px,calc(100vw - 32px)) !important;
  max-width:1050px !important;
  height:auto !important;
  max-height:calc(100vh - 32px) !important;
  max-height:calc(100dvh - 32px) !important;
  margin:0 !important;
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden !important;
}

.stv-review-body-portal.stv_list_sentence .review-workspace .review-header{
  position:relative !important;
  top:auto !important;
  left:auto !important;
  right:auto !important;
  flex:0 0 auto !important;
  width:100% !important;
}

.stv-review-body-portal.stv_list_sentence .review-workspace .review-body{
  flex:1 1 auto !important;
  min-height:0 !important;
  height:auto !important;
  max-height:none !important;
  width:100% !important;
  margin:0 !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}

/* Member đã đăng nhập: PHP không render CTA; rule này là lớp bảo vệ thêm. */
.stv_list_sentence[data-member-id]:not([data-member-id="0"]) .guest-only,
.stv-review-body-portal.stv_list_sentence .guest-only.stv-auth-hidden{
  display:none !important;
}

@media (max-width:850px){
  .stv-review-body-portal.stv_list_sentence .review-workspace{
    padding:10px !important;
  }

  .stv-review-body-portal.stv_list_sentence .review-shell.multi-review-dialog{
    width:calc(100vw - 20px) !important;
    max-height:calc(100vh - 20px) !important;
    max-height:calc(100dvh - 20px) !important;
  }
}

@media (max-width:620px){
  .stv-review-body-portal.stv_list_sentence .review-workspace{
    padding:6px !important;
    align-items:center !important;
  }

  .stv-review-body-portal.stv_list_sentence .review-shell.multi-review-dialog{
    width:calc(100vw - 12px) !important;
    max-height:calc(100vh - 12px) !important;
    max-height:calc(100dvh - 12px) !important;
    border-radius:14px !important;
  }
}


/* =========================================================
   V9 — REVIEW ACTION CENTER + ANALYSIS PORTAL + PAGINATION
   ========================================================= */

/*
 * Thành viên đã đăng nhập không có CTA đăng nhập ở footer.
 * Khi đó 2 nút hành động của popup Ôn câu này được căn giữa tuyệt đối.
 */
.stv_list_sentence .single-review-foot > .single-review-foot-actions:only-child,
.stv-review-body-portal.stv_list_sentence .single-review-foot > .single-review-foot-actions:only-child{
  margin-left:auto !important;
  margin-right:auto !important;
  justify-content:center !important;
}

/* Giữ khoảng cách cân đối giữa 2 nút trong cả Ghép từ và Nghe & viết. */
.stv_list_sentence .single-review-foot-actions,
.stv-review-body-portal.stv_list_sentence .single-review-foot-actions{
  gap:10px !important;
}

/*
 * Popup Phân tích câu được JS chuyển vào portal trực tiếp dưới body.
 * Cách này tránh header/container của template làm cắt position:fixed.
 */
.stv-review-body-portal.stv_list_sentence .analysis-modal{
  position:fixed !important;
  inset:0 !important;
  z-index:10070 !important;
  width:100vw !important;
  height:100vh !important;
  height:100dvh !important;
  padding:16px !important;
  place-items:center !important;
  align-items:center !important;
  justify-items:center !important;
  overflow:hidden !important;
}

.stv-review-body-portal.stv_list_sentence .analysis-modal-backdrop{
  position:absolute !important;
  inset:0 !important;
  z-index:0 !important;
}

.stv-review-body-portal.stv_list_sentence .analysis-modal-dialog{
  position:relative !important;
  z-index:1 !important;
  width:min(820px,calc(100vw - 32px)) !important;
  max-width:820px !important;
  height:auto !important;
  max-height:calc(100vh - 32px) !important;
  max-height:calc(100dvh - 32px) !important;
  margin:0 !important;
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden !important;
}

.stv-review-body-portal.stv_list_sentence .analysis-modal-head,
.stv-review-body-portal.stv_list_sentence .analysis-modal-foot{
  flex:0 0 auto !important;
}

.stv-review-body-portal.stv_list_sentence .analysis-modal-body{
  flex:1 1 auto !important;
  min-height:0 !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}

@media (max-height:680px){
  .stv-review-body-portal.stv_list_sentence .analysis-modal{
    padding:8px !important;
  }

  .stv-review-body-portal.stv_list_sentence .analysis-modal-dialog{
    width:min(820px,calc(100vw - 16px)) !important;
    max-height:calc(100vh - 16px) !important;
    max-height:calc(100dvh - 16px) !important;
  }

  .stv-review-body-portal.stv_list_sentence .analysis-modal-head{
    padding:12px 16px !important;
  }

  .stv-review-body-portal.stv_list_sentence .analysis-modal-body{
    padding:14px 16px 16px !important;
  }

  .stv-review-body-portal.stv_list_sentence .analysis-modal-foot{
    padding:10px 16px !important;
  }
}

@media (max-width:620px){
  .stv-review-body-portal.stv_list_sentence .analysis-modal{
    padding:6px !important;
    align-items:center !important;
  }

  .stv-review-body-portal.stv_list_sentence .analysis-modal-dialog{
    width:calc(100vw - 12px) !important;
    max-height:calc(100vh - 12px) !important;
    max-height:calc(100dvh - 12px) !important;
    border-radius:14px !important;
  }
}
