:root{--bg:#f5f7fb;--text:#1f2937;--muted:#6b7280;--line:#e5e7eb;--primary:#2563eb;--danger:#dc2626}*{box-sizing:border-box}body,html{margin:0;padding:0;font-family:Arial,Helvetica,sans-serif}a{color:inherit;text-decoration:none}button{cursor:pointer}button,input,select,textarea{font:inherit;border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:#fff}label{display:block;margin-bottom:6px;font-size:14px;line-height:1.35;font-weight:500}input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea{display:block;width:100%;line-height:1.4}input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select{min-height:44px}textarea{width:100%;min-height:90px;resize:vertical;line-height:1.4}form{margin:0}.layout{display:grid;grid-template-columns:260px 1fr}.sidebar{border-right:1px solid var(--line);background:#fff;padding:24px;gap:24px}.brand{font-size:20px;font-weight:700;margin-bottom:8px}.menu{gap:8px}.menu-link{padding:10px 12px;border-radius:10px;transition:background .2s}.menu-link:hover{background:#eff6ff}.content{padding:24px}.topbar{margin-bottom:24px}.page-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px}.header-actions{display:flex;gap:12px;flex-wrap:wrap}h1,h2,h3{margin:0 0 8px}.muted{color:var(--muted)}.grid{display:grid;grid-gap:16px;gap:16px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:16px}.stat-card{min-height:110px}.stat-value{font-size:32px;font-weight:700;margin:8px 0}.table-wrap{overflow-x:hidden;overflow-y:auto;background:#fff;border:1px solid var(--line);border-radius:16px}table{width:100%;border-collapse:collapse;background:#fff}td,th{text-align:left;padding:12px 14px;border-bottom:1px solid var(--line);vertical-align:top}th{background:#f9fafb;font-weight:600}.actions{display:flex;gap:8px;flex-wrap:wrap}.button{display:inline-flex;align-items:center;justify-content:center;border-radius:10px;border:1px solid transparent;padding:10px 14px;font-weight:600}.button-primary{background:var(--primary);color:#fff}.button-danger{background:var(--danger)}.button:disabled,.button[aria-disabled=true]{background:#f3f4f6;color:#9ca3af;border-color:#d1d5db;cursor:not-allowed}.button-delete{background:#fff;color:#f72828;border-color:var(--line)}.button-delete:hover{border-color:#f72828}.button-delete:disabled,.button-delete[aria-disabled=true]{opacity:.7;cursor:not-allowed}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:16px;gap:16px}.form-grid .full{grid-column:1/-1}.form-grid>div,.stack>div{min-width:0}.auth-shell{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-card{width:100%;max-width:460px}.badge{display:inline-block;padding:4px 10px;border-radius:999px;background:#eef2ff;font-size:12px}.stack{display:flex;flex-direction:column;gap:16px}.inline-form{display:inline}@media (max-width:960px){.layout{grid-template-columns:1fr}.sidebar{display:none}.form-grid,.grid-2,.grid-3{grid-template-columns:1fr}}.alert{border-radius:12px;padding:14px 16px;border:1px solid transparent}.alert-error{background:rgba(178,34,34,.1);border-color:#b22222;color:#b22222;font-weight:600}.table-wrap table{table-layout:fixed}.table-wrap td,.table-wrap th{max-width:0}.truncate-text{display:block;width:100%;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.truncate-text.inline{display:inline-block;vertical-align:top}.save-success{min-height:44px;color:#33d11b;line-height:1.2;display:inline-flex;align-items:center;border-radius:999px;padding:8px 12px;background:#ecfdf5;color:#166534;font-size:14px;font-weight:600}.form-error{color:#b91c1c;font-size:14px}.task-tabs{display:inline-flex;gap:8px}.task-tab{background:#fff;border:1px solid var(--line);border-radius:999px;padding:10px 16px}.task-tab-active{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}.task-list{gap:12px}.task-list,.task-row{display:flex;flex-direction:column}.task-row{width:100%;text-align:left;border:1px solid var(--line);background:#fff;border-radius:14px;padding:14px;gap:10px;transition:border-color .2s,box-shadow .2s,transform .2s}.task-row:hover{border-color:#c7d2fe;box-shadow:0 6px 18px rgba(37,99,235,.08);transform:translateY(-1px)}.task-row-main,.task-row-meta{display:flex;flex-direction:column;gap:8px}.task-row-meta{color:var(--muted);font-size:14px}.task-status-badge,.task-type-badge{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:700}.task-type-badge{background:#eef2ff;color:#3730a3}.task-type-badge-urgent{background:#b22222;color:#fff}.task-status-badge{background:#f3f4f6;color:#374151}.task-status-badge-completed{background:#ecfdf5;color:#166534}.task-checkbox{display:inline-flex;align-items:center;gap:10px;width:-moz-fit-content;width:fit-content;cursor:pointer}.task-checkbox input{width:16px;height:16px}.modal-backdrop{position:fixed;inset:0;background:rgba(17,24,39,.45);display:flex;align-items:center;justify-content:center;padding:24px;z-index:1000}.modal-card{width:min(100%,640px);max-height:calc(100vh - 48px);overflow:auto;background:#fff;border-radius:18px;border:1px solid var(--line);padding:20px}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.modal-close{border:1px solid var(--line);background:#fff;border-radius:10px;width:42px;height:42px;padding:0;font-size:26px;line-height:1}.task-modal-meta{border:1px solid var(--line);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:8px}.topbar-actions{display:flex;align-items:center;gap:12px}.sidebar-logo-block,.sidebar-top{display:flex;flex-direction:column;gap:12px}.sidebar-logo-block{align-items:center;margin-bottom:4px}.sidebar-logo-image,.sidebar-logo-placeholder{width:70px;height:70px;border-radius:999px;object-fit:cover;border:1px solid var(--line);background:#f8fafc;display:block}.sidebar-logo-placeholder{color:#3652c2}.sidebar-logo-icon{width:28px;height:28px}.sidebar-upload-button{width:100%}.notification-bell-button{position:relative;width:44px;height:44px;border-radius:999px;border:1px solid var(--line);display:inline-flex;align-items:center;justify-content:center;color:#3652c2;transition:background .2s,border-color .2s,transform .2s}.notification-bell-button:hover{background:#eff6ff;border-color:#bfdbfe;transform:translateY(-1px)}.notification-bell-icon{width:22px;height:22px}.notification-badge{position:absolute;right:-4px;min-width:20px;height:20px;border-radius:999px;background:#b22222;color:#fff;font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;padding:0 6px;line-height:1}.sidebar-logo-upload{width:100%;display:flex;flex-direction:column;align-items:center}.sidebar-logo-trigger{border:0;background:transparent;padding:0;cursor:pointer;position:relative;border-radius:999px;line-height:0}.sidebar-logo-trigger:disabled{cursor:wait;opacity:.8}.sidebar-logo-trigger:hover .sidebar-logo-image,.sidebar-logo-trigger:hover .sidebar-logo-placeholder{box-shadow:0 0 0 3px rgba(54,82,194,.12);border-color:#3652c2}.sidebar-logo-loading{position:absolute;inset:0;display:grid;place-items:center;border-radius:999px;background:hsla(0,0%,100%,.78);color:#3652c2;font-size:12px;font-weight:700;line-height:1.2}.task-dashboard-link{display:flex;flex-direction:column;gap:8px;text-decoration:none;color:inherit;border:1px solid var(--line);border-radius:14px;padding:12px;background:#fff;transition:border-color .2s,box-shadow .2s,transform .2s}.task-dashboard-link:hover{border-color:#c7d2fe;box-shadow:0 6px 18px rgba(37,99,235,.08);transform:translateY(-1px)}.stat-card-link{text-decoration:none;color:inherit;cursor:pointer;transition:border-color .2s,box-shadow .2s,transform .2s}.stat-card-link:hover{border-color:#c7d2fe;box-shadow:0 6px 18px rgba(37,99,235,.08);transform:translateY(-1px)}.stat-card-link:focus-visible,.task-dashboard-link:focus-visible{outline:2px solid #3652c2;outline-offset:2px}.task-dashboard-card{border:1px solid var(--line);border-radius:14px;padding:12px;background:#fff}.sidebar-logo-input{display:none!important}.date-range{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-gap:12px;gap:12px}.filter-actions-right{justify-content:flex-end;align-items:flex-end}.button-filter-reset{background:silver;color:#111827;border-color:#a3a3a3}.button-filter-reset:hover{filter:brightness(.98)}.schedule-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}.schedule-mode-switch,.schedule-nav,.schedule-toolbar-right{display:flex;align-items:center;gap:8px}.schedule-range{font-size:18px;font-weight:700}.schedule-teacher-filter{min-width:260px}.schedule-teacher-filter label{display:block;margin-bottom:6px}.schedule-board{background:#fff;border:1px solid #d9deea;border-radius:18px;overflow:auto}.schedule-grid-header{display:grid;grid-template-columns:64px repeat(7,minmax(0,1fr));border-bottom:1px solid #d9deea;background:#f8faff;min-width:0}.schedule-grid-body{display:grid;grid-template-columns:64px minmax(0,1fr);min-width:0}.schedule-day-head,.schedule-time-head{padding:12px;border-right:1px solid #d9deea}.schedule-day-head{text-align:center;font-size:12px;font-weight:600;color:#43506c}.schedule-time-column{position:relative;border-right:1px solid #d9deea;background:#fff}.schedule-time-slot{position:relative;padding:2px 8px;font-size:12px;color:#6b7280;border-bottom:1px solid #eef1f6}.schedule-time-slot-last{position:absolute;bottom:-8px;left:0}.schedule-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.schedule-day-column{position:relative;border-right:1px solid #d9deea;background:#fff}.schedule-day-column:last-child{border-right:0}.schedule-day-column-active{background:rgba(54,82,194,.05)}.schedule-slot-line{position:absolute;left:0;right:0;border-bottom:1px solid #eef1f6;pointer-events:none}.schedule-drop-preview{position:absolute;left:8px;right:8px;border-radius:12px;background:rgba(54,82,194,.22);border:2px dashed #3652c2;pointer-events:none}.schedule-lesson-card{min-width:0;position:absolute;left:8px;right:8px;z-index:2;border:0;border-radius:12px;padding:8px;color:#111827;text-align:left;cursor:pointer;box-shadow:0 8px 24px rgba(17,24,39,.12);overflow:hidden;transition:transform .18s ease,box-shadow .18s ease,opacity .18s ease}.schedule-lesson-card:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(17,24,39,.18)}.schedule-lesson-card-dragging{opacity:.45;transform:scale(1.02)}.schedule-lesson-time{font-size:12px;font-weight:700;margin-bottom:4px}.schedule-lesson-group{font-size:14px;font-weight:700;line-height:1.2}.schedule-lesson-teacher{margin-top:4px;font-size:12px;line-height:1.2}.schedule-modal-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.schedule-modal-actions-right{display:flex;align-items:center;gap:8px;margin-left:auto}.schedule-confirm{border:1px solid #f3c6c6;background:#fff7f7;border-radius:14px;padding:14px}.schedule-confirm-actions{display:flex;gap:8px;margin-top:10px}.button-danger{background:#f72828;color:#fff;border-color:#f72828}@media (max-width:900px){.schedule-grid-body,.schedule-grid-header{min-width:720px}.schedule-grid-header{grid-template-columns:64px repeat(7,minmax(140px,1fr))}.schedule-grid-body{grid-template-columns:64px minmax(0,1fr)}.schedule-days{grid-template-columns:repeat(7,minmax(140px,1fr))}}.schedule-lesson-card{display:flex;flex-direction:column;justify-content:flex-start;gap:2px}.schedule-lesson-group,.schedule-lesson-teacher,.schedule-lesson-time{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.schedule-lesson-time{font-size:11px;margin-bottom:2px}.schedule-lesson-group{font-size:13px;line-height:1.15}.schedule-lesson-teacher{margin-top:2px;font-size:11px;opacity:.95}.group-schedule-title{text-align:center}.group-schedule-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border-radius:14px;background:orchid;color:#fff}.group-schedule-banner-name{font-size:24px;font-weight:700}.group-schedule-edit-disabled{background:silver;color:#fff;border-color:silver;cursor:default}.group-schedule-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-gap:0;gap:0;border:1px solid var(--line);border-radius:16px;overflow:hidden}.group-schedule-day{border-right:1px solid var(--line);background:#fff}.group-schedule-day:last-child{border-right:0}.group-schedule-day-head{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px;background:#607399;color:#fff;font-weight:700}.group-schedule-day-body{padding:12px;min-height:176px}.group-schedule-day-body,.group-schedule-time-column{display:flex;flex-direction:column;gap:8px}.group-schedule-time-input{min-width:0;text-align:center}.group-schedule-time-input:disabled{color:var(--text);opacity:1;background:#f8fafc}.group-schedule-time-input-error{border-color:var(--danger)}@media (max-width:1100px){.group-schedule-grid{grid-template-columns:1fr}.group-schedule-day{border-right:0;border-bottom:1px solid var(--line)}.group-schedule-day:last-child{border-bottom:0}}.student-tabs{display:inline-flex;gap:8px;flex-wrap:wrap}.student-tab{background:#fff;border:1px solid var(--line);border-radius:999px;padding:10px 16px;font-weight:600}.student-tab-active{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}.student-section-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}.student-filter-row{display:flex;gap:8px;flex-wrap:wrap}.student-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:12px 16px;gap:12px 16px}.subscription-badge{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:700}.subscription-badge-current{background:#ecfdf5;color:#166534}.subscription-badge-unpaid{background:#fff7ed;color:#c2410c}.subscription-badge-completed{background:#f3f4f6;color:#374151}@media (max-width:960px){.student-info-grid{grid-template-columns:1fr}}.student-tab-actions-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.subscription-remaining-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.subscription-inline-button{padding:5px 10px;font-size:14px;font-weight:500;min-height:32px}.student-attendance-toolbar{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap}.student-attendance-filter-row{align-items:center;gap:12px}.student-attendance-date-range{display:flex;gap:8px;flex-wrap:wrap}.student-attendance-date-range input{width:auto}.student-attendance-list{display:flex;flex-direction:column;gap:12px}.student-attendance-row{display:grid;grid-template-columns:260px minmax(0,1fr);border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff}.student-attendance-fixed{padding:16px;border-right:1px solid var(--line);background:#fff;position:-webkit-sticky;position:sticky;left:0;z-index:1}.student-attendance-student{font-weight:700;margin-bottom:6px}.student-attendance-group{color:var(--muted);font-size:14px}.student-attendance-group-link{color:var(--primary);font-size:14px;font-weight:600}.student-attendance-group-link:hover{text-decoration:underline}.student-attendance-scroll{overflow-x:auto;overflow-y:hidden}.student-attendance-track{min-width:max-content;padding:12px 16px 16px}.student-attendance-dates,.student-attendance-squares{display:grid;grid-auto-flow:column;grid-auto-columns:48px;grid-gap:10px;gap:10px;align-items:center}.student-attendance-dates{margin-bottom:8px}.student-attendance-date{text-align:center;color:#4b5563;font-size:14px}.student-attendance-square{width:40px;height:40px;border:2px solid transparent;border-radius:4px;cursor:pointer}.student-attendance-square-selected{border-color:#111827}.student-attendance-square:focus-visible{outline:2px solid #2563eb;outline-offset:2px}.student-attendance-square:disabled{cursor:not-allowed}@media (max-width:900px){.student-attendance-row{grid-template-columns:1fr}.student-attendance-fixed{position:static;border-right:0;border-bottom:1px solid var(--line)}}.subscription-details-grid{align-items:start}.student-attendance-date-field{display:inline-flex;align-items:center;gap:8px}.student-attendance-date-field span{min-width:18px}.student-attendance-date-range{display:inline-flex;align-items:center;gap:12px;flex-wrap:nowrap}@media (max-width:960px){.student-attendance-date-range{flex-wrap:wrap}}.group-member-add{display:grid;grid-template-columns:minmax(260px,1fr) auto;align-items:flex-end;grid-gap:12px;gap:12px}.group-member-search{position:relative}.group-member-suggestions{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 4px);display:flex;flex-direction:column;max-height:260px;overflow-y:auto;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 12px 28px rgba(15,23,42,.12)}.group-member-suggestions button{border:0;border-radius:0;background:#fff;text-align:left}.group-member-suggestions button:hover{background:#eff6ff}@media (max-width:760px){.group-member-add{grid-template-columns:1fr}}.birth-age-combined-field{width:100%}.birth-age-row{display:grid;grid-template-columns:minmax(0,1fr) 96px;grid-gap:8px;gap:8px}.global-search{width:min(420px,100%)}.global-search input{width:100%}.global-search-results{top:calc(100% + 6px);z-index:50;border:1px solid #d8dee9;border-radius:14px;box-shadow:0 16px 36px rgba(15,23,42,.12)}.global-search-results a{padding:10px 12px;color:#0f172a;text-decoration:none}.global-search-results a:hover{background:#f1f5ff}.global-search-results small{color:#2563eb;white-space:nowrap}.student-attendance-square-placeholder{display:inline-block;width:40px;height:40px;flex:0 0 40px}.inline-date-form{margin:0}.link-date-input{color:#2563eb;cursor:pointer;text-decoration:underline;text-underline-offset:3px}.student-attendance-student.student-attendance-group-link{display:inline-block}.lesson-attendance-row{display:grid;grid-template-columns:minmax(0,1fr) 220px;grid-gap:12px;gap:12px;align-items:center}.lesson-attendance-name{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.date-age-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,.65fr);grid-gap:8px;gap:8px;align-items:flex-end}.error-box{white-space:pre-wrap;word-break:break-word;padding:12px;border-radius:12px;background:#fff1f2;color:#991b1b;font-size:13px}.date-picker-field{position:relative;display:block;width:100%}.date-picker-field>input[type=text]{width:100%;min-width:0;padding-right:42px}.date-picker-field:focus-within>input[type=text]{outline:2px solid transparent;border-color:var(--primary);box-shadow:0 0 0 3px rgba(37,99,235,.14)}.date-picker-button{position:absolute;top:50%;right:8px;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border:0;border-radius:8px;background:transparent;color:#111827;cursor:pointer;transform:translateY(-50%)}.date-picker-button:hover{background:#f3f4f6}.date-picker-button:disabled{cursor:not-allowed;opacity:.45}.date-picker-icon{position:relative;display:block;width:18px;height:18px;color:transparent;pointer-events:none}.date-picker-icon:before{content:"";position:absolute;inset:0;background:currentColor;color:#111827;-webkit-mask:url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E") center /contain no-repeat;mask:url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E") center /contain no-repeat}.date-picker-popover{position:absolute;z-index:60;top:calc(100% + 8px);left:0;width:min(300px,92vw);padding:12px;border:1px solid var(--border);border-radius:14px;background:#fff;box-shadow:0 18px 40px rgba(15,23,42,.16)}.date-picker-popover-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.date-picker-current-month{font-weight:700;text-align:center}.date-picker-nav{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid var(--border);border-radius:10px;background:#fff;cursor:pointer;font-size:20px;line-height:1}.date-picker-nav:hover{background:#f3f4f6}.date-picker-days,.date-picker-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-gap:4px;gap:4px}.date-picker-weekdays{margin-bottom:4px;color:var(--muted);font-size:12px;font-weight:700;text-align:center}.date-picker-weekdays span{padding:4px 0}.date-picker-day{display:inline-flex;align-items:center;justify-content:center;min-width:0;height:34px;border:1px solid transparent;border-radius:10px;background:transparent;cursor:pointer;color:var(--text);font:inherit}.date-picker-day:hover{background:#eef2ff}.date-picker-day.is-outside-month{color:#9ca3af}.date-picker-day.is-today{border-color:var(--primary)}.date-picker-day.is-selected{background:var(--primary);color:#fff}.date-picker-time{display:grid;grid-gap:6px;gap:6px;margin-top:10px;font-size:13px;font-weight:600}.date-picker-time input{width:100%}.date-picker-popover-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.sort-link{display:inline-flex;align-items:center;gap:4px;font-weight:600}.period-filter{align-items:flex-end}.period-filter label{margin-bottom:0}.period-date-field{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;grid-gap:8px;gap:8px;width:100%}.period-filter-prefix{display:inline-flex;align-items:center;min-width:16px;color:var(--muted);font-weight:600}.table-tools{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap}.notice{border-radius:12px;padding:12px 14px;border:1px solid var(--line);font-weight:600}.notice.success{background:#ecfdf5;border-color:#bbf7d0;color:#166534}.notice.error{background:#fff1f2;border-color:#fecdd3;color:#991b1b}.link,.table-link{color:var(--primary);font-weight:600;text-decoration:underline;text-underline-offset:3px}.link:hover,.table-link:hover{color:#1d4ed8}.request-access-callout{display:flex;flex-direction:column;gap:8px;padding:14px;border:1px solid #bfdbfe;border-radius:14px;background:#eff6ff}.request-access-callout span{color:var(--muted);font-size:14px}.request-access-callout a{color:var(--primary);font-weight:700;text-decoration:underline;text-underline-offset:3px}.filters{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap}.filters>input,.filters>select{max-width:260px}.filters .button{margin-left:4px}.system-requests-table-wrap{overflow-x:auto}.system-requests-table-wrap table{min-width:1180px;table-layout:auto}.system-requests-table-wrap td,.system-requests-table-wrap th{max-width:none;vertical-align:top}.system-request-comment{min-width:220px;max-width:320px;white-space:normal;word-break:break-word}.system-request-actions{min-width:220px}.system-request-form{display:flex;align-items:center;gap:10px;flex-wrap:nowrap}.system-request-form select{min-width:120px}.notice.warning{background:#fffbeb;border-color:#fde68a;color:#92400e}.filters-spaced{gap:18px;margin-top:8px;margin-bottom:4px}.system-requests-table-wrap table{min-width:820px}.system-request-actions{min-width:260px}.system-request-form .button-primary{white-space:nowrap}.menu-group{position:relative}.menu-group-trigger{padding:10px 12px;border:1px solid transparent;border-radius:10px;color:var(--text);font:inherit;font-weight:600;text-align:left}.menu-group-trigger:hover,.menu-group:focus-within .menu-group-trigger,.menu-group[open] .menu-group-trigger{background:#eff6ff;color:var(--primary)}.menu-group-chevron{transition:transform .18s ease}.menu-group[open] .menu-group-chevron{transform:rotate(90deg)}.menu-group-panel{display:none;gap:4px;padding:4px 0 4px 12px}.menu-group[open] .menu-group-panel{display:flex}.menu-sub-link{white-space:normal;font-size:14px;padding-left:14px}.schedule-day-column{cursor:default}.schedule-day-column:hover{background-color:rgba(37,99,235,.03)}.table-link-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background:transparent;padding:0;border-radius:0;cursor:pointer;text-align:left;font:inherit}.employee-modal-form{align-items:end}.employee-modal-actions{justify-content:flex-end;margin-top:4px}.tabs{display:flex;gap:8px;flex-wrap:wrap}.tab-button,.tabs{align-items:center}.tab-button{display:inline-flex;justify-content:center;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--text);text-decoration:none;font-weight:600}.tab-button.active{background:#eef4ff;color:var(--primary);border-color:#bfdbfe}.period-field{display:flex;align-items:center;gap:8px}.period-field>span{flex:0 0 auto;color:var(--muted);font-weight:600}.period-field .date-picker-field{flex:1 1}.teacher-payment-result{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:10px 16px;gap:10px 16px;padding:16px;border:1px solid var(--line);border-radius:16px;background:#f9fafb}.teacher-payment-save{grid-column:1/-1;margin-top:4px}.teacher-payment-history{overflow-x:hidden;border:1px solid var(--line);border-radius:16px}.teacher-payment-history table{table-layout:fixed}.teacher-payment-history td,.teacher-payment-history th{padding:10px 8px;font-size:14px;overflow-wrap:anywhere}.teacher-payment-history td:first-child,.teacher-payment-history th:first-child{width:18%}.teacher-payment-history td:nth-child(2),.teacher-payment-history td:nth-child(5),.teacher-payment-history th:nth-child(2),.teacher-payment-history th:nth-child(5){width:14%}.teacher-payment-history td:nth-child(3),.teacher-payment-history td:nth-child(4),.teacher-payment-history th:nth-child(3),.teacher-payment-history th:nth-child(4){width:10%}@media (max-width:780px){.teacher-payment-result{grid-template-columns:1fr}}.notice.success{animation:noticeAutoHide 5s ease forwards;overflow:hidden}.audit-table-wrap{overflow-x:visible}.audit-table td:nth-child(2),.audit-table th:nth-child(2){width:170px}.audit-table td:nth-child(3),.audit-table th:nth-child(3){width:140px}.audit-table td:nth-child(4),.audit-table th:nth-child(4){width:180px}.audit-table td{vertical-align:top}.audit-summary{overflow-wrap:anywhere;line-height:1.45}.notice.success,.save-success{animation:noticeAutoHide 5s ease forwards;overflow:hidden}@keyframes noticeAutoHide{0%,85%{opacity:1;max-height:160px;transform:translateY(0)}to{opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-width:0;transform:translateY(-4px);visibility:hidden}}.audit-table td,.audit-table th{white-space:normal;overflow-wrap:break-word}.audit-table td:first-child,.audit-table th:first-child{width:150px}.audit-date{white-space:normal}.audit-table td:first-child,.audit-table th:first-child{width:160px}.audit-table td:nth-child(2),.audit-table th:nth-child(2){width:220px}.audit-table td:nth-child(3),.audit-table td:nth-child(4),.audit-table th:nth-child(3),.audit-table th:nth-child(4){width:auto}.audit-table-wrap{overflow-x:hidden}.audit-table{width:100%;table-layout:fixed}.audit-table .audit-col-date{width:190px}.audit-table .audit-col-user{width:240px}.audit-table .audit-col-summary{width:auto}.audit-table td,.audit-table th{vertical-align:top;line-height:1.45;word-break:normal}.audit-date,.audit-table td:first-child,.audit-table td:nth-child(2),.audit-table th:first-child,.audit-table th:nth-child(2),.audit-user{white-space:nowrap;overflow-wrap:normal}.audit-date{color:var(--muted)}.audit-user{font-weight:600}.audit-summary{white-space:normal;overflow-wrap:break-word;word-break:normal;color:var(--text)}.legal-document{max-width:920px;width:min(920px,100%)}.legal-content pre{white-space:pre-wrap;font-family:inherit;line-height:1.6}.checkbox-row{display:flex;gap:.6rem;align-items:flex-start}.checkbox-row input{margin-top:.25rem}.notice.success,.save-success{animation:none!important;max-height:none!important;overflow:visible!important;transform:none!important}.save-success{position:fixed;top:18px;right:24px;z-index:10000;box-shadow:0 12px 28px rgba(15,23,42,.16);pointer-events:none}.checkbox-inline{display:inline-flex;align-items:center;gap:8px;font-size:13px}.danger-zone{margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}:root{--bg:#f6f8fb;--card:#fff;--text:#0d1f42;--muted:#6f7b91;--line:#dbdbdb;--primary:#2455a6;--sidebar-bg:#153c71;--attention-danger:#c94a4a;--attention-orange:#d9863b;--attention-yellow:#d4b106;--attention-green:#5f8f5f}body,html{font-family:Inter,Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text)}.layout{grid-template-columns:255px 1fr}.sidebar{padding:30px 18px 30px 20px;gap:34px}.sidebar .muted{color:hsla(0,0%,100%,.68)}.sidebar-top{gap:8px}.sidebar-logo-block{align-items:flex-start;margin-bottom:28px}.sidebar-logo-image,.sidebar-logo-placeholder{width:72px;height:72px;border-color:hsla(0,0%,100%,.25);background:hsla(0,0%,100%,.08)}.menu{gap:12px}.menu-link{transition:background .2s,color .2s}.menu-group-trigger{color:hsla(0,0%,100%,.45);letter-spacing:.04em;padding:8px 10px}.menu-group-panel{margin-top:8px}.menu-sub-link{padding-left:24px}.menu-group-chevron{transform:rotate(90deg);font-size:20px}.content{padding:27px 28px 42px}.global-search{position:relative}.global-search input{padding-left:48px;font-size:18px}.global-search:before{content:"⌕";left:18px;color:#9aa5b5;font-size:28px;line-height:1}.global-search-results{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:20;background:#fff;border:1px solid var(--line);border-radius:11px;overflow:hidden}.global-search-results a{display:flex;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line)}.global-search-results a:last-child{border-bottom:0}.button-secondary,.notification-bell-button{min-height:50px;border-radius:11px;border-color:var(--line);color:var(--text);background:#fff}.dashboard-page{display:flex;flex-direction:column}.dashboard-title{color:var(--text)}.dashboard-card{padding:28px 30px}.dashboard-card h2{color:var(--text)}.dashboard-section-line{margin:24px 0 18px}.dashboard-attention-card{padding:30px 30px 25px}.dashboard-attention-list{display:flex;flex-direction:column;gap:10px}.dashboard-attention-row{min-height:64px;display:grid;grid-template-columns:48px minmax(0,1fr) 48px 22px;align-items:center;grid-gap:16px;gap:16px;color:inherit;transition:background .2s}.dashboard-attention-icon{border-radius:999px;display:inline-flex;align-items:center;justify-content:center;border:1px solid;font-size:28px;font-weight:700;background:#fff}.dashboard-attention-count-danger,.dashboard-attention-icon-danger{color:var(--attention-danger)}.dashboard-attention-count-orange,.dashboard-attention-icon-orange{color:var(--attention-orange)}.dashboard-attention-count-yellow,.dashboard-attention-icon-yellow{color:var(--attention-yellow)}.dashboard-attention-count-green,.dashboard-attention-icon-green{color:var(--attention-green)}.dashboard-attention-copy{display:flex;flex-direction:column;min-width:0}.dashboard-attention-copy span{color:var(--muted);font-weight:600}.dashboard-attention-count{border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-weight:700}.dashboard-attention-arrow{color:var(--muted);font-size:34px;line-height:1}.dashboard-grid{display:grid;grid-gap:28px}.dashboard-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-card-header{display:flex;justify-content:space-between;align-items:center;gap:12px}.dashboard-task-list{display:flex;flex-direction:column;gap:14px;min-height:120px}.dashboard-task-line{display:grid;grid-template-columns:24px 92px minmax(0,1fr);align-items:center;grid-gap:10px;color:inherit}.dashboard-task-line strong{font-size:16px}.dashboard-task-line span:last-child{color:var(--muted);font-size:16px;font-weight:600}.dashboard-task-dot{border-radius:999px;display:inline-block}.dashboard-task-dot-normal{background:#e5c400}.dashboard-task-dot-overdue{background:#ff3744}.dashboard-show-all{display:block;text-align:right;font-weight:700;color:var(--text)}.dashboard-finance-grid{display:grid;grid-gap:30px;margin-top:24px}.dashboard-finance-card{border:1px solid var(--line);display:flex;flex-direction:column;justify-content:center;gap:14px}.dashboard-finance-card span{font-weight:700}.dashboard-finance-card em{font-style:normal;color:var(--attention-danger);font-weight:700}.dashboard-finance-income{background:#f0f7f2;color:var(--attention-green)}.dashboard-finance-income strong{color:var(--text)}.dashboard-finance-pending{background:#fbf8ef;color:#9b855c}.dashboard-finance-pending strong{color:var(--text)}.dashboard-finance-overdue{background:#fcf4f2;color:#b56d6d}.dashboard-finance-overdue strong{color:var(--text)}.dashboard-mini-stat{min-height:110px;border:1px solid var(--line);padding:20px;display:flex;flex-direction:column;gap:10px;background:#fff}.dashboard-mini-stat span{color:var(--muted)}.dashboard-mini-stat strong{font-size:34px;color:var(--text)}.compact-stack{gap:6px}@media (max-width:1100px){.dashboard-finance-grid,.dashboard-grid-2{grid-template-columns:1fr}.dashboard-attention-row{grid-template-columns:48px minmax(0,1fr) 44px}.dashboard-attention-arrow{display:none}}@media (max-width:960px){.layout{grid-template-columns:1fr}.sidebar{display:none}.content{padding:20px}}.layout{grid-template-columns:255px minmax(0,1fr);min-height:100vh;background:var(--bg)}.sidebar{width:255px;min-height:100vh;padding:30px 30px 30px 20px;background:var(--sidebar-bg);color:#fff;border-right:0;position:-webkit-sticky;position:sticky;top:0;align-self:start;justify-content:space-between;gap:28px}.sidebar,.sidebar-main{display:flex;flex-direction:column}.sidebar-main{min-height:0}.sidebar-brand{display:flex;align-items:center;gap:12px;min-height:54px}.sidebar-brand-copy{display:flex;flex-direction:column;line-height:1.05;color:#fff}.sidebar-brand-copy span,.sidebar-brand-copy strong{font-size:25px;font-weight:800;letter-spacing:-.03em}.sidebar-user{margin-top:40px;margin-left:12px}.sidebar-user-name{color:#fff;font-size:16px;line-height:1.3;font-weight:600}.sidebar-user-role{margin-top:4px;color:hsla(0,0%,100%,.58);font-size:14px;line-height:1.3;font-weight:500}.sidebar-logo-upload{width:auto;flex:0 0 auto;align-items:flex-start}.sidebar-logo-trigger{border-radius:11px}.sidebar-logo-image,.sidebar-logo-placeholder{width:44px;height:44px;border:0;border-radius:11px;background:transparent;color:#fff}.sidebar-logo-placeholder{display:grid;place-items:center}.sidebar-logo-icon{width:44px;height:44px}.menu{margin-top:38px;display:flex;flex-direction:column;gap:10px}.menu-link{min-height:50px;display:flex;align-items:center;gap:15px;border-radius:11px;padding:12px;color:#fff;font-size:18px;line-height:1.2;font-weight:500;transition:background .18s ease,color .18s ease}.menu-link-active,.menu-link:hover{background:var(--primary);color:#fff}.menu-link-icon{flex:0 0 24px;color:currentColor}.menu-link span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis}.menu-group{margin-top:18px}.menu-group-trigger{width:100%;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:8px;border:0;border-radius:0;background:transparent;padding:8px 0 8px 10px;color:hsla(0,0%,100%,.43);text-transform:uppercase;letter-spacing:.045em;font-size:13px;line-height:1.2;font-weight:500;cursor:pointer}.menu-group-trigger:hover,.menu-group:focus-within .menu-group-trigger,.menu-group[open] .menu-group-trigger{background:transparent;color:hsla(0,0%,100%,.55)}.menu-group-trigger::-webkit-details-marker{display:none}.menu-group-chevron{transform:none;color:hsla(0,0%,100%,.45);font-size:18px;line-height:1}.menu-group[open] .menu-group-chevron{transform:rotate(180deg)}.menu-group-panel{display:flex;flex-direction:column;gap:10px;margin-top:14px;padding:0}.menu-sub-link{padding-left:12px;font-size:18px}.sidebar-version{margin-left:12px;color:hsla(0,0%,100%,.24);font-size:12px;line-height:1.25;font-weight:500;display:flex;flex-direction:column}.content{padding:27px 26px 42px;min-width:0;background:var(--bg)}.topbar{min-height:50px;margin-bottom:36px;display:flex;align-items:center;justify-content:space-between;gap:24px}.topbar-actions,.topbar-right{display:flex;align-items:center;gap:16px}.topbar-date{height:50px;min-width:148px;border:1px solid var(--line);border-radius:11px;background:#fff;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:7px 13px;color:#6f7b91}.topbar-date-icon{width:24px;height:24px;flex:0 0 auto}.topbar-date strong{color:#6f7b91;font-size:24px;line-height:1;font-weight:600}.topbar-date span{color:#6f7b91;font-size:11px;line-height:1.12;font-weight:600;text-transform:lowercase}.global-search{width:min(432px,100%)}.global-search input{height:50px;border-radius:11px;border-color:var(--line);padding-left:50px;color:var(--text);background:#fff;font-size:20px}.global-search:before{left:20px;top:50%;width:18px;height:18px;transform:translateY(-50%);border:2px solid #9aa5b5}.global-search:after,.global-search:before{content:"";position:absolute;border-radius:999px;z-index:1}.global-search:after{left:35px;top:calc(50% + 9px);width:9px;height:2px;transform:rotate(45deg);transform-origin:left center;background:#9aa5b5}.notification-bell-button{width:50px;height:50px;border-color:var(--line);color:#6f7b91;background:#fff}.notification-badge{top:-4px;right:-3px;background:#f04f52;border:2px solid #fff}.button-secondary{min-width:92px;min-height:50px;border-radius:11px;border-color:var(--line);background:#fff;color:var(--text);font-size:18px;font-weight:600}.dashboard-page{gap:28px}.dashboard-title{font-size:34px;line-height:1.2;font-weight:700;letter-spacing:-.02em;margin:0 0 2px}.dashboard-card{border:1px solid var(--line);border-radius:11px;background:#fff;padding:30px;box-shadow:none}.dashboard-card h2{font-size:24px;line-height:1.25;font-weight:700;margin:0}.dashboard-section-line{height:1px;background:var(--line);margin:26px 0 18px}.dashboard-attention-card{padding:30px 30px 18px}.dashboard-attention-list{gap:8px}.dashboard-attention-row{min-height:66px;grid-template-columns:50px minmax(0,1fr) 50px 22px;gap:14px;border-radius:11px;padding:6px 12px}.dashboard-attention-row:hover{background:#f6f8fb}.dashboard-attention-icon{width:48px;height:48px;font-size:0}.dashboard-attention-icon svg{width:24px;height:24px}.dashboard-attention-copy{gap:4px}.dashboard-attention-copy strong{color:var(--text);font-size:18px;line-height:1.25;font-weight:800}.dashboard-attention-copy span{color:#6f7b91;font-size:16px;line-height:1.25;font-weight:700}.dashboard-attention-count{width:44px;height:44px;background:#faf0ef;font-size:24px;font-weight:800}.dashboard-attention-count-orange{background:#fcf1e8}.dashboard-attention-count-yellow{background:#faf5dc}.dashboard-attention-count-green{background:#eef7ef}.dashboard-attention-arrow{color:#6f7b91;font-size:36px;font-weight:300}.dashboard-grid{gap:28px}.dashboard-card-header{min-height:30px}.dashboard-task-list{gap:13px;min-height:116px}.dashboard-task-line{grid-template-columns:24px 112px minmax(0,1fr);gap:10px;min-height:26px}.dashboard-task-dot{width:22px;height:22px}.dashboard-task-line span:last-child,.dashboard-task-line strong{font-size:18px;line-height:1.25}.dashboard-task-line strong{color:var(--text);font-weight:800}.dashboard-task-line span:last-child{color:#6f7b91;font-weight:700}.dashboard-show-all{margin-top:18px;font-size:18px;font-weight:800}.dashboard-finance-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:30px;margin-top:30px}.dashboard-finance-card{position:relative;min-height:164px;border-radius:11px;padding:24px 26px;overflow:hidden;box-shadow:none}.dashboard-finance-card span{font-size:18px;line-height:1.25;font-weight:800}.dashboard-finance-card strong{color:var(--text);font-size:34px;line-height:1.1;font-weight:800;letter-spacing:-.02em}.dashboard-finance-card em{font-size:18px;line-height:1.25;font-weight:800}.dashboard-finance-icon svg{width:100%;height:100%}.dashboard-mini-stat{border-radius:11px;box-shadow:none}@media (max-width:1100px){.dashboard-attention-row{grid-template-columns:48px minmax(0,1fr) 44px}.dashboard-finance-grid,.dashboard-grid-2{grid-template-columns:1fr}.topbar-date{display:none}}@media (max-width:960px){.layout{grid-template-columns:1fr}.sidebar{display:none}.content{padding:20px}.topbar{gap:12px}.topbar-right{margin-left:auto}}.dashboard-icon-mask,.menu-link-icon{display:inline-block;background:currentColor;-webkit-mask:var(--icon-url) center /contain no-repeat;mask:var(--icon-url) center /contain no-repeat}.dashboard-attention-icon-mask,.menu-link-icon{width:24px;height:24px}.dashboard-finance-icon{position:absolute;right:22px;bottom:22px;width:34px;height:34px;color:currentColor;opacity:.8}.dashboard-birthdays-card{max-width:none}.dashboard-birthdays-icon{width:34px;height:34px;color:var(--attention-orange);flex:0 0 auto}.dashboard-birthdays-list{display:flex;flex-direction:column;gap:12px}.dashboard-birthday-row{min-height:52px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;grid-gap:16px;gap:16px;border-radius:11px;padding:8px 12px;color:inherit}.dashboard-birthday-row:hover{background:#f6f8fb}.dashboard-birthday-row span{min-width:0;display:flex;flex-direction:column;gap:4px}.dashboard-birthday-row strong{color:var(--text);font-size:18px;line-height:1.25;font-weight:800}.dashboard-birthday-row em{color:#6f7b91;font-style:normal;font-size:16px;line-height:1.25;font-weight:700}.dashboard-birthday-row b{color:var(--attention-orange);font-size:16px;line-height:1.25;font-weight:800;white-space:nowrap}.dashboard-empty-text{margin:0;color:#6f7b91;font-size:16px;font-weight:600}