:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172033;background:#f5f7fb;line-height:1.4}*{box-sizing:border-box}body{margin:0}.topbar{height:60px;background:#0b57d0;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 18px;position:sticky;top:0;z-index:20}.topbar strong{font-size:18px}.container{max-width:1100px;margin:0 auto;padding:24px 16px}.card{background:#fff;border:1px solid #e2e7f0;border-radius:14px;padding:20px;box-shadow:0 3px 14px #0000000a;margin-bottom:16px}.grid{display:grid;gap:16px}.grid2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid3{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:760px){.grid2,.grid3{grid-template-columns:1fr}}label{display:block;font-weight:600;margin:10px 0 6px}input,select,textarea{width:100%;padding:11px 12px;border:1px solid #cfd7e6;border-radius:9px;font:inherit;background:#fff}textarea{min-height:100px}button{border:0;border-radius:9px;padding:11px 15px;font:inherit;font-weight:650;cursor:pointer;background:#0b57d0;color:white}button.secondary{background:#e9efff;color:#174ea6}button.danger{background:#b3261e}button.warn{background:#b06000}button.ghost{background:transparent;color:inherit;border:1px solid #ffffff80}.hidden{display:none!important}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.between{justify-content:space-between}.muted{color:#667085}.error{color:#b3261e;margin-top:8px}.success{color:#137333}.pill{display:inline-flex;padding:4px 8px;border-radius:999px;background:#eef2f7;font-size:12px}.pill.green{background:#e6f4ea;color:#137333}.pill.red{background:#fce8e6;color:#b3261e}.pill.orange{background:#fef0d5;color:#8a4b00}.timer{font-variant-numeric:tabular-nums;font-size:22px;font-weight:800}.question{font-size:20px;font-weight:700;margin:8px 0 18px}.option{display:flex;gap:10px;padding:13px;border:1px solid #d9dfeb;border-radius:10px;margin:9px 0;cursor:pointer}.option.selected{border-color:#0b57d0;background:#eef4ff}.option input{width:auto}.exambar{position:sticky;top:60px;background:#fff;border-bottom:1px solid #ddd;padding:10px 16px;z-index:10}.progress{height:8px;background:#e8ecf3;border-radius:10px;overflow:hidden}.progress>div{height:100%;background:#0b57d0}.toast{position:fixed;right:18px;bottom:18px;background:#172033;color:#fff;padding:12px 16px;border-radius:10px;z-index:100}.tablewrap{overflow:auto}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:10px;border-bottom:1px solid #e7ebf2;text-align:left;white-space:nowrap}.center{text-align:center}.large-btn{width:100%;padding:18px;font-size:18px}.notice{padding:12px;border-radius:10px;background:#fff4e5;border:1px solid #ffd8a8}.dangerbox{padding:16px;border-radius:10px;background:#fdecec;border:1px solid #f3b4b4}.locked{min-height:55vh;display:grid;place-items:center;text-align:center}.qnav{display:flex;gap:7px;flex-wrap:wrap;margin-top:16px}.qnum{width:38px;height:38px;padding:0;border-radius:8px;background:#edf1f7;color:#344054}.qnum.answered{background:#d9f2df;color:#137333}.qnum.current{outline:3px solid #9fc0ff}.dangertext{color:#b3261e;font-weight:700}

/* Official MDDTI landing page */
body:has(.landing-page){background:#071326;color:#f8f2df}
body:has(.landing-page) .container{max-width:none;min-height:100vh;padding:0}
.landing-page{min-height:100vh;background:radial-gradient(ellipse at 75% 42%,#17365b 0,#0b1c35 48%,#071326 100%);display:flex;flex-direction:column;overflow:hidden}
.landing-masthead{display:grid;grid-template-columns:150px minmax(0,1fr) 112px;gap:26px;align-items:center;padding:26px clamp(22px,6vw,88px);background:#fbfaf6;color:#15213a;border-top:5px solid #c99a32;box-shadow:0 8px 28px #0003}
.rail-logo{width:132px;height:132px;object-fit:contain;border-radius:50%}
.institute-logo{width:80px;height:150px;object-fit:contain;justify-self:end}
.landing-title-block{text-align:center;max-width:1000px;margin:auto}
.railway-wordmark{margin:0 0 8px;color:#946e22;font-size:12px;font-weight:800;letter-spacing:.2em}
.landing-title-block h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(24px,3.2vw,42px);line-height:1.12;color:#12203a;margin:0 auto;max-width:850px}
.landing-subtitle{font-family:Georgia,"Times New Roman",serif;font-size:clamp(15px,1.7vw,20px);font-style:italic;color:#526078;margin:14px 0 0}
.landing-hero{flex:1;min-height:460px;display:grid;grid-template-columns:minmax(180px,1fr) minmax(330px,460px) minmax(180px,1fr);gap:28px;align-items:center;padding:52px clamp(28px,8vw,120px);background-image:linear-gradient(90deg,#071326ed,#0c1b32c9 52%,#071326ed);background-size:cover;background-position:center}
.landing-copy{grid-column:1;color:#e8d19a;align-self:center;max-width:260px;font-family:Georgia,"Times New Roman",serif;font-size:clamp(20px,2vw,28px);line-height:1.4}
.landing-copy p{margin:13px 0}
.landing-kicker{font:800 11px/1.4 Inter,system-ui,sans-serif;letter-spacing:.2em;color:#d6ad54}
.instructor-card{grid-column:2;background:#fffdf8;color:#172033;border:1px solid #d7bd7a;border-radius:6px;padding:30px;box-shadow:0 22px 60px #0007;text-align:center}
.instructor-icon{width:52px;height:52px;margin:0 auto 10px;display:grid;place-items:center;border:1px solid #b28b39;border-radius:50%;color:#947021;font-size:25px}
.instructor-card h2{font-family:Georgia,"Times New Roman",serif;font-size:30px;margin:8px 0;color:#12203a}
.instructor-card p{color:#536078;margin:0 0 22px}
.instructor-card .large-btn{background:linear-gradient(110deg,#c59a3b,#e0b951);color:#111a2a;border-radius:5px;box-shadow:0 3px 0 #997327;padding:16px 18px}
.landing-footer{padding:15px 20px;text-align:center;border-top:1px solid #b28b394d;color:#d9c28b;font:italic 14px Georgia,"Times New Roman",serif;letter-spacing:.04em}
@media(max-width:760px){.landing-masthead{grid-template-columns:70px minmax(0,1fr) 55px;gap:12px;padding:18px 14px}.rail-logo{width:66px;height:66px}.institute-logo{width:48px;height:96px}.railway-wordmark{font-size:9px;letter-spacing:.12em}.landing-title-block h1{font-size:clamp(18px,4vw,26px)}.landing-subtitle{font-size:14px;margin-top:8px}.landing-hero{grid-template-columns:1fr;gap:20px;padding:36px 18px;min-height:calc(100vh - 150px);align-content:center}.landing-copy{grid-column:1;max-width:none;text-align:center;font-size:19px}.instructor-card{grid-column:1;width:min(100%,440px);margin:0 auto;padding:24px 18px}.instructor-card h2{font-size:26px}}

/* Match the selected compact navy-and-gold homepage composition. */
body:has(.landing-page){margin:0;min-height:100svh;overflow:hidden;background:#071326}
body:has(.landing-page) .container{width:100%;max-width:none;height:100svh;min-height:0;padding:0}
.landing-page{height:100svh;min-height:680px;max-width:1680px;margin:0 auto;display:flex;flex-direction:column;border-inline:1px solid #bb923b;background:#071326;overflow:hidden}
.landing-masthead{flex:0 0 clamp(190px,26svh,280px);height:auto;min-height:0;max-height:none;grid-template-columns:clamp(76px,9vw,128px) minmax(0,1fr) clamp(54px,6vw,84px);gap:clamp(12px,2vw,28px);padding:14px clamp(18px,4vw,64px);border-top:4px solid #c99a32}
.rail-logo{width:clamp(68px,8vw,118px);height:clamp(68px,8vw,118px)}
.institute-logo{width:clamp(44px,5vw,72px);height:clamp(92px,15svh,145px)}
.landing-title-block h1{font-size:clamp(25px,2.35vw,39px);line-height:1.08;max-width:900px}
.landing-subtitle{font-size:clamp(14px,1.2vw,19px);margin-top:10px}
.landing-hero{flex:1;min-height:0;grid-template-columns:minmax(160px,1fr) minmax(310px,420px) minmax(80px,1fr);gap:clamp(18px,3vw,44px);padding:24px clamp(26px,7vw,104px);background-image:linear-gradient(90deg,#071326a8,#0713266e 48%,#0713269c),url("/railway-night-hero.png");background-size:cover;background-position:center 58%}
.landing-copy{font-size:clamp(19px,1.8vw,27px);max-width:260px}
.instructor-card{padding:clamp(20px,2vw,28px);width:100%;max-width:420px;justify-self:center}
.instructor-icon{width:46px;height:46px;font-size:21px}
.instructor-card h2{font-size:clamp(25px,2vw,30px)}
.instructor-card p{font-size:15px}
.instructor-card .large-btn{font-size:clamp(14px,1.1vw,17px);padding:14px 12px}
.landing-footer{flex:0 0 48px;padding:12px 16px}
@media(max-width:760px){body:has(.landing-page){overflow:auto}body:has(.landing-page) .container{height:auto;min-height:100svh}.landing-page{height:auto;min-height:100svh;overflow:visible}.landing-masthead{flex-basis:auto;grid-template-columns:58px minmax(0,1fr) 42px;gap:9px;padding:14px 11px}.rail-logo{width:54px;height:54px}.institute-logo{width:38px;height:82px}.landing-title-block h1{font-size:clamp(17px,4.6vw,25px);line-height:1.1}.landing-subtitle{font-size:12px;margin-top:7px}.landing-hero{flex:1;min-height:calc(100svh - 190px);grid-template-columns:1fr;gap:16px;padding:24px 16px;background-position:center}.landing-copy{grid-column:1;max-width:100%;font-size:19px}.instructor-card{grid-column:1;width:min(100%,420px);padding:20px 16px}.landing-footer{flex-basis:auto}}

.auth-help-links{display:flex;gap:18px;flex-wrap:wrap;margin:12px 0 6px}
.text-button{padding:4px 0;background:transparent;color:#174ea6;border-radius:0;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.auth-support-card{max-width:900px;margin:28px auto}
.auth-support-card h1{margin-top:0}
.auth-support-actions{margin-top:16px}
.account-settings-grid{margin-top:20px}
.account-action-card{margin:0;box-shadow:none}
.account-action-card button{margin-top:16px}
#accountStatus:empty,#accountError:empty,#resetMessage:empty,#resetError:empty{display:none}
@media(max-width:760px){.auth-help-links{gap:12px}.account-settings-grid{grid-template-columns:1fr}.auth-support-card{margin:14px auto}}

/* Shared navy-and-gold visual language for instructor, admin and student screens. */
:root{--rail-navy:#101d38;--rail-navy-deep:#09152a;--rail-gold:#c79b3b;--rail-gold-dark:#947021;--rail-cream:#f7f5ef;--rail-paper:#fffefa;--rail-line:#e5d9b8;--rail-text:#172033;--rail-muted:#626b7b;--rail-blue:#174ea6}
body{background:var(--rail-cream);color:var(--rail-text)}
.topbar{background:var(--rail-navy);color:#fff;border-bottom:3px solid var(--rail-gold);box-shadow:0 3px 12px #09152a24}
.topbar strong{font-family:Georgia,"Times New Roman",serif;letter-spacing:.01em}
#roleBadge{color:#ead49d;font-size:13px}
.container{max-width:1240px;padding:clamp(18px,3vw,32px) clamp(14px,2vw,24px)}
.card{background:var(--rail-paper);border:1px solid var(--rail-line);border-radius:10px;box-shadow:0 5px 18px #101d380d}
.card h1,.card h2,.card h3{color:var(--rail-navy);font-family:Georgia,"Times New Roman",serif}
button{background:var(--rail-gold);color:#111a2a;border-radius:6px;transition:background-color .15s ease,box-shadow .15s ease,transform .15s ease}
button:hover{background:#d6ad54;box-shadow:0 2px 7px #101d3820}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #c79b3b66;outline-offset:2px}
button.secondary{background:#f5f0e2;color:var(--rail-navy);border:1px solid #d6c18e}
button.secondary:hover{background:#eee4ca}
button.ghost{background:transparent;color:#fff;border:1px solid #d6c18e}
button.ghost:hover{background:#ffffff18}
button.danger{background:#b3261e;color:white}
button.warn{background:#946200;color:white}
input,select,textarea{border-color:#d7d1c1;border-radius:6px;background:#fff}
input:focus,select:focus,textarea:focus{border-color:var(--rail-gold)}
.muted{color:var(--rail-muted)}
.exambar{top:60px;background:var(--rail-navy);color:#fff;border-bottom:3px solid var(--rail-gold);box-shadow:0 3px 10px #101d3822}
.exambar .muted{color:#e0e4ec}
.timer{color:#f0cf7c}
.progress{background:#e8e1d2}
.progress>div{background:linear-gradient(90deg,#b18428,#e0bd64)}
.option{background:var(--rail-paper);border-color:#ded6c4}
.option:hover{border-color:#c79b3b;background:#fbf7ec}
.option.selected{border-color:var(--rail-gold);background:#fbf3dc;box-shadow:inset 0 0 0 1px #c79b3b55}
.table th{background:#f1ead7;color:var(--rail-navy);border-bottom:2px solid var(--rail-gold)}
.table td{border-bottom-color:#ece6d8}
.table tbody tr:hover{background:#fbf8ef}
.qnum{background:#f0ece2;color:#28334a}
.qnum.answered{background:#d9f2df;color:#137333}
.qnum.current{outline:3px solid #c79b3b99}
.toast{background:var(--rail-navy);border:1px solid var(--rail-gold);box-shadow:0 8px 24px #09152a40}
.notice{background:#fff7e5;border-color:#e7cf91}
.dangerbox{background:#fff0ee;border-color:#e8b0a9}
.success{color:#137333}
.error,.dangertext{color:#a6221d}
.pill{border:1px solid #e2dccd}
.pill.green{border-color:#b8ddc0}
.pill.red{border-color:#edc3bf}
.pill.orange{border-color:#e9d29f}
@media(max-width:760px){.container{padding:16px 12px}.topbar{height:56px;padding:0 12px}.topbar strong{font-size:16px}.exambar{top:56px}.card{padding:16px}}
.auth-state-message{margin:0;padding:12px 20px;text-align:center;background:#fff0ee;color:#a6221d;border-bottom:1px solid #e8b0a9;font-weight:650}
.import-progress-overlay{position:fixed;inset:0;z-index:20000;display:grid;place-items:center;padding:18px;background:#09152a99}
.import-progress-card{width:min(520px,100%);padding:24px;background:var(--rail-paper);border:1px solid var(--rail-gold);border-radius:12px;box-shadow:0 18px 50px #09152a55}
.import-progress-card>strong{display:block;color:var(--rail-navy);font-size:18px;font-family:Georgia,"Times New Roman",serif}
.import-progress-card p{margin:12px 0}
.import-progress-track{height:14px;overflow:hidden;background:#e8e1d2;border:1px solid #ded3b7;border-radius:999px}
.import-progress-track>div{height:100%;width:0;background:linear-gradient(90deg,#947021,#e0bd64);border-radius:inherit;transition:width .18s ease}
.import-progress-percent{margin-top:8px;text-align:right;font-size:13px;font-variant-numeric:tabular-nums}
