:root{font-family:Inter,Roboto,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-synthesis:none;color:#172a39;background:#f4f6f8;--navy:#142b3b;--navy2:#223c50;--primary:#1767af;--gold:#bf9c55;--surface:#fff;--paper:#f4f6f8;--line:#e0e7ec;--ink:#172a39;--muted:#657789;--success:#207e5a;--danger:#bf3f46;--warn:#956015}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.52}h1,h2,h3,p{margin:0}h1{font-size:25px;font-weight:750;letter-spacing:-.65px}h2{font-size:18px;letter-spacing:-.3px}h3{font-size:15px;letter-spacing:-.2px}p{line-height:1.6}a{color:var(--primary)}.muted,small{color:var(--muted)}.tiny{font-size:11px}.text-sm{font-size:13px}.strong{font-weight:700}.loading-screen{height:100vh;display:flex;justify-content:center;align-items:center;flex-direction:column;gap:15px;color:var(--muted)}.loading-spinner{width:30px;height:30px;border-radius:50%;border:3px solid #d4dde7;border-top-color:var(--primary);animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.layout{min-height:100vh;display:flex}.sidebar{width:254px;flex:none;background:var(--navy);color:#e1ebf3;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:25px 13px 17px}.brand{display:flex;gap:11px;align-items:center;padding:0 11px 25px;color:#fff}.brand img{width:38px;height:38px}.brand span{display:block;font-size:13px;font-weight:800;line-height:1.13;letter-spacing:.2px}.brand small{font-size:9px;letter-spacing:1.7px;color:#abbeca;text-transform:uppercase}.nav-list{display:grid;gap:4px;overflow-y:auto}.nav-btn{display:flex;gap:11px;align-items:center;width:100%;padding:12px 13px;background:transparent;border:0;border-radius:5px;color:#c4d4e0;font-size:13px;text-align:left}.nav-btn:hover,.nav-btn.active{background:var(--navy2);color:#fff}.nav-btn.active{box-shadow:inset 3px 0 #d3b274}.nav-btn .svg{width:18px;height:18px}.side-bottom{margin-top:auto;border-top:1px solid #345061;padding:16px 12px 0}.side-bottom p{font-size:12px;line-height:1.4}.side-bottom small{font-size:10px;color:#a2b4c4}.main{width:calc(100% - 254px);min-width:0}.topbar{height:70px;background:#fff;border-bottom:1px solid var(--line);padding:0 29px;display:flex;gap:15px;justify-content:space-between;align-items:center}.topbar-title{font-size:13px;font-weight:750;display:flex;align-items:center;gap:10px}.topbar-right{display:flex;gap:12px;align-items:center}.topbar .label{font-size:10px;text-transform:uppercase;letter-spacing:.65px;font-weight:750;color:var(--muted)}.user-picker{padding:9px 10px;max-width:242px;font-size:12px}.avatar{width:33px;height:33px;background:#e3e9f0;border:1px solid #dce4ec;display:grid;place-items:center;color:#284a64;font-size:12px;font-weight:800;border-radius:4px}.content{max-width:1320px;padding:32px 32px 95px;margin:0 auto}.pagehead{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:16px;margin-bottom:25px}.eyebrow{color:#3b729f;font-weight:800;letter-spacing:1.1px;text-transform:uppercase;font-size:10px;margin-bottom:7px}.subtitle{margin-top:7px;font-size:13px;color:var(--muted)}.actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.btn{border:1px solid #cad7e1;background:#fff;color:#234052;border-radius:5px;min-height:39px;padding:9px 14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:12px;font-weight:750;text-decoration:none;white-space:nowrap}.btn:hover{background:#f3f7fa;border-color:#8fabbd}.btn.primary{background:#1666ad;border-color:#1666ad;color:#fff}.btn.primary:hover{background:#12588f}.btn.dark{background:var(--navy);color:#fff;border-color:var(--navy)}.btn.danger{color:#a3383e;border-color:#e1c3c4}.btn.text{border:0;background:none;padding:5px 7px;min-height:30px;color:var(--primary)}.btn.small{min-height:30px;padding:5px 9px;font-size:11px}.btn .svg{width:16px;height:16px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.card{border-radius:6px;background:var(--surface);border:1px solid var(--line);padding:22px;min-width:0}.card.no-pad{padding:0}.card-title{margin-bottom:13px;display:flex;justify-content:space-between;align-items:center;gap:10px}.stat-value{font-size:30px;font-weight:760;letter-spacing:-1px;margin:8px 0 3px}.stat-label{color:var(--muted);font-size:12px}.stat-icon{color:#537993}.section{margin-top:25px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.section-head h2{font-size:16px}.pill{display:inline-flex;align-items:center;gap:4px;padding:5px 8px;border-radius:3px;background:#edf2f6;color:#35556b;font-size:10px;font-weight:750;letter-spacing:.15px;white-space:nowrap}.pill.green{background:#e7f4ed;color:#1c7650}.pill.yellow{background:#fff1d9;color:#8d5e14}.pill.red{background:#fee9eb;color:#a53e46}.pill.blue{background:#e4f0ff;color:#145a9a}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;font-size:12px;min-width:530px}.table th{text-align:left;background:#f2f5f8;color:#577086;letter-spacing:.45px;text-transform:uppercase;font-size:10px}.table td,.table th{border-bottom:1px solid #e8edf1;padding:13px 12px;vertical-align:middle}.table tbody tr:last-child td{border-bottom:0}.table tbody tr:hover{background:#fafdff}.table td strong{font-size:12px}.table td small{display:block;font-size:11px;margin-top:3px}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.list{display:grid;gap:8px}.list-row{padding:13px;display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:5px;background:white;min-width:0;text-align:left;color:inherit;width:100%}.list-row.click:hover{border-color:#7ca9ce;background:#f9fcfe}.list-row.active{background:#e9f3fc;border-color:#91bbdb}.grow{flex:1;min-width:0}.numbox{flex:none;width:29px;height:29px;background:#e8eef3;color:#476379;border-radius:4px;display:grid;place-items:center;font-size:11px;font-weight:800}.line{height:1px;background:var(--line);margin:17px 0}.soft-panel{background:#f2f6f9;border:1px solid #e7edf2;border-radius:5px;padding:17px}.empty{background:#f8fafc;border:1px dashed #d5e0e8;border-radius:5px;text-align:center;padding:32px 20px;color:var(--muted);font-size:13px}.empty .svg{width:33px;height:33px;display:block;margin:0 auto 9px;color:#7d98aa}.split{display:grid;grid-template-columns:282px minmax(0,1fr);align-items:start;gap:16px}.lesson-nav{max-height:calc(100vh - 192px);overflow:auto;padding:12px}.module-title{font-size:11px;font-weight:800;margin:14px 5px 9px;color:#536e82}.lesson-item{background:transparent;color:#2b4658;border:0;border-radius:4px;display:flex;width:100%;align-items:center;gap:9px;padding:10px 8px;text-align:left;font-size:11px}.lesson-item:hover,.lesson-item.active{background:#e7f2fc;color:#155d9d}.lesson-item.active{font-weight:800}.lesson-num{width:23px;height:23px;border-radius:4px;background:#dae5ee;display:grid;place-items:center;flex:none;font-size:10px;font-weight:800}.tabs{display:flex;gap:0;border-bottom:1px solid var(--line);overflow:auto;margin:20px 0 17px}.tabs button{border:0;border-bottom:2px solid transparent;background:transparent;padding:12px 15px;font-size:12px;color:var(--muted);white-space:nowrap}.tabs button.active{border-color:var(--primary);color:var(--primary);font-weight:750}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{margin-bottom:15px;min-width:0}.field label{font-size:12px;font-weight:750;display:block;margin-bottom:7px;color:#354e60}.field input,.field select,.field textarea,.field>input{width:100%;padding:10px 11px;border:1px solid #cbd7e0;color:#263d50;font-size:13px;border-radius:4px;background:#fff;outline:none}.field input:focus,.field textarea:focus,.field select:focus,.user-picker:focus{border-color:#377eb4;box-shadow:0 0 0 3px #e2f0fb}.field textarea{min-height:110px;resize:vertical}.field small{font-size:11px;display:block;margin-top:6px;line-height:1.55}.field .checkbox-line{display:flex;align-items:flex-start;gap:10px;font-weight:550}.field .checkbox-line input{width:16px;height:16px;margin:0;flex:none}.select-inline{max-width:260px;width:100%;padding:9px 10px;border:1px solid #ccd9e2;background:#fff;color:var(--ink);border-radius:4px;font-size:12px}.info{background:#ecf4fa;padding:13px 15px;border-left:3px solid #2177b6;color:#47677d;line-height:1.55;font-size:12px;border-radius:2px}.notice{padding:12px 14px;border:1px solid #f0ddbc;background:#fff9ee;color:#81602b;font-size:12px;border-radius:4px}.file-row{display:flex;align-items:center;gap:11px;border:1px solid var(--line);border-radius:5px;padding:12px 13px;margin:9px 0}.file-icon{width:40px;height:40px;display:grid;place-items:center;background:#fbe8e8;color:#a3363f;border-radius:4px;font-size:10px;font-weight:800}.file-row small{display:block;margin-top:4px;font-size:11px}.thread{display:flex;flex-direction:column;gap:10px;max-height:380px;overflow:auto;padding:14px 2px}.msg{padding:13px 14px;border-radius:5px;background:#f1f5f8;max-width:91%;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.52;align-self:flex-start}.msg.mine{background:#e5f2ff;align-self:flex-end}.msg .by{display:block;font-size:10px;font-weight:800;color:#55758b;margin-bottom:5px}.msg .time{display:block;font-size:10px;color:#75889a;margin-top:7px}.progress{height:8px;background:#e2ebf0;border-radius:3px;overflow:hidden}.progress div{height:100%;background:var(--primary)}.modal-cover{position:fixed;inset:0;background:#0c253bd9;z-index:90;display:grid;place-items:center;padding:20px}.modal{background:#fff;box-shadow:0 18px 70px #031c3090;max-height:92vh;overflow:auto;border-radius:7px;width:min(680px,100%);padding:24px}.modal.wide{width:min(980px,100%)}.modal-hd{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:19px}.modal-hd h2{font-size:19px}.modal button.close{border:none;background:transparent;font-size:20px;color:#65788b;cursor:pointer}.dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:20px 12px;background:#f8fbfd;border:1px dashed #a8bbca;border-radius:4px;text-align:center}.dropzone .svg{width:29px;height:29px;color:#547892}.dropzone input{border:0;padding:7px;width:min(400px,100%);font-size:12px}.dropzone small{font-size:11px}.attachment-preview{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}.attachment-preview span{border:1px solid #dfe7ed;padding:7px;background:#fff;font-size:11px;border-radius:4px}.toast{position:fixed;bottom:24px;right:22px;z-index:200;box-shadow:0 8px 35px #0b223d38;background:#173c55;color:#fff;padding:13px 17px;border-radius:4px;font-size:12px;max-width:min(430px,90vw)}.toast.error{background:#963b42}.mobile-nav{display:none}.login{min-height:100vh;display:grid;grid-template-columns:42% 58%;background:white}.login-left{padding:45px;background:linear-gradient(140deg,#102638,#244a63);color:#fff;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-left:after{content:"";position:absolute;width:430px;height:430px;border:1px solid #9ab0c044;border-radius:50%;bottom:-210px;left:-140px}.login-left .brand img{width:53px;height:53px}.login-left h1{font-size:34px;max-width:390px;line-height:1.14}.login-right{display:grid;place-items:center;padding:35px}.login-box{width:min(420px,100%)}.login-box h2{font-size:27px;margin-bottom:8px}.login-box .notice{margin:20px 0}.login-box .field{margin-bottom:16px}.check-row{padding:12px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;align-items:center}.check-row:last-child{border-bottom:0}.cert{width:min(100%,1000px);aspect-ratio:297/210;margin:auto;background:#fffefa;color:#263e52;border:10px solid #1b3d59;outline:2px solid #b69852;outline-offset:-19px;display:flex;flex-direction:column;justify-content:space-between;align-items:center;text-align:center;padding:5.5% 8%;position:relative}.cert h2{font-family:Georgia,"Times New Roman",serif;font-size:clamp(20px,4vw,48px);letter-spacing:4px;font-weight:400}.cert-name{font-family:Georgia,serif;font-style:italic;font-size:clamp(17px,2.9vw,33px);border-bottom:1px solid #c7af78;padding:5px 20px}.cert p{line-height:1.45;font-size:clamp(9px,1.3vw,14px);max-width:650px}.cert-sign{width:100%;display:flex;justify-content:space-around;gap:25px}.cert-sign div{border-top:1px solid #9e9e9e;padding-top:6px;width:38%;font-size:11px}.brand-seal{font-size:32px;color:#b69852}.help-tip{margin-top:11px;font-size:11px;color:var(--muted)}.nowrap{white-space:nowrap}.w100{width:100%}.spaced{display:flex;align-items:center;justify-content:space-between;gap:10px}.svg{width:18px;height:18px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.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:1050px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.split{grid-template-columns:245px minmax(0,1fr)}.content{padding:26px 22px 90px}.sidebar{width:225px}.main{width:calc(100% - 225px)}}
@media(max-width:720px){.sidebar{display:none}.main{width:100%}.topbar{height:62px;padding:0 14px}.topbar .label{display:none}.user-picker{max-width:180px;font-size:11px}.topbar-title{font-size:11px}.content{padding:23px 14px 90px}.pagehead{margin-bottom:17px}.pagehead h1{font-size:21px}.grid{gap:9px}.card{padding:15px}.split{grid-template-columns:1fr;gap:11px}.lesson-nav{max-height:205px}.form-grid{grid-template-columns:1fr;gap:0}.mobile-nav{position:fixed;left:0;right:0;bottom:0;display:flex;justify-content:space-around;align-items:center;z-index:35;background:#fff;border-top:1px solid var(--line);height:66px;padding-bottom:env(safe-area-inset-bottom)}.mobile-nav button{min-width:0;width:25%;background:none;border:0;color:#6c7d8c;display:grid;place-items:center;gap:2px;font-size:10px;padding:7px 4px}.mobile-nav button.active{color:var(--primary);font-weight:750}.mobile-nav button .svg{width:19px;height:19px}.modal-cover{padding:9px}.modal{max-height:94vh;padding:17px}.login{grid-template-columns:1fr}.login-left{min-height:205px;padding:24px}.login-left h1{font-size:23px}.login-left .brand{padding:0 0 20px}.login-right{padding:26px 18px}.login-box h2{font-size:23px}.table{min-width:500px}.cert{border-width:5px;outline-offset:-10px;padding:6% 5%}.cert .brand-seal{font-size:18px}.cert-sign div{font-size:7px}.cert h2{letter-spacing:1px}.cert p{font-size:8px}.cert-name{font-size:14px}}@media(max-width:390px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.two{grid-template-columns:1fr}.content>.grid:not(.two)>.card:nth-child(3):last-child{grid-column:1/-1}.topbar-title{display:none}}
/* v5 mobile responsiveness refinements */
@media(max-width:900px){
  .grid.two{grid-template-columns:1fr}
  .section-head{align-items:flex-start;flex-direction:column}
  .actions{align-items:stretch}
  .actions .btn{min-width:0}
}
@media(max-width:720px){
  h1{font-size:22px}
  h2{font-size:17px}
  h3{font-size:14px}
  .content{padding:20px 14px 90px}
  .field input,.field select,.field textarea,.field>input,.select-inline,.user-picker{font-size:16px}
  .pagehead,.section-head,.spaced{gap:10px}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .grid.two{grid-template-columns:1fr}
  .content>.grid:not(.two)>.card:last-child:nth-child(odd){grid-column:1 / -1}
  .card{padding:16px 14px}
  .card-title{margin-bottom:10px}
  .stat-value{font-size:28px}
  .subtitle{font-size:12px;line-height:1.5}
  .section{margin-top:18px}
  .section-head{margin-bottom:10px}
  .section-head h2{font-size:15px}
  .list{gap:10px}
  .list-row{padding:14px 12px;align-items:flex-start;gap:10px}
  .list-row .grow{min-width:0}
  .list-row .grow strong{display:block;line-height:1.35}
  .list-row small{line-height:1.45;overflow-wrap:anywhere}
  .list-row>.svg:last-child{margin-left:auto;align-self:center}
  .file-row{flex-direction:column;align-items:flex-start}
  .check-row{display:block;padding:12px 0}
  .check-row .select-inline{display:block;max-width:none!important;width:100%;margin-top:8px}
  .actions{display:flex;flex-direction:column;align-items:stretch;width:100%}
  .actions .btn,.actions .field,.actions a.btn{width:100%;justify-content:center}
  .pagehead .actions{margin-top:4px}
  .pagehead .actions .btn{width:100%}
  .btn{white-space:normal;line-height:1.35;padding:10px 12px}
  .tabs{margin:16px 0 14px}
  .tabs button{padding:11px 10px;font-size:11px}
  .soft-panel,.info,.notice{padding:14px}
  .lesson-nav{max-height:190px;padding:10px}
  .lesson-item{font-size:12px;padding:11px 8px}
  .lesson-num{width:24px;height:24px}
  .thread{max-height:none;padding:10px 0}
  .msg{max-width:100%}
  .table{min-width:560px}
  .table td,.table th{padding:11px 10px}
  .modal-hd{flex-direction:column;align-items:flex-start}
  .modal-hd .close{align-self:flex-end}
  .dropzone{padding:16px 10px}
  .topbar{padding:0 12px}
  .topbar-right{gap:8px;min-width:0}
  .topbar-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .user-picker{max-width:150px}
}
@media(max-width:520px){
  .grid{grid-template-columns:1fr}
  .content>.grid:not(.two)>.card{grid-column:auto}
  .topbar{flex-wrap:nowrap}
  .topbar-title{display:none}
  .user-picker{max-width:calc(100vw - 100px)}
  .mobile-nav button{font-size:10px}
  .mobile-nav button span{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .cert{padding:7% 5%}
}

@media print{@page{size:A4 landscape;margin:0}body{background:#fff!important}.sidebar,.topbar,.content>.pagehead,.mobile-nav,.noprint,#toast-region{display:none!important}.layout,.main,.content{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}.cert{height:210mm!important;width:297mm!important;max-width:none!important;aspect-ratio:auto!important;margin:0!important;page-break-inside:avoid!important;border-width:10px!important;outline-offset:-19px!important;padding:18mm 24mm!important}.cert h2{font-size:44px!important}.cert-name{font-size:30px!important}.cert p{font-size:14px!important}.cert .brand-seal{font-size:35px!important}.cert-sign div{font-size:12px!important}.hide-print{display:none!important}#certificate-print{display:flex!important;justify-content:space-between!important}}
