*{box-sizing:border-box}body{color:#172033;background:#f5f7fb;margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;overflow-x:hidden}button,input,select,textarea{font:inherit}input,select,textarea{color:#172033;background:#fff;border:1px solid #d7deea;border-radius:10px;outline:none;width:100%;padding:10px 12px}input:focus,select:focus,textarea:focus{border-color:#2b6ff3;box-shadow:0 0 0 3px #2b6ff31f}textarea{resize:vertical;min-height:90px}label{color:#4d5a6d;flex-direction:column;gap:7px;font-size:13px;font-weight:600;display:flex}h1,h2,h3,p{margin:0}a{color:inherit;text-decoration:none}.app-shell{grid-template-columns:260px 1fr;min-height:100vh;display:grid}.sidebar{background:var(--sidebar-color,#0f172a);color:#fff;min-width:0;padding:24px 18px;overflow-y:auto}.mobile-menu-btn,.sidebar-overlay{display:none}.brand{align-items:center;gap:12px;margin-bottom:30px;display:flex}.brand-mark{background:var(--primary-color,#2b6ff3);color:#fff;border-radius:8px;place-items:center;width:44px;height:44px;font-size:22px;font-weight:800;display:grid;overflow:hidden}.brand-mark img{object-fit:cover;width:100%;height:100%}.brand h1{font-size:18px;line-height:1.2}.brand p{opacity:.72;margin-top:4px;font-size:12px}.nav-list{flex-direction:column;gap:8px;display:flex}.nav-list a{color:#cbd5e1;white-space:nowrap;border-radius:8px;align-items:center;gap:10px;padding:11px 13px;font-weight:600;display:flex}.nav-icon{fill:currentColor;opacity:.9;flex:0 0 18px;width:18px;height:18px}.nav-list a.active,.nav-list a:hover{color:#fff;background:#ffffff1a}.main-content{min-width:0;padding:22px}.topbar{background:#fff;border:1px solid #e2e8f0;border-radius:8px;align-items:center;gap:14px;margin-bottom:18px;padding:10px 12px;display:flex}.topbar-user{flex-direction:column;gap:3px;min-width:0;margin-left:auto;display:flex}.profile-menu{margin-left:auto;position:relative}.profile-trigger{color:#172033;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:12px;align-items:center;gap:10px;padding:6px 9px 6px 6px;display:inline-flex}.profile-avatar,.student-cell>span{width:34px;height:34px;color:var(--primary-color,#2b6ff3);background:#eff6ff;border-radius:10px;place-items:center;font-size:13px;font-weight:900;display:grid}.profile-copy{flex-direction:column;align-items:flex-start;min-width:0;display:flex}.profile-copy strong{font-size:13px;line-height:1.2}.profile-copy small{color:#64748b;text-transform:capitalize;font-size:11px;font-weight:800}.profile-dropdown,.more-actions-menu{z-index:12;background:#fff;border:1px solid #e2e8f0;border-radius:12px;gap:4px;min-width:190px;padding:8px;display:grid;position:absolute;top:calc(100% + 8px);right:0;box-shadow:0 18px 40px #0f172a24}.profile-dropdown button,.more-actions-menu a{color:#334155;cursor:pointer;text-align:left;background:0 0;border:0;border-radius:8px;padding:9px 10px;font-weight:800;display:flex}.profile-dropdown button:hover,.more-actions-menu a:hover{background:#f1f5f9}.topbar span{color:#64748b;overflow-wrap:anywhere;font-size:13px}.global-search{flex:460px;max-width:620px}.global-search input{border-radius:8px;padding:9px 12px}.content-card{background:#fff;border:1px solid #e2e8f0;border-radius:20px;min-width:0;min-height:calc(100vh - 116px);padding:24px;box-shadow:0 12px 35px #0f172a0d}.page-header{justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px;display:flex}.page-header h2{letter-spacing:0;font-size:28px}.page-header p{color:#64748b;margin-top:6px}.btn{cursor:pointer;white-space:nowrap;border:0;border-radius:10px;justify-content:center;align-items:center;gap:8px;padding:10px 14px;font-weight:700;display:inline-flex}.btn.primary{background:var(--primary-color,#2b6ff3);color:#fff}.btn.secondary{color:#2449a4;background:#eef2ff}.btn.outline{color:#2449a4;background:#fff;border:1px solid #bcd0ff}.btn.light{color:#475569;background:#f1f5f9}.btn.danger{color:#b91c1c;background:#fee2e2}.btn.whatsapp{color:#166534;background:#dcfce7}.btn.small{padding:7px 10px;font-size:12px}.btn.icon-only{color:#475569;background:#f1f5f9;border-radius:8px;width:34px;height:34px;padding:0}.btn.full{width:100%}.btn:disabled{opacity:.65;cursor:not-allowed}.hidden-file{display:none}.file-button{color:#475569;flex-direction:row;width:auto}.login-page{background:radial-gradient(circle at 0 0,#2b6ff32e,#0000 30%),#f5f7fb;place-items:center;min-height:100vh;padding:20px;display:grid}.login-card{background:#fff;border:1px solid #e2e8f0;border-radius:22px;flex-direction:column;gap:18px;width:min(440px,100%);padding:28px;display:flex;box-shadow:0 16px 40px #0f172a14}.login-brand{color:#172033;margin-bottom:8px}.hint{color:#64748b;text-align:center;font-size:13px}.alert{border-radius:12px;margin-bottom:16px;padding:12px 14px;font-size:14px;font-weight:600}.alert.success{color:#166534;background:#dcfce7}.alert.error{color:#991b1b;background:#fee2e2}.stats-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px;margin-top:14px;display:grid}.stat-card{--stat-color:#2b6ff3;--stat-bg:#eff6ff;background:#fff;border:1px solid #e2e8f0;border-radius:8px;flex-direction:column;justify-content:space-between;min-width:0;min-height:132px;padding:15px;display:flex}.stat-card.blue{--stat-color:#2b6ff3;--stat-bg:#eff6ff}.stat-card.green{--stat-color:#16a34a;--stat-bg:#dcfce7}.stat-card.orange{--stat-color:#f59e0b;--stat-bg:#fef3c7}.stat-card.red{--stat-color:#ea580c;--stat-bg:#ffedd5}.stat-card-link{cursor:pointer;transition:border-color .18s,box-shadow .18s,transform .18s}.stat-card-link:hover,.stat-card-link:focus-visible{border-color:var(--stat-color);transform:translateY(-2px);box-shadow:0 12px 26px #0f172a1a}.stat-card-link:focus-visible{outline-offset:2px;outline:3px solid #2b6ff340}.stat-card-top{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.stat-card span{color:#64748b;overflow-wrap:anywhere;font-size:13px;font-weight:800;line-height:1.35;display:block}.stat-card strong{letter-spacing:0;color:#172033;margin-top:10px;font-size:clamp(25px,3vw,32px);line-height:1;display:block}.stat-card small{color:#64748b;margin-top:9px;font-size:13px;font-weight:700;line-height:1.35;display:block}.stat-card em{color:var(--stat-color);margin-top:8px;font-size:12px;font-style:normal;font-weight:800;display:block}.stat-icon{background:var(--stat-bg);width:34px;height:34px;color:var(--stat-color);border-radius:8px;flex:0 0 34px;place-items:center;display:grid}.stat-icon svg{fill:currentColor;width:20px;height:20px}.loading-text{color:#64748b;font-weight:600}.quick-actions{flex-wrap:wrap;gap:10px;margin-bottom:14px;display:flex}.more-actions{position:relative}.more-actions-menu{left:0;right:auto}.dashboard-range-control{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;display:flex}.dashboard-range-control>span{color:#64748b;text-transform:uppercase;font-size:12px;font-weight:900}.date-filter{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;flex-wrap:wrap;gap:6px;padding:4px;display:inline-flex}.needs-attention{margin-bottom:14px}.section-title-row{justify-content:space-between;gap:12px;margin-bottom:12px;display:flex}.section-title-row h3{margin-bottom:4px}.section-title-row p{color:#64748b;font-size:13px;font-weight:600}.attention-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:10px;display:grid}.attention-card{--attention-color:#2b6ff3;border:1px solid #e2e8f0;border-left:3px solid var(--attention-color);background:#fff;border-radius:8px;gap:5px;padding:14px;display:grid}.attention-card.orange{--attention-color:#f59e0b}.attention-card.red{--attention-color:#ea580c}.attention-card.blue{--attention-color:#2b6ff3}.attention-card.clear{background:#f0fdf4;border-left-color:#16a34a;grid-column:1/-1}.attention-card span{color:#64748b;text-transform:uppercase;font-size:12px;font-weight:900}.attention-card strong{color:#0f172a;font-size:26px;line-height:1}.attention-card small{color:#475569;font-weight:700}.date-filter button{color:#475569;cursor:pointer;background:0 0;border:0;border-radius:6px;padding:8px 10px;font-weight:800}.date-filter button.active{background:var(--primary-color,#2b6ff3);color:#fff}.date-filter button.disabled{cursor:not-allowed;opacity:.55}.dashboard-sections{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px;display:grid}.dashboard-panel{background:#fff;border:1px solid #e2e8f0;border-radius:8px;min-width:0;padding:16px}.chart-panel{margin-top:14px}.chart-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.chart-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:14px}.chart-card h4{color:#172033;margin:0 0 10px;font-size:15px}.mini-bar-chart{grid-template-columns:repeat(6,minmax(0,1fr));align-items:end;gap:10px;min-height:190px;display:grid}.mini-bar-item{justify-items:center;gap:5px;display:grid}.mini-bar-track{background:#e2e8f0;border-radius:999px;align-items:end;width:100%;height:118px;display:flex;overflow:hidden}.mini-bar-track span{background:var(--primary-color,#2b6ff3);border-radius:999px 999px 0 0;width:100%;display:block}.mini-bar-item strong{font-size:13px}.mini-bar-item small{color:#64748b;font-size:11px;font-weight:800}.payment-breakdown{gap:12px;display:grid}.payment-breakdown-row{gap:6px;display:grid}.payment-breakdown-row>div:first-child{justify-content:space-between;align-items:center;gap:8px;display:flex}.payment-breakdown-row>div:first-child span{border-radius:999px;width:10px;height:10px}.payment-breakdown-row>div:first-child strong{margin-right:auto;font-size:13px}.payment-breakdown-row small{color:#64748b;font-size:12px;font-weight:700}.breakdown-track{background:#e2e8f0;border-radius:999px;height:7px;overflow:hidden}.breakdown-track i{border-radius:inherit;height:100%;display:block}.student-cell{align-items:center;gap:10px;min-width:190px;display:flex}.student-cell div{gap:2px;display:grid}.student-cell small{color:#64748b;font-weight:600}.dashboard-panel.wide{grid-column:1/-1}.dashboard-panel h3{margin-bottom:12px;font-size:18px}.followup-list{flex-direction:column;gap:10px;display:flex}.followup-item{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;justify-content:space-between;gap:12px;padding:12px;display:flex}.followup-item div{flex-direction:column;gap:3px;min-width:0;display:flex}.followup-item span,.followup-item small{color:#64748b}.activity-list{color:#475569;flex-direction:column;gap:10px;margin:0;padding-left:18px;font-weight:600;display:flex}.empty-state{background:#f8fafc;border:1px dashed #bcd0ff;border-radius:8px;margin-top:18px;padding:24px}.empty-state p{color:#64748b;margin:6px 0 14px}.muted-text{color:#64748b;margin-top:8px}.muted-line{color:#64748b;margin-top:4px;font-size:12px;font-weight:700}.form-grid{background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:22px;padding:18px;display:grid}.form-grid h3,.span-2{grid-column:1/-1}.form-actions{align-items:end;gap:10px;display:flex}.table-tools{gap:10px;margin-bottom:14px;display:flex}.table-tools input{max-width:420px}.table-filters{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;grid-template-columns:repeat(3,minmax(160px,1fr)) auto;align-items:end;gap:12px;margin-bottom:14px;padding:14px;display:grid}.student-filters{grid-template-columns:minmax(220px,1.25fr) repeat(4,minmax(140px,1fr)) auto}.students-page{flex-direction:column;gap:16px;display:flex}.students-header{margin-bottom:0}.student-summary-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;display:grid}.student-summary-card{--summary-color:#2b6ff3;background:#fff;border:1px solid #e2e8f0;border-radius:8px;gap:6px;min-width:0;padding:14px;display:grid;box-shadow:0 8px 22px #0f172a0a}.student-summary-card.blue{--summary-color:#2b6ff3}.student-summary-card.green{--summary-color:#16a34a}.student-summary-card.orange,.student-summary-card.yellow{--summary-color:#f59e0b}.student-summary-card.red{--summary-color:#dc2626}.student-summary-card.gray{--summary-color:#64748b}.student-summary-card span{color:#64748b;text-transform:uppercase;font-size:12px;font-weight:900}.student-summary-card strong{color:#0f172a;font-size:22px;line-height:1}.student-summary-card small{color:var(--summary-color);font-size:12px;font-weight:800}.student-filter-panel{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;gap:12px;padding:14px;display:grid}.student-filter-main,.student-filter-advanced{grid-template-columns:minmax(220px,1.2fr) repeat(4,minmax(130px,1fr)) repeat(3,auto);align-items:end;gap:10px;display:grid}.student-filter-advanced{border-top:1px solid #e2e8f0;grid-template-columns:repeat(4,minmax(150px,1fr));padding-top:12px}.bulk-action-bar,.pagination-bar{background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;flex-wrap:wrap;align-items:center;gap:10px;padding:12px;display:flex}.bulk-action-bar strong,.pagination-bar span{color:#1e3a8a;font-weight:900}.bulk-action-bar select,.pagination-bar select{width:auto;min-width:150px;padding:7px 10px}.student-crm-table table{min-width:1180px}.student-crm-table tbody tr{transition:background .15s}.student-crm-table tbody tr:hover{background:#f8fafc}.contact-cell,.payment-block{gap:6px;display:grid}.contact-cell>div{flex-wrap:wrap;gap:6px;display:flex}.course-pill,.campaign-pill{text-overflow:ellipsis;white-space:nowrap;color:#2449a4;background:#eef2ff;border-radius:999px;max-width:170px;padding:6px 9px;font-size:12px;font-weight:900;display:inline-block;overflow:hidden}.campaign-pill{color:#0e7490;background:#ecfeff}.payment-block small{color:#64748b;font-size:12px;font-weight:700}.due-amount{border-radius:999px;padding:6px 9px;font-size:12px;font-weight:900;display:inline-flex}.due-amount.warning{color:#c2410c;background:#ffedd5}.muted-text.inline{margin-top:0;font-weight:700;display:inline-block}.student-actions{min-width:260px}.soft-danger{background:#fff1f2}.row-more-menu{position:relative}.row-more-menu summary{color:#475569;cursor:pointer;background:#f1f5f9;border-radius:8px;padding:7px 10px;font-size:12px;font-weight:800;list-style:none}.row-more-menu summary::-webkit-details-marker{display:none}.row-more-menu[open] button{z-index:8;color:#b91c1c;cursor:pointer;background:#fff1f2;border:1px solid #fecaca;border-radius:8px;padding:8px 10px;font-size:12px;font-weight:900;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 14px 30px #0f172a1f}.student-empty-state{padding:12px}.student-empty-state p{margin:4px 0 0}.skeleton-row td{color:#64748b;background:linear-gradient(90deg,#f8fafc,#eef2ff,#f8fafc)}.import-help,.import-result{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;gap:6px;padding:12px;display:grid}.import-help p,.import-result p{color:#475569;margin:0;font-weight:700}.import-help span,.import-result span{color:#64748b;font-size:13px;font-weight:700}.student-profile-modal{width:min(980px,100%);max-height:calc(100vh - 36px);overflow:auto}.student-profile-header{grid-template-columns:auto 1fr auto;align-items:start;gap:14px;display:grid}.student-profile-header>span{width:58px;height:58px;color:var(--primary-color,#2b6ff3);background:#eff6ff;border-radius:16px;place-items:center;font-size:20px;font-weight:900;display:grid}.student-profile-header h3{margin-bottom:4px}.student-profile-header p{color:#64748b;margin-bottom:10px}.profile-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.profile-grid section{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:14px}.profile-grid h4{color:#0f172a;margin:0 0 8px}.profile-grid p{color:#475569;margin:5px 0;font-weight:700}.filter-actions{align-items:end;gap:8px;display:flex}.table-wrap{border:1px solid #e2e8f0;border-radius:18px;overflow-x:auto}.table-wrap.compact{margin-top:16px}table{border-collapse:collapse;width:100%;min-width:900px}th,td{text-align:left;vertical-align:top;border-bottom:1px solid #e2e8f0;padding:13px 14px}th{color:#475569;text-transform:uppercase;letter-spacing:.03em;background:#f8fafc;font-size:12px}tr:last-child td{border-bottom:0}.badge{color:#2449a4;text-transform:capitalize;background:#eef2ff;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:800;display:inline-flex}.badge.success{color:#166534;background:#dcfce7}.badge.warning{color:#c2410c;background:#ffedd5}.badge.danger{color:#b91c1c;background:#fee2e2}.badge.neutral{color:#475569;background:#f1f5f9}.phone-with-action{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.actions{flex-wrap:wrap;gap:8px;display:flex}.empty-table{color:#64748b;justify-content:space-between;align-items:center;gap:12px;display:flex}.modal-backdrop{z-index:20;background:#0f172a73;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.modal-panel{background:#fff;border:1px solid #e2e8f0;border-radius:8px;flex-direction:column;gap:16px;width:min(420px,100%);padding:20px;display:flex;box-shadow:0 20px 50px #0f172a38}.modal-panel.large{width:min(980px,100%);max-height:calc(100vh - 36px);overflow:auto}.modal-panel.detail-panel{width:min(620px,100%)}.modal-panel h3{font-size:20px}.modal-panel p{color:#64748b;margin-top:4px}.modal-actions{justify-content:flex-end;gap:10px;display:flex}.modal-form-grid{background:0 0;border:0;margin-bottom:0;padding:0}.form-title-row{grid-column:1/-1;justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.required-note{color:#64748b;margin-top:4px;font-size:13px;font-weight:700}.role-help{background:#eff6ff;border:1px solid #dbeafe;border-radius:8px;flex-direction:column;justify-content:center;align-self:stretch;gap:4px;padding:12px;display:flex}.role-help strong{color:#1d4ed8}.role-help span{color:#475569;font-size:13px;font-weight:700}.detail-grid{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;grid-template-columns:minmax(120px,auto) 1fr;gap:12px 16px;padding:14px;display:grid}.detail-grid span{color:#64748b;font-size:13px;font-weight:700}.detail-grid strong{color:#0f172a;word-break:break-word}.activity-panel{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;margin-top:18px;padding:16px}.activity-panel h3{margin-bottom:6px}.activity-panel p{color:#64748b}.tabs{flex-wrap:wrap;gap:8px;margin-bottom:18px;display:flex}.tabs button{color:#475569;cursor:pointer;background:#fff;border:1px solid #d7deea;border-radius:999px;padding:10px 14px;font-weight:700}.tabs button.active{background:var(--primary-color,#2b6ff3);color:#fff;border-color:var(--primary-color,#2b6ff3)}.settings-page{padding-top:10px}.settings-title-row{margin-bottom:14px}.settings-status-row{flex-wrap:wrap;gap:8px;margin-bottom:16px;display:flex}.status-badge{border-radius:999px;align-items:center;gap:4px;padding:7px 10px;font-size:12px;font-weight:800;display:inline-flex}.status-badge.success{color:#166534;background:#dcfce7}.status-badge.warning{color:#c2410c;background:#ffedd5}.status-badge.danger{color:#b91c1c;background:#fee2e2}.status-badge.neutral{color:#475569;background:#f1f5f9}.settings-layout{grid-template-columns:240px minmax(0,1fr);align-items:start;gap:18px;display:grid}.settings-inner-sidebar{background:#fff;border:1px solid #e2e8f0;border-radius:18px;flex-direction:column;gap:8px;padding:10px;display:flex;position:sticky;top:18px;box-shadow:0 10px 30px #0f172a0a}.settings-inner-sidebar button{color:#475569;cursor:pointer;text-align:left;background:0 0;border:1px solid #0000;border-left-width:4px;border-radius:12px;padding:12px}.settings-inner-sidebar button strong,.settings-inner-sidebar button span{display:block}.settings-inner-sidebar button strong{color:#172033;font-size:14px}.settings-inner-sidebar button span{color:#64748b;margin-top:4px;font-size:12px;font-weight:700}.settings-inner-sidebar button.active,.settings-inner-sidebar button:hover{border-color:#dbeafe;border-left-color:var(--primary-color,#2b6ff3);background:#eff6ff}.settings-mobile-select{margin-bottom:16px;display:none}.settings-content-area{min-width:0}.settings-category-header,.settings-card-header{justify-content:space-between;gap:12px;margin-bottom:14px;display:flex}.settings-category-header{background:linear-gradient(#fff,#f8fafc);border:1px solid #e2e8f0;border-radius:18px;padding:18px}.settings-category-header h3,.settings-card-header h3{color:#0f172a;font-size:20px}.settings-category-header p,.settings-card-header p{color:#64748b;margin-top:5px;font-weight:600}.settings-panel{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:20px;box-shadow:0 10px 30px #0f172a0a}.settings-stack{flex-direction:column;gap:16px;display:flex}.inline-form{grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;gap:12px;margin-top:16px;display:grid}.theme-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px;display:grid}.theme-form label small{color:#64748b;font-size:12px;font-weight:600;line-height:1.45}.theme-form input[type=color]{height:42px;padding:4px}.theme-preview{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;overflow:hidden}.logo-upload-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;gap:10px;padding:14px;display:grid}.logo-upload-card strong,.field-heading strong{color:#334155;font-size:13px}.logo-upload-card span{color:#64748b;font-size:13px;font-weight:700}.upload-dropzone{text-align:center;cursor:pointer;background:#fff;border:1px dashed #93b4ff;border-radius:14px;place-items:center;min-height:150px;display:grid}.upload-mark{background:var(--primary-color,#2b6ff3);color:#fff;border-radius:14px;place-items:center;width:58px;height:58px;font-size:24px;font-weight:900;display:grid;overflow:hidden}.upload-mark img{object-fit:cover;width:100%;height:100%}.logo-file-row,.field-heading,.color-input-row,.settings-save-bar,.settings-save-bar div{align-items:center;gap:10px;display:flex}.logo-file-row{flex-wrap:wrap;justify-content:space-between}.color-control{flex-direction:column;gap:8px;display:flex}.field-heading{justify-content:space-between}.field-heading button{color:var(--primary-color,#2b6ff3);cursor:pointer;background:0 0;border:0;font-size:12px;font-weight:800}.color-input-row input[type=color]{border-radius:12px;flex:0 0 54px;height:44px}.preview-header{background:#fff;border-bottom:1px solid #e2e8f0;padding:14px 16px}.preview-header h4{color:#0f172a;margin:0;font-size:16px}.preview-header p{color:#64748b;margin-top:4px;font-size:13px;font-weight:600}.preview-surface{grid-template-columns:240px minmax(0,1fr);min-height:240px;display:grid}.preview-nav-line{color:#cbd5e1;border-radius:10px;margin-top:8px;padding:10px 12px;font-weight:800}.preview-nav-line.active{color:#fff;background:#ffffff21}.preview-content{align-content:center;gap:14px;padding:20px;display:grid}.preview-button{border-radius:var(--button-radius,10px);width:max-content}.preview-card{border-radius:var(--card-radius,12px);background:#fff;border:1px solid #e2e8f0;flex-direction:column;gap:6px;padding:16px;display:flex}.preview-card span{color:#64748b;font-size:13px;font-weight:600}.inline-save-actions{justify-content:flex-end}.settings-save-bar{z-index:10;background:#fffffff2;border:1px solid #bfdbfe;border-radius:14px;justify-content:space-between;margin-top:18px;padding:12px;position:sticky;bottom:14px;box-shadow:0 18px 40px #0f172a29}.settings-save-bar strong{color:#0f172a}.settings-actions{flex-wrap:wrap;gap:10px;margin-top:16px;display:flex}.compact-header{margin-bottom:14px}.backup-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.backup-summary div{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:14px}.backup-summary span{color:#64748b;text-transform:uppercase;margin-bottom:6px;font-size:12px;font-weight:800;display:block}.backup-summary strong{color:#0f172a;font-size:16px}.error-box{color:#991b1b;white-space:pre-wrap;word-break:break-word;background:#fef2f2;border-radius:8px;padding:12px}.preview-sidebar{width:auto;min-height:auto;box-shadow:none;border-radius:0;padding:18px;position:static;transform:none}.preview-sidebar .brand{margin-bottom:0}.compact-empty{margin-top:0}@media (width<=1050px){.app-shell{grid-template-columns:1fr}.mobile-menu-btn{z-index:31;background:var(--primary-color,#2b6ff3);color:#fff;border:0;border-radius:8px;justify-content:center;align-items:center;min-width:74px;height:40px;font-weight:800;display:inline-flex;position:fixed;top:14px;left:14px;box-shadow:0 10px 25px #0f172a2e}.sidebar-overlay{z-index:29;background:#0f172a73;border:0;display:block;position:fixed;inset:0}.sidebar{z-index:30;width:min(310px,86vw);padding:22px 18px;transition:transform .18s;position:fixed;inset:0 auto 0 0;transform:translate(-105%);box-shadow:18px 0 40px #0f172a40}.sidebar.open{transform:translate(0)}.brand{margin-bottom:16px}.nav-list{flex-flow:column;gap:8px}.main-content{padding-top:68px}.dashboard-sections,.chart-grid{grid-template-columns:1fr}.student-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.student-filter-main,.student-filter-advanced,.form-grid,.theme-form,.inline-form{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-layout{grid-template-columns:1fr}.settings-inner-sidebar{display:none}.settings-mobile-select{display:block}.settings-page{padding-top:16px}}@media (width<=700px){.main-content{padding:14px}.content-card{border-radius:14px;min-height:auto;padding:16px}.form-grid,.theme-form,.inline-form{grid-template-columns:1fr}.span-2{grid-column:auto}.topbar,.page-header,.table-tools{flex-direction:column;align-items:stretch}.dashboard-range-control{justify-content:flex-start;align-items:stretch}.date-filter{width:100%}.date-filter button{flex:auto}.profile-menu{width:100%;margin-left:0}.profile-trigger{justify-content:space-between;width:100%}.profile-dropdown,.more-actions-menu{width:100%;left:0;right:auto}.global-search{flex-basis:auto;max-width:none}.topbar-user{margin-left:0}.table-filters,.backup-summary,.preview-surface{grid-template-columns:1fr}.settings-save-bar,.settings-save-bar div,.logo-file-row,.color-input-row{flex-direction:column;align-items:stretch}.settings-save-bar .btn,.settings-save-bar div,.color-input-row input{width:100%}.settings-status-row{gap:6px}.topbar{border-radius:14px;gap:12px}.page-header h2{font-size:24px}.stats-grid{gap:12px}.stat-card{min-height:112px;padding:16px}.followup-item{flex-direction:column}.student-summary-grid,.profile-grid,.student-filter-main,.student-filter-advanced{grid-template-columns:1fr}.bulk-action-bar,.pagination-bar,.student-profile-header{grid-template-columns:1fr;align-items:stretch}.bulk-action-bar select,.pagination-bar select{width:100%}}@media (width<=480px){.brand{gap:10px}.brand-mark{border-radius:10px;width:38px;height:38px;font-size:19px}.brand h1{font-size:16px}.nav-list{display:flex}.nav-list a{white-space:normal;justify-content:flex-start;padding:10px 12px}.main-content{padding:10px}.content-card{padding:14px}.stats-grid{grid-template-columns:1fr}}
