:root{--aystudy-navy:#172d5b;--aystudy-teal:#0b948f;--aystudy-purple:#6a49d7;--aystudy-coral:#ff6b4a;--aystudy-ink:#18213d;--aystudy-muted:#667089;--aystudy-line:#dce4f1;--aystudy-soft:#f4f7ff;--aystudy-shadow:0 20px 54px rgba(23,45,91,.18)}
.ayubhaedu-lesson-shell .ayubhaedu-lesson-body,.ayubhaedu-lesson-shell .ayubhaedu-lesson-body *{-webkit-user-select:text!important;user-select:text!important}
.ayubhaedu-lesson-shell .ayubhaedu-lesson-body::selection,.ayubhaedu-lesson-shell .ayubhaedu-lesson-body *::selection{background:rgba(45,196,182,.32);color:inherit}
.ayubhaedu-study-backdrop{position:fixed;inset:0;z-index:100000;background:rgba(13,25,54,.38);backdrop-filter:blur(2px)}
.ayubhaedu-study-backdrop[hidden],.ayubhaedu-study-panel[hidden],.ayubhaedu-study-selection-toolbar[hidden],.ayubhaedu-study-toast[hidden],.ayubhaedu-pdf-quickbar[hidden]{display:none!important}
.ayubhaedu-study-panel{position:fixed;z-index:100001;left:50%;bottom:calc(70px + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(560px,calc(100vw - 18px));max-height:min(72vh,680px);overflow:auto;box-sizing:border-box;padding:14px 16px 18px;border:1px solid #d5dfef;border-radius:22px;background:#fff;color:var(--aystudy-ink);box-shadow:var(--aystudy-shadow);overscroll-behavior:contain}
.ayubhaedu-study-panel[data-study-panel="menu"]{background:linear-gradient(180deg,#fff 0%,#f8fbff 100%)}
.ayubhaedu-study-panel-head{position:sticky;top:-14px;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-2px 0 6px;padding:10px 0 12px;border-bottom:1px solid var(--aystudy-line);background:inherit}
.ayubhaedu-study-panel-head small{display:block;color:#788299;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.ayubhaedu-study-panel-head strong{color:var(--aystudy-navy);font-size:19px}.ayubhaedu-study-panel-head button{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #d8e0ef;border-radius:11px;background:#f4f7ff;color:#394a73;font-size:23px;line-height:1;cursor:pointer}
.ayubhaedu-study-menu-item{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px;width:100%!important;min-height:50px!important;padding:10px 8px!important;border:0!important;border-bottom:1px solid #e9eef7!important;background:transparent!important;color:#26385e!important;text-decoration:none!important;text-align:left!important;font:800 14px/1.3 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;cursor:pointer!important}.ayubhaedu-study-menu-item:hover,.ayubhaedu-study-menu-item:focus-visible{background:#edf8f7!important;color:#087d79!important}.ayubhaedu-study-menu-item svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.ayubhaedu-study-menu-item .dashicons{color:currentColor}
.ayubhaedu-learning-app-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:end;gap:4px;margin:8px 0 12px;padding:10px 5px 7px;border:1px solid #dfe6f2;border-radius:16px;background:#f6f8ff}.ayubhaedu-learning-app-nav a,.ayubhaedu-learning-app-nav button{min-width:0;min-height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:4px;border:0;border-radius:10px;background:transparent;color:#425273!important;text-decoration:none!important;font:750 9px/1.15 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer}.ayubhaedu-learning-app-nav .is-hub{width:56px;height:56px;min-height:56px;justify-self:center;margin-top:-18px;border-radius:50%;background:linear-gradient(135deg,var(--aystudy-navy),var(--aystudy-purple));color:#fff!important;box-shadow:0 8px 20px rgba(64,53,143,.24)}
.ayubhaedu-study-panel form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-top:14px}.ayubhaedu-study-panel input[type=search],.ayubhaedu-study-panel textarea{width:100%;box-sizing:border-box;border:1px solid #cad6e8;border-radius:12px;background:#fff;color:var(--aystudy-ink);font:inherit}.ayubhaedu-study-panel input[type=search]{min-height:44px;padding:0 12px}.ayubhaedu-study-panel textarea{padding:12px;line-height:1.55;resize:vertical}.ayubhaedu-study-panel form button,.ayubhaedu-study-panel-actions button{min-height:42px;padding:0 14px;border:1px solid #cbd7e7;border-radius:11px;background:#fff;color:#304366;font-weight:800;cursor:pointer}.ayubhaedu-study-panel form button,.ayubhaedu-study-panel-actions button.is-primary{border-color:var(--aystudy-teal);background:var(--aystudy-teal);color:#fff}.ayubhaedu-study-panel-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.ayubhaedu-study-search-results{display:grid;gap:8px;margin-top:14px}.ayubhaedu-study-search-results button{display:block;width:100%;padding:11px 12px;border:1px solid #dce4f1;border-radius:11px;background:#f9fbff;color:#314469;text-align:left;cursor:pointer}.ayubhaedu-study-search-results button strong,.ayubhaedu-study-search-results button span{display:block}.ayubhaedu-study-search-results button span{margin-top:3px;color:#6a748b;font-size:12px}
.ayubhaedu-study-setting{padding:13px 0;border-bottom:1px solid #edf1f7}.ayubhaedu-study-setting>span{display:block;margin-bottom:8px;color:#68748d;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.06em}.ayubhaedu-study-setting>div:not(.ayubhaedu-font-size-slider){display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.ayubhaedu-study-setting button{min-height:42px;border:1px solid #d3ddeb;border-radius:10px;background:#fff;color:#40506d;cursor:pointer}.ayubhaedu-study-setting button.is-active{border-color:#65bdb6;background:#e5f7f4;color:#087b77;font-weight:850}.ayubhaedu-font-size-slider{display:grid!important;grid-template-columns:auto 1fr auto auto!important;align-items:center;gap:9px}.ayubhaedu-font-size-slider .is-small{font-size:12px}.ayubhaedu-font-size-slider .is-large{font-size:24px;font-weight:800}.ayubhaedu-font-size-slider input{accent-color:var(--aystudy-teal);width:100%}.ayubhaedu-font-size-slider output{min-width:42px;color:var(--aystudy-navy);font-size:12px;font-weight:800}
.ayubhaedu-study-selection-toolbar,.ayubhaedu-pdf-quickbar{position:fixed!important;z-index:100004;left:50%!important;right:auto!important;bottom:calc(68px + env(safe-area-inset-bottom) + 8px)!important;transform:translateX(-50%)!important;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px;width:min(680px,calc(100vw - 14px));box-sizing:border-box;padding:6px;border-radius:14px;background:#172d5b;box-shadow:0 13px 34px rgba(13,29,67,.28);overflow:visible!important}.ayubhaedu-study-selection-toolbar button,.ayubhaedu-pdf-quickbar button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:36px;padding:0 9px;border:0;border-radius:8px;background:rgba(255,255,255,.08);color:#fff;font-size:11px;font-weight:800;white-space:nowrap;cursor:pointer}.ayubhaedu-study-selection-toolbar button:hover,.ayubhaedu-pdf-quickbar button:hover{background:rgba(255,255,255,.17)}.ayubhaedu-study-selection-toolbar button:disabled{opacity:.42;cursor:default}.ayubhaedu-study-selection-toolbar.is-hint:before{content:"Select text first";flex:1 0 100%;padding:2px 4px 4px;color:#dce8ff;font-size:10px;font-weight:800;text-align:center}.ayubhaedu-highlight-label{color:#e3ebff;font-size:10px;font-weight:850;padding:0 3px}.ayubhaedu-highlight-palette{display:inline-flex;gap:3px;padding-right:4px;border-right:1px solid rgba(255,255,255,.18)}.ayubhaedu-highlight-palette button{width:32px;min-width:32px;padding:0}.ayubhaedu-highlight-palette button span,.ayubhaedu-pdf-quickbar button i{display:block;width:18px;height:18px;border-radius:50%;border:2px solid rgba(255,255,255,.72)}.is-yellow span,.ayubhaedu-pdf-quickbar .is-yellow i{background:#ffe36c}.is-green span,.ayubhaedu-pdf-quickbar .is-green i{background:#94e5a6}.is-blue span,.ayubhaedu-pdf-quickbar .is-blue i{background:#88cfff}.is-pink span,.ayubhaedu-pdf-quickbar .is-pink i{background:#ffa8cb}.ayubhaedu-pdf-quickbar .is-close{background:#ff6b4a;color:#fff;font-size:18px;width:34px;padding:0}
.ayubhaedu-study-toast{position:fixed;z-index:100006;left:50%;bottom:calc(126px + env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;gap:10px;max-width:min(560px,calc(100vw - 24px));padding:10px 13px;border-radius:12px;background:#26375f;color:#fff;box-shadow:0 10px 28px rgba(0,0,0,.2);font-weight:700}.ayubhaedu-study-toast a{color:#8ce5dc!important;text-decoration:none!important;font-weight:850}
.ayubhaedu-lesson-body{--aystudy-line:1.72;--aystudy-family:Georgia,'Times New Roman',serif;transition:background .18s ease,color .18s ease,max-width .18s ease}.ayubhaedu-lesson-shell[data-study-family=modern] .ayubhaedu-lesson-body{--aystudy-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}.ayubhaedu-lesson-shell[data-study-family=indic] .ayubhaedu-lesson-body{--aystudy-family:'Noto Sans Devanagari','Noto Sans',system-ui,sans-serif}.ayubhaedu-lesson-shell[data-study-line=compact] .ayubhaedu-lesson-body{--aystudy-line:1.48}.ayubhaedu-lesson-shell[data-study-line=relaxed] .ayubhaedu-lesson-body{--aystudy-line:1.95}.ayubhaedu-lesson-shell[data-study-width=narrow] .ayubhaedu-lesson-body{max-width:760px!important;margin-left:auto!important;margin-right:auto!important}.ayubhaedu-lesson-shell[data-study-width=medium] .ayubhaedu-lesson-body{max-width:980px!important;margin-left:auto!important;margin-right:auto!important}.ayubhaedu-lesson-shell[data-study-width=wide] .ayubhaedu-lesson-body{max-width:none!important}.ayubhaedu-lesson-shell[data-study-customized=true] .ayubhaedu-lesson-body :is(p,li,blockquote,td,th){font-family:var(--aystudy-family)!important;font-size:var(--aystudy-size,17px)!important;line-height:var(--aystudy-line)!important}.ayubhaedu-lesson-shell[data-study-theme=sepia] .ayubhaedu-lesson-body{background:#fff6df!important;color:#403827!important}.ayubhaedu-lesson-shell[data-study-theme=dark] .ayubhaedu-lesson-body{background:#131a2a!important;color:#edf1fb!important}.ayubhaedu-lesson-shell[data-study-theme=dark] .ayubhaedu-lesson-body :is(p,li,h1,h2,h3,h4,h5,h6,strong,em,span:not(.dashicons),blockquote,td,th){color:inherit!important}.ayubhaedu-study-highlight{border-radius:3px;padding:0 .04em}.ayubhaedu-study-highlight.is-yellow{background:#ffe982;color:#26301d!important}.ayubhaedu-study-highlight.is-green{background:#c8f1ce;color:#183623!important}.ayubhaedu-study-highlight.is-blue{background:#cce9fb;color:#183148!important}.ayubhaedu-study-highlight.is-pink{background:#ffd4e5;color:#462538!important}.ayubhaedu-study-highlight.is-note{box-shadow:inset 0 -2px #0b948f}.ayubhaedu-study-highlight.is-revision{box-shadow:inset 0 -2px #7657df}.ayubhaedu-study-search-hit{outline:3px solid rgba(11,148,143,.28);outline-offset:5px;border-radius:6px}
.ayubhaedu-study-tools-dock{position:fixed;z-index:99996;left:50%;bottom:10px;transform:translateX(-50%);display:inline-flex;align-items:center;gap:6px;min-height:46px;padding:0 15px;border:0;border-radius:15px;background:linear-gradient(135deg,#172d5b,#0b948f);color:#fff;box-shadow:0 10px 26px rgba(23,45,91,.24);font:800 12px/1 system-ui,sans-serif;cursor:pointer}
@media(max-width:650px){.ayubhaedu-study-panel{bottom:calc(62px + env(safe-area-inset-bottom));width:calc(100vw - 12px);max-height:74vh;border-radius:18px}.ayubhaedu-study-selection-toolbar,.ayubhaedu-pdf-quickbar{bottom:calc(62px + env(safe-area-inset-bottom) + 7px)!important;width:calc(100vw - 10px)}.ayubhaedu-study-selection-toolbar button,.ayubhaedu-pdf-quickbar button{min-height:35px;padding:0 7px;font-size:10px}.ayubhaedu-highlight-label{display:none}.ayubhaedu-study-toast{bottom:calc(122px + env(safe-area-inset-bottom));font-size:11px}.ayubhaedu-learning-app-nav a,.ayubhaedu-learning-app-nav button{font-size:8px}}


/* v1.0.40 — non-overlapping study feedback + conditional overflow cue. */
.ayubhaedu-study-toast{
	top:calc(64px + env(safe-area-inset-top))!important;bottom:auto!important;
	z-index:100007!important;max-width:min(560px,calc(100vw - 20px))!important;
}
.ayubhaedu-study-panel[data-study-panel="menu"]:after{display:none}
.ayubhaedu-study-panel[data-study-panel="menu"].has-more-scroll:after{
	content:"Scroll for more ↓";position:sticky;bottom:-18px;display:block;
	margin:8px -16px -18px;padding:8px 12px;
	background:linear-gradient(180deg,rgba(255,255,255,.76),#fff);
	color:#74809a;font-size:10px;font-weight:800;text-align:center;pointer-events:none;
}
@media(max-width:650px){
	.ayubhaedu-study-toast{top:calc(58px + env(safe-area-inset-top))!important;bottom:auto!important}
}

/* v1.0.41 — independent close leaf for text/PDF reader toolbars. */
.ayubhaedu-study-selection-toolbar,.ayubhaedu-pdf-quickbar{padding-top:10px!important;}
.ayubhaedu-reader-toolbar-close{position:absolute!important;z-index:3!important;top:-17px!important;right:9px!important;width:auto!important;min-width:auto!important;min-height:26px!important;height:26px!important;padding:0 9px!important;border:1px solid #b9c8e4!important;border-radius:999px!important;background:#fff!important;color:#243b73!important;box-shadow:0 5px 14px rgba(23,45,91,.16)!important;font:850 10px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;white-space:nowrap!important;}
.ayubhaedu-study-selection-toolbar.is-hint:before{padding-right:58px!important;}
@media(max-width:650px){.ayubhaedu-reader-toolbar-close{top:-15px!important;right:7px!important}.ayubhaedu-study-selection-toolbar,.ayubhaedu-pdf-quickbar{padding-top:9px!important}}

/* v1.0.42 — dedicated persistent Reader Tools launcher. */
.ayubhaedu-reader-tools-fab{
 position:fixed;z-index:100006;right:14px;bottom:calc(68px + env(safe-area-inset-bottom) + 12px);
 display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:48px;height:48px;padding:0 11px;
 border:1px solid rgba(255,255,255,.78);border-radius:999px;background:linear-gradient(135deg,#172d5b,#0c9695);color:#fff;
 box-shadow:0 12px 30px rgba(17,43,89,.25);font:800 10px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer;
 transition:transform .18s ease,bottom .18s ease,box-shadow .18s ease;
}
.ayubhaedu-reader-tools-fab .dashicons{width:20px;height:20px;font-size:20px;line-height:20px}.ayubhaedu-reader-tools-fab.is-active{bottom:calc(68px + env(safe-area-inset-bottom) + 112px);box-shadow:0 14px 34px rgba(17,43,89,.32)}
.ayubhaedu-reader-tools-fab:active{transform:scale(.96)}
@media(max-width:650px){.ayubhaedu-reader-tools-fab{right:10px;bottom:calc(62px + env(safe-area-inset-bottom) + 10px);width:46px;min-width:46px;height:46px;padding:0}.ayubhaedu-reader-tools-fab>span:last-child{display:none}.ayubhaedu-reader-tools-fab.is-active{bottom:calc(62px + env(safe-area-inset-bottom) + 112px)}}
/* v1.0.43 — Reader Tools launcher never competes with an open toolbar/panel. */
.ayubhaedu-reader-tools-fab[hidden]{display:none!important}

/* v1.0.46 — two-state responsive reading width. */
.ayubhaedu-lesson-shell[data-study-width=book] .ayubhaedu-lesson-body{max-width:860px!important;margin-left:auto!important;margin-right:auto!important}
.ayubhaedu-lesson-shell[data-study-width=wide] .ayubhaedu-lesson-body{max-width:none!important}
.ayubhaedu-study-setting>div.is-two{grid-template-columns:repeat(2,minmax(0,1fr))!important}
@media(max-width:760px){.ayubhaedu-lesson-shell[data-study-width=book] .ayubhaedu-lesson-body,.ayubhaedu-lesson-shell[data-study-width=wide] .ayubhaedu-lesson-body{max-width:none!important;width:100%!important;margin-left:0!important;margin-right:0!important}}

/* v1.0.50 — preview guidance and in-site note composer. */
.ayubhaedu-preview-tools-notice{display:grid;gap:7px;margin:8px 0 12px;padding:12px 13px;border:1px solid #c9e6e1;border-radius:14px;background:linear-gradient(135deg,#eefaf8,#f4f6ff);color:#3c4d6e}.ayubhaedu-preview-tools-notice strong{color:#087b77;font-size:12px}.ayubhaedu-preview-tools-notice span{font-size:11px;line-height:1.45}.ayubhaedu-preview-tools-notice button{justify-self:start;min-height:34px;padding:0 11px;border:1px solid #8fcfc6;border-radius:9px;background:#fff;color:#08766f;font-size:11px;font-weight:850;cursor:pointer}
.ayubhaedu-note-composer{position:fixed;z-index:100030;inset:0;display:grid;place-items:center;padding:16px;background:rgba(12,24,52,.46);backdrop-filter:blur(3px)}.ayubhaedu-note-composer-card{width:min(520px,calc(100vw - 24px));padding:16px;border:1px solid #d7e0ee;border-radius:20px;background:#fff;box-shadow:0 24px 70px rgba(16,35,76,.28)}.ayubhaedu-note-composer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.ayubhaedu-note-composer-head strong{color:#172d5b;font:850 18px/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.ayubhaedu-note-composer-head button{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #d8e0ef;border-radius:11px;background:#f5f7fb;color:#33466d;font-size:23px;cursor:pointer}.ayubhaedu-note-composer textarea{display:block;width:100%;min-height:130px;box-sizing:border-box;padding:12px;border:1px solid #cbd8e8;border-radius:12px;background:#fff;color:#18213d;font:14px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;resize:vertical}.ayubhaedu-note-composer-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.ayubhaedu-note-composer-actions button{min-height:40px;padding:0 14px;border-radius:10px;font-weight:850;cursor:pointer}.ayubhaedu-note-composer-actions .is-cancel{border:1px solid #d2dbea;background:#fff;color:#465574}.ayubhaedu-note-composer-actions .is-save{border:1px solid #0b948f;background:#0b948f;color:#fff}html.ayubhaedu-note-composer-open{overflow:hidden!important}
