/*! P-exam © 2026 สงวนลิขสิทธิ์ ห้ามคัดลอก ดัดแปลง หรือนำไปเผยแพร่โดยไม่ได้รับอนุญาต */:root{--bg:#f2f5fa;--surface:#fff;--surface2:#f6f8fc;--surface3:#eef2f9;--text:#0e1b31;--text2:#41527a;--muted:#7286a6;--line:#e4eaf4;--navy:#0e2c58;--blue:#2b7cf0;--blue-2:#e9f1ff;--green:#12a150;--green-2:#e4f8ed;--orange:#f08c00;--orange-2:#fff2dd;--red:#e04347;--red-2:#fdeaeb;--violet:#7a5af8;--violet-2:#f0ecff;--cyan:#0097a7;--cyan-2:#e0f7fa;--primary:#0e2c58;--onp:#fff;--r:18px;--r2:14px;--r3:11px;--sh1:0 1px 3px rgba(14,44,88,.06);--sh2:0 6px 18px rgba(14,44,88,.08)}[data-theme=dark]{--bg:#080e1a;--surface:#101a2c;--surface2:#152136;--surface3:#1c2b45;--text:#e9eff9;--text2:#b3c2da;--muted:#8397b8;--line:#20304a;--navy:#e9eff9;--blue:#5c9dff;--blue-2:#16263f;--green:#2fcb7c;--green-2:#0f2c1e;--orange:#fbb034;--orange-2:#2f2410;--red:#ff6b70;--red-2:#33171a;--violet:#9d8bff;--violet-2:#1e1a38;--cyan:#26c6da;--cyan-2:#09292d;--primary:#2b7cf0;--onp:#fff;--sh1:0 1px 3px rgba(0,0,0,.2);--sh2:0 6px 18px rgba(0,0,0,.35)}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}body,html{width:100%;min-height:100%;-webkit-text-size-adjust:100%;touch-action:pan-x pan-y}body{margin:0;font-size:15px;line-height:1.55;color:var(--text);-webkit-font-smoothing:antialiased}body.lightbox-open,body.modal-locked{overflow:hidden!important;touch-action:none!important;position:fixed;width:100%;height:100%}h1,h2,h3,h4{margin:0}p{margin:0}button{font:inherit;color:inherit;background:0 0;border:0;cursor:pointer}input,select,textarea{font:inherit;font-size:16px}[hidden]{display:none!important}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-thumb{border-radius:8px}.app{display:grid;grid-template-columns:265px 1fr;width:100%}.sidebar{position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;gap:5px;z-index:20;overflow-y:auto}.brand{display:flex;align-items:center;gap:12px;padding:8px 10px 18px;flex:none;cursor:pointer;border-radius:16px;border:1px solid transparent}.brand:hover{background:var(--surface2);border-color:var(--line)}.brand .logo-wrap{position:relative;width:44px;height:44px;border-radius:14px;flex:none;overflow:hidden;display:grid;place-items:center;color:#fff;background:linear-gradient(140deg,#0e2c58,#2b7cf0)}[data-theme=dark] .brand .logo-wrap{background:linear-gradient(140deg,#2b7cf0,#7a5af8)}.brand .avatar-img{width:100%;height:100%;object-fit:cover;display:block}.brand b{display:block;font-size:16.5px;line-height:1.2;max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.brand span{font-size:11.5px;color:var(--muted);letter-spacing:.2px;display:flex;align-items:center;gap:4px}.brand span i{width:12px;height:12px}.nav{display:flex;align-items:center;gap:12px;width:100%;padding:11px 13px;text-align:left;position:relative;flex:none}.nav svg{width:19px;height:19px;flex:none}.nav:hover{background:var(--surface2);color:var(--text)}.nav .pill{margin-left:auto;font-size:11px;font-weight:600;background:var(--surface3);color:var(--muted);padding:1px 8px;border-radius:20px}.nav.on .pill{background:rgba(255,255,255,.22);color:#fff}.main{width:100%;max-width:1180px;padding:24px 30px calc(120px + env(safe-area-inset-bottom));min-width:0}.topbar{display:flex;align-items:center;gap:12px;margin-bottom:20px;min-height:48px}.topbar .title-block{flex:1;min-width:0}.topbar .sub{color:var(--muted)}.tools{margin-left:auto;display:flex;gap:8px;flex:none}.home-profile-header{display:none;align-items:center;gap:10px;border-radius:14px;cursor:pointer;user-select:none;border:1px solid transparent;max-width:max-content}.home-profile-header:hover{background:var(--surface2);border-color:var(--line)}.hp-avatar-wrap{flex:none;overflow:hidden;display:grid;place-items:center;background:linear-gradient(140deg,#0e2c58,#2b7cf0);color:#fff}.hp-avatar-wrap img{width:100%;height:100%;object-fit:cover;display:block}.hp-info{display:flex;flex-direction:column;min-width:0}.hp-name-row{display:flex;align-items:center;gap:4px}.hp-name-row b{line-height:1.2;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hp-name-row svg{width:15px;height:15px;color:var(--muted);flex:none}.hp-track-badge{font-size:12px;line-height:1.2;margin-top:2px}@media (max-width:980px) and (orientation:portrait){.home-profile-header{display:flex!important}}@media (orientation:landscape){.home-profile-header{display:none!important}}.bottomnav{display:none;position:fixed;inset:auto 0 0 0;z-index:70;background:var(--surface);border-top:1px solid var(--line);padding:6px 2px calc(8px + env(safe-area-inset-bottom));justify-content:space-around}.bn{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:10px;color:var(--muted);padding:6px 2px;flex:1}.bn svg{width:20px;height:20px}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh1);padding:18px;min-width:0}.grid{display:grid;gap:13px}.g2{grid-template-columns:repeat(2,1fr)}.g3{grid-template-columns:repeat(3,1fr)}.g4{grid-template-columns:repeat(4,1fr)}.auto{grid-template-columns:repeat(auto-fill,minmax(228px,1fr))}.row{display:flex;align-items:center;gap:10px}.sp{margin-left:auto}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:11px 17px;font-size:14.5px;background:var(--primary);color:var(--onp);white-space:nowrap}.btn svg{width:17px;height:17px}.btn:disabled{opacity:.4;pointer-events:none}.btn.blue{background:var(--blue)}.btn.green{background:var(--green)}.btn.orange{background:var(--orange)}.btn.red{background:var(--red)}.btn.ghost{color:var(--text);box-shadow:none}.btn.block{width:100%}.btn.lg{padding:15px 22px;font-size:15.5px}.btn.sm{padding:7px 12px;font-size:12.5px;border-radius:10px}.btn.sm svg{width:15px;height:15px}.ib{width:40px;height:40px;display:grid;place-items:center;flex:none}.ib svg{width:18px;height:18px}.ib:hover{color:var(--blue);border-color:var(--blue)}.ib.sm{width:33px;height:33px;border-radius:10px}.ib.sm svg{width:15px;height:15px}.ib.on{color:var(--orange);border-color:var(--orange);background:var(--orange-2)}.ib.star.on{color:#f5a524;border-color:#f5a524;background:#fff6e0}.ib.cut.on{color:var(--red);border-color:var(--red);background:var(--red-2)}.chip{padding:7px 14px;background:var(--surface);border:1px solid var(--line);font-size:13px;color:var(--muted);white-space:nowrap}.chip.on{border-color:transparent;font-weight:500}.chips{display:flex;gap:8px;flex-wrap:wrap}.chips.sc{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}.chips.sc::-webkit-scrollbar{display:none}.tag{font-size:11px;padding:2px 8px;background:var(--surface3);color:var(--muted);display:inline-flex;align-items:center;gap:4px}.tag.b{background:var(--blue-2);color:var(--blue)}.tag.g{background:var(--green-2);color:var(--green)}.tag.o{background:var(--orange-2);color:var(--orange)}.tag.r{background:var(--red-2);color:var(--red)}.field{margin-bottom:13px}.field label{display:block;font-size:12.5px;color:var(--muted);font-weight:500;margin-bottom:5px}.inp{width:100%;padding:11px 13px;border-radius:12px;border:1px solid var(--line);background:var(--surface2);color:var(--text);outline:0}textarea.inp{resize:vertical;min-height:96px;line-height:1.6}#modal .inp{font-size:16px!important;padding:13px 15px!important}#modal textarea.inp{min-height:120px!important;line-height:1.65!important}#modal textarea#f_q{min-height:140px!important}#modal textarea#f_e{min-height:130px!important}#modal .field{margin-bottom:18px!important}.c-select{display:inline-flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px;border-radius:12px;border:1px solid var(--line);background:var(--surface2);color:var(--text);font-size:13.5px;font-weight:500;cursor:pointer}.c-select:hover{border-color:var(--blue);background:var(--surface)}.c-select svg{width:15px;height:15px;color:var(--muted)}.picker-item{display:flex;align-items:center;justify-content:space-between;width:100%;padding:14px 16px;font-size:15px;font-weight:500;color:var(--text);margin-bottom:6px;background:var(--surface2);border:1px solid var(--line);text-align:left}.picker-item:hover{background:var(--blue-2);color:var(--blue);border-color:var(--blue)}.picker-item.on{background:var(--blue-2);color:var(--blue);border-color:var(--blue);font-weight:600}.picker-item .chk{width:22px;height:22px;border-radius:50%;border:2px solid var(--muted);display:grid;place-items:center;color:transparent}.search{display:flex;align-items:center;gap:10px;background:var(--surface);padding:4px 14px}.search svg{width:18px;height:18px;color:var(--muted);flex:none}.search input{flex:1;border:0;background:0 0;outline:0;padding:11px 0;color:var(--text)}.bar{height:8px;border-radius:8px;background:var(--surface3);overflow:hidden}.bar i{display:block;height:100%;border-radius:8px;background-size:100vw 100%;transition:width .25s ease-out}.sec{display:flex;align-items:center;gap:8px;margin:24px 0 12px}.sec svg{width:17px;height:17px;color:var(--muted)}.sec .more{margin-left:auto;font-size:12.5px;font-weight:500;cursor:pointer}.empty{text-align:center;padding:42px 18px;color:var(--muted)}.empty svg{width:34px;height:34px;opacity:.45;margin-bottom:8px}.submit-check-icon{width:80px;height:80px;border-radius:24px;background:var(--blue-2);color:var(--blue);display:grid;place-items:center;margin:0 auto 12px}.submit-check-icon svg{width:42px;height:42px}.week-card{background:var(--surface);border:1px solid var(--line);padding:20px;box-shadow:var(--sh1);display:flex;flex-direction:column;gap:14px}.streak-day-item{display:flex;flex-direction:column;align-items:center;gap:6px;flex:1;cursor:pointer;user-select:none}.mastery-card{background:var(--surface);border:1px solid var(--line);padding:22px;box-shadow:var(--sh1);display:flex;flex-direction:column;gap:18px;margin-top:14px}.qrow{display:flex;flex-direction:column;background:var(--surface);margin-bottom:11px}.qrow-top{display:flex;gap:12px;align-items:flex-start;width:100%}.qrow .no{display:grid;place-items:center;font-weight:700;flex:none}.qrow .body{flex:1;min-width:0}.qrow .qt,.rq{white-space:pre-wrap!important;word-break:break-word!important;line-height:1.65}.qrow .meta{display:flex;gap:6px;margin-top:7px;flex-wrap:wrap}.qrow .side{display:flex;gap:6px;flex:none}.qrow .ansline{color:var(--green);font-weight:600}.q-media-box{width:100%;margin:10px 0 16px;display:flex;flex-direction:column;gap:10px;align-items:center}.q-media-img{width:var(--img-w,240px);max-width:100%;max-height:480px;border-radius:14px;border:1.5px solid var(--line);background:var(--surface2);cursor:pointer;object-fit:contain;display:block;margin:0 auto}.opts-vertical{display:flex;flex-direction:column;gap:12px}.opts-horizontal{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}@media(max-width:560px){.opts-horizontal{grid-template-columns:1fr}}.opts-boxed{display:flex;flex-direction:column;gap:14px}.opt-wrap{position:relative;width:100%;display:flex;flex-direction:column}.opt-text{white-space:pre-wrap!important;word-break:break-word!important;line-height:1.65;display:block}.opt-boxed-text{border:1.5px solid var(--line);padding:14px 16px;background:var(--surface);line-height:1.65;white-space:pre-wrap!important;word-break:break-word!important;display:block;font-family:inherit;font-size:15px;box-shadow:0 1px 3px rgba(0,0,0,.04);width:100%}.opt.on .opt-boxed-text{border-color:var(--blue);background:#fff}.opt.right .opt-boxed-text{border-color:var(--green);background:#fff}.opt.is-cut{opacity:.38!important;filter:grayscale(1);text-decoration:line-through;pointer-events:none!important;background:var(--surface3)!important;border-color:transparent!important}.opt.is-cut *{text-decoration:line-through}.opt-exp-box{display:none!important;margin:4px 0 0 0!important;padding:0 10px!important;border-radius:8px!important;font-size:12.5px!important;line-height:1.45!important;background:var(--surface)!important;border:1px solid var(--line)!important;width:100%!important;box-sizing:border-box!important;white-space:pre-wrap!important;word-break:break-word!important}.opt-exp-box.open{display:block!important}.opt-exp-box div{white-space:pre-wrap!important;word-break:break-word!important}.btn-why-round{position:absolute;top:14px;right:14px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(14,44,88,.08);color:var(--muted);border:1px solid rgba(14,44,88,.12);z-index:5}[data-theme=dark] .btn-why-round{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.15);color:var(--muted)}.btn-why-round.active{background:var(--blue);color:#fff;border-color:var(--blue)}.btn-why-round svg{width:16px;height:16px}.hero{display:flex;gap:22px;align-items:center;position:relative;overflow:hidden}.hero[style*=url]{background-size:cover!important}.stat{display:flex;align-items:center;gap:12px}.stat .ic{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;flex:none}.stat .ic svg{width:21px;height:21px}.stat b{display:block;line-height:1.15}.stat span{color:var(--muted)}.quick{display:flex;flex-direction:column;align-items:center;gap:9px;padding:20px 10px;border-radius:var(--r);background:var(--surface);border:1px solid var(--line);box-shadow:var(--sh1)}.quick:hover{border-color:var(--blue)}.quick .ic{width:50px;height:50px;border-radius:17px;display:grid;place-items:center}.quick .ic svg{width:23px;height:23px}.quick small{font-weight:400;font-size:11.5px;color:var(--muted)}.resume-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:20px;box-shadow:var(--sh1);position:relative;display:flex;flex-direction:column;justify-content:space-between;min-height:190px}.resume-card .top{display:flex;align-items:flex-start;gap:13px}.resume-card .top .ic{width:46px;height:46px;border-radius:15px;background:var(--blue-2);color:var(--blue);display:grid;place-items:center;flex:none}.setcard{padding:16px;border-radius:var(--r);background:var(--surface);border:1px solid var(--line);box-shadow:var(--sh1);display:flex;flex-direction:column;gap:11px}.setcard .ic{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;flex:none}.fab{position:fixed;right:24px;bottom:26px;z-index:65;padding:14px 20px;display:flex;align-items:center;gap:8px}.fab svg{width:18px;height:18px}.fcard{perspective:1600px;height:390px;margin:16px 0 20px;cursor:pointer}.fin{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform .5s cubic-bezier(.2, .8, .2, 1)}.fcard.flip .fin{transform:rotateY(180deg)}.face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;padding:24px;display:flex;flex-direction:column;justify-content:space-between;align-items:center;overflow:hidden;user-select:none;box-sizing:border-box}.front{background:#fffdf5!important;color:#364c84!important;border:1.5px solid rgba(149,177,238,.35)!important;box-shadow:0 16px 36px rgba(54,76,132,.08)!important}.front .tag{background:#95b1ee!important;color:#fff!important;font-weight:700!important;border-radius:20px!important;padding:4px 12px!important;font-size:11.5px!important}.back{background:#364c84!important;color:#fffdf5!important;border:1.5px solid rgba(255,255,255,.1)!important;box-shadow:0 20px 40px rgba(54,76,132,.22)!important;transform:rotateY(180deg)}.back .tag{background:#e7f1a8!important;color:#364c84!important;font-weight:800!important;border-radius:20px!important;padding:4px 12px!important;font-size:11.5px!important}.rtop{display:flex;align-items:center;gap:9px;margin-bottom:12px;flex-wrap:wrap}.timer{display:flex;align-items:center;gap:7px;padding:9px 15px;background:var(--surface);border:1px solid var(--line);font-weight:700;font-variant-numeric:tabular-nums;box-shadow:var(--sh1)}.timer svg{width:16px;height:16px;color:var(--muted)}.timer.warn{background:var(--red-2);color:var(--red);border-color:transparent}.rgrid{display:grid;grid-template-columns:1fr 236px;gap:16px;align-items:start}.rq{line-height:1.65;margin:12px 0 16px}.opt{position:relative;display:flex;flex-direction:column;gap:8px;align-items:flex-start;width:100%;text-align:left;padding:16px 48px 16px 18px;font-size:15.5px;user-select:none;-webkit-user-select:none}.opt:active,.opt:focus{outline:0!important}.opt-header{display:flex;gap:14px;align-items:flex-start;width:100%}.opt .k{width:32px;height:32px;border:1px solid var(--line);display:grid;place-items:center;font-weight:700;font-size:14px;color:var(--muted);flex:none}.opt.on .k{border-color:transparent}.opt.right{background:var(--green-2)!important;border-color:var(--green)!important}.opt.right .k{background:var(--green);color:#fff;border-color:transparent}.opt.bad{background:var(--red-2)!important;border-color:var(--red)!important}.opt.bad .k{background:var(--red);color:#fff;border-color:transparent}.opt:disabled{cursor:default}.fb{padding:18px 20px;font-size:14.5px;line-height:1.7;margin-top:16px}.fb.ok{background:var(--green-2);color:var(--green)}.fb.no{background:var(--red-2);color:var(--red)}.palgrid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;max-height:290px;overflow:auto;padding:2px}.pal{aspect-ratio:1;background:var(--surface3);color:var(--muted);font-size:12.5px;font-weight:600}.pal.cur{outline:2.5px solid var(--text);outline-offset:1px}.legend{display:flex;gap:12px;flex-wrap:wrap;font-size:11px;color:var(--muted);margin:11px 0}.legend i{width:10px;height:10px;border-radius:3px;display:inline-block;margin-right:4px;vertical-align:middle}.rnav{display:flex;gap:9px;margin-top:16px}.rnav .btn{flex:1}.pass-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;font-size:13px;font-weight:600;margin-top:10px}.pass-badge.pass{background:var(--green-2);color:var(--green)}.pass-badge.fail{background:var(--red-2);color:var(--red)}.sring{position:relative;width:196px;height:196px;margin:0 auto}.sring svg{transform:rotate(-90deg);width:196px;height:196px}.sring circle{fill:none;stroke-width:15;stroke-linecap:round}.sring .bgc{stroke:var(--surface3)}.sring .fgc{transition:stroke-dashoffset .8s ease}.sring .txt{position:absolute;inset:0;display:grid;place-content:center;text-align:center}.sring .txt b{line-height:1}.sring .txt span{font-size:13px;color:var(--muted)}.mini{text-align:center;padding:13px 8px}.mini b{display:block;line-height:1.3}.mini span{font-size:11.5px;color:var(--muted)}.part-header{font-size:13px;font-weight:700;color:var(--navy);padding:8px 0 4px;border-bottom:1.5px solid var(--line);margin:10px 0 8px;display:flex;justify-content:space-between}.part-header.p2{margin-top:14px}.crow{display:grid;gap:10px;align-items:center;margin-bottom:8px;font-size:12.5px}.crow .lb{color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.crow .vl{text-align:right;font-weight:600}.hrow{display:flex;align-items:center;gap:11px;padding:12px 10px;border-bottom:1px solid var(--line);cursor:pointer}.hrow:hover{background:var(--surface2)}.hrow:last-child{border-bottom:0}.srow{display:flex;align-items:center;gap:13px;padding:15px 0;border-bottom:1px solid var(--line)}.srow:last-child{border-bottom:0}.srow .ic{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;flex:none}.srow .ic svg{width:18px;height:18px}.srow b{display:block;font-size:14px}.srow small{font-size:11.5px;color:var(--muted)}.sw{width:48px;height:28px;border-radius:20px;position:relative;flex:none;cursor:pointer}.sw i{position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25)}.sw.on i{left:23px}.catrow{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.catrow:last-child{border-bottom:0}.catrow .ic{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;flex:none}.catrow .ic svg{width:20px;height:20px}.mask{position:fixed;inset:0;z-index:120;display:none;align-items:center;justify-content:center;padding:16px;touch-action:none}.mask.on{display:flex}.modal{background:var(--surface);border-radius:22px;width:100%;max-width:680px;max-height:88dvh;display:flex;flex-direction:column;box-shadow:0 20px 40px rgba(0,0,0,.35);overflow:hidden;margin:auto}.mh{display:flex;align-items:center;gap:10px;padding:17px 20px;border-bottom:1px solid var(--line);flex:none}.mb{padding:18px 20px;overflow-y:auto;-webkit-overflow-scrolling:touch;flex:1}.mf{padding:14px 20px calc(14px + env(safe-area-inset-bottom));display:flex;gap:9px;flex:none;border-top:1px solid var(--line)}.mf .btn{flex:1}.toasts{position:fixed;top:calc(16px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:200;display:flex;flex-direction:column;gap:8px;align-items:center}.toast{display:flex;align-items:center;gap:9px;padding:11px 18px;font-size:13.5px}.toast svg{width:17px;height:17px}.toast.ok{background:var(--green);color:#fff}.toast.err{background:var(--red);color:#fff}.img-editor-mask{position:fixed;inset:0;background:rgba(0,0,0,.85);z-index:150;display:none;align-items:center;justify-content:center;padding:14px;touch-action:none}.img-editor-mask.on{display:flex}.img-editor-modal{background:var(--surface);width:100%;max-width:580px;border-radius:20px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 40px rgba(0,0,0,.4)}.img-editor-canvas-wrap{position:relative;width:100%;height:340px;background:#181c24;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none}#imgEditorCanvas{max-width:100%;max-height:100%;display:block}.img-grid{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.img-thumb{width:84px;height:84px;border-radius:12px;object-fit:cover;cursor:pointer;border:1.5px solid var(--line);background:var(--surface2)}.img-preview-box{display:flex;align-items:center;gap:8px;position:relative}.img-preview-box .del-btn{position:absolute;top:-6px;right:-6px;width:22px;height:22px;border-radius:50%;background:var(--red);color:#fff;display:grid;place-items:center;font-size:12.5px}.rte-mask{position:fixed;inset:0;background:rgba(8,16,32,.85);z-index:160;display:none;align-items:center;justify-content:center;padding:14px;touch-action:none}.rte-mask.on{display:flex}.rte-modal{background:var(--surface);width:100%;max-width:680px;height:82dvh;border-radius:24px;display:flex;flex-direction:column;box-shadow:var(--sh2);overflow:hidden;border:1px solid var(--line)}.rte-toolbar{display:flex;gap:6px;flex-wrap:nowrap;overflow-x:auto;padding:10px 14px;background:var(--surface2);border-bottom:1px solid var(--line);align-items:center;scrollbar-width:none;-webkit-overflow-scrolling:touch}.rte-toolbar::-webkit-scrollbar{display:none}.rte-btn{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:var(--surface);border:1px solid var(--line);color:var(--text);cursor:pointer;flex:none}.rte-btn svg{width:17px;height:17px}.rte-sep{width:1px;height:22px;background:var(--line);margin:0 3px;flex:none}.rte-area{padding:20px;flex:1;overflow-y:auto;outline:0;font-size:17px;line-height:1.8;color:var(--text);white-space:pre-wrap;word-break:break-word;-webkit-overflow-scrolling:touch}.rte-area:empty:before{content:attr(placeholder);color:var(--muted);pointer-events:none}.rte-color-palette{display:none;padding:12px 16px;background:var(--surface);border-bottom:1px solid var(--line);flex-wrap:wrap;align-items:center}.rte-color-palette.open{display:flex}.rte-dot{border-radius:50%;cursor:pointer;border:2px solid transparent}.lightbox-mask{position:fixed;inset:0;background:rgba(5,10,20,.95);z-index:999;display:none;align-items:center;justify-content:center;touch-action:none}.lightbox-mask.on{display:flex}.lightbox-container{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:20px}.lightbox-img{max-width:94vw;max-height:86dvh;border-radius:12px;object-fit:contain}.lightbox-close{position:absolute;top:calc(16px + env(safe-area-inset-top));right:18px;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.2);color:#fff;display:grid;place-items:center;cursor:pointer;z-index:1002}.lb-btn{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;background:rgba(255,255,255,.22);color:#fff;display:grid;place-items:center;cursor:pointer;z-index:1001;user-select:none;-webkit-user-select:none}.lb-btn svg{width:24px;height:24px}.lb-prev{left:14px}.lb-next{right:14px}.lb-counter{position:absolute;top:calc(22px + env(safe-area-inset-top));left:20px;color:#fff;font-size:13.5px;font-weight:600;background:rgba(0,0,0,.45);padding:4px 12px;border-radius:20px;letter-spacing:.3px;z-index:1002}@media(max-width:980px){.app{grid-template-columns:1fr}.sidebar{display:none}.bottomnav{display:flex}.main{padding:14px 13px calc(110px + env(safe-area-inset-bottom))}.rgrid{grid-template-columns:1fr}.palette{display:none}}@media (max-width:980px) and (orientation:portrait){.hero{min-height:400px!important;height:auto!important;display:flex!important;flex-direction:column!important;justify-content:space-between!important;align-items:flex-start!important;padding:24px 20px 24px!important;border-radius:22px!important}.hero>div:first-child{width:100%!important}}@media(max-width:720px){.g2,.g3{grid-template-columns:1fr}.g4{grid-template-columns:repeat(2,1fr)}.fcard{height:310px}.modal{max-height:94dvh;border-radius:20px;width:96vw}.rte-modal{height:88dvh;border-radius:20px}}.search-highlight{background-color:#fef08a;color:#1e293b;padding:1px 4px;border-radius:4px;font-weight:700}[data-theme=dark] .search-highlight{background-color:#854d0e;color:#fef08a}#modal,#modal *,#rteMask,#rteMask *{-webkit-backface-visibility:hidden;backface-visibility:hidden}@keyframes runBar{from{width:0%}to{width:100%}}#progBar{animation:runBar 3s linear forwards!important}.math-frac{display:inline-flex;flex-direction:column;vertical-align:middle;text-align:center;font-size:.95em;padding:0 3px}.math-frac span:first-child{border-bottom:1.5px solid currentColor;padding-bottom:1px}.math-frac span:last-child{padding-top:1px}.course-card{position:relative;padding:13px 15px 11px;display:flex;flex-direction:column;gap:7px;overflow:hidden}.course-card-notch{position:absolute;top:-1px;left:50%;transform:translateX(-50%);width:44px;height:11px;background:var(--bg);border-bottom-left-radius:12px;border-bottom-right-radius:12px;z-index:2}.course-top-row{display:flex;justify-content:space-between;align-items:baseline;position:relative;z-index:1}.course-meta-tag{font-size:11px;font-weight:700;display:inline-flex;align-items:center;gap:4px;background:rgba(255,255,255,.75);padding:2px 8px;border-radius:20px;box-shadow:0 1px 3px rgba(0,0,0,.02)}.course-meta-tag .c-num{font-size:12px;font-weight:800}.course-meta-tag .c-sub{color:#64748b;font-weight:600;font-size:10px}.course-batch-badge{text-align:right;line-height:1}.course-batch-badge b{font-size:13.5px;font-weight:850;display:inline-block}.course-batch-badge small{font-size:9.5px;font-weight:700;color:#64748b;margin-left:2px}.course-title-row{margin:1px 0 2px}.course-title-row b{font-size:16.5px;display:block;line-height:1.2}.course-progress-track{height:5px;border-radius:99px;background:rgba(0,0,0,.06);overflow:hidden}[data-theme=dark] .course-progress-track{background:rgba(255,255,255,.12)}.course-progress-fill{height:100%;border-radius:99px;transition:width .35s ease}.course-prog-info{display:flex;justify-content:space-between;font-size:10.5px;font-weight:700;margin-top:2px}.course-prog-info span:first-child{color:#64748b}.course-actions{display:flex;gap:6px;align-items:center;margin-top:3px}.course-btn-play{flex:1;border-radius:12px!important;font-weight:800!important;padding:6px 10px!important;font-size:12.5px!important;display:inline-flex;align-items:center;justify-content:center;gap:5px;box-shadow:0 1px 4px rgba(0,0,0,.03)}[data-theme=dark] .course-btn-play{background:rgba(16,26,44,.85)!important;border-color:rgba(255,255,255,.08)!important}.course-btn-play:active{transform:scale(.97)}.course-icon-btn{width:31px!important;height:31px!important;background:rgba(255,255,255,.75)!important;border:1px solid rgba(0,0,0,.04)!important;border-radius:10px!important;display:grid;place-items:center}[data-theme=dark] .course-icon-btn{background:rgba(16,26,44,.7)!important;border-color:rgba(255,255,255,.08)!important}.course-icon-badge{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:rgba(255,255,255,.85);box-shadow:0 2px 6px rgba(0,0,0,.04);flex-shrink:0}.course-icon-badge svg{width:17px;height:17px}.mastery-item-v2{border:1px solid var(--line);padding:14px 16px;display:flex;flex-direction:column;gap:10px;box-shadow:0 2px 8px rgba(0,0,0,.03)}