:root{--blue:#335cf4;--ink:#202b43;--muted:#8b93a5;--line:#e9edf3;--bg:#f7f9fc}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font:14px 'IBM Plex Sans Thai',sans-serif}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{transition:background .18s,transform .18s}button:hover{filter:brightness(.97)}button:disabled{opacity:.55;cursor:not-allowed}a{text-decoration:none;color:inherit}.sidebar{width:248px;position:fixed;inset:0 auto 0 0;background:white;border-right:1px solid var(--line);padding:38px 23px;display:flex;flex-direction:column;z-index:4}.brand{display:flex;align-items:center;gap:12px;padding:0 10px;font-size:25px;font-weight:700;letter-spacing:-1px}.brand small{display:block;font:9px Manrope,sans-serif;letter-spacing:2.5px;color:#939bad;margin-top:1px}.brand-icon{position:relative;background:var(--blue);color:white;width:40px;height:44px;border-radius:13px;font:800 40px Manrope;text-align:center;line-height:41px}.brand-icon span{position:absolute;right:1px;top:-8px;font-size:23px;color:#b4c5ff}.workspace{font-size:11px;color:#9ca3b2;margin:49px 15px 14px}.nav-item{border:0;background:none;width:100%;display:flex;align-items:center;gap:13px;padding:15px 15px;color:#747e92;text-align:left;border-radius:9px;font-weight:500;margin:5px 0}.nav-item.active{background:#edf2ff;color:var(--blue)}svg{width:21px;height:21px;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.nav-dot{width:6px;height:6px;border-radius:50%;background:var(--blue);margin-left:auto}.nav-line{height:1px;background:var(--line);margin:28px 12px}.nav-line+.workspace{margin-top:0}.nav-end{margin-left:auto}.nav-end svg{width:15px}.sidebar-bottom{margin-top:auto;background:#f8faff;border:1px solid #eaf0fc;border-radius:12px;padding:18px 17px}.help-icon{color:var(--blue);margin-bottom:12px}.sidebar-bottom strong{font-size:13px}.sidebar-bottom p{font-size:11px;color:#939bad;line-height:1.9;margin:8px 0 13px}.sidebar-bottom button{font-size:11px;color:#536482;background:white;border:1px solid #e4e9f2;border-radius:6px;width:100%;padding:9px 12px;text-align:left}.sidebar-bottom button span{float:right}.sidebar-foot{font-size:10px;color:#9ca4b4;margin:25px 5px -13px;text-align:center}.tiny-logo{font:bold 16px Manrope;color:#8390ac;margin-right:7px}.shell{margin-left:248px}header{height:88px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 43px}.breadcrumb{font-size:12px;color:#939bad}.breadcrumb span{padding:0 14px;color:#c5cad5}.breadcrumb b{font-weight:500;color:#59637a}.top-right{display:flex;align-items:center;gap:12px;font-size:12px}.online{font-size:10px;color:#7a8497;display:flex;align-items:center;gap:7px}.online>span,.footer-dot{display:inline-block;background:#37bd8b;border-radius:50%;width:6px;height:6px}.header-divider{height:23px;width:1px;background:var(--line);margin:0 8px}.avatar{background:#eff3fa;width:33px;height:33px;border-radius:50%;display:grid;place-items:center;color:#7d8ca5}.avatar svg{width:18px}main{max-width:1280px;margin:auto;padding:36px 43px 45px;min-height:calc(100vh - 150px)}.page-title{font-size:26px;margin:0 0 5px;font-weight:600;letter-spacing:-.5px}.subtitle{margin:0;color:#9099ab;font-size:12px}.hero{height:223px;background:#edf2ff;border:1px solid #e2e9fc;border-radius:16px;margin-top:28px;position:relative;overflow:hidden;padding:29px 33px;display:flex;justify-content:space-between}.eyebrow{font-size:10px;color:#5272da;letter-spacing:.8px;display:flex;align-items:center;gap:7px}.eyebrow span{width:5px;height:5px;border-radius:50%;background:#5272da}.hero h2{font-size:29px;line-height:1.5;margin:12px 0 10px;font-weight:600;letter-spacing:-.7px}.hero h2 em{font-style:normal;color:var(--blue)}.hero p{color:#7c8aa7;font-size:12px;line-height:1.8;margin:0}.hero-art{position:relative;width:270px;flex-shrink:0;height:220px;margin-top:-21px}.orb{position:absolute;width:190px;height:190px;border:1px solid #dce5fc;border-radius:50%;left:40px;top:16px;background:#e5edff}.orb:after{content:'';position:absolute;inset:20px;border:1px solid #d8e2fc;border-radius:50%}.paper{position:absolute;top:36px;left:77px;background:white;width:125px;height:150px;border-radius:10px;transform:rotate(11deg);box-shadow:3px 10px 20px #4565b81a;padding:25px 17px}.clip{position:absolute;top:-8px;left:40px;background:#6c8bfa;border:4px solid #e3ebff;width:45px;height:21px;border-radius:6px}.paper-line{height:5px;background:#e7edfb;border-radius:4px;margin-bottom:7px;width:75%}.paper-line.short{width:45%}.paper-check{margin-top:13px;display:flex;gap:8px;align-items:center;color:#7994ef;font-size:12px}.paper-check span{height:4px;background:#e8eefb;flex:1}.float-check{position:absolute;left:182px;top:125px;background:var(--blue);width:51px;height:51px;border:5px solid #dce6ff;border-radius:50%;display:grid;place-items:center;color:#fff;transform:rotate(8deg);box-shadow:0 5px 12px #345ded25}.float-check svg{width:24px}.pencil{position:absolute;left:67px;top:92px;width:13px;height:87px;background:#7c9cff;border-right:4px solid #aec3ff;transform:rotate(29deg);border-radius:4px 4px 0 0}.pencil:after{content:'';position:absolute;bottom:-12px;border-top:12px solid #a1b6ec;border-left:6px solid transparent;border-right:7px solid transparent}.spark{position:absolute;color:#809beb;font-size:22px}.s1{left:45px;top:23px}.s2{right:9px;top:68px}.s3{left:25px;bottom:25px;font-size:13px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin:21px 0 28px}.stat{background:white;border:1px solid var(--line);border-radius:11px;padding:19px 22px;display:flex;align-items:center;gap:15px}.stat-icon{height:43px;width:43px;border-radius:11px;display:grid;place-items:center;background:#eef2ff;color:#6180ee}.stat:nth-child(2) .stat-icon{background:#fff7e8;color:#dfa843}.stat:nth-child(3) .stat-icon{background:#eaf8f2;color:#49ad8b}.stat-label{font-size:10px;color:#959eb0;margin-bottom:4px}.stat strong{font:700 22px Manrope}.stat strong span{font:12px 'IBM Plex Sans Thai';color:#8b95a8;margin-left:5px}.stat .green{font:500 15px 'IBM Plex Sans Thai';color:#3c9b79}.content-grid{display:grid;grid-template-columns:minmax(0,1.48fr) minmax(250px,1fr);gap:23px}.card{background:white;border:1px solid var(--line);border-radius:13px;padding:26px}.card-title{display:flex;align-items:center;gap:10px}.card-title i{color:#6580c8}.card h3{font-size:16px;font-weight:600;margin:0}.card-intro{font-size:11px;color:#959eb0;margin:6px 0 22px}.form-divider{border-top:1px solid var(--line);margin:0 0 23px}label{display:block;font-size:12px;font-weight:500;margin-bottom:8px}label .required{color:#ed8989;margin-left:3px}input{width:100%;border:1px solid #e1e6ee;border-radius:7px;padding:12px 14px;color:var(--ink);outline:none;background:white;transition:border-color .2s}input:focus{border-color:#6b87fc;box-shadow:0 0 0 3px #335cf410}input::placeholder{color:#b0b7c5;font-size:11px}.input-wrap{position:relative}.input-wrap input{padding-left:41px}.input-wrap i{position:absolute;left:13px;top:12px;color:#b3bccd}.input-wrap svg{width:17px}.field{margin-bottom:19px}.form-row{display:grid;grid-template-columns:1.4fr 1fr;gap:17px}.info-note{font-size:10px;color:#8b97ac;display:flex;align-items:center;gap:7px;margin:0 0 23px}.info-note svg{width:14px;height:14px}.primary{background:var(--blue);border:0;border-radius:7px;color:white;padding:13px 22px;font-weight:500}.wide{width:100%;display:flex;justify-content:center;align-items:center;gap:11px;box-shadow:0 4px 8px #335cf414}.wide svg{width:17px}.privacy{text-align:center;font-size:9px;color:#a6afbe;margin:13px 0 0}.privacy svg{width:12px;height:12px;margin-right:4px}.guide-card{padding:26px 25px}.steps{margin:22px 0 20px}.step{display:flex;gap:12px;margin-bottom:19px}.step-num{flex-shrink:0;width:25px;height:25px;display:grid;place-items:center;background:#f0f4ff;border-radius:50%;color:#6785df;font:600 11px Manrope}.step strong{font-size:12px;font-weight:500}.step p{font-size:10px;color:#98a1b1;line-height:1.8;margin:4px 0 0}.tip{border-radius:7px;background:#fffbf1;border:1px solid #f5ecd5;padding:13px 14px;font-size:10px;color:#ad9460;display:flex;gap:9px;line-height:1.9}.tip svg{width:17px;color:#cfac58}.tip b{font-weight:500;color:#a78a4c}.below-note{display:flex;justify-content:center;align-items:center;gap:6px;font-size:10px;color:#a4adbd;margin-top:24px}.below-note svg{width:13px}footer{border-top:1px solid var(--line);padding:21px 43px;display:flex;justify-content:space-between;color:#9fa7b6;font-size:9px}.footer-dash{padding:0 6px}.footer-dot{background:#b2bdd2;width:4px;height:4px;margin-right:5px}.secondary{border:1px solid #dce3ee;background:white;color:#65718b;border-radius:7px;padding:11px 17px}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px;gap:15px}.timer{background:#eef2ff;color:var(--blue);padding:10px 17px;border-radius:8px;font:600 18px Manrope}.progress{height:6px;background:#edf0f7;border-radius:4px;overflow:hidden;margin:18px 0 28px}.progress>div{height:100%;background:var(--blue);transition:width .3s}.question{font-size:23px;margin:24px 0}.option{width:100%;display:flex;align-items:center;gap:15px;padding:16px;border:1px solid #e2e7f0;background:white;border-radius:9px;margin:12px 0;text-align:left;color:var(--ink)}.option.selected{border-color:var(--blue);background:#f0f4ff;color:var(--blue)}.option>span{display:grid;place-items:center;background:#f0f3f9;border-radius:7px;width:32px;height:32px}.question-nav{display:flex;gap:8px;flex-wrap:wrap;margin:25px 0}.question-nav button{width:35px;height:35px;border:1px solid #e2e7f0;background:white;border-radius:7px;color:#8390a7}.question-nav button.answered{background:#edf2ff;color:var(--blue)}.question-nav button.current{border-color:var(--blue)}.exam-actions{display:flex;justify-content:space-between;gap:10px}.result-card{text-align:center;padding:48px 25px;margin-top:28px}.result-icon{width:70px;height:70px;border-radius:50%;display:grid;place-items:center;background:#e9f8f1;color:#2eaf7c;margin:0 auto 20px}.score{font:800 66px Manrope;color:var(--blue);margin:22px}.score span{font-size:25px;color:#9ba6bd}.result-card p{color:#8792a8}.review{text-align:left;border-bottom:1px solid var(--line);padding:15px 0}.admin-tools{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0}.admin-tools input{max-width:300px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th,td{padding:14px 12px;border-bottom:1px solid var(--line);white-space:nowrap}th{color:#8893a8;font-weight:500}.empty{text-align:center;padding:45px;color:#95a0b3}.danger{color:#cf5b65;border-color:#f0d9de}.settings{display:flex;gap:22px;flex-wrap:wrap}.settings label{display:flex;align-items:center;gap:8px}.settings input{width:auto}.error{color:#c24b5a;font-size:12px;margin:12px 0}.login-card{max-width:430px;margin:50px auto}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#263650;color:white;padding:12px 22px;border-radius:9px;box-shadow:0 5px 20px #0002;display:none;z-index:20;font-size:13px}button:focus-visible,a:focus-visible{outline:3px solid #a4b6ff;outline-offset:3px}@media(min-width:1450px){main{padding-top:45px}.hero{height:245px}.hero-art{margin-right:40px}.hero h2{font-size:33px}}@media(max-width:1100px){.sidebar{width:210px;padding:30px 15px}.shell{margin-left:210px}header{padding:0 28px}main{padding:28px}.content-grid{gap:17px}.hero-art{width:220px}.hero{padding:27px}.hero h2{font-size:25px}.card{padding:22px}.stat{padding:17px 15px}footer{padding:20px 28px}}@media(max-width:800px){.sidebar{width:76px;padding:25px 12px}.brand{padding:0;font-size:0}.brand>span:last-child,.workspace,.nav-line,.sidebar-bottom,.sidebar-foot,.nav-dot,.nav-end{display:none}.nav-item{font-size:0;padding:15px;gap:0;margin-top:15px}.brand-icon{min-width:40px}.shell{margin-left:76px}.content-grid{grid-template-columns:1fr}.hero-art{width:210px}.hero h2{font-size:25px}.hero p{max-width:250px}.stat{gap:9px;padding:15px 10px}.stat-icon{width:34px;height:34px}.stat-label{font-size:9px}.online{display:none}footer>span:last-child{display:none}}@media(max-width:540px){.sidebar{position:static;width:100%;height:68px;flex-direction:row;align-items:center;padding:10px 18px;border-bottom:1px solid var(--line)}.brand>span:last-child{display:block;font-size:18px;letter-spacing:0}.brand small{font-size:7px}.brand-icon{width:32px;height:36px;min-width:32px;font-size:32px;line-height:34px}.sidebar nav{margin-left:auto;display:flex;gap:3px}.nav-item{width:38px;margin:0;padding:9px}.shell{margin-left:0}header{height:56px;padding:0 20px}.breadcrumb{font-size:10px}.student-label{font-size:10px}.header-divider{display:none}main{padding:25px 18px}.page-title{font-size:23px}.hero{margin-top:22px;height:210px;padding:24px 21px}.hero h2{font-size:23px;position:relative;z-index:2}.hero p{font-size:10px;max-width:200px;position:relative;z-index:2}.hero-art{position:absolute;right:-74px;top:18px;transform:scale(.72);opacity:.7}.eyebrow{font-size:8px}.stats{gap:8px;margin:15px 0 20px}.stat{padding:14px 8px;display:block}.stat-icon{width:29px;height:29px;margin-bottom:10px;border-radius:7px}.stat-icon svg{width:16px}.stat strong{font-size:19px}.stat strong span{font-size:10px}.stat .green{font-size:12px}.stat-label{font-size:9px}.card{padding:22px}.section-head{align-items:flex-start}.question{font-size:19px}.timer{font-size:15px;white-space:nowrap}.form-row{grid-template-columns:1.2fr 1fr;gap:12px}footer{padding:18px;font-size:9px}.below-note{font-size:9px}.admin-tools>*{flex:1}.settings{gap:10px}}

/* Course names need the full form width, especially on mobile. */
.form-row.training-fields{grid-template-columns:1fr}.training-fields #student_no{max-width:180px}
.phase-tabs{display:flex;gap:12px;margin:24px 0;flex-wrap:wrap}.phase-tabs button{padding:13px 20px;border:1px solid #e0e7f2;border-radius:9px;background:#fff;color:#748199}.phase-tabs button.active{border-color:var(--blue);color:var(--blue);background:#edf2ff}.phase-tabs small{display:block;font-size:10px;margin-top:4px}.phase-tabs.admin-tabs{gap:8px}.admin-tabs button{font-size:12px;padding:12px 16px}.set-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.set-card{padding:22px;border:1px solid var(--line);border-radius:11px;min-width:0}.set-card h3{margin:12px 0}.set-card p{font-size:12px;color:#8591a5}.set-card small{color:#8d97a9}.badge{display:inline-block;border-radius:6px;background:#edf2ff;color:#6078bf;padding:5px 8px;font-size:10px}select,textarea{font:inherit;width:100%;background:white;border:1px solid #e1e6ee;border-radius:7px;padding:11px 12px;color:var(--ink);outline:none}select:focus,textarea:focus{border-color:#6b87fc;box-shadow:0 0 0 3px #335cf410}textarea{resize:vertical}fieldset{border:0;margin:0;padding:0;min-width:0}fieldset:disabled{opacity:.8}.question-editor{padding:22px 0;border-top:1px solid var(--line);margin-top:10px}.question-editor h4{margin:0}.question-editor select{max-width:180px}.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:18px 0}.editor-footer{display:flex;align-items:center;gap:18px;margin-top:23px}.check-label{display:flex;align-items:center;gap:9px;margin:20px 0 10px}.check-label input{width:17px;height:17px}.report-filters{display:grid;grid-template-columns:1.5fr .6fr 1fr 1.3fr auto;gap:12px;align-items:end;margin:22px 0}.report-filters label{font-size:10px}.report-filters input,.report-filters select{min-width:0;font-size:12px;height:42px}.stat-group{margin-top:25px;padding-top:10px;border-top:1px solid var(--line)}.stat-group h4{font-size:13px}.stat-bar{display:flex;align-items:center;gap:15px;font-size:12px;margin:13px 0}.stat-bar>span{width:43px}.stat-bar .progress{flex:1;margin:0}.set-card label{margin-top:18px}@media(max-width:1000px){.report-filters{grid-template-columns:1fr 1fr}.report-filters button{grid-column:1/-1}}@media(max-width:600px){.set-grid,.choice-grid{grid-template-columns:1fr}.phase-tabs{gap:8px}.phase-tabs button{flex:1;padding:12px;font-size:12px}.section-head{flex-wrap:wrap}.editor-footer{flex-wrap:wrap}.set-card{padding:17px}.question-editor .section-head{gap:5px}.report-filters{grid-template-columns:1fr}.report-filters button{grid-column:auto}}

.mode-switch{display:flex;flex-direction:column;gap:6px;margin:0 16px 16px}.mode-switch a{padding:12px 14px;border:1px solid #dce5ec;border-radius:10px;text-decoration:none;color:#475569;font-weight:600}.mode-switch a.active{background:#e5f5f0;border-color:#76bba5;color:#17644f}@media(max-width:760px){.mode-switch{flex-direction:row;justify-content:center;margin:8px}.mode-switch a{flex:1;text-align:center}}

.mode-switch-mobile{display:none}.mode-switch a.active{background:#edf2ff;border-color:#93a7f7;color:#335cf4}@media(max-width:800px){.sidebar .mode-switch{display:none}.mode-switch-mobile{display:flex;flex-direction:row;margin:12px 18px 0;gap:8px}.mode-switch-mobile a{flex:1;text-align:center;padding:10px;min-width:0}}
