@import"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap";:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--font-heading: "Lato", sans-serif;--font-body: "Merriweather", serif;--font-body-light: 300}html,body{width:100%;height:100%}body{margin:0;min-width:320px}#root{width:100%;height:100%}@media (prefers-color-scheme: dark){html{color-scheme:dark}}.page-size-dropdown{position:relative}.page-size-dropdown option{padding:10px;background-color:var(--dropdown-bg, #fff);color:var(--dropdown-text, #333);font-size:14px}.page-size-dropdown:focus{outline:none;border-color:var(--focus-color, #4a90e2);box-shadow:0 0 0 2px #4a90e233}@font-face{font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2) format("woff2"),url(/assets/KaTeX_AMS-Regular-DMm9YOAa.woff) format("woff"),url(/assets/KaTeX_AMS-Regular-DRggAlZN.ttf) format("truetype")}@font-face{font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2) format("woff2"),url(/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff) format("woff"),url(/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf) format("truetype")}@font-face{font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2) format("woff2"),url(/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff) format("woff"),url(/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf) format("truetype")}@font-face{font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2) format("woff2"),url(/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff) format("woff"),url(/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf) format("truetype")}@font-face{font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2) format("woff2"),url(/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff) format("woff"),url(/assets/KaTeX_Fraktur-Regular-CB_wures.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Main-Bold-Cx986IdX.woff2) format("woff2"),url(/assets/KaTeX_Main-Bold-Jm3AIy58.woff) format("woff"),url(/assets/KaTeX_Main-Bold-waoOVXN0.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2) format("woff2"),url(/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff) format("woff"),url(/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2) format("woff2"),url(/assets/KaTeX_Main-Italic-BMLOBm91.woff) format("woff"),url(/assets/KaTeX_Main-Italic-3WenGoN9.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Main-Regular-B22Nviop.woff2) format("woff2"),url(/assets/KaTeX_Main-Regular-Dr94JaBh.woff) format("woff"),url(/assets/KaTeX_Main-Regular-ypZvNtVU.ttf) format("truetype")}@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2) format("woff2"),url(/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff) format("woff"),url(/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf) format("truetype")}@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(/assets/KaTeX_Math-Italic-t53AETM-.woff2) format("woff2"),url(/assets/KaTeX_Math-Italic-DA0__PXp.woff) format("woff"),url(/assets/KaTeX_Math-Italic-flOr_0UB.ttf) format("truetype")}@font-face{font-family:KaTeX_SansSerif;font-style:normal;font-weight:700;src:url(/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff) format("woff"),url(/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf) format("truetype")}@font-face{font-family:KaTeX_SansSerif;font-style:italic;font-weight:400;src:url(/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff) format("woff"),url(/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf) format("truetype")}@font-face{font-family:KaTeX_SansSerif;font-style:normal;font-weight:400;src:url(/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff) format("woff"),url(/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf) format("truetype")}@font-face{font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Script-Regular-D3wIWfF6.woff2) format("woff2"),url(/assets/KaTeX_Script-Regular-D5yQViql.woff) format("woff"),url(/assets/KaTeX_Script-Regular-C5JkGWo-.ttf) format("truetype")}@font-face{font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2) format("woff2"),url(/assets/KaTeX_Size1-Regular-C195tn64.woff) format("woff"),url(/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf) format("truetype")}@font-face{font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2) format("woff2"),url(/assets/KaTeX_Size2-Regular-oD1tc_U0.woff) format("woff"),url(/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf) format("truetype")}@font-face{font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA4oAA4AAAAAHbQAAA3TAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgRQIDgmcDBEICo1oijYBNgIkA14LMgAEIAWJAAeBHAyBHBvbGiMRdnO0IkRRkiYDgr9KsJ1NUAf2kILNxgUmgqIgq1P89vcbIcmsQbRps3vCcXdYOKSWEPEKgZgQkprQQsxIXUgq0DqpGKmIvrgkeVGtEQD9DzAO29fM9jYhxZEsL2FeURH2JN4MIcTdO049NCVdxQ/w9NrSYFEBKTDKpLKfNkCGDc1RwjZLQcm3vqJ2UW9Xfa3tgAHz6ivp6vgC2yD4/6352ndnN0X0TL7seypkjZlMsjmZnf0Mm5Q+JykRWQBKCVCVPbARPXWyQtb5VgLB6Biq7/Uixcj2WGqdI8tGSgkuRG+t910GKP2D7AQH0DB9FMDW/obJZ8giFI3Wg8Cvevz0M+5m0rTh7XDBlvo9Y4vm13EXmfttwI4mBo1EG15fxJhUiCLbiiyCf/ZA6MFAhg3pGIZGdGIVjtPn6UcMk9A/UUr9PhoNsCENw1APAq0gpH73e+M+0ueyHbabc3vkbcdtzcf/fiy+NxQEjf9ud/ELBHAXJ0nk4z+MXH2Ev/kWyV4k7SkvpPc9Qr38F6RPWnM9cN6DJ0AdD1BhtgABtmoRoFCvPsBAumNm6soZG2Gk5GyVTo2sJncSyp0jQTYoR6WDvTwaaEcHsxHfvuWhHA3a6bN7twRKtcGok6NsCi7jYRrM2jExsUFMxMQYuJbMhuWNOumEJy9hi29Dmg5zMp/A5+hhPG19j1vBrq8JTLr8ki5VLPmG/PynJHVul440bxg5xuymHUFPBshC+nA9I1FmwbRBTNHAcik3Oae0cxKoI3MOriM42UrPe51nsaGxJ+WfXubAsP84aabUlQSJ1IiE0iPETLUU4CATgfXSCSpuRFRmCGbO+wSpAnzaeaCYW1VNEysRtuXCEL1kUFUbbtMv3Tilt/1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iTHIkVUco5bnji8m//zL7PKaT1Vl5I6UE609f+gkr6MZKVyKc7zJRmCahLsdlyA5fdQkRSan9LgnnLEyGSkaKJCJog0wAgvepWBt80+1yKln1bMVtCljfNWDueKLsWwaEbBSfSPTEmVRsUcYYMnEjcjeyCZzBXK9E9BYBXLKjOSpUDR+nEV3TFSUdQaz+ot98QxgXwx0GQ+EEUAKB2qZPkQQ0GqFD8UPFMqyaCHM24BZmSGic9EYMagKizOw9Hz50DMrDLrqqLkTAhplMictiCAx5S3BIUQdeJeLnBy2CNtMfz6cV4u8XKoFZQesbf9YZiIERiHjaNodDW6LgcirX/mPnJIkBGDUpTBhSa0EIr38D5hCIszhCM8URGBqImoWjpvpt1ebu/v3Gl3qJfMnNM+9V+kiRFyROTPHQWOcs1dNW94/ukKMPZBvDi55i5CttdeJz84DLngLqjcdwEZ87bFFR8CIG35OAkDVN6VRDZ7aq67NteYqZ2lpT8oYB2CytoBd6VuAx4WgiAsnuj3WohG+LugzXiQRDeM3XYXlULv4dp5VFYC) format("woff2"),url(/assets/KaTeX_Size3-Regular-CTq5MqoE.woff) format("woff"),url(/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf) format("truetype")}@font-face{font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2) format("woff2"),url(/assets/KaTeX_Size4-Regular-BF-4gkZK.woff) format("woff"),url(/assets/KaTeX_Size4-Regular-DWFBv043.ttf) format("truetype")}@font-face{font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2) format("woff2"),url(/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff) format("woff"),url(/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf) format("truetype")}.katex{font: 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;text-indent:0;text-rendering:auto}.katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.katex .katex-version:after{content:"0.16.21"}.katex .katex-mathml{clip:rect(1px,1px,1px,1px);border:0;height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.katex .katex-html>.newline{display:block}.katex .base{position:relative;white-space:nowrap;width:-webkit-min-content;width:-moz-min-content;width:min-content}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .mathsfit,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;display:inline-table;table-layout:fixed}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;position:relative;vertical-align:bottom}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;font-size:1px;min-width:2px;vertical-align:bottom;width:2px}.katex .vbox{align-items:baseline;display:inline-flex;flex-direction:column}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{display:inline-flex;flex-direction:row}.katex .thinbox{max-width:0;width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .clap,.katex .llap,.katex .rlap{position:relative;width:0}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{border:0 solid;display:inline-block;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline{border-bottom-style:dashed;display:inline-block;width:100%}.katex .sqrt>.root{margin-left:.2777777778em;margin-right:-.5555555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.1666666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.6666666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.4566666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.1466666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.7142857143em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.8571428571em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.1428571429em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.2857142857em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.4285714286em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.7142857143em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.0571428571em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.4685714286em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.9628571429em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.5542857143em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.7777777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.8888888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.1111111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.3044444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.7644444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.5833333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.7283333333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.0733333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.4861111111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.4402777778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.7277777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.2893518519em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.4050925926em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.462962963em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.5208333333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.5787037037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.2002314815em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.4398148148em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.2410800386em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.2892960463em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.337512054em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.3857280617em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.4339440694em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.4821600771em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.5785920926em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.6943105111em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.8331726133em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.1996142719em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.2009646302em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.2411575563em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.2813504823em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.3215434084em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.3617363344em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.4019292605em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.4823151125em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.578778135em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.6945337621em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.8336012862em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;display:block;height:inherit;position:absolute;width:100%}.katex svg path{stroke:none}.katex img{border-style:none;max-height:none;max-width:none;min-height:0;min-width:0}.katex .stretchy{display:block;overflow:hidden;position:relative;width:100%}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{overflow:hidden;position:relative;width:100%}.katex .halfarrow-left{left:0;overflow:hidden;position:absolute;width:50.2%}.katex .halfarrow-right{overflow:hidden;position:absolute;right:0;width:50.2%}.katex .brace-left{left:0;overflow:hidden;position:absolute;width:25.1%}.katex .brace-center{left:25%;overflow:hidden;position:absolute;width:50%}.katex .brace-right{overflow:hidden;position:absolute;right:0;width:25.1%}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{border:.04em solid;box-sizing:border-box}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{border-right:.049em solid;border-top:.049em solid;box-sizing:border-box;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;left:calc(50% + .3em);position:absolute;text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{padding-left:2em;text-align:left}body{counter-reset:katexEqnNo mmlEqnNo}:root{--primary-color: #4361ee;--primary-hover: #3a56d4;--text-color: #1f2937;--text-secondary: #4b5563;--background-color: #f9fafb;--card-background: #ffffff;--border-color: #e5e7eb;--input-background: #ffffff;--input-border: #d1d5db;--input-focus-border: #a5b4fc;--success-color: #10b981;--error-color: #ef4444;--button-text: #ffffff;--header-color: #111827;--section-border: #f3f4f6;--shadow: rgba(0, 0, 0, .05);--highlight: #f5f7ff;--accent: #3b82f6;--formula-light-primary: #2563EB;--formula-light-hover: #3A56D4;--formula-light-background: #F0F7FF;--formula-light-highlight: #F5F7FF;--formula-light-card: #FFFFFF;--formula-light-border: #E5E7EB;--formula-light-accent: #3B82F6;--formula-light-preview: #F0F7FF;--table-light-primary: #D97757;--table-light-hover: #C55F3E;--table-light-background: #FDF1EC;--table-light-highlight: #FEF6F1;--table-light-card: #FFFFFF;--table-light-border: #F0D9D0;--table-light-accent: #ED8A65;--table-light-preview: #FDF1EC;--space-1: .25rem;--space-2: .5rem;--space-3: 1rem;--space-4: 1.5rem;--space-5: 2rem;--space-6: 3rem;--font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;--font-size-xs: .75rem;--font-size-sm: .875rem;--font-size-base: 1rem;--font-size-lg: 1.125rem;--font-size-xl: 1.25rem;--font-size-2xl: 1.5rem;--font-size-3xl: 1.875rem;--radius-sm: .25rem;--radius-md: .375rem;--radius-lg: .5rem;--radius-xl: .75rem;--transition-fast: .15s ease;--transition-normal: .25s ease;--transition-slow: .5s ease;--dark-formula-background: #111827;--dark-formula-card: #1f2937;--dark-formula-highlight: #273252;--dark-formula-primary: #6B7BFF;--dark-formula-hover: #6366F1;--dark-formula-border: #374151;--dark-formula-accent: #818CF8;--dark-formula-preview: #1C2434;--dark-formula-page: #2A3548;--dark-table-background: #1F1A1A;--dark-table-card: #252020;--dark-table-highlight: #332B29;--dark-table-border: #4A3E3A;--dark-table-primary: #D97757;--dark-table-hover: #C55F3E;--dark-table-accent: #F7B89E;--dark-table-preview: #1A1717;--dark-table-page: #2E2726;--katex-variable-multiplier: 1.25;--katex-formula-multiplier: 1.5;--katex-base-ratio: 1.21}.app{--primary-color: var(--formula-light-primary);--primary-hover: var(--formula-light-hover);--background-color: var(--formula-light-background);--highlight: var(--formula-light-highlight);--card-background: var(--formula-light-card);--border-color: var(--formula-light-border);--accent: var(--formula-light-accent);--preview-background: var(--formula-light-preview);--book-page-background: #FFFFFF}.table-mode{--primary-color: var(--table-light-primary);--primary-hover: var(--table-light-hover);--background-color: var(--table-light-background);--highlight: var(--table-light-highlight);--card-background: var(--table-light-card);--border-color: var(--table-light-border);--accent: var(--table-light-accent);--preview-background: var(--table-light-preview);--book-page-background: #FFFFFF}.dark-mode{--primary-color: var(--dark-formula-primary);--primary-hover: var(--dark-formula-hover);--text-color: #f3f4f6;--text-secondary: #d1d5db;--background-color: var(--dark-formula-background);--card-background: var(--dark-formula-card);--border-color: var(--dark-formula-border);--input-background: #374151;--input-border: #4b5563;--input-focus-border: var(--dark-formula-primary);--success-color: #34d399;--error-color: #f87171;--button-text: #ffffff;--header-color: #f9fafb;--section-border: var(--dark-formula-border);--shadow: rgba(0, 0, 0, .3);--highlight: var(--dark-formula-highlight);--accent: var(--dark-formula-accent);--preview-background: var(--dark-formula-preview);--book-page-background: var(--dark-formula-page)}.dark-mode.table-mode{--primary-color: var(--dark-table-primary);--primary-hover: var(--dark-table-hover);--background-color: var(--dark-table-background);--card-background: var(--dark-table-card);--highlight: var(--dark-table-highlight);--border-color: var(--dark-table-border);--section-border: var(--dark-table-border);--input-border: var(--dark-table-border);--input-background: var(--dark-table-highlight);--input-focus-border: var(--dark-table-accent);--accent: var(--dark-table-accent);--preview-background: var(--dark-table-preview);--book-page-background: var(--dark-table-page)}*{margin:0;padding:0;box-sizing:border-box}body{font-family:var(--font-family);line-height:1.6;font-size:var(--font-size-base);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}.app{height:100vh;max-height:100vh;overflow:hidden;display:flex;flex-direction:column;color:var(--text-color);background-color:var(--background-color);transition:all var(--transition-normal)}header{padding:var(--space-3) var(--space-4);text-align:center;border-bottom:1px solid var(--section-border);background-color:var(--card-background);box-shadow:0 1px 3px var(--shadow)}.app-tagline{color:var(--text-secondary);font-size:var(--font-size-sm);margin-top:var(--space-1)}main{flex:1;display:flex;overflow:hidden;height:calc(100vh - 7.25rem)}.input-section{width:40%;height:100%;display:flex;flex-direction:column;overflow:hidden;border-right:1px solid var(--section-border)}.input-section-content{flex:1;overflow-y:auto;padding:var(--space-4);background-color:var(--card-background)}.templates-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:var(--space-3);width:100%}.templates-list::-webkit-scrollbar{width:6px}.templates-list::-webkit-scrollbar-thumb{background-color:var(--primary-color);border-radius:4px}.templates-list::-webkit-scrollbar-track{background-color:var(--card-background);border-radius:4px}.template-item{display:flex;flex-direction:column;padding:var(--space-3);border:1px solid var(--border-color);border-radius:var(--radius-md);background-color:var(--input-background);cursor:pointer;transition:all var(--transition-fast);text-align:left;overflow:hidden;height:100%}.template-item:hover{border-color:var(--primary-color);background-color:var(--highlight);transform:translateY(-2px);box-shadow:0 4px 8px var(--shadow)}.template-name{font-weight:600;margin-bottom:var(--space-2);color:var(--primary-color);font-size:var(--font-size-sm);word-wrap:break-word;overflow-wrap:break-word}.template-preview{font-size:.9em;overflow:hidden;text-overflow:ellipsis;padding:var(--space-1) 0;border-top:1px dashed var(--border-color);padding-top:var(--space-2);margin-top:var(--space-1);color:var(--text-color)}.template-preview .katex,.template-preview .katex .katex-html,.dark-mode .template-preview .katex,.dark-mode .template-preview .katex-html{color:var(--text-color)}.preview-section{width:60%;height:100%;display:flex;flex-direction:column;padding:var(--space-4);background-color:var(--card-background)}.preview-container{flex:1;display:flex;justify-content:center;align-items:center;padding:var(--space-3);border:1px solid var(--section-border);border-radius:var(--radius-lg);background-color:var(--preview-background);overflow:hidden;box-shadow:inset 0 1px 3px var(--shadow);margin-bottom:var(--space-3);transition:all var(--transition-normal);position:relative;min-height:600px;height:100%;width:100%;box-sizing:border-box}.book-page-preview-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;transition:all .3s ease}.book-page{position:relative;background-color:var(--book-page-background);box-shadow:0 4px 12px var(--shadow);overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.2) transparent}.book-page::-webkit-scrollbar{width:6px}.book-page::-webkit-scrollbar-thumb{background-color:#0003;border-radius:3px}.book-page::-webkit-scrollbar-track{background:transparent}.color-presets{margin-bottom:var(--space-4)}.preset-buttons{display:flex;gap:var(--space-2);margin-top:var(--space-2)}.preset-button{width:36px;height:36px;border-radius:var(--radius-md);border:2px solid transparent;cursor:pointer;position:relative;transition:all var(--transition-fast);display:flex;align-items:center;justify-content:center}.preset-button:hover{transform:scale(1.05)}.preset-button.active{box-shadow:0 0 0 2px var(--primary-color)}.check-mark{font-weight:700;font-size:14px}.advanced-config-toggle{margin-bottom:var(--space-4)}.toggle-advanced-btn{width:100%;background-color:var(--highlight);border:1px solid var(--border-color);border-radius:var(--radius-md);padding:var(--space-2) var(--space-3);color:var(--text-color);font-size:var(--font-size-sm);cursor:pointer;transition:all var(--transition-fast);display:flex;justify-content:space-between;align-items:center}.toggle-advanced-btn:hover{background-color:var(--primary-color);color:var(--button-text)}.toggle-icon{font-size:10px;transition:transform var(--transition-fast)}.toggle-icon.open{transform:rotate(180deg)}.advanced-config-panel{border:1px solid var(--border-color);border-radius:var(--radius-md);padding:var(--space-3);margin-bottom:var(--space-4);background-color:var(--input-background);overflow:hidden;transition:all var(--transition-normal)}.advanced-config-panel.visible{max-height:1000px;opacity:1;animation:fadeIn var(--transition-fast) forwards}.advanced-config-panel.hidden{max-height:0;padding:0;margin:0;opacity:0;border:none}.formula-toolbar{background-color:var(--highlight);border-bottom:2px solid var(--primary-color);position:relative;z-index:10;overflow:hidden;transition:all .6s cubic-bezier(.16,1,.3,1);max-height:1000px}.toolbar-collapsed{max-height:56px;border-bottom-width:1px;border-bottom-color:var(--border-color)}.toolbar-header{cursor:pointer;padding:var(--space-2) var(--space-3)}.toolbar-toggle-btn{background:none;border:none;color:var(--primary-color);cursor:pointer;width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;padding:0;transition:background-color var(--transition-fast)}.toolbar-toggle-btn:hover{background-color:#0000000d}.toolbar-toggle-btn:focus{outline:none;box-shadow:0 0 0 2px var(--primary-color)}.toolbar-tabs{display:flex;padding-bottom:var(--space-1);border-bottom:1px solid var(--section-border);overflow-x:auto;scrollbar-width:thin;scrollbar-color:var(--primary-color) var(--card-background);transition:opacity .25s ease}.toolbar-tabs::-webkit-scrollbar{height:4px}.toolbar-tabs::-webkit-scrollbar-thumb{background-color:var(--primary-color);border-radius:4px}.toolbar-tabs::-webkit-scrollbar-track{background-color:var(--card-background)}.toolbar-tab{padding:var(--space-2) var(--space-3);background:none;border:none;font-size:var(--font-size-sm);color:var(--text-color);cursor:pointer;white-space:nowrap;transition:all var(--transition-fast);border-radius:var(--radius-md) var(--radius-md) 0 0;margin-right:2px;opacity:.75;font-weight:500}.toolbar-tab.active{background-color:var(--card-background);border:1px solid var(--section-border);border-bottom:none;color:var(--primary-color);opacity:1;position:relative;z-index:2}.toolbar-tab:hover{opacity:1;color:var(--primary-color)}.toolbar-content{padding:0;background-color:var(--card-background);border-radius:0 0 var(--radius-md) var(--radius-md);display:flex;flex-direction:column;transform-origin:top;transition:transform .8s cubic-bezier(.16,1,.3,1),opacity .8s cubic-bezier(.16,1,.3,1),max-height .9s cubic-bezier(.16,1,.3,1);max-height:800px;overflow:hidden}.toolbar-collapsed .toolbar-content{opacity:0;transform:translateY(-10px);pointer-events:none;max-height:0}.toolbar-panel{padding:var(--space-3);min-height:90px;transition:transform .8s cubic-bezier(.16,1,.3,1),opacity .8s cubic-bezier(.16,1,.3,1)}@keyframes slideDown{0%{transform:translateY(-20px);opacity:0;max-height:0}to{transform:translateY(0);opacity:1;max-height:800px}}@keyframes slideUp{0%{transform:translateY(0);opacity:1;max-height:800px}to{transform:translateY(-20px);opacity:0;max-height:0}}.toolbar-expanding .toolbar-content{animation:slideDown .9s cubic-bezier(.16,1,.3,1) forwards}.toolbar-collapsing .toolbar-content{animation:slideUp .8s cubic-bezier(.16,1,.3,1) forwards}.toolbar-search{margin-bottom:var(--space-2);position:relative}.toolbar-search input{width:100%;padding:var(--space-2) var(--space-3);padding-left:2.2rem;border:1px solid var(--input-border);border-radius:var(--radius-md);background-color:var(--input-background);font-size:var(--font-size-sm);color:var(--text-color)}.toolbar-search-icon{position:absolute;left:.7rem;top:50%;transform:translateY(-50%);color:var(--text-secondary);opacity:.7}.symbols-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(40px,1fr));gap:var(--space-2);margin-top:var(--space-2)}.symbol-button{display:flex;align-items:center;justify-content:center;height:40px;padding:var(--space-1) var(--space-2);border:1px solid var(--border-color);border-radius:var(--radius-sm);background-color:var(--input-background);color:var(--text-color);font-size:var(--font-size-base);cursor:pointer;transition:all var(--transition-fast);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.symbol-button-with-text{grid-column:span 2;justify-content:flex-start;padding-left:var(--space-2)}.symbol-button:hover{background-color:var(--highlight);border-color:var(--primary-color);color:var(--primary-color);transform:translateY(-1px);box-shadow:0 2px 4px #0000001a}.function-grid{grid-template-columns:repeat(auto-fill,minmax(80px,1fr))}.finance-formula-grid{display:grid;grid-template-columns:1fr;gap:var(--space-3);overflow-y:auto;padding:var(--space-1);max-height:300px}.finance-formula-item{display:flex;flex-direction:column;padding:var(--space-3);border:1px solid var(--border-color);border-radius:var(--radius-md);background-color:var(--input-background);cursor:pointer;transition:all var(--transition-fast);text-align:left;overflow:hidden}.finance-formula-item:hover{border-color:var(--primary-color);background-color:var(--highlight);transform:translateY(-2px);box-shadow:0 2px 4px var(--shadow)}.finance-formula-name{font-weight:500;margin-bottom:var(--space-2);color:var(--primary-color);font-size:var(--font-size-base)}.finance-formula-preview{overflow:hidden;text-overflow:ellipsis;font-size:.9em;padding:var(--space-1) 0}.finance-formula-grid::-webkit-scrollbar{width:6px}.finance-formula-grid::-webkit-scrollbar-thumb{background-color:var(--primary-color);border-radius:4px}.finance-formula-grid::-webkit-scrollbar-track{background-color:var(--card-background);border-radius:4px}.structure-grid{grid-template-columns:repeat(auto-fill,minmax(60px,1fr))}.most-used-grid{grid-template-columns:repeat(auto-fill,minmax(50px,1fr));margin-bottom:var(--space-3)}.most-used-heading{margin-bottom:var(--space-2);font-size:var(--font-size-sm);color:var(--primary-color);font-weight:600}.form-group{margin-bottom:var(--space-3);position:relative}.form-row{display:flex;gap:var(--space-3);margin-bottom:var(--space-3)}.form-row .form-group{flex:1;margin-bottom:0}label{display:block;margin-bottom:var(--space-2);font-weight:500;color:var(--header-color);font-size:var(--font-size-sm)}input,textarea{width:100%;padding:.75rem;border:1px solid var(--input-border);border-radius:var(--radius-md);background-color:var(--input-background);color:var(--text-color);font-size:var(--font-size-base);font-family:var(--font-family);transition:all var(--transition-fast);box-shadow:0 1px 2px var(--shadow)}input.error,textarea.error{border-color:var(--error-color);background-color:#ef44440d}.input-error{color:var(--error-color);font-size:var(--font-size-sm);margin-top:var(--space-1)}input[type=number]{position:relative;-moz-appearance:textfield}input[type=number]::-webkit-outer-spin-button,input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin:0}.number-input-wrapper{position:relative}.number-input-container{position:relative;display:flex;align-items:center;width:100%;max-width:160px;border-radius:var(--radius-md);overflow:hidden;border:1px solid var(--input-border);background-color:var(--input-background);transition:all var(--transition-fast)}.number-input-container:focus-within{border-color:var(--input-focus-border);box-shadow:0 0 0 3px #818cf81a}.number-input-buttons{display:flex;flex-direction:column;height:100%;border-left:1px solid var(--input-border);background-color:var(--highlight)}.number-up,.number-down{height:18px;width:28px;display:flex;align-items:center;justify-content:center;background:transparent;color:var(--text-secondary);border:none;cursor:pointer;transition:all var(--transition-fast);padding:0;margin:0;font-size:14px}.number-up{border-bottom:1px solid var(--input-border)}.number-up:hover,.number-down:hover{background-color:var(--primary-color);color:var(--button-text)}.number-up:active,.number-down:active{background-color:var(--primary-hover);color:var(--button-text)}.number-input-container input[type=number]{border:none;box-shadow:none;height:38px;padding:0 .5rem;flex:1;border-radius:0}.number-input-container input[type=number]:focus{outline:none;border:none;box-shadow:none}input:focus,textarea:focus{outline:none;border-color:var(--input-focus-border);box-shadow:0 0 0 3px #818cf81a}textarea{min-height:80px;resize:vertical;line-height:1.5}.formula-live-preview,.variables-live-preview{margin-top:var(--space-2);padding:var(--space-3);background-color:var(--highlight);border-radius:var(--radius-md);border:1px solid var(--border-color)}.formula-live-preview h5,.variables-live-preview h5{margin:0 0 var(--space-2) 0;font-size:var(--font-size-sm);color:var(--primary-color);font-weight:600}.formula-live-preview .katex-display{margin:.5em 0;overflow-x:auto;overflow-y:hidden;padding:var(--space-2)}.variables-preview-content{padding:var(--space-2)}.variables-preview-content .variables-container{margin-bottom:.5rem}.variables-preview-content .variable-definition{display:flex;align-items:baseline;gap:.5rem}.preview-section h3{margin-bottom:var(--space-3);color:var(--header-color);font-size:var(--font-size-lg);font-weight:600;letter-spacing:-.01em}.theme-toggle{background-color:var(--highlight);border:1px solid var(--border-color);padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);color:var(--text-color);font-size:var(--font-size-sm);font-weight:500;cursor:pointer;transition:all var(--transition-fast);width:100%}.theme-toggle:hover{background-color:var(--primary-color);color:#fff;transform:translateY(-1px)}.generate-btn{display:flex;align-items:center;justify-content:center;width:100%;padding:var(--space-3);background-color:var(--primary-color);color:var(--button-text);border:none;border-radius:var(--radius-md);font-size:var(--font-size-base);font-weight:600;cursor:pointer;transition:all var(--transition-normal);margin-top:var(--space-4);box-shadow:0 2px 4px #0000001a;position:relative}.generate-btn:not(.disabled):hover{background-color:var(--primary-hover);transform:translateY(-1px);box-shadow:0 4px 8px #00000026}.generate-btn.disabled{background-color:var(--border-color);color:var(--text-secondary);cursor:not-allowed;opacity:.7}.generate-btn.generating{background-color:var(--primary-hover);cursor:wait}.spinner{display:inline-block;width:18px;height:18px;border:2px solid rgba(255,255,255,.3);border-radius:50%;border-top-color:#fff;animation:spin 1s linear infinite;margin-right:var(--space-2)}@keyframes spin{to{transform:rotate(360deg)}}.file-size{margin-top:var(--space-3);text-align:center;font-size:var(--font-size-sm);color:var(--text-secondary)}.callout-box{margin:0 auto;transition:all var(--transition-normal);box-shadow:0 4px 12px var(--shadow)}.formula-container{position:relative;display:flex;flex-direction:column}.formula-container.no-variables{margin-bottom:0;padding-bottom:0;border-bottom:none}.formula-container .katex{font-size:calc(1.1em * var(--katex-formula-multiplier))}.katex-formula{display:flex;align-items:center;justify-content:center}.katex-display{width:100%;text-align:center}.formula-heading+.katex-formula{margin-top:.5rem}.dark-mode-preview .formula-container .katex,.dark-mode-preview .formula-container .katex-html{color:#e9eef5}.dark-mode-preview[style*="background-color: #FFFFFF"] .formula-container .katex,.dark-mode-preview[style*="background-color: #F5F5F5"] .formula-container .katex{color:#1e1e1e}.dark-mode-preview .variable-name .katex{color:inherit}.variables-container{font-size:.9em;line-height:1.6}.variable-name{font-weight:600;display:block;text-align:left;padding-left:.5rem}.variable-name .katex{font-size:calc(1em * var(--katex-variable-multiplier))}.variables-container .katex{font-size:var(--variable-katex-base-size, calc(1em * var(--katex-variable-multiplier)))}.dark-mode-var .katex{color:inherit!important}.dark-mode-preview[style*="background-color: #FFFFFF"] .variable-name .katex,.dark-mode-preview[style*="background-color: #F5F5F5"] .variable-name .katex{color:#1e1e1e!important}.variable-description{font-weight:400;position:relative;padding-left:.5rem}.variables-container{display:grid;grid-template-columns:minmax(3.5rem,auto) 1fr;grid-column-gap:1.5rem;align-items:baseline;row-gap:.4rem}.variable-definition{display:contents}.variable-name{font-weight:600;min-width:2.5rem;margin-right:.5rem;display:inline-block;text-align:left;width:auto;padding-left:.5rem}.variable-description{font-weight:400;position:relative;margin-left:0}footer{padding:var(--space-2);text-align:center;font-size:var(--font-size-xs);color:var(--text-secondary);border-top:1px solid var(--section-border);background-color:var(--card-background)}.footer-text{font-size:var(--font-size-xs)}.logo{font-size:var(--font-size-xl);font-weight:700;letter-spacing:-.02em;color:var(--header-color);display:inline-flex;align-items:center;gap:var(--space-1)}.logo-symbol{color:var(--accent);font-size:1.2em;margin-right:var(--space-1)}.logo-accent{color:var(--primary-color)}header .logo{font-size:var(--font-size-2xl);margin-bottom:var(--space-1)}.footer-content{display:flex;justify-content:center;align-items:center}.footer-content p{display:flex;align-items:center;gap:var(--space-2)}.footer-divider{color:var(--border-color);margin:0 var(--space-2)}.color-input-group{display:flex;gap:var(--space-2);align-items:center}.color-preview{width:36px;height:36px;border-radius:var(--radius-md);border:1px solid var(--input-border);cursor:pointer;box-shadow:0 1px 2px var(--shadow);transition:all var(--transition-fast)}.color-preview:hover{transform:scale(1.05);border-color:var(--primary-color)}.hex-input{flex:1;min-width:85px}.color-picker{position:relative}.color-picker-popover{position:absolute;z-index:100;top:calc(100% + 10px);box-shadow:0 10px 25px #00000026;border-radius:var(--radius-md);overflow:hidden}.color-picker-cover{position:fixed;top:0;left:0;right:0;bottom:0}.tooltip{position:fixed;bottom:20px;left:50%;transform:translate(-50%);background-color:#000000b3;color:#fff;padding:8px 16px;border-radius:4px;font-size:var(--font-size-sm);z-index:1000;animation:fadeInUp .3s ease forwards}.feedback-message{position:fixed;top:20px;left:50%;transform:translate(-50%);padding:12px 20px;border-radius:var(--radius-md);font-size:var(--font-size-sm);font-weight:500;z-index:1000;box-shadow:0 4px 12px #00000026;animation:fadeInDown .3s ease forwards;display:flex;align-items:center}.feedback-message.success{background-color:var(--success-color);color:#fff}.feedback-message.error{background-color:var(--error-color);color:#fff}@keyframes fadeInUp{0%{opacity:0;transform:translate(-50%,20px)}to{opacity:1;transform:translate(-50%)}}@keyframes fadeInDown{0%{opacity:0;transform:translate(-50%,-20px)}to{opacity:1;transform:translate(-50%)}}@keyframes fadeIn{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}.fade-in{animation:fadeIn var(--transition-fast) forwards}@media (max-width: 1200px){.input-section{width:45%}.preview-section{width:55%}.symbols-grid{grid-template-columns:repeat(auto-fill,minmax(36px,1fr))}.function-grid{grid-template-columns:repeat(auto-fill,minmax(70px,1fr))}.finance-grid{grid-template-columns:repeat(auto-fill,minmax(100px,1fr))}.templates-list{grid-template-columns:1fr}}@media (max-width: 992px){main{flex-direction:column;overflow-y:auto}.input-section,.preview-section{width:100%;height:auto;max-height:none;border-right:none}.input-section{border-bottom:1px solid var(--section-border)}.preview-container{height:600px;min-height:600px}.book-page-preview-container{height:100%!important}}.katex-formula .katex{font-size:var(--formula-katex-base-size, calc(1.1em * var(--katex-formula-multiplier)))}.katex-formula .katex-display{margin:.8em 0!important}.katex-formula .katex .katex-html,.katex-formula .katex .katex-mathml{font-size:inherit}.katex-html,.katex-formula .katex .katex-html,.variables-container .katex .katex-html{font-size:inherit!important}.katex-formula .katex-display>.katex,.katex-formula .katex-display>.katex>.katex-html{font-size:calc(var(--formula-katex-base-size, 1em) * var(--katex-applied-multiplier, var(--katex-formula-multiplier)))!important}.variables-container .variable-name .katex,.variables-container .variable-name .katex>.katex-html{font-size:calc(var(--variable-katex-base-size, 1em) * var(--katex-applied-multiplier, var(--katex-variable-multiplier)))!important}
