:root{--ink:#062b53;--blue:#087ed0;--deep:#063c72;--gold:#e5ae3c;--line:#dce7f1;--mist:#f4f8fc}*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:"DM Sans",Arial,sans-serif;background:var(--mist)}a{color:inherit}.student-header{background:linear-gradient(118deg,#052d58,#087ece);color:#fff}.student-nav{width:min(1140px,calc(100% - 32px));margin:auto;min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:18px}.student-brand{display:flex;align-items:center;gap:11px;text-decoration:none;font-weight:800;letter-spacing:.03em}.student-brand img{width:42px;height:42px;object-fit:contain}.student-brand small{display:block;color:#b9ddf8;letter-spacing:.09em;font-size:9px}.student-nav nav{display:flex;gap:18px;align-items:center}.student-nav nav a{text-decoration:none;font-size:14px;color:#e9f5ff}.student-nav nav a:hover,.student-nav nav a.active{color:#fff}.student-nav .button{color:#073763;background:#fff;padding:10px 15px;border-radius:999px;font-weight:700}.student-main{width:min(1140px,calc(100% - 32px));margin:0 auto;padding:46px 0 72px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.16em;color:#087ed0;margin:0 0 8px}.student-main h1{font-family:Manrope,"DM Sans",sans-serif;font-size:clamp(30px,4vw,48px);letter-spacing:-.05em;margin:0 0 12px}.lead{max-width:650px;color:#54708d;line-height:1.65}.notice{border-radius:14px;padding:14px 16px;margin:0 0 22px;border:1px solid #b9e1c8;background:#effaf3;color:#17633a}.notice.error{border-color:#f0bbbb;background:#fff3f3;color:#9c2424}.auth-shell{min-height:calc(100vh - 78px);display:grid;place-items:center;padding:40px 16px;background:radial-gradient(circle at top right,#d7ecfb,transparent 37%),var(--mist)}.auth-card{width:min(480px,100%);background:#fff;border-radius:25px;padding:35px;box-shadow:0 24px 70px rgba(13,56,93,.13);border:1px solid #e1edf5}.auth-card h1{margin:0 0 8px;font-family:Manrope,sans-serif}.auth-card p{color:#56708a;line-height:1.55}.form-stack{display:grid;gap:14px;margin-top:24px}.form-stack label{display:grid;gap:7px;font-size:13px;font-weight:700}.form-stack input,.form-stack textarea,.form-stack select{font:inherit;border:1px solid #ccddea;padding:13px;border-radius:11px;color:var(--ink);width:100%;background:#fff}.form-stack input:focus,.form-stack textarea:focus,.form-stack select:focus{outline:3px solid #bfe5ff;border-color:#168cd8}.button{display:inline-flex;align-items:center;justify-content:center;border:0;background:linear-gradient(120deg,#087fd1,#075493);color:white;text-decoration:none;cursor:pointer;border-radius:11px;padding:13px 17px;font:700 14px "DM Sans",sans-serif}.button:hover{filter:brightness(1.06)}.button.secondary{background:#eaf4fb;color:#075493}.button.gold{background:linear-gradient(120deg,#efbe51,#bc7a0d);color:#132b45}.divider{display:flex;align-items:center;gap:10px;color:#7b92a7;font-size:12px;margin:20px 0}.divider:before,.divider:after{content:"";height:1px;background:#dce7f1;flex:1}.google-button{border:1px solid #cbdbe8;background:#fff;color:#183d61}.google-button span{color:#4285f4;font-size:19px;margin-right:8px}.auth-links{display:flex;justify-content:space-between;gap:14px;font-size:13px;margin-top:18px;color:#0b70b6}.turnstile-slot:empty{display:none}.dashboard-grid{display:grid;grid-template-columns:1.35fr .65fr;gap:22px;margin-top:30px}.panel{background:#fff;border:1px solid #e0ebf3;border-radius:20px;padding:25px;box-shadow:0 9px 28px rgba(5,47,88,.045)}.panel h2{font-family:Manrope,sans-serif;margin:0 0 16px;font-size:21px;letter-spacing:-.04em}.course-list{display:grid;gap:13px}.course-row{border:1px solid #dbe8f1;border-radius:15px;padding:16px;display:flex;gap:14px;align-items:center;justify-content:space-between}.course-row h3{margin:0 0 4px;font-size:16px}.course-row p{margin:0;color:#627d97;font-size:13px}.course-row .button{white-space:nowrap;padding:10px 13px}.course-badge{font-size:11px;font-weight:800;letter-spacing:.09em;color:#087ed0}.empty{padding:27px 10px;color:#617b95;line-height:1.6}.stat{padding:18px 0;border-bottom:1px solid #e5eef5}.stat:last-child{border:0}.stat strong{display:block;font-family:Manrope,sans-serif;font-size:27px}.stat span{font-size:13px;color:#668099}.lesson-grid{display:grid;grid-template-columns:300px 1fr;gap:22px;margin-top:28px}.lesson-list{display:grid;gap:8px}.lesson-list a{display:block;text-decoration:none;padding:14px;border-radius:12px;background:#f5f9fc;font-weight:700;font-size:14px}.lesson-list a.active{background:#d9efff;color:#075493}.video-shell{position:relative;padding-top:56.25%;background:#062b53;border-radius:17px;overflow:hidden}.video-shell iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.lesson-copy h2{margin:22px 0 6px;font-family:Manrope,sans-serif}.lesson-copy p{color:#5b7590;line-height:1.6}.catalogue{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px;margin-top:25px}.catalogue .course-row{display:block}.catalogue .price{font-size:20px;font-weight:800;margin:17px 0}.footer-note{color:#637f98;font-size:13px;margin-top:32px}.student-footer{text-align:center;color:#7690a7;padding:22px}.payment-box{display:flex;align-items:center;gap:13px;padding:16px;background:#f3f9fe;border:1px solid #dcecf8;border-radius:14px;margin-top:22px}.payment-box p{margin:0;color:#5d7791;font-size:13px;line-height:1.5}@media(max-width:720px){.student-nav{min-height:69px}.student-nav nav{gap:11px}.student-nav nav a:not(.button){display:none}.student-main{padding-top:31px}.auth-card{padding:28px 22px}.dashboard-grid,.lesson-grid{grid-template-columns:1fr}.course-row{align-items:flex-start;flex-direction:column}.course-row .button{width:100%}.student-nav .button{padding:9px 12px}.lesson-grid .panel:first-child{order:2}}
/* Official multi-colour Google mark for the student portal sign-in action. */
body .google-button span{display:inline-block;width:18px;height:18px;margin-right:9px;font-size:0;line-height:1;flex:0 0 18px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234285F4' d='M21.35 12.27c0-.79-.07-1.55-.21-2.27H12v4.3h5.22a4.46 4.46 0 0 1-1.93 2.93v2.79h3.6c2.11-1.94 3.33-4.8 3.33-8.18Z'/%3E%3Cpath fill='%2334A853' d='M12 21.75c2.62 0 4.81-.87 6.41-2.36l-3.6-2.79c-1 .67-2.27 1.07-3.81 1.07-2.93 0-5.42-1.98-6.31-4.64H.97v2.88A9.68 9.68 0 0 0 12 21.75Z'/%3E%3Cpath fill='%23FBBC05' d='M4.69 13.03a5.8 5.8 0 0 1 0-3.71V6.44H.97a9.75 9.75 0 0 0 0 9.47l3.72-2.88Z'/%3E%3Cpath fill='%23EA4335' d='M12 5.33c1.68 0 3.19.58 4.38 1.72l3.29-3.29C16.81 1.09 14.62 0 12 0A9.68 9.68 0 0 0 .97 6.44l3.72 2.88C5.58 7.31 8.07 5.33 12 5.33Z'/%3E%3C/svg%3E")}

/* Academy shell: guest pages stay connected to the public website and signed-in pages gain a real portal navigation rail. */
.public-header{background:linear-gradient(110deg,#052a51 0%,#063c72 62%,#087dcc 100%);box-shadow:0 8px 26px rgba(5,41,76,.18)}
.public-nav{min-height:88px}.public-nav .student-brand{min-width:250px}.public-nav .student-brand img{width:49px;height:49px}.public-nav .student-brand small{font-size:9px;color:#cde8fb}.site-links{display:flex;align-items:center;justify-content:center;gap:clamp(14px,2vw,28px);flex:1}.site-links a{color:#e8f5ff;text-decoration:none;font-size:14px;font-weight:700}.site-links a:hover{color:#fff}.student-return{color:#06345f!important;background:#fff;border-radius:999px;padding:10px 15px;font-size:13px;font-weight:800;text-decoration:none;white-space:nowrap}.auth-shell{min-height:calc(100svh - 88px);position:relative;isolation:isolate;display:grid;place-items:center;padding:clamp(36px,6vw,78px) 24px;background:linear-gradient(90deg,rgba(238,248,255,.96) 0%,rgba(244,250,254,.9) 46%,rgba(244,250,254,.36) 100%),url('/uploads/hero-training-1.jpg') center/cover}.auth-card{position:relative;z-index:1;margin:0;width:min(500px,100%);padding:clamp(30px,4vw,43px);box-shadow:0 28px 70px rgba(6,43,83,.17);border:1px solid rgba(200,222,239,.9)}.auth-card>.student-brand{margin-bottom:28px}.auth-card h1{font-size:clamp(32px,4vw,43px);letter-spacing:-.055em}.auth-card .google-button{width:100%;min-height:51px}.auth-links{align-items:center}.auth-links a:last-child{margin-left:auto}.student-header:not(.public-header){background:linear-gradient(165deg,#05284e,#063c72 58%,#087fd0)}
@media(min-width:901px){.student-header:not(.public-header){position:fixed;z-index:10;inset:0 auto 0 0;width:274px;box-shadow:10px 0 32px rgba(3,36,70,.12)}.student-header:not(.public-header) .student-nav{width:100%;min-height:100%;padding:32px 20px;align-items:stretch;justify-content:flex-start;flex-direction:column;gap:0}.student-header:not(.public-header) .student-brand{padding:0 10px 28px;border-bottom:1px solid rgba(210,238,255,.19)}.student-header:not(.public-header) .student-brand img{width:50px;height:50px}.student-header:not(.public-header) nav{display:flex;width:100%;margin:27px 0 0;gap:6px;flex-direction:column;align-items:stretch}.student-header:not(.public-header) nav a{display:flex!important;align-items:center;min-height:48px;padding:12px 14px;border-radius:12px;color:#d6ecfc;font-size:15px;font-weight:700;transition:background .2s ease,color .2s ease,transform .2s ease}.student-header:not(.public-header) nav a:before{content:'›';margin-right:11px;color:#70d6ff;font-size:22px;font-weight:400;line-height:1}.student-header:not(.public-header) nav a:hover,.student-header:not(.public-header) nav a.active{background:rgba(255,255,255,.14);color:#fff;transform:translateX(3px)}.student-header:not(.public-header) nav .button{margin-top:18px;padding:12px 14px;color:#063c72;background:#fff;border-radius:12px}.student-header:not(.public-header) nav .button:before{color:#087fd0}.student-main{width:min(1180px,calc(100% - 48px));margin-left:322px;padding:54px 0 72px}.student-footer{margin-left:274px;padding:24px 32px;background:#fff;border-top:1px solid #e2edf5}.dashboard-grid{grid-template-columns:minmax(0,1.45fr) minmax(280px,.55fr);gap:26px}.panel{border-radius:22px;box-shadow:0 16px 42px rgba(5,47,88,.06)}.course-row{padding:19px}.course-row h3{font-size:17px}.lesson-grid{grid-template-columns:310px minmax(0,1fr)}}
@media(max-width:900px){.public-nav{min-height:auto;padding:16px 0;flex-wrap:wrap}.public-nav .student-brand{min-width:auto}.site-links{order:3;flex-basis:100%;justify-content:flex-start;overflow:auto;padding-top:14px;gap:19px}.site-links a{white-space:nowrap;font-size:13px}.student-return{margin-left:auto}.student-header:not(.public-header) .student-nav{display:grid;grid-template-columns:1fr auto;width:min(100% - 28px,720px);padding:16px 0;gap:14px}.student-header:not(.public-header) .student-brand{grid-column:1}.student-header:not(.public-header) nav{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.student-header:not(.public-header) nav a,.student-header:not(.public-header) nav a:not(.button){display:flex!important;align-items:center;justify-content:flex-start;min-height:42px;padding:9px 11px;border-radius:9px;background:rgba(255,255,255,.09);font-size:13px}.student-header:not(.public-header) nav .button{margin:0;background:#fff;color:#063c72}.student-main{width:min(100% - 30px,720px);padding:32px 0 55px}.student-footer{padding:21px 20px}.auth-shell{min-height:calc(100svh - 133px);background:linear-gradient(180deg,rgba(238,248,255,.96),rgba(245,251,255,.9)),url('/uploads/hero-training-1.jpg') center/cover}.auth-card>.student-brand{margin-bottom:23px}.auth-links{flex-wrap:wrap}.auth-links a:last-child{margin-left:0}}
@media(max-width:520px){.public-nav .student-brand img{width:42px;height:42px}.public-nav .student-brand{font-size:14px;gap:8px}.public-nav .student-brand small{font-size:7px}.student-return{padding:9px 11px;font-size:12px}.site-links{gap:16px}.auth-shell{padding:34px 15px}.auth-card{padding:28px 21px;border-radius:20px}.auth-card h1{font-size:31px}.student-header:not(.public-header) nav{grid-template-columns:1fr 1fr}.student-header:not(.public-header) nav a{font-size:12px}.student-main h1{font-size:34px}.course-row{width:100%}}
@media(max-width:520px){.public-nav .site-links{width:100%;flex:0 0 100%;justify-content:space-between;gap:0;overflow:visible}.public-nav .site-links a{font-size:11px;letter-spacing:-.01em}}

/* Keep both authentication flows comfortably inside a normal laptop viewport. */
@media(min-width:701px){.auth-shell{min-height:calc(100svh - 88px);padding:26px 24px}.auth-card{width:min(480px,100%);padding:26px 30px;border-radius:20px}.auth-card>.student-brand{margin-bottom:16px}.auth-card h1{font-size:35px;line-height:1.05}.auth-card>p{margin:7px 0 0;font-size:14px}.auth-card .form-stack{gap:9px;margin-top:16px}.auth-card .form-stack label{gap:4px;font-size:12px}.auth-card .form-stack input{padding:10px 12px}.auth-card .turnstile-slot{min-height:64px}.auth-card .divider{margin:13px 0}.auth-card .google-button{min-height:44px;padding:10px 15px}.auth-card:has(input[name="confirm_password"]) .form-stack{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px}.auth-card:has(input[name="confirm_password"]) .form-stack .turnstile-slot,.auth-card:has(input[name="confirm_password"]) .form-stack button{grid-column:1/-1}}

/* Account-security page. */
.account-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);gap:22px;margin-top:28px;max-width:900px}.account-card{min-height:260px}.account-copy{color:#58728c;line-height:1.65}.compact-form{max-width:420px;margin-top:22px}.compact-form .button{margin-top:4px}@media(max-width:700px){.account-layout{grid-template-columns:1fr}.account-card{min-height:0}}
/* Compact phone authentication: the card now fits and centres inside the available viewport. */
@media(max-width:700px){
  .auth-shell{min-height:calc(100svh - 126px);padding:16px 15px;align-items:center}
  .auth-card{padding:20px 20px;border-radius:18px}
  .auth-card>.student-brand{display:none}
  .auth-card h1{font-size:29px;line-height:1.04}
  .auth-card>p{margin:6px 0 0;font-size:13px;line-height:1.45}
  .auth-card .form-stack{gap:8px;margin-top:14px}
  .auth-card .form-stack label{gap:4px;font-size:12px}
  .auth-card .form-stack input{padding:10px 11px}
  .auth-card .turnstile-slot{min-height:64px}
  .auth-card .button{min-height:42px;padding:10px 14px}
  .auth-card .divider{margin:12px 0}
  .auth-card .google-button{min-height:42px}
  .auth-card .auth-links{margin-top:13px;font-size:12px}
  .auth-card:has(input[name="confirm_password"]) .form-stack{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:10px}
  .auth-card:has(input[name="confirm_password"]) .form-stack .turnstile-slot,.auth-card:has(input[name="confirm_password"]) .form-stack button{grid-column:1/-1}
}

/* Student portal navigation: compact mobile shortcuts and dedicated account actions. */
.portal-account svg{width:19px;height:19px;display:none}
@media(min-width:901px){
  .student-header:not(.public-header) .portal-actions{display:grid;width:100%;margin-top:auto;gap:8px}
  .student-header:not(.public-header) .portal-account,.student-header:not(.public-header) .portal-signout{display:flex;align-items:center;min-height:46px;padding:12px 14px;border-radius:12px;text-decoration:none;font-size:15px;font-weight:700}
  .student-header:not(.public-header) .portal-account{color:#d6ecfc;background:rgba(255,255,255,.09)}
  .student-header:not(.public-header) .portal-account:hover,.student-header:not(.public-header) .portal-account.active{background:rgba(255,255,255,.15);color:#fff}
  .student-header:not(.public-header) .portal-signout{justify-content:center;color:#063c72;background:#fff}
}
@media(max-width:900px){
  .student-header:not(.public-header) .portal-links{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .student-header:not(.public-header) .portal-links a{justify-content:center;text-align:center;min-height:44px;padding:7px 5px;font-size:10px;line-height:1.15}
  .student-header:not(.public-header) .portal-actions{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:flex-end;gap:8px}
  .student-header:not(.public-header) .portal-account,.student-header:not(.public-header) .portal-signout{display:inline-flex;align-items:center;justify-content:center;min-height:36px;text-decoration:none;font-size:11px;font-weight:800}
  .student-header:not(.public-header) .portal-account{width:36px;color:#fff;border:1px solid rgba(255,255,255,.3);border-radius:10px;background:rgba(255,255,255,.1)}
  .student-header:not(.public-header) .portal-account span{display:none}
  .student-header:not(.public-header) .portal-account svg{display:block}
  .student-header:not(.public-header) .portal-signout{padding:0 10px;border-radius:10px;color:#063c72;background:#fff}
}
@media(max-width:520px){
  .student-header:not(.public-header) .student-nav{width:calc(100% - 24px);padding:12px 0;gap:10px}
  .student-header:not(.public-header) .portal-links{gap:4px}
  .student-header:not(.public-header) .portal-links a{min-height:42px;padding:6px 3px;font-size:9px}
  .student-header:not(.public-header) .portal-actions{gap:6px}
  .student-header:not(.public-header) .portal-account{width:33px;min-height:33px;border-radius:9px}
  .student-header:not(.public-header) .portal-account svg{width:17px;height:17px}
  .student-header:not(.public-header) .portal-signout{min-height:33px;padding:0 8px;border-radius:9px;font-size:10px}
}

/* The academy and student portal share one signed-in navigation shell. */
@media(min-width:901px){
  .student-header:not(.public-header) .portal-site-nav{width:calc(100% - 20px);margin:19px 10px 0!important;padding:9px 0;border-top:1px solid rgba(210,238,255,.19);border-bottom:1px solid rgba(210,238,255,.19);gap:0}
  .student-header:not(.public-header) .portal-site-nav a{min-height:32px!important;padding:7px 10px!important;color:#a9d9f7!important;font-size:12px!important}
  .student-header:not(.public-header) .portal-site-nav a:before{display:none}
  .student-header:not(.public-header) .portal-site-nav a:hover{background:transparent;color:#fff!important;transform:none!important}
  .student-header:not(.public-header) .portal-links{margin-top:16px!important}
}
@media(max-width:900px){
  .student-header:not(.public-header) .portal-site-nav{grid-column:1/-1;display:flex!important;align-items:center;gap:14px;padding:0 2px;overflow:auto}
  .student-header:not(.public-header) .portal-site-nav a{display:block!important;min-height:27px!important;padding:4px 0!important;background:transparent!important;white-space:nowrap;color:#cde9fb;font-size:11px!important}
}

/* Desktop portal: the Academy remains a normal Dansales website header, not a side app. */
@media(min-width:901px){
  .student-header:not(.public-header){position:relative!important;inset:auto!important;width:100%!important;background:linear-gradient(110deg,#052a51 0%,#063c72 62%,#087dcc 100%);box-shadow:0 8px 26px rgba(5,41,76,.18)}
  .student-header:not(.public-header) .student-nav{width:min(1140px,calc(100% - 48px))!important;min-height:auto!important;padding:16px 0!important;display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"brand academy actions" "portal portal portal";align-items:center!important;justify-content:normal!important;gap:14px 28px!important}
  .student-header:not(.public-header) .student-brand{grid-area:brand;width:auto!important;padding:0!important;border:0!important}
  .student-header:not(.public-header) .student-brand img{width:48px;height:48px}
  .student-header:not(.public-header) .portal-site-nav{grid-area:academy;display:flex!important;width:auto!important;margin:0!important;padding:0!important;border:0!important;justify-content:center;flex-direction:row!important;gap:clamp(13px,2vw,27px)!important}
  .student-header:not(.public-header) .portal-site-nav a{min-height:auto!important;padding:4px 0!important;color:#e8f5ff!important;font-size:14px!important;white-space:nowrap}
  .student-header:not(.public-header) .portal-site-nav a:hover{color:#fff!important}
  .student-header:not(.public-header) .portal-actions{grid-area:actions;display:flex!important;width:auto!important;margin:0!important;align-items:center;gap:9px}
  .student-header:not(.public-header) .portal-account,.student-header:not(.public-header) .portal-signout{display:inline-flex!important;align-items:center;justify-content:center;min-height:39px;padding:0 13px;border-radius:10px;text-decoration:none;font-size:13px;font-weight:800}
  .student-header:not(.public-header) .portal-account{color:#fff;background:rgba(255,255,255,.12)}
  .student-header:not(.public-header) .portal-account svg{display:none}
  .student-header:not(.public-header) .portal-signout{color:#063c72;background:#fff}
  .student-header:not(.public-header) .portal-links{grid-area:portal;display:flex!important;width:100%!important;margin:0!important;padding-top:12px;border-top:1px solid rgba(210,238,255,.19);flex-direction:row!important;justify-content:center;gap:7px!important}
  .student-header:not(.public-header) .portal-links a{display:inline-flex!important;min-height:36px!important;padding:8px 13px!important;border-radius:9px;color:#dceffc;font-size:13px}
  .student-header:not(.public-header) .portal-links a:before{display:none}
  .student-header:not(.public-header) .portal-links a:hover,.student-header:not(.public-header) .portal-links a.active{background:rgba(255,255,255,.14);color:#fff;transform:none}
  .student-header:not(.public-header) .portal-site-menu{display:none}
  .student-main{width:min(1140px,calc(100% - 48px))!important;margin:0 auto!important;padding:54px 0 72px!important}
  .student-footer{margin-left:0!important;padding:24px 32px!important}
}

/* Mobile Academy navigation is kept behind the familiar menu icon. */
@media(max-width:900px){
  .student-header:not(.public-header) .portal-site-nav{display:none!important}
  .student-header:not(.public-header) .portal-site-menu{display:block;position:relative}
  .student-header:not(.public-header) .portal-site-menu summary{display:grid;place-content:center;gap:4px;width:36px;height:36px;list-style:none;border:1px solid rgba(255,255,255,.3);border-radius:10px;background:rgba(255,255,255,.1);cursor:pointer}
  .student-header:not(.public-header) .portal-site-menu summary::-webkit-details-marker{display:none}
  .student-header:not(.public-header) .portal-site-menu summary i{display:block;width:16px;height:2px;border-radius:99px;background:#fff}
  .student-header:not(.public-header) .portal-site-menu:not([open]) nav{display:none!important}
  .student-header:not(.public-header) .portal-site-menu nav{position:absolute;z-index:30;top:44px;right:0;display:grid!important;width:180px;padding:8px;border:1px solid rgba(177,220,246,.62);border-radius:13px;background:#fff;box-shadow:0 18px 38px rgba(3,35,67,.22)}
  .student-header:not(.public-header) .portal-site-menu nav a{display:block!important;padding:10px 11px!important;border-radius:8px;background:transparent!important;color:#063c72!important;text-decoration:none;font-size:13px!important;font-weight:800;white-space:nowrap}
  .student-header:not(.public-header) .portal-site-menu nav a:hover{background:#edf7ff!important}
}
@media(max-width:520px){
  .student-header:not(.public-header) .portal-site-menu summary{width:33px;height:33px;border-radius:9px}
  .student-header:not(.public-header) .portal-site-menu nav{top:41px;width:168px}
}

/* Match the Academy's mobile menu button and its full-width animated drawer. */
.portal-menu-toggle,.portal-mobile-drawer{display:none}.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}
@media(max-width:900px){
  .student-header:not(.public-header){position:relative}
  .student-header:not(.public-header) .portal-actions{display:none!important}
  .student-header:not(.public-header) .portal-site-menu{display:none!important}
  .portal-menu-toggle{position:absolute;z-index:40;top:16px;right:14px;display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid rgba(255,255,255,.42);border-radius:10px;background:rgba(3,28,57,.2);color:#fff;cursor:pointer}
  .portal-menu-icon,.portal-menu-icon:before,.portal-menu-icon:after{display:block;width:19px;height:2px;border-radius:3px;background:#fff;content:"";transition:transform .22s ease,opacity .22s ease}
  .portal-menu-icon{position:relative}.portal-menu-icon:before{position:absolute;top:-7px}.portal-menu-icon:after{position:absolute;top:7px}
  .portal-menu-toggle[aria-expanded="true"] .portal-menu-icon{background:transparent}.portal-menu-toggle[aria-expanded="true"] .portal-menu-icon:before{top:0;transform:rotate(45deg)}.portal-menu-toggle[aria-expanded="true"] .portal-menu-icon:after{top:0;transform:rotate(-45deg)}
  .portal-mobile-drawer{position:absolute;z-index:35;top:70px;left:0;right:0;display:flex!important;visibility:hidden;pointer-events:none;flex-direction:column;align-items:stretch;padding:10px 7%;border-bottom:1px solid var(--line);background:#fff;box-shadow:0 13px 22px rgba(15,55,89,.08);opacity:0;transform:translateY(-18px) scale(.98);transform-origin:top center;transition:visibility 0s linear .7s,opacity .7s cubic-bezier(.22,.8,.24,1),transform .7s cubic-bezier(.22,.8,.24,1)}
  .portal-mobile-drawer.open{visibility:visible;opacity:1;pointer-events:auto;transform:translateY(0) scale(1);transition:visibility 0s,opacity .7s cubic-bezier(.22,.8,.24,1),transform .7s cubic-bezier(.22,.8,.24,1)}
  .portal-mobile-drawer a{display:block;padding:12px 4px;color:#063c72;text-decoration:none;font-size:14px;font-weight:800}.portal-mobile-drawer .drawer-rule{height:1px;margin:4px 0;border:0;background:#dce7f1}.portal-mobile-drawer .drawer-signout{color:#b44936}
}
@media(max-width:520px){.portal-menu-toggle{top:12px;right:12px;width:33px;height:33px;border-radius:9px}.portal-mobile-drawer{top:62px}}
@media(prefers-reduced-motion:no-preference){.student-main.portal-page-slide-up>.eyebrow,.student-main.portal-page-slide-up>h1,.student-main.portal-page-slide-up>.lead,.student-main.portal-page-slide-up>.catalogue,.student-main.portal-page-slide-up>.dashboard-grid,.student-main.portal-page-slide-up>.lesson-grid,.student-main.portal-page-slide-up>.account-layout,.student-main.portal-page-slide-up>.panel,.student-main.portal-page-slide-up>.footer-note,.auth-shell.portal-page-slide-up .auth-card{animation:dansales-content-slide-up 700ms cubic-bezier(.18,.82,.24,1) both}}@keyframes dansales-content-slide-up{from{opacity:0;transform:translate3d(0,28px,0)}to{opacity:1;transform:translate3d(0,0,0)}}

/* Bring the signed-in course catalogue up to the public Academy card standard. */
.student-main:has(.catalogue)>.eyebrow,.student-main:has(.catalogue)>h1,.student-main:has(.catalogue)>.lead{text-align:center;margin-left:auto;margin-right:auto}.student-main:has(.catalogue)>.lead{max-width:610px}
.catalogue{grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.catalogue .course-row{position:relative;display:flex;min-height:282px;padding:27px;border:1px solid rgba(139,184,218,.55);border-top-color:rgba(255,255,255,.95);border-radius:19px;background:linear-gradient(145deg,#fff 0%,#fbfdff 58%,#eef8ff 100%);box-shadow:none;overflow:hidden;transition:transform .3s cubic-bezier(.2,.8,.2,1),border-color .3s ease}.catalogue .course-row:before{content:"";position:absolute;inset:0 0 auto;height:5px;background:linear-gradient(90deg,#0755aa,#00a9ec 62%,#f6c94c)}.catalogue .course-row>*{position:relative;z-index:1}.catalogue .course-badge{display:inline-flex;padding:6px 9px;border:1px solid rgba(8,119,201,.14);border-radius:999px;background:rgba(237,248,255,.82);font-size:9px;line-height:1.1;text-transform:uppercase}.catalogue .course-row h3{margin:13px 0 0;color:#082e62;font-family:Manrope,"DM Sans",sans-serif;font-size:21px;line-height:1.25;letter-spacing:-.03em}.catalogue .course-row h3:after{content:"Online professional training with structured learning, practical knowledge and assessment.";display:block;margin-top:13px;color:#63758b;font-family:"DM Sans",Arial,sans-serif;font-size:13px;font-weight:400;line-height:1.65;letter-spacing:0}.catalogue .course-row p{margin:10px 0 0;color:#d89c16;font-size:12px;font-weight:800}.catalogue .price{margin-top:auto!important;padding-top:19px;border-top:1px solid rgba(205,225,239,.72);color:#082e62;font-size:17px}.catalogue .course-row form{margin-top:15px}.catalogue .course-row .button{min-height:40px;border:1px solid rgba(255,255,255,.35);box-shadow:0 8px 15px rgba(7,85,170,.2)}@media(hover:hover){.catalogue .course-row:hover{z-index:2;border-color:rgba(0,169,236,.55);transform:translateY(-6px)}}@media(max-width:900px){.catalogue{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.catalogue{grid-template-columns:1fr}.catalogue .course-row{min-height:265px}}

/* Tighter portal hierarchy: course and dashboard headings no longer dominate the page. */
.student-main h1{font-size:clamp(27px,3.15vw,39px)}.panel h2{font-size:19px}.catalogue .course-row h3{font-size:19px}.auth-card h1{font-size:clamp(29px,3.3vw,37px)}
@media(max-width:520px){.student-main h1{font-size:29px}.panel h2{font-size:18px}.catalogue .course-row h3{font-size:18px}.auth-card h1{font-size:27px}}

/* Keep the signed-in dashboard compact without losing the student's identity. */
.portal-welcome{display:inline-flex;align-items:center;min-height:36px;padding:8px 10px;color:#dceffc;font-size:12px;font-weight:800;white-space:nowrap}.dashboard-grid>aside .stat strong{font-size:21px}.dashboard-grid>aside .stat span{font-size:12px}
@media(max-width:900px){.portal-welcome{min-height:30px;padding:5px 2px;color:#dceffc;font-size:10px}}

/* Catalogue cards are true vertical cards, never compressed horizontal rows. */
.catalogue .course-row{flex-direction:column;align-items:stretch;justify-content:flex-start}.catalogue .course-row h3{width:100%}.catalogue .course-row .price{width:100%}.catalogue .course-row form{width:100%;margin-top:15px}.catalogue .course-row .button{width:100%;align-self:stretch}.payment-history{margin-top:18px;border:1px solid #dbe8f1;border-radius:14px;background:#f8fbfe}.payment-history summary{padding:14px 16px;color:#254d72;font-size:13px;font-weight:800;cursor:pointer}.payment-history .course-list{padding:0 13px 13px}.payment-history .course-row{background:#fff}.payment-history .course-badge{color:#7d6a43}
.student-main:has(.dashboard-grid){padding-top:25px!important}

/* Desktop portal toolbar — a quiet, white second row beneath the Academy header. */
@media(min-width:901px){
  .student-header:not(.public-header) .student-nav{padding:12px 0 0!important;gap:10px 28px!important}
  .student-header:not(.public-header) .portal-links{position:relative;left:50%;width:100vw!important;margin:0!important;padding:9px 190px 9px 24px!important;transform:translateX(-50%);background:#fff;border-top:1px solid rgba(202,222,237,.78);border-bottom:1px solid rgba(202,222,237,.9);box-shadow:0 5px 13px rgba(6,51,93,.07);justify-content:center!important;gap:7px!important}
  .student-header:not(.public-header) .portal-links a{min-height:37px!important;padding:9px 14px!important;color:#315979!important;font-size:13px!important}
  .student-header:not(.public-header) .portal-links a:hover,.student-header:not(.public-header) .portal-links a.active{background:#0a69b6!important;color:#fff!important}
  .student-header:not(.public-header) .portal-welcome{position:absolute;z-index:3;right:max(24px,calc((100vw - 1140px)/2));bottom:9px;min-height:37px;padding:8px 11px;color:#315979;background:#f4f9fd;border:1px solid #dceaf5;border-radius:9px;font-size:11px;pointer-events:none}
}
@media(max-width:900px){.portal-welcome{display:none!important}}
.forgot-link{margin:10px 0 0;text-align:right;font-size:13px}.forgot-link a{color:#0b70b6;font-weight:700;text-decoration:none}.forgot-link a:hover{text-decoration:underline}

/* Prefer the compressed login backdrop while retaining the original JPEG as a
   fallback for older browsers or installations that have not received WebP. */
.auth-shell{background-image:linear-gradient(90deg,rgba(238,248,255,.96) 0%,rgba(244,250,254,.9) 46%,rgba(244,250,254,.36) 100%),image-set(url('/uploads/hero-training-1.webp') type('image/webp'),url('/uploads/hero-training-1.jpg') type('image/jpeg'))}
@media(max-width:900px){.auth-shell{background-image:linear-gradient(180deg,rgba(238,248,255,.96),rgba(245,251,255,.9)),image-set(url('/uploads/hero-training-1.webp') type('image/webp'),url('/uploads/hero-training-1.jpg') type('image/jpeg'))}}

/* Certificate actions appear only after the portal's completion gate is met. */
.certificate-ready{margin:14px 0 18px}.course-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.certificate-link{display:inline-flex;align-items:center;min-height:38px;padding:9px 13px;border:1px solid #d8a62d;border-radius:10px;color:#9a6b00;background:#fff8e5;text-decoration:none;font-size:12px;font-weight:800}.certificate-link:hover{background:#fff0bf}
.video-shell .mux-video{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;object-fit:contain}
