.student-page { min-height: 100vh; background: #eff5f0; }
.student-header { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:16px max(24px,calc((100% - 1240px)/2)); background:#fff; border-bottom:1px solid #ceded4; }
.student-header .brand img { display:block; width:178px; height:auto; }
.student-header nav { display:flex; align-items:center; gap:16px; font-weight:700; }
.student-header nav a { color:#07513c; }
.student-main { width:min(1240px,calc(100% - 40px)); margin:0 auto; padding:clamp(24px,5vw,70px) 0 60px; }
.student-gate { display:grid; grid-template-columns:1fr .9fr; overflow:hidden; max-width:1000px; margin:0 auto; border-radius:23px; border:1px solid #c6dcd1; box-shadow:0 15px 48px #0d392915; background:#fff; }
.gate-intro { color:#f6fcf8; background:#073f31; padding:clamp(22px,5vw,50px); }
.gate-intro h1 { font-size:clamp(2.4rem,5vw,4rem); margin:0; line-height:1.1; }
.gate-intro p { font-size:1.08rem; color:#d2ecde; }
.gate-intro img { display:block; width:100%; height:auto; border-radius:13px; margin-top:22px; }
.gate-body { align-self:center; padding:clamp(24px,5vw,54px); }
.gate-body h2 { font-size:1.9rem; margin:0 0 6px; }
.gate-body p { color:#435b50; }
.gate-body form { display:grid; gap:8px; }
.gate-body label { font-weight:750; }
.gate-body input { border:1px solid #8fae9d; border-radius:8px; min-height:46px; padding:9px 12px; font:inherit; width:100%; }
.gate-body form .button { justify-content:center; margin-top:7px; }
.quiet-button { border:0; background:transparent; color:#07513c; font:inherit; font-weight:750; padding:8px 2px; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.quiet-button:disabled { opacity:.48; cursor:default; }
#signin-status:empty,#classroom-status:empty { display:none; }
.student-overview { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; }
.student-overview h1 { font-size:clamp(2rem,5vw,3.8rem); margin:0; line-height:1.13; }
#student-greeting { color:#235c49; font-weight:750; margin:0 0 3px; }
.overall-progress { display:grid; grid-template-columns:1fr auto; gap:7px 16px; min-width:250px; padding:14px 18px; background:white; border:1px solid #c6dcd1; border-radius:12px; font-weight:750; }
.overall-progress progress { width:100%; grid-column:1/-1; height:11px; accent-color:#00805c; }
.classroom-grid { display:grid; grid-template-columns:minmax(250px,345px) minmax(0,1fr); gap:20px; align-items:start; }
.syllabus-sidebar,.lesson-area { min-width:0; background:#fff; border:1px solid #c6dcd1; border-radius:16px; padding:clamp(16px,3vw,26px); }
.syllabus-sidebar h2 { margin:0 0 14px; font-size:1.3rem; }
#student-chapters { max-height: min(65vh, 590px); overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; }
.student-chapter { border:1px solid #d2e2d8; border-radius:10px; margin-bottom:8px; overflow:hidden; }
.student-chapter summary { cursor:pointer; padding:11px 12px; font-weight:800; color:#164c39; }
.chapter-count { float:left; color:#4b6356; font-size:.83rem; }
.student-lessons { margin:0; padding:0 7px 6px; list-style:none; }
.student-lessons button { display:grid; grid-template-columns:24px 1fr; gap:8px; text-align:start; align-items:start; border:0; border-radius:8px; width:100%; padding:9px 7px; background:transparent; font:inherit; cursor:pointer; color:#213c31; }
.student-lessons button:hover { background:#eef7f0; }
.student-lessons button[aria-current="true"] { background:#d9efe4; color:#073b2b; font-weight:800; }
.student-lessons .lesson-mark { color:#27624c; font-weight:800; text-align:center; }
.student-lessons .lesson-unavailable { color:#60726a; }
.lesson-area h2 { font-size:clamp(1.45rem,4vw,2.4rem); line-height:1.2; margin:0 0 17px; }
#student-lesson-chapter { color:#1c6049; font-weight:800; margin:0 0 5px; }
.student-player { display:grid; place-items:center; aspect-ratio:16/9; background:#091712; border-radius:11px; overflow:hidden; }
.student-player video { width:100%; height:100%; max-height:70vh; }
.student-player p { color:#e4efe8; text-align:center; max-width:38ch; padding:18px; }
.lesson-controls { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 12px; margin-top:14px; }
.lesson-controls .button:disabled { opacity:.55; cursor:default; }
@media (max-width: 770px) {
  .student-main { width:calc(100% - 24px); }
  .student-gate,.classroom-grid { grid-template-columns:1fr; }
  .gate-intro img { display:none; }
  .student-overview { align-items:stretch; flex-direction:column; gap:10px; }
  .overall-progress { min-width:0; }
  .lesson-area { grid-row:1; }
  .student-header { padding-inline:12px; }
  .student-header .brand img { width:127px; }
  .student-header nav { gap:10px; font-size:.86rem; }
}
