:root{--ink:#21352f;--muted:#7b8983;--green:#21745f;--green-dark:#155642;--mint:#eaf4ef;--line:#e7ece8;--bg:#f6f8f7;--font:'IBM Plex Sans Thai',sans-serif;--number:'Manrope',var(--font)}
*{box-sizing:border-box}body{margin:0;font-family:var(--font);font-size:16px;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.65}a{color:inherit;text-decoration:none}button{color:inherit}svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #78c5ae;outline-offset:3px}button{transition:background .18s,box-shadow .18s,transform .18s}button:active{transform:translateY(1px)}[hidden]{display:none!important}.svg-sprite{position:absolute;width:0;height:0;overflow:hidden}.sidebar{width:234px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);padding:35px 18px 20px;display:flex;flex-direction:column;z-index:30}.brand{display:flex;align-items:center;gap:12px;padding:0 12px;font-size:25px;font-weight:600;line-height:1.3;letter-spacing:-.8px}.brand small{display:block;font-family:var(--number);font-size:8px;letter-spacing:2px;font-weight:700;color:var(--muted);margin-top:6px}.brand-icon{width:42px;height:45px;border-radius:13px;display:grid;place-items:center;background:#20715f;color:white;box-shadow:0 4px 10px #1b6b5b15}.brand-icon svg{width:29px;height:29px;stroke-width:1.5}.workspace-label{padding:47px 17px 15px;color:#9ca7a1;font-size:12px;letter-spacing:.1px}.nav-menu{display:flex;flex-direction:column;gap:7px}.nav-item{position:relative;display:flex;align-items:center;gap:13px;background:none;border:0;width:100%;padding:13px 17px;border-radius:9px;text-align:left;font-size:14px;font-weight:450;color:#6d7a73}.nav-item:hover{background:#f5f8f6}.nav-item.active{background:#eaf4ef;color:#1e725b;font-weight:600}.nav-item svg{width:20px;height:20px}.nav-dot{width:5px;height:5px;border-radius:50%;background:var(--green);margin-left:auto}.nav-divider{height:1px;background:var(--line);margin:18px 13px 11px}.sidebar-bottom{margin-top:auto;padding-top:35px}.sidebar-note{margin:15px 6px 22px;border-radius:12px;background:#f4f8f5;padding:23px 19px 20px;overflow:hidden;position:relative}.note-icon{display:flex;align-items:center;gap:25px;color:#4f8a70;margin-bottom:17px}.note-icon svg{width:30px;height:30px;stroke-width:1.25}.tiny-spark{font-size:20px;color:#a3c8b1}.sidebar-note strong{font-size:14px;font-weight:600}.sidebar-note p{font-size:13px;line-height:1.8;color:#829289;margin:8px 0 16px}.sidebar-note>span{font-size:10px;letter-spacing:.2px;color:#78917f}.sidebar-foot{padding:0 11px;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#9aa59e}.small-brand{font-weight:600;font-size:13px;color:#637c6c}.app-shell{margin-left:234px}.topbar{height:88px;background:#fff;border-bottom:1px solid var(--line);padding:0 38px;display:flex;align-items:center;justify-content:space-between;gap:20px}.breadcrumb{display:flex;align-items:center;gap:12px;font-size:13px;color:#6e7e74}.breadcrumb-icon{width:18px;height:18px;color:#8b9a90}.breadcrumb-slash{color:#c2cac5;margin:0 4px}.breadcrumb-current{color:#a0aaa4}.topbar-right{display:flex;gap:18px;align-items:center}.prototype-label{display:flex;gap:6px;align-items:center;font-size:11px;color:#7d8c81;background:#f6f8f6;border:1px solid #edf0ed;padding:5px 10px;border-radius:5px}.prototype-label>span{background:#89ad98;width:5px;height:5px;border-radius:50%}.icon-button{display:inline-grid;place-items:center;width:33px;height:33px;border:0;background:transparent;border-radius:8px;color:#829087;flex-shrink:0}.icon-button:hover{background:var(--mint);color:var(--green)}.icon-button.soft{background:#f3f7f4;border:1px solid #e7ede8;color:#728b7d}.topbar-divider{width:1px;height:28px;background:var(--line)}.teacher-avatar{width:37px;height:37px;display:grid;place-items:center;background:#ecf1df;border:3px solid #f8faef;border-radius:50%;font-size:17px;color:#70834b;font-weight:500;margin-right:-8px}.teacher-name{font-size:13px;font-weight:600;line-height:1.5}.teacher-name small{display:block;font-size:10px;font-weight:400;color:#8b9790}.mobile-menu{display:none}main{max-width:1580px;margin:0 auto;padding:34px 38px 20px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.eyebrow{display:flex;gap:6px;align-items:center;font-family:var(--number);font-weight:700;letter-spacing:1.7px;font-size:9px;color:#6b967c}.eyebrow svg{width:15px;height:15px;stroke-width:1.4}.page-heading h1{font-size:29px;font-weight:600;letter-spacing:-.75px;margin:9px 0 4px;line-height:1.5}.page-heading p{font-size:13px;color:#87938c;margin:0}.heading-date{display:flex;gap:9px;align-items:center;font-size:12px;color:#849088;padding-top:22px}.heading-date svg{width:16px;height:16px}.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;gap:12px}.toolbar-fields{display:flex;align-items:center;gap:20px}.select-field,.date-field{display:flex;align-items:center;gap:9px;font-size:13px}.select-field{background:#fff;border:1px solid #e3e9e4;border-radius:8px;height:40px;padding:0 12px;color:#89968c}.select-field svg,.date-field svg{width:16px;height:16px}.select-field select{border:0;background:transparent;padding:0 23px 0 9px;font-size:13px;font-weight:600;color:#304b3c;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23839587' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");background-position:right center;background-repeat:no-repeat;background-size:16px}.toolbar-divider{background:#dfe6e0;width:1px;height:23px}.date-field{color:#839188}.date-field input{border:0;background:transparent;font-size:12px;color:#687b6c;max-width:145px}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:7px;border:1px solid transparent;padding:10px 16px;font-size:13px;font-weight:500;line-height:1.5;white-space:nowrap;min-height:40px}.button svg{width:17px;height:17px}.button-secondary{background:#fff;border-color:#e0e7e1;color:#607268}.button-secondary:hover{background:#f0f6f2;border-color:#bfd2c5}.button-primary{background:var(--green);color:#fff;box-shadow:0 2px 3px #0a412d08}.button-primary:hover{background:var(--green-dark);box-shadow:0 3px 9px #165e4320}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:25px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:11px;padding:18px 20px 16px;min-width:0}.stat-top{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:12px;color:#7a897f}.stat-icon{width:30px;height:30px;border-radius:8px;display:grid;place-items:center}.stat-icon svg{width:17px;height:17px;stroke-width:1.6}.neutral{background:#f0f3f0;color:#819085}.green{background:#eaf5ee;color:#609378}.amber{background:#fcf4e5;color:#c7a14f}.rose{background:#faf0ec;color:#c88f7e}.stat-green{border-color:#d8e9dd;position:relative;background:linear-gradient(115deg,#fff 50%,#f4faf6)}.stat-number{display:flex;align-items:baseline;gap:9px;margin:4px 0 2px}.stat-number strong{font:700 34px/1.5 var(--number);letter-spacing:-1.3px}.stat-number>span{font-size:12px;color:#8c9990}.stat-green .stat-number strong{color:#2a7c5c}.stat-foot{font-size:10px;color:#9aa59e;position:relative;min-height:16px}.stat-foot.positive{color:#7e9d88}.stat-foot.positive>span{color:#39845f;font-weight:600;font-family:var(--number)}.mini-progress{margin-top:9px;height:3px;width:100%;background:#e7f0e9;border-radius:10px}.mini-progress span{display:block;background:#77ad8f;height:100%;border-radius:10px}.checkin-grid{display:grid;grid-template-columns:1.08fr 1fr;gap:22px;align-items:stretch}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.panel-heading{display:flex;justify-content:space-between;align-items:center;padding:21px 22px;gap:10px}.panel-heading h2{font-size:16px;font-weight:600;margin:0;letter-spacing:-.25px}.panel-heading p{font-size:11px;color:#99a29c;margin:4px 0 0;line-height:1.7}.camera-state{display:flex;align-items:center;gap:6px;font-size:10px;color:#8c9992;white-space:nowrap;background:#f5f7f5;padding:5px 8px;border-radius:5px}.camera-state>span:first-child{width:5px;height:5px;background:#a8b4ac;border-radius:50%}.camera-state.active{color:var(--green);background:var(--mint)}.camera-state.active>span:first-child{background:var(--green)}.camera-viewport{position:relative;overflow:hidden;aspect-ratio:1.42;margin:0 20px;border-radius:9px;background:#122c2b;isolation:isolate;min-height:300px}.camera-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 45%,#183b35,#14292b 75%)}.camera-grid{position:absolute;inset:0;background-image:linear-gradient(#75aa9820 1px,transparent 1px),linear-gradient(90deg,#75aa9820 1px,transparent 1px);background-size:33px 33px;opacity:.25;mask-image:radial-gradient(ellipse,#000,transparent 85%)}.orb{position:absolute;width:120px;height:120px;background:#6eab8f;filter:blur(80px);opacity:.1;border-radius:50%}.orb-one{left:-60px;top:20px}.orb-two{right:-60px;bottom:20px}.scan-art{width:min(63%,280px);margin-top:-10px}.face-art{width:100%;height:auto;stroke-width:1}.camera-idle-copy{display:flex;flex-direction:column;align-items:center;gap:6px;position:relative;margin-top:-9px}.camera-idle-copy strong{font-size:12px;color:#a9c4b7;font-weight:400;letter-spacing:.1px}.camera-idle-copy span{font-size:10px;color:#5f8b7e}.camera-topline{position:absolute;inset:17px 17px auto;display:flex;justify-content:space-between;align-items:center;pointer-events:none}.demo-tag{border:1px solid #79988940;background:#385b4c50;color:#bad3c5;padding:4px 9px;border-radius:4px;display:flex;align-items:center;gap:6px;font-size:9px}.demo-tag>span{width:4px;height:4px;background:#a0ccac;border-radius:50%}.camera-resolution{font:9px var(--number);letter-spacing:1.6px;color:#799c90}.camera-bottomline{position:absolute;bottom:15px;left:0;right:0;display:flex;justify-content:center;align-items:center;gap:6px;font-size:9px;color:#6d9586}.camera-bottomline svg{width:12px;height:12px;stroke-width:1.2}#camera-video{width:100%;height:100%;position:absolute;inset:0;object-fit:contain;object-position:center;transform:scaleX(-1)}.camera-controls{display:flex;gap:10px;margin:19px 20px 10px}.camera-controls .button-primary{flex:1}.camera-controls .button-secondary{flex:.8}.camera-description{text-align:center;font-size:9px;color:#98a39b;padding:0 16px;margin:12px 0 18px;line-height:1.8}.roster-panel{display:flex;flex-direction:column;min-height:0}.roster-panel .panel-heading{padding-bottom:16px}.roster-title{display:flex;align-items:center;gap:9px}.count-pill{font-size:10px;font-weight:500;display:inline-flex;align-items:center;background:#f0f5f1;color:#6f8b79;border-radius:5px;padding:3px 7px;white-space:nowrap}.roster-tools{padding:0 20px}.search-field{display:flex;align-items:center;gap:8px;background:#f8faf8;border:1px solid #eaf0e9;border-radius:7px;padding:0 11px;height:38px;color:#a4afa7}.search-field svg{width:16px;height:16px}.search-field input{background:transparent;border:0;outline:none;min-width:0;width:100%;font-size:11px;color:var(--ink)}.search-field input::placeholder{color:#a3afa6}.search-field:focus-within{border-color:#87b9a2;box-shadow:0 0 0 2px #e2f0e7}.status-tabs{display:flex;border-bottom:1px solid var(--line);margin-top:11px;gap:20px}.status-tabs button{border:0;background:none;padding:11px 2px 10px;font-size:11px;color:#97a299;position:relative}.status-tabs button.active{color:#367655;font-weight:600}.status-tabs button.active:after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:#3c8a63;border-radius:2px}.list-header{display:flex;justify-content:space-between;font-size:9px;color:#a2ada4;padding:13px 24px 7px}.list-header>span:last-child{margin-right:30px}.student-list{height:278px;overflow:auto;scrollbar-width:thin;scrollbar-color:#dce8df transparent;flex:1;min-height:260px;max-height:350px}.student-row{display:flex;align-items:center;gap:10px;min-height:61px;padding:9px 21px;border-bottom:1px solid #f1f4f0}.student-row:hover{background:#fbfdfb}.student-row:last-child{border:0}.avatar{height:33px;width:33px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;font-size:12px;color:#6e8a75;background:#eaf0e3;letter-spacing:-.5px}.avatar-0{background:#ecf2e5;color:#71865f}.avatar-1{background:#fae9df;color:#b58c6c}.avatar-2{background:#e5edf5;color:#7795ac}.avatar-3{background:#eee9f4;color:#9c88ad}.avatar-4{background:#f2eadd;color:#af9a6c}.avatar-5{background:#e4f1ed;color:#6b9b8b}.student-info{min-width:0;flex:1}.student-info strong,.student-info .student-name{display:block;font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.student-info small,.student-info .student-code{display:block;font-size:9px;color:#a4aea7;margin-top:3px;font-family:var(--number)}.student-status{display:flex;align-items:flex-end;flex-direction:column;gap:3px}.badge{display:inline-flex;gap:4px;align-items:center;padding:3px 7px;border-radius:4px;font-size:9px;white-space:nowrap;line-height:1.6}.badge.status-present,.badge.present{color:#5a9573;background:#edf6ee}.badge.status-late,.badge.late{color:#bf944d;background:#fcf4e7}.badge.status-pending,.badge.pending{color:#a2aaa3;background:#f1f4f1}.badge.status-leave,.badge.leave{color:#8b85aa;background:#efedf7}.student-time{font-family:var(--number);font-size:9px;color:#acb4ae;text-align:right}.row-action{width:23px;height:27px;background:transparent;border:0;border-radius:4px;color:#a5b1a8;font-size:17px;flex-shrink:0;padding:0}.row-action:hover{background:#eaf3ec;color:#367554}.roster-footer{display:flex;align-items:center;gap:5px;border-top:1px solid var(--line);background:#fcfdfb;padding:12px 20px;font-size:9px;color:#9ca79f}.roster-footer>span:last-child{margin-left:auto;font-size:8px;border:1px solid #e5eae4;padding:2px 5px;border-radius:3px}.legend-dot{width:4px;height:4px;background:#91b39b;border-radius:50%}.bottom-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:22px;margin-top:22px}.bottom-grid .panel-heading{padding:18px 22px 13px}.bottom-grid .panel-heading h2{font-size:14px}.subtle-label{font-size:10px;color:#a0aaa2}.activity-list{padding:0 22px 16px}.activity-item,.activity-row{display:flex;gap:11px;align-items:center;padding:9px 0;border-bottom:1px solid #f0f3ef;font-size:11px}.activity-item:last-child,.activity-row:last-child{border:0}.activity-item strong,.activity-row strong{font-weight:500}.activity-item .activity-time,.activity-row .activity-time{margin-left:auto;font-size:10px;color:#9aaba0;font-family:var(--number)}.activity-icon{width:28px;height:28px;border-radius:50%;background:#f0f7f1;color:#86aa91;display:grid;place-items:center;font-size:12px}.activity-info{flex:1}.activity-info small,.activity-item small{display:block;font-size:9px;color:#a1aca3}.tip-card{position:relative;border-radius:12px;background:#eaf1e9;border:1px solid #e2eadd;overflow:hidden;display:flex;gap:15px;padding:27px 22px;align-items:flex-start}.tip-icon{background:#dcebdc;color:#7a9e78;border-radius:9px;width:33px;height:33px;display:grid;place-items:center;flex-shrink:0}.tip-icon svg{width:20px;height:20px}.tip-card .eyebrow{font-size:7px;letter-spacing:1.1px;color:#81947b;margin:2px 0 8px}.tip-card h3{position:relative;z-index:1;font-size:18px;font-weight:500;line-height:1.65;margin:0 0 8px;color:#416747;letter-spacing:-.3px}.tip-card p{position:relative;z-index:1;font-size:10px;line-height:1.9;color:#91a48e;margin:0}.tip-decoration{font-family:serif;position:absolute;right:-17px;bottom:-64px;font-size:200px;line-height:1;color:#dbe8d8;transform:rotate(15deg)}.main-footer{display:flex;justify-content:space-between;align-items:center;padding-top:25px;font-size:9px;color:#a3ada6}.footer-dot{margin:0 6px;color:#c1cbc2}.main-footer>span:last-child{display:flex;align-items:center;gap:4px}.main-footer svg{width:11px;height:11px}.section-intro{margin:26px 0 18px}.section-intro h2{font-size:20px;font-weight:500;margin:0 0 5px}.section-intro p{font-size:13px;color:var(--muted);margin:0}.report-intro{display:flex;align-items:center;justify-content:space-between;gap:15px}.dashboard-summary{margin-bottom:20px}.summary-card,.report-card{padding:25px;border:1px solid var(--line);background:#fff;border-radius:12px;margin-bottom:15px}.summary-card h3,.report-card h3{margin:0 0 10px;font-size:18px}.summary-card p,.report-card p{color:var(--muted);font-size:14px}.info-strip{display:flex;align-items:center;gap:10px;margin:22px 0;padding:16px 20px;color:#809489;background:#edf3ee;border-radius:9px;font-size:12px;line-height:1.7}.info-strip svg{width:18px;height:18px}.table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 22px 20px}.table-toolbar .search-field{width:300px}.all-students-list{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}th{font-weight:500;background:#f7faf7;font-size:11px;color:#8b9d8f;padding:14px 20px}td{padding:14px 20px;border-bottom:1px solid #edf2ed}td .student-info strong{font-size:13px}td .badge{font-size:11px}td button{font-size:12px}.settings-panel{max-width:700px}.settings-panel form{padding:5px 25px 25px}.form-field{display:flex;flex-direction:column;gap:8px;font-size:14px;margin-bottom:20px}.form-field input,.form-field select{width:100%;background:#fff;border:1px solid #dce5de;border-radius:7px;padding:10px 12px;min-height:43px;color:#3f5f4b}.form-field select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23839587' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;background-size:16px;padding-right:36px}.form-field small,.form-note{font-size:12px;color:#8c9c90;line-height:1.8;font-weight:400}.storage-note{display:flex;gap:13px;background:#f5f8f4;border-radius:9px;padding:18px;margin:25px 0;font-size:13px}.storage-note svg{color:#7e9c86}.storage-note strong{font-weight:500}.storage-note p{font-size:12px;color:#8a9a8d;margin:6px 0 0}.empty-state{display:grid;place-items:center;text-align:center;color:#95a297;font-size:13px;padding:45px 20px;line-height:1.8}.empty-state p{margin:5px 0}.sidebar-backdrop{display:none}dialog{padding:0;border:1px solid #e3eae3;border-radius:15px;max-width:490px;width:calc(100% - 32px);color:var(--ink);box-shadow:0 30px 90px #10281e30}dialog::backdrop{background:#122c2455;backdrop-filter:blur(4px)}.modal-header{padding:24px 26px 17px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:15px}.modal-header h2{font-size:21px;font-weight:600;margin:0;line-height:1.5}.modal-body{padding:22px 26px}.modal-body p{font-size:13px;color:#7c8f80;line-height:1.85}.modal-body ul,.modal-body ol{padding-left:22px;font-size:14px;line-height:1.9;color:#6d8374}.modal-actions{display:flex;justify-content:flex-end;gap:10px;padding:18px 26px;border-top:1px solid var(--line);background:#fbfdfa}.modal-close{border:0;background:#f1f5f0;border-radius:50%;width:30px;height:30px;font-size:20px;color:#819282}.form-error{color:#b56354;font-size:12px;padding-top:6px}.toast{position:fixed;bottom:26px;left:calc(50% + 117px);transform:translateX(-50%);z-index:100;background:#264d3d;color:#fff;box-shadow:0 6px 30px #193e3525;padding:13px 22px;border-radius:9px;max-width:calc(100vw - 35px);font-size:13px;text-align:center;line-height:1.7}.report-table{overflow-x:auto;background:#fff;border:1px solid var(--line);border-radius:10px}.report-totals,.summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:20px}.metric-value{font:700 30px var(--number);color:var(--green)}.metric-label{font-size:12px;color:var(--muted)}
@media(min-width:1550px){main{padding:40px 48px}.camera-viewport{aspect-ratio:1.5}.student-list{max-height:420px}.student-row{min-height:70px}.stat-card{padding:22px}.stat-number strong{font-size:40px}.page-heading h1{font-size:34px}.panel-heading h2{font-size:18px}.student-info strong,.student-info .student-name{font-size:14px}.student-info small,.student-info .student-code,.student-time,.badge{font-size:11px}.camera-idle-copy strong{font-size:15px}.camera-idle-copy span{font-size:12px}}
@media(max-width:1200px){.sidebar{width:208px;padding-left:13px;padding-right:13px}.brand{font-size:23px;padding:0 8px;gap:9px}.app-shell{margin-left:208px}.topbar{padding:0 27px}main{padding:28px 27px 20px}.stats-grid{gap:12px}.stat-card{padding:14px 15px}.checkin-grid{gap:16px;grid-template-columns:1fr 1fr}.panel-heading{padding:18px 17px}.camera-viewport{margin:0 14px;min-height:290px}.camera-controls{margin:16px 14px 10px}.camera-state{font-size:8px}.camera-description{font-size:8px}.student-row{padding:9px 15px;gap:8px}.student-info strong,.student-info .student-name{font-size:11px}.student-list{max-height:322px}.roster-tools{padding:0 15px}.status-tabs{gap:17px}.toolbar-fields{gap:14px}.heading-date{font-size:11px}.topbar-right{gap:14px}.breadcrumb{font-size:11px}.toast{left:calc(50% + 104px)}}
@media(max-width:1000px){.sidebar{width:190px}.brand{font-size:21px}.brand-icon{width:36px;height:40px}.brand small{font-size:7px}.nav-item{padding:12px;font-size:12px;gap:10px}.app-shell{margin-left:190px}main{padding:25px 22px}.topbar{height:75px;padding:0 22px}.breadcrumb-current,.breadcrumb-slash{display:none}.prototype-label{display:none}.stats-grid{gap:10px}.stat-card{padding:12px}.stat-top{font-size:11px}.stat-icon{width:27px;height:27px}.stat-number strong{font-size:29px}.stat-foot{font-size:9px}.checkin-grid{grid-template-columns:1fr}.camera-viewport{aspect-ratio:1.8;min-height:300px}.scan-art{width:235px}.panel-heading h2{font-size:17px}.camera-idle-copy strong{font-size:14px}.camera-idle-copy span{font-size:11px}.camera-description{font-size:11px}.camera-state{font-size:11px}.roster-panel .student-list{height:320px;max-height:320px;min-height:320px}.student-info strong,.student-info .student-name{font-size:14px}.student-info small,.student-info .student-code{font-size:10px}.badge,.student-time{font-size:11px}.status-tabs button{font-size:13px}.search-field input{font-size:13px}.roster-footer{font-size:10px}.bottom-grid{grid-template-columns:1fr}.tip-card{min-height:200px}.tip-card h3 br{display:none}.tip-card p br{display:none}.tip-card .eyebrow{font-size:9px}.tip-card p{font-size:13px}.tip-decoration{right:25px}.activity-item,.activity-row{font-size:13px}.heading-date{display:none}.toast{left:calc(50% + 95px)}}
@media(max-width:740px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:234px}.sidebar.open{transform:translateX(0)}.sidebar.open~.app-shell{margin:0}.sidebar-backdrop.open{display:block;position:fixed;inset:0;background:#15322750;z-index:29;border:0}.app-shell{margin:0}.mobile-menu{display:inline-grid;margin-left:-4px}.breadcrumb{gap:7px;font-size:12px}.breadcrumb-icon{display:none}.topbar{height:68px;padding:0 18px}.topbar-right{gap:10px}.teacher-name small{display:none}.teacher-avatar{height:32px;width:32px;font-size:14px;margin:0}.teacher-name{font-size:12px}.topbar-divider{display:none}main{padding:25px 18px 18px}.page-heading{margin-bottom:22px}.page-heading h1{font-size:27px}.page-heading p{font-size:12px}.eyebrow{font-size:8px}.toolbar{gap:10px;flex-wrap:wrap;margin-bottom:18px}.toolbar-fields{gap:10px;flex:1}.toolbar-divider{display:none}.select-field{padding:0 8px;font-size:12px;gap:5px}.select-field select{padding-left:4px;font-size:12px}.date-field{gap:5px}.date-field input{max-width:122px;font-size:11px}.toolbar>.button{padding:9px 11px;font-size:11px}.stats-grid{grid-template-columns:repeat(2,1fr);gap:11px;margin-bottom:20px}.stat-card{padding:15px 16px}.stat-top{font-size:12px}.stat-number strong{font-size:32px}.stat-foot{font-size:10px}.mini-progress{position:absolute;right:0;left:0;bottom:-7px}.stat-green{padding-bottom:22px}.checkin-grid{gap:19px}.camera-viewport{min-height:295px;aspect-ratio:1.4;margin:0 15px}.camera-controls{margin:16px 15px 8px}.camera-description{font-size:9px;padding:0 12px}.camera-idle-copy strong{font-size:12px}.camera-idle-copy span{font-size:10px}.panel-heading h2{font-size:16px}.panel-heading p{font-size:10px}.panel-heading{padding:19px 17px}.camera-state{font-size:9px}.scan-art{width:220px}.roster-title{gap:8px}.student-row{padding:12px 17px}.student-info strong,.student-info .student-name{font-size:13px}.status-tabs{gap:24px}.status-tabs button{font-size:12px}.student-list{min-height:315px}.tip-card{padding:24px 19px}.bottom-grid{gap:19px;margin-top:19px}.main-footer{align-items:flex-start;font-size:8px;gap:20px;line-height:1.8}.main-footer>span:last-child{white-space:nowrap}.toast{left:50%;font-size:12px;width:max-content}.table-toolbar{align-items:flex-start;flex-direction:column;gap:10px;margin:0 17px 17px}.table-toolbar .search-field{width:100%}.full-panel .panel-heading{align-items:flex-start;gap:10px}.full-panel .panel-heading .button{font-size:11px;padding:9px 10px}.report-intro{align-items:flex-start;flex-direction:column}.section-intro h2{font-size:18px}.report-totals,.summary-grid{grid-template-columns:1fr}.settings-panel form{padding:5px 18px 20px}.modal-header{padding:20px}.modal-body{padding:20px}.modal-actions{padding:16px 20px}.info-strip{font-size:11px;padding:13px}.summary-card,.report-card{padding:20px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Legible Thai labels and shared interactive components. */
.workspace-label,.sidebar-note p,.sidebar-note>span,.sidebar-foot,.brand small{font-size:12px}
.brand small{font-size:8px}.sidebar-note strong,.nav-item{font-size:14px}.nav-dot{display:none}.nav-item.active .nav-dot{display:block}
.breadcrumb,.teacher-name,.prototype-label,.page-heading p,.heading-date,.select-field,.select-field select,.date-field input,.button{font-size:14px}
.teacher-name small,.eyebrow,.sidebar-foot,.sidebar-note>span{font-size:12px}.eyebrow{font-size:10px}.stat-top{font-size:14px}.stat-number>span{font-size:13px}.stat-foot{font-size:12px;line-height:1.6}.stat-card{padding-bottom:20px}.stat-number{margin:6px 0 5px}
.panel-heading p,.camera-state,.camera-description,.camera-idle-copy span,.count-pill,.subtle-label,.roster-footer,.student-info>span,.activity-info>span,.activity-item time,.main-footer,.student-time,.list-header{font-size:12px}
.panel-heading h2{font-size:18px}.panel-heading p{color:#75877b}.camera-state{white-space:normal;text-align:center}.camera-state.is-live{color:var(--green);background:var(--mint)}.camera-state.is-live>span:first-child{background:var(--green)}
.camera-idle-copy strong,.search-field input,.status-tabs button,.student-info strong,.student-info .student-name,.badge,.activity-item,.activity-row{font-size:14px}
.camera-description{line-height:1.8;color:#74897b}.camera-idle-copy strong{color:#c2d9cc}.camera-idle-copy span{color:#92b6a5}.camera-bottomline,.demo-tag,.camera-resolution{font-size:11px}.camera-bottomline{color:#8cb39f}
.student-info>span{display:block;margin-top:3px;color:#8a9b90}.student-info>span>span{display:inline}.student-attendance{display:flex;align-items:flex-end;flex-direction:column;gap:3px}.badge svg{width:12px;height:12px}.badge{padding:2px 6px;font-size:12px}.row-action{width:26px}.row-action svg{width:15px;height:15px}.student-row{min-height:69px}
.activity-info>span{display:block;color:#8a9c8f;line-height:1.7;margin-top:3px}.activity-item time{font-family:var(--number);color:#8ca193;margin-left:auto}.activity-icon.is-late{color:#b29458;background:#faf3e6}.activity-icon svg{width:14px;height:14px}.activity-item{padding:12px 0}.activity-info{min-width:0}.activity-info strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.roster-footer>span:last-child{font-size:10px}.search-field{height:42px}.status-tabs{gap:18px}.student-list{max-height:363px}.roster-title{flex-wrap:wrap;row-gap:4px}.list-header>span:last-child{margin-right:22px}.tip-card p{font-size:13px;color:#688765}.tip-card .eyebrow{font-size:9px}.tip-card h3{font-size:23px}.tip-card{padding-top:30px}.main-footer{font-size:11px;color:#84978a}.stat-foot{color:#829386}.heading-date{color:#708779}.stat-top{color:#677e6d}.student-time{color:#8a9e90}.badge.status-pending{color:#718175}.badge.status-present{color:#38805a}.badge.status-late{color:#9a702e}.count-pill{color:#5a7c64}
.table-student{display:flex;align-items:center;gap:10px;white-space:nowrap}.table-student strong{font-weight:500;font-size:14px}.table-scroll{overflow:auto}.data-table{background:#fff}.data-table th{font-size:13px;white-space:nowrap}.data-table td{font-size:14px}.muted{color:#8a9c8f;font-size:13px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.modal-student-name{font-size:18px!important;font-weight:500;color:var(--ink)!important;margin-bottom:0}.help-step{margin-bottom:18px}.help-step strong{font-size:15px}.help-step p{margin:5px 0}.toast:not(.visible){display:none}.toast-error{background:#865441}
.report-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.report-stat{padding:22px;background:#fff;border:1px solid var(--line);border-radius:10px}.report-stat>span{display:block;font-size:13px;color:#7a9281}.report-stat strong{display:block;font:700 28px var(--number);margin-top:15px;color:var(--green)}.report-stat small{font-size:13px;font-family:var(--font);font-weight:400}.report-table-heading{margin:28px 0 18px}.report-table-heading h3{font-size:19px;font-weight:500;margin:0 0 5px}.report-table-heading p{margin:0}.dashboard-summary+.panel{margin-top:20px}.sidebar-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:#15322750;z-index:29;border:0}
@media(min-width:1001px){.camera-viewport{min-height:340px}.camera-controls .button{padding-left:12px;padding-right:12px}.student-list{height:335px}.scanner-panel .panel-heading{align-items:flex-start}.camera-state{max-width:115px;font-size:11px}}
@media(max-width:1200px) and (min-width:1001px){.checkin-grid{grid-template-columns:1fr}.camera-viewport{aspect-ratio:1.9}.student-list{height:350px;max-height:350px}.stat-top{font-size:13px}.stat-foot{font-size:11px}}
@media(max-width:1000px){.report-grid{grid-template-columns:repeat(2,1fr)}.stats-grid{grid-template-columns:repeat(2,1fr)}.toolbar{flex-wrap:wrap}.date-field input{max-width:144px}.teacher-name{font-size:13px}.camera-viewport{min-height:330px}.sidebar-note>span{font-size:10px}}
@media(max-width:740px){.teacher-name{display:none}.breadcrumb{font-size:12px}.topbar-right{gap:8px}.topbar{padding:0 14px}.stats-grid{gap:10px}.stat-card{padding:15px 14px 20px}.stat-top{font-size:13px}.stat-foot{font-size:11px}.stat-icon{width:25px;height:25px}.page-heading p{font-size:14px}.page-heading h1{font-size:28px}.toolbar-fields{width:100%;flex-basis:100%;justify-content:space-between}.toolbar>.button{font-size:13px;min-height:36px;padding:7px 12px}.select-field,.select-field select,.date-field input{font-size:13px}.camera-viewport{min-height:305px}.panel-heading h2{font-size:17px}.scanner-panel .panel-heading{align-items:flex-start}.scanner-panel .panel-heading p{font-size:11px}.camera-state{font-size:10px;max-width:100px}.camera-idle-copy strong{font-size:13px}.camera-idle-copy span{font-size:11px}.camera-description{font-size:11px}.student-info strong,.student-info .student-name{font-size:13px}.student-info>span{font-size:11px}.badge,.student-time{font-size:11px}.student-row{gap:8px;padding:11px 13px}.avatar{width:29px;height:29px}.row-action{width:22px}.roster-tools{padding:0 13px}.status-tabs{gap:20px}.status-tabs button{font-size:13px}.roster-footer{font-size:10px;padding:12px 13px}.main-footer{font-size:9px}.report-grid{gap:10px}.report-stat{padding:15px}.report-stat>span{font-size:12px}.form-grid{gap:12px}.tip-card h3{font-size:21px}}

/* Keep the camera preview inside narrow cards, regardless of aspect ratio. */
.camera-viewport{aspect-ratio:auto;min-height:0;height:360px}
@media(max-width:1000px){.camera-viewport{height:340px}}
@media(max-width:740px){.camera-viewport{height:305px}}

/* Connected attendance and enrollment. */
.auth-overlay{position:fixed;inset:0;z-index:80;display:grid;place-items:center;background:radial-gradient(ellipse at 20% 10%,#e5f0e8,transparent 65%),#f4f7f5;padding:24px;overflow:auto}
.auth-card{width:100%;max-width:440px;padding:35px;background:#fff;border:1px solid #e0e9e2;border-radius:18px;box-shadow:0 15px 60px #224c3610}.auth-brand{display:flex;align-items:center;gap:12px;font-size:27px;font-weight:600;margin-bottom:30px}.auth-card .eyebrow{font-size:10px}.auth-card h1{font-size:25px;font-weight:600;margin:12px 0 9px}.auth-card>p{font-size:14px;line-height:1.85;color:#7f9285;margin-bottom:24px}.auth-card .button{width:100%;font-size:16px}.auth-footer{display:flex;align-items:center;justify-content:center;gap:7px;font-size:12px;color:#91a194;margin-top:27px}.auth-footer svg{width:16px;height:16px}.setup-link{display:block;text-align:center;margin-top:16px;color:var(--green);text-decoration:underline;font-size:14px}.logout-button{font-size:12px;min-height:32px;padding:6px 10px}
#face-overlay{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;pointer-events:none;transform:scaleX(-1);z-index:1}.camera-topline,.camera-bottomline{z-index:2}.scan-feedback{margin:14px 20px 10px;background:#f2f7f3;border:1px solid #e3eee6;border-radius:8px;padding:12px 14px;line-height:1.7}.scan-feedback strong{font-size:15px;font-weight:500}.scan-feedback p{font-size:12px;color:#7a9282;margin:4px 0 0}.scan-feedback.success{background:#eaf7ed;border-color:#b9dcc4}.scan-feedback.error{background:#fff3ec;border-color:#ead3c4}.camera-picker{display:flex;align-items:center;gap:10px;font-size:12px;color:#84978b;margin:14px 20px}.camera-picker select{min-width:0;flex:1;max-width:100%;border:1px solid #e1e9e2;background:white;border-radius:5px;padding:7px;font-size:12px;color:#526e5a}.camera-controls .button{white-space:normal;min-height:43px}.camera-controls .button-secondary{flex:1}.student-list{max-height:520px}.face-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.face-enroll-button,.face-remove-button{font-size:12px;padding:5px 9px;border:1px solid #dbe8de;background:#f4faf5;color:#377b53;border-radius:5px}.face-remove-button{background:white;color:#9d7067}.enroll-preview{position:relative;background:#18352e;border-radius:9px;overflow:hidden;margin:14px 0;min-height:230px}.enroll-preview video{display:block;width:100%;max-height:300px;object-fit:contain;object-position:center;transform:scaleX(-1)}.enroll-consent{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.8;color:#5c7864;margin:17px 0}.enroll-consent input{margin-top:5px;accent-color:var(--green);width:18px;height:18px;flex-shrink:0}.enroll-capture-status{background:#f1f7f2;border-radius:8px;padding:12px;font-size:13px;line-height:1.8;color:#557f60}.enroll-samples{display:flex;gap:8px;align-items:center;margin:12px 0;font-size:13px;color:#60866d}.enroll-sample,.sample-dot{padding:7px 12px;border-radius:6px;background:#edf4ee;border:1px solid #dce9df}.enroll-sample.done,.sample-dot.done{background:#dceee0;color:#297548}.enroll-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.storage-note strong{font-size:14px}.badge.status-auto{background:#edf6ee;color:#39815a}
@media(max-width:740px){.auth-card{padding:26px 22px}.auth-card h1{font-size:23px}.auth-overlay{padding:18px}.topbar-right .logout-button{font-size:10px;padding:5px 7px}.teacher-avatar{display:none}.camera-controls .button{font-size:12px;padding:9px}.scan-feedback{margin:12px 15px}.scan-feedback strong{font-size:14px}.camera-picker{margin:12px 15px}.demo-tag{font-size:10px}.roster-panel .student-list{height:340px;max-height:340px}}
.enroll-controls,.student-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.button-small{font-size:12px;min-height:31px;padding:5px 9px}.enroll-sample.complete{background:#dceee0;color:#297548;border-color:#aacdb5}.enroll-sample.complete svg{width:14px;height:14px}#connection-label[data-connected="false"]{color:#a67d4d;background:#fbf4e9}#connection-label[data-connected="true"]{color:#397a59;background:#edf6ef}

.refresh-button{padding:7px 10px;font-size:12px;white-space:nowrap}.refresh-button svg{width:16px;height:16px}@media(max-width:740px){.topbar{height:auto;min-height:68px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px;gap:10px}.topbar-right{margin-left:auto;flex-wrap:wrap}.topbar-right .refresh-button{font-size:11px;padding:5px 7px}}
