:root{--ru-bg:#0b0d12;--ru-panel:#12161e;--ru-panel-2:#181e28;--ru-line:#2a303b;--ru-ink:#f4f2ec;--ru-muted:#a4a9b3;--ru-gold:#e9c981;--ru-green:#b8d8c0;color-scheme:dark}
:root[data-theme="light"]{--ru-bg:#f5f4f0;--ru-panel:#fff;--ru-panel-2:#eeece6;--ru-line:#d9d6ce;--ru-ink:#20242b;--ru-muted:#626873;--ru-gold:#9b742b;--ru-green:#32704d;color-scheme:light}
html,body{background:var(--ru-bg)!important;color:var(--ru-ink)!important}
body{padding-top:0!important}
#rankup-shell{position:sticky;top:0;z-index:1100;min-height:58px;display:flex;align-items:center;gap:10px;padding:8px max(16px,calc((100vw - 1240px)/2));background:color-mix(in srgb,var(--ru-bg) 93%,transparent);border-bottom:1px solid var(--ru-line);backdrop-filter:blur(16px);font:600 13px/1.3 Inter,system-ui,sans-serif;color:var(--ru-ink)}
#rankup-shell .ru-brand{display:flex;align-items:center;gap:9px;font-weight:850;letter-spacing:.09em;color:var(--ru-gold);text-decoration:none;margin-right:auto}.ru-brand img{display:block;width:32px;height:32px;object-fit:cover;border-radius:8px}
#rankup-shell a,#rankup-shell button,#rankup-shell summary{font:inherit;color:var(--ru-ink);text-decoration:none}
#rankup-shell .ru-home,#rankup-shell .ru-theme,#rankup-shell summary{padding:8px 11px;border:1px solid var(--ru-line);border-radius:10px;background:var(--ru-panel);cursor:pointer}
#rankup-shell details{position:relative}
#rankup-shell details[open] .ru-menu{display:grid}
#rankup-shell .ru-menu{display:none;position:absolute;right:0;top:calc(100% + 8px);min-width:205px;padding:7px;background:var(--ru-panel);border:1px solid var(--ru-line);border-radius:12px;box-shadow:0 18px 50px #0004;gap:2px}
#rankup-shell .ru-menu a{padding:9px 10px;border-radius:8px}
#rankup-shell .ru-menu a:hover{background:var(--ru-panel-2)}
#top-nav,#topNavbar,.top-header{top:58px!important}
.nav{top:58px!important;background:var(--ru-bg)!important;border-color:var(--ru-line)!important}
a{color:inherit}
:root:not([data-theme="light"]) body{background-color:var(--ru-bg)!important}
.card,.box,[class*="bg-slate-900"],[class*="bg-slate-950"],[class*="bg-slate-800"]{border-color:var(--ru-line)!important}
:root[data-theme="light"] .bg-slate-950,:root[data-theme="light"] .bg-slate-900,:root[data-theme="light"] .bg-slate-800,:root[data-theme="light"] [class*="bg-[#0"],:root[data-theme="light"] [class*="bg-[#1"]{background-color:var(--ru-panel)!important;color:var(--ru-ink)!important}
:root[data-theme="light"] .text-white,:root[data-theme="light"] .text-slate-100,:root[data-theme="light"] .text-slate-200,:root[data-theme="light"] .text-slate-300,:root[data-theme="light"] .text-gray-100,:root[data-theme="light"] .text-gray-200{color:var(--ru-ink)!important}
:root[data-theme="light"] .text-slate-400,:root[data-theme="light"] .text-slate-500,:root[data-theme="light"] .text-gray-400{color:var(--ru-muted)!important}
:root[data-theme="light"] .border-slate-700,:root[data-theme="light"] .border-slate-800{border-color:var(--ru-line)!important}
:root[data-theme="light"] .card,:root[data-theme="light"] .box{background:var(--ru-panel)!important}
@media(max-width:640px){#rankup-shell{padding:7px 10px;gap:6px;font-size:12px}#rankup-shell .ru-home,#rankup-shell .ru-theme,#rankup-shell summary{padding:7px 8px}.ru-hide-mobile{display:none!important}}

body:has(#topNavbar) #topNavCglOsBtn,body:has(#topNavbar) #topSignInBtn,body:has(#topNavbar) #heroTypingBtn,body:has(#topNavbar) #heroCaBtn,body:has(#topNavbar) #telegramLink,body:has(#topNavbar) #typingTestSection,body:has(#topNavbar) #currentAffairsSection{display:none!important}
body:has(#topNavbar) [id*="CglOs"],body:has(#topNavbar) [id*="CglOS"]{display:none!important}
.current-track{font-size:12px;color:var(--ru-muted);font-weight:700}

body:has(#topNavbar) a[href*="t.me/rankupexam"],body:has(#topNavbar) [data-nav="TYPING"],body:has(#topNavbar) [data-nav="CA"],body:has(#topNavbar) [data-nav="CGLOS"],body:has(#topNavbar) [data-nav="GKQUIZ"],body:has(#topNavbar) [data-nav="PDFS"],body:has(#topNavbar) #enterCglOsCardBtn{display:none!important}
.nav{display:none!important}

.top-header{background:var(--ru-panel)!important;color:var(--ru-ink)!important;border-bottom:1px solid var(--ru-line);box-shadow:none!important}.top-header .brand-title p{color:var(--ru-muted)!important}.brand-title h1{color:var(--ru-ink)!important}.top-header .brand-badge{background:var(--ru-gold)!important;color:#17191c!important}

/* EPFO legacy palette follows the same dark/light token set as the shared shell */
:root:not([data-theme="light"]){
 --bg-main:var(--ru-bg);--bg-card:var(--ru-panel);--bg-subtle:var(--ru-panel-2);
 --navy-900:var(--ru-ink);--navy-800:var(--ru-muted);
 --brand-700:var(--ru-gold);--brand-600:#d9b768;--brand-100:#282720;--brand-50:#191a1b;
 --gold-600:var(--ru-gold);--gold-100:#2a2519;--gold-50:#1c1914;
 --emerald-600:#75c799;--emerald-100:#1e3028;--emerald-50:#16231d;
 --rose-600:#ff8491;--rose-100:#342026;--rose-50:#25171c;
 --purple-600:#c3a0ff;--purple-100:#2a2136;
 --text-main:var(--ru-ink);--text-sec:#d1d3d8;--text-muted:var(--ru-muted);--border-col:var(--ru-line);
 --shadow-sm:0 1px 3px rgba(0,0,0,.22);--shadow-md:0 8px 24px rgba(0,0,0,.28)
}
:root:not([data-theme="light"]) .theory-sec-body .lang-hi{background:var(--ru-panel-2)!important;color:var(--ru-ink)!important;border-color:var(--ru-line)!important}
:root:not([data-theme="light"]) .theory-sec-body code,:root:not([data-theme="light"]) .btn-outline{background:var(--ru-panel-2)!important;color:var(--ru-ink)!important;border-color:var(--ru-line)!important}

/* Keep legacy white answer/empty-state panels readable in dark mode */
:root:not([data-theme="light"]) .oa-item{background:var(--ru-panel-2)!important;color:var(--ru-ink)!important;border-color:var(--ru-line)!important}
:root:not([data-theme="light"]) body:has(.top-header) [style*="background:#fff"],
:root:not([data-theme="light"]) body:has(.top-header) [style*="background: #fff"],
:root:not([data-theme="light"]) body:has(.top-header) [style*="background:#FFFFFF"],
:root:not([data-theme="light"]) body:has(.top-header) [style*="background: #FFFFFF"]{background:var(--ru-panel-2)!important;color:var(--ru-ink)!important;border-color:var(--ru-line)!important}

:root:not([data-theme="light"]) .theory-table tr:nth-child(even) td{background:var(--ru-panel-2)!important;color:var(--ru-ink)!important}

#rankup-shell .ru-auth{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 11px;border:1px solid var(--ru-line);border-radius:10px;background:var(--ru-panel);color:var(--ru-ink);font-weight:700}
#rankup-shell .ru-auth.signed-in{border-color:var(--ru-gold);color:var(--ru-gold)}
@media(max-width:640px){#rankup-shell .ru-auth{padding:7px 8px}}

/* Shared page theme polish: keep feature pages aligned with the homepage in light mode. */
:root[data-theme="light"] .bg-gradient-to-b,
:root[data-theme="light"] .bg-gradient-to-r,
:root[data-theme="light"] .bg-gradient-to-br,
:root[data-theme="light"] .bg-gradient-to-tr{background-image:none!important;background-color:var(--ru-panel)!important}
:root[data-theme="light"] [class*="from-[#"],
:root[data-theme="light"] [class*="via-[#"],
:root[data-theme="light"] [class*="to-[#"]{--tw-gradient-from:var(--ru-panel)!important;--tw-gradient-to:var(--ru-panel)!important;--tw-gradient-stops:var(--ru-panel)!important}
:root[data-theme="light"] [class*="text-amber-"]{color:var(--ru-gold)!important}
:root[data-theme="light"] [class*="border-amber-"]{border-color:color-mix(in srgb,var(--ru-gold) 38%,var(--ru-line))!important}

/* Premium UPSC/UPPSC workspace: compact controls and calmer study surfaces */
body:has(#questionCard) .max-w-6xl.mx-auto{max-width:1180px!important;padding-top:18px!important;padding-bottom:40px!important}
body:has(#questionCard) .max-w-6xl>header{background:var(--ru-panel)!important;border:1px solid var(--ru-line)!important;border-radius:22px!important;padding:18px 20px!important;box-shadow:0 16px 48px rgba(0,0,0,.12)!important}
body:has(#questionCard) .max-w-6xl>header h1{font-size:clamp(18px,2.2vw,24px)!important;letter-spacing:-.025em!important;background:none!important;background-clip:border-box!important;color:var(--ru-ink)!important;-webkit-text-fill-color:var(--ru-ink)!important}
body:has(#questionCard) #rankBadge{display:none!important}
body:has(#questionCard) .max-w-6xl>header p.text-slate-300.font-medium{display:none!important}
body:has(#questionCard) #openUserSwitchBtn{padding:7px 10px!important;background:var(--ru-panel-2)!important;border:1px solid var(--ru-line)!important;color:var(--ru-ink)!important;border-radius:11px!important}
body:has(#questionCard) #currentUserNameLabel{display:none!important}
body:has(#questionCard) #openUserSwitchBtn>span:last-child{font-size:0!important}
body:has(#questionCard) #openUserSwitchBtn>span:last-child:after{content:"Profile";font-size:11px!important;color:var(--ru-muted)!important}
body:has(#questionCard) #activeDayBanner{background:var(--ru-panel-2)!important;border:1px solid var(--ru-line)!important;border-left:3px solid var(--ru-gold)!important;border-radius:18px!important;box-shadow:none!important;padding:16px 18px!important}
body:has(#questionCard) #activeDayBanner h2{font-size:clamp(16px,2vw,20px)!important;color:var(--ru-ink)!important}
body:has(#questionCard) #activeDayBanner p{color:var(--ru-gold)!important}
body:has(#questionCard) #theoryMasterSection,body:has(#questionCard) #questionCard{background:var(--ru-panel)!important;border:1px solid var(--ru-line)!important;border-radius:20px!important;box-shadow:0 14px 42px rgba(0,0,0,.10)!important}
body:has(#questionCard) #theoryMasterSection{padding:22px!important;margin-bottom:18px!important}
body:has(#questionCard) #daySpecificTheoryCard{background:var(--ru-panel-2)!important;border:1px solid var(--ru-line)!important;border-left:3px solid var(--ru-gold)!important;border-radius:16px!important;box-shadow:none!important}
body:has(#questionCard) #theoryMasterSection .border-indigo-500\/40{border-color:var(--ru-line)!important}
body:has(#questionCard) #dayNavigatorBar,body:has(#questionCard) #subjectLibraryBar{border-color:var(--ru-line)!important}
body:has(#questionCard) #questionCard{padding:22px!important}
body:has(#questionCard) #theoryMasterSection h2,body:has(#questionCard) #questionCard h2{letter-spacing:-.015em}
body:has(#questionCard) .theory-table{border-color:var(--ru-line)!important}
body:has(#questionCard) .theory-table th{background:var(--ru-panel-2)!important;color:var(--ru-ink)!important}
:root:not([data-theme="light"]) body:has(#questionCard) .theory-table tr:nth-child(even) td{background:#191e27!important;color:var(--ru-ink)!important}
:root[data-theme="light"] body:has(#questionCard) .theory-table tr:nth-child(even) td{background:#f2f0ea!important;color:var(--ru-ink)!important}
@media(max-width:760px){
 body:has(#questionCard) .max-w-6xl.mx-auto{padding-left:10px!important;padding-right:10px!important}
 body:has(#questionCard) .max-w-6xl>header{padding:14px!important;border-radius:17px!important}
 body:has(#questionCard) #theoryMasterSection,body:has(#questionCard) #questionCard{padding:15px!important;border-radius:17px!important}
 body:has(#questionCard) #activeDayBanner{padding:13px!important}
 body:has(#questionCard) #globalSolvedCount{font-size:12px}
}

body:has(#questionCard) .ru-study-nav,body:has(#questionCard) .ru-unit-reference{margin:10px 0 0;border:1px solid var(--ru-line);border-radius:14px;background:var(--ru-panel-2);overflow:hidden}
body:has(#questionCard) .ru-study-nav>summary,body:has(#questionCard) .ru-unit-reference>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;padding:12px 15px;color:var(--ru-ink);font-size:13px;font-weight:750;cursor:pointer}
body:has(#questionCard) .ru-study-nav>summary::-webkit-details-marker,body:has(#questionCard) .ru-unit-reference>summary::-webkit-details-marker{display:none}
body:has(#questionCard) .ru-study-nav>summary:after,body:has(#questionCard) .ru-unit-reference>summary:after{content:"＋";font-size:16px;color:var(--ru-gold)}
body:has(#questionCard) .ru-study-nav[open]>summary:after,body:has(#questionCard) .ru-unit-reference[open]>summary:after{content:"−"}
body:has(#questionCard) .ru-nav-current-day{margin-left:auto;color:var(--ru-muted);font-size:12px}
body:has(#questionCard) .ru-study-nav #dayNavigatorBar,body:has(#questionCard) .ru-study-nav #subjectLibraryBar{margin:0!important;padding:12px 14px!important;border-top:1px solid var(--ru-line)!important}
body:has(#questionCard) .ru-unit-reference>div{margin:0!important;padding:10px 14px!important}
body:has(#questionCard) .ru-unit-reference #theoryUnitsGrid{padding:0 14px 14px!important}
@media(max-width:760px){body:has(#questionCard) .ru-study-nav>summary,body:has(#questionCard) .ru-unit-reference>summary{padding:11px 12px;font-size:12px}}

body:has(#questionCard) #questionCard{scroll-margin-top:78px}
body:has(#questionCard) .ru-practice-bridge{display:flex;align-items:center;justify-content:space-between;gap:22px;margin:0 0 18px;padding:20px 22px;border:1px solid var(--ru-line);border-left:3px solid var(--ru-gold);border-radius:18px;background:var(--ru-panel-2)}
body:has(#questionCard) .ru-step-label{display:block;margin-bottom:5px;color:var(--ru-gold);font-size:10px;font-weight:850;letter-spacing:.14em}
body:has(#questionCard) .ru-practice-bridge h2{margin:0;color:var(--ru-ink);font-size:clamp(18px,2vw,23px);font-weight:800;letter-spacing:-.02em}
body:has(#questionCard) .ru-practice-bridge p{margin:5px 0 0;color:var(--ru-muted);font-size:13px}
body:has(#questionCard) .ru-mock-actions{display:flex;flex-wrap:wrap;gap:9px;justify-content:flex-end}
body:has(#questionCard) .ru-mock-action{min-height:42px;padding:10px 14px;border:1px solid var(--ru-line);border-radius:11px;font-size:12px;font-weight:800;cursor:pointer;transition:transform .15s,border-color .15s}
body:has(#questionCard) .ru-mock-action:hover{transform:translateY(-1px);border-color:var(--ru-gold)}
body:has(#questionCard) .ru-mock-action.primary{background:var(--ru-gold);border-color:var(--ru-gold);color:#17191c}
body:has(#questionCard) .ru-mock-action.secondary{background:var(--ru-panel);color:var(--ru-ink)}
body:has(#questionCard) #ru-practice-dock{position:fixed;left:50%;bottom:max(12px,env(safe-area-inset-bottom));z-index:1080;transform:translateX(-50%);display:flex;align-items:center;justify-content:space-between;gap:18px;width:min(780px,calc(100vw - 28px));padding:12px 14px;border:1px solid var(--ru-line);border-radius:16px;background:color-mix(in srgb,var(--ru-panel) 94%,transparent);box-shadow:0 16px 44px rgba(0,0,0,.24);backdrop-filter:blur(18px)}
body:has(#questionCard) #ru-practice-dock[hidden]{display:none!important}
body:has(#questionCard) #ru-practice-dock>div{display:grid;gap:2px}
body:has(#questionCard) #ru-practice-dock strong{color:var(--ru-ink);font-size:12px}
body:has(#questionCard) #ru-practice-dock .ru-dock-detail{color:var(--ru-muted);font-size:11px}
body:has(#questionCard) #ru-practice-dock .ru-mock-action{white-space:nowrap}
@media(max-width:760px){
 body:has(#questionCard) .ru-practice-bridge{align-items:stretch;flex-direction:column;gap:13px;padding:16px}
 body:has(#questionCard) .ru-mock-actions{justify-content:stretch}
 body:has(#questionCard) .ru-mock-actions .ru-mock-action{flex:1}
 body:has(#questionCard) #ru-practice-dock{bottom:max(8px,env(safe-area-inset-bottom));gap:8px;padding:9px}
 body:has(#questionCard) #ru-practice-dock strong{font-size:11px}
 body:has(#questionCard) #ru-practice-dock .ru-dock-detail{font-size:10px}
 body:has(#questionCard) #ru-practice-dock .ru-mock-action{min-height:38px;padding:8px 10px;font-size:11px}
}


/* Keep the existing live countdown fixed below the navigation throughout a timed mock. */
body:has(#questionCard) #timerBanner{position:fixed!important;top:66px!important;left:50%!important;transform:translateX(-50%)!important;z-index:1085!important;width:min(720px,calc(100vw - 24px))!important;max-height:32vh;overflow:auto;box-sizing:border-box;margin:0!important;padding:10px 12px!important;border:1px solid var(--ru-line)!important;border-radius:13px!important;background:color-mix(in srgb,var(--ru-panel) 97%,transparent)!important;color:var(--ru-ink)!important;box-shadow:0 8px 24px rgba(0,0,0,.22)!important;backdrop-filter:blur(14px)}
@media(max-width:760px){body:has(#questionCard) #timerBanner{top:62px!important;width:calc(100vw - 18px)!important;max-height:30vh;padding:9px 10px!important;border-radius:11px!important}}
