/* PEARL Interactive Learning System — isolated from global UI rules */
.pils-wrap{max-width:1160px;margin:36px auto;padding:0 20px}.pils-head{margin-bottom:24px}.pils-head h1{font-size:clamp(1.7rem,4vw,2.7rem);line-height:1.2}.pils-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),1fr));gap:20px}.pils-card,.pils-player,.pils-empty{background:#fff;border:1px solid #e0e7f4;border-radius:20px;padding:25px;box-shadow:0 12px 30px #1120480d}.pils-card h2{font-size:1.25rem}.pils-card a,.pils-link{color:#4b58db}.pils-tag{display:inline-block;background:#edf1ff;color:#4659b9;border-radius:20px;padding:4px 12px;font-weight:750;font-size:.76rem}.pils-player{background:linear-gradient(140deg,#fbfcff,#f2f6ff);min-height:550px}.pils-progress{height:8px;background:#dae2f5;border-radius:100px;overflow:hidden;margin:18px 0 25px}.pils-progress>div{height:100%;background:linear-gradient(90deg,#456de4,#9675ed);transition:width .2s}.pils-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.75fr);gap:25px;align-items:center;min-height:335px}.pils-stage h2{font-size:clamp(1.8rem,3.4vw,3.1rem);line-height:1.17}.pils-points{font-size:clamp(1rem,1.4vw,1.16rem);line-height:1.8;padding-left:22px}.pils-stage img{display:block;width:100%;max-height:320px;object-fit:contain;border-radius:16px}.pils-example{border-radius:14px;padding:18px;background:#e8edff;color:#263e80;white-space:pre-wrap;font-weight:700;overflow-wrap:anywhere}.pils-actions{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;border-top:1px solid #dbe2f2;padding-top:22px;margin-top:25px}.pils-actions button{padding:12px 22px;border-radius:12px;border:1px solid #c5cdea;background:white;font:inherit;cursor:pointer}.pils-actions button[data-next]{background:#465ee3;color:#fff}.pils-actions button:disabled{opacity:.4;cursor:not-allowed}.pils-audio{margin-top:17px}.pils-audio audio{width:100%;max-width:430px}.pils-muted{color:#69768c}.pils-finish{background:#e8faed;padding:14px;border-radius:10px;color:#125b2a;margin:10px 0}@media(max-width:720px){.pils-stage{grid-template-columns:1fr;min-height:0}.pils-player{padding:18px;min-height:0}.pils-stage img{max-height:250px}.pils-actions button{flex:1}}

/* Isolated HTML/ZIP lecture viewer */
.pils-embed-frame{background:#eef3fb;border:1px solid #dfe6f1;border-radius:18px;overflow:hidden;box-shadow:0 14px 40px #102d4b14}
.pils-embed-frame iframe{display:block;width:100%;height:min(85vh,850px);min-height:540px;border:0;background:white}
@media(max-width:700px){.pils-embed-frame{border-radius:10px}.pils-embed-frame iframe{height:80vh;min-height:490px}}