:root{font-family:Inter,system-ui,sans-serif;color:#1f2937;background:#f7f4ee}*{box-sizing:border-box}body{margin:0}.shell{max-width:1060px;margin:auto;padding:20px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}.brand{font-size:25px;font-weight:800;color:#1d4ed8;text-decoration:none}button{background:#1d4ed8;border:0;border-radius:9px;padding:10px 15px;color:white;font-weight:700;cursor:pointer}button.secondary{background:#e5e7eb;color:#1f2937}button:disabled{opacity:.5}.card{background:white;border:1px solid #e7e5e4;border-radius:16px;padding:22px;box-shadow:0 1px 2px #0000000b;margin-bottom:16px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}.exercise{cursor:pointer}.exercise:hover{border-color:#60a5fa}.chip{font-size:13px;background:#dbeafe;color:#1e40af;padding:4px 8px;border-radius:99px}input,select,textarea{width:100%;margin:6px 0 15px;padding:10px;border:1px solid #cbd5e1;border-radius:8px;font:inherit}label{font-weight:650}.muted{color:#64748b}.error{color:#b91c1c}.success{color:#15803d}.auth{max-width:450px;margin:8vh auto}.tabs{display:flex;gap:8px;margin-bottom:16px}.tabs button{background:#e5e7eb;color:#334155}.tabs button.active{background:#1d4ed8;color:#fff}.notebook{min-height:230px;padding:20px 17px;background-color:#fff;border:1px solid #b8cce4;border-radius:5px;font:25px/31px ui-monospace,SFMono-Regular,monospace;outline:none}.notebook.math{background-image:linear-gradient(#d8e9f8 1px,transparent 1px),linear-gradient(90deg,#d8e9f8 1px,transparent 1px);background-size:31px 31px}.notebook.russian{background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 29px,#9dc4e7 30px,#9dc4e7 31px)}.notebook:focus{box-shadow:0 0 0 3px #bfdbfe}.toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.hint{border-left:4px solid #f59e0b;background:#fffbeb;padding:12px;margin-top:14px}.row{display:flex;gap:12px;align-items:center}.row>*{flex:1}@media(max-width:600px){.shell{padding:14px}.notebook{font-size:20px;line-height:27px;background-size:27px 27px}.row{display:block}}
