@font-face{font-family:CharlieArabic;src:url('./assets/arabic.ttf') format('truetype');font-display:swap;font-weight:100 900}
:root{--ink:#173e42;--muted:#627879;--teal:#19766b;--mint:#e7f2ec;--paper:#f6f8f5;--line:#dce5e0;--gold:#f3c45b;--white:#fff;font-family:CharlieArabic,Tahoma,Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #db9a22;outline-offset:4px}button:active{transform:translateY(1px)}button,input,select{min-height:48px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.wrap{width:min(1240px,calc(100% - 88px));margin-inline:auto}.topbar{display:flex;justify-content:space-between;align-items:center;padding-block:28px}.brand{display:flex;align-items:center;gap:13px}.brand b{display:block;font-family:Arial,sans-serif;font-size:24px;letter-spacing:-.8px}.brand small{display:block;color:var(--muted);font-size:13px;margin-top:4px}.brand-mark{position:relative;display:grid;place-items:center;width:50px;height:54px;border-radius:15px 15px 4px 15px;background:var(--ink);color:#fff;font:700 34px Georgia,serif}.brand-mark span{position:absolute;color:var(--gold);font-size:24px;right:-8px;top:-10px}.header-actions{display:flex;align-items:center;gap:12px}.button,.icon-button{border:0;border-radius:12px;padding:10px 19px;font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:1.7}.primary{background:var(--teal);color:white;box-shadow:0 4px 0 #105b54}.secondary{background:#fff;color:var(--ink);border:1px solid var(--line)}.danger{background:#fbebea;color:#a52828;border:1px solid #ebc2be}.icon-button{width:48px;padding:5px;background:#fff;color:var(--ink);border:1px solid var(--line);font-size:24px}.pill{background:var(--mint);color:#2c6658;padding:8px 14px;font-size:13px;border-radius:30px}.hero{position:relative;overflow:hidden;display:flex;align-items:center;min-height:386px;background:#e5f0e9;border-radius:26px;padding:40px 50px;isolation:isolate}.hero-copy{position:relative;z-index:2;width:58%}.eyebrow{font-size:13px;font-weight:700;letter-spacing:.3px;color:#4a7866}.hero h1{font-size:clamp(30px,3.3vw,45px);line-height:1.55;margin:11px 0 12px;font-weight:800;letter-spacing:-1px}.hero h1 .wave{color:#bd8128;font-size:32px;display:inline-block;vertical-align:middle}.hero p{font-size:16px;line-height:1.9;color:#54716a;margin:0 0 23px}.hero-actions{display:flex;align-items:center;gap:18px}.quiet{font-size:13px;color:var(--muted);line-height:1.8}.hero-art{position:relative;align-self:stretch;width:42%;min-height:300px;direction:ltr}.orbit{position:absolute;border:1px solid #b4cec0;border-radius:50%;width:330px;height:330px;top:-15px;left:-15px}.orbit-two{width:265px;height:265px;top:18px;left:18px}.art-book{position:absolute;width:156px;height:213px;border-radius:5px 15px 15px 5px;box-shadow:-11px 10px 0 #fff9e9, -15px 13px 0 #c3cbbb,0 23px 35px #234a3325;display:flex;flex-direction:column;justify-content:space-between;padding:25px;text-align:right;direction:rtl;line-height:1.6;font-size:24px;font-weight:800;border-left:9px solid #0001}.book-yellow{background:#edbd59;transform:rotate(-16deg);top:61px;left:-2px;color:#6c4b20}.book-teal{background:#267e72;transform:rotate(13deg);top:22px;left:138px;color:#fff9db}.art-book i{font-size:56px;font-style:normal;line-height:1;align-self:center;font-family:Arial,sans-serif}.art-spark{position:absolute;font-size:40px;color:#b87a27}.spark-one{top:3px;left:80px}.spark-two{bottom:17px;right:8px;font-size:56px;color:#317b69}.art-note{position:absolute;bottom:-5px;left:50px;background:white;box-shadow:0 4px 15px #173e4210;padding:8px 20px;border-radius:10px;transform:rotate(-5deg);font-size:13px;color:#4b6d62}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:38px 0 20px}h2{font-size:24px;margin:4px 0;font-weight:800}.count{background:#e7eee8;border-radius:9px;font-size:15px;min-width:29px;display:inline-grid;place-items:center;padding:2px 7px;margin-inline-start:9px;vertical-align:middle}.dark{color:var(--muted);font-size:12px}.filters{display:flex;gap:12px;margin-bottom:25px;align-items:center}.search{background:white;border:1px solid var(--line);border-radius:12px;display:flex;align-items:center;gap:10px;padding-inline:15px;flex:1;min-width:170px}.search span{font:30px Arial;color:#76908b}.search input{border:0;width:100%;outline:0;background:none;font-size:14px;color:var(--ink)}.filter-label{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--muted)}select{appearance:none;-webkit-appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%23557069' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat left 13px center;border:1px solid var(--line);border-radius:11px;padding:9px 12px 9px 35px;color:var(--ink);max-width:210px;font-size:14px}.book-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:23px}.book-card{min-width:0;background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px;transition:box-shadow .2s,transform .2s}.book-card:hover{box-shadow:0 10px 30px #183e420c;transform:translateY(-3px)}.cover-button{border:0;padding:0;display:block;width:100%;height:230px;background:var(--cover-bg,#eaf0ea);border-radius:10px;overflow:hidden;position:relative}.cover-button img{display:block;width:100%;height:100%;object-fit:contain;padding:10px;filter:drop-shadow(1px 5px 5px #0002)}.cover-placeholder{display:grid;align-content:center;gap:10px;height:100%;padding:22px;font-size:21px;font-weight:800;color:#426459}.cover-placeholder span{font:60px Georgia}.offline-badge{position:absolute;left:9px;bottom:9px;font-size:11px;padding:3px 7px;border-radius:6px;background:#ffffffed;color:#367057}.book-meta{padding:13px 3px 2px}.subject-tag{font-size:11px;display:inline-block;color:#337468;background:#edf5ef;border-radius:5px;padding:2px 7px}.book-meta h3{font-size:17px;line-height:1.7;margin:6px 0;overflow-wrap:anywhere}.book-subline{display:flex;justify-content:space-between;gap:6px;font-size:12px;color:var(--muted)}.progress-track{height:4px;background:#edf1ed;border-radius:5px;overflow:hidden;margin-top:12px;direction:ltr}.progress-track i{height:100%;display:block;background:var(--teal)}.book-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:7px;gap:8px}.book-bottom button{min-height:40px;border:0;background:none;color:var(--teal);font-size:13px;padding:5px}.book-bottom small{font-size:11px;color:var(--muted)}.empty{text-align:center;background:#fff;border:1px dashed #becfc5;border-radius:18px;padding:38px 20px}.empty-books{margin:auto;color:var(--teal);font-size:58px;line-height:1}.empty h3{font-size:22px;margin:12px 0}.empty p{color:var(--muted);line-height:1.9;font-size:15px}.empty small{display:block;margin-top:17px;color:var(--muted);font-size:12px}.resume{display:flex;align-items:center;gap:20px;padding:18px 24px;margin-top:23px;border:1px solid #ccded2;background:#fff;border-radius:17px}.resume img{width:46px;height:62px;object-fit:contain}.resume div{flex:1}.resume h3{margin:2px 0;font-size:18px}.resume p{margin:0;font-size:13px;color:var(--muted)}.mimi-note{display:flex;align-items:center;gap:17px;background:#eef0fa;border-radius:16px;padding:24px;margin:30px 0}.mimi-note b{font-size:16px;color:#4c537f}.mimi-note p{margin:4px 0 0;color:#777e9b;font-size:13px}.mimi-icon{font:42px Georgia;color:#787eae}.coming{margin-inline-start:auto;background:#fff9;padding:5px 13px;border-radius:20px;font-size:12px;color:#797e9d;white-space:nowrap}.footer{display:flex;gap:22px;justify-content:space-between;border-top:1px solid var(--line);padding-block:22px;font-size:12px;color:var(--muted)}.footer>span:first-child{font:bold 14px Arial}.footer>span:last-child{color:var(--teal)}dialog{border:1px solid var(--line);border-radius:20px;padding:27px;width:min(540px,calc(100% - 32px));max-height:85dvh;overflow:auto;color:var(--ink);box-shadow:0 20px 100px #143e4230;background:#fff}dialog::backdrop{background:#143e4270;backdrop-filter:blur(4px)}dialog p{font-size:15px;line-height:1.9}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.field{display:flex;flex-direction:column;gap:8px;margin:18px 0;font-size:14px}.field input,.field select{width:100%;max-width:none;border:1px solid var(--line);border-radius:9px;padding:10px;background-color:#f9fbf9;color:var(--ink)}.dialog-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:23px}.help-list{padding-inline-start:22px;font-size:15px;line-height:1.9}.help-list li{margin-bottom:12px}progress{width:100%;height:12px;accent-color:var(--teal)}.import-results{padding:0;list-style:none;max-height:240px;overflow:auto}.import-results li{padding:8px 0;border-bottom:1px solid var(--line);font-size:13px;overflow-wrap:anywhere}.storage-number{font-size:35px;font-weight:800;margin-bottom:4px}.storage-row{display:flex;justify-content:space-between;padding:13px 0;border-bottom:1px solid var(--line);font-size:14px}.toast{position:fixed;z-index:100;bottom:calc(25px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;padding:13px 22px;border-radius:12px;box-shadow:0 4px 20px #0002;max-width:90%;font-size:14px}.reader{position:fixed;inset:auto;top:var(--reader-top,0px);left:var(--reader-left,0px);z-index:10;display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-width:0;min-height:0;width:var(--reader-width,100%);height:100vh;height:var(--reader-height,100dvh);overflow:hidden;background:#dce5e1}.reader-top{display:flex;flex-wrap:wrap;min-width:0;gap:14px;align-items:center;background:#fff;padding:calc(12px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left));box-shadow:0 2px 8px #173e4210;z-index:2}.reader-top>button{flex:0 0 auto;white-space:nowrap}.reader-heading{flex:1 1 160px;min-width:0}.reader-heading h1{font-size:17px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reader-heading span{font-size:11px;color:var(--muted)}.reader-stage{overflow:auto;min-height:0;min-width:0;position:relative;padding:20px;direction:ltr;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}#page-wrap{width:max-content;min-width:100%;display:flex;justify-content:center}#pdf-canvas{background:#fff;box-shadow:0 4px 20px #163e4220;display:block;max-width:none;flex-shrink:0}.reader-loading{position:fixed;inset:45% 25% auto;background:#fff;padding:20px;text-align:center;border-radius:15px;box-shadow:0 5px 30px #0002;direction:rtl}.reader-controls{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px;padding:12px max(15px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(15px,env(safe-area-inset-left));min-width:0;background:#fff;border-top:1px solid var(--line);direction:ltr}.reader-controls>button,.reader-controls form{flex:0 0 auto}.reader-controls form{display:flex;align-items:center;gap:8px;font-size:13px;direction:rtl}.reader-controls input{width:66px;text-align:center;border:1px solid var(--line);border-radius:9px;color:var(--ink);font-size:16px;padding:3px}.compact{background:#eaf2ec;min-height:44px;font-size:13px;padding:7px 13px}.control-divider{height:24px;width:1px;background:var(--line);margin-inline:5px}#bookmark-toggle[aria-pressed=true]{background:#fff3cc;color:#88600d}#bookmark-list .button{display:flex;width:100%;justify-content:space-between;margin-top:9px}html.reader-open,body.reader-open{overflow:hidden;overscroll-behavior:none}body.reader-open{position:fixed;inset:0;width:100%;height:100%}
@media(min-width:1450px){.hero-art{margin-left:60px}.cover-button{height:260px}}
@media(max-width:1000px){.wrap{width:calc(100% - 48px)}.hero{padding:30px}.hero-art{transform:scale(.85);transform-origin:left center}.hero-copy{width:60%}.hero h1{font-size:34px}.filters{flex-wrap:wrap}.search{flex-basis:100%}.filter-label{flex:1}.filter-label select{flex:1;max-width:none}.book-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.cover-button{height:240px}.footer{flex-wrap:wrap}.header-actions .pill{display:none}}
@media(max-width:680px){.wrap{width:calc(100% - 30px)}.topbar{padding-block:20px}.brand b{font-size:20px}.brand small{font-size:11px}.brand-mark{width:43px;height:46px}.header-actions{gap:7px}.header-actions .button{font-size:12px;padding:7px 10px}.header-actions .icon-button{width:42px;min-height:42px}.hero{padding:27px 23px;min-height:325px}.hero-copy{width:100%}.hero-art{position:absolute;left:-140px;top:20px;opacity:.15;transform:scale(.9);z-index:-1;width:320px}.hero h1{font-size:33px}.hero p{font-size:14px}.hero-actions{gap:12px}.hero-actions .quiet{font-size:11px}.hero .primary{padding-inline:18px}.section-heading{margin-top:29px}.section-heading h2{font-size:21px}.section-heading .button{font-size:12px;padding:8px 12px}.filter-label{flex:1 1 42%;flex-direction:column;align-items:stretch;gap:5px}.filters .filter-label:last-child{flex-basis:100%;flex-direction:row;align-items:center}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.book-card{padding:8px;border-radius:13px}.cover-button{height:200px}.book-meta h3{font-size:15px}.book-subline{font-size:11px;flex-wrap:wrap}.mimi-note{padding:19px 15px;gap:12px}.mimi-note p{font-size:12px}.mimi-note b{font-size:14px}.mimi-icon{font-size:32px}.footer{gap:12px;font-size:11px}.footer>span:nth-child(2){display:none}.reader-top{gap:8px}.reader-top .button{font-size:12px;padding:8px 12px}.reader-heading h1{font-size:14px}.reader-heading span{font-size:10px}.reader-top .icon-button{width:40px}.reader-controls{gap:6px;padding-left:max(6px,env(safe-area-inset-left));padding-right:max(6px,env(safe-area-inset-right))}.reader-controls .icon-button{width:40px;min-height:44px}.reader-controls .control-divider,.reader-controls #zoom-label{display:none}.reader-controls form{gap:5px}.reader-controls .compact{padding-inline:10px}.reader-stage{padding:10px}.resume{gap:12px;padding:14px}.resume h3{font-size:15px}.resume .button{font-size:12px;padding:8px 12px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Answer layer shares the canvas CSS coordinate system. */
#page-surface{position:relative;flex-shrink:0;width:max-content;height:max-content}
#solution-layer{position:absolute;inset:0;pointer-events:none;overflow:hidden;color:#00852d;direction:ltr}
#solution-layer svg{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:#00852d;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.solution-text{position:absolute;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45;font-family:Arial,"Segoe UI",sans-serif;font-weight:600;display:block;text-align:start;overflow:hidden}

.collection-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.header-actions{flex-wrap:wrap;justify-content:flex-end}
.version-button{border:0;background:none;color:var(--teal);min-height:44px;padding:3px 0;font-size:14px;display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}.version-button[data-ready=true]::after{content:'تحديث جاهز';font-size:12px;background:var(--mint);border-radius:8px;padding:3px 7px}.update-banner{padding:14px 18px;background:var(--mint);border:1px solid var(--line);border-radius:12px;margin-bottom:18px;min-width:0;direction:rtl}.update-summary{display:flex;justify-content:space-between;align-items:center;gap:12px}.update-dismiss{border:0;background:none;color:var(--ink);min-height:36px;min-width:36px;font-size:24px}.update-banner progress{display:block;margin:6px 0}.update-banner small{display:block;color:var(--muted)}.update-banner p{font-size:14px;margin:6px 0;line-height:1.7}.update-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px}.reader-top>.update-banner{flex:1 0 100%;margin:0;padding:10px 14px}.reader-top .update-actions .button{font-size:14px}.update-banner strong{font-size:15px}#update-notice{color:#88600d;font-size:14px}

@media(max-width:680px){.reader-top{flex-wrap:wrap}.reader-heading{min-width:100px}.collection-actions{max-width:55%}}

#usage-dialog{width:min(740px,calc(100% - 32px))}.usage-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.usage-card{min-width:0;border:1px solid var(--line);border-radius:12px;padding:16px;background:#f9fbf9}.usage-card h3{margin:0 0 12px;font-size:17px}.usage-card dl{margin:0}.usage-row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line);font-size:14px}.usage-row dd{margin:0;font-weight:700;direction:ltr}.usage-card summary{cursor:pointer;font-size:14px;margin-top:12px}.usage-card .quiet{font-size:12px}.usage-card details .usage-row{font-size:12px}@media(max-width:600px){.usage-cards{grid-template-columns:1fr}}
#references-dialog{width:min(620px,calc(100% - 32px))}#references-input{display:block;width:100%;margin-top:10px;padding:12px;border:1px solid var(--line);border-radius:10px;font-size:16px}#references-error{color:#a03125}#references-used{font-size:14px;color:var(--teal)}

.library-download-panel,.installation-success{padding:18px 22px;background:var(--mint);border:1px solid var(--line);border-radius:12px;margin-block:16px}.library-download-panel h3{margin-top:0}.library-download-panel progress{width:100%;height:18px}.library-download-panel p{margin:8px 0;line-height:1.6}.installation-page{max-width:1100px;padding-block:35px}.installation-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:25px}.installation-options section,.installation-notes{padding:24px;background:#fff;border:1px solid var(--line);border-radius:15px}.installation-options li{margin:12px 0;line-height:1.8}.installation-notes{margin-top:24px;line-height:1.8}#installer-sha256{display:block;overflow-wrap:anywhere;font-size:12px;margin-top:12px}.installation-page h1{font-size:32px}@media(max-width:700px){.installation-options{grid-template-columns:1fr}.installation-options section{padding:18px}.installation-page h1{font-size:26px}}

.book-correct{width:100%;margin-top:12px;white-space:normal;font-size:14px}#correction-dialog{width:min(760px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto}#correction-progress{width:100%;height:18px}#correction-counts,#correction-current{line-height:1.9}#correction-error,#correction-failures{color:#a03125}#correction-failures:empty{display:none}#correction-local{color:var(--teal)}@media(max-width:480px){#correction-dialog{padding:18px}#correction-dialog .dialog-actions .button{flex:1 1 130px}}

/* Both modes use the same library, PDF canvas, answer layer and local stores. */
.pin-gate{max-width:440px;margin:8vh auto;padding:28px;background:#fff;border:1px solid var(--line);border-radius:18px;width:calc(100% - 32px)}.pin-gate a{color:var(--teal)}.pin-gate h1{font-size:28px}.pin-gate input{width:100%;padding:14px;font-size:24px;letter-spacing:8px;direction:ltr;border:1px solid var(--line);border-radius:10px}.pin-gate .button{width:100%;margin-top:12px}#admin-pin-error,#admin-pin-change-error{color:#a03125}#admin-pin-change-dialog{width:min(460px,calc(100% - 24px))}.study-only{display:none}
body[data-mode=student] .brand{-webkit-touch-callout:none;user-select:none;touch-action:manipulation}
body[data-mode=admin][data-admin-locked=true] #library,body[data-mode=admin][data-admin-locked=true] #reader{display:none!important}
body[data-mode=student] .header-actions,body[data-mode=student] .hero,body[data-mode=student] #resume,body[data-mode=student] .filters,body[data-mode=student] .collection-actions,body[data-mode=student] .mimi-note,body[data-mode=student] .footer,body[data-mode=student] .book-correct,body[data-mode=student] .book-bottom,body[data-mode=student] .progress-track,body[data-mode=student] .subject-tag,body[data-mode=student] .book-subline,body[data-mode=student] .offline-badge,body[data-mode=student] .eyebrow,body[data-mode=student] #library-download-panel,body[data-mode=student] #library-download-last,body[data-mode=student] #library-update-slot,body[data-mode=student] .update-banner,body[data-mode=student] #install-success,body[data-mode=student] dialog,body[data-mode=student] #empty,body[data-mode=student] #no-results{display:none!important}
body[data-mode=student] .study-only:not([hidden]){display:block}body[data-mode=student] .topbar{padding-block:14px}body[data-mode=student] .brand-mark{width:45px;height:45px;font-size:28px}body[data-mode=student] .brand b{font-size:23px}body[data-mode=student] .brand small{display:none}body[data-mode=student] .collection{margin-top:0}body[data-mode=student] .section-heading{margin-bottom:16px}body[data-mode=student] .section-heading h2{font-size:24px}body[data-mode=student] .book-meta{padding:12px}body[data-mode=student] .book-meta h3{margin:0;font-size:17px;line-height:1.65}body[data-mode=student] .book-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:18px}
body[data-mode=student] .reader-top>:not(#reader-back):not(.reader-heading):not(#solve-page):not(.teacher-entry):not(#lesson-index){display:none!important}body[data-mode=student] #zoom-in,body[data-mode=student] #zoom-out,body[data-mode=student] #zoom-fit,body[data-mode=student] #zoom-label,body[data-mode=student] .control-divider{display:none!important}body[data-mode=student] .reader-top{flex-wrap:nowrap;gap:8px;padding:8px max(10px,env(safe-area-inset-right)) 8px max(10px,env(safe-area-inset-left))}body[data-mode=student] .reader-heading{min-width:0;flex:1}body[data-mode=student] .reader-heading h1{font-size:clamp(14px,2vw,20px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body[data-mode=student] #reader-status{font-size:12px}body[data-mode=student] #reader-back,body[data-mode=student] #solve-page{min-height:48px;padding:8px 12px;font-size:15px;white-space:nowrap}body[data-mode=student] .reader-controls{display:grid;grid-template-columns:52px minmax(0,1fr) 52px;gap:8px;padding:8px max(10px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}body[data-mode=student] #page-form{justify-content:center;gap:7px;min-width:0}body[data-mode=student] #page-input{width:60px;min-height:48px;font-size:19px}body[data-mode=student] #page-prev,body[data-mode=student] #page-next{width:52px;min-height:48px}body[data-mode=student] #page-form .button{min-height:48px;font-size:15px}body[data-mode=student] #page-form label,body[data-mode=student] #page-total{font-size:15px}
@media(max-width:400px){body[data-mode=student] .book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}body[data-mode=student] .book-meta h3{font-size:14px}body[data-mode=student] #page-form{gap:4px}body[data-mode=student] #page-input{width:48px}body[data-mode=student] #page-form label{display:none}}

.book-correction-status{display:flex;align-items:center;gap:7px;font-size:12px;margin-top:9px;line-height:1.8}.correction-dot{display:inline-block;flex:0 0 11px;width:11px;height:11px;border-radius:50%;background:#cf3434}.book-correction-status[data-state=partial] .correction-dot{background:#d98414}.book-correction-status[data-state=verified] .correction-dot{background:#21854a}.book-correction-status[data-state=running] .correction-dot{background:#287bde;animation:correction-pulse 1.1s ease-in-out infinite}@keyframes correction-pulse{50%{opacity:.3;box-shadow:0 0 0 4px #287bde25}}@media(prefers-reduced-motion:reduce){.book-correction-status[data-state=running] .correction-dot{animation:none}}

#admin-enter{flex:0 0 auto;font-size:14px;white-space:nowrap}body[data-mode=admin] #admin-enter{display:none}
