:root{font-family:"Cairo",sans-serif;color:#17233e;background:#f5f7fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh}.hidden{display:none!important}.muted{color:#77839a;margin:5px 0 0;font-size:14px}.eyebrow{color:#6480aa;font-weight:700;font-size:12px;margin:0 0 4px}.signin-wrap{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 15% 15%,#e3f0ff,transparent 34%),#f5f7fb}.signin-card{width:min(440px,100%);background:#fff;border:1px solid #e5eaf2;border-radius:28px;padding:38px;box-shadow:0 24px 70px #16346914;text-align:center}.brand-mark{margin:auto;width:58px;height:58px;display:grid;place-items:center;background:linear-gradient(145deg,#20b5df,#155eef);color:#fff;border-radius:19px;font-size:30px;font-weight:800;box-shadow:0 10px 24px #155eef30}.brand-mark.small{width:42px;height:42px;border-radius:14px;font-size:22px;margin:0}.signin-card h1,.topbar h1{margin:0;font-size:26px}.signin-card>.muted{margin:10px 0 24px}.primary{border:0;border-radius:13px;background:#155eef;color:#fff;padding:13px 18px;font:700 15px inherit;cursor:pointer}.primary:hover{background:#0f4ed0}.wide{width:100%}.error{color:#c03948;min-height:22px;font-size:13px}.shell{min-height:100vh;display:grid;grid-template-columns:250px 1fr}.sidebar{background:#fff;border-left:1px solid #e8edf4;padding:24px 16px;display:flex;flex-direction:column;min-height:100vh;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:11px;padding:0 8px 28px}.brand b{display:block;font-size:19px}.brand small{display:block;color:#8a95a9;font-size:12px}.sidebar nav{display:grid;gap:7px}.nav-item{border:0;background:transparent;text-align:right;color:#637089;border-radius:12px;padding:12px 14px;font:600 14px inherit;cursor:pointer}.nav-item span{display:inline-block;width:28px;font-size:18px}.nav-item.active,.nav-item:hover{color:#155eef;background:#edf4ff}.sidebar-foot{margin-top:auto;color:#7e8aa0;font-size:12px;padding:14px 6px}.online-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#22b981;margin-left:7px}.main-area{padding:28px clamp(18px,3vw,42px);min-width:0}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.account{display:flex;align-items:center;gap:12px;color:#64718a;font-size:13px}.ghost{border:1px solid #dfe5ef;background:#fff;border-radius:10px;padding:9px 12px;color:#52617b;font:600 13px inherit;cursor:pointer}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.stat-card{background:#fff;border:1px solid #e7ecf4;border-radius:18px;padding:19px;display:flex;align-items:center;gap:14px;box-shadow:0 8px 22px #23395b07}.stat-icon{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;font-size:23px}.blue{background:#e9f1ff;color:#2866db}.teal{background:#e4fbf6;color:#12a98b}.violet{background:#f1edff;color:#7e5be4}.amber{background:#fff4dc;color:#d89012}.stat-card small{display:block;color:#7b879d;font-size:12px}.stat-card strong{font-size:26px;display:block;margin-top:3px}.panel{background:#fff;border:1px solid #e7ecf4;border-radius:20px;padding:20px;box-shadow:0 8px 22px #23395b07;min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.panel h2{font-size:18px;margin:0}.text-button{border:0;background:none;color:#155eef;font:700 13px inherit;cursor:pointer}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;min-width:650px}th,td{text-align:right;padding:12px 10px;border-bottom:1px solid #eef1f6;font-size:13px;white-space:nowrap}th{color:#8591a5;font-weight:600}td{color:#34425e}.teacher-name{font-weight:700;color:#1d2c49}.teacher-id{font-family:monospace;color:#8591a5;font-size:11px}.pill{display:inline-flex;border-radius:99px;padding:4px 9px;font-size:11px;font-weight:700}.pill.active{background:#e4f8ef;color:#12875c}.pill.inactive{background:#f0f2f6;color:#77839a}.pill.available{background:#eaf2ff;color:#2866db}.pill.redeemed{background:#e4f8ef;color:#12875c}.pill.revoked{background:#fff0ed;color:#cc5e48}.search,select{height:42px;border:1px solid #dfe5ef;border-radius:11px;padding:0 12px;background:#fff;color:#35425b;font:14px inherit}.search{width:min(260px,45vw)}.codes-layout{display:grid;grid-template-columns:minmax(280px,.75fr) minmax(440px,1.5fr);gap:16px;align-items:start}.create-panel label{display:block;font-size:13px;font-weight:700;margin:18px 0 7px}.create-panel select{width:100%;margin-bottom:14px}.new-code{margin-top:16px;padding:14px;border:1px dashed #aac5fa;background:#f4f8ff;border-radius:13px}.new-code small{display:block;color:#687995;margin-bottom:10px}.new-code>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.new-code code{font:700 16px monospace;color:#155eef;direction:ltr}.loading{text-align:center;padding:40px;color:#71809a}.notice{margin-bottom:16px;padding:12px 15px;border-radius:12px;background:#e9f2ff;color:#245db8;font-size:13px}.notice.error{background:#fff0ef;color:#bd4146}.notice.success{background:#e6f8f0;color:#137853}.empty{text-align:center;color:#8994a8;padding:24px}@media(max-width:1050px){.stats-grid{grid-template-columns:repeat(2,1fr)}.codes-layout{grid-template-columns:1fr}}@media(max-width:700px){.shell{grid-template-columns:1fr}.sidebar{height:auto;min-height:0;position:static;border-left:0;border-bottom:1px solid #e8edf4;padding:12px}.brand{padding:0 6px 12px}.sidebar nav{display:flex;overflow:auto}.nav-item{white-space:nowrap}.sidebar-foot{display:none}.main-area{padding:20px 14px}.topbar{align-items:flex-start;gap:10px}.topbar h1{font-size:21px}.account{display:grid;justify-items:end}.stats-grid{gap:9px}.stat-card{padding:13px;gap:9px}.stat-icon{width:38px;height:38px}.stat-card strong{font-size:22px}.panel{padding:15px}.panel-head{align-items:flex-start;flex-wrap:wrap}.signin-card{padding:28px 22px}}
