/* Student Practice: Reading */
.portal-header-actions{display:flex;align-items:center;gap:8px}
.refresh-button{min-width:82px}
.refresh-button:disabled{opacity:.6;cursor:wait}
.student-section-nav-wrap{
  background:#f4f7fa;
  border-bottom:1px solid #e0e8ee;
  padding:16px 24px 0;
  min-height:62px;
}
.student-section-nav{
  max-width:1380px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:10px;
}
.student-section-tab{
  border:0;
  border-bottom:4px solid transparent;
  background:transparent;
  color:#6b8191;
  padding:13px 22px 14px;
  font-size:12px;
  font-weight:850;
  letter-spacing:.01em;
  transition:var(--motion-fast,120ms) var(--ease-standard,cubic-bezier(.2,.8,.2,1));
}
.student-section-tab:hover{
  color:#174b6d;
  background:#edf4f8;
  border-radius:11px 11px 0 0;
}
.student-section-tab.active{
  color:#0b4f76;
  border-bottom-color:#0d5278;
}
.practice-main{padding-bottom:48px}
.practice-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:18px}
.practice-hero small,.section-title-row span,.practice-section-head span{display:block;color:#688297;font-size:9px;letter-spacing:.14em;font-weight:900}
.practice-hero h1{font-family:Georgia,"Times New Roman",serif;color:#0c3452;font-size:34px;line-height:1;margin:7px 0 7px;letter-spacing:-.035em}
.practice-hero p{margin:0;color:#718594;font-size:11px}
.practice-student{padding:8px 12px;border:1px solid #dce7ee;border-radius:999px;background:#fff;color:#42657b;font-size:10px;font-weight:800}
.practice-category-list{display:grid;gap:14px}
.practice-category-row{
  width:100%;
  min-height:94px;
  border:1px solid #dce6ec;
  border-radius:18px;
  background:#fff;
  padding:18px 20px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:16px;
  text-align:left;
  color:inherit;
  box-shadow:0 5px 20px rgba(14,50,76,.045);
  transition:var(--motion-base,180ms) var(--ease-standard,cubic-bezier(.2,.8,.2,1));
}
.practice-category-row:hover{
  transform:translateY(-2px);
  border-color:#bfd2de;
  box-shadow:0 12px 30px rgba(14,50,76,.085);
}
.practice-category-icon{
  width:52px;
  height:52px;
  border-radius:15px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#e8f3f9,#dbeaf3);
  color:#0d5278;
  font-family:Georgia,"Times New Roman",serif;
  font-size:22px;
  font-weight:800;
}
.practice-category-copy strong{
  display:block;
  color:#123b58;
  font-family:Georgia,"Times New Roman",serif;
  font-size:24px;
  line-height:1.1;
}
.practice-category-copy span{
  display:block;
  margin-top:6px;
  color:#748896;
  font-size:10px;
  line-height:1.45;
}
.practice-category-arrow{
  width:40px;
  height:40px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:#eef5f9;
  color:#0d5278;
  font-size:17px;
  font-weight:900;
}
.practice-empty-state{
  min-height:220px;
  display:grid;
  place-items:center;
  align-content:center;
  text-align:center;
  padding:30px;
  color:#728796;
}
.practice-empty-state strong{color:#34566d;font-size:15px}
.practice-empty-state p{margin:7px 0 0;max-width:430px;font-size:10px;line-height:1.6}
.reading-library{background:#fff;border:1px solid var(--line);border-radius:20px;padding:19px;box-shadow:0 6px 24px rgba(14,50,76,.05)}
.reading-list{display:grid;gap:10px}
.reading-list-row{
  width:100%;
  min-height:70px;
  border:1px solid #dfe7ec;
  border-radius:14px;
  background:linear-gradient(180deg,#fff,#fbfdff);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:15px 17px;
  text-align:left;
  color:inherit;
  transition:var(--motion-fast,120ms) var(--ease-standard,cubic-bezier(.2,.8,.2,1));
}
.reading-list-row:hover{
  transform:translateY(-1px);
  border-color:#bfd2de;
  box-shadow:0 8px 22px rgba(13,54,83,.07);
}
.reading-list-row.completed{
  border-color:#c8e6d7;
  background:linear-gradient(180deg,#fff,#f9fdfb);
}
.reading-list-row.locked{
  opacity:.58;
  background:#f4f6f8;
  border-color:#e1e6ea;
  cursor:not-allowed;
  box-shadow:none;
  transform:none;
}
.reading-list-row.locked:hover{
  transform:none;
  border-color:#e1e6ea;
  box-shadow:none;
}
.reading-list-label{
  color:#123b58;
  font-family:Georgia,"Times New Roman",serif;
  font-size:20px;
  font-weight:700;
}
.reading-list-status{
  width:38px;
  height:38px;
  border-radius:11px;
  display:grid;
  place-items:center;
  background:#0d5278;
  color:#fff;
  font-size:16px;
  font-weight:900;
  flex:0 0 auto;
}
.reading-list-status.done{
  background:#28a46f;
  font-size:18px;
}
.reading-list-status.locked{
  background:#dfe5e9;
  color:#6f8190;
  font-size:14px;
}
.section-title-row{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:14px}
.section-title-row h2{margin:4px 0 0;color:#173b56;font-size:18px}
.section-title-row>small{padding:6px 9px;border-radius:999px;background:#eef5f9;color:#54758a;font-size:9px;font-weight:800}
.reading-card{width:100%;border:1px solid #dfe7ec;border-radius:17px;background:linear-gradient(135deg,#fbfdff,#f3f8fb);padding:20px;display:flex;align-items:center;justify-content:space-between;gap:20px;text-align:left;transition:var(--motion-base,180ms) var(--ease-standard,cubic-bezier(.2,.8,.2,1));color:inherit}
.reading-card:hover{transform:translateY(-2px);border-color:#c7d8e2;box-shadow:0 12px 30px rgba(13,54,83,.08)}
.reading-card-kicker{font-size:8px;letter-spacing:.14em;font-weight:900;color:#4f7890;margin-bottom:6px}
.reading-card h3{font-family:Georgia,"Times New Roman",serif;font-size:23px;color:#123b58;margin:0 0 7px}
.reading-card p{margin:0;color:#6f8494;font-size:10px;line-height:1.55}
.reading-meta{display:flex;gap:7px;flex-wrap:wrap;margin-top:13px}
.reading-meta span,.article-meta span{padding:5px 8px;border-radius:999px;background:#eaf3f8;color:#416981;font-size:8px;font-weight:850}
.reading-card-arrow{width:42px;height:42px;border-radius:14px;background:#0d5278;color:#fff;display:grid;place-items:center;font-size:18px;flex:0 0 auto}
.back-to-reading{border:0;background:transparent;color:#55758a;padding:5px 0;margin:0 0 10px;font-size:10px;font-weight:800}
.back-to-reading:hover{color:#0d5278}
.article-return-button{
  position:sticky;
  top:12px;
  z-index:40;
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 0 12px;
  padding:10px 14px;
  border:1px solid #cfdee7;
  border-radius:12px;
  background:rgba(255,255,255,.96);
  color:#174b6d;
  font-size:10px;
  font-weight:900;
  box-shadow:0 8px 24px rgba(13,54,83,.11);
  backdrop-filter:blur(9px);
  -webkit-backdrop-filter:blur(9px);
  transition:transform var(--motion-fast,120ms) var(--ease-standard,120ms),border-color var(--motion-fast,120ms) var(--ease-standard,120ms),box-shadow var(--motion-fast,120ms) var(--ease-standard,120ms);
}
.article-return-button:hover{
  color:#0d5278;
  border-color:#a9c6d7;
  transform:translateY(-1px);
  box-shadow:0 11px 28px rgba(13,54,83,.15);
}
.article-return-button .return-arrow{
  width:24px;
  height:24px;
  border-radius:8px;
  display:grid;
  place-items:center;
  background:#eaf3f8;
  color:#0d5278;
  font-size:14px;
  line-height:1;
}
.reading-article-shell{background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:0 7px 28px rgba(14,50,76,.055);overflow:visible}
.article-topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;padding:25px 27px 20px;border-bottom:1px solid #e7edf1}
.article-kicker{display:block;color:#56798e;font-size:9px;letter-spacing:.15em;font-weight:900}
.article-topbar h1{font-family:Georgia,"Times New Roman",serif;margin:7px 0 7px;color:#0c3452;font-size:32px;line-height:1.08;letter-spacing:-.035em}
.article-byline{color:#7a8f9d;font-size:9px;margin-bottom:11px}
.article-section-heading{font-family:Georgia,"Times New Roman",serif;color:#163e59;font-size:22px;line-height:1.25;margin:32px 0 12px}
.article-meta{display:flex;gap:6px;flex-wrap:wrap}
.translation-toggle{flex:0 0 auto;border:1px solid #d7e1e8;background:#f8fbfd;border-radius:14px;padding:9px 11px;display:flex;align-items:center;gap:9px;text-align:left;color:#35566d;transition:var(--motion-base,180ms) var(--ease-standard,cubic-bezier(.2,.8,.2,1))}
.translation-toggle:hover{border-color:#bfd1dc;background:#fff}
.translation-toggle>span:last-child{display:grid;gap:1px}
.translation-toggle b{font-size:9px}
.translation-toggle small{font-size:8px;color:#8193a0}
.toggle-track{width:34px;height:20px;border-radius:999px;background:#cfd9df;padding:3px;transition:var(--motion-base,180ms) var(--ease-standard,cubic-bezier(.2,.8,.2,1));display:block}
.toggle-track i{display:block;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(20,50,70,.18);transition:var(--motion-base,180ms) var(--ease-standard,cubic-bezier(.2,.8,.2,1))}
.translation-toggle.on .toggle-track{background:#2e956e}
.translation-toggle.on .toggle-track i{transform:translateX(14px)}
.translation-toggle.on small{color:#27805f;font-weight:850}
.article-guide{padding:13px 27px;background:#f8fbfd;border-bottom:1px solid #e8eef2;display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.article-guide b{font-size:8px;color:#597184;margin-right:8px}
.article-guide p{width:100%;margin:2px 0 0;color:#8193a0;font-size:9px;line-height:1.5}
.guide-dot{width:8px;height:8px;border-radius:50%}
.guide-dot.b1{background:#3b7ea7}.guide-dot.b2{background:#825f9b}
.article-copy{max-width:860px;margin:0 auto;padding:33px 34px 37px;font-family:Georgia,"Times New Roman",serif;font-size:18px;line-height:1.95;color:#263c4c}
.article-copy p{margin:0 0 23px}
.article-copy p:last-child{margin-bottom:0}
.reading-highlighter{position:sticky;top:68px;z-index:35;padding:12px 27px;background:rgba(248,251,253,.98);border-bottom:1px solid #dce6ed;box-shadow:0 4px 12px rgba(14,50,76,.04);font-family:Inter,ui-sans-serif,system-ui,sans-serif;user-select:none;-webkit-user-select:none}
.highlight-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.highlight-controls>strong{font-size:14px;color:#294e66;margin-right:4px}
.highlight-controls button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;border:1px solid #c7d5df;border-radius:9px;background:#fff;color:#27475e;padding:8px 11px;font-size:14px;font-weight:650;cursor:pointer}
.highlight-controls button:hover:not(:disabled){border-color:#527991;box-shadow:0 2px 7px rgba(14,50,76,.1)}
.highlight-controls button.active{border-color:#2f688a;box-shadow:0 0 0 3px rgba(47,104,138,.16),0 3px 9px rgba(14,50,76,.1);transform:translateY(-1px)}
.highlight-controls button.active .highlight-swatch{box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(47,104,138,.22)}
.highlight-controls button:focus-visible{outline:3px solid #2476a7;outline-offset:3px}
.highlight-controls button:disabled{opacity:.55;cursor:default}
.highlight-swatch{display:block;width:16px;height:16px;border-radius:4px;border:1px solid rgba(25,51,69,.2);flex-shrink:0}
.highlight-red{background:#f9c9ce}
.highlight-blue{background:#cce3ff}
.highlight-yellow{background:#ffeda0}
.highlight-green{background:#c7edcf}
.highlight-help,.highlight-status{font-size:12px;line-height:1.5;color:#5b7384;margin:7px 0 0}
.highlight-status{margin-top:2px;color:#456579}
.reading-highlight{color:inherit;padding:0;border-radius:3px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.article-sentence,.article-sentence *{user-select:text;-webkit-user-select:text}
.article-sentence .vocab-popover,.article-sentence .vocab-popover *{user-select:none;-webkit-user-select:none}
@media(max-width:760px){
  .reading-highlighter{top:64px;padding:10px 16px}
  .highlight-controls{gap:6px}
  .highlight-controls>strong{width:100%}
  .highlight-controls button{min-height:44px;padding:8px;font-size:13px;gap:5px}
  .highlight-swatch{width:13px;height:13px}
}
@media(max-width:380px){
  .reading-highlighter{padding:10px}
  .highlight-controls{gap:5px}
  .highlight-controls button{padding:7px 6px}
}
.article-sentence{border-radius:4px;transition:background var(--motion-fast,120ms) var(--ease-standard,120ms),box-shadow var(--motion-fast,120ms) var(--ease-standard,120ms)}
.translation-on .article-sentence{cursor:pointer}
.translation-on .article-sentence:hover{background:#fff1d8;box-shadow:0 0 0 3px #fff1d8}
.translation-on .article-sentence.translated{background:#fff1d8;box-shadow:0 0 0 3px #fff1d8}
.sentence-translation{display:none;font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:11px;line-height:1.55;color:#6f5936;margin:7px 0 11px;padding:9px 11px;border-left:3px solid #e6b55f;background:#fff8eb;border-radius:0 9px 9px 0}
.sentence-translation.show{display:block;animation:translationIn .14s ease both}
@keyframes translationIn{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}
.vocab-word{position:relative;display:inline;font-family:inherit;font-weight:800;cursor:pointer;border-bottom:2px dotted currentColor;padding-bottom:1px;outline:none}
.vocab-word.b1{color:#245f84}
.vocab-word.b2{color:#68447e}
.vocab-word:hover,.vocab-word:focus,.vocab-word.open{background:#eef6fb;border-radius:4px}
.vocab-word.b2:hover,.vocab-word.b2:focus,.vocab-word.b2.open{background:#f4eef8}
.vocab-popover{display:none;position:absolute;left:50%;bottom:calc(100% + 11px);transform:translateX(-50%);z-index:30;width:max-content;max-width:220px;min-width:155px;background:#0e344f;color:#fff;border-radius:11px;padding:9px 10px;box-shadow:0 14px 34px rgba(4,38,61,.24);font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-weight:400;line-height:1.25;text-align:left}
.vocab-popover:after{content:"";position:absolute;left:50%;bottom:-5px;transform:translateX(-50%) rotate(45deg);width:10px;height:10px;background:#0e344f}
.vocab-popover small{display:block;color:#9fc8de;font-size:7px;font-weight:900;letter-spacing:.1em}
.vocab-popover strong{display:block;color:#fff;font-size:11px;margin:3px 0}
.vocab-popover em{display:block;color:#dceaf1;font-size:9px;font-style:normal}
.vocab-word.open .vocab-popover{display:block;animation:wordPop .12s ease both}
.vocab-practice-section{margin-top:16px;background:#fff;border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:0 6px 24px rgba(14,50,76,.05)}
.practice-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding-bottom:16px;border-bottom:1px solid #e7edf1}
.practice-section-head h2{margin:4px 0;color:#173b56;font-size:20px}
.practice-section-head p{margin:0;color:#778b99;font-size:10px}
.exercise-score{padding:7px 10px;border-radius:999px;background:#eef3f6;color:#6f8391;font-size:9px;font-weight:850;white-space:nowrap}
.exercise-score.excellent{background:#e6f6ee;color:#267757}
.exercise-score.good{background:#eef5fb;color:#2f6d93}
.exercise-score.keep-going{background:#fff4df;color:#9a6a12}
.exercise-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:15px}
.exercise-question{border:1px solid #e2e9ee;border-radius:14px;padding:13px;display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;background:#fff;transition:var(--motion-fast,120ms) var(--ease-standard,cubic-bezier(.2,.8,.2,1))}
.exercise-number{width:25px;height:25px;border-radius:8px;display:grid;place-items:center;background:#eef5f9;color:#466d84;font-size:9px;font-weight:900}
.exercise-content p{margin:2px 0 9px;color:#29495f;font-size:10px;font-weight:800;line-height:1.45}
.exercise-options{display:flex;gap:6px;flex-wrap:wrap}
.exercise-options button{border:1px solid #dce5eb;background:#f8fbfd;color:#60798a;border-radius:8px;padding:7px 8px;font-size:8px;font-weight:750;transition:var(--motion-fast,120ms) var(--ease-standard,cubic-bezier(.2,.8,.2,1))}
.exercise-options button:hover{border-color:#b8ccd8;background:#fff}
.exercise-options button.selected{border-color:#6796b2;background:#eaf4fa;color:#285f80}
.exercise-options button.correct-option{border-color:#67b58e;background:#e9f7f0;color:#227653}
.exercise-options button.wrong-option{border-color:#dc8c8c;background:#fff0f0;color:#a53f3f}
.exercise-question.correct{border-color:#bfe5d1}
.exercise-question.wrong{border-color:#efc9c9}
.exercise-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:15px}
.check-answers,.retry-exercises{border-radius:10px;padding:10px 13px;font-size:9px;font-weight:850}
.check-answers{border:0;background:#0d5278;color:#fff}
.retry-exercises{border:1px solid #d7e1e8;background:#fff;color:#567386}
@media(max-width:760px){
  .student-section-nav-wrap{padding:12px 12px 0;min-height:56px}
  .student-section-tab{padding:11px 16px 12px;font-size:11px}
  .practice-hero{align-items:flex-start;flex-direction:column}
  .practice-category-row{min-height:84px;padding:15px}
  .reading-list-row{min-height:64px;padding:13px 14px}
  .reading-list-label{font-size:18px}
  .reading-list-status{width:34px;height:34px}
  .practice-category-icon{width:46px;height:46px;font-size:19px}
  .practice-category-copy strong{font-size:21px}
  .article-return-button{top:8px;padding:9px 12px}
  .article-topbar{padding:20px;flex-direction:column}
  .translation-toggle{width:100%;justify-content:space-between}
  .article-guide{padding:12px 20px}
  .article-copy{padding:25px 20px 30px;font-size:17px;line-height:1.88}
  .exercise-list{grid-template-columns:1fr}
  .practice-section-head{align-items:flex-start;flex-direction:column}
}
@media(max-width:480px){
  .portal-brand strong{font-size:12px}
  .portal-brand span{font-size:7px}
  .portal-brand img{width:40px;height:40px}
  .portal-header{padding:12px}
  .portal-header-inner{gap:8px}
  .student-section-nav-wrap{padding:9px 10px 0;min-height:52px}
  .student-section-tab{font-size:10px;padding:10px 13px 11px}
  .portal-header-actions{gap:5px}
  .refresh-button{min-width:auto}
  .signout{padding:7px 8px;font-size:9px}
  .practice-category-row{grid-template-columns:auto minmax(0,1fr) auto;gap:11px;padding:13px}
  .practice-category-icon{width:42px;height:42px;border-radius:12px;font-size:17px}
  .practice-category-copy strong{font-size:19px}
  .practice-category-copy span{font-size:9px}
  .practice-category-arrow{width:34px;height:34px}
  .reading-card{padding:16px}
  .reading-card h3{font-size:20px}
  .reading-card-arrow{width:36px;height:36px;border-radius:11px}
  .article-topbar h1{font-size:27px}
  .article-copy{font-size:16px}
  .vocab-popover{max-width:185px;min-width:145px}
  .vocab-practice-section{padding:16px}
}


/* Rich vocabulary cards: meaning, UK/US audio, examples and carefully limited synonyms */
.vocab-popover{
  width:340px;
  max-width:min(340px,calc(100vw - 28px));
  min-width:280px;
  padding:14px;
  border:1px solid #dbe6ec;
  background:#fff;
  color:#203f54;
  border-radius:16px;
  box-shadow:0 18px 46px rgba(5,37,59,.22);
  line-height:1.35;
}
.vocab-popover:after{
  background:#fff;
  border-right:1px solid #dbe6ec;
  border-bottom:1px solid #dbe6ec;
}
.vocab-card-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.vocab-popover .vocab-card-head small{
  display:inline-flex;
  color:#44748f;
  background:#edf5f9;
  border-radius:999px;
  padding:4px 7px;
  font-size:9px;
  font-weight:900;
  letter-spacing:.06em;
}
.vocab-popover .vocab-card-head strong{
  display:block;
  color:#163c55;
  font-size:15px;
  line-height:1.25;
  margin:0;
  flex:1;
}
.vocab-meaning{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:8px;
  align-items:start;
  margin-top:10px;
  padding:9px 10px;
  border-radius:10px;
  background:#f5f8fa;
}
.vocab-meaning b,.vocab-examples>b,.vocab-synonyms>b{
  color:#6b8291;
  font-size:9px;
  line-height:1.4;
  text-transform:uppercase;
  letter-spacing:.07em;
}
.vocab-popover .vocab-meaning em{
  display:block;
  color:#25495f;
  font-size:12px;
  line-height:1.45;
  font-style:normal;
}
.vocab-pronunciation{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  margin-top:10px;
}
.vocab-audio{
  border:1px solid #cbdde7;
  background:#f8fbfd;
  color:#285d7b;
  border-radius:10px;
  padding:9px 8px;
  min-height:38px;
  font:inherit;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
  transition:background var(--motion-fast,120ms) var(--ease-standard,120ms),border-color var(--motion-fast,120ms) var(--ease-standard,120ms),transform var(--motion-fast,120ms) var(--ease-standard,120ms);
}
.vocab-audio:hover,.vocab-audio:focus-visible{
  background:#eaf5fb;
  border-color:#90b7cc;
  outline:none;
  transform:translateY(-1px);
}
.vocab-examples{margin-top:11px}
.vocab-example{
  margin-top:6px;
  padding:8px 9px;
  border:1px solid #e3eaee;
  border-radius:10px;
  background:#fff;
}
.vocab-example-context{background:#fbfcfd}
.vocab-example p{
  margin:0;
  color:#24475d;
  font-size:11px;
  line-height:1.45;
  font-weight:700;
}
.vocab-example span{
  display:block;
  margin-top:3px;
  color:#708390;
  font-size:10px;
  line-height:1.45;
  font-weight:500;
}
.vocab-synonyms{margin-top:11px}
.vocab-synonyms>div{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.vocab-synonyms span{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:4px 8px;
  border-radius:999px;
  background:#edf3f7;
  color:#315b72;
  font-size:10px;
  font-weight:750;
}
@media(max-width:520px){
  .vocab-popover{
    width:calc(100vw - 28px);
    min-width:0;
    max-width:calc(100vw - 28px);
    padding:12px;
  }
  .vocab-pronunciation{grid-template-columns:1fr}
  .vocab-audio{min-height:42px;font-size:12px}
}

/* Vocabulary popovers are strictly click-to-open. Keep hidden content out of article flow. */
.vocab-word > .vocab-popover{
  display:none !important;
}
.vocab-word.open > .vocab-popover{
  display:block !important;
}
.vocab-card-head,
.vocab-meaning,
.vocab-pronunciation,
.vocab-examples,
.vocab-example,
.vocab-example-en,
.vocab-example-uz,
.vocab-synonyms,
.vocab-synonym-list{
  box-sizing:border-box;
}
.vocab-card-head,
.vocab-meaning,
.vocab-pronunciation,
.vocab-examples,
.vocab-example,
.vocab-example-en,
.vocab-example-uz,
.vocab-synonyms{
  display:block;
}
.vocab-card-head{display:flex}
.vocab-meaning{display:grid}
.vocab-pronunciation{display:grid}
.vocab-example-en{
  margin:0;
  color:#24475d;
  font-size:11px;
  line-height:1.45;
  font-weight:700;
}
.vocab-example-uz{
  margin-top:3px;
  color:#708390;
  font-size:10px;
  line-height:1.45;
  font-weight:500;
}
.vocab-synonym-list{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:6px;
}
.vocab-synonym{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:4px 8px;
  border-radius:999px;
  background:#edf3f7;
  color:#315b72;
  font-size:10px;
  font-weight:750;
}


/* Force vocabulary cards to open BELOW the tapped bold word */
.vocab-word{
  position:relative;
  overflow:visible;
}
.vocab-word.open{
  z-index:80;
}
.vocab-word > .vocab-popover{
  top:calc(100% + 12px) !important;
  bottom:auto !important;
  left:50% !important;
  transform:translateX(-50%) !important;
  transform-origin:top center;
}
.vocab-word > .vocab-popover:after{
  top:-6px !important;
  bottom:auto !important;
  left:50%;
  transform:translateX(-50%) rotate(45deg);
  background:#fff;
  border-left:1px solid #dbe6ec;
  border-top:1px solid #dbe6ec;
  border-right:0;
  border-bottom:0;
}
@keyframes wordPop{
  from{opacity:0;transform:translate(-50%,-3px) scale(.98)}
  to{opacity:1;transform:translate(-50%,0) scale(1)}
}


/* Full-article British / American read-aloud */
.article-audio-panel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 27px;
  border-bottom:1px solid #e7edf1;
  background:#fff;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
}
.article-audio-copy{
  display:grid;
  gap:2px;
  min-width:170px;
}
.article-audio-copy>span{
  color:#7890a0;
  font-size:8px;
  font-weight:900;
  letter-spacing:.13em;
}
.article-audio-copy strong{
  color:#274c64;
  font-size:13px;
  line-height:1.3;
}
.article-audio-copy small{
  color:#8497a4;
  font-size:9px;
  line-height:1.35;
}
.article-audio-controls{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.article-audio-button{
  min-width:132px;
  border:1px solid #d1dfe7;
  background:#f8fbfd;
  color:#2e5269;
  border-radius:12px;
  padding:8px 10px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:8px;
  text-align:left;
  cursor:pointer;
  transition:background var(--motion-fast,120ms) var(--ease-standard,120ms),border-color var(--motion-fast,120ms) var(--ease-standard,120ms),box-shadow var(--motion-fast,120ms) var(--ease-standard,120ms),transform var(--motion-fast,120ms) var(--ease-standard,120ms);
}
.article-audio-button:hover{
  background:#fff;
  border-color:#a8c3d3;
  transform:translateY(-1px);
}
.article-audio-button.active{
  background:#eaf5fb;
  border-color:#76a7c2;
  box-shadow:0 0 0 3px rgba(61,127,166,.10);
}
.article-audio-flag{
  font-size:21px;
  line-height:1;
}
.article-audio-button>span:nth-child(2){
  display:grid;
  gap:1px;
}
.article-audio-button b{
  color:#254d65;
  font-size:10px;
}
.article-audio-button small{
  color:#7a919f;
  font-size:8px;
}
.article-audio-button i{
  font-style:normal;
  color:#3f7696;
  font-size:11px;
  font-weight:900;
}
.article-audio-stop{
  border:1px solid #dde5ea;
  background:#fff;
  color:#6c7f8b;
  border-radius:10px;
  padding:9px 10px;
  min-height:42px;
  font-size:9px;
  font-weight:800;
  cursor:pointer;
}
.article-audio-stop:disabled{
  opacity:.42;
  cursor:default;
}
@media(max-width:760px){
  .article-audio-panel{
    padding:13px 20px;
    align-items:stretch;
    flex-direction:column;
  }
  .article-audio-controls{
    display:grid;
    grid-template-columns:1fr 1fr;
    justify-content:stretch;
  }
  .article-audio-button{
    min-width:0;
    width:100%;
  }
  .article-audio-stop{
    grid-column:1 / -1;
  }
}
@media(max-width:430px){
  .article-audio-controls{grid-template-columns:1fr}
  .article-audio-stop{grid-column:auto}
}


/* Polished full-article audio players */
.article-audio-panel{
  display:block !important;
  padding:20px 27px 22px !important;
  border-bottom:1px solid #e7edf1 !important;
  background:linear-gradient(180deg,#fbfdfe 0%,#f7fafc 100%) !important;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif !important;
}
.article-audio-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:13px;
}
.article-audio-heading>div{
  display:grid;
  gap:2px;
}
.article-audio-eyebrow{
  color:#7590a1;
  font-size:9px;
  font-weight:900;
  letter-spacing:.13em;
}
.article-audio-heading strong{
  color:#173f59;
  font-size:17px;
  line-height:1.25;
}
.article-audio-heading small{
  color:#718997;
  font-size:10px;
  line-height:1.45;
}
.article-player-list{
  display:grid;
  gap:9px;
}
.article-player-row{
  --audio-progress:0%;
  display:grid;
  grid-template-columns:46px minmax(150px,190px) minmax(220px,1fr);
  align-items:center;
  gap:13px;
  min-width:0;
  padding:11px 13px;
  border:1px solid #dce6ec;
  border-radius:15px;
  background:#fff;
  box-shadow:0 2px 8px rgba(17,57,82,.035);
  transition:border-color var(--motion-fast,120ms) var(--ease-standard,120ms),box-shadow var(--motion-fast,120ms) var(--ease-standard,120ms),background var(--motion-fast,120ms) var(--ease-standard,120ms);
}
.article-player-row.playing{
  border-color:#aec8d7;
  box-shadow:0 4px 16px rgba(28,83,117,.08);
  background:#fcfeff;
}
.article-player-row.paused{
  border-color:#c9d8e1;
}
.article-player-play{
  width:44px;
  height:44px;
  border:0;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#173f59;
  color:#fff;
  cursor:pointer;
  box-shadow:0 5px 12px rgba(23,63,89,.18);
  transition:transform var(--motion-fast,120ms) var(--ease-standard,120ms),background var(--motion-fast,120ms) var(--ease-standard,120ms),box-shadow var(--motion-fast,120ms) var(--ease-standard,120ms);
}
.article-player-play:hover{
  transform:translateY(-1px);
  background:#0d5278;
  box-shadow:0 7px 15px rgba(23,63,89,.22);
}
.article-player-play:focus-visible{
  outline:3px solid rgba(36,118,167,.25);
  outline-offset:3px;
}
.article-player-play span{
  font-size:14px;
  font-weight:900;
  line-height:1;
  transform:translateX(1px);
}
.article-player-row.playing .article-player-play span{
  transform:none;
}
.article-player-accent{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.article-player-flag{
  flex:0 0 auto;
  font-size:25px;
  line-height:1;
}
.article-player-accent>span:last-child{
  display:grid;
  gap:2px;
  min-width:0;
}
.article-player-accent strong{
  color:#24495f;
  font-size:12px;
  line-height:1.25;
}
.article-player-accent small{
  color:#8295a1;
  font-size:9px;
}
.article-player-track{
  min-width:0;
  display:grid;
  gap:4px;
}
.article-audio-seek{
  --audio-progress:0%;
  width:100%;
  height:18px;
  margin:0;
  padding:0;
  appearance:none;
  -webkit-appearance:none;
  background:transparent;
  cursor:pointer;
  touch-action:pan-y;
}
.article-audio-seek::-webkit-slider-runnable-track{
  height:5px;
  border-radius:999px;
  background:linear-gradient(to right,#2f759c 0 var(--audio-progress),#dce6ec var(--audio-progress) 100%);
}
.article-audio-seek::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:16px;
  height:16px;
  margin-top:-5.5px;
  border:3px solid #fff;
  border-radius:50%;
  background:#2f759c;
  box-shadow:0 1px 5px rgba(16,65,95,.26);
}
.article-audio-seek::-moz-range-track{
  height:5px;
  border:0;
  border-radius:999px;
  background:#dce6ec;
}
.article-audio-seek::-moz-range-progress{
  height:5px;
  border-radius:999px;
  background:#2f759c;
}
.article-audio-seek::-moz-range-thumb{
  width:12px;
  height:12px;
  border:3px solid #fff;
  border-radius:50%;
  background:#2f759c;
  box-shadow:0 1px 5px rgba(16,65,95,.26);
}
.article-audio-seek:focus-visible{
  outline:0;
}
.article-audio-seek:focus-visible::-webkit-slider-thumb{
  box-shadow:0 0 0 4px rgba(47,117,156,.16),0 1px 5px rgba(16,65,95,.26);
}
.article-player-time{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:#768b98;
  font-size:9px;
  font-variant-numeric:tabular-nums;
}
.article-player-row.playing .article-player-time span:first-child{
  color:#2f6787;
  font-weight:800;
}
.article-audio-controls,
.article-audio-copy,
.article-audio-button,
.article-audio-stop{
  display:none !important;
}
@media(max-width:760px){
  .article-audio-panel{
    padding:17px 20px 19px !important;
  }
  .article-player-row{
    grid-template-columns:44px minmax(120px,160px) minmax(120px,1fr);
    gap:10px;
    padding:10px;
  }
}
@media(max-width:560px){
  .article-audio-heading{
    align-items:flex-start;
    flex-direction:column;
  }
  .article-player-row{
    grid-template-columns:44px minmax(0,1fr);
    gap:9px 11px;
  }
  .article-player-track{
    grid-column:1 / -1;
  }
}


/* Extra full-article audio controls */
.article-player-tools{
  display:grid;
  grid-template-columns:auto minmax(160px,1fr) minmax(92px,110px) auto;
  align-items:end;
  gap:7px;
  margin-top:4px;
}
.article-skip-button{
  min-height:34px;
  border:1px solid #d7e2e9;
  background:#f8fbfd;
  color:#42677e;
  border-radius:9px;
  padding:7px 9px;
  font:inherit;
  font-size:9px;
  font-weight:800;
  white-space:nowrap;
  cursor:pointer;
}
.article-skip-button:hover{
  background:#eef6fa;
  border-color:#afc7d5;
}
.article-tool-select{
  display:grid;
  gap:3px;
  min-width:0;
}
.article-tool-select>span{
  color:#7b909e;
  font-size:8px;
  font-weight:800;
  letter-spacing:.03em;
}
.article-tool-select select{
  width:100%;
  min-width:0;
  height:34px;
  border:1px solid #d7e2e9;
  border-radius:9px;
  background:#fff;
  color:#34586f;
  padding:0 28px 0 9px;
  font:inherit;
  font-size:9px;
  font-weight:700;
  outline:none;
}
.article-tool-select select:focus{
  border-color:#80aac1;
  box-shadow:0 0 0 3px rgba(47,117,156,.10);
}
.article-tool-select select:disabled{
  opacity:.55;
  cursor:not-allowed;
}
@media(max-width:820px){
  .article-player-tools{
    grid-template-columns:auto minmax(130px,1fr) minmax(86px,100px) auto;
  }
}
@media(max-width:620px){
  .article-player-tools{
    grid-template-columns:1fr 1fr;
    align-items:end;
  }
  .article-skip-button{
    min-height:40px;
  }
  .article-tool-select select{
    min-height:40px;
    font-size:12px;
  }
}


/* Male / Female voice selector */
.article-gender-control{
  display:grid;
  gap:3px;
  min-width:0;
}
.article-gender-control>span{
  color:#7b909e;
  font-size:8px;
  font-weight:800;
  letter-spacing:.03em;
}
.article-gender-options{
  display:grid;
  grid-template-columns:1fr 1fr;
  height:34px;
  border:1px solid #d7e2e9;
  border-radius:9px;
  overflow:hidden;
  background:#fff;
}
.article-gender-options button{
  border:0;
  background:transparent;
  color:#607786;
  font:inherit;
  font-size:9px;
  font-weight:800;
  cursor:pointer;
  padding:0 10px;
  transition:background var(--motion-fast,120ms) var(--ease-standard,120ms),color var(--motion-fast,120ms) var(--ease-standard,120ms);
}
.article-gender-options button+button{
  border-left:1px solid #d7e2e9;
}
.article-gender-options button.active{
  background:#eaf4f9;
  color:#245b7a;
}
.article-gender-options button:focus-visible{
  outline:2px solid #4d8eae;
  outline-offset:-2px;
}
@media(max-width:620px){
  .article-gender-options{
    height:40px;
  }
  .article-gender-options button{
    font-size:12px;
  }
}


/* Vision Practice unified motion */
.practice-view{animation:practicePremiumIn var(--motion-slow,240ms) var(--ease-premium,cubic-bezier(.22,1,.36,1)) both}
@keyframes practicePremiumIn{
  from{opacity:0;transform:translate3d(0,4px,0)}
  to{opacity:1;transform:translate3d(0,0,0)}
}
.student-section-tab,.practice-category-row,.practice-category-arrow,.reading-list-row,
.back-to-practice,.back-to-reading,.translation-toggle,.highlight-button,.article-player-play,
.article-skip-button,.article-gender-options button,.exercise-options button,.check-answers,
.retry-exercises,.vocab-word,.vocab-popover{
  transition:background-color var(--motion-fast,120ms) var(--ease-standard,cubic-bezier(.2,.8,.2,1)),
    border-color var(--motion-fast,120ms) var(--ease-standard,cubic-bezier(.2,.8,.2,1)),
    color var(--motion-fast,120ms) var(--ease-standard,cubic-bezier(.2,.8,.2,1)),
    box-shadow var(--motion-base,180ms) var(--ease-standard,cubic-bezier(.2,.8,.2,1)),
    opacity var(--motion-fast,120ms) var(--ease-standard,cubic-bezier(.2,.8,.2,1)),
    transform var(--motion-base,180ms) var(--ease-premium,cubic-bezier(.22,1,.36,1));
}
.practice-category-row:active,.reading-list-row:active,.exercise-options button:active,
.check-answers:active,.retry-exercises:active{transform:translate3d(0,1px,0) scale(.995)}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
    scroll-behavior:auto!important;
  }
}
