.ace-ce{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text",Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
.ace-ce-queue{position:static!important;display:block!important;width:0!important;height:0!important;overflow:visible!important;z-index:2147483000}
.ace-ce-popup{position:fixed;z-index:2147483000;left:var(--ace-ce-left,50%);top:var(--ace-ce-top,42%);width:min(350px,calc(100vw - 24px));margin:0;display:none;animation:aceCeIn .30s cubic-bezier(.22,1,.36,1) both;will-change:left,top,transform}
.ace-ce-popup.ace-ce-active{display:block}
.ace-ce-popup .ace-ce-inner{position:relative;overflow:hidden;padding:16px 40px 16px 17px;border:1px solid rgba(255,255,255,.92);border-radius:20px;background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(248,248,253,.91));backdrop-filter:blur(28px) saturate(165%);-webkit-backdrop-filter:blur(28px) saturate(165%);box-shadow:0 22px 55px rgba(39,24,88,.16),0 6px 18px rgba(19,28,58,.08),inset 0 1px 0 rgba(255,255,255,.95)}
.ace-ce-progress{position:absolute;left:0;top:0;width:100%;height:3px;background:rgba(124,92,255,.08)}
.ace-ce-progress span{display:block;height:100%;width:100%;transform-origin:left center;background:linear-gradient(90deg,#7457ff 0%,#3d9dff 58%,#1fdb83 100%)}
.ace-ce-popup.ace-ce-active .ace-ce-progress span{animation:aceCeProgress 15s linear forwards}
.ace-ce-popup.ace-ce-engaged .ace-ce-progress span{animation-play-state:paused}
.ace-ce-kicker{font-size:8px;font-weight:780;letter-spacing:.13em;text-transform:uppercase;color:#6f62a8;margin-bottom:5px}
.ace-ce-title{font-size:16px;font-weight:720;letter-spacing:-.022em;line-height:1.25;color:#11131b;margin:0}
.ace-ce-body{margin:6px 0 10px;font-size:12px;line-height:1.42;color:#606477}
.ace-ce-actions,.ace-ce-delayed-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.ace-ce-button{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:7px 15px;border-radius:11px;text-decoration:none;font-size:12px;font-weight:700;letter-spacing:-.005em;transition:transform .16s ease,opacity .16s ease,box-shadow .16s ease,filter .16s ease}
.ace-ce-primary{background:linear-gradient(135deg,#7657ff 0%,#8d5dff 48%,#b05cff 100%);color:#fff;box-shadow:0 7px 18px rgba(113,82,255,.25),inset 0 1px 0 rgba(255,255,255,.25)}
.ace-ce-secondary,.ace-ce-later{border:1px solid rgba(67,79,112,.10);background:rgba(255,255,255,.82);color:#161821;box-shadow:0 2px 8px rgba(20,26,45,.05),inset 0 1px 0 rgba(255,255,255,.85)}
.ace-ce-later{min-height:32px;padding:7px 13px;border-radius:11px;font:inherit;font-size:12px;font-weight:650;cursor:pointer}
.ace-ce-button:hover{transform:translateY(-1px);opacity:1;filter:saturate(1.06);box-shadow:0 9px 22px rgba(68,78,140,.13)}
.ace-ce-dismiss{position:absolute;right:9px;top:9px;width:26px;height:26px;border:1px solid rgba(48,54,76,.07);border-radius:50%;background:rgba(245,245,250,.82);color:#515467;font-size:16px;line-height:23px;cursor:pointer;opacity:.86;box-shadow:0 2px 7px rgba(18,24,42,.06)}
.ace-ce-delay-label{margin-top:6px;font-size:9px;line-height:1;color:#8a8a90}
.ace-ce-stage[hidden],.ace-ce-next-step[hidden],.ace-ce-delayed-actions[hidden]{display:none!important}
.ace-ce-question-number{margin:4px 0 7px;font-size:9px;font-weight:650;color:#8a8a90}
.ace-ce-question-context{margin:6px 0;font-size:11px;line-height:1.4;color:#666}
.ace-ce-question-image{display:block;width:100%;max-height:100px;object-fit:contain;border-radius:10px;margin:7px 0;background:#f1f1f3}
.ace-ce-question-text{margin:7px 0 9px;font-size:13px;font-weight:560;line-height:1.42;color:#17171a}
.ace-ce-options{display:grid;gap:5px}
.ace-ce-option{display:grid;grid-template-columns:25px minmax(0,1fr);align-items:center;gap:7px;width:100%;padding:6px 8px;border:1px solid rgba(0,0,0,.075);border-radius:10px;background:rgba(255,255,255,.72);color:#17171a;text-align:left;cursor:pointer;font:inherit;font-size:11px;line-height:1.3}
.ace-ce-option span{display:grid;place-items:center;width:23px;height:23px;border-radius:7px;background:#f0f0f2;font-size:10px;font-weight:750;color:#555}
.ace-ce-option strong{font-weight:560}
.ace-ce-option.is-correct{border-color:#21a366;background:#eef9f2}.ace-ce-option.is-correct span{background:#21a366;color:#fff}
.ace-ce-option.is-wrong{border-color:#d95c5c;background:#fff3f3}.ace-ce-option.is-wrong span{background:#d95c5c;color:#fff}
.ace-ce-option:disabled{cursor:default;opacity:.92}
.ace-ce-answer-result{margin-top:7px;font-size:10px;line-height:1.35;color:#5d5d63}
.ace-ce-next-step{margin-top:10px;padding-top:9px;border-top:1px solid rgba(0,0,0,.07)}
.ace-ce-next-title{margin:2px 0 7px;font-size:12px;font-weight:650;color:#18181b}
.ace-ce-video-preview{position:relative;display:block;width:100%;height:122px;padding:0;border:0;border-radius:12px;overflow:hidden;background:#151518;cursor:pointer}
.ace-ce-video-preview img{display:block;width:100%;height:100%;object-fit:cover;opacity:.92}.ace-ce-video-preview.is-playing{cursor:default;background:#111}.ace-ce-video-iframe{display:block;width:100%;height:100%;border:0}.ace-ce-preview-fallback{position:absolute;right:7px;bottom:7px;padding:4px 7px;border-radius:999px;background:rgba(0,0,0,.65);color:#fff;font-size:9px;font-weight:650}
.ace-ce-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.93);color:#111;font-size:16px;box-shadow:0 5px 16px rgba(0,0,0,.18)}
.ace-ce-video-placeholder{position:relative;height:90px;margin:5px 0 9px;border-radius:12px;background:linear-gradient(135deg,#1a1a1e,#47474d);overflow:hidden}.ace-ce-video-placeholder .ace-ce-play{background:#fff}
.ace-ce-popup.ace-ce-leaving{animation:aceCeOut .22s ease-in forwards}
.ace-ce-home-slot{display:none!important}
@keyframes aceCeIn{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes aceCeOut{to{opacity:0;transform:translateY(7px) scale(.985)}}
@keyframes aceCeProgress{from{transform:scaleX(1)}to{transform:scaleX(0)}}
@media (max-width:640px){.ace-ce-popup{width:min(336px,calc(100vw - 20px))}.ace-ce-popup .ace-ce-inner{padding:14px 39px 14px 14px;border-radius:17px}.ace-ce-title{font-size:15px}.ace-ce-body{font-size:11.5px}.ace-ce-video-preview{height:112px}.ace-ce-question-text{font-size:12.5px}}
@media (prefers-reduced-motion:reduce){.ace-ce-popup,.ace-ce-popup.ace-ce-leaving,.ace-ce-popup.ace-ce-active .ace-ce-progress span{animation:none!important}.ace-ce-popup.ace-ce-leaving{opacity:0}}

.ace-ce-grade-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}.ace-ce-grade-choice{min-height:40px;border:1px solid rgba(71,77,104,.09);border-radius:12px;background:rgba(255,255,255,.86);color:#11131a;font:inherit;font-size:11px;font-weight:700;cursor:pointer;box-shadow:0 3px 10px rgba(27,34,60,.045),inset 0 1px 0 rgba(255,255,255,.92);transition:transform .15s ease,background .15s ease,border-color .15s ease,box-shadow .15s ease}.ace-ce-grade-choice:hover{transform:translateY(-1px);background:#fff;border-color:rgba(118,87,255,.22);box-shadow:0 6px 14px rgba(83,71,160,.09)}.ace-ce-grade-choice:active{transform:scale(.98)}.ace-ce-grade-choice:disabled{opacity:.55;cursor:default}.ace-ce-grade-status{margin-top:8px;font-size:10px;color:#6b6b72}.ace-ce-grade-selector .ace-ce-inner{padding-right:16px}.ace-ce-grade-selector{width:min(350px,calc(100vw - 24px))}.ace-ce-grade-queue .ace-ce-popup{display:block}
@media(max-width:640px){.ace-ce-grade-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.ace-ce-grade-choice{min-height:40px}}

.ace-ce-subject-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px;max-height:250px;overflow:auto}.ace-ce-subject-choice{min-height:38px;padding:7px 9px;border:1px solid rgba(0,0,0,.075);border-radius:11px;background:rgba(255,255,255,.78);color:#111;font:inherit;font-size:11px;font-weight:650;cursor:pointer;text-align:center;transition:transform .15s ease,background .15s ease,border-color .15s ease}.ace-ce-subject-choice:hover{transform:translateY(-1px);background:#fff;border-color:rgba(0,0,0,.15)}.ace-ce-subject-choice:disabled{opacity:.55;cursor:default}.ace-ce-subject-all{width:100%;margin-top:7px;background:#111;color:#fff;border-color:#111}.ace-ce-subject-status{margin-top:8px;font-size:10px;color:#6b6b72}.ace-ce-subject-selector .ace-ce-inner{padding-right:16px}@media(max-width:640px){.ace-ce-subject-grid{grid-template-columns:1fr;max-height:280px}}
.ace-ce-subject-grid{grid-template-columns:1fr;gap:8px;max-height:310px;padding-right:2px}
.ace-ce-subject-choice{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:54px;padding:9px 12px;text-align:left;background:rgba(255,255,255,.86);border-color:rgba(71,77,104,.09);box-shadow:0 3px 10px rgba(27,34,60,.045),inset 0 1px 0 rgba(255,255,255,.92)}
.ace-ce-subject-name{font-size:12px;font-weight:720;letter-spacing:-.012em;min-width:0;flex:1;color:#151720}
.ace-ce-subject-depth{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:3px 5px;max-width:62%;font-size:8.5px;line-height:1.2;color:#77777e;font-weight:550;text-align:right}
.ace-ce-subject-depth span{white-space:nowrap}
.ace-ce-subject-depth span:not(:last-child)::after{content:' · ';color:#b0b0b5;margin-left:5px}
.ace-ce-subject-choice:hover{border-color:rgba(118,87,255,.22);box-shadow:0 7px 16px rgba(83,71,160,.09);background:#fff}.ace-ce-subject-choice:hover .ace-ce-subject-depth{color:#55555b}
.ace-ce-subject-all{display:flex;justify-content:center;text-align:center;min-height:36px}
@media(max-width:640px){.ace-ce-subject-grid{max-height:330px}.ace-ce-subject-choice{min-height:60px}.ace-ce-subject-depth{max-width:66%;font-size:8px}}

/* ACE premium Apple-style visual system */
.ace-ce-popup .ace-ce-inner::before,.ace-ce-popup .ace-ce-inner::after{content:"";position:absolute;pointer-events:none;border-radius:50%;filter:blur(18px);opacity:.20}
.ace-ce-popup .ace-ce-inner::before{width:120px;height:120px;right:-55px;top:-70px;background:#7657ff}
.ace-ce-popup .ace-ce-inner::after{width:110px;height:110px;left:-65px;bottom:-75px;background:#36a8ff}
.ace-ce-popup .ace-ce-inner > *{position:relative;z-index:1}
.ace-ce-subject-arrow{font-size:18px;line-height:1;color:#7657ff;font-weight:500;flex:0 0 auto}
.ace-ce-option:hover{border-color:rgba(118,87,255,.20);background:#fff;box-shadow:0 4px 12px rgba(57,63,100,.06)}
@supports not ((backdrop-filter:blur(1px))){.ace-ce-popup .ace-ce-inner{background:#fff}}

/* Keep a popup available without blocking the learner: move it to the page-end viewport after the learner asks to open it there. */
.ace-ce-popup.ace-ce-end-position{left:auto!important;top:auto!important;right:16px!important;bottom:16px!important;transform:none!important;animation:aceCeEndDock .24s cubic-bezier(.22,1,.36,1) both;z-index:2147483001}
.ace-ce-popup.ace-ce-end-position .ace-ce-open-at-end{background:linear-gradient(135deg,#7657ff 0%,#3d9dff 100%);color:#fff;border-color:transparent;box-shadow:0 7px 18px rgba(82,86,255,.20),inset 0 1px 0 rgba(255,255,255,.25)}
.ace-ce-popup.ace-ce-end-position .ace-ce-primary{background:linear-gradient(135deg,#7657ff 0%,#8d5dff 48%,#b05cff 100%)}
@keyframes aceCeEndDock{from{opacity:.82;transform:translateY(10px) scale(.985)!important}to{opacity:1;transform:none!important}}
@media(max-width:640px){.ace-ce-popup.ace-ce-end-position{right:10px!important;bottom:10px!important;left:10px!important;width:auto!important}}


/* ACE 0.5.25 — premium Apple UI for Grade + Subject onboarding */
.ace-ce-grade-selector,
.ace-ce-subject-selector{width:min(366px,calc(100vw - 22px));}
.ace-ce-grade-selector .ace-ce-inner,
.ace-ce-subject-selector .ace-ce-inner{
  padding:18px 17px 17px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.88);
  background:
    radial-gradient(150px 110px at 100% 0%,rgba(255,92,169,.20),transparent 72%),
    radial-gradient(180px 130px at 0% 100%,rgba(76,124,255,.16),transparent 74%),
    linear-gradient(145deg,rgba(255,255,255,.96),rgba(248,248,252,.91));
  box-shadow:
    0 30px 70px rgba(20,18,35,.18),
    0 10px 28px rgba(53,45,86,.10),
    inset 0 1px 0 rgba(255,255,255,.98);
  backdrop-filter:blur(32px) saturate(175%);
  -webkit-backdrop-filter:blur(32px) saturate(175%);
}
.ace-ce-grade-selector .ace-ce-inner::before,
.ace-ce-subject-selector .ace-ce-inner::before{
  width:180px;height:180px;right:-90px;top:-105px;
  background:#ff5ca9;opacity:.18;filter:blur(28px);
}
.ace-ce-grade-selector .ace-ce-inner::after,
.ace-ce-subject-selector .ace-ce-inner::after{
  width:150px;height:150px;left:-90px;bottom:-105px;
  background:#4c7cff;opacity:.14;filter:blur(28px);
}
.ace-ce-grade-selector .ace-ce-kicker,
.ace-ce-subject-selector .ace-ce-kicker{
  color:#ff4f9a;
  font-size:8px;font-weight:800;letter-spacing:.16em;
}
.ace-ce-grade-selector .ace-ce-title,
.ace-ce-subject-selector .ace-ce-title{
  color:#0a0a0d;
  font-size:18px;font-weight:760;letter-spacing:-.035em;
}
.ace-ce-grade-selector .ace-ce-body,
.ace-ce-subject-selector .ace-ce-body{
  color:#666874;font-size:11.5px;line-height:1.45;margin:6px 0 12px;
}
.ace-ce-grade-grid{gap:8px;margin-top:12px;}
.ace-ce-grade-choice{
  min-height:45px;
  border:1px solid rgba(17,17,22,.08);
  border-radius:14px;
  background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(250,250,253,.80));
  color:#0a0a0d;
  font-size:11.5px;font-weight:720;
  box-shadow:0 5px 14px rgba(18,18,27,.055),inset 0 1px 0 rgba(255,255,255,.98);
}
.ace-ce-grade-choice:hover{
  transform:translateY(-2px);
  color:#09090b;
  background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(255,240,248,.94));
  border-color:rgba(255,79,154,.25);
  box-shadow:0 10px 22px rgba(255,79,154,.10),0 4px 12px rgba(18,18,27,.06),inset 0 1px 0 #fff;
}
.ace-ce-grade-choice:focus-visible,
.ace-ce-subject-choice:focus-visible{
  outline:2px solid rgba(76,124,255,.55);outline-offset:2px;
}
.ace-ce-subject-grid{
  gap:8px;
  max-height:300px;
  padding:2px 3px 3px 1px;
  scrollbar-width:thin;
  scrollbar-color:rgba(10,10,13,.24) transparent;
}
.ace-ce-subject-choice{
  min-height:52px;
  padding:11px 13px;
  border:1px solid rgba(17,17,22,.075);
  border-radius:15px;
  background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(250,250,253,.82));
  color:#0a0a0d;
  box-shadow:0 5px 14px rgba(18,18,27,.05),inset 0 1px 0 rgba(255,255,255,.98);
}
.ace-ce-subject-choice:hover{
  transform:translateY(-2px);
  background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(245,249,255,.94));
  border-color:rgba(76,124,255,.23);
  box-shadow:0 10px 22px rgba(76,124,255,.10),0 4px 12px rgba(18,18,27,.06),inset 0 1px 0 #fff;
}
.ace-ce-subject-name{font-size:12px;font-weight:730;color:#0a0a0d;}
.ace-ce-subject-arrow{color:#ff4f9a;font-size:19px;font-weight:500;transition:transform .15s ease,color .15s ease;}
.ace-ce-subject-choice:hover .ace-ce-subject-arrow{color:#4c7cff;transform:translateX(2px);}
.ace-ce-dismiss{
  width:27px;height:27px;right:10px;top:10px;
  border:0;background:#09090b;color:#fff;
  font-size:15px;line-height:27px;font-weight:500;
  box-shadow:0 4px 12px rgba(0,0,0,.16);
}
.ace-ce-dismiss:hover{background:#ff4f9a;color:#fff;transform:scale(1.04);}
.ace-ce-grade-status,.ace-ce-subject-status{color:#777984;font-size:9.5px;}
.ace-ce-grade-selector .ace-ce-progress,.ace-ce-subject-selector .ace-ce-progress{display:none;}
@media(max-width:640px){
 .ace-ce-grade-selector,.ace-ce-subject-selector{width:min(354px,calc(100vw - 18px));}
 .ace-ce-grade-selector .ace-ce-inner,.ace-ce-subject-selector .ace-ce-inner{border-radius:22px;padding:16px 14px 14px;}
 .ace-ce-grade-choice{min-height:43px;}
 .ace-ce-subject-grid{max-height:320px;}
}
@supports not ((backdrop-filter:blur(1px))){
 .ace-ce-grade-selector .ace-ce-inner,.ace-ce-subject-selector .ace-ce-inner{background:#fafafd;}
}
