body:has(.pg-app) .site-footer,body:has(.pg-app) .site-header{display:none}.pg-app{max-width:1300px;margin:auto;padding:12px 20px 30px;color:#173858}.pg-app *{box-sizing:border-box}.pg-app header{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:12px}.pg-app h1{font-size:clamp(22px,3vw,33px);margin:5px 0}.pg-app h2{font-size:23px;line-height:1.25}.pg-app header a{font-size:14px}.pg-app header aside{display:flex;flex-direction:column;text-align:right;gap:4px}.pg-app header strong{font-size:24px;color:#69418c;overflow-wrap:anywhere}.pg-app header span{font-size:13px}.pg-card{background:white;border:1px solid #bfd0e2;border-radius:18px;padding:16px;min-width:0}.pg-entry{max-width:880px;margin:20px auto}.pg-entry p,.pg-task p{font-size:17px;line-height:1.4}.pg-names{display:grid;grid-template-columns:1fr 1fr 130px;gap:12px;margin:20px 0}.pg-names label{display:flex;flex-direction:column;gap:6px}.pg-app input,.pg-app select{min-height:44px;padding:8px;font:inherit;min-width:0;border:1px solid #98afc8;border-radius:9px;background:#fffdf6;max-width:100%}.pg-app button{min-height:44px;border:1px solid #a1b6cf;border-bottom:4px solid #8ba5c4;border-radius:10px;background:#edf3fb;color:#173858;font:inherit;font-weight:750;padding:8px 14px;touch-action:manipulation;cursor:pointer}.pg-app button:active:not(:disabled){transform:translateY(2px);border-bottom-width:2px}.pg-app button:disabled{opacity:.55;cursor:default}.pg-app button:focus-visible,.pg-grid:focus-visible{outline:3px solid #9f62bb;outline-offset:3px}.pg-app .pg-primary{background:#245dcb;color:white;border-color:#194691}.pg-entry details{margin-top:18px}.pg-entry summary{cursor:pointer;margin-bottom:8px}.pg-status{position:sticky;top:37px;z-index:5;background:#173858;color:white;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:9px 14px;margin:10px 0}.pg-status button{font-size:13px;min-height:34px;padding:4px 10px}.pg-workspace{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:16px;align-items:start}.pg-board{padding:5px}.pg-grid{display:block;width:100%;height:auto;max-height:calc(100dvh - 180px);min-height:330px;touch-action:none;user-select:none;-webkit-user-select:none}.pg-board>p{text-align:center;font-size:13px;line-height:1.35;margin:3px 10px 10px}.pg-family{color:#227d80;font-weight:800;margin:0;font-size:15px!important}.pg-equation{font-size:35px;background:#eef5ff;border-radius:12px;padding:2px 10px}.pg-equation .katex-display{margin:12px 0}.pg-task h2{margin:12px 0 8px}.pg-task>p{margin:8px 0}.pg-points{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0;max-height:110px;overflow:auto}.pg-points button{font-size:15px;min-height:38px;padding:5px 9px}.pg-feedback{min-height:90px;background:#f1f5fa;border:1px solid #d4dfeb;border-radius:12px;padding:10px;margin:10px 0}.pg-feedback p{margin:5px 0;font-size:16px}.pg-feedback strong{font-size:22px}.pg-feedback.right{color:#145c37;background:#e5f5e9;border-color:#76b88d}.pg-feedback.retry{background:#fff5dd;border-color:#d3b875}.pg-actions{display:flex;gap:8px;flex-wrap:wrap}.pg-curve{stroke-dasharray:1500;stroke-dashoffset:1500;animation:pg-draw 1s ease forwards}@keyframes pg-draw{to{stroke-dashoffset:0}}@media(max-width:700px){.pg-app{padding:10px}.pg-workspace{grid-template-columns:1fr}.pg-grid{max-height:none;min-height:0}.pg-names{grid-template-columns:1fr}.pg-app header strong{font-size:19px}.pg-status{top:0}.pg-app header aside{max-width:45%}}@media(prefers-reduced-motion:reduce){.pg-curve{animation:none;stroke-dashoffset:0}}.pg-star{display:inline-block;margin-right:10px;color:#bd811c;font-size:32px;animation:pg-star .8s ease both}@keyframes pg-star{0%{transform:scale(.1) rotate(-180deg)}65%{transform:scale(1.35) rotate(15deg)}to{transform:scale(1) rotate(0)}}@media(prefers-reduced-motion:reduce){.pg-star{animation:none}}