/* A quiet reading room. Existing study and assessment behavior stays in app.js. */
:root{--blue:#2d5145;--blue-hover:#1d3c32;--ink:#29372e;--muted:#77766b;--line:#e2dbcb;--paper:#fffdf6;--back:#f1eee5;--soft:#eeeade;--yellow:#e5b66a;--success:#28533f;--radius-lg:12px}
body{background:#f1eee5;color:var(--ink)}
.sidebar{position:static;inset:auto;width:100%;padding:19px max(28px,calc((100vw - 1280px)/2));display:flex;flex-direction:row;overflow:visible;align-items:center;gap:40px;background:#fffdf7;color:var(--ink);border:0;border-bottom:1px solid var(--line);box-shadow:none}
.brand{padding:0;min-width:225px;gap:12px}.brand-icon{background:#2d5145;color:#f6e8bf;border-radius:5px;width:43px;height:48px;box-shadow:3px 2px 0 #d5bc87;font-size:26px}.brand strong{color:var(--ink);font-family:Georgia,'Noto Serif Devanagari',serif;font-size:18px;line-height:1.4}.brand small{color:var(--muted);font-size:12px;margin-top:3px}
.side-label,.sidebar-foot{display:none}#subjects{display:flex;flex-direction:row;flex:1;justify-content:flex-end;gap:4px;margin:0;flex-wrap:wrap}.subject{width:auto;border:0;color:#696d60;padding:8px 12px;min-height:40px;border-radius:6px;background:transparent;gap:7px;flex-direction:row}.subject:hover{background:#eeeade;color:var(--blue)}.subject.active{background:#e8ecdf;color:#294a3d;box-shadow:none}.subject .subject-icon{display:none}.subject .subject-name{font-size:14px;font-weight:600}
.workspace{margin:0}.topbar{max-width:1280px;margin:0 auto;padding:15px 28px;color:#7b7a6f;border-bottom:0;background:transparent;font-size:12px}.session{gap:10px}.session b{background:#e4e6d8;color:#49634b;font-size:11px}
main{max-width:1280px;margin:0 auto;padding:12px 28px 44px}.heading{margin:21px 0 20px;gap:20px}.eyebrow{font-size:11px;letter-spacing:.12em;font-weight:600;color:#8b806a;margin:0 0 6px}.heading h1{font-family:Georgia,'Noto Serif Devanagari',serif;font-size:clamp(26px,3vw,36px);line-height:1.5;color:#293c31}.heading p{margin:3px 0}.heading #subject-note{font-size:14px;color:#7c7b6d}.chapter-count{background:transparent;border:0;border-left:1px solid #d9d2c0;border-radius:0;min-width:110px;padding:0 0 0 20px}.chapter-count strong{font-family:Georgia,serif;font-size:28px;color:#40583c}.chapter-count span{font-size:11px}
.student-profile{padding:12px 17px;background:#e9e9dd;border:1px solid #dedfce;border-radius:8px;gap:20px;margin:0}.student-avatar{width:36px;height:36px;border-radius:50%;background:#d6dbc8;color:#506045;font-size:20px}.profile-person{gap:10px;min-width:180px}.profile-kicker{font-size:10px}.profile-person h2{font-size:15px}.profile-person small{font-size:11px}.profile-stats{gap:22px}.profile-stats strong{font-size:17px}.profile-stats span{font-size:10px}.profile-edit{padding:7px 11px;background:transparent;border:1px solid #c9cdbb;border-radius:5px;color:#52604c;font-size:12px}.profile-form{padding-top:12px}
.modes{margin:0 0 20px;background:transparent;border:0;border-bottom:1px solid #d8d2c1;border-radius:0;padding:0;gap:28px;width:100%;display:flex;overflow:visible}.modes button{border:0;border-bottom:2px solid transparent;border-radius:0;margin-bottom:-1px;padding:11px 0;color:#77796d;background:transparent;font-size:14px;font-weight:500}.modes button.active{color:#304e3e;border-bottom-color:#304e3e;background:transparent;box-shadow:none}.modes button:hover{background:transparent;color:#294a3d}
.book-reader{padding-top:5px}.book-ribbon{display:flex;justify-content:space-between;align-items:center;color:#87816e;font-size:11px;letter-spacing:.06em;margin:0 10px 12px}.book-ribbon span:first-child{color:#6c775a;font-weight:600}
.book-spread{position:relative;display:grid;grid-template-columns:1fr 1fr;isolation:isolate;border-radius:7px 10px 10px 7px;box-shadow:0 20px 45px -20px #4e44294d,0 5px 12px #5f553014,0 2px 0 #fff8e5,0 5px 0 #d9d0bb,0 8px 0 #ece5d3;scroll-margin-top:20px;perspective:1400px}
.book-spread:before{content:'';position:absolute;z-index:2;top:0;bottom:0;left:calc(50% - 10px);width:20px;background:linear-gradient(90deg,#47381a05,#7763421c 42%,#47381a25 50%,#fff7de05);pointer-events:none}
.book-page{background:#fffdf6;min-width:0;display:flex;flex-direction:column;padding:27px 38px 20px;position:relative;min-height:650px}.book-left{background:linear-gradient(90deg,#fffdf6 93%,#eee7d5);border:1px solid #ded5bf;border-right:0;border-radius:7px 0 0 7px}.book-right{background:linear-gradient(90deg,#ece5d3,#fffdf7 4%);border:1px solid #ded5bf;border-left:0;border-radius:0 10px 10px 0;transform-origin:left center}
.book-right:before{content:'';position:absolute;top:-1px;right:30px;width:17px;height:47px;background:#b87756;clip-path:polygon(0 0,100% 0,100% 100%,50% 82%,0 100%);box-shadow:0 2px 3px #0002}
.book-running-head{display:flex;justify-content:space-between;gap:10px;padding-bottom:15px;border-bottom:1px solid #e8e1d0;color:#949080;font-size:10px;letter-spacing:.05em;line-height:1.6}.book-right .book-running-head{padding-right:22px}.book-chapter-number{color:#a2885e;letter-spacing:.12em;font-size:12px;margin-top:32px}.book-left>h2{font-family:Georgia,'Noto Serif Devanagari',serif;font-size:clamp(24px,2.6vw,32px);line-height:1.6;margin:9px 0 17px;color:#2c4433;font-weight:600}.book-rule{height:1px;background:#e1d8c0;text-align:center;margin:3px 0 28px}.book-rule span{position:relative;top:-13px;background:#fffdf6;padding:0 12px;color:#b49869;font-size:16px}
.book-kicker{font-size:10px;letter-spacing:.1em;color:#9c8054}.book-concept h3{font-size:17px;margin:5px 0 9px;color:#435541}.book-concept p{font-size:16px;line-height:2.05;color:#5d6152;margin:0}.book-reading-tip{display:flex;gap:12px;background:#f1f0e3;border:1px solid #e8e5d3;border-left:3px solid #9ba57c;padding:13px 15px;margin-top:24px;border-radius:0 6px 6px 0}.book-reading-tip>span{color:#7c8b61;font-size:23px;line-height:1.4}.book-reading-tip p{font-size:12px;line-height:1.9;margin:0;color:#777966}
.book-contents{margin-top:26px;border-top:1px solid #e5ddc9;border-bottom:1px solid #e5ddc9;padding:12px 0}.book-contents summary{font-size:13px;color:#54624b;cursor:pointer;font-weight:600}.book-contents summary>span{float:right;color:#99917c;font-size:11px;font-weight:400}.book-contents nav{margin-top:10px}.book-contents button{display:flex;text-align:left;gap:12px;align-items:baseline;width:100%;padding:8px 5px;border:0;border-bottom:1px solid #eee7d5;background:transparent;color:#71725e;font-size:12px}.book-contents button>span{font-family:Georgia,serif;color:#aaa084;font-size:12px}.book-contents button>b{margin-left:auto}.book-contents button[aria-current]{color:#31503a;background:#eeefdf;font-weight:600}.book-contents button:hover{background:#f1eee1}
.book-learning-progress{display:flex;flex-wrap:wrap;gap:6px;justify-content:space-between;margin-top:auto;padding-top:28px;font-size:11px;color:#888672}.book-learning-progress strong{font-weight:500;color:#677052}.book-learning-progress progress{flex-basis:100%;height:4px;margin-top:3px;accent-color:#77845b}
.book-question-label{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#968b71;margin-top:32px}.book-question-label>span:first-child{background:#f0ead8;padding:2px 8px;border-radius:3px;color:#998050}.book-right .question{font-size:clamp(19px,2vw,23px);font-weight:600;line-height:1.9;margin:17px 0 12px;color:#344334;outline:none}.book-instruction{font-size:11px;color:#9c9686;margin:3px 0 13px}.book-right .options{grid-template-columns:1fr;gap:9px}.book-right .option{background:#fffdf6;border:1px solid #e2dccb;border-radius:6px;padding:10px 13px;min-height:47px;gap:12px;box-shadow:none}.book-right .option:hover:not(:disabled){border-color:#9da581;background:#f6f5e9}.book-right .option-letter{width:25px;height:25px;font-size:12px;flex-shrink:0;background:#eeeadd;color:#8f8b73}.book-right .option-text{font-size:15px}.book-right .option.selected{border-color:#7b8e68;background:#edf0e3}.book-right .option.selected .option-letter{background:#58734c;color:#fff}.book-right .option.correct{background:#e8f0e3;border-color:#7a9b70}.book-right .option.wrong{background:#f9eae0;border-color:#c28a73}
.book-actions{gap:9px;margin-top:19px;align-items:center}.book-actions .primary,.book-actions .secondary{font-size:12px;padding:9px 13px;border-radius:5px}.book-actions .primary{background:#345441;color:#fff;border:1px solid #345441}.book-actions .secondary{background:transparent;border-color:#d5d0bd;color:#7c7c65}.book-actions .link-button{font-size:12px;color:#6c7b53;padding:8px 2px;margin-left:auto}
.book-right .hint,.book-right .feedback{font-size:13px;line-height:1.9;padding:13px;margin:17px 0 0}.book-right .solution{margin-top:23px;padding-top:18px;border-top:1px solid #dfd5bd}.book-right .solution h3{font-size:16px}.book-right .steps li{font-size:14px}.book-notes{margin:24px 0 0;border-top:1px dashed #dcd4bd;padding-top:13px}.book-notes summary{font-size:12px;color:#8a826d;cursor:pointer}.book-notes .notebook{padding-top:10px;margin:0;border:0}.book-notes label{font-size:11px}.book-notes textarea{min-height:130px;font-size:14px;line-height:2;border-radius:5px;border-color:#dfd7c1;background:repeating-linear-gradient(#fffdf6,#fffdf6 27px,#e8e2d0 28px)}.book-notes .note{font-size:10px}
.book-folio{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #e5decc;color:#aba28c;font-size:9px;margin-top:27px;padding-top:13px}.book-right .book-folio{margin-top:auto;padding-top:13px;position:relative;top:9px}.book-folio>span:last-child{font-family:Georgia,serif;font-size:12px}.book-page-controls{display:flex;justify-content:space-between;align-items:center;margin:26px 5px 0;gap:15px}.book-turn{display:flex;align-items:center;gap:12px;background:transparent;border:1px solid #d0ccb9;color:#687158;border-radius:6px;padding:10px 19px;font-size:13px}.book-turn-next{background:#2f5142;border-color:#2f5142;color:#fff}.book-turn:hover:not(:disabled){box-shadow:0 3px 10px #3544311a}.book-turn:disabled{opacity:.35}.book-turn>span{font-size:20px;line-height:1}.book-page-indicator{color:#918c79;font-size:11px}.book-page-indicator strong{color:#53654a;font-weight:600}.book-bottom-note{text-align:center;font-size:11px;color:#9d9681;margin:19px 0 0}
.study-backup{margin-top:36px;background:transparent;border:1px solid #ded9c7;padding:17px 22px;box-shadow:none}.study-backup h2{font-size:16px;color:#5e6a50}.study-backup p{font-size:12px;color:#8a8774;margin:6px 0 12px}.study-backup .actions{gap:10px}.study-backup .secondary{font-size:11px;padding:7px 10px;background:transparent;border-color:#cfcbb9;border-radius:4px;color:#6f775f}footer{font-size:10px;color:#a09986;margin-top:18px}.card:not(.study-backup){background:#fffdf6;border-color:#e2dac5;box-shadow:0 4px 16px #4d432808}.badge{background:#eeecdf;color:#6a7757}.test-details div{background:#f2eedf}.test-icon{background:#e5e9d8;color:#4d6746}
:focus-visible{outline:3px solid #a27d45;outline-offset:4px}.book-page-controls button:focus-visible{outline-offset:4px}
@media(max-width:1050px){.sidebar{padding:18px 24px;gap:20px}.brand{min-width:205px}.subject{padding:7px 9px}.book-page{padding:24px 27px 19px}.book-page{min-height:630px}.profile-person small{display:none}}
@media(max-width:760px){.sidebar{padding:16px 20px;display:block}.brand{justify-content:center}.brand strong{font-size:19px}#subjects{display:flex;justify-content:center;gap:4px;margin-top:15px}.subject{padding:7px 10px}.subject .subject-name{font-size:13px}.topbar{padding:12px 20px}.topbar>span:first-child{display:none}.session{display:flex;justify-content:center;width:100%}main{padding:6px 18px 30px}.student-profile{gap:12px;padding:11px 13px}.profile-person{min-width:0;flex:1;width:auto}.student-avatar{width:32px;height:32px}.profile-stats{display:none}.profile-person h2{font-size:14px}.profile-person small{display:none}.profile-form{order:4;width:100%}.profile-edit{font-size:11px}.heading{margin:20px 0 16px}.heading h1{font-size:27px}.heading #subject-note{font-size:12px}.chapter-count{min-width:75px;padding-left:12px}.chapter-count strong{font-size:24px}.chapter-count span{font-size:10px}.modes{display:flex;gap:0;justify-content:space-between;overflow-x:auto;flex-wrap:nowrap;margin-bottom:18px}.modes button{font-size:12px;padding:10px 6px;white-space:nowrap;flex:none}.book-ribbon{font-size:9px;margin-left:3px;margin-right:3px;gap:12px}.book-spread{display:block}.book-spread:before{display:none}.book-page{min-height:0;padding:22px 24px;border:1px solid #ded5bf;border-radius:0}.book-left{border-radius:7px 7px 0 0;background:linear-gradient(90deg,#fffdf6 97%,#f2ecdc);padding-bottom:22px}.book-right{border-radius:0 0 8px 8px;background:#fffdf6;border-top:1px dashed #d7ccb0;padding-top:23px}.book-left .book-running-head{font-size:9px}.book-chapter-number{margin-top:22px}.book-left>h2{font-size:25px;margin-bottom:13px}.book-rule{margin-bottom:22px}.book-concept h3{font-size:16px}.book-concept p{font-size:15px;line-height:2}.book-reading-tip{margin-top:19px;padding:10px 13px}.book-contents{margin-top:18px}.book-learning-progress{padding-top:20px;font-size:10px}.book-left .book-folio{display:none}.book-running-head{font-size:9px}.book-question-label{margin-top:25px}.book-right .question{font-size:20px}.book-right .options{gap:8px}.book-right .option{padding:10px 12px}.book-right .option-text{font-size:15px}.book-actions{display:flex;gap:9px;flex-wrap:wrap}.book-actions>.primary{order:0;flex:1 1 auto}.book-actions>.secondary{flex:1 1 auto}.book-actions>.link-button{flex:none;margin:0}.book-folio{margin-top:24px!important;font-size:9px}.book-page-controls{gap:9px;margin-top:24px}.book-turn{font-size:11px;padding:9px 11px;gap:7px}.book-turn>span{font-size:17px}.book-page-indicator{font-size:10px;white-space:nowrap}.study-backup{padding:15px 17px;margin-top:30px}.study-backup .actions{flex-wrap:wrap}.study-backup h2{font-size:15px}.book-bottom-note{font-size:10px}}
@media(prefers-reduced-motion:reduce){.book-page{animation:none!important;transform:none!important}}
/* Shared brand treatment across reading, tests, papers and model exams. */
.brand-logo{display:block;width:64px;height:64px;object-fit:contain;flex-shrink:0}
.sidebar{border-top:3px solid #b49869;box-shadow:0 3px 16px #29372e05}
.brand strong{font-size:20px;letter-spacing:-.5px;color:#254737}.brand small{letter-spacing:.02em;color:#626958}
.subject{transition:background .15s,color .15s}.subject.active{background:#2d5145;color:#fffdf6}.subject:hover:not(.active){background:#eceee3}
.student-profile{background:linear-gradient(110deg,#f5f4eb,#e8ecdf);border-color:#dce0d0}
.modes button{min-height:48px}.modes button.active{font-weight:700;border-bottom-width:3px}
input,select,textarea{border-color:#c9cdbd;border-radius:6px;background:#fffdf6}
.secondary,.profile-edit{background:#eeeee3;border-color:#d3d6c5;color:#3d5141}.secondary:hover:not(:disabled),.profile-edit:hover{background:#e3e7d8}
.primary{box-shadow:0 3px 8px #2d514512}.primary:hover:not(:disabled){background:#1d3c32}
.option-letter{background:#eeecdf;color:#5c6852}.option:hover:not(:disabled){background:#f2f3e7}
.pattern-tabs,.pattern-focus,.pattern-own-answer p{background:#eeeee3}.pattern-own-answer p{border-left-color:#a4ad8b}
.pattern-year{background:#f1e8ce;color:#72592d}.resources a{border-color:#d9dccb}
.book-running-head,.book-instruction,.book-folio,.book-bottom-note{color:#756f5c}.study-backup p,footer{color:#706c5e}
.book-page-indicator{color:#706c5e}.book-question-label{color:#79705d}.book-kicker{color:#80683f}
@media(max-width:760px){.brand-logo{width:56px;height:56px}.brand strong{font-size:20px}.sidebar{padding-top:14px;padding-bottom:14px}.subject{min-height:44px}.book-running-head{font-size:10px}.book-folio{font-size:10px}footer{font-size:11px}}
@media print{.book-ribbon,.book-page-controls,.book-bottom-note,.book-notes,.book-contents,.book-learning-progress,.book-reading-tip,.book-running-head,.book-folio{display:none!important}.book-spread{display:block;box-shadow:none;border:0}.book-spread:before,.book-right:before{display:none}.book-page{display:block;min-height:0;background:#fff!important;padding:0;border:0}.book-left{margin-bottom:24px}.book-right .question{font-size:20px}}
