/* A calm public entrance and clear account controls, using the academy's own font and artwork. */
body{font-family:'Cairo',Tahoma,Arial,sans-serif}
body .marketing-header{
  height:auto;min-height:82px;gap:24px;padding:15px max(24px,calc((100vw - 1240px)/2));
  border-top:0;border-bottom:1px solid #e1e9f5;background:#fff;box-shadow:none;
  justify-content:space-between;
}
.ac-public-brand{display:flex;align-items:center;gap:11px;text-decoration:none;min-width:0;color:#091a50}
.ac-public-brand img{display:block;flex-shrink:0;width:38px;height:38px;border-radius:11px}
.ac-public-brand .ac-wordmark,.auth-brand .ac-wordmark{color:#091a50}
.ac-public-brand .ac-wordmark b,.auth-brand .ac-wordmark b{color:#0866ed}
body .marketing-actions{gap:10px;flex-shrink:0}
body :is(.marketing-header,.landing-view,.auth-dialog) .primary-btn{
  background:#0866ed;color:#fff;border:1px solid #0866ed;border-radius:13px;
  font-size:13px;font-weight:800;min-height:46px;padding:11px 22px;box-shadow:0 5px 15px #0866ed14;
}
body :is(.marketing-header,.landing-view,.auth-dialog) .secondary-btn{
  background:#fff;color:#0866ed;border:1px solid #d2e1f9;border-radius:13px;
  font-size:13px;font-weight:800;min-height:46px;padding:11px 22px;
}
body :is(.marketing-header,.landing-view,.auth-dialog) :is(button,a,input,select):focus-visible{
  outline:3px solid #45b7ff;outline-offset:3px;
}
body .landing-view{max-width:1240px;padding:28px 24px;color:#091a50}
.ac-welcome{display:flex;flex-direction:column;gap:26px;margin-bottom:26px}
.ac-welcome-copy{min-width:0;width:100%;text-align:center}
.ac-welcome-kicker{display:inline-flex;border:1px solid #dbe8fc;border-radius:30px;padding:7px 15px;background:#eaf3ff;color:#0866ed;font-weight:700;font-size:12px}
.ac-welcome h1{font-size:40px;font-weight:900;line-height:1.7;letter-spacing:-1px;margin:12px 0 5px;color:#091a50;text-wrap:balance}
.ac-welcome h1 em{font-style:normal;color:#0866ed}
.ac-welcome p{font-size:15px;color:#69758f;line-height:2;margin:0 0 18px;text-wrap:balance}
.ac-welcome-actions{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}
body .ac-welcome-actions .primary-btn,body .ac-welcome-actions .secondary-btn{min-height:52px;padding:13px 24px;font-size:14px}
.ac-welcome-actions .primary-btn{display:inline-flex;justify-content:center;align-items:center;gap:18px}
.ac-welcome-hint{display:block;font-size:11px;line-height:1.9;color:#69758f;margin-top:11px;text-wrap:balance}
.ac-welcome-art{position:relative;width:100%;min-height:clamp(290px,26vw,335px);border-radius:24px;border:1px solid #e1e9f5;background:linear-gradient(90deg,#f4ede3,#fffdf8 70%);overflow:hidden;box-shadow:0 8px 32px #123a8e08;isolation:isolate}
.ac-welcome-art>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;object-position:left center;z-index:-2}
.ac-welcome-art::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent 39%,#fffcf500 44%,#fffdf8eb 62%,#fffdf8 100%);z-index:-1;pointer-events:none}
.ac-welcome-art-caption{position:absolute;right:4%;top:0;bottom:0;width:51%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px 0;color:#091a50}
.ac-hero-name{font-size:clamp(40px,5vw,64px);font-weight:900;line-height:1.3;letter-spacing:-1.8px;color:#ee1935}
.ac-hero-slogan{font-size:clamp(34px,4.1vw,52px);font-weight:900;line-height:1.5;letter-spacing:-1.4px;margin:1px 0 12px;white-space:nowrap}
.ac-hero-promise{display:block;border-radius:30px;background:#ffe26b;padding:6px 17px;color:#091a50;font-size:clamp(11px,1.13vw,14px);font-weight:800;line-height:1.9;max-width:100%;text-wrap:balance}
.ac-hero-doodle{position:absolute;pointer-events:none;width:47px;height:55px}
.ac-hero-bulb{color:#091a50;left:3%;top:10%;transform:rotate(-12deg)}
.ac-hero-plane{color:#ee1935;right:3%;top:8%;transform:rotate(5deg)}
.ac-welcome-art.custom{min-height:0;background:#fff}
.ac-welcome-art.custom>img{position:static;height:auto;max-height:400px;object-position:center}
.ac-welcome-art.custom::after,.ac-welcome-art.custom .ac-welcome-art-caption,.ac-welcome-art.custom .ac-hero-doodle{display:none}
body.visual-refresh .landing-view .landing-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:0}
body.visual-refresh .landing-view .landing-cards article{padding:21px 17px;border-radius:19px;border:1px solid #e1e9f5;box-shadow:0 4px 18px #13356004;align-items:center;text-align:center;flex-direction:column;min-width:0;background:#fff;gap:11px;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
body .landing-cards article>span{width:48px;height:48px;flex-shrink:0;border-radius:15px;background:#eaf3ff;color:#0866ed;display:grid;place-items:center}
.ac-feature-icon{width:27px;height:27px}
body.visual-refresh .landing-view .landing-cards article:nth-child(2)>span{color:#009e90;background:#e4faf5}
body.visual-refresh .landing-view .landing-cards article:nth-child(3)>span{color:#ce850d;background:#fff7e4}
body.visual-refresh .landing-view .landing-cards article:nth-child(4)>span{color:#7942e6;background:#f3edff}
body .landing-cards b{font-size:15px;line-height:1.9;color:#091a50}
body .landing-cards small{font-size:11px;line-height:1.9;color:#69758f;margin-top:4px;text-wrap:balance}
.ac-public-footer{border-top:1px solid #e1e9f5;margin-top:29px;padding:16px 0 0;display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:11px;color:#69758f}
.ac-public-footer a{color:#0866ed;text-decoration:none;font-weight:700;padding:8px 0}
@media(hover:hover) and (prefers-reduced-motion:no-preference){body.visual-refresh .landing-view .landing-cards article:hover{transform:translateY(-4px);border-color:#ccddf9;box-shadow:0 12px 28px #123a8e0e}}
body .auth-dialog{
  width:min(460px,calc(100vw - 28px));max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);
  padding:32px;border:1px solid #e1e9f5;border-radius:24px;background:#fff;color:#091a50;
  overflow-y:auto;overscroll-behavior:contain;box-shadow:0 30px 100px #091a5038;
}
body .auth-dialog.is-register{width:min(620px,calc(100vw - 28px))}
.auth-dialog::backdrop{background:#091a506b;backdrop-filter:blur(5px)}
body .auth-dialog .dialog-close{position:absolute;top:14px;left:14px;width:38px;height:38px;border-radius:12px;background:#f4f8ff;color:#69758f;font-size:24px;border:1px solid #e1e9f5}
.ac-auth-logo{display:block;margin:0 auto 9px}
body .ac-auth-logo img{width:44px;height:44px;border-radius:13px}
body .auth-brand{margin-bottom:23px;padding-top:4px}
body .auth-brand .ac-wordmark{font-size:20px}
body .auth-brand h2{font-size:24px;line-height:1.65;letter-spacing:-.6px;color:#091a50;margin:13px 0 4px;font-weight:900}
body .auth-brand p{font-size:12px;line-height:1.9;color:#69758f;margin:0}
body .auth-form{gap:15px}
body .auth-form .two-col{gap:15px}
body .auth-form label{position:relative;gap:7px;font-size:12px;line-height:1.9;color:#091a50;min-width:0;font-weight:700}
body .auth-form :is(input,select){width:100%;max-width:100%;min-width:0;border:1px solid #dce5f3;border-radius:12px;padding:11px 13px;background:#f8faff;color:#091a50;font-size:16px;min-height:49px}
body .auth-form :is(input,select):focus{border-color:#0866ed;background:#fff}
body .auth-form :is(input,select)::placeholder{font-size:13px;color:#8a97ad}
body .auth-form #regRole{background:#eaf3ff;color:#0866ed;font-weight:700;border-color:#c9dcfa}
.ac-optional{position:absolute;top:1px;left:0;color:#69758f;font-size:10px;font-weight:400}
body .auth-form .role-fields{padding:17px;border:1px solid #e1e9f5;border-radius:16px;background:#f4f8ff}
body .auth-form .role-fields .muted{display:block;margin-top:8px;font-size:11px;line-height:1.9;color:#69758f}
body .auth-form .grade-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:4px}
body .auth-form .grade-checks label{display:flex;align-items:center;gap:7px;border:1px solid #e1e9f5;background:#fff;border-radius:10px;padding:10px;font-size:10px;font-weight:600;min-height:44px}
body .auth-form .grade-checks input{width:18px;height:18px;min-height:18px;padding:0;margin:0;flex-shrink:0;accent-color:#0866ed}
body .auth-form #regTeacherFields>label{margin-top:15px}
body .auth-note{border:1px solid #dce9fa;border-radius:12px;background:#eaf3ff;color:#24549d;font-size:11px;line-height:1.9;padding:12px 14px}
body .auth-form .primary-btn{min-height:50px;font-size:14px}
body .auth-switch{font-size:12px;color:#69758f;margin:17px 0 0;line-height:1.9}
body .auth-switch button{font-size:12px;padding:8px 4px;color:#0866ed}
body #authError:not(:empty){margin-bottom:16px}
body #authError :is(.error-box,.success-box){font-size:12px;line-height:1.9;overflow-wrap:anywhere}
.ac-header-logout{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;flex-shrink:0;border:1px solid #e1e9f5;background:#fff;border-radius:12px;color:#69758f;padding:9px 11px;font-family:inherit;font-size:11px;font-weight:700;cursor:pointer}
.ac-header-logout svg{width:19px;height:19px;flex-shrink:0}
.ac-header-logout:hover{background:#fff1f2;border-color:#efd2d7;color:#b6344e}
.p1-shell .sidebar{overflow:hidden;padding-bottom:18px}
.p1-shell .side-nav{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:12px}
.p1-shell .logout-btn{flex-shrink:0;margin-top:12px;min-height:44px;color:#b6344e;background:#fff4f5;border:1px solid #f3dde1}
.ac-menu-account{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--p1-line);margin-top:22px;padding-top:18px}
.ac-menu-account>div{min-width:0}.ac-menu-account b,.ac-menu-account small{display:block;overflow-wrap:anywhere}
.ac-menu-account b{font-size:12px}.ac-menu-account small{font-size:10px;color:var(--p1-muted);margin-top:3px}
.ac-menu-logout{border:1px solid #f3dde1;border-radius:12px;background:#fff4f5;color:#b6344e;padding:10px 15px;font-family:inherit;font-size:12px;font-weight:700;min-height:44px;flex-shrink:0}
#p1SectionDialog[open]{display:flex;flex-direction:column;overflow:hidden}
#p1SectionDialog .p1-section-menu-head{flex-shrink:0}
#p1SectionDialog .p1-section-grid{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:2px;flex:1}
#p1SectionDialog .ac-menu-account{flex-shrink:0;margin-top:16px;padding-top:15px}
@media(max-width:1200px){.p1-shell .profile-block>div{display:none}}
@media(max-width:980px){
  .ac-welcome h1{font-size:34px}.ac-welcome-art-caption{width:54%;right:3%}
  .ac-hero-name{font-size:46px}.ac-hero-slogan{font-size:37px}.ac-hero-promise{font-size:11px;padding-inline:12px}
  .ac-hero-doodle{width:37px;height:43px}
  body.visual-refresh .landing-view .landing-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ac-header-logout{width:38px;padding:8px}.ac-header-logout>span{display:none}
}
@media(max-width:700px){
  body .marketing-header{min-height:70px;padding:12px 16px;gap:10px}
  .ac-public-brand{gap:8px}.ac-public-brand img{width:32px;height:32px;border-radius:9px}.ac-public-brand .ac-wordmark{font-size:16px;letter-spacing:-.7px}
  body .marketing-actions{gap:7px}
  body .marketing-actions .primary-btn,body .marketing-actions .secondary-btn{font-size:11px;padding:9px 12px;min-height:43px;border-radius:11px}
  body .landing-view{padding:18px 16px 20px}
  .ac-welcome{gap:20px;margin-bottom:20px}
  .ac-welcome-kicker{font-size:11px;padding:5px 13px}
  .ac-welcome h1{font-size:28px;margin:10px 0 6px;letter-spacing:-.7px;line-height:1.65;max-width:420px;margin-inline:auto}
  .ac-welcome p{font-size:12px;line-height:1.95;margin-bottom:15px}
  .ac-welcome-actions{flex-direction:column;gap:9px}
  body .ac-welcome-actions .primary-btn,body .ac-welcome-actions .secondary-btn{width:100%;font-size:13px;min-height:47px;padding:10px 15px;border-radius:12px}
  .ac-welcome-actions .primary-btn{gap:12px}.ac-welcome-hint{font-size:10px;margin-top:10px}
  .ac-welcome-art{min-height:0;border-radius:19px;display:flex;flex-direction:column;background:#fffdf8}
  .ac-welcome-art>img{position:static;z-index:auto;width:100%;height:clamp(190px,52vw,280px);object-fit:cover;object-position:left center}
  .ac-welcome-art::after{display:none}
  .ac-welcome-art-caption{position:static;width:100%;padding:12px 11px 15px;background:linear-gradient(180deg,#fffdf8,#faf5eb)}
  .ac-hero-name{font-size:37px;letter-spacing:-1.2px;line-height:1.3}
  .ac-hero-slogan{font-size:30px;letter-spacing:-.9px;line-height:1.45;margin:0 0 7px}
  .ac-hero-promise{font-size:9px;padding:4px 9px;line-height:1.9}
  .ac-hero-bulb{width:37px;height:46px;left:4%;top:6%}
  .ac-hero-plane{width:32px;height:38px;right:5%;top:auto;bottom:90px}
  .ac-welcome-art.custom>img{height:auto;max-height:320px;object-fit:contain}
  body.visual-refresh .landing-view .landing-cards{gap:10px}
  body.visual-refresh .landing-view .landing-cards article{padding:15px 10px;gap:8px;border-radius:16px}
  body .landing-cards article>span{width:40px;height:40px;border-radius:12px}.ac-feature-icon{width:24px;height:24px}
  body .landing-cards b{font-size:12px}body .landing-cards small{font-size:10px}
  .ac-public-footer{font-size:10px;margin-top:25px;padding-top:12px}
  body .auth-dialog{padding:25px 22px;border-radius:22px}
  body .auth-dialog .two-col{grid-template-columns:minmax(0,1fr)}
  body .auth-form .role-fields{padding:14px}
  body .auth-form .grade-checks label{font-size:10px;padding:10px 8px}
  .p1-shell .profile-avatar{display:none}
  .p1-shell .app-header-actions{gap:4px}
  .p1-shell .app-header-actions .ac-header-logout{min-width:35px;width:35px;min-height:40px;padding:8px;border:0;background:transparent}
  .ac-menu-logout{font-size:11px;padding:10px 12px}
}
@media(max-width:360px){
  body .marketing-header{padding:11px 12px;gap:8px}.ac-public-brand .ac-wordmark{font-size:14px}.ac-public-brand img{width:28px;height:28px}.ac-public-brand{gap:7px}
  body .marketing-actions{gap:6px}body .marketing-actions .primary-btn,body .marketing-actions .secondary-btn{padding:9px 10px;font-size:10px}
  .ac-welcome h1{font-size:26px}.ac-welcome p{font-size:11px}
  .ac-hero-name{font-size:33px}.ac-hero-slogan{font-size:26px}.ac-hero-promise{font-size:8px}
  .ac-hero-plane{width:27px;right:3%;bottom:83px}
  body .landing-cards b{font-size:11px}
  body .auth-dialog{padding:24px 17px}.auth-brand .ac-wordmark{font-size:18px}body .auth-brand h2{font-size:22px}
  body .auth-form .grade-checks{grid-template-columns:minmax(0,1fr)}
}
body.dark:not(.p1-shell){background:#0a1326;color:#eef3ff}
body.dark :is(.marketing-header,.auth-dialog){background:#111c31;border-color:#283a57;color:#eef3ff}
body.dark :is(.ac-public-brand,.auth-brand) .ac-wordmark,body.dark .auth-brand h2,body.dark .auth-form label,body.dark .ac-welcome h1{color:#eef3ff}
body.dark .ac-welcome :is(p,.ac-welcome-hint),body.dark .auth-brand p{color:#a9b8d2}
body.dark :is(.landing-cards article,.auth-form .role-fields,.auth-form .grade-checks label,.ac-header-logout){background:#15213a;border-color:#283a57;color:#eef3ff}
body.dark .landing-view .landing-cards article{background:#15213a;border-color:#283a57}
body.dark .landing-cards b{color:#eef3ff}
body.dark .landing-cards small,body.dark .ac-public-footer{color:#a9b8d2}
body.dark .auth-form :is(input,select){background:#111c31;border-color:#344766;color:#eef3ff}
body.dark .ac-public-footer{border-color:#283a57}
@media(prefers-reduced-motion:reduce){body.visual-refresh .landing-view .landing-cards article{transition:none;transform:none}}
