@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/w9NrSYFEBKTDKpLKfNkCGD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5hCIszhCM8URGBqImoWjpvpt1ebu/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{text-indent:0;text-rendering:auto;font:1.21em/1.2 KaTeX_Main,Times New Roman,serif;position:relative}.katex *{border-color:currentColor;-ms-high-contrast-adjust:none!important}.katex .katex-version:after{content:"0.16.45"}.katex .katex-mathml{clip:rect(1px,1px,1px,1px);border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.katex .katex-html>.newline{display:block}.katex .base{white-space:nowrap;width:min-content;position:relative}.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;table-layout:fixed;display:inline-table}.katex .vlist-r{display:table-row}.katex .vlist{vertical-align:bottom;display:table-cell;position:relative}.katex .vlist>span{height:0;display:block;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{width:0;overflow:hidden}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{vertical-align:bottom;width:2px;min-width:2px;font-size:1px;display:table-cell}.katex .vbox{flex-direction:column;align-items:baseline;display:inline-flex}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{flex-direction:row;display:inline-flex}.katex .thinbox{width:0;max-width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;width:100%;display:inline-block}.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{line-height:0;display:inline}.katex .clap,.katex .llap,.katex .rlap{width:0;position:relative}.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;width:100%;display:inline-block}.katex .hdashline{border-bottom-style:dashed;width:100%;display:inline-block}.katex .sqrt>.root{margin-left:.277778em;margin-right:-.555556em}.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:.833333em}.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.16667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.33333em}.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.66667em}.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.45667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.14667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.714286em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.857143em}.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.14286em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.28571em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.42857em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.71429em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.05714em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.46857em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.96286em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.55429em}.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:.555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.888889em}.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.11111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.33333em}.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.30444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.76444em}.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:.416667em}.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:.583333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.666667em}.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:.833333em}.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.72833em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.07333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.347222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.416667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.486111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.555556em}.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:.694444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.833333em}.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.44028em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.72778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.289352em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.347222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.405093em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.462963em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.520833em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.578704em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.694444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.833333em}.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.20023em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.43981em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.24108em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.289296em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.337512em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.385728em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.433944em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.48216em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.578592em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.694311em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.833173em}.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.19961em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.200965em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.241158em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.281351em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.321543em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.361736em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.401929em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.482315em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.578778em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.694534em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.833601em}.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{width:.12em;display:inline-block}.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{min-width:1px;display:inline-block}.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;height:inherit;width:100%;display:block;position:absolute}.katex svg path{stroke:none}.katex svg{fill-rule:nonzero;fill-opacity:1;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.katex img{border-style:none;min-width:0;max-width:none;min-height:0;max-height:none}.katex .stretchy{width:100%;display:block;position:relative;overflow:hidden}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{width:100%;position:relative;overflow:hidden}.katex .halfarrow-left{width:50.2%;position:absolute;left:0;overflow:hidden}.katex .halfarrow-right{width:50.2%;position:absolute;right:0;overflow:hidden}.katex .brace-left{width:25.1%;position:absolute;left:0;overflow:hidden}.katex .brace-center{width:50%;position:absolute;left:25%;overflow:hidden}.katex .brace-right{width:25.1%;position:absolute;right:0;overflow:hidden}.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{box-sizing:border-box;border:.04em solid}.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{box-sizing:border-box;border-top:.049em solid;border-right:.049em solid;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{text-align:left;display:inline-block;position:absolute;right:calc(50% + .3em)}.katex .cd-label-right{text-align:right;display:inline-block;position:absolute;left:calc(50% + .3em)}.katex-display{text-align:center;margin:1em 0;display:block}.katex-display>.katex{text-align:center;white-space:nowrap;display:block}.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{text-align:left;padding-left:2em}body{counter-reset:katexEqnNo mmlEqnNo}.message-wrapper{flex-direction:column;min-width:0;max-width:90%}.message-wrapper.user{align-self:flex-end}.message-wrapper.ai{align-self:flex-start}.message{word-wrap:break-word;overflow-wrap:break-word;word-break:break-word;border-radius:18px;padding:16px 20px;font-size:1rem;line-height:1.6;overflow:hidden}.message.user{background:var(--user-msg-bg);color:#fff;border-bottom-right-radius:4px;box-shadow:0 10px 15px -3px #3b82f64d}.message.ai{background:var(--ai-msg-bg);border:1px solid var(--glass-border);border-bottom-left-radius:4px}.message p{margin-bottom:.75rem}.message p:last-child{margin-bottom:0}.message ul,.message ol{margin-bottom:.75rem;padding-left:1.5rem}.message li{margin-bottom:.25rem}.message h1,.message h2,.message h3{color:#60a5fa;margin-top:1rem;margin-bottom:.5rem;font-weight:600}.message pre{background:#0000004d;border:1px solid #ffffff0d;border-radius:8px;margin-bottom:.75rem;padding:12px;overflow-x:auto}.message code{color:#fca5a5;background:#0003;border-radius:4px;padding:2px 4px;font-family:Fira Code,monospace;font-size:.9em}.message pre code{color:#e2e8f0;background:0 0;padding:0}.message .katex-display{margin:0;padding:10px 0;overflow:auto hidden}.message .katex{max-width:100%}.message blockquote{color:#cbd5e1;background:#0f172a73;border-left:3px solid #38bdf8;border-radius:8px;margin:10px 0;padding:10px 14px;font-size:.92rem;line-height:1.6}.ai-thinking-accordion{transition:all .2s}.ai-thinking-accordion summary{list-style:none}.ai-thinking-accordion summary::-webkit-details-marker{display:none}.table-responsive{border:1px solid var(--glass-border);-webkit-overflow-scrolling:touch;background:#0f172a66;border-radius:14px;width:100%;margin:18px 0;overflow-x:auto;box-shadow:0 8px 16px -4px #00000040}body.light-mode .table-responsive{background:#fff9;border-color:#00000014;box-shadow:0 4px 12px -2px #0000000d}.table-responsive::-webkit-scrollbar{height:6px}.table-responsive::-webkit-scrollbar-track{background:0 0}.table-responsive::-webkit-scrollbar-thumb{background-color:#ffffff26;border-radius:20px}body.light-mode .table-responsive::-webkit-scrollbar-thumb{background-color:#0000001f}.table-responsive table{border-collapse:collapse;text-align:left;width:100%;font-size:.9rem}.table-responsive th{color:#60a5fa;border-bottom:1px solid var(--glass-border);white-space:nowrap;letter-spacing:.5px;background:#3b82f626;padding:12px 18px;font-weight:600}body.light-mode .table-responsive th{color:#1d4ed8;background:#3b82f614;border-bottom:1px solid #00000014}.table-responsive td{color:var(--text-primary);vertical-align:top;border-bottom:1px solid #ffffff0d;min-width:140px;padding:14px 18px;line-height:1.6}.table-responsive td strong{color:#f87171}body.light-mode .table-responsive td strong{color:#dc2626}body.light-mode .table-responsive td{border-bottom:1px solid #0000000a}.table-responsive tr:last-child td{border-bottom:none}.table-responsive tr:nth-child(2n){background:#ffffff04}.table-responsive tr:hover{background:#ffffff08}body.light-mode .table-responsive tr:nth-child(2n){background:#00000001}body.light-mode .table-responsive tr:hover{background:#00000004}.mermaid-wrapper{border:1px solid var(--glass-border);background:#ffffffd9;border-radius:12px;margin:15px 0;padding:16px;overflow-x:auto}.mermaid-wrapper svg{min-width:100%;max-width:none!important;height:auto!important}.mermaid-download-btn{color:#0369a1;cursor:pointer;background:#0369a11f;border:1px solid #0369a159;border-radius:6px;align-items:center;gap:6px;margin-top:12px;padding:6px 14px;font-size:12px;transition:background .2s;display:inline-flex}.mermaid-download-btn:hover{background:#0369a138}.light-mode .mermaid-wrapper{background:#f0f8ffcc;border:1px solid #0000001a}.uploaded-image{border:1px solid var(--glass-border);object-fit:cover;border-radius:12px;max-width:260px;max-height:200px;margin-bottom:8px}.sources-container{flex-direction:column;gap:8px;margin-top:12px;display:flex}.sources-label{color:#94a3b8;margin-top:4px;margin-bottom:2px;margin-left:4px;font-size:12px}.source-card{cursor:default;background:#0003;border:1px solid #ffffff0d;border-radius:12px;padding:12px;font-size:.85rem;transition:transform .2s,background .2s}.source-card:hover{background:#ffffff0d;transform:translateY(-2px)}.source-header{color:#60a5fa;align-items:center;gap:8px;margin-bottom:6px;font-weight:500;display:flex}.source-text{color:var(--text-secondary);-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.input-container{border-top:1px solid var(--glass-border);background:#0f172a80;padding:20px 24px}.input-form{border:1px solid var(--glass-border);background:#0003;border-radius:28px;align-items:flex-end;gap:10px;width:100%;padding:6px 10px;transition:border-color .3s,box-shadow .3s;display:flex}.input-form:focus-within{border-color:#60a5fa80;box-shadow:0 0 0 2px #3b82f633}.chat-textarea{color:var(--text-primary);resize:none;background:0 0;border:none;outline:none;flex:1;align-self:center;min-height:24px;max-height:120px;padding:8px 12px;font-family:inherit;font-size:1rem;line-height:1.5;overflow-y:auto}.chat-textarea::placeholder{color:#ffffff4d;font-size:.95rem}body.light-mode .chat-textarea{color:#0f172a}body.light-mode .chat-textarea::placeholder{color:#0006}.send-btn{background:var(--accent-color);color:#fff;cursor:pointer;border:none;border-radius:99px;flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;transition:background .2s,transform .1s;display:flex}.send-btn:hover:not(:disabled){background:var(--accent-hover)}.send-btn:active:not(:disabled){transform:scale(.95)}.send-btn:disabled{color:#ffffff4d;cursor:not-allowed;background:#ffffff1a}.voice-btn{background:var(--accent-color);color:#fff;border-color:var(--accent-color)}.voice-btn:hover{background:var(--accent-hover);color:#fff}.auto-read-btn.active{background:var(--accent-color)!important;color:#fff!important;border-color:var(--accent-color)!important}.auto-read-btn.active:hover{background:var(--accent-hover)!important}.icon-btn{border:1px solid var(--glass-border);color:var(--text-secondary);cursor:pointer;background:#ffffff14;border-radius:99px;flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;transition:background .2s,transform .1s,color .2s;display:flex}.icon-btn:hover{color:#fff;background:#ffffff26}.voice-btn.listening{color:#f87171;background:#ef44444d;border-color:#ef4444b3;animation:1s infinite pulse}.image-preview-bar{border-top:1px solid var(--glass-border);background:#3b82f60d;align-items:center;gap:12px;padding:10px 24px;display:flex}.preview-thumb{object-fit:cover;border:1px solid var(--glass-border);border-radius:8px;width:48px;height:48px}.preview-label{color:var(--text-secondary);flex:1;font-size:.8rem}.image-preview-bar .clear-image-btn{color:#fff;cursor:pointer;background:#ffffff1a;border:none;border-radius:99px;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;font-size:12px;transition:background .2s;display:flex}.image-preview-bar .clear-image-btn:hover{background:#fff3}.typing-indicator{background:var(--ai-msg-bg);border:1px solid var(--glass-border);border-radius:18px 18px 18px 4px;align-self:flex-start;gap:4px;width:fit-content;padding:16px 20px;display:flex}.dot{background:#60a5fa;border-radius:50%;width:8px;height:8px;animation:1.4s ease-in-out infinite both bounce}.dot:first-child{animation-delay:-.32s}.dot:nth-child(2){animation-delay:-.16s}.msg-slide-in{animation:.28s ease-out forwards slideUp}@keyframes slideUp{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}@keyframes pulse{0%,to{box-shadow:0 0 #ef444466}50%{box-shadow:0 0 0 8px #ef444400}}@media (width<=600px){.app-container{border-radius:0;width:100%;height:100dvh}.header{flex-wrap:wrap;padding:12px 16px}.header h1{font-size:1.1rem}.header-subtitle{display:none}.header-controls{justify-content:flex-start;width:100%;margin-top:4px}.message{max-width:90%;font-size:.95rem}.input-form input{font-size:1rem}.grade-selector{padding:6px 24px 6px 8px;font-size:.75rem}.source-card{width:100%}}.tts-btn{border:1px solid var(--glass-border);color:var(--text-secondary);cursor:pointer;background:#ffffff1a;border-radius:20px;align-items:center;gap:6px;margin-top:12px;padding:4px 12px;font-size:.85rem;transition:all .2s;display:inline-flex}.tts-btn:hover{color:#60a5fa;background:#3b82f633;border-color:#3b82f6}.tts-btn.playing{color:#60a5fa;background:#3b82f633;border-color:#3b82f6;animation:1.5s infinite pulse-border}@keyframes pulse-border{0%{box-shadow:0 0 #3b82f666}70%{box-shadow:0 0 0 4px #3b82f600}to{box-shadow:0 0 #3b82f600}}@keyframes scaleIn{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}.quick-hints-bar{scrollbar-width:none;-webkit-overflow-scrolling:touch;gap:8px;padding:6px 14px;display:flex;overflow-x:auto}.quick-hints-bar::-webkit-scrollbar{display:none}.quick-hint-chip{border:1px solid var(--glass-border);color:var(--text-color,#e2e8f0);cursor:pointer;white-space:nowrap;-webkit-user-select:none;user-select:none;background:#ffffff0f;border-radius:16px;align-items:center;gap:4px;padding:5px 12px;font-size:.8rem;transition:all .2s;display:inline-flex}.quick-hint-chip:hover{background:var(--accent-color,#3b82f6);color:#fff;border-color:var(--accent-color,#3b82f6);transform:translateY(-1px);box-shadow:0 2px 8px #3b82f64d}.scaffold-card-header{transition:transform .2s,box-shadow .2s}.scaffold-card-header:hover{transform:translate(2px)}.welcome-dashboard{flex-direction:column;gap:16px;max-width:860px;margin:12px auto 24px;padding:0 16px;animation:.3s cubic-bezier(.16,1,.3,1) scaleIn;display:flex}.welcome-hero-card{border:1px solid var(--glass-border);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:linear-gradient(135deg,#1e293bb3 0%,#0f172acc 100%);border-radius:20px;padding:22px 24px;position:relative;overflow:hidden;box-shadow:0 8px 30px #0003}.welcome-badge{color:#34d399;background:#10b98126;border:1px solid #10b9814d;border-radius:12px;align-items:center;gap:6px;margin-bottom:10px;padding:4px 10px;font-size:.75rem;font-weight:600;display:inline-flex}.live-dot{background-color:#10b981;border-radius:50%;width:7px;height:7px;animation:2s infinite pulse-border;box-shadow:0 0 8px #10b981}.welcome-title{color:var(--text-color,#f8fafc);letter-spacing:-.02em;margin:0 0 6px;font-size:1.45rem;font-weight:700}.welcome-subtitle{color:var(--text-secondary,#94a3b8);margin:0 0 12px;font-size:.92rem}.highlight-tag{color:#60a5fa;font-weight:600}.stage-feature-pill{color:#bfdbfe;background:#3b82f61a;border-left:3px solid #3b82f6;border-radius:8px;align-items:center;gap:8px;padding:8px 14px;font-size:.85rem;display:flex}.stage-switch-container{flex-direction:column;gap:8px;display:flex}.stage-switch-label{color:var(--text-secondary,#94a3b8);padding-left:4px;font-size:.82rem;font-weight:600}.stage-switch-pills{flex-wrap:wrap;gap:8px;display:flex}.stage-pill{border:1px solid var(--glass-border);color:var(--text-secondary,#cbd5e1);cursor:pointer;background:#ffffff0d;border-radius:20px;padding:6px 14px;font-size:.83rem;font-weight:500;transition:all .2s}.stage-pill:hover{color:#fff;background:#ffffff1a;transform:translateY(-1px)}.stage-pill.active{background:var(--accent-color,#3b82f6);color:#fff;border-color:var(--accent-color,#3b82f6);box-shadow:0 2px 10px #3b82f666}.primary-camera-card{cursor:pointer;background:linear-gradient(135deg,#3b82f62e 0%,#8b5cf638 100%);border:1.5px solid #8b5cf673;border-radius:18px;align-items:center;gap:16px;padding:18px 22px;transition:all .25s cubic-bezier(.16,1,.3,1);display:flex;position:relative;overflow:hidden;box-shadow:0 4px 20px #6366f126}.primary-camera-card:hover{background:linear-gradient(135deg,#3b82f640 0%,#8b5cf652 100%);border-color:#a855f7;transform:translateY(-2px);box-shadow:0 8px 30px #a855f74d}.camera-icon-wrapper{background:linear-gradient(135deg,#3b82f6 0%,#8b5cf6 100%);border-radius:16px;flex-shrink:0;justify-content:center;align-items:center;width:52px;height:52px;display:flex;position:relative;box-shadow:0 4px 14px #6366f166}.camera-big-icon{z-index:2;font-size:26px;position:relative}.camera-card-content{flex:1}.camera-card-title{color:#fff;align-items:center;gap:8px;margin-bottom:4px;font-size:1.05rem;font-weight:700;display:flex}.rec-badge{color:#000;letter-spacing:.05em;background:#f59e0b;border-radius:6px;padding:1px 6px;font-size:.68rem;font-weight:800}.camera-card-desc{color:#ffffffd9;font-size:.83rem;line-height:1.45}.camera-card-arrow{color:#c084fc;background:#ffffff1a;border-radius:12px;flex-shrink:0;align-items:center;gap:4px;padding:8px 14px;font-size:.85rem;font-weight:600;transition:all .2s;display:flex}.primary-camera-card:hover .camera-card-arrow{color:#fff;background:#fff3;transform:translate(3px)}.welcome-action-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;display:grid}.action-card{border:1px solid var(--glass-border);cursor:pointer;background:#ffffff0a;border-radius:16px;flex-direction:column;justify-content:space-between;padding:16px 18px;transition:all .2s;display:flex}.action-card:hover{background:#ffffff14;border-color:#ffffff40;transform:translateY(-2px);box-shadow:0 4px 16px #0003}.action-card-header{align-items:center;gap:8px;margin-bottom:6px;display:flex}.action-card-icon{font-size:1.25rem}.action-card-name{color:var(--text-color,#f8fafc);font-size:.95rem;font-weight:700}.action-card-desc{color:var(--text-secondary,#94a3b8);margin:0 0 12px;font-size:.8rem;line-height:1.4}.action-card-cta{color:#60a5fa;align-self:flex-start;font-size:.8rem;font-weight:600}.mist-card:hover{border-color:#f59e0b}.mist-card:hover .action-card-cta{color:#fbbf24}.map-card:hover{border-color:#10b981}.map-card:hover .action-card-cta{color:#34d399}.exam-card:hover{border-color:#8b5cf6}.exam-card:hover .action-card-cta{color:#a78bfa}.welcome-footer-banner{border:1px dashed var(--glass-border);background:#ffffff05;border-radius:14px;flex-direction:column;gap:8px;padding:12px 18px;display:flex}.footer-tip-item{color:var(--text-secondary,#94a3b8);align-items:center;gap:8px;font-size:.8rem;display:flex}.footer-tip-item strong{color:var(--text-color,#e2e8f0)}@media (width<=640px){.welcome-dashboard{padding:0 8px}.primary-camera-card{text-align:center;flex-direction:column;gap:12px}.camera-card-title{justify-content:center}.camera-card-arrow{justify-content:center;width:100%}}body.eink-mode{--bg-primary:#fff!important;--bg-secondary:#f9f9f9!important;--text-color:#000!important;--text-secondary:#222!important;--glass-bg:#fff!important;--glass-border:#000!important;--user-msg-bg:#fff!important;--ai-msg-bg:#f5f5f5!important;--accent-color:#000!important;--accent-hover:#333!important;color:#000!important;background:#fff!important}body.eink-mode *,body.eink-mode :before,body.eink-mode :after{box-shadow:none!important;text-shadow:none!important;-webkit-backdrop-filter:none!important;transition:none!important;animation:none!important}body.eink-mode .header{color:#000!important;background:#fff!important;border-bottom:2px solid #000!important}body.eink-mode .header-icon,body.eink-mode .header-text h1,body.eink-mode .header-subtitle{color:#000!important}body.eink-mode .grade-selector,body.eink-mode button,body.eink-mode .input-bar button,body.eink-mode select{color:#000!important;background:#fff!important;border:1.5px solid #000!important;font-weight:700!important}body.eink-mode button:active,body.eink-mode .active-tag,body.eink-mode .btn-active{color:#fff!important;background:#000!important}body.eink-mode .message.user{color:#000!important;background:#fff!important;border:2px solid #000!important}body.eink-mode .message.ai{color:#000!important;background:#f7f7f7!important;border:1.5px solid #333!important}body.eink-mode .message p,body.eink-mode .message li,body.eink-mode .message h1,body.eink-mode .message h2,body.eink-mode .message h3,body.eink-mode .message span{color:#000!important}body.eink-mode .katex{color:#000!important;font-weight:600!important}body.eink-mode .input-bar{background:#fff!important;border-top:2px solid #000!important}body.eink-mode .chat-input{color:#000!important;background:#fff!important;border:1.5px solid #000!important}body.eink-mode .welcome-dashboard,body.eink-mode .primary-camera-card,body.eink-mode .action-dashboard-card,body.eink-mode .welcome-footer-banner{color:#000!important;background:#fff!important;border:2px solid #000!important}.mistake-btn{border:1px solid var(--accent-color);color:var(--accent-color);cursor:pointer;background:#3b82f633;border-radius:20px;margin:10px 0;padding:6px 14px;font-size:.85rem;transition:all .2s}.mistake-btn:hover{background:var(--accent-color);color:#fff}.mistake-overlay{background:var(--overlay-bg);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);z-index:1000;justify-content:center;align-items:center;width:100%;height:100%;padding:20px;display:flex;position:fixed;top:0;left:0}.mistake-modal{background:var(--card-bg);border:1px solid var(--glass-border);border-radius:20px;flex-direction:column;width:100%;max-width:700px;max-height:80vh;display:flex;overflow:hidden;box-shadow:0 25px 50px -12px #00000080}.mistake-header{border-bottom:1px solid var(--glass-border);justify-content:space-between;align-items:center;padding:20px;display:flex}.mistake-header h2{color:#60a5fa;font-size:1.2rem}.close-btn{color:var(--text-secondary);cursor:pointer;background:0 0;border:none;font-size:24px}.mistake-content{flex-direction:column;flex:1;gap:20px;padding:20px;display:flex;overflow-y:auto}.mistake-item{border:1px solid var(--glass-border);background:#0003;border-radius:12px;padding:16px}.mistake-meta{gap:10px;margin-bottom:10px;font-size:.8rem;display:flex}.grade-tag{color:#fff;background:#3b82f6;border-radius:4px;padding:2px 8px}.time-tag{color:var(--text-secondary)}.mistake-query{color:#f8fafc;margin-bottom:8px}.mistake-answer{color:#94a3b8;white-space:pre-wrap;font-size:.9rem;line-height:1.5}.loading-text,.empty-text{text-align:center;color:var(--text-secondary);padding:40px}body.light-mode{--bg-color:#f1f5f9;--text-primary:#0f172a;--text-secondary:#475569;--glass-bg:#ffffffd9;--glass-border:#0000001a;--ai-msg-bg:#fffffff2;--user-msg-bg:linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);--input-bg:#ffffffe6;--card-bg:#fff;--overlay-bg:#fffc}body.light-mode .chat-message.ai{color:#0f172a;box-shadow:0 4px 6px -1px #0000001a}body.light-mode .input-bar{color:#0f172a}body.light-mode .header{color:#0f172a;background:#fffc}body.light-mode .mistake-modal h2{color:#3b82f6!important}body.light-mode .mistake-item{color:#0f172a;background:#f8fafc;border:1px solid #e2e8f0}.mermaid-loading-placeholder{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);text-align:center;background:#ffffff08;border:1px dashed #38bdf840;border-radius:16px;flex-direction:column;justify-content:center;align-items:center;gap:12px;margin:16px 0;padding:30px;transition:all .3s;animation:2s ease-in-out infinite pulse-glowing;display:flex}body.light-mode .mermaid-loading-placeholder{background:#3b82f608;border:1px dashed #3b82f640}.mermaid-loading-placeholder .brain-icon{filter:drop-shadow(0 0 8px #38bdf866);font-size:32px;animation:4s linear infinite spin-slow}.mermaid-loading-placeholder .title{color:#38bdf8;letter-spacing:.5px;font-size:15px;font-weight:600}body.light-mode .mermaid-loading-placeholder .title{color:#2563eb}.mermaid-loading-placeholder .subtitle{color:var(--text-secondary);opacity:.8;font-size:12px}@keyframes pulse-glowing{0%{opacity:.95;transform:scale(.99);box-shadow:inset 0 0 10px #38bdf80d}50%{opacity:1;transform:scale(1.01);box-shadow:inset 0 0 20px #38bdf81f}to{opacity:.95;transform:scale(.99);box-shadow:inset 0 0 10px #38bdf80d}}@keyframes spin-slow{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.learning-map-overlay{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);z-index:999;background:#0f172abf;justify-content:center;align-items:center;width:100%;height:100%;padding:24px;display:flex;position:fixed;top:0;left:0}.learning-map-container{background:#1e293bb3;border:1px solid #ffffff1a;border-radius:24px;flex-direction:column;width:100%;max-width:800px;height:90vh;display:flex;position:relative;overflow:hidden;box-shadow:0 30px 60px -15px #0009}body.light-mode .learning-map-container{background:#ffffffd9;border-color:#0000001a;box-shadow:0 30px 60px -15px #0003}.learning-map-header{border-bottom:1px solid var(--glass-border);background:#0f172a33;justify-content:space-between;align-items:flex-start;padding:24px 32px;display:flex}.header-info .map-badge{color:#fff;background:linear-gradient(135deg,#a855f7 0%,#3b82f6 100%);border-radius:12px;margin-bottom:8px;padding:4px 10px;font-size:.75rem;font-weight:600;display:inline-block}.header-info h2{color:#fff;margin:0 0 6px;font-size:1.5rem;font-weight:700}body.light-mode .header-info h2{color:#0f172a}.header-info .subtitle{color:var(--text-secondary);margin:0;font-size:.9rem}.close-map-btn{border:1px solid var(--glass-border);color:#fff;cursor:pointer;background:#ffffff14;border-radius:50%;justify-content:center;align-items:center;width:36px;height:36px;transition:all .2s;display:flex}body.light-mode .close-map-btn{color:#0f172a;background:#0000000d}.close-map-btn:hover{color:#ef4444;background:#ef444433;border-color:#ef4444}.map-road-wrapper{flex:1;padding:40px;position:relative;overflow-y:auto}.map-road{width:100%;max-width:600px;margin:0 auto;position:relative}.road-path-svg{pointer-events:none;z-index:1;width:100%;height:100%;position:absolute;top:0;left:0}.map-node-container{z-index:2;width:45%;transition:transform .3s;position:absolute}.node-left{left:5%}.node-right{right:5%}.map-island-card{cursor:pointer;background:#1e293b99;border:1px solid #ffffff14;border-radius:20px;padding:16px 20px;transition:all .3s;box-shadow:0 10px 25px -5px #0000004d}body.light-mode .map-island-card{background:#ffffffd9;border-color:#00000014;box-shadow:0 10px 25px -5px #0000000d}.unlocked .map-island-card:hover{border-color:#60a5fa66;transform:translateY(-5px);box-shadow:0 15px 30px -10px #3b82f666}.locked .map-island-card{opacity:.55;cursor:not-allowed;filter:grayscale()}.island-header{justify-content:space-between;margin-bottom:8px;display:flex}.island-step{color:#38bdf8;text-transform:uppercase;font-size:.75rem;font-weight:600}.island-difficulty{color:#f59e0b;font-size:.75rem}.island-title{color:#fff;margin:0 0 6px;font-size:1rem;font-weight:700;line-height:1.4}body.light-mode .island-title{color:#0f172a}.island-desc{color:var(--text-secondary);margin:0 0 12px;font-size:.8rem;line-height:1.4}.island-footer{justify-content:flex-end;display:flex}.island-action-btn{color:#60a5fa;background:#3b82f626;border-radius:8px;padding:4px 10px;font-size:.8rem;font-weight:600;transition:all .2s}.island-locked-text{color:var(--text-secondary);font-size:.8rem}.map-loading,.map-empty{text-align:center;color:var(--text-secondary);flex-direction:column;flex:1;justify-content:center;align-items:center;padding:40px;display:flex}.spinner{border:3px solid #ffffff1a;border-top-color:#3b82f6;border-radius:50%;width:40px;height:40px;margin-bottom:16px;animation:1s ease-in-out infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.parent-gate-overlay{-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);z-index:1001;background:#0f172acc;justify-content:center;align-items:center;width:100%;height:100%;padding:20px;display:flex;position:fixed;top:0;left:0}.parent-gate-card{text-align:center;background:#1e293bcc;border:1px solid #ffffff1f;border-radius:28px;width:100%;max-width:380px;padding:32px 24px;position:relative;box-shadow:0 25px 50px -12px #00000080}body.light-mode .parent-gate-card{background:#fffffff2;border-color:#0000001f;box-shadow:0 25px 50px -12px #0000001a}.gate-close-btn{color:var(--text-secondary);cursor:pointer;background:0 0;border:none;font-size:20px;transition:color .2s;position:absolute;top:16px;right:16px}.gate-close-btn:hover{color:#ef4444}.gate-header{margin-bottom:24px}.gate-shield-icon{filter:drop-shadow(0 0 8px #3b82f64d);margin-bottom:12px;font-size:40px;display:block}.gate-header h3{color:#fff;margin:0 0 6px;font-size:1.3rem;font-weight:700}body.light-mode .gate-header h3{color:#0f172a}.gate-header .reason-text{color:#f59e0b;margin:0 0 4px;font-size:.85rem}.gate-header .sub-text{color:var(--text-secondary);margin:0;font-size:.8rem}.pin-display-container{flex-direction:column;justify-content:center;align-items:center;height:48px;margin-bottom:24px;display:flex}.pin-dots{gap:16px;display:flex}.pin-dot{border:2px solid #ffffff4d;border-radius:50%;width:14px;height:14px;transition:all .2s}body.light-mode .pin-dot{border-color:#0003}.pin-dot.filled{background:#3b82f6;border-color:#3b82f6;box-shadow:0 0 8px #3b82f6}.pin-dot.error{background:#ef4444;border-color:#ef4444;box-shadow:0 0 8px #ef4444}.error-message-text{color:#ef4444;margin-top:8px;font-size:.75rem}.numpad-grid{grid-template-columns:repeat(3,1fr);gap:12px;max-width:270px;margin:0 auto 24px;display:grid}.numpad-btn{color:#fff;aspect-ratio:1;cursor:pointer;background:#ffffff0f;border:1px solid #ffffff14;border-radius:50%;justify-content:center;align-items:center;font-size:1.3rem;font-weight:600;transition:all .15s;display:flex}body.light-mode .numpad-btn{color:#0f172a;background:#0000000a;border-color:#0000000d}.numpad-btn:hover{background:#ffffff1f;transform:scale(1.05)}body.light-mode .numpad-btn:hover{background:#00000014}.numpad-btn:active{background:#3b82f633;transform:scale(.95)}.numpad-btn.control-btn{color:var(--text-secondary);background:0 0;border:none;font-size:1rem}.numpad-btn.control-btn:hover{background:#ffffff0d}body.light-mode .numpad-btn.control-btn:hover{background:#00000008}.gate-footer .tip-text{color:var(--text-secondary);margin:0;font-size:.7rem;line-height:1.4}.animate-float{animation:4s ease-in-out infinite float-island}@keyframes float-island{0%,to{transform:translateY(0)}50%{transform:translateY(-8px)}}.shake-error{animation:.3s ease-in-out shake}@keyframes shake{0%,to{transform:translate(0)}20%,60%{transform:translate(-6px)}40%,80%{transform:translate(6px)}}.animate-fade-in{animation:.4s cubic-bezier(.16,1,.3,1) forwards fadeIn}.animate-scale-in{animation:.4s cubic-bezier(.34,1.56,.64,1) forwards scaleIn}@keyframes fadeIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@media (width<=600px){.learning-map-overlay{padding:12px}.learning-map-container{border-radius:18px;height:95vh}.learning-map-header{padding:16px 20px}.learning-map-header h2{font-size:1.2rem}.map-road-wrapper{padding:20px 10px}.map-node-container{width:90%;margin:0 auto 24px!important;position:relative!important;top:0!important;left:0!important;right:0!important}.road-path-svg{display:none}.map-island-card{padding:14px 16px}.island-title{font-size:.95rem}.map-road{flex-direction:column;display:flex;height:auto!important}.map-road>div{height:auto!important}}@media print{.header,.action-bar,.chat-container,.input-container,.offline-banner,.no-print,.close-btn,.close-map-btn,.mermaid-download-btn{display:none!important}.only-print{display:block!important}html,body{color:#000!important;background:#fff!important;height:auto!important;min-height:100%!important;margin:0!important;padding:0!important;overflow:visible!important}.app-container{height:auto!important;min-height:auto!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;background:0 0!important;border:none!important;margin:0!important;padding:0!important;display:block!important;overflow:visible!important}body{display:block!important}.mistake-overlay{top:0;left:0;color:#000!important;background:#fff!important;width:100%!important;height:auto!important;padding:0!important;display:block!important;position:relative!important}.mistake-modal{box-shadow:none!important;color:#000!important;background:#fff!important;border:none!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;padding:0!important;display:block!important;position:relative!important}.mistake-content,.test-content-outer,.test-content-inner{flex:none!important;height:auto!important;max-height:none!important;padding-right:0!important;display:block!important;overflow:visible!important}.no-print,.close-btn,.close-map-btn,.mermaid-download-btn{display:none!important}.mistake-item{break-inside:avoid;color:#000!important;background:#fff!important;border:1px solid #ccc!important;margin-bottom:20px!important;padding:15px!important}.mistake-query{color:#000!important;font-weight:700!important}.mistake-answer{color:#333!important}.test-blank-space{background:0 0!important;border-color:#999!important}.mermaid-wrapper{break-inside:avoid;box-shadow:none!important;background:#fff!important;border:none!important;margin:20px 0!important;padding:0!important}.mistake-overlay input[type=text],.mistake-overlay textarea,.mistake-overlay select{color:#000!important;box-shadow:none!important;background:#fff!important;border:1px solid #999!important}.mistake-overlay div[style*=background]{color:#000!important;background:#f3f4f6!important;border:1px solid #ddd!important}.mistake-overlay button{color:#000!important;background:0 0!important;border-color:#999!important}}:root{--bg-color:#030712;--text-primary:#f8fafc;--text-secondary:#94a3b8;--accent-color:#3b82f6;--accent-hover:#2563eb;--glass-bg:#111827a6;--glass-border:#ffffff14;--user-msg-bg:linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);--ai-msg-bg:#1e293b80;--card-bg:#1e293b;--overlay-bg:#000c}*{box-sizing:border-box;margin:0;padding:0}body{background-color:var(--bg-color);color:var(--text-primary);background-image:radial-gradient(circle at 15%,#3b82f62e,#0000 25%),radial-gradient(circle at 85% 30%,#8b5cf62e,#0000 25%),radial-gradient(circle at 50% 90%,#10b9811f,#0000 25%);background-attachment:fixed;justify-content:center;align-items:center;height:100dvh;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;display:flex;overflow:hidden}#root{justify-content:center;align-items:center;width:100%;height:100%;display:flex}.app-container{background:var(--glass-bg);-webkit-backdrop-filter:blur(24px);border:1px solid var(--glass-border);border-radius:28px;flex-direction:column;width:95%;max-width:1080px;height:94dvh;transition:all .3s cubic-bezier(.4,0,.2,1);display:flex;position:relative;overflow:hidden;box-shadow:0 30px 60px -15px #000000b3,inset 0 1px #ffffff1a}@media (width>=1440px){.app-container{max-width:1220px}}.header{border-bottom:1px solid var(--glass-border);box-sizing:border-box;-webkit-backdrop-filter:blur(16px);background:#0f172a80;flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:8px;height:56px;min-height:56px;max-height:56px;padding:0 16px;display:flex}.header-left{flex-shrink:0;align-items:center;gap:10px;display:flex}.header-icon{cursor:pointer;background:linear-gradient(135deg,#3b82f6,#8b5cf6);border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;font-size:19px;transition:transform .2s;display:flex;box-shadow:0 4px 12px #3b82f640}.header-icon:hover{transform:scale(1.05)}.header-brand{white-space:nowrap;align-items:center;gap:8px;display:flex}.header-brand h1{background:linear-gradient(90deg,#60a5fa,#c084fc);-webkit-text-fill-color:transparent;letter-spacing:-.01em;-webkit-background-clip:text;margin:0;font-size:1.05rem;font-weight:700;line-height:1}.header-brand .brand-badge{color:#60a5fa;letter-spacing:.02em;background:#3b82f61f;border:1px solid #3b82f640;border-radius:6px;padding:2px 7px;font-size:10px;font-weight:600}.header-capsule{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#ffffff08;border:1px solid #ffffff14;border-radius:12px;flex-shrink:0;align-items:center;gap:4px;padding:2px 8px;display:flex}.capsule-select{color:#e2e8f0;cursor:pointer;appearance:none;background:url("data:image/svg+xml,%3Csvg width='8' height='5' viewBox='0 0 8 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L4 4L7 1' stroke='%2394a3b8' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 4px center no-repeat;border:none;border-radius:6px;outline:none;padding:4px 16px 4px 6px;font-size:12px;font-weight:500;transition:background-color .15s,color .15s}.capsule-select:hover{color:#fff;background-color:#ffffff0f}.capsule-select option{color:#f8fafc;background:#1e293b}.capsule-divider{background:#ffffff1a;width:1px;height:14px;margin:0 2px}.header-actions{flex-shrink:0;align-items:center;gap:6px;display:flex}.header-btn-pill{cursor:pointer;white-space:nowrap;border:1px solid #0000;border-radius:8px;align-items:center;gap:4px;height:28px;padding:0 10px;font-size:12px;font-weight:600;transition:all .2s;display:flex}.header-btn-icon{color:#cbd5e1;cursor:pointer;background:#ffffff0a;border:1px solid #ffffff14;border-radius:8px;justify-content:center;align-items:center;width:28px;height:28px;padding:0;font-size:13px;transition:all .2s;display:flex}.header-btn-icon:hover{color:#fff;background:#ffffff1f;border-color:#fff3;transform:translateY(-1px)}.grade-selector{border:1px solid var(--glass-border);color:var(--text-primary);cursor:pointer;appearance:none;background:#0000004d url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 10px center no-repeat;border-radius:10px;outline:none;flex-shrink:0;padding:8px 30px 8px 12px;font-size:.85rem;transition:border-color .2s,box-shadow .2s}.grade-selector:focus{border-color:#60a5fa80;box-shadow:0 0 0 2px #3b82f633}.grade-selector option{color:#fff;background:#1e293b}.chat-container{scroll-behavior:smooth;flex-direction:column;flex:1;gap:24px;padding:24px;display:flex;overflow-y:auto}.chat-container::-webkit-scrollbar{width:6px}.chat-container::-webkit-scrollbar-track{background:0 0}.chat-container::-webkit-scrollbar-thumb{background-color:#fff3;border-radius:20px}.message-wrapper{display:flex}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}.voice-wave-bar{background:#38bdf8;border-radius:2px;width:3px;height:16px;animation:1.2s ease-in-out infinite waveAnimation;display:inline-block}.wave-delay-1{height:22px;animation-delay:.2s}.wave-delay-2{height:14px;animation-delay:.4s}.wave-delay-3{height:20px;animation-delay:.6s}@keyframes waveAnimation{0%,to{transform:scaleY(.4)}50%{transform:scaleY(1.2)}}@keyframes modalSlideUp{0%{opacity:0;transform:translate(-50%,20px)}to{opacity:1;transform:translate(-50%)}}.action-bar{-webkit-overflow-scrolling:touch;touch-action:pan-x;scrollbar-width:none;-ms-overflow-style:none;flex-wrap:nowrap;justify-content:flex-start;align-items:center;gap:6px;display:flex;overflow-x:auto;padding:6px 16px!important}.action-bar::-webkit-scrollbar{display:none}.action-bar .mistake-btn{white-space:nowrap;border-radius:8px;flex-shrink:0;align-items:center;gap:4px;height:28px;padding:0 10px;font-size:11.5px;font-weight:600;transition:all .2s cubic-bezier(.4,0,.2,1);display:inline-flex;box-shadow:0 2px 6px #00000026;margin:0!important}.action-bar .mistake-btn:hover{filter:brightness(1.1);transform:translateY(-1px);box-shadow:0 4px 12px #00000040}@media (width<=1100px){.header-brand .brand-badge{display:none}.capsule-select{max-width:110px;padding:3px 12px 3px 4px;font-size:11.5px}}@media (width<=960px){.header{gap:6px;padding:0 10px}.header-brand h1{font-size:.95rem}.header-btn-pill .btn-label{display:none}.header-btn-pill{padding:0 6px}.header-capsule{gap:2px;padding:2px 4px}.capsule-divider{display:none}}@media (width<=768px),(pointer:coarse){html,body{width:100vw;height:100dvh;overflow:hidden;background-color:var(--bg-color)!important;margin:0!important;padding:0!important}#root{justify-content:stretch;align-items:stretch;display:flex;width:100%!important;height:100dvh!important;margin:0!important;padding:0!important}.app-container{flex-direction:column;display:flex;width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;box-shadow:none!important;background:var(--bg-color)!important;border:none!important;border-radius:0!important;margin:0!important;padding:0!important}.header{scrollbar-width:none;height:auto!important;min-height:52px!important;max-height:none!important;padding-top:max(6px, env(safe-area-inset-top))!important;padding-left:max(10px, env(safe-area-inset-left))!important;padding-right:max(10px, env(safe-area-inset-right))!important;flex-wrap:nowrap!important;padding-bottom:6px!important;overflow-x:auto!important}.header::-webkit-scrollbar{display:none}.header-left{flex-shrink:0;gap:6px}.header-icon{width:32px;height:32px;font-size:16px}.header-brand h1{font-size:.92rem}.header-capsule{flex-shrink:0;padding:2px 4px;font-size:11px}.capsule-select{max-width:80px;padding:2px 8px 2px 2px;font-size:11px}.action-bar{-webkit-overflow-scrolling:touch!important;touch-action:pan-x!important;scroll-behavior:smooth!important;overscroll-behavior-x:contain!important;justify-content:flex-start!important;gap:8px!important;padding:6px 12px!important;overflow-x:auto!important}.input-bar{gap:6px;padding-top:6px!important;padding-bottom:max(10px, env(safe-area-inset-bottom))!important;padding-left:max(10px, env(safe-area-inset-left))!important;padding-right:max(10px, env(safe-area-inset-right))!important}.chat-input{padding:8px 12px;font-size:.9rem}.input-action-btn{width:36px;height:36px}.send-btn{width:38px;height:38px}.welcome-dashboard{gap:12px!important;margin:8px auto 16px!important;padding:0 10px!important}.welcome-hero-card{border-radius:14px!important;padding:16px!important}.action-dashboard-card{border-radius:14px!important;padding:14px!important}}.capacitor-android .app-container,body.capacitor-app .app-container{width:100vw!important;max-width:100vw!important;height:100dvh!important;box-shadow:none!important;border:none!important;border-radius:0!important;margin:0!important}.xs-voice-mask{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);z-index:120;background:#0206178c;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.xs-voice-panel{width:min(520px,94vw);margin-bottom:max(18px, env(safe-area-inset-bottom));color:#e2e8f0;background:#0f172af2;border:1px solid #3b82f673;border-radius:22px;flex-direction:column;gap:10px;padding:14px 16px 16px;animation:.25s ease-out modalSlideUp;display:flex;box-shadow:0 18px 45px #00000073}.xs-voice-head{align-items:center;gap:8px;display:flex}.xs-voice-dot{background:#64748b;border-radius:50%;width:10px;height:10px}.xs-voice-dot-listening{background:#38bdf8;box-shadow:0 0 10px #38bdf8}.xs-voice-dot-speaking{background:#10b981;box-shadow:0 0 10px #10b981}.xs-voice-dot-thinking{background:#f59e0b}.xs-voice-dot-error{background:#ef4444}.xs-voice-dot-connecting{background:#a78bfa;animation:1s infinite pulse}.xs-voice-title{flex:1;font-size:.92rem;font-weight:600}.xs-voice-timer{font-variant-numeric:tabular-nums;color:#94a3b8;font-size:.8rem}.xs-voice-close{color:#94a3b8;cursor:pointer;background:0 0;border:none;padding:2px 6px;font-size:1.1rem}.xs-voice-wave{justify-content:center;align-items:center;gap:5px;height:34px;display:flex}.xs-voice-bar{transform-origin:50%;background:linear-gradient(#38bdf8,#2563eb);border-radius:3px;width:4px;height:30px;transition:transform .12s ease-out;display:block}.xs-voice-caption{background:#ffffff0f;border-left:3px solid #38bdf8;border-radius:12px;min-height:48px;padding:10px 12px;font-size:.95rem;line-height:1.55}.xs-voice-error{color:#fca5a5;font-size:.85rem}.xs-voice-log{color:#94a3b8;flex-direction:column;gap:3px;max-height:92px;font-size:.8rem;display:flex;overflow-y:auto}.xs-voice-actions{justify-content:flex-end;gap:8px;display:flex}.xs-voice-btn{color:#e2e8f0;cursor:pointer;background:#94a3b81f;border:1px solid #94a3b873;border-radius:18px;padding:6px 14px;font-size:.85rem}.xs-voice-btn-primary{background:#2563eb;border-color:#2563eb}
