body.admin-authenticated{background:#f4f6fa}body.admin-authenticated>header,body.admin-authenticated>footer{display:none}body.admin-authenticated>main{padding:0;margin:0;max-width:none;width:100%}.admin-shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100dvh}.admin-rail{height:100dvh;position:sticky;top:0;background:#10214e;color:#fff;padding:32px 22px;display:flex;flex-direction:column}.rail-brand{text-decoration:none;font-size:28px;font-weight:700;line-height:1.2}.rail-brand span{display:block;color:#e4c433;font-size:11px;letter-spacing:2.8px;margin-top:9px}.rail-label{font-size:11px;letter-spacing:1.6px;color:#aab8d3;margin:46px 10px 16px}.admin-rail nav{display:grid;gap:8px}.admin-rail nav a{display:flex;align-items:center;gap:13px;padding:14px 13px;border-radius:10px;text-decoration:none;font-size:15px;color:#dbe4f4;font-weight:700;min-height:50px}.admin-rail nav a:hover{background:#21345f}.admin-rail nav a.active{background:#e4c433;color:#10214e}.admin-shell svg{width:22px;height:22px;flex-shrink:0}.rail-bottom{margin-top:auto;padding-top:40px}.rail-bottom>p{font-size:24px;line-height:1.3;color:#aab8d3;margin:10px 10px 28px}.rail-bottom strong{color:#e4c433}.rail-bottom>a,.rail-bottom>button{display:flex;align-items:center;gap:12px;color:#dbe4f4;background:none;border:0;padding:12px 10px;font-size:14px;text-decoration:none;width:100%;text-align:left;border-radius:8px}.rail-bottom>a:hover,.rail-bottom>button:hover{background:#21345f}.admin-body{min-width:0}.admin-bar{min-height:90px;background:white;border-bottom:1px solid #e1e6ef;padding:20px 4%;display:flex;align-items:center;justify-content:space-between;gap:24px}.admin-breadcrumb{font-size:14px}.admin-breadcrumb b{color:#63728c;font-weight:400}.admin-private{display:block;font-size:12px;color:#71809a;margin-top:3px}.admin-person{display:flex;align-items:center;gap:12px;min-width:0}.admin-avatar{display:grid;place-items:center;width:43px;height:43px;border-radius:50%;background:#f8efbd;font-weight:700;flex-shrink:0}.admin-person strong,.admin-person div>span{display:block;font-size:14px}.admin-person div>span{font-size:12px;color:#62718a;overflow-wrap:anywhere}.admin-page{max-width:1480px;margin:auto;padding:38px 4% 65px}.admin-page h1{font-size:34px;margin:0 0 10px;line-height:1.2}.admin-page h2{font-size:23px;line-height:1.3}.admin-page p{line-height:1.65}.admin-welcome{display:flex;justify-content:space-between;align-items:center;gap:25px;margin-bottom:24px}.admin-welcome p:last-child{margin:0;color:#62718a}.admin-date{font-size:14px;color:#62718a;white-space:nowrap}.admin-page .eyebrow{color:#857017;font-size:12px;letter-spacing:1.5px}.admin-hero{display:grid;grid-template-columns:1fr 300px;background:#10214e;color:white;border-radius:20px;overflow:hidden;padding:34px 38px;margin-bottom:30px;position:relative}.hero-kicker{font-size:11px;letter-spacing:2px;color:#edcf43;font-weight:700}.admin-hero h2{font-size:36px;line-height:1.13;margin:14px 0}.admin-hero p{max-width:570px;color:#c5d0e6;font-size:16px;margin-bottom:23px}.admin-hero .primary{display:inline-flex;align-items:center;gap:26px;text-decoration:none;font-size:15px}.hero-graphic{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}.hero-graphic>span{width:90px;height:90px;border:1px solid #e4c43366;border-radius:25px;background:#1c315d;display:grid;place-items:center;transform:rotate(-8deg);box-shadow:16px 12px 0 #e4c433}.hero-graphic svg{width:48px;height:48px;color:#ffe36a}.hero-graphic small{margin-top:30px;font-size:13px;letter-spacing:3px;color:#c5d0e6;text-align:center;z-index:1}.hero-graphic small b{font-size:9px;letter-spacing:2px;color:#e4c433}.orbit{position:absolute;inset:-60px -80px;border:1px solid #ffffff14;border-radius:50%;transform:rotate(-25deg)}.overview-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.overview-heading h2{margin:0}.quiet-button{border:0;background:none;color:#53637d;font:inherit;font-size:14px;padding:10px;min-height:44px}.admin-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:16px 0 30px}.admin-stats>a{border:1px solid #dfe5ef;border-radius:15px;padding:22px;background:white;text-decoration:none;position:relative;transition:transform .15s,border-color .15s}.admin-stats>a:hover{transform:translateY(-3px);border-color:#c7ab28}.admin-stats strong{display:block;font-size:34px;line-height:1.1;margin:13px 0 9px}.admin-stats a>span:not(.metric-icon){display:block;font-size:15px;font-weight:700}.admin-stats small{display:block;font-size:12px;color:#67758e;margin-top:5px}.metric-icon{display:grid;place-items:center;width:36px;height:36px;background:#f2f5fa;border-radius:10px;color:#596d94}.admin-home-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:24px}.admin-panel{background:white;border:1px solid #dfe5ef;border-radius:16px;padding:28px}.workflow-link{display:flex;align-items:center;gap:16px;padding:20px 0;text-decoration:none;border-bottom:1px solid #e6eaf1}.workflow-link:last-child{border-bottom:0;padding-bottom:0}.workflow-link>span{display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:#f7efc9;font-size:12px;flex-shrink:0}.workflow-link>div{flex:1}.workflow-link strong{font-size:16px}.workflow-link p{font-size:14px;color:#64718b;margin:4px 0 0}.workflow-link:hover strong{text-decoration:underline}.review-symbol{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;background:#f7efc9;margin-bottom:18px}.review-panel p{font-size:15px;color:#64718b}.review-panel .secondary{display:inline-block;text-decoration:none;font-size:14px}.review-note{border-top:1px solid #e1e6ef;margin-top:25px;padding-top:25px}.review-note strong{font-size:15px}.review-note p{font-size:14px;margin:8px 0 0}.admin-page .content{border-radius:16px;padding:28px}.admin-page .section-top{align-items:flex-start}.admin-page .section-top h2{font-size:29px}.admin-page .section-top p{font-size:15px}.admin-page .filters{background:#f5f7fb;border-radius:12px;padding:18px;margin:24px 0}.admin-page table th{font-size:13px;white-space:nowrap}.admin-page table td{font-size:14px;line-height:1.5;padding:18px 12px}.admin-page table td .secondary{font-size:13px;min-height:40px;padding:8px 12px}.admin-page #learner-panel{background:white;border:1px solid #dfe5ef;padding:24px;border-radius:16px;margin-top:24px}.admin-page .notice{background:#f2f6fc;border:1px solid #dce5f2;color:#576a87;font-size:14px;border-radius:10px}.admin-page .cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.admin-page .card{border-radius:16px;padding:25px;box-shadow:0 4px 16px #10214e03}.admin-page .card h2{font-size:22px}.admin-page .card button{font-size:14px}.admin-page #program-panel{margin-top:28px}.admin-page .card .number{display:inline-block;background:#f5efd4;padding:5px 9px;border-radius:6px;font-size:11px;font-weight:700}.admin-page .heading-row{margin-bottom:22px}.admin-page .heading-row p{max-width:650px}.admin-page #message:empty,.admin-page #admin-shell-message:empty{display:none}.admin-page #overview-status{font-size:13px;margin:0;color:#62718a}.admin-authenticated dialog{box-shadow:0 25px 90px #10214e33;padding:30px;border-radius:20px}.admin-authenticated dialog h2{font-size:25px}.admin-authenticated dialog label{font-size:15px}.admin-authenticated dialog input,.admin-authenticated dialog select,.admin-authenticated dialog textarea{background:#fafbfd}.admin-authenticated #class-manager{width:min(900px,calc(100% - 24px))}.admin-authenticated #class-form{padding:24px;border-radius:14px;background:#f4f6fa;margin-top:24px}.admin-authenticated .admin-class-list:empty{display:none}.admin-authenticated .admin-class-list .lesson-row{border:1px solid #dfe5ef;border-radius:10px;margin:10px 0;padding:18px}.admin-authenticated .admin-class-list .lesson-row:hover{background:#fff9dd}#admin-shell-message{color:#a32424}#admin-certificates>h1{font-size:30px}
@media(min-width:1400px){.admin-hero{grid-template-columns:1fr 380px}.admin-page{padding-top:40px}}
@media(max-width:1150px){.admin-shell{grid-template-columns:218px minmax(0,1fr)}.admin-rail{padding:28px 16px}.admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-page .cards{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-home-grid{grid-template-columns:1fr}.admin-hero{grid-template-columns:1fr 200px}.admin-date{display:none}}
@media(max-width:760px){.admin-shell{display:block}.admin-rail{position:static;height:auto;padding:20px}.rail-brand{font-size:25px}.rail-brand span{font-size:10px;margin-top:5px}.rail-label,.rail-bottom>p{display:none}.admin-rail nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:22px}.admin-rail nav a{font-size:14px;padding:12px 10px;gap:9px}.admin-rail nav svg{width:19px;height:19px}.rail-bottom{padding-top:14px;display:flex;align-items:center;justify-content:space-between;gap:12px}.rail-bottom>a{display:none}.rail-bottom>button{width:auto;margin-left:auto;padding:7px 10px;min-height:40px;font-size:13px}.admin-bar{padding:18px 20px;gap:12px;flex-wrap:wrap}.admin-person{max-width:100%}.admin-private{display:none}.admin-person div>span{font-size:12px}.admin-breadcrumb{font-size:13px}.admin-avatar{width:35px;height:35px}.admin-page{padding:26px 18px 45px}.admin-page h1{font-size:29px}.admin-welcome{margin-bottom:20px}.admin-welcome p:last-child{font-size:15px}.admin-hero{display:block;padding:26px;border-radius:16px}.hero-graphic{display:none}.admin-hero h2{font-size:32px}.admin-hero .primary{font-size:14px;gap:16px}.admin-stats{gap:12px}.admin-stats>a{padding:17px}.admin-stats strong{font-size:29px}.admin-stats a>span:not(.metric-icon){font-size:14px}.admin-stats small{font-size:12px}.admin-panel{padding:22px}.admin-page h2{font-size:22px}.admin-page .content,.admin-page #learner-panel{padding:18px}.admin-page .cards{grid-template-columns:1fr}.admin-page .filters{padding:14px}.admin-page .section-top{flex-direction:column}.admin-page .section-top h2{font-size:27px}.admin-page .section-top .primary{width:100%}.admin-authenticated dialog{padding:22px}.admin-authenticated #class-form{padding:17px}.admin-page .heading-row{flex-direction:column;align-items:stretch}.admin-page table{min-width:650px}.workflow-link{gap:12px}.workflow-link p{font-size:14px}.workflow-link>svg{width:18px}}
@media(prefers-reduced-motion:reduce){.admin-stats>a{transition:none}}
@media(max-width:760px){.admin-page .table-wrap{overflow:visible}.admin-page table{min-width:0;display:block;width:100%}.admin-page table thead{display:none}.admin-page table tbody{display:block}.admin-page table tr{display:block;border:1px solid #dfe5ef;border-radius:12px;margin:15px 0;padding:12px;background:white}.admin-page table td{display:block;padding:8px;border:0;overflow-wrap:anywhere}.admin-page table td:before{content:attr(data-label);display:block;font-size:12px;letter-spacing:.4px;font-weight:700;color:#6b7b94;margin-bottom:5px}.admin-page table td strong{max-width:none}.admin-page table td .secondary{width:100%}}
.admin-person{text-decoration:none;border-radius:10px;padding:6px}.admin-person:hover{background:#f4f6fa}.admin-avatar{overflow:hidden}.admin-avatar img{width:100%;height:100%;object-fit:cover}.rail-bottom>.profile-nav{display:flex;font-weight:700}.rail-bottom>.profile-nav.active{color:#ffe36a;background:#21345f}.profile-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:24px;align-items:start;margin-top:28px}.profile-layout .admin-panel{min-width:0}.profile-layout form{display:grid;gap:18px}.profile-layout label{font-size:15px}.profile-layout .muted{font-size:15px;color:#62718a}.profile-access{display:grid;gap:24px}.profile-current-email{font-weight:700;overflow-wrap:anywhere}.profile-photo-row{display:flex;align-items:center;gap:22px;margin:10px 0 24px}.profile-photo{width:112px;height:112px;background:#f7efc9;border-radius:50%;overflow:hidden;flex-shrink:0;display:grid;place-items:center;color:#10214e;font-size:36px;font-weight:700}.profile-photo img,.profile-photo canvas{width:100%;height:100%;object-fit:cover}.profile-photo-row small{display:block;color:#62718a;font-size:13px}.photo-picker{cursor:pointer;display:block;font-size:14px!important}.photo-file{position:absolute;width:1px;height:1px;opacity:0;min-height:0;padding:0;overflow:hidden}.photo-picker:has(+input:focus-visible){outline:3px solid #b29519;outline-offset:3px}.profile-photo-row .quiet-button{display:block;text-align:left}.profile-layout form .message:empty{display:none}.profile-layout form>button{width:fit-content}.profile-layout .message{overflow-wrap:anywhere}.profile-layout form+form{margin-top:20px}.profile-heading p:last-child{color:#62718a}#admin-password-login{display:grid;gap:18px;margin-top:20px}#admin-password-login button{margin-top:0}.profile-photo-row label{min-height:44px}.profile-layout input{font-weight:400}#profile-details-message{color:#286144}#profile-details-message.error{color:#a32424}@media(max-width:1000px){.profile-layout{grid-template-columns:1fr}}@media(max-width:760px){.rail-bottom>.profile-nav{display:flex;width:auto;margin-right:auto}.profile-photo-row{flex-wrap:wrap;gap:18px}.profile-layout{gap:18px;margin-top:22px}.profile-layout form>button{width:100%}.profile-layout .admin-panel{padding:22px}.profile-photo{width:96px;height:96px}.profile-photo-row>div:last-child{flex:1;min-width:140px}}
/* Keep the application width stable during authentication and between short/long sections. */
html{scrollbar-gutter:stable}
@supports not (scrollbar-gutter:stable){html{overflow-y:scroll}}
body.admin-boot{background:#f4f6fa;min-height:100dvh}
body.admin-boot>header,body.admin-boot>footer{display:none}
body.admin-boot>main{width:100%;max-width:none;margin:0;padding:0;min-height:100dvh}
body.admin-boot #loading,body.admin-boot #access{margin:0;padding:100px 24px;text-align:center}

.certificate-identity{display:flex;align-items:center;gap:12px}.certificate-identity>div{min-width:0}.certificate-photo{width:48px;height:60px;border-radius:8px;flex-shrink:0;border:1px solid #dbe2ed;background:#edf1f8;color:#10214e;font:700 22px Aribau;display:grid;place-items:center;overflow:hidden;padding:0}.certificate-photo img{width:100%;height:100%;object-fit:contain;background:#fff}.certificate-row-actions button{display:block;margin:5px 0;white-space:nowrap}#certificate-preparation{width:min(1180px,calc(100% - 28px));max-height:94dvh}.certificate-preparation-grid{display:grid;grid-template-columns:240px minmax(0,1fr);gap:34px}.certificate-preparation-grid>section{padding:20px;background:#f4f6fa;border-radius:14px;align-self:start}.student-photo-preview{width:144px;height:192px;display:grid;place-items:center;background:#e5eaf2;border-radius:10px;overflow:hidden;margin:15px 0}.student-photo-preview img{width:100%;height:100%;object-fit:contain;background:white}.certificate-source{border-top:1px solid #dce2ed;padding-top:20px;margin-top:20px}.certificate-source p{white-space:pre-line;font-size:14px;overflow-wrap:anywhere}.module-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.print-module{display:grid;grid-template-columns:minmax(0,1fr) 90px 38px;gap:10px;margin:10px 0}.print-module button{padding:0;font-size:24px}#preparation-requirements{white-space:pre-line}#print-data-form{gap:15px}#print-data-form .editor-actions{flex-wrap:wrap}#certificate-result{border-top:1px solid #dce2ed;margin-top:25px;padding-top:22px}.certificate-result-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.certificate-result-actions h3{margin-right:auto}.certificate-result-actions a{text-decoration:none}#certificate-preview{width:100%;height:65dvh;border:1px solid #dce2ed;border-radius:10px;background:#edf0f4}#preparation-message:empty,#photo-message:empty{display:none}@media(max-width:760px){.certificate-preparation-grid{grid-template-columns:1fr;gap:20px}.certificate-preparation-grid>section{padding:18px}.certificate-preparation-grid .photo-picker{width:fit-content}.print-module{grid-template-columns:minmax(0,1fr) 65px 30px;gap:6px}.print-module input{padding:10px;font-size:15px}#certificate-preparation{padding:18px}.certificate-result-actions>*{width:100%}.certificate-identity .certificate-photo{width:48px}.certificate-row-actions button{white-space:normal}.certificate-preparation-grid .form-grid{grid-template-columns:1fr}}
.equipment-upload{margin-top:24px;padding-top:20px;border-top:1px solid #dbe2ed}
.equipment-preview{display:flex;align-items:center;justify-content:center;min-height:110px;padding:10px;margin-bottom:12px;border:1px solid #dbe2ed;border-radius:10px;background:#fff;color:#64748b;font-size:13px;text-align:center}
.equipment-preview img{display:block;max-width:100%;max-height:180px;object-fit:contain}

.login-card .remember-device{display:flex;align-items:flex-start;gap:10px;margin:16px 0;font-size:14px;font-weight:400;line-height:1.5}.login-card .remember-device input{width:18px;min-width:18px;height:18px;min-height:18px;margin:2px 0 0;padding:0;accent-color:#10214e}
