/* AmirKal presentation overrides. Quiz timing, grading and payment stay in the original engines. */
@font-face{font-family:AmirHeebo;src:url('../fonts/Fonts-Heebo-Regular.ttf') format('truetype');font-display:swap}
:root{--amir-purple:#835cda;--amir-teal:#139fba;--amir-paper:#fff;--amir-line:#dbe6f2;--amir-text:#1d3852}
[data-theme=dark]{--amir-paper:#152638;--amir-line:#31495d;--amir-text:#e9f4ff}
body{font-family:Heebo,Tajawal,AmirHeebo,Arial,sans-serif!important;background-image:none!important;color:var(--amir-text)}
button,input,select,textarea{font-family:inherit}
[lang=ar],.portal-richtext{font-family:Tajawal,Heebo,Arial,sans-serif}
form{margin:0}
.amir-alert{direction:rtl;border:1px solid var(--amir-line);border-radius:24px;padding:30px;width:min(480px,calc(100vw - 32px));max-height:85dvh;overflow:auto;box-sizing:border-box;background:var(--amir-paper);color:var(--amir-text);box-shadow:0 30px 90px #12365333;font:400 17px/1.85 Heebo,Tajawal,Arial,sans-serif}
.amir-alert::backdrop{background:#102b4b66;backdrop-filter:blur(5px)}.amir-alert h2{font-size:23px;line-height:1.5;margin:14px 0}.amir-alert h2 small{display:block;font:500 20px/1.7 Tajawal,Arial,sans-serif}.amir-alert p{white-space:pre-line;overflow-wrap:anywhere}.amir-alert-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;color:#7554c6;background:#eee8fc;font-size:24px}.amir-alert button{font:600 16px Heebo,Tajawal,Arial,sans-serif;border:0;border-radius:12px;background:#1485ad;color:white;padding:13px 25px;cursor:pointer}.amir-alert button:focus-visible{outline:3px solid #8c6bd5;outline-offset:3px}
.colorful-home>form>header,.colorful-home>form>footer{width:min(1200px,calc(100% - 48px));margin-inline:auto}
.home-logout{width:22px;height:22px;object-fit:contain;margin-inline:8px}
.logo img{width:70%!important;height:70%!important;left:15%!important;top:15%!important;object-fit:contain!important}
.study-list .amir-stage-path{display:flex;flex-direction:column;position:relative;max-width:820px;margin:30px auto;gap:28px;padding:10px 0 35px}
.study-list .amir-stage-path:before{content:'';position:absolute;inset:10px auto 25px 50%;width:3px;border-radius:3px;background:repeating-linear-gradient(to bottom,#b6d4e8 0 9px,transparent 9px 17px);pointer-events:none}
.study-list .amir-stage-path .study-quiz-card{position:relative;width:calc(50% - 28px);margin-left:auto;overflow:visible;padding:24px;border-radius:22px}
.study-list .amir-stage-path .study-quiz-card:nth-child(even){margin-right:auto;margin-left:0}
.study-list .amir-stage-path .study-card-index{position:absolute;left:-52px;top:27px;display:grid;place-items:center;width:46px;height:46px;border:5px solid var(--modern-bg);border-radius:50%;background:#e5ecff;color:#5167ab;z-index:1;font-size:17px;font-weight:700;box-shadow:none}
.study-list .amir-stage-path .study-quiz-card:nth-child(even) .study-card-index{left:auto;right:-52px}
.study-list .amir-stage-path .study-quiz-card[data-completed=true] .study-card-index{background:#dcf5eb;color:#128760}
@media(max-width:650px){.study-list .amir-stage-path{padding-inline-end:40px;gap:20px}.study-list .amir-stage-path:before{left:20px}.study-list .amir-stage-path .study-quiz-card,.study-list .amir-stage-path .study-quiz-card:nth-child(even){width:100%;margin:0}.study-list .amir-stage-path .study-card-index,.study-list .amir-stage-path .study-quiz-card:nth-child(even) .study-card-index{right:auto;left:-43px;width:42px;height:42px}}
.logo-medallion{display:grid;place-items:center}
.logo-medallion img{width:68%;height:68%;object-fit:contain}
.brand img,.auth-brand img,.study-brand img,.portal-brand img{object-fit:contain}
.colorful-home .logo{background:radial-gradient(circle at 35% 28%,#fff 0,#edf8ff 65%,#e8e8ff 100%)}
[data-theme=dark] .colorful-home .logo{background:radial-gradient(circle at 35% 28%,#304664,#14253d 72%)}
.colorful-home .learning-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.colorful-home .learning-grid>a{min-height:144px;justify-content:center}
.colorful-home .hero-chips{position:relative;z-index:1}
.modern-study #InnerDivQ{height:auto!important;overflow:visible!important;min-height:280px}
.modern-study .study-question-text,.modern-study .answers,.modern-study .answers a{direction:ltr!important;text-align:left!important;font-family:Heebo,Arial,sans-serif!important;line-height:1.7}
.modern-study .study-question-text{font-size:clamp(18px,2vw,23px)}
.modern-study .answers a{padding:16px 20px!important;border-radius:15px!important}
.modern-study #contentHavanaText .reading-passage,.modern-study #contentHavanaText .reading-passage *{direction:ltr!important;text-align:left!important;font-family:Heebo,Arial,sans-serif!important;font-size:var(--reading-size,20px)!important;line-height:1.9!important;color:var(--reading-text)!important;background:transparent!important}
.modern-study #contentHavanaText .reading-sheet{direction:ltr;text-align:left}
.modern-study #quiz-response{font-family:Heebo,Tajawal,Arial,sans-serif!important}
.modern-study #ChooseTimeDiv{max-width:650px;margin:16px auto;padding:22px;background:var(--amir-paper);border:1px solid var(--amir-line);border-radius:22px;line-height:1.8}
.modern-study #ChooseTimeDiv input{border:1px solid var(--amir-line)!important;border-radius:12px!important;background:var(--amir-paper)!important;color:var(--amir-text)!important;padding:12px 20px!important;margin:5px;cursor:pointer}
.modern-study #ChooseTimeDiv input.is-selected{background:#ecf4ff!important;color:#4c40a8!important;border-color:#9d85dd!important;box-shadow:0 0 0 3px #9d85dd22}
.modern-study .study-watermark{font:500 12px/1.5 Tajawal,Heebo,Arial,sans-serif!important;opacity:.55}
.modern-study #contentHavanaText .reading-footer{line-height:1.7}
.modern-study .quiz-finish-details{min-width:0}
.modern-study [id$=UserNameLabel]{color:inherit!important}
.admin-page #InnerDivQ input,.admin-page #InnerDivQ textarea,.admin-page #InnerDivQ select{max-width:100%;box-sizing:border-box}
.admin-page .admin-main{min-width:0}.admin-page .admin-table-scroll{max-width:100%}
.portal-richtext{font-size:19px;line-height:1.95}.portal-richtext h2{font-size:24px;line-height:1.6;color:var(--amir-text)}
.portal-richtext img{max-width:100%}
.amir-legacy-page>form{max-width:1100px;margin:0 auto;padding:24px 24px 110px;line-height:1.8}
.amir-legacy-page>form>.portal-header{padding-inline:0}
.amir-legacy-page .amir-legacy-content{background:var(--amir-paper);border:1px solid var(--amir-line);border-radius:24px;padding:clamp(18px,4vw,40px);box-shadow:0 18px 50px #173c6010;overflow-wrap:anywhere}
.amir-legacy-page .amir-legacy-content>div{max-width:100%;box-sizing:border-box}
.amir-legacy-page a{color:#167cac}.amir-legacy-page table{max-width:100%}
.amir-legacy-page [id$=ExamDatelbl]{font:700 23px/1.5 Tajawal,Heebo,Arial,sans-serif!important;color:#219cac!important;text-shadow:none!important}
.amir-legacy-page .news-item{border:1px solid var(--amir-line);border-radius:16px;background:var(--amir-paper);padding:20px;margin-block:12px;font:500 18px/1.8 Tajawal,Heebo,Arial,sans-serif}
.amir-legacy-page .amir-page-title{font-size:clamp(26px,4vw,38px);margin:12px 0 25px;line-height:1.4}
.amir-legacy-page iframe,.amir-legacy-page embed{max-width:100%}
/* Remove the opaque square around the existing accessibility launcher. */
.open-accessibility-container,.open-accessibility-collapsed,.open-accessibility-collapsed-menu{background:transparent!important;box-shadow:none!important}
@media(max-width:760px){.colorful-home .learning-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.colorful-home>form>header,.colorful-home>form>footer{width:calc(100% - 28px)}.amir-legacy-page>form{padding:16px 14px 100px}.modern-study .reading-header{flex-wrap:wrap}.modern-study #ChooseTimeDiv{padding:14px}}
@media(max-width:400px){.colorful-home .learning-grid{grid-template-columns:1fr}.header-actions{flex-wrap:wrap}.modern-study .study-account{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important}}
@media print{#modern-tools,.social-dock,.admin-sidebar,.admin-header,.amir-legacy-page .portal-header{display:none!important}.amir-legacy-page>form{padding:0}.amir-legacy-content{border:0!important;box-shadow:none!important}}

/* Illuminated logo artwork: center the mark and retain its transparent glow. */
.colorful-home .logo img{width:80%!important;height:80%!important;left:10%!important;top:10%!important;object-fit:contain!important;filter:none}
.logo-medallion img{width:80%;height:80%;object-fit:contain;transform:none}
.brand img,.auth-brand img,.study-brand img,.portal-brand img,.admin-brand img{object-fit:contain;image-rendering:auto}

/* Dictionary journey: Yael-style stages in Amir's brand palette. */
html:root .study-list .amir-dictionary-path{max-width:1080px;gap:36px;padding:32px 24px;margin:24px auto;box-sizing:border-box}
html:root .study-list .amir-dictionary-path::before{display:none}
html:root .study-list .amir-dictionary-path .study-quiz-card{box-sizing:border-box;width:calc(50% - 66px);min-height:250px;padding:25px;border-radius:24px;border:1px solid var(--brand-line);background:var(--brand-panel);box-shadow:0 10px 30px var(--brand-shadow);display:flex;flex-direction:column;gap:12px}
html:root .study-list .amir-dictionary-path .study-card-index{left:-110px;right:auto;top:50%;transform:translateY(-50%);width:88px;height:88px;border:7px solid var(--modern-bg);font-size:31px;box-shadow:0 0 0 2px var(--brand-line);box-sizing:border-box}
html:root .study-list .amir-dictionary-path .study-quiz-card:nth-child(even) .study-card-index{left:auto;right:-110px}
html:root .study-list .amir-dictionary-path .study-quiz-card::after{content:'';position:absolute;left:-66px;top:calc(50% + 53px);height:calc(100% - 66px);width:20px;background:var(--brand-accent);opacity:.5;clip-path:polygon(0 0,50% 8px,100% 0,100% 5px,50% 13px,0 5px,0 24px,50% 32px,100% 24px,100% 29px,50% 37px,0 29px,0 48px,50% 56px,100% 48px,100% 53px,50% 61px,0 53px,0 72px,50% 80px,100% 72px,100% 77px,50% 85px,0 77px,0 96px,50% 104px,100% 96px,100% 101px,50% 109px,0 101px,0 120px,50% 128px,100% 120px,100% 125px,50% 133px,0 125px);pointer-events:none}
html:root .study-list .amir-dictionary-path .study-quiz-card:nth-child(even)::after{left:auto;right:-66px}
html:root .study-list .amir-dictionary-path .study-quiz-card:last-child::after{display:none}
.amir-dictionary-path .study-card-top{justify-content:space-between}.amir-stage-label{font-size:12px;color:var(--brand-muted)}
.amir-dictionary-path .amir-node-symbol{position:absolute;bottom:-3px;left:-4px;display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:var(--brand-secondary);color:#fff;font-size:13px;border:3px solid var(--brand-panel)}
html:root .study-list .amir-dictionary-path .study-card-title{font-size:23px;margin:0;line-height:1.6}
.amir-dictionary-path .study-card-description{margin:0}.amir-dictionary-path .study-card-category{font-size:16px;margin:0}
html:root .study-list .amir-dictionary-path .study-card-bottom{margin-top:auto;padding:14px 18px;border:0;border-radius:14px;background:linear-gradient(110deg,var(--brand-button),var(--brand-secondary));color:#fff;box-shadow:0 5px 0 var(--brand-button-hover);font-size:15px}
html:root .study-list .amir-dictionary-path .study-card-arrow{color:#fff}
html:root .study-list .amir-dictionary-path .amir-current-stage{border:2px solid var(--brand-accent);outline:2px dashed var(--brand-line);outline-offset:5px}
html:root .study-list .amir-dictionary-path .amir-current-stage .study-card-index{background:var(--brand-button)!important;color:#fff!important;box-shadow:0 0 0 3px var(--brand-accent)}
.amir-dictionary-path .study-last-score{border-radius:14px;padding:12px;background:var(--brand-soft)}
@keyframes amir-path-pulse{0%,100%{opacity:.35;translate:0 -2px}50%{opacity:.85;translate:0 3px}}
@keyframes amir-card-pulse{0%,100%{outline-color:var(--brand-line)}50%{outline-color:var(--brand-accent)}}
@media(prefers-reduced-motion:no-preference){.amir-dictionary-path .study-quiz-card::after{animation:amir-path-pulse 3s ease-in-out infinite}.amir-dictionary-path .amir-current-stage{animation:amir-card-pulse 3s ease-in-out infinite}}
@media(max-width:650px){html:root .study-list .amir-dictionary-path{padding:20px 12px 20px 86px;gap:28px}html:root .study-list .amir-dictionary-path .study-quiz-card,html:root .study-list .amir-dictionary-path .study-quiz-card:nth-child(even){width:100%;margin:0;padding:20px;min-height:245px}html:root .study-list .amir-dictionary-path .study-card-index,html:root .study-list .amir-dictionary-path .study-quiz-card:nth-child(even) .study-card-index{left:-74px;right:auto;width:60px;height:60px;font-size:24px;border-width:5px}html:root .study-list .amir-dictionary-path .study-quiz-card::after,html:root .study-list .amir-dictionary-path .study-quiz-card:nth-child(even)::after{left:-54px;right:auto;top:calc(50% + 40px)}html:root .study-list .amir-dictionary-path .study-card-title{font-size:20px}.amir-dictionary-path .amir-node-symbol{width:23px;height:23px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.amir-dictionary-path *{animation:none!important}}
.ya-motion .amir-dictionary-path *{animation:none!important}html:root .study-list .amir-dictionary-path .study-quiz-card::after{clip-path:none;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='24' viewBox='0 0 20 24'%3E%3Cpath d='M2 6l8 8 8-8' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center top/20px 24px repeat-y;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='24' viewBox='0 0 20 24'%3E%3Cpath d='M2 6l8 8 8-8' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center top/20px 24px repeat-y}
/* Restored learning modules. */
.amir-feature-banner{max-width:1100px;width:100%;margin:22px auto 28px}.amir-feature-banner img{display:block;width:100%;height:auto;border-radius:22px}
#inputStudyprogrammer{position:relative!important;top:auto!important;left:auto!important;transform:none!important;margin:24px auto 80px!important;width:calc(100% - 32px);max-width:720px;box-sizing:border-box;padding:clamp(24px,6vw,64px)!important;border:1px solid var(--brand-line,#ded2f3)!important;background:var(--brand-panel,#fff)!important;box-shadow:0 12px 40px #7042c116}
#StudyprogrammerButtonBuild{background:var(--brand-button,#7042c1)!important;border:0;border-radius:12px;padding:15px;color:#fff}#LiteralStudyprogrammerDiv{height:auto!important;min-height:60vh;padding-bottom:80px!important}.study-nav{flex-wrap:wrap}

/* Server-enforced regular-practice progression. */
.regular-practice-path{width:100%;max-width:1080px;margin:20px auto;padding:clamp(14px,3vw,32px);border:1px solid var(--brand-line);border-radius:28px;background:var(--brand-panel);box-sizing:border-box;color:var(--brand-ink)}
.regular-practice-path header{padding:10px 0 28px}.regular-practice-path header strong{font-size:25px}.regular-practice-path header p{font-size:18px;color:var(--brand-accent)}.regular-practice-path header small{color:var(--brand-muted)}
.practice-stage{display:grid;grid-template-columns:1fr 82px 1fr;gap:20px;align-items:center;position:relative;margin:0 0 34px}.practice-card{grid-column:1;grid-row:1;padding:24px;border:1px solid var(--brand-line);border-radius:22px;box-shadow:0 8px 24px var(--brand-shadow);background:var(--brand-panel);min-width:0}.practice-stage:nth-of-type(even) .practice-card{grid-column:3}.practice-number{grid-column:2;grid-row:1;display:grid;place-items:center;width:72px;height:72px;border:5px solid var(--brand-panel);border-radius:50%;background:var(--brand-soft);color:var(--brand-accent);box-shadow:0 0 0 2px var(--brand-line);font-size:28px;font-weight:800;z-index:1}.practice-card h2{font-size:22px;line-height:1.6;margin:14px 0 10px}.practice-card p{color:var(--brand-muted);line-height:1.7}.practice-status{font-size:12px;padding:5px 10px;background:var(--brand-soft);border-radius:20px}.practice-action{display:block;padding:14px;border-radius:13px;background:var(--brand-button);color:#fff!important;text-align:center;margin-top:18px;font-weight:700}.practice-stage.current .practice-card{border:2px solid var(--brand-accent);outline:2px dashed var(--brand-line);outline-offset:4px}.practice-stage.current .practice-number{background:var(--brand-button);color:#fff}.practice-stage.locked .practice-card{box-shadow:none;background:var(--brand-soft)}.practice-lock-help{font-size:13px}.practice-notice{padding:16px;background:var(--brand-soft);border-radius:14px}.practice-score b{font-size:25px;color:var(--brand-accent)}
@media(prefers-reduced-motion:no-preference){.practice-stage.current .practice-card{animation:amir-card-pulse 3s ease-in-out infinite}}.ya-motion .practice-stage.current .practice-card{animation:none!important}
@media(max-width:650px){.practice-stage{grid-template-columns:56px minmax(0,1fr);gap:12px}.practice-stage .practice-card,.practice-stage:nth-of-type(even) .practice-card{grid-column:2;padding:18px}.practice-number{grid-column:1;width:50px;height:50px;font-size:23px}.practice-card h2{font-size:19px}.practice-action{font-size:13px}}

/* Symmetric regular-practice path: equal columns and equal-height desktop cards. */
.regular-practice-path{direction:rtl;text-align:right;overflow:hidden}
.regular-practice-path .practice-road{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:1fr;gap:34px;padding:8px}
.regular-practice-path .practice-stage{grid-template-columns:minmax(0,1fr) 82px minmax(0,1fr);gap:20px;margin:0;min-height:300px;isolation:isolate}
.regular-practice-path .practice-card{box-sizing:border-box;height:100%;display:flex;flex-direction:column;align-items:stretch;position:relative;z-index:1;border-width:2px}
.regular-practice-path .practice-number{box-sizing:border-box;justify-self:center;align-self:center}
.regular-practice-path .practice-status{align-self:flex-start}
.regular-practice-path .practice-action,.regular-practice-path .practice-lock-help{margin-top:auto;min-height:52px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;text-align:center}
.regular-practice-path .practice-lock-help{display:block;padding:10px 12px;border:1px dashed var(--brand-line);border-radius:13px;margin-bottom:0}
.regular-practice-path .practice-card>p{overflow-wrap:anywhere}.regular-practice-path .practice-card h2{overflow-wrap:anywhere}
.regular-practice-path .practice-stage::after{content:"";position:absolute;left:calc(50% - 9px);top:50%;width:18px;height:calc(100% + 34px);z-index:-1;background:var(--brand-accent);opacity:.4;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='24'%3E%3Cpath d='M3 7l6 6 6-6' fill='none' stroke='black' stroke-width='2.5'/%3E%3C/svg%3E") center/18px 24px repeat-y;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='24'%3E%3Cpath d='M3 7l6 6 6-6' fill='none' stroke='black' stroke-width='2.5'/%3E%3C/svg%3E") center/18px 24px repeat-y;pointer-events:none}
.regular-practice-path .practice-stage:last-of-type::after{display:none}
@media(prefers-reduced-motion:no-preference){.regular-practice-path .practice-stage::after{animation:amir-path-pulse 3s ease-in-out infinite}}
.ya-motion .regular-practice-path .practice-stage::after{animation:none!important}
@media(max-width:800px){.regular-practice-path .practice-road{grid-auto-rows:auto;gap:26px;padding:6px}.regular-practice-path .practice-stage{grid-template-columns:56px minmax(0,1fr);gap:14px;min-height:280px}.regular-practice-path .practice-stage .practice-card,.regular-practice-path .practice-stage:nth-of-type(even) .practice-card{grid-column:2;padding:18px}.regular-practice-path .practice-number{grid-column:1;width:52px;height:52px;font-size:23px}.regular-practice-path .practice-stage::after{left:auto;right:19px;height:calc(100% + 26px)}.regular-practice-path .practice-card h2{font-size:20px}}
/* Same traveling and softly pulsing chevrons as YaelKal, on every Amir path. */
html:root .study-list .amir-arrow-path::before,
html:root .study-list .amir-arrow-path>.study-quiz-card::after,
html:root .regular-practice-path .amir-arrow-path>.practice-stage::after{display:none!important}
.amir-arrow-path{position:relative}
.amir-path-arrows{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.amir-path-arrows>span{position:absolute;width:18px;background:var(--brand-accent);opacity:.7;
-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='24' viewBox='0 0 18 24'%3E%3Cpath d='M3 6l6 6 6-6' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='24' viewBox='0 0 18 24'%3E%3Cpath d='M3 6l6 6 6-6' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
-webkit-mask-size:18px 24px;mask-size:18px 24px;-webkit-mask-repeat:repeat-y;mask-repeat:repeat-y}
@keyframes amir-chevron-travel{from{-webkit-mask-position:0 0;mask-position:0 0}to{-webkit-mask-position:0 24px;mask-position:0 24px}}
@keyframes amir-chevron-pulse{0%,100%{opacity:.4}50%{opacity:.9}}
@media(prefers-reduced-motion:no-preference){.amir-path-arrows>span{animation:amir-chevron-travel 1.8s linear infinite,amir-chevron-pulse 3.2s ease-in-out infinite}}
@media(prefers-reduced-motion:reduce){.amir-path-arrows>span{animation:none!important;opacity:.7}}
.ya-motion .amir-path-arrows>span{animation:none!important;opacity:.7}
/* Compact homepage tools: one bounded icon instead of duplicate illustrations. */
html:root .colorful-home .learning-grid>a.amir-tool-card{display:grid;grid-template-columns:48px minmax(0,1fr);grid-template-rows:auto auto;column-gap:16px;row-gap:10px;align-content:center;align-items:center;text-align:right;min-height:172px;padding:26px 22px;border-radius:22px;position:relative;overflow:hidden;transition:transform .2s ease,border-color .2s ease}
html:root .colorful-home .learning-grid>a.amir-tool-card .color-nav-icon{grid-column:1;grid-row:1 / 3;position:static;width:48px;height:48px;min-width:48px;margin:0;padding:10px;box-sizing:border-box;border-radius:15px;display:grid;place-items:center}
html:root .colorful-home .learning-grid>a.amir-tool-card .color-nav-icon svg{display:block;width:28px;height:28px;max-width:100%;max-height:100%}
html:root .colorful-home .learning-grid>a.amir-tool-card>b{grid-column:2;grid-row:1;font-size:17px;line-height:1.5;margin:0;align-self:end}
html:root .colorful-home .learning-grid>a.amir-tool-card>span[lang=ar]{grid-column:2;grid-row:2;font-family:Tajawal,Arial,sans-serif;font-size:16px;line-height:1.6;color:var(--brand-muted);margin:0;align-self:start}
html:root .colorful-home .learning-grid>a.amir-tool-card:after{position:absolute;left:15px;top:12px;font-size:16px;opacity:.65}
html:root .colorful-home .learning-grid>a.amir-tool-card:before{content:"";position:absolute;right:0;top:24px;bottom:24px;width:3px;border-radius:4px;background:var(--brand-accent);opacity:.4}
html:root .colorful-home .learning-grid>a.amir-tool-card:hover{transform:translateY(-3px)}
@media(max-width:1100px){html:root .colorful-home .learning-grid>a.amir-tool-card{grid-template-columns:1fr;min-height:190px;padding:22px;gap:10px}html:root .colorful-home .learning-grid>a.amir-tool-card .color-nav-icon{grid-column:1;grid-row:1}html:root .colorful-home .learning-grid>a.amir-tool-card>b{grid-column:1;grid-row:2}html:root .colorful-home .learning-grid>a.amir-tool-card>span[lang=ar]{grid-column:1;grid-row:3}}
@media(prefers-reduced-motion:reduce){html:root .colorful-home .learning-grid>a.amir-tool-card{transition:none}}
.modern-study .catname img{width:36px!important;height:36px!important;object-fit:contain;vertical-align:middle;margin-inline-end:10px}.modern-study img[src*="practice-student.svg"]{width:24px!important;height:24px!important;vertical-align:middle;object-fit:contain}

/* Amir exam cards: focused question, quiet labels and clearly separated choices. */
html:root .modern-study #quiz.quiz-questions-state .question-container{padding:clamp(20px,3vw,34px)!important;border:1px solid var(--brand-line)!important;border-radius:24px!important;background:var(--brand-panel)!important;box-shadow:0 14px 40px var(--brand-shadow)!important}
html:root .modern-study #quiz .study-question-text{font-size:22px;line-height:1.85;color:var(--brand-ink);margin-bottom:24px}
html:root .modern-study #quiz .amir-question-topic{display:inline-flex!important;align-items:center;gap:10px;width:auto!important;max-width:100%;padding:8px 14px!important;margin:0 0 18px!important;background:var(--brand-soft)!important;border:1px solid var(--brand-line)!important;border-radius:30px!important;box-shadow:none!important;color:var(--brand-accent)!important;font:700 14px/1.5 Tajawal,Arial,sans-serif!important;vertical-align:middle}
html:root .modern-study #quiz .amir-question-topic img{width:28px!important;height:28px!important;margin:0!important;padding:0!important;object-fit:contain}
html:root .modern-study #quiz .amir-student-label{display:flex!important;align-items:center;gap:8px;padding:7px 0!important;margin-top:16px!important;background:transparent!important;border:0!important;border-radius:0!important;font:400 12px/1.5 Tajawal,Heebo,Arial,sans-serif!important;color:var(--brand-muted)!important;text-align:start!important;box-shadow:none!important}
html:root .modern-study #quiz .amir-student-label img{width:20px!important;height:20px!important;padding:0!important;opacity:.75}
html:root .modern-study #quiz.quiz-questions-state .answers{display:grid;grid-template-columns:1fr;gap:12px;margin:0!important;padding:0!important}
html:root .modern-study #quiz.quiz-questions-state .answers>li{margin:0!important;list-style:none}
html:root .modern-study #quiz.quiz-questions-state .allQuestionC{display:flex!important;align-items:stretch;gap:10px;direction:ltr}
html:root .modern-study #quiz.quiz-questions-state .answers a{display:flex!important;align-items:center;gap:16px;min-height:68px;box-sizing:border-box;padding:15px 20px!important;background:var(--brand-panel)!important;border:1px solid var(--brand-line)!important;border-radius:15px!important;color:var(--brand-ink)!important;font-size:18px!important;line-height:1.6;box-shadow:0 3px 10px #34204f05!important;text-align:left;transition:background .18s,border-color .18s,box-shadow .18s}
html:root .modern-study #quiz.quiz-questions-state .answers a:before{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;margin:0!important;border:0!important;border-radius:10px;background:var(--brand-soft);color:var(--brand-accent);font-size:13px;font-weight:700}
html:root .modern-study #quiz.quiz-questions-state .answers a:hover{border-color:var(--brand-accent)!important;background:var(--brand-soft)!important}
html:root .modern-study #quiz.quiz-questions-state .answers a.correct{background:#e8f8f0!important;border-color:#32896a!important;color:#17523e!important}
html:root .modern-study #quiz.quiz-questions-state .answers a.incorrect{background:#fff0f3!important;border-color:#cb647d!important;color:#842a42!important}
html:root .modern-study #quiz.quiz-questions-state .crossAnswer{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:4px;flex:0 0 74px;box-sizing:border-box;min-width:0;padding:8px!important;border:1px dashed var(--brand-line)!important;border-radius:15px!important;background:transparent!important;color:var(--brand-muted)!important;font:500 11px/1.4 Tajawal,Arial,sans-serif!important;white-space:normal!important;text-align:center}
html:root .modern-study #quiz.quiz-questions-state .crossAnswer img{display:none!important}
html:root .modern-study #quiz.quiz-questions-state .crossAnswer:before{content:'×';font:400 23px/1 Arial,sans-serif;color:var(--brand-muted)}
html:root .modern-study #quiz.quiz-questions-state .crossAnswer span{font:inherit!important;color:inherit!important}
html:root .modern-study #quiz.quiz-questions-state .crossAnswer:hover{background:var(--brand-soft)!important;border-color:var(--brand-accent)!important}
@media(max-width:600px){html:root .modern-study #quiz .study-question-text{font-size:19px;line-height:1.8}html:root .modern-study #quiz.quiz-questions-state .answers a{font-size:16px!important;padding:12px!important;gap:10px;min-height:62px}html:root .modern-study #quiz.quiz-questions-state .crossAnswer{flex-basis:52px;font-size:10px!important}html:root .modern-study #quiz.quiz-questions-state .allQuestionC{gap:7px}html:root .modern-study #quiz.quiz-questions-state .answers a:before{flex-basis:26px;width:26px;height:28px}}
@media(prefers-reduced-motion:reduce){html:root .modern-study #quiz .answers a{transition:none!important}}
/* Full-exam welcome with a lightweight animated study illustration. */
html:root .modern-study #quiz-start-screen.amir-full-intro{display:grid!important;grid-template-columns:minmax(0,1.2fr) minmax(240px,.8fr);gap:30px;align-items:center;padding:clamp(24px,4vw,48px)!important;text-align:right!important;border:1px solid var(--brand-line)!important;border-radius:26px!important;background:linear-gradient(120deg,var(--brand-panel),var(--brand-soft))!important;box-shadow:0 12px 36px var(--brand-shadow)}
html:root .modern-study #quiz:not(.quiz-start-state) #quiz-start-screen.amir-full-intro{display:none!important}
.full-intro-kicker{font:700 11px/1.7 Heebo,Arial,sans-serif;letter-spacing:1px;color:var(--brand-accent)}
.full-intro-copy h2{font:800 clamp(29px,3.5vw,44px)/1.4 Tajawal,Arial,sans-serif;color:var(--brand-ink);margin:18px 0 5px}
.full-intro-he{font-size:16px;color:var(--brand-muted);margin:0 0 24px}
.full-intro-facts{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:23px}.full-intro-facts>span{display:flex;gap:8px;align-items:baseline;padding:10px 14px;border:1px solid var(--brand-line);border-radius:13px;background:var(--brand-panel);color:var(--brand-muted);font:500 14px/1.5 Tajawal,Arial,sans-serif}.full-intro-facts b{font:800 23px/1.3 Heebo,Arial,sans-serif;color:var(--brand-accent)}
.full-intro-guide{font:400 16px/1.8 Tajawal,Arial,sans-serif;color:var(--brand-muted);margin-bottom:24px}.full-intro-guide p{margin:0 0 5px}
html:root .modern-study #quiz-start-btn.full-intro-start{display:inline-flex!important;align-items:center;justify-content:center;gap:30px;padding:15px 24px!important;border-radius:13px!important;font:700 18px/1.5 Tajawal,Arial,sans-serif!important;text-decoration:none;min-width:210px;box-sizing:border-box}
.full-intro-note{font:400 12px/1.7 Tajawal,Arial,sans-serif;color:var(--brand-muted);margin:13px 0 0}
.full-intro-art{width:100%;max-width:340px;justify-self:center;text-align:center}.full-intro-art svg{width:100%;height:auto;display:block;overflow:visible}.full-intro-art-label{font:500 11px/1.6 Heebo,Arial,sans-serif;color:var(--brand-muted);letter-spacing:.3px}
@keyframes intro-paper-float{50%{transform:translateY(-6px)}}@keyframes intro-clock-float{50%{transform:translateY(4px)}}@keyframes intro-check-draw{0%,15%{stroke-dashoffset:22}45%,100%{stroke-dashoffset:0}}@keyframes intro-spark-glow{50%{opacity:.4}}
.intro-check{stroke-dasharray:22;stroke-dashoffset:0}
@media(prefers-reduced-motion:no-preference){.intro-paper{animation:intro-paper-float 5s ease-in-out infinite}.intro-clock{animation:intro-clock-float 4s ease-in-out infinite}.intro-check{animation:intro-check-draw 4.5s ease-in-out infinite}.intro-spark{animation:intro-spark-glow 4s ease-in-out infinite}}
@media(max-width:700px){html:root .modern-study #quiz-start-screen.amir-full-intro{grid-template-columns:1fr;gap:14px;padding:25px!important}.full-intro-copy{text-align:center}.full-intro-facts{justify-content:center;gap:7px}.full-intro-facts>span{padding:8px 11px}.full-intro-art{max-width:210px;grid-row:1}.full-intro-art-label{display:none}.full-intro-copy h2{margin-top:10px}.full-intro-he{margin-bottom:18px}.full-intro-guide{font-size:15px;margin-bottom:18px}html:root .modern-study #quiz-start-btn.full-intro-start{width:100%}}
@media(prefers-reduced-motion:reduce){.full-intro-art *{animation:none!important}}.ya-motion .full-intro-art *{animation:none!important}