/* Parent/lecturer presentation only. Native scrolling; no keyboard scroll locking. */
.portal-touch{--touch-paper:#eef1f4;--touch-navy:#071523;--touch-gold:#c8941a;background:var(--touch-paper);color:#142c47;overflow-x:clip}.portal-touch *{box-sizing:border-box}.portal-touch :where(main,section,article,form,header,nav,div){min-width:0}.portal-touch :where(h1,h2,h3,p,a,small,strong){overflow-wrap:anywhere}.portal-touch :where(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px!important;max-width:100%;border:1px solid #d0d8e0;border-radius:12px;background:#edf1f5;box-shadow:inset 3px 3px 7px #bcc8d444,inset -3px -3px 7px #fff;color:#122b47;min-height:44px}.portal-touch textarea{resize:vertical}.portal-touch :where(button,.button,.parent-switch>button,.lecturer-row-action){min-height:44px;border-radius:12px;box-shadow:inset 0 1px 1px #ffffff80,0 4px 8px #1731481a}.portal-touch :where(a,button,summary):focus-visible{outline:3px solid #c8941a;outline-offset:3px}.portal-touch .portal-icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.portal-touch .admin-icon-sprite{position:absolute;width:0;height:0;overflow:hidden}.portal-menu-toggle{display:none}.portal-touch :where(.parent-card,.lecturer-panel,.parent-kpis article,.lecturer-metrics article,.admin-card,.table-card,.form-card){background:linear-gradient(145deg,#fff,#eef1f5);border:1px solid #fff;border-radius:18px;box-shadow:7px 7px 18px #a4b2c52a,-5px -5px 14px #fff; color:#142c47}.portal-touch :where(.parent-card h2,.lecturer-panel h2){color:#0d2947}.portal-touch :where(.parent-sidebar,.lecturer-sidebar){background:linear-gradient(160deg,#142f48,#071523);overflow-y:auto;overscroll-behavior:contain}.portal-touch :where(.parent-sidebar,.lecturer-sidebar) nav a{display:flex;align-items:center;gap:12px;min-height:44px;border-radius:12px}.portal-touch :where(.parent-sidebar,.lecturer-sidebar) nav a.active{color:#071523;background:linear-gradient(#f6daa0,#d6ac55);box-shadow:inset 0 1px 1px #fff8,0 3px 7px #0002}.portal-touch :where(.parent-brand,.lecturer-brand) img{width:40px;height:46px;object-fit:contain}.portal-touch :where(.parent-hero,.lecturer-welcome){border-radius:20px;background:linear-gradient(115deg,#102f4b,#071523);box-shadow:0 8px 20px #102b4620;color:#fff}.portal-touch .lecturer-welcome h1 span{color:#efc76d}.portal-touch .parent-hero-mark,.portal-touch .lecturer-ribbon{display:none}.portal-touch .lecturer-metrics article{color:#17324d!important}.portal-touch .lecturer-metrics article small,.portal-touch .lecturer-metrics article strong{color:#17324d!important}.portal-touch .lecturer-metrics article>.portal-icon{color:#a77922}.portal-touch .auth-shell{background:#eef1f4}.portal-touch .auth-panel{background:linear-gradient(140deg,#f5f7f9,#e9edf2)}.portal-touch .auth-card{background:linear-gradient(145deg,#fff,#f0f3f6);border:1px solid #fff;border-radius:24px;padding:32px;box-shadow:10px 10px 28px #a9b7c638,-7px -7px 22px #fff}.portal-touch .auth-story{background:linear-gradient(155deg,#153751,#071523)}.portal-touch .auth-story .brand-logo{width:48px;height:56px;object-fit:contain}.portal-touch .password-toggle{box-shadow:none}.portal-touch .button-gold{background:linear-gradient(#f4d486,#d0a13b);color:#071523;border:1px solid #c69426}.portal-touch .table-wrap{max-width:100%;overflow-x:auto}.portal-touch img,.portal-touch video{max-width:100%}
@media(max-width:900px){.portal-touch .lecturer-shell,.portal-touch .parent-shell{display:block;min-height:100svh}.portal-touch .lecturer-sidebar,.portal-touch .parent-sidebar{position:relative;top:auto;bottom:auto;width:100%;height:auto;min-height:0;padding:14px 18px;overflow:visible}.portal-touch .lecturer-brand,.portal-touch .parent-brand{margin:0;padding-right:80px}.portal-touch .lecturer-brand strong,.portal-touch .parent-brand strong{font-size:21px}.portal-touch .portal-menu-toggle{display:block;position:absolute;right:18px;top:16px;color:#fff;background:linear-gradient(#2a4861,#142c42);border:1px solid #ffffff30;padding:8px 15px;min-height:42px;font-size:14px}.portal-touch .lecturer-sidebar nav,.portal-touch .parent-sidebar nav{display:none;overflow:visible;margin-top:16px;max-height:none;white-space:normal}.portal-touch .lecturer-sidebar.is-menu-open nav,.portal-touch .parent-sidebar.is-menu-open nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.portal-touch .lecturer-sidebar nav a,.portal-touch .parent-sidebar nav a{white-space:normal;font-size:12px;padding:10px}.portal-touch .lecturer-quote,.portal-touch .parent-motto{display:none}.portal-touch .parent-topbar,.portal-touch .lecturer-topbar{position:static;height:auto;min-height:64px;flex-wrap:wrap;padding:14px 18px;gap:14px}.portal-touch .lecturer-top-actions{flex-wrap:wrap;max-width:100%;gap:10px}.portal-touch .lecturer-period-form{flex-wrap:wrap;max-width:100%;gap:10px}.portal-touch .lecturer-period-form label{flex:1;min-width:130px}.portal-touch .lecturer-period-form select{width:100%}.portal-touch .lecturer-title strong{font-size:16px}.portal-touch .lecturer-content,.portal-touch .parent-content{padding:18px 14px;max-width:100%}.portal-touch .lecturer-dashboard-grid,.portal-touch .parent-grid{display:grid;grid-template-columns:1fr;gap:16px}.portal-touch .lecturer-dashboard-grid>*,.portal-touch .parent-grid>*{grid-column:1/-1;grid-row:auto}.portal-touch .lecturer-metrics,.portal-touch .parent-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.portal-touch .lecturer-metrics article{padding:16px;gap:10px;min-height:100px}.portal-touch .lecturer-metrics strong{font-size:24px}.portal-touch .lecturer-welcome,.portal-touch .parent-hero{padding:22px 18px;gap:16px;flex-wrap:wrap}.portal-touch .lecturer-welcome h1,.portal-touch .parent-hero h1{font-size:25px;line-height:1.25}.portal-touch .parent-switch{display:grid;grid-template-columns:1fr;gap:12px}.portal-touch .parent-switch label{width:100%;max-width:100%}.portal-touch .parent-switch select{width:100%;max-width:100%}.portal-touch .lecturer-panel{padding:18px}.portal-touch .lecturer-panel>header{flex-wrap:wrap;gap:10px}.portal-touch .parent-child-grid{grid-template-columns:1fr}.portal-touch :where(.attendance-filter,.attendance-session-form,.filter-grid,.form-grid){grid-template-columns:1fr!important}.portal-touch :where(.span-two,.span-three){grid-column:1/-1!important}.portal-touch .auth-shell{display:block;min-height:100svh}.portal-touch .auth-story{padding:26px 22px;min-height:0}.portal-touch .auth-story-copy{margin:24px 0 0}.portal-touch .auth-story h1{font-size:32px;line-height:1.2}.portal-touch .auth-story p{font-size:15px;line-height:1.6}.portal-touch .auth-values{margin-top:20px;gap:14px;font-size:12px;flex-wrap:wrap}.portal-touch .auth-panel{padding:22px 16px}.portal-touch .auth-card{width:100%;max-width:540px;margin:20px auto;padding:24px 20px}.portal-touch .auth-card h2{font-size:28px}.portal-touch .auth-toolbar{gap:12px;flex-wrap:wrap}.portal-touch .auth-footer{flex-wrap:wrap;gap:10px}.portal-touch .form-between{flex-wrap:wrap;gap:12px}.portal-touch .form-stack{gap:18px}}
@media(max-width:450px){.portal-touch .lecturer-profile>div{display:none}.portal-touch .lecturer-metrics article{flex-wrap:wrap}.portal-touch .lecturer-metrics small{font-size:10px}.portal-touch .lecturer-welcome-actions{width:100%;justify-content:space-between}.portal-touch .parent-top-name{display:none}}
@media(prefers-reduced-motion:reduce){.portal-touch *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media(max-width:700px){.portal-touch .portal-record-table{width:100%;min-width:0!important;border-collapse:separate;border-spacing:0 12px}.portal-touch .portal-record-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.portal-touch .portal-record-table tbody,.portal-touch .portal-record-table tr{display:block;width:100%}.portal-touch .portal-record-table tr{border:1px solid #d9e1e9;border-radius:12px;margin-bottom:12px;padding:10px;background:#f8fafc}.portal-touch .portal-record-table td{display:flex;width:100%;min-width:0;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:8px;border:0;padding:10px!important;text-align:left!important;overflow-wrap:anywhere;white-space:normal!important}.portal-touch .portal-record-table td[data-mobile-label]:before{content:attr(data-mobile-label);color:#62748b;font-size:12px;font-weight:600;flex:0 0 100%}.portal-touch .portal-record-table td>*{max-width:100%}.portal-touch .portal-record-table td[colspan]{display:block}}

/* Grouped lecturer navigation, with a footer that cannot overlap links. */
.portal-touch .lecturer-sidebar{display:flex;flex-direction:column;gap:20px;padding-bottom:22px}
.portal-touch .lecturer-sidebar nav{flex:1;min-height:0;overflow:visible;display:grid;gap:6px}
.portal-touch .lecturer-nav-group{border:0;padding:0;margin:0;color:#d8e4ee}
.portal-touch .lecturer-nav-group>summary{display:flex;align-items:center;gap:12px;padding:13px 12px;min-height:46px;font-size:12px;cursor:pointer;list-style:none;border-radius:12px}
.portal-touch .lecturer-nav-group>summary::-webkit-details-marker{display:none}
.portal-touch .lecturer-nav-group>summary:hover{background:#ffffff0c}
.portal-touch .lecturer-nav-group[open]>summary{background:#ffffff0c;color:#fff}
.portal-touch .lecturer-nav-group>div{display:grid;gap:3px;padding:5px 0 8px 10px}
.portal-touch .lecturer-nav-group>div>a{font-size:12px;padding:10px 12px}
.portal-touch .lecturer-nav-caret{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;margin-left:auto;flex-shrink:0}
.portal-touch .lecturer-nav-group[open] .lecturer-nav-caret{transform:rotate(180deg)}
.portal-touch .lecturer-quote{position:static;margin:16px 0 0;padding:16px 8px 0;border-top:1px solid #ffffff18;flex-shrink:0;font-size:11px;color:#b6c7d7;line-height:1.6}
@media(max-width:900px){.portal-touch .lecturer-sidebar nav{display:none}.portal-touch .lecturer-sidebar.is-menu-open nav{display:grid;grid-template-columns:1fr}.portal-touch .lecturer-sidebar{gap:0}.portal-touch .lecturer-quote{display:none}}

/* v1.28.1: compact navigation, never stretch grid rows to the sidebar height. */
.portal-touch .lecturer-sidebar{gap:16px;padding:20px 16px;overflow-y:auto}
.portal-touch .lecturer-sidebar nav{flex:0 0 auto;align-content:start;grid-auto-rows:max-content;gap:8px;margin:0;padding:0}
.portal-touch .lecturer-brand{padding:0 8px 12px}
.portal-touch .lecturer-sidebar nav>a{min-height:42px;padding:8px 12px}
.portal-touch .lecturer-nav-group{border:1px solid #ffffff12;border-radius:12px;background:#ffffff05;overflow:hidden}
.portal-touch .lecturer-nav-group>summary{padding:10px 11px;min-height:40px;font-size:11px;line-height:1.4;gap:9px}
.portal-touch .lecturer-nav-group>summary>.portal-icon{width:18px;height:18px}
.portal-touch .lecturer-nav-group>div{padding:0 5px 6px;gap:3px}
.portal-touch .lecturer-nav-group>div>a{min-height:40px;padding:8px;font-size:12px;line-height:1.4}
.portal-touch .lecturer-nav-caret{width:15px;height:15px}
.portal-touch .lecturer-quote{margin-top:12px;padding-top:16px}
.lecturer-mobile-nav{display:none}.lecturer-service-sheet:not([open]){display:none}
.lecturer-service-sheet{color:#17324d;background:linear-gradient(145deg,#f9fbfd,#e8eef4);border:1px solid #fff;border-radius:22px 22px 0 0;padding:22px;box-shadow:0 -8px 28px #07152322;width:min(100%,540px);max-width:100%;max-height:80svh;margin:auto auto 0;overflow-y:auto;overscroll-behavior:contain}
.lecturer-service-sheet::backdrop{background:#07152366}
.lecturer-service-sheet>header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.lecturer-service-sheet>header small{font-size:10px;letter-spacing:1px;color:#6a7e92}.lecturer-service-sheet h2{font-size:22px;margin:8px 0;color:#17324d}.lecturer-service-sheet>header button{border:1px solid #d4dfe8;background:#f6f9fc;color:#183b55;width:44px;height:44px;font-size:25px}
.portal-touch .lecturer-service-sheet nav{display:grid;align-content:start;gap:8px}.portal-touch .lecturer-service-sheet .lecturer-nav-group{color:#27445f;border-color:#d5dfe9;background:#ffffff80}.portal-touch .lecturer-service-sheet nav a{display:flex;gap:12px;align-items:center;padding:10px;min-height:44px;font-size:13px;color:#27445f;text-decoration:none;border-radius:10px}.portal-touch .lecturer-service-sheet nav a.active{background:#f1dfb6;color:#17324d}.portal-touch .lecturer-service-sheet nav a.disabled{opacity:.45;pointer-events:none}.lecturer-mobile-signout{margin-top:18px;width:100%;padding:12px;background:linear-gradient(#254760,#112c42);border:1px solid #2c4a63;color:#fff}
@media(max-width:940px){
 html.lecturer-app-mobile,html.lecturer-app-mobile body{height:100%;overflow:hidden}
 .portal-touch .lecturer-shell{display:flex;flex-direction:column;position:fixed;top:0;left:0;right:0;bottom:auto;height:var(--lecturer-app-height,100svh);min-height:0;overflow:hidden}
 .portal-touch .lecturer-sidebar{display:none}
 .portal-touch .lecturer-main{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;padding-bottom:calc(68px + env(safe-area-inset-bottom,0px))}
 .portal-touch .lecturer-topbar{flex:0 0 auto;padding:12px 16px;gap:10px;min-height:62px;border-bottom:1px solid #dce4ec}
 .portal-touch .lecturer-title{display:block}.portal-touch .lecturer-title strong{font-size:14px}.portal-touch .lecturer-title small{font-size:11px}
 .portal-touch .lecturer-content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;padding:18px 14px calc(20px + var(--lecturer-keyboard-inset,0px));scroll-padding-top:20px;scroll-padding-bottom:calc(24px + var(--lecturer-keyboard-inset,0px))}
 .portal-touch .lecturer-mobile-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:absolute;bottom:0;left:0;right:0;height:calc(68px + env(safe-area-inset-bottom,0px));padding:8px 8px calc(8px + env(safe-area-inset-bottom,0px));background:linear-gradient(#fafcfd,#e9eff5);border-top:1px solid #fff;box-shadow:0 -3px 12px #15375014;z-index:50}
 .portal-touch .lecturer-mobile-nav>a,.portal-touch .lecturer-mobile-nav>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:0;border-radius:12px;background:transparent;color:#637b92;text-decoration:none;box-shadow:none;font-size:10px;min-height:44px;padding:4px 2px}
 .portal-touch .lecturer-mobile-nav>a[aria-current]{color:#193c58;background:#e0e8f0;box-shadow:inset 2px 2px 4px #a4b6c433,inset -2px -2px 4px #fff}
 .portal-touch .lecturer-mobile-nav .portal-icon{width:21px;height:21px}.portal-touch .lecturer-mobile-nav span{white-space:nowrap}
}
@media(min-width:941px){.lecturer-service-sheet{display:none!important}}
