:root{--p:#2563eb;--bg:#f4f7fb;--side:#172033;--text:#1f2937;--muted:#64748b;--line:#e5e7eb;--ok:#16a34a;--warn:#d97706;--bad:#dc2626}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px -apple-system,BlinkMacSystemFont,Segoe UI,Microsoft YaHei,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}.app{min-height:100vh;display:flex}.sidebar{width:242px;background:var(--side);color:#dbe4f0;flex:none}.brand{padding:21px 20px;border-bottom:1px solid #29354b;color:#fff;font-size:18px;font-weight:700}.brand small{display:block;font-size:11px;color:#8fa1ba;font-weight:400;margin-top:6px}.nav{padding:14px 10px}.nav-title{padding:15px 12px 7px;color:#7f91ad;font-size:11px}.nav-item{padding:11px 13px;border-radius:7px;margin:3px 0;color:#becadd;display:flex;gap:10px;cursor:default;-webkit-user-select:none;user-select:none}.nav-item:hover{background:#24324a;color:#fff}.nav-item.active{background:var(--p);color:#fff}.main{min-width:0;flex:1;display:flex;flex-direction:column}.topbar{height:64px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 25px}.top-left,.top-right,.user-box,.actions{display:flex;align-items:center;gap:12px}.mobile-menu{display:none;background:#eef4ff;color:var(--p);padding:8px;border:0;border-radius:6px}.crumb{color:var(--muted)}.notice{position:relative;font-size:18px}.notice-button{border:0;background:transparent;padding:7px 9px;min-width:34px;min-height:34px;display:inline-flex;align-items:center;justify-content:center;color:#111827;line-height:1}.notice-button:hover{background:#f1f5f9;box-shadow:none;transform:none}.notice-button:focus-visible{outline:2px solid rgba(37,99,235,.45);outline-offset:2px}.notice b{position:absolute;top:-8px;right:-10px;background:#ef4444;color:#fff;border-radius:10px;font-size:10px;padding:2px 5px}.avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#dbeafe;color:var(--p);font-weight:700}.user-name{font-weight:600}.user-role{font-size:11px;color:var(--muted)}.content{padding:24px;overflow:auto}.page-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.page-head h1{font-size:22px;margin:0 0 6px}.page-head p{margin:0;color:var(--muted)}.btn{border-radius:6px;padding:9px 14px;background:#fff;color:#475569;border:1px solid #d9e0ea}.btn-primary{background:var(--p);border-color:var(--p);color:#fff}.btn-success{background:var(--ok);border-color:var(--ok);color:#fff}.btn-warning{background:#f59e0b;border-color:#f59e0b;color:#fff}.btn-danger{background:var(--bad);border-color:var(--bad);color:#fff}.btn-light{background:#eff6ff;border-color:#dbeafe;color:var(--p)}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px}.stat-card,.panel{background:#fff;border:1px solid #edf0f5;border-radius:10px;padding:18px;box-shadow:0 2px 8px #0f172a08}.stat-top,.panel-title{display:flex;justify-content:space-between;align-items:center;color:var(--muted)}.stat-icon{width:38px;height:38px;border-radius:9px;display:grid;place-items:center;font-size:19px}.blue{background:#e8f1ff;color:#2563eb}.green{background:#e7f8ed;color:#16a34a}.orange{background:#fff4df;color:#d97706}.purple{background:#f1eaff;color:#7c3aed}.stat-value{font-size:27px;font-weight:700;margin-top:11px;letter-spacing:.2px}.stat-value small{font-size:13px;font-weight:500;color:var(--muted);margin-left:5px}.stat-foot{line-height:1.5}.stat-foot,.muted{font-size:12px;color:var(--muted)}.panel{margin-bottom:18px}.panel-title h3{font-size:16px;margin:0;color:var(--text)}.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.toolbar{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:15px}.toolbar input,.toolbar select,.form-input{border:1px solid #dbe2ec;border-radius:6px;padding:9px 11px;background:#fff;min-width:140px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:720px}th,td{text-align:left;padding:12px 10px;border-bottom:1px solid #eef1f5;white-space:nowrap}th{background:#f8fafc;color:#526174;font-size:12px}td{color:#334155}.tag{display:inline-block;padding:4px 9px;border-radius:12px;font-size:12px}.tag-green{background:#dcfce7;color:#15803d}.tag-blue{background:#dbeafe;color:#1d4ed8}.tag-orange{background:#ffedd5;color:#c2410c}.tag-red{background:#fee2e2;color:#b91c1c}.tag-gray{background:#f1f5f9;color:#64748b}.link{color:var(--p);cursor:pointer}.chart{height:220px;display:flex;align-items:flex-end;gap:20px;padding:22px 12px 0;border-bottom:1px solid #e5e7eb}.bar-col{height:100%;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px}.bar-wrap{height:100%;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;gap:5px}.chart-bar-button{border:0;background:transparent;padding:0;color:inherit;cursor:pointer}.chart-bar-button:hover .bar{filter:brightness(1.08);box-shadow:0 3px 10px #2563eb40}.chart-bar-button:focus-visible{outline:2px solid #2563eb;outline-offset:3px;border-radius:5px}.bar-value{font-size:11px;color:#2563eb;font-weight:700}.bar{width:38px;border-radius:5px 5px 0 0;background:linear-gradient(#60a5fa,#2563eb);min-height:10px;position:relative}.bar-label{font-size:12px;color:var(--muted)}.chart-note{font-size:12px;color:var(--muted);margin-top:10px}.legend{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted)}.legend-dot{width:8px;height:8px;border-radius:50%;background:#2563eb;display:inline-block}.progress{height:8px;background:#edf2f7;border-radius:5px;overflow:hidden}.progress i{height:100%;display:block;background:var(--p)}.empty{text-align:center;color:#94a3b8;padding:30px}.modal-mask{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a7a;display:none;align-items:center;justify-content:center;z-index:10;padding:18px}.modal{background:#fff;border-radius:10px;width:min(650px,100%);max-height:92vh;overflow:auto;padding:22px}.modal h2{margin:0 0 18px}.modal-head{display:flex;justify-content:space-between;align-items:center}.close{background:none;border:0;font-size:24px;color:#94a3b8}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-item label{display:block;font-size:12px;color:#64748b;margin-bottom:5px}.form-item.full{grid-column:1/-1}.form-item input,.form-item select,.form-item textarea{width:100%;border:1px solid #dbe2ec;border-radius:6px;padding:9px}.form-item textarea{min-height:75px}.modal-foot{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.login{min-height:100vh;background:linear-gradient(135deg,#eaf2ff,#f8fbff);display:grid;place-items:center}.login-card{width:min(410px,92%);background:#fff;border-radius:14px;padding:36px;box-shadow:0 15px 45px #2563eb24}.login-logo{text-align:center;color:var(--p);font-size:23px;font-weight:700}.login-sub{text-align:center;color:var(--muted);margin:8px 0 25px}.login-card label{display:block;color:#64748b;font-size:12px;margin:13px 0 5px}.login-card input,.login-card select{width:100%;padding:12px;border:1px solid #dbe2ec;border-radius:7px}.login-card .btn{width:100%;margin-top:18px}.login-register{display:flex;width:100%;height:38px;min-height:38px;margin:8px 0 0!important;justify-content:center;align-items:center}.login-card .login-register{margin-top:18px!important}.login-card .btn-primary{width:100%;height:38px;min-height:38px;margin-left:0!important}.invite-list{display:grid;gap:10px;margin-top:18px}.invite-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;min-height:38px;padding:8px 10px;border:1px solid #e5eaf1;border-radius:8px;background:#f8fbff;color:#334155}.invite-row.is-disabled{background:#f1f3f5;border-color:#e2e5e8;color:#87909b}.invite-row>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.password-field{position:relative;display:flex;align-items:center}.password-field input{width:100%;padding-right:42px!important}.password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:30px;height:30px;min-height:30px;padding:0;border:0;background:transparent;color:#94a3b8;display:grid;place-items:center;cursor:pointer}.password-toggle:hover{color:#64748b;box-shadow:none;transform:translateY(-50%)}.eye-icon{display:block;width:24px;height:24px;background:center/24px 24px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 48 48' fill='none'%3E%3Cpath d='M24 36C35.0457 36 44 24 44 24C44 24 35.0457 12 24 12C12.9543 12 4 24 4 24C4 24 12.9543 36 24 36Z' fill='%2394a3b8' stroke='%2394a3b8' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M24 29C26.7614 29 29 26.7614 29 24C29 21.2386 26.7614 19 24 19C21.2386 19 19 21.2386 19 24C19 26.7614 21.2386 21.2386 19 24 19C21.2386 19 19 21.2386 19 24C19 26.7614 21.2386 29 24 29Z' fill='%23FFF' stroke='%23FFF' stroke-width='4' stroke-linejoin='round'/%3E%3C/svg%3E")}.password-toggle.is-visible .eye-icon{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 48 48' fill='none'%3E%3Cpath d='M24 36C35.0457 36 44 24 44 24C44 24 35.0457 12 24 12C12.9543 12 4 24 4 24C4 24 12.9543 36 24 36Z' fill='%232563eb' stroke='%232563eb' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M24 29C26.7614 29 29 26.7614 29 24C29 21.2386 26.7614 19 24 19C21.2386 19 19 21.2386 19 24C19 26.7614 21.2386 29 24 29Z' fill='%23FFF' stroke='%23FFF' stroke-width='4' stroke-linejoin='round'/%3E%3C/svg%3E")}.invite-readonly-tip{margin:0 0 16px;padding:10px 12px;border:1px solid #dbeafe;background:#eff6ff;border-radius:7px;color:#475569}.confirm-content{padding:4px 0 18px;color:#334155;line-height:1.7}.confirm-content small{display:block;margin-top:4px;color:var(--muted)}.invite-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px}.invite-row .btn{width:76px;min-width:76px;margin:0!important;padding:8px 10px}.invite-row .btn-danger{background:#fff1f2;border-color:#fecdd3;color:#be123c}.invite-row .btn-danger:hover{background:#ffe4e6;border-color:#fda4af}.login-hint{display:none!important;font-size:12px;color:#94a3b8;text-align:center;margin-top:16px}.message-list{display:grid;gap:10px}.message{border:1px solid #e8edf3;border-radius:8px;padding:15px;display:flex;justify-content:space-between;gap:15px}.message.unread{border-left:3px solid var(--p);background:#f8fbff}.message h4{margin:0 0 6px}.message p{margin:0;color:#64748b}.check-grid,.permission-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.permission-card{border:1px solid #e2e8f0;border-radius:8px;padding:15px}.permission-card h4{margin:0 0 9px}.permission-card label{display:block;margin:8px 0;color:#64748b}.toast{position:fixed;right:20px;bottom:20px;background:#1f2937;color:#fff;padding:12px 18px;border-radius:7px;display:none;z-index:20}@media(max-width:1000px){.cards{grid-template-columns:repeat(2,1fr)}.grid-2{grid-template-columns:1fr}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.sidebar{position:fixed;left:-242px;top:0;bottom:0;z-index:8;transition:left .2s}.sidebar.show{left:0}.mobile-menu{display:block}.topbar{padding:0 14px}.user-name{display:none}.content{padding:15px}.page-head{display:block}.actions{margin-top:12px}.form-grid{grid-template-columns:1fr}.form-item.full{grid-column:auto}.check-grid,.permission-grid{grid-template-columns:1fr}}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:9px 16px;line-height:1.2;white-space:nowrap;transition:background .16s,border-color .16s,box-shadow .16s,transform .16s}.btn+.btn{margin-left:8px}.btn:hover{box-shadow:0 3px 10px #0f172a1a;transform:translateY(-1px)}.btn:active{transform:translateY(0);box-shadow:none}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.actions .btn+.btn{margin-left:0}.top-right{gap:16px}.top-right>.btn{margin-left:4px}.toolbar{align-items:center;gap:12px;padding:2px 0}.toolbar input,.toolbar select{height:40px;min-width:160px;padding:0 12px}.panel-title{gap:16px}.panel-title .btn{margin-left:auto}.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px}.student-profile-page{max-width:1180px;margin:0 auto}.student-profile-page .page-head{margin-bottom:24px}.student-hero{background:linear-gradient(135deg,#eaf2ff,#fff 62%);border:1px solid #dbeafe;border-radius:14px;padding:24px 26px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.student-identity{display:flex;align-items:center;gap:16px}.student-avatar{width:58px;height:58px;border-radius:16px;background:#2563eb;color:#fff;display:grid;place-items:center;font-size:24px;font-weight:700;box-shadow:0 6px 16px #2563eb38}.student-hero h2{margin:0 0 6px;font-size:21px}.student-hero p{margin:0;color:var(--muted)}.student-hero-status{text-align:right}.student-hero-status small{display:block;color:var(--muted);margin-bottom:6px}.student-profile-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:18px}.student-profile-grid .student-info-note{margin-top:18px}.student-profile-page .panel{margin-bottom:0;height:100%}.student-profile-page .panel-title{padding-bottom:14px;border-bottom:1px solid #eef2f7}.student-profile-page .profile-grid{padding-top:4px}.student-profile-page .profile-grid>div{padding:2px 0}.student-profile-page .profile-grid strong{font-size:15px}.student-info-note{margin-top:18px;padding:12px 14px;border-radius:8px;background:#f8fafc;color:var(--muted);font-size:12px;line-height:1.6}.profile-grid>div{min-width:0}.profile-grid .full{grid-column:1/-1}.profile-grid label{display:block;color:var(--muted);font-size:12px;margin-bottom:6px}.profile-grid strong{font-size:15px;line-height:1.6;word-break:break-word}.message{align-items:flex-start;padding:18px 16px;gap:24px}.message-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;margin-top:8px;color:var(--muted);font-size:12px;line-height:1.5}.message-meta span{display:inline-flex;align-items:center}.message-conversation{max-height:300px;overflow:auto;padding:4px 2px}.message-original{padding:10px 12px;border:1px solid #dbeafe;background:#f8fbff;border-radius:7px;margin-bottom:10px}.message-original b{display:inline-block;margin-right:10px;color:#334155}.message-original span{font-size:12px;color:var(--muted)}.message-original p{margin:7px 0 0}.message-reply-preview{margin:9px 0;padding:8px 10px;border-left:3px solid #93c5fd;background:#eff6ff;color:#475569;font-size:12px;line-height:1.6;border-radius:0 5px 5px 0}.message>div:first-child{min-width:0;flex:1}.message h4{display:flex;align-items:center;gap:8px;flex-wrap:wrap;line-height:1.5}.message p{line-height:1.7;margin:6px 0}.message .btn{min-width:76px}.message>.actions,.message>div:last-child{display:flex;align-items:center;gap:8px;flex:none}.message>.actions .btn+.btn,.message>div:last-child .btn+.btn{margin-left:0}.form-grid{gap:16px 18px}.form-item label{margin:0 0 7px;line-height:1.4}.form-item input,.form-item select,.form-item textarea,.login-card input,.login-card select{min-height:40px;padding:9px 12px;line-height:1.4;outline:none;transition:border-color .16s,box-shadow .16s}.form-item input:focus,.form-item select:focus,.form-item textarea:focus,.login-card input:focus,.login-card select:focus{border-color:var(--p);box-shadow:0 0 0 3px #2563eb1a}.form-item textarea{min-height:96px;line-height:1.6}.modal{padding:26px}.modal-head{margin-bottom:20px}.modal-head h2{font-size:19px;margin:0}.modal-foot{gap:10px;padding-top:8px}.modal-foot .btn+.btn{margin-left:0}.login-card label{margin:16px 0 7px}.login-card .btn{min-height:44px;margin-top:22px}.page-head .actions{justify-content:flex-end}.stat-card{min-height:132px}.stat-card-link .stat-value{margin-top:7px}.stat-card-link .stat-foot{margin-top:3px}.stat-card-link{padding-top:10px;padding-bottom:10px}.student-hero .stat-card-link{min-height:116px}.stat-card-link{display:block;width:100%;text-align:left;color:inherit;font:inherit;cursor:pointer;transition:transform .16s,box-shadow .16s,border-color .16s}.stat-card-link:hover{transform:translateY(-2px);box-shadow:0 7px 18px #0f172a1a;border-color:#bfdbfe}.stat-card-link:focus-visible{outline:3px solid rgba(37,99,235,.25);outline-offset:2px}.stat-more{float:right;color:var(--p);font-size:12px;opacity:0;transition:opacity .16s}.stat-card-link:hover .stat-more,.stat-card-link:focus-visible .stat-more{opacity:1}.todo-link{display:block;width:100%;text-align:left;background:none;border:0;border-bottom:1px solid #eef1f5;padding:12px 0;color:inherit}.todo-link:hover{background:#f8fbff}.todo-link:last-child{border-bottom:0}table th,table td{vertical-align:middle}table td .btn{min-height:34px;padding:7px 12px}.tag{vertical-align:middle;line-height:1.2}:focus-visible{outline:2px solid rgba(37,99,235,.55);outline-offset:2px}.nav-item:focus-visible,.link:focus-visible{outline-color:#bfdbfe}.table-wrap{position:relative;overscroll-behavior-x:contain}.table-wrap table thead th{position:sticky;top:0;z-index:1}.table-wrap tbody tr:hover{background:#f8fbff}.modal-mask{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal{box-shadow:0 18px 55px #0f172a38}.toast{display:none;position:fixed;left:50%;top:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);z-index:30;min-width:260px;max-width:min(420px,calc(100vw - 32px));padding:15px 22px;text-align:center;line-height:1.5;border-radius:9px;background:#1f2937;color:#fff;box-shadow:0 12px 35px #0f172a40}.filter-label{display:flex;align-items:center;color:var(--muted);font-size:12px;white-space:nowrap}.attendance-filters{background:#fff}.attendance-filters .toolbar{margin:0}.attendance-filters input,.attendance-filters select{min-width:150px}.date-shortcuts{display:flex;gap:6px;flex-wrap:wrap}.date-shortcuts .btn{min-height:36px;padding:8px 10px}.date-shortcuts .btn.active{background:var(--p);border-color:var(--p);color:#fff;box-shadow:0 3px 10px #2563eb33}.permission-toggle{display:inline-flex;align-items:center;gap:6px;min-width:60px;justify-content:center;padding:6px 10px;border:1px solid #dbe4ef;border-radius:7px;background:#fff;font-size:12px;color:#475569;line-height:1;cursor:pointer}.permission-toggle:hover{box-shadow:0 3px 8px #0f172a1a;transform:translateY(-1px)}.permission-toggle.is-allowed{background:#effcf3;border-color:#bbf7d0;color:#15803d}.permission-toggle.is-blocked{background:#fff7ed;border-color:#fed7aa;color:#c2410c}.permission-dot{width:7px;height:7px;border-radius:50%;background:currentColor}.student-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.student-dashboard-grid .calendar-panel{grid-column:1}.student-dashboard-grid .student-todo-panel{grid-column:2}.calendar-panel{min-height:330px;width:100%}.student-todo-panel{width:100%}.calendar-toolbar{display:flex;align-items:center;justify-content:center;gap:12px;margin:2px 0 16px}.calendar-head{font-weight:700;font-size:16px;min-width:110px;text-align:center}.calendar-nav{width:30px;height:30px;min-height:30px;padding:0;border:1px solid #dbe4ef;border-radius:6px;background:#fff;color:#64748b;display:grid;place-items:center}.calendar-nav:hover{background:#eff6ff;color:var(--p);border-color:#bfdbfe;box-shadow:none;transform:none}.calendar-filter{height:40px;min-height:40px;border:1px solid #dbe4ef;border-radius:6px;padding:0 8px;color:#475569;background:#fff}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;text-align:center}.calendar-week{color:var(--muted);font-size:12px;padding-bottom:4px}.calendar-day{min-height:34px;display:grid;place-items:center;border-radius:8px;color:#475569;position:relative;font-size:13px}.calendar-day.checked{background:#dcfce7;color:#15803d;font-weight:700}.calendar-day.checked i{position:absolute;right:3px;top:1px;font-size:9px;font-style:normal}.empty-day{background:transparent}.calendar-legend{display:flex;justify-content:center;gap:18px;margin-top:18px;color:var(--muted);font-size:12px}.calendar-legend span{display:flex;align-items:center;gap:5px}.calendar-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#e2e8f0}.checked-dot{background:#22c55e}@media(max-width:700px){.stat-card-link .stat-value{font-size:22px}.profile-grid{grid-template-columns:1fr}.profile-grid .full{grid-column:auto}.topbar{min-height:64px;height:auto;gap:10px}.top-right{min-width:0;gap:7px}.top-right .user-box{min-width:0}.user-role{display:none}.top-right>.btn{padding:8px 10px}.content{overscroll-behavior:contain}.toolbar{align-items:stretch}.toolbar .search-field,.toolbar input,.toolbar select{width:100%;min-width:0}.toolbar .search-field{flex:1 1 100%}.toolbar select{flex:1 1 calc(50% - 6px)}.table-wrap{margin-left:-2px;margin-right:-2px}.table-wrap table{min-width:680px}.modal-mask{padding:10px}.modal{max-height:calc(100vh - 20px);padding:20px}.modal-foot{position:sticky;bottom:-20px;background:#fff;padding:14px 0 0}.message{flex-direction:column;gap:12px}.message>div:last-child{width:100%;flex-wrap:wrap}.message>div:last-child .btn{flex:1}.page-head .actions{justify-content:flex-start}}.toolbar select,.form-item select,.login-card select{padding-right:38px;-moz-appearance:none;appearance:none;-webkit-appearance:none;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:14px 14px}.search-field{position:relative;display:inline-flex;align-items:center;min-width:260px}.search-field input{width:100%;min-width:260px;padding-right:36px!important}.clear-search{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:none;width:22px;height:22px;align-items:center;justify-content:center;border:0;border-radius:50%;background:#eef2f7;color:#64748b;font-size:0;line-height:1;padding:0;cursor:pointer}.clear-search:before{content:"×";display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:16px;font-family:Arial,sans-serif;font-weight:400;line-height:22px;transform:translateY(-.5px)}.clear-search:hover{background:#dbe4ef;color:#334155}.clear-search:focus-visible{outline:2px solid rgba(37,99,235,.45);outline-offset:2px}.search-field input:not(:placeholder-shown)+.clear-search{display:flex}.toolbar{min-height:40px}.toolbar>*{flex:none}.toolbar .btn{min-height:40px}.toolbar select{background-color:#fff}.table-wrap{border-radius:8px}.empty{line-height:1.7}.page-head .btn{margin-top:1px}.mobile-backdrop{display:none}@media(max-width:700px){.mobile-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a6b;z-index:7}.mobile-backdrop.is-visible{display:block}html,body{min-width:0;overflow-x:hidden}.app{min-height:100dvh}.sidebar{width:278px;left:-278px;box-shadow:none}.sidebar.show{left:0;box-shadow:10px 0 28px #0f172a2e}.main{width:100%;min-width:0}.topbar{height:58px;padding:0 12px;gap:8px;position:sticky;top:0;z-index:6}.top-left{min-width:0}.crumb{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.top-right{margin-left:auto;gap:5px}.notice-button{padding:6px;min-width:32px}.top-right .user-box{gap:5px}.top-right .avatar{width:30px;height:30px}.user-name,.user-role{display:none}.top-right>.btn{min-height:34px;padding:7px 10px;margin-left:0}.content{padding:14px 10px 28px;overflow-x:hidden}.page-head{margin-bottom:14px}.page-head h1{font-size:20px}.page-head p{font-size:12px;line-height:1.6}.page-head .actions{display:flex;gap:7px;margin-top:10px}.page-head .actions .btn{flex:1;min-width:0}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:12px}.stat-card{min-height:108px;padding:12px}.stat-top{font-size:12px}.stat-icon{width:30px;height:30px;font-size:15px}.stat-value{font-size:22px;margin-top:8px}.stat-foot{font-size:11px}.stat-card-link .stat-more{display:none}.grid-2,.student-dashboard-grid{grid-template-columns:1fr!important;gap:12px}.student-dashboard-grid .calendar-panel,.student-dashboard-grid .student-todo-panel{grid-column:auto}.panel{padding:13px;border-radius:9px;margin-bottom:12px}.panel-title h3{font-size:15px}.toolbar{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin-bottom:10px}.toolbar>*{width:100%!important;min-width:0!important}.toolbar .search-field{display:flex}.toolbar select,.toolbar input{height:44px;min-height:44px;padding-top:0;padding-bottom:0}.form-item select,.login-card select{min-height:44px}.date-shortcuts{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.date-shortcuts .btn{min-height:36px;padding:7px 3px;font-size:12px}.attendance-filters .toolbar{display:grid;grid-template-columns:1fr 1fr;gap:8px}.attendance-filters .filter-label{align-self:end}.attendance-filters .date-shortcuts,.attendance-filters select{grid-column:1/-1}.table-wrap{width:calc(100% + 4px);margin-left:-2px;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-wrap table{min-width:760px}.table-wrap th,.table-wrap td{padding:10px 8px;font-size:12px}.table-wrap thead th{position:sticky;top:0}.message{padding:14px 12px;gap:10px}.message h4{font-size:14px}.message p{font-size:13px}.message>div:last-child{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:100%}.message>div:last-child .btn{width:100%;min-width:0}.message-meta{gap:4px 10px;font-size:11px}.message-conversation{max-height:42dvh}.modal-mask{padding:10px;align-items:flex-end}.modal{width:100%;max-height:90dvh;border-radius:14px 14px 0 0;padding:18px 16px;overflow:auto}.modal-head{margin-bottom:15px}.modal-head h2{font-size:18px}.modal-foot{position:sticky;bottom:-18px;margin:16px -16px -18px;padding:12px 16px;background:#fff;box-shadow:0 -5px 15px #0f172a0f}.modal-foot .btn{flex:1}.form-grid{grid-template-columns:1fr;gap:12px}.form-item.full{grid-column:auto}.profile-grid{grid-template-columns:1fr;gap:13px}.student-profile-grid{grid-template-columns:1fr}.student-hero{padding:17px;align-items:flex-start}.student-avatar{width:48px;height:48px;font-size:20px}.student-hero h2{font-size:18px}.student-hero-status{margin-left:auto}.calendar-panel{min-height:0}.calendar-grid{gap:4px}.calendar-day{min-height:32px}.calendar-toolbar{gap:7px}.calendar-head{font-size:14px;min-width:86px}.calendar-filter{max-width:75px}.calendar-legend{margin-top:12px}.chart{height:190px}.bar{width:25px}.permission-toggle{min-height:34px}.login{padding:16px}.login-card{width:100%;padding:24px 18px}.login-logo{font-size:21px}}@media(max-width:380px){.cards{grid-template-columns:1fr}.date-shortcuts{grid-template-columns:repeat(2,1fr)}.top-right .avatar{display:none}.page-head .actions{flex-direction:column}.page-head .actions .btn{width:100%}}
