:root{--green:#164f46;--gold:#b58a3b;--gold-light:#f8f1df;--line:#e5eae5;--muted:#687c73;color-scheme:light}
body{background:#f6f8f5}.brand{font-size:25px;letter-spacing:-.8px;gap:10px;white-space:nowrap}.brand-icon{display:block;object-fit:contain;flex:0 0 42px;width:42px;height:42px;border-radius:28%;box-shadow:0 4px 12px #173d3812}.brand small{font-size:10px;font-weight:550;letter-spacing:1.3px;margin-top:1px;direction:ltr;text-align:right}.brand>span:last-child{min-width:0}.auth-brand{font-size:32px}.auth-brand .brand-icon{width:51px;height:51px;flex-basis:51px;box-shadow:0 0 0 1px #ffffff24}.auth-brand small{color:#ecdba9}.auth-story{background:radial-gradient(ellipse at 100% 0,#3c695c 0,transparent 65%),#173f39}.auth-overline{color:#edd397}.auth-benefits svg{color:#edd397}.auth-main{background:linear-gradient(145deg,#fffefb,#f4f7f1)}.auth-main .eyebrow{color:#88703e}.auth-form-box h2{line-height:1.55}.auth-submit{box-shadow:0 5px 14px #17483e18}.auth-main .input:focus{outline-color:#b79c65}.auth-secondary{color:#617267}.auth-foot{color:#6c7d72}.auth-loading .brand-icon{width:55px;height:55px;flex-basis:55px}
.sidebar{border-left-color:#dfe6de}.sidebar .brand{padding-left:0;padding-right:0}.sidebar-bottom{background:#f7f3e8}.sidebar-bottom .demo-dot{background:#b29452}.sidebar-bottom a{color:#675129}.sidebar-bottom p{color:#74816f}nav a.active{background:#edf3ec;box-shadow:inset -3px 0 #b7974b}nav a:hover{color:var(--green)}.institute{background:#fcfdfb}.institute b{line-height:1.7}.profile b{font-size:12px}.topbar{background:#ffffffed;backdrop-filter:blur(12px);border-bottom-color:#e7ece5}.top-left{min-width:0}.demo-badge{font-variant-numeric:tabular-nums}.page-head h1{letter-spacing:-.8px}.page-head p{line-height:1.9;max-width:650px}.card,.stat{box-shadow:0 2px 5px #183d3103}.card{overflow:hidden}.card-pad{overflow:visible}.card-head{gap:16px}.card-head p{line-height:1.8}.stat small{line-height:1.9;display:block}.stat strong{font-variant-numeric:tabular-nums;letter-spacing:-.6px}.stat-icon{background:#f1f4ec}.stat-top{gap:8px}.work-welcome{background:linear-gradient(120deg,#fffdf6,#f1f7ed)}
.btn{min-height:38px;transition:background-color .15s,box-shadow .15s,border-color .15s}.btn.primary:hover{background:#103d36;box-shadow:0 3px 9px #183d3518}.row-btn,.text-link,.student-name{border-radius:5px}.row-btn:hover,.text-link:hover{color:#745821}.icon-btn:hover{background:#f1f4ed}.input,textarea,select{border-color:#d9e2d9}.field{line-height:1.7}.field input::placeholder,.field textarea::placeholder{color:#8a978c}textarea{resize:vertical}.table-wrap{scrollbar-width:thin;scrollbar-color:#c5d3c5 transparent}tbody tr{transition:background-color .12s}tbody tr:hover{background:#f8faf4}th{font-weight:650;color:#536a5d}.student-cell small{font-variant-numeric:tabular-nums}.progress-mini>span:first-child{font-variant-numeric:tabular-nums}.notice{line-height:1.95}.notice a{text-decoration:underline;text-underline-offset:3px}.empty-state-cell{text-align:center!important;padding:32px!important;white-space:normal!important}.polish-empty{display:flex;flex-direction:column;align-items:center;gap:10px;color:#718376}.polish-empty svg{width:30px;height:30px;color:#b29757}.polish-empty b{font-size:14px;color:#415d4f}.polish-empty p{font-size:12px;max-width:420px;line-height:1.9}.polish-empty .btn{margin-top:6px}.drawer{box-shadow:-12px 0 50px #173b3020}.drawer-person h2{line-height:1.6}.tabs button{min-height:44px}.tabs button.active{border-bottom-color:#b29452}.detail{min-width:0}.detail b{overflow-wrap:anywhere}.detail small{line-height:1.8}.drawer-body .card{box-shadow:none}dialog{box-shadow:0 16px 80px #183b3030;border:1px solid #e1e8dc}dialog::backdrop{background:#173b304a;backdrop-filter:blur(3px)}.modal-copy{line-height:1.95}.form-actions{gap:10px}footer{line-height:1.9;color:#71846e}.print-brand{display:none}.mobile-nav-shade{display:none}.help-page{max-width:880px;margin:40px auto;padding:0 24px 48px}.help-header{padding:28px 0 32px;border-bottom:1px solid var(--line);margin-bottom:24px}.help-header .brand{padding:0 0 24px}.help-header h1{font-size:33px}.help-lead{color:var(--muted);line-height:1.9;margin-top:12px}.help-nav{display:flex;flex-wrap:wrap;gap:9px;margin-top:22px}.help-section{padding:27px;margin-bottom:17px}.help-section h2{margin-bottom:12px;font-size:20px}.help-section h3{margin:19px 0 8px}.help-section p,.help-section li{font-size:14px;line-height:2}.help-section ol,.help-section ul{padding-right:24px;margin-bottom:0}.help-section li+li{margin-top:8px}.help-step{display:inline-flex;color:#9a7a3a;font-size:11px;letter-spacing:.6px;margin-bottom:6px}.help-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:25px;color:var(--muted);font-size:12px}.help-notice{background:#f9f5e9;border-right:3px solid #c5a566;padding:15px 18px;border-radius:8px;margin-top:16px}.skip-link{position:fixed;top:8px;right:260px;transform:translateY(-160%);z-index:250;background:#fff;border:2px solid var(--green);padding:10px 18px;border-radius:8px}.skip-link:focus{transform:none}
@media(max-width:1150px){.brand{font-size:23px}.brand-icon{width:38px;height:38px;flex-basis:38px}.auth-brand{font-size:29px}.auth-brand .brand-icon{width:47px;height:47px;flex-basis:47px}}
@media(max-width:900px){.sidebar{z-index:80!important;box-shadow:-14px 0 35px #173b301c}.mobile-nav-shade:not([hidden]){display:block;position:fixed;inset:0;z-index:79;background:#183b304a;backdrop-filter:blur(2px)}.sidebar.open .brand{font-size:25px}.sidebar.open{padding-bottom:max(18px,env(safe-area-inset-bottom))}.mobile-menu{min-width:40px;min-height:40px}.skip-link{right:16px}.help-page{margin:15px auto;padding:0 16px 28px}}
@media(max-width:600px){.auth-mobile-brand .brand{font-size:28px;color:var(--green)}.auth-mobile-brand .brand small{color:#877043}.auth-main{padding:28px 22px}.auth-form-box h2{font-size:25px}.auth-submit{min-height:48px}.auth-secondary{font-size:12px}.auth-foot{font-size:11px}.auth-main .input{font-size:16px}.top-left .connection-btn{font-size:10px;padding:7px 9px}.top-left .connection-btn svg{display:none}.page-head h1{font-size:25px}.page-head .head-actions{gap:8px}.page-head .btn{font-size:11px;padding:9px 12px;min-height:40px}.work-welcome h2{font-size:23px}.stat strong{font-size:24px}.stat small{font-size:10px}.notice{font-size:11px}.help-header{padding-top:20px}.help-header h1{font-size:27px}.help-section{padding:21px}.help-section p,.help-section li{font-size:13px}.help-footer{align-items:flex-start;flex-direction:column}.drawer-person .btn{min-height:38px}.tabs button{min-height:44px}.form-actions .btn{min-height:42px}.table-bottom{line-height:1.8}.brand-icon{box-shadow:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{.print-brand{display:flex!important;justify-content:space-between;align-items:center;border-bottom:2px solid #b79a55;padding:0 0 14px;margin-bottom:22px;font-size:14px;color:#194c42}.print-brand b{font-size:20px}.print-brand small{display:block;color:#647464;font-size:11px}.mobile-nav-shade,.skip-link,.help-nav,.help-footer a{display:none!important}.card{box-shadow:none}.help-page{padding:0;margin:0;max-width:none}.help-section{break-inside:avoid;padding:18px}.help-section h2{break-after:avoid}.help-header{padding-top:0}.help-header h1{font-size:27px}a[href^="http"]::after{content:none}.table-wrap{overflow:visible!important}table{white-space:normal!important}.work-save-error{display:none!important}}
.help-nav{flex-direction:row}.auth-locked .skip-link{display:none}
.category-options{display:flex;flex-wrap:wrap;gap:10px}.category-options label{display:flex;align-items:center;gap:9px;min-height:44px;padding:9px 12px;border:1px solid var(--line);border-radius:9px;background:#f8faf6;cursor:pointer}.category-options label:has(input:checked){background:#edf4e8;border-color:#9bb79b}.category-options input{width:18px;height:18px;accent-color:var(--green)}.student-category-picker{min-width:0;border:1px solid var(--line);border-radius:12px;padding:16px}.student-category-picker legend{padding-inline:7px;font-weight:600}.attendance-bulk{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.attendance-bulk p{flex:1;min-width:min(250px,100%);line-height:1.9}.new-family-fields[hidden]{display:none}.family-phone{display:block;margin-block-start:5px;line-height:1.7}
.new-family-fields{grid-column:1/-1}
.filters .field,.report-controls .field{font-size:13px;font-weight:600;color:#354f47}.filters .field :is(input,select),.report-controls .field :is(input,select){font-size:14px;font-weight:400;min-height:40px}.notice a,.form-actions a,.head-actions a{overflow-wrap:anywhere}
@media(max-width:600px){.filters .field :is(input,select),.report-controls .field :is(input,select){font-size:16px}}
.weekly-arrows{display:flex;flex-wrap:wrap;gap:8px}.weekly-table table{min-width:1030px}.weekly-table th,.weekly-table td{text-align:start;vertical-align:top;padding:10px 8px}.weekly-table thead th,.weekly-table tbody th{background:#f6f8f5}.weekly-table tr>*:first-child{position:sticky;inset-inline-start:0;z-index:1;min-width:150px}.weekly-table th small{display:block;font-size:12px;color:var(--muted);font-weight:400}.weekly-mark{width:100%;min-width:100px;padding:7px 5px;font-size:13px}.weekly-mark:has(option[value=late]:checked){background:#fbf4df}.weekly-mark:has(option[value=absent]:checked){background:#f9ece8}.weekly-mark:has(option[value=present]:checked){background:#eef5ed}.weekly-time{display:block;min-height:28px;margin-block-start:3px}.weekly-time[hidden]{display:none}.weekly-footer{flex-wrap:wrap}.weekly-footer p{margin-inline-end:auto}
.weekly-range{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding:10px 14px;background:#f1f6f2;border-block:1px solid var(--line);color:#36574e;font-size:13px}.weekly-range strong{color:#164f46;font-weight:700}.weekly-scroll-hint{margin-inline-start:auto;color:#526b62}.weekly-attendance .weekly-table{max-height:clamp(285px,57vh,690px);overflow:auto}.weekly-table thead th{position:sticky;top:0;z-index:2;box-shadow:0 1px var(--line)}.weekly-table thead th:first-child{z-index:3}.weekly-table th strong{font-size:14px}.weekly-table tbody th{font-size:13px}.weekly-table .weekly-mark{min-height:38px}.weekly-table [data-week-fill]{min-height:32px}.weekly-footer [data-week-status]{font-size:13px}
@media(max-width:600px){.weekly-range{align-items:baseline}.weekly-scroll-hint{flex-basis:100%;margin:0}.weekly-table tr>*:first-child{min-width:120px;max-width:135px;white-space:normal}.weekly-table .weekly-mark{min-height:42px;font-size:16px}.weekly-footer .btn{flex:1 1 auto}.weekly-footer [data-week-status]{flex-basis:100%}}
.weekly-table .weekly-fill{margin-block-start:4px;min-height:34px;padding:5px 8px;background:#e7f1e9;color:#205342;border-color:#c9ddcd;font-size:12px}.weekly-table .weekly-fill:hover{background:#dbeadd}.weekly-table table{min-width:920px}

dialog:has(.attendance-report-panel){width:min(1180px,calc(100% - 28px));max-width:none}
.attendance-report-controls{display:grid;grid-template-columns:minmax(8rem,.65fr) minmax(10rem,1fr) minmax(9rem,.8fr) minmax(13rem,1.4fr);gap:10px;align-items:end}
.attendance-report-controls .field{min-width:0;margin:0}
.attendance-report-controls .field[hidden]{display:none}
.attendance-report-controls :is(input,select){width:100%;min-width:0}
.attendance-report-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin-block:14px}
.attendance-report-toolbar p{color:#526b62;font-size:13px;margin:0}
.attendance-report-sheet{color:#203a32}
.attendance-report-sheet header{padding:14px 16px;border-block-start:3px solid #537a68;background:#f0f5f0}
.attendance-report-sheet header h1{font-size:21px;margin:0 0 3px}
.attendance-report-sheet header p{margin:0;color:#456054;font-size:13px}
.attendance-report-legend{display:flex;flex-wrap:wrap;gap:4px 16px;list-style:none;padding:8px 0;margin:0;font-size:12px}
.attendance-report-legend b{display:inline-block;min-width:1em;text-align:center}
.attendance-report-sheet table{width:100%;table-layout:fixed;border-collapse:collapse}
.attendance-report-scroll table{min-width:690px}
.attendance-report-month .attendance-report-scroll table{min-width:1050px}
.attendance-report-name{width:10rem}
.attendance-report-count{width:2.4rem}
.attendance-report-sheet :is(th,td){border:1px solid #d7e0d8;padding:5px 3px;text-align:center;font-size:12px;vertical-align:middle;white-space:normal;overflow-wrap:anywhere}
.attendance-report-sheet thead th{background:#e8f0e9;color:#244b3b}
.attendance-report-sheet th[scope=row]{text-align:start;position:sticky;inset-inline-start:0;background:#fff}
.attendance-report-sheet thead tr:first-child th:first-child{position:sticky;inset-inline-start:0;z-index:1}
.attendance-report-sheet .attendance-report-class th{text-align:start;background:#e8f0e9;color:#244b3b}
.attendance-report-sheet tbody tr:nth-child(odd):not(.attendance-report-class)>*{background:#f6f9f6}
.attendance-report-sheet .attendance-report-mark[data-report-mark=absent]{color:#982f32;font-weight:700}
.attendance-report-sheet .attendance-report-mark[data-report-mark=late]{color:#82510a;font-weight:700}
.attendance-report-sheet .attendance-report-mark[data-report-mark=present]{color:#256047}
.attendance-report-mark small{display:block;font-size:9px;line-height:1.2;white-space:nowrap}
.attendance-report-sheet .attendance-report-total{font-variant-numeric:tabular-nums;font-weight:600}
@media(max-width:780px){
 .attendance-report-controls{grid-template-columns:repeat(2,minmax(0,1fr))}
 .attendance-report-toolbar .btn{flex-grow:1}
}
@media(max-width:480px){
 .attendance-report-search{grid-column:1/-1}
}
@media(max-width:330px){
 .attendance-report-controls{grid-template-columns:minmax(0,1fr)}
}
@media print{
 @page attendance-week{size:A4 portrait;margin:10mm}
 @page attendance-month{size:A4 landscape;margin:10mm}
 .attendance-report-week{page:attendance-week}
 .attendance-report-month{page:attendance-month}
 .attendance-report-sheet{print-color-adjust:exact}
 .attendance-report-sheet header{padding:7px 10px}
 #exam-individual-print .attendance-report-sheet h1{font-size:18px}
 .attendance-report-sheet header p,.attendance-report-legend{font-size:10px}
 .attendance-report-sheet .attendance-report-name{width:38mm}
 .attendance-report-sheet .attendance-report-count{width:8mm}
 #exam-individual-print .attendance-report-sheet :is(th,td){padding:3px 2px;font-size:10px;line-height:1.25;position:static}
 #exam-individual-print .attendance-report-month :is(th,td){padding:3px 1px;font-size:8px}
 #exam-individual-print .attendance-report-month .attendance-report-mark small{font-size:7px}
 .attendance-report-sheet .attendance-report-class{break-after:avoid}
 .attendance-report-legend{break-after:avoid}
}

.monthly-work-grid{max-height:clamp(245px,60vh,625px);overflow:auto;position:relative}
.monthly-work-grid table{table-layout:fixed;min-width:calc(128px + var(--work-columns,7) * 72px);border-collapse:separate;border-spacing:0}
.monthly-work-grid .monthly-work-name{width:128px}
.monthly-work-grid :is(th,td){padding:5px 4px;white-space:normal;overflow-wrap:anywhere}
.monthly-work-grid thead th{position:sticky;top:0;z-index:2;background:#e9f1ea;color:#204d3e;text-align:center;vertical-align:bottom;box-shadow:0 1px #cbd9ce}
.monthly-work-grid thead th:first-child,.monthly-work-grid tbody th{position:sticky;inset-inline-start:0;text-align:start;padding-inline:9px}
.monthly-work-grid thead th:first-child{z-index:3}
.monthly-work-grid tbody th{z-index:1;background:#f6f9f5;font-size:13px}
.monthly-work-grid thead small,.monthly-work-print thead small{display:block;font-weight:400;font-size:10px}
.monthly-work-cell{display:flex;justify-content:center;align-items:center;gap:3px}
.monthly-work-cell input{width:100%;max-width:56px;min-width:0;min-height:34px;padding:2px;text-align:center;font-variant-numeric:tabular-nums;appearance:textfield}
.monthly-work-cell input::-webkit-inner-spin-button,.monthly-work-cell input::-webkit-outer-spin-button{appearance:none;margin:0}
.monthly-work-cell input::placeholder{font-size:11px}
.monthly-work-details{flex:none;width:22px;height:25px;padding:0;line-height:1;border:1px solid #c7d8ca;border-radius:5px;color:#315a4a;background:#f6faf6;cursor:pointer}
.monthly-work-details.has-details{background:#dcecdf;border-color:#83a791}
.monthly-work-details:disabled{opacity:.5;cursor:default}
@media(max-width:600px){.monthly-work-cell input{font-size:16px}}
@media print{
 @page monthly-work-blank{size:A4 portrait;margin:10mm}
 @page monthly-work-blank-wide{size:A4 landscape;margin:10mm}
 .monthly-work-print{page:monthly-work-blank}
 .monthly-work-print-wide{page:monthly-work-blank-wide}
 .monthly-work-print header{margin-bottom:10px}
 .monthly-work-print table{border-collapse:collapse;print-color-adjust:exact}
 .monthly-work-print-name{width:37mm}
 #exam-individual-print .monthly-work-print :is(th,td){border:1px solid #a7b6ac;white-space:normal;overflow-wrap:anywhere;text-align:center}
 #exam-individual-print .monthly-work-print th[scope=row]{text-align:start}
 .monthly-work-print thead th{background:#eaf1ea}
 .monthly-work-print tbody tr{height:8mm}
}

.student-list-filters .field{margin:0}
.student-list-filters{align-items:end}
@media(max-width:650px){
 .student-list-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .student-list-filters>.search-field{grid-column:1/-1}
 .student-list-filters>*{min-width:0;max-width:100%}
 .student-list-filters select{width:100%}
}
