#books .books-v70-root{display:grid;grid-template-rows:auto minmax(clamp(500px,calc(100vh - 250px),840px),1fr);gap:12px;min-height:clamp(640px,calc(100vh - 150px),960px);width:100%;min-width:0;box-sizing:border-box;padding:12px;border:1px solid #d8c7d2;border-radius:14px;background:#fffaf5;color:#50354f}
#books .books-v70-top{display:grid;grid-template-rows:repeat(2,minmax(42px,auto));gap:8px;min-width:0;width:100%;box-sizing:border-box;padding:10px;border:1px solid #e5d7df;border-radius:10px;background:#fffdfb}
#books .books-v70-ranges{display:flex;gap:8px;min-width:0;width:100%;align-items:stretch}
#books .books-v70-variants{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:8px;min-width:0;width:100%;align-items:stretch}
#books .books-v70-ranges button,#books .books-v70-variants button{min-width:0;min-height:42px;height:42px;box-sizing:border-box}
#books .books-v70-ranges button{flex:1 1 0}
#books .books-v70-collections{display:grid;grid-template-rows:repeat(4,82px);gap:12px;align-content:start;height:100%;min-width:0;box-sizing:border-box}
#books .books-v70-body{display:grid;grid-template-columns:minmax(190px,16%) minmax(0,1fr) minmax(220px,19%);gap:12px;min-width:0;min-height:clamp(500px,calc(100vh - 250px),840px);height:100%;box-sizing:border-box}
#books .books-v70-collections,#books .books-v70-viewer,#books .books-v70-controls{min-width:0;min-height:0;width:100%;box-sizing:border-box;padding:12px;border:1px solid #e5d7df;border-radius:10px;background:#fffdfb}
#books .books-v70-viewer{height:100%;display:grid;grid-template-rows:minmax(0,1fr);min-height:0;overflow:hidden}
#books .books-v70-viewer-stage{display:flex;width:100%;height:100%;min-width:0;min-height:0;overflow:auto;padding:12px;box-sizing:border-box}
#books .books-v70-page-surface{display:grid;place-items:center;flex:0 0 auto;background:#fff;box-shadow:0 1px 7px rgba(80,50,70,.14)}
#books .books-v70-canvas{display:none;max-width:none}
#books .books-v70-viewer-message{display:grid;place-items:center;width:100%;height:100%;min-height:0;color:#806b78;text-align:center}
#books .books-v70-viewer-stage.books-v70-stage-empty{overflow:hidden}
#books .books-v70-viewer-stage.books-v70-stage-empty .books-v70-viewer-message{display:grid;flex:1 1 auto}
#books .books-v70-viewer-stage.books-v70-stage-ready .books-v70-viewer-message{display:none}
#books .books-v70-controls{display:grid;align-content:start;gap:10px;height:100%;overflow-x:hidden}
#books .books-v70-page-nav,#books .books-v70-zoom{display:flex;align-items:center;gap:6px}
#books .books-v70-page-nav button,#books .books-v70-zoom button,#books .books-v70-collection,#books .books-v70-range,#books .books-v70-variant{min-width:0;padding:8px;border:1px solid #c9afbd;border-radius:8px;background:#fff9ef;color:#563754;cursor:pointer}
#books .books-v70-page-nav span,#books .books-v70-zoom span{flex:1;text-align:center;white-space:nowrap}
#books .books-v70-collection.is-active,#books .books-v70-range.is-active,#books .books-v70-variant.is-active{background:#66435f;color:#fff}
#books .books-v70-range[hidden],#books .books-v70-variant[hidden]{display:none}
#books .books-v70-collection.is-active,#books .books-v70-range.is-active,#books .books-v70-variant.is-active{background:#66435f!important;color:#fff!important;border-color:#66435f!important;box-shadow:0 3px 0 rgba(82,52,77,.18)}
#books .books-v70-page-nav{display:grid;grid-template-columns:minmax(0,1fr) 58px minmax(0,1fr);align-items:center;gap:6px;width:100%;min-width:0}
#books .books-v70-page-nav button{width:100%;min-width:0}
#books .books-v70-page-nav span{width:58px;flex:none;text-align:center;white-space:nowrap}
#books .books-v70-zoom{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;gap:6px;width:100%;min-width:0}
#books .books-v70-zoom button,#books .books-v70-zoom span{width:100%;min-width:0;box-sizing:border-box;text-align:center}
#books .books-v70-mode-toggle{display:block;width:100%;min-width:0;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#books .books-v70-teacher-actions{display:grid;gap:6px;width:100%;min-width:0;box-sizing:border-box}
#books .books-v70-teacher-actions>div{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#books .books-v70-teacher-actions button{width:100%;min-width:0;box-sizing:border-box}
html[data-ege-role="student"] body #books .books-v70-collection.is-active,html[data-ege-role="student"] body #books .books-v70-range.is-active,html[data-ege-role="student"] body #books .books-v70-variant.is-active{background:#315f3a!important;color:#fff!important;border-color:#244a2d!important;box-shadow:inset 0 0 0 2px rgba(255,255,255,.28),0 3px 0 rgba(24,54,31,.28)}

/* E1B: confirmed visual tokens only; geometry remains unchanged. */
#books .books-v70-root{background:#FDF2E6;border:2px solid #D7BCA8;border-radius:18px;box-shadow:0 10px 24px rgba(81,50,77,.16),inset 0 0 0 1px rgba(255,255,255,.65);color:#50354F}
#books .books-v70-top{background:#FDF2E6;border-color:#D7BCA8;border-radius:12px;box-shadow:0 3px 10px rgba(81,50,77,.06)}
#books .books-v70-collections,#books .books-v70-viewer,#books .books-v70-controls{background:#FCF3E9;border-color:#D7BCA8;border-radius:14px;box-shadow:0 7px 18px rgba(81,50,77,.10)}
#books .books-v70-collection,#books .books-v70-range,#books .books-v70-variant,#books .books-v70-page-nav button,#books .books-v70-zoom button,#books .books-v70-mode-toggle,#books .books-v70-teacher-actions button{background:#F3E9EC;color:#50354F;border-color:#D7BCA8;border-radius:9px;box-shadow:0 3px 0 rgba(81,50,77,.12)}
#books .books-v70-collection.is-active,#books .books-v70-range.is-active,#books .books-v70-variant.is-active{background:#66435F!important;color:#fff!important;border-color:#66435F!important;box-shadow:0 4px 0 rgba(81,50,77,.22)!important}
#books .books-v70-page-surface{background:#FEFBF8;box-shadow:inset 0 0 0 1px rgba(215,188,168,.45),8px 8px 18px rgba(81,50,77,.12)}
#books .books-v70-viewer-message,#books .books-v70-controls>b,#books .books-v70-teacher-actions>b,#books .books-v70-teacher-actions>div{color:#50354F}
html[data-ege-role="student"] body #books .books-v70-collection.is-active,html[data-ege-role="student"] body #books .books-v70-range.is-active,html[data-ege-role="student"] body #books .books-v70-variant.is-active{background:linear-gradient(180deg,#819B6C 0%,#718D5C 100%)!important;color:#fff!important;border-color:#577147!important;box-shadow:inset 0 0 0 2px rgba(255,255,255,.28),0 3px 0 rgba(64,88,49,.24)!important}

/* E1C: right-panel reference styling only; outer Books geometry is unchanged. */
#books .books-v70-controls{display:flex;flex-direction:column;align-items:stretch;gap:10px;overflow-x:hidden}
#books .books-v70-teacher-actions{order:1;display:flex;flex-direction:column;align-items:stretch;gap:8px;width:100%;min-width:0}
#books .books-v70-teacher-actions>b{order:1;font-size:1.15em;line-height:1.2}
#books .books-v70-teacher-actions>div{order:2;color:#806B78;font-size:.86em}
#books .books-v70-teacher-actions button{order:3;min-height:54px;padding:14px 12px;border-radius:12px;font-size:1.05em;box-shadow:0 4px 10px rgba(81,50,77,.10)}
#books .books-v70-teacher-actions button:first-of-type{background:#66435F;color:#fff;border-color:#66435F;box-shadow:0 5px 12px rgba(81,50,77,.18)}
#books .books-v70-teacher-actions button:nth-of-type(n+2){background:#F3E9EC;color:#50354F;border-color:#D7BCA8}
#books .books-v70-teacher-actions::after{content:"";order:4;display:block;width:100%;border-top:1px solid #D7BCA8;box-shadow:0 -1px 0 rgba(255,255,255,.65);margin:8px 0 2px}
#books .books-v70-controls>b{order:2;font-size:1.12em;line-height:1.2;color:#50354F}
#books .books-v70-page-nav{order:3}
#books .books-v70-page-nav button{min-height:52px;padding:12px 8px;border-radius:12px;font-size:1.02em;box-shadow:0 4px 10px rgba(81,50,77,.10)}
#books .books-v70-page-nav span{color:#806B78;font-size:.9em;font-weight:600}
#books .books-v70-zoom{order:4}
#books .books-v70-zoom button{min-height:42px;padding:10px 6px;border-radius:9px;font-size:1.05em;box-shadow:0 3px 8px rgba(81,50,77,.08)}
#books .books-v70-zoom span{color:#50354F;font-weight:700}
#books .books-v70-mode-toggle{order:5;min-height:44px;padding:12px 10px;text-align:center;border-radius:10px;background:#F3E9EC;color:#50354F;border-color:#D7BCA8;box-shadow:0 3px 8px rgba(81,50,77,.08)}

/* E1C.1: right-panel reference refinement; functional DOM and outer geometry stay unchanged. */
#books .books-v70-teacher-actions button{position:relative;display:flex;align-items:center;justify-content:center;text-align:center}
#books .books-v70-teacher-actions button::before{content:"";position:absolute;left:14px;width:24px;height:24px;background-color:currentColor;-webkit-mask-position:center;-webkit-mask-repeat:no-repeat;-webkit-mask-size:contain;mask-position:center;mask-repeat:no-repeat;mask-size:contain}
#books .books-v70-teacher-actions button:first-of-type::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M12%203v12m0-12%204%204m-4-4L8%207M5%2014v5h14v-5'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M12%203v12m0-12%204%204m-4-4L8%207M5%2014v5h14v-5'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E")}
#books .books-v70-teacher-actions button:nth-of-type(2)::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M4%207h12m0%200-3-3m3%203-3%203M20%2017H8m0%200 3-3m-3%203 3%203'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M4%207h12m0%200-3-3m3%203-3%203M20%2017H8m0%200 3-3m-3%203 3%203'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E")}
#books .books-v70-teacher-actions button:nth-of-type(3)::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M5%207h14M9%207V4h6v3m-8%200 1%2013h8l1-13M10%2011v6m4-6v6'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M5%207h14M9%207V4h6v3m-8%200 1%2013h8l1-13M10%2011v6m4-6v6'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E")}
#books .books-v70-teacher-actions::after{height:12px;border-top:1px solid #D7BCA8;box-shadow:0 -1px 0 rgba(255,255,255,.65);background:linear-gradient(45deg,transparent 42%,#D7BCA8 43%,#D7BCA8 57%,transparent 58%) center/9px 9px no-repeat}
#books .books-v70-page-nav{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:8px}
#books .books-v70-page-nav span{grid-column:1 / -1;grid-row:1;width:auto;justify-self:center;color:#806B78;font-size:.88em;font-weight:600}
#books .books-v70-page-nav button{grid-row:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:84px;padding:8px;border-radius:12px;font-size:.98em}
#books .books-v70-page-nav button:first-of-type{grid-column:1}
#books .books-v70-page-nav button:last-of-type{grid-column:2}
#books .books-v70-page-nav button:first-of-type::before,#books .books-v70-page-nav button:last-of-type::before{display:block;font-size:2.1em;line-height:.9;font-weight:400;color:currentColor}
#books .books-v70-page-nav button:first-of-type::before{content:"‹"}
#books .books-v70-page-nav button:last-of-type::before{content:"›"}
#books .books-v70-zoom span{display:flex;align-items:center;justify-content:center;gap:6px;padding:10px 5px;border:1px solid #D7BCA8;border-radius:9px;background:#FCF3E9;color:#50354F;box-shadow:0 3px 8px rgba(81,50,77,.08);font-weight:700}
#books .books-v70-zoom span::before{content:"";display:block;width:17px;height:17px;flex:0 0 17px;background-color:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Ccircle%20cx='10.5'%20cy='10.5'%20r='6.5'%20fill='none'%20stroke='black'%20stroke-width='2'/%3E%3Cpath%20d='m16%2016%205%205'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Ccircle%20cx='10.5'%20cy='10.5'%20r='6.5'%20fill='none'%20stroke='black'%20stroke-width='2'/%3E%3Cpath%20d='m16%2016%205%205'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}
#books .books-v70-zoom button{min-height:42px;padding:10px 6px;border-radius:9px;box-shadow:0 3px 8px rgba(81,50,77,.08)}
#books .books-v70-mode-toggle{display:flex;align-items:center;justify-content:center}

/* E1C.2: only the three confirmed right-panel defects. */
#books .books-v70-controls{gap:6px;overflow:visible}
#books .books-v70-teacher-actions{gap:5px}
#books .books-v70-teacher-actions button{min-height:46px;padding:10px 12px}
#books .books-v70-teacher-actions::before{content:"";order:4;display:block;width:100%;height:1px;margin:6px 0 0;background:#D7BCA8;box-shadow:0 1px 0 rgba(255,255,255,.65)}
#books .books-v70-teacher-actions::after{content:"";order:5;display:block;align-self:center;width:8px;height:8px;margin:-5px 0 0;background:#FCF3E9;border:1px solid #D7BCA8;box-shadow:none;transform:rotate(45deg)}
#books .books-v70-page-nav{gap:6px}
#books .books-v70-page-nav button{min-height:68px}
#books .books-v70-zoom{grid-template-columns:34px minmax(70px,1fr) 34px 34px;gap:6px}
#books .books-v70-zoom span{white-space:nowrap;overflow:hidden}
#books .books-v70-zoom button{min-height:36px;padding:7px 4px}
#books .books-v70-mode-toggle{min-height:38px;padding:9px 10px}

html[data-ege-role="teacher"] #books .books-v70-root{background:#fff}
html[data-ege-role="student"] #books .books-v70-root{background:#fffafb}

/* E1D: role-scoped palette alignment with the active Tests palettes. */
html[data-ege-role="teacher"] #books .books-v70-root{color:#342B34}
html[data-ege-role="teacher"] #books .books-v70-top{background:#FFFDFB;border-color:#E8DCE0}
html[data-ege-role="teacher"] #books .books-v70-collections,
html[data-ege-role="teacher"] #books .books-v70-viewer{background:#FFF;border-color:#E8DCE0;box-shadow:0 6px 0 rgba(126,83,107,.22),0 13px 24px rgba(88,57,75,.10),inset 0 1px 0 rgba(255,255,255,.72)}
html[data-ege-role="teacher"] #books .books-v70-viewer-stage{background:#FFFDFB}
html[data-ege-role="teacher"] #books .books-v70-page-surface{background:#FFF;box-shadow:inset 0 0 0 1px rgba(232,220,224,.65),8px 8px 18px rgba(88,57,75,.12)}
html[data-ege-role="teacher"] #books .books-v70-controls{background:#FFFDFB;border-color:#E8DCE0;box-shadow:0 6px 0 rgba(126,83,107,.22),0 13px 24px rgba(88,57,75,.10),inset 0 1px 0 rgba(255,255,255,.72)}
html[data-ege-role="teacher"] #books .books-v70-collection,
html[data-ege-role="teacher"] #books .books-v70-range,
html[data-ege-role="teacher"] #books .books-v70-variant,
html[data-ege-role="teacher"] #books .books-v70-page-nav button,
html[data-ege-role="teacher"] #books .books-v70-zoom button,
html[data-ege-role="teacher"] #books .books-v70-mode-toggle,
html[data-ege-role="teacher"] #books .books-v70-teacher-actions button{background:linear-gradient(145deg,#FFFDFB 0%,#F4ECEF 72%,#E4D7DE 100%);color:#68495C;border-color:#D1BEC8;box-shadow:0 6px 0 #C7B4BE,0 11px 17px rgba(76,50,64,.14),inset 1px 2px 0 rgba(255,255,255,.92),inset -1px -2px 0 rgba(104,72,92,.06)}
html[data-ege-role="teacher"] #books .books-v70-collection.is-active,
html[data-ege-role="teacher"] #books .books-v70-range.is-active,
html[data-ege-role="teacher"] #books .books-v70-variant.is-active{background:linear-gradient(145deg,#9B7188 0%,#80576F 55%,#69465F 100%)!important;color:#FFF!important;border-color:#68475A!important;box-shadow:0 6px 0 #523747,0 11px 18px rgba(76,50,64,.20),inset 1px 2px 0 rgba(255,255,255,.27)!important}
html[data-ege-role="teacher"] #books .books-v70-teacher-actions button:first-of-type{background:linear-gradient(145deg,#9B7188 0%,#80576F 55%,#69465F 100%);color:#FFF;border-color:#68475A;box-shadow:0 6px 0 #523747,0 11px 18px rgba(76,50,64,.20),inset 1px 2px 0 rgba(255,255,255,.27)}

html[data-ege-role="student"] #books .books-v70-root{color:#253126}
html[data-ege-role="student"] #books .books-v70-top{background:#FFFDF7;border-color:#D9DEC8}
html[data-ege-role="student"] #books .books-v70-collections,
html[data-ege-role="student"] #books .books-v70-viewer{background:#FFFDF7;border-color:#D9DEC8;box-shadow:color-mix(in srgb,#6F8657 12%,transparent) 7px 0 0,0 7px 0 #DFE7D2,0 13px 22px rgba(48,67,42,.08)}
html[data-ege-role="student"] #books .books-v70-viewer-stage{background:#F3F5EC}
html[data-ege-role="student"] #books .books-v70-page-surface{background:#FFF;box-shadow:inset 0 0 0 1px rgba(214,221,202,.65),8px 8px 18px rgba(48,67,42,.10)}
html[data-ege-role="student"] #books .books-v70-controls{background:#FFFDF7;border-color:#D9DEC8;box-shadow:color-mix(in srgb,#6F8657 12%,transparent) 7px 0 0,0 7px 0 #D4DDCA,0 13px 22px rgba(48,67,42,.08)}
html[data-ege-role="student"] #books .books-v70-collection,
html[data-ege-role="student"] #books .books-v70-range,
html[data-ege-role="student"] #books .books-v70-variant{background:linear-gradient(145deg,rgb(238,241,226) 0%,rgb(216,223,200) 72%,rgb(209,216,193) 100%);color:rgb(64,83,58);border-color:rgb(184,194,167);box-shadow:rgb(190,198,175) 0 5px 0,rgba(49,64,42,.10) 0 10px 16px,rgba(255,255,255,.62) 0 2px 0 inset}
html[data-ege-role="student"] #books .books-v70-collection.is-active,
html[data-ege-role="student"] #books .books-v70-range.is-active,
html[data-ege-role="student"] #books .books-v70-variant.is-active{background:linear-gradient(145deg,rgb(129,155,108) 0%,rgb(113,141,92) 100%)!important;color:#FFF!important;border-color:rgb(87,113,71)!important;box-shadow:rgb(87,113,71) 0 5px 0,rgba(40,58,34,.16) 0 10px 16px,rgba(255,255,255,.34) 0 2px 0 inset!important}

/* E2B: shadow-only reference polish; dimensions and layout remain unchanged. */
html[data-ege-role="teacher"] #books .books-v70-root{box-shadow:0 10px 24px rgba(81,50,77,.16),inset 0 0 0 1px #D1BEC8,inset 0 1px 0 rgba(255,255,255,.65)}
html[data-ege-role="student"] #books .books-v70-root{box-shadow:0 10px 24px rgba(48,67,42,.08),inset 0 0 0 1px #D9DEC8,inset 0 1px 0 rgba(255,255,255,.65)}

html[data-ege-role="teacher"] #books .books-v70-viewer{box-shadow:0 6px 0 rgba(126,83,107,.22),0 13px 24px rgba(88,57,75,.10),inset 0 0 0 1px #D1BEC8,inset 0 1px 0 rgba(255,255,255,.72)}
html[data-ege-role="student"] #books .books-v70-viewer{box-shadow:color-mix(in srgb,#6F8657 12%,transparent) 7px 0 0,0 7px 0 #DFE7D2,0 13px 22px rgba(48,67,42,.08),inset 0 0 0 1px #D9DEC8,inset 0 1px 0 rgba(255,255,255,.76)}
html[data-ege-role="teacher"] #books .books-v70-viewer-stage{box-shadow:inset 0 0 0 1px #E8DCE0,inset 0 1px 0 rgba(255,255,255,.72)}
html[data-ege-role="student"] #books .books-v70-viewer-stage{box-shadow:inset 0 0 0 1px #D9DEC8,inset 0 1px 0 rgba(255,255,255,.76)}
html[data-ege-role="teacher"] #books .books-v70-page-surface{box-shadow:inset 0 0 0 1px #E8DCE0,8px 8px 18px rgba(88,57,75,.12)}
html[data-ege-role="student"] #books .books-v70-page-surface{box-shadow:inset 0 0 0 1px #D9DEC8,8px 8px 18px rgba(48,67,42,.10)}

html[data-ege-role="teacher"] #books .books-v70-collection{box-shadow:0 6px 0 #C7B4BE,0 11px 17px rgba(76,50,64,.14),inset 0 0 0 1px #D1BEC8,inset 0 2px 0 rgba(255,255,255,.92),inset -1px -2px 0 rgba(104,72,92,.06)}
html[data-ege-role="teacher"] #books .books-v70-collection.is-active{box-shadow:0 6px 0 #523747,0 11px 18px rgba(76,50,64,.20),inset 0 0 0 1px #D1BEC8,inset 1px 2px 0 rgba(255,255,255,.27)!important}
html[data-ege-role="student"] #books .books-v70-collection{box-shadow:rgb(190,198,175) 0 5px 0,rgba(49,64,42,.10) 0 10px 16px,inset 0 0 0 1px #D9DEC8,rgba(255,255,255,.62) 0 2px 0 inset}
html[data-ege-role="student"] body #books .books-v70-collection.is-active{box-shadow:rgb(87,113,71) 0 5px 0,rgba(40,58,34,.16) 0 10px 16px,inset 0 0 0 1px #D9DEC8,rgba(255,255,255,.34) 0 2px 0 inset!important}

/* BM1: functional magnifier trigger inside the existing percentage card. */
#books .books-v70-zoom span::before{content:none;display:none}
#books .books-v70-controls .books-v70-zoom span>.books-v70-magnifier-button,
html[data-ege-role="teacher"] #books .books-v70-controls .books-v70-zoom span>.books-v70-magnifier-button,
html[data-ege-role="student"] #books .books-v70-controls .books-v70-zoom span>.books-v70-magnifier-button{
  display:grid!important;place-items:center!important;flex:0 0 20px!important;width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:6px!important;background:transparent!important;color:currentColor!important;box-shadow:none!important;cursor:pointer!important;
}
#books .books-v70-magnifier-button svg{display:block;width:17px;height:17px;overflow:visible}
#books .books-v70-zoom-value{flex:1 1 auto;min-width:0;text-align:center;white-space:nowrap;font:inherit;color:inherit}

/* Singleton magnifier overlay; palette follows the active cabinet role. */
#books-v70-zoom-modal{--books-v70-modal-surface:#fffdfb;--books-v70-modal-head:#f7eff2;--books-v70-modal-line:#d1bec8;--books-v70-modal-ink:#68495c;--books-v70-modal-button:#fffdfb;--books-v70-modal-shadow:#c7b4be;position:fixed;inset:0;z-index:40000;display:none;align-items:center;justify-content:center;padding:3vh 3vw;box-sizing:border-box;background:rgba(22,25,23,.62);backdrop-filter:blur(3px)}
#books-v70-zoom-modal.is-open{display:flex}
html[data-ege-role="teacher"] #books-v70-zoom-modal{--books-v70-modal-surface:#fffdfb;--books-v70-modal-head:#f7eff2;--books-v70-modal-line:#d1bec8;--books-v70-modal-ink:#68495c;--books-v70-modal-button:#fffdfb;--books-v70-modal-shadow:#c7b4be}
html[data-ege-role="student"] #books-v70-zoom-modal{--books-v70-modal-surface:#fffdf7;--books-v70-modal-head:#f1f4e8;--books-v70-modal-line:#d9dec8;--books-v70-modal-ink:#40533a;--books-v70-modal-button:#fffdf7;--books-v70-modal-shadow:#d4ddca}
#books-v70-zoom-modal .books-v70-zoom-dialog{display:grid;grid-template-rows:auto minmax(0,1fr);width:min(94vw,1600px);height:min(94vh,1120px);min-width:0;min-height:0;overflow:hidden;border:1px solid var(--books-v70-modal-line);border-radius:18px;background:var(--books-v70-modal-surface);color:var(--books-v70-modal-ink);box-shadow:0 26px 80px rgba(17,22,18,.34),inset 0 1px 0 rgba(255,255,255,.8)}
#books-v70-zoom-modal .books-v70-zoom-header{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0;padding:9px 12px 9px 18px;border-bottom:1px solid var(--books-v70-modal-line);background:var(--books-v70-modal-head)}
#books-v70-zoom-modal .books-v70-zoom-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:800;color:var(--books-v70-modal-ink)}
#books-v70-zoom-modal .books-v70-zoom-tools{display:flex;align-items:center;gap:8px;flex:0 0 auto}
#books-v70-zoom-modal .books-v70-zoom-tools button{display:grid;place-items:center;width:40px;height:36px;padding:0;border:1px solid var(--books-v70-modal-line);border-radius:10px;background:var(--books-v70-modal-button);color:var(--books-v70-modal-ink);box-shadow:0 3px 0 var(--books-v70-modal-shadow);font-size:19px;font-weight:800;cursor:pointer}
#books-v70-zoom-modal .books-v70-zoom-tools .books-v70-zoom-close{font-size:24px}
#books-v70-zoom-modal .books-v70-zoom-percent{min-width:54px;text-align:center;white-space:nowrap;font-size:13px;font-weight:800;color:var(--books-v70-modal-ink)}
#books-v70-zoom-modal .books-v70-zoom-stage{display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;overflow:auto;padding:16px;box-sizing:border-box;background:#fff;touch-action:pan-x pan-y}
#books-v70-zoom-modal .books-v70-zoom-canvas{display:block;flex:0 0 auto;max-width:none;max-height:none;background:#fff;box-shadow:0 2px 16px rgba(30,30,30,.13)}
@media(max-width:600px){#books-v70-zoom-modal{padding:8px}#books-v70-zoom-modal .books-v70-zoom-dialog{width:100%;height:calc(100vh - 16px);border-radius:12px}#books-v70-zoom-modal .books-v70-zoom-header{gap:6px;padding:8px}#books-v70-zoom-modal .books-v70-zoom-tools{gap:5px}#books-v70-zoom-modal .books-v70-zoom-tools button{width:34px;height:34px}}
