:root{--p2-purple:#5b35ee;--p2-blue:#168cf2;--p2-ink:#14213d;--p2-muted:#6f7a93;--p2-line:#e6ebf5;--p2-bg:#f6f8ff;--p2-green:#13b981;--p2-red:#ef5568;--p2-yellow:#f2b01e}
body.p2-open{overflow:hidden!important}
.p2Overlay{position:fixed;inset:0;z-index:99999;background:rgba(12,22,50,.46);backdrop-filter:blur(5px);display:grid;place-items:center;padding:0}
.p2App{width:min(100%,1180px);height:min(100dvh,980px);background:linear-gradient(180deg,#f8f9ff,#fff);display:grid;grid-template-rows:auto 1fr;overflow:hidden;box-shadow:0 24px 80px rgba(18,31,75,.24)}
.p2Head{padding:18px 22px;background:linear-gradient(125deg,#5935ee 0%,#1f70ef 60%,#16a2e7 100%);color:#fff;display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;position:relative;overflow:hidden}.p2Head:after{content:"";position:absolute;width:250px;height:250px;border-radius:50%;right:-95px;top:-150px;background:rgba(255,255,255,.08)}
.p2Back,.p2Close{position:relative;z-index:1;border:0;background:rgba(255,255,255,.16);color:#fff;width:44px;height:44px;border-radius:14px;font-size:22px;cursor:pointer}.p2Close{font-size:20px}.p2HeadCopy{position:relative;z-index:1;min-width:0}.p2HeadCopy small{display:block;font-size:11px;font-weight:900;letter-spacing:.13em;color:#dce6ff;margin-bottom:4px}.p2HeadCopy h2{margin:0;font-size:24px;line-height:1.15}.p2HeadCopy p{margin:4px 0 0;font-size:13px;color:#eef3ff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.p2Body{overflow:auto;padding:22px;background:linear-gradient(180deg,#f6f8ff,#fff 55%)}
.p2HeroNote{border-radius:22px;padding:18px 20px;background:linear-gradient(135deg,#eef4ff,#f7f1ff);border:1px solid #e5e7ff;margin-bottom:18px}.p2HeroNote b{display:block;font-size:19px;margin-bottom:5px}.p2HeroNote p{margin:0;color:var(--p2-muted);line-height:1.55}
.p2Grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.p2Grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.p2Grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.p2Card{border:1px solid #e9edf6;background:#fff;border-radius:22px;padding:18px;text-align:left;color:var(--p2-ink);cursor:pointer;box-shadow:0 8px 24px rgba(53,67,120,.07);transition:.18s transform,.18s box-shadow;min-width:0}.p2Card:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(53,67,120,.12)}.p2Card .icon{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;font-size:30px;margin-bottom:12px;background:#f0f3ff}.p2Card img.iconImg{width:64px;height:64px;object-fit:contain;border-radius:16px;background:#fff;padding:4px;margin-bottom:12px;box-shadow:0 5px 14px rgba(27,42,92,.1)}.p2Card b{display:block;font-size:18px;line-height:1.25}.p2Card small{display:block;color:var(--p2-muted);font-size:13px;line-height:1.45;margin-top:6px}.p2Card em{display:block;font-style:normal;color:var(--p2-purple);font-weight:800;font-size:12px;margin-top:11px}.p2Card.blue{background:linear-gradient(145deg,#edf7ff,#e4f2ff)}.p2Card.pink{background:linear-gradient(145deg,#fff1f6,#ffe8f0)}.p2Card.green{background:linear-gradient(145deg,#effff7,#dff8ec)}.p2Card.yellow{background:linear-gradient(145deg,#fff9e9,#ffefc9)}.p2Card.purple{background:linear-gradient(145deg,#f5efff,#ebe5ff)}
.p2TitleRow{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 14px}.p2TitleRow h3{margin:0;font-size:20px}.p2Pill{border-radius:999px;background:#edeaff;color:var(--p2-purple);font-size:11px;font-weight:900;padding:7px 10px}
.p2List{display:grid;gap:10px}.p2Row{border:1px solid #e7ebf4;background:#fff;border-radius:18px;padding:14px;display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;text-align:left;color:var(--p2-ink);cursor:pointer}.p2Row .num{width:42px;height:42px;border-radius:13px;background:#eeecff;color:var(--p2-purple);display:grid;place-items:center;font-weight:900}.p2Row b{font-size:15px}.p2Row small{display:block;color:var(--p2-muted);font-size:12px;margin-top:3px}.p2Row .arrow{font-size:22px;color:#66718a}
.p2Video{border-radius:24px;background:linear-gradient(135deg,#17254c,#274fc3 60%,#1a9de2);min-height:230px;color:#fff;display:grid;place-items:center;text-align:center;padding:22px;position:relative;overflow:hidden}.p2Video:after{content:"";position:absolute;width:250px;height:250px;border-radius:50%;right:-70px;bottom:-130px;background:rgba(255,255,255,.07)}.p2Video .play{position:relative;z-index:1;width:78px;height:78px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.18);font-size:33px;border:1px solid rgba(255,255,255,.25)}.p2Video h3{position:relative;z-index:1;margin:12px 0 4px;font-size:23px}.p2Video p{position:relative;z-index:1;margin:0;color:#dde9ff;font-size:13px}.p2Video button{position:relative;z-index:1;margin-top:14px;border:0;border-radius:13px;padding:11px 16px;font-weight:900;color:#24419c;background:#fff;cursor:pointer}.p2Video button[disabled]{opacity:.72;cursor:default}
.p2ChoiceGrid{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:15px}.p2Choice{border:0;border-radius:21px;padding:18px;text-align:left;cursor:pointer}.p2Choice span{font-size:28px}.p2Choice b{display:block;font-size:17px;margin:8px 0 4px}.p2Choice small{color:#66718a;line-height:1.4}.p2Choice.summary{background:linear-gradient(145deg,#eef0ff,#e8e6ff)}.p2Choice.quiz{background:linear-gradient(145deg,#eafff5,#dff8ec)}
.p2Points{counter-reset:p2point;display:grid;gap:10px}.p2Point{border:1px solid #e7ebf4;background:#fff;border-radius:17px;padding:13px 15px;display:grid;grid-template-columns:42px 1fr;gap:12px;align-items:start}.p2Point i{font-style:normal;width:38px;height:38px;border-radius:12px;background:#edeaff;color:var(--p2-purple);display:grid;place-items:center;font-weight:900}.p2Point p{margin:0;line-height:1.55;color:#273554;font-size:14px}.p2DoneBtn{margin:18px 0 6px;width:100%;border:0;border-radius:15px;padding:14px 18px;background:linear-gradient(90deg,#6038ef,#2b7ef0);color:#fff;font-size:15px;font-weight:900;cursor:pointer}
.p2Quiz{max-width:850px;margin:0 auto}.p2QuizTop{display:flex;justify-content:space-between;gap:12px;align-items:center}.p2QuizTop b{font-size:13px}.p2QuizTop strong{color:var(--p2-purple)}.p2QuizProgress{height:9px;background:#e9edf6;border-radius:999px;overflow:hidden;margin:12px 0 24px}.p2QuizProgress i{display:block;height:100%;background:linear-gradient(90deg,#6038ef,#2e8cf3);border-radius:inherit}.p2Quiz h3{font-size:23px;line-height:1.4;margin:0 0 18px}.p2Answers{display:grid;gap:10px}.p2Answer{border:1px solid #e5e9f2;background:#fff;border-radius:16px;padding:14px 15px;text-align:left;font-size:14px;color:#1b2947;cursor:pointer;display:grid;grid-template-columns:36px 1fr;gap:10px;align-items:center}.p2Answer span{width:34px;height:34px;border-radius:10px;background:#f0f2f8;display:grid;place-items:center;font-weight:900}.p2Answer.correct{border-color:#28ba80;background:#effcf6}.p2Answer.wrong{border-color:#ef6676;background:#fff1f3}.p2Feedback{margin-top:12px;border-radius:14px;padding:12px 14px;font-weight:800}.p2Feedback.ok{background:#e9fbf3;color:#087850}.p2Feedback.no{background:#fff0f2;color:#a93446}.p2Next{margin-top:12px;width:100%;border:0;border-radius:14px;padding:13px;background:#5e3aed;color:#fff;font-weight:900;cursor:pointer}
.p2Result{text-align:center;max-width:620px;margin:30px auto;background:#fff;border:1px solid #e7ebf4;border-radius:25px;padding:30px;box-shadow:0 12px 30px rgba(45,60,110,.08)}.p2Result .medal{font-size:54px}.p2Result h3{font-size:26px;margin:8px 0}.p2Score{font-size:54px;font-weight:950;color:var(--p2-purple)}.p2Score small{font-size:20px;color:#7a8398}.p2Result p{color:var(--p2-muted);line-height:1.5}
.p2ScheduleSummary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}.p2Stat{border-radius:20px;padding:17px;background:#fff;border:1px solid #e6eaf4;display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:center}.p2Stat span{font-size:28px}.p2Stat b{font-size:22px}.p2Stat small{display:block;color:var(--p2-muted)}.p2ScheduleSubject{background:#fff;border:1px solid #e6eaf4;border-radius:20px;padding:15px;margin-bottom:12px}.p2ScheduleSubjectHead{display:flex;align-items:center;gap:11px;margin-bottom:10px}.p2ScheduleSubjectHead img{width:46px;height:46px;border-radius:12px;object-fit:cover}.p2ScheduleSubjectHead b{font-size:17px}.p2ScheduleSubjectHead small{display:block;color:var(--p2-muted);margin-top:2px}.p2ScheduleRows{display:grid;gap:8px}.p2ScheduleRow{display:grid;grid-template-columns:34px 1fr auto;gap:10px;align-items:center;background:#f8f9fd;border-radius:13px;padding:10px 11px}.p2ScheduleRow button{width:30px;height:30px;border-radius:9px;border:1px solid #ccd4e4;background:#fff;color:#8791a5;cursor:pointer;font-weight:900}.p2ScheduleRow button.done{background:#19b879;color:#fff;border-color:#19b879}.p2ScheduleRow b{font-size:13px}.p2ScheduleRow small{font-size:11px;color:var(--p2-muted)}.p2ScheduleRow em{font-style:normal;font-size:11px;font-weight:800;color:#7c8497}
.p2FlagCard{padding:0;overflow:hidden}.p2FlagCard img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}.p2FlagCard .flagCopy{padding:14px}.p2FlagCard b{font-size:17px}.p2FlagCard small{margin-top:4px}
.p2ProgressGrid{display:grid;gap:11px}.p2ProgressRow{background:#fff;border:1px solid #e7ebf4;border-radius:18px;padding:14px;display:grid;grid-template-columns:52px 1fr auto;gap:12px;align-items:center}.p2ProgressRow img{width:52px;height:52px;border-radius:13px;object-fit:cover}.p2ProgressRow b{font-size:15px}.p2ProgressRow small{display:block;color:var(--p2-muted);font-size:12px;margin-top:3px}.p2Prog{height:8px;background:#e8edf6;border-radius:999px;overflow:hidden;margin-top:8px}.p2Prog i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#6238ef,#2e8bf2)}.p2ProgressRow strong{color:var(--p2-purple)}
@media(max-width:760px){.p2Overlay{padding:0}.p2App{width:100%;height:100dvh;border-radius:0}.p2Head{padding:13px 12px;grid-template-columns:40px 1fr 40px;gap:9px}.p2Back,.p2Close{width:40px;height:40px;border-radius:12px}.p2HeadCopy h2{font-size:19px}.p2HeadCopy p{font-size:11px}.p2Body{padding:14px}.p2Grid,.p2Grid.four{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.p2Grid.two{grid-template-columns:1fr}.p2Card{border-radius:18px;padding:14px}.p2Card .icon{width:50px;height:50px;font-size:25px;border-radius:15px}.p2Card img.iconImg{width:55px;height:55px}.p2Card b{font-size:15px}.p2Card small{font-size:11.5px}.p2ChoiceGrid{grid-template-columns:1fr 1fr;gap:10px}.p2Choice{padding:14px}.p2Video{min-height:190px}.p2Video h3{font-size:20px}.p2ScheduleSummary{grid-template-columns:1fr 1fr}.p2ScheduleSummary .p2Stat:last-child{grid-column:1/-1}.p2Stat{padding:13px}.p2Stat b{font-size:18px}.p2ScheduleRow{grid-template-columns:32px 1fr}.p2ScheduleRow em{grid-column:2}.p2ProgressRow{grid-template-columns:46px 1fr auto}.p2ProgressRow img{width:46px;height:46px}.p2Quiz h3{font-size:19px}.p2Point{grid-template-columns:36px 1fr;padding:11px}.p2Point i{width:34px;height:34px}}
@media(min-width:761px) and (max-width:1100px){.p2App{width:min(96%,900px);height:min(94dvh,900px);border-radius:26px}.p2Grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1101px){.p2App{border-radius:28px}}

.p2SchedulePicker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.p2SchedulePick{border:1px solid #e4e9f5;background:linear-gradient(180deg,#fff,#f9fbff);border-radius:20px;padding:14px 12px;text-align:center;color:var(--p2-ink);cursor:pointer;box-shadow:0 8px 20px rgba(53,67,120,.06);transition:.18s transform,.18s box-shadow,.18s border-color;min-width:0}.p2SchedulePick:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(53,67,120,.1)}.p2SchedulePick.active{border-color:#7653ef;box-shadow:0 12px 28px rgba(91,53,238,.16);background:linear-gradient(180deg,#f8f5ff,#ffffff)}.p2SchedulePickThumb{width:72px;height:72px;margin:0 auto 10px;border-radius:18px;display:grid;place-items:center;overflow:hidden;box-shadow:0 8px 18px rgba(55,75,125,.08)}.p2SchedulePickThumb img{width:100%;height:100%;object-fit:cover}.p2SchedulePick .tone-1{background:linear-gradient(145deg,#fff0f4,#ffe1e8)}.p2SchedulePick .tone-2{background:linear-gradient(145deg,#effff7,#dbf7ea)}.p2SchedulePick .tone-3{background:linear-gradient(145deg,#fff9ea,#fff0c8)}.p2SchedulePick .tone-4{background:linear-gradient(145deg,#eef7ff,#deefff)}.p2SchedulePick .tone-5{background:linear-gradient(145deg,#f6f0ff,#ebe2ff)}.p2SchedulePick b{display:block;font-size:15px;line-height:1.2}.p2SchedulePick small{display:block;margin-top:4px;color:var(--p2-muted);font-size:11px}.p2PickBar{height:8px;border-radius:999px;background:#e5ebf5;overflow:hidden;margin:10px 0 8px}.p2PickBar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#6038ef,#2e8cf3)}.p2SchedulePick em{display:block;font-style:normal;font-weight:900;font-size:12px;color:var(--p2-purple)}.p2SelectedWrap{padding:18px}.p2ScheduleHint{margin:12px 0 14px;padding:12px 14px;border-radius:14px;background:linear-gradient(145deg,#eef8ff,#f4f0ff);color:#38507e;font-size:13px;line-height:1.5;border:1px solid #e3eafb}.p2ScheduleEmpty{margin-top:4px}.p2ScheduleEmpty b{font-size:20px}@media(max-width:760px){.p2SchedulePicker{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.p2SchedulePick{padding:12px 10px;border-radius:18px}.p2SchedulePickThumb{width:62px;height:62px;border-radius:16px}.p2SchedulePick b{font-size:14px}.p2SchedulePick small{font-size:10.5px}.p2PickBar{height:7px;margin:8px 0 7px}.p2SelectedWrap{padding:14px}.p2ScheduleHint{font-size:12px;padding:11px 12px}}


/* v42-fix5 — hierarchical weekly schedule: Subject → Chapter → Lesson tick */
.p2ScheduleSelected{display:grid;grid-template-columns:82px 1fr;gap:16px;align-items:center;padding:17px 18px;margin-bottom:18px;border-radius:22px;background:linear-gradient(135deg,#eef5ff,#f7f2ff);border:1px solid #e3e8fb}.p2ScheduleSelected img{width:82px;height:96px;object-fit:cover;border-radius:14px;background:#fff;box-shadow:0 8px 18px rgba(42,59,107,.13)}.p2ScheduleSelected small{display:block;font-size:10px;font-weight:900;letter-spacing:.08em;color:#6254db}.p2ScheduleSelected h3{margin:3px 0 4px;font-size:22px}.p2ScheduleSelected p{margin:0;color:var(--p2-muted);font-size:12.5px}.p2SelectedBar{height:9px;margin-top:10px;border-radius:999px;background:#dfe7f3;overflow:hidden}.p2SelectedBar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#5d38ef,#27a0ef)}.p2ScheduleSelected.compact{grid-template-columns:70px 1fr auto}.p2ScheduleSelected.compact img{width:70px;height:82px}.p2ScheduleSelected.compact strong{font-size:22px;color:var(--p2-purple)}
.p2ChapterGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.p2ChapterCard{border:1px solid #e4e9f4;background:#fff;border-radius:19px;padding:14px;display:grid;grid-template-columns:46px 1fr auto;gap:12px;align-items:center;text-align:left;color:var(--p2-ink);cursor:pointer;min-width:0;box-shadow:0 7px 18px rgba(53,67,120,.055)}.p2ChapterCard:hover{border-color:#cfc6fb;box-shadow:0 11px 24px rgba(80,60,180,.10)}.p2ChapterCard.complete{background:linear-gradient(145deg,#f0fff8,#f8fffb);border-color:#c9efdf}.p2ChapterNo{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:#efecff;color:#5b35ee;font-weight:950}.p2ChapterCard b{display:block;font-size:14px;line-height:1.25}.p2ChapterCard small{display:block;color:var(--p2-muted);font-size:11px;margin-top:4px}.p2ChapterCard em{font-style:normal;font-size:11px;font-weight:900;color:#6656d9}.p2ChapterBar{height:7px;border-radius:999px;background:#e6ebf4;overflow:hidden;margin-top:8px}.p2ChapterBar i{display:block;height:100%;background:linear-gradient(90deg,#14bb83,#3ed3a5);border-radius:inherit}
.p2LessonCheckList{display:grid;gap:9px}.p2LessonCheckRow{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 14px;border:1px solid #e5eaf4;border-radius:16px;background:#fff}.p2LessonCheckRow.done{background:linear-gradient(145deg,#effcf6,#fbfffd);border-color:#cfeede}.p2LessonTick{width:40px;height:40px;border-radius:12px;border:1.5px solid #cbd5e4;background:#fff;color:#fff;cursor:pointer;font-size:20px;font-weight:950}.p2LessonTick.done{background:#16b97c;border-color:#16b97c;box-shadow:0 5px 12px rgba(22,185,124,.22)}.p2LessonCheckRow b{display:block;font-size:14px;color:#17223f}.p2LessonCheckRow small{display:block;margin-top:3px;color:var(--p2-muted);font-size:11px}.p2LessonCheckRow em{font-style:normal;font-size:11px;font-weight:850;color:#7a8497}.p2LessonCheckRow.done em{color:#0b8f61}
@media(max-width:760px){.p2ScheduleSelected{grid-template-columns:64px 1fr;padding:13px 14px;gap:12px}.p2ScheduleSelected img{width:64px;height:76px;border-radius:12px}.p2ScheduleSelected h3{font-size:18px}.p2ScheduleSelected.compact{grid-template-columns:58px 1fr auto}.p2ScheduleSelected.compact img{width:58px;height:68px}.p2ScheduleSelected.compact strong{font-size:18px}.p2ChapterGrid{grid-template-columns:1fr}.p2ChapterCard{grid-template-columns:42px 1fr auto;padding:12px}.p2ChapterNo{width:40px;height:40px}.p2LessonCheckRow{grid-template-columns:40px minmax(0,1fr);padding:11px 12px}.p2LessonCheckRow em{grid-column:2}.p2LessonTick{width:38px;height:38px}.p2LessonCheckRow b{font-size:13px}}
