/* Balebo Glass r4 — royal blue, vivid green, frosted surfaces and semantic accents. */
.ui-icon{display:inline-block;vertical-align:middle;flex-shrink:0;width:20px;height:20px}
.icon-tile{display:inline-grid;place-items:center;flex-shrink:0}
.small-link:has(.ui-icon){display:flex;align-items:center;gap:8px}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:8px 13px;border:1px solid #7898a54d;border-radius:12px;background:#ffffff12;color:inherit;font-size:.875rem;font-weight:600;white-space:nowrap}
.theme-toggle svg{width:19px;height:19px;flex-shrink:0}
.theme-toggle:hover{background:#7898a524}
.topbar-tools{display:flex;align-items:center;gap:22px;min-width:0}
.exam-tools{display:flex;align-items:center;gap:24px}
.student-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 26px}
.student-guide article{padding:22px;background:#fff;border:1px solid var(--line);border-radius:18px}
.student-guide svg{width:25px;height:25px;color:var(--teal);margin-bottom:13px}
.student-guide h3{font-size:1rem;margin-bottom:8px}
.student-guide p{color:var(--muted);font-size:.875rem;line-height:1.7}
.student-guide-title{margin:30px 0 15px}
.student-help{margin-top:24px}
.student-help summary{cursor:pointer;font-weight:600;min-height:32px}
.student-help p{margin-top:16px;color:var(--muted);font-size:.9375rem}
.masthead-brand{min-width:0;line-height:1.5;margin-right:20px}
.masthead-brand strong{display:block;font-size:1rem;font-weight:700;max-width:38ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.masthead-brand small{display:block;font-size:.8125rem;color:var(--muted)}
.sidebar-dismiss{display:none}
.dashboard-hero{min-height:0;padding:30px 34px 22px}
.dashboard-hero h2{font-size:2rem;margin-top:16px;margin-bottom:12px}
.dashboard-hero p{margin-bottom:24px}
.dashboard-toolbar{position:relative;z-index:2;display:flex;flex-wrap:wrap;gap:9px;border-top:1px solid #ffffff42;padding-top:20px}
.hero-link{display:inline-flex;align-items:center;gap:8px;border:1px solid #ffffff66;background:#062f4c66;color:white;border-radius:11px;padding:9px 14px;font-size:.875rem;font-weight:600;min-height:43px;box-shadow:inset 0 1px 0 #ffffff1f}
.hero-link>span{font-size:1.15rem;line-height:1}
.hero-link:hover{background:#073358a6;border-color:#ffffffc2}
.hero-link:first-child{background:#fff;color:#154ec3;border-color:#fff}

html[data-theme="glass"]{--bg:#edf5ff;--ink:#102f5b;--muted:#315473;--line:#ffffffbf;--teal:#087344;--royal:#0645ed;--vivid-green:#00ce59;--icon-green:#39ff14;--radius:23px;--glass-surface:linear-gradient(125deg,#ffffffa8,#e7f7ff6b 48%,#effff38c);--glass-shadow:0 18px 42px #005abf22,0 0 0 1px #ffffff38,inset 0 2px 0 #ffffffe6,inset 0 -1px 0 #ffffff66; color-scheme:light}
html[data-theme="glass"] body{background-color:#c7e6ff;background-image:radial-gradient(ellipse at 0% 12%,#1473ff99 0,#4197f440 33%,transparent 58%),radial-gradient(ellipse at 100% 38%,#00ee737a 0,#19eeb530 35%,transparent 62%),radial-gradient(ellipse at 45% 95%,#26bce359 0,transparent 55%),linear-gradient(120deg,#c3dfff,#dcf5ff 49%,#b2f8d5);background-attachment:fixed}
html[data-theme="glass"] h1{letter-spacing:-1.1px}
html[data-theme="glass"] .eyebrow{font-size:.8125rem;letter-spacing:1.7px}
html[data-theme="glass"] .button{border-radius:12px}
html[data-theme="glass"] .primary{background:linear-gradient(110deg,#1457df,#087a56);border:1px solid #ffffff50;box-shadow:0 5px 15px #176e8720,inset 0 1px 0 #ffffff40}
html[data-theme="glass"] .primary:hover{box-shadow:0 8px 20px #176e8735}
html[data-theme="glass"] .subtle{background:#ffffff94;border-color:#a9c8d69e}
html[data-theme="glass"] .panel,
html[data-theme="glass"] .stat,
html[data-theme="glass"] .feature-card,
html[data-theme="glass"] .monitor-card,
html[data-theme="glass"] .student-guide article,
html[data-theme="glass"] .date-chip{background:var(--glass-surface);border:1px solid #ffffffe8;box-shadow:var(--glass-shadow);backdrop-filter:blur(22px) saturate(1.45);-webkit-backdrop-filter:blur(22px) saturate(1.45)}
html[data-theme="glass"] .panel{border-radius:24px}
html[data-theme="glass"] .stat{border-radius:20px;padding:23px}
html[data-theme="glass"] .stat>span,
html[data-theme="glass"] .stat small,
html[data-theme="glass"] th,
html[data-theme="glass"] td small{font-size:.875rem;color:#36576e}
html[data-theme="glass"] td{border-bottom-color:#aac7d347}
html[data-theme="glass"] th{border-bottom-color:#aac7d36b}
html[data-theme="glass"] tr:hover{background:#ffffff38}
html[data-theme="glass"] .sidebar{inset:16px auto 16px 16px;width:244px;border:1px solid #d0f4ffac;border-radius:25px;background:linear-gradient(165deg,#0344d9f5 0%,#007ab6ed 54%,#00b95bf5 100%);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);box-shadow:0 20px 50px #1e519a2b,inset 0 1px 0 #ffffff66;padding:28px 18px;overflow-y:auto}
html[data-theme="glass"] .sidebar .brand-sub{font-size:.6rem;opacity:.8}
html[data-theme="glass"] .nav-title{color:#c4e1f9;font-size:.75rem}
html[data-theme="glass"] .nav-link{font-size:.9375rem;color:#e5f1ff;padding:12px}
html[data-theme="glass"] .nav-link>span{color:#c0e8ff}
html[data-theme="glass"] .nav-link.selected{border:1px solid #fff;background:linear-gradient(115deg,#fffffff5,#e7fff7ef);color:#1648aa;box-shadow:0 4px 18px #07246618,inset 0 1px 0 #fff}
html[data-theme="glass"] .nav-link.selected>span{color:#087b5c}
html[data-theme="glass"] .school-label{color:#e0f1f3}
html[data-theme="glass"] .small-link,
html[data-theme="glass"] .logout{font-size:.875rem;color:#e1f3ee}
html[data-theme="glass"] .workspace{margin-left:276px}
html[data-theme="glass"] .topbar{margin:16px 28px 0 12px;height:86px;border:1px solid #ffffffcc;border-radius:22px;padding:0 26px;background:linear-gradient(110deg,#003bdff5,#0086b3f0 52%,#00ce59f5);color:white;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 8px 28px #0d5da522,inset 0 1px 0 #ffffffa8}
html[data-theme="glass"] .masthead-brand small{color:#e0ecff}
html[data-theme="glass"] .topbar .theme-toggle{background:#ffffff1c;border-color:#c7e9ff66;color:white}
html[data-theme="glass"] .topbar .icon-button{color:white}
html[data-theme="glass"] .breadcrumb{font-size:.875rem;color:#4f6b78}
html[data-theme="glass"] .user-chip{font-size:.9375rem}
html[data-theme="glass"] .user-chip small{font-size:.8125rem;color:#e0f7f0}
html[data-theme="glass"] .avatar{background:linear-gradient(135deg,#e6f0ff,#e2fff0);border:1px solid #fff;color:#1553ba}
html[data-theme="glass"] .workspace main{padding:32px 28px 25px 12px}
html[data-theme="glass"] .portal-footer{padding-left:12px;border-top-color:#abcbd459;color:#526f7d}
html[data-theme="glass"] .welcome-banner{background:linear-gradient(112deg,#003debf5 0%,#008fb9f0 48%,#00d65bf5 100%);border:1px solid #fff;border-radius:25px;box-shadow:0 18px 38px #005bdc38,0 0 25px #37eabb38,inset 0 2px 0 #fff,inset 0 -1px 0 #b4ffe6b3;min-height:0;backdrop-filter:blur(24px) saturate(1.4);-webkit-backdrop-filter:blur(24px) saturate(1.4)}
html[data-theme="glass"] .welcome-banner .badge{font-size:.75rem;border:1px solid #ffffff35}
html[data-theme="glass"] .welcome-banner p{color:#eff8ff;font-size:1rem;max-width:580px}
html[data-theme="glass"] .dashboard-hero h2{font-size:2rem;line-height:1.2;max-width:75%;letter-spacing:-.6px}
html[data-theme="glass"] .banner-art{width:290px;height:290px;right:35px;top:-65px;opacity:.85;border-color:#e0fff79e;box-shadow:0 0 0 30px #d9fff10a,0 0 0 65px #d9fff10a,0 30px 80px #003e5c21;background:linear-gradient(145deg,#ffffff19,#ffffff03);backdrop-filter:blur(2px)}
html[data-theme="glass"] .banner-ring{background:linear-gradient(135deg,#ffffff56,#ffffff02 65%);border-color:#e6fff7a6;box-shadow:inset 0 0 25px #eaffff2b,0 20px 60px #004e5621}
html[data-theme="glass"] .banner-art>span{color:#e1fff2;text-shadow:2px 3px 1px #ffffff50,0 12px 28px #02435399}
html[data-theme="glass"] .dashboard-hero .banner-art>span{font-size:8rem}
html[data-theme="glass"] .stat{position:relative;overflow:hidden}
html[data-theme="glass"] .stat:before{content:'';display:block;width:32px;height:3px;border-radius:8px;background:linear-gradient(90deg,#0645ed,#00ce59);margin-bottom:14px}
html[data-theme="glass"] .stat strong{color:#1349ac}
html[data-theme="glass"] .stat:nth-child(even) strong{color:#087d59}
html[data-theme="glass"] .section-heading{border-bottom:1px solid #bad3ec88;padding-bottom:18px}
html[data-theme="glass"] table{border-collapse:separate;border-spacing:0}
html[data-theme="glass"] th{background:#d9edff9e;color:#204e86;font-weight:650;padding-top:14px;padding-bottom:14px}
html[data-theme="glass"] th:first-child{border-radius:12px 0 0 12px}
html[data-theme="glass"] th:last-child{border-radius:0 12px 12px 0}
html[data-theme="glass"] tbody tr:nth-child(even){background:#dcebff45}
html[data-theme="glass"] .badge.green{background:#dcf7e9;color:#086541;border:1px solid #b1e6cb}
html[data-theme="glass"] .text-link{color:#174fb7}
html[data-theme="glass"] .standard-form input:not([type=checkbox]),
html[data-theme="glass"] .standard-form textarea,
html[data-theme="glass"] .standard-form select,
html[data-theme="glass"] .start-form input,
html[data-theme="glass"] .search-label input{background-color:#ffffffb8;border-color:#b4cdd5;border-radius:12px}

/* Frosted login, brighter azure and mint with the original school identity. */
html[data-theme="glass"] .login-page{color:#153459;background-image:radial-gradient(ellipse at 0% 10%,#1669f2cc 0,#589dff66 38%,transparent 68%),radial-gradient(ellipse at 100% 80%,#00cf80b3 0,#1cdbb552 40%,transparent 70%),linear-gradient(125deg,#bfdcff,#bcebf2 48%,#9cefc4);isolation:isolate}
html[data-theme="glass"] .login-header{padding-top:32px;padding-bottom:25px}
html[data-theme="glass"] .login-header .brand-sub{color:#366576;opacity:1}
html[data-theme="glass"] .login-top-right{gap:12px;flex-wrap:wrap;justify-content:flex-end}
html[data-theme="glass"] .portal-label{color:#3d6877;font-size:.75rem}
html[data-theme="glass"] .motion-button{color:#365f6d;background:#ffffff50;border-color:#ffffffc9;border-radius:12px;min-height:42px;padding:9px 13px;font-size:.8125rem}
html[data-theme="glass"] .login-header .theme-toggle{background:#ffffff80;border-color:#fff;box-shadow:inset 0 1px 0 #fff}
html[data-theme="glass"] .aurora{opacity:.33;filter:blur(90px)}
html[data-theme="glass"] .aurora-blue{background:#1457e8}
html[data-theme="glass"] .aurora-green{background:#00df59}
html[data-theme="glass"] .grid-floor{opacity:.12}
html[data-theme="glass"] .hero-eyebrow{color:#235c70;font-size:.75rem;letter-spacing:2.3px}
html[data-theme="glass"] .hero-eyebrow>span{background:#128c7e;box-shadow:0 0 0 5px #1ca59515}
html[data-theme="glass"] .login-hero h1{color:#12387b;font-weight:550;letter-spacing:-2.3px}
html[data-theme="glass"] .login-hero h1>span{background-image:linear-gradient(110deg,#092d84,#005237);-webkit-background-clip:text;background-clip:text;color:transparent}
html[data-theme="glass"] .login-hero>p{color:#21465f;font-size:1rem;line-height:1.8}
html[data-theme="glass"] .orbital{border-color:#ffffffb5;box-shadow:0 1px 1px #4a96b528,inset 0 1px 2px #fff}
html[data-theme="glass"] .orb-glow{background:radial-gradient(ellipse,#5cbfdb55,transparent 68%)}
html[data-theme="glass"] .core-orb{border:1px solid #ffffffe8;background:radial-gradient(circle at 28% 24%,#ffffff8f,#ffffff00 52%),linear-gradient(145deg,#0645eddb,#00de60d1);box-shadow:inset 6px 8px 18px #ffffff6b,inset -8px -12px 20px #0b4b9633,0 24px 60px #2b74962b;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
html[data-theme="glass"] .core-mark{color:#f2fffd;text-shadow:0 3px 1px #589da657,0 6px 15px #155a6b38}
html[data-theme="glass"] .core-mark span{color:#effff9;text-shadow:none}
html[data-theme="glass"] .float-chip{background:#ffffff91;border:1px solid #ffffffcf;color:#205065;box-shadow:0 12px 35px #377b9215,inset 0 1px 0 #fff;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
html[data-theme="glass"] .float-chip small{color:#4d7281}
html[data-theme="glass"] .chip-symbol{color:#157a78;background:#d4f6ecaa}
html[data-theme="glass"] .login-panel-wrap{position:relative}
html[data-theme="glass"] .login-panel{border:1px solid #fffffff0;background:linear-gradient(135deg,#ffffff6b,#d5f5ff2b 45%,#e4fff14d);box-shadow:0 28px 80px #004ea538,0 0 35px #4ee5c230,inset 0 2px 0 #fff,inset 0 -1px 0 #ffffffa3;border-radius:30px;padding:38px;backdrop-filter:blur(30px) saturate(1.4);-webkit-backdrop-filter:blur(30px) saturate(1.4)}
html[data-theme="glass"] .login-panel:before{height:2px;left:12%;width:76%;background:linear-gradient(90deg,transparent,#fff,#9be9d7,transparent)}
html[data-theme="glass"] .access-icon{background:linear-gradient(135deg,#e3efff9c,#c4f1e1a1);border:1px solid #ffffffc9;color:#1a6970;box-shadow:inset 0 1px 0 #fff}
html[data-theme="glass"] .panel-top .eyebrow{color:#254d62;font-size:.75rem;letter-spacing:1.8px}
html[data-theme="glass"] .login-panel h2{color:#173e51;font-size:2rem}
html[data-theme="glass"] .form-intro{color:#254d62;font-size:1rem}
html[data-theme="glass"] .login-panel label{color:#2e5363}
html[data-theme="glass"] .input-wrap input{background:#ffffff8f;color:#173d4f;border:1px solid #b4d1dd;border-radius:13px;height:56px;box-shadow:inset 0 2px 5px #28708807}
html[data-theme="glass"] .input-wrap input::placeholder{color:#65818e}
html[data-theme="glass"] .input-wrap>svg{color:#4b7a8d}
html[data-theme="glass"] .show-password{color:#316776;height:56px;font-size:.8125rem}
html[data-theme="glass"] .login-help{color:#254d62;font-size:.8125rem}
html[data-theme="glass"] .login-submit{background:linear-gradient(110deg,#1557e8,#087a52);border:1px solid #ffffff99;border-radius:13px;height:56px;font-size:1rem;box-shadow:0 10px 24px #1557bf30,inset 0 1px 0 #ffffff66}
html[data-theme="glass"] .login-divider{color:#526f7f;font-size:.6875rem;letter-spacing:1.6px}
html[data-theme="glass"] .login-divider:before,
html[data-theme="glass"] .login-divider:after{background:#91b5c15e}
html[data-theme="glass"] .role-chips{gap:6px}
html[data-theme="glass"] .role-chips span{color:#254d62;background:#ffffff5c;border:1px solid #ffffffb5;border-radius:8px;font-size:.8125rem}
html[data-theme="glass"] .login-support{color:#254d62;font-size:.875rem}
html[data-theme="glass"] .under-panel{color:#476b7c;font-size:.8125rem}
html[data-theme="glass"] .under-panel svg{color:#1c7e6d}
html[data-theme="glass"] .login-footer{color:#254d62;font-size:.6875rem;letter-spacing:1.2px}
html[data-theme="glass"] .login-panel .message{background:#fff0f2e6;border-color:#c46e7a;color:#8b2037;font-size:.9375rem}

/* Calm exam surfaces: stronger opacity keeps long questions readable. */
html[data-theme="glass"] .exam-header{background:linear-gradient(110deg,#003beff5,#008cb9f0 47%,#00ce59f5);border-bottom:1px solid #ffffffb5;box-shadow:0 8px 28px #286e861c;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
html[data-theme="glass"] .exam-title small{color:#c9e7e8;font-size:.875rem}
html[data-theme="glass"] .exam-timer>span{color:#c1e3e2;font-size:.75rem}
html[data-theme="glass"] .question-panel,
html[data-theme="glass"] .exam-aside{background:#ffffffe3;border:1px solid #fff;border-radius:24px;box-shadow:var(--glass-shadow);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
html[data-theme="glass"] .exam-status{font-size:.875rem;color:#126b53;flex-wrap:wrap}
html[data-theme="glass"] .exam-status #save-status.unsaved{color:#865c0b}
html[data-theme="glass"] .answer-option{border-radius:13px;border-color:#b5cedb;background:#ffffff8f}
html[data-theme="glass"] .answer-option:has(input:checked){background:#dcf5ed;border-color:#158474;box-shadow:0 0 0 1px #158474}
html[data-theme="glass"] .answer-textarea{background:#ffffffed;border-color:#a7c4d0}
html[data-theme="glass"] .exam-aside>p,
html[data-theme="glass"] .exam-aside .exam-note{font-size:.875rem;color:#36576e}
html[data-theme="glass"] .legend{font-size:.8125rem}
html[data-theme="glass"] .question-grid button{min-height:42px;font-size:.875rem}
html[data-theme="glass"] .exam-gate{background:#16435c73;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
html[data-theme="glass"] .exam-gate .panel{background:linear-gradient(140deg,#fffffff2,#e4f6f4ed)}
html[data-theme="glass"] dialog{background:#f7fcfdf5;border:1px solid #fff}
html[data-theme="glass"] dialog::backdrop{background:#153e5480}

/* Light catches the surface; decoration never intercepts controls. */
html[data-theme="glass"] :is(.panel,.stat,.feature-card,.monitor-card,.student-guide article,.date-chip){position:relative;isolation:isolate}
html[data-theme="glass"] :is(.panel,.stat,.feature-card,.monitor-card,.student-guide article,.date-chip)::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;background:linear-gradient(125deg,#ffffff2b 0%,#ffffff0a 32%,transparent 32.3%,transparent 69%,#ffffff17 69.3%,transparent 100%);box-shadow:inset 1px 0 0 #ffffffad,inset -1px 0 0 #ffffff73}
html[data-theme="glass"] :is(.sidebar,.topbar,.welcome-banner,.exam-header){isolation:isolate}
html[data-theme="glass"] .topbar{position:relative}
html[data-theme="glass"] :is(.sidebar,.topbar,.welcome-banner,.exam-header)::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;background:linear-gradient(118deg,transparent 9%,#ffffff29 9.2%,#ffffff07 28%,transparent 28.2%,transparent 67%,#ffffff14 67.2%,transparent 86%),linear-gradient(180deg,#ffffff26,transparent 45%);box-shadow:inset 0 2px 0 #ffffffc9,inset 0 -1px 0 #ffffff66}
html[data-theme="glass"] .login-panel::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;background:linear-gradient(122deg,#ffffff29,transparent 33%,#ffffff1a 33.3%,transparent 62%),radial-gradient(ellipse at 100% 0,#ffffff52,transparent 60%);box-shadow:inset 1px 0 0 #fff,inset -1px 0 0 #ffffff70}
html[data-theme="glass"] .login-panel{isolation:isolate}
html[data-theme="glass"] .hero-link{background:linear-gradient(180deg,#ffffff3b,#ffffff0d);border-color:#ffffffb3;box-shadow:inset 0 1px 0 #ffffffa6,inset 0 -1px 0 #ffffff38,0 5px 12px #00469f33;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);text-shadow:0 1px 2px #00387b42}
html[data-theme="glass"] .hero-link:first-child{background:linear-gradient(160deg,#fffffff2,#dffcffd9);color:#0642b2;text-shadow:none}
html[data-theme="glass"] .topbar .theme-toggle{background:linear-gradient(150deg,#ffffff38,#ffffff0d);border-color:#ffffffad;box-shadow:inset 0 1px 0 #ffffff94}
html[data-theme="glass"] :is(.subtle,.pale){background:linear-gradient(140deg,#ffffffb8,#eefff775);border-color:#ffffffd9;box-shadow:inset 0 1px 0 #fff,0 3px 9px #095ca619}
html[data-theme="glass"] :is(.primary,.login-submit){background:linear-gradient(110deg,#0050d7,#007795 53%,#007e50);border-color:#ffffffa6;box-shadow:inset 0 1px 0 #ffffff94,inset 0 -1px 0 #00388226,0 8px 20px #006dbc33}
html[data-theme="glass"] tbody{background:#ffffffb0}
html[data-theme="glass"] .stat strong{text-shadow:0 1px 0 #ffffffa6}
html[data-theme="glass"] .standard-form :is(input:not([type=checkbox]),textarea,select),html[data-theme="glass"] .start-form input,html[data-theme="glass"] .search-label input{background-color:#ffffffa6;border-color:#ffffffcf;box-shadow:inset 0 1px 4px #0c57ad12,0 2px 7px #1d6eab0d}
html[data-theme="glass"] .standard-form select option{background:#f0f9ff;color:#153459}

/* r4 accent system. Dark icon tiles keep lime strokes clear on light glass. */
html[data-theme="glass"] :is(.ui-icon,.theme-toggle svg,.student-guide svg,.login-page svg){color:var(--icon-green)}
html[data-theme="glass"] .icon-tile,
html[data-theme="glass"] .feature-card>.icon-tile:first-child,
html[data-theme="glass"] :is(.access-icon,.chip-symbol){background:linear-gradient(145deg,#0c5fbe,#04346d);color:var(--icon-green);border:1px solid #b8eaff80;box-shadow:inset 0 1px 0 #ffffff57,0 4px 10px #00347b22;border-radius:9px}
html[data-theme="glass"] :is(.nav-link,.hero-link)>.icon-tile{width:29px;height:29px}
html[data-theme="glass"] :is(.nav-link,.hero-link) .ui-icon{width:18px;height:18px}
html[data-theme="glass"] .nav-link{gap:11px;min-height:55px}
html[data-theme="glass"] .nav-link.selected{color:#06389d}
html[data-theme="glass"] .feature-card>.icon-tile:first-child{width:48px;height:48px;border-radius:14px}
html[data-theme="glass"] .feature-card>.icon-tile .ui-icon{width:26px;height:26px}
html[data-theme="glass"] .empty-state>.icon-tile{display:inline-grid;width:52px;height:52px;margin:0 auto 16px}
html[data-theme="glass"] .empty-state .ui-icon{width:27px;height:27px}
html[data-theme="glass"] :is(.button,.small-link,.sidebar-dismiss,.icon-button)>.ui-icon,
html[data-theme="glass"] :is(.theme-toggle,.login-submit,.under-panel)>svg{width:27px;height:27px;padding:4px;border-radius:7px;background:#053867;box-shadow:inset 0 1px 0 #ffffff24;color:var(--icon-green)}
html[data-theme="glass"] .button.small{gap:7px;padding:7px 12px}
html[data-theme="glass"] .button.small>.ui-icon{width:23px;height:23px;padding:3px;border-radius:6px}
html[data-theme="glass"] .student-guide svg{width:43px;height:43px;padding:9px;background:linear-gradient(145deg,#0c5fbe,#04346d);border-radius:12px}
html[data-theme="glass"] .input-wrap>svg{width:25px;height:25px;left:12px;padding:4px;background:#053867;border-radius:7px}
html[data-theme="glass"] .access-icon svg{width:24px;height:24px}
html[data-theme="glass"] .chip-symbol{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0}
html[data-theme="glass"] .chip-symbol .ui-icon{width:20px;height:20px}
html[data-theme="glass"] .footer-spark{color:var(--icon-green);text-shadow:0 1px 2px #003264}
html[data-theme="glass"] .dashboard-hero .hero-mark{display:grid;place-items:center;width:112px;height:112px;border-radius:30px;background:linear-gradient(135deg,#ffffff30,#ffffff03);border:1px solid #ffffff8c;box-shadow:inset 0 2px 0 #ffffff7a,0 18px 40px #00546a24;transform:rotate(25deg)}
html[data-theme="glass"] .hero-mark .ui-icon{width:58px;height:58px;stroke-width:1.5;filter:drop-shadow(0 2px 2px #003d6a8c)}
html[data-theme="glass"] .hero-link{padding:9px 13px;gap:8px}
html[data-theme="glass"] :is(.button,.login-submit).primary,
html[data-theme="glass"] .login-submit,
html[data-theme="glass"] :is(.button,.hero-link).accent-green{background:linear-gradient(165deg,#91ff8d 0%,#35f85f 40%,#12dc54 100%);color:#082e28;border-color:#bdffc2;text-shadow:none;box-shadow:inset 0 2px 0 #e8ffeebf,inset 0 -1px 0 #009d5833,0 7px 18px #00bd6530}
html[data-theme="glass"] :is(.button,.hero-link).accent-yellow{background:linear-gradient(165deg,#fff59c 0%,#ffdf33 40%,#ffcc08 100%);color:#18304b;border-color:#fff0a2;text-shadow:none;box-shadow:inset 0 2px 0 #fff9cfcc,inset 0 -1px 0 #b97d0029,0 7px 18px #b98c0021}
html[data-theme="glass"] .button.danger{background:linear-gradient(165deg,#ff9a9e 0%,#ff6072 38%,#ff3d57 100%);color:#420a1c;border-color:#ffb3b9;text-shadow:none;box-shadow:inset 0 2px 0 #ffe5e7bd,inset 0 -1px 0 #a7002f26,0 7px 16px #b7184930}
html[data-theme="glass"] .sidebar-bottom{padding:17px 13px 13px;margin-top:auto;border:1px solid #ffffff4f;border-radius:16px;background:linear-gradient(145deg,#05335f9e,#00464fbd);box-shadow:inset 0 1px 0 #ffffff24}
html[data-theme="glass"] .sidebar-bottom .badge{background:#19f57726;border:1px solid #67ffab47;color:#c8ffdf;margin-bottom:6px}
html[data-theme="glass"] .sidebar-bottom .small-link{font-size:.8125rem;min-height:38px;margin-top:6px}
html[data-theme="glass"] .sidebar-bottom .logout{width:100%;margin-top:9px;min-height:42px;padding:8px 10px;font-size:.8125rem}
html[data-theme="glass"] .sidebar-bottom .logout:hover{text-decoration:none}
html[data-theme="glass"] .user-chip{padding:8px 12px 8px 8px;border:1px solid #ffffffc2;border-radius:14px;background:linear-gradient(130deg,#ffffffeb,#dfffeece);color:#123d52;box-shadow:inset 0 1px 0 #fff,0 4px 14px #00476618}
html[data-theme="glass"] .user-chip small{color:#315f65}
html[data-theme="glass"] .topbar .theme-toggle,
html[data-theme="glass"] .exam-header .theme-toggle{background:linear-gradient(150deg,#003d688a,#004d5285);border-color:#ffffff9e;color:#fff}
html[data-theme="glass"] .exam-timer{padding:7px 14px;background:#063f60ba;border:1px solid #ffffff70;border-radius:12px;color:#fff;font-variant-numeric:tabular-nums}
html[data-theme="glass"] .exam-timer>span{color:#e5fff0}
html[data-theme="glass"] .stat strong{font-variant-numeric:tabular-nums;letter-spacing:-1.5px}
html[data-theme="glass"] .stat:before{width:38px}
html[data-theme="glass"] .question-grid button.answered{background:#c8ffe0;color:#075234;border-color:#69d59a}
html[data-theme="glass"] .question-grid button.flagged{background:#ffe57b;color:#513c05;border-color:#d3a922}
html[data-theme="glass"] .question-grid button.current{outline-color:#0645ed}
html[data-theme="glass"] .standard-form :is(input,select,textarea):focus,
html[data-theme="glass"] .start-form input:focus{outline:2px solid #1262d3;outline-offset:2px;box-shadow:0 0 0 5px #d2ffeb}

/* Hover is an input response, not a continuously running effect. */
html[data-theme="glass"] :is(.button,.hero-link,.theme-toggle,.motion-button,.login-submit,.sidebar-dismiss,.question-grid button){position:relative;isolation:isolate;overflow:hidden;transition:transform 220ms cubic-bezier(.2,.8,.2,1),box-shadow 220ms ease,border-color 220ms ease,background-color 220ms ease,filter 220ms ease}
html[data-theme="glass"] :is(.button,.hero-link,.theme-toggle,.motion-button,.login-submit,.sidebar-dismiss,.question-grid button)::after{content:"";position:absolute;inset:-60% auto -60% -45%;width:35%;z-index:1;pointer-events:none;background:linear-gradient(90deg,transparent,#ffffff8c,transparent);filter:none;opacity:0;transform:skewX(-22deg) translateX(0);animation:none}
html[data-theme="glass"] :is(.nav-link,.small-link,.logout,.text-link,.icon-button){transition:transform 200ms ease,color 200ms ease,background-color 200ms ease,box-shadow 200ms ease}
html[data-theme="glass"] :is(button,a):focus-visible{outline:3px solid #0637a4;outline-offset:4px;box-shadow:0 0 0 7px #bafff0}
@media(hover:hover) and (pointer:fine){
  html[data-theme="glass"] :is(.button,.hero-link,.theme-toggle,.motion-button,.login-submit,.sidebar-dismiss):not(:disabled):not([aria-disabled="true"]):hover{transform:translateY(-3px);border-color:#ffe24a;filter:brightness(1.025);box-shadow:0 10px 24px #0053bd3b,0 0 0 1px #ffe24a,0 0 18px #00e88a40,inset 0 1px 0 #fff}
  html[data-theme="glass"] :is(.button,.hero-link,.theme-toggle,.motion-button,.login-submit,.sidebar-dismiss,.question-grid button):not(:disabled):not([aria-disabled="true"]):hover::after{animation:glass-sweep 650ms ease-out}
  html[data-theme="glass"] .nav-link:hover{transform:translateX(4px);background-color:#ffffff26;box-shadow:inset 0 1px 0 #ffffff52,0 5px 15px #004c8130}
  html[data-theme="glass"] :is(.small-link,.logout,.text-link,.icon-button):hover{transform:translateY(-2px);text-decoration:underline;text-underline-offset:4px}
  html[data-theme="glass"] .question-grid button:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 5px 12px #005bbc30;border-color:#007c99}
}
html[data-theme="glass"] :is(.button,.hero-link,.theme-toggle,.motion-button,.login-submit,.sidebar-dismiss,.question-grid button):not(:disabled):not([aria-disabled="true"]):active{transform:translateY(0) scale(.98);box-shadow:inset 0 2px 5px #003b8a26}
@keyframes glass-sweep{0%{opacity:0;left:-45%}15%{opacity:.8}100%{opacity:0;left:125%}}
html[data-theme="glass"] .reduced-motion *,html[data-theme="glass"] .reduced-motion *::before,html[data-theme="glass"] .reduced-motion *::after{animation:none!important;transition:none!important}
html[data-theme="glass"] .reduced-motion :is(.button,.hero-link,.theme-toggle,.motion-button,.login-submit,.sidebar-dismiss,.question-grid button,.nav-link,.small-link,.logout,.text-link,.icon-button,.feature-card){transform:none!important}

@media(max-width:1150px){
  html[data-theme="glass"] .sidebar{width:215px}
  html[data-theme="glass"] .workspace{margin-left:247px}
  html[data-theme="glass"] .login-panel{padding:28px}
  html[data-theme="glass"] .portal-label{display:none}
  .student-guide{gap:12px}.student-guide article{padding:18px}
}
@media(max-width:850px){
  .masthead-brand{display:none}
  .topbar-tools{gap:12px}.student-guide{grid-template-columns:1fr}.student-guide article{padding:20px}
  html[data-theme="glass"] .topbar{padding:0 18px}.topbar .breadcrumb{display:none}
  html[data-theme="glass"] .login-layout{gap:24px}
}
@media(max-width:700px){
  html[data-theme="glass"] .sidebar{inset:10px auto 10px 10px;width:255px;transform:translateX(calc(-100% - 20px));background:linear-gradient(165deg,#0344d9fa,#007ab6fa 54%,#00b95bfa)}
  html[data-theme="glass"] .sidebar.open{transform:translateX(0)}
  html[data-theme="glass"] .workspace{margin-left:0}
  html[data-theme="glass"] .topbar{margin:12px 14px 0;padding:0 14px;height:72px;border-radius:19px}
  html[data-theme="glass"] .workspace main{padding:25px 16px}
  .topbar-tools{margin-left:auto;gap:12px}.user-chip .avatar{display:none}.user-chip>span:last-child{max-width:130px;overflow-wrap:anywhere}
  html[data-theme="glass"] .user-chip{font-size:.8125rem;padding:6px 9px}.theme-toggle{padding:7px 10px;font-size:.8125rem}
  html[data-theme="glass"] .stat{padding:17px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  html[data-theme="glass"] .stat>span,html[data-theme="glass"] .stat small{font-size:.8125rem}
  html[data-theme="glass"] .welcome-banner{padding:25px;min-height:0}
  html[data-theme="glass"] .dashboard-hero h2{font-size:1.7rem;max-width:100%}
  html[data-theme="glass"] .dashboard-hero .banner-art{right:-180px;opacity:.24}
  .dashboard-toolbar{gap:8px}.hero-link{font-size:.8125rem;padding:9px 11px;min-width:0}
  .sidebar-dismiss{display:flex;align-items:center;justify-content:space-between;min-height:40px;margin:-8px 0 16px;padding:7px 12px;border:1px solid #ffffff66;border-radius:10px;color:white;background:#ffffff14;font-size:.875rem}
  .sidebar-dismiss span{font-size:1.3rem}
  html[data-theme="glass"] .panel{padding:20px;border-radius:20px}
  html[data-theme="glass"] .login-header{padding:22px;gap:16px;align-items:flex-start;flex-wrap:wrap}
  html[data-theme="glass"] .login-top-right{gap:8px}
  html[data-theme="glass"] .motion-button{font-size:.75rem;padding:8px 10px}
  html[data-theme="glass"] .login-layout{padding-top:12px}
  html[data-theme="glass"] .login-hero h1{font-size:2.65rem;letter-spacing:-1.7px}
  html[data-theme="glass"] .hero-eyebrow{font-size:.6875rem;letter-spacing:1.5px}
  html[data-theme="glass"] .login-panel{padding:27px 24px;border-radius:25px}
  html[data-theme="glass"] .login-panel h2{font-size:1.8rem}
  html[data-theme="glass"] .under-panel{font-size:.75rem;text-align:center;align-items:flex-start}
  html[data-theme="glass"] .login-footer{font-size:.625rem}
  .exam-header{flex-wrap:wrap}.exam-title{flex:1;min-width:130px;max-width:none}.exam-tools{gap:12px}
  .exam-tools .theme-toggle{min-height:38px;padding:6px 8px}.exam-tools .theme-toggle svg{display:none}
  html[data-theme="glass"] .exam-title small{font-size:.8125rem}.exam-timer>span{letter-spacing:1px}
  .question-grid{grid-template-columns:repeat(auto-fit,minmax(38px,1fr))}
  html[data-theme="glass"] .exam-status{font-size:.8125rem}.exam-navigation{flex-wrap:wrap}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  html[data-theme="glass"] .panel,html[data-theme="glass"] .stat,html[data-theme="glass"] .login-panel,html[data-theme="glass"] .feature-card,html[data-theme="glass"] .monitor-card,html[data-theme="glass"] .student-guide article{background:#e4f3ff}
  html[data-theme="glass"] .topbar{background:linear-gradient(110deg,#003bdf,#0086b3,#00ce59)}
}
@media(prefers-reduced-motion:reduce){html[data-theme="glass"] *,html[data-theme="glass"] *:before,html[data-theme="glass"] *:after{animation:none!important;transition:none!important}html[data-theme="glass"] :is(.button,.hero-link,.theme-toggle,.motion-button,.login-submit,.sidebar-dismiss,.question-grid button,.nav-link,.small-link,.logout,.text-link,.icon-button,.feature-card){transform:none!important}}
@media print{
  html[data-theme="glass"] body{background:white!important}
  html[data-theme="glass"] .workspace{margin:0!important}
  html[data-theme="glass"] .workspace main{padding:0!important}
  html[data-theme="glass"] .panel,html[data-theme="glass"] .report-sheet{background:white!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border:0!important}
  html[data-theme="glass"] .panel::after{display:none!important}
  .theme-toggle,.student-guide,.student-help{display:none!important}
}
