:root{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;color:#0f172a;background:#f8fafc}*{box-sizing:border-box}body{margin:0}.portal-shell{min-height:100vh;background-color:#f8fafc;background-image:radial-gradient(at 0% 0%,rgba(37,99,235,.08) 0px,transparent 50%),radial-gradient(at 100% 0%,rgba(16,185,129,.07) 0px,transparent 50%);display:flex;flex-direction:column}.portal-toast{position:fixed;top:16px;right:16px;z-index:9999;padding:.7rem 1.1rem;border-radius:10px;font-size:.85rem;font-weight:600;color:#fff;background:#0f172a;box-shadow:0 10px 25px #0f172a33}.portal-toast.success{background:#10b981}.portal-toast.error{background:#ef4444}.portal-topbar{background:#fffffff5;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid #e2e8f0;padding:.85rem 2rem;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;position:sticky;top:0;z-index:30}.portal-brand{display:flex;align-items:center;gap:.75rem}.portal-logo{width:38px;height:38px;border-radius:9px;object-fit:contain}.portal-brand-row{display:flex;align-items:center;gap:.5rem}.portal-brand-row strong{font-size:1.08rem}.portal-brand small{color:#64748b;font-size:.76rem}.portal-badge{display:inline-flex;align-items:center;gap:4px;background:#eff6ff;color:#2563eb;border:1px solid #bfdbfe;font-size:.72rem;font-weight:700;padding:.16rem .55rem;border-radius:999px}.portal-userbar{display:flex;align-items:center;gap:.75rem}.portal-userpill{display:flex;align-items:center;gap:.55rem;padding:.3rem .75rem .3rem .35rem;background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px}.portal-userpill strong{display:block;font-size:.82rem}.portal-userpill small{display:block;font-size:.72rem;color:#64748b}.portal-avatar{width:30px;height:30px;border-radius:50%;background:#2563eb;color:#fff;font-weight:700;font-size:.78rem;display:inline-flex;align-items:center;justify-content:center}.portal-main{flex:1;padding:1.75rem 1.25rem 3rem}.portal-container{max-width:1100px;margin:0 auto;display:flex;flex-direction:column;gap:1.25rem}.login-wrap{min-height:calc(100vh - 150px);display:flex;align-items:center;justify-content:center}.login-card{width:100%;max-width:420px;background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:2rem;box-shadow:0 12px 32px #0f172a14;display:flex;flex-direction:column;gap:1rem}.login-icon{width:52px;height:52px;border-radius:14px;background:#eff6ff;display:flex;align-items:center;justify-content:center;margin:0 auto}.login-card h2{margin:0;text-align:center;font-size:1.25rem}.login-card p{margin:0;text-align:center;font-size:.84rem;color:#64748b;line-height:1.45}.field{display:flex;flex-direction:column;gap:.35rem}.field label{display:flex;align-items:center;gap:5px;font-size:.78rem;font-weight:600;color:#334155}.field input{padding:.6rem .75rem;border:1px solid #cbd5e1;border-radius:8px;font-size:.88rem;font-family:inherit}.field input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}.pass-row{display:flex;gap:.4rem}.pass-row input{flex:1}.login-btn{width:100%;justify-content:center;padding:.72rem;margin-top:.35rem}.panel-card{background:#fffffff5;border:1px solid #e2e8f0;border-radius:14px;padding:1.25rem;box-shadow:0 4px 14px #0f172a0a}.section-bar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.75rem;margin-bottom:1rem}.section-bar h3{margin:0;font-size:1.02rem}.muted{margin:.2rem 0 0;font-size:.82rem;color:#64748b}.cards-stack{display:flex;flex-direction:column;gap:.75rem}.session-card{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;padding:1rem 1.1rem;background:#fff;border:1px solid #e2e8f0;border-radius:11px}.session-card.is-live{border-color:#10b981;background:#f0fdf4}.session-card h5{margin:.4rem 0 .15rem;font-size:.96rem}.sub-meta{margin:0;font-size:.8rem;color:#64748b}.badges-row{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem}.pill{display:inline-flex;align-items:center;padding:.18rem .55rem;border-radius:999px;font-size:.72rem;font-weight:700;text-transform:uppercase}.pill.live,.pill.present{background:#dcfce7;color:#15803d}.pill.upcoming{background:#dbeafe;color:#1d4ed8}.pill.half_present{background:#fef3c7;color:#b45309}.pill.absent{background:#fee2e2;color:#b91c1c}.date-chip{font-size:.76rem;color:#475569;background:#f1f5f9;padding:.18rem .55rem;border-radius:6px}.locked-pill{display:inline-flex;align-items:center;gap:4px;font-size:.76rem;font-weight:700;color:#b91c1c;background:#fee2e2;padding:.35rem .7rem;border-radius:999px}.classes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1rem}.enrolled-card{border:1px solid #e2e8f0;border-radius:11px;padding:1rem;background:#fff}.enrolled-head{display:flex;justify-content:space-between;align-items:center;gap:.5rem}.enrolled-head h4{margin:0;font-size:.98rem}.desc{margin:.4rem 0;font-size:.8rem;color:#64748b}.att-bar{margin-top:.75rem}.att-label{display:flex;justify-content:space-between;font-size:.78rem;color:#475569;margin-bottom:.3rem}.progress-track{height:7px;background:#e2e8f0;border-radius:999px;overflow:hidden}.progress-fill{height:100%;background:linear-gradient(90deg,#2563eb,#10b981);border-radius:999px}.validity{display:block;margin-top:.5rem;font-size:.74rem;color:#64748b}.empty-mini{text-align:center;padding:2rem 1rem;color:#475569;display:flex;flex-direction:column;align-items:center;gap:.5rem}.btn-primary,.btn-success,.btn-outline{display:inline-flex;align-items:center;gap:6px;padding:.52rem .95rem;border-radius:8px;font-size:.84rem;font-weight:600;cursor:pointer;border:1px solid transparent;text-decoration:none}.btn-sm{padding:.38rem .72rem;font-size:.79rem}.btn-xs{padding:.25rem .5rem;font-size:.74rem}.btn-primary{background:#2563eb;color:#fff}.btn-primary:disabled{opacity:.6;cursor:not-allowed}.btn-success{background:#10b981;color:#fff}.btn-outline{background:#fff;color:#334155;border-color:#cbd5e1}.btn-outline:disabled{opacity:.55;cursor:not-allowed}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a8c;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:1rem;z-index:9999}.modal-card{background:#fff;border-radius:14px;padding:1.4rem;width:100%;max-width:680px;max-height:90vh;overflow-y:auto;display:flex;flex-direction:column;gap:.9rem}.modal-head{display:flex;justify-content:space-between;align-items:center}.modal-head h3{margin:0;font-size:1.1rem}.res-block{border-top:1px solid #e2e8f0;padding-top:.85rem}.res-block h4{display:flex;align-items:center;gap:6px;margin:0 0 .5rem;font-size:.92rem}.video-player{width:100%;border-radius:8px;max-height:280px;background:#000}.notes-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:.75rem;font-size:.85rem;white-space:pre-wrap;margin:0}.chat-archive{max-height:200px;overflow-y:auto;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:.65rem;display:flex;flex-direction:column;gap:.4rem}.chat-item{font-size:.82rem;color:#334155}
