/* Stage 1: explicit check, free selection, actual ayahs always unmodified. */
body.juz-learning-page #module-one-view #cards .hybrid-select-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px!important;align-items:stretch;}
body.juz-learning-page #module-one-view #cards .hybrid-select-grid .branch{min-width:0;margin:0!important;padding:12px!important;display:flex;flex-direction:column;justify-content:space-between;min-height:140px;}
body.juz-learning-page #module-one-view #cards .hybrid-select-grid .branch-head{gap:8px;flex-wrap:wrap;}
body.juz-learning-page #module-one-view #cards .hybrid-select-grid .branch .verse{margin:6px 0!important;padding:9px 3px!important;line-height:2.2!important;font-size:clamp(20px,2vw,27px)!important;}
body.juz-learning-page #module-one-view #cards .hybrid-select-grid .branch-footer{margin-top:auto;}
body.juz-learning-page #module-one-view #cards .hybrid-select-grid .difference-word{font:inherit!important;min-height:40px!important;padding:1px 5px!important;margin:2px 1px!important;border-radius:8px;cursor:pointer;}
body.juz-learning-page #module-one-view #cards .hybrid-select-grid .difference-word.shared-selected{background:#d6eafd!important;color:#09519c!important;box-shadow:inset 0 -2px 0 #3f9cfa!important;border:1px solid #6badf3!important;}
body.juz-learning-page #module-one-view #cards .hybrid-select-grid .difference-word:focus-visible{outline:3px solid #1384f8!important;outline-offset:2px;}
body.juz-learning-page #module-one-view #cards .hybrid-select-grid .verse-words{display:flex!important;justify-content:center!important;align-items:center!important;flex-wrap:wrap!important;direction:rtl!important;unicode-bidi:isolate;}
body.juz-learning-page #module-one-view #cards .modern-card .quiz-start[data-check-shared]{background:#087af5!important;border-color:#087af5!important;min-height:49px!important;}
body.juz-learning-page #module-one-view #cards .modern-card .quiz-start[data-check-shared]:disabled{opacity:.55!important;}
body.juz-learning-page #module-one-view #cards .modern-card .feedback.try{background:#fff7e9!important;color:#714d17!important;border:1px solid #edd7a7!important;border-radius:12px;padding:10px 14px!important;}
/* Do not confine dropdown beneath the section heading or any clipped panel. */
body.juz-learning-page #explore .mla-filter-panel{overflow:visible!important;isolation:auto!important;}
body.juz-learning-page #explore .mla-surah-control{overflow:visible!important;}
body.juz-learning-page #explore .mla-surah-control:has(#reviewSurahPicker[open]){position:relative!important;z-index:1000!important;}
body.juz-learning-page #explore #reviewSurahPicker[open]{position:relative!important;z-index:1001!important;}
body.juz-learning-page #explore #reviewSurahPicker .review-surah-options{z-index:1002!important;top:calc(100% + 8px)!important;right:0!important;left:auto!important;width:min(410px,calc(100vw - 28px))!important;max-height:min(410px,65vh)!important;overflow-y:auto!important;overscroll-behavior:contain;box-sizing:border-box;align-content:start;}
body.juz-learning-page #explore #reviewSurahPicker .review-surah-options label{display:flex!important;align-items:center!important;gap:7px!important;min-height:42px!important;cursor:pointer!important;white-space:nowrap;}
body.juz-learning-page #explore #reviewSurahPicker .review-surah-options label input{flex:0 0 auto;}
@media(max-width:690px){body.juz-learning-page #module-one-view #cards .hybrid-select-grid{grid-template-columns:1fr!important;gap:9px!important;}body.juz-learning-page #module-one-view #cards .hybrid-select-grid .branch{min-height:0;}body.juz-learning-page #explore #reviewSurahPicker .review-surah-options{position:fixed!important;left:14px!important;right:14px!important;top:15vh!important;width:calc(100vw - 28px)!important;max-height:68vh!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;}}

/* Locked front refinement: one shared-verse illustration, no two-Surah previews. */
body.juz-learning-page #module-one-view #cards .modern-card:not(.open) .mla-card-preview{display:grid!important;place-items:center;flex:1;min-height:112px;}
body.juz-learning-page #module-one-view #cards .mla-paper-stack{position:relative;display:block;width:min(230px,85%);height:112px;isolation:isolate;}
body.juz-learning-page #module-one-view #cards .mla-paper-sheet{position:absolute;top:8px;left:50%;width:66%;height:91px;border-radius:10px;border:1px solid #b7d5e7;background:#f7fbff;box-shadow:0 5px 15px rgba(5,62,108,.09);}
body.juz-learning-page #module-one-view #cards .mla-paper-sheet-back{transform:translateX(-62%) rotate(-10deg);background:#e7f4ff;border-color:#c3dcf5;}
body.juz-learning-page #module-one-view #cards .mla-paper-sheet-middle{transform:translateX(-41%) rotate(9deg);background:#e8f9f2;border-color:#b8dfd6;}
body.juz-learning-page #module-one-view #cards .mla-paper-sheet-front{transform:translateX(-50%);z-index:2;background:linear-gradient(160deg,#fffefa,#f5fbff);border-color:#92bde1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:12px 15px;}
body.juz-learning-page #module-one-view #cards .mla-paper-sheet-front i{display:block;width:88%;height:5px;background:#cbdde9;border-radius:9px;}
body.juz-learning-page #module-one-view #cards .mla-paper-sheet-front i:nth-child(2){width:70%;}
body.juz-learning-page #module-one-view #cards .mla-paper-sheet-front i:nth-child(3){width:81%;background:#bdebdc;}
body.juz-learning-page #module-one-view #cards .mla-paper-sheet-front i:nth-child(4){width:54%;background:#f4d898;}
body.juz-learning-page #module-one-view #cards .mla-paper-connection{position:absolute;left:-9px;bottom:-10px;width:30px;height:30px;border:1px solid #f5d57e;border-radius:50%;display:grid;place-items:center;background:#fff4c5;color:#b8840f;font-size:19px;box-shadow:0 2px 7px #b0842255;}
