@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/fonts/cairo-v31-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/fonts/cairo-v31-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/fonts/cairo-v31-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root{--bg:#050b08;--panel:#0a1510;--panel2:#0d1c15;--gold:#d4ae4f;--gold2:#f2d77f;--green:#16805a;--text:#f5f7f3;--muted:#98a69e;--line:#21362b;--danger:#e99b8c}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Cairo,Tahoma,sans-serif;background:radial-gradient(circle at 50% -20%,#153a29 0,#050b08 43%);color:var(--text)}body{overflow-x:hidden}.glow{position:fixed;border-radius:50%;filter:blur(90px);opacity:.14;pointer-events:none}.g1{width:430px;height:430px;background:#1a9a6b;top:-250px;right:-130px}.g2{width:400px;height:400px;background:#d3a842;bottom:-280px;left:-160px}.topbar{height:76px;padding:0 5%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #fff1;position:relative;z-index:5}.brand{border:0;background:none;color:var(--text);display:flex;align-items:center;gap:11px;font-family:inherit;cursor:pointer;text-align:right}.mark{display:grid;place-items:center;width:48px;height:48px;overflow:hidden;border:1px solid #d5ad4cb3;border-radius:14px;color:var(--gold2);font-size:24px;font-weight:900;background:linear-gradient(145deg,#143e2d,#08130e);box-shadow:0 8px 30px #0006}.mark img{width:92px;height:124px;max-width:none;object-fit:cover;object-position:center center;mix-blend-mode:screen}.hero-logo{display:block;width:min(520px,86vw);height:auto;margin:0 auto 18px;border-radius:22px;filter:drop-shadow(0 18px 35px #0007)}.brand b{display:block;font-size:20px}.brand small{display:block;color:#7f8d85;font-size:10px}.top-actions{display:flex;align-items:center;gap:10px}.online{font-size:10px;color:#8d9c93}.online i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#48d98a;margin-left:4px}.ghost,.back{background:#0b1711;border:1px solid var(--line);color:#cbd4ce;border-radius:12px;padding:9px 15px;font-family:inherit;cursor:pointer}.page{display:none;min-height:calc(100vh - 76px);padding:42px 6%;position:relative;z-index:1}.page.active{display:block}.hero{max-width:820px;margin:7vh auto 0;text-align:center}.eyebrow{display:inline-block;color:var(--gold2);border:1px solid #d5ad4c47;background:#d5ad4c0d;border-radius:30px;padding:7px 15px;font-size:12px;font-weight:700}.hero h1{font-size:clamp(48px,8vw,84px);line-height:1.05;margin:22px 0 18px;letter-spacing:-3px}.hero h1 em{font-style:normal;color:var(--gold2)}.hero p{max-width:690px;margin:auto;color:var(--muted);font-size:16px;line-height:2}.roles{display:grid;grid-template-columns:1fr 1fr;gap:14px;max-width:690px;margin:35px auto 20px}.role{font-family:inherit;text-align:right;color:var(--text);border:1px solid var(--line);border-radius:20px;padding:20px;display:flex;align-items:center;gap:15px;cursor:pointer;transition:.2s;background:linear-gradient(145deg,#0e2118,#09130f)}.role:hover{transform:translateY(-3px);border-color:#47735d}.student-role{background:linear-gradient(145deg,#141a13,#0b120e)}.role-icon{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:#d5ad4c12;color:var(--gold2);font-size:23px}.role span:nth-child(2){flex:1}.role strong,.role small{display:block}.role strong{font-size:16px}.role small{font-size:11px;color:var(--muted);margin-top:3px}.role>b{color:var(--gold2)}.mini-features{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}.mini-features span{font-size:10px;color:#8e9b94;border:1px solid #182920;border-radius:20px;padding:7px 11px}.copyright{text-align:center;color:#68746d;font-size:10px;line-height:2;margin-top:30px}.copyright b{color:#aab3ad;font-weight:600}.card{max-width:650px;margin:1vh auto;background:linear-gradient(145deg,#0c1a13,#07100c);border:1px solid var(--line);border-radius:26px;padding:28px;box-shadow:0 25px 80px #0007}.wide{max-width:900px}.section-title{display:flex;align-items:center;gap:14px;margin:28px 0}.section-title h2,.card h2{margin:0;font-size:28px}.section-title p,.card>p{color:var(--muted);margin:5px 0 0;font-size:13px}.ai-badge{display:grid;place-items:center;width:54px;height:54px;border-radius:16px;background:#d5ad4c14;color:var(--gold2);font-weight:900;border:1px solid #d5ad4c44}.card label{display:block;font-size:12px;color:#c6cec9;margin:16px 0 7px}textarea,input,select{width:100%;font:inherit;color:var(--text);background:#07110d;border:1px solid var(--line);border-radius:13px;padding:13px;outline:none}textarea{height:120px;resize:vertical}input:focus,textarea:focus,select:focus{border-color:#b18d3f}.grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}.primary{width:100%;margin-top:18px;border:0;border-radius:14px;padding:14px;background:linear-gradient(135deg,#c9a342,#f0d173);color:#0b120e;font:800 14px Cairo;cursor:pointer;box-shadow:0 10px 35px #caa64622}.primary:disabled{opacity:.45;cursor:not-allowed}.question{margin-top:16px;padding:18px;border:1px solid var(--line);border-radius:18px;background:#08140f}.question h3{font-size:15px;line-height:1.8;margin:0 0 13px}.q-num{color:var(--gold2);font-size:11px;margin-bottom:4px}.opts{display:grid;grid-template-columns:1fr 1fr;gap:8px}.opt{padding:10px;border:1px solid #1b2d23;border-radius:10px;color:#c8d0cb;font-size:12px}.opt.correct{border-color:#6c5830;background:#d5ad4c08}.opt span{color:var(--gold2);font-weight:800;margin-left:6px}.explain{display:block;color:#79877f;margin-top:10px}.error{color:#f0c2a9}.loading{text-align:center;color:var(--gold2)}.join-card{text-align:right;max-width:480px}.game-icon,.pulse{width:75px;height:75px;border-radius:23px;display:grid;place-items:center;color:var(--gold2);font-size:32px;background:#d5ad4c12;border:1px solid #d5ad4c44;margin:30px auto 15px}.join-card h2{text-align:center}.join-card>p{text-align:center;margin-bottom:25px}.code{text-align:center;font-size:28px;letter-spacing:8px;font-weight:800}.form-error{color:var(--danger);font-size:12px;text-align:center;margin-top:12px;min-height:18px}.waiting-card{width:min(680px,100%);text-align:center;margin:auto;padding:35px}.room-label{display:inline-block;padding:9px 15px;border:1px solid var(--line);border-radius:30px;color:#9aa59e;font-size:12px}.room-label strong{color:var(--gold2);margin-right:8px;letter-spacing:2px}.pulse{margin:55px auto 18px;animation:pulse 1.8s infinite}.waiting-card h2{font-size:30px;margin:0}.waiting-card p{color:var(--muted)}.student-chip{display:inline-flex;gap:8px;align-items:center;padding:9px 16px;border:1px solid var(--line);border-radius:30px;margin-top:18px}.team-chip{display:inline-flex;align-items:center;justify-content:center;margin:10px auto 0;padding:7px 13px;border:1px solid #345242;border-radius:20px;background:#0b1912;color:#7ee3ae;font-size:11px}.muted-line{color:#7f8d85;font-size:11px;margin-top:14px}.waiting-dots{margin:22px}.waiting-dots i{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--gold);margin:0 3px;animation:dot 1s infinite}.waiting-dots i:nth-child(2){animation-delay:.15s}.waiting-dots i:nth-child(3){animation-delay:.3s}.room-card{text-align:center;max-width:700px}.room-kicker{color:#c8a85a;font-weight:700;font-size:12px}.big-code{font-size:clamp(3.5rem,12vw,7rem);font-weight:900;letter-spacing:.12em;color:#d8b65c;margin:18px 0;background:#08120d;border:1px solid #30483b;border-radius:24px;padding:10px 18px}.copy-btn{background:#18251f;border:1px solid #3c5b4b;color:#fff;border-radius:12px;padding:10px 18px;cursor:pointer;font-family:inherit}.host-status{margin:22px auto;display:flex;justify-content:center;gap:9px;align-items:center;color:#d9e4df;font-size:13px}.live-dot{width:10px;height:10px;border-radius:50%;background:#4ade80;box-shadow:0 0 14px #4ade80}.players-title{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:12px 2px;color:#cbd4ce}.players-title span{background:#17251e;color:var(--gold2);padding:3px 10px;border-radius:20px;font-size:11px}.player-list{display:grid;gap:8px;margin-top:10px;max-height:260px;overflow:auto}.player-row{display:flex;align-items:center;gap:10px;padding:12px 14px;background:#0c1812;border:1px solid #1a2b22;border-radius:13px}.player-row span{color:var(--gold2)}.player-row b{flex:1;text-align:right}.player-row em{font-style:normal;color:#87958d;font-size:11px}.empty{padding:24px;color:#66746c;font-size:12px;border:1px dashed #263a30;border-radius:13px}.host-tip{color:#6f7e75;font-size:10px;margin-top:10px}.host-game-head{display:flex;align-items:center;justify-content:space-between}.host-game-head>div:first-child{font-size:15px;font-weight:800}.timer{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:var(--gold2);color:#07110d;font-weight:900;font-size:19px;box-shadow:0 8px 25px #d5ad4c22}.progress{height:6px;background:#17271f;border-radius:20px;overflow:hidden;margin:16px 0 26px}.progress i{display:block;height:100%;width:100%;background:linear-gradient(90deg,#d5ad4c,#f0d173);border-radius:20px;transition:width .2s}.game-card{max-width:900px}.game-card h2{font-size:25px;line-height:1.8;margin:0 0 20px}.game-options{display:grid;grid-template-columns:1fr 1fr;gap:14px}.game-option{padding:20px;text-align:right;border:1px solid #30483b;background:#111b17;color:#fff;border-radius:16px;font:600 16px Cairo;cursor:pointer}.game-option:hover,.game-option.selected{border-color:#d8b65c;background:#1b2b23}.game-option:disabled{cursor:default;opacity:.75}.game-option.host-option.right{border-color:#527b5f}.game-option span{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#273b31;margin-left:10px;color:#d8b65c;font-weight:800}.answer-count{text-align:center;color:#829087;font-size:12px;margin-top:18px}.leaderboard{margin-top:20px;border-top:1px solid var(--line);padding-top:14px}.leaderboard h3{font-size:14px;margin:0 0 9px;color:#cbd4ce}.rank-row{display:flex;align-items:center;gap:12px;padding:11px 13px;margin:6px 0;border:1px solid #1b2c23;background:#0b1711;border-radius:12px}.rank-row>b{width:28px;height:28px;display:grid;place-items:center;background:#17251e;color:var(--gold2);border-radius:9px}.rank-row span{flex:1;color:#fff}.rank-row em{font-style:normal;color:#d4b55d;font-size:12px}.rank-row.first{border-color:#69562d;background:#17160e}.answer-message{text-align:center;min-height:30px;color:var(--gold2);font-weight:700;margin-top:14px}.result-medal{text-align:center;font-size:60px;margin-top:10px}.results-card{text-align:center;max-width:650px}.results-card>p{margin-bottom:20px}.final .rank-row{padding:15px}.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#17251e;border:1px solid #3a5447;color:#fff;padding:11px 18px;border-radius:13px;font-size:12px;z-index:99;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}@keyframes pulse{50%{transform:scale(1.06);box-shadow:0 0 45px #d5ad4c18}}@keyframes dot{50%{opacity:.25;transform:translateY(-3px)}}@media(max-width:650px){.topbar{padding:0 18px}.top-actions .online{display:none}.page{padding:28px 16px}.hero{margin-top:6vh}.hero h1{font-size:49px}.roles,.grid,.opts,.features,.game-options{grid-template-columns:1fr}.role{padding:17px}.card{padding:21px;border-radius:20px}.section-title h2{font-size:22px}.waiting-card{padding:15px}.about-btn{font-size:11px;padding:8px 11px}.big-code{letter-spacing:.07em}.game-card h2{font-size:20px}.game-option{padding:16px;font-size:14px}}
/* تحسين عرض الأسئلة والإجابات على جميع أحجام الشاشات */
.question-mode{margin-top:14px;padding:14px 15px;border:1px solid var(--line);border-radius:15px;background:#08140f}
.question-mode label{margin:0 0 7px}
.question-mode small{display:block;color:#74827a;font-size:10px;margin-top:7px}
.game-card{width:min(900px,100%);overflow:visible}
.game-card h2,#studentQuestion,#hostQuestion{width:100%;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.9;text-align:right;direction:rtl;hyphens:none}.game-card,.game-options,.game-option{min-width:0;max-width:100%}
.game-options{width:100%;min-width:0}
.game-option{width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:break-word;line-height:1.8;display:flex;align-items:flex-start;gap:10px}
.game-option span{flex:0 0 32px;margin:0}
.game-option strong{display:block;min-width:0;flex:1;font-weight:600;overflow-wrap:anywhere}
.board-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.board-head h3{margin:0!important;font-size:15px!important;color:#dfe7e2!important}
.board-head span{font-size:10px;color:#74827a;border:1px solid var(--line);border-radius:20px;padding:5px 9px}
.podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:10px}
.podium-card{min-width:0;padding:12px 8px;border:1px solid #263a2f;background:#0b1711;border-radius:14px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:4px}
.podium-card b{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#17251e;color:var(--gold2);font-size:13px}
.podium-card span{max-width:100%;font-weight:700;font-size:12px;overflow-wrap:anywhere}
.podium-card em{font-style:normal;color:#d4b55d;font-size:10px}
.podium-card.p1{border-color:#69562d;background:#17160e;transform:translateY(-4px)}
.podium-card.p2{margin-top:4px}.podium-card.p3{margin-top:8px}
.board-list{display:grid;gap:6px}
.final-podium{margin-top:8px;margin-bottom:14px}
@media(max-width:650px){
  .question-mode{padding:12px}
  .game-card{padding:17px}
  .host-game-head,.game-top{gap:12px}
  .game-card h2,#studentQuestion,#hostQuestion{font-size:20px;line-height:1.9;margin-bottom:15px}
  .game-option{padding:15px 13px;font-size:14px;line-height:1.9;align-items:flex-start}
  .podium{gap:6px}
  .podium-card{padding:10px 5px}
  .podium-card span{font-size:11px}
}
@media(max-width:380px){
  .game-card{padding:13px}
  .game-card h2,#studentQuestion,#hostQuestion{font-size:18px}
  .game-option{font-size:13px;padding:13px 10px}
  .timer{width:48px;height:48px;font-size:17px}
}

/* هوية منصة المنافسة وتحسينات الجوال */
.brand span:nth-child(2) b{font-size:18px}.brand span:nth-child(2) small{color:#55d99b}.hero-logo{max-height:170px;object-fit:contain}
@media(max-width:650px){.hero-logo{width:min(420px,94vw);margin-top:-8px;margin-bottom:8px}.mark{width:42px;height:42px}.mark img{width:82px;height:112px}.brand b{font-size:16px}.brand small{font-size:9px}}
.team-label{font-size:10px;color:#67d9a0;border:1px solid #284637;border-radius:20px;padding:3px 8px;white-space:nowrap}.team-board{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}.team-title{font-size:12px;color:#cfd8d3;font-weight:800;margin-bottom:8px}.team-board small{color:#718078;font-size:9px;margin-right:5px}.winner-banner{display:flex;align-items:center;justify-content:center;gap:10px;margin:12px 0;padding:13px 15px;border:1px solid #69562d;background:linear-gradient(145deg,#1a180e,#10130e);border-radius:15px;color:#f2d77f}.winner-banner span{color:#d6dfda;font-size:11px}.final-teams{margin-top:18px}.hero-logo{background:#04100b}

/* حسابات المعلمين ولوحة الإدارة */
.account-head{display:flex;align-items:center;gap:10px;margin-bottom:18px}.account-head .back{margin:0}.account-chip{margin-right:auto;padding:7px 12px;border:1px solid var(--line);border-radius:20px;color:var(--gold2);font-size:11px}.ghost.small{padding:7px 11px;font-size:10px}.saved-list{display:grid;gap:8px;margin-top:18px}.saved-row{display:flex;align-items:center;gap:12px;padding:13px 14px;background:#0c1812;border:1px solid #1a2b22;border-radius:13px}.saved-row>div{flex:1;min-width:0;text-align:right}.saved-row b{display:block;overflow-wrap:anywhere}.saved-row small{display:block;color:#718078;font-size:10px;margin-top:4px}.danger-btn{border-color:#613b32!important;color:#e7b4a5!important}.hero-logo{max-width:100%}
@media(max-width:650px){.account-head{flex-wrap:wrap}.account-chip{order:3;width:100%;margin:0;text-align:center}.saved-row{align-items:flex-start}.saved-row .copy-btn{flex:0 0 auto}}

.answer-reveal{margin:16px 0;padding:12px 14px;border-radius:14px;background:#eaf8ef;border:1px solid #9bd3ad;color:#176b35;font-weight:700}.correct-answer{outline:2px solid #39a96b!important;background:#eaf8ef!important}

/* تحرير أسئلة الذكاء الاصطناعي قبل إنشاء المنافسة */
.edit-question textarea{height:auto;min-height:64px;margin-bottom:8px}.edit-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.edit-option{padding:10px;border:1px solid var(--line);border-radius:12px}.edit-option label{margin:5px 0}.edit-option input:not([type=radio]){padding:9px}.correct-pick{display:flex!important;align-items:center;gap:7px;color:#a9b6ae!important;font-size:11px!important}.correct-pick input{width:auto;accent-color:#4a9b66}.student-game .game-option:hover,.student-game .game-option.selected{border-color:#30483b;background:#111b17}.student-game .game-option:focus{outline:none}
@media(max-width:650px){.edit-options{grid-template-columns:1fr}}

/* واجهة التجديد: أولوية المعلمين والمدارس وتجربة دخول واضحة */
:root{--brand-navy:#102c68;--brand-blue:#1d4ed8;--brand-teal:#0db99a;--brand-purple:#7654f6}
.topbar{backdrop-filter:blur(18px);border:1px solid rgba(255,255,255,.12);box-shadow:0 12px 35px rgba(4,16,52,.14)}
.hero{position:relative;overflow:hidden;background:radial-gradient(circle at 75% 25%,rgba(36,110,255,.25),transparent 34%),linear-gradient(135deg,#081b49 0%,#102d6b 55%,#0c2757 100%);border:1px solid rgba(145,190,255,.18);box-shadow:0 30px 80px rgba(4,17,54,.25)}
.hero:after{content:"";position:absolute;inset:auto -8% -40% auto;width:430px;height:430px;border-radius:50%;border:1px solid rgba(255,255,255,.1);box-shadow:0 0 0 36px rgba(255,255,255,.025),0 0 0 72px rgba(255,255,255,.02);pointer-events:none}
.hero h1 em{color:#26d5b2}.hero-logo{filter:drop-shadow(0 15px 25px rgba(0,0,0,.2))}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin:22px 0 8px}.hero-primary{width:auto;min-width:170px;padding-inline:25px;background:linear-gradient(120deg,#12c7a5,#0b9e91);box-shadow:0 10px 25px rgba(13,185,154,.2)}.hero-secondary{width:auto}.roles{margin-top:22px;gap:12px}.role{transition:transform .2s,border-color .2s,background .2s}.role:hover,.role-choice:hover{transform:translateY(-3px);border-color:rgba(27,197,166,.6)}
.role-chooser-card{max-width:820px;margin:34px auto;padding:clamp(22px,4vw,42px);background:linear-gradient(160deg,rgba(255,255,255,.98),rgba(244,248,255,.98));color:#122b5b;border:1px solid #dbe7ff;box-shadow:0 25px 70px rgba(12,35,91,.12)}.role-chooser-card h2{font-size:clamp(26px,4vw,38px);margin:16px 0 8px;color:#102c68}.role-chooser-card>p{color:#61708e;margin-bottom:25px}.role-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:24px}.role-choice{display:flex;flex-direction:column;align-items:flex-start;text-align:right;gap:12px;padding:24px;border-radius:22px;border:1px solid #dbe5f8;background:#fff;color:#183365;cursor:pointer;transition:transform .2s,border-color .2s;min-height:245px}.teacher-choice{background:linear-gradient(145deg,#fff,#f0f5ff)}.student-choice{background:linear-gradient(145deg,#fff,#effcf8)}.choice-illustration{display:grid;place-items:center;width:62px;height:62px;border-radius:19px;background:#e2eaff;color:#1649a5;font-size:34px}.student-choice .choice-illustration{background:#d7f8ee;color:#078c76}.role-choice strong{font-size:20px}.role-choice small{font-size:13px;line-height:1.8;color:#657493}.choice-link{margin-top:auto;font-weight:800;color:#1649a5}.student-choice .choice-link{color:#078c76}.chooser-note{margin-top:18px;padding:13px 15px;border-radius:14px;background:#edf5ff;color:#38537f;font-size:13px}
.share-room-panel{display:flex;align-items:center;gap:18px;margin:20px auto;padding:18px;border-radius:20px;border:1px solid #dce7fb;background:linear-gradient(135deg,#f7faff,#effcf8);text-align:right}.qr-frame{flex:0 0 148px;min-height:148px;display:grid;place-items:center;background:#fff;border:1px solid #e3eaf5;border-radius:16px;padding:10px}.qr-frame img,.qr-frame canvas{max-width:128px!important;max-height:128px!important}.share-room-copy{flex:1}.share-room-copy b{color:#122d67;font-size:17px}.share-room-copy p{color:#63718b;font-size:13px;line-height:1.8;margin:6px 0 12px}.share-room-copy button{width:auto;margin:4px 6px 4px 0}.share-room-copy .ghost{color:#17417f;border-color:#cad7ed}
@media(max-width:650px){.role-choice-grid{grid-template-columns:1fr}.role-choice{min-height:0;padding:20px}.share-room-panel{flex-direction:column;text-align:center}.qr-frame{flex-basis:auto;width:150px}.share-room-copy button{width:100%;margin:5px 0}.hero-actions>*{flex:1}.top-actions .online{display:none}}

/* V10 — واجهة جديدة فاتحة مستوحاة من مرجع المستخدم، مع الحفاظ على منطق التطبيق */
:root{--bg:#f1f6ff;--panel:#fff;--panel2:#f6f9ff;--gold:#0b9f83;--gold2:#087f6b;--green:#079c83;--text:#102d62;--muted:#6f83a8;--line:#dce7f8;--danger:#c64f5c;--brand-navy:#12336f;--brand-blue:#1c58b9;--brand-teal:#0aa889;--brand-purple:#7654f6;color-scheme:light}
html,body{background:#f2f7ff!important;color:#102d62!important;font-family:Cairo,Tahoma,sans-serif}body{background-image:radial-gradient(ellipse at 10% 0%,#dceaff 0,transparent 38%),radial-gradient(ellipse at 90% 30%,#dcfbf3 0,transparent 32%)!important}.glow{opacity:.16;filter:blur(100px)}.g1{background:#8bd9ed}.g2{background:#86dfcb}
.topbar{height:76px;padding:0 clamp(16px,4vw,64px);background:rgba(255,255,255,.92);border:1px solid #e1eafb;border-radius:0 0 22px 22px;box-shadow:0 7px 25px #183d7310;backdrop-filter:blur(18px)}.brand{color:#102d62}.mark{background:#fff;border:1px solid #dce8f8;box-shadow:none;border-radius:14px}.mark img{mix-blend-mode:multiply}.brand b{font-size:19px}.brand small{color:#168f83}.top-actions{gap:8px}.top-actions .ghost,.ghost,.back{background:#fff;border:1px solid #d9e5f7;color:#18396f;border-radius:12px;box-shadow:0 2px 7px #153a6a08}.online{color:#6580a6}.online i{background:#12b58e}.page{min-height:calc(100vh - 76px);padding:clamp(20px,3vw,44px) clamp(14px,4vw,64px)}.hero{max-width:1380px;margin:14px auto 0;padding:clamp(24px,4vw,54px);text-align:right;display:grid;grid-template-columns:1.04fr .96fr;grid-template-areas:'copy art' 'roles roles';gap:20px 38px;align-items:center;position:relative;overflow:hidden;background:linear-gradient(130deg,#fff 0%,#f5f9ff 62%,#eaf8ff 100%);border:1px solid #e0eafb;border-radius:30px;box-shadow:0 20px 55px #173b7010}.hero-logo{grid-area:art;width:100%;max-width:560px;max-height:310px;object-fit:contain;margin:0 auto 12px;background:transparent;filter:none;border-radius:0}.hero .eyebrow{grid-area:copy;align-self:end;justify-self:start;color:#087f72;background:#e8fbf5;border:1px solid #c7f0e5}.hero h1{grid-area:copy;align-self:center;max-width:650px;color:#102d62;font-size:clamp(44px,5vw,72px);line-height:1.22;letter-spacing:-1.6px;margin:55px 0 0;z-index:1}.hero p{grid-area:copy;align-self:center;max-width:660px;margin:150px 0 0;color:#61789f;font-size:15px;line-height:2.1;z-index:1}.hero-actions{grid-area:copy;align-self:end;display:flex;gap:12px;margin:225px 0 0;z-index:2}.hero-primary,.primary{background:linear-gradient(120deg,#0aa989,#078f7b);color:white;box-shadow:0 8px 20px #0aa88924}.hero-secondary,.copy-btn{background:#fff;border:1px solid #cce4e5;color:#0c7e77}.hero:after{border-color:#b6d9fa55;box-shadow:0 0 0 36px #c5e3ff20,0 0 0 72px #c5e3ff16}.roles{grid-area:roles;max-width:none;width:100%;margin:10px 0 0;gap:16px}.role{background:#fff;color:#12336f;border:1px solid #dce7f8;box-shadow:0 6px 20px #1b427009}.student-role{background:linear-gradient(130deg,#fff,#f1fcf9)}.role-icon{background:#e3f7f2;color:#078b78}.role strong{color:#12336f}.role small{color:#7386a7}.role>b{color:#0aa889}.mini-features span{color:#5e78a0;background:#fff;border-color:#e0eafb}.copyright{color:#7d8eaa}.copyright b{color:#385887}
.card,.wide,.join-card,.room-card,.game-card,.results-card,.waiting-card{background:rgba(255,255,255,.96)!important;color:#102d62!important;border:1px solid #dce7f8!important;border-radius:22px!important;box-shadow:0 12px 35px #173b7010!important}.card h2,.section-title h2{color:#102d62}.card>p,.section-title p{color:#6f83a8}.card label{color:#4f6790}textarea,input,select{background:#fff;color:#12336f;border:1px solid #dce7f8;box-shadow:inset 0 1px 2px #12336f05}textarea::placeholder,input::placeholder{color:#9aabc6}input:focus,textarea:focus,select:focus{border-color:#17b49a;box-shadow:0 0 0 3px #0aa88916}.primary{border-radius:12px}.question,.question-mode,.saved-row,.player-row,.game-option,.leaderboard-row,.board-row{background:#f6f9ff!important;border-color:#dce7f8!important;color:#17366f!important}.question-mode small,.empty,.muted-line,.host-tip{color:#788bad}.section-title .ai-badge{background:#e6f8f3;border-color:#c7eee3;color:#0a9c83}.account-chip{border-color:#dce7f8;color:#078d7a}.role-chooser-card{background:#fff;color:#102d62;border-color:#dce7f8;box-shadow:0 18px 50px #173b7012}.role-chooser-card h2{color:#102d62}.role-chooser-card>p{color:#6f83a8}.role-choice{background:#fff;color:#17366f;border-color:#dce7f8;box-shadow:0 5px 20px #163d7208}.teacher-choice{background:linear-gradient(145deg,#fff,#f3f7ff)}.student-choice{background:linear-gradient(145deg,#fff,#effcf8)}.choice-illustration{background:#e8efff;color:#1b58b9}.student-choice .choice-illustration{background:#dff8f0;color:#078d78}.role-choice small{color:#7084a8}.choice-link{color:#174da0}.student-choice .choice-link{color:#078d78}.chooser-note{background:#f0f6ff;color:#45628d}.share-room-panel{background:linear-gradient(135deg,#f7faff,#effcf8);border-color:#dce7f8}.share-room-copy b{color:#12336f}.share-room-copy p{color:#637ba1}.share-room-copy .ghost{color:#17417f;border-color:#cad7ed}.big-code{color:#12336f!important}.timer{background:#eaf2ff!important;color:#1c58b9!important;border-color:#d3e4ff!important}.progress{background:#e3ecfb!important}.progress i{background:linear-gradient(90deg,#0aa889,#3c8ef1)!important}.game-option{background:#f7faff!important;border-color:#dce7f8!important}.game-option:hover,.student-game .game-option.selected{background:#e8f8f4!important;border-color:#0aa889!important}.game-option span{background:#e3edff!important;color:#1c58b9!important}.answer-message{color:#147d62}.leaderboard,.board-list{color:#17366f}.podium-card{background:#f5f8ff;border-color:#dce7f8}.podium-card b{background:#e8f1ff;color:#1c58b9}.podium-card em{color:#0a9f83}.podium-card.p1{background:#f0fbf7;border-color:#9fe1cf}.winner-banner{background:#f0fbf7;border-color:#b9eadc;color:#0a876f}.winner-banner span{color:#526b8e}.toast{background:#fff;border-color:#dce7f8;color:#12336f;box-shadow:0 8px 30px #12336f18}
/* نموذج اختيار الدور ولوحات الحسابات بتخطيط مرن قريب من التطبيق المرجعي */
.role-chooser-card{max-width:1000px;margin:10px auto;padding:clamp(20px,3vw,36px)}.role-choice-grid{gap:18px}.role-choice{min-height:220px}.teacherDashboard .card{max-width:1200px}.wide{max-width:1200px}.saved-list{gap:10px}.saved-row{border-radius:14px;padding:15px}.saved-row b{color:#17366f}.saved-row small{color:#7487a8}.danger-btn{border-color:#f2c8c8!important;color:#b43d4c!important;background:#fff!important}.edit-option{border-color:#dce7f8;background:#f7faff}.correct-pick{color:#536d94!important}.correct-answer,.answer-reveal{background:#eaf9f2!important;border-color:#a5e3cb!important;color:#13785f!important}.team-label{color:#078b78;border-color:#bcebdd}.team-board{border-color:#dce7f8}.team-title{color:#294978}.team-board small{color:#7185a7}
@media(min-width:1000px){.hero{min-height:600px}.hero-logo{grid-column:2;grid-row:1 / span 3;align-self:center}.hero .eyebrow{grid-column:1;grid-row:1;margin-top:10px}.hero h1{grid-column:1;grid-row:1;align-self:center;margin-top:76px}.hero p{grid-column:1;grid-row:1;align-self:center;margin-top:225px}.hero-actions{grid-column:1;grid-row:1;align-self:end;margin-top:300px}.roles{grid-column:1 / -1;grid-row:2}}
@media(max-width:999px){.hero{display:flex;flex-direction:column;text-align:center;padding:28px 20px}.hero-logo{order:0;width:min(500px,95%);max-height:240px}.hero .eyebrow{order:1;align-self:center}.hero h1{order:2;font-size:clamp(40px,9vw,64px);margin:8px 0;color:#102d62}.hero p{order:3;margin:0 auto;font-size:14px}.hero-actions{order:4;margin:12px 0;justify-content:center;width:100%}.roles{order:5;grid-template-columns:1fr 1fr}.hero:after{width:250px;height:250px}.topbar{padding:0 14px}.brand b{font-size:15px}.top-actions{gap:5px}.top-actions .ghost{padding:8px;font-size:10px}}
@media(max-width:650px){.topbar{height:auto;min-height:66px;flex-wrap:wrap;padding:10px 14px;gap:8px}.top-actions{width:100%;justify-content:center}.top-actions .ghost{flex:1}.page{min-height:calc(100vh - 100px);padding:18px 12px}.hero{margin-top:0;border-radius:22px;gap:14px}.hero-logo{max-height:180px}.hero h1{letter-spacing:-.5px;line-height:1.3}.hero-actions{flex-direction:column}.hero-actions>*{width:100%}.roles{grid-template-columns:1fr}.role{padding:14px}.card{padding:18px}.role-choice-grid{grid-template-columns:1fr}.role-choice{min-height:0;padding:20px}.share-room-panel{flex-direction:column;text-align:center}.grid{grid-template-columns:1fr 1fr}.account-head{flex-wrap:wrap}.section-title h2{font-size:22px}.podium{gap:6px}.podium-card{padding:10px 5px}}
@media(max-width:390px){.brand b{font-size:13px}.brand small{font-size:9px}.mark{width:36px;height:36px}.top-actions .ghost{font-size:9px;padding:7px 4px}.grid{grid-template-columns:1fr}.hero h1{font-size:38px}}

/* V11 — إعادة بناء شاشة الدخول على هوية بصرية جديدة مستوحاة من المرجع */
:root{--navy:#08285b;--navy2:#123f86;--mint:#14c9b0;--mint-dark:#079e8b;--sky:#eaf4ff;--ink:#0d2b60}
html,body{background:#f3f8ff!important;color:var(--ink)!important}body{background-image:radial-gradient(ellipse at 92% 12%,#d8f8f1 0,transparent 28%),radial-gradient(ellipse at 10% 90%,#dce9ff 0,transparent 35%)!important}.glow{display:none!important}
.topbar{height:72px;padding:0 clamp(16px,4vw,62px);background:rgba(255,255,255,.94);border:0;border-bottom:1px solid #dce8f8;border-radius:0;box-shadow:0 5px 24px #092b6010}.brand{color:#0d2b60}.mark{width:43px;height:43px;border:0;border-radius:12px;background:#f2f8ff;box-shadow:none}.mark img{width:100%;height:100%;object-fit:contain;mix-blend-mode:normal}.brand b{font-size:16px;font-weight:900}.brand small{color:#0a9d8d;font-size:10px}.top-actions .ghost,.ghost,.back{background:#fff;color:#16396e;border:1px solid #dbe7f8;box-shadow:none;border-radius:11px}.online{color:#60789e}.online i{background:#12bda0}
#home.page.active{display:block;padding:20px clamp(12px,2.2vw,34px) 8px;min-height:calc(100vh - 72px)}.login-shell{width:min(1540px,100%);min-height:min(820px,calc(100vh - 118px));margin:0 auto;display:grid;grid-template-columns:1fr 1.04fr;direction:ltr;overflow:hidden;border:1px solid #d6e4f8;border-radius:25px;background:#fff;box-shadow:0 24px 70px #123c7812}.welcome-side{direction:rtl;position:relative;overflow:hidden;display:flex;flex-direction:column;min-height:700px;padding:32px clamp(25px,4vw,62px) 24px;color:#fff;background:radial-gradient(ellipse at 20% 65%,#174b91 0,transparent 42%),linear-gradient(150deg,#143f7d 0%,#08285b 42%,#061d49 100%)}.welcome-side:before{content:"";position:absolute;width:570px;height:570px;border:1px solid #4c85d23d;border-radius:50%;right:-290px;top:90px;box-shadow:0 0 0 35px #2e67ae0c,0 0 0 75px #2e67ae0a}.welcome-side:after{content:"";position:absolute;left:-80px;bottom:-95px;width:480px;height:180px;background:linear-gradient(120deg,#18d4b4,#087d9c);border-radius:50% 60% 0 0;transform:rotate(-7deg);opacity:.95}.welcome-top{display:flex;align-items:center;justify-content:space-between;position:relative;z-index:1}.lang-pill{border:1px solid #40d4ce9c;border-radius:28px;padding:9px 16px;color:#b6fff6;background:#ffffff08;font-size:12px}.welcome-tag{font-size:11px;color:#a5c7ee}.welcome-copy{position:relative;z-index:1;text-align:right;margin-top:clamp(35px,6vh,68px)}.hero-kicker{font-size:12px;color:#61e8d7;font-weight:800;letter-spacing:.3px}.welcome-copy h1{font-size:clamp(38px,4.2vw,66px);line-height:1.2;letter-spacing:-1.4px;margin:13px 0 16px;font-weight:900;color:#fff}.welcome-copy h1 em{font-style:normal;color:#18d4bd}.welcome-copy h2{font-size:clamp(17px,1.7vw,24px);margin:0 0 13px;color:#fff;font-weight:800}.welcome-copy p{max-width:560px;color:#c1d4f0;font-size:14px;line-height:2;margin:0}.edu-art{position:relative;z-index:1;min-height:260px;flex:1;display:flex;align-items:center;justify-content:center;margin:5px 0 -2px}.books-art{width:min(100%,530px);height:auto;max-height:340px;filter:drop-shadow(0 18px 22px #020e2c65);position:relative;z-index:1}.art-glow{position:absolute;bottom:10%;width:65%;height:60px;border-radius:50%;background:#1bd8cd2b;filter:blur(35px)}.float-icon{position:absolute;z-index:2;width:53px;height:53px;border:1px solid #6ad9ff73;border-radius:14px;display:grid;place-items:center;font-size:26px;font-weight:900;color:#fff;background:linear-gradient(145deg,#2aa8ef,#1760b5);box-shadow:0 12px 30px #061b4a66;transform:rotate(-8deg)}.float-chart{left:7%;top:22%}.float-bulb{left:21%;top:8%;color:#fff1b9}.float-users{right:6%;top:29%;background:linear-gradient(145deg,#12c7ad,#087f9c)}.welcome-benefits{position:relative;z-index:2;display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:4px}.welcome-benefits>div{display:flex;align-items:center;justify-content:center;gap:9px;border-left:1px solid #ffffff1d;padding:7px 3px}.welcome-benefits>div:last-child{border-left:0}.welcome-benefits b{font-size:24px;color:#19d6c2}.welcome-benefits span{font-size:11px;font-weight:800;white-space:nowrap}.welcome-benefits small{display:block;color:#a5c3e8;font-size:9px;font-weight:500;margin-top:4px}.welcome-footer{position:relative;z-index:2;text-align:center;color:#a7fff2;font-size:12px;margin-top:22px}.welcome-footer span{color:#55d8c9;font-size:10px;margin-right:8px}
.access-side{direction:rtl;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:clamp(24px,4vw,58px);background:linear-gradient(145deg,#fff 0%,#fbfdff 65%,#f0f8ff 100%)}.access-brand{display:flex;flex-direction:column;align-items:center;text-align:center;margin:0 auto 26px}.access-brand img{width:76px;height:76px;object-fit:contain;margin-bottom:4px}.access-brand strong{font-size:clamp(19px,2vw,27px);font-weight:900;color:#0d2b60}.access-brand small{font-size:12px;color:#42669b;font-weight:700;margin-top:4px}.access-card{width:min(100%,760px);border:1px solid #eef3fc;background:#ffffffdc;border-radius:27px;padding:clamp(20px,2.5vw,38px);box-shadow:0 14px 45px #17447b0b}.access-heading{text-align:center;margin:0 0 26px}.tiny-kicker{display:none}.access-heading h2{font-size:clamp(20px,2.3vw,32px);line-height:1.5;margin:0;color:#0c2d65;font-weight:900}.access-heading p{color:#5475a6;margin:7px 0 0;font-size:15px}.access-options{display:grid;grid-template-columns:1fr 1fr;gap:18px}.access-option{font-family:inherit;display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0;padding:22px 18px 17px;border-radius:21px;border:1px solid #cbdfff;background:linear-gradient(145deg,#fff,#f0f6ff);color:#0d2b60;cursor:pointer;transition:transform .2s,box-shadow .2s,border-color .2s}.access-option:hover{transform:translateY(-4px);box-shadow:0 15px 32px #123b7912;border-color:#7eaef4}.student-access{background:linear-gradient(145deg,#fff,#eefbf8);border-color:#c6eee8}.student-access:hover{border-color:#6dd9c9}.access-illustration{display:grid;place-items:center;width:94px;height:88px;border-radius:50%;background:radial-gradient(circle,#e4edff 0,#d5e5ff 64%,#eef5ff 65%);color:#174da1;font-size:46px;font-weight:900;margin-bottom:12px}.student-access .access-illustration{background:radial-gradient(circle,#c9f6eb 0,#d9faf2 64%,#f0fcf9 65%);color:#079d86}.access-option strong{font-size:19px;font-weight:900;margin-bottom:7px}.access-option small{font-size:12px;line-height:1.9;color:#6680a8;min-height:44px}.access-cta{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;margin-top:17px;padding:13px 12px;border-radius:15px;color:#fff;background:linear-gradient(120deg,#164b9f,#0d3780);font-weight:800;font-size:14px;box-shadow:0 7px 16px #12428a20}.student-access .access-cta{background:linear-gradient(120deg,#12b99e,#079982);box-shadow:0 7px 16px #0aa98b24}.access-cta b{font-size:20px}.access-sub{margin-top:11px;font-size:10px;color:#4b73a8}.student-access .access-sub{color:#099c87}.quick-join{width:100%;display:flex;align-items:center;gap:15px;margin-top:19px;padding:16px 18px;border:1px solid #d5e5fc;border-radius:18px;background:linear-gradient(110deg,#f5f9ff,#eff7ff);color:#12366f;text-align:right;font-family:inherit;cursor:pointer;transition:.2s}.quick-join:hover{border-color:#8eb8f0;background:#eef6ff}.quick-icon{flex:0 0 47px;width:47px;height:47px;border-radius:50%;display:grid;place-items:center;background:#e1edff;color:#174da1;font-size:25px}.quick-join>span:nth-child(2){flex:1}.quick-join strong,.quick-join small{display:block}.quick-join strong{font-size:14px;font-weight:900}.quick-join small{font-size:11px;color:#6680a8;margin-top:4px}.quick-arrow{font-size:24px;color:#1752a3}.access-slogan{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:26px;color:#315a96;font-size:12px;font-weight:800}.access-slogan i{width:48px;height:1px;background:#2bc9b4}.home-copyright{margin:10px auto 0;font-size:10px}.home-copyright b{color:#365b91}
/* بقية الشاشات تحتفظ بوظائفها وتستخدم الهوية الجديدة */
.card,.wide,.join-card,.room-card,.game-card,.results-card,.waiting-card{border-radius:22px!important}.primary{background:linear-gradient(120deg,#164b9f,#0e3983);color:#fff;box-shadow:0 8px 20px #12428a20}.question-mode{background:#f6f9ff;border-color:#dce7f8}.role-choice-grid{grid-template-columns:1fr 1fr}.role-choice{border-radius:20px}.role-choice .choice-illustration{border-radius:50%}
@media(max-width:1000px){.login-shell{grid-template-columns:1fr 1fr}.welcome-side{padding:26px 24px;min-height:640px}.welcome-copy{margin-top:35px}.welcome-copy h1{font-size:clamp(34px,4vw,48px)}.welcome-copy p{font-size:12px}.edu-art{min-height:220px}.welcome-benefits{grid-template-columns:1fr 1fr}.welcome-benefits>div{justify-content:flex-start}.welcome-benefits>div:nth-child(2){border-left:0}.access-side{padding:24px 18px}.access-card{padding:22px 17px}.access-options{gap:10px}.access-option{padding:17px 12px}.access-illustration{width:76px;height:76px;font-size:38px}}
@media(max-width:720px){#home.page.active{padding:10px 10px 6px}.login-shell{display:flex;flex-direction:column;min-height:0;border-radius:20px}.access-side{order:1;padding:24px 14px}.welcome-side{order:2;min-height:0;padding:25px 20px 24px}.access-brand{margin-bottom:18px}.access-brand img{width:61px;height:61px}.access-brand strong{font-size:20px}.access-card{border-radius:20px;padding:20px 14px}.access-heading{margin-bottom:18px}.access-heading h2{font-size:22px}.access-heading p{font-size:13px}.access-options{gap:9px}.access-option{padding:14px 9px;border-radius:17px}.access-illustration{width:62px;height:62px;font-size:31px;margin-bottom:8px}.access-option strong{font-size:15px}.access-option small{font-size:10px;min-height:42px}.access-cta{font-size:12px;padding:11px 6px;gap:6px;margin-top:12px}.access-sub{font-size:9px}.quick-join{margin-top:12px;padding:12px;gap:10px}.quick-icon{width:39px;height:39px;flex-basis:39px}.quick-join strong{font-size:12px}.quick-join small{font-size:10px}.access-slogan{margin-top:17px}.welcome-top{margin-bottom:0}.welcome-copy{margin-top:28px}.welcome-copy h1{font-size:clamp(36px,9vw,52px)}.welcome-copy h2{font-size:18px}.welcome-copy p{font-size:12px}.edu-art{min-height:230px;margin:10px 0}.books-art{max-height:260px}.float-icon{width:40px;height:40px;font-size:19px}.welcome-benefits{grid-template-columns:1fr 1fr;gap:5px}.welcome-benefits>div{padding:8px 2px}.welcome-benefits span{font-size:10px}.welcome-benefits small{font-size:9px}.welcome-footer{margin-top:17px}.home-copyright{padding:0 8px}.topbar{height:auto;min-height:65px;flex-wrap:wrap;padding:9px 13px;gap:8px}.top-actions{width:100%;justify-content:center}.top-actions .ghost{flex:1;font-size:11px;padding:8px}.page{padding:18px 12px}.role-choice-grid{grid-template-columns:1fr}}
@media(max-width:390px){.access-options{grid-template-columns:1fr}.access-option{display:grid;grid-template-columns:58px 1fr;column-gap:10px;text-align:right;align-items:center;padding:12px}.access-illustration{grid-row:1 / span 3;width:54px;height:54px;margin:0;font-size:28px}.access-option strong{font-size:14px}.access-option small{min-height:0}.access-cta{grid-column:1 / -1;margin-top:10px}.access-sub{grid-column:1 / -1}.welcome-copy h1{font-size:34px}.welcome-benefits b{font-size:20px}}

/* Role choice layout */
.role-choice-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}

/* Dashboard refresh — role-specific post-login layout */
:root{--dash-ink:#15284b;--dash-muted:#7d8da8;--dash-blue:#174a9c;--dash-line:#e1e9f6}
body:has(.dashboard-page.active){background:#f3f7ff;color:var(--dash-ink)}
.dashboard-page{padding:0!important;min-height:calc(100vh - 76px);background:#f3f7ff}
.dashboard-layout{display:grid;grid-template-columns:245px minmax(0,1fr);min-height:calc(100vh - 76px);max-width:1600px;margin:0 auto;background:#f4f7fd;color:var(--dash-ink);border-radius:0}
.dash-sidebar{background:linear-gradient(180deg,#153c83,#0c285d);color:#fff;padding:24px 16px;display:flex;flex-direction:column;gap:24px;box-shadow:6px 0 25px #1d427015}
.side-brand{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:800;padding:0 5px 18px;border-bottom:1px solid #ffffff20}
.side-logo{display:grid;place-items:center;background:#ffffff20;border:1px solid #ffffff30;border-radius:10px;width:35px;height:35px;font-size:20px}
.side-user{display:flex;align-items:center;gap:11px;padding:10px 5px 20px;border-bottom:1px solid #ffffff20}
.side-user div{display:flex;flex-direction:column;gap:2px}.side-user b{font-size:12px}.side-user small{font-size:10px;color:#c4d4f4}
.avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#dbeafe;color:#1c4c96;font-weight:900;flex-shrink:0}
.dash-nav{display:flex;flex-direction:column;gap:7px}.dash-nav button{border:0;background:transparent;color:#dce7ff;font:700 12px Cairo,Tahoma,sans-serif;text-align:right;padding:12px 12px;border-radius:9px;display:flex;gap:12px;align-items:center;cursor:pointer}.dash-nav button.active,.dash-nav button:hover{background:#ffffff1b;color:white;box-shadow:inset -3px 0 #71e2d0}.dash-nav button span{font-size:12px}
.dash-main{padding:30px clamp(18px,3vw,44px);min-width:0}.dash-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.dash-top small{color:#4b70ac;font-size:11px;font-weight:800}.dash-top h2{margin:5px 0 4px;font-size:24px;color:#152e5c}.dash-top p{margin:0;color:#8492a8;font-size:12px}.dash-profile{display:flex;align-items:center;gap:13px}.bell{width:35px;height:35px;display:grid;place-items:center;background:white;border:1px solid var(--dash-line);border-radius:12px;color:#3d64a3}
.dash-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:18px}.dash-stat{background:#fff;border:1px solid var(--dash-line);border-radius:14px;padding:17px;display:grid;grid-template-columns:42px 1fr;column-gap:10px;align-items:center;box-shadow:0 5px 20px #224b8705}.stat-icon{grid-row:span 3;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;font-size:18px}.stat-icon.purple{background:#eeeaff;color:#8064dc}.stat-icon.green{background:#ddfaf2;color:#13a98a}.stat-icon.blue{background:#e3efff;color:#3d85ed}.dash-stat small{font-size:11px;color:#8492a8}.dash-stat strong{font-size:26px;line-height:1.35;color:#16366e}.dash-stat em{font-size:10px;color:#a0adbf;font-style:normal}
.dash-create{width:100%;border:0;border-radius:11px;background:linear-gradient(100deg,#245db0,#10428f);color:white;padding:15px 18px;display:flex;align-items:center;gap:12px;text-align:right;font-family:inherit;cursor:pointer;box-shadow:0 7px 15px #164b9c20;margin-bottom:20px}.dash-create>span{font-size:22px}.dash-create b{font-size:13px}.dash-create small{font-size:11px;color:#d6e5ff}.dash-create i{font-style:normal;margin-right:auto;font-size:18px}
.dash-columns{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(260px,.9fr);gap:17px}.dash-panel{background:#fff;border:1px solid var(--dash-line);border-radius:14px;padding:18px;min-width:0;box-shadow:0 5px 20px #224b8705}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.panel-heading h3{margin:0 0 3px;font-size:14px;color:#1c3769}.panel-heading p{margin:0;font-size:10px;color:#8c9ab0}.panel-heading>button{border:0;background:transparent;color:#2865b4;font:700 11px Cairo,Tahoma,sans-serif;cursor:pointer;white-space:nowrap}.quick-action{width:100%;display:flex;align-items:center;gap:11px;padding:13px 0;border:0;border-bottom:1px solid #edf1f8;background:transparent;text-align:right;font-family:inherit;color:#1a3566;cursor:pointer}.quick-action:last-child{border-bottom:0}.quick-action>span:nth-child(2){display:flex;flex-direction:column;gap:3px;flex:1}.quick-action b{font-size:12px}.quick-action small{font-size:10px;color:#8c9ab0}.quick-action strong{color:#6f88b0}.quick-symbol{width:35px;height:35px;border-radius:10px;background:#f0ebff;color:#8064dc;display:grid;place-items:center;font-size:17px}.quick-symbol.teal{background:#ddfaf2;color:#11a68a}.quick-symbol.orange{background:#fff0dc;color:#e89a30}
.dash-saved .saved-row{background:#f7f9fe;border-color:#e5ebf7;color:#1b3564;padding:12px;margin-bottom:8px}.dash-saved .saved-row small{color:#8292ad}.dash-saved .empty{color:#8594ac;background:#f7f9fe;border:1px dashed #dbe4f4;border-radius:10px;padding:20px;text-align:center}
@media(max-width:900px){.dashboard-layout{grid-template-columns:190px minmax(0,1fr)}.dash-main{padding:22px 16px}.dash-columns{grid-template-columns:1fr}.dash-stats{gap:9px}.dash-stat{padding:12px;grid-template-columns:32px 1fr}.stat-icon{width:31px;height:31px}.dash-stat strong{font-size:21px}}
@media(max-width:620px){.dashboard-layout{display:block}.dash-sidebar{padding:12px;gap:10px}.side-brand{padding-bottom:10px}.side-user{padding:6px 3px 10px}.dash-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.dash-nav button{justify-content:center;flex-direction:column;gap:4px;padding:9px 3px;font-size:16px}.dash-nav button span{font-size:9px}.dash-main{padding:18px 12px}.dash-top h2{font-size:19px}.dash-top p{font-size:10px}.dash-stats{grid-template-columns:1fr;gap:8px}.dash-stat{grid-template-columns:40px 1fr;padding:12px}.stat-icon{width:36px;height:36px}.dash-stat strong{font-size:21px}.dash-create{padding:13px;gap:8px}.dash-create small{display:none}.dash-columns{gap:12px}.dash-panel{padding:13px}}

/* V17 role access corrections */
.admin-choice{border:1px solid #b8caff;background:#f2f6ff;color:#153c82;}
.quick-join strong{display:block}
/* Platform admin dashboard refinements */
#root .dash-stats{margin:0 0 22px}
#root .root-admin-panel{margin:0 0 20px;padding:22px;border:1px solid var(--dash-line);border-radius:18px;background:#fff;box-shadow:0 8px 28px #173b7410}
#root .root-admin-panel h3{margin:22px 0 12px;color:#17346c}
#root .root-admin-panel .grid{margin:14px 0}
#root .root-admin-panel .primary{margin:8px 0 14px}
#root .dash-sidebar .dash-nav button{cursor:pointer}


/* Fix access-page logo/title overlap on desktop */
.access-brand{width:100%;gap:6px;margin-bottom:28px}
.access-brand>div{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;line-height:1.35}
.access-brand img{display:block;flex:none;margin:0 auto 8px}
.access-brand strong{display:block;position:static;white-space:normal;text-align:center;line-height:1.45;margin:0}
.access-brand small{display:block;position:static;text-align:center;line-height:1.5;margin-top:5px}
@media(min-width:721px){
 .access-side{overflow:visible}
 .access-brand{padding-top:4px}
 .access-brand img{width:82px;height:82px}
}


/* Live question transition: show the question first, then reveal answers */
#studentgame .student-game #studentQuestion{
  transform-origin:center;
  will-change:transform,opacity;
}
#studentgame .student-game #studentOptions{
  transition:opacity .32s ease,transform .32s ease;
}
#studentgame .student-game.question-intro #studentQuestion{
  animation:munafasaQuestionIntro 1.25s cubic-bezier(.2,.8,.2,1) both;
}
#studentgame .student-game.question-intro #studentOptions{
  opacity:0;
  transform:translateY(18px) scale(.98);
  pointer-events:none;
}
@keyframes munafasaQuestionIntro{
  0%{transform:translateY(110px) scale(1.35);opacity:0}
  18%{opacity:1}
  58%{transform:translateY(76px) scale(1.28);opacity:1}
  100%{transform:translateY(0) scale(1);opacity:1}
}
@media (prefers-reduced-motion:reduce){
  #studentgame .student-game.question-intro #studentQuestion{animation:none}
  #studentgame .student-game.question-intro #studentOptions{opacity:1;transform:none}
}


/* Classroom visibility + projector QR */
.host-status{color:#111!important;font-weight:800!important}
.players-title{color:#111!important;font-weight:800}
.players-title span{background:#111!important;color:#fff!important;font-weight:900!important}
.qr-frame{cursor:zoom-in;position:relative}
.qr-hint{display:block;margin-top:6px;color:#40536f;font-size:11px;font-weight:800;text-align:center}
body.qr-open{overflow:hidden}
.qr-frame.qr-zoomed{
  position:fixed!important;
  inset:0!important;
  z-index:9999!important;
  width:100vw!important;
  height:100vh!important;
  max-width:none!important;
  min-height:100vh!important;
  padding:32px!important;
  border:0!important;
  border-radius:0!important;
  background:rgba(255,255,255,.97)!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  cursor:zoom-out!important;
  box-shadow:none!important;
}
.qr-frame.qr-zoomed img,.qr-frame.qr-zoomed canvas{
  width:min(62vmin,560px)!important;
  height:min(62vmin,560px)!important;
  max-width:none!important;
  max-height:none!important;
  image-rendering:pixelated;
}
.qr-frame.qr-zoomed .qr-hint{font-size:18px;margin-top:18px;color:#111}

/* Four-second mobile reading phase */
#studentgame .student-game.question-intro{
  min-height:calc(100vh - 110px);
  display:flex;
  flex-direction:column;
  justify-content:center;
}
#studentgame .student-game.question-intro .game-top,
#studentgame .student-game.question-intro .progress{
  opacity:.35;
}
#studentgame .student-game.question-intro #studentQuestion{
  width:min(92vw,760px)!important;
  margin:0 auto!important;
  text-align:center!important;
  font-size:clamp(24px,6vw,42px)!important;
  line-height:1.7!important;
  padding:12px 4px!important;
  animation:munafasaQuestionIntro 4s cubic-bezier(.2,.8,.2,1) both!important;
  animation-delay:var(--question-intro-delay,0ms)!important;
}
#studentgame .student-game.question-intro #studentOptions{
  opacity:0!important;
  transform:translateY(18px) scale(.98)!important;
  pointer-events:none!important;
}
@keyframes munafasaQuestionIntro{
  0%{transform:scale(.92);opacity:0}
  10%{transform:scale(1.04);opacity:1}
  78%{transform:scale(1.04);opacity:1}
  100%{transform:scale(1);opacity:1}
}
@media(max-width:650px){
  #studentgame .student-game{padding:16px!important}
  #studentgame #studentQuestion{
    font-size:clamp(20px,5.8vw,30px)!important;
    line-height:1.75!important;
  }
  #studentgame .student-game.question-intro #studentQuestion{
    font-size:clamp(26px,7vw,36px)!important;
    line-height:1.65!important;
  }
  #studentgame .game-option{
    font-size:15px!important;
    padding:14px 12px!important;
  }
}


/* Saudi curriculum + Microsoft Forms tools */
.curriculum-box{
  margin:0 0 18px;
  padding:18px;
  border:1px solid #cfe0f7;
  border-radius:18px;
  background:linear-gradient(135deg,#f8fbff,#f1fbf8);
}
.curriculum-title{
  font-weight:900;
  color:#12336f;
  margin-bottom:12px;
}
.curriculum-box small{
  display:block;
  margin-top:8px;
  color:#62738f;
  font-size:11px;
}
.question-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:16px;
}
.forms-btn{
  border:1px solid #7f9fe1;
  background:#fff;
  color:#17468d;
  border-radius:13px;
  padding:13px 16px;
  font-family:inherit;
  font-weight:900;
  cursor:pointer;
}
.forms-btn:hover{background:#f1f6ff}
.forms-btn:disabled{opacity:.6;cursor:wait}
@media(max-width:650px){
  .question-actions{grid-template-columns:1fr}
  .curriculum-box{padding:14px}
}


/* Saved competition management */
.saved-competition-row{align-items:center;gap:14px;flex-wrap:wrap}
.saved-main{flex:1;min-width:220px;display:flex;flex-direction:column;gap:4px}
.saved-main small{display:block}
.saved-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.repeat-btn{background:#eef5ff!important;color:#17468d!important;border-color:#c9d9f4!important}
.danger-btn{background:#fff1f2!important;color:#b42335!important;border-color:#f0c7cd!important}
@media(max-width:650px){
  .saved-actions{width:100%;justify-content:stretch}
  .saved-actions button{flex:1}
}


/* Exams, diagnostic reports, and one-time buyer signup */
.activity-box{margin-bottom:16px}
.exam-question-list{display:grid;gap:16px;margin:18px 0}
.exam-live-question{padding:18px;border:1px solid #dce7f8;border-radius:18px;background:#fff}
.exam-live-question h3{font-size:18px;line-height:1.8;color:#173365;margin:8px 0 14px}
.exam-live-options{display:grid;gap:9px}
.exam-live-options label{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #dce7f8;border-radius:13px;background:#f8fbff;cursor:pointer}
.exam-live-options input{width:auto;margin:0}
.exam-live-options span{color:#173365;font-weight:700}
.results-chart{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:18px 0}
.chart-stat{padding:22px;border-radius:18px;text-align:center;border:1px solid #dce7f8;background:#fff}
.chart-stat b{display:block;font-size:34px;color:#173365}
.chart-stat span{font-weight:800;color:#5f7397}
.chart-stat.pass{background:#eefbf6;border-color:#bce8d9}
.chart-stat.support{background:#fff4f3;border-color:#f0c9c5}
.pass-chip,.support-chip{padding:6px 10px;border-radius:20px;font-size:11px;font-weight:900}
.pass-chip{background:#e8f8f2;color:#087d68}
.support-chip{background:#fff0ef;color:#ad3f49}
.invite-result{margin-top:14px}
.invite-link-box{display:flex;gap:8px;align-items:center}
.invite-link-box input{margin:0;direction:ltr;text-align:left}
.invite-link-box button{white-space:nowrap}
.success-message{color:#087d68!important}
@media(max-width:650px){
  .results-chart{grid-template-columns:1fr}
  .invite-link-box{flex-direction:column}
  .invite-link-box button{width:100%}
}


/* Teacher test folders and open exam controls */
.teacher-tests-panel{margin:18px 0}
.test-folder-create{display:flex;gap:10px;align-items:center;margin:14px 0}
.test-folder-create input{margin:0;flex:1}
.test-folders{display:grid;gap:12px}
.test-folder-card{border:1px solid #dce7f8;border-radius:18px;background:#fff;overflow:hidden}
.test-folder-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:#f7faff;border-bottom:1px solid #e4ecf8}
.test-folder-head>div{display:flex;flex-direction:column;gap:2px}
.test-folder-head b{color:#173365}
.test-folder-head small{color:#7689a8}
.folder-delete{border:0;background:transparent;color:#b42335;font:700 11px Cairo;cursor:pointer}
.test-folder-items{padding:10px}
.test-folder-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 10px;border-bottom:1px solid #edf2fa}
.test-folder-item:last-child{border-bottom:0}
.test-folder-item>div:first-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.test-folder-item b{color:#18396f;overflow-wrap:anywhere}
.test-folder-item small{color:#7183a1}
.test-folder-item>div:last-child{display:flex;gap:6px;flex-wrap:wrap}
.open-exam-badge{display:inline-flex;align-items:center;justify-content:center;padding:7px 12px;border-radius:20px;background:#e8f8f2;color:#087d68;font-size:12px;font-weight:900}
.exam-host-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}
#hostexam .player-row em{min-width:150px;text-align:left}
@media(max-width:650px){
  .test-folder-create{flex-direction:column}
  .test-folder-create button{width:100%}
  .test-folder-item{align-items:flex-start;flex-direction:column}
  .test-folder-item>div:last-child{width:100%}
  .test-folder-item>div:last-child button{flex:1}
  .exam-host-actions{grid-template-columns:1fr}
}


/* Standalone teacher tests page */
#teacherTestsPage .tests-main{display:flex;flex-direction:column}
.tests-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 20px;
  margin-bottom:18px;
  border:1px solid var(--dash-line);
  border-radius:16px;
  background:linear-gradient(135deg,#eef5ff,#f7fbff);
}
.tests-hero>div{display:flex;align-items:center;gap:12px}
.tests-hero-icon{
  width:46px;height:46px;border-radius:14px;
  display:grid;place-items:center;
  background:#dfeaff;font-size:22px
}
.tests-hero b{display:block;color:#173365;font-size:15px}
.tests-hero small{display:block;color:#7c8ca5;font-size:11px;margin-top:3px}
#teacherTestsPage .teacher-tests-panel{margin:0}
#teacherTestsPage .test-folders{margin-top:8px}
@media(max-width:650px){
  .tests-hero{align-items:stretch;flex-direction:column}
  .tests-hero>button{width:100%}
}


/* Diagnostic result readability */
.diagnostic-result-row>span,
.diagnostic-result-row>span small,
.diagnostic-result-row>b{
  color:#fff!important;
}
.diagnostic-result-row>b{
  background:#173365!important;
}
.exam-grade-chip{
  padding:7px 11px;
  border-radius:20px;
  background:#eef5ff;
  color:#17468d;
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
}


/* Exam result readability */
.exam-result-row>span,
.exam-result-row>span small,
.exam-result-row>em{
  color:#fff!important;
}
.exam-result-row>em{
  font-weight:900;
}
#savedResultsList .saved-row b,
#savedResultsList .saved-row small{
  color:#173365!important;
}


/* Diagnostic inline student status */
.diagnostic-inline-status{
  display:inline-flex;
  margin-right:8px;
  vertical-align:middle;
  font-size:10px;
}





/* Universal room code styling */
#hostroom .big-code{
  background:#0b1f3a!important;
  border-color:#173f72!important;
  color:#fff!important;
  box-shadow:0 10px 26px #0b1f3a22;
}

/* Collapsible teacher folders */
.folder-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.folder-toggle{
  border:1px solid #cddbf0;
  background:#fff;
  color:#17468d;
  border-radius:10px;
  padding:7px 11px;
  font:800 11px Cairo,Tahoma,sans-serif;
  cursor:pointer;
}
.test-folder-items[hidden]{display:none!important}

/* Consistent paired action sizes */
.question-actions>button{display:flex;align-items:center;justify-content:center;width:100%;min-height:56px;margin:0;padding:13px 16px;font-family:inherit;font-size:14px;line-height:1.6;border-radius:13px;box-sizing:border-box}
#teacher .ai-badge{flex:0 0 54px;overflow:hidden;background:#fff;border-color:#dce7f8}
#teacher .ai-badge img{display:block;width:100%;height:100%;object-fit:contain;padding:5px}

/* Teacher workspace and class navigation */
.side-logo{overflow:hidden;flex-shrink:0;background:#fff!important}
.side-logo img{display:block;width:100%;height:100%;object-fit:contain;padding:3px}
.dash-nav button span{white-space:normal;text-align:right;line-height:1.7}
.workspace-card h2{margin:22px 0 12px}.workspace-card>p{line-height:1.9;margin:12px 0}
#summaryPicker{padding:16px;background:#f4f8ff;border:1px solid #dce7f8;border-radius:14px;margin:16px 0}
#learningChart{background:#fff;border:1px solid #dce7f8;border-radius:16px;padding:14px;margin:18px 0}
#learningChart svg{display:block;width:100%;min-height:180px;overflow:visible}
#learningChart g[role=button]{cursor:pointer}#learningChart g:focus{outline:2px solid #173365}
#learningChart text{fill:#173365}.print-frame{position:fixed;width:1px;height:1px;border:0;left:-10000px;bottom:0}
.workspace-card .saved-row{gap:14px;flex-wrap:wrap}

/* New transparent site logo: preserve its full proportions and original colors. */
.mark img,.access-brand img,.side-logo img,#teacher .ai-badge img{object-fit:contain;object-position:center;mix-blend-mode:normal}
.mark img{width:100%;height:100%;max-width:100%}
.side-logo{overflow:hidden;flex-shrink:0}
.side-logo img{display:block;width:100%;height:100%;padding:3px}


/* University quizzes, optional question images and private professional practice */
[data-academic-quiz][hidden]{display:none!important}
.question-attachment{display:block;max-width:100%;width:auto;max-height:420px;object-fit:contain;margin:14px auto;border-radius:12px;background:#fff}
.question-image-editor{padding:10px 0}.question-image-editor input[type=file]{font-size:12px;padding:10px;background:#fff;color:#173365}
.professional-answer{display:flex!important;align-items:center;gap:12px;padding:12px;border:1px solid #dce7f8;border-radius:12px;color:#173365!important;background:#fff}
.professional-answer input{width:auto;flex:0 0 auto;box-shadow:none}
.professional-score{margin:20px 0;padding:20px;border:1px solid #b9eadc;border-radius:16px;background:#f0fbf7;text-align:center;color:#173365}
.professional-score>b{font-size:38px;color:#087e69}
#professionalPage .question p{color:#173365;line-height:1.9}

.registration-logo img{display:block;width:100%;height:100%;object-fit:contain;padding:5px}.registration-logo{background:#fff;border-color:#dce7f8}
[data-academic-classes][hidden]{display:none!important}

/* The summaries notice belongs inside its page; navigation remains available. */
.summaries-development-page{position:relative;display:grid;place-items:center;min-height:330px;margin-top:22px;overflow:hidden;border:1px solid #dbe6f8;border-radius:18px;background:#f3f7fd}
.summaries-preview{position:absolute;inset:25px;display:grid;gap:14px;filter:blur(5px);opacity:.35;pointer-events:none}
.summaries-preview>span{font-size:64px;text-align:center}.summaries-preview i{height:38px;border-radius:12px;background:#c2d4ef}
.summaries-development-message{position:relative;text-align:center;padding:25px;max-width:440px;border:1px solid #dbe6f8;border-radius:18px;background:#ffffffed;box-shadow:0 12px 35px #153c8312}
.summaries-development-message h3{font-size:26px;color:#153c83;margin:0 0 12px}.summaries-development-message p{font-size:15px;color:#52688b;line-height:1.9}
.summaries-development-message a{display:inline-block;color:#1452a2;font:700 23px Arial,Tahoma,sans-serif;text-decoration:underline;text-underline-offset:5px}
.summaries-development-message a:focus-visible{outline:2px solid #1452a2;outline-offset:5px;border-radius:3px}
@media(max-width:620px){.summaries-development-message{margin:15px;padding:22px 16px}.summaries-development-message h3{font-size:23px}}

.language-switch{display:inline-flex;align-items:center;gap:8px;border:1px solid #2695b4;border-radius:24px;padding:2px 12px;color:#b3e7f6;background:#ffffff08;flex-shrink:0;font:12px Tahoma,Arial,sans-serif}
.language-switch select{width:auto;min-width:86px;color:inherit;background:transparent;border:0;border-radius:20px;padding:8px 3px;font:inherit;cursor:pointer}
.language-switch option{color:#12366f;background:#fff}
.language-switch:focus-within{outline:2px solid #66d6ed;outline-offset:3px}
.top-actions .language-switch{color:#174b91;border-color:#9fc5eb;background:#f6faff}
html[lang=en] body{font-family:Arial,Tahoma,sans-serif}
html[dir=ltr] :is(.welcome-side,.access-side){direction:ltr}
html[dir=ltr] :is(.role,.access-option,.quick-join,.role-choice,.join-card,.game-option,.dash-nav button,.dash-nav button span,.dash-create,.quick-action,.player-row b,.saved-row,.test-folder-head,.welcome-copy){text-align:start}
html[dir=ltr] .access-cta b{transform:scaleX(-1)}
html[dir=ltr] :is(.primary,.dash-nav button){font-family:Arial,Tahoma,sans-serif}
html[dir=ltr] .welcome-copy h1{letter-spacing:normal;font-size:clamp(32px,4vw,52px);line-height:1.2}
html[dir=ltr] .dash-nav button.active{box-shadow:inset 3px 0 #71e2d0}
html[dir=ltr] .game-option span{margin-left:0;margin-right:10px}
html[dir=ltr] .welcome-benefits>div{border-left:0;border-inline-end:1px solid #ffffff20}
html[dir=ltr] .welcome-benefits>div:last-child{border-inline-end:0}
html[dir=ltr] .access-option strong{line-height:1.4}
@media(max-width:620px){.top-actions .language-switch{padding-inline:8px}.language-switch select{min-width:78px}html[dir=ltr] .dash-nav button span{font-size:10px;overflow-wrap:anywhere}html[dir=ltr] .welcome-copy h1{font-size:36px}}

.reference-brand{display:flex;flex-direction:column;align-items:center;gap:8px;margin:12px 0 24px}.reference-brand img{object-fit:contain}.reference-card h2{text-align:center}.reference-question h3{white-space:pre-wrap;overflow-wrap:anywhere}.reference-options{list-style:none;padding:0;display:grid;gap:8px}.reference-options li{padding:10px 14px;border:1px solid #d9e3f1;border-radius:9px;overflow-wrap:anywhere}.reference-options .reference-correct{border:2px solid #087a65;background:#effaf5;color:#095d4f}.reference-answer{font-weight:bold;color:#095d4f;white-space:pre-wrap;overflow-wrap:anywhere}.reference-explanation{white-space:pre-wrap;overflow-wrap:anywhere}#referenceDownload{margin-top:24px}

/* Student self-tests preserve normal scroll and never poll the DOM. */
#studentWorkspace fieldset{min-width:0;margin-block:20px;padding:20px}#studentWorkspace legend{max-width:100%;white-space:pre-wrap}#studentWorkspace .student-answer{display:flex;align-items:center;gap:10px;padding:12px;cursor:pointer}#studentWorkspace input[type=radio],#studentAdmin input[type=checkbox]{width:auto;margin:0}#studentAdmin table{width:100%;border-collapse:collapse}#studentAdmin td,#studentAdmin th{padding:10px;text-align:start}#studentAdmin .table-wrap{overflow-x:auto}#studentWorkspace .panel-heading{flex-wrap:wrap}

#studentWorkspace .student-attempt-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--dash-line);overflow-wrap:anywhere}#studentWorkspace .student-attempt-row:last-child{border:0}#studentWorkspace .student-paper-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px}#studentWorkspace .dash-nav button{text-align:start}#studentWorkspace .copyright{margin-top:30px}#studentWorkspace .dash-main>.dash-panel+ .dash-panel{margin-top:18px}

.student-account-row{align-items:flex-start;flex-wrap:wrap}.student-account-identity{min-width:0;flex:1 1 200px}.student-account-identity bdi{overflow-wrap:anywhere}.student-account-actions{display:flex;flex-wrap:wrap;gap:8px;flex:1 1 240px}

.subscription-dialog{width:min(94vw,520px);max-height:90vh;overflow:auto;border:1px solid #dce5f5;border-radius:20px;padding:24px;color:#15356c;background:#fff;direction:rtl}.subscription-dialog::backdrop{background:#10244388}.subscription-dialog .account-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
