@font-face{font-display:block;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-display:block;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-display:block;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-display:block;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-display:block;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-display:block;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-display:block;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-display:block;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-display:block;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-display:block;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-display:block;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-display:block;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-display:block;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-display:block;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-display:block;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-display:block;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-display:block;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-display:block;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/1c11jt3Q5bbMa84cpWipp8Elw3MZhOHsOlwwVUQM3lAR35JiFQbaYCRnMF2lxAWoOg2gyoIV4PouX8HytNIfLhqpJtXB4vjiViUI8IJ7bkC4ikkQvKksnOTKICwnqWSZ9YS5f0WCxmpgjbIq7EJcM4aI2nmhLNY2JIUgOjXZFWBHb+x5oh6cwb0Tv1ackHdKi0I9OO2wE9aogIOn540CCCziyhN+IaejtgAONKznHlHyutPrHGwCx9S6B8kfS4Mfi4Eyv7OU730bT1SCBjt834cXsf43zVjPUqqJjgrjeGnBxSG4aYAKFuVbeCfkDIjAqMb6yLNIbCuvXhMH2/+k2vkNpkORhR59N1CkzoOENvneIosjYmuTxlhUzaGEJQ/iWqx4dmwpmKjrwTiTGTCVozNAYqk/zXOndWxuWSmJkQpJw3pK5KX6QrLt5LATMqpmPAQhkhK6PUjzHUn7E0gHE0kPE0iKkolgkUx9SZmVAdDgpffdyJKg3k7VmzYGCwVXGz/tXmkOIp+vcWs+EMuhhvN0h9uhfzWJziBQmCREGSIFmQIkgVpAnSBRmC//6hkLZwaVhwxlrJSOdqlFtOYxlau9F2QN5Y98xmIAsiM1HVp2VFX+DHHGg6Ecjh3vmqtidX3qHI2qycTk/iwxSt5UzTmEP92ZBnEWTk4Mx8Mpl78ZDokxg/KWb+Q0QkvdKVmq3TMW+RXEgrsziSAfNXFMhDc60N5N9jQzjfO0kBKpUZl0ZmwJ41j/B9Hz6wmRaJB84niNmQrzp9eSlQCDDzazGDdVi3P36VZQ+Jy4f9UBNp+3zTjqI4abaFAm+GShVaXlsGdF3FYzZcDI6cori4kMxUECl9IjJZpzkvitAoxKue+90pDMvcKRxLl53TmOKCmV/xRolNKSqqUxc6LStOETmFOiLZZptlZepcKiAzteG8PEdpnQpbOMNcMsR4RR2Bs0cKFEvSmIjAFcnarqwUL4lDhHmnVkwu1IwshbiCcgvOheZuYyOteufZZwlcTlLgnZ3o/WcYdzZHW/WGaqaVfmTZ1aWCceJjkbZqsfbkOtcFlUZM/jy+hXHDbaUobWqqXaeWobbLO99yG5N3U4wxco0rQGGcOLASFMXeJoham8M+/x6O2WywK2l4HGbq1CoUyC/IZikQhdq3SiuNrvAEj0AVu9x2x3lp/xWzahaxidezFVtdcb5uEnzyl0ZmYiuKI0exvCd4Xc9CV1KB0db00z92wDPde0kukbvZIWN6jUWFTmPIC/Y4UPCm8UfDTFZpZNon1qLFTkBhxzB+FjQRA2Q/YRJT8pQigslMaUpFyAG8TMlXigiqmAZX4xgijKjRlGpLE0GdplRfCaJo0JQaSxNBk6ZmMzcya0FmrcisDdn0Q3HI2sWSppYigmlM1XT/kLQZSNpMJG0WkjYbSZuDpM1F0uYhFc1HxU4m1QJjDK6iL0S5uSj5rgXc3RejEigtcRBtqYPQsiTskmO5vosV+q4VGIKbOkDg0jtRrq+Em1YloaTFar3EGr1EUC8R0kus1Uus00usL97ABr2BjXoDm/QGNhuWtMVBKOwg/i78lT7hBsAvDmwHc/ao3vmUbBmhjeYySZNWvGkfZAgISDSaDo1SVpzGDsAEkF8B+gEapViUoZgUWXcRIGFZNm6gWbAKk0bp0k1MHG9fLYtV4iS2SmLEQFARzRcnf9PUS0LVn05/J9MiRRBU3v2IrvW974v4N00L7ZMk0wXP1409CHo/an8zTRHD3eSJ6m8D4YMkZNl3M79sqeuAsr/m3f+8/yl7A50aiAEJgeBeMWzu7ui9UfUBCe2TIqZIoOd/3/udRBOQidQZUERzb2/VwZN1H/Sju82ew2H2Wfr6qvfVf3hqwDvAIpkQVFy4B9Pe9e4/XvPeceu7h3dvO56iJPf0+A6cqA2ip18ER+iFgggiuOkvj24bby0N9j2UHIkgqIt+sVgfodC4YghLSMjSZbH0VR/6dMDrYJeKHilKTemt6v6kvzvn3/RrdWtr0GoN/xL+Sex/cPYLUpepx9cz/D46UPU5KXgAQa+NDps1v6J3xP1i2HtaDB0M9aX2deA7SYff//+gUCovMmIK/qfsFcOk+4Y5ZN97XlG6zebqtMbKgeRFi51vnxTQYBUik2rS/Cn6PC8ADR8FGxsRPB82dzfND90gIcshOcYUkfjherBz53odpm6TP8txlwOZ71xmfHHOvq053qFF/MRlS3jP0ELudrf2OeN8DHvp6ZceLe8qKYvWz/7yp0u4dKPfli3CYq0O13Ih71mylJ80tOi10On8wi+F4+LWgDPeJ30msSQt9/vkmHq9/Lvo2b461mP801v3W4xTcs6CbvF9UDdrSt+A8OUbpSh55qAUFXWznBBfdeJ8a4d7ugT5tvxUza3h9m4H7ptTqiG4z0g5dc0X29OcGlhpGFMpQo9ytTS+NViZpNdvU4kWx+LKxNY10kQ1yqGXrhe4/1nvP7E+nd5A92TtaRplbHSqoIdOqtRWti+fkB5/n1+/VvCmz12pG1kpQWsfi1ftlBobm0bpngs16CHkbIwdLnParxtTV3QYRlfJ0KFskH7pdN/YDn+yRuSd7sNH3aO0DYPggk6uWuXrfOc+fa3VTxFVvKaNxHsiHmsXyCLIE5yuOeN3/Jdf8HBL/5M6shjyhxHx9BjB1O0+4NLOnjLLSxwO7ukN4jMbOIcD879KLSi6Pk61Oqm2377n8079PXEEQ7cy7OKEC9nbpet118fxweTafpt69x/Bt8UqGzNQt7aelpc44dn5cqhwf71+qKp/Zf/+a0zcizOUWpl/iBcSXip0pplkatCchoH5c5aUM8I7/dWxAej8WicPL1URFZ9BDJelUwEwTkGqUhgSlydVes95YdXvhh9Gfz/aeFWvgVb4tuLbcv4+wLdutVZv/cUonwBD/6eDlE0aSiKK/uoH3+J1wDE/jMVqY2ysGufN84oIXB0sPzy8ollX/LegY74DgJXJR57sn+VGza0x3DnuIgABFM15LmajjjsNlYj+JEZGbuRYcAMOWxFkPN2w6Wd46xo4gVWQR/X4lyI/R6K/YK0110GzudPRW7Y+UOBGTfNNzHeYT0fiH0taunBpq9HEW8OKSaBGj21L0MqenEmNRWBAWDWAk4CpNoEZJ2tTaPFgbQYj8HxtFilErs3BTRwT8uO1NXQaWfIotchmPkAF5mMBAliEmZiOGVgCG9LgRzpscMAOOwowlT3JhusdazXGSC/hxR3UlmWVwWHpOIKheqONvjyhSiTHIkVUco5bnji8m//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-display:block;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-display:block;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;position:relative;text-indent:0;text-rendering:auto}.katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.katex .katex-version:after{content:"0.16.47"}.katex .katex-mathml{border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%);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 .smash{display:inline;line-height:0}.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;display:block;height:inherit;position:absolute;width:100%}.katex svg path{stroke:none}.katex svg{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}.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{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:#202123;background:#fff;font-synthesis:none;text-rendering:optimizeLegibility;--sidebar: 260px;--rail: 60px;--content: 960px;--text: #202123;--muted: #8a8d91;--line: #ececec;--hover: #f3f3f3;--selected: #e9e9e9;--blue: #438ded;--soft-blue: #eaf4ff}*{box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0}button,input,textarea{font:inherit;color:inherit}button{border:0;background:none;cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #7ab5ff;outline-offset:2px}.app-shell{min-height:100%;display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);background:#fff}.app-shell.sidebar-collapsed{grid-template-columns:var(--rail) minmax(0,1fr)}.sidebar-rail{position:sticky;inset:0 auto 0 0;width:var(--rail);height:100vh;padding:10px 0 12px;display:flex;flex-direction:column;align-items:center;gap:8px;border-right:1px solid var(--line);background:#fff;z-index:10}.sidebar-rail button{width:42px;height:42px;display:flex;align-items:center;justify-content:center;border-radius:11px}.sidebar-rail button:hover{background:var(--hover)}.sidebar-rail .rail-logo{margin-bottom:14px}.sidebar-rail .rail-avatar{width:30px;height:30px;margin-top:auto;border-radius:50%;background:#ed79bd;color:#fff;font-size:10px;font-weight:700}.sidebar{position:sticky;inset:0 auto 0 0;width:var(--sidebar);height:100vh;display:flex;flex-direction:column;padding:10px 9px 12px;border-right:1px solid var(--line);background:#fbfbfb;overflow:hidden;overflow-x:hidden;z-index:10}.brand-row{height:54px;padding:0 9px;display:flex;align-items:center;justify-content:space-between}.brand-row strong{font-size:22px;letter-spacing:-.8px}.brand-row>div{display:flex;gap:7px}.icon-button{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px}.icon-button:hover{background:var(--hover)}.sidebar-search{margin:0 8px 8px;height:39px;display:flex;align-items:center;gap:7px;border:1px solid #ddd;border-radius:11px;padding:0 9px;background:#fff}.sidebar-search input{min-width:0;flex:1;border:0;outline:0;background:transparent}.sidebar-search button{display:flex;padding:2px}.primary-nav{display:grid;gap:2px}.primary-nav button{height:43px;padding:0 10px;display:flex;align-items:center;gap:12px;border-radius:10px;font-size:16px;text-align:left}.primary-nav button:hover,.primary-nav button.active{background:var(--selected)}.primary-nav button span{width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center}.primary-nav svg{width:20px;height:20px;stroke-width:1.9}.history-section{min-height:0;flex:1;margin-top:18px;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column}.history-section::-webkit-scrollbar{width:5px}.history-section::-webkit-scrollbar-thumb{background:#0000001f;border-radius:9999px}.history-section::-webkit-scrollbar-thumb:hover{background:#00000040}.history-section-header{padding:10px 10px 6px;color:#939393;font-size:13px;font-weight:600;-webkit-user-select:none;user-select:none}.history-list{display:grid;align-content:start;gap:2px}.history-item{position:relative;display:flex;align-items:center;border-radius:10px;height:38px;padding:0 4px 0 10px;width:100%;box-sizing:border-box;transition:background .15s}.history-item:hover,.history-item.active,.history-item.menu-open{background:var(--selected)}.history-item.menu-open{z-index:50}.history-item-btn{flex:1 1 0%;min-width:0;height:100%;display:flex;align-items:center;border:0;background:transparent;padding:0 28px 0 0;text-align:left;font-size:14px;color:var(--text);cursor:pointer;overflow:hidden;box-sizing:border-box}.history-title-text{display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;line-height:20px;text-align:left}.history-item-more{position:absolute;right:6px;top:5px;width:28px;height:28px;border-radius:7px;display:flex;align-items:center;justify-content:center;color:#606060;background:transparent;border:0;cursor:pointer;z-index:25;opacity:0;transition:opacity .15s,background .15s,color .15s}.history-item-more svg,.history-item-more svg *{pointer-events:none}.history-item:hover .history-item-more,.history-item.active .history-item-more,.history-item.menu-open .history-item-more{opacity:1}.history-item-more:hover,.history-item-more.active{background:#dcdcdc;color:#000}.history-edit-input{width:100%;height:30px;border:1px solid var(--blue);border-radius:6px;padding:0 8px;font-size:14px;background:#fff;outline:none;box-shadow:0 0 0 2px #438ded33}.history-menu{position:fixed;min-width:195px;background:#fff;border:1px solid #e5e5e5;border-radius:14px;padding:6px;box-shadow:0 12px 34px #00000038;display:flex;flex-direction:column;gap:2px;z-index:99999;animation:popupScale .14s cubic-bezier(.16,1,.3,1)}.history-menu-item{display:flex;align-items:center;gap:10px;padding:8px 12px;font-size:14px;font-weight:450;color:#202123;border-radius:8px;border:0;background:transparent;cursor:pointer;text-align:left;width:100%;transition:background .12s,color .12s}.history-menu-item:hover{background:#f3f3f3}.history-menu-item svg{width:16px;height:16px;stroke-width:1.8;flex-shrink:0}.history-menu-item.danger-item{color:#e02424}.history-menu-item.danger-item:hover{background:#fef2f2;color:#c81e1e}.history-empty{padding:12px 10px;color:#999;font-size:14px}.sidebar-account{margin-top:auto;height:50px;padding:0 9px;display:flex;gap:10px;align-items:center;border-radius:11px;font-size:14px}.sidebar-account:hover{background:var(--hover)}.avatar,.account-orb{color:#fff;background:#1f1f1f}.avatar{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:999999;background:#00000073;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;padding:16px;overflow-y:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box}.modal-card{width:min(440px,100%);max-height:min(90vh,650px);background:#fff;border-radius:20px;padding:24px;box-shadow:0 20px 60px #0003;display:flex;flex-direction:column;animation:modalScale .18s cubic-bezier(.16,1,.3,1);box-sizing:border-box;margin:auto}@keyframes modalScale{0%{transform:scale(.95);opacity:0}to{transform:scale(1);opacity:1}}.modal-title{font-size:18px;font-weight:600;color:#0d0d0d;margin-bottom:12px}.modal-body{font-size:14px;line-height:1.5;color:#4b5563;margin-bottom:24px}.modal-body strong{color:#111827;font-weight:600}.modal-actions{display:flex;justify-content:flex-end;gap:10px}.modal-cancel-btn{padding:8px 18px;border-radius:9999px;border:1px solid #d1d5db;background:#fff;color:#374151;font-size:14px;font-weight:500;cursor:pointer;transition:background .15s}.modal-cancel-btn:hover{background:#f3f4f6}.modal-delete-btn{padding:8px 18px;border-radius:9999px;border:0;background:#e02424;color:#fff;font-size:14px;font-weight:600;cursor:pointer;transition:background .15s}.modal-delete-btn:hover{background:#c81e1e}.send-button.recording{background:#e02424;animation:pulseRecording 1.4s infinite}@keyframes pulseRecording{0%{box-shadow:0 0 #e0242473}70%{box-shadow:0 0 0 10px #e0242400}to{box-shadow:0 0 #e0242400}}.main-area{position:relative;min-width:0;height:100vh;overflow:hidden;background:#fff}.topbar{height:60px;display:flex;align-items:center;justify-content:center;position:absolute;inset:0 0 auto;z-index:5;pointer-events:none}.mode-switch{width:310px;height:48px;display:grid;grid-template-columns:1fr 1fr;padding:4px;background:#f7f7f7;border-radius:25px;pointer-events:auto}.mode-switch button{border-radius:21px;color:#6d6d6d;font-weight:600}.mode-switch button.active{color:#222;background:#fff;box-shadow:0 1px 5px #0000001f}.top-actions{margin-left:auto;padding-right:22px;display:flex;align-items:center;gap:9px;pointer-events:auto}.top-actions button{height:40px;padding:0 10px;display:inline-flex;align-items:center;gap:8px;border-radius:9px;font-weight:600}.surface-menu{position:absolute;z-index:30;padding:8px;border:1px solid #e3e3e3;background:#fffffffa;border-radius:18px;box-shadow:0 12px 32px #00000021}.empty-chat{height:100%;display:flex;align-items:center;justify-content:center;padding:70px 30px 30px}.empty-center{width:min(var(--content),calc(100vw - var(--rail) - 80px));transform:translateY(-22px)}.empty-center h1{margin:0 0 42px;text-align:center;font-size:28px;font-weight:400;letter-spacing:-.5px}.composer-wrap{position:relative;width:100%}.attachment-row{display:flex;gap:8px;padding:0 10px 8px;overflow-x:auto}.attachment-chip{flex:0 0 auto;max-width:260px;height:45px;padding:0 9px;display:flex;align-items:center;gap:7px;border:1px solid #ddd;border-radius:12px;background:#fff}.attachment-chip>svg{width:17px}.attachment-thumb{width:31px;height:31px;flex:0 0 auto;border-radius:8px;object-fit:cover}.attachment-chip span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px}.attachment-chip button{display:flex;padding:4px;border-radius:50%}.attachment-chip button:hover{background:var(--hover)}.attachment-chip button svg{width:14px;height:14px}.composer{position:relative;box-sizing:border-box;border:1px solid #e0e0e0;background:#fff;box-shadow:0 4px 20px #00000012;transition:border-color .15s ease,box-shadow .15s ease,border-radius .15s ease}.composer:focus-within{border-color:#d1d5db;box-shadow:0 6px 24px #0000001a}.composer.single-line{display:flex;flex-direction:row;align-items:center;gap:0px;min-height:52px;padding:6px 8px;border-radius:28px}.composer-single-left{flex:0 0 auto;display:flex;align-items:center;margin-left:0}.composer.single-line .composer-input-area{flex:1;min-width:0;display:flex;align-items:center;padding:0 2px;margin-left:-2px}.composer.single-line textarea{display:block;width:100%;height:24px!important;max-height:24px;resize:none;border:0;outline:0;padding:0;background:transparent;font-family:inherit;font-size:16px;line-height:24px;color:#0d0d0d;box-sizing:border-box;overflow:hidden;margin-top:-3px}.composer-single-right{position:relative;display:flex;align-items:center;gap:6px;flex:0 0 auto}.composer.multiline{display:flex;flex-direction:column;min-height:96px;padding:12px 12px 8px;border-radius:26px}.composer.multiline .composer-input-area{width:100%;padding:0 4px 0 2px;box-sizing:border-box}.composer.multiline textarea{display:block;width:100%;min-height:48px;max-height:220px;resize:none;border:0;outline:0;padding:0 0 6px;background:transparent;font-family:inherit;font-size:16px;line-height:24px;color:#0d0d0d;box-sizing:border-box;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#d1d5db transparent}.composer.multiline textarea::-webkit-scrollbar{width:6px}.composer.multiline textarea::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:4px}.composer.multiline textarea::-webkit-scrollbar-thumb:hover{background:#9ca3af}.composer textarea::placeholder,.image-composer input::placeholder{color:#8e8e8e}.composer-bottom-bar{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:38px;margin-top:4px}.composer-bottom-left{display:flex;align-items:center;gap:4px;margin-left:0}.composer-bottom-right{position:relative;display:flex;align-items:center;gap:8px}.composer-icon{flex:0 0 auto;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;border:0;background:transparent;color:#0d0d0d;cursor:pointer;transition:background .15s}.composer-icon:hover{background:var(--hover)}.composer-icon svg{width:20px;height:20px;stroke-width:2.3;margin-top:-2px}.model-selector-container{position:relative;display:inline-flex;align-items:center}.model-pill-trigger{height:36px;padding:0 8px 0 10px;display:inline-flex;align-items:center;gap:6px;border-radius:18px;border:0;background:transparent;cursor:pointer;transition:background .15s}.model-pill-trigger:hover{background:var(--hover)}.model-pill-trigger .model-prefix{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:15.5px;font-weight:500;color:#0d0d0d;line-height:1;letter-spacing:-.01em}.model-pill-trigger .model-effort{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:15.5px;font-weight:400;color:#5d5d5d;line-height:1;letter-spacing:-.01em}.model-pill-trigger svg{color:#6e6e80;width:14.5px;height:14.5px;stroke-width:2.1;margin-top:1px}.model-popup-card{position:absolute;bottom:calc(100% + 8px);right:0;z-index:100;width:270px;background:#fff;border:1px solid #e5e5e5;border-radius:20px;box-shadow:0 14px 40px #00000024;padding:8px;overflow:hidden;animation:popupScale .16s cubic-bezier(.16,1,.3,1)}@keyframes popupScale{0%{transform:scale(.96) translateY(6px);opacity:0}to{transform:scale(1) translateY(0);opacity:1}}.reasoning-slider-view{display:flex;flex-direction:column;gap:4px}.slider-model-nav-btn{width:100%;padding:9px 12px;display:flex;align-items:center;justify-content:space-between;border-radius:12px;font-size:14.5px;font-weight:500;color:#202123;cursor:pointer;transition:background .15s;border:0;background:transparent}.slider-model-nav-btn:hover{background:#f4f4f4}.slider-model-nav-btn svg{color:#999}.slider-box{padding:8px 10px 14px}.slider-track{position:relative;width:100%;height:32px;background:#f0f0f0;border-radius:16px;cursor:pointer;display:flex;align-items:center;-webkit-user-select:none;user-select:none;touch-action:none;box-sizing:border-box}.slider-track.dragging{cursor:grabbing}.slider-fill{position:absolute;left:0;top:0;bottom:0;background:#2563eb;border-radius:16px;transition:width .22s cubic-bezier(.4,0,.2,1);pointer-events:none}.slider-ticks{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:space-between;align-items:center;padding:0 16px;pointer-events:none}.slider-ticks .tick{width:5px;height:5px;border-radius:50%;background:#bbb;z-index:2;transition:background .2s}.slider-ticks .tick.active{background:#ffffffd9}.slider-thumb{position:absolute;top:3px;width:26px;height:26px;border-radius:50%;background:#fff;box-shadow:0 2px 7px #00000040;cursor:grab;z-index:5;transition:left .22s cubic-bezier(.4,0,.2,1),transform .15s ease}.slider-track.dragging .slider-thumb{cursor:grabbing;transform:scale(1.08);box-shadow:0 4px 12px #00000047}.models-list-view{display:flex;flex-direction:column}.models-list-header{padding:4px 6px 8px;border-bottom:1px solid #f0f0f0;margin-bottom:4px}.models-back-btn{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;font-weight:600;color:#666;padding:4px 8px;border-radius:8px;cursor:pointer;border:0;background:transparent}.models-back-btn:hover{background:#f4f4f4;color:#111}.models-scroll{max-height:270px;overflow-y:auto;display:flex;flex-direction:column;gap:2px}.model-select-item{width:100%;padding:8px 12px;display:flex;align-items:center;justify-content:space-between;border-radius:10px;font-size:14px;color:#202123;cursor:pointer;text-align:left;transition:background .15s;border:0;background:transparent}.model-select-item:hover{background:#f4f4f4}.model-select-item.selected{font-weight:600;background:#f0f7ff;color:#1d4ed8}.model-check{color:#1d4ed8}.send-button{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#1d4ed8;color:#fff;border:0;cursor:pointer;transition:all .15s ease;flex:0 0 auto}.send-button:disabled{background:#bfd6f6;cursor:not-allowed}.send-button:hover:not(:disabled){background:#1e40af}.send-button svg{width:20px;height:20px}.send-button.stop span{width:12px;height:12px;border-radius:2.5px;background:#fff}.attach-anchor{position:relative}.attach-menu{width:min(430px,calc(100vw - 96px));bottom:calc(100% + 8px);left:0;display:grid}.empty-chat .attach-menu{width:min(900px,calc(100vw - var(--rail) - 96px));bottom:calc(100% + 8px);top:auto}.attach-menu button,.model-menu button{min-height:46px;padding:6px 10px;display:flex;align-items:center;gap:11px;border-radius:10px;text-align:left}.attach-menu button:hover,.model-menu button:hover{background:var(--hover)}.attach-menu svg{width:20px;flex:0 0 auto}.attach-menu button>span{min-width:0;display:flex;align-items:baseline;gap:12px}.attach-menu strong{flex:0 0 auto;font-size:14px;font-weight:500}.attach-menu small{overflow:hidden;color:#969696;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.model-menu{width:245px;bottom:55px;right:0}.model-menu button{justify-content:space-between}.model-menu button svg{width:18px}.menu-eyebrow{padding:5px 10px 6px;color:#8c8c8c;font-size:12px;text-transform:uppercase}.suggestions{margin-top:38px;padding-left:24px;display:grid;gap:18px}.suggestions button{width:fit-content;display:flex;align-items:center;gap:15px;color:#929292;font-size:16px}.suggestions button:hover{color:#383838}.suggestions svg{width:21px;height:21px;stroke-width:1.6}.conversation{height:100%;display:flex;flex-direction:column;padding-top:62px}.message-scroll{flex:1;min-height:0;overflow-y:auto;padding:18px 28px 190px}.message-column{width:min(var(--content),100%);margin:0 auto}.message{display:flex;margin:0 0 30px}.message.user{justify-content:flex-end}.user-bubble{max-width:70%;padding:13px 19px;border-radius:24px;background:var(--soft-blue);font-size:17px;line-height:1.45}.assistant-message{width:100%;font-size:17px;line-height:1.58}.assistant-message p{margin:0 0 13px}.assistant-message pre{padding:14px;overflow-x:auto;border-radius:12px;background:#f5f5f5}.assistant-message code{font-family:Cascadia Code,Consolas,monospace;font-size:.9em}.message-error .assistant-message{color:#a33a31}.thinking-wrapper{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}.thinking-header{display:inline-flex;align-items:center;gap:8px;font-size:14.5px;font-weight:500;color:#71717a}.thinking-text-shimmer{background:linear-gradient(90deg,#71717a,#a1a1aa 40%,#18181b,#a1a1aa 60%,#71717a);background-size:250% 100%;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:textShimmer 2.2s ease-in-out infinite}@keyframes textShimmer{0%{background-position:100% 0}to{background-position:-100% 0}}.image-gen-placeholder{margin:12px 0 18px;width:min(100%,420px)}.image-gen-subtext{font-size:14px;line-height:20px;color:#3f3f46;margin-bottom:14px}.image-gen-canvas{width:100%;aspect-ratio:1 / 1;background:#f4f4f5;border-radius:22px;display:flex;align-items:center;justify-content:center;overflow:hidden;box-shadow:inset 0 0 0 1px #0000000d}.image-gen-svg{width:100%;height:100%}.matrix-dot{fill:#8e8ea0;animation:dotWave 2.4s cubic-bezier(.4,0,.2,1) infinite;transform-origin:center}@keyframes dotWave{0%{opacity:.14;transform:scale(.8)}35%{opacity:.85;transform:scale(1.4);fill:#374151}70%,to{opacity:.14;transform:scale(.8);fill:#8e8ea0}}.generated-image-card{position:relative;width:min(100%,420px);aspect-ratio:1 / 1;border-radius:22px;overflow:hidden;background:#f4f4f5;box-shadow:0 4px 20px #00000014,0 0 0 1px #0000000a;margin:14px 0;cursor:pointer;group:""}.generated-img{width:100%;height:100%;object-fit:cover;display:block;opacity:0;transition:opacity .35s ease,transform .25s ease}.generated-img.loaded{opacity:1}.generated-image-card:hover .generated-img{transform:scale(1.015)}.image-preview-badge{position:absolute;top:12px;left:12px;padding:4px 11px;border-radius:20px;background:#0000008c;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#fff;font-size:11.5px;font-weight:500;letter-spacing:.01em;z-index:2;pointer-events:none}.image-card-footer{position:absolute;bottom:12px;right:12px;display:flex;align-items:center;justify-content:flex-end;z-index:2;pointer-events:auto}.image-btn-download{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#000000a6;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#fff;border:0;cursor:pointer;text-decoration:none;transition:background .15s,transform .12s}.image-btn-download:hover{background:#000000d9;transform:scale(1.06)}.lightbox-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:999999;background:#000000d1;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);display:flex;align-items:center;justify-content:center;padding:16px;animation:lightboxFadeIn .2s cubic-bezier(.16,1,.3,1)}@keyframes lightboxFadeIn{0%{opacity:0}to{opacity:1}}.lightbox-container{position:relative;max-width:95vw;max-height:95vh;display:flex;align-items:center;justify-content:center}.lightbox-image-wrap{position:relative;max-width:90vw;max-height:90vh;border-radius:20px;overflow:hidden;box-shadow:0 24px 70px #0009;display:flex;align-items:center;justify-content:center;background:transparent}.lightbox-main-img{max-width:100%;max-height:90vh;border-radius:20px;object-fit:contain;display:block}.lightbox-img-close-btn{position:absolute;top:14px;right:14px;width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#0009;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#fff;border:1px solid rgba(255,255,255,.2);cursor:pointer;z-index:10;transition:background .15s,transform .12s}.lightbox-img-close-btn:hover{background:#000000d9;transform:scale(1.06)}.lightbox-img-download-btn{position:absolute;bottom:14px;right:14px;width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#0009;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#fff;border:1px solid rgba(255,255,255,.2);cursor:pointer;text-decoration:none;z-index:10;transition:background .15s,transform .12s}.lightbox-img-download-btn:hover{background:#000000d9;transform:scale(1.06)}.thinking-dots{display:flex;gap:5px;padding-top:10px}.thinking-dots i{width:7px;height:7px;border-radius:50%;background:#777;animation:blink 1.1s infinite alternate}.thinking-dots i:nth-child(2){animation-delay:.15s}.thinking-dots i:nth-child(3){animation-delay:.3s}@keyframes blink{to{opacity:.25;transform:translateY(-2px)}}.message-actions{display:flex;align-items:center;gap:3px;margin-top:11px}.message-actions button{width:36px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;color:#707070}.message-actions button:hover{background:var(--hover);color:#222}.message-actions svg{width:19px;height:19px}.asset-grid{display:flex;flex-direction:column;gap:12px;margin:16px 0}.file-card{padding:10px 14px;display:inline-flex;align-items:center;gap:10px;border:1px solid #ddd;border-radius:12px;color:#202123;background:#f9f9f9;text-decoration:none;font-size:14px;font-weight:500;cursor:pointer;transition:background .15s,border-color .15s}.file-card:hover{background:#f0f0f0;border-color:#ccc}.sidebar-backdrop{display:none}.conversation-composer{position:absolute;inset:auto 0 0;padding:0 28px 20px;background:linear-gradient(0deg,#fff 75%,#fff0)}.conversation-composer .composer-wrap{width:min(var(--content),100%);margin:0 auto}.disclaimer{margin-bottom:10px;text-align:center;color:#9a9a9a;font-size:12px}.library-page,.content-page{height:100%;overflow-y:auto;padding:10px 36px 80px}.library-content,.content-page{width:min(var(--content),100%);margin:0 auto}.notice{min-height:70px;margin-bottom:32px;padding:12px 14px;display:grid;grid-template-columns:auto 1fr auto;align-items:start;gap:12px;border:1px solid #dfdfdf;border-radius:17px;box-shadow:0 5px 14px #0000000f}.notice>svg{width:20px;margin-top:2px}.notice div{display:grid;gap:5px;font-size:14px}.notice div span{color:#555}.notice button{padding:3px}.notice button svg{width:18px}.library-content h1{margin:0 0 24px;font-size:34px;font-weight:400}.image-composer{height:70px;margin-bottom:64px;display:flex;align-items:center;gap:12px;padding:0 12px 0 22px;border:1px solid #dedede;border-radius:35px;box-shadow:0 7px 22px #00000014}.image-composer input{flex:1;min-width:0;border:0;outline:0;font-size:17px}.image-composer>span{display:flex;align-items:center;gap:4px;color:#858585;white-space:nowrap}.image-composer>span svg{width:15px}.image-composer>svg{flex:0 0 auto;width:21px}.image-composer button{width:48px;height:48px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:var(--blue);color:#fff}.image-composer button:disabled{background:#c6daf5}.library-content h2{margin:0 0 26px;font-size:18px}.library-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}.library-card{position:relative;aspect-ratio:.8;min-width:0;overflow:hidden;border-radius:22px;background:#eee;color:#fff;text-decoration:none}.library-card img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .25s ease}.library-card:hover img{transform:scale(1.025)}.library-card:after{content:"";position:absolute;top:55%;right:0;bottom:0;left:0;background:linear-gradient(transparent,#0000009e);pointer-events:none}.library-card span{position:absolute;z-index:1;inset:auto 10px 11px;font-size:13px;font-weight:600;text-align:left;text-shadow:0 1px 5px rgba(0,0,0,.35)}.content-page{padding-top:90px}.content-header{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:36px}.eyebrow{color:#888;font-size:12px;font-weight:700;letter-spacing:.09em}.content-header h1{margin:8px 0;font-size:36px;font-weight:500}.content-header p{margin:0;color:#777}.primary-button{height:44px;padding:0 16px;display:inline-flex;align-items:center;gap:7px;border-radius:13px;background:#171717;color:#fff}.primary-button svg{width:18px}.project-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.project-grid article{min-height:220px;padding:22px;border:1px solid #e1e1e1;border-radius:20px}.project-icon{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:13px;background:#f1f1f1}.project-grid h2{margin:24px 0 8px;font-size:20px}.project-grid p{min-height:44px;color:#777;line-height:1.5}.project-grid button{display:inline-flex;align-items:center;gap:6px;color:#555}.project-grid button svg{width:15px;transform:rotate(-90deg)}.empty-project{grid-column:1 / -1;text-align:center;display:flex;flex-direction:column;align-items:center}.empty-route{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.empty-route>div{width:62px;height:62px;display:flex;align-items:center;justify-content:center;border-radius:20px;background:#f1f1f1}.empty-route h1{margin:22px 0 8px;font-size:28px}.empty-route p{margin:0;color:#888}.toast{position:fixed;z-index:100;left:50%;bottom:24px;transform:translate(-50%);padding:11px 16px;border-radius:12px;background:#1f1f1f;color:#fff;box-shadow:0 8px 30px #0003;animation:toast 4s both}@keyframes toast{0%{opacity:0;transform:translate(-50%,10px)}10%,90%{opacity:1;transform:translate(-50%)}to{opacity:0}}.login-screen,.loading-screen{min-height:100%;display:flex;align-items:center;justify-content:center;padding:24px;background:#f8f8f8}.login-card{width:min(440px,100%);padding:36px;border:1px solid #e3e3e3;border-radius:24px;background:#fff;box-shadow:0 18px 60px #00000014}.login-mark{width:48px;height:48px;display:flex;align-items:center;justify-content:center;border-radius:15px;background:#1f1f1f;color:#fff}.login-card h1{margin:24px 0 8px;font-size:30px}.login-card>p{margin:0 0 26px;color:#727272;line-height:1.55}.login-card form{display:grid;gap:10px}.login-card label{font-size:14px;font-weight:600}.login-card input{height:48px;padding:0 14px;border:1px solid #d7d7d7;border-radius:12px}.login-card button{height:48px;margin-top:5px;border-radius:12px;background:#1f1f1f;color:#fff;font-weight:600}.login-card button:disabled{opacity:.6}.login-error{padding:10px 12px;border-radius:10px;background:#fff0ee;color:#a13a32;font-size:14px}.spinner{width:30px;height:30px;border:3px solid #ddd;border-top-color:#222;border-radius:50%;animation:spin .7s linear infinite}.chat-container{display:flex;flex-direction:column;height:100%;width:100%;position:relative;overflow:hidden}.mobile-header{display:none}@media(max-width:1100px){:root{--sidebar: 280px}.empty-center{width:min(760px,calc(100vw - var(--sidebar) - 45px))}.library-grid{grid-template-columns:repeat(4,1fr)}.thinking-toggle{display:none}.model-toggle{display:inline-flex}}@media(max-width:768px){:root{--rail: 0px;--sidebar: 260px}body{-webkit-tap-highlight-color:transparent}.app-shell,.app-shell.sidebar-collapsed{display:flex;flex-direction:column;width:100vw;height:100%;overflow-x:hidden;position:relative}.sidebar-rail{display:none!important}.sidebar{position:fixed;top:0;left:0;bottom:0;width:min(260px,70vw);z-index:1000;background:#fff;box-shadow:12px 0 40px #0000002e;transform:translate(0);transition:transform .25s cubic-bezier(.16,1,.3,1)}.app-shell.sidebar-collapsed .sidebar{transform:translate(-100%);pointer-events:none}.sidebar-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:999;background:#00000073;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);animation:fadeIn .2s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.main-area{width:100%;height:100%;display:flex;flex-direction:column;overflow-x:hidden}.mobile-header{display:flex;align-items:center;justify-content:space-between;height:50px;padding:0 10px;background:#fff;border-bottom:1px solid #f0f0f0;position:sticky;top:0;z-index:50;flex-shrink:0}.mobile-header-btn{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;border:0;background:transparent;color:#444;cursor:pointer}.mobile-header-btn:active{background:#f4f4f4}.mobile-header-title{display:flex;align-items:center;justify-content:center}.conversation{height:calc(100% - 50px);display:flex;flex-direction:column;padding-top:0}.message-scroll{padding:10px 14px 110px;flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}.message-column{max-width:100%;width:100%;padding:0}.empty-chat{height:calc(100% - 50px);padding:20px 14px;display:flex;flex-direction:column;justify-content:center}.empty-center{width:100%;max-width:100%;transform:translateY(8px)}.empty-center h1{font-size:22px;margin-bottom:64px;text-align:center}.suggestions{flex-direction:column;gap:8px;margin-top:16px;padding:0}.suggestions button{width:100%;text-align:left;justify-content:flex-start;padding:12px 14px;font-size:14px}.user-bubble{max-width:90%;padding:10px 14px;font-size:15.5px;line-height:1.45}.assistant-message{font-size:15.5px;line-height:1.55}.message-actions button{padding:8px}.conversation-composer{padding:0 10px max(10px,env(safe-area-inset-bottom))}.disclaimer{display:none!important}.composer .model-selector-container{display:none}.composer.single-line{min-height:48px;padding:4px 6px;gap:0px}.composer.single-line .composer-input-area{margin-left:-3px;padding:0 2px}.composer.multiline{min-height:64px;padding:8px 10px 6px;border-radius:20px}.composer.multiline textarea{min-height:38px;max-height:110px;font-size:15.5px;line-height:22px}.model-popup-card{position:fixed;top:56px;left:50%;right:auto;bottom:auto;width:min(300px,calc(100vw - 36px));z-index:1100;box-shadow:0 12px 36px #0000002e;transform:translate(-50%);animation:mobileModalCenterAppear .14s cubic-bezier(.16,1,.3,1)!important}@keyframes mobileModalCenterAppear{0%{opacity:0;transform:translate(-50%) translateY(-6px) scale(.96)}to{opacity:1;transform:translate(-50%) translateY(0) scale(1)}}.attach-menu{width:max-content;min-width:220px;max-width:calc(100vw - 32px);left:0;padding:6px}.attach-menu button{padding:9px 12px;gap:10px;min-height:40px}.attach-menu button span strong{font-size:14.5px;font-weight:500}.attach-menu button span small{display:none!important}.modal-card{width:min(440px,calc(100vw - 24px));padding:20px 16px;border-radius:20px}.settings-modal{width:min(480px,calc(100vw - 20px))!important;max-width:calc(100vw - 20px)!important;max-height:calc(100vh - 24px)!important;padding:16px 16px 14px!important;border-radius:20px!important}.settings-modal-header{padding-bottom:12px!important}.settings-modal-body{padding:12px 2px 8px 0!important;gap:12px!important}.settings-storage-section{padding:12px!important;margin-bottom:10px!important}.settings-modal-footer{padding-top:10px!important}.history-item{padding-right:8px}.history-item-more{opacity:.85!important;color:#606060!important}.history-item.active .history-item-more,.history-item.menu-open .history-item-more{opacity:1!important;color:#111!important}.library-top-bar{padding:8px 12px 4px;gap:8px}.library-heading-area{display:none}.library-top-actions{width:100%;gap:8px;display:flex;align-items:center}.library-search-box{flex:1;min-width:0;padding:6px 12px}.library-create-btn{padding:6px 12px;font-size:13.5px}.library-toolbar{padding:4px 12px 6px;gap:6px;display:flex;align-items:center;justify-content:space-between}.library-tabs{gap:4px}.library-tab-pill{padding:4px 9px;font-size:13px}.library-content-scroll{padding:0 8px 24px}.list-header-row{display:none!important}.list-item-row{padding:9px 8px;border-bottom:1px solid rgba(0,0,0,.05)}.list-item-row .col-date,.list-item-row .col-size{display:none!important}.col-name{flex:1 1 auto;gap:10px}.item-name-text{font-size:14px;line-height:1.35}.item-mobile-sub{display:block;font-size:11.5px;color:#8e8ea0;margin-top:2px}.row-menu-btn{opacity:1!important;padding:6px 8px;font-size:14px;color:#555}.library-grid-container{grid-template-columns:repeat(2,1fr);gap:10px}.card-preview{height:110px}.card-info{padding:8px 10px}.card-title{font-size:12.5px}.card-meta{font-size:11px}.card-menu-btn{opacity:1!important;padding:4px 6px}.canvas-header{padding:10px 14px}.canvas-body{padding:12px 14px}.canvas-footer-prompt{padding:8px 12px}.canvas-ai-bar{padding:4px 6px 4px 12px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}.library-container{display:flex;flex-direction:column;height:100%;width:100%;background:var(--bg-primary, #ffffff);overflow:hidden}.library-top-bar{display:flex;justify-content:space-between;align-items:center;padding:20px 36px 14px;flex-wrap:nowrap;gap:16px}.library-heading-area{display:flex;align-items:center;gap:12px}.library-main-title{font-size:28px;font-weight:600;letter-spacing:-.02em;color:#0d0d0d;margin:0}.library-folder-breadcrumb{display:flex;align-items:center;gap:8px;font-size:22px;font-weight:600;color:#0d0d0d}.breadcrumb-root{cursor:pointer;color:#666;transition:color .15s}.breadcrumb-root:hover{color:#0d0d0d;text-decoration:underline}.breadcrumb-sep{color:#999}.library-top-actions{display:flex;align-items:center;gap:12px}.library-search-box{display:flex;align-items:center;gap:8px;background:#f4f4f4;border-radius:20px;padding:7px 14px;min-width:220px;border:1px solid transparent;transition:border-color .15s,background .15s}.library-search-box:focus-within{background:#fff;border-color:#d1d5db}.library-search-box input{border:none;background:transparent;outline:none;font-size:14px;color:#111;width:100%}.search-clear-btn{border:none;background:transparent;cursor:pointer;color:#888;display:flex;align-items:center;padding:0}.library-create-dropdown{position:relative}.library-create-btn{display:flex;align-items:center;gap:6px;background:#0d0d0d;color:#fff;border:none;border-radius:20px;padding:8px 16px;font-size:14px;font-weight:500;cursor:pointer;transition:opacity .15s}.library-create-btn:hover{opacity:.88}.library-create-menu{position:absolute;top:calc(100% + 6px);right:0;background:#fff;border-radius:14px;box-shadow:0 10px 30px #0000001f;border:1px solid rgba(0,0,0,.08);padding:6px;min-width:200px;z-index:9999;display:flex;flex-direction:column}.library-create-menu button{display:flex;align-items:center;gap:10px;padding:8px 12px;border:none;background:transparent;border-radius:8px;font-size:14px;color:#222;cursor:pointer;text-align:left;transition:background .12s}.library-create-menu button:hover{background:#f4f4f4}.menu-divider{height:1px;background:#0000000f;margin:4px 0}.library-toolbar{display:flex;justify-content:space-between;align-items:center;padding:0 36px 14px}.library-tabs{display:flex;gap:4px;background:#f4f4f4;padding:3px;border-radius:18px}.library-tab-pill{border:none;background:transparent;padding:5px 14px;border-radius:14px;font-size:13.5px;font-weight:500;color:#666;cursor:pointer;transition:all .15s}.library-view-toggles{display:flex;align-items:center;gap:4px}.toolbar-icon-btn{width:34px;height:34px;border-radius:8px;border:none;background:transparent;display:flex;align-items:center;justify-content:center;color:#666;cursor:pointer;transition:background .12s,color .12s}.sort-menu-anchor{position:relative}.sort-dropdown-menu{position:absolute;top:calc(100% + 4px);right:0;background:#fff;border-radius:12px;box-shadow:0 8px 24px #0000001a;border:1px solid rgba(0,0,0,.08);padding:4px;min-width:160px;z-index:9999;display:flex;flex-direction:column}.sort-dropdown-menu button{padding:8px 12px;border:none;background:transparent;border-radius:6px;font-size:13.5px;text-align:left;cursor:pointer;color:#333}.sort-dropdown-menu button:hover,.sort-dropdown-menu button.selected{background:#f4f4f4;font-weight:500}.library-content-scroll{flex:1;overflow-y:auto;padding:0 36px 36px}.library-loading{display:flex;align-items:center;justify-content:center;gap:10px;padding:60px 0;color:#888;font-size:14.5px}.library-empty-box{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;border:1.5px dashed rgba(0,0,0,.12);border-radius:16px;margin-top:16px;color:#777}.empty-icon{color:#aaa;margin-bottom:10px}.empty-text{font-size:16px;font-weight:500}.library-list-table{display:flex;flex-direction:column;width:100%}.list-header-row{display:flex;padding:8px 14px;font-size:12.5px;font-weight:500;color:#8e8ea0;border-bottom:1px solid rgba(0,0,0,.06)}.list-item-row{display:flex;align-items:center;padding:10px 14px;border-bottom:1px solid rgba(0,0,0,.04);cursor:pointer;border-radius:8px;transition:background .12s}.list-item-row:hover{background:#f9f9f9}.list-item-row.folder-row{font-weight:500}.col-name{flex:1 1 50%;display:flex;align-items:center;gap:12px;font-size:14px;color:#0d0d0d;min-width:0}.item-name-col-content{display:flex;flex-direction:column;min-width:0;flex:1}.item-name-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.item-mobile-sub{display:none}.context-menu-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:99998;background:transparent}.col-date{flex:0 0 130px;font-size:13px;color:#6e6e80}.col-size{flex:0 0 90px;font-size:13px;color:#6e6e80}.col-header-sortable{display:inline-flex!important;align-items:center;gap:5px;cursor:pointer;-webkit-user-select:none;user-select:none;transition:color .15s ease}.col-header-sortable:hover{color:#111827}.col-header-sortable.sort-active{color:#10a37f;font-weight:600}.col-sort-btn{display:inline-flex;align-items:center;justify-content:center;border:none;background:transparent;padding:2px 3px;border-radius:4px;cursor:pointer;color:inherit;opacity:.7;transition:opacity .15s,background-color .15s}.col-header-sortable:hover .col-sort-btn{opacity:1;background:#0000000f}.col-header-sortable.sort-active .col-sort-btn{opacity:1;color:#10a37f}.sort-icon-active{color:#10a37f;stroke-width:2.2px}.sort-icon-idle{opacity:.45;stroke-width:1.8px}.col-header-sortable:hover .sort-icon-idle{opacity:.85}@media(prefers-color-scheme:dark){.col-header-sortable:hover{color:#f3f4f6}.col-header-sortable:hover .col-sort-btn{background:#ffffff1a}.col-header-sortable.sort-active{color:#10a37f}}.col-actions{flex:0 0 36px;display:flex;justify-content:flex-end}.row-menu-btn{border:none;background:transparent;cursor:pointer;color:#888;padding:4px 8px;border-radius:6px;font-size:14px;font-weight:700;opacity:.85;transition:opacity .15s,background .15s}.list-item-row:hover .row-menu-btn{opacity:1}.row-menu-btn:hover{background:#eaeaea;color:#111}.lib-table-thumbnail{width:28px;height:28px;border-radius:6px;object-fit:cover;flex-shrink:0}.lib-icon-badge{width:28px;height:28px;border-radius:6px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.lib-icon-presentation{background:#fef0ed;color:#e5484d}.lib-icon-document{background:#edf5fe;color:#0091ff}.lib-icon-table{background:#edfcf2;color:#30a46c}.lib-icon-video{background:#fbf0ff;color:#8e4ec6}.lib-icon-image{background:#fef9ed;color:#d48806}.lib-icon-folder{background:#f4f4f4;color:#555}.lib-icon-file{background:#f4f4f4;color:#777}.lib-icon-archive{background:#f4f4f4;color:#666}.library-grid-container{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px;padding-top:6px}.grid-card{position:relative!important;border:1px solid rgba(0,0,0,.08);border-radius:14px;overflow:hidden;background:#fff;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease;display:flex;flex-direction:column}.grid-card:hover{transform:translateY(-2px);box-shadow:0 8px 24px #0000000f}.card-preview{height:130px;background:#f7f7f8;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.card-image-preview{width:100%;height:100%;object-fit:cover}.folder-big-icon{color:#777}.card-info{padding:12px}.card-title{font-size:13.5px;font-weight:500;color:#0d0d0d;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-meta{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#8e8ea0;margin-top:6px}.card-menu-btn{border:none;background:transparent;color:#888;cursor:pointer;padding:2px 6px;border-radius:4px;font-weight:700}.card-menu-btn:hover{background:#eaeaea;color:#111}.library-context-menu{background:#fff;border-radius:14px;box-shadow:0 10px 32px #00000024;border:1px solid rgba(0,0,0,.08);padding:6px;min-width:170px;display:flex;flex-direction:column}.library-context-menu button{display:flex;align-items:center;gap:10px;padding:8px 12px;border:none;background:transparent;border-radius:8px;font-size:13.5px;color:#222;cursor:pointer;text-align:left;transition:background .12s}.library-context-menu button:hover{background:#f4f4f4}.library-context-menu button.danger-item{color:#e5484d}.library-context-menu button.danger-item:hover{background:#fef0ed}.lib-modal-label{display:block;font-size:13px;font-weight:500;color:#555;margin-bottom:6px}.lib-modal-input{width:100%;padding:9px 12px;border:1px solid #ccc;border-radius:10px;font-size:14.5px;outline:none;box-sizing:border-box}.lib-modal-input:focus{border-color:#0d0d0d}.lib-action-btn{background:#0d0d0d!important;color:#fff!important}.move-folders-list{display:flex;flex-direction:column;gap:6px;max-height:240px;overflow-y:auto}.move-folder-choice{display:flex;align-items:center;gap:10px;padding:10px 14px;border:1px solid rgba(0,0,0,.06);border-radius:10px;background:#f9f9f9;cursor:pointer;font-size:14px;text-align:left}.move-folder-choice:hover{background:#efefef}.canvas-editor-container{display:flex;flex-direction:column;height:100%;width:100%;background:#fff}.canvas-header{display:flex;justify-content:space-between;align-items:center;padding:16px 28px;border-bottom:1px solid rgba(0,0,0,.06)}.canvas-breadcrumbs{display:flex;align-items:center;gap:8px;font-size:14.5px;color:#666}.canvas-close-btn{border:none;background:transparent;cursor:pointer;display:flex;align-items:center;padding:4px;border-radius:6px;color:#666}.canvas-close-btn:hover{background:#f0f0f0;color:#111}.canvas-crumb-parent{cursor:pointer}.canvas-crumb-parent:hover{text-decoration:underline}.canvas-crumb-divider{color:#aaa}.canvas-title-input{border:none;outline:none;font-size:15.5px;font-weight:600;color:#0d0d0d;background:transparent}.canvas-save-btn{background:#0d0d0d;color:#fff;border:none;border-radius:18px;padding:7px 16px;font-size:13.5px;font-weight:500;cursor:pointer}.canvas-body{flex:1;padding:24px 36px;overflow-y:auto}.canvas-textarea{width:100%;height:100%;min-height:400px;border:none;outline:none;font-size:15px;line-height:1.65;font-family:inherit;resize:none;color:#1a1a1a}.canvas-footer-prompt{padding:16px 28px;display:flex;justify-content:center}.canvas-ai-bar{max-width:680px;width:100%;background:#f4f4f4;border-radius:28px;padding:6px 8px 6px 18px;display:flex;align-items:center;gap:8px;box-shadow:0 4px 16px #0000000d}.canvas-ai-input{flex:1;border:none;background:transparent;font-size:14.5px;outline:none}.canvas-ai-send-btn{width:34px;height:34px;border-radius:50%;border:none;background:#ccc;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s}.canvas-ai-send-btn.active{background:#0d0d0d}.lib-picker-modal{width:720px;max-width:95vw;max-height:86vh;display:flex;flex-direction:column;border-radius:16px;overflow:hidden;padding:16px 20px 14px}.lib-picker-toolbar{display:flex;gap:10px;align-items:center;margin:14px 0 10px;flex-wrap:wrap}.lib-picker-select-all-btn{background:transparent;border:1px solid rgba(0,0,0,.14);border-radius:9999px;padding:6px 14px;font-size:13px;font-weight:500;cursor:pointer;color:inherit;transition:all .15s ease;white-space:nowrap;display:inline-flex;align-items:center;gap:6px}.lib-picker-select-all-btn:hover{background:#0000000d;border-color:#0000004d}.lib-picker-content{max-height:440px;overflow-y:auto;margin-top:6px;padding:4px}.lib-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px}.lib-picker-card{position:relative;border:1.5px solid rgba(0,0,0,.08);border-radius:12px;padding:10px;cursor:pointer;text-align:center;transition:all .15s ease;background:#fff;-webkit-user-select:none;user-select:none}.lib-picker-card:hover{background:#f7f7f8;border-color:#0003}.lib-picker-card.selected{border-color:#10a37f!important;background:#10a37f0f!important;box-shadow:0 0 0 1px #10a37f}.picker-checkbox{position:absolute;top:8px;right:8px;width:20px;height:20px;border-radius:6px;border:1.5px solid rgba(0,0,0,.25);background:#fff;display:flex;align-items:center;justify-content:center;transition:all .15s ease;z-index:2;color:#fff}.lib-picker-card:hover .picker-checkbox{border-color:#10a37f}.picker-checkbox.checked{background:#10a37f;border-color:#10a37f}.picker-preview{height:65px;display:flex;align-items:center;justify-content:center;margin-bottom:6px}.picker-preview img{max-height:100%;max-width:100%;border-radius:6px;object-fit:cover}.picker-name{font-size:12px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.picker-meta{font-size:11px;color:#888;margin-top:2px}.lib-picker-footer{display:flex;justify-content:space-between;align-items:center;margin-top:14px;padding-top:12px;border-top:1px solid rgba(0,0,0,.08);flex-wrap:wrap;gap:10px}.lib-picker-footer-count{font-size:13px;color:inherit}.lib-picker-footer-actions{display:flex;gap:10px;align-items:center}.lib-picker-submit-btn{display:inline-flex;align-items:center;gap:6px;background:#10a37f;color:#fff;border:none;border-radius:10px;padding:8px 18px;font-size:13px;font-weight:500;cursor:pointer;transition:all .15s ease}.lib-picker-submit-btn:hover:not(:disabled){background:#0e8e6e}.lib-picker-submit-btn:disabled{opacity:.45;cursor:not-allowed;background:#888}.lib-badge-count{background:#0000000f;padding:2px 8px;border-radius:10px;font-size:12px;font-weight:600;color:#666}@media(prefers-color-scheme:dark){.lib-picker-card{background:#1e1e1e;border-color:#ffffff1a}.lib-picker-card:hover{background:#252525;border-color:#ffffff40}.lib-picker-card.selected{background:#10a37f26!important}.picker-checkbox{background:#2a2a2a;border-color:#ffffff4d}.picker-checkbox.checked{background:#10a37f;border-color:#10a37f}.lib-picker-select-all-btn{border-color:#ffffff26}.lib-picker-select-all-btn:hover{background:#ffffff14}.lib-picker-footer{border-top-color:#ffffff14}.lib-badge-count{background:#ffffff1a;color:#aaa}}.spin-icon{animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.library-sidebar-toggle-btn{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px;border:1px solid rgba(0,0,0,.08);background:#fff;color:#333;cursor:pointer;transition:background .15s;flex-shrink:0}.library-sidebar-toggle-btn:hover{background:#f0f0f0}.library-context-menu{min-width:200px;width:max-content;max-width:calc(100vw - 24px);padding:6px;box-sizing:border-box}.library-context-menu button span{white-space:nowrap;font-size:14px}.lib-preview-modal{width:720px;max-width:94vw;max-height:88vh;display:flex;flex-direction:column;padding:20px 24px;background:#fff;border-radius:20px;box-shadow:0 16px 48px #0000002e}.preview-modal-header{display:flex;justify-content:space-between;align-items:center;padding-bottom:16px;border-bottom:1px solid rgba(0,0,0,.06);gap:12px}.preview-header-left{display:flex;align-items:center;gap:12px;min-width:0;flex:1}.preview-header-title{font-size:16px;font-weight:600;color:#0d0d0d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.preview-close-btn{color:#666;flex-shrink:0}.preview-close-btn:hover{color:#0d0d0d}.preview-modal-body{flex:1;min-height:220px;max-height:55vh;overflow-y:auto;padding:20px 0;display:flex;align-items:center;justify-content:center}.preview-image-box{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:#f8f9fa;border-radius:14px;overflow:hidden}.preview-img{max-width:100%;max-height:52vh;object-fit:contain;border-radius:8px}.preview-video-box{width:100%;display:flex;justify-content:center;background:#000;border-radius:14px;overflow:hidden}.preview-video{max-width:100%;max-height:52vh}.preview-text-box{width:100%;height:100%;background:#f9f9f9;border-radius:12px;padding:16px;box-sizing:border-box;overflow:auto}.preview-text-content{margin:0;font-family:inherit;font-size:14px;line-height:1.6;white-space:pre-wrap;word-break:break-word;color:#222}.preview-file-card{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px 20px;text-align:center;background:#f8f9fa;border-radius:16px;width:100%}.preview-big-icon .lib-icon-badge{width:64px;height:64px;border-radius:16px;margin-bottom:14px}.preview-big-icon svg{width:32px;height:32px}.preview-file-name{font-size:16px;font-weight:600;color:#0d0d0d;margin-bottom:8px;max-width:90%;word-break:break-word}.preview-file-meta{display:flex;align-items:center;gap:8px;font-size:13px;color:#777}.preview-modal-footer{display:flex;justify-content:flex-end;gap:12px;padding-top:16px;border-top:1px solid rgba(0,0,0,.06);flex-wrap:wrap}.preview-discuss-btn{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border-radius:12px;background:#f0f0f0;color:#0d0d0d;font-size:14px;font-weight:500;border:none;cursor:pointer;transition:background .15s}.preview-discuss-btn:hover{background:#e4e4e7}.preview-download-btn{display:inline-flex;align-items:center;gap:8px;padding:10px 20px;border-radius:12px;background:#0d0d0d;color:#fff;font-size:14px;font-weight:500;border:none;cursor:pointer;transition:opacity .15s}.preview-download-btn:hover{opacity:.88}@media(max-width:768px){.library-heading-area{display:none!important}.library-top-bar{padding:10px 14px 6px;gap:8px}.library-top-actions{width:100%;gap:8px}.library-search-box{flex:1;min-width:0}.library-toolbar{padding:0 14px 10px}.library-content-scroll{padding:0 14px 20px}.preview-modal-footer{justify-content:stretch}.preview-discuss-btn,.preview-download-btn{flex:1;justify-content:center}}.settings-modal{width:540px;max-width:94vw;max-height:min(88vh,740px);padding:20px 24px;background:#fff;border-radius:20px;box-shadow:0 16px 48px #0000002e;display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box;margin:auto}.settings-modal-header{display:flex;justify-content:space-between;align-items:center;padding-bottom:16px;border-bottom:1px solid rgba(0,0,0,.06);flex-shrink:0}.settings-header-title{font-size:17px;font-weight:600;color:#0d0d0d;display:flex;align-items:center;gap:8px}.settings-header-icon{color:#555}.settings-modal-body{padding:18px 4px 12px 0;display:flex;flex-direction:column;gap:16px;flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y}.settings-modal-body::-webkit-scrollbar{width:5px}.settings-modal-body::-webkit-scrollbar-thumb{background:#00000026;border-radius:10px}.settings-modal-body::-webkit-scrollbar-thumb:hover{background:#0000004d}.settings-profile-card{background:#f8f9fa;border:1px solid rgba(0,0,0,.06);border-radius:14px;padding:12px 16px;display:flex;align-items:center;gap:12px}.settings-avatar{width:40px;height:40px;border-radius:50%;background:#0d0d0d;color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0}.settings-profile-info{flex:1;min-width:0}.settings-profile-name{font-size:15px;font-weight:600;color:#0d0d0d}.settings-profile-sub{font-size:12.5px;color:#71717a;margin-top:2px}.settings-status-badge{background:#e6f4ea;color:#137333;font-size:12px;font-weight:600;padding:4px 10px;border-radius:12px}.settings-section-title{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:#8e8ea0;margin-bottom:8px}.settings-item-row{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:16px;display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;transition:border-color .15s,background .15s}.settings-item-row:hover{border-color:#cbd5e1;background:#fafafa}.settings-item-left{flex:1;min-width:0}.settings-item-title-row{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:600;color:#0d0d0d}.settings-item-icon{color:#2563eb;flex-shrink:0}.settings-item-desc{font-size:13px;color:#6b7280;line-height:1.45;margin:6px 0 10px}.settings-item-status-tag{font-size:12.5px;font-weight:500}.tag-enabled{color:#2563eb}.tag-disabled{color:#10b981;font-weight:600}.settings-toggle-switch{width:50px;height:28px;border-radius:14px;background:#e4e4e7;position:relative;border:none;cursor:pointer;padding:0;transition:background .2s cubic-bezier(.4,0,.2,1);flex-shrink:0}.settings-toggle-switch.active{background:#2563eb}.toggle-switch-thumb{width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 2px 5px #00000040;position:absolute;top:3px;left:3px;transition:transform .2s cubic-bezier(.4,0,.2,1)}.settings-toggle-switch.active .toggle-switch-thumb{transform:translate(22px)}.settings-modal-footer{display:flex;justify-content:flex-end;padding-top:14px;border-top:1px solid rgba(0,0,0,.06);flex-shrink:0;margin-top:auto}.settings-done-btn{background:#0d0d0d;color:#fff;padding:9px 24px;border-radius:10px;font-size:14px;font-weight:500;border:none;cursor:pointer;transition:opacity .15s}.settings-done-btn:hover{opacity:.88}.sidebar-account{cursor:pointer;-webkit-user-select:none;user-select:none;transition:background .15s}.sidebar-account:hover{background:var(--selected)}.user-bubble{position:relative;display:flex;flex-direction:column}.user-message-text{word-break:break-word}.user-bubble-footer{display:flex;justify-content:flex-end;align-items:center;margin-top:4px}.message-timestamp{font-size:11px;line-height:1;-webkit-user-select:none;user-select:none;font-variant-numeric:tabular-nums;letter-spacing:.02em}.user-timestamp{color:#00000073;font-weight:500}.message-footer-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px}.message-footer-bar .message-actions{margin-top:0}.assistant-timestamp{color:#8e8ea0;font-size:11.5px;font-weight:500}.table-responsive-wrapper{width:100%;max-width:100%;overflow-x:auto;margin:16px 0;border-radius:12px;border:1px solid rgba(0,0,0,.08);background:#fff;box-shadow:0 1px 4px #00000008;-webkit-overflow-scrolling:touch}.custom-markdown-table{width:100%;min-width:480px;border-collapse:collapse;font-size:13.5px;line-height:1.5;text-align:left}.custom-table-head{background:#f8f9fa}.custom-table-th{padding:11px 16px;font-weight:600;color:#1a1a1a;white-space:nowrap;border-bottom:1px solid rgba(0,0,0,.08);border-right:1px solid rgba(0,0,0,.05)}.custom-table-th:last-child{border-right:none}.custom-table-td{padding:10px 16px;color:#2d3748;border-bottom:1px solid rgba(0,0,0,.05);border-right:1px solid rgba(0,0,0,.04);vertical-align:top}.custom-table-td:last-child{border-right:none}.custom-table-row:last-child .custom-table-td{border-bottom:none}.custom-table-row:nth-child(2n){background-color:#fafbfc}.custom-table-row:hover{background-color:#f1f5f9}.assistant-message table{border-collapse:collapse;width:100%}.settings-storage-section{padding:16px;background:#f9f9fb;border-radius:14px;border:1px solid rgba(0,0,0,.06);margin-bottom:16px}.storage-header-title{font-size:16px;font-weight:700;color:#0f172a;margin-bottom:10px;letter-spacing:-.01em}.storage-progress-track{width:100%;height:8px;background:#e2e8f0;border-radius:999px;overflow:hidden;margin-bottom:18px}.storage-progress-fill{height:100%;background:#0f172a;border-radius:999px;transition:width .3s ease}.storage-mgmt-header{margin-bottom:12px}.storage-mgmt-title{font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#64748b;margin-bottom:3px}.storage-mgmt-desc{font-size:13px;color:#64748b;line-height:1.4}.storage-items-card{background:#fff;border-radius:12px;border:1px solid rgba(0,0,0,.07);overflow:hidden;box-shadow:0 1px 3px #00000005}.storage-row-item{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;cursor:pointer;transition:background .15s;-webkit-user-select:none;user-select:none}.storage-row-item:hover{background:#f8fafc}.storage-row-item:active{background:#f1f5f9}.storage-row-left{display:flex;flex-direction:column;gap:2px}.storage-row-label{font-size:14.5px;font-weight:600;color:#0f172a}.storage-row-sub{font-size:12.5px;color:#64748b}.storage-row-arrow{color:#94a3b8;flex-shrink:0}.storage-row-divider{height:1px;background:#0000000f;margin:0 14px}.katex-display{display:block;margin:14px 0!important;padding:10px 14px!important;background:#00000006;border:1px solid rgba(0,0,0,.05);border-radius:12px;overflow-x:auto;overflow-y:hidden;max-width:100%;-webkit-overflow-scrolling:touch;scrollbar-width:thin}.katex{font-size:1.08em;text-rendering:auto;line-height:1.25}.katex-display>.katex{display:inline-block;white-space:nowrap;text-align:initial}.katex-display::-webkit-scrollbar{height:4px}.katex-display::-webkit-scrollbar-thumb{background:#0000002e;border-radius:4px}.katex-error{color:#c53030;background:#e53e3e14;padding:2px 6px;border-radius:4px;font-family:monospace;font-size:.9em}@media(max-width:768px){.katex{font-size:1.02em}.katex-display{margin:10px 0!important;padding:8px 10px!important;border-radius:10px}}.library-content-scroll.with-selection-bar{padding-bottom:80px!important}.col-checkbox{width:36px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.lib-checkbox{width:18px;height:18px;border-radius:5px;border:1.5px solid #bbb;cursor:pointer;accent-color:#1d4ed8}.library-upload-progress-banner{background:#eff6ff;border:1px solid #bfdbfe;border-radius:12px;padding:10px 16px;margin:12px 18px 0;display:flex;flex-direction:column;gap:8px}.upload-progress-info{display:flex;align-items:center;gap:8px;font-size:13.5px;font-weight:500;color:#1e40af}.upload-progress-track{width:100%;height:6px;background:#dbeafe;border-radius:9999px;overflow:hidden}.upload-progress-fill{height:100%;background:#2563eb;border-radius:9999px;transition:width .2s ease}.composer-upload-status{display:flex;align-items:center;gap:8px;padding:6px 12px 8px;font-size:13px;color:#2563eb;font-weight:500}.composer-upload-track{flex:1;height:5px;background:#e0e7ff;border-radius:9999px;overflow:hidden;margin-left:6px}.composer-upload-fill{height:100%;background:#2563eb;border-radius:9999px;transition:width .15s ease}.mention-dropdown{position:absolute;bottom:calc(100% + 8px);left:12px;width:min(380px,calc(100vw - 32px));max-height:290px;background:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 14px 40px #00000024;padding:6px;display:flex;flex-direction:column;z-index:150;animation:popupScale .15s cubic-bezier(.16,1,.3,1);overflow:hidden}.mention-dropdown-header{display:flex;align-items:center;gap:6px;padding:6px 10px 8px;font-size:12px;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid #f3f4f6;margin-bottom:4px}.mention-dropdown-list{overflow-y:auto;max-height:240px;display:flex;flex-direction:column;gap:2px}.mention-item{width:100%;padding:8px 10px;display:flex;align-items:center;gap:10px;border-radius:10px;cursor:pointer;text-align:left;border:0;background:transparent;transition:background .12s ease}.mention-item:hover,.mention-item.selected{background:#f0f7ff}.mention-item-icon{width:28px;height:28px;flex-shrink:0;display:flex;align-items:center;justify-content:center}.mention-item-icon .lib-icon-badge{width:28px;height:28px;border-radius:8px}.mention-thumb{width:28px;height:28px;border-radius:7px;object-fit:cover}.mention-item-info{min-width:0;flex:1;display:flex;flex-direction:column;gap:1px}.mention-item-name{font-size:13.5px;font-weight:500;color:#111827;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mention-item-size{font-size:11.5px;color:#6b7280}@media(hover:none){.history-item-more,.row-menu-btn{opacity:1!important}}.library-toolbar{display:flex;justify-content:space-between;align-items:center;padding:0 36px 14px;gap:8px}.library-tabs{display:flex;gap:4px;background:#f4f4f5;padding:3px;border-radius:18px;flex-shrink:0}.library-tab-pill{border:none;background:transparent;padding:5px 12px;border-radius:14px;font-size:13px;font-weight:500;color:#666;cursor:pointer;transition:all .15s;white-space:nowrap}.library-tab-pill.active{background:#fff;color:#0d0d0d;box-shadow:0 2px 6px #0000000f}.library-view-toggles{display:flex;align-items:center;gap:2px;flex-shrink:0}.toolbar-icon-btn{width:32px;height:32px;border-radius:8px;border:none;background:transparent;display:flex;align-items:center;justify-content:center;color:#666;cursor:pointer;transition:background .12s,color .12s;flex-shrink:0}.toolbar-icon-btn:hover,.toolbar-icon-btn.active{background:#f0f0f0;color:#0d0d0d}.col-checkbox{flex:0 0 28px;display:flex;align-items:center;justify-content:center}.lib-checkbox{width:17px;height:17px;border-radius:5px;cursor:pointer;accent-color:#2563eb;margin:0;transition:transform .1s ease}.lib-checkbox:hover{transform:scale(1.1)}.list-item-row.selected-row{background:#f0f7ff!important}.grid-card.selected-card{border-color:#3b82f6!important;box-shadow:0 0 0 2px #3b82f647!important;background:#f0f7ff!important}.library-grid-wrapper{display:flex;flex-direction:column;width:100%}.grid-header-row{display:flex;align-items:center;justify-content:space-between;padding:4px 6px 14px;-webkit-user-select:none;user-select:none}.grid-select-all-container{display:inline-flex;align-items:center;gap:8px;cursor:pointer;padding:5px 12px;border-radius:8px;background:#00000008;border:1px solid rgba(0,0,0,.08);transition:all .15s ease}.grid-select-all-container:hover{background:#0000000f;border-color:#00000024}.grid-select-all-text{font-weight:500;color:#374151;font-size:13px}.grid-selected-count{font-size:12.5px;color:#6b7280}.grid-selected-count strong{color:#2563eb}.card-checkbox-badge{position:absolute!important;top:8px!important;left:8px!important;right:auto!important;bottom:auto!important;width:28px!important;height:28px!important;z-index:15!important;background:#fffffff0!important;border-radius:7px!important;padding:0!important;box-shadow:0 2px 8px #0000001f!important;display:flex!important;align-items:center!important;justify-content:center!important;cursor:pointer!important;transition:transform .12s ease,background .15s ease!important}.card-checkbox-badge:hover{transform:scale(1.08)!important;background:#fff!important}.card-checkbox-badge .lib-checkbox{margin:0!important;width:17px!important;height:17px!important}.library-selection-bar{position:fixed!important;bottom:calc(18px + env(safe-area-inset-bottom,0px))!important;left:50%!important;transform:translate(-50%)!important;width:calc(100% - 24px)!important;max-width:440px!important;background:#18181b!important;color:#fff!important;border-radius:26px!important;padding:8px 14px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;box-shadow:0 16px 48px #00000073!important;z-index:999999!important;box-sizing:border-box!important;margin:0!important}.selection-bar-left{display:flex;align-items:center;gap:8px;min-width:0;flex-shrink:0}.selection-count{font-size:13px;font-weight:600;white-space:nowrap}.selection-count strong{color:#60a5fa}.selection-bar-right{display:flex;align-items:center;gap:6px;flex-shrink:0}.selection-pill-btn{border:none;border-radius:18px;padding:6px 11px;font-size:12.5px;font-weight:500;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:5px;transition:all .15s ease;background:#ffffff29;color:#fff;white-space:nowrap;flex-shrink:0}.selection-pill-btn:hover:not(:disabled){background:#ffffff47}.selection-pill-btn:disabled{opacity:.4;cursor:not-allowed}.selection-pill-btn.delete{background:#dc2626;color:#fff}.selection-pill-btn.delete:hover:not(:disabled){background:#b91c1c}.selection-pill-btn.download{background:#2563eb;color:#fff}.selection-pill-btn.download:hover:not(:disabled){background:#1d4ed8}.selection-pill-btn.cancel{padding:6px;border-radius:50%;background:#ffffff24}.selection-pill-btn.cancel:hover{background:#ffffff47}@media(max-width:600px){.library-selection-bar{bottom:calc(14px + env(safe-area-inset-bottom,0px))!important;left:50%!important;transform:translate(-50%)!important;width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;padding:6px 8px!important;gap:4px!important;border-radius:20px!important}.selection-pill-btn{padding:5px 7px;font-size:11.5px;gap:3px}.selection-count{font-size:11px}}.settings-section-subtitle{font-size:13px;color:#6e6e80;margin:0 0 12px;line-height:1.4}.save-location-options{display:flex;flex-direction:column;gap:10px}.save-loc-card{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;border-radius:10px;border:1px solid rgba(0,0,0,.08);background:#fbfbfb;cursor:pointer;transition:border-color .15s,background-color .15s}.save-loc-card:hover{background:#f4f4f4;border-color:#00000029}.save-loc-card.selected{border-color:#10a37f;background:#10a37f0d}.save-loc-radio{padding-top:2px}.radio-dot{width:18px;height:18px;border-radius:50%;border:2px solid #ccc;display:flex;align-items:center;justify-content:center;transition:border-color .15s}.radio-dot.checked{border-color:#10a37f}.radio-dot.checked:after{content:"";width:9px;height:9px;border-radius:50%;background:#10a37f}.save-loc-content{flex:1;min-width:0}.save-loc-title{font-size:14px;font-weight:500;color:#111827;margin-bottom:2px}.save-loc-desc{font-size:12.5px;color:#6e6e80;line-height:1.35}.save-loc-dir-box{margin-top:10px;padding:8px 12px;background:#fff;border:1px solid rgba(0,0,0,.1);border-radius:8px;display:flex;flex-direction:column;gap:8px}.save-loc-dir-info{display:flex;align-items:center;gap:8px;font-size:13px;color:#111827;font-weight:500;word-break:break-all}.save-loc-dir-info .dir-icon{color:#10a37f;flex-shrink:0}.save-loc-btn-group{display:flex;align-items:center;gap:8px}.save-loc-pick-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;font-size:12.5px;font-weight:500;border-radius:6px;border:1px solid rgba(0,0,0,.15);background:#f7f7f8;color:#2d3748;cursor:pointer;transition:background .15s,border-color .15s}.save-loc-pick-btn:hover{background:#ececf1;border-color:#00000040}.save-loc-reset-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:6px;border:1px solid rgba(0,0,0,.1);background:transparent;color:#718096;cursor:pointer;transition:background .15s,color .15s}.save-loc-reset-btn:hover{background:#0000000d;color:#e53e3e}@media(prefers-color-scheme:dark){.save-loc-card{background:#1e1e1e;border-color:#ffffff14}.save-loc-card:hover{background:#252525;border-color:#ffffff2e}.save-loc-card.selected{border-color:#10a37f;background:#10a37f1f}.save-loc-title{color:#f3f4f6}.save-loc-desc{color:#9ca3af}.save-loc-dir-box{background:#141414;border-color:#ffffff1f}.save-loc-dir-info{color:#e5e7eb}.save-loc-pick-btn{background:#2a2a2a;color:#e5e7eb;border-color:#ffffff26}.save-loc-pick-btn:hover{background:#333;border-color:#ffffff40}.save-loc-reset-btn{border-color:#ffffff1a;color:#9ca3af}.save-loc-reset-btn:hover{background:#ffffff14;color:#fc8181}.radio-dot{border-color:#555}}

/* Ensure 3 dots button is always visible and clickable on mobile and touch devices */
@media (max-width: 1024px), (max-width: 768px), (hover: none), (pointer: coarse) {
  .history-item {
    position: relative !important;
  }
  .history-item-btn {
    padding-right: 34px !important;
  }
  .history-item-more {
    opacity: 0.8 !important;
    visibility: visible !important;
    display: flex !important;
    color: #606060 !important;
    z-index: 30 !important;
    pointer-events: auto !important;
  }
  .history-item:hover .history-item-more,
  .history-item.active .history-item-more,
  .history-item.menu-open .history-item-more,
  .history-item-more:active,
  .history-item-more.active {
    opacity: 1 !important;
    color: #0d0d0d !important;
    background: #dcdcdc !important;
  }
}

/* Tile/grid mode icons for Library */
.card-icon-preview {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  background: #f7f7f8 !important;
}
.card-icon-preview .lib-icon-badge {
  width: 56px !important;
  height: 56px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}
.card-icon-preview .lib-icon-badge svg {
  width: 28px !important;
  height: 28px !important;
}
.card-image-preview {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* Stable, accessible chat actions for desktop and touch layouts. */
.history-item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 34px !important;
  column-gap: 2px !important;
  align-items: center !important;
}
.history-item-btn {
  grid-column: 1 !important;
  min-width: 0 !important;
  padding-right: 0 !important;
}
.history-item-more {
  position: relative !important;
  inset: auto !important;
  grid-column: 2 !important;
  justify-self: end !important;
  width: 32px !important;
  height: 32px !important;
  opacity: 0.72 !important;
  visibility: visible !important;
  display: flex !important;
  flex: 0 0 32px !important;
  color: #4b4b4b !important;
  background: transparent !important;
  pointer-events: auto !important;
  z-index: 2 !important;
}
.history-item-more svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  overflow: visible !important;
  color: inherit !important;
}
.history-item-more circle {
  fill: currentColor !important;
}
.history-item:hover .history-item-more,
.history-item:focus-within .history-item-more,
.history-item.active .history-item-more,
.history-item.menu-open .history-item-more,
.history-item-more:hover,
.history-item-more.active {
  opacity: 1 !important;
  color: #0d0d0d !important;
}
.history-item-more:hover,
.history-item-more.active {
  background: #d7d7d7 !important;
}
.history-item-more:focus-visible {
  outline: 2px solid #438ded !important;
  outline-offset: 1px !important;
}
@media (hover: hover) and (pointer: fine) {
  .history-item:not(:hover):not(:focus-within):not(.active):not(.menu-open) .history-item-more {
    opacity: 0 !important;
  }
}
@media (max-width: 768px), (hover: none), (pointer: coarse) {
  .history-item {
    height: 44px !important;
    grid-template-columns: minmax(0, 1fr) 40px !important;
    padding-right: 2px !important;
  }
  .history-item-more {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
    opacity: 1 !important;
    color: #333 !important;
  }
}


/* === Compact chat history list (Image 1) === */
.history-list {
  display: grid;
  align-content: start;
  gap: 1px !important;
}
.history-item {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 8px !important;
  height: 33px !important;
  padding: 0 4px 0 10px !important;
  width: 100%;
  box-sizing: border-box;
  transition: background .15s;
}
.history-item-btn {
  font-size: 13.5px !important;
  line-height: 18px !important;
}
.history-item-more {
  top: 3.5px !important;
  height: 26px !important;
  width: 26px !important;
}

/* === Preserve multiline formatting & line breaks on paste and user text === */
.user-message-text {
  word-break: break-word;
  white-space: pre-wrap !important;
}
.user-bubble {
  white-space: pre-wrap;
}
.composer textarea {
  white-space: pre-wrap !important;
}

/* === User message footer with copy button === */
.user-bubble-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.user-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  color: rgba(0, 0, 0, 0.45);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s, background-color 0.15s;
}
.user-copy-btn:hover {
  color: rgba(0, 0, 0, 0.85);
  background: rgba(0, 0, 0, 0.06);
}
.user-copy-btn.copied {
  color: #10a37f;
}

/* === Gray code blocks with top-right copy button (Image 2) === */
.code-block-wrapper {
  position: relative;
  margin: 10px 0;
  border-radius: 12px;
  background: #f4f4f4;
  overflow: hidden;
}
.code-block-wrapper pre {
  margin: 0 !important;
  padding: 12px 42px 12px 14px !important;
  background: transparent !important;
  border-radius: 12px !important;
  overflow-x: auto;
  font-family: 'Cascadia Code', Consolas, Monaco, monospace;
  font-size: 13.5px;
  line-height: 1.5;
}
.code-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.04);
  color: #666666;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  z-index: 2;
}
.code-copy-btn:hover {
  background: rgba(0, 0, 0, 0.09);
  color: #111111;
}
.code-copy-btn.copied {
  color: #10a37f !important;
  background: rgba(16, 163, 127, 0.12) !important;
}

/* === White document card artifact (Image 3 - without edit button) === */
.chat-document-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
  margin: 14px 0;
  padding: 0;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.chat-document-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px 12px 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.chat-document-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: #666666;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.chat-document-action-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #111111;
}
.chat-document-action-btn.copied {
  color: #10a37f !important;
  background: rgba(16, 163, 127, 0.12) !important;
}
.chat-document-body {
  padding: 12px 16px 14px;
  font-size: 15px;
  line-height: 1.6;
  color: #1a1a1a;
}
.chat-document-body p {
  margin: 0 0 10px;
}
.chat-document-body p:last-child {
  margin-bottom: 0;
}

/* Centered & raised three dots */

.history-item-more {
  position: absolute !important;
  right: 6px !important;
  top: 50% !important;
  transform: translateY(-52%) !important;
  height: 24px !important;
  width: 26px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
}
.history-item-more svg {
  display: block !important;
  margin: auto !important;
  transform: translateY(-0.5px) !important;
}

/* === Library Sort Button Removed === */
.sort-menu-anchor {
  display: none !important;
}

/* === Visible Scrollbar in Composer Prompt Textarea === */
.composer textarea,
.composer.single-line textarea,
.composer.multiline textarea {
  overflow-y: auto !important;
  scrollbar-width: thin !important;
  scrollbar-color: #949494 #ebebeb !important;
}
.composer textarea::-webkit-scrollbar,
.composer.single-line textarea::-webkit-scrollbar,
.composer.multiline textarea::-webkit-scrollbar {
  width: 6px !important;
  display: block !important;
}
.composer textarea::-webkit-scrollbar-track,
.composer.single-line textarea::-webkit-scrollbar-track,
.composer.multiline textarea::-webkit-scrollbar-track {
  background: #f1f1f1 !important;
  border-radius: 4px !important;
}
.composer textarea::-webkit-scrollbar-thumb,
.composer.single-line textarea::-webkit-scrollbar-thumb,
.composer.multiline textarea::-webkit-scrollbar-thumb {
  background: #949494 !important;
  border-radius: 4px !important;
}
.composer textarea::-webkit-scrollbar-thumb:hover,
.composer.single-line textarea::-webkit-scrollbar-thumb:hover,
.composer.multiline textarea::-webkit-scrollbar-thumb:hover {
  background: #666666 !important;
}

/* === White Document Fragment Card matching ChatGPT (Screen 4) === */
.chat-document-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
  margin: 16px 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  transition: box-shadow 0.2s ease;
}
.chat-document-header {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  padding: 8px 12px !important;
  background: #fafafa !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}
.chat-document-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 6px !important;
  border: 0 !important;
  background: transparent !important;
  color: #666666 !important;
  cursor: pointer !important;
  transition: background 0.15s, color 0.15s;
}
.chat-document-action-btn:hover {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #111111 !important;
}
.chat-document-body {
  padding: 16px 20px 20px !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: #1a1a1a !important;
  word-break: break-word !important;
}
.chat-document-body p {
  margin: 0 0 12px !important;
}
.chat-document-body p:last-child {
  margin-bottom: 0 !important;
}
.chat-document-body ul,
.chat-document-body ol {
  margin: 0 0 12px !important;
  padding-left: 20px !important;
}
.chat-document-body li {
  margin-bottom: 4px !important;
}
.chat-document-body a {
  color: #2563eb !important;
  text-decoration: underline !important;
}

/* === Perfect Composer Scrollbar === */
.composer.multiline textarea {
  max-height: 140px !important;
  overflow-y: auto !important;
  scrollbar-width: thin !important;
  scrollbar-color: #888888 #f1f1f1 !important;
  padding-right: 6px !important;
}
@media (max-width: 768px) {
  .composer.multiline textarea {
    max-height: 110px !important;
  }
}
.composer textarea::-webkit-scrollbar,
.composer.multiline textarea::-webkit-scrollbar {
  width: 6px !important;
  display: block !important;
}
.composer textarea::-webkit-scrollbar-track,
.composer.multiline textarea::-webkit-scrollbar-track {
  background: #f1f1f1 !important;
  border-radius: 3px !important;
}
.composer textarea::-webkit-scrollbar-thumb,
.composer.multiline textarea::-webkit-scrollbar-thumb {
  background: #888888 !important;
  border-radius: 3px !important;
}
.composer textarea::-webkit-scrollbar-thumb:hover,
.composer.multiline textarea::-webkit-scrollbar-thumb:hover {
  background: #555555 !important;
}


/* === Bulletproof Dark Code Blocks with 100% Text Legibility === */
.code-block-wrapper {
  position: relative !important;
  margin: 12px 0 !important;
  border-radius: 12px !important;
  background: #1e1e1e !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  overflow: hidden !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12) !important;
}
.code-block-wrapper pre {
  margin: 0 !important;
  padding: 14px 46px 14px 16px !important;
  background: transparent !important;
  border-radius: 12px !important;
  overflow-x: auto !important;
  font-family: 'Cascadia Code', Consolas, Monaco, monospace !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  color: #f3f4f6 !important;
}
.code-block-wrapper pre code,
.code-block-wrapper code,
.code-block-wrapper span {
  color: #f3f4f6 !important;
  font-family: inherit !important;
  font-size: inherit !important;
  background: transparent !important;
}
.code-copy-btn {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  width: 28px !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #d1d5db !important;
  cursor: pointer !important;
  transition: background 0.15s, color 0.15s !important;
  z-index: 2 !important;
}
.code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}
.code-copy-btn.copied {
  color: #10a37f !important;
  background: rgba(16, 163, 127, 0.25) !important;
}

/* === High-Contrast Prompt Navigation Minimap (Always Visible on Mobile & Desktop) === */
.prompt-nav-container {
  position: fixed !important;
  right: 6px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 70 !important;
  display: flex !important;
  flex-direction: row-reverse !important;
  align-items: center !important;
  gap: 8px !important;
  user-select: none !important;
  pointer-events: auto !important;
}
.prompt-nav-track {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: center !important;
  padding: 10px 5px !important;
  cursor: pointer !important;
  border-radius: 20px !important;
  background: rgba(230, 232, 238, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(0, 0, 0, 0.16) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  max-height: min(440px, 70vh) !important;
  min-height: 28px !important;
  outline: none !important;
  transition: all 0.18s ease !important;
  box-sizing: border-box !important;
}
.prompt-nav-track:hover {
  background: rgba(218, 221, 229, 0.98) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
  transform: scale(1.05) !important;
}
.prompt-nav-track:focus-visible {
  outline: 2px solid #2563eb !important;
  outline-offset: 2px !important;
}
.prompt-nav-bar {
  display: block !important;
  width: 14px !important;
  height: 3px;
  border-radius: 2px !important;
  background-color: #4b5563 !important;
  margin: 2.5px 0;
  transition: width 0.18s ease, background-color 0.18s ease !important;
  pointer-events: none !important;
  box-sizing: border-box !important;
}
.prompt-nav-bar.active {
  width: 20px !important;
  background-color: #111827 !important;
}

/* Floating outline popup card */
.prompt-nav-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.06) !important;
  padding: 8px !important;
  min-width: 190px !important;
  max-width: min(300px, calc(100vw - 32px)) !important;
  max-height: min(420px, 70vh) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent !important;
  box-sizing: border-box !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}
.prompt-nav-card::-webkit-scrollbar {
  width: 4px !important;
}
.prompt-nav-card::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2) !important;
  border-radius: 4px !important;
}
.prompt-nav-item {
  display: block !important;
  width: 100% !important;
  flex-shrink: 0 !important;
  min-height: 34px !important;
  height: auto !important;
  text-align: left !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-size: 13.5px !important;
  line-height: 1.45 !important;
  color: #1f2937 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  transition: background-color 0.15s, color 0.15s !important;
  box-sizing: border-box !important;
}
.prompt-nav-item:hover {
  background-color: #f3f4f6 !important;
  color: #111827 !important;
}
.prompt-nav-item.active {
  background-color: #e5e7eb !important;
  color: #111827 !important;
  font-weight: 600 !important;
}

/* Flash highlight animation for target message */
@keyframes promptTargetHighlight {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 163, 127, 0.4);
    transform: scale(1);
  }
  30% {
    box-shadow: 0 0 0 4px rgba(16, 163, 127, 0.25);
    transform: scale(1.008);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 163, 127, 0);
    transform: scale(1);
  }
}

.prompt-highlighted-msg .user-bubble {
  animation: promptTargetHighlight 1.4s ease-out !important;
}

/* Mobile specific tuning */
@media (max-width: 768px) {
  .prompt-nav-container {
    right: 3px !important;
  }
  .prompt-nav-track {
    padding: 10px 4px !important;
    background: rgba(220, 223, 230, 0.96) !important;
    border: 1px solid rgba(0, 0, 0, 0.18) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
  }
  .prompt-nav-bar {
    width: 15px !important;
  }
  .prompt-nav-bar.active {
    width: 22px !important;
    background-color: #000000 !important;
  }
}

/* === Document Fullscreen Modal === */
.doc-fullscreen-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: #ffffff !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  
}

@keyframes docFadeIn {
  from { opacity: 0; transform: scale(0.99); }
  to { opacity: 1; transform: scale(1); }
}

.doc-fullscreen-modal {
  background: #ffffff !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

@media (min-width: 769px) {
  .doc-fullscreen-backdrop {
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    padding: 24px !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .doc-fullscreen-modal {
    max-width: 860px !important;
    max-height: 90vh !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
  }
}

.doc-fullscreen-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 18px !important;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  flex-shrink: 0 !important;
}

.doc-fullscreen-title {
  display: flex !important;
  align-items: center !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #111827 !important;
}

.doc-fullscreen-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.doc-fullscreen-content {
  flex: 1 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 20px 20px 48px !important;
  max-width: 780px !important;
  margin: 0 auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
  font-size: 15.5px !important;
  line-height: 1.68 !important;
  color: #1a1a1a !important;
  background: #ffffff !important;
  word-break: break-word !important;
}

.doc-fullscreen-content p {
  margin: 0 0 14px !important;
}
.doc-fullscreen-content p:last-child {
  margin-bottom: 0 !important;
}
.doc-fullscreen-content ul,
.doc-fullscreen-content ol {
  margin: 0 0 14px !important;
  padding-left: 22px !important;
}
.doc-fullscreen-content li {
  margin-bottom: 6px !important;
}
.doc-fullscreen-content a {
  color: #2563eb !important;
  text-decoration: underline !important;
}

/* User asset card styles */
.user-image-card {
  position: relative !important;
  display: inline-block !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  max-width: 100% !important;
}
.user-image-card img {
  display: block !important;
  max-height: 200px !important;
  max-width: 100% !important;
  border-radius: 10px !important;
  object-fit: cover !important;
  cursor: pointer !important;
  transition: opacity 0.15s ease !important;
}
.user-image-card:hover img {
  opacity: 0.95 !important;
}
.user-asset-download-btn {
  position: absolute !important;
  right: 6px !important;
  bottom: 6px !important;
  background: rgba(17, 24, 39, 0.78) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 4px 8px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22) !important;
  transition: background-color 0.15s ease, transform 0.1s ease !important;
  z-index: 2 !important;
}
.user-asset-download-btn:hover {
  background: rgba(17, 24, 39, 0.92) !important;
  transform: scale(1.03) !important;
}
.user-file-card {
  transition: background 0.15s ease, transform 0.1s ease !important;
}
.user-file-card:hover {
  background: rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-1px) !important;
}

/* Desktop Fullscreen Button */
.desktop-fullscreen-btn {
  display: none !important;
}

@media (min-width: 769px) {
  .desktop-fullscreen-btn {
    position: fixed !important;
    top: 14px !important;
    right: 18px !important;
    z-index: 99 !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 9px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: #4b5563 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.15s ease !important;
    padding: 0 !important;
  }
  .desktop-fullscreen-btn:hover {
    background: #ffffff !important;
    color: #111827 !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    transform: scale(1.05) !important;
  }
  .desktop-fullscreen-btn:active {
    transform: scale(0.95) !important;
  }
}

/* ==========================================================================
   Clean & Perfect Mobile Adaptation for Phones & Telegram Mini App
   ========================================================================== */

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  html, body, #root {
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
    background: #ffffff !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .app-shell,
  .app-shell.sidebar-collapsed {
    width: 100vw !important;
    height: 100% !important;
    height: 100dvh !important;
    min-height: 100% !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .main-area {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    position: relative !important;
  }

  /* Chat container */
  .chat-container {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    position: relative !important;
  }

  /* Standard Clean Mobile Header */
  .mobile-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 10px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #f0f0f0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
  }

  .mobile-header-btn {
    width: 42px !important;
    height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    border: none !important;
    background: transparent !important;
    color: #1f2937 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
  }
  .mobile-header-btn:active {
    background: rgba(0, 0, 0, 0.06) !important;
  }

  .mobile-header-title {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .mobile-header-title .model-pill-trigger {
    height: 36px !important;
    padding: 0 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    border-radius: 18px !important;
    background: #f4f4f5 !important;
    border: none !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    color: #18181b !important;
    cursor: pointer !important;
  }
  .mobile-header-title .model-pill-trigger:active {
    background: #e4e4e7 !important;
  }

  /* Model Selector Popup on mobile */
  .model-popup-card {
    position: fixed !important;
    top: 58px !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateX(-50%) !important;
    width: min(320px, calc(100vw - 32px)) !important;
    background: #ffffff !important;
    border: 1px solid #e4e4e7 !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    z-index: 1200 !important;
    padding: 8px !important;
  }

  /* Empty chat screen */
  .empty-chat {
    width: 100% !important;
    height: calc(100% - 52px) !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px 16px max(16px, env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
  }
  .empty-center {
    width: 100% !important;
    max-width: 480px !important;
    transform: none !important;
    margin: auto 0 !important;
  }
  .empty-center h1 {
    font-size: 24px !important;
    font-weight: 600 !important;
    margin: 0 0 24px !important;
    text-align: center !important;
    color: #18181b !important;
    letter-spacing: -0.3px !important;
  }

  /* Conversation view */
  .conversation {
    width: 100% !important;
    height: calc(100% - 52px) !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    overflow: hidden !important;
  }
  .message-scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    padding: 12px 14px calc(115px + max(12px, env(safe-area-inset-bottom, 0px))) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Composer bar on mobile */
  .conversation-composer {
    position: absolute !important;
    inset: auto 0 0 !important;
    padding: 0 12px max(12px, env(safe-area-inset-bottom, 0px)) !important;
    background: linear-gradient(0deg, #ffffff 80%, rgba(255, 255, 255, 0)) !important;
    z-index: 20 !important;
  }

  /* Sidebar drawer on mobile */
  .sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: min(290px, 80vw) !important;
    z-index: 1000 !important;
    background: #ffffff !important;
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.22) !important;
    padding: 14px 10px max(14px, env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box !important;
  }

  /* Canvas header */
  .canvas-header {
    padding: 10px 14px !important;
  }

  /* Library container */
  .library-container {
    height: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }
}
