@font-face{
  font-family:"U Moe";
  src:url("fonts/UMoe-Regular.ttf") format("truetype");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Walone";
  src:url("fonts/Walone-Thin.ttf") format("truetype");
  font-weight:300;
  font-style:normal;
  font-display:swap;
  unicode-range:U+1000-109F,U+AA60-AA7F,U+A9E0-A9FF,U+11600-1165F;
}
@font-face{
  font-family:"Walone";
  src:url("fonts/Walone-Regular.ttf") format("truetype");
  font-weight:400;
  font-style:normal;
  font-display:swap;
  unicode-range:U+1000-109F,U+AA60-AA7F,U+A9E0-A9FF,U+11600-1165F;
}
@font-face{
  font-family:"Walone";
  src:url("fonts/Walone-Bold.ttf") format("truetype");
  font-weight:700;
  font-style:normal;
  font-display:swap;
  unicode-range:U+1000-109F,U+AA60-AA7F,U+A9E0-A9FF,U+11600-1165F;
}
@font-face{
  font-family:"MM Modern";
  src:url("fonts/MM-Modern.ttf") format("truetype");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"MM Black";
  src:url("fonts/MM-Black.ttf") format("truetype");
  font-weight:400;
  font-style:normal;
  font-display:swap;
  unicode-range:U+1000-109F,U+AA60-AA7F,U+A9E0-A9FF,U+11600-1165F;
}
@font-face{
  font-family:"MM Press";
  src:url("fonts/MM-Press.ttf") format("truetype");
  font-weight:400;
  font-style:normal;
  font-display:swap;
  unicode-range:U+1000-109F,U+AA60-AA7F,U+A9E0-A9FF,U+11600-1165F;
}
@font-face{
  font-family:"MM Typewriter";
  src:url("fonts/MM-Typewriter.ttf") format("truetype");
  font-weight:400;
  font-style:normal;
  font-display:swap;
  unicode-range:U+1000-109F,U+AA60-AA7F,U+A9E0-A9FF,U+11600-1165F;
}
@font-face{
  font-family:"KaTeX Typewriter";
  src:url("fonts/KaTeX-Typewriter.woff2") format("woff2"),
      url("fonts/KaTeX-Typewriter.woff") format("woff"),
      url("fonts/KaTeX-Typewriter.ttf") format("truetype");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}
body.mc-site{
  --font-umoe:"U Moe","Walone","Myanmar Text",sans-serif;
  --font-walone:Arial,"Walone","Myanmar Text","Padauk",sans-serif;
  --font-modern:"MM Modern","Walone","Myanmar Text",sans-serif;
  --font-black:"MM Black","Walone","Myanmar Text",sans-serif;
  --font-press:"MM Press","Walone","Myanmar Text",sans-serif;
  --font-type:"KaTeX Typewriter","MM Typewriter",Consolas,monospace;
  margin:0;
  font-family:Arial,"Walone","Myanmar Text","Padauk",sans-serif;

  background:
    radial-gradient(900px 280px at 0% 0%, rgba(20,168,154,.18), transparent 55%),
    #f4f1fb;
  color:#1c1408;
}
body.mc-site header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:nowrap;
  padding:12px 3%;
  color:#f8f1de;
  background:linear-gradient(135deg,#1B1464,#3D2E8F);
  border-bottom:2px solid #E0B15A;
  position:sticky;
  top:0;
  z-index:40;
  gap:12px;
}
body.mc-site .brand{
  display:flex;
  gap:10px;
  align-items:center;
  color:inherit;
  text-decoration:none;
}
body.mc-site .logo{
  width:48px;
  height:48px;
  border:2px solid #E0B15A;
  border-radius:12px;
  overflow:hidden;
  flex:none;
  display:grid;
  background:#fff;
}
body.mc-site .logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
body.mc-site .brand small{display:block;color:#dce5f2;font-family:Arial,sans-serif;font-size:12px}
body.mc-site .wrap{width:min(1180px,92%);margin:auto}
body.mc-site #siteNav .is-current{
  background:linear-gradient(180deg,#F6D78A,#E0B15A);
  color:#1B1464;
  border-color:#F6D78A;
  font-weight:bold;
}
body.mc-site .brand b,
body.mc-site header h1{
  font-family:Georgia,serif;
}
body.mc-site header nav,
body.mc-site #siteNav{
  display:flex;
  gap:6px;
  align-items:center;
  flex-wrap:nowrap;
  min-width:0;
}
body.mc-site header nav button,
body.mc-site #siteNav button,
body.mc-site #siteNav .back-btn,
body.mc-site .nav-drop summary{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(245,215,126,.45);
  color:#f8f1de;
  border-radius:8px;
  padding:7px 10px;
  font-size:13px;
  white-space:nowrap;
}
body.mc-site .nav-drop{position:relative}
body.mc-site .nav-drop summary{list-style:none;cursor:pointer}
body.mc-site .nav-drop summary::-webkit-details-marker{display:none}
body.mc-site .nav-drop summary:after{content:" ▾"}
body.mc-site .nav-drop-menu{
  position:absolute;
  top:calc(100% + 6px);
  right:0;
  left:auto;
  z-index:50;
  min-width:16rem;
  max-height:min(70vh,420px);
  overflow:auto;
  display:grid;
  gap:2px;
  padding:6px;
  background:#fffdf8;
  color:#1B1464;
  border:1px solid #e6d3a4;
  border-radius:12px;
  box-shadow:0 16px 36px rgba(16,14,34,.28);
}
body.mc-site .nav-drop-menu a{
  color:#1B1464;
  text-decoration:none;
  border-radius:8px;
  padding:8px 10px;
  font-size:13px;
  white-space:nowrap;
}
body.mc-site .nav-drop-menu a:hover{background:#f3ead7}
body.mc-site .brand{min-width:0}
body.mc-site .brand b,
body.mc-site .brand small{
  display:block;
  white-space:normal;
  line-height:1.2;
}
body.mc-site .brand b{font-size:16px}
body.mc-site #accountButton{
  border-color:#F6D78A;
  color:#F6D78A;
  font-weight:bold;
  max-width:9rem;
  overflow:hidden;
  text-overflow:ellipsis;
}
body.mc-site #logoutButton,
body.mc-site .logout-btn{
  border-color:#e7b4b4;
  color:#ffe4e4;
  background:rgba(120,24,24,.35);
}
body.mc-site .nav-toggle{
  display:none;
  width:42px;
  height:42px;
  margin-left:auto;
  padding:0;
  border:1px solid rgba(245,215,126,.75);
  border-radius:8px;
  background:transparent;
  place-items:center;
  align-content:center;
  gap:5px;
}
body.mc-site .nav-toggle span{
  display:block;
  width:18px;
  height:2px;
  background:#F6D78A;
  border-radius:2px;
}
body.mc-site .card,
body.mc-site .panel,
body.mc-site .box{
  background:linear-gradient(180deg,#fffdf8,#f8f1e3);
  border:1px solid #e6d3a4;
  border-top:3px solid #E0B15A;
  box-shadow:0 12px 28px rgba(7,26,58,.08);
}
body.mc-site .head h2,
body.mc-site .card h3,
body.mc-site .panel h2,
body.mc-site .panel h3{
  font-family:Georgia,serif;
  color:#1B1464;
}
body.mc-site .section{scroll-margin-top:78px}
body.mc-site .home-hero{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(280px,.9fr);
  gap:36px;
  align-items:center;
  padding:28px 0 8px;
}
body.mc-site .home-hero-copy{
  max-width:none;
  margin:0;
  text-align:left;
}
body.mc-site .home-hero-copy h1{
  font-size:42px;
  margin:0 0 12px;
}
body.mc-site .home-hero-copy p{
  margin:0 0 18px;
  max-width:34rem;
}
body.mc-site .home-hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
body.mc-site .home-ghost{
  background:#fff;
  color:#1B1464;
  border:1px solid #d9c89a;
  border-radius:8px;
  padding:12px 18px;
  font-weight:bold;
}
body.mc-site .home-hero-photo{
  margin:0;
}
body.mc-site .home-hero-photo img{
  display:block;
  width:100%;
  height:340px;
  object-fit:cover;
  object-position:center 30%;
  border-radius:22px;
  box-shadow:0 16px 40px #1B146426;
}
body.mc-site .home-hero .home-points{
  justify-content:flex-start;
}
body.mc-site .home-banner{
  position:relative;
  display:grid;
  place-items:center;
  min-height:340px;
  margin:8px 0 10px;
  overflow:hidden;
}
body.mc-site .home-banner img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 32%;
}
body.mc-site .home-banner:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(27,20,100,.82),rgba(16,14,34,.45) 70%);
}
body.mc-site .home-banner-copy{
  position:relative;
  z-index:1;
  width:min(760px,88%);
  margin:0;
  padding:48px 0;
  text-align:center;
}
body.mc-site .home-banner-copy .eyebrow{color:#F6D78A}
body.mc-site .home-banner-copy h2{
  margin:0 0 10px;
  font:42px/1.2 Georgia,serif;
  color:#F6D78A;
}
body.mc-site .home-banner-copy p{
  margin:0 auto 18px;
  max-width:38rem;
  color:#f4efe4;
  font:18px/1.7 Arial,sans-serif;
}
html[data-theme="dark"] body.mc-site .home-banner-copy h2,
html[data-theme="dark"] body.mc-site .home-banner-copy p{
  color:#F6D78A;
}
html[data-theme="dark"] body.mc-site .home-banner-copy p{color:#f4efe4}
body.mc-site .reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .7s ease, transform .75s cubic-bezier(.22,.8,.24,1);
  transition-delay:var(--d, 0ms);
}
body.mc-site .reveal.reveal-left{transform:translateX(-32px)}
body.mc-site .reveal.reveal-right{transform:translateX(32px)}
body.mc-site .reveal.is-in{opacity:1;transform:none}
body.mc-site .home-hero-photo.is-in img{animation:mc-float 6.5s ease-in-out 1s infinite}
@keyframes mc-float{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-8px)}
}
@media (prefers-reduced-motion:reduce){
  body.mc-site .reveal{opacity:1;transform:none;transition:none}
  body.mc-site .home-hero-photo.is-in img{animation:none}
}
body.mc-site .hero{
  height:auto;
  background:#1B1464;
  line-height:0;
}
body.mc-site .hero img{
  position:relative;
  inset:auto;
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
}
body.mc-site .course-hero{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  min-height:360px;
  padding:48px 0;
  line-height:normal;
}
body.mc-site .course-hero .course-hero-photo{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 32%;
}
body.mc-site .course-hero:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(27,20,100,.84),rgba(16,14,34,.48) 74%);
}
body.mc-site .course-hero .wrap{
  position:relative;
  z-index:1;
}
body.mc-site .welcome-copy{
  max-width:760px;
  margin:0 auto 36px;
  text-align:center;
}
body.mc-site .keep{white-space:nowrap}
body.mc-site .welcome-copy h1{
  margin:0 0 12px;
  font:40px/1.25 Georgia,serif;
  color:#1B1464;
}
body.mc-site .welcome-copy p{
  margin:0 auto 22px;
  max-width:760px;
  color:#536078;
  font:17px/1.9 var(--font-walone);
}
body.mc-site .welcome-copy .primary{
  font-family:var(--font-walone);
  font-size:16px;
  padding:12px 22px;
}
body.mc-site .home-hero .welcome-copy{
  max-width:none;
  margin:0;
  text-align:left;
}
body.mc-site .home-hero .welcome-copy h1{
  margin:0 0 12px;
  font-size:40px;
  text-align:left;
}
body.mc-site .home-hero .welcome-copy p{
  margin:0 0 18px;
  max-width:34rem;
  text-align:left;
}
body.mc-site .eyebrow{
  margin:0 0 8px;
  color:#3D2E8F;
  font:700 13px/1.4 Arial,sans-serif;
  letter-spacing:.06em;
  text-transform:uppercase;
}
body.mc-site .home-points{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  margin-top:18px;
}
body.mc-site .home-points span{
  border:1px solid #e4d7b4;
  background:#fff;
  color:#1B1464;
  border-radius:99px;
  padding:6px 10px;
  font:13px/1.3 Arial,sans-serif;
}
body.mc-site .home-block{
  max-width:980px;
  margin:42px auto 0;
  text-align:center;
}
body.mc-site .home-block h2{
  margin:0 0 8px;
  font:30px/1.3 Georgia,serif;
  color:#1B1464;
}
body.mc-site .home-block > p{
  margin:0 auto;
  max-width:720px;
  color:#536078;
  font:17px/1.8 Arial,sans-serif;
}
body.mc-site .home-note{
  padding:22px;
  text-align:left;
}
body.mc-site #home-intro .home-note h3{
  min-height:0;
  justify-content:flex-start;
  font-family:Georgia,serif;
  font-size:22px;
}
body.mc-site #home-intro .home-note p{
  font-family:Arial,sans-serif;
  min-height:0;
}
body.mc-site .home-steps{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin:18px 0 0;
  padding:0;
  list-style:none;
  text-align:left;
}
body.mc-site .home-steps li{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
}
body.mc-site .home-steps b{
  display:block;
  margin-bottom:8px;
  color:#3D2E8F;
  font:700 12px/1 Arial,sans-serif;
}
body.mc-site .home-steps strong{
  display:block;
  margin-bottom:6px;
  color:#1B1464;
  font:700 16px/1.3 Georgia,serif;
}
body.mc-site .home-steps span{
  display:block;
  color:#536078;
  font:14px/1.6 Arial,sans-serif;
}
body.mc-site #home-intro .cards{margin-top:40px}
body.mc-site #home-intro .card{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  padding:0 22px 30px;
  overflow:hidden;
}
body.mc-site #home-intro .card-photo,
body.mc-site #courses .card-photo{
  display:block;
  width:calc(100% + 44px);
  height:168px;
  margin:0 -22px 18px;
  object-fit:cover;
  object-position:center 40%;
}
body.mc-site #courses .card{
  padding:0 21px 21px;
  overflow:hidden;
}
body.mc-site #courses .card-photo{
  width:calc(100% + 42px);
  height:150px;
  margin:0 -21px 16px;
  border-radius:0;
}
body.mc-site .brand small a{
  color:#F6D78A;
  text-decoration:none;
}
body.mc-site .brand small a:hover{text-decoration:underline}
body.mc-site footer a{
  color:#F6D78A;
  text-decoration:none;
}
body.mc-site footer a:hover{text-decoration:underline}
body.mc-site #home-intro .card h3,
body.mc-site #home-intro .card p{
  font-family:var(--font-umoe);
  font-weight:400;
  width:100%;
}
body.mc-site #home-intro .card h3{
  min-height:2.9em;
  margin:0 0 12px;
  font-size:24px;
  line-height:1.45;
  display:flex;
  align-items:center;
  justify-content:center;
}
body.mc-site #home-intro .card .keep,
body.mc-site #courses .card .keep{
  white-space:normal;
}
body.mc-site #home-intro .card p{
  margin:0;
  flex:1;
  min-height:3.8em;
  font-size:16px;
  line-height:1.9;
}
body.mc-site #courses .head{
  display:block;
  max-width:760px;
  margin:0 auto 28px;
  text-align:center;
}
body.mc-site #courses .head h2{
  font:40px/1.45 var(--font-umoe);
  font-weight:400;
}
body.mc-site #courses .head p{
  margin:10px auto 0;
  max-width:760px;
  color:#536078;
  font:17px/1.9 var(--font-walone);
}
body.mc-site #courses .search{
  display:block;
  width:min(420px,100%);
  margin:16px auto 0;
}
body.mc-site #courses .search[hidden]{display:none}
body.mc-site #courses .card{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
body.mc-site #courses .card .icon{margin:0 auto 8px}
body.mc-site #courses .course-code{
  margin:0 0 10px;
  color:#8a5a12;
  font:14px/1.4 Georgia,serif;
}
body.mc-site #courses .card h3,
body.mc-site #courses .card p,
body.mc-site #courses .course-note{
  font-family:var(--font-umoe);
  font-weight:400;
}
body.mc-site #courses .card h3{margin-bottom:12px;font-size:24px;line-height:1.45}
body.mc-site #courses .card p,
body.mc-site #courses .course-note{font-size:16px;line-height:1.9}
body.mc-site #courses .course-code{font:14px/1.4 Georgia,serif}
body.mc-site #courses .card h3{
  min-height:2.9em;
  display:flex;
  align-items:center;
  justify-content:center;
}
body.mc-site #courses .card .blurb{
  flex:1;
  width:100%;
  margin:0;
  min-height:3.8em;
}
body.mc-site #courses .card .tags{
  width:100%;
  min-height:32px;
  margin:14px 0 0;
  justify-content:center;
}
body.mc-site #courses .card .primary{
  font-family:Arial,sans-serif;
  min-width:132px;
  margin-top:18px;
}
body.mc-site #courses .course-note{
  grid-column:1 / -1;
  margin:0;
  text-align:center;
  color:#536078;
}
body.mc-site .latex-code,
body.mc-site textarea{
  font-family:var(--font-type);
}
body.mc-site .primary{
  background:linear-gradient(180deg,#F6D78A,#E0B15A);
  color:#1B1464;
  text-shadow:none;
  border:0;
  font-weight:bold;
}
body.mc-site .search,
body.mc-site input,
body.mc-site textarea,
body.mc-site select{
  border-color:#e6d3a4;
  background:#fffdf8;
}
body.mc-site footer{
  background:#1B1464;
  border-top:2px solid #E0B15A;
  color:#dce5f2;
  text-align:center;
  padding:25px;
}
body.mc-site footer b{color:#F6D78A}
body.mc-site .modal{z-index:60}
body.mc-site .back-btn{color:#1B1464}

.profile-cover{
  height:240px;
  background:#1B1464 center/cover no-repeat;
  position:relative;
}
.profile-cover:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(7,26,58,.15),rgba(7,26,58,.72));
}
.profile-wrap{width:min(1040px,92%);margin:-78px auto 48px;position:relative;z-index:1}
.identity{
  display:flex;
  gap:22px;
  align-items:flex-end;
  padding:22px 26px 20px;
  margin-bottom:18px;
}
.avatar{
  width:128px;
  height:128px;
  border-radius:50%;
  border:4px solid #F6D78A;
  background:#1B1464;
  color:#F6D78A;
  display:grid;
  place-items:center;
  font:42px Georgia,serif;
  overflow:hidden;
  flex:none;
  margin-top:-78px;
  box-shadow:0 8px 24px rgba(7,26,58,.25);
}
.avatar img{width:100%;height:100%;object-fit:cover}
.identity h1{margin:0 0 6px;font:34px Georgia,serif;color:#1B1464}
.identity .headline{margin:0;font-size:18px;color:#3d3424}
.identity .meta{margin:8px 0 0;color:#6d6252}
.identity .actions{margin-left:auto}
.profile-grid{display:grid;grid-template-columns:1.35fr .85fr;gap:17px}
.dash-continue{display:flex;justify-content:space-between;gap:12px;align-items:center;padding-bottom:12px;margin-bottom:8px;border-bottom:1px solid #efe4cc}
.dash-continue p{margin:4px 0 0;color:#6d6252}
.icon svg,.lesson-icon svg{display:block}
.progress-track{height:10px;background:#efe4cc;border-radius:99px;overflow:hidden;margin:12px 0}
.progress-track span{display:block;height:100%;background:linear-gradient(90deg,#E0B15A,#F6D78A)}
.progress-list{list-style:none;margin:12px 0 0;padding:0;max-height:280px;overflow:auto}
.progress-list li{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #efe4cc}
.progress-list button{background:transparent;border:0;color:#1B1464;text-align:left;padding:0;font-weight:bold}
.announce{padding:12px 0;border-bottom:1px solid #efe4cc}
.announce h3{margin:0 0 4px;font:20px Georgia,serif}
.announce small{color:#6d6252}
.edit-form{display:grid;gap:10px}
.edit-form[hidden]{display:none !important}
.auth-modal{display:none;position:fixed;inset:0;background:rgba(7,26,58,.55);z-index:70;align-items:center;justify-content:center;padding:20px}
.auth-modal.show{display:flex}
.auth-card,.auth-card *{box-sizing:border-box}
.auth-card{width:min(440px,100%);max-height:min(92vh,720px);overflow:auto;border-radius:16px;padding:22px 22px 18px;background:linear-gradient(180deg,#fffdf8,#f8f1e3);border:1px solid #e6d3a4;border-top:3px solid #E0B15A}
.auth-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.auth-card h2{margin:0;font:28px Georgia,serif;color:#1B1464}
.auth-card .close{float:none;flex:none}
.auth-card p{margin:8px 0 14px;color:#6d6252;line-height:1.6}
.google-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;background:#fff;color:#1c1408;border:1px solid #d9c79a;border-radius:8px;padding:11px 14px;font-weight:bold}
.auth-divider{display:flex;align-items:center;gap:10px;color:#8a7b66;margin:14px 0;font-size:13px}
.auth-divider:before,.auth-divider:after{content:"";height:1px;background:#e6d3a4;flex:1}
.auth-form{display:grid;gap:10px}
.auth-form label{display:grid;gap:5px;font-size:13px;color:#6d6252}
.auth-form input,.auth-form select,.auth-form textarea{width:100%;max-width:100%;padding:10px 12px;border:1px solid #e6d3a4;border-radius:8px;background:#fffdf8;font:inherit}
.auth-form textarea{min-height:72px;resize:vertical}
.auth-form .primary{width:100%;padding:12px 16px}
.pwd-wrap{display:flex;gap:6px}
.pwd-wrap input{flex:1;min-width:0}
.pwd-toggle{border:1px solid #e6d3a4;background:#fff;color:#1B1464;border-radius:8px;padding:0 12px;flex:none}
#googleAuthButton[hidden],#authDivider[hidden]{display:none !important}
.auth-links{display:flex;justify-content:space-between;gap:8px;font-size:13px}
.auth-links button,.auth-switch{background:none;border:0;color:#8a5a12;padding:0;text-decoration:underline}
.auth-status{min-height:1.2em;color:#8a2b2b;font-size:14px}
.auth-panel[hidden]{display:none !important}
.edit-form label{font-size:13px;color:#6d6252}
.edit-form input,.edit-form textarea{width:100%;padding:10px 12px;border-radius:8px}
.badge-gold{display:inline-block;background:#1B1464;color:#F6D78A;border-radius:99px;padding:4px 10px;font-size:12px;margin-right:6px}

@media(max-width:800px){
  body.mc-site header{flex-direction:row;flex-wrap:wrap;align-items:center}
  body.mc-site .nav-toggle{display:grid}
  body.mc-site header nav,
  body.mc-site #siteNav{display:none;flex-basis:100%;flex-direction:column;align-items:stretch}
  body.mc-site header nav.is-open,
  body.mc-site #siteNav.is-open{display:flex}
  body.mc-site header nav button,
  body.mc-site #siteNav button,
  body.mc-site #siteNav .back-btn,
  body.mc-site .nav-drop,
  body.mc-site .nav-drop summary{width:100%;text-align:left}
  body.mc-site .nav-drop-menu{position:static;min-width:0;width:100%}
  body.mc-site .welcome-copy h1,
  body.mc-site #courses .head h2{font-size:30px}
  body.mc-site .cards,
  body.mc-site .home-steps,
  body.mc-site .home-hero{grid-template-columns:1fr}
  body.mc-site .home-hero-copy,
  body.mc-site .home-hero-copy h1{text-align:left}
  body.mc-site .home-hero-photo img{height:220px}
  body.mc-site .home-banner{min-height:260px}
  body.mc-site .home-banner-copy h2{font-size:30px}
  body.mc-site .course-hero{min-height:280px;padding:32px 0}
  body.mc-site .grid2,
  body.mc-site .editor,
  .profile-grid,
  .identity{grid-template-columns:1fr;display:grid}
  .identity{align-items:start}
  .identity .actions{margin-left:0}
  .dash-continue{align-items:stretch;flex-direction:column}
  .avatar{width:96px;height:96px;font-size:32px;margin-top:-58px}
  body.mc-site .roles{grid-template-columns:1fr}
  .profile-cover{height:180px}
  .profile-wrap{margin-top:-56px}
  .auth-modal{padding:10px;align-items:flex-end}
  .auth-card{width:100%;max-height:92vh;border-radius:16px 16px 12px 12px;padding:16px 14px 14px}
  .auth-card h2{font-size:22px}
  .auth-form input,.auth-form select,.auth-form textarea,.pwd-toggle{font-size:16px}
  .pwd-toggle{min-height:44px}
  .auth-links,.auth-switch{flex-wrap:wrap}
}

body.mc-site .theme-switch{
  margin-left:auto;
  background:transparent;
  border:1px solid rgba(245,215,126,.75);
  color:#F6D78A;
  border-radius:8px;
  padding:8px 12px;
  font-weight:bold;
  cursor:pointer;
}
body.mc-site .theme-switch + .nav-toggle{margin-left:8px}
@media(max-width:800px){
  body.mc-site header{
    padding-left:12px;
    padding-right:12px;
  }
  body.mc-site header > .brand,
  body.mc-site header > h1{
    flex:1 1 0;
    min-width:0;
  }
  body.mc-site header .brand{overflow:hidden}
  body.mc-site header .brand > div{min-width:0;overflow:hidden}
  body.mc-site header .brand b,
  body.mc-site header .brand small{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  body.mc-site header .brand b{font-size:16px}
  body.mc-site header .theme-switch{
    margin-left:8px;
    flex:0 0 auto;
    white-space:nowrap;
    padding:8px 10px;
  }
  body.mc-site .nav-toggle{flex:0 0 auto}
}

html[data-theme="dark"]{color-scheme:dark}
html[data-theme="dark"] body.mc-site{
  background:
    radial-gradient(900px 280px at 0% 0%, rgba(91,75,219,.20), transparent 55%),
    #100e22;
  color:#f3ead7;
}
html[data-theme="dark"] body.mc-site main,
html[data-theme="dark"] body.mc-site .reset-wrap{
  color:#f3ead7;
}
html[data-theme="dark"] body.mc-site .card,
html[data-theme="dark"] body.mc-site .panel,
html[data-theme="dark"] body.mc-site .box,
html[data-theme="dark"] body.mc-site .homework-card,
html[data-theme="dark"] body.mc-site .auth-card,
html[data-theme="dark"] body.mc-site .admin-sidebar,
html[data-theme="dark"] body.mc-site .admin-content,
html[data-theme="dark"] body.mc-site .table-container,
html[data-theme="dark"] body.mc-site .video-card,
html[data-theme="dark"] body.mc-site .video-toggle,
html[data-theme="dark"] body.mc-site .mc-pop-card{
  background:#182033;
  color:#f3ead7;
  border-color:#3a4b68;
}
html[data-theme="dark"] body.mc-site .head h2,
html[data-theme="dark"] body.mc-site .card h3,
html[data-theme="dark"] body.mc-site .panel h2,
html[data-theme="dark"] body.mc-site .panel h3,
html[data-theme="dark"] body.mc-site .welcome-copy h1,
html[data-theme="dark"] body.mc-site .identity h1,
html[data-theme="dark"] body.mc-site main h1,
html[data-theme="dark"] body.mc-site main h2,
html[data-theme="dark"] body.mc-site main h3,
html[data-theme="dark"] body.mc-site .auth-card h2{
  color:#F6D78A;
}
html[data-theme="dark"] body.mc-site .welcome-copy p,
html[data-theme="dark"] body.mc-site #home-intro .card p,
html[data-theme="dark"] body.mc-site #courses .course-note,
html[data-theme="dark"] body.mc-site .identity .headline,
html[data-theme="dark"] body.mc-site .identity .meta,
html[data-theme="dark"] body.mc-site .dash-continue p,
html[data-theme="dark"] body.mc-site .lesson-content,
html[data-theme="dark"] body.mc-site main p,
html[data-theme="dark"] body.mc-site main li,
html[data-theme="dark"] body.mc-site main label,
html[data-theme="dark"] body.mc-site main td,
html[data-theme="dark"] body.mc-site main th{
  color:#e7dcc8;
}
html[data-theme="dark"] body.mc-site .search,
html[data-theme="dark"] body.mc-site input,
html[data-theme="dark"] body.mc-site textarea,
html[data-theme="dark"] body.mc-site select{
  background:#101826;
  color:#f3ead7;
  border-color:#3a4b68;
}
html[data-theme="dark"] body.mc-site table,
html[data-theme="dark"] body.mc-site th,
html[data-theme="dark"] body.mc-site td{
  background:#182033;
  border-color:#3a4b68;
}
html[data-theme="dark"] body.mc-site .dash-continue,
html[data-theme="dark"] body.mc-site .progress-list li{
  border-color:#3a4b68;
}
html[data-theme="dark"] body.mc-site .progress-track{background:#2a3650}
html[data-theme="dark"] body.mc-site .progress-list button{color:#F6D78A}
html[data-theme="dark"] body.mc-site .primary{color:#1B1464}
html[data-theme="dark"] body.mc-site .home-points span,
html[data-theme="dark"] body.mc-site .home-steps li,
html[data-theme="dark"] body.mc-site .home-ghost{
  background:#1c1833;
  color:#f3ead7;
  border-color:#3a4b68;
}
html[data-theme="dark"] body.mc-site .home-steps strong{color:#F6D78A}
html[data-theme="dark"] body.mc-site .home-steps span{color:#d5cbb8}
html[data-theme="dark"] body.mc-site .admin-nav button{
  background:#101826;
  color:#f3ead7;
  border-color:#3a4b68;
}
html[data-theme="dark"] body.mc-site .admin-class-drop summary,
html[data-theme="dark"] body.mc-site .admin-class-drop a{
  background:#101826;
  color:#f3ead7;
  border:1px solid #3a4b68;
}
html[data-theme="dark"] body.mc-site .admin-nav button.is-active{
  background:linear-gradient(180deg,#F6D78A,#E0B15A);
  color:#1B1464;
}
html[data-theme="dark"] body.mc-site #adminInfo,
html[data-theme="dark"] body.mc-site .live-note{
  color:#d5cbb8;
}
html[data-theme="dark"] body.mc-site .dm-side,
html[data-theme="dark"] body.mc-site .dm-thread,
html[data-theme="dark"] body.mc-site .dm-log{
  background:#182033;
  border-color:#3a4b68;
  color:#f3ead7;
}
html[data-theme="dark"] body.mc-site .dm-pick,
html[data-theme="dark"] body.mc-site .dm-person{
  background:#101826;
  color:#f3ead7;
  border-color:#3a4b68;
}
html[data-theme="dark"] body.mc-site .dm-person.is-active{background:#243044}
html[data-theme="dark"] body.mc-site .dm-person small{color:#d5cbb8}
html[data-theme="dark"] body.mc-site .dm-bubble{
  background:#101826;
  color:#f3ead7;
  border-color:#3a4b68;
}
html[data-theme="dark"] body.mc-site .dm-bubble.mine{
  background:#1B1464;
  color:#F6D78A;
  border-color:#E0B15A;
}
html[data-theme="dark"] body.mc-site .dm-compose{border-color:#3a4b68}
html[data-theme="dark"] body.mc-site .role{
  background:#101826;
  color:#f3ead7;
  border-color:#3a4b68;
}
html[data-theme="dark"] body.mc-site .role b{color:#F6D78A}
html[data-theme="dark"] body.mc-site .mc-msg{
  background:#101826;
  color:#f3ead7;
  border-color:#3a4b68;
}
html[data-theme="dark"] body.mc-site .mc-msg.mine{
  background:#1B1464;
  color:#F6D78A;
  border-color:#E0B15A;
}
html[data-theme="dark"] body.mc-site .lesson-card,
html[data-theme="dark"] body.mc-site .info,
html[data-theme="dark"] body.mc-site .tag,
html[data-theme="dark"] body.mc-site .back,
html[data-theme="dark"] body.mc-site .output,
html[data-theme="dark"] body.mc-site .item,
html[data-theme="dark"] body.mc-site .google-btn,
html[data-theme="dark"] body.mc-site .pwd-toggle{
  background:#182033;
  color:#e7dcc8;
  border-color:#3a4b68;
}
html[data-theme="dark"] body.mc-site .message,
html[data-theme="dark"] body.mc-site .course-code,
html[data-theme="dark"] body.mc-site .info,
html[data-theme="dark"] body.mc-site .info b,
html[data-theme="dark"] body.mc-site .tag,
html[data-theme="dark"] body.mc-site .lesson-card,
html[data-theme="dark"] body.mc-site .lesson-card h3,
html[data-theme="dark"] body.mc-site .lesson-content,
html[data-theme="dark"] body.mc-site .topic-text,
html[data-theme="dark"] body.mc-site .auth-form label,
html[data-theme="dark"] body.mc-site .auth-card p,
html[data-theme="dark"] body.mc-site .auth-switch,
html[data-theme="dark"] body.mc-site .auth-links,
html[data-theme="dark"] body.mc-site .photo-box h2,
html[data-theme="dark"] body.mc-site .photo-box p,
html[data-theme="dark"] body.mc-site .zoom-row,
html[data-theme="dark"] body.mc-site .edit-form label,
html[data-theme="dark"] body.mc-site .back,
html[data-theme="dark"] body.mc-site .lesson-class-row,
html[data-theme="dark"] body.mc-site .user-mail,
html[data-theme="dark"] body.mc-site .head p,
html[data-theme="dark"] body.mc-site .card p,
html[data-theme="dark"] body.mc-site .item,
html[data-theme="dark"] body.mc-site .item span,
html[data-theme="dark"] body.mc-site .ai-page h1,
html[data-theme="dark"] body.mc-site .ai-page h2,
html[data-theme="dark"] body.mc-site .ai-page p,
html[data-theme="dark"] body.mc-site .lesson-not-completed,
html[data-theme="dark"] body.mc-site #existingMaterialContent,
html[data-theme="dark"] body.mc-site #youtubeTitlePreview,
html[data-theme="dark"] body.mc-site #searchEmptyState,
html[data-theme="dark"] body.mc-site .output{
  color:#e7dcc8;
}
html[data-theme="dark"] body.mc-site .lesson-class-row small,
html[data-theme="dark"] body.mc-site .profile-link,
html[data-theme="dark"] body.mc-site .photo-link,
html[data-theme="dark"] body.mc-site .auth-switch a,
html[data-theme="dark"] body.mc-site .auth-links a,
html[data-theme="dark"] body.mc-site .lesson-content a{
  color:#F6D78A;
}
html[data-theme="dark"] body.mc-site .lesson-content [style*="color"],
html[data-theme="dark"] body.mc-site .lesson-content font,
html[data-theme="dark"] body.mc-site .topic-text [style*="color"],
html[data-theme="dark"] body.mc-site [style*="color:#64748b"],
html[data-theme="dark"] body.mc-site [style*="color:#374151"],
html[data-theme="dark"] body.mc-site [style*="color:#68738a"],
html[data-theme="dark"] body.mc-site [style*="color:#69758a"],
html[data-theme="dark"] body.mc-site [style*="color:#6b7280"],
html[data-theme="dark"] body.mc-site [style*="color:#1B1464"],
html[data-theme="dark"] body.mc-site [style*="color:#1c1408"],
html[data-theme="dark"] body.mc-site [style*="color:#111"],
html[data-theme="dark"] body.mc-site [style*="color:black"],
html[data-theme="dark"] body.mc-site [style*="color:#000"]{
  color:#e7dcc8 !important;
}
html[data-theme="dark"] body.mc-site .lesson-content a,
html[data-theme="dark"] body.mc-site .primary,
html[data-theme="dark"] body.mc-site .lesson-number,
html[data-theme="dark"] body.mc-site .lesson-btn,
html[data-theme="dark"] body.mc-site .is-current{
  color:#1B1464;
}
html[data-theme="dark"] body.mc-site #courses .head p,
html[data-theme="dark"] body.mc-site #courses .head p .keep,
html[data-theme="dark"] body.mc-site #courses .course-code,
html[data-theme="dark"] body.mc-site #courses .card p,
html[data-theme="dark"] body.mc-site #courses .course-note,
html[data-theme="dark"] body.mc-site #home-intro .card p{
  color:#e7dcc8;
}
html[data-theme="dark"] body.mc-site .lesson-content a{color:#F6D78A !important}
html[data-theme="dark"] body.mc-site button:not(.primary):not(.is-current):not(.lesson-btn):not(.admin-nav button){
  color:#f3ead7;
}
html[data-theme="dark"] body.mc-site #cancelPhoto{
  background:#101826;
  border:1px solid #3a4b68;
  border-radius:8px;
  padding:11px 17px;
}
html[data-theme="dark"] body.mc-site input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-theme="dark"] body.mc-site textarea,
html[data-theme="dark"] body.mc-site select{
  background-color:#101826 !important;
  color:#f3ead7 !important;
  border-color:#3a4b68 !important;
}
html[data-theme="dark"] body.mc-site option{
  background-color:#101826;
  color:#f3ead7;
}
html[data-theme="dark"] body.mc-site input::placeholder,
html[data-theme="dark"] body.mc-site textarea::placeholder{
  color:#b7ab98;
}
body.is-classroom .home-hero,
body.is-classroom .welcome,
body.is-classroom .home-banner,
body.is-classroom #courses{display:none !important}
.dash{padding:28px 0 48px}
.dash-top{display:flex;justify-content:space-between;gap:16px;align-items:end;margin-bottom:22px}
.dash h1{margin:0;font:40px/1.2 Georgia,serif;color:#1B1464}
.join-class{display:flex;gap:8px}
.join-class input{padding:10px 12px;border:1px solid #e6d3a4;border-radius:8px}
.dash-grid{display:grid;grid-template-columns:1.4fr .8fr;gap:16px;margin-bottom:22px}
.todo-counts{display:flex;gap:18px}
.todo-counts div{display:grid}
.todo-counts b{font:28px/1 Georgia,serif;color:#1B1464}
.class-card{text-align:left;width:100%;font:inherit;cursor:pointer}
.room{padding:28px 0 48px}
.room h1{margin:0 0 6px;font:36px/1.2 Georgia,serif;color:#1B1464}
.room-tabs{display:flex;gap:8px;margin:18px 0}
.room-tabs button,.create-menu button{background:#fff;border:1px solid #e6d3a4;border-radius:999px;padding:8px 14px;color:#1B1464}
.room-tabs button.is-current{background:#1B1464;color:#F6D78A}
.create-bar{position:relative;display:flex;justify-content:flex-end;margin-bottom:14px}
.create-menu{
  position:absolute;
  top:calc(100% + 6px);
  right:0;
  z-index:6;
  display:grid;
  gap:2px;
  width:14rem;
  margin:0;
  background:#fffdf8;
  border:1px solid #e6d3a4;
  border-radius:12px;
  padding:6px;
  box-shadow:0 16px 36px rgba(16,14,34,.22);
}
.create-menu[hidden]{display:none !important}
.create-menu button{
  width:100%;
  background:#fff;
  border:0;
  border-radius:8px;
  padding:9px 12px;
  color:#1B1464;
  text-align:left;
  font-size:14px;
}
.create-menu button:hover{background:#f3ead7}
.work-row{display:flex;gap:12px;align-items:center;width:100%;text-align:left;background:#fff;border:1px solid #e2e7ef;border-radius:10px;padding:12px;margin:8px 0}
.stream-post,.grade-row{margin-bottom:12px}
.room form label,.create-form label{display:grid;gap:4px;margin:8px 0}
.room input,.room textarea,.room select{padding:10px 12px;border:1px solid #e6d3a4;border-radius:8px}
.table-wrap{overflow:auto}
.table-wrap table{width:100%;border-collapse:collapse}
.table-wrap th,.table-wrap td{border-bottom:1px solid #e2e7ef;padding:8px;text-align:left}
html[data-theme="dark"] body.mc-site .dash h1,
html[data-theme="dark"] body.mc-site .room h1,
html[data-theme="dark"] body.mc-site .todo-counts b{color:#F6D78A}
html[data-theme="dark"] body.mc-site .room-tabs button,
html[data-theme="dark"] body.mc-site .create-menu,
html[data-theme="dark"] body.mc-site .create-menu button,
html[data-theme="dark"] body.mc-site .work-row{background:#1c1833;color:#f3ead7;border-color:#3a4b68}
html[data-theme="dark"] body.mc-site .nav-drop-menu{
  background:#182033;
  border-color:#3a4b68;
}
html[data-theme="dark"] body.mc-site .nav-drop-menu a,
html[data-theme="dark"] body.mc-site .create-menu button{color:#f3ead7;background:transparent}
html[data-theme="dark"] body.mc-site .nav-drop-menu a:hover,
html[data-theme="dark"] body.mc-site .create-menu button:hover{background:#243044}
@media(max-width:800px){
  .dash-top,.dash-grid{display:block}
  .join-class{margin-top:12px}
}
html[data-theme="dark"] body.mc-site .message{
  background:transparent;
  color:#e7dcc8;
}
html[data-theme="dark"] body.mc-site .message:empty{display:none}
html[data-theme="dark"] body.mc-site .review-form,
html[data-theme="dark"] body.mc-site .mc-compose,
html[data-theme="dark"] body.mc-site .mc-status,
html[data-theme="dark"] body.mc-site .mc-hint{
  background:#101826;
  color:#e7dcc8;
  border-color:#3a4b68;
}
html[data-theme="dark"] body.mc-site .mc-tail{background:#101826;border-color:#3a4b68}
html[data-theme="dark"] body.mc-site .video-play{background:#243044}
html[data-theme="dark"] body.mc-site .review-current-file,
html[data-theme="dark"] body.mc-site .review-current-file a{color:#F6D78A}
@media(max-width:800px){
  html[data-theme="dark"] body.mc-site .table-container th:first-child,
  html[data-theme="dark"] body.mc-site .table-container td:first-child{
    background:#182033;
    box-shadow:8px 0 12px -10px rgba(0,0,0,.7);
  }
}

/* Keep every content surface dark, including admin sections and generated lesson cards. */
html[data-theme="dark"] body.mc-site.admin-page .welcome,
html[data-theme="dark"] body.mc-site.admin-page .section,
html[data-theme="dark"] body.mc-site [style*="background:#f8fafc"],
html[data-theme="dark"] body.mc-site [style*="background: #f8fafc"]{
  background:#182033 !important;
  color:#e7dcc8;
  border-color:#3a4b68 !important;
}
html[data-theme="dark"] body.mc-site.admin-page .welcome h2,
html[data-theme="dark"] body.mc-site.admin-page .welcome h3,
html[data-theme="dark"] body.mc-site.admin-page .section h2,
html[data-theme="dark"] body.mc-site.admin-page .section h3{
  color:#F6D78A;
}
html[data-theme="dark"] body.mc-site .badge.approved,
html[data-theme="dark"] body.mc-site .status.success{
  background:#123d32;
  color:#a7f3d0;
}
html[data-theme="dark"] body.mc-site .badge.pending,
html[data-theme="dark"] body.mc-site .due{
  background:#493716;
  color:#ffe09a !important;
}
html[data-theme="dark"] body.mc-site .status.loading{
  background:#17334a;
  color:#bae6fd;
}
html[data-theme="dark"] body.mc-site .badge.rejected,
html[data-theme="dark"] body.mc-site .status.error{
  background:#4b222b;
  color:#fecaca;
}
html[data-theme="dark"] body.mc-site .mc-note{
  background:#182033;
  color:#F6D78A;
  border-color:#3a4b68;
}
html[data-theme="dark"] body.mc-site .mc-log{
  background:#101826;
  color:#e7dcc8;
}
html[data-theme="dark"] body.mc-site .mc-empty,
html[data-theme="dark"] body.mc-site .empty,
html[data-theme="dark"] body.mc-site .announce-meta,
html[data-theme="dark"] body.mc-site .video-missing,
html[data-theme="dark"] body.mc-site .review-target,
html[data-theme="dark"] body.mc-site .announce-reply{
  color:#d5cbb8;
}
