/* Strict three-color English Studio design
   WHITE #FFFFFF | INK #202020 | LINE #E8E8E8.
   Last-loaded stylesheet intentionally suppresses all old green/gradient declarations.
   Opacity remains available for hover/focus states, not an additional palette hue.
*/
:root{
 --canvas:#FFFFFF;--paper:#FFFFFF;--ink:#202020;--ink2:#202020;--muted:#202020;
 --line:#E8E8E8;--green:#202020;--green-dark:#202020;--pale:#E8E8E8;
 --accent:#E8E8E8;--error:#202020;--success:#202020;--soft:#FFFFFF;--shadow:none;
}
html,body{background:#FFFFFF!important;color:#202020!important}
body *:not(svg):not(path){
 background-image:none!important;
 text-shadow:none!important;
 box-shadow:none!important;
 border-color:#E8E8E8!important;
 color:#202020!important;
}
body *:not(svg):not(path)::before,
body *:not(svg):not(path)::after{border-color:#E8E8E8!important}
body .app-shell{background:#FFFFFF!important}
body .app-shell :is(.sidebar,.topbar,.main-shell,.content,.surface,.workspace,.card,.metric,.partner-card,.audio-panel,.transcript-card,.imm-workspace,.imm-study,.imm-main-controls,.imm-intro,.imm-chapter,.imm-track,.imm-mini-bar,.lesson-card,.mini-card,.rail-card,.result-block,.subtle-card,.hint,.sidebar-tip,.choice-option,.speaking-timer,.writing-editor,.imm-step,.imm-notice,.device-note,.listening-immersion-entry,.reading-paper,.guide){
  background:#FFFFFF!important;
  border-color:#E8E8E8!important;
}
body .app-shell :is(.segment,.imm-mode-tabs,.imm-reviews label,.part-label,.time-display,.imm-hint,.imm-rounds,.imm-status,.range-label,.steps-line,.imm-legacy>summary,.imm-line,.chapter-status,.imm-footnote){
  background:#E8E8E8!important;
}
body .app-shell :is(.module-link.active,.mobile-nav .active,.module-nav .active,.segment .selected,.imm-mode-tabs .selected,.imm-chapter.is-current,.imm-track.is-current,.choice-option:has(input:checked),.lesson-card.selected,.imm-legacy[open]>summary,.selected:not(.button-primary)){
  background:#E8E8E8!important;
  border-color:#202020!important;
}
body .app-shell :is(.button-primary,.imm-play,#immPlay,#immMiniPlay,.brand-logo,.imm-line i,.imm-chapter .imm-line i,button.is-playing,.button-dark,.imm-progress::-webkit-slider-thumb){
  background:#202020!important;
  border-color:#202020!important;
  color:#FFFFFF!important;
}
body .app-shell :is(.button-primary,.imm-play,#immPlay,#immMiniPlay,.brand-logo,.button-dark) :is(span,strong,small,b,i){
 color:#FFFFFF!important;
}
body .app-shell :is(.imm-intro,.imm-intro h2,.imm-intro p,.imm-intro .eyebrow,.imm-count){
 background:#FFFFFF!important;color:#202020!important;border-color:#E8E8E8!important;
}
body .app-shell :is(.imm-count,.imm-titleline small,.imm-track small,.imm-episodes small,.imm-chapter small,.imm-chapter .imm-dur){
 color:#202020!important;
}
body .app-shell :is(.button-outline,.button-soft,.button-text,.icon-button,.imm-buttons button:not(.imm-play),.imm-ab button,.imm-mini-bar button:not(#immMiniPlay),.imm-mode-tabs button){
 background:#FFFFFF!important;color:#202020!important;border-color:#E8E8E8!important;
}
body .app-shell :is(.button-outline,.button-soft,.button-text,.icon-button,.imm-buttons button:not(.imm-play),.imm-ab button,.imm-mini-bar button:not(#immMiniPlay)):hover{
 background:#E8E8E8!important;color:#202020!important;
}
body .app-shell :is(.button-outline,.button-soft,.button-text,.icon-button,.imm-buttons button:not(.imm-play),.imm-ab button)[aria-pressed="true"]{
 background:#202020!important;color:#FFFFFF!important;border-color:#202020!important;
}
body .app-shell :is(button,input,textarea,select):focus-visible{
 outline:2px solid #202020!important;outline-offset:3px!important;
}
body .app-shell input[type="range"],body .app-shell input[type="checkbox"],body .app-shell input[type="radio"],body .app-shell progress{
 accent-color:#202020!important;
}
body .app-shell :is(input,textarea,select){
 background:#FFFFFF!important;color:#202020!important;border-color:#E8E8E8!important;
}
body .app-shell :is(.imm-intro,.imm-main-controls,.imm-episodes,.imm-workspace,.imm-study,.imm-chapter,.imm-track){
 border-width:1px!important;
}
body .app-shell :is(.imm-notice,.toast,.hint,.notice){
 background:#E8E8E8!important;color:#202020!important;border-color:#E8E8E8!important;
}
body .app-shell :is(.eyebrow-dot,.divider-dot,.brand-dot,.nav-icon,.imm-part-label,.imm-index,.imm-rounds,.imm-count){
 color:#202020!important;background:#E8E8E8!important;
}
body .app-shell .imm-line{background:#E8E8E8!important}
body .app-shell .imm-line i{background:#202020!important}
body .app-shell .imm-source{border-top-color:#E8E8E8!important}
body .app-shell .writing-prompt{background:#FFFFFF!important}
body .app-shell .guide-bottom{background:#E8E8E8!important}
body .app-shell :is(.imm-mode-tabs,.segment){border:1px solid #E8E8E8!important}
body .app-shell :is(.imm-legacy,.imm-legacy>summary){color:#202020!important;border-color:#E8E8E8!important}
/* The persistent player is OUTSIDE app-shell; style it explicitly, including hover states. */
#immMiniBar{background:#FFFFFF!important;border-color:#E8E8E8!important;color:#202020!important;box-shadow:0 2px 12px #20202020!important}
#immMiniBar *{color:#202020!important;border-color:#E8E8E8!important;background-image:none!important}
#immMiniBar>button:not(#immMiniPlay){background:#FFFFFF!important;color:#202020!important}
#immMiniBar>#immMiniPlay{background:#202020!important;border-color:#202020!important;color:#FFFFFF!important}
#immMiniTitle,#immMiniSubtitle{color:#202020!important}
/* The text reader uses only the same three tokens. */
.imm-sync-reader,.imm-sync-lines,.imm-sync-toolbar{background:#FFFFFF!important;border-color:#E8E8E8!important}
.imm-sync-line{background:#FFFFFF!important;color:#202020!important;border-color:#E8E8E8!important}
.imm-sync-line.current{background:#E8E8E8!important;color:#202020!important;border-left:3px solid #202020!important}
.imm-sync-line.approximate{border-left:3px dashed #E8E8E8!important}
.imm-sync-reader button{color:#202020!important;background:#FFFFFF!important;border-color:#E8E8E8!important}
.imm-sync-reader button.selected{background:#202020!important;color:#FFFFFF!important}
/* Horizontal snap carousel keeps the player close to the top on mobile. */
@media(max-width:600px){
 .imm-card-list{
   display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;
   overflow-y:hidden!important;scroll-snap-type:x mandatory!important;
   -webkit-overflow-scrolling:touch;padding:0 0 9px;gap:8px!important;
 }
 .imm-card-list .imm-chapter{
   flex:0 0 min(74vw,245px)!important;min-width:0!important;min-height:126px!important;
   scroll-snap-align:start!important;
 }
}
@media(max-width:800px){
 #immMiniBar{left:8px!important;right:8px!important;bottom:calc(env(safe-area-inset-bottom,0px) + 8px)!important}
 #immMiniBar>button{min-width:44px!important;min-height:44px!important;flex:0 0 44px!important;border-radius:9px!important}
 #immMiniOpen{min-width:0!important}
 .imm-mini-text{flex:1;min-width:0}
}
@media(max-width:390px){
 #immMiniBar{gap:3px!important;padding:6px!important}
 #immMiniBar>button{min-width:42px!important;flex-basis:42px!important}
 #immMiniTitle{font-size:11px!important}
 #immMiniSubtitle{font-size:9px!important}
}
/* Site family links: existing English Studio is part of Sisyphus4AI. */
.site-family-desktop{display:flex;align-items:center;gap:12px;white-space:nowrap}
.site-family-desktop a,.site-family-desktop span{font-size:12px;text-decoration:none;color:#202020!important}
.site-family-desktop a:hover,.site-family-mobile a:hover{text-decoration:underline}
.site-family-desktop span{background:#E8E8E8!important;border-radius:6px;padding:5px 8px}
.site-family-mobile{display:none}
.site-family-mobile a,.site-family-mobile span,.site-family-mobile strong{color:#202020!important}
@media(max-width:800px){
 #siteFamilyDesktop{display:none!important}
 #siteFamilyMobile{display:flex!important;align-items:center;gap:10px;flex-wrap:wrap;
   padding:10px 18px;background:#FFFFFF!important;border-bottom:1px solid #E8E8E8!important;
   font-size:12px;min-height:42px}
 #siteFamilyMobile a{text-decoration:none;font-weight:650}
 #siteFamilyMobile strong{background:#E8E8E8!important;padding:4px 7px;border-radius:5px}
}

