/* Red board look for the test detail, quiz and result pages. Colours and shapes only.
   Green and red for right/wrong answers are kept. Loaded by partials/theme-preference on these three routes. */
html body.gl{background:#fff!important}
html body.gl::before,html body.gl::after{display:none!important}
html body.gl .gl-card,html body.gl .ps-card{background:#fff!important;border:1px solid #f1d5d5!important;border-radius:10px!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}

/* ---------- test detail ---------- */
html body.gl .ps{--ink:#1f2937;--muted:#5b6b80;--line:#f1d5d5;--green:#991B1B;--green-soft:#FEF2F2}
html body.gl .ps-hero{background:#991B1B;border-radius:10px;box-shadow:none;text-align:center}
html body.gl .ps-hero:before{display:none}
html body.gl .ps-hero .ps-crumbs ol{background:none;border:0;padding:0}
html body.gl .ps-hero .ps-title{margin-left:auto;margin-right:auto;color:#fff}
html body.gl .ps-hero .ps-badges{justify-content:safe center}
html body.gl .ps-hero .ps-badges li{background:#7F1D1D;border:1px solid rgba(255,255,255,.25);color:#fff}
html body.gl .ps-hero .ps-badges li:first-child{background:#FDE047;border-color:#FDE047;color:#7F1D1D}
html body.gl .ps-hstats{margin-left:auto;margin-right:auto}
html body.gl .ps-hstats div{background:#7F1D1D;border:1px solid rgba(255,255,255,.2);border-radius:10px}
html body.gl .ps-hstats dd{color:#FDE047}
html body.gl .ps-card h2 .gl-gi{background:#991B1B!important;box-shadow:none!important}
html body.gl .ps-btn{background:#991B1B;border-radius:8px;box-shadow:none}
html body.gl .ps-btn:hover{background:#7F1D1D}
html body.gl .ps-btn.ink{background:#1E3A8A}
html body.gl .ps-btn:disabled{background:#cbd5e1}
html body.gl .ps-link{background:#FEF2F2;color:#991B1B;border-radius:8px}
html body.gl .ps-table thead th{padding:9px 10px;background:#991B1B;color:#fff}
html body.gl .ps-table th,html body.gl .ps-table td{padding-left:10px;padding-right:10px;border-bottom-color:#f6e3e3}
html body.gl .ps-mini-bar,html body.gl .ps-bar{background:#FEE2E2}
html body.gl .ps-mini-bar i,html body.gl .ps-bar i{background:#991B1B}
html body.gl .ps-questions li,html body.gl .ps-related a,html body.gl .ps-mine,html body.gl .ps-stats div{border-radius:8px;background:#fff;border:1px solid #f1d5d5;box-shadow:none}
html body.gl .ps-related a:hover{border-color:#991B1B}
html body.gl .ps-related em{background:#FEE2E2;color:#991B1B}
html body.gl .ps-crumbs a{color:#991B1B}
html body.gl .ps-dock{background:#fff;border-top:2px solid #991B1B}
html body.gl .ps-resume{background:#FEF2F2!important}

/* ---------- quiz ---------- */
html body.gl:has(#examActions)>header{background:#991B1B!important;box-shadow:none}
html body.gl:has(#examActions)>header span.bg-emerald-600{background:#FDE047!important;color:#7F1D1D;box-shadow:none}
html body.gl:has(#examActions)>header p{color:#FECACA}
html body.gl:has(#examActions)>header button:not([data-back]){border-radius:8px!important;background:#FDE047!important;color:#7F1D1D;box-shadow:none}
html body.gl>main{background:#fff!important;box-shadow:none!important;-webkit-backdrop-filter:none;backdrop-filter:none}
html body.gl #subjectTag{background:#FEE2E2!important;color:#991B1B;border-radius:6px!important}
html body.gl #questionLabel{background:#991B1B;color:#fff;border-radius:6px!important}
html body.gl #options button{border-radius:10px!important}
html body.gl #options button:not(.border-emerald-500){background:#fff;border-color:#f1d5d5}
html body.gl #options button.border-emerald-500{background:#FEF2F2!important;border-color:#991B1B!important;box-shadow:none!important}
html body.gl #options button.border-emerald-500>span:first-child{background:#991B1B;color:#fff}
html body.gl #langSwitch button.bg-emerald-600{background:#991B1B}
html body.gl #examActions{background:#FEF2F2!important;border-top:1px solid #f1d5d5;-webkit-backdrop-filter:none;backdrop-filter:none}
html body.gl #examActions button{border-radius:8px!important}
html body.gl #prevButton{background:#fff;border-color:#e5b9b9}
html body.gl #saveNextButton{background:#991B1B!important;box-shadow:none}
html body.gl #palettePanel{background:#FEF2F2!important;border-left:1px solid #f1d5d5!important}
html body.gl #palettePanel h2{color:#991B1B}
html body.gl #palette button{border-radius:8px!important}
html body.gl #palettePanel button.bg-rose-600{background:#991B1B;border-radius:8px}
html body.gl #recovery{background:#1E3A8A}
html body.gl #submitModal>div,html body.gl #exitModal>div{border-radius:14px;border:1px solid #f1d5d5;border-top:5px solid #991B1B}

/* ---------- result ---------- */
html body.gl main>section.rounded-3xl.relative{background:#991B1B!important;border-color:#991B1B!important;border-radius:10px!important;color:#fff}
html body.gl main>section.rounded-3xl.relative>.absolute{display:none!important}
html body.gl main>section.rounded-3xl.relative h1{color:#fff}
html body.gl main>section.rounded-3xl.relative p,html body.gl main>section.rounded-3xl.relative .gl-meta,html body.gl main>section.rounded-3xl.relative span.text-xs{color:#FEE2E2}
html body.gl main>section.rounded-3xl.relative>div>div>span.rounded-full{background:#FDE047;color:#7F1D1D}
html body.gl main>section.rounded-3xl.relative b.block{color:#FDE047}
html body.gl main>section.rounded-3xl.relative .score-ring{color:#1f2937}
html body.gl main>section.rounded-3xl.relative a.rounded-xl.bg-emerald-600{background:#FDE047!important;color:#7F1D1D;box-shadow:none;border-radius:8px!important}
html body.gl main section.rounded-3xl,html body.gl main aside section.rounded-3xl,html body.gl main section.mt-4>div.rounded-2xl,html body.gl main section.grid>div.rounded-2xl{border-radius:10px!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html body.gl main section.rounded-3xl:not(.relative):not(.bg-gradient-to-r),html body.gl main section.mt-4>div.rounded-2xl{background:#fff!important;border:1px solid #f1d5d5!important}
html body.gl main p.uppercase.text-indigo-600{color:#991B1B}
html body.gl main .filter{border-radius:8px!important;border-color:#f1d5d5}
html body.gl main .filter.bg-emerald-600{background:#991B1B;color:#fff}
html body.gl main details.answer{background:#fff!important;border:1px solid #f1d5d5!important;border-radius:10px!important;box-shadow:none}
html body.gl main aside a.border-emerald-500,html body.gl main aside a.border.rounded-xl{border-color:#991B1B;color:#991B1B;border-radius:8px!important}
html body.gl main aside a.text-emerald-700:not(.bg-emerald-50){color:#991B1B}
html body.gl main a.rounded-xl.bg-emerald-50,html body.gl main a.rounded-xl.bg-violet-50,html body.gl main a.rounded-xl.bg-slate-100{border-radius:8px!important;background:#FEF2F2!important;border:1px solid #f1d5d5;color:#7F1D1D}
html body.gl main>section.bg-gradient-to-r{background:#7F1D1D!important;border-radius:10px!important}
html body.gl main>section.bg-gradient-to-r p{color:#FEE2E2}
html body.gl main>section.bg-gradient-to-r a.bg-emerald-500{background:#FDE047!important;color:#7F1D1D;box-shadow:none;border-radius:8px!important}
html body.gl main section.grid>div.rounded-2xl{border:1px solid #f1d5d5!important;background:#fff!important}
html body.gl main section.grid>div.rounded-2xl.border-emerald-200{background:#F0FDF4!important;border-color:#bbf7d0!important}
html body.gl main section.grid>div.rounded-2xl:not(.border-emerald-200){background:#FFFBEB!important;border-color:#fde68a!important}
html body.gl main section.mt-4.grid>div.rounded-2xl{background:#fff!important;border-color:#f1d5d5!important}
