.exam-shell{display:grid;grid-template-columns:220px minmax(0,1fr);gap:32px;margin-top:32px;align-items:start}.exam-summary{position:sticky;top:24px;padding:18px;border:1px solid #ded7ca;border-radius:10px;font-size:.875rem}.exam-summary h2{font-size:1rem}.exam-summary a{display:block;margin:14px 0;overflow-wrap:anywhere}.exam-summary p{margin-top:24px;color:#526075}.exam-paper{background:#fffdf8;border:1px solid #ded7ca;border-radius:12px;padding:clamp(18px,3vw,40px);min-width:0}.exam-context{white-space:pre-wrap;line-height:1.8;margin:20px 0;overflow-wrap:anywhere}.exam-section{font-size:1.4rem;margin:40px 0 24px;scroll-margin-top:32px;border-bottom:1px solid #ded7ca;padding-bottom:16px}.exam-question{border:0;padding:20px 0;margin:16px 0 30px;min-width:0;border-bottom:1px solid #e9e3d8}.exam-question legend{white-space:pre-wrap;font-weight:600;line-height:1.7;font-size:1rem;max-width:100%}.exam-label{display:block;margin-bottom:8px;color:#6f5b2c}.exam-options{display:grid;gap:10px;margin:12px 0}.exam-option{display:flex;gap:14px;align-items:flex-start;padding:14px;border:1px solid #ddd5c7;border-radius:8px;cursor:pointer;line-height:1.6}.exam-option:has(input:checked){background:#f5edda;border-color:#9c7c35}.exam-option input{flex:none;width:20px;height:20px;margin:3px 0;accent-color:#8c6c28}.exam-option span{overflow-wrap:anywhere}.exam-answer{display:grid;gap:8px;margin:12px 0}.exam-answer textarea,.exam-answer input{width:100%;box-sizing:border-box;font:16px/1.65 system-ui;resize:vertical}.exam-question .exam-answer textarea{min-height:150px}.exam-code{white-space:pre-wrap;overflow-wrap:anywhere;background:#f0eee8;color:#152235;border:1px solid #d8d1c2;padding:20px;border-radius:6px;font:13px/1.7 ui-monospace,monospace}.exam-table-scroll{overflow:auto;margin:24px 0;max-width:100%}.exam-table{border-collapse:collapse;width:100%;font-size:.85rem}.exam-table th,.exam-table td{border:1px solid #a8a294;padding:10px;white-space:pre-wrap;min-width:80px;vertical-align:top;line-height:1.5}.exam-table th{background:#f2eee4;text-align:left}.exam-table .exam-answer{margin:0}.exam-table .exam-answer span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.exam-table input{min-width:95px;padding:8px;border:1px solid #aa9461}.exam-diagram{margin:28px 0}.exam-diagram figcaption{display:flex;gap:16px;margin-bottom:12px;align-items:center}.exam-svg svg{display:block;width:100%;height:auto}.exam-diagram-dialog{max-width:96vw;width:1200px;max-height:94vh;overflow:auto;padding:20px;border:1px solid #c5bda9;border-radius:12px}.exam-diagram-dialog::backdrop{background:#141e30bb}.exam-diagram-dialog svg{display:block;width:100%;min-width:700px;height:auto}.exam-submit{display:flex;gap:16px;flex-wrap:wrap;padding-top:24px}.exam-submit [role=status]{width:100%}@media(max-width:1100px){.exam-shell{grid-template-columns:1fr}.exam-summary{position:static;display:flex;gap:12px;flex-wrap:wrap}.exam-summary h2,.exam-summary p{width:100%;margin:0}.exam-summary a{margin:0;font-size:.8rem}}@media(max-width:600px){.exam-paper{border-radius:8px;padding:18px}.exam-question legend{font-size:.95rem}.exam-option{padding:12px;gap:10px}.exam-code{font-size:12px;padding:12px}}

.exam-editor-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin:20px 0}.exam-editor-blocks{display:grid;gap:20px;margin:24px 0}.exam-editor-actions strong{margin-right:auto}.exam-editor-actions input[type=number]{width:90px}.exam-editor-blocks textarea{width:100%;box-sizing:border-box}

.exam-correction{margin-top:18px;padding:18px;border:1px solid #ccb87d;background:#fbf5e5;border-radius:8px}.exam-correction h3{font-size:1rem;margin-bottom:14px}.exam-correction-points{display:flex;flex-wrap:wrap;gap:20px;margin:12px 0}.exam-correction-points label{display:grid;gap:8px;flex:1;min-width:140px}.exam-correction-final{display:grid;gap:20px;width:100%;border-top:2px solid #bca15e;padding:24px 0}.exam-correction-final button{justify-self:start}
