:root{
 --bg:#07111f;--bg2:#0a1627;--panel:rgba(15,29,49,.78);--panel-solid:#0f1d31;--panel2:#13243b;--line:rgba(151,177,211,.14);
 --text:#eef6ff;--muted:#98a9be;--accent:#7c5cff;--accent2:#17c7ff;--green:#36d399;--yellow:#f5c451;--red:#ff6b7d;
 --shadow:0 24px 70px rgba(0,0,0,.28);--radius:22px;--radius-sm:14px;
}
:root[data-theme="light"]{--bg:#f5f8fd;--bg2:#edf3fb;--panel:rgba(255,255,255,.82);--panel-solid:#fff;--panel2:#f8fbff;--line:#dde6f2;--text:#132238;--muted:#64748b;--shadow:0 20px 60px rgba(30,60,90,.12)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at 10% -10%,rgba(124,92,255,.17),transparent 32%),radial-gradient(circle at 105% 30%,rgba(23,199,255,.12),transparent 28%),var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;min-height:100vh;line-height:1.5}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}.muted{color:var(--muted)}.tiny{font-size:.78rem}.center{text-align:center}.grow{flex:1}.truncate{min-width:0}.truncate b,.truncate small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ambient{position:fixed;border-radius:999px;filter:blur(90px);opacity:.16;pointer-events:none;z-index:-1;animation:float 12s ease-in-out infinite}.ambient-a{width:420px;height:420px;background:#7c5cff;top:-160px;left:15%}.ambient-b{width:350px;height:350px;background:#17c7ff;bottom:-160px;right:8%;animation-delay:-4s}@keyframes float{50%{transform:translate(40px,30px) scale(1.08)}}
.app-shell{display:grid;grid-template-columns:250px 1fr;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:250px;padding:22px 16px;border-right:1px solid var(--line);background:rgba(6,15,27,.88);backdrop-filter:blur(22px);z-index:30;display:flex;flex-direction:column}:root[data-theme="light"] .sidebar{background:rgba(255,255,255,.9)}
.brand{display:flex;align-items:center;gap:11px;padding:8px 10px}.brand-mark{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;font-weight:900;color:white;background:linear-gradient(135deg,var(--accent),var(--accent2));box-shadow:0 10px 28px rgba(104,92,255,.35)}.brand span:last-child{display:flex;flex-direction:column;line-height:1.05}.brand b{font-size:1.06rem}.brand small{font-size:.7rem;color:var(--muted);text-transform:uppercase;letter-spacing:.16em;margin-top:5px}.brand.large .brand-mark{width:50px;height:50px;border-radius:16px}.brand.large b{font-size:1.25rem}
.side-nav{display:flex;flex-direction:column;gap:7px;margin-top:32px}.side-nav a{display:flex;gap:12px;align-items:center;padding:11px 13px;border-radius:13px;color:var(--muted);font-weight:650;transition:.2s}.side-nav a span{width:25px;text-align:center}.side-nav a:hover,.side-nav a.active{background:linear-gradient(90deg,rgba(124,92,255,.17),rgba(23,199,255,.05));color:var(--text);transform:translateX(2px)}.side-nav a.active{box-shadow:inset 3px 0 var(--accent2)}
.sidebar-foot{margin-top:auto;display:grid;grid-template-columns:38px 1fr 36px;gap:9px;align-items:center;padding:12px 8px;border-top:1px solid var(--line)}.sidebar-foot small{display:block;color:var(--muted);font-size:.72rem}.mini-avatar,.profile-avatar{display:grid;place-items:center;background:linear-gradient(135deg,rgba(124,92,255,.9),rgba(23,199,255,.85));color:#fff;font-weight:800;border-radius:12px;width:38px;height:38px}.icon-btn{border:1px solid var(--line);background:var(--panel);color:var(--text);width:36px;height:36px;border-radius:11px;display:grid;place-items:center;transition:.2s}.icon-btn:hover{transform:translateY(-2px);border-color:rgba(124,92,255,.5)}.icon-btn.danger{color:var(--red)}
.app-main{grid-column:2}.topbar{height:72px;position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:0 30px;background:rgba(7,17,31,.72);backdrop-filter:blur(22px);border-bottom:1px solid var(--line)}:root[data-theme="light"] .topbar{background:rgba(245,248,253,.8)}.top-title{display:flex;flex-direction:column}.top-title small{color:var(--muted);font-size:.7rem}.top-title b{font-size:1.02rem}.top-actions{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:.8rem}.status-dot{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 5px rgba(54,211,153,.12)}
.content{max-width:1500px;margin:0 auto;padding:30px}.glass{background:var(--panel);backdrop-filter:blur(18px);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:var(--radius)}.panel{padding:24px}.panel h2,.panel h3{margin:.25rem 0 1rem}.eyebrow{display:inline-flex;align-items:center;gap:8px;color:var(--accent2);font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.15em}.eyebrow:before{content:"";width:18px;height:2px;background:linear-gradient(90deg,var(--accent),var(--accent2))}
.hero-card{position:relative;overflow:hidden;padding:34px 38px;border-radius:28px;background:linear-gradient(120deg,rgba(124,92,255,.17),rgba(23,199,255,.06)),var(--panel);border:1px solid var(--line);min-height:190px;display:flex;align-items:center;justify-content:space-between}.hero-card:after{content:"";position:absolute;right:-110px;top:-150px;width:430px;height:430px;border:1px solid rgba(125,212,255,.12);border-radius:50%;box-shadow:0 0 0 55px rgba(124,92,255,.035),0 0 0 110px rgba(23,199,255,.025)}.hero-card h1{font-size:clamp(2rem,4vw,3.25rem);margin:.3rem 0 .5rem;letter-spacing:-.04em}.hero-card p{max-width:720px;color:var(--muted);margin:0}.hero-orbit{width:120px;height:120px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;position:relative;z-index:2}.hero-orbit span{font-size:1.6rem;font-weight:900;background:linear-gradient(90deg,var(--accent),var(--accent2));-webkit-background-clip:text;color:transparent}.hero-orbit i{position:absolute;width:9px;height:9px;background:var(--accent2);border-radius:50%;top:50%;left:50%;transform-origin:-42px center;animation:orbit 5s linear infinite}.hero-orbit i:nth-child(2){animation-delay:-1.6s;background:var(--green)}.hero-orbit i:nth-child(3){animation-delay:-3.2s;background:var(--accent)}@keyframes orbit{from{transform:translate(42px,-50%) rotate(0)}to{transform:translate(42px,-50%) rotate(360deg)}}
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:18px 0 34px}.stat-card{padding:19px 20px;border:1px solid var(--line);border-radius:18px;background:var(--panel);display:flex;align-items:center;gap:15px;opacity:0;transform:translateY(12px);transition:.45s}.stat-card.reveal{opacity:1;transform:none}.stat-icon{width:44px;height:44px;border-radius:14px;background:linear-gradient(135deg,rgba(124,92,255,.18),rgba(23,199,255,.13));display:grid;place-items:center;color:var(--accent2);font-size:1.2rem}.stat-card b{display:block;font-size:1.5rem;letter-spacing:-.04em}.stat-card small{color:var(--muted)}
.section-head{display:flex;align-items:end;justify-content:space-between;margin:28px 0 14px;gap:16px}.section-head h1,.section-head h2{margin:.2rem 0 0;letter-spacing:-.03em}.section-head p{color:var(--muted);margin:.25rem 0}.section-head.mini{margin:0 0 16px}.class-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.class-card{position:relative;overflow:hidden;padding:22px;border-radius:20px;background:linear-gradient(145deg,rgba(124,92,255,.08),transparent 45%),var(--panel);border:1px solid var(--line);min-height:180px;display:flex;flex-direction:column;opacity:0;transform:translateY(14px);transition:.35s}.class-card.reveal{opacity:1;transform:none}.class-card:hover{transform:translateY(-5px);border-color:rgba(124,92,255,.42);box-shadow:0 22px 50px rgba(0,0,0,.18)}.class-top{display:flex;justify-content:space-between;align-items:center}.code-chip{display:inline-flex;padding:6px 9px;border-radius:9px;background:rgba(124,92,255,.14);color:#c7bbff;border:1px solid rgba(124,92,255,.22);font-family:ui-monospace,monospace;font-size:.78rem;font-weight:800}.class-card h3{font-size:1.2rem;margin:20px 0 6px}.class-card p{color:var(--muted);font-size:.88rem;margin:0}.class-meta{display:flex;justify-content:space-between;gap:10px;margin-top:auto;padding-top:18px;color:var(--muted);font-size:.76rem}.class-meta b{color:var(--text);letter-spacing:.08em}.arrow{font-size:1.25rem;color:var(--muted)}.muted-card{opacity:.68}
.student-layout,.course-layout,.activity-layout,.assessment-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px}.side-panel{padding:22px;height:max-content}.side-panel h3{margin:.3rem 0}.side-panel hr,.panel hr{border:0;border-top:1px solid var(--line);margin:20px 0}.join-input{text-transform:uppercase;letter-spacing:.18em;font-weight:800;font-family:ui-monospace,monospace}.mini-list{display:flex;flex-direction:column}.mini-list>a,.list-row{padding:12px 0;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.mini-list>a:last-child{border-bottom:0}.mini-list b,.mini-list small{display:block}.mini-list small{color:var(--muted);font-size:.73rem}.mini-list.cards>a{padding:15px;border:1px solid var(--line);border-radius:14px;margin-bottom:9px;background:rgba(255,255,255,.015)}.metric-line{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);font-size:.85rem}.metric-line span{color:var(--muted)}
.btn{border:1px solid var(--line);border-radius:12px;padding:10px 15px;background:var(--panel2);color:var(--text);font-weight:750;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.2s}.btn:hover{transform:translateY(-2px);filter:brightness(1.05)}.btn.primary{border-color:transparent;background:linear-gradient(135deg,var(--accent),#5b7cff 52%,var(--accent2));color:white;box-shadow:0 10px 26px rgba(95,91,255,.24)}.btn.success{background:rgba(54,211,153,.12);border-color:rgba(54,211,153,.3);color:var(--green)}.btn.ghost{background:transparent}.btn.small{padding:7px 11px;border-radius:10px;font-size:.78rem}.btn.wide{width:100%}.large-btn{padding:14px 20px;font-size:1rem}.badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:rgba(151,177,211,.1);border:1px solid var(--line);font-size:.66rem;font-weight:800;letter-spacing:.05em}.badge.info{color:#86dcff;background:rgba(23,199,255,.1);border-color:rgba(23,199,255,.2)}.badge.success{color:#6ae6b4;background:rgba(54,211,153,.1);border-color:rgba(54,211,153,.2)}.badge.warning{color:#ffd979;background:rgba(245,196,81,.1);border-color:rgba(245,196,81,.2)}.badge.danger{color:#ff9aa7;background:rgba(255,107,125,.1);border-color:rgba(255,107,125,.22)}
form.stack{display:flex;flex-direction:column;gap:14px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.span-2{grid-column:span 2}label{display:flex;flex-direction:column;gap:7px;font-size:.78rem;color:var(--muted);font-weight:700}label small{font-weight:500}input,select,textarea{width:100%;border:1px solid var(--line);background:rgba(4,11,20,.42);color:var(--text);border-radius:12px;padding:11px 12px;outline:none;transition:.2s}:root[data-theme="light"] input,:root[data-theme="light"] select,:root[data-theme="light"] textarea{background:#fff}input:focus,select:focus,textarea:focus{border-color:rgba(23,199,255,.45);box-shadow:0 0 0 4px rgba(23,199,255,.07)}textarea{resize:vertical}.code-area{font-family:"Cascadia Code",Consolas,ui-monospace,monospace;line-height:1.55;tab-size:4}.check{flex-direction:row;align-items:center}.check input{width:auto}
.manage-tabs,.course-tabs{display:flex;gap:6px;overflow:auto;padding:5px;background:rgba(151,177,211,.06);border:1px solid var(--line);border-radius:14px;margin:20px 0}.manage-tabs button,.course-tabs button{white-space:nowrap;border:0;background:transparent;color:var(--muted);padding:9px 14px;border-radius:10px;font-weight:750}.manage-tabs button.active,.course-tabs button.active{background:var(--panel2);color:var(--text);box-shadow:0 4px 15px rgba(0,0,0,.12)}.manage-tabs button span,.course-tabs button span{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:rgba(124,92,255,.14);margin-left:5px;font-size:.7rem}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px}.three-col{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.tag-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:16px}.tag-list span{font-size:.72rem;padding:5px 8px;border:1px solid var(--line);border-radius:8px;color:var(--muted)}
.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:650px}th{text-align:left;color:var(--muted);font-size:.68rem;text-transform:uppercase;letter-spacing:.1em;padding:11px;border-bottom:1px solid var(--line)}td{padding:13px 11px;border-bottom:1px solid var(--line);font-size:.85rem}td small{display:block;color:var(--muted);font-size:.7rem;margin-top:2px}.inline-actions{display:flex;gap:7px}.inline-actions form{margin:0}
.course-banner{min-height:200px;padding:32px;border-radius:26px;border:1px solid var(--line);background:linear-gradient(120deg,rgba(124,92,255,.18),rgba(23,199,255,.08)),var(--panel);display:flex;justify-content:space-between;align-items:flex-end;position:relative;overflow:hidden}.course-banner:after{content:"{ }";position:absolute;right:4%;top:-25px;font-family:ui-monospace,monospace;font-size:10rem;font-weight:900;color:rgba(255,255,255,.025);transform:rotate(-6deg)}.course-banner h1{font-size:clamp(2rem,4vw,3rem);margin:.6rem 0 .2rem;letter-spacing:-.04em}.course-banner p{color:var(--muted);margin:0}.course-actions{display:flex;align-items:center;gap:10px;z-index:2}.join-code-box{padding:10px 14px;border-radius:13px;border:1px solid var(--line);background:rgba(0,0,0,.12)}.join-code-box small,.join-code-box b{display:block}.join-code-box small{color:var(--muted);font-size:.65rem;text-transform:uppercase}.join-code-box b{font-family:ui-monospace,monospace;letter-spacing:.14em}.composer{padding:18px;display:flex;align-items:center;gap:14px}.composer-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:rgba(124,92,255,.12);color:#bbaeff}.composer>div:nth-child(2){flex:1}.composer b,.composer small{display:block}.composer small{color:var(--muted);font-size:.76rem}.feed{display:flex;flex-direction:column;gap:14px;margin-top:14px}.feed-card{padding:22px;border:1px solid var(--line);border-radius:18px;background:var(--panel);opacity:0;transform:translateY(12px);transition:.4s}.feed-card.reveal{opacity:1;transform:none}.feed-head{display:flex;align-items:center;gap:10px}.feed-head b,.feed-head small{display:block}.feed-head small{color:var(--muted);font-size:.72rem}.feed-card h3{margin:15px 0 6px}.feed-card p{color:var(--muted);margin:.2rem 0}
.resource-list{display:flex;flex-direction:column;gap:10px}.resource-card{display:flex;align-items:center;gap:15px;padding:17px 18px;border-radius:17px;border:1px solid var(--line);background:var(--panel);opacity:0;transform:translateY(10px);transition:.3s}.resource-card.reveal{opacity:1;transform:none}.resource-card:hover{border-color:rgba(124,92,255,.38);transform:translateX(3px)}.resource-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,rgba(124,92,255,.15),rgba(23,199,255,.08));color:var(--accent2);font-weight:900}.resource-title{display:flex;gap:6px;flex-wrap:wrap}.resource-card h3{margin:7px 0 2px}.resource-card p{margin:0;color:var(--muted);font-size:.78rem}.resource-stat{text-align:right;font-weight:800}.resource-stat small{display:block;color:var(--muted);font-weight:500;font-size:.68rem}.empty{grid-column:1/-1;padding:35px;text-align:center;border:1px dashed var(--line);border-radius:18px;color:var(--muted)}.empty span{font-size:2rem}.empty h3{color:var(--text);margin:.5rem 0}.empty.small{padding:12px;border:0}
.modal{position:fixed;inset:0;background:rgba(2,7,14,.68);backdrop-filter:blur(8px);display:none;place-items:center;z-index:100;padding:22px}.modal.show{display:grid;animation:fadeIn .2s}.modal-card{width:min(560px,100%);max-height:90vh;overflow:auto;padding:26px;position:relative;animation:modalIn .25s ease-out}.wide-modal{width:min(760px,100%)}.modal-close{position:absolute;right:15px;top:15px;width:34px;height:34px;border:1px solid var(--line);background:var(--panel2);color:var(--text);border-radius:10px}.modal-card h2{margin:.3rem 0 1rem}.modal-open{overflow:hidden}@keyframes fadeIn{from{opacity:0}}@keyframes modalIn{from{opacity:0;transform:translateY(18px) scale(.98)}}
.back-link{display:inline-block;color:var(--muted);font-size:.82rem;margin-bottom:14px}.activity-hero,.assessment-head{padding:27px 30px;border:1px solid var(--line);border-radius:23px;background:linear-gradient(135deg,rgba(124,92,255,.13),rgba(23,199,255,.04)),var(--panel);display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.activity-hero h1,.assessment-head h1{margin:.5rem 0 .2rem;font-size:2rem;letter-spacing:-.03em}.activity-hero p,.assessment-head p{color:var(--muted);margin:0}.big-code-icon{font-family:ui-monospace,monospace;font-size:2.7rem;font-weight:900;color:transparent;-webkit-text-stroke:1px rgba(125,211,252,.6)}.prose{font-size:.94rem}.prose>div{color:var(--muted);line-height:1.75}.attachment{display:inline-flex;margin-top:18px;padding:9px 12px;border:1px solid rgba(23,199,255,.22);background:rgba(23,199,255,.08);color:#8bdfff;border-radius:10px;font-size:.8rem;font-weight:700}.code-block-head{display:flex;justify-content:space-between;align-items:center;margin-top:22px;padding:9px 12px;border:1px solid var(--line);border-bottom:0;border-radius:12px 12px 0 0;background:rgba(0,0,0,.12)}.code-block-head button{border:0;background:transparent;color:var(--accent2)}.code-block{margin:0;background:#050b13;color:#d7e4f2;padding:18px;border-radius:12px;overflow:auto;font-family:"Cascadia Code",Consolas,monospace;font-size:.8rem;line-height:1.6;border:1px solid rgba(151,177,211,.12)}.code-block-head+.code-block{border-radius:0 0 12px 12px}.code-block.compact{max-height:280px;font-size:.73rem;margin:12px 0}.sticky{position:sticky;top:92px}.score-ring{width:92px;height:92px;margin:15px auto;border-radius:50%;display:flex;align-items:center;justify-content:center;gap:3px;background:radial-gradient(circle,var(--panel-solid) 57%,transparent 59%),conic-gradient(var(--green) 0 78%,rgba(151,177,211,.12) 78%)}.score-ring b{font-size:1.35rem}.score-ring span{font-size:.72rem;color:var(--muted)}.score-ring.huge{width:150px;height:150px}.score-ring.huge b{font-size:2.1rem}.feedback-box{padding:12px;border-radius:12px;background:rgba(54,211,153,.07);border:1px solid rgba(54,211,153,.15);margin-bottom:14px}.feedback-box small{color:var(--green)}.submission-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.submission-card{padding:20px}.submission-head{display:flex;justify-content:space-between;gap:10px}.submission-head b,.submission-head small{display:block}.submission-head small{color:var(--muted);font-size:.7rem}.grade-form{display:flex;align-items:end;gap:9px;margin-top:14px}.grade-form label:first-of-type{width:110px}
.question-list{display:flex;flex-direction:column;gap:10px}.question-card{display:flex;gap:12px;padding:15px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.015)}.q-num{width:30px;height:30px;border-radius:9px;background:rgba(124,92,255,.12);display:grid;place-items:center;font-weight:800;color:#b9adff}.question-card p{margin:8px 0}.options-preview{display:flex;flex-wrap:wrap;gap:6px}.options-preview span{padding:5px 8px;border:1px solid var(--line);border-radius:8px;font-size:.72rem;color:var(--muted)}.review-list{display:flex;flex-direction:column;gap:18px}.review-answer{border-top:1px solid var(--line);padding-top:14px}.review-answer>b,.review-answer>small{display:block}.review-answer>small{color:var(--muted)}
.assessment-start,.result-card{max-width:760px;margin:30px auto;padding:45px;text-align:center}.assessment-start h1,.result-card h1{font-size:2.4rem;margin:.6rem 0}.assessment-start p,.result-card p{color:var(--muted)}.assessment-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:25px 0}.assessment-facts span{padding:13px;border:1px solid var(--line);border-radius:13px;color:var(--muted);font-size:.78rem}.assessment-facts b{display:block;color:var(--text);font-size:1.1rem}.exam-shell{max-width:900px;margin:auto}.exam-toolbar{position:sticky;top:82px;z-index:15;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.exam-toolbar b,.exam-toolbar small{display:block}.timer{font-family:ui-monospace,monospace;font-size:1.25rem;font-weight:900;color:var(--accent2);letter-spacing:.08em}.question-attempts{display:flex;flex-direction:column;gap:14px}.attempt-question{padding:24px;opacity:0;transform:translateY(10px);transition:.35s}.attempt-question.reveal{opacity:1;transform:none}.attempt-qhead{display:flex;justify-content:space-between;color:var(--muted);font-size:.72rem;text-transform:uppercase;letter-spacing:.09em}.attempt-question h3{font-size:1.05rem;margin:13px 0 18px}.choice{display:flex;flex-direction:row;align-items:center;gap:10px;padding:11px;border:1px solid var(--line);border-radius:11px;margin:7px 0;color:var(--text);font-weight:500;cursor:pointer;transition:.2s}.choice:hover{background:rgba(124,92,255,.06);border-color:rgba(124,92,255,.3)}.choice input{width:auto}.choice:has(input:checked){background:rgba(124,92,255,.1);border-color:rgba(124,92,255,.42)}
.gradebook-wrap{padding:0}.gradebook th,.gradebook td{text-align:center;min-width:120px}.gradebook .sticky-col{position:sticky;left:0;z-index:2;background:var(--panel-solid);text-align:left;min-width:210px}.gradebook th.sticky-col{z-index:3}.gradebook th small{display:block;margin-top:5px;text-transform:none;letter-spacing:0}.profile-hero{display:flex;align-items:center;gap:18px;padding:25px;margin-bottom:20px}.profile-avatar{width:76px;height:76px;border-radius:22px;font-size:1.35rem}.profile-hero h1{margin:.25rem 0}.profile-hero p{margin:0;color:var(--muted)}
.public-shell{min-height:100vh;display:grid;place-items:center;padding:40px}.auth-layout{width:min(1180px,100%);display:grid;grid-template-columns:1.15fr .85fr;gap:55px;align-items:center}.auth-layout.compact{grid-template-columns:.8fr 1.2fr}.auth-hero{padding:20px}.auth-hero h1{font-size:clamp(2.7rem,6vw,5rem);line-height:.95;letter-spacing:-.06em;margin:25px 0 20px}.auth-hero p{font-size:1.05rem;color:var(--muted);max-width:650px}.gradient-text{background:linear-gradient(90deg,#aa96ff,#55d9ff);-webkit-background-clip:text;color:transparent}.feature-pills{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0}.feature-pills span{padding:7px 10px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.025);font-size:.75rem;color:var(--muted)}.terminal-card{max-width:540px;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#040b13;box-shadow:var(--shadow);margin-top:28px;transform:perspective(1000px) rotateX(2deg) rotateY(-3deg);animation:terminalFloat 5s ease-in-out infinite}@keyframes terminalFloat{50%{transform:perspective(1000px) rotateX(0) rotateY(-1deg) translateY(-7px)}}.terminal-head{height:38px;display:flex;align-items:center;gap:6px;padding:0 12px;border-bottom:1px solid #142235}.terminal-head i{width:9px;height:9px;border-radius:50%;background:#ff6b7d}.terminal-head i:nth-child(2){background:#f5c451}.terminal-head i:nth-child(3){background:#36d399}.terminal-head span{margin-left:auto;color:#64748b;font-size:.65rem}.terminal-card pre{margin:0;padding:20px;color:#d4e2f2;font:14px/1.7 "Cascadia Code",Consolas,monospace}.code-purple{color:#bb9cff}.code-blue{color:#72d6ff}.code-green{color:#6ee7b7}.auth-panel{padding:32px}.auth-panel h2{font-size:1.8rem;margin:.4rem 0}.auth-sep{height:1px;background:var(--line);margin:24px 0;position:relative}.auth-sep span{position:absolute;left:50%;transform:translate(-50%,-50%);background:var(--panel-solid);padding:0 9px;color:var(--muted);font-size:.7rem}.steps{display:flex;gap:18px;margin-top:25px}.steps div{flex:1;border-top:1px solid var(--line);padding-top:10px}.steps b,.steps span{display:block}.steps b{color:var(--accent2);font:800 1rem ui-monospace,monospace}.steps span{font-size:.75rem;color:var(--muted)}
.installer-body{display:grid;place-items:center;min-height:100vh;padding:30px}.install-card{width:min(720px,100%);padding:34px}.install-card h1{font-size:2.2rem;margin:25px 0 6px}.code-note{margin-top:20px;color:var(--muted);font-size:.75rem}.code-note code{color:var(--accent2)}.alert{padding:12px 14px;border-radius:12px;margin:15px 0;border:1px solid var(--line)}.alert.success{background:rgba(54,211,153,.08);border-color:rgba(54,211,153,.18);color:#7beabc}.alert.danger{background:rgba(255,107,125,.08);border-color:rgba(255,107,125,.18);color:#ff9aa7}.alert.warning{background:rgba(245,196,81,.08);border-color:rgba(245,196,81,.18);color:#ffd979}.toast{position:fixed;right:25px;top:88px;z-index:200;min-width:300px;max-width:430px;padding:13px 42px 13px 15px;border-radius:14px;background:var(--panel-solid);border:1px solid var(--line);box-shadow:var(--shadow);animation:toastIn .35s}.toast b,.toast span{display:block}.toast span{color:var(--muted);font-size:.78rem}.toast button{position:absolute;right:10px;top:10px;border:0;background:transparent;color:var(--muted);font-size:1.2rem}.toast.success{border-color:rgba(54,211,153,.3)}.toast.danger{border-color:rgba(255,107,125,.3)}.toast.warning{border-color:rgba(245,196,81,.3)}.toast-out{animation:toastOut .4s forwards}@keyframes toastIn{from{opacity:0;transform:translateX(20px)}}@keyframes toastOut{to{opacity:0;transform:translateX(25px)}}
.mobile-only{display:none}
@media(max-width:1100px){.class-grid{grid-template-columns:repeat(2,1fr)}.stat-grid{grid-template-columns:repeat(2,1fr)}.three-col{grid-template-columns:1fr}.submission-grid{grid-template-columns:1fr}.auth-layout,.auth-layout.compact{gap:20px}}
@media(max-width:820px){.app-shell{display:block}.sidebar{transform:translateX(-102%);transition:.25s}.sidebar.open{transform:none}.app-main{grid-column:auto}.mobile-only{display:grid}.desktop-only{display:none}.content{padding:18px}.topbar{padding:0 18px}.student-layout,.course-layout,.activity-layout,.assessment-layout,.two-col{grid-template-columns:1fr}.side-panel,.sticky{position:static}.class-grid{grid-template-columns:1fr}.course-banner{align-items:flex-start;flex-direction:column}.course-actions{width:100%;justify-content:space-between}.auth-layout,.auth-layout.compact{grid-template-columns:1fr}.auth-hero{display:none}.public-shell{padding:20px}.auth-panel{width:min(560px,100%)}}
@media(max-width:560px){.stat-grid{grid-template-columns:1fr 1fr}.hero-card{padding:25px}.hero-orbit{display:none}.form-grid{grid-template-columns:1fr}.span-2{grid-column:span 1}.assessment-facts{grid-template-columns:1fr}.grade-form{flex-direction:column;align-items:stretch}.grade-form label:first-of-type{width:auto}.toast{left:15px;right:15px;min-width:0}.steps{flex-direction:column;gap:8px}}
@media print{.sidebar,.topbar,.back-link,.btn,.ambient{display:none!important}.app-shell,.app-main{display:block}.content{padding:0}.glass{box-shadow:none}.gradebook-wrap{border:0}.gradebook .sticky-col{position:static}}
/* ==============================================================
   PSAU Code Campus LMS · UI/Mobile Patch v1.2
   ============================================================== */

html, body { max-width: 100%; overflow-x: hidden; }
img, video, svg { max-width: 100%; }
input, select, textarea, button { max-width: 100%; }
input[type="file"] { font-size: .76rem; }
.content { width: 100%; }

/* Brand readability */
.sidebar .brand { min-width: 0; }
.sidebar .brand span:last-child { min-width: 0; }
.sidebar .brand b { white-space: normal; line-height: 1.12; }
.top-title { min-width: 0; }
.top-title b, .top-title small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* More refined cards */
.glass, .class-card, .resource-card, .feed-card, .stat-card {
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.btn, .icon-btn, .class-card, .resource-card, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}
.btn:focus-visible, .icon-btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}

/* Submission panel redesign */
.submission-panel {
  overflow: hidden;
}
.submission-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.submission-panel-head h2 {
  margin: .28rem 0 0;
  letter-spacing: -.03em;
}
.grade-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 17px;
  margin: 4px 0 14px;
  border: 1px solid rgba(54,211,153,.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 20%, rgba(54,211,153,.10), transparent 45%),
    rgba(54,211,153,.035);
}
.score-ring {
  --score-angle: 0deg;
  width: 116px;
  height: 116px;
  flex: 0 0 116px;
  margin: 0;
  position: relative;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--green) var(--score-angle), rgba(151,177,211,.14) 0);
  box-shadow: 0 14px 34px rgba(18,126,91,.12);
  animation: ccScorePop .65s cubic-bezier(.2,.9,.25,1.12) both;
}
.score-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 30px rgba(54,211,153,.035);
}
.score-center {
  position: relative;
  z-index: 1;
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.04;
  text-align: center;
}
.score-ring .score-center b {
  display: block;
  max-width: 100%;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -.055em;
  white-space: nowrap;
}
.score-ring .score-center span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: .67rem;
  line-height: 1.1;
  white-space: nowrap;
}
.grade-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.grade-copy strong {
  margin-top: 7px;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -.055em;
}
.grade-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: .72rem;
}
.feedback-box {
  position: relative;
  overflow: hidden;
  padding: 16px 17px;
  margin: 0 0 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(54,211,153,.085), rgba(23,199,255,.045));
  border: 1px solid rgba(54,211,153,.18);
}
.feedback-box::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  right: -54px;
  top: -58px;
  border-radius: 50%;
  background: rgba(54,211,153,.08);
}
.feedback-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
}
.feedback-label span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(54,211,153,.11);
}
.feedback-label small {
  color: var(--green);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.feedback-box p {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: var(--text);
  line-height: 1.6;
}
.submission-state {
  display: flex;
  gap: 11px;
  align-items: center;
  margin: 2px 0 17px;
  padding: 13px 14px;
  border: 1px solid rgba(23,199,255,.17);
  background: rgba(23,199,255,.055);
  border-radius: 14px;
}
.submission-state-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(23,199,255,.11);
  color: var(--accent2);
  font-weight: 900;
}
.submission-state b, .submission-state small { display: block; }
.submission-state small { margin-top: 2px; color: var(--muted); font-size: .71rem; }
.submission-form .code-area {
  min-height: 270px;
  line-height: 1.62;
  background:
    linear-gradient(rgba(23,199,255,.022), rgba(23,199,255,.022)),
    rgba(4,11,20,.48);
}
:root[data-theme="light"] .submission-form .code-area {
  background: #fff;
}
@keyframes ccScorePop {
  from { opacity: 0; transform: scale(.82) rotate(-12deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

/* Better mobile navigation overlay */
@media (max-width: 820px) {
  body.sidebar-open { overflow: hidden; }
  body.sidebar-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(2,7,14,.58);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: ccFadeIn .2s ease-out;
  }
  .sidebar {
    width: min(86vw, 320px);
    box-shadow: 24px 0 70px rgba(0,0,0,.34);
  }
  .sidebar.open { z-index: 40; }
  .topbar {
    height: 64px;
    padding: 0 14px;
    gap: 10px;
  }
  .top-title small { display: none; }
  .top-title b { max-width: 54vw; font-size: .93rem; }
  .content { padding: 14px; }
  .hero-card, .course-banner, .activity-hero, .assessment-head {
    border-radius: 20px;
  }
  .hero-card { min-height: 0; padding: 23px 20px; }
  .hero-card h1 { font-size: clamp(1.75rem, 8vw, 2.45rem); }
  .stat-grid { gap: 10px; margin: 12px 0 26px; }
  .stat-card { padding: 15px; border-radius: 15px; }
  .stat-card b { font-size: 1.26rem; }
  .class-card { min-height: 160px; padding: 18px; }
  .course-tabs, .manage-tabs {
    margin: 14px -2px 18px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .course-tabs::-webkit-scrollbar, .manage-tabs::-webkit-scrollbar { display: none; }
  .course-tabs button, .manage-tabs button { scroll-snap-align: start; min-height: 42px; }
  .course-banner {
    min-height: 0;
    padding: 23px 20px;
    gap: 20px;
  }
  .course-banner h1 { font-size: 1.85rem; }
  .course-actions { flex-wrap: wrap; }
  .activity-hero, .assessment-head {
    padding: 21px 19px;
    align-items: flex-start;
    gap: 12px;
  }
  .activity-hero h1, .assessment-head h1 {
    font-size: 1.65rem;
    overflow-wrap: anywhere;
  }
  .big-code-icon { font-size: 2rem; opacity: .65; }
  .activity-layout, .assessment-layout, .course-layout, .student-layout {
    gap: 14px;
  }
  .panel { padding: 18px; border-radius: 18px; }
  .sticky { position: static; top: auto; }
  .resource-card {
    padding: 15px;
    gap: 12px;
  }
  .resource-card h3 { overflow-wrap: anywhere; }
  .resource-stat { min-width: 68px; }
  .modal {
    padding: 0;
    align-items: end;
  }
  .modal-card, .wide-modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
    padding: 24px 18px calc(22px + env(safe-area-inset-bottom));
    animation: ccSheetUp .28s cubic-bezier(.2,.85,.25,1);
  }
  .btn { min-height: 42px; }
  .icon-btn { min-width: 40px; min-height: 40px; }
  input, select, textarea { min-height: 44px; font-size: 16px; } /* prevents mobile zoom */
  textarea { min-height: 100px; }
  textarea.code-area { font-size: 14px; }
  .table-wrap { margin-inline: -4px; }
}

@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { min-width: 0; }
  .stat-card small { font-size: .68rem; }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    margin: 22px 0 12px;
  }
  .section-head > .btn,
  .section-head > form,
  .section-head > button { width: 100%; }
  .section-head > form .btn { width: 100%; }
  .course-actions { width: 100%; }
  .course-actions .join-code-box { flex: 1; min-width: 150px; }
  .resource-card { align-items: flex-start; }
  .resource-icon { width: 40px; height: 40px; flex: 0 0 40px; }
  .resource-stat {
    align-self: center;
    font-size: .78rem;
  }
  .activity-hero .big-code-icon { display: none; }

  .grade-summary {
    gap: 14px;
    padding: 14px;
  }
  .score-ring {
    width: 104px;
    height: 104px;
    flex-basis: 104px;
  }
  .score-ring::before { inset: 9px; }
  .score-center { width: 76px; }
  .score-ring .score-center b { font-size: 1.3rem; }
  .score-ring .score-center span { font-size: .63rem; }
  .grade-copy strong { font-size: 1.45rem; }
  .feedback-box { padding: 14px; }
  .submission-form .code-area { min-height: 230px; }
  .attachment { width: 100%; justify-content: center; }
  .grade-form { gap: 10px; }
}

@media (max-width: 380px) {
  .stat-grid { grid-template-columns: 1fr; }
  .grade-summary {
    flex-direction: column;
    text-align: center;
  }
  .grade-copy { align-items: center; }
  .top-title b { max-width: 46vw; }
}

@keyframes ccFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ccSheetUp { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
/* ==============================================================
   PSAU Code Campus LMS · Java IDE Patch v1.3
   ============================================================== */
.java-workspace-layout{
  display:grid;
  grid-template-columns:minmax(270px,340px) minmax(0,1fr);
  gap:18px;
  align-items:start;
}
.java-instructions-card{position:sticky;top:92px;max-height:calc(100vh - 110px);overflow:auto}
.java-grade-mini{
  margin-top:20px;padding:14px;border-radius:15px;border:1px solid rgba(54,211,153,.18);
  background:rgba(54,211,153,.055);display:flex;align-items:center;justify-content:space-between;gap:12px
}
.java-grade-mini>div b{display:block;font-size:1.3rem;margin-top:7px;letter-spacing:-.04em}
.java-grade-mini>div small{font-size:.72rem;color:var(--muted)}
.java-grade-mini>span{font-weight:900;color:var(--green);font-size:1.1rem}

.java-ide{
  overflow:hidden;
  min-width:0;
  border-radius:20px;
  background:#09121f;
  border-color:rgba(124,163,207,.18);
  box-shadow:0 24px 75px rgba(0,0,0,.30);
}
:root[data-theme="light"] .java-ide{background:#f8fbff}
.java-ide-toolbar{
  min-height:62px;padding:10px 13px 10px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(90deg,rgba(124,92,255,.09),rgba(23,199,255,.035));
}
.java-ide-title{display:flex;align-items:center;gap:10px;min-width:0}
.java-ide-title b,.java-ide-title small{display:block}
.java-ide-title b{font-size:.9rem}
.java-ide-title small{font-size:.66rem;color:var(--muted)}
.java-status-dot{width:10px;height:10px;flex:0 0 10px;border-radius:50%;background:var(--green);box-shadow:0 0 0 5px rgba(54,211,153,.10),0 0 18px rgba(54,211,153,.28)}
.java-toolbar-actions{display:flex;align-items:center;gap:8px}
.java-btn{
  border:1px solid var(--line);border-radius:10px;background:rgba(151,177,211,.075);color:var(--text);
  min-height:38px;padding:7px 11px;font-size:.76rem;font-weight:800;display:inline-flex;align-items:center;gap:7px;transition:.18s
}
.java-btn:hover{transform:translateY(-1px);border-color:rgba(125,211,252,.3)}
.java-btn.run{min-width:112px;justify-content:center;background:linear-gradient(135deg,#20ba7b,#31d49a);border-color:transparent;color:#03170f;box-shadow:0 9px 24px rgba(54,211,153,.18)}
.java-btn.run kbd{padding:2px 5px;border-radius:5px;background:rgba(0,0,0,.13);font:700 .59rem ui-monospace,monospace}
.java-btn.run.running .play-icon{animation:ccRunnerSpin .8s linear infinite}
.java-btn:disabled{opacity:.6;cursor:wait}
@keyframes ccRunnerSpin{to{transform:rotate(360deg)}}

.java-ide-options{
  padding:9px 13px;display:grid;grid-template-columns:minmax(150px,220px) minmax(180px,1fr) auto;gap:10px;align-items:end;
  border-bottom:1px solid var(--line);background:rgba(151,177,211,.025)
}
.java-ide-options label{gap:4px;font-size:.63rem;text-transform:uppercase;letter-spacing:.06em}
.java-ide-options input,.java-ide-options select{min-height:36px;padding:7px 9px;border-radius:9px;font-size:.75rem;text-transform:none;letter-spacing:0}
.java-run-state{height:36px;min-width:94px;padding:0 9px;display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:9px;color:var(--muted);font-size:.69rem;font-weight:800;white-space:nowrap}
.java-run-state span{width:7px;height:7px;border-radius:50%;background:#8a9bb0}
.java-run-state.running span{background:var(--yellow);animation:ccPulse 1s ease-in-out infinite}
.java-run-state.success{color:var(--green)}.java-run-state.success span{background:var(--green)}
.java-run-state.error{color:var(--red)}.java-run-state.error span{background:var(--red)}
@keyframes ccPulse{50%{opacity:.25;transform:scale(.75)}}

.java-ide-body{display:grid;grid-template-columns:178px minmax(0,1fr);min-height:430px;border-bottom:1px solid var(--line)}
.java-file-panel{min-width:0;background:#07101c;border-right:1px solid var(--line);display:flex;flex-direction:column}
:root[data-theme="light"] .java-file-panel{background:#eef4fb}
.java-file-head{padding:11px 10px 7px;display:flex;align-items:center;justify-content:space-between;color:#7f91a7;font-size:.58rem;font-weight:900;letter-spacing:.11em}
.java-file-head b{min-width:20px;height:20px;padding:0 5px;display:grid;place-items:center;border-radius:999px;background:rgba(124,92,255,.12);color:#a99bff}
.java-file-list{padding:3px 6px;display:flex;flex-direction:column;gap:2px;overflow:auto;flex:1}
.java-file-item{
  width:100%;border:0;border-radius:8px;background:transparent;color:#95a6ba;padding:8px 8px;text-align:left;
  display:flex;align-items:center;gap:7px;font:600 .73rem ui-monospace,SFMono-Regular,Consolas,monospace;white-space:nowrap;overflow:hidden
}
.java-file-item span:last-child{overflow:hidden;text-overflow:ellipsis}
.java-file-item:hover{background:rgba(151,177,211,.07);color:var(--text)}
.java-file-item.active{background:linear-gradient(90deg,rgba(124,92,255,.18),rgba(23,199,255,.05));color:#e7edff}
:root[data-theme="light"] .java-file-item.active{color:#17263c}
.java-file-icon{font-size:.75rem}
.java-file-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:7px;border-top:1px solid var(--line)}
.java-file-actions button{border:1px solid var(--line);background:transparent;color:var(--muted);border-radius:8px;padding:6px;font-size:.62rem;font-weight:750}
.java-file-actions button:hover{color:var(--text);background:rgba(151,177,211,.06)}

.java-editor-area{min-width:0;display:flex;flex-direction:column;background:#07101a}
:root[data-theme="light"] .java-editor-area{background:#fff}
.java-editor-tabbar{height:40px;display:flex;overflow-x:auto;border-bottom:1px solid var(--line);background:rgba(151,177,211,.025);scrollbar-width:thin}
.java-editor-tab{
  flex:0 0 auto;border:0;border-right:1px solid var(--line);background:transparent;color:#8091a7;padding:0 12px;
  font:650 .7rem ui-monospace,SFMono-Regular,Consolas,monospace;display:flex;align-items:center;gap:6px
}
.java-editor-tab.active{background:#07101a;color:#dce8f6;box-shadow:inset 0 2px var(--accent2)}
:root[data-theme="light"] .java-editor-tab.active{background:#fff;color:#17263c}
.java-editor-shell{position:relative;display:grid;grid-template-columns:48px minmax(0,1fr);flex:1;min-height:390px}
.java-line-numbers{
  padding:13px 9px 30px 0;background:#050c15;border-right:1px solid rgba(151,177,211,.08);color:#46576d;
  text-align:right;white-space:pre;overflow:hidden;user-select:none;font:13px/1.62 "Cascadia Code",Consolas,monospace
}
:root[data-theme="light"] .java-line-numbers{background:#f3f7fc;color:#a2afbd}
.java-code-editor{
  width:100%;height:100%;min-height:390px;resize:none;border:0!important;border-radius:0!important;outline:0!important;box-shadow:none!important;
  padding:13px 16px 40px;background:#07101a!important;color:#d7e6f5!important;caret-color:#71dcff;
  font:14px/1.62 "Cascadia Code","JetBrains Mono",Consolas,monospace;tab-size:4;white-space:pre;overflow:auto
}
:root[data-theme="light"] .java-code-editor{background:#fff!important;color:#17263c!important;caret-color:#2563eb}

.java-console{background:#050c15}
:root[data-theme="light"] .java-console{background:#f4f8fd}
.java-console-tabs{height:39px;display:flex;align-items:center;border-bottom:1px solid var(--line);padding:0 7px}
.java-console-tabs button{height:30px;border:0;background:transparent;color:#718399;border-radius:7px;padding:0 10px;font-size:.66rem;font-weight:800}
.java-console-tabs button.active{background:rgba(23,199,255,.08);color:#72d9ff}
.java-console-tabs button:hover{color:var(--text)}
.java-console-spacer{flex:1}.java-console-tabs .console-clear{font-weight:650}
.java-console-panel{display:none}.java-console-panel.active{display:block}
.java-console-panel pre{
  margin:0;min-height:150px;max-height:260px;overflow:auto;padding:13px 15px;color:#d4e1ee;white-space:pre-wrap;overflow-wrap:anywhere;
  font:13px/1.55 "Cascadia Code",Consolas,monospace
}
.java-console-panel pre.error{color:#ff9ba8}.java-console-panel pre.success{color:#b8f3d8}.java-console-panel pre.loading{color:#f4d77e}
:root[data-theme="light"] .java-console-panel pre{color:#26384e}
.console-muted{color:#63768d}
.java-console-panel textarea{
  width:100%;min-height:150px;max-height:260px;resize:vertical;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
  padding:13px 15px;font:13px/1.55 "Cascadia Code",Consolas,monospace
}

.java-submit-bar{
  padding:13px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:13px;align-items:end;border-top:1px solid var(--line);
  background:linear-gradient(90deg,rgba(124,92,255,.035),rgba(23,199,255,.025))
}
.java-submit-meta{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(220px,1.2fr);gap:9px;min-width:0}
.java-submit-meta label{font-size:.62rem}
.java-submit-meta input{min-height:36px;padding:7px 9px;border-radius:9px;font-size:.72rem}
.java-submit-actions{display:flex;align-items:center;gap:8px;justify-content:flex-end}
.java-current-file{font-size:.68rem;color:var(--accent2)}
.java-last-saved{padding:0 13px 11px;text-align:right;color:var(--muted);font-size:.65rem;background:linear-gradient(90deg,rgba(124,92,255,.035),rgba(23,199,255,.025))}
.review-files{display:flex;flex-direction:column;gap:8px;margin:12px 0}
.review-file{border:1px solid var(--line);border-radius:12px;overflow:hidden}
.review-file summary{padding:9px 11px;cursor:pointer;background:rgba(151,177,211,.04);font:700 .73rem ui-monospace,Consolas,monospace;color:var(--text)}
.review-file summary span{margin-right:7px}.review-file .code-block{border:0;border-top:1px solid var(--line);border-radius:0;margin:0}

@media(max-width:1100px){
  .java-workspace-layout{grid-template-columns:280px minmax(0,1fr)}
  .java-ide-body{grid-template-columns:150px minmax(0,1fr)}
  .java-ide-options{grid-template-columns:170px minmax(160px,1fr)}
  .java-run-state{display:none}
}
@media(max-width:900px){
  .java-workspace-layout{grid-template-columns:1fr}
  .java-instructions-card{position:static;max-height:none}
  .java-ide-body{grid-template-columns:150px minmax(0,1fr)}
}
@media(max-width:700px){
  .java-workspace-layout{gap:12px}
  .java-ide{border-radius:16px;margin-inline:-4px}
  .java-ide-toolbar{padding:9px 10px}
  .java-ide-title small{display:none}
  .java-toolbar-actions{gap:6px}
  .java-btn{padding:7px 9px}
  .java-btn.run{min-width:90px}
  .java-btn.run kbd{display:none}
  .java-ide-options{grid-template-columns:1fr;gap:7px;padding:8px 10px}
  .java-ide-options label{display:grid;grid-template-columns:90px minmax(0,1fr);align-items:center}
  .java-ide-body{display:flex;flex-direction:column;min-height:0}
  .java-file-panel{border-right:0;border-bottom:1px solid var(--line)}
  .java-file-head,.java-file-actions{display:none}
  .java-file-list{display:flex;flex-direction:row;overflow-x:auto;padding:6px;gap:5px;scrollbar-width:none}
  .java-file-list::-webkit-scrollbar{display:none}
  .java-file-item{width:auto;flex:0 0 auto;padding:7px 9px;border:1px solid var(--line)}
  .java-editor-tabbar{display:none}
  .java-editor-shell{grid-template-columns:38px minmax(0,1fr);min-height:360px}
  .java-line-numbers{font-size:12px;padding-right:7px}
  .java-code-editor{min-height:360px;font-size:13px;padding-inline:11px}
  .java-console-panel pre,.java-console-panel textarea{min-height:140px;max-height:220px;font-size:12px}
  .java-submit-bar{grid-template-columns:1fr}
  .java-submit-meta{grid-template-columns:1fr}
  .java-submit-actions{justify-content:stretch}
  .java-submit-actions .btn{flex:1}
  .java-last-saved{text-align:center}
}
@media(max-width:420px){
  .java-ide{margin-inline:-8px;border-radius:14px}
  .java-ide-toolbar{flex-wrap:wrap}
  .java-ide-title{flex:1}
  .java-toolbar-actions{width:100%}
  .java-toolbar-actions .java-btn{flex:1}
  .java-ide-options label{grid-template-columns:1fr}
  .java-line-numbers{display:none}
  .java-editor-shell{grid-template-columns:1fr}
  .java-code-editor{min-height:340px}
  .java-console-tabs button{padding-inline:8px}
}
@media(prefers-reduced-motion:reduce){
  .java-btn.run.running .play-icon,.java-run-state.running span{animation:none!important}
}
/* ==============================================================
   PSAU Code Campus LMS · Scanner/System.in Patch v1.3.1
   ============================================================== */
.java-input-btn span:first-child{font-size:.9rem}
.java-input-open{overflow:hidden}
.java-input-overlay{
  position:fixed;inset:0;z-index:350;display:grid;place-items:center;padding:20px;
  background:rgba(2,7,14,.72);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  animation:ccInputFade .18s ease-out
}
.java-input-dialog{
  width:min(620px,100%);max-height:min(760px,92vh);overflow:auto;padding:24px;
  border:1px solid rgba(151,177,211,.18);border-radius:22px;background:var(--panel-solid);
  box-shadow:0 30px 90px rgba(0,0,0,.46);animation:ccInputUp .24s cubic-bezier(.2,.85,.25,1)
}
.java-input-dialog-head{display:grid;grid-template-columns:46px 1fr 38px;gap:11px;align-items:center}
.java-input-icon{
  width:46px;height:46px;border-radius:14px;display:grid;place-items:center;
  background:linear-gradient(135deg,rgba(124,92,255,.18),rgba(23,199,255,.13));
  color:var(--accent2);font-size:1.15rem
}
.java-input-dialog-head span{display:block;color:var(--accent2);font-size:.62rem;font-weight:900;letter-spacing:.12em}
.java-input-dialog-head h3{margin:2px 0 0;font-size:1.18rem;letter-spacing:-.025em}
.java-input-close{
  width:36px;height:36px;border-radius:11px;border:1px solid var(--line);
  background:transparent;color:var(--muted);font-size:1.2rem
}
.java-input-help{margin:16px 0;color:var(--muted);font-size:.86rem;line-height:1.6}
.java-input-example{
  display:grid;grid-template-columns:auto minmax(120px,1fr);gap:5px 12px;align-items:start;
  margin-bottom:15px;padding:12px 13px;border:1px solid rgba(23,199,255,.14);border-radius:13px;background:rgba(23,199,255,.045)
}
.java-input-example>b{color:var(--accent2);font-size:.68rem;text-transform:uppercase;letter-spacing:.08em}
.java-input-example>code{
  grid-row:span 2;padding:8px 10px;border-radius:9px;background:#050c15;color:#b9f3d7;
  font:12px/1.6 "Cascadia Code",Consolas,monospace
}
.java-input-example>small{color:var(--muted);font-size:.68rem;line-height:1.45}
.java-input-example small code{padding:1px 4px;border-radius:4px;background:rgba(151,177,211,.08);color:var(--text)}
.java-input-label textarea{
  min-height:170px;resize:vertical;font:14px/1.55 "Cascadia Code",Consolas,monospace;
  background:#050c15!important;color:#dce8f6!important
}
:root[data-theme="light"] .java-input-label textarea{background:#fff!important;color:#17263c!important}
.java-input-dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:16px}
.java-input-dialog-actions .java-btn.run{min-width:150px}
@keyframes ccInputFade{from{opacity:0}}
@keyframes ccInputUp{from{opacity:0;transform:translateY(18px) scale(.985)}}
@media(max-width:700px){
  .java-input-overlay{padding:0;align-items:end}
  .java-input-dialog{
    width:100%;max-height:90vh;border-radius:24px 24px 0 0;padding:21px 16px calc(18px + env(safe-area-inset-bottom))
  }
  .java-input-example{grid-template-columns:1fr}
  .java-input-example>code{grid-row:auto}
  .java-input-dialog-actions{display:grid;grid-template-columns:1fr 1.3fr}
  .java-input-dialog-actions .java-btn{width:100%}
}
@media(max-width:420px){
  .java-input-dialog-head{grid-template-columns:42px 1fr 34px}
  .java-input-icon{width:42px;height:42px}
  .java-input-dialog-actions{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  .java-input-overlay,.java-input-dialog{animation:none!important}
}
/* ==============================================================
   PSAU Code Campus LMS · Interactive Terminal Patch v1.3.2
   ============================================================== */
.java-input-overlay{display:none!important}
.java-input-open{overflow:auto!important}

.java-terminal-panel{
  position:relative;
  display:flex!important;
  flex-direction:column;
  min-height:190px;
  max-height:330px;
  overflow:auto;
  background:#030a12;
}
:root[data-theme="light"] .java-terminal-panel{background:#07101a}

.java-terminal-screen{
  flex:1;
  min-height:145px!important;
  max-height:none!important;
  overflow:visible!important;
  padding:14px 15px 8px!important;
  color:#d9e8f5!important;
  background:transparent!important;
  white-space:pre-wrap!important;
  overflow-wrap:anywhere;
  font:13px/1.58 "Cascadia Code","JetBrains Mono",Consolas,monospace!important;
  caret-color:transparent;
}

.java-terminal-input-row{
  position:sticky;
  bottom:0;
  z-index:4;
  display:grid;
  grid-template-columns:18px minmax(0,1fr) auto;
  align-items:center;
  gap:7px;
  padding:7px 12px 11px;
  border-top:1px solid rgba(151,177,211,.08);
  background:linear-gradient(180deg,rgba(3,10,18,.80),#030a12 35%);
}
.java-terminal-input-row[hidden]{display:none!important}
.java-terminal-prompt{
  color:#48df9e;
  font:900 16px/1 "Cascadia Code",Consolas,monospace;
  text-shadow:0 0 14px rgba(54,211,153,.32);
}
.java-terminal-input-row input{
  min-height:36px!important;
  padding:5px 3px!important;
  border:0!important;
  border-radius:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:transparent!important;
  color:#f2fbff!important;
  font:13px/1.5 "Cascadia Code","JetBrains Mono",Consolas,monospace!important;
}
.java-terminal-input-row input::placeholder{color:#536579}
.java-terminal-input-row input:focus{box-shadow:none!important}
.java-terminal-enter{
  color:#64778d;
  font:800 .56rem/1 ui-monospace,Consolas,monospace;
  letter-spacing:.06em;
  white-space:nowrap;
}
.java-terminal-focus-btn span:first-child{color:#6ee7b7}
.java-console-tabs [data-console-tab="input"]{display:none!important}
.java-console-panel[data-console-panel="input"]{display:none!important}
.java-console-tabs [data-console-tab="output"].active{
  color:#72e5b0;
  background:rgba(54,211,153,.075);
}
.java-console-tabs [data-console-tab="output"]::before{
  content:"●";
  margin-right:6px;
  color:#36d399;
  font-size:.55rem;
  text-shadow:0 0 9px rgba(54,211,153,.4);
}
@media(max-width:700px){
  .java-terminal-panel{min-height:190px;max-height:300px}
  .java-terminal-screen{
    min-height:145px!important;
    padding:12px 11px 7px!important;
    font-size:12px!important;
  }
  .java-terminal-input-row{
    grid-template-columns:16px minmax(0,1fr);
    padding:7px 10px 10px;
  }
  .java-terminal-enter{display:none}
  .java-terminal-input-row input{
    font-size:16px!important;
    min-height:40px!important;
  }
  .java-terminal-focus-btn span:last-child{display:none}
}
@media(max-width:420px){
  .java-terminal-panel{max-height:270px}
  .java-terminal-screen{min-height:130px!important}
}
/* ==============================================================
   PSAU Code Campus LMS · Fullscreen + Admin Run Patch v1.3.3
   ============================================================== */

.java-fullscreen-btn.active{
  color:var(--accent2);
  border-color:rgba(23,199,255,.34);
  background:rgba(23,199,255,.08);
}

/* Native browser fullscreen */
.java-ide:fullscreen{
  width:100vw;
  height:100vh;
  max-width:none;
  max-height:none;
  border:0;
  border-radius:0;
  display:flex;
  flex-direction:column;
  background:#07101a;
}
.java-ide:fullscreen .java-ide-body{
  flex:1;
  min-height:0;
}
.java-ide:fullscreen .java-editor-shell,
.java-ide:fullscreen .java-code-editor{
  min-height:0;
  height:100%;
}
.java-ide:fullscreen .java-console{
  flex:0 0 auto;
}
.java-ide:fullscreen .java-terminal-panel{
  max-height:34vh;
}

/* CSS fallback fullscreen */
body.java-workspace-fullscreen-open{overflow:hidden}
.java-ide.java-ide-fullscreen-fallback{
  position:fixed;
  inset:0;
  z-index:500;
  width:100vw;
  height:100dvh;
  max-width:none;
  max-height:none;
  border:0;
  border-radius:0;
  display:flex;
  flex-direction:column;
  background:#07101a;
}
.java-ide.java-ide-fullscreen-fallback .java-ide-body{
  flex:1;
  min-height:0;
}
.java-ide.java-ide-fullscreen-fallback .java-editor-shell,
.java-ide.java-ide-fullscreen-fallback .java-code-editor{
  min-height:0;
  height:100%;
}
.java-ide.java-ide-fullscreen-fallback .java-terminal-panel{
  max-height:34vh;
}

/* Instructor/admin runnable submission */
.admin-java-review{
  margin:13px 0 15px;
  border:1px solid var(--line);
  border-radius:15px;
  overflow:hidden;
  background:rgba(151,177,211,.025);
}
.admin-java-review-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:13px 14px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(90deg,rgba(124,92,255,.06),rgba(23,199,255,.025));
}
.admin-java-review-head>div{
  min-width:0;
}
.admin-java-review-head .eyebrow{
  display:flex;
  margin-bottom:4px;
}
.admin-java-review-head b,
.admin-java-review-head small{
  display:block;
}
.admin-java-review-head b{
  font-size:.88rem;
}
.admin-java-review-head small{
  margin-top:2px;
  color:var(--muted);
  font-size:.68rem;
}
.admin-java-review .review-files{
  margin:0;
  padding:8px;
}
.admin-run-console{
  max-height:360px;
  overflow:auto;
  border-top:1px solid var(--line);
  background:#030a12;
}
.admin-run-console-head{
  position:sticky;
  top:0;
  z-index:2;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 11px;
  border-bottom:1px solid rgba(151,177,211,.09);
  background:#07101a;
}
.admin-run-console-head>div{
  display:flex;
  align-items:center;
  gap:7px;
  color:#d9e8f5;
  font-size:.68rem;
}
.console-live-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--green);
  box-shadow:0 0 0 4px rgba(54,211,153,.08);
}
.admin-console-clear{
  border:0;
  background:transparent;
  color:#72859b;
  font-size:.65rem;
  font-weight:750;
}
.admin-run-output{
  margin:0;
  min-height:120px;
  padding:13px 14px 8px;
  color:#d9e8f5;
  background:transparent;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font:12.5px/1.58 "Cascadia Code","JetBrains Mono",Consolas,monospace;
}
.admin-run-input-row{
  position:sticky;
  bottom:0;
  display:grid;
  grid-template-columns:18px minmax(0,1fr) auto;
  gap:7px;
  align-items:center;
  padding:7px 12px 10px;
  border-top:1px solid rgba(151,177,211,.08);
  background:#030a12;
}
.admin-run-input-row[hidden]{display:none!important}
.admin-run-input-row>span{
  color:var(--green);
  font:900 15px/1 ui-monospace,Consolas,monospace;
}
.admin-run-input-row input{
  min-height:34px!important;
  padding:4px 2px!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
  color:#f2fbff!important;
  font:12.5px/1.5 "Cascadia Code",Consolas,monospace!important;
}
.admin-run-input-row small{
  color:#607286;
  font-size:.55rem;
  font-weight:800;
}

@media(max-width:700px){
  .java-fullscreen-btn .fullscreen-label{display:none}
  .java-fullscreen-btn{min-width:40px}
  .java-ide:fullscreen .java-terminal-panel,
  .java-ide.java-ide-fullscreen-fallback .java-terminal-panel{
    max-height:38vh;
  }
  .admin-java-review-head{
    align-items:stretch;
    flex-direction:column;
  }
  .admin-run-submission{
    width:100%;
  }
  .admin-run-input-row{
    grid-template-columns:16px minmax(0,1fr);
  }
  .admin-run-input-row small{display:none}
  .admin-run-input-row input{
    font-size:16px!important;
    min-height:40px!important;
  }
}
/* ==============================================================
   PSAU Code Campus LMS · Fullscreen Terminal Layout Fix v1.3.4
   Fixes terminal overlapping the editor in fullscreen mode.
   ============================================================== */

/*
 * The Java IDE is a vertical flex layout in fullscreen:
 * toolbar -> options -> editor workspace -> terminal -> submit bar.
 * Every flexible child must be allowed to shrink, otherwise the editor's
 * intrinsic min-height can push the terminal on top of it.
 */
.java-ide:fullscreen,
.java-ide.java-ide-fullscreen-fallback {
  overflow: hidden !important;
}

.java-ide:fullscreen .java-ide-toolbar,
.java-ide:fullscreen .java-ide-options,
.java-ide:fullscreen .java-console,
.java-ide:fullscreen .java-submit-bar,
.java-ide:fullscreen .java-last-saved,
.java-ide.java-ide-fullscreen-fallback .java-ide-toolbar,
.java-ide.java-ide-fullscreen-fallback .java-ide-options,
.java-ide.java-ide-fullscreen-fallback .java-console,
.java-ide.java-ide-fullscreen-fallback .java-submit-bar,
.java-ide.java-ide-fullscreen-fallback .java-last-saved {
  flex: 0 0 auto;
}

.java-ide:fullscreen .java-ide-body,
.java-ide.java-ide-fullscreen-fallback .java-ide-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.java-ide:fullscreen .java-file-panel,
.java-ide:fullscreen .java-editor-area,
.java-ide:fullscreen .java-editor-shell,
.java-ide.java-ide-fullscreen-fallback .java-file-panel,
.java-ide.java-ide-fullscreen-fallback .java-editor-area,
.java-ide.java-ide-fullscreen-fallback .java-editor-shell {
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
}

.java-ide:fullscreen .java-file-list,
.java-ide.java-ide-fullscreen-fallback .java-file-list {
  overflow-y: auto !important;
  min-height: 0 !important;
}

.java-ide:fullscreen .java-editor-area,
.java-ide.java-ide-fullscreen-fallback .java-editor-area {
  display: flex !important;
  flex-direction: column !important;
}

.java-ide:fullscreen .java-editor-tabbar,
.java-ide.java-ide-fullscreen-fallback .java-editor-tabbar {
  flex: 0 0 40px;
}

.java-ide:fullscreen .java-editor-shell,
.java-ide.java-ide-fullscreen-fallback .java-editor-shell {
  flex: 1 1 auto !important;
}

.java-ide:fullscreen .java-line-numbers,
.java-ide:fullscreen .java-code-editor,
.java-ide.java-ide-fullscreen-fallback .java-line-numbers,
.java-ide.java-ide-fullscreen-fallback .java-code-editor {
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
}

.java-ide:fullscreen .java-code-editor,
.java-ide.java-ide-fullscreen-fallback .java-code-editor {
  overflow: auto !important;
  resize: none !important;
}

/*
 * Terminal gets its own dedicated area BELOW the editor.
 * It no longer floats over or visually covers source code.
 */
.java-ide:fullscreen .java-console,
.java-ide.java-ide-fullscreen-fallback .java-console {
  position: relative !important;
  z-index: 2;
  width: 100%;
  border-top: 1px solid var(--line);
  background: #030a12;
}

.java-ide:fullscreen .java-terminal-panel,
.java-ide.java-ide-fullscreen-fallback .java-terminal-panel {
  position: relative !important;
  flex: none !important;
  height: clamp(180px, 27vh, 300px) !important;
  min-height: 160px !important;
  max-height: 300px !important;
  overflow-y: auto !important;
  border: 0 !important;
}

.java-ide:fullscreen .java-terminal-screen,
.java-ide.java-ide-fullscreen-fallback .java-terminal-screen {
  min-height: calc(100% - 48px) !important;
  max-height: none !important;
}

.java-ide:fullscreen .java-terminal-input-row,
.java-ide.java-ide-fullscreen-fallback .java-terminal-input-row {
  position: sticky !important;
  bottom: 0 !important;
}

/* Keep the submission controls below the terminal instead of underneath it. */
.java-ide:fullscreen .java-submit-bar,
.java-ide.java-ide-fullscreen-fallback .java-submit-bar {
  position: relative !important;
  z-index: 3;
  background: var(--panel-solid);
}

.java-ide:fullscreen .java-last-saved,
.java-ide.java-ide-fullscreen-fallback .java-last-saved {
  position: relative !important;
  z-index: 3;
  background: var(--panel-solid);
}

/* On shorter laptop screens, use a smaller terminal so code stays visible. */
@media (max-height: 760px) and (min-width: 701px) {
  .java-ide:fullscreen .java-terminal-panel,
  .java-ide.java-ide-fullscreen-fallback .java-terminal-panel {
    height: 190px !important;
    min-height: 150px !important;
    max-height: 190px !important;
  }

  .java-ide:fullscreen .java-submit-bar,
  .java-ide.java-ide-fullscreen-fallback .java-submit-bar {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

/* Mobile fullscreen: editor first, terminal naturally below it. */
@media (max-width: 700px) {
  .java-ide:fullscreen .java-ide-body,
  .java-ide.java-ide-fullscreen-fallback .java-ide-body {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .java-ide:fullscreen .java-file-panel,
  .java-ide.java-ide-fullscreen-fallback .java-file-panel {
    height: auto !important;
    flex: 0 0 auto !important;
    overflow: visible !important;
  }

  .java-ide:fullscreen .java-editor-area,
  .java-ide.java-ide-fullscreen-fallback .java-editor-area {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
  }

  .java-ide:fullscreen .java-editor-shell,
  .java-ide.java-ide-fullscreen-fallback .java-editor-shell {
    min-height: 0 !important;
    height: 100% !important;
  }

  .java-ide:fullscreen .java-code-editor,
  .java-ide.java-ide-fullscreen-fallback .java-code-editor {
    min-height: 0 !important;
    height: 100% !important;
  }

  .java-ide:fullscreen .java-terminal-panel,
  .java-ide.java-ide-fullscreen-fallback .java-terminal-panel {
    height: clamp(150px, 28vh, 230px) !important;
    min-height: 140px !important;
    max-height: 230px !important;
  }

  .java-ide:fullscreen .java-submit-bar,
  .java-ide.java-ide-fullscreen-fallback .java-submit-bar {
    max-height: 185px;
    overflow-y: auto;
  }
}

/* Very small phones: preserve usable editor height. */
@media (max-width: 420px) {
  .java-ide:fullscreen .java-terminal-panel,
  .java-ide.java-ide-fullscreen-fallback .java-terminal-panel {
    height: 150px !important;
    min-height: 130px !important;
    max-height: 170px !important;
  }
}
/* ==============================================================
   PSAU Code Campus LMS · Resizable Terminal Patch v1.3.5
   ============================================================== */

.java-ide{
  --java-terminal-height:190px;
}

/* The console now uses a compact user-resizable height. */
.java-terminal-panel{
  height:var(--java-terminal-height)!important;
  min-height:110px!important;
  max-height:min(42vh,360px)!important;
  flex:none!important;
  transition:height .16s ease;
}

/* Disable the height animation while actively dragging. */
body.java-terminal-resizing,
body.java-terminal-resizing *{
  cursor:ns-resize!important;
  user-select:none!important;
}
body.java-terminal-resizing .java-terminal-panel{
  transition:none!important;
}

.java-terminal-resize-handle{
  position:relative;
  height:8px;
  flex:0 0 8px;
  cursor:ns-resize;
  background:#07101a;
  border-top:1px solid rgba(151,177,211,.10);
  border-bottom:1px solid rgba(151,177,211,.06);
  touch-action:none;
}
.java-terminal-resize-handle span{
  position:absolute;
  left:50%;
  top:50%;
  width:48px;
  height:3px;
  transform:translate(-50%,-50%);
  border-radius:999px;
  background:#33475d;
  transition:.18s;
}
.java-terminal-resize-handle:hover span{
  width:64px;
  background:#5e7892;
}

.java-console-control{
  border:0!important;
  background:transparent!important;
  color:#718399!important;
  font-size:.63rem!important;
  font-weight:750!important;
}
.java-console-control:hover{
  color:var(--text)!important;
}

.java-console-minimized .java-terminal-resize-handle,
.java-console-minimized .java-console-panel{
  display:none!important;
}
.java-console-minimized{
  height:auto!important;
  min-height:39px!important;
}
.java-console-minimized .java-console-tabs{
  border-bottom:0!important;
}

/* Fullscreen terminal is no longer forced to a large vh-based block. */
.java-ide:fullscreen .java-terminal-panel,
.java-ide.java-ide-fullscreen-fallback .java-terminal-panel{
  height:var(--java-terminal-height)!important;
  min-height:110px!important;
  max-height:min(42vh,360px)!important;
}

/* Keep editor as the priority area in fullscreen. */
.java-ide:fullscreen .java-ide-body,
.java-ide.java-ide-fullscreen-fallback .java-ide-body{
  min-height:180px!important;
}

/* Admin/instructor review terminal */
.admin-run-console{
  --admin-terminal-height:170px;
  height:var(--admin-terminal-height)!important;
  min-height:100px;
  max-height:320px!important;
  display:flex;
  flex-direction:column;
}
.admin-run-console[hidden]{display:none!important}
.admin-run-output{
  flex:1 1 auto;
  min-height:0!important;
  overflow:auto;
}
.admin-console-resize-handle{
  position:sticky;
  top:0;
  z-index:4;
  height:7px;
  flex:0 0 7px;
  cursor:ns-resize;
  touch-action:none;
  background:#07101a;
  border-bottom:1px solid rgba(151,177,211,.07);
}
.admin-console-resize-handle span{
  position:absolute;
  left:50%;
  top:50%;
  width:42px;
  height:3px;
  transform:translate(-50%,-50%);
  border-radius:999px;
  background:#33475d;
}
.admin-console-head-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.admin-console-head-actions button{
  border:0;
  background:transparent;
  color:#72859b;
  font-size:.62rem;
  font-weight:750;
}
.admin-console-head-actions button:hover{color:#d9e8f5}
.admin-console-minimized{
  height:45px!important;
  min-height:45px!important;
}
.admin-console-minimized .admin-console-resize-handle,
.admin-console-minimized .admin-run-output,
.admin-console-minimized .admin-run-input-row{
  display:none!important;
}

/* Mobile: start even smaller, but still draggable. */
@media(max-width:700px){
  .java-ide{--java-terminal-height:150px}
  .java-terminal-panel{
    min-height:100px!important;
    max-height:min(38vh,280px)!important;
  }
  .java-ide:fullscreen .java-terminal-panel,
  .java-ide.java-ide-fullscreen-fallback .java-terminal-panel{
    min-height:100px!important;
    max-height:min(38vh,280px)!important;
  }
  .terminal-control-label{display:none}
  .java-console-control{min-width:34px!important;padding-inline:7px!important}
}

@media(max-height:760px) and (min-width:701px){
  .java-ide{--java-terminal-height:150px}
  .java-terminal-panel,
  .java-ide:fullscreen .java-terminal-panel,
  .java-ide.java-ide-fullscreen-fallback .java-terminal-panel{
    max-height:240px!important;
  }
}
/* ==============================================================
   PSAU Code Campus LMS · Assessment Builder Patch v1.4.0
   Schoology-inspired authoring workflow, adapted for CodeCampus.
   ============================================================== */

/* Critical: elements hidden by the question-type controller must remain hidden. */
[hidden]{display:none!important}

.assessment-layout-v2{grid-template-columns:minmax(0,1fr) 310px}
.assessment-builder-panel{padding:24px}
.assessment-builder-heading{align-items:center}
.assessment-builder-heading p{margin:.3rem 0 0;color:var(--muted);font-size:.78rem}

.assessment-empty-builder{
  padding:48px 20px;text-align:center;border:1px dashed var(--line);border-radius:18px;
  background:linear-gradient(135deg,rgba(124,92,255,.035),rgba(23,199,255,.025))
}
.assessment-empty-icon{
  width:60px;height:60px;margin:0 auto 14px;border-radius:18px;display:grid;place-items:center;
  background:linear-gradient(135deg,rgba(124,92,255,.18),rgba(23,199,255,.12));color:var(--accent2);
  font-size:1.45rem;font-weight:900
}
.assessment-empty-builder h3{margin:0 0 5px}
.assessment-empty-builder p{margin:0 0 18px;color:var(--muted)}

.question-list-v2{gap:12px}
.question-card-v2{
  position:relative;display:grid;grid-template-columns:46px 44px minmax(0,1fr) auto;gap:13px;align-items:start;
  padding:17px;border:1px solid var(--line);border-radius:17px;background:rgba(255,255,255,.018);transition:.2s
}
.question-card-v2:hover{border-color:rgba(124,92,255,.27);background:rgba(124,92,255,.025)}
.question-order{display:flex;flex-direction:column;align-items:center;gap:6px}
.question-order>span{
  width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:rgba(151,177,211,.08);
  color:var(--muted);font:800 .78rem ui-monospace,Consolas,monospace
}
.question-order-controls{display:flex;gap:3px}
.question-order-controls form{margin:0}
.question-order-controls button{
  width:21px;height:21px;padding:0;border:1px solid var(--line);border-radius:6px;background:transparent;color:var(--muted);font-size:.62rem
}
.question-order-controls button:hover:not(:disabled){color:var(--text);background:rgba(151,177,211,.07)}
.question-order-controls button:disabled{opacity:.25;cursor:not-allowed}

.question-type-mark{
  width:42px;height:42px;border-radius:13px;display:grid;place-items:center;font-weight:900;
  background:linear-gradient(135deg,rgba(124,92,255,.14),rgba(23,199,255,.08));color:#b9adff
}
.question-type-mark.type-truefalse{color:#6ee7b7;background:rgba(54,211,153,.08)}
.question-type-mark.type-short{color:#72d6ff;background:rgba(23,199,255,.08)}
.question-type-mark.type-code{font:800 .68rem ui-monospace,Consolas,monospace;color:#f4c875;background:rgba(245,196,81,.08)}
.question-card-body{min-width:0}
.question-card-meta{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.question-card-meta span{
  padding:3px 7px;border-radius:999px;border:1px solid var(--line);color:var(--muted);font-size:.62rem;font-weight:750
}
.question-card-meta .question-type-name{color:var(--text);background:rgba(151,177,211,.06)}
.question-card-body h3{margin:10px 0 9px;font-size:.94rem;line-height:1.55;font-weight:700}
.question-answer-summary{display:flex;flex-wrap:wrap;gap:6px}
.question-answer-summary span{
  padding:5px 8px;border-radius:8px;background:rgba(151,177,211,.045);border:1px solid var(--line);
  color:var(--muted);font-size:.68rem
}
.question-answer-summary span.correct{color:#62dca8;background:rgba(54,211,153,.075);border-color:rgba(54,211,153,.16)}
.mcq-summary{max-width:760px}
.question-card-actions{display:flex;align-items:center;gap:5px}
.question-card-actions form{margin:0}
.question-action{
  border:1px solid var(--line);background:transparent;color:var(--muted);padding:7px 9px;border-radius:9px;font-size:.68rem;font-weight:750
}
.question-action:hover{color:var(--text);background:rgba(151,177,211,.06)}
.question-action.primary-action{color:var(--accent2);border-color:rgba(23,199,255,.18);background:rgba(23,199,255,.045)}
.question-action.danger-action:hover{color:#ff9aa7;border-color:rgba(255,107,125,.22);background:rgba(255,107,125,.06)}

.assessment-builder-modal{padding:18px}
.assessment-question-builder{
  width:min(1180px,100%);height:min(880px,94vh);display:flex;flex-direction:column;overflow:hidden;border-radius:24px
}
.builder-header{
  flex:0 0 auto;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:21px 24px 18px;
  border-bottom:1px solid var(--line);background:linear-gradient(90deg,rgba(124,92,255,.075),rgba(23,199,255,.025))
}
.builder-header h2{margin:.25rem 0 2px;font-size:1.55rem;letter-spacing:-.035em}
.builder-header p{margin:0;color:var(--muted);font-size:.78rem}
.builder-close{position:static;flex:0 0 38px}
.builder-form{display:flex;flex-direction:column;min-height:0;flex:1}
.builder-scroll{flex:1;min-height:0;overflow-y:auto;padding:20px 22px 26px}
.builder-section{
  padding:18px;border:1px solid var(--line);border-radius:17px;background:rgba(255,255,255,.014);margin-bottom:14px
}
.builder-section-title{display:flex;align-items:center;gap:11px;margin-bottom:15px}
.builder-section-title>div{display:flex;flex-direction:column}
.builder-section-title b{font-size:.9rem}
.builder-section-title small{color:var(--muted);font-size:.7rem;margin-top:2px}
.builder-step{
  width:30px;height:30px;flex:0 0 30px;border-radius:9px;display:grid;place-items:center;
  background:linear-gradient(135deg,rgba(124,92,255,.16),rgba(23,199,255,.09));color:#bcb1ff;font:900 .72rem ui-monospace,Consolas,monospace
}

.question-type-picker{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}
.type-choice{
  position:relative;display:flex!important;flex-direction:row!important;align-items:center;gap:10px;padding:12px;
  border:1px solid var(--line);border-radius:13px;background:rgba(151,177,211,.025);color:var(--text);cursor:pointer;transition:.18s
}
.type-choice:hover{border-color:rgba(124,92,255,.25);transform:translateY(-1px)}
.type-choice.selected{border-color:rgba(23,199,255,.32);background:linear-gradient(135deg,rgba(124,92,255,.09),rgba(23,199,255,.06));box-shadow:0 0 0 3px rgba(23,199,255,.035)}
.type-choice input{position:absolute;opacity:0;pointer-events:none}
.type-choice-icon{
  width:38px;height:38px;flex:0 0 38px;border-radius:11px;display:grid;place-items:center;
  background:rgba(124,92,255,.10);color:#b9adff;font-weight:900
}
.type-choice:nth-child(2) .type-choice-icon{color:#63dda9;background:rgba(54,211,153,.08)}
.type-choice:nth-child(3) .type-choice-icon{color:#70d8ff;background:rgba(23,199,255,.08)}
.type-choice:nth-child(4) .type-choice-icon{color:#f0c570;background:rgba(245,196,81,.08);font:800 .62rem ui-monospace,Consolas,monospace}
.type-choice b,.type-choice small{display:block}
.type-choice b{font-size:.76rem}
.type-choice small{color:var(--muted);font-size:.62rem;margin-top:2px}

.builder-two-column{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:16px;align-items:start}
.builder-author-column{min-width:0}
.builder-preview-column{min-width:0}
.builder-preview-sticky{position:sticky;top:0;border:1px solid var(--line);border-radius:17px;overflow:hidden;background:var(--panel-solid)}
.preview-head{
  padding:14px 15px;display:flex;align-items:center;justify-content:space-between;gap:10px;
  border-bottom:1px solid var(--line);background:linear-gradient(90deg,rgba(23,199,255,.04),rgba(124,92,255,.035))
}
.preview-head .eyebrow{font-size:.59rem}
.preview-head b{display:block;margin-top:4px;font-size:.75rem}
.preview-points{
  padding:5px 8px;border-radius:8px;background:rgba(124,92,255,.10);color:#b9adff;font-size:.66rem;font-weight:800;white-space:nowrap
}
.student-question-preview{padding:17px;min-height:260px}
.preview-question-type{color:var(--muted);font-size:.62rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.student-question-preview h3{font-size:.92rem;line-height:1.55;margin:8px 0 15px}
.preview-choices{display:flex;flex-direction:column;gap:7px}
.preview-choices div,.preview-tf div{
  display:flex;gap:8px;align-items:center;padding:9px 10px;border:1px solid var(--line);border-radius:10px;color:var(--muted);font-size:.72rem
}
.preview-choices div span{color:#8294aa}
.preview-tf{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.preview-short-input,.preview-code-area{
  padding:10px;border:1px solid var(--line);border-radius:10px;color:#7f91a7;font-size:.72rem;background:rgba(151,177,211,.025)
}
.preview-code-label{margin-bottom:8px;color:#d3b25e;font:700 .69rem ui-monospace,Consolas,monospace}
.student-question-preview pre{
  max-height:220px;overflow:auto;margin:0;padding:11px;border-radius:10px;background:#050c15;color:#d6e4f1;
  font:11px/1.5 "Cascadia Code",Consolas,monospace;white-space:pre-wrap
}

.builder-field{gap:7px}
.builder-field>span{color:var(--text);font-size:.72rem;font-weight:750}
.builder-field>span i{
  margin-left:5px;padding:2px 5px;border-radius:5px;background:rgba(255,107,125,.08);color:#ff9aa7;font-size:.52rem;font-style:normal;text-transform:uppercase
}
.builder-field>span em{margin-left:5px;color:var(--muted);font-size:.62rem;font-style:normal;font-weight:500}
.builder-field textarea,.builder-field input{font-size:.85rem}
.field-help,.builder-hint{color:var(--muted);font-size:.65rem!important;font-weight:500}
.builder-hint{margin:9px 0 0}

.mcq-option-list{display:flex;flex-direction:column;gap:7px}
.mcq-option-row{
  display:grid;grid-template-columns:35px 29px minmax(0,1fr) auto;gap:7px;align-items:center;padding:7px;
  border:1px solid var(--line);border-radius:11px;background:rgba(151,177,211,.018)
}
.correct-choice-radio{display:block!important;position:relative;width:31px;height:31px;cursor:pointer}
.correct-choice-radio input{position:absolute;opacity:0}
.correct-choice-radio span{
  width:31px;height:31px;display:grid;place-items:center;border:1px solid var(--line);border-radius:9px;color:#64768c;background:transparent;transition:.18s
}
.correct-choice-radio input:checked+span{border-color:rgba(54,211,153,.3);background:rgba(54,211,153,.10);color:#62dca8}
.option-number{width:27px;height:27px;display:grid;place-items:center;border-radius:8px;background:rgba(124,92,255,.08);color:#a99bff;font:800 .66rem ui-monospace,Consolas,monospace}
.mcq-option-row input[type="text"]{min-height:38px;padding:7px 9px;border-radius:9px}
.option-row-actions{display:flex;gap:3px}
.option-row-actions button{
  width:29px;height:29px;padding:0;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--muted)
}
.option-row-actions button:hover:not(:disabled){color:var(--text);background:rgba(151,177,211,.06)}
.option-row-actions button:disabled{opacity:.24;cursor:not-allowed}
.add-choice-btn{margin-top:9px}

.tf-answer-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tf-answer-card{
  display:flex!important;flex-direction:row!important;align-items:center;gap:10px;padding:15px;border:1px solid var(--line);border-radius:13px;
  background:rgba(151,177,211,.02);color:var(--text);cursor:pointer
}
.tf-answer-card input{position:absolute;opacity:0}
.tf-answer-card:has(input:checked){border-color:rgba(23,199,255,.28);background:rgba(23,199,255,.055)}
.tf-mark{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;font-weight:900}
.true-mark{background:rgba(54,211,153,.09);color:#62dca8}
.false-mark{background:rgba(255,107,125,.08);color:#ff8f9d}

.builder-toggle{display:flex!important;flex-direction:row!important;align-items:center;gap:10px;margin-top:11px;color:var(--text);cursor:pointer}
.builder-toggle input{position:absolute;opacity:0}
.toggle-ui{width:40px;height:23px;flex:0 0 40px;border-radius:999px;background:#26374b;position:relative;transition:.2s}
.toggle-ui:before{content:"";position:absolute;width:17px;height:17px;left:3px;top:3px;border-radius:50%;background:#96a8bc;transition:.2s}
.builder-toggle input:checked+.toggle-ui{background:rgba(54,211,153,.28)}
.builder-toggle input:checked+.toggle-ui:before{transform:translateX(17px);background:#6ee7b7}
.builder-toggle b,.builder-toggle small{display:block}
.builder-toggle b{font-size:.72rem}
.builder-toggle small{color:var(--muted);font-size:.61rem;margin-top:2px}

.code-question-notice{
  display:flex;gap:10px;align-items:center;padding:11px 12px;margin-bottom:12px;border:1px solid rgba(245,196,81,.15);
  border-radius:12px;background:rgba(245,196,81,.045)
}
.code-question-notice>span{
  width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:rgba(245,196,81,.08);color:#efc66f;
  font:800 .65rem ui-monospace,Consolas,monospace
}
.code-question-notice b,.code-question-notice small{display:block}
.code-question-notice b{font-size:.72rem}
.code-question-notice small{color:var(--muted);font-size:.63rem;margin-top:2px}

.scoring-section{margin-bottom:0}
.points-control{max-width:240px;color:var(--text)}
.points-control>span{font-size:.72rem;font-weight:750}
.points-input-shell{display:grid;grid-template-columns:38px minmax(70px,1fr) 38px;border:1px solid var(--line);border-radius:11px;overflow:hidden}
.points-input-shell button{
  border:0;background:rgba(151,177,211,.045);color:var(--text);font-size:1rem
}
.points-input-shell input{
  border:0!important;border-radius:0!important;text-align:center;background:transparent!important;box-shadow:none!important;font-weight:800
}
.points-input-shell input::-webkit-outer-spin-button,.points-input-shell input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

.builder-footer{
  flex:0 0 auto;display:flex;justify-content:space-between;align-items:center;gap:15px;padding:13px 20px;
  border-top:1px solid var(--line);background:var(--panel-solid)
}
.builder-save-status{display:flex;align-items:center;gap:7px;color:var(--muted)}
.builder-save-status>span{width:7px;height:7px;border-radius:50%;background:var(--green)}
.builder-save-status small{font-size:.64rem}
.builder-footer-actions{display:flex;gap:8px}

.student-tf-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}

@media(max-width:1100px){
  .builder-two-column{grid-template-columns:minmax(0,1fr) 280px}
  .question-type-picker{grid-template-columns:repeat(2,1fr)}
  .question-card-v2{grid-template-columns:42px 40px minmax(0,1fr)}
  .question-card-actions{grid-column:3;justify-content:flex-start}
}

@media(max-width:820px){
  .assessment-layout-v2{grid-template-columns:1fr}
  .assessment-builder-modal{padding:0;align-items:stretch}
  .assessment-question-builder{
    width:100%;height:100dvh;max-height:none;border-radius:0;border:0
  }
  .builder-header{padding:16px}
  .builder-header h2{font-size:1.25rem}
  .builder-header p{display:none}
  .builder-scroll{padding:13px}
  .builder-two-column{grid-template-columns:1fr}
  .builder-preview-column{order:2}
  .builder-preview-sticky{position:static}
  .student-question-preview{min-height:190px}
  .builder-footer{padding:10px 13px calc(10px + env(safe-area-inset-bottom))}
  .builder-save-status{display:none}
  .builder-footer-actions{width:100%}
  .builder-footer-actions .btn{flex:1}
}

@media(max-width:620px){
  .assessment-builder-panel{padding:16px}
  .assessment-builder-heading{align-items:stretch!important}
  .assessment-builder-heading .btn{width:100%}
  .question-card-v2{
    grid-template-columns:36px 38px minmax(0,1fr);padding:13px;gap:9px
  }
  .question-order>span{width:30px;height:30px}
  .question-order-controls{display:none}
  .question-card-body h3{font-size:.88rem}
  .question-card-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr)}
  .question-card-actions form{display:block}
  .question-card-actions .question-action{width:100%}
  .question-type-picker{grid-template-columns:1fr 1fr}
  .type-choice{padding:10px;gap:8px}
  .type-choice-icon{width:34px;height:34px;flex-basis:34px}
  .type-choice b{font-size:.7rem}
  .type-choice small{font-size:.57rem}
  .builder-section{padding:14px}
  .mcq-option-row{grid-template-columns:31px 25px minmax(0,1fr)}
  .option-row-actions{grid-column:3;justify-content:flex-end}
  .preview-tf,.student-tf-grid{grid-template-columns:1fr}
}

@media(max-width:390px){
  .question-type-picker{grid-template-columns:1fr}
  .builder-header .eyebrow{display:none}
}
/* ==============================================================
   PSAU Code Campus LMS · Quiz/Exam Result UX Patch v1.4.1
   ============================================================== */

.assessment-result-shell{
  width:min(840px,100%);
  margin:30px auto 40px;
  padding:0 12px;
}

.assessment-result-card{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  padding:34px;
  border-radius:26px;
  text-align:left;
  animation:ccResultReveal .55s cubic-bezier(.2,.85,.25,1) both;
}

.result-decoration{
  position:absolute;
  z-index:-1;
  border-radius:50%;
  pointer-events:none;
  filter:blur(2px);
}
.result-decoration-one{
  width:260px;height:260px;right:-130px;top:-150px;
  background:radial-gradient(circle,rgba(23,199,255,.13),transparent 68%);
}
.result-decoration-two{
  width:220px;height:220px;left:-110px;bottom:-125px;
  background:radial-gradient(circle,rgba(124,92,255,.13),transparent 68%);
}

.result-status-pill{
  width:max-content;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(54,211,153,.18);
  background:rgba(54,211,153,.07);
  color:var(--green);
  font-size:.68rem;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.07em;
}
.result-tone-pending .result-status-pill{
  border-color:rgba(245,196,81,.2);
  background:rgba(245,196,81,.07);
  color:#e6bb5e;
}

.result-score-layout{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:30px;
  padding:28px 0 24px;
}

.result-score-ring{
  --result-angle:0deg;
  position:relative;
  width:178px;
  height:178px;
  flex:0 0 178px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:conic-gradient(var(--green) var(--result-angle),rgba(151,177,211,.12) 0);
  box-shadow:0 22px 60px rgba(20,150,107,.13);
  animation:ccResultRing .85s cubic-bezier(.18,.8,.22,1) both;
}
.result-tone-pending .result-score-ring{
  background:conic-gradient(#e8bd5d var(--result-angle),rgba(151,177,211,.12) 0);
}
.result-score-ring::before{
  content:"";
  position:absolute;
  inset:12px;
  border-radius:50%;
  background:var(--panel-solid);
  border:1px solid var(--line);
  box-shadow:inset 0 0 35px rgba(23,199,255,.025);
}
.result-score-inner{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.result-score-inner strong{
  color:var(--text);
  font-size:2.55rem;
  line-height:.95;
  letter-spacing:-.07em;
}
.result-score-inner span{
  margin-top:8px;
  color:var(--muted);
  font-size:.72rem;
  font-weight:650;
}

.result-score-copy{
  display:flex;
  min-width:150px;
  flex-direction:column;
  align-items:flex-start;
}
.result-percent{
  margin-top:7px;
  color:var(--text);
  font-size:3.15rem;
  line-height:.95;
  font-weight:900;
  letter-spacing:-.075em;
}
.result-percent small{
  margin-left:3px;
  color:var(--muted);
  font-size:1.15rem;
}
.result-performance-label{
  margin-top:10px;
  padding:6px 9px;
  border-radius:8px;
  background:rgba(54,211,153,.075);
  color:var(--green);
  font-size:.69rem;
  font-weight:800;
}
.result-tone-pending .result-performance-label{
  background:rgba(245,196,81,.07);
  color:#ddb45a;
}

.result-message{
  display:flex;
  align-items:flex-start;
  gap:14px;
  max-width:690px;
  margin:0 auto;
  padding:17px 18px;
  border:1px solid rgba(54,211,153,.15);
  border-radius:17px;
  background:linear-gradient(135deg,rgba(54,211,153,.06),rgba(23,199,255,.025));
}
.result-tone-pending .result-message{
  border-color:rgba(245,196,81,.15);
  background:linear-gradient(135deg,rgba(245,196,81,.055),rgba(23,199,255,.02));
}
.result-message-icon{
  width:39px;height:39px;flex:0 0 39px;
  display:grid;place-items:center;
  border-radius:12px;
  background:rgba(54,211,153,.10);
  color:var(--green);
  font-size:1.05rem;
  font-weight:900;
}
.result-tone-pending .result-message-icon{
  background:rgba(245,196,81,.09);
  color:#ddb45a;
}
.result-message h1{
  margin:0 0 5px;
  font-size:1.4rem;
  letter-spacing:-.035em;
}
.result-message p{
  margin:0;
  color:var(--muted);
  font-size:.79rem;
  line-height:1.65;
}

.result-assessment-name{
  margin:25px 0 14px;
  text-align:center;
}
.result-assessment-name h2{
  margin:5px 0 0;
  font-size:1.35rem;
}

.result-stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  padding:13px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(151,177,211,.022);
}
.result-stats>div{
  min-width:0;
  padding:8px 10px;
  border-right:1px solid var(--line);
}
.result-stats>div:last-child{border-right:0}
.result-stats span,.result-stats b{display:block}
.result-stats span{
  margin-bottom:5px;
  color:var(--muted);
  font-size:.61rem;
  font-weight:750;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.result-stats b{
  overflow-wrap:anywhere;
  font-size:.79rem;
}

.result-pending-notice{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:12px;
  padding:11px 12px;
  border:1px solid rgba(245,196,81,.16);
  border-radius:12px;
  background:rgba(245,196,81,.045);
}
.result-pending-notice>span{
  width:28px;height:28px;flex:0 0 28px;
  display:grid;place-items:center;
  border-radius:9px;
  background:rgba(245,196,81,.09);
  color:#dcb357;
  font-family:serif;
  font-weight:900;
}
.result-pending-notice b,.result-pending-notice small{display:block}
.result-pending-notice b{font-size:.72rem}
.result-pending-notice small{margin-top:2px;color:var(--muted);font-size:.64rem}

.result-actions{
  display:flex;
  justify-content:center;
  margin-top:20px;
}
.result-actions .btn{min-width:150px}

@keyframes ccResultReveal{
  from{opacity:0;transform:translateY(14px) scale(.99)}
  to{opacity:1;transform:none}
}
@keyframes ccResultRing{
  from{opacity:0;transform:scale(.72) rotate(-28deg)}
  to{opacity:1;transform:scale(1) rotate(0)}
}

@media(max-width:700px){
  .assessment-result-shell{
    margin:16px auto 28px;
    padding:0;
  }
  .assessment-result-card{
    padding:23px 17px;
    border-radius:20px;
  }
  .result-score-layout{
    gap:20px;
    padding:23px 0 20px;
  }
  .result-score-ring{
    width:145px;height:145px;flex-basis:145px;
  }
  .result-score-ring::before{inset:10px}
  .result-score-inner strong{font-size:2rem}
  .result-percent{font-size:2.45rem}
  .result-message{padding:14px}
  .result-stats{grid-template-columns:1fr 1fr}
  .result-stats>div{border-right:0;border-bottom:1px solid var(--line)}
  .result-stats>div:nth-last-child(-n+2){border-bottom:0}
}

@media(max-width:440px){
  .result-score-layout{
    flex-direction:column;
    gap:14px;
  }
  .result-score-copy{align-items:center}
  .result-message{text-align:left}
  .result-stats{grid-template-columns:1fr}
  .result-stats>div{border-bottom:1px solid var(--line)!important}
  .result-stats>div:last-child{border-bottom:0!important}
  .result-actions .btn{width:100%}
}

@media(prefers-reduced-motion:reduce){
  .assessment-result-card,.result-score-ring{animation:none!important}
}
/* ==============================================================
   PSAU Code Campus LMS · Review + Excel Export Patch v1.4.2
   ============================================================== */

.assessment-results-head{align-items:center}
.assessment-results-head p{margin:.25rem 0 0}
.assessment-export-btn{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.assessment-export-btn>span{color:#32b97d;font-size:1rem}
.assessment-export-btn small{
  padding:2px 5px;border-radius:5px;background:rgba(54,211,153,.08);
  color:var(--green);font-size:.55rem;font-weight:850
}

/* Dedicated full-width student review */
.review-hero{
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  padding:25px 27px;margin-top:14px;border-radius:22px;
  background:
    radial-gradient(circle at 88% 20%,rgba(23,199,255,.08),transparent 32%),
    radial-gradient(circle at 8% 80%,rgba(124,92,255,.08),transparent 30%),
    var(--panel)
}
.review-hero-main{display:flex;align-items:center;gap:15px;min-width:0}
.review-student-avatar{
  width:58px;height:58px;flex:0 0 58px;display:grid;place-items:center;border-radius:17px;
  background:linear-gradient(135deg,rgba(124,92,255,.18),rgba(23,199,255,.13));
  border:1px solid rgba(124,92,255,.18);color:#b6aaff;font-size:1.05rem;font-weight:900
}
.review-student-copy{min-width:0}
.review-student-copy h1{margin:.3rem 0 .2rem;font-size:1.65rem;letter-spacing:-.04em}
.review-student-copy p{margin:0;color:var(--muted);font-size:.76rem}
.review-score-block{display:flex;align-items:center;gap:14px}
.review-score-ring{
  --review-angle:0deg;position:relative;width:94px;height:94px;flex:0 0 94px;
  display:grid;place-items:center;border-radius:50%;
  background:conic-gradient(var(--green) var(--review-angle),rgba(151,177,211,.12) 0)
}
.review-score-ring::before{
  content:"";position:absolute;inset:8px;border-radius:50%;
  background:var(--panel-solid);border:1px solid var(--line)
}
.review-score-ring>div{position:relative;z-index:1;text-align:center}
.review-score-ring b{font-size:1.25rem;letter-spacing:-.05em}
.review-score-ring span{color:var(--muted);font-size:.62rem}
.review-score-block>div:last-child>span,.review-score-block>div:last-child>small{display:block;color:var(--muted);font-size:.65rem}
.review-score-block strong{display:block;margin:3px 0;font-size:1.45rem;letter-spacing:-.045em}

.review-summary-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:12px 0 26px
}
.review-summary-card{
  display:flex;align-items:center;gap:10px;padding:14px 15px;border-radius:15px
}
.review-summary-card>span{
  width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:10px;font-weight:900
}
.review-summary-card b,.review-summary-card small{display:block}
.review-summary-card b{font-size:1rem;overflow-wrap:anywhere}
.review-summary-card small{margin-top:2px;color:var(--muted);font-size:.62rem}
.review-summary-card.correct>span{background:rgba(54,211,153,.09);color:var(--green)}
.review-summary-card.incorrect>span{background:rgba(255,107,125,.08);color:#ff8f9d}
.review-summary-card.pending>span{background:rgba(245,196,81,.08);color:#e0b75e}
.review-summary-card.neutral>span{background:rgba(23,199,255,.08);color:var(--accent2)}

.review-answer-workspace>.section-head{margin-top:0}
.review-question-stack{display:flex;flex-direction:column;gap:12px}
.review-question-card{
  position:relative;overflow:hidden;padding:0;border-radius:18px
}
.review-question-card::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#8295aa
}
.review-question-card.state-correct::before{background:var(--green)}
.review-question-card.state-incorrect::before{background:#ff6b7d}
.review-question-card.state-pending::before{background:#e5b650}
.review-question-card.state-manual::before{background:var(--accent2)}

.review-question-header{
  display:grid;grid-template-columns:40px minmax(0,1fr) auto auto;gap:12px;align-items:start;
  padding:17px 18px;border-bottom:1px solid var(--line)
}
.review-question-number{
  width:36px;height:36px;display:grid;place-items:center;border-radius:11px;
  background:rgba(151,177,211,.07);color:var(--muted);font:850 .75rem ui-monospace,Consolas,monospace
}
.review-question-title{min-width:0}
.review-question-title h3{margin:8px 0 0;font-size:.93rem;line-height:1.5}
.review-question-meta{display:flex;flex-wrap:wrap;gap:5px}
.review-question-meta span{
  padding:3px 7px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:.58rem;font-weight:750
}
.review-result-badge{
  display:flex;align-items:center;gap:5px;padding:6px 9px;border-radius:999px;
  font-size:.64rem;font-weight:850;white-space:nowrap
}
.review-result-badge.correct{background:rgba(54,211,153,.08);color:var(--green)}
.review-result-badge.incorrect{background:rgba(255,107,125,.08);color:#ff8f9d}
.review-result-badge.pending{background:rgba(245,196,81,.08);color:#e0b75e}
.review-result-badge.manual{background:rgba(23,199,255,.08);color:var(--accent2)}
.review-earned-points{text-align:right;white-space:nowrap}
.review-earned-points b{font-size:1rem}
.review-earned-points span{color:var(--muted);font-size:.66rem}

.review-mcq-options,.review-tf-options{
  display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:15px 18px 18px
}
.review-option{
  position:relative;display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:8px;
  min-height:46px;padding:8px 10px;border:1px solid var(--line);border-radius:11px;background:rgba(151,177,211,.02)
}
.review-option-marker{
  width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:rgba(151,177,211,.06);
  color:#73869c;font-weight:900
}
.review-option-text{font-size:.74rem;font-weight:650;overflow-wrap:anywhere}
.review-option small{color:var(--muted);font-size:.56rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.review-option.is-correct{border-color:rgba(54,211,153,.24);background:rgba(54,211,153,.055)}
.review-option.is-correct .review-option-marker{background:rgba(54,211,153,.11);color:var(--green)}
.review-option.is-wrong{border-color:rgba(255,107,125,.24);background:rgba(255,107,125,.05)}
.review-option.is-wrong .review-option-marker{background:rgba(255,107,125,.10);color:#ff8f9d}
.review-option.is-selected{box-shadow:0 0 0 2px rgba(151,177,211,.035)}

.review-answer-comparison{
  display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:15px 18px 18px
}
.review-answer-box{
  padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:rgba(151,177,211,.02)
}
.review-answer-box span,.review-answer-box b{display:block}
.review-answer-box span{margin-bottom:7px;color:var(--muted);font-size:.6rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.review-answer-box b{font-size:.78rem;line-height:1.5;overflow-wrap:anywhere}
.review-answer-box.correct{border-color:rgba(54,211,153,.19);background:rgba(54,211,153,.045)}
.review-answer-box.correct b{color:#5bd5a1}
.review-answer-box.incorrect{border-color:rgba(255,107,125,.19);background:rgba(255,107,125,.04)}
.review-answer-box.incorrect b{color:#ff8796}

.review-code-answer{padding:15px 18px 18px}
.review-code-answer>.code-block{max-height:440px;overflow:auto;margin:0 0 13px}
.review-manual-grade-form{
  display:grid;grid-template-columns:150px minmax(0,1fr) auto;gap:10px;align-items:end;
  padding:13px;border:1px solid rgba(23,199,255,.14);border-radius:13px;background:rgba(23,199,255,.035)
}
.review-manual-grade-form label>span{font-size:.64rem}
.review-score-input{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.review-score-input input{border:0!important;border-radius:0!important;box-shadow:none!important}
.review-score-input b{padding:0 10px;color:var(--muted);font-size:.67rem}
.review-feedback-field textarea{min-height:44px;max-height:100px}
.review-existing-feedback{
  margin:0 18px 18px;padding:11px 12px;border-radius:11px;background:rgba(23,199,255,.035);border:1px solid rgba(23,199,255,.12)
}
.review-existing-feedback span{color:var(--accent2);font-size:.6rem;font-weight:850;text-transform:uppercase}
.review-existing-feedback p{margin:6px 0 0;font-size:.72rem;line-height:1.5}

.review-bottom-actions{display:flex;justify-content:space-between;gap:10px;margin:20px 0 34px}

@media(max-width:900px){
  .review-hero{align-items:flex-start}
  .review-summary-grid{grid-template-columns:1fr 1fr}
  .review-question-header{grid-template-columns:40px minmax(0,1fr) auto}
  .review-earned-points{grid-column:3;grid-row:2}
  .review-result-badge{grid-column:3}
  .review-manual-grade-form{grid-template-columns:130px minmax(0,1fr)}
  .review-manual-grade-form .btn{grid-column:1/-1}
}
@media(max-width:650px){
  .assessment-results-head{align-items:stretch!important}
  .assessment-export-btn{width:100%;justify-content:center}
  .review-hero{flex-direction:column;padding:19px}
  .review-score-block{width:100%;justify-content:center;padding-top:12px;border-top:1px solid var(--line)}
  .review-summary-grid{grid-template-columns:1fr 1fr}
  .review-question-header{grid-template-columns:36px minmax(0,1fr);padding:14px}
  .review-result-badge{grid-column:2;grid-row:auto;justify-self:start}
  .review-earned-points{grid-column:2;grid-row:auto;text-align:left}
  .review-mcq-options,.review-tf-options{grid-template-columns:1fr;padding:12px 14px 15px}
  .review-answer-comparison{grid-template-columns:1fr;padding:12px 14px 15px}
  .review-code-answer{padding:12px 14px 15px}
  .review-manual-grade-form{grid-template-columns:1fr}
  .review-manual-grade-form .btn{width:100%}
  .review-bottom-actions{flex-direction:column}
  .review-bottom-actions .btn{width:100%}
}
@media(max-width:390px){
  .review-summary-grid{grid-template-columns:1fr}
  .review-score-ring{width:82px;height:82px;flex-basis:82px}
}
/* ==============================================================
   PSAU Code Campus LMS · Activity Problem Reader Patch v1.4.3
   ============================================================== */

.activity-workspace-v2{
  --activity-problem-width:390px;
  --activity-problem-font:15px;
  display:grid!important;
  grid-template-columns:var(--activity-problem-width) 10px minmax(0,1fr)!important;
  gap:0!important;
  align-items:start;
  width:100%;
  min-width:0;
}
.activity-workspace-v2>.java-ide{min-width:0}

.activity-problem-pane{min-width:0;width:100%}
.activity-problem-card{
  position:sticky;
  top:82px;
  display:flex;
  flex-direction:column;
  height:min(760px,calc(100vh - 105px));
  min-height:520px;
  overflow:hidden;
  padding:0!important;
  border-radius:20px!important;
}

.activity-problem-head{
  flex:0 0 auto;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:17px 17px 14px;
  border-bottom:1px solid var(--line);
  background:
    radial-gradient(circle at 10% 0%,rgba(124,92,255,.08),transparent 35%),
    linear-gradient(135deg,rgba(124,92,255,.035),rgba(23,199,255,.018));
}
.activity-problem-head h2{
  margin:.22rem 0 2px;
  font-size:1.15rem;
  letter-spacing:-.025em
}
.activity-problem-head>div:first-child>small{
  display:block;
  max-width:240px;
  color:var(--muted);
  font-size:.64rem;
  line-height:1.4
}

.activity-problem-tools{
  display:flex;
  align-items:center;
  gap:4px;
  flex:0 0 auto
}
.problem-tool{
  min-width:34px;
  height:34px;
  padding:0 8px;
  border:1px solid var(--line);
  border-radius:9px;
  background:rgba(151,177,211,.035);
  color:var(--muted);
  font-size:.68rem;
  font-weight:800;
  transition:.18s
}
.problem-tool:hover{
  color:var(--text);
  border-color:rgba(23,199,255,.24);
  background:rgba(23,199,255,.055);
  transform:translateY(-1px)
}
.problem-tool.read-tool{
  display:flex;
  align-items:center;
  gap:5px;
  color:var(--accent2)
}
.problem-tool.read-tool span{font-size:.8rem}
.problem-tool.collapse-tool{
  font-size:1.15rem;
  padding:0;
  width:34px
}

.activity-problem-body{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:18px 18px 22px;
  scroll-behavior:smooth;
  scrollbar-width:thin;
  scrollbar-color:rgba(111,138,171,.35) transparent
}
.activity-problem-body:focus-visible{
  outline:2px solid rgba(23,199,255,.28);
  outline-offset:-3px
}
.activity-problem-copy{
  color:var(--text);
  font-size:var(--activity-problem-font);
  line-height:1.78;
  letter-spacing:.003em;
  overflow-wrap:anywhere
}
.activity-problem-copy::first-line{font-weight:550}
:root[data-theme="light"] .activity-problem-copy{color:#465d7d}

.problem-attachment-wrap{margin-top:18px;padding-top:15px;border-top:1px solid var(--line)}
.problem-attachment{
  display:flex!important;
  align-items:center;
  gap:10px;
  width:100%;
  padding:11px 12px!important;
  border-radius:12px!important
}
.problem-attachment>span:first-child{
  width:34px;height:34px;flex:0 0 34px;
  display:grid;place-items:center;
  border-radius:10px;
  background:rgba(23,199,255,.08);
  color:var(--accent2);
  font-weight:900
}
.problem-attachment b,.problem-attachment small{display:block}
.problem-attachment b{font-size:.7rem}
.problem-attachment small{margin-top:2px;color:var(--muted);font-size:.59rem}

.activity-problem-footer{
  flex:0 0 auto;
  padding:11px 13px 13px;
  border-top:1px solid var(--line);
  background:rgba(151,177,211,.02)
}
.problem-status{display:flex;align-items:center;gap:9px}
.problem-status-icon{
  width:34px;height:34px;flex:0 0 34px;
  display:grid;place-items:center;
  border-radius:10px;
  font-weight:900
}
.problem-status b,.problem-status small{display:block}
.problem-status b{font-size:.7rem}
.problem-status small{margin-top:2px;color:var(--muted);font-size:.59rem}
.submitted-status .problem-status-icon{
  background:rgba(23,199,255,.09);color:var(--accent2)
}
.grade-status .problem-status-icon{
  background:rgba(54,211,153,.09);color:var(--green)
}
.neutral-status .problem-status-icon{
  background:rgba(124,92,255,.09);color:#a99bff
}
.problem-feedback{
  margin-top:9px;
  padding:9px 10px;
  border:1px solid rgba(54,211,153,.13);
  border-radius:10px;
  background:rgba(54,211,153,.035)
}
.problem-feedback span{
  color:var(--green);
  font-size:.56rem;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.06em
}
.problem-feedback p{
  margin:5px 0 0;
  color:var(--text);
  font-size:.66rem;
  line-height:1.45
}

/* Desktop resize handle between instructions and editor. */
.activity-problem-resizer{
  position:sticky;
  top:82px;
  align-self:start;
  width:10px;
  height:min(760px,calc(100vh - 105px));
  min-height:520px;
  cursor:col-resize;
  touch-action:none;
  display:grid;
  place-items:center;
  z-index:4
}
.activity-problem-resizer span{
  width:3px;
  height:48px;
  border-radius:999px;
  background:rgba(101,126,155,.18);
  transition:.18s
}
.activity-problem-resizer:hover span,
body.activity-problem-resizing .activity-problem-resizer span{
  height:72px;
  background:rgba(23,199,255,.48)
}
body.activity-problem-resizing,
body.activity-problem-resizing *{
  cursor:col-resize!important;
  user-select:none!important
}

/* Hide problem pane and maximize coding space. */
.activity-workspace-v2.problem-collapsed{
  grid-template-columns:0 0 minmax(0,1fr)!important
}
.activity-workspace-v2.problem-collapsed .activity-problem-pane,
.activity-workspace-v2.problem-collapsed .activity-problem-resizer{
  width:0;
  overflow:hidden;
  opacity:0;
  pointer-events:none
}
.problem-open-btn.problem-is-hidden{
  border-color:rgba(23,199,255,.28)!important;
  background:rgba(23,199,255,.07)!important;
  color:var(--accent2)!important
}

/* Make the Java editor use the screen more comfortably beside the reader. */
.activity-workspace-v2 .java-ide{
  border-radius:20px;
  overflow:hidden
}
.activity-workspace-v2 .java-ide-body{
  min-height:470px
}
.activity-workspace-v2 .java-editor-shell,
.activity-workspace-v2 .java-code-editor{
  min-height:430px
}

/* Dedicated full-screen reading mode. */
body.problem-reader-open{overflow:hidden}
.problem-reader-overlay{
  position:fixed;
  inset:0;
  z-index:700;
  display:grid;
  place-items:center;
  padding:22px;
  background:rgba(3,9,16,.72);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  opacity:0;
  transition:opacity .18s ease
}
.problem-reader-overlay[hidden]{display:none!important}
.problem-reader-overlay.show{opacity:1}
.problem-reader-card{
  width:min(900px,100%);
  height:min(820px,92vh);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:25px;
  background:var(--panel-solid);
  box-shadow:0 35px 110px rgba(0,0,0,.48);
  transform:translateY(10px) scale(.992);
  transition:transform .22s cubic-bezier(.2,.85,.25,1)
}
.problem-reader-overlay.show .problem-reader-card{transform:none}
.problem-reader-head{
  flex:0 0 auto;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:22px 24px 18px;
  border-bottom:1px solid var(--line);
  background:
    radial-gradient(circle at 10% 0%,rgba(124,92,255,.09),transparent 34%),
    linear-gradient(135deg,rgba(124,92,255,.04),rgba(23,199,255,.02))
}
.problem-reader-head h2{
  margin:.3rem 0 4px;
  font-size:1.6rem;
  letter-spacing:-.04em
}
.problem-reader-head p{
  margin:0;
  color:var(--muted);
  font-size:.7rem
}
.problem-reader-actions{display:flex;align-items:center;gap:5px}
.problem-reader-close{
  width:38px;height:38px;
  border:1px solid var(--line);
  border-radius:11px;
  background:transparent;
  color:var(--muted);
  font-size:1.2rem
}
.problem-reader-close:hover{color:var(--text);background:rgba(151,177,211,.06)}

.problem-reader-scroll{
  flex:1;
  min-height:0;
  overflow-y:auto;
  padding:30px clamp(24px,6vw,70px) 40px;
  background:
    linear-gradient(90deg,transparent,rgba(151,177,211,.012),transparent)
}
.problem-reader-copy{
  max-width:720px;
  margin:0 auto;
  color:var(--text);
  font-size:var(--activity-problem-font);
  line-height:1.9;
  letter-spacing:.003em;
  overflow-wrap:anywhere
}
.problem-reader-scroll .problem-attachment-wrap{
  max-width:720px;
  margin:24px auto 0
}
.problem-reader-footer{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:12px 18px;
  border-top:1px solid var(--line);
  background:var(--panel-solid)
}
.problem-reader-footer>span{
  color:var(--muted);
  font-size:.63rem
}
.problem-reader-footer kbd{
  padding:2px 5px;
  border:1px solid var(--line);
  border-radius:5px;
  background:rgba(151,177,211,.05);
  color:var(--text);
  font:700 .58rem ui-monospace,Consolas,monospace
}

/* Better typography for ordinary, non-Java activity instructions too. */
.activity-layout>.prose{
  font-size:.9rem;
  line-height:1.75
}

/* Tablet and mobile: problem goes above the editor instead of becoming too narrow. */
@media(max-width:900px){
  .activity-workspace-v2{
    display:flex!important;
    flex-direction:column!important;
    gap:12px!important
  }
  .activity-problem-pane{order:0;width:100%!important}
  .activity-problem-resizer{display:none!important}
  .activity-workspace-v2>.java-ide{order:1;width:100%}
  .activity-problem-card{
    position:relative;
    top:auto;
    width:100%;
    height:auto;
    min-height:0;
    max-height:none
  }
  .activity-problem-body{
    max-height:340px;
    padding:16px
  }
  .activity-problem-copy{
    line-height:1.72
  }
  .activity-problem-footer{
    padding:10px 12px
  }
  .problem-tool.collapse-tool{display:none}
  .problem-open-btn{display:none!important}
  .activity-workspace-v2 .java-ide-body{min-height:400px}
  .activity-workspace-v2 .java-editor-shell,
  .activity-workspace-v2 .java-code-editor{min-height:360px}
}

@media(max-width:620px){
  .activity-problem-head{
    padding:14px;
    align-items:flex-start
  }
  .activity-problem-head>div:first-child>small{display:none}
  .activity-problem-head h2{font-size:1.05rem}
  .activity-problem-tools{gap:3px}
  .problem-tool{
    min-width:32px;height:32px;padding:0 7px
  }
  .problem-tool.read-tool b{display:none}
  .activity-problem-body{
    max-height:300px;
    padding:15px;
  }
  .activity-problem-copy{
    font-size:max(14px,var(--activity-problem-font));
    line-height:1.72
  }

  .problem-reader-overlay{
    padding:0;
    align-items:stretch
  }
  .problem-reader-card{
    width:100%;
    height:100dvh;
    max-height:none;
    border:0;
    border-radius:0
  }
  .problem-reader-head{
    padding:15px 14px 13px
  }
  .problem-reader-head h2{
    font-size:1.2rem;
    max-width:62vw;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap
  }
  .problem-reader-head p{font-size:.62rem}
  .problem-reader-scroll{
    padding:22px 18px 34px
  }
  .problem-reader-copy{
    font-size:max(15px,var(--activity-problem-font));
    line-height:1.82
  }
  .problem-reader-footer{
    padding:10px 12px calc(10px + env(safe-area-inset-bottom))
  }
  .problem-reader-footer>span{display:none}
  .problem-reader-footer .btn{width:100%}
}

@media(max-width:390px){
  .activity-problem-tools .text-tool{display:none}
  .problem-reader-actions .text-tool{display:inline-block}
}

@media(prefers-reduced-motion:reduce){
  .problem-tool,
  .problem-reader-overlay,
  .problem-reader-card{
    transition:none!important
  }
}
/* ==============================================================
   PSAU CODE CAMPUS LMS · PREMIUM DESIGN SYSTEM v1.5.0
   Intentional product design: calmer surfaces, richer depth,
   custom iconography, local illustrations, restrained motion.
   ============================================================== */

:root{
  --premium-bg:#06101d;
  --premium-surface:#0d1b2d;
  --premium-surface-2:#112238;
  --premium-surface-3:#162a44;
  --premium-border:rgba(171,197,229,.13);
  --premium-border-strong:rgba(171,197,229,.22);
  --premium-text:#f2f7ff;
  --premium-muted:#92a6bf;
  --premium-primary:#715bff;
  --premium-primary-2:#4f79ff;
  --premium-cyan:#19c8ee;
  --premium-green:#49d8a4;
  --premium-shadow-sm:0 8px 26px rgba(0,0,0,.18);
  --premium-shadow-md:0 18px 52px rgba(0,0,0,.24);
  --premium-shadow-lg:0 34px 90px rgba(0,0,0,.32);
  --premium-ease:cubic-bezier(.2,.8,.2,1);
  --premium-radius:20px;
}
:root[data-theme="light"]{
  --premium-bg:#f3f7fc;
  --premium-surface:#ffffff;
  --premium-surface-2:#f7faff;
  --premium-surface-3:#eef4fb;
  --premium-border:#dce6f2;
  --premium-border-strong:#cad8e8;
  --premium-text:#102137;
  --premium-muted:#667b95;
  --premium-shadow-sm:0 7px 24px rgba(38,62,91,.08);
  --premium-shadow-md:0 17px 46px rgba(38,62,91,.11);
  --premium-shadow-lg:0 30px 80px rgba(38,62,91,.14);
}

html{background:var(--premium-bg)}
body{
  background:
    radial-gradient(circle at 18% -8%,rgba(113,91,255,.12),transparent 32%),
    radial-gradient(circle at 92% 16%,rgba(25,200,238,.085),transparent 27%),
    var(--premium-bg);
  color:var(--premium-text);
  font-feature-settings:"kern" 1,"liga" 1,"calt" 1;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-3;
  background-image:url('graphics/premium-grid.svg');
  background-size:160px 160px;
  opacity:.42;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.8),transparent 72%);
}
.premium-noise{
  position:fixed;inset:0;pointer-events:none;z-index:9999;opacity:.018;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
.ambient{opacity:.095;filter:blur(115px);animation-duration:18s}
.ambient-a{background:#715bff}
.ambient-b{background:#19c8ee}

.premium-page-progress{
  position:fixed;left:0;top:0;z-index:10000;width:6%;height:2px;
  background:linear-gradient(90deg,#715bff,#4f79ff,#19c8ee,#49d8a4);
  box-shadow:0 0 18px rgba(25,200,238,.35);
  transition:width .35s var(--premium-ease),opacity .3s ease;
}
.premium-page-progress.done{opacity:0;transition-delay:.18s}

.ui-icon{width:19px;height:19px;display:block;flex:0 0 19px}
.icon-btn .ui-icon{width:17px;height:17px}
.stat-icon .ui-icon{width:21px;height:21px}
.arrow .ui-icon{width:18px;height:18px}

.app-shell.premium-shell{grid-template-columns:268px minmax(0,1fr)}
.sidebar{
  width:268px;
  padding:18px 15px 16px;
  border-right:1px solid var(--premium-border);
  background:rgba(7,16,29,.93);
  -webkit-backdrop-filter:blur(26px) saturate(125%);
  backdrop-filter:blur(26px) saturate(125%);
  box-shadow:10px 0 40px rgba(0,0,0,.08);
}
:root[data-theme="light"] .sidebar{background:rgba(255,255,255,.94)}
.premium-brand{gap:11px;padding:6px 8px}
.brand-logo{width:43px;height:43px;flex:0 0 43px;display:block}
.brand.large .brand-logo{width:51px;height:51px}
.premium-brand b{letter-spacing:-.02em}
.premium-brand small{letter-spacing:.12em;font-size:.62rem}
.sidebar-caption{
  padding:25px 12px 8px;
  color:#64778f;
  font-size:.59rem;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.14em
}
.side-nav{margin-top:0;gap:5px}
.side-nav a{
  position:relative;
  gap:11px;
  min-height:45px;
  padding:10px 12px;
  border:1px solid transparent;
  border-radius:12px;
  color:#879ab2;
  font-size:.82rem;
  font-weight:720;
  transform:none!important;
  overflow:hidden
}
:root[data-theme="light"] .side-nav a{color:#667b94}
.side-nav a::after{
  content:"";position:absolute;left:0;top:50%;width:3px;height:18px;border-radius:0 4px 4px 0;
  background:linear-gradient(#8c75ff,#19c8ee);transform:translateY(-50%) scaleY(0);transition:.22s var(--premium-ease)
}
.side-nav a:hover{
  color:var(--premium-text);
  border-color:rgba(142,171,206,.09);
  background:rgba(153,183,220,.045)
}
.side-nav a.active{
  color:var(--premium-text);
  border-color:rgba(113,91,255,.17);
  background:linear-gradient(90deg,rgba(113,91,255,.13),rgba(25,200,238,.035));
  box-shadow:none
}
.side-nav a.active::after{transform:translateY(-50%) scaleY(1)}
.side-nav a.active .ui-icon{color:#69d8fa}

.sidebar-network-card{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:36px minmax(0,1fr) 7px;
  gap:9px;
  align-items:center;
  margin:22px 4px 12px;
  padding:11px;
  border:1px solid rgba(73,216,164,.12);
  border-radius:13px;
  background:rgba(73,216,164,.035)
}
.network-icon{
  width:36px;height:36px;display:grid;place-items:center;border-radius:10px;
  color:#5ee0ad;background:rgba(73,216,164,.07)
}
.sidebar-network-card b,.sidebar-network-card small{display:block}
.sidebar-network-card b{font-size:.66rem}
.sidebar-network-card small{margin-top:2px;color:#7388a1;font-size:.56rem}
.sidebar-network-card>i{
  width:7px;height:7px;border-radius:50%;background:#49d8a4;
  box-shadow:0 0 0 4px rgba(73,216,164,.08),0 0 14px rgba(73,216,164,.28)
}
.sidebar-foot{
  grid-template-columns:40px minmax(0,1fr) 36px;
  border-top:1px solid var(--premium-border);
  padding:13px 6px 2px
}
.mini-avatar,.profile-avatar{
  background:linear-gradient(145deg,#715bff,#4f79ff 56%,#19c8ee);
  box-shadow:0 7px 18px rgba(79,121,255,.18)
}
.app-main{grid-column:2;min-width:0}

.topbar{
  height:76px;
  padding:0 30px;
  border-bottom:1px solid var(--premium-border);
  background:rgba(6,16,29,.74);
  -webkit-backdrop-filter:blur(24px) saturate(130%);
  backdrop-filter:blur(24px) saturate(130%)
}
:root[data-theme="light"] .topbar{background:rgba(243,247,252,.78)}
.top-title small{font-size:.62rem;letter-spacing:.025em}
.top-title b{margin-top:2px;font-size:.98rem;letter-spacing:-.015em}
.server-pill{
  display:inline-flex;align-items:center;gap:7px;padding:6px 9px;
  border:1px solid rgba(73,216,164,.12);border-radius:999px;
  background:rgba(73,216,164,.035);color:#71869e;font-size:.62rem;font-weight:700
}
.server-pill i{width:6px;height:6px;border-radius:50%;background:#49d8a4;box-shadow:0 0 0 4px rgba(73,216,164,.07)}
.icon-btn{
  position:relative;overflow:hidden;
  border-color:var(--premium-border);
  background:rgba(141,171,207,.035);
  border-radius:10px;
  transition:transform .18s var(--premium-ease),border-color .18s,background .18s
}
.icon-btn:hover{transform:translateY(-1px);border-color:rgba(25,200,238,.22);background:rgba(25,200,238,.045)}

.premium-content{max-width:1560px;padding:28px 32px 44px}
.glass{
  background:linear-gradient(180deg,rgba(255,255,255,.018),transparent 30%),var(--premium-surface);
  border-color:var(--premium-border);
  box-shadow:var(--premium-shadow-sm);
  -webkit-backdrop-filter:none;
  backdrop-filter:none
}
:root[data-theme="light"] .glass{background:linear-gradient(180deg,#fff,#fcfdff)}
.panel{padding:24px}
.eyebrow{font-size:.62rem;letter-spacing:.13em;color:#2fc9ec}
.eyebrow:before{width:14px;height:1.5px;background:linear-gradient(90deg,#715bff,#19c8ee)}

.premium-hero{
  min-height:250px;
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);
  align-items:center;
  padding:34px 38px;
  border:1px solid var(--premium-border);
  border-radius:24px;
  background:
    radial-gradient(circle at 76% 26%,rgba(25,200,238,.07),transparent 30%),
    radial-gradient(circle at 15% 0%,rgba(113,91,255,.10),transparent 35%),
    var(--premium-surface);
  box-shadow:var(--premium-shadow-md)
}
.premium-hero::after{display:none}
.hero-copy{position:relative;z-index:2}
.premium-hero h1{
  max-width:780px;
  margin:.5rem 0 .75rem;
  font-size:clamp(2.15rem,4vw,3.8rem);
  line-height:1.02;
  letter-spacing:-.06em
}
.premium-hero p{max-width:720px;font-size:.92rem;line-height:1.7}
.hero-trust-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.hero-trust-row span{
  display:inline-flex;align-items:center;gap:7px;padding:7px 10px;
  border:1px solid var(--premium-border);border-radius:999px;
  background:rgba(142,171,206,.03);color:#8195ad;font-size:.64rem;font-weight:700
}
.hero-trust-row .ui-icon{width:14px;height:14px;color:#58d8ab}
.hero-visual{
  position:relative;min-height:205px;display:grid;place-items:center;isolation:isolate
}
.hero-visual img{width:min(100%,480px);height:auto;display:block;filter:drop-shadow(0 24px 40px rgba(0,0,0,.12))}
.hero-visual-glow{
  position:absolute;width:280px;height:180px;border-radius:50%;background:#4f79ff;opacity:.08;filter:blur(55px);z-index:-1
}
.hero-float-chip{
  position:absolute;display:inline-flex;align-items:center;gap:6px;padding:7px 9px;
  border:1px solid rgba(172,201,233,.16);border-radius:10px;
  background:rgba(13,27,45,.9);color:#b7c8db;font-size:.61rem;font-weight:750;
  box-shadow:0 12px 30px rgba(0,0,0,.16);animation:premiumFloat 5.5s ease-in-out infinite
}
:root[data-theme="light"] .hero-float-chip{background:rgba(255,255,255,.93);color:#58708b}
.hero-float-chip .ui-icon{width:13px;height:13px;color:#58d8ab}
.hero-float-chip.chip-a{left:7%;bottom:16%}
.hero-float-chip.chip-b{right:5%;top:18%;animation-delay:-2.4s}
@keyframes premiumFloat{50%{transform:translateY(-7px)}}

.stat-grid{gap:12px;margin:14px 0 34px}
.stat-card{
  position:relative;
  overflow:hidden;
  min-height:92px;
  padding:17px 18px;
  border-color:var(--premium-border);
  border-radius:16px;
  background:var(--premium-surface);
  box-shadow:var(--premium-shadow-sm);
  transition:transform .24s var(--premium-ease),border-color .24s,box-shadow .24s
}
.stat-card:hover{transform:translateY(-3px);border-color:rgba(113,91,255,.2);box-shadow:var(--premium-shadow-md)}
.stat-icon{
  width:43px;height:43px;border-radius:12px;
  color:#68dafa;
  background:linear-gradient(145deg,rgba(113,91,255,.10),rgba(25,200,238,.065));
  border:1px solid rgba(113,91,255,.09)
}
.stat-card b{font-size:1.42rem}
.stat-card small{font-size:.7rem}

.section-head{margin:30px 0 13px}
.section-head h1,.section-head h2{letter-spacing:-.035em}
.class-grid{gap:13px}
.class-card{
  min-height:190px;
  padding:20px;
  border-color:var(--premium-border);
  border-radius:18px;
  background:
    radial-gradient(circle at 100% 0%,rgba(25,200,238,.045),transparent 34%),
    var(--premium-surface);
  box-shadow:var(--premium-shadow-sm);
  transition:transform .25s var(--premium-ease),border-color .25s,box-shadow .25s
}
.class-card::after{
  content:"";position:absolute;inset:auto 0 0;height:3px;
  background:linear-gradient(90deg,#715bff,#4f79ff,#19c8ee);
  transform:scaleX(0);transform-origin:left;transition:transform .28s var(--premium-ease)
}
.class-card:hover{
  transform:translateY(-4px);
  border-color:rgba(113,91,255,.22);
  box-shadow:var(--premium-shadow-md)
}
.class-card:hover::after{transform:scaleX(1)}
.code-chip{
  padding:5px 8px;border-radius:8px;
  background:rgba(113,91,255,.075);border-color:rgba(113,91,255,.14);
  color:#aa9dff;font-size:.68rem
}
.class-card h3{margin:18px 0 5px;font-size:1.08rem;letter-spacing:-.025em}
.class-card p{font-size:.79rem;line-height:1.55}
.class-meta{font-size:.67rem}
.arrow{width:31px;height:31px;display:grid;place-items:center;border:1px solid var(--premium-border);border-radius:9px;color:#7f94ad}

.btn{
  position:relative;overflow:hidden;
  min-height:40px;
  border-color:var(--premium-border);
  border-radius:10px;
  padding:9px 14px;
  background:var(--premium-surface-2);
  font-size:.75rem;
  font-weight:780;
  transition:transform .17s var(--premium-ease),box-shadow .17s,border-color .17s,background .17s
}
.btn:hover{transform:translateY(-1px);filter:none;box-shadow:0 8px 20px rgba(0,0,0,.10)}
.btn.primary{
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(135deg,#715bff,#5578ff 56%,#18bfe8);
  box-shadow:0 9px 22px rgba(79,121,255,.20);
  color:#fff
}
.btn.primary:hover{box-shadow:0 12px 28px rgba(79,121,255,.27)}
.btn.ghost{background:transparent}
.btn.success{background:rgba(73,216,164,.07);border-color:rgba(73,216,164,.18);color:#58dca8}

.premium-ripple{
  position:absolute;z-index:0;width:8px;height:8px;border-radius:50%;
  background:currentColor;opacity:.12;pointer-events:none;
  transform:translate(-50%,-50%) scale(0);
  animation:premiumRipple .6s ease-out forwards
}
@keyframes premiumRipple{to{opacity:0;transform:translate(-50%,-50%) scale(20)}}
.btn>*:not(.premium-ripple),.icon-btn>*:not(.premium-ripple){position:relative;z-index:1}

input,select,textarea{
  border-color:var(--premium-border)!important;
  background:var(--premium-surface-2)!important;
  color:var(--premium-text)!important;
  border-radius:10px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.015)!important;
  transition:border-color .18s,box-shadow .18s,background .18s
}
input:hover,select:hover,textarea:hover{border-color:var(--premium-border-strong)!important}
input:focus,select:focus,textarea:focus{
  border-color:rgba(25,200,238,.42)!important;
  box-shadow:0 0 0 3px rgba(25,200,238,.075)!important;
  outline:none!important;
  background:var(--premium-surface)!important
}
label{font-size:.7rem;color:#8295ad}
:root[data-theme="light"] label{color:#5f7590}

table{border-collapse:separate;border-spacing:0}
.table-wrap{
  border:1px solid var(--premium-border);
  border-radius:14px;
  overflow:auto;
  background:var(--premium-surface)
}
.table-wrap table{min-width:680px}
thead th{
  background:var(--premium-surface-2);
  color:#758ba5;
  font-size:.58rem;
  letter-spacing:.07em;
  text-transform:uppercase;
  border-bottom:1px solid var(--premium-border)
}
tbody td{border-bottom:1px solid var(--premium-border);font-size:.75rem}
tbody tr:last-child td{border-bottom:0}
tbody tr{transition:background .15s}
tbody tr:hover{background:rgba(25,200,238,.018)}

.modal{
  background:rgba(2,8,15,.64);
  -webkit-backdrop-filter:blur(9px);
  backdrop-filter:blur(9px)
}
.modal-card{
  border-color:var(--premium-border-strong);
  box-shadow:var(--premium-shadow-lg);
  animation:premiumModalIn .24s var(--premium-ease)
}
@keyframes premiumModalIn{from{opacity:0;transform:translateY(14px) scale(.985)}}
.modal-close{border-radius:10px!important}

.course-banner,.assessment-head{
  border-color:var(--premium-border)!important;
  background:
    radial-gradient(circle at 90% 0%,rgba(25,200,238,.06),transparent 28%),
    radial-gradient(circle at 8% 0%,rgba(113,91,255,.08),transparent 32%),
    var(--premium-surface)!important;
  box-shadow:var(--premium-shadow-sm)
}
.course-tabs{
  border:1px solid var(--premium-border);
  border-radius:13px;
  padding:4px;
  background:var(--premium-surface);
  width:max-content;
  max-width:100%;
  overflow-x:auto
}
.course-tabs button{
  position:relative;overflow:hidden;
  border-radius:9px!important;
  border:0!important;
  background:transparent!important;
  color:#7a8fa8!important;
  font-size:.7rem!important
}
.course-tabs button.active{
  color:var(--premium-text)!important;
  background:var(--premium-surface-3)!important;
  box-shadow:inset 0 0 0 1px var(--premium-border)!important
}
.resource-card,.feed-card,.composer,.side-panel{
  border-color:var(--premium-border)!important;
  background:var(--premium-surface)!important;
  box-shadow:var(--premium-shadow-sm)!important
}
.resource-card{border-radius:15px!important}
.resource-card:hover{border-color:rgba(113,91,255,.20)!important;box-shadow:var(--premium-shadow-md)!important}
.resource-icon{
  border:1px solid rgba(113,91,255,.10)!important;
  background:linear-gradient(145deg,rgba(113,91,255,.09),rgba(25,200,238,.055))!important
}
.feed-card{border-radius:16px!important}

.badge{
  border-radius:999px!important;
  font-size:.57rem!important;
  letter-spacing:.045em!important;
  font-weight:820!important
}
.toast{
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr) 28px!important;
  align-items:center!important;
  gap:9px!important;
  border-color:var(--premium-border-strong)!important;
  border-radius:14px!important;
  background:rgba(13,27,45,.96)!important;
  box-shadow:var(--premium-shadow-lg)!important
}
:root[data-theme="light"] .toast{background:rgba(255,255,255,.97)!important}
.toast-icon{
  width:34px;height:34px;display:grid;place-items:center;border-radius:10px;
  background:rgba(113,91,255,.08);color:#7fdcf3
}
.toast-icon .ui-icon{width:17px;height:17px}
.toast>div b,.toast>div span{display:block}
.toast>div span{margin-top:1px;color:var(--premium-muted);font-size:.68rem}

.empty.premium-empty{
  position:relative;
  overflow:hidden;
  min-height:200px;
  padding-top:112px!important;
  border:1px dashed var(--premium-border-strong)!important;
  border-radius:17px!important;
  background:var(--premium-surface)!important
}
.empty.premium-empty::before{
  content:"";position:absolute;left:50%;top:10px;width:150px;height:100px;transform:translateX(-50%);
  background:url('graphics/empty-code.svg') center/contain no-repeat;opacity:.72
}
.empty.premium-empty>span:first-child{display:none!important}

.premium-interactive{position:relative}
.premium-interactive::before{
  content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;opacity:0;
  background:radial-gradient(220px circle at var(--pointer-x,50%) var(--pointer-y,50%),rgba(25,200,238,.055),transparent 68%);
  transition:opacity .22s
}
.premium-interactive:hover::before{opacity:1}

.public-shell.premium-public-shell{min-height:100vh}
.premium-auth-layout{
  min-height:100vh;
  max-width:1320px;
  margin:0 auto;
  padding:36px;
  display:grid;
  grid-template-columns:minmax(0,1.16fr) minmax(380px,.84fr);
  gap:40px;
  align-items:center
}
.premium-auth-hero{position:relative;padding:10px 0}
.premium-auth-hero h1{
  margin:.7rem 0 .8rem;
  font-size:clamp(3rem,6vw,5.4rem);
  line-height:.94;
  letter-spacing:-.072em
}
.premium-auth-hero>p{max-width:720px;font-size:.92rem;line-height:1.72}
.premium-feature-pills{display:flex;flex-wrap:wrap;gap:7px;margin:20px 0 10px}
.premium-feature-pills span{
  display:inline-flex;align-items:center;gap:6px;
  border-color:var(--premium-border)!important;background:var(--premium-surface)!important;
  color:#8397af!important;font-size:.64rem!important
}
.premium-feature-pills .ui-icon{width:14px;height:14px;color:#5ddcac}
.auth-artwork{
  position:absolute;right:-34px;top:12px;width:min(45vw,510px);z-index:-1;opacity:.28;pointer-events:none
}
.auth-artwork img{width:100%;height:auto}
.premium-terminal-card{
  max-width:620px;
  margin-top:18px!important;
  border-color:var(--premium-border)!important;
  background:#07101c!important;
  box-shadow:var(--premium-shadow-md)!important
}
.auth-panel{
  padding:32px!important;
  border-color:var(--premium-border-strong)!important;
  background:var(--premium-surface)!important;
  box-shadow:var(--premium-shadow-lg)!important
}
.auth-panel h2{letter-spacing:-.035em}
.auth-panel::before{
  content:"";display:block;width:42px;height:42px;margin-bottom:18px;
  background:url('graphics/brand-mark.svg') center/contain no-repeat
}
.auth-panel .eyebrow{display:none}

body:not(.premium-ready) .premium-content,
body:not(.premium-ready) .premium-auth-layout{opacity:0;transform:translateY(6px)}
.premium-ready .premium-content,
.premium-ready .premium-auth-layout{
  opacity:1;transform:none;
  transition:opacity .38s ease,transform .48s var(--premium-ease)
}
.reveal{transition-duration:.42s!important;transition-timing-function:var(--premium-ease)!important}
.theme-transitioning,.theme-transitioning *{transition:background-color .25s,color .25s,border-color .25s!important}

body.keyboard-user :focus-visible{
  outline:2px solid rgba(25,200,238,.75)!important;
  outline-offset:3px!important
}

/* Premium mobile navigation */
.mobile-nav-scrim{
  display:none;position:fixed;inset:0;z-index:29;background:rgba(2,8,15,.52);
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);opacity:0;transition:opacity .2s
}

@media(max-width:1100px){
  .premium-hero{grid-template-columns:minmax(0,1fr) 330px}
  .premium-hero h1{font-size:clamp(2.1rem,4.4vw,3.25rem)}
  .class-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .premium-auth-layout{grid-template-columns:1fr 390px;gap:28px}
}
@media(max-width:820px){
  .app-shell.premium-shell{display:block}
  .app-main{grid-column:auto}
  .sidebar{
    width:min(300px,86vw);
    transform:translateX(-104%);
    transition:transform .28s var(--premium-ease);
    box-shadow:18px 0 70px rgba(0,0,0,.32)
  }
  .sidebar.open{transform:translateX(0)}
  .mobile-nav-scrim{display:block;pointer-events:none}
  body.premium-nav-open .mobile-nav-scrim{opacity:1;pointer-events:auto}
  .topbar{padding:0 16px;height:68px}
  .premium-content{padding:20px 16px 36px}
  .premium-hero{
    min-height:0;grid-template-columns:1fr;padding:26px 24px
  }
  .hero-visual{min-height:180px;margin-top:5px}
  .hero-visual img{width:min(100%,420px)}
  .stat-grid{grid-template-columns:1fr 1fr}
  .premium-auth-layout{
    min-height:auto;grid-template-columns:1fr;padding:24px 18px 40px;gap:24px
  }
  .premium-auth-hero{padding-top:12px}
  .premium-auth-hero h1{font-size:clamp(2.9rem,13vw,4.7rem)}
  .auth-artwork{display:none}
  .auth-panel{max-width:620px;width:100%;justify-self:center}
}
@media(max-width:620px){
  .premium-content{padding:16px 12px 30px}
  .top-title small{display:none}
  .server-pill{display:none!important}
  .premium-hero{padding:22px 18px;border-radius:20px}
  .premium-hero h1{font-size:2.15rem}
  .premium-hero p{font-size:.82rem}
  .hero-visual{min-height:145px}
  .hero-float-chip{display:none}
  .hero-trust-row{gap:6px}
  .hero-trust-row span{font-size:.58rem;padding:6px 8px}
  .stat-grid{grid-template-columns:1fr 1fr;gap:8px}
  .stat-card{min-height:78px;padding:13px;gap:10px}
  .stat-icon{width:38px;height:38px;flex:0 0 38px}
  .stat-card b{font-size:1.15rem}
  .stat-card small{font-size:.61rem}
  .class-grid{grid-template-columns:1fr}
  .class-card{min-height:160px}
  .section-head{align-items:flex-start}
  .panel{padding:18px}
  .premium-auth-layout{padding:18px 13px 30px}
  .premium-auth-hero h1{font-size:2.85rem}
  .premium-feature-pills{display:grid;grid-template-columns:1fr 1fr}
  .premium-feature-pills span{justify-content:flex-start}
  .auth-panel{padding:23px 18px!important;border-radius:20px!important}
  .table-wrap{border-radius:12px}
  .modal-card{border-radius:20px!important}
}
@media(max-width:390px){
  .premium-feature-pills{grid-template-columns:1fr}
  .stat-grid{grid-template-columns:1fr}
  .stat-card{min-height:70px}
  .hero-visual{display:none}
  .premium-hero{grid-template-columns:1fr}
}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
  .premium-interactive::before{display:none!important}
}
/* ==============================================================
   PSAU Code Campus LMS · Student Directory & Account Management v1.5.1
   ============================================================== */

.manage-page-heading p{max-width:780px}
.premium-manage-tabs{
  display:flex;
  gap:4px;
  width:100%;
  padding:5px;
  border:1px solid var(--premium-border);
  border-radius:15px;
  background:var(--premium-surface);
  box-shadow:var(--premium-shadow-sm);
  overflow-x:auto;
  scrollbar-width:none
}
.premium-manage-tabs::-webkit-scrollbar{display:none}
.premium-manage-tabs button{
  flex:0 0 auto;
  display:inline-flex!important;
  align-items:center;
  gap:8px;
  min-height:48px;
  padding:9px 14px!important;
  border:0!important;
  border-radius:11px!important;
  background:transparent!important;
  color:var(--premium-muted)!important;
  font-size:.76rem!important;
  font-weight:760!important;
  white-space:nowrap
}
.premium-manage-tabs button .ui-icon{width:16px;height:16px}
.premium-manage-tabs button>i{
  min-width:21px;height:21px;display:grid;place-items:center;
  padding:0 5px;border-radius:999px;background:rgba(113,91,255,.10);
  color:#a99cff;font-style:normal;font-size:.57rem;font-weight:900
}
.premium-manage-tabs button.active{
  color:var(--premium-text)!important;
  background:var(--premium-surface-3)!important;
  box-shadow:inset 0 0 0 1px var(--premium-border)!important
}
.premium-manage-tabs button.active .ui-icon{color:var(--premium-cyan)}

.student-directory{display:flex;flex-direction:column;gap:13px}
.student-directory-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-top:20px;
  padding:24px;
  border-radius:20px;
  background:
    radial-gradient(circle at 90% 0%,rgba(25,200,238,.055),transparent 30%),
    radial-gradient(circle at 8% 0%,rgba(113,91,255,.07),transparent 32%),
    var(--premium-surface)
}
.student-directory-intro{min-width:0}
.student-directory-intro h2{margin:.28rem 0 .35rem;font-size:1.55rem;letter-spacing:-.04em}
.student-directory-intro p{max-width:680px;margin:0;color:var(--premium-muted);font-size:.76rem;line-height:1.6}

.student-directory-metrics{
  flex:0 0 auto;
  display:grid;
  grid-template-columns:repeat(4,minmax(105px,1fr));
  gap:7px
}
.student-directory-metrics>div{
  min-width:105px;
  padding:11px 12px;
  border:1px solid var(--premium-border);
  border-radius:13px;
  background:rgba(144,174,210,.025)
}
.student-directory-metrics>div>span{
  width:28px;height:28px;display:grid;place-items:center;
  margin-bottom:8px;border-radius:8px;
  background:rgba(113,91,255,.08);color:#a99cff
}
.student-directory-metrics .ui-icon{width:14px;height:14px}
.student-directory-metrics b,.student-directory-metrics small{display:block}
.student-directory-metrics b{font-size:1.2rem;letter-spacing:-.04em}
.student-directory-metrics small{margin-top:2px;color:var(--premium-muted);font-size:.58rem}
.student-directory-metrics .metric-active>span{background:rgba(73,216,164,.07);color:var(--premium-green)}
.student-directory-metrics .metric-blocked>span{background:rgba(255,107,125,.07);color:#ff8c9a}
.student-directory-metrics .metric-match>span{background:rgba(25,200,238,.07);color:var(--premium-cyan)}

.student-academic-overview{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:13px
}
.student-distribution-card{padding:17px 18px;border-radius:17px}
.student-distribution-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.student-distribution-head b{display:block;margin-top:4px;font-size:.84rem}
.student-distribution-head>span{color:var(--premium-muted);font-size:.62rem}
.distribution-pills{display:flex;flex-wrap:wrap;gap:6px;margin-top:13px}
.distribution-pills>span{
  display:flex;align-items:center;gap:7px;
  padding:6px 8px 6px 9px;
  border:1px solid var(--premium-border);
  border-radius:9px;
  background:var(--premium-surface-2)
}
.distribution-pills b{font-size:.64rem;font-weight:720}
.distribution-pills i{
  min-width:20px;height:20px;padding:0 5px;display:grid;place-items:center;
  border-radius:6px;background:rgba(113,91,255,.08);
  color:#a99cff;font-style:normal;font-size:.56rem;font-weight:900
}
.school-year-pills i{background:rgba(25,200,238,.07);color:var(--premium-cyan)}

.student-filter-panel{padding:16px 17px!important}
.student-search-main{
  display:grid;
  grid-template-columns:minmax(300px,1fr) auto minmax(190px,auto);
  gap:8px;
  align-items:start
}
.student-search-box{
  position:relative;
  display:flex!important;
  flex-direction:row!important;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:0 12px;
  border:1px solid var(--premium-border);
  border-radius:11px;
  background:var(--premium-surface-2)
}
.student-search-box>.ui-icon{width:16px;height:16px;color:#70869f}
.student-search-box input{
  min-width:0;
  min-height:40px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important
}
.student-search-box input:focus{box-shadow:none!important}
.search-clear{
  width:25px;height:25px;display:grid;place-items:center;border-radius:7px;
  color:var(--premium-muted);background:rgba(144,174,210,.04);font-size:1rem
}
.student-advanced-filter{
  position:relative;
  min-width:190px
}
.student-advanced-filter>summary{
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 11px;
  border:1px solid var(--premium-border);
  border-radius:11px;
  background:var(--premium-surface-2);
  color:var(--premium-muted);
  cursor:pointer;
  list-style:none;
  font-size:.68rem;
  font-weight:760
}
.student-advanced-filter>summary::-webkit-details-marker{display:none}
.student-advanced-filter>summary .ui-icon{width:15px;height:15px}
.student-advanced-filter>summary i{
  margin-left:auto;padding:3px 5px;border-radius:6px;
  background:rgba(25,200,238,.07);color:var(--premium-cyan);
  font-style:normal;font-size:.51rem;font-weight:900;text-transform:uppercase
}
.student-advanced-filter[open]>summary{
  border-color:rgba(25,200,238,.25);
  color:var(--premium-text)
}
.advanced-filter-grid{
  position:absolute;
  right:0;
  top:49px;
  z-index:15;
  width:min(760px,calc(100vw - 90px));
  display:grid;
  grid-template-columns:repeat(3,minmax(180px,1fr));
  gap:10px;
  padding:15px;
  border:1px solid var(--premium-border-strong);
  border-radius:15px;
  background:var(--premium-surface);
  box-shadow:var(--premium-shadow-lg)
}
.advanced-filter-grid label{gap:5px}
.advanced-filter-actions{
  grid-column:1/-1;
  display:flex;
  justify-content:flex-end;
  gap:7px;
  padding-top:4px
}

.student-filter-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:12px;
  padding-top:11px;
  border-top:1px solid var(--premium-border)
}
.student-filter-summary>div:first-child{display:flex;align-items:baseline;gap:5px}
.student-filter-summary b{font-size:.86rem}
.student-filter-summary span{color:var(--premium-muted);font-size:.66rem}
.student-filter-summary small{color:#667d97;font-size:.6rem}
.active-filter-chips{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}
.active-filter-chips span{
  padding:4px 7px;border-radius:7px;
  border:1px solid rgba(25,200,238,.11);
  background:rgba(25,200,238,.035);
  color:#75cce0!important;font-size:.57rem!important
}

.student-table-card{
  overflow:hidden;
  border-radius:18px
}
.student-table-scroll{overflow:auto}
.student-directory-table{
  width:100%;
  min-width:1050px;
  border-collapse:separate;
  border-spacing:0
}
.student-directory-table th{padding:12px 14px}
.student-directory-table td{padding:13px 14px;vertical-align:middle}
.student-directory-table tbody tr{transition:background .15s,opacity .15s}
.student-directory-table tbody tr:hover{background:rgba(25,200,238,.017)}
.student-row-blocked{opacity:.68}
.student-row-blocked:hover{opacity:.85}

.student-identity-cell{display:flex;align-items:center;gap:10px;min-width:240px}
.student-avatar,.student-manager-avatar{
  width:39px;height:39px;flex:0 0 39px;
  display:grid;place-items:center;
  border:1px solid rgba(113,91,255,.13);
  border-radius:12px;
  background:linear-gradient(145deg,rgba(113,91,255,.12),rgba(25,200,238,.07));
  color:#b3a8ff;
  font-size:.69rem;
  font-weight:900;
  letter-spacing:.035em
}
.student-identity-cell>div:last-child{min-width:0}
.student-identity-cell b{display:block;font-size:.75rem;overflow-wrap:anywhere}
.student-identity-cell span{
  display:flex;align-items:center;gap:5px;
  margin-top:3px;color:var(--premium-muted);
  font-size:.59rem;overflow-wrap:anywhere
}
.student-identity-cell span .ui-icon{width:11px;height:11px}

.academic-placement{min-width:155px}
.academic-placement b,.academic-placement span,.academic-placement small{display:block}
.academic-placement b{font-size:.7rem}
.academic-placement span{margin-top:2px;color:#879bb3;font-size:.64rem}
.academic-placement small{margin-top:4px;color:#657b94;font-size:.57rem}

.student-class-chips{display:flex;flex-wrap:wrap;gap:4px;max-width:210px}
.student-class-chips span{
  padding:4px 6px;
  border:1px solid var(--premium-border);
  border-radius:7px;
  background:var(--premium-surface-2);
  color:#879bb4;
  font:700 .56rem ui-monospace,Consolas,monospace
}
.student-class-chips .more-classes{color:#a99cff;background:rgba(113,91,255,.055)}

.student-status{
  width:max-content;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 8px;
  border-radius:999px;
  font-size:.59rem;
  font-weight:820
}
.student-status i{width:6px;height:6px;border-radius:50%}
.student-status.active{color:#5fdca9;background:rgba(73,216,164,.06);border:1px solid rgba(73,216,164,.12)}
.student-status.active i{background:#49d8a4;box-shadow:0 0 0 3px rgba(73,216,164,.07)}
.student-status.blocked{color:#ff8e9b;background:rgba(255,107,125,.055);border:1px solid rgba(255,107,125,.12)}
.student-status.blocked i{background:#ff6b7d}
.student-created{color:var(--premium-muted);font-size:.62rem;white-space:nowrap}
.student-actions-col{text-align:right!important}
.student-action-btn{
  display:inline-flex;align-items:center;gap:6px;
  min-height:34px;padding:6px 9px;
  border:1px solid var(--premium-border);
  border-radius:9px;
  background:transparent;
  color:#7f94ad;
  font-size:.62rem;font-weight:760
}
.student-action-btn:hover{color:var(--premium-text);border-color:rgba(25,200,238,.22);background:rgba(25,200,238,.035)}
.student-action-btn .ui-icon{width:13px;height:13px;color:var(--premium-cyan)}
.student-empty{border:0!important;border-radius:0!important;box-shadow:none!important}

.student-mobile-list{display:none}

.student-pagination{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 15px;
  border-top:1px solid var(--premium-border)
}
.student-pagination>a,.student-pagination>div>a{
  min-width:33px;height:33px;
  display:inline-flex;align-items:center;justify-content:center;
  padding:0 9px;border:1px solid var(--premium-border);border-radius:8px;
  color:var(--premium-muted);font-size:.61rem;font-weight:760
}
.student-pagination>div{display:flex;align-items:center;gap:4px}
.student-pagination>div>span{color:#657b94;padding:0 3px}
.student-pagination a.active{
  color:#fff;border-color:transparent;
  background:linear-gradient(135deg,#715bff,#4f79ff,#19c8ee)
}
.student-pagination a.disabled{pointer-events:none;opacity:.35}

/* Student management modal */
.student-manager-modal{
  align-items:center;
  justify-content:center;
  padding:20px
}
.student-manager-card{
  width:min(930px,100%);
  max-height:min(850px,94vh);
  overflow:hidden;
  padding:0!important;
  border-radius:22px;
  box-shadow:var(--premium-shadow-lg)
}
.student-manager-header{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:18px 20px;
  border-bottom:1px solid var(--premium-border);
  background:
    radial-gradient(circle at 8% 0%,rgba(113,91,255,.08),transparent 35%),
    var(--premium-surface)
}
.student-manager-identity{display:flex;align-items:center;gap:12px;min-width:0}
.student-manager-avatar{width:48px;height:48px;flex-basis:48px;border-radius:14px;font-size:.8rem}
.student-manager-identity h2{margin:.2rem 0 .1rem;font-size:1.25rem;letter-spacing:-.035em}
.student-manager-identity p{margin:0;color:var(--premium-muted);font-size:.64rem;overflow-wrap:anywhere}
.student-manager-close{position:static!important;flex:0 0 38px}
.student-manager-body{
  display:grid;
  grid-template-columns:185px minmax(0,1fr);
  min-height:500px;
  max-height:calc(94vh - 86px)
}
.student-manager-tabs{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:14px 10px;
  border-right:1px solid var(--premium-border);
  background:rgba(144,174,210,.018)
}
.student-manager-tabs button{
  display:flex;align-items:center;gap:8px;
  min-height:40px;padding:8px 10px;
  border:1px solid transparent;border-radius:9px;
  background:transparent;color:var(--premium-muted);
  text-align:left;font-size:.66rem;font-weight:760
}
.student-manager-tabs button .ui-icon{width:14px;height:14px}
.student-manager-tabs button:hover{color:var(--premium-text);background:rgba(144,174,210,.035)}
.student-manager-tabs button.active{
  color:var(--premium-text);
  border-color:rgba(113,91,255,.12);
  background:linear-gradient(90deg,rgba(113,91,255,.09),rgba(25,200,238,.025))
}
.student-manager-tabs button.active .ui-icon{color:var(--premium-cyan)}
.student-manager-panels{
  min-width:0;
  overflow-y:auto;
  padding:20px
}
.student-detail-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px
}
.student-detail-grid>div{
  min-width:0;
  padding:12px 13px;
  border:1px solid var(--premium-border);
  border-radius:11px;
  background:var(--premium-surface-2)
}
.student-detail-grid span,.student-detail-grid b{display:block}
.student-detail-grid span{
  margin-bottom:5px;
  color:var(--premium-muted);
  font-size:.56rem;font-weight:780;text-transform:uppercase;letter-spacing:.055em
}
.student-detail-grid b{font-size:.72rem;overflow-wrap:anywhere}
.student-detail-classes{margin-top:18px}
.student-detail-classes>div{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.student-detail-classes>div>span{
  min-width:160px;
  padding:8px 10px;
  border:1px solid var(--premium-border);
  border-radius:10px;
  background:var(--premium-surface-2);
  color:var(--premium-muted);
  font-size:.6rem
}
.student-detail-classes>div>span b{display:block;margin-bottom:2px;color:var(--premium-text);font:800 .62rem ui-monospace,Consolas,monospace}
.student-manager-section-head{margin-bottom:15px}
.student-manager-section-head h3{margin:.25rem 0 .25rem;font-size:1.08rem}
.student-manager-section-head p{margin:0;color:var(--premium-muted);font-size:.66rem;line-height:1.55}

.password-admin-field{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}
.security-note{
  display:flex;align-items:flex-start;gap:9px;
  padding:11px 12px;
  border:1px solid rgba(245,196,81,.13);
  border-radius:11px;
  background:rgba(245,196,81,.035)
}
.security-note>.ui-icon{width:17px;height:17px;flex:0 0 17px;color:#dab45e}
.security-note p{margin:0;color:var(--premium-muted);font-size:.62rem;line-height:1.5}
.student-access-card{
  display:flex;align-items:center;gap:12px;
  margin-bottom:13px;padding:15px;
  border:1px solid rgba(73,216,164,.13);
  border-radius:13px;background:rgba(73,216,164,.035)
}
.student-access-card.is-blocked{border-color:rgba(255,107,125,.13);background:rgba(255,107,125,.035)}
.student-access-icon{
  width:43px;height:43px;flex:0 0 43px;display:grid;place-items:center;
  border-radius:12px;background:rgba(73,216,164,.08);color:var(--premium-green)
}
.student-access-card.is-blocked .student-access-icon{background:rgba(255,107,125,.08);color:#ff8f9c}
.student-access-card span,.student-access-card b{display:block}
.student-access-card span{color:var(--premium-muted);font-size:.57rem;text-transform:uppercase;font-weight:800}
.student-access-card b{margin-top:2px;font-size:.84rem}
.student-access-card p{margin:4px 0 0;color:var(--premium-muted);font-size:.62rem}
.btn.danger{
  border-color:rgba(255,107,125,.16);
  background:rgba(255,107,125,.07);
  color:#ff91a0
}

/* Filter dropdown should not be clipped by parent. */
.student-filter-panel{overflow:visible!important}

@media(max-width:1180px){
  .student-directory-hero{align-items:flex-start;flex-direction:column}
  .student-directory-metrics{width:100%;grid-template-columns:repeat(4,1fr)}
}
@media(max-width:900px){
  .student-academic-overview{grid-template-columns:1fr}
  .student-search-main{grid-template-columns:minmax(0,1fr) auto}
  .student-advanced-filter{grid-column:1/-1;width:100%}
  .student-advanced-filter>summary{justify-content:flex-start}
  .advanced-filter-grid{
    position:static;
    width:100%;
    margin-top:7px;
    grid-template-columns:1fr 1fr;
    box-shadow:none
  }
  .student-manager-card{width:min(760px,100%)}
}
@media(max-width:760px){
  .student-directory-metrics{grid-template-columns:1fr 1fr}
  .student-filter-panel{padding:13px!important}
  .student-search-main{grid-template-columns:1fr}
  .student-search-main>.btn{width:100%}
  .advanced-filter-grid{grid-template-columns:1fr}
  .advanced-filter-actions{flex-direction:column}
  .advanced-filter-actions .btn{width:100%}
  .student-filter-summary{align-items:flex-start;flex-direction:column}
  .active-filter-chips{justify-content:flex-start}

  .student-table-scroll{display:none}
  .student-mobile-list{display:flex;flex-direction:column;gap:9px;padding:10px}
  .student-mobile-card{
    padding:13px;
    border:1px solid var(--premium-border);
    border-radius:13px;
    background:var(--premium-surface-2)
  }
  .student-mobile-card.blocked{opacity:.72}
  .student-mobile-head{
    display:grid;grid-template-columns:39px minmax(0,1fr) auto;gap:9px;align-items:center
  }
  .student-mobile-head>div:nth-child(2){min-width:0}
  .student-mobile-head b,.student-mobile-head span{display:block}
  .student-mobile-head b{font-size:.72rem;overflow-wrap:anywhere}
  .student-mobile-head>div:nth-child(2)>span{margin-top:2px;color:var(--premium-muted);font-size:.59rem}
  .student-mobile-info{
    display:grid;grid-template-columns:1fr 1fr;gap:6px;
    margin:11px 0
  }
  .student-mobile-info>div{
    padding:8px 9px;border-radius:9px;background:var(--premium-surface);
    border:1px solid var(--premium-border)
  }
  .student-mobile-info span,.student-mobile-info b{display:block}
  .student-mobile-info span{color:var(--premium-muted);font-size:.53rem;text-transform:uppercase;font-weight:780}
  .student-mobile-info b{margin-top:3px;font-size:.62rem;overflow-wrap:anywhere}
  .student-pagination{flex-wrap:wrap;justify-content:center}
  .student-pagination>div{order:-1;width:100%;justify-content:center}

  .student-manager-modal{padding:0;align-items:end}
  .student-manager-card{
    width:100%;max-height:94dvh;border-radius:22px 22px 0 0
  }
  .student-manager-body{display:flex;flex-direction:column;min-height:0;max-height:calc(94dvh - 83px)}
  .student-manager-tabs{
    flex:0 0 auto;
    flex-direction:row;
    overflow-x:auto;
    padding:8px;
    border-right:0;
    border-bottom:1px solid var(--premium-border);
    scrollbar-width:none
  }
  .student-manager-tabs::-webkit-scrollbar{display:none}
  .student-manager-tabs button{flex:0 0 auto}
  .student-manager-panels{padding:15px}
}
@media(max-width:520px){
  .premium-manage-tabs{margin-inline:-2px}
  .premium-manage-tabs button{min-height:44px;padding:8px 10px!important}
  .premium-manage-tabs button>span{display:none}
  .premium-manage-tabs button .ui-icon{width:18px;height:18px}
  .student-directory-hero{padding:17px}
  .student-directory-metrics{gap:6px}
  .student-directory-metrics>div{min-width:0;padding:9px}
  .student-directory-metrics>div>span{width:25px;height:25px;margin-bottom:6px}
  .student-directory-metrics b{font-size:1.05rem}
  .student-directory-metrics small{font-size:.53rem}
  .student-distribution-card{padding:14px}
  .student-mobile-info{grid-template-columns:1fr}
  .student-manager-header{padding:14px}
  .student-manager-avatar{width:43px;height:43px;flex-basis:43px}
  .student-manager-identity h2{font-size:1.05rem}
  .student-manager-tabs button span{display:none}
  .student-manager-tabs button .ui-icon{width:17px;height:17px}
  .student-detail-grid{grid-template-columns:1fr}
  .password-admin-field{grid-template-columns:1fr}
}
