:root{color:#182230;font-synthesis:none;text-rendering:optimizelegibility;--brand:#c4322b;--border:#dfe3e8;--border-strong:#cfd5dc;--muted:#667085;--text:#182230;--text-secondary:#475467;--primary:#155eef;--primary-hover:#004eeb;--primary-soft:#eff4ff;--primary-soft-border:#b2ccff;--danger:#b42318;--warning:#b54708;--success:#067647;--radius-sm:6px;--radius-md:8px;--radius-lg:12px;--shadow-sm:0 1px 2px #1018280d;--shadow-md:0 4px 12px #10182814;--shadow-lg:0 20px 48px #10182838;--ring:#84adff;--ease:cubic-bezier(.4, 0, .2, 1);background:#f4f6f8;font-family:Inter,PingFang SC,Microsoft YaHei,system-ui,sans-serif}*{box-sizing:border-box}html,body,#root{width:100%;min-width:320px;min-height:100%;margin:0}body{overflow:hidden}button,input{font:inherit;letter-spacing:0}button{cursor:pointer}button:disabled,input:disabled{cursor:not-allowed}.app-shell{grid-template-columns:224px minmax(0,1fr);height:100vh;display:grid;overflow:hidden}.sidebar{border-right:1px solid var(--border);background:#fff;flex-direction:column;height:100vh;display:flex}.brand{border-bottom:1px solid #edf0f2;align-items:center;gap:11px;min-height:72px;padding:14px 18px;display:flex}.brand>div,.sidebar-user>div,.mobile-header>div{flex-direction:column;min-width:0;display:flex}.brand strong,.mobile-header strong{font-size:15px}.brand span:not(.brand-mark),.sidebar-user span,.mobile-header span{color:var(--muted);margin-top:2px;font-size:12px}.brand-mark{color:#fff;background:var(--brand);border-radius:7px;flex:0 0 36px;place-items:center;width:36px;height:36px;display:grid}.main-nav{flex-direction:column;flex:1;gap:4px;padding:12px 10px;display:flex}.main-nav button{color:#475467;text-align:left;background:0 0;border:0;border-radius:6px;align-items:center;gap:10px;min-height:42px;padding:0 12px;display:flex}.main-nav button:hover{color:#182230;background:#f5f7f8}.main-nav button.active{color:var(--primary);background:var(--primary-soft);font-weight:600}.main-nav button.active svg{color:var(--primary)}.sidebar-user{border-top:1px solid #edf0f2;justify-content:space-between;align-items:center;gap:8px;min-height:68px;padding:12px 14px;display:flex}.sidebar-user strong{text-overflow:ellipsis;white-space:nowrap;max-width:140px;font-size:13px;overflow:hidden}.sidebar-env{justify-content:flex-start;align-items:center;padding:8px 16px;display:flex}.env-badge{white-space:nowrap;align-items:center;gap:7px;font-size:12px;font-weight:600;line-height:1;display:inline-flex}.env-badge .env-dot{background:#98a2b3;border-radius:50%;width:8px;height:8px}.env-badge.env-development{color:#067647}.env-badge.env-development .env-dot{background:#12b76a}.env-badge.env-test{color:#b54708}.env-badge.env-test .env-dot{background:#f79009}.env-badge.env-production{color:#b42318}.env-badge.env-production .env-dot{background:#d92d20}.mobile-header{display:none}.app-main{min-width:0;min-height:0;padding:20px 24px;overflow:hidden}.page{flex-direction:column;gap:14px;width:100%;max-width:1440px;height:100%;min-height:0;margin:0 auto;display:flex}.page-heading{flex:none;justify-content:space-between;align-items:flex-start;gap:16px;min-height:48px;display:flex}.page-heading h1{letter-spacing:0;margin:0;font-size:22px;line-height:1.35}.page-heading p{color:var(--muted);margin:4px 0 0;font-size:13px}.section-heading{justify-content:space-between;align-items:end;gap:12px;display:flex}.section-heading>div{align-items:baseline;gap:10px;min-width:0;display:flex}.section-heading h2{letter-spacing:0;margin:0;font-size:16px}.section-heading span{color:var(--muted);font-size:12px}.button{color:#344054;white-space:nowrap;min-height:36px;transition:background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease), transform .12s var(--ease);background:#fff;border:1px solid #cfd5dc;border-radius:6px;justify-content:center;align-items:center;gap:7px;padding:0 13px;font-size:13px;font-weight:600;display:inline-flex}.button:hover:not(:disabled){background:#f7f8f9}.button:active:not(:disabled){transform:translateY(1px)}.button:focus-visible,.icon-button:focus-visible,.main-nav button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.button:disabled{opacity:.55}.button-primary{border-color:var(--primary);color:#fff;background:var(--primary)}.button-primary:hover:not(:disabled){background:#004eeb}.button-warning{color:#fff;background:#dc6803;border-color:#dc6803}.button-warning:hover:not(:disabled){background:#b54708}.button-success{color:#fff;background:#079455;border-color:#079455}.button-success:hover:not(:disabled){background:#067647}.button-danger{border-color:var(--danger);color:#fff;background:var(--danger)}.icon-button{color:#475467;width:40px;height:40px;transition:background-color .15s var(--ease), color .15s var(--ease);background:0 0;border:0;border-radius:6px;place-items:center;display:inline-grid}.icon-button:hover{color:var(--text);background:#f2f4f7}.spinner{border:2px solid;border-right-color:#0000;border-radius:50%;width:15px;height:15px;animation:.8s linear infinite spin;display:inline-block}.spinner.large{width:20px;height:20px}@keyframes spin{to{transform:rotate(360deg)}}.loading-overlay{z-index:2;color:var(--muted);background:#ffffffb8;justify-content:center;align-items:center;gap:8px;font-size:13px;animation:.15s fade-in;display:flex;position:absolute;inset:0}.state-banner{color:#1849a9;background:#eff4ff;border:1px solid #b2ccff;border-radius:6px;flex:none;align-items:center;gap:9px;min-height:42px;padding:9px 12px;font-size:13px;line-height:1.5;display:flex}.state-banner-success{color:#05603a;background:#ecfdf3;border-color:#a6f4c5}.state-banner-danger{color:#912018;background:#fef3f2;border-color:#fecdca}.state-banner-warning{color:#93370d;background:#fffaeb;border-color:#fedf89}.metric-grid{border:1px solid var(--border);background:#fff;border-radius:8px;flex:none;grid-template-columns:repeat(4,minmax(0,1fr));display:grid;overflow:hidden}.metric-grid article{border-right:1px solid #edf0f2;align-items:center;gap:12px;min-height:100px;padding:15px 16px;display:flex}.metric-grid article:last-child{border-right:0}.metric-grid article>div{flex-direction:column;gap:2px;min-width:0;display:flex}.metric-grid article span:not(.metric-icon),.metric-grid small{color:var(--muted);font-size:12px}.metric-grid strong{font-size:24px;line-height:1.2}.metric-icon{border-radius:7px;flex:0 0 36px;place-items:center;width:36px;height:36px;display:grid}.metric-blue{color:#175cd3;background:#eff4ff}.metric-green{color:#067647;background:#ecfdf3}.metric-red{color:#b42318;background:#fef3f2}.metric-amber{color:#b54708;background:#fffaeb}.table-surface{border:1px solid var(--border);background:#fff;border-radius:8px;min-height:0;position:relative;overflow:auto}.overview-table-wrap{flex:1 1 0}.data-table{border-collapse:separate;border-spacing:0;width:100%;font-size:13px}.data-table th{z-index:1;border-bottom:1px solid var(--border);color:#475467;text-align:left;white-space:nowrap;background:#f8fafb;height:42px;padding:0 14px;font-size:12px;font-weight:600;position:sticky;top:0}.data-table td{color:#344054;vertical-align:middle;border-bottom:1px solid #edf0f2;min-height:48px;padding:11px 14px}.data-table tr:last-child td{border-bottom:0}.data-table tbody tr{transition:background-color .12s var(--ease)}.data-table tbody tr:hover td{background:#f9fafb}.data-table td>small{color:var(--muted);margin-top:4px;font-size:11px;display:block}.overview-table{min-width:760px}.empty-state{min-height:100px;color:var(--muted);place-items:center;padding:20px;font-size:13px;display:grid}.status-badge{color:#475467;white-space:nowrap;background:#f9fafb;border:1px solid #d0d5dd;border-radius:999px;align-items:center;min-height:24px;padding:0 8px;font-size:12px;display:inline-flex}.status-succeeded{color:#067647;background:#ecfdf3;border-color:#a6f4c5}.status-failed{color:#b42318;background:#fef3f2;border-color:#fecdca}.status-running{color:#b54708;background:#fffaeb;border-color:#fedf89}.provider-strip{border:1px solid var(--border);background:#fff;border-radius:8px;flex:none;gap:24px;padding:12px 15px;display:flex}.provider-strip>div{align-items:center;gap:7px;font-size:12px;display:flex}.provider-strip>div>span:last-child{color:var(--muted)}.provider-dot{background:#f04438;border-radius:50%;width:8px;height:8px}.provider-dot.ready{background:#12b76a}.jobs-table-wrap{flex:1 1 0;min-height:260px}.jobs-table{min-width:1180px}.jobs-table th:first-child{width:165px}.jobs-table th:nth-child(2){width:210px}.jobs-table th:nth-child(3){min-width:330px}.jobs-table th:nth-child(4),.jobs-table th:nth-child(5){width:92px}.jobs-table th:nth-child(6){width:250px}.cron-input,.date-field input{color:#182230;background:#fff;border:1px solid #cfd5dc;border-radius:5px;width:100%;min-height:34px;padding:6px 9px;font-size:13px}.cron-input:disabled{color:#667085;background:#f5f7f8}.remark-cell{max-width:430px}.job-remark{overflow-wrap:anywhere;align-items:flex-start;gap:7px;line-height:1.5;display:flex}.special-mark{color:#b42318;background:#fee4e2;border-radius:4px;flex:0 0 19px;place-items:center;width:19px;height:19px;font-weight:800;display:inline-grid}.row-actions{flex-wrap:wrap;align-items:center;gap:7px;display:flex}.toggle{background:#98a2b3;border:0;border-radius:999px;align-items:center;width:38px;height:22px;padding:2px;transition:background .15s;display:inline-flex;position:relative}.toggle[data-state=checked]{background:var(--primary)}.toggle:disabled{opacity:.48}.toggle-thumb{background:#fff;border-radius:50%;width:18px;height:18px;transition:transform .15s;display:block;transform:translate(0);box-shadow:0 1px 2px #10182840}.toggle-thumb[data-state=checked]{transform:translate(16px)}.mobile-job-list{display:none}.runs-heading{flex:none}.date-field{color:var(--muted);align-items:center;gap:8px;font-size:12px;display:flex}.date-field input{width:145px}.runs-table-wrap{flex:0 0 245px}.runs-table{min-width:940px}.error-cell{text-overflow:ellipsis;white-space:nowrap;max-width:260px;color:var(--danger);overflow:hidden}.field-textarea{color:#182230;resize:vertical;background:#fff;border:1px solid #cfd5dc;border-radius:5px;width:100%;min-height:74px;padding:8px 10px;font-size:13px;line-height:1.6}.field-textarea-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.field-textarea:disabled{color:#667085;background:#f5f7f8}.notice-dialog{flex-direction:column;width:min(100vw - 32px,780px);max-height:min(86vh,760px);display:flex;overflow:hidden}.notice-dialog-head{border-bottom:1px solid var(--border);padding-bottom:12px}.notice-dialog-head p{margin:6px 0 0}.notice-dialog-body{flex-direction:column;flex:1;gap:12px;min-height:0;padding:14px 2px 4px;display:flex;overflow-y:auto}.notice-dialog-body .banner{margin:0}.notice-card{border:1px solid var(--border);background:#fbfcfd;border-radius:8px;flex-direction:column;gap:10px;padding:13px 14px;display:flex}.notice-card-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.notice-card-head>div{align-items:center;gap:8px;min-width:0;display:flex}.notice-card-head strong{white-space:nowrap;text-overflow:ellipsis;font-size:13px;overflow:hidden}.notice-card-head code{color:#344054;background:#eef1f4;border-radius:4px;padding:1px 6px;font-size:11px}.notice-card .field-label{color:#475467}.notice-card .field-label>span{font-weight:600}.notice-recipient{color:var(--muted);margin:0;font-size:12px}.notice-dialog-foot{border-top:1px solid var(--border);justify-content:flex-end;gap:8px;padding-top:14px;display:flex}.run-desc{margin-top:6px!important}.run-outcome{flex-direction:column;gap:10px;margin-top:14px;display:flex}.run-metrics{flex-wrap:wrap;gap:8px;display:flex}.run-metrics>div{border:1px solid var(--border);background:#f8fafb;border-radius:8px;flex-direction:column;flex:1;gap:2px;min-width:96px;padding:10px 12px;display:flex}.run-metrics strong{color:#182230;font-size:20px}.run-metrics span{color:var(--muted);font-size:12px}.run-note{color:var(--success);align-items:center;gap:6px;margin:0;font-size:12px;display:flex}.run-note svg{flex:none}.run-vacation{color:#b54708;margin:0;font-size:12px}.preview-list{flex-direction:column;flex:auto;gap:10px;min-height:0;margin-top:12px;display:flex;overflow-y:auto}.preview-item{border:1px solid var(--border);background:#fff;border-radius:8px}.preview-item>header{border-bottom:1px solid #edf0f2;justify-content:space-between;align-items:center;gap:10px;padding:9px 12px;display:flex}.preview-item>header>div{flex-direction:column;gap:3px;min-width:0;display:flex}.preview-item>header strong{font-size:13px}.preview-item>header span{color:var(--muted);font-size:12px}.chip{color:#344054;white-space:nowrap;background:#eef2f6;border-radius:999px;flex:none;align-items:center;padding:2px 8px;font-size:11px;display:inline-flex}.preview-message{border-bottom:1px dashed #edf0f2;padding:9px 12px}.preview-message:last-child{border-bottom:0}.preview-message .chip{margin-bottom:6px}.preview-content{white-space:pre-line;overflow-wrap:anywhere;color:#344054;margin:0;font-size:12px;line-height:1.7}.preview-empty{color:var(--muted);margin:10px 12px;font-size:12px}.legend-card{background:#fff;border:1px solid #e5e7eb;border-radius:10px;flex-wrap:wrap;flex:none;align-items:center;gap:14px;padding:12px 16px;display:flex;box-shadow:0 1px 2px #1018280a}.legend-item{color:#475467;align-items:center;gap:6px;font-size:13px;display:inline-flex}.legend-dot{border-radius:50%;width:10px;height:10px;display:inline-block}.legend-dot-workday{background:#e4e7ec}.legend-dot-weekend{background:#cbd5f0}.legend-dot-holiday{background:#f4b4b4}.legend-dot-vacation{background:#a8d8b9}.legend-dot-manual-off{background:#f5c66d}.legend-dot-manual-work{background:#8ec9e8}.legend-sync{color:#98a2b3;margin-left:auto;font-size:12px}.calendar-card{background:#fff;border:1px solid #e5e7eb;border-radius:10px;flex-direction:column;flex:1 1 0;min-height:0;padding:14px 16px 16px;display:flex;overflow:auto;box-shadow:0 1px 2px #1018280a}.calendar-toolbar{justify-content:center;align-items:center;gap:10px;margin-bottom:10px;display:flex}.calendar-title{font-size:16px}.calendar-week-head,.calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;display:grid}.calendar-week-head span{text-align:center;color:#667085;padding:4px 0;font-size:12px}.calendar-grid{flex:1 1 0;align-content:start}.calendar-cell{cursor:pointer;min-height:64px;font:inherit;background:#fff;border:1px solid #eef0f3;border-radius:8px;flex-direction:column;align-items:center;gap:4px;padding:6px 4px;display:flex}.calendar-cell.is-outside{opacity:.35;cursor:default}.calendar-cell.is-selected{border-color:#1677ff;box-shadow:inset 0 0 0 1px #1677ff}.calendar-cell.is-WORKDAY{background:#fbfcfd}.calendar-cell.is-WEEKEND{background:#f2f6fd}.calendar-cell.is-HOLIDAY{background:#fdf2f2}.calendar-cell.is-VACATION{background:#f0f9f3}.calendar-cell.is-MANUAL_OFF{background:#fdf7ec;border-color:#f0c48a}.calendar-cell.is-MANUAL_WORK{background:#eef7fc;border-color:#7fbde0}.cell-day{color:#1d2939;font-size:14px}.cell-label{text-align:center;color:#667085;overflow-wrap:anywhere;font-size:11px;line-height:1.3}.calendar-cell.is-HOLIDAY .cell-label{color:#b42318}.calendar-cell.is-VACATION .cell-label{color:#067647}.calendar-cell.is-MANUAL_OFF .cell-label{color:#b54708}.calendar-cell.is-MANUAL_WORK .cell-label{color:#026aa2}.calendar-empty{text-align:center;color:#98a2b3;grid-column:1/-1;padding:24px 0}.calendar-tip{color:#98a2b3;flex:none;margin:10px 0;font-size:12px}.calendar-actions{border-top:1px solid #eef0f3;flex-wrap:wrap;flex:none;align-items:center;gap:8px;padding-top:10px;display:flex}.reason-input{flex:200px;min-width:0;max-width:320px}.batch-form{gap:14px;margin-top:16px;display:grid}.batch-range{grid-template-columns:1fr 1fr;align-items:end;gap:8px;display:grid}.batch-range label{color:var(--muted);gap:6px;font-size:12px;display:grid}.batch-range input{color:#182230;background:#fff;border:1px solid #cfd5dc;border-radius:5px;min-height:34px;padding:6px 9px;font-size:13px}.batch-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:18px;display:flex}.field-label{color:var(--muted);gap:6px;font-size:12px;display:grid}.field-input{color:#182230;background:#fff;border:1px solid #cfd5dc;border-radius:5px;width:100%;min-height:34px;padding:6px 10px;font-size:13px}.field-input::placeholder{color:#98a2b3}.logs-filters{flex-wrap:wrap;flex:none;align-items:flex-end;gap:10px;display:flex}.filter-panel-toggle{display:none}.filter-panel-toggle .filter-chevron{transition:transform .18s var(--ease)}.filter-panel-toggle[aria-expanded=true] .filter-chevron{transform:rotate(180deg)}.filter-count{color:#fff;background:var(--primary);border-radius:999px;place-items:center;min-width:18px;height:18px;padding:0 5px;font-size:11px;font-weight:700;line-height:1;display:inline-grid}@media (width<=767px){.filter-panel-toggle{border:1px solid var(--border-strong);min-height:38px;color:var(--text-secondary);transition:background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);background:#fff;border-radius:999px;align-self:flex-start;align-items:center;gap:8px;padding:0 14px;font-size:13px;font-weight:600;display:inline-flex}.filter-panel-toggle:hover{background:#f7f8f9}.filter-panel-toggle[aria-expanded=true]{border-color:var(--primary-soft-border);color:var(--primary);background:var(--primary-soft)}.logs-filters[data-filters-open=false] .field-row{display:none}.page-heading>.button{align-self:flex-start}}.logs-filters .filter-item{min-width:150px;color:var(--muted);flex:150px;gap:5px;font-size:12px;display:grid}.filter-control{color:#182230;background:#fff;border:1px solid #cfd5dc;border-radius:6px;min-height:36px;padding:6px 9px;font-size:13px}select.filter-control{width:100%;min-width:0}.filter-control:hover:not(:disabled){border-color:#9aa4af}.filter-actions{align-items:center;gap:8px;display:flex}.logs-meta{color:var(--muted);flex:none;font-size:12px}.logs-table-wrap{flex:1 1 0;min-height:220px}.logs-table{min-width:1120px}.logs-table td small{color:var(--muted);font-size:11px;display:block}.logs-pager{flex:none;justify-content:flex-end;gap:8px;display:flex}.mobile-log-list{display:none;position:relative}.log-detail-body{gap:10px;max-height:60vh;margin-top:14px;display:grid;overflow-y:auto}.log-detail-json{border:1px solid var(--border);color:#344054;white-space:pre-wrap;word-break:break-word;background:#f8fafb;border-radius:6px;margin:0;padding:12px;font-size:12px;line-height:1.6;overflow-x:auto}.away-filter{flex-wrap:wrap;flex:none;align-items:center;gap:8px;display:flex}.away-chip{color:#475467;background:#fff;border:1px solid #d7dce1;border-radius:999px;min-height:32px;padding:5px 13px;font-size:13px}.away-chip:hover:not(:disabled){background:#f7f8f9}.away-chip.is-active{color:#175cd3;background:#eff4ff;border-color:#b2ccff;font-weight:600}.students-filters{flex-direction:column;align-items:stretch;gap:10px}.students-filter-row{flex-wrap:wrap;flex:none;align-items:flex-end;gap:10px 12px;display:flex}.students-filter-row.away-row{align-items:center}.students-filter-row .filter-item{flex:0 0 170px}.counted-filter{flex:none}.check-control{color:#344054;cursor:pointer;align-items:center;gap:7px;min-height:36px;font-size:13px;display:inline-flex}.check-control input[type=checkbox]{width:16px;height:16px;accent-color:var(--primary);cursor:pointer;margin:0}.students-search{flex:0 auto;justify-content:flex-end;align-items:flex-end;min-width:280px}.students-search .search-input{flex:200px;min-width:0;max-width:320px}.students-table-wrap{flex:1 1 0;min-height:240px}.students-table{min-width:1080px}.students-table .mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.away-pill{white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:3px 10px;font-size:12px;font-weight:600;line-height:1.5;display:inline-flex}.pill-ok{color:#067647;background:#ecfdf3}.pill-muted{color:#667085;background:#f2f4f7}.pill-day{color:#b54708;background:#fffaeb}.pill-1-3{color:#9a6700;background:#fff7e0}.pill-3-5{color:#b54708;background:#ffefe2}.pill-5-7{color:#b42318;background:#fee4e2}.pill-late{color:#7a271a;background:#fecdca}.pill-sub{color:var(--muted);margin-left:6px;font-size:11px}.tag-out{color:#b42318;white-space:nowrap;background:#fef3f2;border-radius:999px;padding:1px 8px;font-size:11px;display:inline-flex}.page-ellipsis{text-align:center;min-width:24px;color:var(--muted)}.page-number{color:#475467;background:#fff;border:1px solid #d7dce1;border-radius:6px;min-width:34px;height:34px;padding:0 8px;font-size:13px}.page-number:hover:not(:disabled){background:#f7f8f9}.page-number.is-active{border-color:var(--primary);color:#fff;background:var(--primary);font-weight:600}.rules-heading-actions{flex:none;align-items:flex-end;gap:10px;display:flex}.rules-accordion{flex-direction:column;flex:auto;gap:10px;min-height:0;display:flex;overflow:auto}.rules-accordion-item{border:1px solid var(--border);background:#fff;border-radius:8px;flex:none;overflow:hidden}.rules-accordion-trigger{color:#344054;text-align:left;width:100%;min-height:52px;transition:background-color .15s var(--ease);background:0 0;border:0;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;font-size:14px;font-weight:600;display:flex}.rules-accordion-trigger:hover{background:#f8fafb}.rules-accordion-trigger[data-state=open]{background:var(--primary-soft)}.rules-accordion-head{align-items:center;gap:12px;min-width:0;display:inline-flex}.rules-accordion-title{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.rules-accordion-chevron{color:var(--muted);transition:transform .2s var(--ease);flex:none}.rules-accordion-trigger[data-state=open] .rules-accordion-chevron{color:var(--primary);transform:rotate(180deg)}.rules-accordion-meta{color:var(--muted);font-size:12px;font-weight:500}.rules-accordion-content{padding:0 16px 14px;overflow:hidden}.rules-accordion-content[data-state=open]{animation:accordion-down .2s var(--ease)}.rules-accordion-content[data-state=closed]{animation:accordion-up .18s var(--ease)}@keyframes accordion-down{0%{opacity:0;height:0}to{height:var(--radix-accordion-content-height);opacity:1}}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height);opacity:1}to{opacity:0;height:0}}.rule-list{gap:12px;display:grid}.rule-card{background:#fbfcfd;border:1px solid #edf0f2;border-radius:8px;gap:12px;padding:14px;display:grid}.rule-card-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.rule-card-head>div{align-items:center;gap:10px;min-width:0;display:flex}.rule-card-head strong{font-size:14px}.rule-card-head code{color:#344054;background:#eef1f4;border-radius:4px;padding:1px 6px;font-size:11px}.grade-picker{flex-wrap:wrap;gap:8px;display:flex}.grade-option{color:#475467;cursor:pointer;background:#fff;border:1px solid #d7dce1;border-radius:999px;align-items:center;gap:7px;min-height:30px;padding:3px 10px;font-size:12px;display:inline-flex}.grade-option:hover{background:#f7f8f9}.grade-option input{width:14px;height:14px;accent-color:var(--primary);cursor:pointer;margin:0}.rule-card-foot{flex:none;justify-content:space-between;align-items:center;gap:12px;display:flex}.rule-card-foot .notice-recipient{flex:auto}.rule-preview{color:#05603a;background:#ecfdf3;border:1px solid #a6f4c5;border-radius:8px;flex:none;gap:4px;padding:10px 12px;font-size:12px;display:grid}.rule-preview strong{color:#182230}.rule-preview small{color:var(--muted)}.rule-preview-error{color:var(--danger)}.rule-card-actions{flex:none;gap:8px;display:flex}.rule-preview-messages{gap:8px;margin:6px 0 0;padding:0;list-style:none;display:grid}.rule-preview-messages li{gap:4px;display:grid}.rule-preview-messages .alert-content{color:#344054;background:#fff;border:1px solid #abefc6;border-radius:6px;margin:0;padding:8px 10px;font-size:12px}.rule-preview-scope{color:#05603a;font-weight:600}.teacher-preview-list .alert-content{border-color:var(--border);background:#fbfcfd}.rules-savebar{flex:none;justify-content:flex-end;gap:8px;display:flex}.login-page{background:#f4f6f8;place-items:center;min-height:100vh;padding:24px;display:grid}.login-panel{border:1px solid var(--border);background:#fff;border-radius:8px;flex-direction:column;gap:22px;width:min(100%,400px);padding:28px;display:flex;box-shadow:0 8px 24px #10182814}.login-brand{align-items:center;gap:11px;display:flex}.login-brand>span{color:#fff;background:var(--brand);border-radius:7px;place-items:center;width:42px;height:42px;display:grid}.login-brand>div{flex-direction:column;gap:2px;display:flex}.login-brand small{color:var(--muted)}.login-copy h1{margin:0;font-size:22px}.login-copy p{color:var(--muted);margin:6px 0 0;font-size:13px;line-height:1.6}.login-actions{gap:10px;display:grid}.login-actions .button{width:100%}.login-footnote{color:#98a2b3;text-align:center;margin:-6px 0 0;font-size:12px}.full-state,.page-loading{min-height:100vh;color:var(--muted);justify-content:center;align-items:center;gap:10px;font-size:13px;display:flex}.page-loading{min-height:240px}.dialog-overlay{z-index:50;background:#0f172a73;animation:.15s fade-in;position:fixed;inset:0}.dialog-content{z-index:51;background:#fff;border-radius:8px;width:min(100vw - 32px,470px);padding:22px;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 20px 48px #1018283d}.run-progress{border:1px solid var(--border);background:#f8fafb;border-radius:8px;gap:8px;margin-top:12px;padding:12px 14px;display:grid}.run-progress-head{color:#344054;justify-content:space-between;align-items:center;font-size:12px;display:flex}.run-progress-head strong{color:#182230}.run-progress-track{background:#e4e7ec;border-radius:999px;height:8px;overflow:hidden}.run-progress-track span{background:var(--primary);border-radius:999px;height:100%;transition:width .35s;display:block}.run-progress p{color:var(--muted);margin:0;font-size:12px}.dialog-heading{grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px;display:grid}.dialog-heading>div{min-width:0}.dialog-content h2{letter-spacing:0;margin:0;font-size:18px}.dialog-content p{color:var(--muted);margin:10px 0 0;font-size:13px;line-height:1.65}.dialog-actions{justify-content:flex-end;gap:8px;margin-top:22px;display:flex}.tooltip-content{z-index:80;color:#fff;background:#182230;border-radius:5px;max-width:240px;padding:6px 9px;font-size:12px;box-shadow:0 4px 10px #1018282e}.tooltip-arrow{fill:#182230}.mobile-drawer{z-index:51;background:#fff;flex-direction:column;width:min(84vw,320px);height:100vh;padding:14px 10px;display:flex;position:fixed;top:0;right:0;box-shadow:-10px 0 30px #10182829}.drawer-heading{border-bottom:1px solid #edf0f2;justify-content:space-between;align-items:center;padding:0 4px 10px 12px;display:flex}.drawer-heading h2{margin:0;font-size:16px}.drawer-user{color:var(--muted);border-top:1px solid #edf0f2;justify-content:space-between;align-items:center;gap:8px;padding:12px;font-size:13px;display:flex}.drawer-user button{color:var(--danger);background:0 0;border:0;align-items:center;gap:6px;display:flex}@keyframes fade-in{0%{opacity:0}}@media (width<=1100px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-grid article:nth-child(2){border-right:0}.metric-grid article:nth-child(-n+2){border-bottom:1px solid #edf0f2}}@media (width<=767px){body{overflow-y:auto}.app-shell{height:auto;min-height:100vh;display:block;overflow:visible}.sidebar{display:none}.mobile-header{z-index:20;border-bottom:1px solid var(--border);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fffffff5;justify-content:space-between;align-items:center;min-height:56px;padding:8px 12px;display:flex;position:sticky;top:0}.app-main{min-height:calc(100vh - 56px);padding:14px 12px 28px;overflow:visible}.page{gap:12px;height:auto}.page-heading{flex-direction:column;align-items:stretch;gap:10px;min-height:0}.page-heading h1{font-size:19px}.page-heading p{max-width:none}.page-heading .button{min-width:40px;padding:0 10px}.page-heading .button svg+*{display:none}.rules-heading-actions{align-items:center}.rules-heading-actions .date-field{flex:auto;width:auto}.rules-heading-actions .date-field input{width:100%}.metric-grid article{min-height:88px;padding:12px}.metric-grid strong{font-size:20px}.metric-icon{display:none}.overview-table-wrap{flex:none;max-height:330px}.provider-strip{gap:10px;display:grid}.jobs-table-wrap{display:none}.mobile-job-list{gap:10px;display:grid}.mobile-job{border:1px solid var(--border);background:#fff;border-radius:8px;flex-direction:column;gap:12px;padding:14px;display:flex}.mobile-job>header{justify-content:space-between;align-items:center;gap:12px;display:flex}.mobile-job>header>div{flex-direction:column;gap:3px;min-width:0;display:flex}.mobile-job small{color:var(--muted);font-size:11px}.field-label{color:var(--muted);gap:6px;font-size:11px;display:grid}.mobile-job-controls{justify-content:space-between;align-items:center;gap:10px;display:flex}.mobile-job-controls>label{color:var(--muted);align-items:center;gap:8px;font-size:12px;display:flex}.runs-heading{flex-direction:column;align-items:flex-start}.runs-heading>div{display:block}.runs-heading>div>span{margin-top:3px;display:block}.date-field{justify-content:space-between;width:100%}.date-field input{width:160px}.runs-table-wrap{flex:none;max-height:300px}.calendar-card{flex:none;overflow:visible}.calendar-cell{min-height:52px;padding:4px 2px}.cell-day{font-size:13px}.cell-label{font-size:10px}.calendar-actions .button,.batch-actions .button{flex:45%}.legend-sync{width:100%;margin-left:0}.logs-table-wrap{display:none}.mobile-log-list{gap:10px;display:grid}.mobile-log{border:1px solid var(--border);background:#fff;border-radius:8px;flex-direction:column;gap:10px;padding:14px;display:flex}.mobile-log>header{justify-content:space-between;align-items:center;gap:12px;display:flex}.mobile-log>header>div{flex-direction:column;gap:3px;min-width:0;display:flex}.mobile-log small{color:var(--muted);font-size:11px}.mobile-log-row{color:var(--muted);justify-content:space-between;align-items:center;gap:10px;font-size:12px;display:flex}.mobile-log-row strong{color:#182230;font-weight:600}.mobile-log footer{justify-content:space-between;align-items:center;gap:10px;display:flex}.mobile-log footer span{color:var(--muted);font-size:11px}.dialog-content{border-radius:8px 8px 0 0;width:100%;max-height:88vh;top:auto;bottom:0;left:0;overflow-y:auto;transform:none}.notice-dialog{max-height:92vh}.notice-dialog-body{flex:1;min-height:0}.dialog-actions{grid-template-columns:1fr 1fr;display:grid}.dialog-actions .button:first-child{grid-area:2/1/auto/-1}.login-page{align-content:center;place-items:stretch stretch;padding:16px}.login-panel{padding:22px}}.alert-summary{flex-wrap:wrap;gap:8px;display:flex}.alert-chip{color:#475467;background:#fff;border:1px solid #d7dce1;border-radius:999px;align-items:center;gap:8px;min-height:34px;padding:5px 13px;font-size:13px;display:inline-flex}.alert-chip:hover:not(:disabled){background:#f7f8f9}.alert-chip.is-active{color:#175cd3;background:#eff4ff;border-color:#b2ccff;font-weight:600}.alert-status{white-space:nowrap;border:1px solid #0000;border-radius:999px;align-items:center;min-height:22px;padding:0 8px;font-size:12px;display:inline-flex}.alert-send-sent{color:#067647;background:#ecfdf3;border-color:#abefc6}.alert-send-failed{color:#b42318;background:#fef3f2;border-color:#fecdca}.alert-send-pending{color:#475467;background:#f9fafb;border-color:#d0d5dd}.alert-send-suppressed{color:#b54708;background:#fffaeb;border-color:#fedf89}.alert-handle-pending{color:#475467;background:#f9fafb;border-color:#d0d5dd}.alert-handle-notified{color:#175cd3;background:#eff4ff;border-color:#b2ccff}.alert-handle-following_up{color:#b54708;background:#fffaeb;border-color:#fedf89}.alert-handle-closed{color:#067647;background:#ecfdf3;border-color:#abefc6}.alert-handle-false_positive{color:#6941c6;background:#f4f3ff;border-color:#d9d6fe}.alert-receipt-read{color:#067647;background:#ecfdf3;border-color:#abefc6}.alert-receipt-unread{color:#b54708;background:#fffaeb;border-color:#fedf89}.alert-receipt-unknown{color:#475467;background:#f9fafb;border-color:#d0d5dd}.alert-receipt-state-sampling{color:#175cd3;background:#eff4ff;border-color:#b2ccff}.alert-receipt-state-settled{color:#067647;background:#ecfdf3;border-color:#abefc6}.alert-receipt-state-unavailable{color:#475467;background:#f9fafb;border-color:#d0d5dd}.receipt-trend-card{border:1px solid var(--border);background:#fff;border-radius:8px;flex-direction:column;flex:none;gap:10px;padding:14px 16px;display:flex}.receipt-trend-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.receipt-trend-head h2{margin:0;font-size:14px}.receipt-legend{color:var(--muted);gap:14px;font-size:12px;display:flex}.receipt-legend span{align-items:center;gap:6px;display:inline-flex}.receipt-dot{border-radius:3px;width:10px;height:10px;display:inline-block}.receipt-trend{width:100%;height:180px}.receipt-grid{stroke:#edf0f2;stroke-width:1px}.receipt-axis{fill:var(--muted);font-size:11px}.receipt-bar-read{fill:#12b76a}.receipt-bar-unread{fill:#f79009}.receipt-list{gap:6px;max-height:320px;margin:0;padding:0;list-style:none;display:grid;overflow:auto}.receipt-list li{background:#fbfcfd;border:1px solid #edf0f2;border-radius:6px;justify-content:space-between;align-items:center;gap:12px;padding:8px 10px;display:flex}.receipt-person{flex-direction:column;gap:2px;min-width:0;display:flex}.receipt-person small{color:var(--muted);font-size:11px}.receipt-person-meta{align-items:center;gap:8px;display:inline-flex}.receipt-person-meta small{color:var(--muted);font-size:11px}.cell-sub{color:var(--muted);margin-top:3px;font-size:11px;display:block}.alert-detail-dialog{width:min(100vw - 32px,620px);max-height:88vh;overflow-y:auto}.alert-detail-body{gap:16px;margin-top:12px;display:grid}.alert-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;margin:0;display:grid}.alert-facts>div{gap:3px;display:grid}.alert-facts dt{color:var(--muted);font-size:12px}.alert-facts dd{color:#182230;margin:0;font-size:13px}.alert-block h3{color:var(--muted);margin:0 0 8px;font-size:13px;font-weight:600}.alert-content{border:1px solid var(--border);white-space:pre-wrap;word-break:break-word;background:#f9fafb;border-radius:6px;margin:0;padding:12px;font-size:13px;line-height:1.6}.muted-line{color:var(--muted);margin:0;font-size:13px}.alert-timeline{gap:10px;margin:0;padding:0;list-style:none;display:grid}.alert-timeline li{border-left:2px solid var(--border);gap:4px;padding-left:12px;display:grid}.alert-timeline .timeline-meta{color:var(--muted);font-size:12px}.alert-timeline p{color:#182230;margin:0;font-size:13px}.alert-handle-form{gap:10px;display:grid}.alert-handle-actions,.alert-card-actions{justify-content:flex-end;display:flex}@media (width<=767px){.alerts-table-wrap{display:none}.alert-facts{grid-template-columns:1fr}.alert-summary{gap:6px}.alert-chip{flex:30%;justify-content:center}.alert-detail-dialog{border-radius:8px 8px 0 0;width:100%;max-height:88vh;top:auto;bottom:0;left:0;transform:none}}.teacher-roles-dialog{flex-direction:column;width:min(100vw - 32px,640px);max-height:88vh;display:flex}.role-editor-add{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) auto;align-items:end;gap:10px;margin-top:14px;display:grid}.role-editor-add .field-label{min-width:0}.role-editor-add select.field-input{cursor:pointer}.role-editor-add-button{align-self:end}.role-editor-hint{color:var(--muted);align-self:end;margin:0 0 8px;font-size:12px;line-height:1.5}.role-editor-list{border:1px solid var(--border);background:#fff;border-radius:6px;flex:auto;min-height:0;max-height:320px;margin-top:14px;overflow:auto}.role-scope-table{border-collapse:collapse;width:100%;font-size:13px}.role-scope-table th,.role-scope-table td{text-align:left;border-bottom:1px solid var(--border);padding:8px 10px}.role-scope-table thead th{z-index:1;color:var(--muted);background:#f8fafc;font-size:12px;font-weight:600;position:sticky;top:0}.role-scope-table tbody tr:last-child td{border-bottom:0}.role-scope-table .role-scope-action{text-align:right;width:56px}.role-scope-table .role-scope-name{color:#182230}.role-scope-table button{color:#b42318;cursor:pointer;background:0 0;border:0;border-radius:5px;padding:4px;display:inline-flex}.role-scope-table button:hover{background:#fef3f2}.role-scope-empty td{color:var(--muted);text-align:center;padding:20px 10px}.dialog-actions-split{justify-content:space-between;align-items:center}.dialog-actions-group{gap:8px;display:flex}@media (width<=767px){.role-editor-add{grid-template-columns:1fr;align-items:stretch}.role-editor-add .role-editor-add-button{width:100%}.role-editor-hint{margin-bottom:0}.teacher-roles-dialog .dialog-actions-split{grid-template-columns:1fr;gap:8px;display:grid}.teacher-roles-dialog .dialog-actions-split .button:first-child{grid-area:auto}.teacher-roles-dialog .dialog-actions-split .dialog-actions-group{grid-template-columns:1fr 1fr;gap:8px;display:grid}}.alert-view{box-sizing:border-box;flex-direction:column;gap:10px;width:100%;min-width:0;max-width:1280px;height:100dvh;margin:0 auto;padding:16px 16px 12px;display:flex;overflow:hidden}.alert-view>*{min-width:0}.alert-view .students-table-wrap{flex:1 1 0;min-height:200px;overflow:auto}.alert-view .mobile-log-list{flex:1 1 0;overflow:auto}.alert-view .logs-pager,.alert-view .page-heading,.alert-view .logs-filters,.alert-view .logs-meta,.alert-view .alert-view-error{flex:none}.alert-view .full-state{min-height:200px}.alert-view-head h1{margin:0;font-size:20px}.alert-view-head p{color:var(--muted);margin:6px 0 0;font-size:13px}.alert-view-error{color:#b42318;background:#fef3f2;border:1px solid #fecdca;border-radius:8px;align-items:center;gap:8px;padding:12px 14px;font-size:13px;display:flex}.alert-view-group{gap:8px;display:grid}.alert-view-group h2{align-items:center;gap:8px;margin:0;font-size:15px;display:flex}.alert-view-list{gap:6px;margin:0;padding:0;list-style:none;display:grid}.alert-view-row{border:1px solid var(--border);text-align:left;cursor:pointer;background:#fff;border-radius:8px;align-items:center;gap:12px;width:100%;padding:10px 12px;display:flex}.alert-view-row:hover{background:#f7f8f9}.alert-view-name{flex-direction:column;gap:2px;min-width:96px;font-size:14px;font-weight:600;display:flex}.alert-view-name small{color:var(--muted);font-size:11px;font-weight:400}.alert-view-meta{color:var(--muted);flex:auto;font-size:12px}.alert-view-detail{width:min(100vw - 32px,460px)}@media (width<=767px){.alert-view{padding:12px 12px 10px}.alert-view .students-table-wrap{display:none}}.link-button{color:#175cd3;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;padding:0;font-weight:600}.link-button:hover{text-decoration:underline}.override-toggle{color:#344054;align-items:center;gap:6px;font-size:13px;display:inline-flex}.override-hint{color:var(--muted);align-items:center;gap:6px;margin:8px 0 0;font-size:12px;display:flex}.teacher-actions{flex-wrap:wrap;gap:6px;display:flex}.access-pending-page{background:radial-gradient(circle at top,#fff 0,#f7f8fa 42%,#eef1f5 100%);place-items:center;min-height:100vh;padding:24px;display:grid}.access-pending-card{border:1px solid var(--border);background:#fff;border-radius:12px;gap:18px;width:min(100%,520px);padding:32px;display:grid;box-shadow:0 20px 60px #1018281a}.access-pending-icon{color:#175cd3;background:#eff4ff;border-radius:12px;place-items:center;width:52px;height:52px;display:grid}.access-pending-heading{gap:8px;display:grid}.access-pending-heading>span{color:#067647;letter-spacing:.08em;font-size:12px;font-weight:700}.access-pending-heading h1{margin:0;font-size:25px}.access-pending-heading p{color:var(--muted);margin:0;font-size:14px;line-height:1.7}.access-pending-heading p strong{color:#182230}.access-pending-note{color:#344054;background:#f5f8ff;border:1px solid #d1e0ff;border-radius:8px;padding:14px;font-size:13px;line-height:1.65}.access-pending-actions{gap:10px;display:flex}.admin-users-page{padding-bottom:12px;overflow-y:auto}.admin-panel{gap:12px;display:grid}.admin-users-table-wrap{flex:none}.admin-users-table code,.admin-candidate-identity code{color:var(--muted);word-break:break-all;font-size:12px}.admin-member-search{gap:8px;display:flex}.admin-member-search .filter-control{flex:auto;min-width:0}.admin-candidate-list{gap:8px;display:grid}.admin-candidate-card{border:1px solid var(--border);background:#fff;border-radius:8px;grid-template-columns:minmax(180px,1fr) minmax(170px,220px) auto;align-items:end;gap:14px;padding:14px;display:grid}.admin-candidate-card label{color:var(--muted);gap:6px;font-size:12px;display:grid}.admin-candidate-identity{align-items:center;gap:10px;min-width:0;display:flex}.admin-candidate-identity>div{gap:3px;min-width:0;display:grid}.admin-avatar{color:#175cd3;background:#eff4ff;border-radius:50%;flex:0 0 36px;place-items:center;width:36px;height:36px;display:grid}.admin-search-hint{color:var(--muted);background:#fbfcfd;border:1px dashed #cfd5dc;border-radius:8px;margin:0;padding:16px;font-size:13px}.admin-revoke-dialog{width:min(100vw - 32px,520px)}@media (width<=767px){.access-pending-page{align-items:end;padding:12px}.access-pending-card{padding:24px 20px max(24px, env(safe-area-inset-bottom));border-radius:12px}.access-pending-actions{flex-direction:column}.access-pending-actions .button{width:100%}.students-filter-row{align-items:stretch;width:100%}.away-filter{width:100%;min-width:0}.students-filter-row .filter-item{flex:100%;width:100%;min-width:0}.students-search{flex-wrap:wrap;justify-content:stretch;width:100%;min-width:0}.students-search .search-input{flex-basis:100%;width:100%;max-width:none}.students-search .button{flex:1 1 0}.students-table-wrap{display:none}.admin-revoke-dialog{max-height:88dvh;padding:20px 16px max(16px, env(safe-area-inset-bottom));overscroll-behavior:contain}.admin-revoke-dialog .dialog-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-revoke-dialog .dialog-actions .button{width:100%}.admin-revoke-dialog .dialog-actions .button:first-child{grid-area:auto}.admin-users-page{overflow-x:hidden}.admin-member-search{flex-direction:column}.admin-users-table-wrap{background:0 0;border:0;overflow:visible}.admin-users-table thead{display:none}.admin-users-table,.admin-users-table tbody{gap:10px;display:grid}.admin-users-table tr{border:1px solid var(--border);background:#fff;border-radius:8px;gap:10px;padding:14px;display:grid}.admin-users-table td{border:0;grid-template-columns:92px minmax(0,1fr);align-items:center;gap:8px;padding:0;display:grid}.admin-users-table td:before{content:attr(data-label);color:var(--muted);font-size:12px}.admin-users-table td .filter-control,.admin-users-table td .button{width:100%}.admin-candidate-card{grid-template-columns:1fr;align-items:stretch}.admin-candidate-card .button{width:100%}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
