*{box-sizing:border-box}body{margin:0;background:#f6f7f2;color:#263e36;font:16px/1.5 system-ui,sans-serif}header,main{max-width:860px;margin:auto;padding:16px}header,.row,.top,footer{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}header,.top{justify-content:space-between}header{border-bottom:1px solid #d7ded6}a{color:inherit}h1{font-size:2rem;margin:.4em 0}h2{font-size:1.2rem;margin:.2em 0}section,details,article,footer{background:white;border:1px solid #d1dbd2;border-radius:14px;padding:16px;margin:12px 0}.row{margin:10px 0}label{display:block;font-weight:600}button,select,input,textarea{font:inherit;color:inherit;border:1px solid #acbcb0;border-radius:7px;padding:8px;background:white}button,summary{cursor:pointer}button:disabled{opacity:.45}#add,#print,#generate{background:#315849;color:white}input:not([type=checkbox]),textarea,select{max-width:100%;min-width:0}textarea,#title{width:100%}textarea{resize:vertical}summary{font-weight:650}iframe{width:100%;border:0;height:360px}footer{justify-content:space-between}small{flex-basis:100%;color:#55685b}.mathrow{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.token{display:inline-flex;align-items:center;gap:2px;margin:4px 0}.token button{border:0;padding:4px}.stack,.frac{display:inline-flex;vertical-align:middle;flex-direction:column;text-align:center}.stack>:first-child,.frac>:first-child{border-bottom:1.5px solid}.token input{width:6em;padding:4px}.power input:last-child,.power sup{align-self:flex-start;font-size:.78em}.root{border-top:1px solid}.toolbar button{padding:5px 10px}.prompt,.solution{white-space:pre-wrap}.problem svg,.drawing{max-width:100%;height:auto;max-height:190px}.problem table{border-collapse:collapse}.problem td,.problem th{border:1px solid;padding:3px}.problem{overflow-wrap:anywhere}.task{padding:12px 0;border-top:1px solid #cfd8ce;break-inside:avoid}.task h3{margin:0 0 6px}.formula{font:1.2rem Georgia,serif}.formula>*{margin-right:.22em}.space{height:2em}.drawing{display:block;width:220px}.dim input{width:8em}#paper,#key{padding:24px}#key{break-before:page}body.preview main>section,body.preview #generator,body.preview #items,body.preview #add{display:none}[hidden]{display:none!important}@page{size:A4;margin:16mm}@media print{body{background:white;color:black}header,main>:not(#output){display:none!important}main,#output{display:block!important;padding:0;margin:0;max-width:none}#paper,#key{border:0;padding:0;margin:0}.space{height:3em}}
.inline-editor,.inline-preview{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.inline-editor{padding:10px 12px;min-height:5.5rem;border:1px solid #acbcb0;border-radius:8px;background:white}.inline-editor:focus{outline:2px solid #486d59}.formula-atom{display:inline-flex;align-items:center;vertical-align:middle;font:1.18em/1.2 Georgia,serif;margin:0 .08em}.inline-editor .formula-atom{padding:2px 4px;border-radius:3px;background:#eef3ed;cursor:pointer}.formula-atom sup{font-size:.72em}.formula-atom .root{border-top:1px solid}.exam-image{display:block;max-width:100%;max-height:65mm;object-fit:contain;margin:10px 0}dialog{width:min(90vw,22rem);border:1px solid #acbcb0;border-radius:12px;color:inherit}dialog label{margin:.6em 0}dialog input{display:block;width:100%}dialog::backdrop{background:#16352c66}.toolbar button{min-height:38px}
.formula-atom.formula-line{display:flex;width:fit-content;margin:.35em 0}
