.ca-question-score{min-width:36px;padding:5px 9px;margin:-5px -9px;border:1px solid #ebd1ac;border-radius:6px;background:#fff8eb;color:#a05d17;font:inherit;font-weight:650;cursor:zoom-in;transition:background .16s,color .16s}
.ca-question-score:hover,.ca-question-score:focus-visible{background:#fff0da;color:#aa5c20;outline:2px solid #ecd1ad;outline-offset:1px}
.answer-preview{position:fixed;z-index:1200;box-sizing:border-box;width:min(440px,calc(100vw - 24px));padding:14px;border:1px solid #e9e0d5;border-radius:14px;background:#fff;box-shadow:0 14px 44px #3b2e202b;color:#443d35;animation:answer-preview-in .16s ease-out}
.answer-preview[hidden],.answer-preview [hidden],.answer-lightbox [hidden]{display:none!important}
.answer-preview header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;font-size:14px}
.answer-preview header>span{flex-shrink:0;background:#fff3e3;border-radius:6px;padding:4px 8px;color:#a45c20;font-size:12px;font-weight:650}
.answer-preview-image{position:relative;display:grid;place-items:center;width:100%;min-height:125px;padding:8px;border:1px solid #eee8df;border-radius:8px;background:#faf9f6;cursor:zoom-in;overflow:hidden}
.answer-preview-image img{display:block;width:100%;max-height:220px;object-fit:contain}
.answer-preview-expand{position:absolute;bottom:8px;right:8px;padding:5px 9px;border-radius:5px;background:#3c3830cf;color:white;font-size:11px}
.answer-preview-error{font-size:13px;color:#9a8b7b}
.answer-lightbox{width:calc(100vw - 48px);height:calc(100dvh - 48px);max-width:none;max-height:none;box-sizing:border-box;padding:0;border:1px solid #e7e0d5;border-radius:16px;background:#faf9f6;color:#443d35;box-shadow:0 24px 90px #0005;overflow:hidden}
.answer-lightbox[open]{display:flex;flex-direction:column}
.answer-lightbox::backdrop{background:#242321bd;backdrop-filter:blur(4px)}
.answer-lightbox-head{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-shrink:0;padding:18px 24px;background:#fff;border-bottom:1px solid #e9e4dc}
.answer-lightbox-head h2{margin:0;font-size:20px;line-height:1.4}
.answer-lightbox-head p{margin:6px 0 0;font-size:13px;color:#8b7e6f;line-height:1.7}
.answer-icon-button:hover{color:#a2531b;background:transparent}
.answer-icon-button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;line-height:1;flex-shrink:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#776b5b;font-size:26px;cursor:pointer}
.answer-lightbox-stage{position:relative;flex:1;min-height:0;padding:24px;display:flex}
.answer-image-viewport{position:relative;flex:1;min-width:0;overflow:auto;display:flex;align-items:center;justify-content:center;touch-action:pan-y;user-select:none}
.answer-full-image{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;background:#fff;box-shadow:0 4px 18px #30291c16}
.answer-image-viewport.is-zoomed{display:block;touch-action:pan-x pan-y}
.answer-step{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:34px;padding:0 12px;border:1px solid #e7e1d8;border-radius:7px;background:#fff;color:#77654e;font-size:22px;cursor:pointer;white-space:nowrap}
.answer-step span{font-size:12px}
.answer-step:hover:not(:disabled),.answer-zoom button:hover{background:#fff0d9;color:#9b531b}
.answer-step:disabled,.answer-zoom button:disabled{opacity:.35;cursor:default}
.answer-lightbox-identity{min-width:0;flex:1}
.answer-lightbox-title-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#answerImagePosition{color:#8c847a;font-size:12px;font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}
.answer-lightbox-tools,.answer-navigation{display:flex;align-items:center;gap:6px}
.answer-lightbox-tools{gap:18px;flex-wrap:wrap}
.answer-paper{width:100%;max-width:1080px;margin:0 auto;box-sizing:border-box;padding:24px 32px;background:#fff;box-shadow:0 4px 18px #30291c16}
.answer-paper-question{padding:0 0 26px;margin-bottom:24px;border-bottom:1px solid #eee8e0}
.answer-paper-question:last-child{border-bottom:0;margin-bottom:0}
.answer-paper-question-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;padding:6px 10px;border:1px solid #eee4d6;border-radius:8px;background:#faf7f1}
.answer-paper-question-number{display:inline-flex;align-items:center;justify-content:center;min-width:38px;max-width:100%;padding:3px 8px;border:1px solid #ebcda4;border-radius:7px;background:#fff0d9;color:#9a4e12;font-size:14px;font-weight:650;line-height:1.35;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.answer-paper-score{display:inline-flex;align-items:baseline;gap:5px;flex-shrink:0;padding:3px 8px;border-radius:7px;background:#fff0d9;color:#aa5515;white-space:nowrap}
.answer-paper-score-label,.answer-paper-score-unit{font-size:11px;font-weight:500;color:#8a623c}
.answer-paper-score strong{font-size:16px;font-weight:650;line-height:1.25;font-variant-numeric:tabular-nums}
.answer-paper-question img{display:block;width:100%;height:auto}
.answer-image-viewport.is-paper{display:block}
.answer-paper-error,.answer-paper-empty{padding:30px;text-align:center;font-size:13px;color:#94836e}
.ca-answer-hint{flex:1;min-width:240px;margin:0;color:#999;font-size:12px;line-height:1.7}
.ca-student-paper{border:0;border-radius:4px;background:none;color:#9c692c;font:inherit;padding:3px 0;cursor:pointer;white-space:nowrap;text-decoration:underline;text-decoration-color:#d5b28a;text-underline-offset:4px}
.ca-student-paper:hover,.ca-student-paper:focus-visible{color:#c57821;text-decoration:underline;text-underline-offset:4px}
.answer-zoom-tools{display:flex;align-items:center;gap:10px;margin-left:auto}
.answer-zoom{display:flex;align-items:center;gap:5px}
.answer-zoom button{display:inline-flex;align-items:center;justify-content:center;line-height:1;min-width:32px;height:32px;padding:0 10px;border:1px solid #e9e0d3;border-radius:6px;background:#fff;color:#78654d;cursor:pointer}
.answer-zoom button[data-answer-action="fit"]{font-size:12px;font-weight:400;color:#858585}
.answer-zoom button[data-answer-action="fit"]:hover{color:#666;background:#f5f4f2}
.answer-lightbox button:focus-visible{outline:2px solid #d7944c;outline-offset:3px}
@keyframes answer-preview-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:800px){.answer-lightbox-head{flex-wrap:wrap;gap:12px}.answer-lightbox-identity{flex-basis:100%}.answer-lightbox-tools{order:3;width:100%;justify-content:space-between;gap:8px}}
@media(max-width:640px){.answer-lightbox{width:100vw;height:100dvh;border-radius:0;border:0}.answer-lightbox-head{padding:12px 16px}.answer-lightbox-head h2{font-size:17px}.answer-lightbox-stage{padding:12px}.answer-step{padding:0 7px}.answer-zoom button{padding:0 7px}.answer-paper{padding:16px}.answer-paper-question-head{padding:6px 8px;gap:8px}.answer-paper-question-number{font-size:14px;padding:3px 8px}.answer-paper-score{padding:3px 8px;gap:5px}.answer-paper-score strong{font-size:16px}.ca-answer-hint{flex-basis:100%;min-width:0}}
@media(prefers-reduced-motion:reduce){.answer-preview{animation:none}.ca-question-score{transition:none}}

#answerLightboxMeta{display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px}
.answer-question-highlight,.answer-score-highlight{display:inline-flex;align-items:baseline;gap:5px;padding:2px 8px;border:1px solid #efcfab;border-radius:5px;background:#fff0d9;color:#9a4e12;white-space:nowrap;font-size:13px;font-weight:650;line-height:1.6}
.answer-score-highlight{font-size:12px;font-weight:500}
.answer-score-highlight strong{font-size:15px;font-weight:700;font-variant-numeric:tabular-nums}
