
:root{--bg:#f7f8fe;--paper:#fff;--ink:#24304b;--muted:#73829b;--line:#e9e9f4;--nav:#202442;--primary:#6b62dc;--primarysoft:#eeeafd;--pink:#ee83aa;--pinksoft:#fff0f6;--mint:#30ab86;--mintsoft:#e6f8ef;--sun:#d69a35;--sunsoft:#fff5e0;--sky:#4196d6;--skysoft:#ecf7ff;--danger:#d8606f;--dangersoft:#fff0f1;--shadow:0 14px 36px rgba(70,70,115,.08)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);font-size:15px}button,input,textarea,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #afa8ff;outline-offset:2px}a{color:var(--primary)}.layout{display:grid;grid-template-columns:244px minmax(0,1fr);min-height:100vh}.side{position:sticky;top:0;height:100vh;background:var(--nav);color:white;padding:22px 13px;display:flex;flex-direction:column}.brand{font-size:24px;font-weight:880;letter-spacing:-.65px;padding:4px 13px 24px}.brand span{display:block;color:#c1c2e9;font-size:11px;letter-spacing:.55px;font-weight:650;margin-top:5px}.nav{display:flex;flex-direction:column;gap:5px;overflow-y:auto}.nav button{display:flex;align-items:center;gap:10px;appearance:none;border:0;border-radius:14px;background:transparent;color:#dadcf1;padding:12px 14px;text-align:left;font-weight:620;transition:background .1s}.nav button:hover,.nav button.active{background:#393b6d;color:#fff}.nav .emoji{font-size:18px;min-width:24px}.side-bottom{margin-top:auto;padding:15px 10px 4px;color:#c1c2e9;font-size:12px}.miniHelp{width:100%;border:1px solid #686a97;border-radius:12px;padding:10px;margin-top:12px;color:white;background:#363a68;font-weight:750}.main{padding:26px 31px 54px;max-width:1450px;width:100%;min-width:0;margin:auto}.top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:24px}.top h1{font-size:29px;letter-spacing:-.8px;margin:0}.top p{color:var(--muted);margin:6px 0 0}.topright{display:flex;align-items:center;gap:8px}.date-bubble{border:1px solid var(--line);border-radius:999px;padding:10px 15px;background:white;font-size:13px;font-weight:650}.view{display:none}.view.active{display:block}.grid{display:grid;gap:16px}.g4{grid-template-columns:repeat(4,minmax(0,1fr))}.g2{grid-template-columns:repeat(2,minmax(0,1fr))}.g3{grid-template-columns:repeat(3,minmax(0,1fr))}.card{background:var(--paper);border:1px solid var(--line);padding:20px;border-radius:22px;box-shadow:var(--shadow);min-width:0}.card h2{font-size:19px;margin:0 0 6px;letter-spacing:-.3px}.card h3{margin:0 0 6px;font-size:16px}.muted{color:var(--muted)}.small{font-size:12px}.hero{background:linear-gradient(125deg,#ece9ff 1%,#fff3f7 82%);border:1px solid #e4dffa;padding:23px;border-radius:23px;display:flex;justify-content:space-between;gap:15px;align-items:center}.hero h2{font-size:23px;letter-spacing:-.6px;margin:0 0 8px}.hero p{max-width:590px;margin:0 0 16px;line-height:1.5}.hero-art{font-size:76px;line-height:1;filter:drop-shadow(0 10px 11px rgba(94,77,154,.15))}.stat{position:relative;overflow:hidden}.stat .large{font-size:32px;font-weight:870;margin-top:9px}.stat .stat-icon{font-size:23px;float:right}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.space{justify-content:space-between}.btn{border:0;background:var(--primary);color:white;border-radius:13px;padding:11px 16px;font-weight:760;white-space:normal}.btn:hover{filter:brightness(.97)}.btn.subtle{background:#fff;color:var(--ink);border:1px solid var(--line)}.btn.mint{background:var(--mint)}.btn.pink{background:var(--pink)}.btn.tiny{font-size:12px;padding:8px 12px}.btn.square{min-width:40px;height:40px;padding:0;display:inline-grid;place-items:center;font-size:19px}.btn:disabled{opacity:.5;cursor:not-allowed}.field{display:flex;flex-direction:column;gap:7px;margin:12px 0}.field label{color:var(--muted);font-size:12px;font-weight:800}input,select,textarea{color:var(--ink);background:#fff;border:1px solid #dce1ee;border-radius:12px;padding:12px;min-width:0;width:100%}textarea{min-height:90px;resize:vertical}.quick{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.chip{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:800;padding:6px 10px;border-radius:99px;background:var(--primarysoft);color:#5d54b7}.chip.mint{background:var(--mintsoft);color:#198264}.chip.pink{background:var(--pinksoft);color:#be4e76}.chip.sun{background:var(--sunsoft);color:#a07315}.chip.sky{background:var(--skysoft);color:#347cbe}.notice{background:#f7f5ff;border:1px solid #e6e1ff;border-radius:16px;padding:14px 16px;line-height:1.5;color:#645f9a;font-size:13px}.notice.warn{background:#fff8e8;border-color:#f4dfb6;color:#8a6527}.notice.danger{background:var(--dangersoft);border-color:#f3cbd0;color:#b5475a}.groups-bar{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:15px}.tabs{display:flex;gap:8px;overflow-x:auto;padding:2px 1px 8px;margin:16px 0}.tab{border:1px solid #e2e3f4;background:#fff;color:#646c88;border-radius:999px;padding:10px 16px;white-space:nowrap;font-size:13px;font-weight:750}.tab.selected{color:#fff;background:var(--primary);border-color:var(--primary)}.people{display:grid;grid-template-columns:repeat(auto-fit,minmax(275px,1fr));gap:12px}.person{background:#fff;border:1px solid var(--line);border-radius:18px;padding:15px;min-width:0}.phead{display:flex;align-items:center;gap:11px;margin-bottom:13px}.avatar{width:43px;height:43px;display:grid;place-items:center;border-radius:15px;background:var(--primarysoft);color:var(--primary);font-weight:800;font-size:15px;flex-shrink:0}.pname{font-weight:800;line-height:1.35}.psub{color:var(--muted);font-size:11px;margin-top:2px}.att-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.attbtn{border:1px solid var(--line);background:#fafaff;border-radius:12px;min-height:62px;padding:8px 4px;color:#68748b;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:4px;font-size:12px;font-weight:750}.attbtn .mark{font-size:20px;line-height:1}.attbtn.P.active{background:var(--mintsoft);border-color:#60caa6;color:#138968}.attbtn.F.active{background:var(--dangersoft);border-color:#e79ba6;color:#b13d50}.attbtn.J.active{background:var(--sunsoft);border-color:#ebc77b;color:#966c16}.countline{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fcfbff;padding:9px 12px;border-radius:13px}.countline button{width:43px;height:43px;border:0;border-radius:13px;display:grid;place-items:center;font-size:21px;font-weight:750}.minus{background:#efedfa;color:#6c65bb}.plus{background:#dff5ed;color:#14936c}.count{font-size:27px;font-weight:850;min-width:34px;text-align:center}.itemlist{display:flex;flex-direction:column;gap:10px}.listitem{padding:13px 15px;background:#fafbff;border:1px solid var(--line);border-radius:15px;display:flex;gap:12px;justify-content:space-between;align-items:center}.switches{display:flex;gap:6px;flex-wrap:wrap}.choice{border:1px solid #dfe3ec;background:#fff;border-radius:11px;padding:9px 10px;font-size:12px;font-weight:700;color:#66758c}.choice.active.good{background:var(--mintsoft);color:#15805e;border-color:#a2ddc9}.choice.active.bad{background:var(--dangersoft);color:#b24a5c;border-color:#efb7be}.choice.active.just{background:var(--sunsoft);color:#976d1f;border-color:#edcf92}.choice.active.neutral{background:var(--primarysoft);color:#6056bc;border-color:#c6bfff}.examinput{max-width:120px;min-width:90px;text-align:center;font-weight:800;font-size:18px}.score-row{display:grid;grid-template-columns:minmax(150px,1fr) minmax(95px,130px) auto;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid var(--line)}.score-row:last-child{border-bottom:none}.tablewrap{overflow-x:auto;border:1px solid var(--line);border-radius:16px}table{width:100%;border-collapse:collapse;min-width:640px}th,td{padding:12px;border-bottom:1px solid var(--line);text-align:left;font-size:13px}th{background:#f9f8ff;color:#656b82;font-size:12px}td strong{font-weight:800}.empty{padding:26px;text-align:center;color:var(--muted)}.big-grade{font-size:22px;font-weight:850;color:var(--primary)}.badge{display:inline-flex;padding:5px 8px;border-radius:7px;background:var(--skysoft);font-size:12px;font-weight:800;color:#347cbe}.weightrow{display:grid;grid-template-columns:1fr 115px;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.weightrow input{margin-top:5px}.progress{height:10px;background:#f0eef9;border-radius:100px;overflow:hidden}.progress div{height:100%;background:var(--primary);border-radius:100px}.modalbg{position:fixed;inset:0;background:rgba(30,29,53,.52);display:none;align-items:center;justify-content:center;padding:15px;z-index:30}.modalbg.show{display:flex}.modal{background:#fff;border-radius:24px;max-width:680px;width:100%;padding:23px;max-height:92vh;overflow:auto;box-shadow:0 24px 80px rgba(26,27,57,.2)}.modal .modal-title{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:15px}.modal h2{font-size:21px;letter-spacing:-.3px;margin:0}.close{border:0;background:#f2f1fa;color:#5c5c83;width:36px;height:36px;border-radius:12px;font-size:20px}.toast{position:fixed;right:18px;bottom:18px;background:#27294b;color:white;border-radius:14px;padding:12px 17px;box-shadow:var(--shadow);display:none;z-index:50;font-size:13px}.tutorial{background:linear-gradient(120deg,#f5f1ff,#fff4f8);border:1px solid #ebe4fe;border-radius:20px;padding:24px;min-height:260px}.tutorial .scene{font-size:49px}.tutorial h3{font-size:22px;margin:12px 0 9px}.tutorial p{line-height:1.6;color:#606a82;margin:0}.dots{display:flex;gap:6px;justify-content:center;margin:18px 0}.dots span{width:8px;height:8px;border-radius:100px;background:#dad5eb}.dots span.on{background:var(--primary);width:21px}.stickyHelp{position:fixed;bottom:19px;right:19px;border:0;border-radius:999px;background:var(--primary);color:#fff;padding:13px 17px;font-weight:800;box-shadow:0 8px 25px #645ec94d;z-index:20}.helperTwo{margin-top:8px;font-size:12px;color:var(--muted)}.error{color:var(--danger);font-size:12px;font-weight:700}.iconbutton{border:0;background:var(--primarysoft);color:var(--primary);width:40px;height:40px;border-radius:12px;font-size:18px}.mobileNav{display:none}.feedbackItem{background:#fbfaff;border:1px solid var(--line);border-radius:14px;padding:13px;margin-top:9px}.checklist{list-style:none;padding:0;display:grid;gap:10px}.checklist li{padding:9px 12px;background:#f7f6ff;border-radius:12px}.checklist li:before{content:'✓';margin-right:9px;color:var(--mint);font-weight:bold}
@media(max-width:950px){.layout{grid-template-columns:1fr}.side{height:auto;position:static;padding:8px 9px;display:block}.brand{font-size:19px;padding:6px 10px}.brand span{display:none}.nav{display:flex;flex-direction:row;overflow-x:auto;gap:5px;padding:4px 0}.nav button{width:auto;white-space:nowrap;padding:9px 11px}.side-bottom{display:none}.main{padding:19px 14px 95px}.g4{grid-template-columns:repeat(2,minmax(0,1fr))}.g2,.g3{grid-template-columns:1fr}.top h1{font-size:25px}.hero-art{font-size:56px}.people{grid-template-columns:repeat(auto-fit,minmax(265px,1fr))}.stickyHelp{bottom:87px;right:12px}.mobileNav{position:fixed;display:flex;bottom:0;left:0;right:0;z-index:18;background:rgba(255,255,255,.96);border-top:1px solid var(--line);padding:8px max(9px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom));justify-content:space-around;gap:3px;backdrop-filter:blur(10px)}.mobileNav button{display:flex;align-items:center;flex-direction:column;gap:2px;font-size:10px;font-weight:800;color:var(--muted);background:transparent;border:0;padding:4px 7px;white-space:nowrap}.mobileNav button strong{font-size:20px}.mobileNav button.active{color:var(--primary)}}
@media(max-width:520px){.top{align-items:flex-start}.topright .date-bubble{display:none}.card{padding:15px;border-radius:19px}.hero{padding:18px}.hero-art{font-size:39px}.hero h2{font-size:19px}.stat .large{font-size:26px}.people{grid-template-columns:1fr}.score-row{grid-template-columns:minmax(110px,1fr) 100px;gap:7px}.score-row .exam-note{grid-column:1/-1}.listitem{flex-wrap:wrap}.listitem>div:last-child{width:100%}.weightrow{grid-template-columns:minmax(0,1fr) 88px}.btn{padding:10px 12px}.topright{gap:5px}}
/* Prevent desktop-sized overflow on narrow phones */
@media(max-width:950px){
 html,body{width:100%;max-width:100%;overflow-x:hidden}
 .layout{grid-template-columns:minmax(0,1fr);width:100%;max-width:100%;min-width:0}
 .side{min-width:0;width:100%;max-width:100%;overflow:hidden}
 .nav{display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;max-width:100%;min-width:0;width:100%;scrollbar-width:none}
 .nav button{flex:0 0 auto}
 .main{min-width:0;width:100%;max-width:100vw;overflow-x:hidden}
 .hero,.card,.top,.topright,.listitem,.groups-bar{min-width:0;max-width:100%}
 .top{flex-wrap:wrap}
 .tabs{width:100%;min-width:0;max-width:100%;overflow-x:auto;flex-wrap:nowrap}
 .tab{flex-shrink:0}
 .score-row{width:100%;min-width:0}
 .score-table{min-width:0;width:100%}
}

/* Beta 3: photo roster scanner */
.scanDrop{border:2px dashed #cdc3f7;background:linear-gradient(130deg,#faf7ff,#fff8fb);text-align:center;border-radius:18px;padding:19px 14px;margin-top:12px}
.scanDrop h3{margin:5px 0 8px;font-size:19px}
.scanDrop p{margin:4px auto 12px;max-width:430px}
.scanSymbol{font-size:38px}
.scanActions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.scanActions label{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;min-height:46px}
.scanner-steps{display:flex;gap:7px;flex-wrap:wrap;color:#685baf;font-size:12px;font-weight:850}
.scanner-steps span{background:#f0ecff;padding:7px 11px;border-radius:999px}
.scanner-preview{margin-top:12px;text-align:center}
.rosterImg{max-width:100%;max-height:255px;object-fit:contain;border:1px solid var(--line);border-radius:14px;background:#fff}
.scanNames{min-height:160px;line-height:1.7}
.scanSummary{padding:10px 13px;border-radius:12px;background:#e6f7ee;color:#1a845d;font-size:13px;font-weight:800;margin-bottom:13px}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;clip-path:inset(50%);overflow:hidden}
@media(max-width:520px){.scanDrop{padding:15px 9px}.scanActions .btn{width:100%}.scanner-steps{gap:4px}.scanner-steps span{padding:6px 8px;font-size:11px}}

/* KJ Beta 4: operaciones seguras y gestión intuitiva */
.group-card{position:relative}
.group-icon{font-size:36px}
.group-actions{margin-top:15px;padding-top:12px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.textbutton{border:0;background:transparent;font-size:12px;font-weight:800;padding:9px 7px;cursor:pointer;color:var(--primary);border-radius:9px}
.textbutton:hover{background:var(--primarysoft)}
.danger-text{color:#b94b58}
.btn.delete{background:#c95264;color:white}
.btn.delete:hover{filter:brightness(.95)}
.manage-list{display:grid;gap:8px;max-height:52vh;overflow-y:auto;padding:2px}
.manage-item{padding:12px;background:#fafaff;border:1px solid var(--line);border-radius:13px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.manage-item>div:first-child{max-width:62%}
#modalContent{max-height:88vh;overflow-y:auto}
@media(max-width:550px){.manage-item>div:first-child{max-width:100%;width:100%}.manage-item>.row{width:100%}.manage-item .btn{flex:1}}

/* KJ Beta 5 — cálida, clara, sin pasos extra */
.term-selector{width:160px;max-width:44vw;padding:10px 12px;background:#faf7ff;border:1px solid #ded1fa;border-radius:12px;color:#684aa3;font-weight:800}
.today-lessons{margin-top:15px;background:#fff;border:1px solid #efe7fb;border-radius:15px;padding:13px 15px;display:flex;align-items:center;gap:9px;flex-wrap:wrap;color:#655583}
.today-lessons button{font-size:12px}
.weekdays{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:9px;margin-top:15px}
.day-chip{display:flex;align-items:center;gap:9px;padding:13px 11px;border:1px solid #e4dcef;border-radius:12px;background:#faf8ff;cursor:pointer;font-weight:700}
.day-chip input{width:19px;height:19px;accent-color:#7754bd}
.agenda-line{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #eae6f2;padding:13px 0}
.agenda-line:last-child{border:0}
.report-status{padding:14px;background:#eaf8f2;border-radius:12px;color:#1f8862;font-weight:850;margin-top:13px}
.report-status.warn{background:#fff8e5;color:#a27313}
.checks-scroll{max-height:430px;overflow:auto}
.check-line{border-bottom:1px solid #ede9f3;padding:11px 0;font-size:13px;color:#645d72}
.math-review-photo{display:flex;justify-content:center;padding:10px;background:#faf8ff;border-radius:14px;margin-top:12px}.math-review-photo img{max-width:100%;max-height:260px;object-fit:contain;border-radius:10px}.setup-step{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;border:1px solid #eeeaf4;border-radius:12px;padding:12px;background:#faf9fc}
@media(max-width:680px){.term-selector{width:150px}.agenda-line{align-items:flex-start;flex-direction:column}.setup-step{flex-direction:column;align-items:flex-start}}
@media print{.side,.mobileNav,.topright,.btn{display:none!important}.main{padding:0!important}}

/* KJ PWA | Cuenta y sincronización */
.auth-gate{position:fixed;inset:0;z-index:120;background:linear-gradient(145deg,#eeeaff 0%,#fbf9ff 45%,#fff0f6 100%);display:flex;align-items:center;justify-content:center;padding:22px;overflow-y:auto}
.auth-gate[hidden]{display:none!important}
.auth-card{width:100%;max-width:445px;background:white;border:1px solid #e6e3f4;box-shadow:0 22px 70px rgba(47,45,100,.15);padding:28px;border-radius:26px}
.auth-logo{height:58px;width:58px;border-radius:19px;background:#6b62dc;color:#fff;display:grid;place-items:center;font-size:25px;font-weight:900;margin:0 auto 16px}
.auth-card h2{text-align:center;margin:0 0 8px;font-size:24px}.auth-card .lead{text-align:center;color:#68738a;line-height:1.5}
.auth-card .btn{width:100%}.auth-hint{font-size:12px;line-height:1.6;color:#6d718e}
#kjCloudStatus{font-size:11px;background:#f1efff;color:#6757b5;border-radius:9px;padding:6px 9px;font-weight:800}
#kjCloudStatus[hidden]{display:none}
#kjDemoNotice{margin:8px 0 15px;padding:11px;border-radius:13px;border:1px solid #e8c984;background:#fff7e8;color:#89601d;font-size:13px;line-height:1.5}
.kj-auth-locked .layout{visibility:hidden}.kj-auth-locked #authGate{visibility:visible}
@media(max-width:600px){.auth-card{padding:20px}.auth-gate{align-items:flex-start;padding-top:8vh}.topright{gap:5px}#kjAccountButton{padding:8px;font-size:11px}}


/* KJ Beta 8 · Solo alumnos: controles locales junto al listado. */
.kj-student-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:13px 0 11px;flex-wrap:wrap}
.kj-layout-switch{display:inline-flex;align-items:center;padding:3px;background:#eeeafa;border:1px solid #ddd7f7;border-radius:14px;gap:3px;white-space:nowrap;max-width:100%}
.kj-layout-choice{border:0;border-radius:10px;padding:8px 12px;background:transparent;color:#695fa6;font-size:12px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:38px}
.kj-layout-choice.selected{background:#fff;color:#554bc2;box-shadow:0 2px 6px #5b58a71b}
.kj-layout-choice:focus-visible{outline:3px solid #8377e4;outline-offset:2px}
/* Only student cards and their action controls change. Other menus remain unchanged. */
#clase[data-layout="list"] .people{grid-template-columns:minmax(0,1fr)}
#clase[data-layout="grid"] .people{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
#clase[data-layout="list"] .people .person{display:grid;grid-template-columns:minmax(170px,1fr) minmax(230px,1fr);align-items:center;gap:7px 14px;padding:9px 14px;border-radius:12px}
#clase[data-layout="list"] .people .person>.phead{margin:0}
#clase[data-layout="list"] .people .person>.helperTwo{grid-column:2;margin-top:0}
#clase[data-layout="list"] .people .person>.att-buttons{max-width:540px;min-width:0}
#clase[data-layout="list"] .people .person>.countline{max-width:460px}
#clase[data-layout="list"] .people .person>.switches{justify-content:flex-end}
#clase[data-layout="grid"] .people .person{padding:16px}
#clase[data-layout="grid"] .itemlist{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}
#clase[data-layout="grid"] .itemlist .listitem{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;gap:11px;background:#fff;border-radius:17px;padding:14px}
#clase[data-layout="grid"] .itemlist .listitem .switches{justify-content:flex-start}
#clase[data-layout="list"] .itemlist{display:flex;flex-direction:column;gap:7px}
#clase[data-layout="grid"] .score-table{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:11px;margin-top:12px}
#clase[data-layout="grid"] .score-row{border:1px solid var(--line);border-radius:15px;padding:13px;grid-template-columns:minmax(0,1fr) 90px;gap:10px;background:#fafaff}
#clase[data-layout="grid"] .score-row .exam-note,#clase[data-layout="grid"] .score-row>span.small{grid-column:1/-1}
#clase[data-layout="grid"] .score-row .examinput{max-width:90px;min-width:0}
#clase[data-layout="list"] .score-table{display:block}
#clase[data-layout="list"] .score-row{display:grid;grid-template-columns:minmax(0,1fr) 110px auto;gap:10px}
.manage-list[data-layout="grid"]{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.manage-list[data-layout="grid"] .manage-item{display:flex;flex-direction:column;gap:11px;align-items:stretch;border:1px solid var(--line);background:#fbfaff;border-radius:15px;padding:13px}
.manage-list[data-layout="grid"] .manage-item .row{justify-content:space-between}
.manage-list[data-layout="list"]{display:flex;flex-direction:column;gap:9px}
#resultados[data-layout="grid"] .kj-results-table{display:none}
#resultados[data-layout="list"] .kj-result-cards{display:none}
.kj-result-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:12px}
.kj-result-tile{border-radius:16px;border:1px solid var(--line);background:#fafaff;padding:14px}
.kj-result-tile .avatar{width:37px;height:37px;border-radius:12px}
.kj-result-tile .row{flex-wrap:nowrap}
.kj-result-tile strong{font-size:13px;overflow-wrap:anywhere}
.kj-mini-stats{display:flex;flex-wrap:wrap;gap:5px;margin-top:13px}
.kj-mini-stats span{font-size:11px;font-weight:750;background:#f0ecff;color:#6856aa;padding:5px 7px;border-radius:9px}
@media(max-width:680px){
 #clase[data-layout="list"] .people .person{grid-template-columns:minmax(0,1fr);padding:9px 11px;gap:7px}
 #clase[data-layout="list"] .people .person>.helperTwo{grid-column:1;font-size:11px}
 #clase[data-layout="list"] .people .person>.att-buttons{max-width:100%;width:100%}
 #clase[data-layout="list"] .people .person>.switches{justify-content:flex-start}
 #clase[data-layout="list"] .score-row{grid-template-columns:minmax(0,1fr) 98px}
 #clase[data-layout="list"] .score-row .exam-note{grid-column:1/-1}
 #clase[data-layout="grid"] .score-table{grid-template-columns:minmax(0,1fr)}
 #clase[data-layout="grid"] .people{grid-template-columns:minmax(0,1fr)}
 .kj-student-toolbar{justify-content:space-between}
 .kj-layout-choice{padding:7px 9px;font-size:11px}
}

/* Beta 9: horarios por grupo con bloques de inicio y término */
.schedule-summary{display:flex;align-items:flex-start;gap:8px;margin-top:12px;padding:10px 12px;border-radius:13px;background:linear-gradient(100deg,#f0edff,#fff5fa);color:#625b92;font-size:12px;font-weight:750;line-height:1.5}
.schedule-class-hint{background:#f0edf9;border:1px solid #e4defa;border-radius:13px;padding:10px 13px;margin-top:12px;color:#635a97;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px;font-size:12px;font-weight:750}
.schedule-class-hint .textbutton{white-space:nowrap}
.schedule-headers,.kj-schedule-row{display:grid;grid-template-columns:minmax(100px,1.1fr) minmax(105px,.85fr) minmax(105px,.85fr) 38px;gap:9px;align-items:end}
.schedule-headers{margin-top:16px;color:#727a94;font-size:11px;font-weight:800;padding:0 8px}
.kj-schedule-row{background:#faf9ff;border:1px solid #eae6f5;border-radius:16px;padding:11px;margin-top:8px}
.kj-schedule-row .field{margin:0;min-width:0}
.kj-schedule-row input,.kj-schedule-row select{padding:9px 6px;font-size:13px;width:100%;min-width:0}
.kj-schedule-row .field label{font-size:11px}
.schedule-remove{width:38px;height:39px;border:1px solid #f0d3dc;color:#b85165;background:#fff0f3;border-radius:11px;cursor:pointer;font-weight:900;font-size:17px}
@media(max-width:490px){.schedule-headers{display:none}.kj-schedule-row{grid-template-columns:repeat(2,minmax(0,1fr)) 38px;gap:11px}.kj-schedule-row .field:first-child{grid-column:1/-1}.kj-schedule-row .field:nth-child(2){grid-column:1}.kj-schedule-row .field:nth-child(3){grid-column:2}.kj-schedule-row .schedule-remove{grid-column:3;grid-row:2}.kj-schedule-row{position:relative}.kj-schedule-row .field:nth-child(3){min-width:0}}

/* Beta 10 • Seguimiento formativo y académico */
.incident-hero{background:linear-gradient(115deg,#f0ecff,#fff2f6 78%);border:1px solid #e6dffd;border-radius:24px;padding:24px;display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:16px}
.incident-hero h2{font-size:25px;letter-spacing:-.6px;margin:9px 0}
.incident-hero p{color:#746e8f;font-size:14px;line-height:1.5;max-width:650px;margin:0}
.incident-primary{white-space:nowrap;min-height:46px}
.incident-kpis{margin-bottom:15px}.incident-kpi{display:flex;align-items:center;gap:16px}
.incident-kpi-icon{display:grid;place-items:center;width:57px;height:57px;border-radius:18px;font-size:26px}
.incident-kpi-num{font-size:30px;font-weight:900;line-height:1.1}.incident-kpi .muted{font-size:13px;margin-top:3px}
.incident-filters{display:flex;flex-wrap:wrap;gap:8px;padding-top:13px;padding-bottom:14px}
.incident-filter{background:#fff;color:#6a6b89;border:1px solid #e0e2ef;border-radius:999px;padding:9px 16px;font-size:13px;font-weight:800;cursor:pointer}
.incident-filter.active{color:#fff;background:var(--primary);border-color:var(--primary)}
.incident-report-list{display:flex;flex-direction:column}.incident-history-row{padding:14px 0;border-top:1px solid var(--line);display:flex;gap:12px;align-items:center}
.incident-history-icon{background:#f7f5ff;font-size:24px;display:grid;place-items:center;width:46px;height:46px;border-radius:15px;flex-shrink:0}
.incident-history-text{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.incident-chips{display:flex;gap:7px;flex-wrap:wrap;margin-top:4px}
.incident-tag{display:inline-block;border-radius:999px;padding:4px 9px;font-weight:780;font-size:11px;background:#f1edff;color:#654ab0}
.incident-tag.lilac,.incident-kpi-icon.lilac{background:#eeeaff;color:#7154c7}
.incident-tag.peach,.incident-kpi-icon.peach{background:#fff0e8;color:#ae6a3e}
.incident-tag.butter,.incident-kpi-icon.butter{background:#fff5de;color:#a57e30}
.incident-tag.mint{background:#e3f7ef;color:#16835f}.incident-tag.sky{background:#e6f2fe;color:#2b78b4}
.incident-empty{padding:35px;text-align:center;background:#fcfbff;border:1px dashed #dfdcf2;border-radius:17px}
.incident-empty-icon{font-size:47px}.incident-empty h3{margin:8px}.incident-empty p{max-width:360px;margin:8px auto 15px;color:var(--muted);line-height:1.5}
.incident-step-head{display:flex;align-items:center;gap:10px;margin:20px 0 11px}.incident-step-head strong{font-size:16px}.incident-step-head p{margin:3px 0 0}
.incident-num{background:#eeeaff;color:#5c48bd;display:grid;place-items:center;font-size:14px;font-weight:900;width:30px;height:30px;border-radius:10px;flex-shrink:0}
.incident-type-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.incident-type{background:#fff;border:1px solid #e3e2ee;border-radius:17px;padding:14px;text-align:left;display:grid;gap:6px;color:#303750}
.incident-type span{font-size:28px}.incident-type small{color:#7b8194;line-height:1.35}.incident-type.active{background:#f5f2ff;border-color:#9083dd;box-shadow:0 0 0 1px #9083dd}
.incident-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.incident-check{display:flex;align-items:flex-start;gap:9px;padding:9px 10px;border:1px solid #e2e3ef;border-radius:12px;background:#fcfcff;color:#465069;font-size:12px;line-height:1.4;cursor:pointer}
.incident-check:has(input:checked){border-color:#b0a6e9;background:#f4f1ff}.incident-check input{accent-color:var(--primary);width:17px;height:17px;flex:0 0 auto;margin:0;min-width:17px}
.incident-fineprint{margin-top:14px}.incident-modal-header h2{margin-top:6px}.incident-actions{margin-top:16px;gap:8px}
.incident-paragraph{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}.incident-detail-summary{background:#f7f6ff;padding:13px;border-radius:13px;display:flex;gap:20px;flex-wrap:wrap}
@media(max-width:670px){.incident-hero{padding:18px;flex-direction:column;align-items:flex-start}.incident-hero h2{font-size:21px}.incident-check-grid{grid-template-columns:1fr}.incident-type-choices{grid-template-columns:1fr 1fr}.incident-kpi{gap:9px}.incident-kpi-icon{width:46px;height:46px;font-size:21px}.incident-kpi-num{font-size:25px}.incident-history-row .btn{font-size:12px}.incident-history-row{gap:8px}}

/* Beta 11 · Revisión matemática con IA */
.math-top{margin-bottom:16px}.math-top h2{font-size:25px;margin:10px 0 6px}
.math-stephead{display:flex;gap:12px;align-items:center;margin-bottom:12px}
.math-stephead>b{display:grid;place-items:center;flex:0 0 37px;width:37px;height:37px;border-radius:14px;background:#eeebff;color:#6252cc;font-size:18px}
.math-stephead h2{font-size:19px;margin:0 0 4px}.math-stephead p{margin:0}
.math-weights .field{min-width:0}.math-weights input{min-width:0}
.math-photo-well{min-height:165px;background:linear-gradient(135deg,#f8f6ff,#f4fbff);border:2px dashed #d6cdec;border-radius:17px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:15px;text-align:center}
.math-photo-icon{font-size:37px}.math-preview-img{width:100%;max-height:330px;object-fit:contain;border-radius:13px}
.math-consent{display:flex;align-items:start;gap:10px;padding:13px;border:1px solid #e3daf6;background:#f9f7ff;border-radius:14px;margin:14px 0;font-size:13px;line-height:1.55}
.math-consent input{width:18px;height:18px;flex:0 0 18px;margin-top:2px;accent-color:#7668d9}
.math-analyze{width:100%;min-height:46px}.math-analyze:disabled{opacity:.55;cursor:progress}
.math-result{margin-top:16px}.math-findings{margin:14px 0}.math-findings h3{margin:11px 0 5px;font-size:15px}.math-findings p{line-height:1.55}
.math-points{margin:5px 0 12px;padding-left:19px;line-height:1.65}
.math-scorebox{background:#eef9f4;border:1px solid #cfeadd;border-radius:15px;padding:13px;margin:13px 0}
.math-scorebox>strong{display:block;font-size:28px;color:#18845a;margin-top:4px}
@media(max-width:600px){.math-weights{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.math-weights .field label{font-size:11px}.math-findings{grid-template-columns:1fr}}
