/* Accessible crystal weekly-study popup, independent of lesson and English pages. */
.sc-week-modal[hidden]{display:none!important}
.sc-week-modal{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;background:rgba(7,23,55,.78);padding:clamp(6px,2vw,22px);box-sizing:border-box}
.sc-week-modal-dialog{display:flex;flex-direction:column;width:min(1500px,100%);height:min(94dvh,1060px);min-height:300px;overflow:hidden;border:1px solid #c3d9f6;border-radius:24px;background:#f1f6ff;box-shadow:0 35px 100px rgba(1,19,46,.4)}
.sc-week-modal-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 20px;background:linear-gradient(115deg,#103c90,#215cc2,#5b46b9);color:#fff}
.sc-week-modal-header div:first-child{min-width:0}
.sc-week-modal-header span{font-size:10px;font-weight:900;letter-spacing:1px;color:#dcf1ff}
.sc-week-modal-header h2{font-size:clamp(15px,2vw,23px);line-height:1.25;margin:4px 0 0;color:#fff;font-weight:900}
.sc-week-modal-tools{display:flex;align-items:center;gap:8px;flex-shrink:0}
.sc-week-modal-tools a,.sc-week-modal-tools button{display:inline-flex;justify-content:center;align-items:center;border:1px solid rgba(255,255,255,.6);border-radius:11px;min-height:40px;padding:9px 12px;background:rgba(255,255,255,.14);color:#fff;text-decoration:none;font-size:12px;font-weight:850;cursor:pointer}
.sc-week-modal-tools button{width:42px;font-size:19px;background:rgba(255,255,255,.23)}
.sc-week-modal-tools a:hover,.sc-week-modal-tools button:hover{background:rgba(255,255,255,.33)}
.sc-week-modal-tools a:focus-visible,.sc-week-modal-tools button:focus-visible{outline:3px solid #ffe47a;outline-offset:2px}
.sc-week-modal-frame{display:block;width:100%;height:100%;min-height:0;flex:1;border:0;background:#eef5ff}
@media(max-width:640px){.sc-week-modal{padding:0}.sc-week-modal-dialog{height:100dvh;border-radius:0;border:0}.sc-week-modal-header{padding:11px 13px}.sc-week-modal-header span{font-size:8px;letter-spacing:.4px}.sc-week-modal-tools a{display:none}.sc-week-modal-tools button{width:38px;min-height:38px}.sc-week-modal-header h2{font-size:17px}}
@media(prefers-reduced-motion:reduce){.sc-week-modal *{scroll-behavior:auto}}
