/* «Английский на Бульваре» — закрытый ученический кабинет. Только на страницах портала. */
.eb-portal{background:#f3f6fa;color:#123050;min-height:calc(100vh - 200px);padding:64px 0 95px;isolation:isolate}
.eb-portal *{box-sizing:border-box}
.eb-portal-inner{width:min(1180px,calc(100% - 64px));margin:0 auto}
.eb-portal h1,.eb-portal h2,.eb-portal h3,.eb-portal p{margin-top:0}
.eb-kicker{font-size:.76rem;color:#d9253e;font-weight:800;letter-spacing:.115em;display:inline-flex;align-items:center;gap:12px}
.eb-kicker-line{width:27px;height:2px;background:#d9253e;display:inline-block}
.eb-login-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(365px,.9fr);align-items:center;gap:7%;padding-block:26px}
.eb-login-story{position:relative;min-height:530px;padding:32px 0}
.eb-login-story h1{font-size:clamp(2.7rem,4.6vw,4.4rem);line-height:1.08;letter-spacing:-.052em;color:#00274f;margin:24px 0}
.eb-login-story h1 em{color:#d9253e;font-style:italic;font-weight:400;font-family:Georgia,serif}
.eb-login-lead{color:#53657a;font-size:1.06rem;line-height:1.76;max-width:475px;margin-bottom:32px}
.eb-benefits{display:grid;gap:18px;max-width:440px;border-top:1px solid #dbe4ee;padding-top:24px}
.eb-benefits>div{display:flex;gap:17px;align-items:flex-start}
.eb-benefit-number{color:#d9253e;background:#fff1f2;font-size:.75rem;padding:10px;border-radius:8px;font-weight:800;letter-spacing:.05em}
.eb-benefits strong{display:block;font-size:.95rem;color:#00274f}
.eb-benefits div div span{display:block;color:#697d91;font-size:.84rem;margin-top:3px}
.eb-login-ornament{position:absolute;right:0;bottom:-20px;display:block;font-size:135px;font-weight:900;letter-spacing:-.17em;color:#e1e8f1;transform:rotate(-13deg);user-select:none;z-index:-1;line-height:1}
.eb-login-ornament span{color:#efcfd5}
.eb-auth-card{background:white;border:1px solid #e1e7ef;border-radius:20px;box-shadow:0 24px 55px rgba(9,40,75,.07);padding:42px}
.eb-auth-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:26px}
.eb-pill{display:inline-block;border-radius:40px;border:1px solid #f2bdc7;color:#bd1c37;padding:7px 11px;font-weight:800;font-size:.65rem;letter-spacing:.065em}
.eb-auth-dot{width:13px;height:13px;border-radius:50%;background:#d9253e;box-shadow:0 0 0 6px #fae8ec}
.eb-auth-card h2{font-size:2.05rem;letter-spacing:-.045em;color:#00274f;line-height:1.15;margin-bottom:12px}
.eb-auth-card>p{font-size:.94rem;line-height:1.6;color:#607186;margin-bottom:28px}
#eb-student-loginform .login-username,#eb-student-loginform .login-password{margin:0 0 18px}
#eb-student-loginform label{display:block;font-size:.86rem;font-weight:700;color:#183855;margin-bottom:9px}
#eb-student-loginform input[type=text],#eb-student-loginform input[type=password]{width:100%;height:52px;border:1px solid #d7e0ea;border-radius:10px;padding:10px 15px;color:#122d4e;font-size:1rem;background:#f9fbfd}
#eb-student-loginform input:focus{outline:2px solid #d9253e;outline-offset:2px}
#eb-student-loginform .login-remember{margin:8px 0 24px}
#eb-student-loginform .login-remember label{font-weight:500;font-size:.86rem;display:flex;align-items:center;gap:8px}
#eb-student-loginform .login-remember input{accent-color:#d9253e;width:17px;height:17px}
#eb-student-loginform .login-submit{margin:0}
#eb-student-loginform input[type=submit],.eb-primary-action{width:100%;min-height:54px;border:0;border-radius:10px;background:#d9253e;color:#fff;font-size:1rem;font-weight:800;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 21px;text-decoration:none}
#eb-student-loginform input[type=submit]{display:block}
#eb-student-loginform input[type=submit]:hover,.eb-primary-action:hover{background:#b51b31}
.eb-forgot,.eb-secondary-action{display:block;margin-top:15px;text-align:center;font-size:.86rem;color:#133d66;font-weight:700}
.eb-auth-bottom{border-top:1px solid #e6ebf0;margin-top:25px;padding-top:19px;color:#69798b;font-size:.82rem;line-height:1.6}
.eb-auth-lock{color:#3e8b75;margin-right:7px;font-size:.7rem}
.eb-auth-notice{background:#f3f6fa;padding:13px 15px;border-radius:10px;margin-bottom:15px}
.eb-dashboard-top{display:flex;justify-content:space-between;gap:25px;align-items:center;margin-bottom:32px}
.eb-dashboard-top h1{margin:14px 0 12px;color:#00274f;font-size:clamp(2.3rem,4vw,3.6rem);line-height:1.1;letter-spacing:-.052em}
.eb-dashboard-top p{max-width:620px;color:#667b91;line-height:1.65;margin:0}
.eb-exit-link{display:inline-flex;gap:12px;align-items:center;text-decoration:none;font-weight:700;font-size:.85rem;color:#00274f;white-space:nowrap;border:1px solid #cfd9e5;border-radius:9px;padding:12px 17px;background:white}
.eb-exit-link:hover{border-color:#d9253e;color:#d9253e}
.eb-admin-preview{background:#fff8df;padding:14px 18px;border:1px solid #ecd77a;border-radius:10px;font-size:.9rem;line-height:1.5}
.eb-student-overview{display:grid;grid-template-columns:minmax(255px,.33fr) minmax(0,.67fr);gap:22px;margin-bottom:49px}
.eb-student-profile{background:white;border-radius:17px;border:1px solid #e0e7ef;padding:28px 29px}
.eb-section-cap{display:block;color:#d9253e;font-size:.72rem;font-weight:800;letter-spacing:.11em;margin-bottom:17px}
.eb-avatar{width:61px;height:61px;background:#00274f;border-radius:16px;display:grid;place-items:center;font-size:1.4rem;font-family:Georgia,serif;color:#fff;margin-bottom:17px}
.eb-student-profile h2{color:#00274f;font-size:1.48rem;letter-spacing:-.03em;line-height:1.2;margin-bottom:7px;overflow-wrap:anywhere}
.eb-profile-role{color:#60748b;font-size:.85rem;display:block;margin-bottom:28px}
.eb-profile-info{display:flex;justify-content:space-between;gap:12px;padding:16px 0;border-top:1px solid #e9edf2;font-size:.83rem}
.eb-profile-info span{color:#718195}.eb-profile-info strong{text-align:right;color:#00274f}
.eb-welcome-card{position:relative;display:flex;flex-direction:column;justify-content:space-between;background:#00274f;color:white;border-radius:17px;padding:28px 34px;min-height:350px;overflow:hidden}
.eb-welcome-card:before{content:'';position:absolute;width:470px;height:470px;border:1px solid rgba(255,255,255,.13);border-radius:50%;right:-170px;top:-270px;box-shadow:0 0 0 62px rgba(255,255,255,.025),0 0 0 125px rgba(255,255,255,.025)}
.eb-welcome-head,.eb-welcome-footer{display:flex;align-items:center;justify-content:space-between;position:relative}
.eb-welcome-label{letter-spacing:.105em;font-weight:800;font-size:.69rem;color:#b9cee3}
.eb-welcome-stamp{width:108px;min-height:40px;border:1px solid rgba(255,255,255,.38);border-radius:999px;font-size:.68rem;letter-spacing:.1em;display:grid;place-items:center;line-height:1.2;font-weight:800;transform:rotate(0deg);text-align:center;color:#fff;white-space:nowrap;padding:7px 12px}
.eb-welcome-main{position:relative}
.eb-welcome-main>p{font:italic 1.4rem Georgia,serif;color:#ff8fa0;margin:0 0 10px}
.eb-welcome-main h2{font-size:clamp(1.85rem,3vw,2.6rem);line-height:1.2;letter-spacing:-.04em;margin:0 0 14px}
.eb-welcome-main>span{display:block;color:#c2d2e3;font-size:.9rem;line-height:1.6}
.eb-welcome-footer{justify-content:flex-start;gap:14px;letter-spacing:.105em;color:#b9cee3;font-size:.65rem;font-weight:800}
.eb-welcome-rule{height:2px;width:27px;background:#d9253e}
.eb-learning-header{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:22px}
.eb-learning-header h2{font-size:1.9rem;letter-spacing:-.04em;color:#00274f}
.eb-launch-label{color:#6d7c90;font-size:.86rem}
.eb-learning-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.eb-learning-card{min-height:260px;padding:27px 27px 22px;background:#fff;border:1px solid #e0e7ef;border-radius:16px;display:flex;flex-direction:column;position:relative}
.eb-card-icon{width:53px;height:53px;border-radius:13px;display:grid;place-items:center;font:700 1.3rem Georgia,serif;margin-bottom:21px}
.eb-card-book{background:#f9e2e7;color:#b41c36}.eb-card-test{background:#dfeef8;color:#185888}.eb-card-home{background:#e7ede8;color:#286a56}
.eb-card-status{position:absolute;right:25px;top:30px;font-size:.71rem;color:#7c8998;background:#f1f4f7;padding:7px 10px;border-radius:30px}
.eb-learning-card h3{font-size:1.2rem;margin-bottom:9px;color:#00274f}
.eb-learning-card p{color:#60758a;font-size:.88rem;line-height:1.6;margin-bottom:19px}
.eb-card-footer{border-top:1px solid #e7edf3;display:flex;justify-content:space-between;margin-top:auto;padding-top:15px;font-size:.78rem;color:#8795a4}
.eb-portal-footnote{margin-top:27px;color:#6f8294;font-size:.85rem;line-height:1.65}
.eb-portal-footnote a{font-weight:700;color:#b51b31}
@media(max-width:950px){.eb-login-layout{gap:32px;grid-template-columns:1fr 1fr}.eb-login-story{min-height:unset}.eb-auth-card{padding:32px}.eb-student-overview{grid-template-columns:1fr 1.6fr}}
@media(max-width:760px){.eb-portal{padding:42px 0 65px}.eb-portal-inner{width:calc(100% - 40px)}.eb-login-layout{display:flex;flex-direction:column;align-items:stretch;gap:22px}.eb-login-story{padding:10px 0}.eb-login-story h1{font-size:clamp(2.65rem,8vw,3.7rem)}.eb-benefits{display:none}.eb-login-ornament{display:none}.eb-auth-card{max-width:570px;width:100%;margin:auto}.eb-dashboard-top{flex-direction:column;align-items:flex-start}.eb-student-overview{grid-template-columns:1fr}.eb-learning-grid{grid-template-columns:1fr}.eb-learning-header{align-items:start;flex-direction:column}.eb-welcome-card{min-height:320px}}
@media(max-width:440px){.eb-portal-inner{width:calc(100% - 30px)}.eb-auth-card{padding:26px 23px}.eb-welcome-card{padding:25px}.eb-portal h1{font-size:2.5rem}.eb-login-story h1{font-size:2.55rem}}

/* Individual tests, isolated to private student pages. */
.eb-assignments{margin-top:31px;background:#fff;border-radius:16px;border:1px solid #dee7ef;padding:28px 31px}
.eb-assignments h2{font-size:1.52rem;color:#00274f;margin:0 0 20px;letter-spacing:-.03em}
.eb-assignment-empty{color:#697d91;font-size:.9rem;line-height:1.7;margin:0}
.eb-assignment{padding:19px 0;display:flex;justify-content:space-between;gap:15px;align-items:center;border-top:1px solid #e7edf4}
.eb-assignment strong{display:block;color:#00274f;font-size:1.03rem;margin-bottom:7px}
.eb-assignment span{display:block;color:#647990;font-size:.84rem}
.eb-assignment a{white-space:nowrap;color:#c51e39;text-decoration:none;font-weight:800;font-size:.88rem}
.eb-assignment a:hover{text-decoration:underline}
.eb-test-paper{max-width:850px;margin:10px auto 0;background:#fff;padding:40px 47px;border:1px solid #dee7ef;border-radius:18px;box-shadow:0 16px 50px rgba(0,39,79,.035)}
.eb-test-fieldset{border:0;border-bottom:1px solid #e7edf4;padding:25px 0 30px;margin:0;min-width:0}
.eb-test-fieldset:first-of-type{padding-top:0}
.eb-test-fieldset legend{font-size:1.14rem;font-weight:800;color:#00274f;padding:0 0 12px;float:none}
.eb-test-fieldset legend span{display:inline-grid;place-items:center;margin-right:11px;background:#e8eef6;color:#163d66;border-radius:8px;width:35px;height:35px}
.eb-test-answers{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.eb-test-choice{cursor:pointer;display:flex;gap:11px;align-items:center;padding:15px 17px;border:1px solid #dbe5ef;border-radius:10px;font-size:.95rem;color:#1c3c59;line-height:1.45}
.eb-test-choice:hover{border-color:#b9cada;background:#f9fbfe}
.eb-test-choice input{accent-color:#d9253e;width:17px;height:17px;flex-shrink:0}
.eb-test-choice:has(input:checked){border-color:#d9253e;background:#fff3f5}
.eb-test-submit{display:block;width:100%;background:#d9253e;color:white;border:0;border-radius:10px;cursor:pointer;margin:25px 0 0;padding:18px 20px;font-weight:800;font-size:1rem}
.eb-test-submit:hover{background:#b31b35}
.eb-test-hint{font-size:.82rem;color:#6b7c8e;text-align:center;margin:15px 0 0}
.eb-test-warning{border-left:3px solid #d9253e;padding:14px 18px;background:#fff4f5;color:#8e1d32;margin:12px 0}
.eb-answers-review{padding-left:26px}
.eb-answers-review li{padding:15px 0;border-top:1px solid #e8edf4}
.eb-answers-review strong{color:#00274f}
.eb-answers-review p{color:#546f89;margin:5px 0;line-height:1.6}
@media(max-width:760px){.eb-assignments{padding:23px}.eb-assignment{align-items:flex-start;flex-direction:column}.eb-test-paper{padding:27px 21px}.eb-test-answers{grid-template-columns:1fr}}

/* Test notifications: private student dashboard */
.eb-notify-actions{display:flex;gap:12px;align-items:center;flex-shrink:0}
.eb-notify-container{position:relative}
.eb-notifications{position:relative}
.eb-notifications>.eb-notify-trigger{position:relative;display:grid;place-items:center;list-style:none;width:45px;height:45px;border:1px solid #cfd9e5;background:#fff;border-radius:10px;color:#00274f;cursor:pointer;transition:border-color .2s,background .2s}
.eb-notifications>.eb-notify-trigger::-webkit-details-marker{display:none}
.eb-notifications>.eb-notify-trigger:hover,.eb-notifications[open]>.eb-notify-trigger{border-color:#d9253e;background:#fff5f6}
.eb-notifications>.eb-notify-trigger:focus-visible{outline:3px solid #d9253e;outline-offset:3px}
.eb-notify-count{position:absolute;right:-7px;top:-8px;min-width:21px;height:21px;padding:0 5px;border:2px solid #f3f6fa;border-radius:999px;display:grid;place-items:center;background:#d9253e;color:white;font:800 10px/1 sans-serif}
.eb-notify-popover{position:absolute;z-index:40;right:0;top:calc(100% + 13px);width:360px;max-width:calc(100vw - 32px);border-radius:15px;border:1px solid #dbe5ef;background:white;box-shadow:0 23px 65px rgba(0,39,79,.17);overflow:hidden;text-align:left}
.eb-notify-popover-head{padding:18px 19px;display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid #e7edf4}
.eb-notify-popover-head strong{font-size:1.08rem;color:#00274f}
.eb-notify-new-label{font-size:.73rem;padding:5px 9px;border-radius:30px;background:#fce9ed;color:#bf203b;font-weight:800}
.eb-notify-empty{padding:18px 19px;margin:0;font-size:.86rem;line-height:1.6;color:#667b91}
.eb-notify-list{max-height:345px;overflow:auto}
.eb-notify-item{display:flex;align-items:center;gap:11px;padding:15px 17px;text-decoration:none;color:#00274f;border-bottom:1px solid #edf1f6}
.eb-notify-item:hover{background:#f3f7fb}
.eb-notify-item-new{background:#fff9fa}
.eb-notify-item-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:9px;background:#e7f2f9;color:#256b9c;font-size:1.15rem;font-weight:700;flex-shrink:0}
.eb-notify-item-new .eb-notify-item-icon{background:#fce5e9;color:#ba2038}
.eb-notify-item-copy{flex:1;min-width:0}
.eb-notify-item-copy strong{font-size:.85rem;font-weight:800;line-height:1.35;display:block;overflow-wrap:anywhere}
.eb-notify-item-copy small{color:#607b93;font-size:.72rem;margin-top:5px;display:block}
.eb-notify-chevron{font-size:25px;color:#91a1b1}
.eb-notify-all{display:block;background:#f5f8fb;color:#b91e38;font-weight:750;text-align:center;text-decoration:none;font-size:.84rem;padding:14px}
.eb-notify-all:hover{background:#edf3f8}
@media(max-width:760px){.eb-notify-actions{width:100%;justify-content:space-between}.eb-notify-popover{right:auto;left:0;width:min(360px,calc(100vw - 40px))}}

/* Unified learning-platform entrance: navy / red / white school identity */
.eb-hub{background:radial-gradient(ellipse 52% 50% at 3% 3%,#e7edf6 0%,transparent 100%),#f3f6fa}
.eb-hub-inner{max-width:1080px}
.eb-return-site{display:inline-flex;align-items:center;gap:11px;color:#274e71;font-size:.85rem;font-weight:750;text-decoration:none;margin-bottom:34px}
.eb-return-site:hover{color:#c51c3b}
.eb-hub-top{max-width:740px;margin:0 auto 42px;text-align:center}
.eb-hub-top .eb-kicker{justify-content:center}
.eb-hub-top h1{color:#00274f;letter-spacing:-.062em;font-weight:850;font-size:clamp(2.8rem,5vw,4.8rem);line-height:1.09;margin:19px 0 22px}
.eb-hub-top h1 em{font-family:Georgia,serif;color:#d9253e;font-style:italic;font-weight:400}
.eb-hub-top p{color:#5b7087;font-size:1.02rem;line-height:1.72;max-width:630px;margin:0 auto}
.eb-hub-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.eb-hub-card{display:flex;flex-direction:column;position:relative;isolation:isolate;min-height:345px;border:1px solid #dae3eb;border-radius:18px;padding:32px 34px 29px;text-decoration:none;overflow:hidden;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.eb-hub-card:hover{transform:translateY(-4px);box-shadow:0 18px 45px rgba(0,30,66,.10)}
.eb-hub-card:focus-visible{outline:3px solid #d9253e;outline-offset:4px}
.eb-hub-student{background:#00274f;color:#fff;border-color:#00274f}
.eb-hub-teacher{background:#fff;color:#00274f}
.eb-hub-card-kicker{font-size:.7rem;letter-spacing:.105em;font-weight:800;color:#a9c8e4;margin-bottom:24px}
.eb-hub-teacher .eb-hub-card-kicker{color:#bf2541}
.eb-hub-icon{display:grid;place-items:center;border-radius:14px;width:62px;height:62px;background:rgba(255,255,255,.10);color:#fff;margin-bottom:18px}
.eb-hub-teacher .eb-hub-icon{background:#fff0f2;color:#cb2441}
.eb-hub-card-title{font-weight:850;font-size:clamp(1.45rem,2.9vw,2rem);letter-spacing:-.035em;line-height:1.15}
.eb-hub-card-desc{font-size:.9rem;line-height:1.65;opacity:.85;max-width:360px;margin:12px 0 29px}
.eb-hub-card-action{font-size:.9rem;font-weight:800;display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:auto;max-width:290px}
.eb-hub-card-action>span{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#d9253e;color:#fff;font-size:17px}
.eb-hub-card-deco{position:absolute;right:25px;top:34px;font-family:Georgia,serif;font-size:90px;letter-spacing:-.1em;font-style:italic;color:rgba(255,255,255,.07);transform:rotate(-13deg);z-index:-1}
.eb-hub-card-deco span{color:rgba(255,255,255,.14)}
.eb-hub-ring{position:absolute;right:-80px;top:-175px;width:340px;height:340px;border:1px solid rgba(0,39,79,.055);border-radius:50%;box-shadow:0 0 0 45px rgba(0,39,79,.02),0 0 0 85px rgba(0,39,79,.012);z-index:-1}
.eb-hub-support{margin:33px 0 0;text-align:center;font-size:.83rem;color:#627992}
.eb-hub-support span{color:#c51e3d;margin-right:6px}
.eb-teacher-login .eb-login-story>.eb-return-site{margin-top:-24px;margin-bottom:28px}
.eb-teacher-login #eb-teacher-loginform .login-username,.eb-teacher-login #eb-teacher-loginform .login-password{margin:0 0 18px}
.eb-teacher-login #eb-teacher-loginform label{display:block;font-size:.86rem;font-weight:700;color:#183855;margin-bottom:9px}
.eb-teacher-login #eb-teacher-loginform input[type=text],.eb-teacher-login #eb-teacher-loginform input[type=password]{width:100%;height:52px;border:1px solid #d7e0ea;border-radius:10px;padding:10px 15px;color:#122d4e;font-size:1rem;background:#f9fbfd}
.eb-teacher-login #eb-teacher-loginform input:focus{outline:2px solid #d9253e;outline-offset:2px}
.eb-teacher-login #eb-teacher-loginform .login-remember{margin:8px 0 24px}
.eb-teacher-login #eb-teacher-loginform .login-remember label{font-weight:500;display:flex;align-items:center;gap:8px}
.eb-teacher-login #eb-teacher-loginform .login-remember input{accent-color:#d9253e;width:17px;height:17px}
.eb-teacher-login #eb-teacher-loginform .login-submit{margin:0}
.eb-teacher-login #eb-teacher-loginform input[type=submit]{width:100%;min-height:54px;border:0;border-radius:10px;background:#d9253e;color:#fff;font-size:1rem;font-weight:800;cursor:pointer;padding:15px 21px}
.eb-teacher-login #eb-teacher-loginform input[type=submit]:hover{background:#b51b31}
.eb-teacher-portal{padding-top:48px}
.eb-teacher-hero{padding-bottom:34px;border-bottom:1px solid #dde6f0;margin-bottom:22px}
.eb-teacher-hero h1{font-size:clamp(2.15rem,4vw,3.2rem)}
.eb-teacher-actions{display:flex;gap:10px;flex-wrap:wrap}
.eb-teacher-intro{background:#00274f;color:#fff;border-radius:14px;padding:19px 24px;display:flex;align-items:center;gap:18px}
.eb-teacher-intro-icon{width:55px;height:55px;border-radius:13px;background:#173c65;color:#fff;display:grid;place-items:center;flex-shrink:0}
.eb-teacher-intro strong{display:block;font-size:1rem;font-weight:800;margin-bottom:5px}
.eb-teacher-intro span{color:#c1d2e4;font-size:.85rem;line-height:1.5;display:block}
.eb-teacher-intro .eb-teacher-intro-tag{margin-left:auto;color:#fff;border:1px solid rgba(255,255,255,.36);padding:8px 12px;border-radius:20px;font-size:.65rem;font-weight:800;letter-spacing:.1em}
.eb-teacher-portal .eb-tests-admin{margin-top:25px;max-width:none}
.eb-teacher-portal .eb-tests-admin .eb-panels{grid-template-columns:minmax(260px,.87fr) minmax(420px,1.42fr)}
.eb-teacher-portal .eb-tests-admin .eb-panel{box-shadow:0 13px 35px rgba(12,43,75,.04)}
.eb-teacher-portal .eb-tests-admin input[type=search],.eb-teacher-portal .eb-tests-admin input[type=text],.eb-teacher-portal .eb-tests-admin textarea{background:#fcfdff;color:#123050}
.eb-teacher-portal .eb-tests-admin .eb-choices input[type=radio],.eb-teacher-portal .eb-tests-admin .eb-student input{accent-color:#d9253e}
.eb-teacher-portal .eb-tests-admin .eb-table td{font-size:.85rem}
.eb-teacher-portal .eb-tests-admin .eb-table a{color:#b51b31;font-weight:750}
.eb-teacher-portal .eb-tests-admin .eb-save:focus-visible,.eb-hub .eb-return-site:focus-visible{outline:3px solid #d9253e;outline-offset:3px}
.eb-teacher-portal .eb-tests-admin .notice{padding:12px 16px;margin:12px 0;border-radius:8px;background:#e9f6ee;color:#1b7142}
.eb-teacher-portal .eb-tests-admin .notice-error{background:#fff0f2;color:#ac2240}
@media(max-width:1050px){.eb-teacher-portal .eb-tests-admin .eb-panels{grid-template-columns:1fr}}
@media(max-width:760px){.eb-hub-options{grid-template-columns:1fr}.eb-hub-top{margin-bottom:30px}.eb-hub-card{min-height:300px}.eb-teacher-login .eb-login-story>.eb-return-site{margin-top:0}.eb-teacher-intro .eb-teacher-intro-tag{display:none}.eb-teacher-hero{align-items:flex-start}.eb-teacher-actions{width:100%}}
@media(max-width:450px){.eb-hub-card{padding:27px 25px}.eb-hub-top h1{font-size:2.65rem}.eb-teacher-intro{padding:16px}.eb-teacher-portal .eb-tests-admin .eb-panel{padding:16px}}
@media(prefers-reduced-motion:reduce){.eb-hub-card{transition:none}.eb-hub-card:hover{transform:none}}

/* Staff dashboard v2: a real landing page with focused, purposeful sections */
.eb-teacher-screen .eb-teacher-hero{margin-bottom:0;border-bottom:0;padding-bottom:23px}
.eb-teacher-screen .eb-teacher-actions{align-items:center}
.eb-staff-bell .eb-notify-popover{min-width:350px}
.eb-staff-bell .eb-notify-trigger{height:45px;width:45px}
.eb-teacher-nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#fff;border:1px solid #e0e7f0;border-radius:13px;padding:8px;margin:0 0 26px}
.eb-teacher-nav a{display:inline-flex;align-items:center;gap:10px;padding:11px 17px;border-radius:9px;color:#3b546d;font-size:.9rem;font-weight:800;text-decoration:none;transition:background .15s ease}
.eb-teacher-nav a:hover{background:#f0f5f9;color:#00274f}
.eb-teacher-nav a[aria-current=page]{background:#00274f;color:#fff}
.eb-teacher-nav a span{font-size:1.2rem;line-height:1;font-weight:700}
.eb-teacher-welcome{position:relative;overflow:hidden;border-radius:18px;min-height:284px;padding:35px 42px;display:flex;background:#00274f;color:#fff;isolation:isolate}
.eb-teacher-welcome>div:first-child{position:relative;z-index:2;max-width:640px}
.eb-teacher-welcome-tag{font-size:.69rem;letter-spacing:.12em;font-weight:800;color:#a4bbd4}
.eb-teacher-welcome h2{color:#fff;letter-spacing:-.052em;font-size:clamp(1.9rem,3.2vw,2.85rem);line-height:1.13;margin:14px 0}
.eb-teacher-welcome h2 em{font-family:Georgia,serif;color:#ff91a3;font-style:italic;font-weight:400}
.eb-teacher-welcome p{color:#bcd0e3;font-size:.91rem;line-height:1.65;max-width:475px;margin:0 0 22px}
.eb-teacher-hero-button{display:inline-flex;align-items:center;gap:17px;padding:12px 17px;border-radius:9px;background:#df2644;color:white;font-weight:850;text-decoration:none;font-size:.87rem}
.eb-teacher-hero-button:hover{background:#bd213b;color:white}
.eb-teacher-welcome-art{position:absolute;inset:0 0 0 auto;width:40%;pointer-events:none;overflow:hidden}
.eb-teacher-welcome-disc{position:absolute;border-radius:50%;border:1px solid rgba(255,255,255,.13);width:400px;height:400px;top:-150px;right:-130px;box-shadow:0 0 0 55px rgba(255,255,255,.03),0 0 0 120px rgba(255,255,255,.017)}
.eb-teacher-welcome-a{position:absolute;right:17%;top:24%;font-family:Georgia,serif;font-style:italic;font-size:clamp(5rem,10vw,10rem);font-weight:700;color:rgba(255,255,255,.12);transform:rotate(-12deg)}
.eb-teacher-welcome-a span{color:rgba(255,113,144,.35)}
.eb-teacher-welcome-line{position:absolute;bottom:26px;right:33px;font-size:.7rem;font-weight:800;letter-spacing:.17em;color:#9fb5cd}
.eb-teacher-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:19px 0 36px}
.eb-teacher-stat{background:white;border:1px solid #dde6f0;border-radius:14px;padding:19px 20px;min-width:0}
.eb-teacher-stat>span{display:block;font-size:.79rem;color:#5e7187;font-weight:750}
.eb-teacher-stat>strong{display:block;color:#00274f;letter-spacing:-.05em;font-size:2.25rem;line-height:1.25;margin:7px 0}
.eb-teacher-stat>small{color:#7990a2;font-size:.72rem;line-height:1.5;display:block}
.eb-teacher-section-heading{margin:0 0 17px}
.eb-teacher-section-heading h2,.eb-teacher-recent-title h2{color:#00274f;font-weight:850;letter-spacing:-.04em;font-size:1.7rem;margin:0}
.eb-teacher-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.eb-teacher-action-card{display:flex;flex-direction:column;min-height:240px;border:1px solid #dde6f0;border-radius:15px;padding:23px 23px 20px;background:#fff;text-decoration:none;color:#00274f;transition:border-color .17s,transform .17s,box-shadow .17s}
.eb-teacher-action-card:hover{transform:translateY(-3px);border-color:#bbc9d9;box-shadow:0 14px 28px rgba(0,39,79,.07)}
.eb-teacher-action-card .eb-teacher-action-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;margin-bottom:18px;font-size:1.5rem;font-weight:750}
.eb-action-red{background:#fce7eb;color:#b82440}.eb-action-blue{background:#e4f0f9;color:#1a5d89}.eb-action-green{background:#e9f2ec;color:#237452}
.eb-teacher-action-card>strong{font-size:1.2rem;letter-spacing:-.025em;margin-bottom:8px}
.eb-teacher-action-card>span:not(.eb-teacher-action-icon){font-size:.84rem;line-height:1.58;color:#5d7489}
.eb-teacher-action-card>small{margin-top:auto;padding-top:19px;font-size:.78rem;font-weight:800;color:#c1213b;display:flex;justify-content:space-between;gap:10px}
.eb-teacher-recent,.eb-teacher-results-panel{border:1px solid #dde6f0;border-radius:15px;background:#fff;padding:25px 27px;margin-top:26px}
.eb-teacher-recent-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}
.eb-teacher-recent-title .eb-section-cap{margin-bottom:8px}
.eb-teacher-recent-title a{color:#c01e3a;font-size:.83rem;text-decoration:none;font-weight:800}
.eb-teacher-recent-title a:hover{text-decoration:underline}
.eb-teacher-empty{display:flex;align-items:center;gap:17px;padding:22px 23px;border:1px dashed #cbd7e3;border-radius:11px;background:#f8fafc}
.eb-teacher-empty-mark{flex:0 0 auto;width:48px;height:48px;display:grid;place-items:center;border-radius:12px;background:#e8f0f6;color:#2e6385;font-size:1.5rem}
.eb-teacher-empty strong{font-size:.97rem;color:#123957;display:block;margin-bottom:6px}
.eb-teacher-empty p{font-size:.84rem;line-height:1.65;color:#657b90;margin:0}
.eb-teacher-result-row{padding:15px 8px;display:flex;align-items:center;gap:14px;text-decoration:none;border-top:1px solid #e8eef3;color:#29445e;transition:background .15s}
a.eb-teacher-result-row:hover{background:#f7fafc}
.eb-teacher-result-avatar{display:grid;place-items:center;border-radius:10px;background:#e9f3ed;color:#35795c;width:39px;height:39px;font-weight:850;flex:0 0 auto}
.eb-teacher-result-name{flex:1;min-width:0}
.eb-teacher-result-name strong{display:block;color:#00274f;font-size:.9rem}
.eb-teacher-result-name small{font-size:.77rem;color:#72879b;margin-top:4px;display:block;line-height:1.4;overflow-wrap:anywhere}
.eb-teacher-result-score{font-size:.87rem;font-weight:850;color:#00274f;border-radius:8px;padding:8px 12px;background:#f0f5f8;white-space:nowrap}
.eb-teacher-section-top{margin:24px 0 25px}
.eb-teacher-section-top h2{font-size:clamp(1.8rem,3vw,2.45rem);line-height:1.2;letter-spacing:-.045em;color:#00274f;margin:8px 0 10px}
.eb-teacher-section-top p{font-size:.91rem;line-height:1.6;color:#60788e;max-width:700px}
.eb-teacher-results-panel{margin-top:0}
.eb-teacher-results-panel h3{font-size:1.18rem;color:#00274f;margin:0}
.eb-teacher-results-panel h3 span{font-size:.85rem;color:#708498;font-weight:550}
.eb-teacher-result-static{cursor:default}
.eb-teacher-results-empty{padding:24px 4px;color:#657b90;font-size:.9rem}
.eb-teacher-filter{font-size:.85rem;background:#edf3f8;padding:11px 14px;border-radius:9px;color:#455f79}
.eb-teacher-filter a{color:#b51b31;font-weight:800}
.eb-teacher-filter-list{margin:25px 0 0}
.eb-teacher-filter-chips{display:flex;flex-wrap:wrap;gap:9px}
.eb-teacher-filter-chips a{background:white;border:1px solid #dde6ef;padding:10px 13px;border-radius:9px;text-decoration:none;color:#214765;font-size:.85rem}
.eb-teacher-filter-chips a:hover{border-color:#c1213b;color:#c1213b}
.eb-teacher-screen.eb-mode-create .eb-tests-admin .eb-panels,
.eb-teacher-screen.eb-mode-tests .eb-tests-admin .eb-panels{display:block;max-width:900px}
.eb-teacher-screen.eb-mode-create .eb-tests-admin .eb-panel:first-child{display:none}
.eb-teacher-screen.eb-mode-tests .eb-tests-admin .eb-panel:last-child{display:none}
.eb-teacher-screen.eb-mode-create .eb-tests-admin .eb-panels{max-width:930px}
.eb-teacher-screen.eb-mode-create .eb-tests-admin>.eb-overline,
.eb-teacher-screen.eb-mode-create .eb-tests-admin>h1,
.eb-teacher-screen.eb-mode-create .eb-tests-admin>.eb-muted,
.eb-teacher-screen.eb-mode-tests .eb-tests-admin>.eb-overline,
.eb-teacher-screen.eb-mode-tests .eb-tests-admin>h1,
.eb-teacher-screen.eb-mode-tests .eb-tests-admin>.eb-muted{display:none}
.eb-teacher-screen.eb-mode-create .eb-tests-admin .eb-panel,
.eb-teacher-screen.eb-mode-tests .eb-tests-admin .eb-panel{border-radius:14px}
.eb-teacher-screen.eb-mode-create .eb-tests-admin>.eb-note,
.eb-teacher-screen.eb-mode-tests .eb-tests-admin>.eb-note{max-width:900px}
.eb-teacher-screen .eb-tests-admin .eb-panel .eb-table{border-collapse:collapse}
.eb-teacher-screen .eb-notify-popover{z-index:90}
@media(max-width:980px){
.eb-teacher-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
.eb-teacher-action-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:680px){
.eb-teacher-screen .eb-teacher-actions{width:100%;justify-content:flex-start}
.eb-staff-bell .eb-notify-popover{right:auto;left:0;width:min(350px,calc(100vw - 45px));min-width:0}
.eb-teacher-nav{gap:4px}
.eb-teacher-nav a{padding:11px 10px;font-size:.79rem}
.eb-teacher-welcome{padding:30px 27px;min-height:310px}
.eb-teacher-welcome-art{opacity:.28}
.eb-teacher-stats{gap:10px}
.eb-teacher-stat{padding:16px 17px}
.eb-teacher-stat>strong{font-size:1.9rem}
.eb-teacher-action-grid{grid-template-columns:1fr}
.eb-teacher-action-card{min-height:190px}
.eb-teacher-recent,.eb-teacher-results-panel{padding:20px 18px}
.eb-teacher-empty{align-items:flex-start;padding:15px}
.eb-teacher-recent-title{align-items:flex-start;flex-direction:column}
}
@media(prefers-reduced-motion:reduce){.eb-teacher-action-card{transition:none}.eb-teacher-action-card:hover{transform:none}}

/* Dedicated test library with explicit edit, results and reversible delete actions */
.eb-teacher-list-head .eb-teacher-hero-button{margin-top:4px}
.eb-teacher-test-collection{background:#fff;border:1px solid #dde6f0;border-radius:16px;overflow:hidden;margin:20px 0 26px}
.eb-teacher-test-collection-head{padding:19px 24px;background:#fafcfe;border-bottom:1px solid #e5ecf3;display:flex;align-items:center;justify-content:space-between;gap:16px}
.eb-teacher-test-collection-head h3{margin:0;color:#00274f;font-size:1.15rem;font-weight:850}
.eb-teacher-test-collection-head h3 span{color:#7b8fa2;font-size:.88rem;font-weight:650}
.eb-teacher-test-collection-head small{color:#71879b;font-size:.78rem}
.eb-teacher-test-list-row{display:flex;align-items:center;gap:17px;padding:20px 24px;border-bottom:1px solid #e7edf4}
.eb-teacher-test-list-row:last-child{border-bottom:0}
.eb-test-list-icon{width:48px;height:48px;border-radius:12px;flex:0 0 auto;background:#e5f0f8;display:grid;place-items:center;color:#1f628e;font-family:Georgia,serif;font-weight:800;font-size:1.25rem}
.eb-test-list-details{flex:1;min-width:160px}
.eb-test-list-details h4{margin:0 0 7px;color:#00274f;font-size:.97rem;font-weight:850;overflow-wrap:anywhere}
.eb-test-list-details p{margin:0;font-size:.78rem;color:#687e94;line-height:1.5}
.eb-test-list-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.eb-test-list-actions form{margin:0}
.eb-test-list-btn{display:inline-flex;justify-content:center;align-items:center;min-height:37px;padding:8px 12px;border-radius:8px;border:1px solid #d5e0eb;background:#fff;color:#244763;font-size:.78rem;font-weight:800;line-height:1.2;text-decoration:none;cursor:pointer;font-family:inherit}
.eb-test-list-btn:hover{background:#f0f5f9;border-color:#bfcddb;color:#00274f}
.eb-test-list-edit{color:#bf2340;border-color:#f1cad3;background:#fff6f8}
.eb-test-list-edit:hover{color:#a81e39;background:#ffeaee;border-color:#e9b6c0}
.eb-test-list-trash{color:#a94245;border-color:#e8c8ca}
.eb-test-list-trash:hover{background:#fff1f1;border-color:#d78d92;color:#962833}
.eb-teacher-list-empty{padding:33px 26px;text-align:center}
.eb-teacher-list-empty strong{font-size:1rem;color:#00274f}
.eb-teacher-list-empty p{margin:9px 0 15px;color:#6a8196;font-size:.88rem}
.eb-teacher-list-empty a{color:#bf2340;font-weight:850;text-decoration:none;font-size:.86rem}
.eb-teacher-trash-collection .eb-test-list-icon{background:#eef1f4;color:#687a8c}
.eb-teacher-manage-alert{padding:14px 19px;border-radius:10px;background:#edf7f0;color:#276b42;border:1px solid #cce8d6;font-size:.88rem;font-weight:700}
.eb-teacher-manage-alert.eb-manage-alert-error{background:#fff2f2;color:#b32e3a;border-color:#efc6ca}
@media(max-width:800px){.eb-teacher-test-list-row{align-items:flex-start;flex-wrap:wrap}.eb-test-list-actions{width:100%;margin-left:65px}}
@media(max-width:520px){.eb-teacher-test-list-row{padding:17px}.eb-teacher-test-collection-head{padding:18px}.eb-test-list-actions{margin-left:0}.eb-test-list-btn{font-size:.76rem;padding:8px 10px}}





