:root{color:#172033;background:#f4f6fb;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{border:0}.app-shell{background:radial-gradient(circle at 0 0,#5484ff24,#0000 34rem),#f4f6fb;grid-template-columns:380px 1fr;min-height:100vh;display:grid}.sidebar{-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#ffffffc7;border-right:1px solid #e3e8f2;min-height:100vh;padding:28px;overflow-y:auto}.brand{align-items:center;gap:14px;margin-bottom:28px;display:flex}.sign-out-button{flex-shrink:0;margin-left:auto;font-size:13px}.auth-loading{color:#6b7a99;justify-content:center;align-items:center;min-height:100vh;font-size:1rem;display:flex}.login-screen{background:radial-gradient(circle at 0 0,#5484ff24,#0000 34rem),#f4f6fb;justify-content:center;align-items:center;min-height:100vh;display:flex}.login-card{text-align:center;background:#fff;border:1px solid #e3e8f2;border-radius:16px;width:100%;max-width:360px;padding:48px 40px;box-shadow:0 4px 24px #00000012}.login-icon{margin-bottom:16px;font-size:3rem}.login-card h1{margin:0 0 8px;font-size:1.5rem}.login-card p{color:#6b7a99;margin:0 0 28px;font-size:.95rem}.login-card .login-tagline{color:#172033;margin-bottom:6px;font-size:1.05rem;font-weight:600}.google-button{width:100%}.login-divider{color:#94a3b8;align-items:center;gap:12px;margin:22px 0 18px;font-size:.85rem;display:flex}.login-divider:before,.login-divider:after{content:"";background:#e3e8f2;flex:1;height:1px}.username-login-toggle{width:100%;min-height:44px}.login-card .username-login-note{margin:10px 0 0;font-size:.85rem}.username-login-form{text-align:left;flex-direction:column;gap:6px;display:flex}.login-card .username-login-hint{text-align:center;margin:0 0 8px}.username-login-form label{color:#172033;font-size:.85rem;font-weight:700}.username-login-form input{margin-bottom:8px}.username-login-form .primary-button{margin-top:6px}.login-card .username-login-error{color:#c0392b;margin:0;font-size:.88rem}.brand-icon{background:#edf3ff;border-radius:16px;place-items:center;width:48px;height:48px;font-size:24px;display:grid}.brand h1{letter-spacing:-.03em;margin:0;font-size:24px}.brand p{color:#6b7280;margin:4px 0 0;font-size:14px}.panel,.hero-panel,.stat-card,.empty-state{background:#ffffffeb;border:1px solid #e3e8f2;border-radius:22px;box-shadow:0 18px 50px #1720330f}.panel{padding:20px}.panel+.panel{margin-top:18px}.panel-header{justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;display:flex}.panel-header h2{letter-spacing:-.02em;margin:0;font-size:18px}.book-form{gap:14px;display:grid}.field{gap:7px;display:grid}.level-picker{border:0;min-width:0;margin:0;padding:0}.level-picker legend{color:#5b6475;margin-bottom:7px;padding:0;font-size:13px;font-weight:650}.level-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.level-card{cursor:pointer;background:#f8fafc;border:1.5px solid #d6deeb;border-radius:12px;flex-direction:column;gap:6px;padding:12px 14px;transition:border-color .15s,background .15s;display:flex;position:relative}.level-card:hover{border-color:#9fb0d8}.level-card.selected{background:#eef2fb;border-color:#4f63a3}.level-card:focus-within{outline-offset:2px;outline:2px solid #4f63a3}.level-card input{opacity:0;pointer-events:none;position:absolute}.level-card-name{color:#172033;font-weight:700}.level-card-description{color:#5b6475;font-size:13px;line-height:1.4}.level-card-length{color:#4f63a3;margin-top:auto;font-size:12px;font-weight:650}@media (width<=640px){.level-cards{grid-template-columns:1fr}}.field span{color:#5b6475;font-size:13px;font-weight:650}.field input,.field select{color:#172033;background:#f8fafc;border:1px solid #dce3ee;border-radius:12px;outline:none;width:100%;height:42px;padding:0 12px;transition:border-color .12s,box-shadow .12s,background .12s}.field input:focus,.field select:focus{background:#fff;border-color:#4f7cff;box-shadow:0 0 0 4px #4f7cff1f}.field .description-input{color:#172033;resize:vertical;background:#f8fafc;border:1px solid #dce3ee;border-radius:12px;outline:none;width:100%;min-height:90px;padding:10px 12px;transition:border-color .12s,box-shadow .12s,background .12s}.field .description-input:focus{background:#fff;border-color:#4f7cff;box-shadow:0 0 0 4px #4f7cff1f}.field .char-count{color:#94a3b8;justify-self:end;font-size:12px;font-weight:600}.primary-button,.ghost-button,.book-card{cursor:pointer;transition:transform .12s,box-shadow .12s,background .12s,border-color .12s}.primary-button{color:#fff;background:linear-gradient(135deg,#426dff,#7b5cff);border-radius:13px;min-height:44px;padding:0 16px;font-weight:750;box-shadow:0 12px 24px #426dff33}.primary-button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 16px 28px #426dff3d}.primary-button:disabled{cursor:not-allowed;opacity:.65}.ghost-button{color:#4f63a3;background:#f0f4ff;border-radius:999px;height:34px;padding:0 12px;font-size:13px;font-weight:700}.ghost-button:hover{background:#e4ebff}.ghost-button:disabled{opacity:.45;cursor:default}.ghost-button:disabled:hover{background:#f0f4ff}.nav-btn-wrap{display:inline-flex}.books-panel{flex-direction:column;max-height:45vh;display:flex;overflow:hidden}.book-list{flex:1;gap:10px;min-height:0;padding-right:2px;display:grid;overflow-y:auto}.book-card{text-align:left;color:#172033;background:#f8fafc;border:1px solid #e1e7f0;border-radius:16px;align-items:center;gap:12px;width:100%;padding:14px;display:flex}.book-card-wrap{position:relative}.book-card-wrap .book-card{width:100%}.book-card-delete{cursor:pointer;background:#fff;border:1px solid #e1e7f0;border-radius:50%;justify-content:center;align-items:center;width:28px;height:28px;font-size:13px;line-height:1;display:flex;position:absolute;top:8px;right:8px}.book-card-delete:hover:not(:disabled){background:#fee2e2;border-color:#fca5a5}.book-card-delete:disabled{opacity:.6;cursor:default}.book-card-thumb{object-fit:cover;border-radius:6px;flex-shrink:0;width:34px;height:48px}.book-card-text{gap:5px;min-width:0;display:grid}.book-card:hover{background:#fff;border-color:#cbd7ee;transform:translateY(-1px)}.book-card.selected{background:#eef4ff;border-color:#7b9dff;box-shadow:0 10px 24px #4f7cff1f}.book-title{font-weight:750}.book-meta,.muted{color:#6b7280;font-size:13px}.book-length-note{margin:0 0 16px}.content{padding:34px;overflow-y:auto}.error-banner{color:#842029;background:#fff1f2;border:1px solid #fecdd3;border-radius:16px;margin-bottom:18px;padding:14px 16px;font-weight:650}.empty-state{text-align:center;place-content:center;min-height:calc(100vh - 68px);padding:40px;display:grid}.empty-state h2{letter-spacing:-.04em;margin:0 0 8px;font-size:34px}.empty-state p{color:#6b7280;max-width:520px;margin:0;font-size:16px}.teacher-app-shell{background:radial-gradient(circle at 0 0,#5484ff24,#0000 34rem),#f4f6fb;grid-template-columns:232px 1fr;min-height:100vh;display:grid}.teacher-sidebar{-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#ffffffc7;border-right:1px solid #e3e8f2;flex-direction:column;gap:6px;min-height:100vh;padding:24px 16px;display:flex}.teacher-sidebar .brand{margin-bottom:0;padding:0 8px 20px}.teacher-sidebar .brand h1{font-size:18px}.teacher-nav{flex-direction:column;gap:2px;display:flex}.teacher-nav-item{color:#4b5568;cursor:pointer;background:0 0;border-radius:10px;align-items:center;gap:12px;padding:11px 12px;font-size:14px;font-weight:650;display:flex}.teacher-nav-item:hover{background:#f0f4ff}.teacher-nav-item.active{color:#3452d9;background:#eef4ff}.teacher-sidebar-user{border-top:1px solid #e3e8f2;margin-top:auto;padding:14px 8px 4px}.teacher-sidebar-user p{overflow-wrap:anywhere;margin:0;font-size:13px}.teacher-sidebar-user .sign-out-button{margin:10px 0 0}.teacher-main{width:100%;min-width:0;max-width:1100px;padding:32px}@media (width<=768px){.teacher-app-shell{grid-template-rows:auto 1fr;grid-template-columns:minmax(0,1fr)}.teacher-sidebar{z-index:40;min-height:0;padding:10px max(16px, env(safe-area-inset-right,0px)) 10px max(16px, env(safe-area-inset-left,0px));border-bottom:1px solid #e3e8f2;border-right:0;flex-direction:row;align-items:center;gap:12px;position:sticky;top:0}.teacher-sidebar .brand{padding:0}.teacher-sidebar .brand-icon{width:36px;height:36px;font-size:18px}.teacher-nav{z-index:40;padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));background:#fffffff5;border-top:1px solid #e3e8f2;flex-direction:row;justify-content:space-around;gap:0;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -6px 20px #1720330f}.teacher-nav-item{flex-direction:column;flex:1;gap:3px;padding:6px 4px;font-size:12px}.teacher-sidebar-user{border-top:0;margin:0 0 0 auto;padding:0}.teacher-sidebar-user p{display:none}.teacher-sidebar-user .sign-out-button{margin:0}.teacher-main{padding:16px max(16px, env(safe-area-inset-right,0px)) calc(88px + env(safe-area-inset-bottom,0px)) max(16px, env(safe-area-inset-left,0px))}body:has(.teacher-app-shell) .sandbox-badge{bottom:calc(72px + env(safe-area-inset-bottom,0px))}.teacher-sidebar{-webkit-backdrop-filter:none;backdrop-filter:none;background:#fffffff5}.teacher-main .stats-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.teacher-main .stat-card{padding:12px}.teacher-main .stat-card span{margin-bottom:4px;font-size:12px;line-height:1.3}.teacher-main .stat-card strong{font-size:22px}.overview-columns{flex-direction:column;align-items:stretch}.group-card-link .group-name{font-size:15px}.teacher-main .hero-panel h2{font-size:28px;line-height:1.15}.group-create-form input:not([type=time]){flex-basis:100%}.group-create-form select{flex:1}}.acting-banner{color:#6b4a00;background:#fff4dc;border:1px solid #f3d38b;border-radius:14px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px;padding:12px 16px;font-size:14px;display:flex}.overview-screen{flex-direction:column;gap:20px;display:flex}.overview-columns{align-items:flex-start;gap:20px;display:flex}.overview-columns>.panel+.panel{margin-top:0}.overview-classes,.overview-continue{flex:1;min-width:0}.overview-class-list,.overview-book-list{flex-direction:column;gap:8px;display:flex}.overview-class-row,.overview-book-row{text-align:left;color:#172033;cursor:pointer;background:#f8fafc;border:1px solid #e1e7f0;border-radius:14px;align-items:center;gap:12px;width:100%;padding:12px 14px;transition:background .12s,border-color .12s,transform .12s;display:flex}.overview-class-row{justify-content:space-between}.overview-class-row:hover,.overview-book-row:hover{background:#fff;border-color:#cbd7ee;transform:translateY(-1px)}.overview-class-name{font-weight:650}.overview-book-thumb{background:#cbd5e1;border-radius:5px;flex-shrink:0;width:30px;height:42px}.overview-book-text{gap:3px;min-width:0;display:grid}.overview-new-book-button{width:100%;margin-top:14px}.back-breadcrumb{margin-bottom:16px}.student-app-shell{background:radial-gradient(circle at 0 0,#5484ff24,#0000 34rem),#f4f6fb;min-height:100vh;font-family:Nunito,Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif}.student-app-shell h1,.student-app-shell h2,.student-app-shell .eyebrow{font-family:"Baloo 2",Nunito,Inter,ui-sans-serif,system-ui,sans-serif}.student-topbar{-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#ffffffc7;border-bottom:1px solid #e3e8f2;margin-bottom:0;padding:20px 32px}.student-main{width:100%;max-width:1100px;margin:0 auto;padding:32px}.student-home{flex-direction:column;gap:20px;display:flex}.student-home-columns{align-items:flex-start;gap:20px;display:flex}.student-home-main{flex-direction:column;flex:1.4;gap:20px;min-width:0;display:flex}.student-home-side{flex-direction:column;flex:1;gap:20px;min-width:0;display:flex}.continue-card{flex-direction:column;gap:12px;display:flex}.continue-card h2{margin:0}.mascot-card{text-align:center;color:#172033;font-weight:650}.student-report-link{color:#3452d9;font:inherit;text-align:left;text-underline-offset:3px;cursor:pointer;background:0 0;border:0;padding:0;font-weight:700;text-decoration:underline}.student-report{gap:14px;display:grid}.student-report>.ghost-button{justify-self:start}.student-report-header h2{margin:0}.student-report-header p{margin:2px 0 0}.student-report-stats{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:0}.student-report-note{margin:0}.student-report-heading{margin:10px 0 0;font-size:16px}.student-report-reading{gap:12px;margin:0;padding:0;list-style:none;display:grid}.student-report-reading-row{flex-wrap:wrap;justify-content:space-between;gap:4px 12px;margin-bottom:6px;display:flex}.student-report-missed td{color:#94a3b8}@media (width<=560px){.student-report-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.student-report-quizzes thead{display:none}.student-report-quizzes,.student-report-quizzes tbody{gap:8px;display:grid}.student-report-quizzes tr{background:#f8fafc;border-radius:12px;padding:8px 12px;display:grid}.student-report-quizzes td{white-space:normal;text-align:right;border:0;justify-content:space-between;gap:12px;padding:3px 0;display:flex}.student-report-quizzes td:before{content:attr(data-label);color:#6b7280;text-align:left;font-size:12px;font-weight:700}}.student-class-list{gap:8px;margin:0;padding:0;list-style:none;display:grid}.student-class-list li{background:#f8fafc;border-radius:12px;gap:2px;padding:10px 12px;display:grid}.student-class-name{font-weight:700}.leaderboard-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.leaderboard-divider{text-align:center;color:#94a3b8;padding:2px 0}.leaderboard-row{background:#f8fafc;border-radius:12px;align-items:center;gap:10px;padding:10px 12px;display:flex}.leaderboard-row.you{background:#eef4ff;font-weight:700}.leaderboard-rank{color:#94a3b8;width:20px;font-weight:700}.leaderboard-name{flex:1}.leaderboard-xp{color:#6b7280;font-size:13px}@media (width<=768px){.student-main,.student-topbar{padding:16px}.student-home-columns{flex-direction:column}.student-home-main,.student-home-side{flex:none;width:100%}}@media (width<=560px){.student-app-shell .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.student-app-shell .hero-panel{text-align:left;flex-direction:column;align-items:flex-start}}.student-app-shell .hero-panel{color:#fff;background:linear-gradient(135deg,#426dff,#7b5cff)}.student-app-shell .hero-panel .eyebrow{color:#dbe3ff}.student-app-shell .hero-panel h2{color:#fff}.student-app-shell .chapter-dot{background:#e3e8f2;width:16px;height:16px;box-shadow:0 2px 4px #17203314}.student-app-shell .chapter-dot:hover{background:#b9c6f7}.student-app-shell .chapter-dot.active{background:linear-gradient(135deg,#426dff,#7b5cff);box-shadow:0 0 0 4px #426dff33}.student-app-shell .chapter-text{font-size:17px;line-height:1.9}.xp-celebration{color:#92714a;background:#fff7e6;border:2px solid #ffd166;border-radius:999px;align-self:flex-start;margin-bottom:16px;padding:8px 16px;font-size:14px;font-weight:700}.book-end-card{text-align:center;background:#f8fafc;border:1px solid #e1e7f0;border-radius:18px;margin-top:24px;padding:24px}.book-end-card.complete{background:linear-gradient(135deg,#eef4ff,#f3edff);border-color:#c9d6ff}.book-end-emoji{margin-bottom:8px;font-size:40px;display:block}.book-end-card h3{margin:0 0 6px;font-size:20px}.book-end-card p{color:#475569;margin:0 0 16px}.book-end-card>p:only-child{margin:0}.panel-header-actions{gap:8px;display:flex}.book-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px;display:grid;overflow:visible}.wizard-panel{max-width:640px;margin:0 auto}.teacher-tabs{background:#eef1f7;border-radius:12px;gap:4px;padding:4px;display:flex}.teacher-tab{color:#6b7280;cursor:pointer;background:0 0;border-radius:9px;padding:8px 16px;font-size:14px;font-weight:650}.teacher-tab.active{color:#172033;background:#fff;box-shadow:0 2px 8px #17203314}.group-delete-button{color:#842029;background:#fff;border:1px solid #fecdd3}.group-delete-button:hover:not(:disabled){background:#fff1f2}.group-detail-title{gap:2px;min-width:0;display:grid}.group-settings-form{gap:14px;display:grid}.group-settings-fields{grid-template-columns:2fr 1fr 1fr;gap:12px;display:grid}.group-settings-actions{align-items:center;gap:12px;display:flex}.group-danger-zone{background:snow;border:1px solid #fecdd3;border-radius:14px;justify-content:space-between;align-items:center;gap:16px;padding:14px 16px;display:flex}.group-danger-zone p{margin:4px 0 0}@media (width<=640px){.group-detail>.panel-header{flex-wrap:wrap}.group-detail-title{flex-basis:100%}.group-settings-fields{grid-template-columns:1fr}.group-danger-zone{flex-direction:column;align-items:flex-start}}.group-detail-columns{grid-template-columns:280px 1fr;align-items:start;gap:20px;display:grid}@media (width<=900px){.group-detail-columns{grid-template-columns:1fr}}.group-detail-column{min-width:0}.group-books-toolbar{flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-bottom:16px;display:flex}.add-book-picker{margin-bottom:16px}.add-book-picker h3{margin:0 0 4px}.add-book-picker-row{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}.add-book-picker-row select{min-width:0;font:inherit;border:1px solid #d6deeb;border-radius:10px;flex:220px;padding:10px 12px}.add-book-picker-cancel{margin-top:12px}.remove-book-from-class{width:100%;margin-top:12px;font-size:13px}.group-detail-column-heading{color:#6b7280;text-transform:uppercase;letter-spacing:.04em;margin:0 0 12px;font-size:13px;font-weight:700}.group-detail-reader{min-width:0}.books-panel.library-page-panel,.groups-panel.groups-page-panel{max-height:none;overflow:visible}.library-page-panel .book-list,.groups-page-panel .group-list{flex:none;overflow-y:visible}.hero-panel{justify-content:space-between;align-items:center;gap:24px;margin-bottom:18px;padding:26px;display:flex}.eyebrow{color:#64748b;letter-spacing:.08em;text-transform:uppercase;margin:0 0 8px;font-size:13px;font-weight:800}.hero-panel h2{letter-spacing:-.05em;margin:0;font-size:36px}.book-cover{border-radius:12px;flex-shrink:0;width:auto;height:160px;box-shadow:0 8px 24px #1720331f}.generate-button{width:auto;min-width:210px}.generating-indicator{color:#4f63a3;background:#426dff14;border-radius:12px;align-items:center;gap:10px;margin-top:12px;padding:10px 14px;font-size:13px;font-weight:600;display:flex}.spinner-ring{border:2px solid #426dff40;border-top-color:#426dff;border-radius:50%;flex-shrink:0;width:16px;height:16px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.stats-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px;display:grid}.stat-card{padding:18px}.stat-card span{color:#64748b;margin-bottom:8px;font-size:13px;font-weight:750;display:block}.stat-card strong{letter-spacing:-.04em;font-size:26px}.main-book-panel{padding:24px}.progress-track{background:#edf1f7;border-radius:999px;height:12px;margin-bottom:24px;overflow:hidden}.progress-fill{border-radius:inherit;background:linear-gradient(90deg,#426dff,#8d5cf6);height:100%;transition:width .22s}.progress-fill.urgent{background:linear-gradient(90deg,#f59e0b,#ef4444)}.start-live-quiz-button{margin-top:20px}.release-quiz-button{margin-top:10px;display:block}.quiz-release-status{flex-wrap:wrap;align-items:center;gap:8px 14px;margin-top:12px;display:flex}.quiz-release-status p{color:#047857;margin:0;font-size:14px;font-weight:600}.check-answers-button{width:100%;margin-top:6px}.check-answers-result{text-align:center;margin:10px 0 0;font-weight:700}.live-quiz-join-banner{z-index:20;width:100%;margin-bottom:16px;animation:1.6s ease-in-out infinite live-quiz-pulse;position:sticky;top:8px;box-shadow:0 6px 18px #4f46e54d}@keyframes live-quiz-pulse{0%,to{opacity:1}50%{opacity:.7}}.live-quiz-action{width:min(100%,360px);margin:24px auto 0;display:block}.quiz-review{gap:14px;margin:12px 0 0;padding:0;list-style:none;display:grid}.quiz-review-number{margin:0 0 4px;font-size:.85rem}.quiz-review-result{margin:10px 0 0;font-weight:700}.live-quiz-timer{text-align:center;letter-spacing:-.02em;margin:4px 0 16px;font-size:22px;font-weight:800}.live-quiz-rank{margin:12px 0;font-size:16px;font-weight:700}.live-quiz-streak{color:#c2410c;background:#fff7ed;border-radius:999px;margin:0 0 12px;padding:6px 14px;font-weight:800;display:inline-block}.live-quiz-overlay{z-index:100;background:#0f14238c;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0;overflow-y:auto}.live-quiz-student{width:100%;max-width:560px;max-height:90vh;overflow-y:auto}.book-section{border-top:1px solid #edf1f7;padding:18px 0}.book-section h3{margin:0 0 8px;font-size:17px}.book-section p{color:#475569;margin:0;line-height:1.65}.chapter-panel{flex-direction:column;gap:20px;display:flex}.chapter-nav{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.chapter-nav h2{margin:0}.chapter-nav-controls{align-items:center;gap:12px;display:flex}.chapter-position{color:#4f63a3;text-align:center;min-width:120px;font-size:14px;font-weight:600}.chapter-dots{flex-wrap:wrap;gap:8px;display:flex}.chapter-dot{cursor:pointer;background:#c8d3ea;border-radius:50%;width:10px;height:10px;padding:0;transition:background .15s,transform .15s}.chapter-dot:hover{background:#7b93d4;transform:scale(1.3)}.chapter-dot.active{background:#4f63a3;transform:scale(1.3)}.chapter-dot.hidden-from-class{background:0 0;box-shadow:inset 0 0 0 2px #c8d3ea}.chapter-dot.hidden-from-class.active{box-shadow:inset 0 0 0 2px #4f63a3}.class-release-summary{margin:12px 0 0;font-size:14px}.chapter-release-bar{background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 14px;margin-bottom:16px;padding:10px 14px;display:flex}.chapter-release-bar.released{background:#ecfdf5;border-color:#a7f3d0}.chapter-release-bar p{color:#9a3412;margin:0;font-size:14px;font-weight:600}.chapter-release-bar.released p{color:#047857}.chapter-skip-warning{background:#fffbeb;border:1px solid #fcd34d;border-radius:12px;margin:-6px 0 16px;padding:12px 14px}.chapter-skip-warning p{color:#92400e;margin:0 0 10px;font-size:14px}.chapter-skip-warning-actions{flex-wrap:wrap;gap:8px;display:flex}.chapter-illustration{border-radius:16px;width:100%;height:auto;margin-bottom:24px;display:block}.teaching-focus-panel{background:#f8fafc;border:1px solid #e1e7f0;border-radius:14px;max-width:72ch;padding:14px 16px}.teaching-focus-heading{color:#6b7280;text-transform:uppercase;letter-spacing:.04em;margin:0 0 8px;font-size:13px;font-weight:700}.teaching-focus-panel p{color:#2b3a5e;margin:0 0 4px;font-size:14px}.teaching-focus-panel p:last-child{margin-bottom:0}.chapter-text{color:#2b3a5e;max-width:72ch;font-size:16px;line-height:1.8}.chapter-text p{margin:0 0 1em}.questions-section{border-top:1px solid #e3e8f2;margin-top:32px;padding-top:28px}.questions-heading{color:#2b3a5e;letter-spacing:-.02em;margin:0 0 20px;font-size:17px}.question-card{background:#ffffffeb;border:1px solid #e3e8f2;border-radius:16px;margin-bottom:14px;padding:18px 20px;box-shadow:0 4px 14px #1720330a}.question-text{color:#172033;margin:0 0 14px;font-size:15px;font-weight:650;line-height:1.5}.question-options{gap:8px;display:grid}.question-option{text-align:left;color:#172033;cursor:pointer;background:#f4f6fb;border:1.5px solid #e3e8f2;border-radius:11px;align-items:center;gap:10px;width:100%;padding:10px 14px;font-size:14px;transition:background .12s,border-color .12s,transform 80ms;display:flex}@media (hover:hover){.question-option:hover{background:#eef4ff;border-color:#7b9dff;transform:translateY(-1px)}}.question-option.correct{color:#065f46;background:#ecfdf5;border-color:#6ee7b7}.question-option.incorrect{color:#9f1239;background:#fff1f2;border-color:#fda4af}.question-option.selected{background:#eef4ff;border-color:#7b9dff}.question-option-static{cursor:default}.question-option-static:hover{background:#f4f6fb;border-color:#e3e8f2;transform:none}.question-option-static.correct:hover{background:#ecfdf5;border-color:#6ee7b7}.correct-answer-mark{flex-shrink:0;margin-left:auto;font-size:12px;font-weight:800}.questions-header{justify-content:space-between;align-items:center;gap:10px;margin-bottom:20px;display:flex}.questions-header .questions-heading{margin:0}.option-label{color:#4f63a3;background:#dce5f7;border-radius:50%;flex-shrink:0;place-items:center;min-width:24px;height:24px;font-size:12px;font-weight:800;display:inline-grid}.question-option.correct .option-label{color:#065f46;background:#a7f3d0}.question-option.incorrect .option-label{color:#9f1239;background:#fecdd3}.cover-page{justify-content:center;padding:24px 0;display:flex}.cover-page-image{border-radius:18px;width:100%;max-width:340px;height:auto;display:block;box-shadow:0 16px 48px #1720332e}.cover-dot{background:#b0bddb}.cover-dot.active{background:#4f63a3;transform:scale(1.3)}.overview-dot{background:#b0bddb;border-radius:3px}.overview-dot.active{background:#4f63a3;transform:scale(1.3)}.role-card{max-width:420px}.role-choice-buttons{gap:12px;margin-top:20px;display:grid}.role-choice-secondary{height:44px}.join-code-input{text-align:center;letter-spacing:.12em;text-transform:uppercase;color:#172033;background:#f8fafc;border:1px solid #dce3ee;border-radius:12px;outline:none;width:100%;height:44px;padding:0 14px;font-weight:750}.join-code-input:focus{background:#fff;border-color:#4f7cff;box-shadow:0 0 0 4px #4f7cff1f}.sign-out-link{margin-top:24px}.short-story-fields{background:#f8fafc;border:1px dashed #cbd7ee;border-radius:14px;gap:14px;padding:14px;display:grid}.char-count-warn{color:#c2410c}.grammar-checklist{gap:8px;display:grid}.grammar-option{color:#344155;align-items:flex-start;gap:8px;font-size:13px;line-height:1.4;display:flex}.grammar-option input{accent-color:#4f63a3;flex-shrink:0;width:15px;height:15px;margin:1px 0 0}.groups-panel{flex-direction:column;max-height:32vh;display:flex;overflow:hidden}.group-list{flex:1;gap:8px;min-height:0;margin-bottom:12px;display:grid;overflow-y:auto}.group-card{background:#f8fafc;border:1px solid #e1e7f0;border-radius:12px;flex-direction:column;min-width:0;padding:10px 12px;display:flex}.group-card-main{gap:2px;min-width:0;display:grid}.group-card-link{width:100%;color:inherit;text-align:left;cursor:pointer;flex-direction:row;justify-content:space-between;align-items:center;gap:12px;transition:border-color .12s,background .12s}.group-card-link:hover,.group-card-link:focus-visible{background:#f3f6ff;border-color:#c9d5fb}.group-card-arrow{color:#8a94a8;flex-shrink:0;font-size:20px;line-height:1}.group-name{font-size:14px;font-weight:700}.group-meta{color:#6b7280;font-size:12px}.roster-status{border-radius:999px;flex-shrink:0;padding:2px 8px;font-size:11px;font-weight:700}.roster-status-joined{color:#166534;background:#dcfce7}.roster-status-invited{color:#92400e;background:#fef3c7}.student-progress-list{gap:10px;margin:0;padding:0;list-style:none;display:grid}.student-progress-card{background:#f8fafc;border:1px solid #e1e7f0;border-radius:14px;padding:12px 14px}.student-progress-header{justify-content:space-between;align-items:center;gap:10px;display:flex}.student-progress-email{font-size:14px;font-weight:700}.student-progress-subemail{color:#6b7a99;font-size:12px;font-weight:400;display:block}.add-student-panel{background:#f7f9ff;border:1px solid #dfe6f5;border-radius:14px;gap:12px;margin:0 0 16px;padding:16px;display:grid}.add-student-panel h3{margin:0;font-size:1rem}.add-student-panel>.muted{margin:0}.add-student-choices{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;display:grid}.add-student-choice{text-align:left;color:#172033;cursor:pointer;background:#fff;border:1.5px solid #c9d5fb;border-radius:12px;align-items:center;gap:14px;padding:14px 16px;transition:border-color .12s,box-shadow .12s;display:flex}.add-student-choice:hover,.add-student-choice:focus-visible{border-color:#426dff;box-shadow:0 6px 16px #426dff24}.add-student-choice-text{gap:3px;display:grid}.add-student-choice-text span{color:#6b7a99;font-size:13px}.add-student-icon{flex:none;width:32px;height:32px}.add-student-title{align-items:center;gap:10px;display:flex}.add-student-title .add-student-icon{width:24px;height:24px}.add-student-header{justify-content:space-between;align-items:center;gap:10px;display:flex}.add-student-panel .group-form input{min-width:160px}.add-student-error{color:#c0392b;margin:0;font-size:14px}@media (width<=560px){.student-progress-header,.student-progress-actions{flex-wrap:wrap}}.login-slip{background:#f5f7ff;border:2px dashed #9fb3ff;border-radius:14px;gap:10px;margin:0 0 4px;padding:16px;display:grid}.login-slip-header{justify-content:space-between;align-items:center;gap:10px;display:flex}.login-slip-fields{grid-template-columns:auto 1fr;align-items:baseline;gap:4px 14px;margin:0;display:grid}.login-slip-fields dt{color:#6b7a99;font-size:13px}.login-slip-fields dd{-webkit-user-select:all;user-select:all;overflow-wrap:anywhere;margin:0;font-family:ui-monospace,Consolas,monospace;font-size:18px;font-weight:700}.login-slip .muted{margin:0}.login-slip>.ghost-button{justify-self:start}.student-progress-actions{align-items:center;gap:8px;display:flex}.student-book-progress{color:#344155;gap:4px;margin:8px 0 0;padding:0;font-size:13px;list-style:none;display:grid}.student-book-title{font-weight:650}.group-form{flex-wrap:wrap;gap:8px;display:flex}.group-form input{color:#172033;background:#f8fafc;border:1px solid #dce3ee;border-radius:10px;outline:none;flex:1;min-width:0;height:38px;padding:0 12px}.group-form select{color:#172033;background:#f8fafc;border:1px solid #dce3ee;border-radius:10px;outline:none;height:38px;padding:0 10px}.group-create-form input[type=time]{flex:none;width:110px}.my-groups-list{color:#344155;margin:0 0 14px;padding-left:20px;font-size:14px}.admin-shell{grid-template-columns:none;display:block}.admin-content{max-width:960px;margin:0 auto;padding:34px 24px}.admin-header{margin-bottom:28px}.admin-list{gap:10px;display:grid}.admin-row{background:#f8fafc;border:1px solid #e1e7f0;border-radius:12px;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;font-size:14px;display:flex}.admin-teacher-row{align-items:flex-start}.admin-teacher-cards{gap:14px;display:grid}.admin-teacher-card{background:#f8fafc;border:1px solid #e1e7f0;border-radius:14px;padding:16px 18px}.admin-teacher-card-header{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:10px 16px;margin-bottom:14px;display:flex}.admin-teacher-card-title{overflow-wrap:anywhere;flex-direction:column;gap:2px;min-width:0;display:flex}.admin-teacher-dates,.admin-row-date{font-size:13px}.admin-teacher-groups{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.admin-stat-group{background:#fff;border:1px solid #e1e7f0;border-radius:10px;padding:10px 12px}.admin-stat-group h3{color:#6b7280;text-transform:uppercase;letter-spacing:.04em;margin:0 0 8px;font-size:12px;font-weight:700}.admin-stat{flex-direction:column;margin-top:6px;display:flex}.admin-stat-label{color:#6b7280;font-size:12px}.admin-stat-value{color:#172033;font-size:14px;font-weight:600}.admin-limit{background:#fff;border:1px solid #e1e7f0;border-radius:10px;margin-top:12px;padding:10px 12px}.admin-limit-summary{flex-wrap:wrap;align-items:center;gap:6px 12px;display:flex}.admin-limit-text{color:#172033;flex:200px;font-size:14px;font-weight:600}.admin-limit-text.blocked{color:#b42318}.admin-limit-form{gap:12px;margin-top:12px;display:grid}.admin-limit-check{align-items:center;gap:8px;font-size:14px;display:flex}.admin-limit-fields{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.admin-limit-fields label{color:#6b7280;flex-direction:column;gap:4px;font-size:12px;display:flex}.admin-limit-fields input,.admin-limit-fields select{color:#172033;min-width:0;height:36px;font:inherit;background:#f8fafc;border:1px solid #d6deeb;border-radius:8px;padding:0 8px;font-size:14px}.admin-limit-hint{margin:0;font-size:13px}@media (width<=760px){.admin-teacher-groups,.admin-limit-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=420px){.admin-teacher-groups{grid-template-columns:1fr}}.admin-table-wrap{overflow-x:auto}.admin-table{border-collapse:collapse;width:100%;font-size:14px}.admin-table th,.admin-table td{text-align:left;white-space:nowrap;border-bottom:1px solid #e1e7f0;padding:10px 12px}.admin-table th{color:#6b7280;text-transform:uppercase;letter-spacing:.04em;font-size:12px;font-weight:700}.admin-table-teacher{font-weight:700}.admin-view-button{min-height:30px;padding:0 12px;font-size:13px}.admin-remove-button{color:#b42318;margin-left:6px}.admin-view-only-badge{vertical-align:middle;margin-left:10px}.admin-teacher-view .panel-header{flex-wrap:wrap;gap:12px}.admin-status{text-transform:capitalize;margin-left:10px}.admin-row-actions{flex-shrink:0;gap:8px;display:flex}.admin-approve-button{min-height:34px;padding:0 14px;font-size:13px}.promote-form{gap:8px;display:flex}.promote-form input{color:#172033;background:#f8fafc;border:1px solid #dce3ee;border-radius:12px;outline:none;flex:1;height:42px;padding:0 12px}@media (width<=980px){.app-shell{grid-template-columns:1fr}.sidebar{border-bottom:1px solid #e3e8f2;border-right:0;min-height:auto}.books-panel{max-height:none}.hero-panel{flex-direction:column;align-items:stretch}.generate-button{width:100%}.stats-grid{grid-template-columns:1fr}}.avatar-svg{display:block}.avatar-card{text-align:center;flex-direction:column;align-items:center;gap:10px;display:flex}.avatar-card .muted{margin:0}.avatar-editor-layout{grid-template-columns:260px 1fr;align-items:start;gap:28px;display:grid}.avatar-editor-preview{background:linear-gradient(#eef3ff,#f8fafc);border-radius:18px;flex-direction:column;align-items:center;gap:12px;padding:16px;display:flex}.avatar-editor-actions{gap:8px;display:flex}.avatar-editor-tabs{flex-wrap:wrap;margin-bottom:8px}.avatar-option-heading{color:#6b7280;text-transform:uppercase;letter-spacing:.04em;margin:16px 0 8px;font-size:13px;font-weight:700}.avatar-swatches{flex-wrap:wrap;gap:10px;display:flex}.avatar-swatch{cursor:pointer;border:2px solid #0000001f;border-radius:50%;width:36px;height:36px;padding:0}.avatar-swatch.selected{outline-offset:2px;outline:3px solid #426dff}.avatar-tiles{flex-wrap:wrap;gap:10px;display:flex}.avatar-tile{cursor:pointer;background:#f8fafc;border:2px solid #e1e7f0;border-radius:14px;flex-direction:column;align-items:center;gap:4px;padding:8px 6px 6px;display:flex}.avatar-tile.selected{background:#eef3ff;border-color:#426dff}.avatar-tile-crop{height:84px;display:block;overflow:hidden}.avatar-tile-crop.full-body{height:auto}.avatar-editor-buttons{flex-direction:column;align-items:center;gap:12px;display:flex}@media (width<=760px){.avatar-editor-layout{grid-template-columns:minmax(0,1fr);gap:0}.avatar-editor-preview{z-index:5;box-sizing:border-box;background:#eef3ff;border-radius:0 0 18px 18px;flex-direction:row;justify-content:center;gap:20px;height:160px;padding:8px 12px;position:sticky;top:0;box-shadow:0 8px 18px #17203314}.avatar-editor-preview .avatar-svg{width:auto;height:144px}.avatar-editor-buttons{gap:8px}.avatar-editor-tabs{z-index:4;flex-wrap:nowrap;margin-top:6px;position:sticky;top:160px}.avatar-editor-tabs .teacher-tab{white-space:nowrap;flex:1;min-width:0;padding:8px 2px;font-size:13px}.avatar-tile-crop{height:62px}.avatar-tile-crop .avatar-svg{width:auto;height:110px}.avatar-tile-crop.full-body .avatar-svg{height:100px}}.avatar-tile.dimmed{opacity:.55}.avatar-tile-badge{color:#6b4a00;background:#ffe28a;border-radius:999px;padding:2px 7px;font-size:11px;font-weight:750}.avatar-shop-header{flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin-top:12px;display:flex}.avatar-shop-coins{color:#172033;font-size:20px;font-weight:800}.avatar-shop-hint{margin:4px 0 0;font-size:13px}.avatar-shop-message{color:#172033;background:#fff6d6;border-radius:10px;margin:10px 0 0;padding:8px 12px;font-size:14px;font-weight:650}.avatar-tile-label{color:#172033;font-size:12px;font-weight:650}@media (width>=769px){.student-home .stats-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}.sandbox-badge{z-index:1000;letter-spacing:.04em;color:#fff;pointer-events:none;background:#e67e22;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:800;position:fixed;bottom:8px;left:8px;box-shadow:0 4px 12px #0003}.sandbox-grant-button{border:2px dashed #e67e22;min-height:30px;padding:0 10px;font-size:13px}.player-avatar{color:#4f46e5;background:#e0e9ff;border-radius:50%;flex:none;justify-content:center;align-items:center;font-weight:800;display:inline-flex;overflow:hidden}.player-avatar .avatar-svg{display:block}.player-grid{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px;margin:0 0 16px;padding:0;list-style:none;display:grid}.player-tile{text-align:center;background:#f8fafc;border:1px solid #e1e7f0;border-radius:14px;flex-direction:column;align-items:center;gap:6px;padding:10px 6px;font-size:13px;font-weight:700;animation:.3s ease-out player-pop;display:flex}.player-tile.you{background:#eef4ff;border-color:#b9ccff}.player-tile-name{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}@keyframes player-pop{0%{opacity:0;transform:scale(.6)}}.leaderboard-row .player-avatar{margin:-4px 0}.leaderboard-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.weekly-report-range{margin:2px 0 0}.weekly-report-stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:0}.weekly-report-note{margin:8px 0 0}.weekly-attention-list{gap:8px;margin:0;padding:0;list-style:none;display:grid}.weekly-attention-list li{background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;flex-wrap:wrap;gap:4px 12px;padding:10px 14px;display:flex}.weekly-attention-list span{color:#9a3412}.weekly-missed{color:#b45309;font-weight:600}@media (width<=760px){.weekly-report .panel-header{flex-wrap:wrap}.weekly-report-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=560px){.weekly-report-table thead{display:none}.weekly-report-table,.weekly-report-table tbody{gap:8px;display:grid}.weekly-report-table tr{background:#f8fafc;border-radius:12px;padding:8px 12px;display:grid}.weekly-report-table td{white-space:normal;text-align:right;border:0;justify-content:space-between;gap:12px;padding:3px 0;display:flex}.weekly-report-table td:before{content:attr(data-label);color:#6b7280;text-align:left;font-size:12px;font-weight:700}}.latest-chapter-status{border-radius:999px;margin-left:8px;padding:1px 8px;font-size:13px;font-weight:600;display:inline-block}.latest-chapter-status.is-read{color:#047857;background:#ecfdf5}.latest-chapter-status.is-unread{color:#b45309;background:#fff7ed}.level-bar{background:linear-gradient(135deg,#eef2ff,#faf5ff);border:1px solid #e0e7ff;border-radius:18px;align-items:center;gap:14px;margin-bottom:18px;padding:14px 18px;display:flex}.level-bar.compact{margin-bottom:12px;padding:10px 14px}.level-badge{color:#fff;background:#4f46e5;border-radius:999px;flex:none;padding:6px 14px;font-size:15px;font-weight:800}.level-bar-body{flex:1;gap:4px;min-width:0;display:grid}.level-track{background:#e0e7ff;border-radius:999px;height:10px;overflow:hidden}.level-fill{background:linear-gradient(90deg,#6366f1,#a855f7);border-radius:999px;height:100%}.level-caption{color:#6b7280;font-size:13px}.avatar-tile.rarity-rare{border-color:#93c5fd}.avatar-tile.rarity-epic{border-color:#c4b5fd}.avatar-tile.rarity-legendary{background:#fffbeb;border-color:#fbbf24}.avatar-tile-rarity{letter-spacing:.04em;text-transform:uppercase;font-size:10px;font-weight:800}.avatar-tile-rarity.rarity-common{color:#64748b}.avatar-tile-rarity.rarity-rare{color:#2563eb}.avatar-tile-rarity.rarity-epic{color:#7c3aed}.avatar-tile-rarity.rarity-legendary{color:#b45309}.avatar-try-on-note{text-align:center;margin:4px 0 0;font-size:13px}.coin-icon{vertical-align:-.14em;flex:none;display:inline-block}.topbar-shop-button{border-radius:999px;flex-shrink:0;height:34px;min-height:0;margin-left:auto;padding:0 14px;font-size:13px;box-shadow:0 6px 14px #426dff2e}.topbar-shop-button+.sign-out-button{margin-left:0}.avatar-card-shop{margin-top:8px}@media (width>=761px){.shop-screen .avatar-editor-preview{position:sticky;top:16px}}.rarity-ladder{margin:-6px 0 18px}.rarity-ladder.compact{margin:-4px 0 12px}.rarity-steps{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0;padding:0;list-style:none;display:grid}.rarity-step{color:#94a3b8;text-align:center;background:#f8fafc;border:2px solid #e5e7eb;border-radius:12px;gap:1px;padding:7px 10px;display:grid}.rarity-step-name{font-size:13px;font-weight:800}.rarity-step-level{font-size:11px}.rarity-step.reached.rarity-common{color:#475569;background:#f1f5f9;border-color:#cbd5e1}.rarity-step.reached.rarity-rare{color:#1d4ed8;background:#eff6ff;border-color:#93c5fd}.rarity-step.reached.rarity-epic{color:#6d28d9;background:#f5f3ff;border-color:#c4b5fd}.rarity-step.reached.rarity-legendary{color:#b45309;background:#fffbeb;border-color:#fbbf24}.rarity-step.current{box-shadow:0 0 0 3px #4f46e52e}.rarity-next{color:#6b7280;margin:8px 2px 0;font-size:13px}@media (width<=560px){.rarity-step{padding:6px 4px}.rarity-step-name{font-size:11px}.rarity-step-lock{display:none}}@media (width<=768px){.student-home-columns{align-items:stretch}.student-home-side{display:contents}.student-home-side>.avatar-card{order:-1}}@media (width<=480px){.student-topbar{gap:10px}.student-topbar .brand-icon{flex:none;width:38px;height:38px}.student-topbar-who{flex:auto;min-width:0}.student-topbar-who p{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.student-topbar .topbar-shop-button,.student-topbar .sign-out-button{flex:none}}
