:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--ink:#241e38;--muted:#655e75;--line:#e9e4ef;--surface:#fff;--violet:#5a36aa;--violet-dark:#47278e;--tint:#f0eafb;--shadow:0 3px 12px #28134c08}*{box-sizing:border-box}body{color:var(--ink);background:#f8f7fb;margin:0;font-family:Noto Sans Thai,Thonburi,Leelawadee UI,system-ui,sans-serif;font-size:16px;line-height:1.55}button,select,input{font:inherit}button{cursor:pointer}button:disabled{cursor:default}button:focus-visible,select:focus-visible,input:focus-visible,a:focus-visible{outline-offset:3px;outline:3px solid #8b64cc}h1,h2,p{margin:0}svg{flex-shrink:0}.sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.shell{width:min(100% - 64px,1080px);margin-inline:auto}.site-header{background:var(--surface);border-bottom:1px solid var(--line)}.header-inner{justify-content:space-between;align-items:center;gap:12px;min-height:72px;display:flex}.brand{align-items:center;gap:12px;font-size:1.125rem;font-weight:750;display:flex}.brand-mark{background:var(--violet);color:#fff;border-radius:13px;place-items:center;width:40px;height:40px;display:grid}.header-nav{align-items:center;gap:4px;display:flex}.header-nav a{min-height:44px;color:var(--muted);white-space:nowrap;border-radius:10px;place-items:center;padding-inline:10px;font-size:.875rem;font-weight:700;text-decoration:none;display:grid}.header-nav a:hover,.header-nav a[aria-current=page]{background:var(--tint);color:var(--violet-dark)}.account-controls{align-items:center;gap:8px;min-width:0;display:flex}.account-avatar-link{width:44px;height:44px;color:inherit;border-radius:50%;flex:none;place-items:center;text-decoration:none;display:grid}.account-avatar-link:hover,.account-avatar-link[aria-current]{background:var(--tint)}.account-avatar{width:var(--avatar-size,36px);height:var(--avatar-size,36px);background:var(--tint);color:var(--violet-dark);font-size:var(--avatar-text,1rem);border-radius:50%;flex:none;place-items:center;font-weight:800;display:grid;overflow:hidden}.account-avatar img{object-fit:cover;width:100%;height:100%}.account-controls button{white-space:nowrap;flex:none}.main{padding-block:34px 120px}.page-heading{justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:24px;display:flex}h1{letter-spacing:-.025em;font-size:clamp(1.875rem,4vw,2.4rem);font-weight:790;line-height:1.25}.page-heading p{color:var(--muted);margin-top:6px}.today-label{color:var(--muted);align-items:center;gap:8px;padding-bottom:4px;font-size:.875rem;display:inline-flex}.filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin-bottom:16px;padding:16px 18px;display:grid}.panel{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow);border-radius:19px}.field{gap:6px;min-width:0;display:grid}.field>label{font-size:.875rem;font-weight:700}.control{align-items:center;min-width:0;display:flex;position:relative}.control .field-icon{pointer-events:none;color:var(--violet);position:absolute;left:13px}.control .chevron{pointer-events:none;color:var(--muted);position:absolute;right:12px}.control select,.control input{width:100%;min-width:0;min-height:48px;color:var(--ink);background:#fcfbfe;border:1px solid #ded7e8;border-radius:11px;padding:0 12px 0 40px}.control select{appearance:none;padding-right:34px}.control input::-webkit-date-and-time-value{text-align:left}.control input::-webkit-calendar-picker-indicator{cursor:pointer}.status-present{--status-text:#176042;--status-bg:#eaf6ee;--status-line:#aed8bd}.status-late{--status-text:#865006;--status-bg:#fff4da;--status-line:#ebca82}.status-absent{--status-text:#a02b48;--status-bg:#fcebf0;--status-line:#eeb4c4}.status-personal{--status-text:#53328e;--status-bg:#f1ebfb;--status-line:#cebeef}.status-sick{--status-text:#205c88;--status-bg:#e9f2fb;--status-line:#adcde9}.status-unmarked{--status-text:#60586e;--status-bg:#f2eff5;--status-line:#dbd4e4}.summary{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:0 0 21px;padding:0;list-style:none;display:grid}.metric{align-items:center;gap:10px;min-width:0;padding:13px 12px;display:flex}.metric-icon{width:35px;height:35px;color:var(--status-text);background:var(--status-bg);border-radius:10px;flex:none;place-items:center;display:grid}.metric-label{color:var(--muted);white-space:nowrap;font-size:.875rem;display:block}.metric-count{font-variant-numeric:tabular-nums;font-size:1.375rem;font-weight:760;line-height:1.2;display:block}.roster{overflow:hidden}.roster-heading{justify-content:space-between;align-items:center;gap:14px;padding:17px 20px;display:flex}.roster-heading h2{font-size:1.2rem;font-weight:750}.roster-heading p{color:var(--muted);font-size:.875rem}.bulk{min-height:44px;color:var(--violet-dark);background:#f6f1fd;border:1px solid #d9ccef;border-radius:10px;justify-content:center;align-items:center;gap:8px;padding:0 13px;font-size:.875rem;font-weight:700;display:inline-flex}.bulk:hover:not(:disabled){background:#ede4fa}.bulk:disabled{color:var(--muted);border-color:var(--line);background:#f6f4f8}.roster-columns,.student{grid-template-columns:44px minmax(180px,1fr) minmax(390px,.98fr);align-items:center;gap:14px;padding-inline:20px;display:grid}.roster-columns{border-block:1px solid var(--line);min-height:40px;color:var(--muted);background:#faf8fd;font-size:.875rem;font-weight:650}.student-list{margin:0;padding:0;list-style:none}.student{min-height:65px}.student+.student{border-top:1px solid #efebf3}.student-number{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.875rem}.student-name{overflow-wrap:anywhere;align-items:center;gap:11px;min-width:0;font-weight:650;display:flex}.avatar{color:#57348d;background:#eee8fa;border-radius:12px;flex:none;place-items:center;width:37px;height:37px;font-weight:750;display:grid}.avatar-1{color:#275e4f;background:#e7f1ed}.avatar-2{color:#8d3452;background:#fbe9ee}.avatar-3{color:#335483;background:#e8effc}.desktop-statuses{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;display:grid}.status-option{min-height:38px;color:var(--muted);white-space:nowrap;background:#fff;border:1px solid #e6e0ed;border-radius:9px;justify-content:center;align-items:center;gap:5px;padding:0 4px;font-size:.875rem;display:inline-flex}.status-option:hover{color:var(--status-text);background:var(--status-bg)}.status-option[aria-pressed=true]{color:var(--status-text);border-color:var(--status-line);background:var(--status-bg);font-weight:750}.mobile-status{display:none}.save-bar{inset-inline:0;z-index:1;background:var(--surface);border-top:1px solid var(--line);position:fixed;bottom:0;box-shadow:0 -3px 18px #28134c0b}.save-inner{padding-block:12px max(12px, env(safe-area-inset-bottom));justify-content:space-between;align-items:center;gap:12px;display:flex}.save-meta{align-items:center;gap:11px;min-width:0;display:flex}.save-icon{width:38px;height:38px;color:var(--violet);background:var(--tint);border-radius:11px;place-items:center;display:grid}.save-meta strong{overflow-wrap:anywhere;font-size:.9375rem;display:block}.save-meta p{color:var(--muted);font-size:.875rem}.save-meta .error{color:#a02b48}.save-button{background:var(--violet);color:#fff;border:0;border-radius:12px;justify-content:center;align-items:center;gap:8px;min-height:48px;padding:0 18px;font-weight:750;display:inline-flex}.save-button:hover:not(:disabled){background:var(--violet-dark)}.save-button:disabled{color:#655783;background:#ede7f7}.status-dialog{border:1px solid var(--line);width:min(460px,100% - 32px);max-height:calc(100dvh - 24px);color:var(--ink);border-radius:20px;margin:auto;padding:20px;box-shadow:0 14px 60px #241e3833}.status-dialog::backdrop{background:#1d112b66}.dialog-heading{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px;display:flex}.dialog-heading h2{font-size:1.15rem}.dialog-heading p{color:var(--muted);font-size:.875rem}.dialog-close{width:44px;height:44px;color:var(--ink);background:#f3eff8;border:0;border-radius:11px;place-items:center;display:grid}.dialog-options{gap:8px;display:grid}.dialog-options .status-option{justify-content:flex-start;gap:10px;min-height:48px;padding-inline:14px;font-size:1rem}.chosen-icon{margin-left:auto}.empty-state{color:var(--muted);justify-items:start;gap:8px;padding:16px 20px;display:grid}.empty-state a{color:var(--violet-dark)}.empty-state .bulk{text-decoration:none}.manage-panel{gap:12px;margin-bottom:16px;padding:16px 20px;display:grid}.manage-panel h2,.manage-form h2{font-size:1.2rem}.manage-panel p,.manage-form p,.manage-notice{color:var(--muted);overflow-wrap:anywhere}.manage-row{justify-content:space-between;align-items:center;gap:10px;display:flex}.manage-select{flex:1}.manage-actions{flex-wrap:wrap;gap:8px;display:flex}.manage-row .save-button,.manage-form .save-button{width:auto;min-height:44px;padding-inline:12px;font-size:.875rem}.manage-student{border-top:1px solid var(--line);padding-block:8px}.manage-student .manage-actions{flex:none}.manage-panel .danger{color:#a02b48;background:#fff7f9;border-color:#eeb4c4}.manage-panel .danger:hover{background:#fcebf0}.manage-form{gap:14px;display:grid}.manage-form .manage-actions{justify-content:flex-end}.manage-form .control input{padding-inline:12px}.manage-form .form-error{color:#a02b48}.manage-form .delete-button{background:#a02b48}.manage-form .delete-button:hover:not(:disabled){background:#82213a}.login-page{max-width:430px;padding-block:clamp(32px,12vh,120px)}.login-panel{gap:18px;padding:clamp(18px,5vw,28px);display:grid}.login-panel .manage-form .save-button{width:100%}.password-panel{max-width:480px}.account-avatar-editor{align-items:center;gap:14px;display:flex}.account-avatar-editor .account-avatar{--avatar-size:84px;--avatar-text:1.75rem}.account-avatar-upload{justify-items:start;gap:7px;min-width:0;display:grid}.account-avatar-upload label{cursor:pointer}.account-avatar-upload input:focus-visible+label{outline-offset:3px;outline:3px solid #8b64cc}.account-avatar-upload input:disabled+label{opacity:.6;cursor:default}.account-avatar-upload p{font-size:.8125rem}.account-avatar-remove{justify-self:start}.page-heading .bulk{text-decoration:none}.user-row{flex-wrap:wrap}.role-picker .control select{padding-left:12px}.student-fields-panel summary{cursor:pointer;padding-block:4px;font-weight:700}.student-fields-panel>.bulk{justify-self:start}.student-fields-panel .manage-form{border-top:1px solid var(--line);padding-top:12px}.field-checkbox{align-items:center;gap:8px;display:flex}.delete-list{overflow-wrap:anywhere;max-height:30vh;margin:0;padding-inline-start:24px;overflow-y:auto}#roster-list{width:100%;min-width:0;color:var(--ink);font:inherit;resize:vertical;background:#fcfbfe;border:1px solid #ded7e7;border-radius:10px;padding:10px 12px}#roster-list:focus-visible{outline-offset:3px;outline:3px solid #8b64cc}.holiday-item{overflow-wrap:anywhere;min-width:0;display:grid}.holiday-item time{color:var(--muted);font-size:.875rem}.holiday-notice{align-items:flex-start;gap:12px;padding:18px;display:flex}.holiday-notice svg{color:var(--violet);margin-top:3px}.holiday-notice h2{overflow-wrap:anywhere;font-size:1.2rem}.holiday-notice div{min-width:0}.holiday-notice p{color:var(--muted)}@media (max-width:850px){.shell{width:min(100% - 32px,630px)}.header-inner{min-height:62px}.brand-mark{border-radius:11px;width:36px;height:36px}.main{padding-top:22px;padding-bottom:calc(123px + env(safe-area-inset-bottom))}.page-heading{margin-bottom:17px}.today-label{display:none}.filters{gap:10px;padding:12px}.summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:15px}.metric{border-radius:12px;gap:6px;padding:9px 7px}.metric-icon{border-radius:8px;width:26px;height:29px}.metric-icon svg{width:16px;height:16px}.metric-count{font-size:1.1rem}.roster-heading{gap:9px;padding:12px}.roster-heading h2{font-size:1.08rem}.bulk{gap:5px;padding-inline:8px}.roster-columns,.desktop-statuses{display:none}.student{min-height:0;padding:0;display:block}.student-list{border-top:1px solid var(--line)}.mobile-status{text-align:left;width:100%;min-height:62px;color:var(--ink);background:#fff;border:0;grid-template-columns:19px minmax(0,1fr) auto;align-items:center;gap:8px;padding:7px 11px;display:grid}.mobile-status:hover{background:#fbf9fd}.mobile-status:focus-visible{outline-offset:-3px}.mobile-status .student-name{gap:7px}.avatar{border-radius:9px;width:29px;height:29px}.status-pill{color:var(--status-text);background:var(--status-bg);white-space:nowrap;border-radius:8px;justify-content:center;align-items:center;gap:4px;padding:4px 7px;font-size:.875rem;font-weight:650;display:inline-flex}.save-icon{display:none}.save-inner{gap:7px;display:grid}.save-meta>div{flex-wrap:wrap;align-items:baseline;gap:0 8px;display:flex}.save-button{width:100%}.status-dialog{width:100%;padding-bottom:max(20px, env(safe-area-inset-bottom));border-radius:22px 22px 0 0;margin:auto 0 0}.desktop-identity{display:none}.manage-panel{padding-inline:12px}.manage-panel .manage-select{flex-basis:100%}.manage-row:has(.manage-select){flex-wrap:wrap}.header-inner{flex-wrap:wrap;gap:4px;padding-block:9px 5px}.header-nav{order:1;width:100%}.header-nav a{flex:1;padding-inline:5px}}@media (max-width:365px){.shell{width:calc(100% - 24px)}.metric-icon,.mobile-status .avatar{display:none}.control select,.control input{padding-left:10px}.control .field-icon{display:none}.header-inner,.brand{gap:7px}}
