/* Кабинет и прогресс используют общую светлую/тёмную палитру. */
.student-page{margin:0;background:var(--theme-ground);color:var(--theme-ink);font:16px/1.6 var(--theme-body)}
.student-page *,.student-reading *{box-sizing:border-box}
.student-page a{color:var(--theme-brand);text-underline-offset:3px}
.student-header{max-width:1120px;margin:auto;padding:24px;display:flex;align-items:center;gap:24px;border-bottom:1px solid var(--theme-line)}
.student-brand{margin-right:auto;display:block;background:#fff;border-radius:8px;padding:4px}
.student-brand img{display:block;width:180px;height:auto}
.student-main{max-width:1120px;margin:auto;padding:40px 24px 64px}
.student-page h1,.student-page h2,.student-page h3{font-family:var(--theme-heading);line-height:1.3;text-wrap:pretty;margin:0 0 16px}
.student-page h1{font-size:36px}.student-page h2{font-size:24px}.student-page h3{font-size:20px}
.student-page p{margin:0 0 16px;max-width:65ch}.student-page p:last-child{margin-bottom:0}
.student-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:24px}
.student-heading .student-muted{margin-bottom:8px}
.student-overview,.student-lesson-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.student-panel{padding:24px;border:1px solid var(--theme-line);border-radius:16px;background:var(--theme-paper);min-width:0}
.student-badge{display:inline-block;font-size:14px;background:var(--theme-wash);color:var(--theme-ink);padding:4px 12px;border-radius:8px;margin-bottom:16px}
.student-badge.is-active{color:var(--theme-good);background:var(--theme-good-bg)}
.student-muted{color:var(--theme-soft);font-size:14px}
.student-price{font-size:32px;font-weight:600}.student-price span{font-size:16px;font-weight:400;color:var(--theme-soft)}
.student-button,.student-secondary,.student-reading button{display:inline-flex;justify-content:center;align-items:center;min-height:48px;padding:12px 16px;border:1px solid var(--theme-brand);border-radius:8px;font:inherit;text-decoration:none;cursor:pointer;touch-action:manipulation}
.student-page .student-button,.student-reading button{background:var(--theme-brand);color:var(--theme-on-brand)}
.student-secondary{background:var(--theme-paper);color:var(--theme-ink);border-color:var(--theme-line)}
.student-page a:focus-visible,.student-page button:focus-visible,.student-page input:focus-visible,.student-reading a:focus-visible,.student-reading button:focus-visible{outline:3px solid var(--theme-brand);outline-offset:4px}
.student-page button:hover,.student-page .student-button:hover{filter:brightness(.95)}
.student-lessons{margin:48px 0}.student-lesson{display:flex;flex-direction:column;gap:12px;border:1px solid var(--theme-line);border-radius:12px;background:var(--theme-paper);padding:24px;text-decoration:none}
.student-page .student-lesson{color:var(--theme-ink)}.student-lesson:hover{border-color:var(--theme-brand)}.student-lesson h3{margin:0}.student-link-label{color:var(--theme-brand);margin-top:auto}
.student-page progress{width:100%;height:12px;margin:0 0 16px;border:0;border-radius:8px;overflow:hidden;background:var(--theme-wash);accent-color:var(--theme-brand)}
.student-page progress::-webkit-progress-bar{background:var(--theme-wash)}.student-page progress::-webkit-progress-value{background:var(--theme-brand)}
.student-form{max-width:520px;margin:auto}.student-form label{display:block;margin:20px 0 8px;font-weight:500}
.student-form input{width:100%;min-height:48px;font:inherit;padding:10px 12px;border-radius:8px;border:1px solid var(--theme-line);background:var(--theme-ground);color:var(--theme-ink)}
.student-form button[type=submit]{width:100%;margin:24px 0 16px}.student-form .password-field{display:flex;gap:8px}.student-form .password-field input{min-width:0}.student-form .password-toggle{padding:8px;border:1px solid var(--theme-line);border-radius:8px;background:var(--theme-wash);color:var(--theme-ink);font:inherit}
.student-error,.student-form .errorlist{color:var(--theme-error);background:var(--theme-error-bg);padding:12px 16px;border-radius:8px}.student-form .errorlist{list-style:none}
.student-skip{position:absolute;left:16px;top:-100px;background:var(--theme-paper);padding:12px;z-index:100}.student-skip:focus{top:8px}
.student-reading{font:16px/1.6 var(--theme-body);margin:40px 0 24px;padding:24px;border:1px solid var(--theme-line);border-radius:12px;background:var(--theme-paper);color:var(--theme-ink);display:flex;align-items:center;flex-wrap:wrap;gap:16px}
.student-reading>div{flex:1 1 240px}.student-reading h2{font-size:20px;line-height:1.4;margin:0 0 8px}.student-reading p{font-size:14px;color:var(--theme-soft);margin:0}.student-reading a{color:var(--theme-brand)}.student-reading button:disabled{opacity:.65;cursor:wait}
#ai-school-preview .student-home-status{display:inline-block;background:var(--good-bg);color:var(--good);font-size:14px;border-radius:8px;padding:8px 12px;margin-bottom:16px;text-decoration:none}
@media(max-width:650px){.student-header{padding:16px;gap:12px;flex-wrap:wrap}.student-brand img{width:160px}.student-header>a:last-child{flex-basis:100%;text-align:right}.student-main{padding:24px 16px 48px}.student-overview,.student-lesson-grid{grid-template-columns:1fr;gap:16px}.student-page h1{font-size:28px}.student-page h2{font-size:22px}.student-panel,.student-lesson{padding:20px}.student-heading{align-items:flex-start}.student-reading{padding:16px}.student-reading button{width:100%}.student-form .password-field{flex-wrap:wrap}.student-form .password-toggle{min-height:44px}}
