*{box-sizing:border-box}:root{--bg:#f4f7fb;--panel:#fff;--text:#182230;--muted:#667085;--line:#e4e7ec;--primary:#2457d6;--danger:#b42318;--shadow:0 12px 30px #10182814}body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}.app{min-height:100vh;display:flex}aside{position:fixed;inset:0 auto 0 0;width:260px;background:#111827;color:#fff;padding:20px 14px;z-index:30}.brand{display:flex;gap:12px;align-items:center;padding:0 8px 22px}.brand-logo,.login-logo{width:54px;height:54px;border-radius:17px;display:grid;place-items:center;background:linear-gradient(135deg,#3b82f6,#7c3aed);font-weight:900;color:#fff;font-size:20px}.brand small{display:block;color:#9ca3af;margin-top:4px}nav{display:grid;gap:6px}nav button{border:0;background:transparent;color:#cbd5e1;padding:12px 14px;border-radius:10px;text-align:left;font-weight:700;cursor:pointer}nav button.active,nav button:hover{background:#1f2937;color:#fff}main{margin-left:260px;width:calc(100% - 260px);padding:26px}header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:24px}header h2{margin:0;font-size:28px}header p{margin:4px 0 0;color:var(--muted)}.user-chip{display:grid;background:#fff;border:1px solid var(--line);border-radius:11px;padding:8px 12px}.user-chip small{color:var(--muted);margin-top:3px}.user-chip a{color:var(--danger);font-size:12px;margin-top:4px}.menu-btn{display:none}.view{display:none}.view.active{display:block}.panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:var(--shadow)}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.panel-head.wrap{flex-wrap:wrap}.panel h3{margin:0}.panel p{margin:4px 0 0;color:var(--muted);font-size:13px}.grid{display:grid;gap:18px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}.stat{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:var(--shadow)}.stat small{color:var(--muted)}.stat strong{display:block;font-size:30px;margin-top:5px}.toolbar,.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.btn,button{border:0;border-radius:10px;padding:10px 14px;font-weight:800;cursor:pointer}.primary{background:var(--primary);color:#fff}.secondary{background:#eef2ff;color:#1d3f9f}.danger{background:#fee2e2;color:#991b1b}.form-panel{max-width:980px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.form-grid.one{grid-template-columns:1fr}.form-grid label{display:grid;gap:7px;font-size:13px;font-weight:700}.full{grid-column:1/-1}input,select,textarea{width:100%;border:1px solid #d0d5dd;border-radius:10px;padding:10px 12px;background:#fff;outline:none}.toolbar input,.toolbar select{width:auto;min-width:160px}.operator-box{display:grid;gap:5px;padding:11px;border:1px solid #bfdbfe;background:#eff6ff;border-radius:10px}.operator-box small{color:#475467}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}table{width:100%;border-collapse:collapse;min-width:850px}th,td{padding:12px 14px;border-bottom:1px solid var(--line);text-align:left;font-size:13px}th{background:#f8fafc;color:#475467;font-size:11px;text-transform:uppercase}.list-card{border:1px solid var(--line);border-radius:13px;padding:13px;margin-bottom:10px;display:flex;justify-content:space-between;align-items:center;gap:12px}.list-card h4{margin:0 0 5px}.list-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}.empty{padding:26px;text-align:center;color:var(--muted);border:1px dashed #cbd5e1;border-radius:12px}.badge{display:inline-block;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:900}.approved{background:#dcfce7;color:#166534}.outside{background:#ffedd5;color:#9a3412}.returned{background:#e0e7ff;color:#3730a3}.cancelled{background:#f1f5f9;color:#475569}.notify-sent{background:#dcfce7;color:#166534}.notify-failed{background:#fee2e2;color:#991b1b}.security-banner{display:flex;gap:10px;align-items:center;background:#eff6ff;border:1px solid #bfdbfe;padding:14px 16px;border-radius:14px;margin-bottom:18px}.security-banner span{color:#475467}.security-card{align-items:stretch;padding:18px}.student-main{display:flex;gap:16px;align-items:center;flex:1;min-width:0}.student-photo{width:170px;height:212px;object-fit:cover;border-radius:16px;border:3px solid #fff;outline:1px solid #94a3b8;box-shadow:0 8px 22px #0f172a2e;flex:0 0 auto}.photo-placeholder{width:170px;height:212px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,#e2e8f0,#f8fafc);font-size:40px;font-weight:900;color:#475569;flex:0 0 auto}.student-details h4{font-size:22px;margin-bottom:9px}.operator-badge{display:inline-block;margin-top:7px;padding:5px 8px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:11px;font-weight:800}.thumb{width:48px;height:58px;object-fit:cover;border-radius:9px;background:#e2e8f0}.thumb-placeholder{width:48px;height:58px;border-radius:9px;display:grid;place-items:center;background:#e2e8f0;font-weight:900}.identity{display:flex;gap:9px;align-items:center}.modal{position:fixed;inset:0;background:#0f172a8c;display:none;place-items:center;padding:18px;z-index:50}.modal.open{display:grid}.modal-card{width:min(760px,100%);max-height:95vh;overflow:auto;background:#fff;border-radius:18px;padding:20px}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.photo-editor{display:flex;gap:15px;align-items:center;padding:14px;border:1px dashed #94a3b8;border-radius:13px;background:#f8fafc}.photo-preview{width:112px;height:136px;border-radius:13px;display:grid;place-items:center;background:#e2e8f0;overflow:hidden;color:#64748b}.photo-preview img{width:100%;height:100%;object-fit:cover}.file-btn{display:inline-flex!important;width:auto!important;background:#eef2ff;color:#1d3f9f;padding:10px 14px;border-radius:10px;cursor:pointer}.toast{position:fixed;right:24px;bottom:24px;background:#111827;color:#fff;padding:12px 16px;border-radius:10px;opacity:0;transform:translateY(10px);transition:.2s;z-index:80;pointer-events:none}.toast.show{opacity:1;transform:translateY(0)}.login-body{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at top right,#3b82f659,transparent 35%),linear-gradient(135deg,#0f172a,#172554)}.login-card{width:min(420px,100%);background:#fff;border-radius:22px;padding:27px;box-shadow:0 30px 80px #0006}.login-card .login-logo{margin:auto}.login-card h1{text-align:center;margin:14px 0 4px}.login-card>p{text-align:center;color:var(--muted)}.login-card form{display:grid;gap:14px}.login-card label{display:grid;gap:7px;font-weight:700;font-size:13px}.alert{padding:11px;border-radius:9px;margin:12px 0}.error{background:#fee2e2;color:#991b1b}@media(max-width:1050px){.stats{grid-template-columns:repeat(2,1fr)}.grid.two{grid-template-columns:1fr}}@media(max-width:820px){aside{transform:translateX(-100%);transition:.2s}aside.open{transform:translateX(0)}main{margin-left:0;width:100%;padding:18px}.menu-btn{display:block}.user-chip{display:none}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}}@media(max-width:600px){.stats{grid-template-columns:1fr}.security-card{flex-direction:column}.student-main{align-items:flex-start}.student-photo,.photo-placeholder{width:135px;height:168px}.student-details h4{font-size:19px}.photo-editor{align-items:flex-start;flex-direction:column}}@media print{aside,header,.toolbar,.btn,.actions,.security-banner{display:none!important}main{margin:0;width:100%;padding:0}.view{display:none!important}#reports{display:block!important}.panel{box-shadow:none;border:0}table{min-width:0}}

.settings-separator{margin-top:8px;padding:14px;border:1px solid #bfdbfe;background:#eff6ff;border-radius:12px}
.settings-separator h4{margin:0 0 5px}.settings-separator p{margin:0;color:#475569}
.check-label{display:flex!important;align-items:center;gap:10px!important}
.check-label input{width:18px;height:18px}

.main-module-btn{display:flex;align-items:center;justify-content:center;width:100%;margin-top:12px;text-decoration:none;text-align:center}
.main-module-btn:hover{background:#dfe7ff;color:#15388f}

.scope-toggle{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:11px;padding:9px 12px;font-size:13px;font-weight:800;white-space:nowrap}
.scope-toggle input{width:18px;height:18px;margin:0}
.import-result{margin:0 0 14px;padding:13px 15px;border-radius:11px;border:1px solid var(--line);font-size:13px;line-height:1.55}
.import-result.loading{background:#eff6ff;border-color:#bfdbfe;color:#1e40af}
.import-result.success{background:#ecfdf3;border-color:#bbf7d0;color:#166534}
.import-result.error{background:#fef2f2;border-color:#fecaca;color:#991b1b}
.level-badge{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:900;white-space:nowrap}
.level-badge.middle{background:#e0f2fe;color:#075985}
.level-badge.high{background:#f3e8ff;color:#6b21a8}
@media(max-width:820px){.scope-toggle{order:3;width:100%;justify-content:center}}

.import-guide{margin:0 0 16px;padding:13px 15px;border:1px solid #bfdbfe;background:#eff6ff;color:#1e3a8a;border-radius:11px;line-height:1.55}
.upload-page{max-width:980px;margin:28px auto;padding:18px}.upload-page .top-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.upload-card{background:#fff;border:1px solid #dbe2ea;border-radius:15px;padding:22px;box-shadow:0 10px 28px rgba(15,23,42,.06)}
.upload-card h2{margin-top:0}.upload-card input[type=file]{display:block;width:100%;padding:12px;border:1px dashed #94a3b8;border-radius:10px;margin:14px 0;background:#f8fafc}
.upload-note{padding:13px;border-radius:10px;background:#eff6ff;border:1px solid #bfdbfe;line-height:1.55}.upload-result{padding:14px;border-radius:10px;margin-bottom:16px}.upload-result.success{background:#dcfce7;color:#166534;border:1px solid #bbf7d0}.upload-result.error{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}
@media(max-width:760px){.upload-grid{grid-template-columns:1fr}}

/* Modern centered import window */
.import-body{min-height:100vh;margin:0;padding:26px;background:radial-gradient(circle at 10% 0,#dbeafe 0,transparent 34%),radial-gradient(circle at 100% 100%,#ede9fe 0,transparent 38%),#f5f7fb;display:flex;align-items:center;justify-content:center}
.import-shell{width:min(920px,100%);background:rgba(255,255,255,.96);border:1px solid rgba(203,213,225,.86);border-radius:26px;box-shadow:0 28px 80px rgba(15,23,42,.16);overflow:hidden;position:relative}
.import-hero{display:flex;gap:18px;align-items:center;padding:27px 30px 20px;background:linear-gradient(135deg,#0f172a,#1e3a8a);color:#fff}.import-hero h1{margin:3px 0 7px;font-size:29px}.import-hero p{margin:0;color:#cbd5e1;line-height:1.55}.import-icon{width:64px;height:64px;display:grid;place-items:center;border-radius:20px;background:linear-gradient(135deg,#60a5fa,#8b5cf6);font-size:32px;font-weight:900;box-shadow:0 12px 30px rgba(59,130,246,.3);flex:0 0 auto}.error-icon{background:linear-gradient(135deg,#f97316,#dc2626)}.eyebrow{font-size:11px;letter-spacing:.16em;font-weight:900;color:#93c5fd}
.import-tabs{display:flex;gap:8px;padding:14px 24px;border-bottom:1px solid var(--line);background:#fff}.import-tabs a{padding:10px 16px;border-radius:999px;text-decoration:none;color:#475569;font-weight:800}.import-tabs a.active{background:#e0e7ff;color:#1e40af}
.import-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.85fr);gap:24px;padding:28px 30px}.import-copy h2{font-size:24px;margin:11px 0 9px}.import-copy p{color:#64748b;line-height:1.65}.step-chip{display:inline-flex;padding:6px 9px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:12px;font-weight:900}.feature-list{padding:0;margin:18px 0;list-style:none;display:grid;gap:9px}.feature-list li:before{content:'✓';display:inline-grid;place-items:center;width:21px;height:21px;margin-right:9px;border-radius:50%;background:#dcfce7;color:#15803d;font-weight:900}.sample-link{display:inline-flex;text-decoration:none;color:#1d4ed8;font-weight:900;padding:10px 12px;background:#eff6ff;border-radius:10px}
.modern-upload-form{display:flex;flex-direction:column;justify-content:center}.drop-zone{min-height:240px;border:2px dashed #94a3b8;border-radius:20px;background:linear-gradient(180deg,#f8fafc,#fff);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;cursor:pointer;transition:.2s}.drop-zone:hover{border-color:#3b82f6;background:#eff6ff;transform:translateY(-2px)}.drop-zone input{position:absolute;width:1px;height:1px;opacity:0}.file-symbol{width:74px;height:74px;border-radius:22px;background:linear-gradient(135deg,#16a34a,#0f766e);color:#fff;display:grid;place-items:center;font-size:16px;font-weight:900;margin-bottom:14px;box-shadow:0 12px 28px rgba(15,118,110,.23)}.pdf-zone .file-symbol{background:linear-gradient(135deg,#ef4444,#b91c1c)}.drop-zone strong{font-size:17px}.drop-zone small{color:#64748b;margin:7px 0 13px}.selected-file{display:inline-block;max-width:100%;padding:7px 10px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:12px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.import-submit{margin-top:13px;width:100%;padding:13px}
.eokul-path{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin:16px 0;padding:15px;border-radius:15px;background:#eff6ff;border:1px solid #bfdbfe}.eokul-path b{width:100%;margin-bottom:4px;color:#1e3a8a}.eokul-path span{padding:6px 8px;border-radius:8px;background:#fff;color:#1e40af;font-size:12px;font-weight:800}.eokul-path i{font-style:normal;color:#60a5fa;font-weight:900}
.import-footer{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:17px 30px;border-top:1px solid var(--line);background:#f8fafc}.import-footer span{margin-left:auto;color:#64748b;font-size:12px}.ghost{background:transparent;color:#475569}.upload-result{margin:18px 30px 0;padding:15px 17px;border-radius:13px;line-height:1.55}.upload-result.success{background:#ecfdf3;border:1px solid #bbf7d0;color:#166534}.upload-result.error{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}.result-detail{margin-top:5px;font-size:13px}
.import-progress{position:fixed;inset:0;background:rgba(15,23,42,.78);backdrop-filter:blur(5px);display:none;place-items:center;text-align:center;color:#fff;padding:20px;z-index:999}.import-progress.show{display:grid}.import-progress h3{font-size:24px;margin:17px 0 7px}.import-progress p{max-width:480px;color:#cbd5e1}.spinner{width:58px;height:58px;border:6px solid rgba(255,255,255,.22);border-top-color:#fff;border-radius:50%;animation:importSpin .8s linear infinite}@keyframes importSpin{to{transform:rotate(360deg)}}
@media(max-width:760px){.import-body{padding:12px;align-items:flex-start}.import-shell{border-radius:18px}.import-hero{padding:22px 20px}.import-hero h1{font-size:23px}.import-icon{width:54px;height:54px}.import-content{grid-template-columns:1fr;padding:22px 20px}.import-tabs{padding:12px 16px}.import-footer{padding:16px 20px}.import-footer span{width:100%;margin:3px 0 0}.drop-zone{min-height:205px}.upload-result{margin:15px 20px 0}}


/* Stabil 1.0.0: tek öğrenci seçici ve tek kullanıcı kartı */
.permission-student-picker{padding:16px;border:1px solid #bfdbfe;border-radius:15px;background:linear-gradient(135deg,#eff6ff,#f8fafc)}
.permission-selected-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}
.permission-selected-row input[readonly]{background:#fff;border:1px solid #93c5fd;cursor:default}
.permission-student-picker small{display:block;margin-top:7px;color:#475569;font-weight:600}
.student-picker-modal{position:fixed;inset:0;z-index:3000;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(15,23,42,.62);backdrop-filter:blur(6px)}
.student-picker-modal.open{display:flex}
.student-picker-dialog{width:min(760px,100%);max-height:min(760px,92vh);display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(148,163,184,.4);border-radius:22px;background:#fff;box-shadow:0 30px 90px rgba(15,23,42,.28)}
.student-picker-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 22px;border-bottom:1px solid #e2e8f0;background:linear-gradient(135deg,#eff6ff,#f8fafc)}
.student-picker-head h3{margin:0;font-size:23px}.student-picker-close{width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:12px;background:#e2e8f0;color:#0f172a;font-size:20px;cursor:pointer}
.student-picker-search{padding:17px 22px;border-bottom:1px solid #e2e8f0}.student-picker-search input{width:100%;min-height:48px;padding:12px 14px;border:1px solid #93c5fd;border-radius:13px;background:#fff;font:inherit}
.student-picker-results{min-height:240px;padding:16px 22px 22px;overflow:auto;background:#f8fafc}.student-picker-message{padding:28px 18px;text-align:center;color:#64748b}
.student-pick-result{width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:10px;padding:14px 15px;border:1px solid #dbe5f1;border-radius:14px;background:#fff;color:#0f172a;text-align:left;cursor:pointer;transition:.15s ease}
.student-pick-result:hover{border-color:#60a5fa;background:#eff6ff;transform:translateY(-1px)}.student-pick-result strong{display:block;margin-bottom:5px;font-size:16px}.student-pick-result span{display:block;color:#64748b;font-size:13px;line-height:1.45}.student-pick-result em{flex:0 0 auto;padding:6px 9px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:12px;font-style:normal;font-weight:800}
.student-picker-foot{display:flex;justify-content:space-between;gap:10px;padding:14px 22px;border-top:1px solid #e2e8f0;background:#fff}
.user-list-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px;margin-bottom:10px;border:1px solid #dbe5f1;border-radius:14px;background:#fff}.user-list-card h4{margin:0 0 6px}.user-list-card p{margin:0;color:#526175;line-height:1.55}.user-form-actions{margin-top:4px}
@media(max-width:720px){.permission-selected-row{grid-template-columns:1fr}.student-picker-modal{padding:10px}.student-picker-dialog{max-height:95vh;border-radius:17px}.user-list-card{align-items:flex-start;flex-direction:column}.user-list-card .actions{width:100%}}

.preview-form{padding:26px 30px}.preview-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}.preview-summary>div{padding:15px;border:1px solid var(--line);border-radius:14px;background:#f8fafc}.preview-summary strong,.preview-summary span{display:block}.preview-summary strong{font-size:20px;word-break:break-word}.preview-summary span{margin-top:5px;color:var(--muted);font-size:12px}.class-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.class-preview-card{padding:17px;border:1px solid var(--line);border-radius:16px;background:#fff}.class-preview-card label{display:grid;gap:7px;margin-top:12px;font-size:13px;font-weight:700}.class-preview-head{display:flex;justify-content:space-between;gap:12px}.class-preview-head small,.class-preview-head b{display:block}.class-preview-head small{color:var(--muted);margin-bottom:4px}.class-preview-head span{white-space:nowrap;padding:5px 8px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:11px;font-weight:800}.class-preview-card details{margin-top:13px}.class-preview-card summary{cursor:pointer;font-weight:700;color:#1d4ed8}.class-preview-card ul{margin:9px 0 0;padding-left:19px;color:#526175;font-size:12px}.preview-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}@media(max-width:760px){.preview-form{padding:20px}.preview-summary,.class-preview-grid{grid-template-columns:1fr}}


/* Stabil 1.1.0 - yetki açıklamaları ve okul dışında durum vurgusu */
.access-explanation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:18px}
.access-explanation article{display:flex;gap:13px;align-items:flex-start;padding:16px;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:var(--shadow)}
.access-explanation h4{margin:1px 0 6px}.access-explanation p{margin:0;color:var(--muted);font-size:13px;line-height:1.55}
.access-icon{width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px;font-weight:900}
.access-icon.authorized{background:#e0f2fe;color:#075985}.access-icon.full{background:#ede9fe;color:#5b21b6}
#adminAccessHelp{color:#667085;font-weight:500;line-height:1.45}
.student-outside-row td,.permission-outside-row td{background:#fff1f2!important;color:#7f1d1d;border-bottom-color:#fecdd3}
.student-outside-row td:first-child,.permission-outside-row td:first-child{box-shadow:inset 5px 0 0 #dc2626}
.outside-student-badge{display:inline-flex;align-items:center;margin-left:8px;padding:4px 7px;border-radius:999px;background:#dc2626;color:#fff;font-size:10px;font-weight:950;letter-spacing:.04em;vertical-align:middle}
.student-pick-result.is-outside{border-color:#fca5a5;background:#fff1f2;color:#991b1b;cursor:not-allowed;opacity:1}
.student-pick-result.is-outside em{background:#dc2626;color:#fff}
.security-card.is-outside{border-color:#ef4444;background:#fff1f2;box-shadow:inset 5px 0 0 #dc2626}
.security-card.is-outside .student-details h4{color:#991b1b}
.upload-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:7px;margin:0 30px 20px;border:1px solid var(--line);border-radius:16px;background:#f1f5f9}
.upload-tabs a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:9px 12px;border-radius:11px;color:#475569;text-decoration:none;font-weight:900}
.upload-tabs a.active{background:#fff;color:#2457d6;box-shadow:0 5px 18px #0f172a14}
.school-level-picker,.sync-mode-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}
.choice-card{position:relative;display:flex!important;gap:10px!important;align-items:flex-start;padding:13px!important;border:1px solid #cbd5e1;border-radius:13px;background:#fff;cursor:pointer}
.choice-card input{width:auto;margin-top:3px}.choice-card strong,.choice-card small{display:block}.choice-card small{margin-top:4px;color:#64748b;font-weight:500;line-height:1.4}
.report-path{display:flex;flex-wrap:wrap;gap:7px;margin:15px 0}.report-path span{padding:7px 9px;border:1px solid #dbeafe;border-radius:9px;background:#eff6ff;color:#1e40af;font-size:12px;font-weight:800}.report-path i{display:flex;align-items:center;color:#94a3b8;font-style:normal}
.import-format-badge{display:inline-flex;padding:5px 8px;border-radius:999px;background:#ede9fe;color:#5b21b6;font-size:11px;font-weight:900}
.preview-note{margin:14px 0;padding:13px;border:1px solid #bfdbfe;border-radius:12px;background:#eff6ff;color:#1e3a8a;font-size:13px;line-height:1.55}
@media(max-width:760px){.access-explanation,.school-level-picker,.sync-mode-picker{grid-template-columns:1fr}.upload-tabs{margin:0 20px 16px}}

/* Stabil 1.2.0 - Ortaokul / Lise / Tüm Öğrenciler görünüm seçici */
.scope-selector{
    display:grid;
    gap:5px;
    min-width:230px;
    margin-left:auto;
}
.scope-selector span{
    color:#64748b;
    font-size:11px;
    font-weight:800;
    letter-spacing:.04em;
    text-transform:uppercase;
}
.scope-selector select{
    min-height:42px;
    padding:9px 36px 9px 12px;
    border:1px solid #cbd5e1;
    border-radius:12px;
    background:#fff;
    color:#172033;
    font:inherit;
    font-weight:800;
    cursor:pointer;
}
.scope-selector select:focus{
    outline:3px solid #bfdbfe;
    border-color:#3b82f6;
}
@media(max-width:850px){
    .scope-selector{
        width:100%;
        min-width:0;
        margin:10px 0 0;
    }
}

/* Stabil 1.2.1 - Güvenlik WhatsApp gönderim penceresi */
.security-whatsapp-modal{
    position:fixed;
    inset:0;
    z-index:4200;
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
    background:rgba(15,23,42,.68);
    backdrop-filter:blur(7px);
}
.security-whatsapp-modal.open{display:flex}
.security-whatsapp-dialog{
    width:min(680px,100%);
    max-height:92vh;
    display:flex;
    flex-direction:column;
    overflow:hidden;
    border:1px solid rgba(148,163,184,.38);
    border-radius:22px;
    background:#fff;
    box-shadow:0 30px 90px rgba(15,23,42,.32);
}
.security-whatsapp-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:20px 22px;
    border-bottom:1px solid #e2e8f0;
    background:linear-gradient(135deg,#ecfdf5,#f8fafc);
}
.security-whatsapp-head h3{margin:0 0 4px;color:#14532d}
.security-whatsapp-head small{color:#64748b}
.security-whatsapp-close{
    width:40px;
    height:40px;
    display:grid;
    place-items:center;
    border:0;
    border-radius:12px;
    background:#dcfce7;
    color:#166534;
    font-size:20px;
    cursor:pointer;
}
.security-whatsapp-summary{
    display:flex;
    flex-wrap:wrap;
    gap:8px 16px;
    padding:16px 22px;
    border-bottom:1px solid #e2e8f0;
    background:#f8fafc;
}
.security-whatsapp-summary b{width:100%;color:#172033}
.security-whatsapp-summary span{color:#64748b;font-size:13px}
.security-whatsapp-links{
    min-height:120px;
    padding:16px 22px 22px;
    overflow:auto;
}
.security-whatsapp-link{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin-bottom:10px;
    padding:14px 15px;
    border:1px solid #bbf7d0;
    border-radius:14px;
    background:#f0fdf4;
    color:#14532d;
    text-decoration:none;
    transition:.15s ease;
}
.security-whatsapp-link:hover{
    border-color:#22c55e;
    transform:translateY(-1px);
    box-shadow:0 9px 24px rgba(34,197,94,.12);
}
.security-whatsapp-link span{display:grid;gap:4px}
.security-whatsapp-link small{color:#64748b}
.security-whatsapp-link em{
    flex:0 0 auto;
    padding:8px 12px;
    border-radius:999px;
    background:#16a34a;
    color:#fff;
    font-style:normal;
    font-weight:900;
}
.security-whatsapp-empty{
    padding:24px;
    border:1px solid #fecaca;
    border-radius:14px;
    background:#fff1f2;
    color:#991b1b;
    text-align:center;
}
.security-whatsapp-foot{
    display:flex;
    justify-content:flex-end;
    padding:14px 22px;
    border-top:1px solid #e2e8f0;
    background:#fff;
}
@media(max-width:650px){
    .security-whatsapp-modal{padding:10px}
    .security-whatsapp-dialog{border-radius:17px}
    .security-whatsapp-link{align-items:flex-start}
}

/* Stabil 1.2.2 - Veli WhatsApp güvenli manuel gönderim */
.parent-whatsapp-modal .security-whatsapp-head{
    background:linear-gradient(135deg,#eff6ff,#f8fafc);
}
.parent-whatsapp-modal .security-whatsapp-head h3{
    color:#1e3a8a;
}
.parent-whatsapp-modal .security-whatsapp-link{
    border-color:#bfdbfe;
    background:#eff6ff;
    color:#1e3a8a;
}
.parent-whatsapp-modal .security-whatsapp-link:hover{
    border-color:#3b82f6;
    box-shadow:0 9px 24px rgba(59,130,246,.13);
}
.parent-whatsapp-modal .security-whatsapp-link em{
    background:#2563eb;
}
.parent-whatsapp-actions{
    gap:10px;
}

/* Stabil 1.3.0 - Mutlucell SMS ayarları */
.mutlucell-test-box{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:end;
    gap:12px;
    padding:15px;
    border:1px solid #bfdbfe;
    border-radius:14px;
    background:#eff6ff;
}
.mutlucell-test-box small{
    grid-column:1/-1;
    color:#475569;
}
.mutlucell-settings small{
    color:#64748b;
    font-weight:500;
    line-height:1.4;
}
@media(max-width:700px){
    .mutlucell-test-box{
        grid-template-columns:1fr;
    }
}

/* Stabil 1.4.0 - Toplu izin */
.bulk-limit-note{
    display:inline-flex;
    padding:7px 10px;
    border-radius:999px;
    background:#dbeafe;
    color:#1d4ed8;
    font-size:12px;
    font-weight:900;
}
.bulk-student-selector{
    display:grid;
    gap:13px;
    padding:16px;
    border:1px solid #bfdbfe;
    border-radius:16px;
    background:linear-gradient(135deg,#eff6ff,#f8fafc);
}
.bulk-search-head{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:14px;
    align-items:end;
}
.bulk-search-head>div{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    justify-content:flex-end;
}
.bulk-student-results{
    max-height:280px;
    overflow:auto;
    display:grid;
    gap:8px;
    padding:10px;
    border:1px solid #dbe5f1;
    border-radius:13px;
    background:#fff;
}
.bulk-result-card{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:12px 13px;
    border:1px solid #e2e8f0;
    border-radius:12px;
    background:#fff;
    color:#172033;
    text-align:left;
    cursor:pointer;
}
.bulk-result-card:hover{border-color:#60a5fa;background:#eff6ff}
.bulk-result-card span{display:grid;gap:3px}
.bulk-result-card small{color:#64748b}
.bulk-result-card em{
    padding:6px 10px;
    border-radius:999px;
    background:#2563eb;
    color:#fff;
    font-style:normal;
    font-weight:900;
}
.bulk-selected-students{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}
.bulk-selected-chip{
    display:flex;
    align-items:center;
    gap:9px;
    padding:8px 10px;
    border:1px solid #bbf7d0;
    border-radius:12px;
    background:#f0fdf4;
    color:#166534;
    text-align:left;
    cursor:pointer;
}
.bulk-selected-chip span{display:grid;gap:2px}
.bulk-selected-chip small{color:#64748b}
.bulk-selected-chip>b{font-size:15px}
.delete-permission-btn{
    background:#7f1d1d;
    color:#fff;
}
.delete-permission-btn:hover{background:#991b1b}

/* Veli / fotoğraf toplu güncelleme */
.student-info-import-grid{
    display:grid;
    grid-template-columns:minmax(0,.9fr) minmax(360px,1.1fr);
    gap:22px;
}
.info-upload-card{
    padding:22px;
    border:1px solid #dbe5f1;
    border-radius:18px;
    background:#fff;
}
.info-upload-card h2{margin:0 0 10px}
.info-upload-note{
    padding:13px;
    border:1px solid #bfdbfe;
    border-radius:12px;
    background:#eff6ff;
    color:#1e3a8a;
    line-height:1.55;
}
.info-file-group{
    display:grid;
    gap:8px;
    margin-bottom:14px;
}
.info-file-group input[type=file]{
    padding:12px;
    border:1px dashed #93c5fd;
    border-radius:12px;
    background:#f8fbff;
}
.info-preview-summary{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
    margin-bottom:16px;
}
.info-preview-summary div{
    display:grid;
    gap:4px;
    padding:13px;
    border:1px solid #dbe5f1;
    border-radius:13px;
    background:#fff;
}
.info-preview-summary strong{font-size:22px}
.info-preview-summary span{color:#64748b;font-size:12px}
.info-match-ok{color:#166534;font-weight:800}
.info-match-bad{color:#b91c1c;font-weight:800}
.info-photo-yes{
    display:inline-flex;
    padding:4px 8px;
    border-radius:999px;
    background:#dcfce7;
    color:#166534;
    font-size:12px;
    font-weight:800;
}
.info-photo-no{color:#64748b}
@media(max-width:850px){
    .bulk-search-head,.student-info-import-grid{grid-template-columns:1fr}
    .bulk-search-head>div{justify-content:flex-start}
    .info-preview-summary{grid-template-columns:1fr 1fr}
}

/* Stabil 1.4.1 - Yeni İzin kartlı öğrenci araması */
.single-student-selector .bulk-student-results{
    max-height:250px;
}
.single-selected-chip{
    max-width:100%;
}
.single-student-selector .bulk-result-card.is-outside{
    border-color:#fecaca;
    background:#fff1f2;
    color:#991b1b;
    cursor:not-allowed;
}
.single-student-selector .bulk-result-card.is-outside em{
    background:#dc2626;
}
.single-student-selector .bulk-result-card:disabled{
    opacity:1;
}

/* Stabil 1.4.1 - Rapor iptal filtresi ve silme */
.report-toolbar{
    align-items:end;
}
.report-cancel-toggle{
    display:flex;
    align-items:center;
    gap:8px;
    min-height:42px;
    padding:9px 12px;
    border:1px solid #cbd5e1;
    border-radius:12px;
    background:#fff;
    color:#334155;
    font-size:13px;
    font-weight:800;
    cursor:pointer;
}
.report-cancel-toggle input{
    width:18px;
    height:18px;
    margin:0;
}
.report-cancelled-row{
    background:#f8fafc;
    color:#64748b;
}
.report-cancelled-row td{
    border-bottom-color:#e2e8f0;
}
.report-cancelled-row .badge.cancelled{
    background:#e2e8f0;
    color:#475569;
}
.report-student-no{
    display:block;
    margin-top:4px;
    color:#64748b;
}
@media(max-width:900px){
    .report-toolbar{
        width:100%;
    }
    .report-cancel-toggle{
        width:100%;
        justify-content:center;
    }
}

/* Stabil 1.5.0 - Yetkili Yönetici işlem izinleri */
.user-permissions-wrap{
    padding:16px;
    border:1px solid #bfdbfe;
    border-radius:16px;
    background:linear-gradient(135deg,#eff6ff,#f8fafc);
}
.permission-panel-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:13px;
}
.permission-panel-head h4{margin:0 0 4px}
.permission-panel-head p{margin:0;color:#64748b;line-height:1.45}
.user-permission-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
}
.user-permission-item{
    display:flex;
    align-items:flex-start;
    gap:10px;
    padding:11px;
    border:1px solid #dbe5f1;
    border-radius:12px;
    background:#fff;
    cursor:pointer;
}
.user-permission-item:hover{border-color:#60a5fa;background:#f8fbff}
.user-permission-item input{width:18px;height:18px;margin:2px 0 0;flex:0 0 auto}
.user-permission-item span{display:grid;gap:3px}
.user-permission-item b{font-size:13px;color:#172033}
.user-permission-item small{color:#64748b;line-height:1.35}
.user-permission-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}
.user-permission-tag{
    display:inline-flex;
    padding:4px 7px;
    border-radius:999px;
    background:#e0f2fe;
    color:#075985;
    font-size:11px;
    font-weight:800;
}
.account-panel{max-width:700px;margin:0 auto}
.account-password-form{max-width:520px}
@media(max-width:750px){
    .user-permission-grid{grid-template-columns:1fr}
    .permission-panel-head{align-items:flex-start;flex-direction:column}
}

/* Stabil 1.5.1 - Öğrenci arşivi */
.student-list-mode{
    min-height:42px;
    min-width:155px;
    padding:9px 34px 9px 11px;
    border:1px solid #cbd5e1;
    border-radius:11px;
    background:#fff;
    color:#172033;
    font:inherit;
    font-weight:800;
}
.student-archive-control{
    padding:14px;
    border:1px solid #f5c2c7;
    border-radius:14px;
    background:#fff7ed;
}
.student-archive-check{
    display:flex !important;
    grid-template-columns:none !important;
    align-items:flex-start;
    gap:11px;
    cursor:pointer;
}
.student-archive-check input{
    width:20px;
    height:20px;
    flex:0 0 auto;
    margin:2px 0 0;
}
.student-archive-check span{
    display:grid;
    gap:5px;
}
.student-archive-check b{
    color:#9a3412;
    font-size:15px;
}
.student-archive-check small{
    color:#7c2d12;
    line-height:1.5;
}
.student-archive-row{
    background:#f8fafc;
    color:#64748b;
}
.student-archive-row td{
    border-bottom-color:#e2e8f0;
}
.archive-student-badge{
    display:inline-flex;
    margin-left:7px;
    padding:3px 7px;
    border-radius:999px;
    background:#e2e8f0;
    color:#475569;
    font-size:10px;
    font-weight:900;
    vertical-align:middle;
}
.archive-student-info{
    display:block;
    margin-top:5px;
    color:#64748b;
    line-height:1.4;
}
.restore-student-btn{
    background:#15803d;
    color:#fff;
}
.restore-student-btn:hover{
    background:#166534;
}
@media(max-width:760px){
    .student-list-mode{
        width:100%;
    }
}

/* Stabil 1.6.0 - Sistem Sağlığı / Performans */
.system-health-panel{margin-top:18px}
.system-health-result{padding:2px 0 0}
.health-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
}
.health-item{
    display:grid;
    gap:5px;
    padding:14px;
    border:1px solid #dbe5f1;
    border-radius:14px;
    background:#f8fafc;
}
.health-item span{
    color:#64748b;
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.03em;
}
.health-item b{color:#172033;font-size:18px}
.health-item small{color:#64748b;line-height:1.4}
.health-item.ok{border-color:#bbf7d0;background:#f0fdf4}
.health-item.ok b{color:#166534}
.health-item.bad{border-color:#fecaca;background:#fff1f2}
.health-item.bad b{color:#991b1b}
.health-success,.health-missing{
    margin-top:12px;
    padding:13px 14px;
    border-radius:13px;
    line-height:1.55;
}
.health-success{border:1px solid #bbf7d0;background:#f0fdf4;color:#166534}
.health-missing{border:1px solid #fecaca;background:#fff1f2;color:#991b1b}
@media(max-width:900px){.health-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.health-grid{grid-template-columns:1fr}}


/* Stabil 1.7.0 - Güvenlik Sertleştirme */
.security-private-note{
    padding:12px 14px;
    border:1px solid #bbf7d0;
    border-radius:13px;
    background:#f0fdf4;
    color:#166534;
    line-height:1.5;
}


/* ============================================================
   STABIL 1.8.0 — GÖRSEL MAKET UYUMLU ARAYÜZ
   ============================================================ */
:root{--bg:#f3f7fc;--panel:#fff;--text:#132238;--muted:#6d7d92;--line:#dde6f0;--primary:#1769e0;--danger:#dc3b42;--shadow:0 8px 24px rgba(13,49,92,.07);--nav:#082b5f;--nav2:#062653}
body{font-family:Inter,"Segoe UI",Arial,sans-serif;background:var(--bg);font-size:14px}
main{margin-left:238px;width:calc(100% - 238px);padding:0 24px 28px}
#sidebar{width:238px;padding:16px 12px;background:radial-gradient(circle at 15% 0%,rgba(35,119,235,.22),transparent 26%),linear-gradient(180deg,var(--nav),var(--nav2));box-shadow:7px 0 24px rgba(8,43,95,.08);display:flex;flex-direction:column}
.brand{min-height:68px;padding:5px 7px 14px;border-bottom:1px solid rgba(255,255,255,.09)}
.brand-logo{width:43px;height:47px;border-radius:0;clip-path:polygon(50% 0,95% 14%,95% 60%,50% 100%,5% 60%,5% 14%);background:linear-gradient(145deg,#3185f1,#0a4fae);font-size:13px}
.brand small{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#9fbadd;font-size:9px}
#sidebar nav{display:grid;gap:3px;margin-top:10px}
#sidebar nav button{position:relative;min-height:39px;padding:8px 9px 8px 38px;border-radius:8px;color:#c8d9ee;font-size:11px;font-weight:750}
#sidebar nav button:before{position:absolute;left:12px;color:#91b4df;font-size:15px}
#sidebar nav button[data-view="dashboard"]:before{content:"⌂"}#sidebar nav button[data-view="students"]:before{content:"♙"}#sidebar nav button[data-view="permission-create"]:before{content:"＋"}#sidebar nav button[data-view="permission-bulk"]:before{content:"▦"}#sidebar nav button[data-view="permissions"]:before{content:"▤"}#sidebar nav button[data-view="security"]:before{content:"✓"}#sidebar nav button[data-view="reports"]:before{content:"▥"}#sidebar nav button[data-view="users"]:before{content:"♧"}#sidebar nav button[data-view="settings"]:before{content:"⚙"}#sidebar nav button[data-view="system-health"]:before{content:"◉"}#sidebar nav button[data-view="account"]:before{content:"○"}
#sidebar nav button:hover{background:rgba(255,255,255,.07);color:#fff}#sidebar nav button.active{background:linear-gradient(90deg,#1769e0,#1769e0cc);color:#fff;box-shadow:0 5px 14px rgba(0,18,49,.2)}
.sidebar-footer{margin-top:auto;padding:13px 10px 3px;border-top:1px solid rgba(255,255,255,.08);display:grid;gap:5px}.sidebar-footer span{width:max-content;padding:4px 7px;border-radius:999px;background:rgba(255,255,255,.08);font-size:9px;font-weight:900}.sidebar-footer small{color:#789bc5;font-size:9px}
header{min-height:82px;margin:0 -24px 22px;padding:12px 24px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:25;box-shadow:0 3px 14px rgba(14,45,86,.03)}
.page-kicker,.panel-eyebrow,.login-eyebrow,.login-kicker{display:block;font-size:9px;font-weight:900;letter-spacing:.11em;text-transform:uppercase;color:#7f8fa5;margin-bottom:4px}
header h2{font-size:20px;letter-spacing:-.02em}header p{font-size:10px}
.scope-selector{padding:6px 8px;border:1px solid #e0e7f0;border-radius:9px;background:#fff}.scope-selector span{font-size:8px;color:#8190a4}.scope-selector select{font-size:10px;border:0;padding:4px 25px 4px 4px;background:#fff}
.user-chip{border-radius:10px;padding:7px 10px;box-shadow:none}.user-chip b{font-size:10px}.user-chip small,.user-chip a{font-size:8px}
.panel{border:1px solid var(--line);border-radius:13px;padding:16px;box-shadow:var(--shadow)}.panel h3{font-size:15px}.panel p{font-size:10px}
.btn,button{min-height:34px;border-radius:8px;padding:8px 11px;font-size:9px}.primary{background:linear-gradient(135deg,#1769e0,#0f58c0)}.secondary{background:#f0f5fb;color:#285078;border:1px solid #d9e5f1}.danger{background:#fff0f1;color:#b5262b;border:1px solid #ffd4d7}
input,select,textarea{border-radius:8px;border-color:#d7e1ed;font-size:10px;padding:9px 10px}.form-grid label{font-size:10px}.toolbar input,.toolbar select{min-height:36px;font-size:10px}
.table-wrap{border-radius:10px;border-color:#e0e8f2}th{background:#f7f9fc;color:#61718a;font-size:8px;padding:9px 10px}td{font-size:9px;padding:9px 10px;border-color:#edf1f6}tbody tr:hover{background:#f9fbfe}.badge{border-radius:6px;font-size:8px;padding:4px 7px}
.login-body{min-height:100vh;padding:24px;background:radial-gradient(circle at 90% 10%,rgba(23,105,224,.12),transparent 28%),linear-gradient(145deg,#eaf2fc,#f9fbfe 55%,#edf8ff)}
.login-shell{width:min(980px,100%);min-height:590px;display:grid;grid-template-columns:minmax(320px,.9fr) minmax(410px,1.1fr);overflow:hidden;border:1px solid #cbd9e9;border-radius:27px;background:#fff;box-shadow:0 28px 80px rgba(8,43,95,.18)}
.login-visual{padding:56px 48px 40px;color:#fff;background:radial-gradient(circle at 15% 20%,rgba(71,161,255,.35),transparent 30%),linear-gradient(155deg,#0e61cf,#06448f 46%,#082b5f);display:flex;flex-direction:column}
.login-shield{width:74px;height:84px;display:grid;place-items:center;clip-path:polygon(50% 0,92% 13%,92% 58%,50% 100%,8% 58%,8% 13%);background:rgba(255,255,255,.13);border:2px solid rgba(255,255,255,.55);font-size:22px;font-weight:900;margin-bottom:32px}.login-eyebrow{color:#a9d2ff}.login-visual h1{margin:4px 0 16px;font-size:43px;line-height:1.04}.login-visual>p{max-width:330px;color:#d9eaff;font-size:14px;line-height:1.65}.login-features{display:flex;gap:8px;flex-wrap:wrap;margin-top:25px}.login-features span{padding:7px 9px;border:1px solid rgba(255,255,255,.17);border-radius:9px;background:rgba(255,255,255,.08);font-size:10px}.login-school{margin-top:auto;display:grid;gap:4px}.login-school small{color:#9fc8f5;font-size:9px;font-weight:800}.login-school b{font-size:12px}
.login-panel{display:grid;place-items:center;padding:50px 62px}.login-panel-inner{width:min(390px,100%)}.login-mobile-logo{display:none}.login-kicker{color:#1769e0}.login-panel h2{margin:6px 0;font-size:29px}.login-panel-inner>p{margin:0 0 24px;color:#6e7d91;font-size:12px}.login-form{display:grid;gap:15px}.login-form label{display:grid;gap:6px;font-size:10px;font-weight:800}.login-form input{height:46px}.login-form .btn{height:47px;margin-top:2px}.login-back{display:inline-flex;margin-top:16px;color:#1769e0;text-decoration:none;font-size:10px;font-weight:800}.login-note{margin-top:25px;padding:10px;border-radius:9px;background:#f5f9ff;color:#65778e;font-size:9px}
.dashboard-welcome{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}.dashboard-welcome h3{margin:0;font-size:17px}.dashboard-welcome p{margin:4px 0 0;color:#6d7d92;font-size:10px}.quick-actions{display:flex;gap:6px;flex-wrap:wrap}.quick-action{border:1px solid #d8e3ef;background:#fff;color:#315273}.quick-action.primary-action{border-color:#1769e0;background:#1769e0;color:#fff}
.stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}.stat{position:relative;min-height:108px;padding:13px 14px;border-radius:12px;border:1px solid var(--line);box-shadow:var(--shadow);overflow:hidden}.stat:after{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#1769e0}.stat-orange:after{background:#f59e0b}.stat-red:after{background:#e73d3d}.stat-green:after{background:#14a44d}.stat-top{display:flex;align-items:center;gap:7px}.stat-icon{width:27px;height:27px;display:grid;place-items:center;border-radius:8px;background:#eaf3ff;color:#1769e0}.stat-orange .stat-icon{background:#fff5df;color:#d98300}.stat-red .stat-icon{background:#fff0f1;color:#dc3b42}.stat-green .stat-icon{background:#ecf9f1;color:#159149}.stat small{font-size:9px;font-weight:850}.stat strong{font-size:27px;margin:9px 0 1px}.stat-meta{color:#8897a9;font-size:8px}
.dashboard-analytics{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.8fr);gap:12px;margin-bottom:12px}.trend-chart,.class-distribution{min-height:205px;display:grid;place-items:center}.trend-svg{width:100%;height:205px}.chart-axis{stroke:#dbe4ef}.chart-line{fill:none;stroke:#1769e0;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.chart-point{fill:#fff;stroke:#1769e0;stroke-width:3}.chart-label{fill:#8190a5;font-size:11px;font-weight:700}.live-pill{display:inline-flex;padding:5px 8px;border:1px solid #bbf7d0;border-radius:999px;background:#effdf4;color:#14843f;font-size:8px;font-weight:900}
.donut-wrap{width:100%;display:grid;grid-template-columns:140px 1fr;align-items:center;gap:18px}.donut-chart{width:138px;height:138px;border-radius:50%;display:grid;place-items:center}.donut-hole{width:80px;height:80px;border-radius:50%;display:grid;place-items:center;align-content:center;background:#fff}.donut-hole b{font-size:20px}.donut-hole span{font-size:8px;color:#8190a5}.donut-legend{display:grid;gap:7px}.donut-legend>div{display:grid;grid-template-columns:8px 1fr auto;align-items:center;gap:6px;font-size:9px}.legend-dot{width:7px;height:7px;border-radius:50%}
.panel-link{border:0;background:transparent;color:#1769e0;font-size:8px}.list-card{border-radius:9px;padding:10px;margin-bottom:7px}.list-card h4{font-size:10px}.list-card p{font-size:8px}.thumb,.thumb-placeholder{width:38px;height:44px;border-radius:8px}
#permissionForm,#bulkPermissionForm{grid-template-columns:minmax(330px,.85fr) minmax(420px,1.15fr);align-items:start}#permissionForm>.bulk-student-selector,#bulkPermissionForm>.bulk-student-selector{grid-column:1;grid-row:1 / span 7;min-height:500px}#permissionForm>label,#permissionForm>.operator-box,#permissionForm>.actions,#bulkPermissionForm>label,#bulkPermissionForm>.operator-box,#bulkPermissionForm>.actions{grid-column:2}#permissionForm>.full:not(.bulk-student-selector),#bulkPermissionForm>.full:not(.bulk-student-selector){grid-column:2}
.bulk-student-selector{border-radius:10px;background:#f7faff;border-color:#d9e7f7}.bulk-student-results{border-radius:9px;max-height:285px}.bulk-result-card{border-radius:8px;padding:9px}.bulk-selected-chip{border-radius:7px}.operator-box{border-radius:8px}.bulk-limit-note{border-radius:999px;font-size:9px}
.security-banner{display:grid;grid-template-columns:32px 1fr auto;gap:10px;align-items:center;border-radius:10px;background:linear-gradient(90deg,#f2f8ff,#fff)}.security-banner>div{display:grid;gap:2px}.security-banner-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#1769e0;color:#fff}.security-banner span:not(.live-pill){font-size:9px}.security-card{border-radius:9px;box-shadow:none}.security-card .student-photo{width:100px;height:122px}.security-card .photo-placeholder{width:100px;height:122px}
.screen-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.screen-heading h3{margin:0;font-size:17px}.screen-heading p{margin:4px 0 0;color:#6d7d92;font-size:10px}.health-intro{display:flex;align-items:center;gap:11px;margin-bottom:13px;padding:12px;border:1px solid #cfe2f8;border-radius:9px;background:#f4f9ff}.health-shield{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#1769e0;color:#fff}.health-intro b{font-size:11px}.health-intro p{margin:3px 0 0;font-size:9px}.health-placeholder-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.health-placeholder-grid>div{padding:12px;border:1px solid #e0e8f1;border-radius:9px;background:#fafcfe;display:grid;gap:5px}.health-placeholder-grid span{font-size:8px;color:#8190a3}.health-placeholder-grid b{font-size:9px}.health-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.health-item{border-radius:9px}.health-item span{font-size:8px}.health-item b{font-size:13px}
.modal{background:rgba(7,29,61,.62);backdrop-filter:blur(4px)}.modal-card{border-radius:14px;box-shadow:0 22px 55px rgba(8,43,95,.22)}.photo-editor{border-radius:9px;background:#f8fbff}
@media(max-width:1120px){.dashboard-analytics{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}#permissionForm,#bulkPermissionForm{grid-template-columns:1fr}#permissionForm>.bulk-student-selector,#bulkPermissionForm>.bulk-student-selector{grid-column:1;grid-row:auto;min-height:auto}#permissionForm>label,#permissionForm>.operator-box,#permissionForm>.actions,#bulkPermissionForm>label,#bulkPermissionForm>.operator-box,#bulkPermissionForm>.actions,#permissionForm>.full:not(.bulk-student-selector),#bulkPermissionForm>.full:not(.bulk-student-selector){grid-column:1}.health-grid,.health-placeholder-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){#sidebar{width:min(285px,86vw);transform:translateX(-103%);transition:.2s;box-shadow:18px 0 45px rgba(4,27,59,.28)}#sidebar.open{transform:translateX(0)}main{margin-left:0;width:100%;padding:0 14px 22px}header{margin:0 -14px 16px;padding:10px 14px;min-height:68px}.menu-btn{display:block}.dashboard-welcome{align-items:flex-start;flex-direction:column}.grid.two{grid-template-columns:1fr}.user-chip{display:grid}}
@media(max-width:620px){.login-body{padding:0;background:#fff}.login-shell{width:100%;min-height:100vh;grid-template-columns:1fr;border:0;border-radius:0;box-shadow:none}.login-visual{display:none}.login-panel{padding:32px 22px}.login-mobile-logo{display:grid;width:56px;height:56px;place-items:center;margin-bottom:23px;border-radius:16px;background:linear-gradient(145deg,#1769e0,#082b5f);color:#fff;font-weight:900}.scope-selector{display:none}.stats{grid-template-columns:1fr 1fr;gap:7px}.stat{min-height:99px;padding:11px}.dashboard-analytics{display:block}.dashboard-analytics>.panel{margin-bottom:10px}.donut-wrap{grid-template-columns:1fr;justify-items:center}.donut-legend{width:100%}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.health-grid,.health-placeholder-grid{grid-template-columns:1fr}.security-banner{grid-template-columns:32px 1fr}.security-banner .live-pill{display:none}.report-toolbar{display:grid;grid-template-columns:1fr 1fr;width:100%}.report-toolbar>*{width:100%!important}}
@media(max-width:410px){.stats{grid-template-columns:1fr}.quick-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.quick-action{width:100%}}


/* === v1.8.1 readability and layout fixes === */
html{font-size:16px}
body{font-size:15px;line-height:1.55}
aside{width:280px;padding:22px 16px}
main{margin-left:280px;width:calc(100% - 280px);padding:30px 28px}
nav button{font-size:16px!important;padding:14px 16px!important;border-radius:12px}
header h2{font-size:30px!important;letter-spacing:-.02em}
header p{font-size:15px!important}
.scope-selector{padding:9px 11px!important;border-radius:11px!important}
.scope-selector span,.user-chip small,.user-chip a{font-size:13px!important}
.user-chip{padding:10px 13px!important;border-radius:13px!important}
.user-chip b{font-size:15px!important}
.panel{padding:20px!important;border-radius:18px!important}
.panel-head{margin-bottom:18px!important}
.panel h3{font-size:22px!important}
.panel p{font-size:14px!important;line-height:1.6}
.panel-link{font-size:13px!important;font-weight:800}
.btn,button{font-size:14px!important;min-height:42px!important;padding:11px 15px!important;border-radius:10px!important}
input,select,textarea{font-size:15px!important;padding:11px 12px!important;min-height:44px}
.form-grid label,.toolbar label{font-size:14px!important}
.toolbar input,.toolbar select{min-width:210px!important;font-size:14px!important}
.table-wrap{border-radius:14px!important}
table{min-width:960px}
th{font-size:12px!important;padding:12px 12px!important}
td{font-size:14px!important;padding:13px 12px!important}
.badge,.operator-badge,.level-badge{font-size:12px!important;padding:6px 10px!important}
.dashboard-welcome h3,.screen-heading h3{font-size:24px!important}
.dashboard-welcome p,.screen-heading p{font-size:14px!important}
.quick-actions{gap:10px!important;flex-wrap:wrap}
.quick-action{font-size:14px!important}
.stats{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))!important;gap:14px!important;margin-bottom:14px!important}
.stat{min-height:142px!important;padding:18px!important;border-radius:16px!important}
.stat-top{gap:10px!important}
.stat-icon{width:34px!important;height:34px!important;font-size:16px!important}
.stat small{font-size:13px!important}
.stat strong{font-size:34px!important;margin:12px 0 4px!important}
.stat-meta{font-size:12px!important}
.dashboard-analytics{grid-template-columns:minmax(0,1.55fr) minmax(360px,1fr)!important;gap:14px!important;margin-bottom:14px!important}
.trend-chart,.class-distribution{min-height:260px!important}
.trend-svg{height:250px!important}
.chart-label{font-size:12px!important}
.live-pill{font-size:11px!important;padding:6px 10px!important}
.donut-wrap{grid-template-columns:160px 1fr!important;gap:20px!important}
.donut-chart{width:156px!important;height:156px!important}
.donut-hole{width:88px!important;height:88px!important}
.donut-hole b{font-size:23px!important}
.donut-hole span,.donut-legend>div{font-size:13px!important}
.list-card{padding:14px!important;border-radius:14px!important;align-items:flex-start!important;gap:14px!important}
.list-card h4{font-size:17px!important;margin:0 0 6px!important}
.list-card p{font-size:14px!important;line-height:1.6!important}
.thumb,.thumb-placeholder{width:44px!important;height:52px!important;border-radius:10px!important}
.user-list-card{padding:17px!important;border-radius:15px!important}
.user-list-card h4{font-size:18px!important}
.user-list-card p{font-size:14px!important}
#permissionForm,#bulkPermissionForm{grid-template-columns:minmax(360px,.95fr) minmax(440px,1.05fr)!important;gap:18px!important}
.bulk-student-selector{padding:15px!important;border-radius:14px!important}
.bulk-student-results{max-height:340px!important;border-radius:12px!important}
.bulk-result-card{padding:12px 14px!important;border-radius:11px!important;font-size:14px!important}
.bulk-result-card small{font-size:13px!important}
.bulk-selected-chip{padding:8px 10px!important;font-size:13px!important;border-radius:9px!important}
.operator-box{padding:13px!important;border-radius:11px!important}
.modal-card{width:min(880px,100%)!important;padding:24px!important}
.security-banner{padding:15px 16px!important;border-radius:14px!important}
.security-banner span:not(.live-pill){font-size:14px!important}
.security-card{padding:18px!important;border-radius:15px!important}
.security-card .student-photo,.security-card .photo-placeholder{width:138px!important;height:172px!important}
.student-photo,.photo-placeholder{width:180px!important;height:220px!important}
.photo-placeholder{font-size:44px!important}
.student-details h4{font-size:24px!important}
.health-intro{padding:14px!important;border-radius:12px!important}
.health-intro b{font-size:16px!important}
.health-intro p{font-size:14px!important}
.health-grid,.health-placeholder-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;gap:12px!important}
.health-placeholder-grid>div,.health-item{padding:14px!important;border-radius:12px!important}
.health-placeholder-grid span,.health-item span{font-size:12px!important}
.health-placeholder-grid b,.health-item b{font-size:18px!important}
.import-copy h2{font-size:28px!important}
.import-copy p,.feature-list li,.step-chip,.sample-link{font-size:14px!important}
@media(max-width:1280px){
  .dashboard-analytics{grid-template-columns:1fr!important}
}
@media(max-width:1120px){
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #permissionForm,#bulkPermissionForm{grid-template-columns:1fr!important}
}
@media(max-width:820px){
  main{margin-left:0!important;width:100%!important;padding:16px!important}
  header{margin-bottom:16px!important}
  .panel{padding:16px!important}
  .dashboard-welcome,.screen-heading{align-items:flex-start;flex-direction:column}
}
@media(max-width:640px){
  header h2{font-size:24px!important}
  header p{font-size:13px!important}
  .stats{grid-template-columns:1fr!important}
  .quick-actions{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%}
  .quick-action{width:100%}
  .toolbar{display:grid!important;grid-template-columns:1fr!important;width:100%}
  .toolbar>*{width:100%!important}
  .list-card{padding:12px!important}
  .security-card .student-photo,.security-card .photo-placeholder{width:118px!important;height:148px!important}
  .student-photo,.photo-placeholder{width:150px!important;height:190px!important}
  .user-list-card .actions{width:100%}
  .user-list-card .actions>*{flex:1}
}


/* === v1.8.2 student dual-view and balanced cards === */
.student-toolbar{align-items:center;justify-content:flex-end}
.segmented-toggle{display:inline-flex;align-items:center;border:1px solid #cfe0f5;border-radius:12px;padding:4px;background:#f8fbff;gap:4px}
.segmented-btn{background:transparent;color:#35506f;border:0;border-radius:9px;padding:8px 12px;min-height:38px;font-weight:800}
.segmented-btn.active{background:#1769e0;color:#fff;box-shadow:0 6px 15px rgba(23,105,224,.18)}
.student-view-shell{display:grid;gap:16px}
.student-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:16px}
.student-card{display:flex;flex-direction:column;justify-content:space-between;padding:18px;border:1px solid #dbe5f1;border-radius:18px;background:#fff;box-shadow:0 12px 28px rgba(15,23,42,.06);min-height:100%}
.student-card.is-outside{border-color:#fecaca;background:linear-gradient(180deg,#fff9f9,#fff)}
.student-card.is-archive{border-color:#d7deea;background:linear-gradient(180deg,#f9fbff,#fff)}
.student-card-top{display:flex;gap:16px;align-items:flex-start}
.student-card-photo .student-photo,.student-card-photo .photo-placeholder{width:110px;height:136px;border-radius:14px}
.student-card-main{flex:1;min-width:0;display:grid;gap:11px}
.student-card-head{display:grid;gap:10px}
.student-card-head h4{margin:0;font-size:20px;line-height:1.3}
.student-card-badges{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.student-card-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 16px;font-size:14px;color:#41536b}
.student-card-meta span{line-height:1.5}
.student-card-note{padding:10px 12px;border-radius:12px;background:#f6f8fc;color:#51627a;font-size:13px;line-height:1.5;border:1px solid #e3e9f2}
.student-card-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid #ebf0f6}
.student-card-passive{display:inline-flex;align-items:center;padding:8px 10px;border-radius:10px;background:#f4f6fb;color:#69788f;font-weight:700}
.dashboard-analytics,.dashboard-lists{align-items:stretch}
.dashboard-analytics>.panel,.dashboard-lists>.panel{height:100%;display:flex;flex-direction:column}
.dashboard-analytics .panel>div:last-child,.dashboard-lists .panel>div:last-child{flex:1}
#dashboardPending,#dashboardExits{display:grid;gap:12px;align-content:start}
.dashboard-lists .list-card{height:100%;min-height:96px}
.user-list-card .actions,.student-card-actions{display:flex;flex-wrap:wrap;gap:10px}
@media(max-width:980px){
  .student-cards{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
}
@media(max-width:760px){
  .student-toolbar{justify-content:flex-start}
  .student-card-meta{grid-template-columns:1fr}
  .student-card-top{gap:14px}
}
@media(max-width:620px){
  .student-view-shell{gap:12px}
  .segmented-toggle{width:100%;justify-content:stretch}
  .segmented-btn{flex:1}
  .student-cards{grid-template-columns:1fr}
  .student-card{padding:14px;border-radius:15px}
  .student-card-top{flex-direction:column;align-items:center;text-align:left}
  .student-card-photo{width:100%}
  .student-card-photo .student-photo,.student-card-photo .photo-placeholder{width:100%;max-width:180px;height:210px}
  .student-card-main{width:100%}
  .student-card-head h4{font-size:18px}
  .student-card-actions{display:grid;grid-template-columns:1fr 1fr}
  .student-card-actions .btn{width:100%}
  .dashboard-lists .list-card,.user-list-card,.security-card{flex-direction:column;align-items:flex-start}
  .dashboard-lists .list-card>div:last-child,.user-list-card .actions,.security-card>.btn{width:100%}
  .dashboard-lists .list-card .btn,.user-list-card .actions .btn,.security-card>.btn{width:100%}
}
@media(max-width:420px){
  .student-card-actions{grid-template-columns:1fr}
}


/* === v1.8.3 larger typography and denser fit === */
html{font-size:18px}
body{font-size:16px;line-height:1.65}
aside{width:290px;padding:24px 18px}
.brand{gap:14px;padding:0 10px 24px}.brand b{font-size:26px}.brand small{font-size:13px}
main{margin-left:290px;width:calc(100% - 290px);padding:30px}
nav{gap:10px}nav button{font-size:19px!important;padding:15px 16px!important;border-radius:14px;font-weight:800}
header{gap:18px;margin-bottom:26px}header h2{font-size:38px!important;line-height:1.2}header p{font-size:18px!important}
.scope-selector{min-width:240px;font-size:17px!important;padding:14px 16px!important;border-radius:14px!important}.scope-selector span{font-size:14px!important}.scope-selector select{font-size:17px!important}
.user-chip{padding:14px 16px!important;border-radius:14px!important;min-width:240px}.user-chip b{font-size:20px!important}.user-chip small{font-size:15px!important;line-height:1.5}.user-chip a{font-size:15px!important}
.panel{padding:24px!important;border-radius:20px!important}.panel h3{font-size:32px!important;line-height:1.2}.panel p{font-size:17px!important;line-height:1.65}
.panel-eyebrow{font-size:13px!important;letter-spacing:.12em}.panel-link{font-size:15px!important}
.btn,button{font-size:16px!important;min-height:48px!important;padding:12px 18px!important;border-radius:12px!important}
input,select,textarea{font-size:16px!important;padding:13px 14px!important;min-height:48px!important;border-radius:12px!important}
.toolbar input,.toolbar select{min-width:220px!important}
th{font-size:13px!important;padding:14px 14px!important}td{font-size:15px!important;padding:14px 14px!important}
.badge,.level-badge,.operator-badge,.archive-student-badge,.outside-student-badge{font-size:12px!important;padding:6px 10px!important}
.empty{font-size:17px!important;padding:32px!important}
.stats{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))!important;gap:16px!important}.stat{min-height:156px!important;padding:20px!important}.stat strong{font-size:38px!important}.stat small{font-size:15px!important}.stat-meta{font-size:13px!important}
.dashboard-analytics{grid-template-columns:minmax(0,1.65fr) minmax(380px,1fr)!important;gap:16px!important}.trend-chart,.class-distribution{min-height:280px!important}.trend-svg{height:260px!important}.chart-label{font-size:13px!important}.live-pill{font-size:12px!important;padding:6px 10px!important}
.dashboard-lists{gap:16px!important}.list-card{padding:18px!important;border-radius:16px!important;gap:14px!important}.list-card h4{font-size:19px!important}.list-card p{font-size:15px!important}
.identity{gap:12px!important}.thumb,.thumb-placeholder{width:56px!important;height:68px!important}.thumb-placeholder{font-size:18px!important}
.student-photo,.photo-placeholder{width:190px!important;height:235px!important}.student-details h4{font-size:26px!important}.student-details p{font-size:16px!important;line-height:1.65!important}
.security-card .student-photo,.security-card .photo-placeholder{width:150px!important;height:188px!important}
.user-list-card{padding:20px!important;border-radius:18px!important}.user-list-card h4{font-size:21px!important}.user-list-card p{font-size:15px!important;line-height:1.65}
.student-toolbar{gap:12px!important}.student-cards{grid-template-columns:repeat(auto-fit,minmax(360px,1fr))!important;gap:18px!important}.student-card{padding:20px!important;border-radius:20px!important}.student-card-head h4{font-size:22px!important}.student-card-meta{font-size:15px!important}.student-card-note{font-size:14px!important}.student-card-photo .student-photo,.student-card-photo .photo-placeholder{width:118px!important;height:146px!important}
.segmented-toggle{padding:5px!important;border-radius:13px!important}.segmented-btn{font-size:15px!important;min-height:42px!important}
.modal-card{width:min(920px,100%)!important;padding:26px!important}.modal-head h3{font-size:28px!important}
.form-grid label,.toolbar label{font-size:15px!important}
.photo-editor{padding:16px!important}.photo-preview{width:124px!important;height:150px!important}
.health-item b,.health-placeholder-grid b{font-size:20px!important}.health-item span,.health-placeholder-grid span{font-size:13px!important}
@media(max-width:1280px){main{padding:22px}header h2{font-size:34px!important}.panel h3{font-size:28px!important}.dashboard-analytics{grid-template-columns:1fr!important}}
@media(max-width:980px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}.student-cards{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))!important}}
@media(max-width:820px){aside{width:280px;padding:22px 16px}main{margin-left:0!important;width:100%!important;padding:18px!important}header h2{font-size:30px!important}.panel h3{font-size:26px!important}.user-chip{display:none}.scope-selector{min-width:unset;width:100%}}
@media(max-width:640px){header h2{font-size:28px!important}header p{font-size:16px!important}.panel{padding:18px!important}.stats{grid-template-columns:1fr!important}.quick-actions{display:grid!important;grid-template-columns:1fr 1fr!important}.toolbar{display:grid!important;grid-template-columns:1fr!important}.toolbar>*{width:100%!important}.student-cards{grid-template-columns:1fr!important}.student-card-top{flex-direction:column!important;align-items:flex-start!important}.student-card-photo .student-photo,.student-card-photo .photo-placeholder{width:160px!important;height:195px!important}.student-card-head h4{font-size:20px!important}.student-card-actions{grid-template-columns:1fr!important}.list-card,.security-card,.user-list-card{padding:16px!important}.security-card .student-photo,.security-card .photo-placeholder{width:138px!important;height:172px!important}}


/* === v1.8.4 compact typography === */
html{font-size:15px!important}
body{font-size:14px!important;line-height:1.5!important}
aside{width:250px!important;padding:18px 12px!important}
.brand{gap:10px!important;padding:0 8px 18px!important}.brand b{font-size:18px!important}.brand small{font-size:11px!important}
main{margin-left:250px!important;width:calc(100% - 250px)!important;padding:22px 24px!important}
nav{gap:6px!important}nav button{font-size:14px!important;padding:11px 12px!important;border-radius:10px!important;font-weight:750!important;min-height:40px!important}
header{gap:12px!important;margin-bottom:18px!important}header h2{font-size:28px!important;line-height:1.15!important}header p{font-size:13px!important}
.scope-selector{min-width:210px!important;font-size:14px!important;padding:10px 12px!important;border-radius:11px!important}.scope-selector span{font-size:11px!important}.scope-selector select{font-size:14px!important;min-height:38px!important}
.user-chip{padding:10px 12px!important;border-radius:11px!important;min-width:210px!important}.user-chip b{font-size:15px!important}.user-chip small{font-size:12px!important;line-height:1.4!important}.user-chip a{font-size:12px!important}
.panel{padding:18px!important;border-radius:16px!important}.panel h3{font-size:22px!important;line-height:1.2!important}.panel p{font-size:13px!important;line-height:1.5!important}
.panel-eyebrow{font-size:10px!important;letter-spacing:.1em!important}.panel-link{font-size:12px!important}
.btn,button{font-size:13px!important;min-height:38px!important;padding:9px 13px!important;border-radius:9px!important}
input,select,textarea{font-size:13px!important;padding:9px 11px!important;min-height:40px!important;border-radius:9px!important}
.form-grid label,.toolbar label{font-size:12px!important}.toolbar input,.toolbar select{min-width:190px!important}
th{font-size:11px!important;padding:10px 10px!important}td{font-size:13px!important;padding:10px 10px!important}
.badge,.level-badge,.operator-badge,.archive-student-badge,.outside-student-badge{font-size:10px!important;padding:5px 8px!important}
.empty{font-size:13px!important;padding:22px!important}
.stats{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;gap:12px!important}.stat{min-height:118px!important;padding:14px!important}.stat strong{font-size:28px!important;margin:8px 0 3px!important}.stat small{font-size:11px!important}.stat-meta{font-size:10px!important}.stat-icon{width:30px!important;height:30px!important;font-size:14px!important}
.dashboard-analytics{grid-template-columns:minmax(0,1.65fr) minmax(320px,1fr)!important;gap:12px!important}.trend-chart,.class-distribution{min-height:220px!important}.trend-svg{height:210px!important}.chart-label{font-size:10px!important}.live-pill{font-size:10px!important;padding:5px 8px!important}
.donut-wrap{grid-template-columns:130px 1fr!important;gap:14px!important}.donut-chart{width:128px!important;height:128px!important}.donut-hole{width:72px!important;height:72px!important}.donut-hole b{font-size:18px!important}.donut-hole span,.donut-legend>div{font-size:11px!important}
.dashboard-lists{gap:12px!important}.list-card{padding:12px!important;border-radius:12px!important;gap:10px!important}.list-card h4{font-size:15px!important}.list-card p{font-size:12px!important;line-height:1.45!important}
.identity{gap:9px!important}.thumb,.thumb-placeholder{width:42px!important;height:52px!important}.thumb-placeholder{font-size:14px!important}
.student-photo,.photo-placeholder{width:150px!important;height:185px!important}.student-details h4{font-size:20px!important}.student-details p{font-size:13px!important;line-height:1.5!important}
.security-card .student-photo,.security-card .photo-placeholder{width:116px!important;height:145px!important}
.user-list-card{padding:14px!important;border-radius:13px!important}.user-list-card h4{font-size:16px!important}.user-list-card p{font-size:12px!important;line-height:1.5!important}
.student-toolbar{gap:8px!important}.student-cards{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))!important;gap:12px!important}.student-card{padding:14px!important;border-radius:14px!important}.student-card-head h4{font-size:16px!important}.student-card-meta{font-size:12px!important;gap:7px 12px!important}.student-card-note{font-size:11px!important}.student-card-photo .student-photo,.student-card-photo .photo-placeholder{width:88px!important;height:108px!important}
.segmented-toggle{padding:3px!important;border-radius:10px!important}.segmented-btn{font-size:12px!important;min-height:34px!important;padding:7px 10px!important}
.modal-card{width:min(860px,100%)!important;padding:20px!important}.modal-head h3{font-size:21px!important}
.photo-editor{padding:12px!important}.photo-preview{width:96px!important;height:116px!important}
.health-item b,.health-placeholder-grid b{font-size:16px!important}.health-item span,.health-placeholder-grid span{font-size:10px!important}
@media(max-width:1280px){main{padding:18px!important}.dashboard-analytics{grid-template-columns:1fr!important}}
@media(max-width:980px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}.student-cards{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))!important}}
@media(max-width:820px){aside{width:250px!important}main{margin-left:0!important;width:100%!important;padding:14px!important}header h2{font-size:24px!important}.panel h3{font-size:20px!important}.user-chip{display:none!important}.scope-selector{min-width:unset!important;width:100%!important}}
@media(max-width:640px){header h2{font-size:23px!important}header p{font-size:12px!important}.panel{padding:14px!important}.stats{grid-template-columns:1fr!important}.quick-actions{display:grid!important;grid-template-columns:1fr 1fr!important}.toolbar{display:grid!important;grid-template-columns:1fr!important}.toolbar>*{width:100%!important}.student-cards{grid-template-columns:1fr!important}.student-card-top{flex-direction:row!important;align-items:flex-start!important}.student-card-photo .student-photo,.student-card-photo .photo-placeholder{width:78px!important;height:96px!important}.student-card-head h4{font-size:15px!important}.student-card-actions{grid-template-columns:1fr 1fr!important}.list-card,.security-card,.user-list-card{padding:12px!important}.security-card .student-photo,.security-card .photo-placeholder{width:100px!important;height:125px!important}}
@media(max-width:420px){.student-card-top{flex-direction:column!important}.student-card-actions{grid-template-columns:1fr!important}}
