/* --- block 1 --- */
:root{--navy:#102a56;--blue:#2463eb;--purple:#6536b8;--orange:#f59e0b;--ink:#17233b;--muted:#64748b;--line:#e5eaf2;--bg:#f4f7fb;--white:#fff;--green:#16845b;--red:#c2413b;--shadow:0 10px 30px rgba(19,40,77,.08)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:Inter,"Noto Sans Bengali","Hind Siliguri",system-ui,sans-serif;color:var(--ink);font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}.app{min-height:100vh;display:grid;grid-template-columns:260px 1fr}.sidebar{background:linear-gradient(180deg,#112c59,#17234b);color:#fff;padding:22px 16px;display:flex;flex-direction:column;gap:18px}.brand{display:flex;gap:11px;align-items:center;padding:5px 8px 18px;border-bottom:1px solid #ffffff24}.logo{width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,#7c3aed,#2493ed);display:grid;place-items:center;font-weight:900;font-size:18px}.brand b{font-size:16px;letter-spacing:.4px}.brand small{display:block;color:#bdc9e2;font-size:11px;margin-top:3px}.navlabel{font-size:10px;color:#93a7ca;text-transform:uppercase;letter-spacing:1.3px;padding:5px 10px}.nav button{border:0;background:transparent;color:#d6e0f3;width:100%;text-align:left;padding:11px 12px;border-radius:9px;margin:2px 0;display:flex;gap:10px;align-items:center}.nav button.active,.nav button:hover{background:#ffffff18;color:white}.nav .ico{width:19px;text-align:center}.sidebar-foot{margin-top:auto;border-top:1px solid #ffffff24;padding:15px 8px;color:#c6d2e8;font-size:11px;line-height:1.6}.main{min-width:0}.topbar{height:70px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:5}.crumb{color:var(--muted);font-size:12px}.topright{display:flex;align-items:center;gap:12px}.role-select{border:1px solid var(--line);border-radius:8px;padding:8px 10px;background:white;color:var(--ink)}.avatar{width:34px;height:34px;border-radius:50%;background:#e9e2ff;color:#5834a3;display:grid;place-items:center;font-weight:700}.content{padding:26px 30px;max-width:1500px;margin:auto}.pagehead{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:22px}.pagehead h1{font-size:24px;margin:0 0 6px;color:#13264a}.pagehead p{margin:0;color:var(--muted);line-height:1.6}.eyebrow{font-size:11px;font-weight:800;color:var(--purple);letter-spacing:1px;text-transform:uppercase;margin-bottom:7px}.btn{border:0;border-radius:8px;padding:10px 14px;font-weight:700;background:var(--blue);color:white}.btn.secondary{background:#eef2ff;color:#344a85;border:1px solid #dce4ff}.btn.ghost{background:white;color:#334155;border:1px solid var(--line)}.btn.warn{background:#fff7e6;color:#9a5b00;border:1px solid #ffe3a6}.btn.small{padding:7px 10px;font-size:12px}.grid{display:grid;gap:16px}.stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:18px}.card{background:white;border:1px solid var(--line);border-radius:13px;padding:18px;box-shadow:var(--shadow)}.stat{display:flex;justify-content:space-between;align-items:flex-start}.stat .num{font-size:27px;font-weight:800;color:#172c54;margin-top:8px}.stat .label{font-size:12px;color:var(--muted)}.stat .bubble{width:38px;height:38px;border-radius:11px;background:#eef2ff;display:grid;place-items:center;font-size:18px}.card h3{margin:0 0 14px;font-size:15px;color:#1a2d50}.cardhead{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.muted{color:var(--muted)}.tiny{font-size:11px}.progress{height:8px;background:#edf1f7;border-radius:9px;overflow:hidden}.progress span{display:block;height:100%;background:linear-gradient(90deg,#6c42c1,#2d7eea);border-radius:9px}.row{display:flex;gap:12px;align-items:center}.between{justify-content:space-between}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:640px}th,td{text-align:left;padding:11px 10px;border-bottom:1px solid #edf0f5;vertical-align:top}th{font-size:11px;color:#64748b;background:#fafbfe;font-weight:800}td{font-size:12px}.pill{display:inline-flex;padding:4px 8px;border-radius:30px;background:#eef2ff;color:#4657a1;font-size:10px;font-weight:800}.pill.green{background:#e7f7ef;color:#16734f}.pill.orange{background:#fff4df;color:#9a6200}.pill.red{background:#fff0ee;color:#b23a35}.pill.gray{background:#f0f2f5;color:#5c6676}.layout2{grid-template-columns:1.4fr 1fr}.layout3{grid-template-columns:repeat(3,1fr)}.section{display:none}.section.active{display:block}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.field{display:flex;flex-direction:column;gap:6px}.field.full{grid-column:1/-1}.field label{font-size:11px;font-weight:800;color:#475569}.field input,.field select,.field textarea{width:100%;border:1px solid #dce3ed;border-radius:8px;padding:10px 11px;background:#fff;color:#1d2a40;outline:none}.field input:focus,.field textarea:focus,.field select:focus{border-color:#7295ed;box-shadow:0 0 0 3px #dce8ff}.field textarea{min-height:75px;resize:vertical}.hint{font-size:10px;color:#8792a4}
.attachment-control{display:flex;flex-direction:column;gap:5px;margin-top:7px;min-width:130px}
.attachment-control label{font-size:10px;font-weight:800;color:#475569}
.attachment-control input[type=file]{font-size:10px;padding:6px;border:1px dashed #b8c5d8;border-radius:7px;background:#f8faff;max-width:100%;width:100%}
.attachment-meta{font-size:10px;color:#64748b;overflow-wrap:anywhere}
.attachment-meta a{color:#2457d6;font-weight:700;margin-right:8px}
.attachment-meta button{border:0;background:transparent;color:#b23a35;font-size:10px;font-weight:700;padding:0}
.wizard{display:flex;gap:7px;overflow:auto;padding:2px 0 15px;margin-bottom:14px}.step{white-space:nowrap;border:1px solid var(--line);border-radius:8px;background:#fff;color:#6b7484;padding:9px 11px;font-size:11px;font-weight:700}.step.active{background:#eee9ff;border-color:#cbbcf6;color:#5c35a7}.step.done{background:#e8f7ef;color:#16734f;border-color:#c6ead8}.panel{border:1px solid var(--line);border-radius:11px;padding:17px;margin-bottom:14px;background:#fff}.panel h4{margin:0 0 12px;font-size:13px}.checkline{display:flex;gap:9px;align-items:flex-start;margin:9px 0;color:#475569;font-size:12px}.checkline input{margin-top:2px}.toolbar{display:flex;gap:8px;flex-wrap:wrap}.criteria{display:grid;grid-template-columns:70px 1fr 70px;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid #edf0f5}.criteria:last-child{border:0}.criteria strong{font-size:12px;color:#273d68}.criteria input{width:70px;border:1px solid var(--line);padding:7px;border-radius:7px}.scoretotal{background:#f2efff;border-radius:10px;padding:14px;display:flex;justify-content:space-between;align-items:center;font-weight:800}.notice{background:#fff8e9;border:1px solid #ffe3a7;padding:12px;border-radius:9px;color:#865b12;font-size:11px;line-height:1.6}.success{background:#ecfdf5;border:1px solid #b7ebd1;color:#176b4c;padding:12px;border-radius:9px;font-size:12px}.tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);margin-bottom:14px}.tabs button{border:0;background:transparent;padding:10px;color:#667085;font-size:12px;border-bottom:2px solid transparent}.tabs button.active{color:#4e34a4;border-color:#6946c4;font-weight:800}.empty{padding:28px;text-align:center;color:#8a95a7}.mobilemenu{display:none}
@media(max-width:1000px){.app{grid-template-columns:220px 1fr}.stats{grid-template-columns:repeat(2,1fr)}.layout2{grid-template-columns:1fr}.content{padding:20px}.sidebar{padding:16px 10px}}
@media(max-width:700px){.app{display:block}.sidebar{display:none}.sidebar.open{display:flex;position:fixed;inset:0 auto 0 0;width:270px;z-index:20;box-shadow:0 0 0 100vmax #0d1b3266}.mobilemenu{display:inline-block}.topbar{padding:0 14px;height:60px}.content{padding:16px 12px}.pagehead{flex-direction:column}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.card{padding:14px}.formgrid{grid-template-columns:1fr}.field.full{grid-column:auto}.topright{gap:7px}.role-select{max-width:140px;font-size:11px}.pagehead h1{font-size:21px}}
@media print{.sidebar,.topbar,.toolbar,.btn{display:none!important}.app{display:block}.content{max-width:none;padding:0}.section{display:none!important}.section.active{display:block!important}.card{box-shadow:none;break-inside:avoid}}

:root{
 --navy:#102b5c;--blue:#2457d6;--purple:#6542b8;--cyan:#16a6c7;--orange:#f0a126;
 --ink:#172642;--muted:#64748b;--line:#e7ecf4;--bg:#f5f7fc;--white:#fff;
 --green:#16845b;--red:#c2413b;--shadow:0 14px 36px rgba(18,43,91,.075);
 --radius:16px
}
body{background:radial-gradient(ellipse at 78% 0%,rgba(36,87,214,.055),transparent 34%),var(--bg);font-family:"Noto Sans Bengali","Hind Siliguri",Inter,system-ui,sans-serif;color:var(--ink);letter-spacing:.02px}
.sidebar{background:linear-gradient(160deg,#0b2450 0%,#12366f 54%,#182b58 100%);padding:20px 14px;box-shadow:8px 0 32px rgba(13,34,76,.10)}
.brand{padding:7px 8px 17px}.brand b{font-size:14px;letter-spacing:.7px}.brand small{font-size:10px;letter-spacing:.25px}
.nav button{padding:12px 13px;border:1px solid transparent;border-radius:11px;font-size:12px;transition:.2s}
.nav button.active{background:linear-gradient(90deg,rgba(89,125,235,.28),rgba(255,255,255,.08));border-color:#ffffff20;box-shadow:inset 3px 0 #70c6e8}
.nav button:hover{transform:translateX(2px);background:#ffffff15}
.navlabel{font-weight:800;letter-spacing:1.6px}
.topbar{height:76px;padding:0 30px;background:rgba(255,255,255,.91);backdrop-filter:blur(16px);border-bottom:1px solid #e8edf5}
.crumb{font-size:12px}.topright{gap:14px}
.avatar{background:linear-gradient(135deg,#e9eaff,#d9f4fa);color:#284c9c;border:1px solid #dbe5f7}
.content{padding:30px 34px;max-width:1560px}
.pagehead{margin-bottom:24px;align-items:center}
.pagehead h1{font-size:27px;letter-spacing:-.65px;font-weight:850;color:#102b5c}
.pagehead p{font-size:13px;max-width:780px}
.eyebrow{display:inline-flex;align-items:center;gap:7px;background:#edf2ff;color:#3158b4;padding:6px 10px;border-radius:99px;font-size:9px;letter-spacing:1.25px;margin-bottom:10px}
.card{border:1px solid #e8edf5;border-radius:var(--radius);box-shadow:var(--shadow);padding:21px;transition:box-shadow .2s,transform .2s}
.card:hover{box-shadow:0 18px 42px rgba(18,43,91,.10)}
.card h3{font-size:15px;font-weight:800;letter-spacing:-.15px}
.stats .card{background:linear-gradient(145deg,#fff,#fbfcff)}
.stat .num{font-size:30px;letter-spacing:-1px;color:#112e63}
.stat .bubble{background:linear-gradient(135deg,#eef2ff,#e6f8fc);color:#3159b7;border-radius:13px}
.btn{border-radius:10px;padding:11px 16px;background:linear-gradient(135deg,#285bd7,#3d77e5);box-shadow:0 7px 16px rgba(36,87,214,.18);transition:.18s}
.btn:hover{transform:translateY(-1px);box-shadow:0 10px 20px rgba(36,87,214,.22)}
.btn.secondary{background:#eef3ff;color:#2e50a1;border:1px solid #dce6ff;box-shadow:none}
.btn.ghost{background:#fff;color:#334b73;border:1px solid #e1e7f0;box-shadow:none}
.btn.warn{box-shadow:none}
.role-select{border:1px solid #dfe6f0;border-radius:10px;padding:9px 12px;background:#fff}
.pill{letter-spacing:.15px;padding:5px 9px}
.panel{border:1px solid #e8edf5;border-radius:13px;padding:17px;background:linear-gradient(180deg,#fff,#fcfdff)}
.field label{font-size:11px;color:#34496b}
.field input,.field select,.field textarea{border:1px solid #dce4ef;border-radius:10px;padding:11px 12px;background:#fcfdff;transition:.18s}
.field input:focus,.field textarea:focus,.field select:focus{background:white;border-color:#7396ed;box-shadow:0 0 0 4px rgba(75,119,224,.11)}
.step{border-radius:10px;padding:10px 13px;border-color:#e3e9f3}
.step.active{background:linear-gradient(135deg,#e9eaff,#e8f8ff);border-color:#cbd9ff;color:#264ca6}
.step.done{background:#eaf8f1;border-color:#c9ead9}
.wizard{padding-bottom:17px}
.notice{background:linear-gradient(110deg,#fff8e9,#fffdf7);border:1px solid #f6e4bd;border-radius:12px;padding:14px 16px}
.success{border-radius:12px}
table{border-collapse:separate;border-spacing:0;min-width:650px}
th{background:#f5f7fc;color:#52647f;letter-spacing:.4px;text-transform:uppercase;font-size:10px}
th:first-child{border-radius:8px 0 0 0}th:last-child{border-radius:0 8px 0 0}
td,th{border-bottom:1px solid #edf1f6;padding:12px 11px}
tbody tr:hover{background:#fafcff}
.criteria{padding:12px 0}
.criteria input{border-radius:8px;border-color:#dfe6ef}
.scoretotal{border:1px solid #dedbfa;background:linear-gradient(100deg,#f0edff,#eff8ff);border-radius:12px;padding:16px}
.tabs button{padding:12px 14px}
.tabs button.active{color:#3c45a4}
.section.active{animation:pageIn .22s ease-out}
@keyframes pageIn{from{opacity:.55;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
#toastHost{position:fixed;right:22px;bottom:22px;z-index:1000;display:grid;gap:9px}
.toast{background:#102b5c;color:white;padding:13px 16px;border-radius:12px;box-shadow:0 12px 32px #0b1e3d33;max-width:360px;font-size:12px;animation:pageIn .2s ease}
.toast.ok{background:#126747}.toast.warn{background:#8b5a08}
.brand-strip{display:flex;align-items:center;gap:14px;justify-content:center;flex-wrap:wrap;padding:15px;background:white;border:1px solid #e8edf5;border-radius:14px;margin-bottom:18px}
.brand-strip img{object-fit:contain;max-height:42px;max-width:150px}
.brand-strip .partner{max-width:330px;max-height:55px}
.demo-ribbon{font-size:10px;font-weight:800;color:#73500c;background:#fff5dc;border:1px solid #f3dfad;border-radius:99px;padding:6px 10px}
.actionbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
@media(max-width:1000px){.content{padding:22px 18px}.topbar{padding:0 18px}}
@media(max-width:700px){.topbar{padding:0 12px}.content{padding:16px 11px}.pagehead h1{font-size:22px}.card{padding:15px}.brand-strip{gap:9px}.brand-strip img{max-width:105px;max-height:34px}.brand-strip .partner{max-width:220px;max-height:40px}}
/* --- block 2 --- */
/* Applicant workflow polish: responsive footer, preview and print-safe controls. */
#siteFooter{width:100%;box-sizing:border-box}
#application .pagehead{align-items:flex-start;gap:12px;flex-wrap:wrap}
#application .pagehead>button{flex:0 0 auto}
#application .cardbody .toolbar button,#application .toolbar button{white-space:normal}
#applicationPreviewModal .panel{break-inside:avoid}
#applicationPreviewModal ul{padding-left:20px}
@media(max-width:760px){
 #siteFooter{padding:18px;align-items:flex-start}
 #siteFooter>div{width:100%;text-align:left!important}
 #siteFooter>div:last-child{text-align:left!important;max-width:none}
 #application .row.between{align-items:stretch}
 #application .row.between>.toolbar{width:100%;display:grid;grid-template-columns:1fr 1fr}
 #application .row.between>.toolbar button{width:100%;min-height:42px}
 #applicationPreviewModal{padding:8px!important}
 #applicationPreviewModal>div{padding:14px!important}
 #applicationPreviewModal .row.between{align-items:flex-start}
 #applicationPreviewModal .panel>div[style*="grid-template-columns"]{grid-template-columns:1fr!important;gap:3px!important}
}
@media print{
 #siteFooter{background:#fff!important;color:#172b4d!important;border:1px solid #ccd5e3!important}
 #siteFooter *{color:#172b4d!important}
 .sidebar,.topbar,.wizard,.btn,#toastHost{display:none!important}
}
/* --- block 3 --- */
/* Institutional portal masthead */
.portal-masthead{background:linear-gradient(115deg,#fff 0%,#f7f9ff 58%,#f1f5ff 100%);border-bottom:1px solid #e3eaf5;padding:22px clamp(16px,3vw,42px) 16px}
.portal-masthead-inner{max-width:1500px;margin:0 auto}
.portal-identity{display:flex;align-items:center;justify-content:center;gap:clamp(20px,5vw,72px);min-height:104px}
.portal-identity .institution-logo{height:92px;max-width:min(34vw,260px);width:auto;object-fit:contain}
.portal-identity .project-logo{height:96px;max-width:min(42vw,340px);width:auto;object-fit:contain}
.portal-title{text-align:center;margin:12px auto 10px;color:#142c55}
.portal-title .kicker{font-size:11px;font-weight:800;letter-spacing:1.5px;color:#5b4ba0;text-transform:uppercase}
.portal-title h1{font-size:clamp(17px,2vw,24px);line-height:1.35;margin:5px 0 3px;font-weight:850}
.portal-title p{margin:0;color:#63718a;font-size:12px;line-height:1.5}
.role-context{display:none}
@media(max-width:650px){.portal-masthead{padding:14px 12px 12px}.portal-identity{gap:18px;min-height:76px}.portal-identity .institution-logo{height:67px;max-width:37vw}.portal-identity .project-logo{height:70px;max-width:48vw}.portal-title{margin:8px auto}.portal-title p{font-size:10px}}
/* --- block 4 --- */
/* ==================================================================
   STP Portal — Hero / Cover section
   ------------------------------------------------------------------
   Replaces the inner content of .portal-masthead only. The outer
   element keeps its original class so every existing CSS rule and the
   print stylesheet still apply. Nothing else in the portal changes.

   data-mode="full"    → Overview (landing) page: complete cover
   data-mode="compact" → every working page: branding + title only
   ================================================================== */

.stp-hero{
  --h-purple:#6800B3;
  --h-purple-deep:#3F0E6B;
  --h-blue:#0B2E6F;
  --h-blue-bright:#0B5ED7;
  --h-orange:#F7931E;
  --h-light:#F8FAFF;
  position:relative;
  overflow:hidden;
  background:linear-gradient(118deg,#fff 0%,#fbfcff 46%,var(--h-light) 100%);
  border-bottom:1px solid #e3eaf5;
  padding:0;
  isolation:isolate;
}
.stp-hero-waves{position:absolute;inset:0;z-index:0;pointer-events:none}
.stp-hero-waves svg{width:100%;height:100%;display:block}
.stp-hero-inner{position:relative;z-index:1;max-width:1500px;margin:0 auto;padding:22px clamp(16px,3vw,42px) 0}

/* ---------- A. Institutional branding row ---------- */
.stp-hero-brands{display:flex;align-items:center;justify-content:center;gap:clamp(16px,3.2vw,44px);min-height:104px}
.stp-hero-brands .institution-logo{height:clamp(62px,7vw,92px);max-width:min(34vw,260px);width:auto;object-fit:contain}
.stp-hero-brands .project-logo{height:clamp(58px,6.6vw,88px);max-width:min(42vw,330px);width:auto;object-fit:contain}
.stp-hero-rule{width:1px;align-self:stretch;margin:14px 0;background:linear-gradient(180deg,transparent,#c3cde0,transparent);flex:0 0 1px}

/* ---------- B. Phase / proposed / headline ---------- */
.stp-hero-copy{text-align:center}
.stp-hero-phase{display:inline-block;margin:12px 0 0;padding:9px clamp(16px,2.4vw,30px);border-radius:99px;
  background:linear-gradient(95deg,var(--h-purple-deep),var(--h-purple));color:#fff;
  font-size:clamp(12px,1.25vw,17px);font-weight:800;letter-spacing:.055em;text-transform:uppercase;line-height:1.3;
  box-shadow:0 10px 26px rgba(63,14,107,.22)}
.stp-hero-proposed{margin:10px 0 2px;font-size:clamp(11px,1vw,14px);font-weight:700;color:#5c4b86;letter-spacing:.04em}
.stp-hero-proposed span{display:inline-block;padding:3px 14px;border-radius:99px;background:#f2edfb;border:1px solid #e0d6f4}
.stp-hero-headline{margin:5px 0 0;font-size:clamp(20px,2.7vw,40px);line-height:1.16;font-weight:900;color:var(--h-blue);letter-spacing:-.01em}
.stp-hero-headline .nowrap{white-space:nowrap}

/* ---------- C. Portal title bar ---------- */
.stp-hero-portal{display:inline-flex;align-items:center;gap:11px;margin:13px 0 0;
  padding:10px clamp(14px,1.9vw,26px) 10px 12px;border-radius:99px;white-space:nowrap;
  background:linear-gradient(95deg,var(--h-blue-bright) 0%,#2b3fbd 48%,var(--h-purple) 100%);
  color:#fff;font-size:clamp(12px,1.28vw,19px);font-weight:800;letter-spacing:.035em;text-transform:uppercase;
  box-shadow:0 12px 30px rgba(11,46,111,.26);max-width:100%}
.stp-hero-portal .ico{display:grid;place-items:center;width:clamp(28px,2.4vw,36px);height:clamp(28px,2.4vw,36px);
  border-radius:50%;background:#ffffff26;flex:0 0 auto}
.stp-hero-portal svg{width:62%;height:62%;stroke:#fff;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.stp-hero-accent{width:clamp(90px,10vw,150px);height:4px;border-radius:99px;margin:13px auto 0;
  background:linear-gradient(90deg,var(--h-orange),#ffcf87)}

/* ---------- D. Process workflow ---------- */
.stp-hero-steps{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(8px,1.2vw,16px);margin:clamp(13px,1.5vw,20px) 0 0;padding:0}
.stp-hero-steps li{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:0 6px}
.stp-hero-steps li + li::before{content:"";position:absolute;left:0;top:14%;bottom:14%;width:1px;
  background:linear-gradient(180deg,transparent,#ccd6e8,transparent)}
.stp-hero-step-ico{display:grid;place-items:center;width:clamp(42px,3.3vw,52px);height:clamp(42px,3.3vw,52px);
  border-radius:15px;background:linear-gradient(150deg,#f1edff,#e4eeff);border:1px solid #d9e3f6;
  box-shadow:0 7px 18px rgba(16,43,92,.09)}
.stp-hero-step-ico svg{width:60%;height:60%;fill:none;stroke:var(--h-purple);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.stp-hero-steps li:nth-child(2) .stp-hero-step-ico svg{stroke:#1d4ed8}
.stp-hero-steps li:nth-child(3) .stp-hero-step-ico svg{stroke:#0e7490}
.stp-hero-steps li:nth-child(4) .stp-hero-step-ico svg{stroke:#15803d}
.stp-hero-steps b{font-size:clamp(11px,1.02vw,14px);font-weight:800;color:#17305e;line-height:1.35}
.stp-hero-steps small{display:block;font-size:clamp(9.5px,.78vw,11px);color:#5b6a86;line-height:1.45;margin-top:2px}

/* ---------- E. Visual composition ---------- */
.stp-hero-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.9fr) minmax(0,1fr);
  align-items:center;gap:clamp(10px,1.6vw,26px);margin-top:clamp(2px,.6vw,8px)}
.stp-hero-device{width:100%;max-width:340px;height:auto;display:block;margin-inline:auto;
  filter:drop-shadow(0 16px 30px rgba(16,43,92,.13))}
.stp-hero-photos{display:flex;flex-direction:column;align-items:center;gap:clamp(0px,.2vw,4px);width:100%}
.stp-hero-photos picture{display:block;width:100%;max-width:158px;min-width:0}
.stp-hero-photos img{width:100%;height:auto;display:block;
  filter:drop-shadow(0 10px 22px rgba(16,43,92,.16))}
.stp-hero-photos picture:nth-child(1),.stp-hero-photos picture:nth-child(3){margin-inline-end:clamp(8px,1.1vw,20px)}
.stp-hero-photos picture:nth-child(2){margin-inline-start:clamp(8px,1.1vw,20px)}

/* ---------- Compact title (kept from v22, used on working pages) ---------- */
.stp-hero .portal-title{text-align:center;margin:12px auto 10px;color:#142c55;display:none}
.stp-hero[data-mode="compact"] .portal-title{display:block}
.stp-hero[data-mode="compact"] .stp-hero-body,
.stp-hero[data-mode="compact"] .stp-hero-copy,
.stp-hero[data-mode="compact"] .stp-hero-ribbon{display:none}
.stp-hero[data-mode="compact"]{background:linear-gradient(115deg,#fff 0%,#f7f9ff 58%,#f1f5ff 100%)}
.stp-hero[data-mode="compact"] .stp-hero-waves{opacity:.45}
.stp-hero[data-mode="compact"] .stp-hero-inner{padding-bottom:4px}
.stp-hero[data-mode="full"] .stp-hero-inner{padding-bottom:clamp(14px,1.8vw,22px)}

/* ---------- F. Technology partner ribbon ---------- */
.stp-hero-ribbon{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;
  gap:clamp(12px,2vw,26px);flex-wrap:wrap;
  background:linear-gradient(100deg,var(--h-blue) 0%,#15206b 52%,var(--h-purple-deep) 100%);
  padding:11px clamp(14px,3vw,42px);border-top:2px solid var(--h-orange)}
.stp-hero-ribbon p{margin:0;color:#fff;font-size:clamp(10px,.95vw,13px);font-weight:800;
  letter-spacing:.09em;text-transform:uppercase;line-height:1.4;text-align:center}
.stp-hero-ribbon .partner-chip{background:#fff;border-radius:11px;padding:6px 13px;display:flex;align-items:center;
  box-shadow:0 6px 16px rgba(5,14,40,.28)}
.stp-hero-ribbon img{height:clamp(28px,2.9vw,42px);width:auto;display:block;object-fit:contain}

/* ==================== TABLET: 768–1199px ==================== */
@media (max-width:1199px){
  .stp-hero-body{grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);grid-template-areas:"copy copy" "device photos";row-gap:10px;column-gap:clamp(8px,1.6vw,20px);align-items:center}
  .stp-hero-copy{grid-area:copy}
  .stp-hero-device-wrap{grid-area:device;justify-self:center;max-width:380px;width:100%}
  .stp-hero-photos{grid-area:photos;flex-direction:row;justify-content:center;align-items:center;gap:clamp(5px,.9vw,12px)}
  .stp-hero-photos picture{flex:1 1 0;max-width:142px;margin-inline:0}
  .stp-hero-photos picture:nth-child(2){margin-block-start:clamp(10px,2vw,22px)}
  .stp-hero-device-wrap{max-width:284px}
}

/* ==================== MOBILE: ≤767px ==================== */
@media (max-width:767px){
  .stp-hero-inner{padding:14px 12px 0}
  .stp-hero-brands{gap:12px;min-height:0}
  .stp-hero-brands .institution-logo{height:58px;max-width:30vw}
  .stp-hero-brands .project-logo{height:52px;max-width:44vw}
  .stp-hero-rule{margin:8px 0}

  .stp-hero-phase{display:block;margin:14px 0 0;padding:9px 14px;font-size:12px;letter-spacing:.04em;border-radius:14px}
  .stp-hero-proposed{margin:9px 0 0;font-size:11px}
  .stp-hero-headline{font-size:20px;line-height:1.22;margin-top:7px}
  .stp-hero-portal{display:flex;justify-content:center;width:100%;margin-top:13px;padding:10px 14px;
    font-size:12.5px;letter-spacing:.03em;border-radius:14px;text-align:center}
  .stp-hero-portal .ico{width:28px;height:28px}
  .stp-hero-accent{margin-top:13px}

  /* 2 × 2 process grid */
  .stp-hero-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}
  .stp-hero-steps li{background:#fff;border:1px solid #e7edf8;border-radius:14px;padding:12px 8px;gap:7px;
    box-shadow:0 4px 14px rgba(16,43,92,.05)}
  .stp-hero-steps li + li::before{display:none}
  .stp-hero-steps b{font-size:11.5px}
  .stp-hero-steps small{font-size:10px}

  /* The reference mobile layout ends with the training images: the device
     shot is desktop/tablet only, which also keeps the mobile cover close to
     a single screen height. */
  .stp-hero-body{grid-template-columns:minmax(0,1fr);grid-template-areas:"copy" "photos";gap:12px;margin-top:4px}
  .stp-hero-device-wrap{display:none}
  .stp-hero-photos{flex-direction:row;justify-content:center;align-items:center;gap:6px}
  .stp-hero-photos picture{flex:1 1 0;max-width:118px;margin-inline:0}
  .stp-hero-photos picture:nth-child(2){margin-block-start:14px}

  .stp-hero-ribbon{flex-direction:column;gap:9px;padding:11px 12px}
  .stp-hero-ribbon p{font-size:9.5px;letter-spacing:.07em}
  .stp-hero-ribbon img{height:26px}
}

@media (max-width:359px){
  .stp-hero-steps{grid-template-columns:minmax(0,1fr)}
  .stp-hero-headline{font-size:18px}
}

/* ==================== Motion & print ==================== */
@media (prefers-reduced-motion:reduce){.stp-hero *{animation:none!important;transition:none!important}}
@media print{
  .stp-hero-waves,.stp-hero-steps,.stp-hero-body,.stp-hero-ribbon{display:none!important}
  .stp-hero{background:#fff!important;border-bottom:1px solid #aaa}
  .stp-hero .portal-title{display:block!important}
}
/* --- block 5 --- */
.isisc-footer{margin:34px 0 0;background:linear-gradient(135deg,#0b2450,#123b78 62%,#172c58);color:#e8f0ff;border-radius:20px;padding:26px;box-shadow:0 16px 42px #0b24501c}
.footer-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:24px}.footer-kicker{font-size:10px;font-weight:900;letter-spacing:1.35px;text-transform:uppercase;color:#8fd7f0}.footer-brand h2{font-size:21px;color:#fff;margin:8px 0}.footer-brand p{font-size:12px;line-height:1.65;color:#c7d6ef;margin:0}.footer-powered{display:flex;align-items:center;gap:12px;margin-top:18px;padding-top:14px;border-top:1px solid #ffffff24}.footer-powered img{width:86px;height:76px;object-fit:contain;background:#fff;border-radius:12px;padding:4px}.footer-powered b,.footer-powered span{display:block}.footer-powered b{font-size:14px;color:#fff}.footer-powered span{font-size:11px;color:#b8c9e6;margin-top:4px}.footer-contact{border-left:1px solid #ffffff24;padding-left:24px}.footer-role{display:flex;flex-direction:column;gap:3px;margin:12px 0}.footer-role b{font-size:13px;color:#fff}.footer-role span{font-size:11px;color:#c7d6ef}.footer-whatsapp{border:1px solid #43d18b;background:#123f42;color:#b8f7d4;border-radius:9px;padding:9px 12px;font-weight:800;font-size:11px;opacity:.9}.footer-note{font-size:10px;color:#aebfdf}.support-form{display:grid;gap:9px}.support-form label{font-size:12px;font-weight:800;color:#344563}.support-form input,.support-form textarea{width:100%;border:1px solid #cbd5e1;background:#fff;color:#172642;border-radius:9px;padding:12px;font:inherit;font-size:14px}.footer-bottom{border-top:1px solid #ffffff24;margin-top:20px;padding-top:14px;display:flex;justify-content:space-between;gap:12px;color:#afc2e2;font-size:10px}
@media(max-width:760px){.isisc-footer{padding:18px 14px}.footer-grid{grid-template-columns:1fr}.footer-contact{border-left:0;border-top:1px solid #ffffff24;padding:16px 0 0}.footer-bottom{flex-direction:column}}
@media print{.isisc-footer{background:#fff!important;color:#111!important;border:1px solid #aaa;box-shadow:none}.footer-brand h2,.footer-role b,.footer-powered b{color:#111!important}.footer-contact{border-color:#aaa;background:#fff!important}.footer-brand p,.footer-role span,.footer-note,.footer-powered span,.footer-bottom{color:#333!important}.support-form button{display:none}}
/* --- block 6 --- */
/* Collapsible workspace sidebar */
.app.stp-sidebar-collapsed{grid-template-columns:76px 1fr}
.app.stp-sidebar-collapsed .sidebar{padding:18px 9px}
.app.stp-sidebar-collapsed .brand{justify-content:center;padding-inline:0}
.app.stp-sidebar-collapsed .brand>div,.app.stp-sidebar-collapsed .sidebar>div:not(.brand),.app.stp-sidebar-collapsed .navlabel,.app.stp-sidebar-collapsed .nav button .nav-text,.app.stp-sidebar-collapsed .sidebar-foot{display:none!important}
.app.stp-sidebar-collapsed .nav button{justify-content:center;padding:12px 6px}
.app.stp-sidebar-collapsed .nav .ico{width:auto;font-size:18px}
#stpSidebarCollapse{width:100%;border:1px solid #ffffff30;background:#ffffff12;color:#fff;border-radius:9px;padding:9px;margin:0 0 5px;font-weight:800}
#stpSidebarCollapse .collapse-label{font-size:11px}
@media(max-width:700px){.app.stp-sidebar-collapsed{display:block}.app.stp-sidebar-collapsed .sidebar{width:270px}}
/* Footer Help Desk launcher: icon-only navigation to the dedicated support page */
.footer-help-launch{display:flex;align-items:center;justify-content:flex-end;margin-top:18px}
.footer-help-icon{width:46px;height:46px;border:1px solid #8fd7f0;border-radius:50%;background:#fff;color:#123b78;display:grid;place-items:center;box-shadow:0 8px 22px #07172d44}
.footer-help-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.support-form{margin-top:16px}.support-form label{color:#344563}.support-form input,.support-form textarea{border:1px solid #cbd5e1;background:#fff;color:#172642;border-radius:9px;padding:12px;font:inherit;font-size:14px}.support-feedback{font-size:13px;min-height:20px;color:#475569}.support-feedback.error{color:#b42318}.support-feedback.success{color:#067647}.support-message-list{display:grid;gap:10px;margin-top:12px}.support-message-list>div{padding:12px;border:1px solid #dbe3ef;border-radius:10px;background:#f8fafc}.support-message-list p{white-space:pre-wrap}
/* Formal application print layout */
.stp-print-head{display:grid;grid-template-columns:100px 1fr 100px;gap:12px;align-items:center;border-bottom:3px double #173b7a;padding-bottom:14px;margin-bottom:18px;text-align:center}
.stp-print-head img{max-width:92px;max-height:74px;object-fit:contain}.stp-print-head h1{font-size:19px;margin:3px 0;color:#102b5c}.stp-print-head p{font-size:11px;margin:3px 0;color:#475569}
.stp-print-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 18px}.stp-print-meta div{border:1px solid #cbd5e1;padding:8px;font-size:11px}
.stp-print-section{break-inside:avoid;margin:16px 0}.stp-print-section h3{font-size:13px;background:#eef3fb;border-left:4px solid #173b7a;padding:8px;margin:0 0 7px}
.stp-print-table{width:100%;border-collapse:collapse;table-layout:fixed}.stp-print-table th,.stp-print-table td{border:1px solid #cbd5e1;padding:7px 8px;text-align:left;vertical-align:top;font-size:10.5px;overflow-wrap:anywhere}.stp-print-table th{width:34%;background:#f7f9fc;font-weight:700}
.stp-print-signatures{display:grid;grid-template-columns:repeat(2,1fr);gap:36px 28px;margin:34px 0 12px;break-inside:avoid}.stp-print-signatures div{border-top:1px solid #334155;padding-top:7px;text-align:center;font-size:10px;min-height:42px}
.stp-print-disclaimer{border:1px solid #b45309;background:#fff7ed;padding:9px;font-size:10px;margin:12px 0}
@media print{.footer-help-launch,#stpSidebarCollapse{display:none!important}}
/* --- block 7 --- */
body.stp-login-required .app>.sidebar,
body.stp-login-required .app>.main>.portal-masthead,
body.stp-login-required .app>.main>.topbar,
body.stp-login-required .app>.main>.content,
body.stp-login-required #siteFooter{display:none!important}
body.stp-login-required .stp-auth-modal{position:fixed;inset:0;z-index:6000;background:radial-gradient(ellipse at 50% 0%,#234b89 0%,#102c5b 48%,#07172f 100%);display:grid;place-items:center;padding:clamp(12px,3vw,28px);overflow-y:auto}
body.stp-login-required .stp-auth-card{width:min(520px,100%);max-height:calc(100dvh - 24px);overflow-y:auto;padding:clamp(18px,3.4vw,30px);border:1px solid #d9e5f7;border-radius:24px;background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);box-shadow:0 28px 90px #020c20a8,0 4px 18px #071a3a35;position:relative}
body.stp-login-required #authClose{display:none!important}
body.stp-login-required .stp-auth-card h2{color:#102b5c;font-size:clamp(21px,4vw,27px);line-height:1.25;text-align:center;margin:18px 0 8px}
body.stp-login-required .stp-auth-card:before{content:none}
.stp-auth-brand-banner{display:block;width:100%;height:clamp(104px,24vw,172px);object-fit:cover;object-position:center;border-radius:15px;border:1px solid #e2eaf6;box-shadow:0 8px 22px #102b5c16}
.stp-auth-brand-row{display:flex;align-items:center;justify-content:center;gap:clamp(18px,5vw,34px);padding:16px 8px 12px;border-bottom:1px solid #e6edf7}
.stp-auth-brand-row img{display:block;object-fit:contain;max-width:46%;height:clamp(58px,14vw,86px)}
.stp-auth-brand-row .stp-auth-isisc-logo{width:clamp(64px,17vw,96px)}
.stp-auth-brand-row .stp-auth-asset-logo{width:clamp(140px,38vw,220px)}
.stp-auth-subtitle{text-align:center;color:#526887;font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;margin:13px 0 0}
.stp-auth-section-title{text-align:center;color:#18386d;font-size:18px;font-weight:850;margin:17px 0 16px}
.stp-auth-card label{display:block;color:#344766;font-weight:650;font-size:13px;margin:0 0 3px}
.stp-auth-card input{box-sizing:border-box;width:100%;min-height:48px;padding:12px 14px;border:1px solid #d5e0ef;border-radius:11px;margin:5px 0 13px;background:#fff;color:#152b4d;font:inherit;outline:none;transition:border-color .18s,box-shadow .18s}
.stp-auth-card input:focus{border-color:#3478dc;box-shadow:0 0 0 3px #3478dc20}
.stp-auth-card .toolbar{display:flex;flex-wrap:wrap;gap:9px;align-items:center}
.stp-auth-card .toolbar .btn{min-height:46px;border-radius:11px;font-weight:750}
.stp-auth-card .tiny.muted{color:#70819b;line-height:1.55}
.stp-auth-powered{display:block;width:min(280px,82%);height:auto;object-fit:contain;margin:19px auto 0;border-radius:9px}
.stp-auth-card #authMsg{margin-top:12px}
#stpIsiscSplash{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;background:radial-gradient(circle at center,#1c4685 0%,#102b59 48%,#06152c 100%);opacity:1;visibility:visible;transition:opacity .45s ease,visibility .45s ease}
#stpIsiscSplash.is-done{opacity:0;visibility:hidden;pointer-events:none}
#stpIsiscSplash img{width:clamp(118px,34vw,190px);height:clamp(118px,34vw,190px);object-fit:contain;filter:drop-shadow(0 12px 28px #0008);animation:stpSplashReveal 1.25s cubic-bezier(.2,.8,.2,1) both}
#stpIsiscSplash:after{content:"ISISC · STP PORTAL";position:absolute;top:calc(50% + clamp(78px,22vw,116px));color:#eaf2ff;font-size:11px;font-weight:800;letter-spacing:.2em}
@keyframes stpSplashReveal{0%{transform:scale(.52) rotate(-18deg);opacity:0}65%{transform:scale(1.07) rotate(4deg);opacity:1}100%{transform:scale(1) rotate(0);opacity:1}}
@media(max-width:520px){body.stp-login-required .stp-auth-modal{padding:10px;align-items:center}.stp-auth-brand-row{gap:14px}.stp-auth-brand-row img{height:62px}.stp-auth-brand-row .stp-auth-isisc-logo{width:66px}.stp-auth-brand-row .stp-auth-asset-logo{width:150px}.stp-auth-powered{width:min(250px,88%)}}
@media(prefers-reduced-motion:reduce){#stpIsiscSplash img{animation:none}#stpIsiscSplash{transition:none}}

/* v24.1: Proposed naming, NUSAIFA IT link targets, desktop masthead and responsive drawer */
.stp-sidebar-brand-panel{margin-top:auto!important;border:1px solid #ffffff35;border-radius:14px;padding:15px 12px!important;background:linear-gradient(145deg,#173b78,#17234b);text-align:center;box-shadow:0 10px 24px #071a3a35}
.stp-sidebar-brand-panel .stp-tms-label{display:block;background:#00a4e8;color:#fff;font-weight:900;font-size:12px;letter-spacing:.035em;padding:8px 6px;margin-bottom:7px}
.stp-sidebar-brand-panel>strong{display:block;font-size:10px;line-height:1.45;color:#eaf3ff;letter-spacing:.04em}
.stp-sidebar-brand-panel .stp-sidebar-phase{display:block;margin-top:10px;font-size:10px;line-height:1.5;color:#d0def6}
.stp-sidebar-partner{display:block;margin:11px auto 0;padding:8px 6px;background:#00a4e8;color:#fff!important;text-decoration:none!important;font-size:11px;font-weight:700;border-radius:6px}
.stp-sidebar-partner:hover,.topbar-partner:hover{text-decoration:underline!important;filter:brightness(1.08)}
.topbar-partner{display:inline-flex;align-items:center;gap:5px;padding:8px 12px;border:1px solid #cbd8ef;border-radius:9px;background:#f4f7ff;color:#25447a;text-decoration:none;font-size:12px;white-space:nowrap}
.topbar-partner b{color:#075fae}
.footer-powered{color:inherit;text-decoration:none;border-radius:10px}
.footer-powered:hover b{text-decoration:underline}
.stp-hero-phase{max-width:100%;white-space:normal}
.app .sidebar{transition:width .24s ease,padding .24s ease,transform .24s ease}
.app.stp-sidebar-collapsed .sidebar-foot{display:none!important}
@media(min-width:1200px){
 .stp-hero-inner{padding-top:28px}
 .stp-hero-brands{min-height:132px;gap:clamp(38px,5vw,82px)}
 .stp-hero-brands .institution-logo{height:clamp(112px,8vw,138px);max-width:320px}
 .stp-hero-brands .project-logo{height:clamp(106px,7.6vw,132px);max-width:390px}
 .stp-hero-phase{font-size:clamp(16px,1.35vw,20px);padding:12px 34px}
 .stp-hero-headline{font-size:clamp(34px,3vw,48px)}
 .stp-hero-portal{font-size:clamp(17px,1.45vw,21px);padding:13px 30px 13px 18px}
 .stp-hero-steps b{font-size:15px}.stp-hero-steps small{font-size:12px}
 .portal-title h1{font-size:clamp(28px,2.3vw,36px)}
 .portal-title p{font-size:15px}.portal-title .kicker{font-size:13px}
}
@media(max-width:767px){.topbar-partner{display:none}.stp-sidebar-brand-panel{margin-top:30px!important}}
@media(max-width:700px){
 .sidebar.open{display:flex!important;position:fixed!important;inset:0 auto 0 0!important;width:min(86vw,310px)!important;max-height:100dvh;overflow-y:auto;z-index:30;transform:translateX(0)}
 .sidebar:not(.open){transform:translateX(-105%)}
 .stp-sidebar-overlay{z-index:29}
}
/* --- block 8 --- */
/* v25: the demo markup these rules used to hide has been deleted from the
   document, so the blanket display:none rules are gone with it. Keeping them
   would now hide real content: the live Appendix-5 upload card, the Evaluator,
   Verification and Committee workspaces, and the Application Tracking page,
   which reads the applicant's own live application as of v25. */
.demo-ribbon,
/* --- block 9 --- */
@page{size:A4;margin:14mm 13mm}*{box-sizing:border-box}body{font:11px Arial,"Noto Sans Bengali",sans-serif;color:#172b4d;margin:0;line-height:1.45}.stp-print-head{display:grid;grid-template-columns:82px 1fr 82px;gap:10px;align-items:center;border-bottom:3px double #173b7a;padding-bottom:12px;margin-bottom:14px;text-align:center}.stp-print-head img{max-width:76px;max-height:64px;object-fit:contain}.stp-print-head h1{font-size:17px;margin:3px 0;color:#102b5c}.stp-print-head p{font-size:9px;margin:2px 0;color:#475569}.stp-print-meta{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:10px 0 15px}.stp-print-meta div{border:1px solid #cbd5e1;padding:7px;font-size:9.5px}.stp-print-section{break-inside:avoid;margin:13px 0}.stp-print-section h3{font-size:11px;background:#eef3fb;border-left:4px solid #173b7a;padding:7px;margin:0 0 6px}.stp-print-table{width:100%;border-collapse:collapse;table-layout:fixed}.stp-print-table th,.stp-print-table td{border:1px solid #cbd5e1;padding:6px 7px;text-align:left;vertical-align:top;font-size:9px;overflow-wrap:anywhere}.stp-print-table th{width:34%;background:#f7f9fc}.stp-print-signatures{display:grid;grid-template-columns:repeat(2,1fr);gap:34px 24px;margin:30px 0 10px;break-inside:avoid}.stp-print-signatures div{border-top:1px solid #334155;padding-top:6px;text-align:center;font-size:9px;min-height:38px}.stp-print-disclaimer{border:1px solid #b45309;background:#fff7ed;padding:8px;font-size:9px;margin:10px 0}.stp-print-footer{border-top:1px solid #cbd5e1;padding-top:7px;margin-top:18px;font-size:8px;display:flex;justify-content:space-between;color:#475569}.stp-print-footer img{width:70px;max-height:35px;object-fit:contain}@media print{body{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
/* --- block 10 --- */
/* v25: duplicate of the block above; removed. */
/* --- block 11 --- */
#stpAuthPanel{display:flex;gap:7px;align-items:center;flex-wrap:wrap}#stpCloudStatus{font-size:10px;color:#47618b;background:#edf4ff;padding:7px 9px;border-radius:18px}.stp-auth-modal{position:fixed;inset:0;z-index:2000;background:#07172ddd;display:grid;place-items:center;padding:16px}.stp-auth-card{width:min(440px,100%);background:#fff;border-radius:18px;padding:22px}.stp-auth-card input{width:100%;padding:11px;border:1px solid #dce3ed;border-radius:9px;margin:6px 0 12px}
/* --- block 12 --- */
.stp-doc-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(130px,.7fr) minmax(180px,1fr) auto;gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid #e8edf5}.stp-doc-row input{min-width:0;width:100%;padding:8px;border:1px solid #dbe3ef;border-radius:8px}.stp-doc-meta{font-size:11px;color:#52627c;overflow-wrap:anywhere}@media(max-width:760px){.stp-doc-row{grid-template-columns:1fr 1fr}.stp-doc-row .stp-doc-meta{grid-column:1/-1}}
/* --- block 13 --- */
.stp-live-panel{margin:14px 0;padding:16px;border:1px solid #dce6f3;border-radius:14px;background:#fff}.stp-live-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}.stp-live-panel input,.stp-live-panel select,.stp-live-panel textarea{width:100%;padding:9px;border:1px solid #d9e2ef;border-radius:8px}.stp-live-table{width:100%;border-collapse:collapse;font-size:12px}.stp-live-table th,.stp-live-table td{padding:8px;border-bottom:1px solid #e6ebf2;text-align:left}.stp-live-note{font-size:12px;color:#596b85}.stp-live-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
/* --- block 14 --- */
:root{--brand-navy:#102b5c;--brand-indigo:#4338a8;--brand-cyan:#087eaa;--brand-orange:#e98216;--surface:#fff;--focus:#2563eb}
.toast{border-left:5px solid #60a5fa;box-shadow:0 14px 38px #0b1e3d2b;font-size:13px;line-height:1.5;max-width:min(420px,calc(100vw - 28px));padding:14px 16px}
.toast.ok{background:#126747;border-left-color:#6ee7b7}.toast.warn{background:#8b5a08;border-left-color:#fbbf24}.toast.error{background:#991b1b;border-left-color:#fca5a5}.toast.info{background:#123c78;border-left-color:#93c5fd}
#toastHost{right:14px;bottom:14px;left:auto;z-index:3000}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
#nav button[hidden]{display:none!important}
#nav button[data-page="application"],#nav button[data-page="applications"]{margin-top:5px}
#nav button[data-page="evaluation"],#nav button[data-page="verification"],#nav button[data-page="committee"]{border-left:2px solid #d9e4f5;padding-left:13px}
#nav button[data-page="settings"]{margin-top:8px;border-top:1px solid #e6ebf3;padding-top:13px}
.tablewrap,.stp-live-panel>div[style*="overflow"]{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
@media(max-width:700px){.portal-masthead-inner{padding-inline:10px}.portal-identity{flex-wrap:wrap;justify-content:center}.portal-title h1{font-size:clamp(17px,4.8vw,22px);line-height:1.25}.portal-title p{line-height:1.5}.topright{flex-wrap:wrap;justify-content:flex-end}.role-select{max-width:155px}.stp-live-grid{grid-template-columns:minmax(0,1fr)}#toastHost{left:10px;right:10px;bottom:10px}.toast{max-width:100%}}
@media print{#toastHost,.stp-auth-modal,.mobilemenu{display:none!important}body{background:#fff!important;color:#111!important}.portal-masthead,.card,.panel{box-shadow:none!important}a{color:#111!important;text-decoration:none!important}}
/* --- block 15 --- */
/* v21 institutional notice cleanup and active-role badge */
#role,#role[hidden]{display:none!important} #activeRoleBadge{display:inline-flex;align-items:center;border:1px solid #dbe4f2;background:#f5f8ff;color:#17376e;border-radius:999px;padding:7px 11px;font-size:11px;font-weight:800;white-space:nowrap} #activeRoleBadge[hidden]{display:none!important} body.stp-authenticated #dashboard>.grid,body.stp-authenticated #dashboard>.card{display:none!important} .stp-role-dashboard{margin:14px 0 18px}.stp-role-dashboard .stp-rd-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:10px}.stp-role-dashboard .stp-rd-card{background:#fff;border:1px solid #e2e8f0;border-radius:13px;padding:14px;box-shadow:0 4px 14px #102a4a0a}.stp-role-dashboard .stp-rd-num{font-size:25px;font-weight:800;color:#173c83}.stp-role-dashboard .stp-rd-label{font-size:12px;color:#52627c}.stp-role-dashboard .stp-rd-list{margin-top:12px;background:#fff;border:1px solid #e2e8f0;border-radius:13px;padding:14px;overflow:auto}.stp-role-dashboard .stp-rd-list table{width:100%;border-collapse:collapse;min-width:540px}.stp-role-dashboard th,.stp-role-dashboard td{padding:9px;border-bottom:1px solid #edf0f5;text-align:left;font-size:12px}.stp-role-dashboard .stp-rd-note{font-size:12px;color:#52627c;margin:8px 0}
/* --- block 16 --- */
/* ============================================================
   v23 — Accessibility, readability & UX layer
   Additive only. No approved brand colour, logo, font or Bangla
   string is replaced; defaults render exactly as in v22.
   ============================================================ */

/* --- 1. Skip link (keyboard / screen-reader users) --- */
.stp-skip-link{position:fixed;top:-64px;left:12px;z-index:5000;background:#102b5c;color:#fff;padding:11px 18px;border-radius:0 0 12px 12px;font-size:13px;font-weight:800;text-decoration:none;box-shadow:0 10px 26px rgba(11,30,61,.3);transition:top .18s ease}
.stp-skip-link:focus{top:0}
#mainContent:focus,#mainContent:focus-visible{outline:none}

/* --- 2. Readable minimum type size. 10px Bangla text is not legible
       for most users; 12px is the practical floor. --- */
.tiny,.hint,.attachment-control label,.attachment-meta,.stp-doc-meta,.stp-live-note,.stp-rd-note,.footer-note{font-size:12px}
.field label{font-size:12px;line-height:1.5}
.navlabel{font-size:11px}
.eyebrow{font-size:10px}
body{line-height:1.6}
.checkline{font-size:13px;line-height:1.55}

/* --- 3. Mobile: stop iOS Safari auto-zoom on focus (<16px inputs)
       and guarantee 44px touch targets. --- */
@media (max-width:760px){
  /* !important is needed only here: several v22 rules set 12px with higher
     specificity (e.g. .support-form input), and any value below 16px makes
     iOS Safari zoom the whole page on focus. Desktop rendering is untouched. */
  input:not([type=file]),select,textarea{font-size:16px!important}
  input[type=file],.attachment-control input[type=file]{font-size:13px!important}
  .btn,.btn.small{min-height:44px}
  .nav button{min-height:46px}
  .wizard .step{min-height:44px}
  .tabs button{min-height:44px}
}

/* --- 4. Visible keyboard focus, including on the dark sidebar --- */
.nav button:focus-visible{outline:3px solid #9fd0ff;outline-offset:2px}
a:focus-visible,button:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
.nav button[aria-current="page"]{box-shadow:inset 3px 0 #70c6e8}

/* --- 5. Inline validation state --- */
.stp-req{color:#b4302a;margin-left:3px;font-weight:800}
.field input[aria-invalid="true"],.field select[aria-invalid="true"],.field textarea[aria-invalid="true"],input[aria-invalid="true"]{border-color:#c2413b!important;background:#fffaf9;box-shadow:0 0 0 3px rgba(194,65,59,.13)}
.stp-field-error{display:block;font-size:12px;color:#9c2b26;margin-top:5px;font-weight:700}
.stp-form-errors{border:1px solid #f0c8c5;background:#fff6f5;border-radius:12px;padding:13px 15px;margin:12px 0}
.stp-form-errors h4{margin:0 0 7px;font-size:13px;color:#8f2b26}
.stp-form-errors ul{margin:0;padding-left:20px;font-size:12px;color:#7d2522}

/* --- 6. Wide tables: tell the user they can scroll, and let the
       keyboard reach the scroll container. --- */
.tablewrap{position:relative}
.tablewrap[data-stp-scrollable="1"]::after{content:"";position:absolute;top:0;right:0;bottom:0;width:24px;pointer-events:none;background:linear-gradient(90deg,rgba(16,43,92,0),rgba(16,43,92,.1));border-radius:0 10px 10px 0}
.tablewrap:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
.stp-scroll-hint{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:#3a567f;margin:8px 0 0}

/* --- 7. Draft / autosave status --- */
.stp-draft-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}
.stp-draft-status{font-size:12px;font-weight:700;color:#2d4a7a;background:#eef4ff;border:1px solid #d9e5fb;padding:7px 11px;border-radius:99px}
.stp-draft-status[data-state="dirty"]{color:#8a5a06;background:#fff7e8;border-color:#f3dfb4}
.stp-draft-status[data-state="saved"]{color:#116348;background:#eafaf2;border-color:#c6ead8}
.stp-draft-status[data-state="error"]{color:#9c2b26;background:#fff5f4;border-color:#f0c8c5}

/* --- 8. Per-section progress across all 8 sections --- */
.stp-section-progress{display:flex;gap:5px;flex-wrap:wrap;margin-top:10px}
.stp-section-progress span{font-size:11px;font-weight:800;padding:4px 8px;border-radius:7px;background:#f1f5fb;color:#475569;border:1px solid #e4ebf5}
.stp-section-progress span[data-filled="1"]{background:#eafaf2;color:#116348;border-color:#c6ead8}

/* --- 9. Accessible dialog behaviour --- */
body.stp-dialog-open{overflow:hidden}
.stp-dialog-upgraded:focus{outline:none}

/* --- 10. Mobile sidebar overlay (click outside to close) --- */
.stp-sidebar-overlay{position:fixed;inset:0;background:#0d1b3266;z-index:19;border:0;padding:0;margin:0;display:none}
.stp-sidebar-overlay.show{display:block}
@media (min-width:701px){.stp-sidebar-overlay{display:none!important}}

/* --- 11. Reader / accessibility controls (opt-in, off by default) --- */
.stp-a11y-bar{display:flex;align-items:center;gap:4px;background:#f3f7fe;border:1px solid #dde7f8;border-radius:99px;padding:3px}
.stp-a11y-bar button{border:0;background:transparent;border-radius:99px;padding:6px 9px;font-size:12px;font-weight:800;color:#2d4a7a;line-height:1;min-height:32px}
.stp-a11y-bar button[aria-pressed="true"]{background:#102b5c;color:#fff}
@media (max-width:700px){.stp-a11y-bar{order:3}}

/* Larger text: zoom is applied to the page content and footer only,
   never to the sticky topbar or the masthead, so the approved layout,
   colours and type scale are untouched at the 100% default. */
.content,.isisc-footer{zoom:var(--stp-zoom,1)}

/* Opt-in high contrast. Default (class absent) = approved palette. */
body.stp-contrast{--muted:#30415c;--line:#8d9cb5;--ink:#0b1424}
body.stp-contrast .tiny.muted,body.stp-contrast .muted,body.stp-contrast .stp-rd-note,body.stp-contrast .stp-live-note{color:#30415c!important}
body.stp-contrast .card,body.stp-contrast .panel{border-color:#9aa8bf!important;box-shadow:none!important}
body.stp-contrast .btn.secondary{background:#dce8ff;color:#15336f;border-color:#9bb6e8}
body.stp-contrast .btn.ghost{color:#1b3360;border-color:#8ea1c2}
body.stp-contrast .pill{border:1px solid #8d9cb5}
body.stp-contrast .field input,body.stp-contrast .field select,body.stp-contrast .field textarea,body.stp-contrast input,body.stp-contrast select,body.stp-contrast textarea{border-color:#7d8da8}
body.stp-contrast .sidebar-foot span{color:#cfdcf2!important}

/* --- 12. Respect reduced-motion preferences --- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
  .card:hover,.btn:hover,.nav button:hover{transform:none!important}
  .section.active{animation:none!important}
}

/* --- 13. Sample-data marker so demo numbers can never be mistaken
       for live register data. --- */


/* --- 14. Connection state --- */
.stp-net-offline{position:fixed;left:50%;transform:translateX(-50%);bottom:18px;z-index:3000;background:#8b2f2a;color:#fff;font-size:13px;font-weight:700;padding:11px 18px;border-radius:99px;box-shadow:0 12px 30px rgba(11,30,61,.32);display:none}
body.stp-offline .stp-net-offline{display:block}

/* --- 15. Screen-reader-only helper --- */
.stp-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* --- 16. Print: hide helper chrome --- */
@media print{
  .stp-skip-link,.stp-a11y-bar,.stp-sidebar-overlay,.stp-net-offline,.stp-scroll-hint,#toastHost{display:none!important}
  .content,.isisc-footer{zoom:1!important}
  .tablewrap{overflow:visible!important}
}

/* --- 17. Contrast corrections confirmed with axe-core / WCAG 2.1 AA ---
   .empty was #8a95a7 on white (3.03:1). #566378 gives 6.08:1 with the same
   weight and size, so empty-state wording stays visually identical in tone
   but is now readable for low-vision users. */
.empty{color:#566378}

/* --- 18. Page-level horizontal overflow on mobile (present since v18) ---
   Cards that sit inside .grid are grid items, and a grid item defaults to
   min-width:auto, so it cannot shrink below the min-content width of a wide
   table inside it. On the Configuration page that pushed the whole document
   to 693px at a 390px viewport, i.e. the entire page scrolled sideways
   instead of just the table. min-width:0 lets the card shrink and keeps the
   scrolling where it belongs: inside .tablewrap. */
.grid > *{min-width:0}
.card,.panel{max-width:100%}
table{max-width:100%}

/* --- 19. Placement of the new applicant controls ---
   The draft bar sits in its own row under the page header instead of inside
   .pagehead, which is a space-between flex row and would otherwise be
   crowded by it. */
.stp-draft-bar{margin:0 0 6px}
.stp-applicant-tools{display:flex;flex-direction:column;gap:6px;border:1px solid #e3eaf5;border-radius:12px;background:linear-gradient(180deg,#fff,#fbfcff);padding:12px 14px;margin:0 0 16px}
@media (max-width:700px){.stp-applicant-tools{padding:11px 12px}}

/* On small screens the top bar is already full, so the reader controls move
   into the navigation drawer, where settings belong on mobile. */
.sidebar .stp-a11y-bar{background:#ffffff14;border-color:#ffffff33;margin:4px 2px 12px;justify-content:center}
.sidebar .stp-a11y-bar button{color:#e4edfb}
.sidebar .stp-a11y-bar button[aria-pressed="true"]{background:#ffffff;color:#102b5c}
.sidebar .stp-a11y-bar button:disabled{opacity:.45}

/* Bangla glyphs render visually smaller than Latin at the same px, so the
   two new mixed-script controls get a small bump for legibility. */
.stp-draft-bar .btn{font-size:13px}
.stp-draft-status{font-size:12.5px;line-height:1.5}

/* --- 20. Top bar overflow on phones (pre-existing) ---
   .topbar is a fixed-height flex row, so on narrow screens the status pill,
   Sign in button and avatar spilled outside it and overlapped the masthead
   and the page content. Letting the bar wrap and grow keeps every control
   inside its own container. Desktop is untouched: the rule is scoped to
   phone widths and the bar still starts at the same height. */
@media (max-width:700px){
  .topbar{height:auto;min-height:60px;padding:9px 12px;flex-wrap:wrap;row-gap:8px;align-items:center}
  .topbar > .row{flex:1 1 auto;min-width:0}
  .topright{flex-wrap:wrap;justify-content:flex-end;row-gap:7px;column-gap:8px}
  .crumb{font-size:12px;line-height:1.4}
  #stpCloudStatus{max-width:100%}
}
/* --- block 17 --- */
body.stp-readable-spacing p,body.stp-readable-spacing li,body.stp-readable-spacing label,body.stp-readable-spacing .notice,body.stp-readable-spacing .stp-live-note,body.stp-readable-spacing td,body.stp-readable-spacing th{line-height:1.9!important;letter-spacing:.035em!important;word-spacing:.08em!important}
body.stp-readable-spacing input,body.stp-readable-spacing textarea,body.stp-readable-spacing select{line-height:1.7!important;letter-spacing:.025em!important}
/* --- block 18 --- */
#stpSessionNotice{display:none;margin:8px 0;padding:9px 12px;border:1px solid #f2c46d;background:#fff8e8;color:#714600;border-radius:9px;font-size:12px;line-height:1.5}
#stpSessionNotice button{margin-left:8px}


/* --- v25.17: Portal Home cards. They are <button> elements so the whole card
       is keyboard-reachable and announced as an action; these rules strip the
       browser's button chrome so they render exactly like .card. --- */
.stp-hub-card{display:block;width:100%;font:inherit;color:inherit;text-align:start;background:white;cursor:pointer}
.stp-hub-card:hover{box-shadow:0 12px 30px #07152b1f;transform:translateY(-2px)}
.stp-hub-card:focus-visible{outline:3px solid #163a88;outline-offset:2px}
.stp-hub-card h3{margin:0}
.stp-hub-dl{margin:0;padding-inline-start:18px}
.stp-hub-dl li{margin-bottom:12px}
@media print{.stp-hub-card{box-shadow:none;transform:none}}
