#openChapterProgress{position:relative;width:100%;margin:0;border:2px solid #d9c8ff;box-shadow:0 7px 0 #b69bdc,0 12px 20px #5b36831a,inset 0 2px 0 #fff;display:flex;flex-direction:column;align-items:center;justify-content:center;font:inherit;color:inherit;cursor:pointer;padding:18px 10px;background:linear-gradient(155deg,#fff,#f2eaff);border-radius:24px;transform:translateY(0);transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease;touch-action:manipulation}
@media(hover:hover){#openChapterProgress:hover{border-color:#b99ae9;background:linear-gradient(155deg,#fff,#eadcff);transform:translateY(-2px);box-shadow:0 9px 0 #b69bdc,0 15px 24px #5b368324,inset 0 2px 0 #fff}}
#openChapterProgress:active{transform:translateY(5px)!important;box-shadow:0 2px 0 #b69bdc,0 4px 8px #5b36831a,inset 0 2px 4px #9270bd14}#openChapterProgress:focus-visible{outline:3px solid #7950e8;outline-offset:5px}.chapter-progress-hint{display:block;margin-top:7px;color:#6f4cb5;font-size:10px;font-weight:700}
@media(prefers-reduced-motion:reduce){#openChapterProgress{transition:none}}
.chapter-progress-meter{position:relative;isolation:isolate;box-sizing:border-box;display:flex;width:100%;height:30px;padding-bottom:6px;margin:14px 0 17px;border-radius:12px;overflow:hidden;background:#e7e9ed;box-shadow:0 0 0 3px #846ea012,0 8px 16px #30354b24}
.chapter-progress-meter::after{content:"";position:absolute;z-index:2;top:2px;bottom:8px;left:50%;width:2px;transform:translateX(-50%);border-radius:2px;background:#ffffffba;pointer-events:none}
.chapter-progress-segment{position:relative;display:block;flex:0 0 auto;height:100%;overflow:hidden}
.chapter-progress-segment::after{content:"";position:absolute;top:4px;left:7px;width:16px;height:8px;border-radius:50%;background:rgba(255,255,255,.43);transform:rotate(-24deg);pointer-events:none}
.chapter-progress-segment.correct{background:linear-gradient(145deg,#55e6a3 0%,#20b978 48%,#098553 100%);box-shadow:0 6px 0 #087148,inset 0 1px 0 #159a65}
.chapter-progress-segment.wrong{background:linear-gradient(145deg,#ff8a98 0%,#ef5268 48%,#c6253d 100%);box-shadow:0 6px 0 #a91d32,inset 0 1px 0 #d33b51}
.chapter-progress-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}
.chapter-progress-stat{display:flex;flex-direction:column;gap:4px;min-width:0;padding-left:10px;border-left:3px solid currentColor;line-height:1.45}
.chapter-progress-stat.correct,.chapter-progress-stat.correct strong{color:#137547}
.chapter-progress-stat.wrong,.chapter-progress-stat.wrong strong{color:#b3263d}
.chapter-progress-row .chapter-progress-stat strong{font-size:14px}
.chapter-progress-stat>span{font-size:11px;color:#70667f}
.chapter-progress-dialog{box-sizing:border-box;width:min(540px,calc(100% - 28px));max-height:85vh;max-height:85dvh;overflow:auto;margin:auto;padding:25px;border:1px solid #e5dcf7;border-radius:25px;background:#fff;color:#272135;font-family:inherit;text-align:left;box-shadow:0 24px 80px #24144040}.chapter-progress-dialog::backdrop{background:#20143199}.chapter-progress-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.chapter-progress-eyebrow{font-size:10px;letter-spacing:1.4px;color:#7950e8;font-weight:800}.chapter-progress-header h2{font-size:26px;margin:7px 0;line-height:1.2}.chapter-progress-dialog button{cursor:pointer;font:inherit}.chapter-progress-close{flex:0 0 44px;width:44px;height:44px;padding:0;margin:0;border:0;border-radius:13px;background:#f3edff;color:#7145c7;font-size:28px!important;box-shadow:none}.chapter-progress-dialog button:focus-visible,.chapter-progress-dialog select:focus-visible{outline:3px solid #7950e8;outline-offset:3px}#chapterProgressDescription,.chapter-progress-footnote{font-size:12px;line-height:1.65;color:#70667f;margin:12px 0}.chapter-progress-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:20px 0 12px}.chapter-progress-controls label{font-size:12px;font-weight:750}.chapter-progress-controls select{width:auto;flex:1;min-width:110px;margin:0;padding:10px;border:1px solid #d9ccef;border-radius:10px;background:#fff;color:#513285;font:inherit;font-size:13px}.chapter-progress-refresh{width:auto;margin:0;padding:11px;border:0;border-radius:10px;background:#f3edff;color:#63409e;font-size:12px!important;font-weight:750;box-shadow:none}.chapter-progress-summary{margin:20px 0;padding:0;border:0;border-radius:0;background:transparent;color:#70667f;font-size:16px;font-weight:800;line-height:1.7;overflow-wrap:anywhere}.chapter-progress-summary-title{display:block;color:#5633a5;font-size:19px;font-weight:900;line-height:1.45;margin-bottom:5px}.chapter-progress-summary-correct{color:#137547}.chapter-progress-summary-wrong{color:#b3263d}.chapter-progress-list{display:grid;gap:12px;margin-top:18px}.chapter-progress-row{padding:15px;border:1px solid #e9e1f5;border-radius:15px;background:#fdfbff}.chapter-progress-row-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.chapter-progress-row h3{min-width:0;margin:0;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.chapter-progress-row strong{flex-shrink:0;color:#7950e8;font-size:18px}.chapter-progress-row progress{display:block;appearance:none;width:100%;height:11px;margin:12px 0 8px;border:0;border-radius:20px;overflow:hidden;background:#eee6fa}.chapter-progress-row progress::-webkit-progress-bar{background:#eee6fa;border-radius:20px}.chapter-progress-row progress::-webkit-progress-value{background:linear-gradient(90deg,#b89af4,#7950e8);border-radius:20px}.chapter-progress-row progress::-moz-progress-bar{background:#7950e8;border-radius:20px}.chapter-progress-row>p{margin:0;font-size:11px;color:#776a8b}.chapter-progress-footnote{margin-top:18px}@media(max-width:370px){.chapter-progress-dialog{padding:18px}.chapter-progress-row{padding:12px}.chapter-progress-header h2{font-size:23px}}
