:root{
  --navy:#0f2747; --navy-2:#173e6e; --ink:#13213a; --muted:#64748b;
  --bg:#f3f6fb; --card:#ffffff; --line:#e5eaf2;
}
body{background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.portal-nav{background:linear-gradient(120deg,var(--navy),var(--navy-2))}
.brand-mark{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#fff;color:var(--navy);font-weight:800;font-size:.85rem}
.brand-logo{width:38px;height:38px;object-fit:contain;border-radius:8px;background:#fff;padding:2px}
.card{border:1px solid var(--line);border-radius:16px;box-shadow:0 6px 24px rgba(15,39,71,.06)}
.btn,.form-control,.form-select{border-radius:10px}
.text-muted-2{color:var(--muted)}

/* auth pages */
.auth-body{min-height:100vh;display:flex;align-items:center;justify-content:center;
  background:radial-gradient(1200px 600px at 10% -10%,#dbe7ff 0,transparent 60%),radial-gradient(900px 500px at 110% 110%,#d9f3ea 0,transparent 55%),var(--bg);padding:24px 16px}
.auth-body main{width:100%;max-width:440px}
.auth-card{padding:32px}
.auth-alert{margin-bottom:16px}
.auth-logo{width:56px;height:56px;border-radius:16px;background:linear-gradient(135deg,var(--navy),#2563eb);color:#fff;display:grid;place-items:center;font-weight:800;font-size:1.2rem;margin:0 auto 14px}
.auth-logo.auth-logo-has-image{width:82px;height:82px;padding:7px;background:#fff;border:1px solid #dbe4ef;box-shadow:0 8px 22px rgba(15,43,77,.12)}
.auth-logo.auth-logo-has-image img{display:block;width:100%;height:100%;object-fit:contain;border-radius:10px}

/* dashboard */
.welcome{background:linear-gradient(120deg,var(--navy),var(--navy-2));color:#fff;border-radius:18px;padding:26px 28px}
.welcome .small{color:#c9d6ea}
.student-welcome{display:flex;align-items:center;gap:22px}
.student-welcome-photo{flex:0 0 auto;display:grid;place-items:center;width:108px;height:108px;overflow:hidden;border:4px solid rgba(255,255,255,.85);border-radius:24px;background:rgba(255,255,255,.14);box-shadow:0 8px 24px rgba(0,0,0,.16)}
.student-welcome-photo img{width:100%;height:100%;object-fit:cover}.student-welcome-photo span{font-size:2.5rem;color:#fff}
.student-welcome-info{min-width:0}.student-welcome-meta{display:flex;flex-wrap:wrap;gap:8px 18px;color:#e5edf9;font-size:.9rem}.student-welcome-meta span{display:flex;align-items:center;gap:6px}
.stat{padding:18px 20px}
.stat .num{font-size:1.6rem;font-weight:700;line-height:1.1}
.module-card{display:block;height:100%;padding:24px;color:inherit;text-decoration:none;transition:transform .15s ease,box-shadow .15s ease}
.module-card:hover,.module-card:focus-visible{transform:translateY(-3px);box-shadow:0 14px 34px rgba(15,39,71,.12);color:inherit}
.module-icon{width:54px;height:54px;border-radius:14px;display:grid;place-items:center;font-size:1.5rem;margin-bottom:16px}
.tone-blue .module-icon{background:#e7efff;color:#1d4ed8}
.tone-green .module-icon{background:#e3f6ee;color:#047857}
.tone-amber .module-icon{background:#fff3dc;color:#b45309}
.tone-purple .module-icon{background:#efe9ff;color:#6d28d9}
.tone-teal .module-icon{background:#dcf5f5;color:#0f766e}
.lecturer-stat{transition:transform .15s ease,box-shadow .15s ease}
.lecturer-stat:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(15,39,71,.08)}
.lecturer-stat .module-icon{flex:0 0 54px}
.module-card .open{font-weight:600;color:#1d4ed8}
.module-open-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:fit-content;padding:.58rem .9rem;border:1px solid #1d4ed8;border-radius:10px;background:#1d4ed8;color:#fff!important;box-shadow:0 4px 12px rgba(29,78,216,.18);transition:background .15s ease,transform .15s ease,box-shadow .15s ease}
.module-card:hover .module-open-button,.module-card:focus-visible .module-open-button{background:#173e6e;border-color:#173e6e;transform:translateX(2px);box-shadow:0 6px 16px rgba(15,39,71,.24)}
.student-news{overflow:hidden;border:1px solid #f3c969;border-radius:18px;background:#fffdf5;box-shadow:0 8px 26px rgba(146,64,14,.09)}
.student-news-heading{display:flex;align-items:center;gap:11px;padding:15px 18px;border-bottom:1px solid #f8dda2;background:linear-gradient(90deg,#fff7db,#fffdf5)}
.news-attention-dot{flex:0 0 auto;width:13px;height:13px;border-radius:50%;background:#dc2626;box-shadow:0 0 0 0 rgba(220,38,38,.55);animation:news-pulse 1.25s infinite}
.news-new-badge{margin-left:auto;animation:news-blink 1.15s ease-in-out infinite}
.student-news-list{display:grid;gap:0}.student-news-item{padding:15px 18px;border-bottom:1px solid #f4e7c7}.student-news-item:last-child{border-bottom:0}.student-news-item p{color:#475569;font-size:.92rem;line-height:1.55}.student-news-item.is-instruction{border-left:4px solid #f59e0b}
.dashboard-collapse-toggle{width:100%;border:0;color:inherit;text-align:left}.dashboard-collapse-toggle:focus-visible,.dashboard-accordion-toggle:focus-visible{outline:3px solid rgba(37,99,235,.22);outline-offset:2px}.dashboard-accordion-chevron{flex:0 0 auto;transition:transform .2s ease}.dashboard-collapse-toggle:not(.collapsed) .dashboard-accordion-chevron,.dashboard-accordion-toggle:not(.collapsed) .dashboard-accordion-chevron{transform:rotate(180deg)}
.dashboard-accordion{overflow:hidden;border:1px solid #cbd5e1;border-radius:12px;background:#fff;box-shadow:0 5px 18px rgba(15,39,71,.06)}.dashboard-accordion-toggle{display:flex;width:100%;min-height:68px;align-items:center;gap:12px;padding:12px 16px;border:0;background:#f8fafc;color:var(--ink);text-align:left}.dashboard-accordion-toggle:hover{background:#f1f5f9}.dashboard-accordion-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:8px;background:#dbeafe;color:#1d4ed8;font-size:1.18rem}.dashboard-accordion-title{display:flex;min-width:0;flex-direction:column}.dashboard-accordion-title small{color:var(--muted);font-size:.72rem}.dashboard-accordion-title strong{font-size:1rem;line-height:1.25}.dashboard-class-list{border-top:1px solid #e2e8f0}.dashboard-class-row{display:grid;grid-template-columns:110px minmax(220px,1.2fr) minmax(210px,1fr);gap:14px;align-items:center;padding:13px 16px;border-bottom:1px solid #e2e8f0}.dashboard-class-row:last-child{border-bottom:0}.dashboard-class-row time{font-weight:750;color:#173e6e}.dashboard-class-row time span{display:block;color:var(--muted);font-size:.76rem;font-weight:500}.dashboard-class-main,.dashboard-class-meta{display:flex;min-width:0;flex-direction:column;gap:3px}.dashboard-class-main strong{font-size:.92rem}.dashboard-class-main span,.dashboard-class-meta span,.dashboard-class-meta small{color:var(--muted);font-size:.78rem;overflow-wrap:anywhere}.dashboard-class-main i,.dashboard-class-meta i{margin-right:5px}.dashboard-class-empty{display:flex;align-items:center;justify-content:center;gap:12px;padding:24px;color:var(--muted)}.dashboard-class-empty>i{font-size:1.5rem;color:#16a34a}.dashboard-class-empty span{display:flex;flex-direction:column}.dashboard-class-empty small{font-size:.78rem}
@keyframes news-pulse{70%{box-shadow:0 0 0 9px rgba(220,38,38,0)}100%{box-shadow:0 0 0 0 rgba(220,38,38,0)}}
@keyframes news-blink{0%,100%{opacity:1}50%{opacity:.38}}
@media(prefers-reduced-motion:reduce){.news-attention-dot,.news-new-badge{animation:none}}
.student-dashboard-actions{display:flex;flex-wrap:wrap;gap:.6rem}.student-dashboard-alert{display:inline-flex;align-items:center;gap:.48rem;min-width:126px;font-weight:750;animation:dashboard-alert-pulse 1.5s ease-in-out infinite}.student-dashboard-alert-delay{animation-delay:.75s}.student-dashboard-notice-list{max-height:310px;overflow:auto;border-radius:12px}.student-summary-card{display:flex;align-items:center;gap:.65rem;height:100%;min-height:72px;padding:.75rem;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);text-decoration:none;box-shadow:0 3px 12px rgba(15,39,71,.05);transition:transform .15s ease,box-shadow .15s ease}.student-summary-card:hover,.student-summary-card:focus-visible{color:var(--ink);transform:translateY(-2px);box-shadow:0 7px 18px rgba(15,39,71,.1)}.student-summary-card>i{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:10px;font-size:1.08rem}.student-summary-card span{display:flex;min-width:0;flex-direction:column}.student-summary-card small{color:var(--muted);font-size:.72rem;line-height:1.15}.student-summary-card strong{margin-top:.16rem;font-size:.92rem;line-height:1.15;overflow-wrap:anywhere}.student-summary-card.tone-blue>i{background:#e7efff;color:#1d4ed8}.student-summary-card.tone-green>i{background:#e3f6ee;color:#047857}.student-summary-card.tone-danger>i{background:#fee2e2;color:#b91c1c}.student-summary-card.tone-purple>i{background:#efe9ff;color:#6d28d9}.student-summary-card.tone-amber>i{background:#fff3dc;color:#b45309}.student-summary-card.tone-teal>i{background:#dcf5f5;color:#0f766e}@keyframes dashboard-alert-pulse{0%,100%{box-shadow:0 0 0 0 rgba(245,158,11,0);filter:brightness(1)}50%{box-shadow:0 0 0 .24rem rgba(245,158,11,.18);filter:brightness(1.08)}}
@media(max-width:575.98px){.welcome.student-welcome{gap:12px;padding:15px;border-radius:14px}.student-welcome-photo{width:68px;height:68px;border-width:3px;border-radius:17px}.student-welcome-photo span{font-size:1.8rem}.student-welcome-info h1{font-size:1.08rem}.student-welcome-info>.small{font-size:.72rem}.student-welcome-meta{display:grid;gap:2px;font-size:.76rem}.student-welcome-info .btn{margin-top:.45rem!important;padding:.28rem .5rem;font-size:.72rem}.student-dashboard-actions{display:grid;grid-template-columns:1fr 1fr}.student-dashboard-alert{min-width:0;justify-content:center;padding:.5rem .55rem}.student-summary-card{min-height:66px;padding:.6rem;gap:.5rem}.student-summary-card>i{flex-basis:34px;width:34px;height:34px}.student-summary-card small{font-size:.66rem}.student-summary-card strong{font-size:.82rem}.module-card{padding:17px}.module-card .module-icon{width:44px;height:44px;margin-bottom:11px;font-size:1.25rem}.module-card h3{font-size:1rem}.module-card p{font-size:.8rem;margin-bottom:.65rem!important}.module-open-button{padding:.43rem .7rem;font-size:.8rem}}
@media(max-width:767.98px){.dashboard-class-row{grid-template-columns:82px minmax(0,1fr);gap:9px 12px}.dashboard-class-meta{grid-column:1/-1;padding-left:94px}.dashboard-accordion-toggle{gap:9px;padding:11px 12px}.dashboard-accordion-icon{flex-basis:36px;width:36px;height:36px}.dashboard-accordion-title strong{font-size:.9rem}}
@media(prefers-reduced-motion:reduce){.student-dashboard-alert{animation:none}}
.badge-soft{background:#eef2f7;color:#334155;font-weight:600}
.table>:not(caption)>*>*{padding:.7rem .75rem}

/* module pages */
.module-tabs{gap:.35rem;flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}
.module-tabs .nav-link{white-space:nowrap;color:#475569;background:#fff;border:1px solid var(--line);border-radius:10px}
.module-tabs .nav-link.active{background:var(--navy);border-color:var(--navy);color:#fff}
.project-management-tabs{overflow:visible;flex-wrap:wrap}.project-management-tabs .dropdown-menu{min-width:235px;border-color:var(--line);border-radius:12px;box-shadow:0 14px 34px rgba(15,39,71,.14)}.project-management-tabs .dropdown-item{padding:.55rem .85rem}.project-management-tabs .dropdown-item.active{background:var(--navy)}
.stat-box{background:#fff;border-radius:1rem;padding:1rem;box-shadow:0 .5rem 1rem rgba(15,23,42,.06)}
.student-action-panel{padding:1rem;border:1px solid #f5d27a;border-radius:1rem;background:linear-gradient(135deg,#fffdf5,#fff8df);box-shadow:0 .5rem 1.5rem rgba(133,92,8,.08)}
.student-action-heading{display:flex;align-items:center;gap:.55rem;margin-bottom:.8rem;color:#7a5200;font-weight:800}.student-action-heading i{color:#d68b00}
.student-action-button{position:relative;display:flex;align-items:center;gap:.9rem;min-height:96px;padding:1rem 1.1rem;overflow:hidden;border:2px solid transparent;border-radius:.9rem;color:#fff;text-decoration:none;box-shadow:0 .65rem 1.4rem rgba(22,55,91,.2);transition:transform .2s ease,box-shadow .2s ease}.student-action-button:hover,.student-action-button:focus{color:#fff;transform:translateY(-2px);box-shadow:0 .9rem 1.8rem rgba(22,55,91,.28)}
.student-action-it{background:linear-gradient(135deg,#087f5b,#075f49)}.student-action-project{background:linear-gradient(135deg,#195ea8,#123e78)}.student-action-icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:50%;background:rgba(255,255,255,.18);font-size:1.45rem}.student-action-copy{display:flex;flex:1 1 auto;flex-direction:column;line-height:1.25}.student-action-copy strong{font-size:1.03rem}.student-action-copy small{margin-top:.32rem;color:rgba(255,255,255,.78);font-size:.78rem;line-height:1.4}.student-action-arrow{flex:0 0 auto;font-size:1.25rem}.student-action-disabled{opacity:.55;filter:grayscale(.45);box-shadow:none;pointer-events:none}
@keyframes student-action-attention{0%,100%{border-color:rgba(255,255,255,.15);filter:brightness(1)}50%{border-color:#ffd866;filter:brightness(1.15);box-shadow:0 0 0 .32rem rgba(255,196,32,.22),0 .8rem 1.8rem rgba(22,55,91,.28)}}.student-action-blink{animation:student-action-attention 1.7s ease-in-out infinite}.student-action-blink-delay{animation-delay:.85s}
.news-attention-button{animation:news-attention-blink 1s ease-in-out infinite}@keyframes news-attention-blink{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(1.06)}}
.project-news-marquee{overflow:hidden;white-space:nowrap}.project-news-track{display:inline-flex;gap:2.5rem;min-width:max-content;animation:project-news-scroll 24s linear infinite}.project-news-marquee:hover .project-news-track{animation-play-state:paused}@keyframes project-news-scroll{from{transform:translateX(30%)}to{transform:translateX(-100%)}}
@media(prefers-reduced-motion:reduce){.student-action-blink,.news-attention-button,.project-news-track{animation:none}.project-news-marquee{white-space:normal}}
.result-table>:not(caption)>*>*{padding:.5rem .6rem}
.grade{display:inline-block;min-width:2.2rem;padding:.1rem .45rem;border-radius:8px;font-weight:700;font-size:.85rem;background:#eef2f7;color:#334155}
.grade-a{background:#dcfce7;color:#166534}.grade-b{background:#e0f2fe;color:#075985}.grade-c{background:#ede9fe;color:#5b21b6}
.grade-d,.grade-e{background:#fef3c7;color:#92400e}.grade-f{background:#fee2e2;color:#991b1b}.grade-pending{background:#f1f5f9;color:#64748b;font-weight:600}
.code-pill{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.15em;font-weight:700;background:#f1f5f9;border-radius:8px;padding:.2rem .5rem}
.check-card{max-width:560px;margin:0 auto}
.auth-body.auth-wide main{max-width:1000px}

/* practical lab */
.lab-editor{width:100%;min-height:300px;background:#0f172a;color:#e2e8f0;border:0;border-radius:12px;padding:14px;font:13.5px/1.55 ui-monospace,Consolas,monospace;tab-size:4;resize:vertical}
.lab-editor:focus{outline:3px solid #93c5fd;outline-offset:1px}
.code-cell{border:1px solid var(--line);border-radius:12px;padding:10px;margin-bottom:10px;background:#fff}
.code-cell .lab-editor{min-height:140px}
.lab-output{white-space:pre-wrap;background:#07111f;color:#d7f7df;min-height:70px;max-height:420px;overflow:auto;border-radius:10px;padding:12px;margin-top:8px;font:13px/1.5 ui-monospace,Consolas,monospace}
.lab-output .lab-status{font-weight:700;margin-bottom:4px}
.lab-output .text-danger{color:#fca5a5!important}.lab-output .text-success{color:#86efac!important}
.plot-output{display:block;max-width:100%;background:#fff;border-radius:8px;margin-top:10px}
@media print{.portal-nav,.breadcrumb,.d-print-none{display:none!important}.card{box-shadow:none;border:1px solid #ccc}}
/* Project allocation: scrollable pick lists; print-only header/signature */
.allocation-list{max-height:460px;overflow-y:auto}
.allocation-list .list-group-item{cursor:pointer}
.allocation-list .list-group-item:has(input:checked){background:#eef4ff}

/* Approved departmental course allocation: preserve the source table's dense document layout. */
.course-allocation-table{min-width:1320px;font-size:.9rem}
.course-allocation-table thead th{background:#eef2f7;color:#172033;font-size:.76rem;vertical-align:middle;letter-spacing:0}
.course-allocation-table th:first-child{width:58px}
.course-allocation-table th:nth-child(2){width:145px}
.course-allocation-table th:nth-child(3){width:245px}
.course-allocation-table th:nth-child(4){width:230px}
.course-allocation-table th:nth-child(5),.course-allocation-table th:nth-child(6){width:180px}
.course-allocation-table th:nth-child(7){width:210px}
.course-allocation-table td{vertical-align:top;line-height:1.42}
.course-allocation-table .ca-lines{white-space:pre-line}
@media print{
  .course-allocation-heading{display:block!important;text-align:center}
  .course-allocation-card{border:0!important;box-shadow:none!important}
  .course-allocation-card .table-responsive{overflow:visible!important}
  .course-allocation-table{min-width:0;font-size:8.5pt}
  .course-allocation-table th,.course-allocation-table td{padding:5px!important}
}
.print-only{display:none}
@media print{.print-only{display:block!important}.student-back-link{display:none!important}}
.auth-body.auth-wide .check-card{max-width:none}

/* Sweet alerts and global loading feedback */
.portal-swal{border-radius:20px!important;box-shadow:0 24px 70px rgba(15,39,71,.22)!important}
.swal2-title{color:var(--ink)!important;font-size:1.45rem!important}
.swal2-html-container{color:var(--muted)!important}
.swal2-confirm,.swal2-cancel{border-radius:10px!important;padding:.65rem 1.25rem!important}
.portal-loader{position:fixed;inset:0;z-index:20000;display:grid;place-items:center;background:rgba(15,39,71,.36);backdrop-filter:blur(5px);opacity:0;visibility:hidden;transition:opacity .18s ease,visibility .18s ease}
.portal-loader.is-visible{opacity:1;visibility:visible}
.portal-loader-card{min-width:210px;display:flex;flex-direction:column;align-items:center;gap:10px;padding:26px 30px;border:1px solid rgba(255,255,255,.75);border-radius:20px;background:rgba(255,255,255,.96);box-shadow:0 24px 70px rgba(15,39,71,.25);color:var(--ink)}
.portal-loader-card small{color:var(--muted)}
.portal-loader-mark{display:grid;place-items:center;width:54px;height:54px;border-radius:15px;background:linear-gradient(135deg,var(--navy),#2563eb);color:#fff;font-size:1rem;font-weight:900;letter-spacing:.08em}
.portal-loader-spinner{width:32px;height:32px;border:3px solid #dbe7f7;border-top-color:#2563eb;border-radius:50%;animation:portal-spin .7s linear infinite}
@keyframes portal-spin{to{transform:rotate(360deg)}}
/* Page-open state: shown from first paint, removed by portal.js when the page is ready.
   The animation hides it after 6s anyway, so a failed script can never leave the page blocked. */
html.is-page-loading .portal-loader{opacity:1;visibility:visible;background:linear-gradient(135deg,#f3f6fb,#e7efff);backdrop-filter:none;animation:portal-loader-failsafe .3s ease 6s forwards}
@keyframes portal-loader-failsafe{to{opacity:0;visibility:hidden}}
.portal-loader-mark{animation:portal-pulse 1.1s ease-in-out infinite alternate}
@keyframes portal-pulse{from{transform:scale(1);box-shadow:0 8px 20px rgba(37,99,235,.25)}to{transform:scale(1.07);box-shadow:0 14px 34px rgba(37,99,235,.4)}}
.portal-loader.is-visible .portal-loader-card{animation:portal-pop .22s ease-out}
@keyframes portal-pop{from{transform:scale(.94);opacity:.4}to{transform:scale(1);opacity:1}}
.btn.is-loading{cursor:progress;opacity:.85;pointer-events:none}
@media (prefers-reduced-motion:reduce){.portal-loader,.portal-loader-spinner,.portal-loader-mark,.portal-loader-card{transition:none;animation-duration:1.5s}.portal-loader-mark{animation:none}}

/* Public institutional landing page */
.portal-home-body{display:block;min-height:100vh;padding:0;background:#f4f7fb}
.portal-home-body main{width:100%;max-width:none}
.portal-home{position:relative;min-height:100vh;overflow:hidden;display:flex;align-items:center;padding:3.5rem 0 2rem;color:#172033;background:linear-gradient(135deg,rgba(248,250,252,.97),rgba(226,237,248,.93)),radial-gradient(circle at top left,#fff,#dce9f5)}
.portal-home::before{content:"";position:absolute;inset:0;opacity:.24;background-image:linear-gradient(rgba(23,54,93,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(23,54,93,.08) 1px,transparent 1px);background-size:44px 44px;pointer-events:none}
.portal-home-orb{position:absolute;border-radius:50%;pointer-events:none}.portal-home-orb-one{width:320px;height:320px;top:-130px;right:-80px;background:rgba(47,117,181,.17)}.portal-home-orb-two{width:230px;height:230px;bottom:-90px;left:-70px;background:rgba(21,128,61,.12)}
.portal-home-container{position:relative;z-index:1}.portal-home-card{max-width:1080px;margin:0 auto;overflow:hidden;border:1px solid rgba(255,255,255,.85);border-radius:1.5rem;background:rgba(255,255,255,.93);box-shadow:0 1.75rem 4.5rem rgba(23,54,93,.18);backdrop-filter:blur(14px)}
.portal-home-brand-panel{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:520px;padding:3rem 2.2rem;text-align:center;color:#fff;background:linear-gradient(155deg,#0c2f57 0%,#164f82 58%,#176b57 130%)}
.portal-home-brand-panel::after{content:"";position:absolute;right:-70px;bottom:-100px;width:230px;height:230px;border:34px solid rgba(255,255,255,.05);border-radius:50%}
.portal-home-logo-wrap{position:relative;display:grid;place-items:center;width:172px;height:172px;margin-bottom:1.5rem;border-radius:50%;background:rgba(255,255,255,.98);box-shadow:0 1rem 2.5rem rgba(0,0,0,.2)}
.portal-home-logo-ring{position:absolute;inset:-10px;border:1px solid rgba(255,255,255,.32);border-radius:50%}.portal-home-logo{width:126px;height:126px;object-fit:contain}.portal-home-logo-fallback{color:#164f82;font-size:5rem}
.portal-home-faculty{position:relative;z-index:1;font-size:.82rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase}.portal-home-divider{position:relative;z-index:1;width:54px;height:3px;margin:1rem 0;border-radius:999px;background:#7dd3a8}.portal-home-brand-note{position:relative;z-index:1;max-width:260px;color:rgba(255,255,255,.76);font-size:.92rem;line-height:1.65}
.portal-home-content{display:flex;flex-direction:column;justify-content:center;padding:4rem 4.25rem}.portal-home-eyebrow{display:inline-flex;align-items:center;align-self:flex-start;gap:.45rem;margin-bottom:1.35rem;padding:.45rem .8rem;border-radius:999px;color:#164f82;background:#e8f1fa;font-size:.75rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.portal-home-university{margin-bottom:.4rem;color:#0c2f57;font-size:clamp(2rem,4vw,3.45rem);font-weight:800;letter-spacing:-.045em;line-height:1.02;text-transform:uppercase}.portal-home-department{margin-bottom:1.8rem;color:#176b57;font-size:clamp(1.05rem,2vw,1.35rem);font-weight:750;letter-spacing:.025em;text-transform:uppercase}
.portal-home-system-title{max-width:650px;padding-left:1.1rem;border-left:4px solid #2f75b5}.portal-home-system-title strong{display:block;color:#4d5c71;font-size:clamp(1.1rem,2vw,1.5rem);font-weight:700;line-height:1.5}
.portal-home-actions{margin-top:2rem}.portal-home-login-btn{display:inline-flex;align-items:center;gap:.75rem;padding:.82rem 1.2rem;border:0;color:#fff;background:linear-gradient(135deg,#164f82,#0c2f57);box-shadow:0 .8rem 1.8rem rgba(12,47,87,.24);font-weight:750;transition:transform .2s ease,box-shadow .2s ease}.portal-home-login-btn:hover,.portal-home-login-btn:focus{color:#fff;background:linear-gradient(135deg,#176b57,#115242);transform:translateY(-2px)}
.portal-home-features{display:flex;flex-wrap:wrap;gap:.7rem 1.2rem;margin-top:2rem;color:#637083;font-size:.85rem;font-weight:700}.portal-home-features span{display:inline-flex;align-items:center;gap:.38rem}.portal-home-features i{color:#176b57}.portal-home-footer{margin-top:1.25rem;text-align:center;color:#64748b;font-size:.78rem;letter-spacing:.05em;text-transform:uppercase}
@media(max-width:991.98px){.portal-home{padding:1.5rem 0}.portal-home-card{max-width:720px}.portal-home-brand-panel{min-height:auto;padding:2.3rem 1.5rem}.portal-home-logo-wrap{width:132px;height:132px;margin-bottom:1.15rem}.portal-home-logo{width:98px;height:98px}.portal-home-brand-note{display:none}.portal-home-content{padding:2.7rem 2.4rem 3rem;text-align:center}.portal-home-eyebrow{align-self:center}.portal-home-system-title{margin:0 auto;padding:1rem 0 0;border-top:3px solid #2f75b5;border-left:0}.portal-home-features{justify-content:center}}
@media(max-width:575.98px){.portal-home{align-items:flex-start;padding:0}.portal-home-card{border:0;border-radius:0;box-shadow:none}.portal-home-brand-panel{padding:1.6rem 1rem}.portal-home-logo-wrap{width:104px;height:104px}.portal-home-logo{width:76px;height:76px}.portal-home-content{padding:2.2rem 1.25rem 2.6rem}.portal-home-university{font-size:1.9rem}.portal-home-department{font-size:.95rem;line-height:1.4}.portal-home-actions,.portal-home-login-btn{width:100%;justify-content:center}.portal-home-footer{padding:0 1rem 1.25rem}}

/* Student portal sidebar */
.student-shell{display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px;align-items:start}
.student-content{min-width:0}
.practical-student-page .student-shell{transition:grid-template-columns .2s ease}
.practical-student-page.practical-sidebar-collapsed .student-shell{grid-template-columns:minmax(0,1fr)}
.practical-student-page.practical-sidebar-collapsed .student-sidebar-column{display:none!important}
.practical-sidebar-toggle{background:#fff;font-weight:700}
.student-sidebar{position:sticky;top:20px;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 8px 28px rgba(15,39,71,.08)}
.student-sidebar-head{display:flex;align-items:center;gap:12px;padding:18px;background:linear-gradient(135deg,var(--navy),var(--navy-2));color:#fff}
.student-sidebar-head strong,.student-sidebar-head small{display:block;max-width:165px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.student-sidebar-head small{margin-top:2px;color:#c9d6ea;font-size:.76rem}
.student-avatar{flex:0 0 auto;display:grid;place-items:center;width:40px;height:40px;overflow:hidden;border-radius:12px;background:rgba(255,255,255,.16);font-size:1.1rem}
.student-avatar img{width:100%;height:100%;object-fit:cover}
.student-home,.student-menu-toggle,.student-submenu a{display:flex;align-items:center;gap:10px;width:100%;color:#475569;text-decoration:none}
.student-home{padding:14px 17px;border-bottom:1px solid var(--line);font-size:1rem;font-weight:750}
.student-home:hover,.student-home.active{background:#edf4ff;color:#1d4ed8}
.student-menu{padding:9px}
.student-sidebar-signout{padding:0 9px 10px}.student-sidebar-signout .student-home{border-radius:10px;background:transparent;text-align:left}.student-sidebar-signout .student-home:hover{background:#fff1f2;color:#b91c1c!important}
.student-menu-group+.student-menu-group{margin-top:4px}
.student-submenu-label{padding:12px 12px 5px;color:#94a3b8;font-size:.7rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.student-menu-toggle{justify-content:space-between;border:0;border-radius:10px;background:transparent;padding:13px 11px;font-size:1rem;font-weight:750;text-align:left}
.student-menu-toggle>span{display:flex;align-items:center;gap:10px}
.student-menu-toggle>span>i:first-child,.student-home>i{font-size:1.08rem}
.student-menu-toggle:hover,.student-menu-group.is-current>.student-menu-toggle{background:#f1f5f9;color:var(--navy)}
.student-menu-toggle .menu-chevron{font-size:.75rem;transition:transform .2s ease}
.student-menu-toggle[aria-expanded="true"] .menu-chevron{transform:rotate(180deg)}
.student-submenu{position:relative;margin:2px 0 6px 20px;padding-left:13px;border-left:2px solid #e2e8f0}
.student-submenu a{position:relative;padding:10px 11px;border-radius:9px;font-size:.96rem;font-weight:650;line-height:1.35}
.student-submenu a:hover{background:#f8fafc;color:#1d4ed8}
.student-submenu a.active{background:#e7efff;color:#1d4ed8;font-weight:800;box-shadow:inset 3px 0 #1d4ed8}
.student-menu-mobile{box-shadow:0 6px 18px rgba(29,78,216,.2)}
.student-back-link{font-weight:650;background:#fff}
.student-back-link:hover{background:#f8fafc}
.student-offcanvas{width:min(310px,88vw);background:var(--bg)}
.student-offcanvas .student-sidebar{position:static;border:0;border-radius:0;box-shadow:none;min-height:100%}
.student-topbar{display:flex;align-items:center;gap:9px;color:#fff}.student-topbar-photo{display:grid;place-items:center;width:38px;height:38px;overflow:hidden;border:2px solid rgba(255,255,255,.7);border-radius:11px;background:rgba(255,255,255,.14)}.student-topbar-photo img{width:100%;height:100%;object-fit:cover}.student-topbar-details strong,.student-topbar-details small{display:block;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.student-topbar-details strong{font-size:.85rem}.student-topbar-details small{color:#c9d6ea;font-size:.7rem}.student-topbar-menu{white-space:nowrap;color:var(--navy);font-weight:700}
.brand-preview{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#f8fafc;color:var(--muted);font-size:.85rem}.brand-preview img{width:54px;height:54px;object-fit:contain}
.student-portal .student-content>.module-tabs,.student-portal .student-content>nav.module-tabs{display:none!important}
@media(max-width:991.98px){.student-shell{display:block}.student-content{width:100%}}
@media(max-width:767.98px){.student-portal .navbar-brand .fw-semibold{display:none}.student-welcome{align-items:flex-start}.student-welcome-photo{width:84px;height:84px;border-radius:20px}}
@media(max-width:480px){.student-welcome{display:block}.student-welcome-photo{margin-bottom:15px}.student-topbar-menu{font-size:.75rem}.student-topbar-photo{display:none}}

/* Student academic record */
.result-student-hero{padding:22px 24px;border:1px solid #d7e3f3;border-radius:18px;background:linear-gradient(135deg,#f8fbff,#edf4ff)}
.result-eyebrow{margin-bottom:5px;color:#1d4ed8;font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.result-identity{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 5px 20px rgba(15,39,71,.05)}
.result-identity>div{min-width:0;padding:15px 17px;border-right:1px solid var(--line)}
.result-identity>div:last-child{border-right:0}
.result-identity span,.result-identity strong{display:block}
.result-identity span{margin-bottom:4px;color:var(--muted);font-size:.75rem;text-transform:uppercase;letter-spacing:.04em}
.result-identity strong{overflow:hidden;text-overflow:ellipsis;color:var(--ink);font-size:.93rem}
.result-note{border-left:4px solid #2563eb}
.result-level-tabs{padding:14px 16px;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:0 5px 20px rgba(15,39,71,.05)}
.result-level-tabs-label{margin-bottom:10px;color:var(--ink);font-size:.82rem;font-weight:750}
.result-card-actions .btn{white-space:nowrap}
.result-level-tabs .nav{gap:7px;overflow-x:auto;padding-bottom:2px}
.result-level-tabs .nav-link{white-space:nowrap;border:1px solid #dbe4f0;border-radius:10px;background:#f8fafc;color:#475569;font-size:.88rem;font-weight:700}
.result-level-tabs .nav-link:hover:not(:disabled){border-color:#93b4e5;color:#1d4ed8}
.result-level-tabs .nav-link.active{border-color:var(--navy);background:var(--navy);color:#fff;box-shadow:0 4px 12px rgba(15,39,71,.18)}
.result-level-tabs .nav-link:disabled{opacity:.42;background:#f1f5f9}
.result-level-block[hidden]{display:none!important}
@media(max-width:767.98px){.result-identity{grid-template-columns:repeat(2,minmax(0,1fr))}.result-identity>div:nth-child(2){border-right:0}.result-identity>div:nth-child(-n+2){border-bottom:1px solid var(--line)}}
@media print{
  body,.student-content{background:#fff!important}.student-shell{display:block}.student-shell>.d-none,.student-menu-mobile,.student-sidebar,.portal-loader{display:none!important}
  .student-content{width:100%}.result-student-hero{padding:0 0 14px;border:0;background:#fff}.result-identity{box-shadow:none}
  .student-content .card{break-inside:avoid;box-shadow:none}.student-content .card-header{background:#fff!important}
  .result-note{margin-top:12px!important}.student-content{font-size:11px}.result-table{font-size:10px}
}

/* Student profile and account security */
.profile-hero{padding:24px 26px;border-radius:18px;background:linear-gradient(120deg,var(--navy),var(--navy-2));color:#fff;box-shadow:0 10px 30px rgba(15,39,71,.16)}
.profile-hero .result-eyebrow{color:#bfdbfe}
.profile-photo-card{overflow:hidden}
.profile-photo{display:grid;place-items:center;width:132px;height:132px;overflow:hidden;border:5px solid #fff;border-radius:50%;background:linear-gradient(135deg,#dbeafe,#bfdbfe);box-shadow:0 8px 24px rgba(15,39,71,.16);color:var(--navy);font-size:2.8rem;font-weight:800}
.profile-photo img{width:100%;height:100%;object-fit:cover}
.profile-section-icon{flex:0 0 auto;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#e7efff;color:#1d4ed8;font-size:1.15rem}
.profile-section-icon.security{background:#e3f6ee;color:#047857}
.profile-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--line);border-radius:14px;overflow:hidden}
.profile-details>div{min-width:0;padding:13px 15px;border-bottom:1px solid var(--line)}
.profile-details>div:nth-child(odd){border-right:1px solid var(--line)}
.profile-details>div:nth-last-child(-n+2){border-bottom:0}
.profile-details span,.profile-details strong{display:block}.profile-details span{margin-bottom:3px;color:var(--muted);font-size:.73rem;text-transform:uppercase;letter-spacing:.04em}.profile-details strong{overflow-wrap:anywhere;font-size:.92rem}
@media(max-width:575.98px){.profile-details{grid-template-columns:1fr}.profile-details>div:nth-child(odd){border-right:0}.profile-details>div:nth-last-child(2){border-bottom:1px solid var(--line)}}

/* Student practical screenshot capture */
.screenshot-capture-panel{padding:14px;border:1px solid #d9e4f2;border-radius:14px;background:#f8fbff}
.practical-capture-quick{font-weight:750;box-shadow:0 4px 14px rgba(245,158,11,.22);animation:practical-capture-pulse 1.8s ease-in-out infinite}@keyframes practical-capture-pulse{0%,100%{box-shadow:0 0 0 0 rgba(245,158,11,0)}50%{box-shadow:0 0 0 .25rem rgba(245,158,11,.16)}}.practical-capture-quick.btn-success{animation:none;box-shadow:0 4px 14px rgba(22,163,74,.2)}
.capture-status{padding:9px 11px;border:1px dashed #bfd0e6;border-radius:9px;background:#fff;color:var(--muted)}
.screenshot-preview{padding:10px;border:1px solid #cbd9ea;border-radius:12px;background:#fff}
.screenshot-preview img{display:block;width:100%;max-height:430px;object-fit:contain;border:1px solid #e2e8f0;border-radius:8px;background:#eef2f7}
@media(max-width:575.98px){.practical-capture-quick{flex:1 1 auto}.screenshot-capture-panel [data-capture-screen]{width:100%}}
@media(prefers-reduced-motion:reduce){.practical-capture-quick{animation:none}}
.wokwi-full-card{width:100%;overflow:hidden}.wokwi-full-frame{display:block;height:clamp(620px,78vh,920px);background:#111827}@media(max-width:575.98px){.wokwi-full-card{padding:.75rem!important}.wokwi-full-frame{height:72vh;min-height:540px}}
.practical-filter-group{padding-bottom:.75rem;margin-bottom:.75rem;border-bottom:1px solid var(--line)}.practical-filter-label{margin-bottom:.45rem;color:var(--ink);font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.035em}.practical-filter-buttons{display:flex;flex-wrap:wrap;gap:.4rem}.practical-filter-buttons .btn{white-space:nowrap}@media(max-width:575.98px){.practical-payment-filters{padding:.75rem!important}.practical-filter-buttons{flex-wrap:nowrap;overflow-x:auto;padding-bottom:.2rem;scrollbar-width:thin}.practical-filter-buttons .btn{flex:0 0 auto}}
.practical-report-editor{min-height:220px;padding:1rem;border:1px solid #ced4da;border-radius:.5rem;background:#fff;overflow:auto;outline:none}.practical-report-editor:focus{border-color:#86b7fe;box-shadow:0 0 0 .25rem rgba(13,110,253,.15)}.practical-report-editor table,.practical-report-output table{width:100%;border-collapse:collapse;margin:.75rem 0}.practical-report-editor th,.practical-report-editor td,.practical-report-output th,.practical-report-output td{border:1px solid #9ca3af;padding:.5rem;vertical-align:top}.practical-report-editor th,.practical-report-output th{background:#f1f5f9}.practical-report-output{line-height:1.6;overflow:auto}
/* Public attendance entry */
.attendance-mark-page {
  min-height: 100vh;
  background: linear-gradient(145deg, #edf4ff 0%, #f7f9fc 54%, #e9f8f2 100%);
}
.attendance-mark-shell { max-width: 820px; padding-top: 42px; padding-bottom: 48px; }
.attendance-mark-heading { margin-bottom: 24px; color: #14213d; }
.attendance-mark-heading h1 { margin: 12px 0 4px; font-size: 1.75rem; font-weight: 800; letter-spacing: 0; }
.attendance-mark-heading > div:last-child { color: #65738a; }
.attendance-mark-brand {
  width: 64px; height: 64px; display: grid; place-items: center; border-radius: 8px;
  color: #fff; font-size: 1.8rem; background: #174a9c; box-shadow: 0 12px 26px rgba(23,74,156,.24);
}
.attendance-matric-panel {
  max-width: 500px; margin: 0 auto; padding: 28px; background: #fff; border: 1px solid #dce4ef;
  border-radius: 8px; box-shadow: 0 18px 45px rgba(24,47,81,.10);
}
.attendance-field-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 8px; background: #e7f0ff; color: #174a9c; font-size: 1.25rem; }
.attendance-continue { width: 100%; margin-top: 16px; padding: 10px; }
.attendance-back-link { display: block; margin-top: 16px; text-align: center; text-decoration: none; }
.attendance-student-strip {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 16px 18px; color: #fff;
  border-radius: 8px; background: #174a9c; box-shadow: 0 12px 28px rgba(23,74,156,.18);
}
.attendance-student-icon { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.16); font-size: 1.3rem; }
.attendance-student-strip small,.attendance-student-strip strong,.attendance-student-strip span { display: block; }
.attendance-student-strip small { color: #cfe0ff; text-transform: uppercase; font-size: .68rem; font-weight: 700; }
.attendance-student-strip strong { font-size: 1.05rem; }
.attendance-student-strip span { color: #e5edfb; font-size: .84rem; }
.attendance-class-tabs { gap: 8px; margin-bottom: 18px; padding: 6px; border: 1px solid #dce4ef; border-radius: 8px; background: #fff; box-shadow: 0 8px 20px rgba(24,47,81,.06); }
.attendance-class-tabs .nav-item { flex: 1 1 0; }
.attendance-class-tabs .nav-link {
  width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 6px; color: #4d5d73; font-weight: 700;
}
.attendance-class-tabs .nav-link b { min-width: 24px; padding: 2px 7px; border-radius: 999px; background: #e9edf3; color: #526075; font-size: .75rem; }
.attendance-class-tabs .nav-item:first-child .nav-link.active { color: #fff; background: #1769e0; box-shadow: 0 7px 16px rgba(23,105,224,.22); }
.attendance-class-tabs .nav-item:last-child .nav-link.active { color: #fff; background: #d35400; box-shadow: 0 7px 16px rgba(211,84,0,.20); }
.attendance-class-tabs .nav-link.active b { color: inherit; background: rgba(255,255,255,.20); }
.attendance-class-card,.attendance-history-panel { overflow: hidden; margin-bottom: 16px; border: 1px solid #dce4ef; border-radius: 8px; background: #fff; box-shadow: 0 12px 30px rgba(24,47,81,.08); }
.attendance-class-card { border-left: 5px solid #20a464; padding: 20px; }
.attendance-class-top { display: flex; align-items: flex-start; gap: 12px; }
.attendance-course-icon { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 8px; color: #117a49; background: #dff6eb; font-size: 1.2rem; }
.attendance-class-top small,.attendance-class-top strong,.attendance-class-top span { display: block; }
.attendance-class-top small { color: #738197; text-transform: uppercase; font-size: .68rem; font-weight: 700; }
.attendance-class-top strong { color: #17253c; font-size: 1.12rem; }
.attendance-class-top span { color: #5e6d82; }
.attendance-class-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; padding: 12px 14px; border-radius: 6px; color: #425168; background: #f4f7fb; font-size: .88rem; }
.attendance-class-meta span { display: inline-flex; align-items: center; gap: 6px; }
.attendance-class-meta i { color: #1769e0; }
.attendance-action-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.attendance-action-form .btn { min-width: 150px; padding: 10px 18px; font-weight: 700; }
.attendance-waiting { display: flex; gap: 10px; align-items: center; margin-top: 16px; padding: 12px 14px; border: 1px solid #bcd7ff; border-radius: 6px; color: #174a9c; background: #edf5ff; }
.attendance-waiting i { font-size: 1.2rem; }
.attendance-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 190px; padding: 30px; border: 1px dashed #b9c7d9; border-radius: 8px; color: #66758a; background: rgba(255,255,255,.75); text-align: center; }
.attendance-empty-state i { margin-bottom: 10px; color: #1769e0; font-size: 2rem; }
.attendance-empty-state strong { color: #25344b; font-size: 1.05rem; }
.attendance-history-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; color: #fff; background: #d35400; }
.attendance-history-head strong,.attendance-history-head span { display: block; }
.attendance-history-head span { color: #ffe0cc; font-size: .8rem; }
.attendance-history-head > i { font-size: 1.4rem; }
.attendance-history-panel thead th { color: #4b5b70; background: #f4f7fb; }
@media (max-width: 575.98px) {
  .attendance-mark-shell { padding: 28px 18px 36px; }
  .attendance-mark-heading h1 { font-size: 1.45rem; }
  .attendance-student-strip { align-items: flex-start; }
  .attendance-student-strip .btn { padding-inline: 8px; font-size: .76rem; }
  .attendance-class-tabs .nav-link { gap: 5px; padding: 8px 6px; font-size: .82rem; }
  .attendance-class-tabs .nav-link i { display: none; }
  .attendance-class-card { padding: 16px; }
  .attendance-class-top { flex-wrap: wrap; }
  .attendance-class-top > div:last-child { margin-left: 56px; }
  .attendance-action-form .btn { width: 100%; }
}

/* Departmental lecture timetable */
.tt-grid-scroll { overflow: auto; border: 1px solid #cbd5e1; background: #fff; }
.tt-grid { display: grid; grid-template-columns: 92px repeat(5,minmax(190px,1fr)); grid-template-rows: 46px repeat(var(--tt-slots),36px); min-width: 1100px; position: relative; }
.tt-grid-corner,.tt-grid-day { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; justify-content: center; border-right: 1px solid #cbd5e1; border-bottom: 1px solid #94a3b8; color: #fff; background: #173e6e; font-weight: 700; }
.tt-grid-corner { grid-column: 1; grid-row: 1; left: 0; z-index: 8; }
.tt-grid-day { grid-row: 1; }
.tt-grid-time { position: sticky; left: 0; z-index: 4; display: flex; align-items: flex-start; justify-content: center; padding-top: 5px; border-right: 1px solid #94a3b8; border-bottom: 1px solid #d5dde8; background: #f7f9fc; color: #334155; font-size: .76rem; font-weight: 700; }
.tt-grid-time.tt-half { border-bottom-style: dashed; }
.tt-grid-cell { border-right: 1px solid #d5dde8; border-bottom: 1px solid #d5dde8; background: #fff; }
.tt-grid-cell.tt-half { border-bottom-style: dashed; border-bottom-color: #e8edf3; }
.tt-grid-entry { z-index: 3; margin: 3px; padding: 7px 8px; border: 1px solid #a9c3f7; border-left: 4px solid #1d4ed8; overflow: hidden; background: #eaf1ff; color: #10213a; box-shadow: 0 2px 6px rgba(15,35,65,.08); }
.tt-grid-entry strong,.tt-grid-entry span,.tt-grid-entry small { display: block; }
.tt-grid-entry strong { font-size: .82rem; }
.tt-grid-entry span { margin-top: 1px; font-size: .75rem; line-height: 1.25; }
.tt-grid-entry small { margin-top: 3px; color: #40546f; font-size: .67rem; line-height: 1.2; }
.tt-grid-entry small i { margin-right: 4px; }
.tt-grid-entry.tt-tone-1 { border-color: #9cd8c4; border-left-color: #087f5b; background: #e9f8f2; }
.tt-grid-entry.tt-tone-2 { border-color: #f4c67c; border-left-color: #c76a00; background: #fff5df; }
.tt-grid-entry.tt-tone-3 { border-color: #cdb7f6; border-left-color: #6d3bd1; background: #f3edff; }
.tt-grid-entry.tt-tone-4 { border-color: #efadb4; border-left-color: #c42f42; background: #fff0f1; }
.tt-grid-entry.tt-event { border-color: #b8c0ca; border-left-color: #475569; background: #f1f5f9; }
.tt-lecturer-picker { max-height: 250px; overflow: auto; }
.tt-student-heading { padding: 16px 18px; border-left: 4px solid #087f5b; background: #e9f8f2; }
.tt-agenda { display: none; }
.tt-agenda-day { margin-bottom: 16px; border: 1px solid #d8e0ea; background: #fff; }
.tt-agenda-day h3 { margin: 0; padding: 9px 12px; color: #fff; background: #173e6e; font-size: .9rem; }
.tt-agenda-columns { display: grid; grid-template-columns: 32px 92px minmax(0,1fr); gap: 10px; padding: 7px 12px; color: #475569; background: #f1f5f9; font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.tt-agenda-day article { display: grid; grid-template-columns: 32px 92px minmax(0,1fr); gap: 10px; padding: 12px; border-top: 1px solid #e5eaf0; }
.tt-agenda-columns.tt-agenda-has-actions,.tt-agenda-day article.tt-agenda-has-actions { grid-template-columns: 32px 92px minmax(0,1fr) 76px; }
.tt-agenda-actions { display: flex; align-items: start; gap: 6px; }
.tt-agenda-actions form { margin: 0; }
.tt-agenda-day article .tt-agenda-sn { display: grid; place-items: center; width: 28px; height: 28px; margin: 0; border: 1px solid #cbd5e1; color: #334155; background: #f8fafc; font-size: .75rem; font-weight: 700; }
.tt-agenda-day article time { color: #087f5b; font-size: .78rem; font-weight: 700; }
.tt-agenda-day article strong,.tt-agenda-day article span { display: block; }
.tt-agenda-day article strong { font-size: .86rem; }
.tt-agenda-day article span { margin-top: 3px; color: #64748b; font-size: .75rem; }
@media (max-width: 767.98px) {
  .tt-grid-scroll { display: none; }
  .tt-agenda { display: block; }
}
@media print {
  @page { size: A3 landscape; margin: 8mm; }
  .tt-grid-scroll { overflow: visible; border-color: #777; }
  .tt-grid { min-width: 0; grid-template-columns: 70px repeat(5,minmax(0,1fr)); }
  .tt-grid-corner,.tt-grid-day,.tt-grid-time { position: static; }
  .tt-grid-entry { box-shadow: none; }
  .tt-agenda { display: none !important; }
}
.student-records-table-wrap{width:100%}
.student-records-table{min-width:1420px}
.student-records-table .verification-code-column,
.student-records-table .verification-code-cell{min-width:245px;width:245px}
.student-records-table .verification-code-cell code{letter-spacing:.12em}

/* U2026 fresher registration */
.auth-body.fresher-registration-page main,.auth-body.clearance-print-page main{max-width:none}
.fresher-heading>div,.clearance-title>div{font-weight:800;color:#174a7e}.fresher-heading h3,.clearance-title h3{font-size:1rem;margin:.2rem 0;color:#213d59}.fresher-heading h2,.clearance-title h2{font-size:1.2rem;margin:.2rem 0;color:#102f52}.fresher-heading h4,.clearance-title h4{font-size:.92rem;margin:.35rem 0;font-weight:800;letter-spacing:.03em}
.fresher-brand{padding:24px;border:0;border-radius:18px;background-image:linear-gradient(rgba(10,40,72,.34),rgba(10,40,72,.34)),url('../img/fresher-header-bg.jpg');background-size:cover;background-position:center;background-repeat:no-repeat;box-shadow:0 12px 30px rgba(14,54,89,.22)}.fresher-brand .fresher-heading>div,.fresher-brand .fresher-heading h2,.fresher-brand .fresher-heading h3,.fresher-brand .fresher-heading h4{color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.45)}.fresher-brand>img{background:#fff;border-radius:50%;padding:5px;box-shadow:0 5px 16px rgba(0,0,0,.2)}
.fresher-registration-page{background:linear-gradient(135deg,#edf4ff 0%,#f8fbff 45%,#edf9f4 100%);min-height:100vh}.fresher-shell{width:min(1060px,calc(100% - 24px));margin:28px auto;background:#fff;border:1px solid #dce6f2;border-radius:24px;box-shadow:0 24px 70px rgba(14,48,84,.12);padding:clamp(20px,4vw,44px)}.fresher-brand{display:grid;grid-template-columns:88px 1fr 88px;gap:20px;align-items:center;text-align:center;padding-bottom:24px;border-bottom:1px solid #e5edf5}.fresher-brand img{width:88px;height:88px;object-fit:contain}.fresher-brand h1{font-size:clamp(1.45rem,3vw,2.25rem);margin:.15rem 0;color:#102f52}.fresher-brand p{margin:0;color:#587087}.fresher-progress{height:8px;background:#e8eef5;border-radius:999px;margin:28px 0 16px;overflow:hidden}.fresher-progress div{height:100%;width:16.67%;background:linear-gradient(90deg,#174a7e,#168a62);transition:width .2s ease}.fresher-steps{list-style:none;padding:0;margin:0 0 28px;display:grid;grid-template-columns:repeat(6,1fr);gap:8px;color:#708298;font-size:.82rem;text-align:center}.fresher-steps li span{display:grid;place-items:center;width:30px;height:30px;margin:0 auto 5px;border-radius:50%;background:#e8eef5;color:#52677e;font-weight:700}.fresher-steps li.active{color:#174a7e;font-weight:700}.fresher-steps li.active span{background:#174a7e;color:#fff}.fresher-panel h2{color:#143e69;font-size:1.35rem;margin-bottom:.35rem}.fresher-note,.fresher-submit-note{height:100%;display:flex;gap:12px;align-items:center;background:#eef7ff;border:1px solid #cee5f9;border-radius:14px;padding:14px}.fresher-note i,.fresher-submit-note i{font-size:1.5rem;color:#174a7e}.file-limit{display:inline-block;color:#64778a;font-size:.76rem;font-weight:400}.fresher-panel fieldset{border:0;padding:0}.fresher-panel legend{font-size:1rem;font-weight:700;color:#213d59}.fresher-panel legend span{font-size:.8rem;font-weight:400;color:#6b7c8d}.choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.choice-grid label{cursor:pointer}.choice-grid input{position:absolute;opacity:0}.choice-grid span{display:block;border:1px solid #cbd8e5;border-radius:12px;padding:11px 13px;background:#fff;transition:.15s ease}.choice-grid input:checked+span{background:#e7f3ff;border-color:#1c6caf;color:#174a7e;box-shadow:inset 0 0 0 1px #1c6caf}.radio-grid{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}.fresher-actions{display:flex;align-items:center;border-top:1px solid #e4ebf2;margin-top:30px;padding-top:22px}.fresher-review{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.fresher-review>div{background:#f7f9fc;border:1px solid #e2e8ef;border-radius:12px;padding:13px}.fresher-review span{display:block;color:#718196;font-size:.8rem}.fresher-review strong{display:block;margin-top:3px;color:#173451}.clearance-sheet{max-width:210mm;margin:18px auto;background:#fff;padding:14mm;box-shadow:0 8px 35px rgba(0,0,0,.1);color:#172334}.clearance-head{display:grid;grid-template-columns:28mm 1fr 28mm;align-items:center;text-align:center;border-bottom:3px double #183c66;padding-bottom:8mm}.clearance-head img{width:26mm;height:26mm;object-fit:contain}.clearance-title h1{font-size:20px;margin:2px 0}.clearance-title h2{font-size:14px;margin:2px 0}.clearance-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px 18px;margin-top:8mm}.clearance-field{border-bottom:1px solid #b8c4cf;padding:5px 0;font-size:12px}.clearance-field span{display:block;font-size:9px;text-transform:uppercase;color:#617286}.clearance-section{margin-top:7mm}.clearance-section h3{font-size:12px;text-transform:uppercase;color:#183c66;border-bottom:1px solid #183c66;padding-bottom:3px}.clearance-photo{width:31mm;height:38mm;object-fit:cover;border:1px solid #7c8b99;float:right;margin:7mm 0 4mm 8mm}.clearance-signature{height:13mm;max-width:42mm;object-fit:contain}.clearance-approval{display:grid;grid-template-columns:1fr 1fr;gap:18mm;margin-top:16mm}.clearance-line{border-top:1px solid #172334;text-align:center;padding-top:3px;font-size:10px}.clearance-ref{font-family:monospace;font-weight:700}.clearance-watermark{border:1px solid #efc96c;background:#fff9e8;padding:6px 10px;text-align:center;font-size:11px;margin-top:6mm}
@media(max-width:700px){.fresher-brand{grid-template-columns:58px 1fr 58px;gap:8px}.fresher-brand img{width:58px;height:58px}.fresher-steps{grid-template-columns:repeat(3,1fr);row-gap:12px}.fresher-review{grid-template-columns:1fr}.fresher-actions,.fresher-actions>div{align-items:stretch;flex-direction:column}.fresher-actions .ms-auto{margin-left:0!important;width:100%}.clearance-grid{grid-template-columns:1fr}}
@media print{.clearance-sheet{box-shadow:none;margin:0;max-width:none;padding:8mm}.clearance-actions,.site-footer,.topbar{display:none!important}body{background:#fff!important}.clearance-sheet{page-break-inside:avoid}}
.fresher-steps{display:flex;justify-content:center;align-items:center;gap:9px;margin:0 0 28px}.fresher-steps li{display:block}.fresher-steps li span{margin:0;width:34px;height:34px;background:#e8eef5;color:#52677e}.fresher-steps li.active span{background:#174a7e;color:#fff}.fresher-steps li:not(.active){color:inherit;font-weight:400}
.fresher-panel .form-label{font-size:1rem;font-weight:650;color:#203a55;margin-bottom:.48rem}.fresher-panel .form-control,.fresher-panel .form-select{min-height:48px;font-size:1rem;border-color:#c7d4e2;border-radius:11px}.fresher-panel textarea.form-control{min-height:78px}.fresher-panel .form-control:focus,.fresher-panel .form-select:focus{border-color:#2477b3;box-shadow:0 0 0 .22rem rgba(36,119,179,.14)}
.choice-grid label{position:relative}.choice-grid input[type="checkbox"]{position:absolute;left:14px;top:50%;width:18px;height:18px;margin:0;opacity:1;transform:translateY(-50%);accent-color:#174a7e;z-index:1}.choice-grid input[type="checkbox"]+span{padding-left:43px}.choice-grid input[type="checkbox"]:focus-visible+span{outline:3px solid rgba(36,119,179,.22);outline-offset:2px}
.entry-session{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 13px;border:1px solid #cfe1f1;border-radius:10px;background:#eff7fd;color:#31516e}.entry-session span{font-size:.88rem}.entry-session strong{font-size:1rem;color:#173e6e}
.fresher-form-footer{display:flex;align-items:flex-start;justify-content:center;gap:10px;margin-top:28px;padding:16px 18px;border-top:1px solid #dce6f2;color:#52677e;text-align:center}.fresher-form-footer i{color:#174a7e;font-size:1.15rem}.fresher-form-footer p{margin:0;max-width:760px;font-size:.92rem;line-height:1.55}
.clearance-form-footer{margin-top:10mm;padding-top:4mm;border-top:1px solid #183c66;text-align:center;color:#40556b;font-size:10px}
@media(max-width:575.98px){.fresher-shell{width:100%;margin:0;border-radius:0;padding:16px;box-shadow:none}.fresher-brand{padding:18px 10px;border-radius:14px}.fresher-heading>div{font-size:.82rem}.fresher-heading h3{font-size:.78rem}.fresher-heading h2{font-size:.92rem}.fresher-heading h4{font-size:.75rem}.fresher-steps{gap:7px;margin-bottom:22px}.fresher-steps li span{width:32px;height:32px}.fresher-panel h2{font-size:1.22rem}.fresher-actions{gap:12px}.fresher-actions>button,.fresher-actions>div,.fresher-actions>div .btn{width:100%}}
