/* Student workspace: a focused shell for existing RE learning and assessment tools. */

body.bayee-student{
  padding-left:0!important;
  min-width:0;
  background:var(--paper)!important;
  color:var(--ink)!important;
  --serif:var(--by-font);
  --shadow:0 14px 34px rgba(45,41,34,.07);
  --radius:18px;
}

body.bayee-student .by-legacy-compat,
body.bayee-student .side-rail,
body.bayee-student .rail-tab,
body.bayee-student #learnGroup,
body.bayee-student #studioIntro,
body.bayee-student #view-select > .hero{
  display:none!important;
}

body.bayee-student .by-student-main{
  width:min(1120px,calc(100% - 40px));
  max-width:none!important;
  min-width:0;
  margin:0 auto!important;
  padding:28px 0 64px!important;
}

body.bayee-student .by-student-viewbar{
  width:min(1120px,calc(100% - 40px));
  min-height:0;
  margin:0 auto;
  display:flex;
  justify-content:flex-end;
}

body.bayee-student .by-student-viewbar .back-btn{
  margin:14px 0 -4px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--white);
  color:var(--navy);
  box-shadow:none;
  font-weight:750;
}

body.bayee-student .by-student-auth{
  width:min(1120px,calc(100% - 40px));
  min-height:52px;
  margin:0 auto;
  padding:10px 0;
  border:0;
  border-bottom:1px solid var(--line);
  background:transparent;
  color:var(--muted);
}

body.bayee-student .auth-left .auth-region{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 9px;
  border-radius:999px;
  background:#fff5e9;
  color:#6e5a45;
  opacity:1;
}

body.bayee-student .auth-right{gap:8px}

body.bayee-student :is(.abtn,.back-btn,.verify-btn,.start-btn,.submit-btn){
  border-radius:10px;
  font-weight:750;
  box-shadow:none;
}

body.bayee-student .abtn-primary,
body.bayee-student .verify-btn,
body.bayee-student .start-btn,
body.bayee-student .submit-btn{
  background:var(--orange)!important;
  color:#fff!important;
  border-color:var(--orange)!important;
}

body.bayee-student .abtn-ghost{
  background:#fff8f0!important;
  color:var(--orange-dark)!important;
  border:1px solid #f1d5b8!important;
}

body.bayee-student .user-chip .uname{color:var(--navy)}
body.bayee-student .tag-region{background:#fff3e5;color:var(--orange-dark)}

/* Workspace landing: the only visible starting point for learners. */
body.bayee-student .by-student-dashboard{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(310px,.9fr);
  gap:34px;
  align-items:end;
  padding:clamp(28px,4vw,54px);
  border:1px solid #eadbca;
  border-top:4px solid var(--orange);
  border-radius:22px;
  background:#fffdf9;
  box-shadow:var(--shadow);
}

body.bayee-student .by-student-kicker,
body.bayee-student .by-student-module-kicker{
  margin:0 0 11px;
  color:var(--orange-dark);
  font-size:11px!important;
  line-height:1.2!important;
  font-weight:850!important;
  letter-spacing:1.8px;
}

body.bayee-student .by-student-dashboard h1{
  max-width:690px;
  margin:0;
  color:var(--navy);
  font-size:clamp(32px,4vw,54px);
  line-height:1.18;
  letter-spacing:-1.2px;
  font-family:var(--by-font);
  font-weight:850;
}

body.bayee-student .by-student-lead{
  max-width:650px;
  margin:18px 0 0;
  color:#536274;
  font-size:16px;
  line-height:1.85;
}

body.bayee-student .by-student-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-top:28px;
}

body.bayee-student .by-student-actions :is(a,button){
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:10px 18px;
  text-decoration:none;
  font:750 14px/1 var(--by-font);
  cursor:pointer;
  transition:background-color .16s ease,border-color .16s ease,color .16s ease,transform .16s ease;
}

body.bayee-student .by-student-primary-action{
  border:1px solid var(--orange);
  background:var(--orange);
  color:#fff;
}

body.bayee-student .by-student-primary-action:hover{background:var(--orange-dark);border-color:var(--orange-dark);transform:translateY(-1px)}

body.bayee-student .by-student-secondary-action{
  border:1px solid #d7c4ae;
  background:#fff;
  color:var(--navy);
}

body.bayee-student .by-student-secondary-action:hover,
body.bayee-student .by-student-text-action:hover{border-color:var(--orange);color:var(--orange-dark);background:#fff7ee}

body.bayee-student .by-student-text-action{
  border:0;
  background:transparent;
  color:#516171;
  padding-inline:8px!important;
}

body.bayee-student .by-student-route{
  display:grid;
  gap:1px;
  overflow:hidden;
  border:1px solid #e8d9c7;
  border-radius:16px;
  background:#e8d9c7;
}

body.bayee-student .by-student-route-step{
  display:grid;
  grid-template-columns:40px 1fr;
  align-items:center;
  column-gap:12px;
  min-height:95px;
  padding:16px 18px;
  background:#fffaf4;
}

body.bayee-student .by-student-route-step span{
  grid-row:span 2;
  color:var(--orange-dark);
  font-size:12px;
  font-weight:850;
  letter-spacing:1px;
}

body.bayee-student .by-student-route-step b{color:var(--navy);font-size:15px}
body.bayee-student .by-student-route-step small{color:var(--muted);font-size:12px;line-height:1.45}

body.bayee-student .by-student-tools{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin:18px 0 0;
}

body.bayee-student .by-student-tool-card{
  position:relative;
  display:flex;
  min-height:172px;
  flex-direction:column;
  justify-content:flex-end;
  gap:5px;
  padding:21px;
  overflow:hidden;
  border:1px solid #eadbca;
  border-radius:16px;
  background:#fffdf9;
  box-shadow:0 8px 22px rgba(62,52,38,.04);
  color:var(--navy);
  text-decoration:none;
  transition:border-color .16s ease,transform .16s ease,box-shadow .16s ease;
}

body.bayee-student .by-student-tool-card:hover{
  border-color:#e9ad73;
  box-shadow:0 12px 26px rgba(62,52,38,.09);
  transform:translateY(-2px);
}

body.bayee-student .by-student-tool-card b{font-size:16px;line-height:1.4}
body.bayee-student .by-student-tool-card small{color:var(--muted);font-size:12.5px;line-height:1.65}
body.bayee-student .by-student-tool-index{position:absolute;top:17px;left:20px;color:var(--orange-dark);font-size:11px;font-weight:850;letter-spacing:1px}
body.bayee-student .by-student-tool-card i{position:absolute;right:19px;bottom:19px;color:var(--orange);font-size:20px;font-style:normal}

/* RE resources and assessment use the original data + functions, in a new shell. */
body.bayee-student .test-module.by-student-module{
  margin:0!important;
  padding:clamp(22px,3vw,38px)!important;
  border:1px solid #eadbca!important;
  border-top:4px solid var(--orange)!important;
  border-radius:22px!important;
  background:#fffdf9!important;
  box-shadow:var(--shadow)!important;
}

body.bayee-student .test-module.by-student-module .test-head{
  max-width:750px;
  margin:0 0 26px!important;
  text-align:left!important;
}

body.bayee-student .test-module.by-student-module .test-head h2{
  margin:0!important;
  color:var(--navy)!important;
  font:850 clamp(25px,3vw,38px)/1.25 var(--by-font)!important;
  letter-spacing:-.6px!important;
}

body.bayee-student .test-module.by-student-module .test-head h2::after{display:none!important}
body.bayee-student .test-module.by-student-module .test-head p:not(.by-student-module-kicker){max-width:700px;margin:11px 0 0!important;padding:0!important;color:#58687a!important;text-align:left!important}

body.bayee-student .test-module.by-student-module .teacher-card,
body.bayee-student .test-module.by-student-module .panel{
  margin-bottom:14px!important;
  padding:20px!important;
  border:1px solid #eadbca!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:none!important;
}

body.bayee-student .re-world{padding:0!important;text-align:left!important}
body.bayee-student .state-enter .re-enter-view{
  min-height:210px!important;
  padding:26px!important;
  align-items:flex-start!important;
  justify-content:center!important;
  border:1px dashed #e8c69f;
  border-radius:14px;
  background:#fff8ef!important;
}

body.bayee-student .pill,
body.bayee-student .re-article-tools .art-tool,
body.bayee-student .re-audio-rate{
  border-color:#e3c8a9!important;
  border-radius:10px!important;
  background:#fff!important;
  color:var(--navy)!important;
  box-shadow:none!important;
  font-family:var(--by-font)!important;
  font-weight:750!important;
  text-shadow:none!important;
}

body.bayee-student .pill:hover,
body.bayee-student .re-article-tools .art-tool:hover,
body.bayee-student .re-audio-rate:hover{
  background:#fff4e7!important;
  border-color:var(--orange)!important;
  color:var(--orange-dark)!important;
}

body.bayee-student .pill-primary{
  width:auto!important;
  min-width:0!important;
  padding:13px 19px!important;
  background:var(--orange)!important;
  border-color:var(--orange)!important;
  color:#fff!important;
  font-size:15px!important;
  letter-spacing:0!important;
  animation:none!important;
}

body.bayee-student .pill-pre,
body.bayee-student .pill.pre-open,
body.bayee-student .pill-pre.pre-open{
  background:#fff3e5!important;
  border-color:#e3c8a9!important;
  color:var(--orange-dark)!important;
}

body.bayee-student .re-current-level{background:var(--navy)!important;color:#fff!important;box-shadow:none!important}
body.bayee-student .open-class-pill{
  margin-top:0!important;
  padding:11px 15px!important;
  border:1px solid #e3c8a9!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#596778!important;
  box-shadow:none!important;
  text-align:left!important;
}
body.bayee-student .open-class-pill:hover{background:#fff4e7!important;color:var(--orange-dark)!important;box-shadow:none!important}
body.bayee-student .open-class-pill .live-dot{background:var(--orange)!important;box-shadow:none!important;animation:none!important}

body.bayee-student .pre-info,
body.bayee-student .re-info-panel,
body.bayee-student .re-article-card,
body.bayee-student .re-audio-item{
  border-color:#eadbca!important;
  background:#fffdf9!important;
  box-shadow:none!important;
}

/* Prioritize the learner's next step above the optional course explanation. */
body.bayee-student .pre-info > .re-entry-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;
  margin:0 0 22px;
  padding:0 0 22px;
  border-bottom:1px solid var(--line);
}
body.bayee-student .re-entry-actions .re-info-goto{
  flex:1 1 210px;
  justify-content:center;
  min-width:0;
  max-width:290px;
  min-height:48px;
  margin:0;
  padding:12px 18px;
  border:1px solid var(--orange);
  border-radius:12px;
  background:var(--orange);
  color:#fff;
  box-shadow:none;
  font:750 14px/1.55 var(--by-font);
  text-align:center;
}
body.bayee-student .re-entry-actions .re-info-goto:hover{
  background:var(--orange-dark);
  border-color:var(--orange-dark);
  filter:none;
}
@media(max-width:520px){
  body.bayee-student .pre-info > .re-entry-actions{gap:10px;margin-bottom:18px;padding-bottom:18px}
  body.bayee-student .re-entry-actions .re-info-goto{flex-basis:100%;max-width:none}
}

body.bayee-student .re-article-card{border-width:1px!important;border-radius:14px!important}
body.bayee-student .re-article-card:hover{background:#fff8ef!important;border-color:#e7ae76!important;box-shadow:0 8px 20px rgba(62,52,38,.07)!important}
body.bayee-student .re-article-card :is(.art-label,.art-title){color:var(--navy)!important}
body.bayee-student .re-article-card .art-theme{color:var(--muted)!important}
body.bayee-student .re-audio-player{background:#f8f2ea!important;border-color:#eadbca!important}
body.bayee-student .ap-play{background:var(--orange)!important}
body.bayee-student .re-audio-item .art-label{color:var(--orange-dark)!important}
body.bayee-student .re-audio-item .art-title{color:var(--navy)!important}

body.bayee-student .field-label{color:var(--navy)!important;font-weight:800!important}
body.bayee-student .seg button,
body.bayee-student .unit-row button,
body.bayee-student .papers button{
  border-color:#e3c8a9!important;
  border-radius:9px!important;
  color:var(--navy)!important;
  background:#fff!important;
  box-shadow:none!important;
}
body.bayee-student .seg button.on,
body.bayee-student .unit-row button.on,
body.bayee-student .papers button.on{background:var(--orange)!important;border-color:var(--orange)!important;color:#fff!important}

body.bayee-student .gate-tip{color:#596778!important}
body.bayee-student .name-group label{color:var(--navy)!important}
body.bayee-student :is(.name-group input,.auth-form input,.auth-form select){border-color:#dfcfbb!important;border-radius:9px!important;color:var(--navy)!important;background:#fff!important}
body.bayee-student :is(.name-group input,.auth-form input,.auth-form select):focus{border-color:var(--orange)!important;box-shadow:0 0 0 3px #fff1e3!important}

/* Test, report, and Transcript retain their current calculation logic. */
body.bayee-student .test-info,
body.bayee-student .test-split,
body.bayee-student .report-card,
body.bayee-student .ts-sheet{
  border-color:#eadbca!important;
  border-radius:18px!important;
  background:#fffdf9!important;
  box-shadow:var(--shadow)!important;
}

body.bayee-student .test-info{padding:20px!important;color:var(--navy)!important}
body.bayee-student .ti-main{color:var(--navy)!important}
body.bayee-student .ti-sub{color:var(--muted)!important}
body.bayee-student .timer{background:#fff3e5!important;color:var(--orange-dark)!important}
body.bayee-student .tabbar{border-bottom-color:#eadbca!important}
body.bayee-student .tabbar button{color:#667085!important}
body.bayee-student .tabbar button.on{color:var(--orange-dark)!important;border-bottom-color:var(--orange)!important}
body.bayee-student :is(.pdf-pane,.form-pane){background:#fff!important;border-color:#eadbca!important}
body.bayee-student .pane-head{color:var(--navy)!important;background:#fff8ef!important;border-bottom-color:#eadbca!important}
body.bayee-student .form-foot{background:#fffdf9!important;border-top-color:#eadbca!important}
body.bayee-student .progress-bar{background:#f3e7d8!important}
body.bayee-student .progress-bar i{background:var(--orange)!important}

body.bayee-student :is(.report-card,.ts-sheet) :is(h1,h2,h3,h4,.rc-band .rb-title,.ts-title){color:var(--navy)!important}
body.bayee-student :is(.report-card,.ts-sheet) :is(.res-card,.stat,.module-card,.conclusion,.ts-cand,.ts-notes){border-color:#eadbca!important;background:#fff!important;box-shadow:none!important}
body.bayee-student .res-actions button:not(.ghost),
body.bayee-student .ts-actions button:not(.ghost){border-color:var(--orange)!important;color:#fff!important;background:var(--orange)!important;box-shadow:none!important}
body.bayee-student :is(.res-actions button.ghost,.ts-actions button.ghost){border-color:#dfc6a7!important;color:var(--orange-dark)!important;background:#fffaf4!important;box-shadow:none!important}
body.bayee-student .ts-table th{background:#fff3e5!important;color:var(--navy)!important}
body.bayee-student .ts-table :is(th,td){border-color:#eadbca!important}
body.bayee-student .ts-score{color:var(--orange-dark)!important}

/* Login / register / saved score panel share the same calm workspace surface. */
body.bayee-student .modal-mask{background:rgba(31,42,56,.48)!important}
body.bayee-student .modal{
  border:1px solid #eadbca!important;
  border-radius:18px!important;
  background:#fffdf9!important;
  box-shadow:0 24px 64px rgba(31,42,56,.2)!important;
}
body.bayee-student .modal-close{color:var(--muted)!important}
body.bayee-student .mtab{background:#fff3e5!important;color:#667085!important;border-radius:9px!important}
body.bayee-student .mtab.active{background:var(--navy)!important;color:#fff!important}
body.bayee-student .auth-form label{color:var(--navy)!important}
body.bayee-student .scores-panel{background:#fffdf9!important;box-shadow:-16px 0 42px rgba(31,42,56,.16)!important}
body.bayee-student .sp-head{border-bottom-color:#eadbca!important;color:var(--navy)!important}
body.bayee-student .score-item{border-color:#eadbca!important;background:#fff!important}
body.bayee-student .score-item .si-paper{color:var(--navy)!important}
body.bayee-student .score-item .si-pct{color:var(--orange-dark)!important}
body.bayee-student .score-item .si-bar{background:#f3e7d8!important}
body.bayee-student .score-item .si-bar i{background:var(--orange)!important}
body.bayee-student .toast{background:var(--navy)!important;border-radius:999px!important}

/* Dynamic RE study tools are generated after the page loads.  Keep their
   original event hooks, but present every vocabulary, reader, and sentence
   surface as part of the same calm workspace. */
body.bayee-student .re-article-tools .art-tool[disabled],
body.bayee-student .re-article-tools .art-tool-pending{
  cursor:not-allowed!important;
  opacity:.62!important;
  color:#7a8795!important;
  border-color:#d9d3ca!important;
  background:#f5f2ed!important;
}
body.bayee-student .re-modal-overlay{
  background:rgba(31,42,56,.56)!important;
  padding:20px!important;
}
body.bayee-student .re-modal-overlay .re-modal{
  width:min(760px,100%)!important;
  max-height:min(88vh,860px)!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  padding:24px!important;
  border:1px solid #eadbca!important;
  border-top:4px solid var(--orange)!important;
  border-radius:18px!important;
  background:#fffdf9!important;
  box-shadow:0 24px 68px rgba(31,42,56,.28)!important;
  color:var(--ink)!important;
  font-family:var(--by-font)!important;
}
body.bayee-student .re-modal #reModalTitle,
body.bayee-student .re-modal h3{
  margin:0 38px 5px 0!important;
  color:var(--navy)!important;
  font-family:var(--by-font)!important;
  font-size:21px!important;
  font-weight:850!important;
  letter-spacing:-.25px!important;
}
body.bayee-student .re-modal .re-modal-sub{
  margin:0 36px 18px 0!important;
  color:var(--muted)!important;
  font-family:var(--by-font)!important;
  font-size:13px!important;
  line-height:1.65!important;
}
body.bayee-student .re-modal .re-modal-close{
  top:14px!important;
  right:15px!important;
  width:34px!important;
  height:34px!important;
  border:1px solid #dfc6a7!important;
  border-radius:50%!important;
  background:#fff7ee!important;
  color:var(--orange-dark)!important;
  font-family:var(--by-font)!important;
  box-shadow:none!important;
}
body.bayee-student .re-modal .re-modal-close:hover{background:var(--orange)!important;color:#fff!important}

body.bayee-student .re-modal :is(.re-audio-item,.re-audio-player){font-family:var(--by-font)!important}
body.bayee-student .re-modal .re-audio-item{
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  border-color:#eadbca!important;
  border-radius:14px!important;
  background:#fff!important;
}
body.bayee-student .re-modal .re-audio-player{background:#f8f2ea!important;border-color:#eadbca!important}
body.bayee-student .re-modal :is(.re-audio-item,.re-audio-player,.re-audio-actions){box-sizing:border-box!important;max-width:100%!important;min-width:0!important}
body.bayee-student .re-modal .re-audio-dl,
body.bayee-student .re-modal .re-audio-rate{font-family:var(--by-font)!important;color:var(--orange-dark)!important}
body.bayee-student .re-modal .re-audio-rate{border-color:#dfc6a7!important;background:#fffaf4!important}
body.bayee-student .re-modal .ap-more:hover{background:#eee6db!important}
body.bayee-student .re-modal .ap-menu{border-color:#dfc6a7!important;box-shadow:0 10px 28px rgba(31,42,56,.14)!important}
body.bayee-student .re-modal .ap-menu button{font-family:var(--by-font)!important;color:var(--navy)!important}
body.bayee-student .re-modal .ap-menu button:hover{background:#fff3e5!important;color:var(--orange-dark)!important}
body.bayee-student .re-modal .ap-menu button.sel{background:var(--orange)!important;color:#fff!important}

body.bayee-student .re-modal .rd-text{
  color:var(--ink)!important;
  font-family:var(--by-font)!important;
  font-size:16px!important;
  line-height:2!important;
}
body.bayee-student .re-modal :is(.rd-loading,.rd-tip,.vocab-inline-tip,.vocab-flip-hint){color:var(--muted)!important;font-family:var(--by-font)!important}
body.bayee-student .re-modal .vocab-tabs{gap:8px!important;margin:0 0 18px!important}
body.bayee-student .re-modal .vocab-tab{
  border-color:#dfc6a7!important;
  border-radius:999px!important;
  background:#fff8ef!important;
  color:var(--orange-dark)!important;
  font-family:var(--by-font)!important;
  font-weight:750!important;
}
body.bayee-student .re-modal .vocab-tab:hover{background:#fff1e1!important}
body.bayee-student .re-modal .vocab-tab.active{background:var(--orange)!important;border-color:var(--orange)!important;color:#fff!important}
body.bayee-student .re-modal .vocab-hl{background:#fff0d8!important;border-bottom-color:var(--orange)!important;color:var(--navy)!important}
body.bayee-student .re-modal .vocab-hl:hover{background:#ffe3bb!important}
body.bayee-student .vocab-tip{
  border-color:#dfc6a7!important;
  border-radius:14px!important;
  background:#fffdf9!important;
  box-shadow:0 14px 34px rgba(31,42,56,.18)!important;
  color:var(--ink)!important;
  font-family:var(--by-font)!important;
}

body.bayee-student .re-modal .vocab-flip{max-width:560px!important}
body.bayee-student .re-modal .vocab-face{
  border-color:#dfc6a7!important;
  border-radius:16px!important;
  color:var(--ink)!important;
  font-family:var(--by-font)!important;
  box-shadow:0 12px 28px rgba(31,42,56,.08)!important;
}
body.bayee-student .re-modal .vocab-front{background:#fff4e7!important}
body.bayee-student .re-modal .vocab-back{background:#fff!important}
body.bayee-student .re-modal .vf-head{font-family:var(--by-font)!important}
body.bayee-student .re-modal .vf-w{color:var(--navy)!important;font-family:var(--by-font)!important}
body.bayee-student .re-modal .vf-phon{color:#4d6f91!important}
body.bayee-student .re-modal .vf-pos{background:#eef2f5!important;color:#536577!important}
body.bayee-student .re-modal :is(.vocab-spk,.vocab-spk-pause){
  border-color:#dfc6a7!important;
  background:#fff7ee!important;
  color:var(--orange-dark)!important;
  box-shadow:none!important;
}
body.bayee-student .re-modal .vocab-spk:hover,
body.bayee-student .re-modal .vocab-spk.playing{background:var(--orange)!important;border-color:var(--orange)!important;color:#fff!important}
body.bayee-student .re-modal .vocab-spk-pause:hover{background:var(--navy)!important;border-color:var(--navy)!important;color:#fff!important}
body.bayee-student .re-modal .vocab-spk-pause.paused{background:var(--orange-dark)!important;border-color:var(--orange-dark)!important;color:#fff!important}
body.bayee-student .re-modal .vocab-flip-ctrls button{
  border-color:#dfc6a7!important;
  background:#fff!important;
  color:var(--navy)!important;
  font-family:var(--by-font)!important;
  font-weight:750!important;
}
body.bayee-student .re-modal .vocab-flip-ctrls button:hover{background:var(--orange)!important;border-color:var(--orange)!important;color:#fff!important}
body.bayee-student .re-modal .vocab-progress{color:var(--muted)!important;font-family:var(--by-font)!important}
body.bayee-student .re-modal :is(.vf-body,.st-answer){color:var(--ink)!important;font-family:var(--by-font)!important}
body.bayee-student .re-modal .vf-block{border-bottom-color:#eadbca!important}
body.bayee-student .re-modal .vf-label{color:var(--orange-dark)!important}
body.bayee-student .re-modal .vf-tag{background:var(--navy)!important}
body.bayee-student .re-modal .vf-note{color:var(--muted)!important}
body.bayee-student .re-modal .vf-exam-item{background:#f4f7f8!important;border-left-color:#627f98!important}
body.bayee-student .re-modal .vf-exam-type{color:#496b84!important}
body.bayee-student .re-modal .vocab-detail{border-color:#eadbca!important;border-radius:14px!important;background:#fff!important}
body.bayee-student .re-modal .vocab-st-card{
  border-color:#dfc6a7!important;
  border-style:dashed!important;
  background:#fff8ef!important;
  color:var(--ink)!important;
}
body.bayee-student .re-modal #stReveal{background:var(--orange)!important;border-color:var(--orange)!important;font-family:var(--by-font)!important}
body.bayee-student .re-modal #stReveal:hover{background:var(--orange-dark)!important}
body.bayee-student .re-modal .st-actions button{font-family:var(--by-font)!important;box-shadow:none!important}
body.bayee-student .re-modal #stKnown{background:#387b62!important}
body.bayee-student .re-modal #stUnknown{background:#a85545!important}

body.bayee-student .re-modal .sent-card{
  border-color:#eadbca!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
body.bayee-student .re-modal .sent-card:hover{border-color:#dfc6a7!important;box-shadow:0 8px 20px rgba(31,42,56,.08)!important}
body.bayee-student .re-modal .sent-face{padding-top:48px!important}
body.bayee-student .re-modal .sent-front{background:#fffdf9!important}
body.bayee-student .re-modal .sent-back{background:#f3f7f8!important}
body.bayee-student .re-modal .sent-zh{color:var(--ink)!important;font-family:var(--by-font)!important}
body.bayee-student .re-modal .sent-en{color:var(--navy)!important;font-family:var(--by-font)!important}
body.bayee-student .re-modal .sent-words-label,
body.bayee-student .re-modal .sent-flip-tip{color:var(--muted)!important}
body.bayee-student .re-modal .sent-chip{background:#fff0dc!important;border-color:#f0cfaa!important;color:var(--orange-dark)!important}
body.bayee-student .re-modal .sent-index{background:var(--navy)!important;box-shadow:none!important}

@media(max-width:600px){
  body.bayee-student .re-modal-overlay{padding:10px!important}
  body.bayee-student .re-modal-overlay .re-modal{max-height:92vh!important;padding:18px 16px!important;border-radius:16px!important}
  body.bayee-student .re-modal #reModalTitle{font-size:19px!important}
  body.bayee-student .re-modal .vocab-flip{height:330px!important}
  body.bayee-student .re-modal .vocab-flip-ctrls{gap:8px!important;flex-wrap:wrap;justify-content:center}
  body.bayee-student .re-modal .vocab-flip-ctrls button{padding:7px 12px!important}
  body.bayee-student .re-modal .rd-text{font-size:15px!important;line-height:1.9!important}
  body.bayee-student .re-modal .re-audio-player{
    display:grid!important;
    grid-template-columns:34px minmax(0,1fr) 32px!important;
    grid-template-areas:"play time more" "progress progress remain"!important;
    align-items:center!important;
    gap:8px 10px!important;
    padding:8px 10px!important;
    border-radius:14px!important;
  }
  body.bayee-student .re-modal .ap-play{grid-area:play!important}
  body.bayee-student .re-modal .ap-time{grid-area:time!important;min-width:0!important;font-size:11px!important;white-space:nowrap!important}
  body.bayee-student .re-modal .ap-more{grid-area:more!important}
  body.bayee-student .re-modal .ap-progress{grid-area:progress!important;min-width:0!important;width:100%!important}
  body.bayee-student .re-modal .ap-remain{grid-area:remain!important;min-width:0!important;font-size:11px!important}
}

/* The existing focus state still powers RE and assessment links; only its presentation changes. */
body.bayee-student.focus-mode{padding-left:0!important}
body.bayee-student.focus-mode .by-student-viewbar{display:none!important}
body.bayee-student.focus-mode #view-select > .by-student-module.focus-target{display:block!important}
body.bayee-student.focus-mode .focus-back{
  top:98px!important;
  right:max(20px,calc((100vw - 1120px)/2))!important;
  z-index:80!important;
  border:1px solid #dfc6a7!important;
  border-radius:999px!important;
  background:#fffdf9!important;
  color:var(--navy)!important;
  box-shadow:0 8px 24px rgba(31,42,56,.12)!important;
}

@media(max-width:900px){
  body.bayee-student .by-student-dashboard{grid-template-columns:1fr;gap:24px}
  body.bayee-student .by-student-tools{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:600px){
  body.bayee-student .by-student-main,
  body.bayee-student .by-student-viewbar,
  body.bayee-student .by-student-auth{width:calc(100% - 32px)}
  body.bayee-student .by-student-main{padding-top:18px!important;padding-bottom:42px!important}
  body.bayee-student .by-student-auth{min-height:46px;padding:8px 0}
  body.bayee-student .auth-left{display:none}
  body.bayee-student .auth-right{margin-left:auto}
  body.bayee-student .by-student-dashboard{padding:26px 21px;border-radius:18px}
  body.bayee-student .by-student-dashboard h1{font-size:32px;letter-spacing:-.8px}
  body.bayee-student .by-student-lead{font-size:14px;line-height:1.75}
  body.bayee-student .by-student-actions{margin-top:22px}
  body.bayee-student .by-student-actions :is(a,button){width:100%;padding-inline:14px}
  body.bayee-student .by-student-text-action{width:auto!important;padding-left:0!important;justify-content:flex-start!important}
  body.bayee-student .by-student-route-step{min-height:82px;padding:13px 15px}
  body.bayee-student .by-student-tools{grid-template-columns:1fr;gap:10px;margin-top:12px}
  body.bayee-student .by-student-tool-card{min-height:115px;padding:17px}
  body.bayee-student .test-module.by-student-module{padding:21px 16px!important;border-radius:18px!important}
  body.bayee-student .test-module.by-student-module .teacher-card,
  body.bayee-student .test-module.by-student-module .panel{padding:15px!important}
  body.bayee-student .state-enter .re-enter-view{min-height:0!important;padding:18px!important}
  body.bayee-student .pill-primary{width:100%!important}
  body.bayee-student .open-class-pill{width:100%}
  body.bayee-student.focus-mode .focus-back{top:auto!important;right:16px!important;bottom:16px!important}
}

@media print{
  body.bayee-student .by-student-auth,
  body.bayee-student .by-student-dashboard,
  body.bayee-student .by-student-tools,
  body.bayee-student .by-student-viewbar{display:none!important}
}
