/* node_modules/katex/dist/katex.min.css */
@font-face {
  font-display: block;
  font-family: KaTeX_AMS;
  font-style: normal;
  font-weight: 400;
  src:
    url("./assets/KaTeX_AMS-Regular-U6PRYMIZ.woff2") format("woff2"),
    url("./assets/KaTeX_AMS-Regular-CYEKBG2K.woff") format("woff"),
    url("./assets/KaTeX_AMS-Regular-JKX5W2C4.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: KaTeX_Caligraphic;
  font-style: normal;
  font-weight: 700;
  src:
    url("./assets/KaTeX_Caligraphic-Bold-5QL5CMTE.woff2") format("woff2"),
    url("./assets/KaTeX_Caligraphic-Bold-WZ3QSGD3.woff") format("woff"),
    url("./assets/KaTeX_Caligraphic-Bold-ZTS3R3HK.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: KaTeX_Caligraphic;
  font-style: normal;
  font-weight: 400;
  src:
    url("./assets/KaTeX_Caligraphic-Regular-KX5MEWCF.woff2") format("woff2"),
    url("./assets/KaTeX_Caligraphic-Regular-3LKEU76G.woff") format("woff"),
    url("./assets/KaTeX_Caligraphic-Regular-A7XRTZ5Q.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: KaTeX_Fraktur;
  font-style: normal;
  font-weight: 700;
  src:
    url("./assets/KaTeX_Fraktur-Bold-2QVFK6NQ.woff2") format("woff2"),
    url("./assets/KaTeX_Fraktur-Bold-T4SWXBMT.woff") format("woff"),
    url("./assets/KaTeX_Fraktur-Bold-WGHVTYOR.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: KaTeX_Fraktur;
  font-style: normal;
  font-weight: 400;
  src:
    url("./assets/KaTeX_Fraktur-Regular-2PEIFJSJ.woff2") format("woff2"),
    url("./assets/KaTeX_Fraktur-Regular-PQMHCIK6.woff") format("woff"),
    url("./assets/KaTeX_Fraktur-Regular-5U4OPH2X.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: KaTeX_Main;
  font-style: normal;
  font-weight: 700;
  src:
    url("./assets/KaTeX_Main-Bold-YP5VVQRP.woff2") format("woff2"),
    url("./assets/KaTeX_Main-Bold-2GA4IZIN.woff") format("woff"),
    url("./assets/KaTeX_Main-Bold-W5FBVCZM.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: KaTeX_Main;
  font-style: italic;
  font-weight: 700;
  src:
    url("./assets/KaTeX_Main-BoldItalic-N4V3DX7S.woff2") format("woff2"),
    url("./assets/KaTeX_Main-BoldItalic-4P4C7HJH.woff") format("woff"),
    url("./assets/KaTeX_Main-BoldItalic-ODMLBJJQ.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: KaTeX_Main;
  font-style: italic;
  font-weight: 400;
  src:
    url("./assets/KaTeX_Main-Italic-RELBIK7M.woff2") format("woff2"),
    url("./assets/KaTeX_Main-Italic-SASNQFN2.woff") format("woff"),
    url("./assets/KaTeX_Main-Italic-I43T2HSR.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: KaTeX_Main;
  font-style: normal;
  font-weight: 400;
  src:
    url("./assets/KaTeX_Main-Regular-ARRPAO67.woff2") format("woff2"),
    url("./assets/KaTeX_Main-Regular-P5I74A2A.woff") format("woff"),
    url("./assets/KaTeX_Main-Regular-W74P5G27.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: KaTeX_Math;
  font-style: italic;
  font-weight: 700;
  src:
    url("./assets/KaTeX_Math-BoldItalic-K4WTGH3J.woff2") format("woff2"),
    url("./assets/KaTeX_Math-BoldItalic-6EBV3DK5.woff") format("woff"),
    url("./assets/KaTeX_Math-BoldItalic-VB447A4D.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: KaTeX_Math;
  font-style: italic;
  font-weight: 400;
  src:
    url("./assets/KaTeX_Math-Italic-6KGCHLFN.woff2") format("woff2"),
    url("./assets/KaTeX_Math-Italic-KKK3USB2.woff") format("woff"),
    url("./assets/KaTeX_Math-Italic-SON4MRCA.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: "KaTeX_SansSerif";
  font-style: normal;
  font-weight: 700;
  src:
    url("./assets/KaTeX_SansSerif-Bold-RRNVJFFW.woff2") format("woff2"),
    url("./assets/KaTeX_SansSerif-Bold-X5M5EMOD.woff") format("woff"),
    url("./assets/KaTeX_SansSerif-Bold-STQ6RXC7.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: "KaTeX_SansSerif";
  font-style: italic;
  font-weight: 400;
  src:
    url("./assets/KaTeX_SansSerif-Italic-HMPFTM52.woff2") format("woff2"),
    url("./assets/KaTeX_SansSerif-Italic-PSN4QKYX.woff") format("woff"),
    url("./assets/KaTeX_SansSerif-Italic-WTBAZBGY.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: "KaTeX_SansSerif";
  font-style: normal;
  font-weight: 400;
  src:
    url("./assets/KaTeX_SansSerif-Regular-XIQ62X4E.woff2") format("woff2"),
    url("./assets/KaTeX_SansSerif-Regular-OQCII6EP.woff") format("woff"),
    url("./assets/KaTeX_SansSerif-Regular-2TL3USAE.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: KaTeX_Script;
  font-style: normal;
  font-weight: 400;
  src:
    url("./assets/KaTeX_Script-Regular-APUWIHLP.woff2") format("woff2"),
    url("./assets/KaTeX_Script-Regular-A5IFOEBS.woff") format("woff"),
    url("./assets/KaTeX_Script-Regular-72OLXYNA.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: KaTeX_Size1;
  font-style: normal;
  font-weight: 400;
  src:
    url("./assets/KaTeX_Size1-Regular-5LRUTBFT.woff2") format("woff2"),
    url("./assets/KaTeX_Size1-Regular-4HRHTS65.woff") format("woff"),
    url("./assets/KaTeX_Size1-Regular-7K6AASVL.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: KaTeX_Size2;
  font-style: normal;
  font-weight: 400;
  src:
    url("./assets/KaTeX_Size2-Regular-LELKET5D.woff2") format("woff2"),
    url("./assets/KaTeX_Size2-Regular-K5ZHAIS6.woff") format("woff"),
    url("./assets/KaTeX_Size2-Regular-222HN3GT.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: KaTeX_Size3;
  font-style: normal;
  font-weight: 400;
  src:
    url("./assets/KaTeX_Size3-Regular-WQRQ47UD.woff2") format("woff2"),
    url("./assets/KaTeX_Size3-Regular-TLFPAHDE.woff") format("woff"),
    url("./assets/KaTeX_Size3-Regular-UFCO6WCA.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: KaTeX_Size4;
  font-style: normal;
  font-weight: 400;
  src:
    url("./assets/KaTeX_Size4-Regular-CDMV7U5C.woff2") format("woff2"),
    url("./assets/KaTeX_Size4-Regular-PKMWZHNC.woff") format("woff"),
    url("./assets/KaTeX_Size4-Regular-7PGNVPQK.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: KaTeX_Typewriter;
  font-style: normal;
  font-weight: 400;
  src:
    url("./assets/KaTeX_Typewriter-Regular-VBYJ4NRC.woff2") format("woff2"),
    url("./assets/KaTeX_Typewriter-Regular-MJMFSK64.woff") format("woff"),
    url("./assets/KaTeX_Typewriter-Regular-3F5K6SQ6.ttf") format("truetype");
}
.katex {
  font:
    normal 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.18.7";
}
.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 > .katex-newline {
  display: block;
}
.katex .katex-base {
  position: relative;
  white-space: nowrap;
  width: -webkit-min-content;
  width: -moz-min-content;
  width: min-content;
}
.katex .katex-base,
.katex .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 .katex-vbox {
  align-items: baseline;
  display: inline-flex;
  flex-direction: column;
}
.katex .katex-thinbox {
  display: inline-flex;
  flex-direction: row;
  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 .katex-hdashline,
.katex .katex-hline,
.katex .katex-overline .overline-line,
.katex .katex-rule,
.katex .katex-underline .underline-line,
.katex .mfrac .frac-line {
  min-height: 1px;
}
.katex .mspace {
  display: inline-block;
}
.katex .katex-smash {
  display: inline;
  line-height: 0;
}
.katex .clap,
.katex .llap,
.katex .rlap {
  position: relative;
  width: 0;
}
.katex .clap > .katex-inner,
.katex .llap > .katex-inner,
.katex .rlap > .katex-inner {
  position: absolute;
}
.katex .clap > .katex-fix,
.katex .llap > .katex-fix,
.katex .rlap > .katex-fix {
  display: inline-block;
}
.katex .llap > .katex-inner {
  right: 0;
}
.katex .clap > .katex-inner,
.katex .rlap > .katex-inner {
  left: 0;
}
.katex .clap > .katex-inner > span {
  margin-left: -50%;
  margin-right: 50%;
}
.katex .katex-rule {
  border: 0 solid;
  display: inline-block;
  position: relative;
}
.katex .katex-hline,
.katex .katex-overline .overline-line,
.katex .katex-underline .underline-line {
  border-bottom-style: solid;
  display: inline-block;
  width: 100%;
}
.katex .katex-hdashline {
  border-bottom-style: dashed;
  display: inline-block;
  width: 100%;
}
.katex .sqrt > .katex-root {
  margin-left: .2777777778em;
  margin-right: -.5555555556em;
}
.katex .fontsize-ensurer.reset-size1.size1,
.katex .katex-sizing.reset-size1.size1 {
  font-size: 1em;
}
.katex .fontsize-ensurer.reset-size1.size2,
.katex .katex-sizing.reset-size1.size2 {
  font-size: 1.2em;
}
.katex .fontsize-ensurer.reset-size1.size3,
.katex .katex-sizing.reset-size1.size3 {
  font-size: 1.4em;
}
.katex .fontsize-ensurer.reset-size1.size4,
.katex .katex-sizing.reset-size1.size4 {
  font-size: 1.6em;
}
.katex .fontsize-ensurer.reset-size1.size5,
.katex .katex-sizing.reset-size1.size5 {
  font-size: 1.8em;
}
.katex .fontsize-ensurer.reset-size1.size6,
.katex .katex-sizing.reset-size1.size6 {
  font-size: 2em;
}
.katex .fontsize-ensurer.reset-size1.size7,
.katex .katex-sizing.reset-size1.size7 {
  font-size: 2.4em;
}
.katex .fontsize-ensurer.reset-size1.size8,
.katex .katex-sizing.reset-size1.size8 {
  font-size: 2.88em;
}
.katex .fontsize-ensurer.reset-size1.size9,
.katex .katex-sizing.reset-size1.size9 {
  font-size: 3.456em;
}
.katex .fontsize-ensurer.reset-size1.size10,
.katex .katex-sizing.reset-size1.size10 {
  font-size: 4.148em;
}
.katex .fontsize-ensurer.reset-size1.size11,
.katex .katex-sizing.reset-size1.size11 {
  font-size: 4.976em;
}
.katex .fontsize-ensurer.reset-size2.size1,
.katex .katex-sizing.reset-size2.size1 {
  font-size: .8333333333em;
}
.katex .fontsize-ensurer.reset-size2.size2,
.katex .katex-sizing.reset-size2.size2 {
  font-size: 1em;
}
.katex .fontsize-ensurer.reset-size2.size3,
.katex .katex-sizing.reset-size2.size3 {
  font-size: 1.1666666667em;
}
.katex .fontsize-ensurer.reset-size2.size4,
.katex .katex-sizing.reset-size2.size4 {
  font-size: 1.3333333333em;
}
.katex .fontsize-ensurer.reset-size2.size5,
.katex .katex-sizing.reset-size2.size5 {
  font-size: 1.5em;
}
.katex .fontsize-ensurer.reset-size2.size6,
.katex .katex-sizing.reset-size2.size6 {
  font-size: 1.6666666667em;
}
.katex .fontsize-ensurer.reset-size2.size7,
.katex .katex-sizing.reset-size2.size7 {
  font-size: 2em;
}
.katex .fontsize-ensurer.reset-size2.size8,
.katex .katex-sizing.reset-size2.size8 {
  font-size: 2.4em;
}
.katex .fontsize-ensurer.reset-size2.size9,
.katex .katex-sizing.reset-size2.size9 {
  font-size: 2.88em;
}
.katex .fontsize-ensurer.reset-size2.size10,
.katex .katex-sizing.reset-size2.size10 {
  font-size: 3.4566666667em;
}
.katex .fontsize-ensurer.reset-size2.size11,
.katex .katex-sizing.reset-size2.size11 {
  font-size: 4.1466666667em;
}
.katex .fontsize-ensurer.reset-size3.size1,
.katex .katex-sizing.reset-size3.size1 {
  font-size: .7142857143em;
}
.katex .fontsize-ensurer.reset-size3.size2,
.katex .katex-sizing.reset-size3.size2 {
  font-size: .8571428571em;
}
.katex .fontsize-ensurer.reset-size3.size3,
.katex .katex-sizing.reset-size3.size3 {
  font-size: 1em;
}
.katex .fontsize-ensurer.reset-size3.size4,
.katex .katex-sizing.reset-size3.size4 {
  font-size: 1.1428571429em;
}
.katex .fontsize-ensurer.reset-size3.size5,
.katex .katex-sizing.reset-size3.size5 {
  font-size: 1.2857142857em;
}
.katex .fontsize-ensurer.reset-size3.size6,
.katex .katex-sizing.reset-size3.size6 {
  font-size: 1.4285714286em;
}
.katex .fontsize-ensurer.reset-size3.size7,
.katex .katex-sizing.reset-size3.size7 {
  font-size: 1.7142857143em;
}
.katex .fontsize-ensurer.reset-size3.size8,
.katex .katex-sizing.reset-size3.size8 {
  font-size: 2.0571428571em;
}
.katex .fontsize-ensurer.reset-size3.size9,
.katex .katex-sizing.reset-size3.size9 {
  font-size: 2.4685714286em;
}
.katex .fontsize-ensurer.reset-size3.size10,
.katex .katex-sizing.reset-size3.size10 {
  font-size: 2.9628571429em;
}
.katex .fontsize-ensurer.reset-size3.size11,
.katex .katex-sizing.reset-size3.size11 {
  font-size: 3.5542857143em;
}
.katex .fontsize-ensurer.reset-size4.size1,
.katex .katex-sizing.reset-size4.size1 {
  font-size: .625em;
}
.katex .fontsize-ensurer.reset-size4.size2,
.katex .katex-sizing.reset-size4.size2 {
  font-size: .75em;
}
.katex .fontsize-ensurer.reset-size4.size3,
.katex .katex-sizing.reset-size4.size3 {
  font-size: .875em;
}
.katex .fontsize-ensurer.reset-size4.size4,
.katex .katex-sizing.reset-size4.size4 {
  font-size: 1em;
}
.katex .fontsize-ensurer.reset-size4.size5,
.katex .katex-sizing.reset-size4.size5 {
  font-size: 1.125em;
}
.katex .fontsize-ensurer.reset-size4.size6,
.katex .katex-sizing.reset-size4.size6 {
  font-size: 1.25em;
}
.katex .fontsize-ensurer.reset-size4.size7,
.katex .katex-sizing.reset-size4.size7 {
  font-size: 1.5em;
}
.katex .fontsize-ensurer.reset-size4.size8,
.katex .katex-sizing.reset-size4.size8 {
  font-size: 1.8em;
}
.katex .fontsize-ensurer.reset-size4.size9,
.katex .katex-sizing.reset-size4.size9 {
  font-size: 2.16em;
}
.katex .fontsize-ensurer.reset-size4.size10,
.katex .katex-sizing.reset-size4.size10 {
  font-size: 2.5925em;
}
.katex .fontsize-ensurer.reset-size4.size11,
.katex .katex-sizing.reset-size4.size11 {
  font-size: 3.11em;
}
.katex .fontsize-ensurer.reset-size5.size1,
.katex .katex-sizing.reset-size5.size1 {
  font-size: .5555555556em;
}
.katex .fontsize-ensurer.reset-size5.size2,
.katex .katex-sizing.reset-size5.size2 {
  font-size: .6666666667em;
}
.katex .fontsize-ensurer.reset-size5.size3,
.katex .katex-sizing.reset-size5.size3 {
  font-size: .7777777778em;
}
.katex .fontsize-ensurer.reset-size5.size4,
.katex .katex-sizing.reset-size5.size4 {
  font-size: .8888888889em;
}
.katex .fontsize-ensurer.reset-size5.size5,
.katex .katex-sizing.reset-size5.size5 {
  font-size: 1em;
}
.katex .fontsize-ensurer.reset-size5.size6,
.katex .katex-sizing.reset-size5.size6 {
  font-size: 1.1111111111em;
}
.katex .fontsize-ensurer.reset-size5.size7,
.katex .katex-sizing.reset-size5.size7 {
  font-size: 1.3333333333em;
}
.katex .fontsize-ensurer.reset-size5.size8,
.katex .katex-sizing.reset-size5.size8 {
  font-size: 1.6em;
}
.katex .fontsize-ensurer.reset-size5.size9,
.katex .katex-sizing.reset-size5.size9 {
  font-size: 1.92em;
}
.katex .fontsize-ensurer.reset-size5.size10,
.katex .katex-sizing.reset-size5.size10 {
  font-size: 2.3044444444em;
}
.katex .fontsize-ensurer.reset-size5.size11,
.katex .katex-sizing.reset-size5.size11 {
  font-size: 2.7644444444em;
}
.katex .fontsize-ensurer.reset-size6.size1,
.katex .katex-sizing.reset-size6.size1 {
  font-size: .5em;
}
.katex .fontsize-ensurer.reset-size6.size2,
.katex .katex-sizing.reset-size6.size2 {
  font-size: .6em;
}
.katex .fontsize-ensurer.reset-size6.size3,
.katex .katex-sizing.reset-size6.size3 {
  font-size: .7em;
}
.katex .fontsize-ensurer.reset-size6.size4,
.katex .katex-sizing.reset-size6.size4 {
  font-size: .8em;
}
.katex .fontsize-ensurer.reset-size6.size5,
.katex .katex-sizing.reset-size6.size5 {
  font-size: .9em;
}
.katex .fontsize-ensurer.reset-size6.size6,
.katex .katex-sizing.reset-size6.size6 {
  font-size: 1em;
}
.katex .fontsize-ensurer.reset-size6.size7,
.katex .katex-sizing.reset-size6.size7 {
  font-size: 1.2em;
}
.katex .fontsize-ensurer.reset-size6.size8,
.katex .katex-sizing.reset-size6.size8 {
  font-size: 1.44em;
}
.katex .fontsize-ensurer.reset-size6.size9,
.katex .katex-sizing.reset-size6.size9 {
  font-size: 1.728em;
}
.katex .fontsize-ensurer.reset-size6.size10,
.katex .katex-sizing.reset-size6.size10 {
  font-size: 2.074em;
}
.katex .fontsize-ensurer.reset-size6.size11,
.katex .katex-sizing.reset-size6.size11 {
  font-size: 2.488em;
}
.katex .fontsize-ensurer.reset-size7.size1,
.katex .katex-sizing.reset-size7.size1 {
  font-size: .4166666667em;
}
.katex .fontsize-ensurer.reset-size7.size2,
.katex .katex-sizing.reset-size7.size2 {
  font-size: .5em;
}
.katex .fontsize-ensurer.reset-size7.size3,
.katex .katex-sizing.reset-size7.size3 {
  font-size: .5833333333em;
}
.katex .fontsize-ensurer.reset-size7.size4,
.katex .katex-sizing.reset-size7.size4 {
  font-size: .6666666667em;
}
.katex .fontsize-ensurer.reset-size7.size5,
.katex .katex-sizing.reset-size7.size5 {
  font-size: .75em;
}
.katex .fontsize-ensurer.reset-size7.size6,
.katex .katex-sizing.reset-size7.size6 {
  font-size: .8333333333em;
}
.katex .fontsize-ensurer.reset-size7.size7,
.katex .katex-sizing.reset-size7.size7 {
  font-size: 1em;
}
.katex .fontsize-ensurer.reset-size7.size8,
.katex .katex-sizing.reset-size7.size8 {
  font-size: 1.2em;
}
.katex .fontsize-ensurer.reset-size7.size9,
.katex .katex-sizing.reset-size7.size9 {
  font-size: 1.44em;
}
.katex .fontsize-ensurer.reset-size7.size10,
.katex .katex-sizing.reset-size7.size10 {
  font-size: 1.7283333333em;
}
.katex .fontsize-ensurer.reset-size7.size11,
.katex .katex-sizing.reset-size7.size11 {
  font-size: 2.0733333333em;
}
.katex .fontsize-ensurer.reset-size8.size1,
.katex .katex-sizing.reset-size8.size1 {
  font-size: .3472222222em;
}
.katex .fontsize-ensurer.reset-size8.size2,
.katex .katex-sizing.reset-size8.size2 {
  font-size: .4166666667em;
}
.katex .fontsize-ensurer.reset-size8.size3,
.katex .katex-sizing.reset-size8.size3 {
  font-size: .4861111111em;
}
.katex .fontsize-ensurer.reset-size8.size4,
.katex .katex-sizing.reset-size8.size4 {
  font-size: .5555555556em;
}
.katex .fontsize-ensurer.reset-size8.size5,
.katex .katex-sizing.reset-size8.size5 {
  font-size: .625em;
}
.katex .fontsize-ensurer.reset-size8.size6,
.katex .katex-sizing.reset-size8.size6 {
  font-size: .6944444444em;
}
.katex .fontsize-ensurer.reset-size8.size7,
.katex .katex-sizing.reset-size8.size7 {
  font-size: .8333333333em;
}
.katex .fontsize-ensurer.reset-size8.size8,
.katex .katex-sizing.reset-size8.size8 {
  font-size: 1em;
}
.katex .fontsize-ensurer.reset-size8.size9,
.katex .katex-sizing.reset-size8.size9 {
  font-size: 1.2em;
}
.katex .fontsize-ensurer.reset-size8.size10,
.katex .katex-sizing.reset-size8.size10 {
  font-size: 1.4402777778em;
}
.katex .fontsize-ensurer.reset-size8.size11,
.katex .katex-sizing.reset-size8.size11 {
  font-size: 1.7277777778em;
}
.katex .fontsize-ensurer.reset-size9.size1,
.katex .katex-sizing.reset-size9.size1 {
  font-size: .2893518519em;
}
.katex .fontsize-ensurer.reset-size9.size2,
.katex .katex-sizing.reset-size9.size2 {
  font-size: .3472222222em;
}
.katex .fontsize-ensurer.reset-size9.size3,
.katex .katex-sizing.reset-size9.size3 {
  font-size: .4050925926em;
}
.katex .fontsize-ensurer.reset-size9.size4,
.katex .katex-sizing.reset-size9.size4 {
  font-size: .462962963em;
}
.katex .fontsize-ensurer.reset-size9.size5,
.katex .katex-sizing.reset-size9.size5 {
  font-size: .5208333333em;
}
.katex .fontsize-ensurer.reset-size9.size6,
.katex .katex-sizing.reset-size9.size6 {
  font-size: .5787037037em;
}
.katex .fontsize-ensurer.reset-size9.size7,
.katex .katex-sizing.reset-size9.size7 {
  font-size: .6944444444em;
}
.katex .fontsize-ensurer.reset-size9.size8,
.katex .katex-sizing.reset-size9.size8 {
  font-size: .8333333333em;
}
.katex .fontsize-ensurer.reset-size9.size9,
.katex .katex-sizing.reset-size9.size9 {
  font-size: 1em;
}
.katex .fontsize-ensurer.reset-size9.size10,
.katex .katex-sizing.reset-size9.size10 {
  font-size: 1.2002314815em;
}
.katex .fontsize-ensurer.reset-size9.size11,
.katex .katex-sizing.reset-size9.size11 {
  font-size: 1.4398148148em;
}
.katex .fontsize-ensurer.reset-size10.size1,
.katex .katex-sizing.reset-size10.size1 {
  font-size: .2410800386em;
}
.katex .fontsize-ensurer.reset-size10.size2,
.katex .katex-sizing.reset-size10.size2 {
  font-size: .2892960463em;
}
.katex .fontsize-ensurer.reset-size10.size3,
.katex .katex-sizing.reset-size10.size3 {
  font-size: .337512054em;
}
.katex .fontsize-ensurer.reset-size10.size4,
.katex .katex-sizing.reset-size10.size4 {
  font-size: .3857280617em;
}
.katex .fontsize-ensurer.reset-size10.size5,
.katex .katex-sizing.reset-size10.size5 {
  font-size: .4339440694em;
}
.katex .fontsize-ensurer.reset-size10.size6,
.katex .katex-sizing.reset-size10.size6 {
  font-size: .4821600771em;
}
.katex .fontsize-ensurer.reset-size10.size7,
.katex .katex-sizing.reset-size10.size7 {
  font-size: .5785920926em;
}
.katex .fontsize-ensurer.reset-size10.size8,
.katex .katex-sizing.reset-size10.size8 {
  font-size: .6943105111em;
}
.katex .fontsize-ensurer.reset-size10.size9,
.katex .katex-sizing.reset-size10.size9 {
  font-size: .8331726133em;
}
.katex .fontsize-ensurer.reset-size10.size10,
.katex .katex-sizing.reset-size10.size10 {
  font-size: 1em;
}
.katex .fontsize-ensurer.reset-size10.size11,
.katex .katex-sizing.reset-size10.size11 {
  font-size: 1.1996142719em;
}
.katex .fontsize-ensurer.reset-size11.size1,
.katex .katex-sizing.reset-size11.size1 {
  font-size: .2009646302em;
}
.katex .fontsize-ensurer.reset-size11.size2,
.katex .katex-sizing.reset-size11.size2 {
  font-size: .2411575563em;
}
.katex .fontsize-ensurer.reset-size11.size3,
.katex .katex-sizing.reset-size11.size3 {
  font-size: .2813504823em;
}
.katex .fontsize-ensurer.reset-size11.size4,
.katex .katex-sizing.reset-size11.size4 {
  font-size: .3215434084em;
}
.katex .fontsize-ensurer.reset-size11.size5,
.katex .katex-sizing.reset-size11.size5 {
  font-size: .3617363344em;
}
.katex .fontsize-ensurer.reset-size11.size6,
.katex .katex-sizing.reset-size11.size6 {
  font-size: .4019292605em;
}
.katex .fontsize-ensurer.reset-size11.size7,
.katex .katex-sizing.reset-size11.size7 {
  font-size: .4823151125em;
}
.katex .fontsize-ensurer.reset-size11.size8,
.katex .katex-sizing.reset-size11.size8 {
  font-size: .578778135em;
}
.katex .fontsize-ensurer.reset-size11.size9,
.katex .katex-sizing.reset-size11.size9 {
  font-size: .6945337621em;
}
.katex .fontsize-ensurer.reset-size11.size10,
.katex .katex-sizing.reset-size11.size10 {
  font-size: .8336012862em;
}
.katex .fontsize-ensurer.reset-size11.size11,
.katex .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 .katex-accent > .vlist-t,
.katex .op-limits > .vlist-t {
  text-align: center;
}
.katex .katex-accent .accent-body {
  position: relative;
}
.katex .katex-accent .accent-body:not(.accent-full) {
  width: 0;
}
.katex .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 .katex-stretchy {
  display: block;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.katex .katex-stretchy:after,
.katex .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 .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 .reflectbox {
  display: inline-block;
  transform: scaleX(-1);
}
.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 > .katex-tag {
  position: absolute;
  right: 0;
}
.katex-display.leqno > .katex > .katex-html > .katex-tag {
  left: 0;
  right: auto;
}
.katex-display.fleqn > .katex {
  padding-left: 2em;
  text-align: left;
}
body {
  counter-reset: katexEqnNo mmlEqnNo;
}

/* src/style.css */
:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #232d37;
  background: #f6f8fb;
  font-synthesis: none;
  --accent: #514fc1;
}
:root[data-color=blue] {
  --accent: #2563a9;
}
:root[data-color=green] {
  --accent: #287a58;
}
:root[data-color=rose] {
  --accent: #b04468;
}
:root[data-color=amber] {
  --accent: #aa6b20;
}
:root[data-theme=dark] {
  color-scheme: dark;
  color: #e7eaf0;
  background: #171a21;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme=auto] {
    color-scheme: dark;
    background: #171a21;
    color: #e7eaf0;
  }
}
:root[data-theme=dark] .workspace-shell,
:root[data-theme=dark] .home-header,
:root[data-theme=dark] .paper,
:root[data-theme=dark] .topic-card,
:root[data-theme=dark] .details-panel,
:root[data-theme=dark] .zoom-controls,
:root[data-theme=dark] .appearance-menu {
  background: #20242d;
  color: #e7eaf0;
  border-color: #3b4250;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme=auto] .workspace-shell,
  :root[data-theme=auto] .home-header,
  :root[data-theme=auto] .paper,
  :root[data-theme=auto] .topic-card,
  :root[data-theme=auto] .details-panel,
  :root[data-theme=auto] .zoom-controls,
  :root[data-theme=auto] .appearance-menu {
    background: #20242d;
    color: #e7eaf0;
    border-color: #3b4250;
  }
}
:root[data-theme=dark] .home,
:root[data-theme=dark] .canvas-viewport {
  background-color: #171a21;
  background-image: radial-gradient(#3c4554 1px, transparent 1px);
}
:root[data-theme=dark] .paper-heading {
  background:
    linear-gradient(
      145deg,
      #292b45 0%,
      #252738 60%,
      #20242d 100%);
  border-color: #3b4250;
}
:root[data-theme=dark] .header-icon,
:root[data-theme=dark] .details-panel input,
:root[data-theme=dark] .details-panel select,
:root[data-theme=dark] .details-panel textarea,
:root[data-theme=dark] .create-form input,
:root[data-theme=dark] .save-menu,
:root[data-theme=dark] .document-menu,
:root[data-theme=dark] .context-menu {
  background: #252a34;
  color: #e7eaf0;
  border-color: #454d5c;
}
:root[data-theme=dark] .markdown-preview,
:root[data-theme=dark] .markdown-preview h1,
:root[data-theme=dark] .markdown-preview h2,
:root[data-theme=dark] .markdown-preview h3,
:root[data-theme=dark] .markdown-preview h4,
:root[data-theme=dark] .markdown-preview h5,
:root[data-theme=dark] .markdown-preview h6,
:root[data-theme=dark] .node-content,
:root[data-theme=dark] .topic-card,
:root[data-theme=dark] .workspace-title {
  color: #e7eaf0;
}
:root[data-theme=dark] .node-content:empty::before,
:root[data-theme=dark] .markdown-preview:empty::before {
  color: #8f99aa;
}
:root[data-theme=dark] .workspace-tile {
  background: #20242d;
  border-color: #3b4250;
  color: #e7eaf0;
  box-shadow: 0 4px 15px #0006;
}
:root[data-theme=dark] .workspace-tile small,
:root[data-theme=dark] .home-lead,
:root[data-theme=dark] .home-tag {
  color: #aab3c2;
}
:root[data-theme=dark] .anchor-mark {
  background: #514a8066;
  border-bottom-color: #9d94eb;
}
:root[data-theme=dark] .node-markdown-editor,
:root[data-theme=dark] .markdown-editor {
  background: #1b1f28;
  color: #e7eaf0;
}
:root[data-theme=dark] .workspace-chrome .header-left,
:root[data-theme=dark] .workspace-chrome .header-right,
:root[data-theme=dark] .passage-toolbar,
:root[data-theme=dark] .selection-toolbar {
  background: #20242df2;
  color: #e7eaf0;
  border-color: #3b4250;
}
:root[data-theme=dark] .workspace-chrome .workspace-title,
:root[data-theme=dark] .brand-name,
:root[data-theme=dark] .workspace-brand {
  color: #e7eaf0;
}
:root[data-theme=dark] .context-option,
:root[data-theme=dark] .save-menu-option,
:root[data-theme=dark] .document-menu-option {
  color: #dce2eb;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme=auto] .workspace-chrome .header-left,
  :root[data-theme=auto] .workspace-chrome .header-right,
  :root[data-theme=auto] .passage-toolbar,
  :root[data-theme=auto] .selection-toolbar {
    background: #20242df2;
    color: #e7eaf0;
    border-color: #3b4250;
  }
  :root[data-theme=auto] .workspace-chrome .workspace-title,
  :root[data-theme=auto] .brand-name,
  :root[data-theme=auto] .workspace-brand {
    color: #e7eaf0;
  }
  :root[data-theme=auto] .context-option,
  :root[data-theme=auto] .save-menu-option,
  :root[data-theme=auto] .document-menu-option {
    color: #dce2eb;
  }
  :root[data-theme=auto] .home,
  :root[data-theme=auto] .canvas-viewport {
    background-color: #171a21;
    background-image: radial-gradient(#3c4554 1px, transparent 1px);
  }
  :root[data-theme=auto] .paper-heading {
    background:
      linear-gradient(
        145deg,
        #292b45 0%,
        #252738 60%,
        #20242d 100%);
    border-color: #3b4250;
  }
  :root[data-theme=auto] .header-icon,
  :root[data-theme=auto] .details-panel input,
  :root[data-theme=auto] .details-panel select,
  :root[data-theme=auto] .details-panel textarea,
  :root[data-theme=auto] .create-form input,
  :root[data-theme=auto] .save-menu,
  :root[data-theme=auto] .document-menu,
  :root[data-theme=auto] .context-menu {
    background: #252a34;
    color: #e7eaf0;
    border-color: #454d5c;
  }
  :root[data-theme=auto] .markdown-preview,
  :root[data-theme=auto] .markdown-preview h1,
  :root[data-theme=auto] .markdown-preview h2,
  :root[data-theme=auto] .markdown-preview h3,
  :root[data-theme=auto] .markdown-preview h4,
  :root[data-theme=auto] .markdown-preview h5,
  :root[data-theme=auto] .markdown-preview h6,
  :root[data-theme=auto] .node-content,
  :root[data-theme=auto] .topic-card,
  :root[data-theme=auto] .workspace-title {
    color: #e7eaf0;
  }
  :root[data-theme=auto] .node-content:empty::before,
  :root[data-theme=auto] .markdown-preview:empty::before {
    color: #8f99aa;
  }
  :root[data-theme=auto] .workspace-tile {
    background: #20242d;
    border-color: #3b4250;
    color: #e7eaf0;
    box-shadow: 0 4px 15px #0006;
  }
  :root[data-theme=auto] .workspace-tile small,
  :root[data-theme=auto] .home-lead,
  :root[data-theme=auto] .home-tag {
    color: #aab3c2;
  }
  :root[data-theme=auto] .anchor-mark {
    background: #514a8066;
    border-bottom-color: #9d94eb;
  }
  :root[data-theme=auto] .node-markdown-editor,
  :root[data-theme=auto] .markdown-editor {
    background: #1b1f28;
    color: #e7eaf0;
  }
}
.research-panel {
  position: absolute;
  z-index: 29;
  top: 70px;
  right: 18px;
  bottom: 18px;
  width: min(470px, calc(100vw - 36px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dedbd5;
  border-radius: 16px;
  background: #fbfaf8;
  color: #302e2b;
  box-shadow: 0 18px 55px #1e243026;
}
.research-heading {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px 11px;
  border-bottom: 1px solid #e9e5df;
}
.research-heading h2 {
  margin: 2px 0 0;
  font: 600 1.05rem/1.2 Georgia, serif;
}
.research-eyebrow,
.research-label {
  color: #8d7965;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .11em;
}
.research-tabs {
  flex: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 8px 12px;
  border-bottom: 1px solid #e9e5df;
}
.research-tabs button {
  padding: 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #777069;
  font: 650 .7rem/1 inherit;
  cursor: pointer;
}
.research-tabs button[aria-selected=true] {
  background: #eee8e0;
  color: #493d32;
}
.research-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  scrollbar-width: thin;
}
.research-create,
.research-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 7px;
}
.research-create textarea,
.research-body textarea,
.research-body input,
.research-question-select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #d8d2ca;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: .76rem/1.45 inherit;
}
.research-create textarea {
  min-height: 62px;
  resize: vertical;
}
.research-body textarea {
  min-height: 88px;
  resize: vertical;
}
.research-body .panel-action,
.research-body .panel-secondary {
  width: auto;
  margin: 0;
  padding: 8px 10px;
  white-space: nowrap;
}
.research-question-select {
  margin: 11px 0;
}
.research-section {
  margin: 10px 0;
  padding: 13px;
  border: 1px solid #e1dcd5;
  border-radius: 11px;
  background: #fff;
}
.research-card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 9px;
}
.research-card-heading strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: .78rem;
  line-height: 1.4;
}
.research-card-heading small {
  color: #948b82;
  font-size: .61rem;
  white-space: nowrap;
}
.research-context {
  margin: 9px 0;
  padding: 7px 9px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: #5e574f;
  font: italic .72rem/1.5 Georgia, serif;
}
.research-label {
  margin: 14px 0 7px;
}
.research-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 5px 0;
}
.research-source-link {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6f5438;
  font-size: .7rem;
  line-height: 1.35;
  text-align: left;
  text-decoration: underline;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.research-attach-existing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  margin-top: 8px;
}
.research-badge {
  flex: none;
  padding: 3px 6px;
  border-radius: 999px;
  background: #eeeae5;
  color: #756c63;
  font-size: .57rem;
  font-weight: 700;
}
.research-badge.verified {
  background: #e3f2e8;
  color: #357050;
}
.research-search {
  margin-top: 12px;
}
.research-disclaimer,
.research-trail,
.research-empty {
  color: #7e766e;
  font-size: .67rem;
  line-height: 1.5;
}
.research-result {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #e2ddd6;
  border-radius: 8px;
  background: #faf9f7;
}
.research-result strong,
.research-result small {
  display: block;
  overflow-wrap: anywhere;
}
.research-result strong {
  font-size: .73rem;
  line-height: 1.4;
}
.research-result small {
  margin-top: 4px;
  color: #857d75;
  font-size: .62rem;
  line-height: 1.4;
}
.research-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
}
.research-actions a {
  color: #795b3e;
  font-size: .67rem;
}
.research-finding-input {
  margin-bottom: 7px;
}
.research-proposal {
  margin-top: 12px;
  padding: 11px;
  border: 1px solid #dcd2c6;
  border-radius: 9px;
  background: #fdfbf8;
}
.research-status {
  padding: 3px 6px;
  border-radius: 999px;
  background: #f0e6d8;
  color: #72583d;
  font-size: .58rem;
  text-transform: capitalize;
}
.research-status.accepted {
  background: #e3f2e8;
  color: #357050;
}
.research-status.discarded {
  background: #eee;
  color: #777;
}
.research-warning,
.research-error,
.research-contradiction,
.research-no-contradiction {
  padding: 8px 9px;
  border-radius: 7px;
  font-size: .67rem;
  line-height: 1.45;
}
.research-warning {
  background: #f7efe5;
  color: #6f563c;
}
.research-error,
.research-contradiction {
  background: #fff0e3;
  color: #824d29;
}
.research-no-contradiction {
  background: #eef2f5;
  color: #59636d;
}
.research-proposal .chat-diff-mount {
  margin-top: 8px;
}
.research-proposal-editor {
  margin-top: 8px;
  min-height: 180px !important;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace !important;
  font-size: .68rem !important;
}
.research-idea-list {
  display: grid;
  gap: 5px;
  margin: 10px 0;
}
.research-idea-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #e1dcd5;
  border-radius: 8px;
  background: #fff;
  font-size: .73rem;
  cursor: pointer;
}
.research-idea-list input {
  width: auto;
}
.research-section h3 {
  margin: 10px 0 4px;
  font-size: .75rem;
}
.research-section p,
.research-section li {
  font-size: .72rem;
  line-height: 1.5;
}
.web-source-card {
  width: min(620px, calc(100% - 40px));
  margin: 20px auto;
  padding: 24px;
  border: 1px solid #dce1e9;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 20px #0001;
}
.source-external-link {
  display: inline-block;
  width: auto;
  margin: 8px 7px 0 0;
  padding: 8px 10px;
  border-radius: 7px;
  text-decoration: none;
  font-size: .72rem;
}
:root[data-dark=true] .research-panel {
  background: #242321;
  color: #e8e2da;
  border-color: #48443e;
}
:root[data-dark=true] .research-heading,
:root[data-dark=true] .research-tabs {
  border-color: #48443e;
}
:root[data-dark=true] .research-tabs button[aria-selected=true] {
  background: #3a352f;
  color: #f3e8da;
}
:root[data-dark=true] .research-section,
:root[data-dark=true] .research-result,
:root[data-dark=true] .research-proposal,
:root[data-dark=true] .research-idea-list label,
:root[data-dark=true] .web-source-card {
  background: #2c2a27;
  border-color: #4b4741;
  color: #e8e2da;
}
:root[data-dark=true] .research-create textarea,
:root[data-dark=true] .research-body textarea,
:root[data-dark=true] .research-body input,
:root[data-dark=true] .research-question-select {
  background: #211f1d;
  color: #e8e2da;
  border-color: #514c45;
}
:root[data-dark=true] .research-context {
  color: #ddd3c8;
}
:root[data-dark=true] .research-warning {
  background: #42372b;
  color: #e6d5bb;
}
:root[data-dark=true] .research-error,
:root[data-dark=true] .research-contradiction {
  background: #472f23;
  color: #f0c39f;
}
:root[data-dark=true] .research-no-contradiction {
  background: #30363b;
  color: #ccd3d9;
}
:root[data-dark=true] .research-badge.verified {
  background: #274333;
  color: #a9dfbd;
}
@media (max-width: 620px) {
  .research-panel {
    top: 62px;
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
  }
  .research-create,
  .research-search {
    grid-template-columns: 1fr;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[role=button]:focus-visible {
  outline: 3px solid #5e75dc;
  outline-offset: 3px;
}
button:disabled,
input:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.home {
  min-height: 100vh;
  background: radial-gradient(#dbe2eb 1px, transparent 1px) 0 0 / 24px 24px, #fbfcfe;
}
.app-watermark {
  position: absolute;
  z-index: 6;
  right: 18px;
  bottom: 14px;
  color: #8d96a3;
  font-size: 1.98rem;
  font-weight: 750;
  letter-spacing: .12em;
  opacity: .115;
  pointer-events: none;
  user-select: none;
}
.home-header {
  height: 66px;
  background: #fff;
  border-bottom: 1px solid #e8ebf0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  position: relative;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 750;
  font-size: 1.05rem;
  letter-spacing: .04em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  letter-spacing: -.04em;
  line-height: 1;
}
.brand-name {
  color: #27303d;
}
.brand-company {
  color: #88929e;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .01em;
  margin-left: 2px;
}
.home-tag {
  color: #88929e;
  font-size: .8rem;
}
.workspace-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 0 9px 0 6px;
  color: #333b49;
  font-size: .78rem;
  letter-spacing: .045em;
  white-space: nowrap;
}
.workspace-brand strong {
  color: var(--accent);
  font-size: .66rem;
  letter-spacing: -.03em;
}
.workspace-brand span {
  font-weight: 750;
}
.home-main {
  max-width: 920px;
  margin: 0 auto;
  padding: 92px 28px 90px;
}
.home-eyebrow,
.panel-eyebrow {
  color: #6d6bb9;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
}
.home h1 {
  font:
    600 clamp(2.7rem, 6vw, 4.8rem)/1.06 Georgia,
    "Times New Roman",
    serif;
  max-width: 720px;
  letter-spacing: -.055em;
  margin: 20px 0 18px;
}
.home-lead {
  color: #687486;
  max-width: 560px;
  line-height: 1.65;
  font-size: 1.08rem;
}
.create-form {
  display: flex;
  max-width: 640px;
  gap: 10px;
  margin: 35px 0 14px;
}
.create-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid #cdd5e3;
  border-radius: 11px;
  background: #fff;
  padding: 14px 16px;
  box-shadow: 0 2px 8px #22314b0a;
}
.create-form button,
.panel-action,
.passage-create {
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font-weight: 650;
  padding: 11px 16px;
}
.create-form button:hover,
.panel-action:hover,
.passage-create:hover {
  background: #403dac;
}
.example-link {
  border: 0;
  background: transparent;
  color: #5654b3;
  padding: 8px 0;
  font-size: .84rem;
}
.example-link:hover {
  text-decoration: underline;
}
.home-secondary-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.project-upload-button {
  border: 0;
  background: transparent;
  color: #5654b3;
  padding: 8px 0;
  font-size: .84rem;
}
.project-upload-button:hover {
  text-decoration: underline;
}
.project-upload-input {
  display: none;
}
.list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 63px 0 16px;
  border-bottom: 1px solid #e2e5ed;
}
.list-heading h2 {
  font-size: 1rem;
}
.workspace-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.empty-home {
  color: #8a95a2;
  grid-column: 1 / -1;
}
.workspace-tile {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  min-height: 96px;
  background: #fff;
  border: 1px solid #e4e8f0;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 15px #1d2d4609;
  color: inherit;
}
.workspace-tile:hover {
  border-color: #9ca7e1;
  transform: translateY(-1px);
}
.workspace-open {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 0;
}
.workspace-open > span:nth-child(2) {
  min-width: 0;
}
.workspace-delete {
  flex: none;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #a4aab6;
  padding: 5px 9px;
  font-size: 1.25rem;
}
.workspace-delete:hover,
.workspace-delete:focus-visible {
  background: #fff0f0;
  color: #ae4d58;
}
.tile-glyph {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #efefff;
  color: #6962ce;
  font-size: 1.5rem;
}
.workspace-tile strong,
.workspace-tile small {
  display: block;
}
.workspace-tile strong {
  font-size: .95rem;
}
.workspace-tile small {
  color: #8a96a2;
  margin-top: 5px;
  font-size: .72rem;
}
.tile-arrow {
  margin-left: auto;
  font-size: 1.2rem;
  color: #878dab;
}
.error-banner {
  color: #a73f31;
  background: #fff0ee;
  padding: 12px 18px;
  border-radius: 8px;
}
.workspace-shell {
  height: 100vh;
  overflow: hidden;
  background: #fff;
}
.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.workspace-title {
  font-weight: 680;
  font-size: .98rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-icon {
  border: 1px solid #e1e4ed;
  background: white;
  color: #526076;
  border-radius: 9px;
  width: 35px;
  height: 35px;
  font-size: 1.3rem;
}
.appearance-control {
  position: relative;
}
.appearance-menu {
  display: none;
  position: absolute;
  z-index: 50;
  right: 0;
  top: 43px;
  width: 180px;
  padding: 12px;
  border: 1px solid #e1e4ed;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px #26364f24;
}
.appearance-control.open .appearance-menu {
  display: grid;
  gap: 3px;
}
.appearance-menu strong {
  margin-bottom: 5px;
}
.appearance-menu label {
  margin-top: 8px;
  color: #8a94a0;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
}
.appearance-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  padding: 7px;
  text-align: left;
  font-size: .78rem;
}
.appearance-option:hover {
  background: #f1f0fb;
  color: var(--accent);
}
.appearance-option-icon {
  width: 16px;
  text-align: center;
  font-size: .95rem;
}
.appearance-option[data-color=violet] .appearance-option-icon {
  color: #635fdb;
}
.appearance-option[data-color=blue] .appearance-option-icon {
  color: #2563a9;
}
.appearance-option[data-color=green] .appearance-option-icon {
  color: #287a58;
}
.appearance-option[data-color=rose] .appearance-option-icon {
  color: #b04468;
}
.appearance-option[data-color=amber] .appearance-option-icon {
  color: #aa6b20;
}
.appearance-option-check {
  margin-left: auto;
  min-width: 14px;
  color: var(--accent);
  font-weight: 800;
}
.paper-heading,
.paper-label {
  background: transparent !important;
}
.paper-heading {
  border: 0 !important;
}
.canvas-viewport {
  background-color: #f5f5f5;
}
::selection {
  background: var(--accent-soft);
  color: inherit;
}
.topic-card,
.paper {
  background: #fafafa;
}
.anchor-mark,
.markdown-highlight,
.markdown-preview .arrived,
.anchor-mark.arrived {
  background: var(--accent-soft);
}
.markdown-highlight {
  position: relative;
  color: inherit;
  border-radius: 2px;
  padding: 0 .05em;
}
.anchor-mark:hover {
  background: var(--accent-soft);
  filter: brightness(.96);
}
:root[data-theme=dark] body,
:root[data-theme=dark] .workspace-shell {
  background: #101010;
}
:root[data-theme=dark] .canvas-viewport {
  background-color: #101010;
  background-image: radial-gradient(#333 1px, transparent 1px);
}
:root[data-theme=dark] .paper,
:root[data-theme=dark] .topic-card,
:root[data-theme=dark] .details-panel,
:root[data-theme=dark] .zoom-controls,
:root[data-theme=dark] .workspace-tile,
:root[data-theme=dark] .workspace-chrome .header-left,
:root[data-theme=dark] .workspace-chrome .header-right {
  background-color: #1b1b1b;
}
:root[data-theme=dark] .header-icon,
:root[data-theme=dark] .details-panel input,
:root[data-theme=dark] .details-panel select,
:root[data-theme=dark] .details-panel textarea,
:root[data-theme=dark] .create-form input {
  background-color: #242424;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme=auto] body,
  :root[data-theme=auto] .workspace-shell {
    background: #101010;
  }
  :root[data-theme=auto] .canvas-viewport {
    background-color: #101010;
    background-image: radial-gradient(#333 1px, transparent 1px);
  }
  :root[data-theme=auto] .paper,
  :root[data-theme=auto] .topic-card,
  :root[data-theme=auto] .details-panel,
  :root[data-theme=auto] .zoom-controls,
  :root[data-theme=auto] .workspace-tile,
  :root[data-theme=auto] .workspace-chrome .header-left,
  :root[data-theme=auto] .workspace-chrome .header-right {
    background-color: #1b1b1b;
  }
  :root[data-theme=auto] .header-icon,
  :root[data-theme=auto] .details-panel input,
  :root[data-theme=auto] .details-panel select,
  :root[data-theme=auto] .details-panel textarea,
  :root[data-theme=auto] .create-form input {
    background-color: #242424;
  }
}
.connectors path.branch-line,
.connectors path.cross-line,
.connectors path.edge-preview {
  stroke: var(--accent);
}
.connectors .origin-dot {
  fill: var(--accent);
}
.topic-card {
  border-left-color: var(--accent);
}
.topic-card.selected,
.topic-card.edge-target {
  border-color: var(--accent);
}
.anchor-mark,
.markdown-highlight {
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 72%, transparent);
}
.anchor-mark:hover {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}
.markdown-preview .arrived,
.anchor-mark.arrived {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 18%, transparent);
}
.canvas-shell {
  position: relative;
  height: calc(100vh - 66px);
  overflow: hidden;
}
.canvas-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: crosshair;
  background-image: radial-gradient(#cbd3e1 1px, transparent 1px);
  background-color: #fbfcfe;
  background-size: 24px 24px;
  touch-action: none;
}
.canvas-viewport.panning {
  cursor: grabbing;
}
.canvas-viewport.panning * {
  cursor: grabbing !important;
}
.canvas-viewport.selecting,
.canvas-viewport.selecting * {
  cursor: crosshair !important;
}
.selection-rectangle {
  position: absolute;
  z-index: 10;
  border: 1px solid #6964c5b8;
  background: #6964c51a;
  border-radius: 3px;
  pointer-events: none;
}
.topic-card.marquee-target {
  border-color: #7771d2;
  box-shadow: 0 0 0 2px #a9a2ed, 0 8px 21px #28324b1c;
}
.scene {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  transform-origin: 0 0;
}
.connectors {
  position: absolute;
  left: -4000px;
  top: -4000px;
  width: 8000px;
  height: 8000px;
  overflow: visible;
  pointer-events: none;
}
.connectors path {
  fill: none;
  stroke: #a6a9dc;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.connectors .cross-line {
  stroke: #9faab7;
  stroke-width: 2;
  stroke-dasharray: 7 6;
}
.paper {
  background: white;
  border: 1px solid #dde3ed;
  border-radius: 16px;
  width: 490px;
  min-height: 550px;
  box-shadow: 0 16px 45px #273a591b, 0 2px 9px #273a590a;
  overflow: visible;
  display: flex;
  flex-direction: column;
  cursor: default;
}
.scene > .paper {
  position: absolute;
}
.paper-heading {
  padding: 29px 32px 18px;
  background:
    linear-gradient(
      145deg,
      #eeeeff 0%,
      #f7f5ff 60%,
      #fff 100%);
  border-bottom: 1px solid #e8e4f4;
  border-radius: 15px 15px 0 0;
}
.paper-scroll {
  padding: 4px 32px 35px;
  overflow: visible;
  flex: 1 0 auto;
}
.anchor-mark {
  position: relative;
  display: inline;
  background: #e9e6ffcc;
  border: 0;
  border-bottom: 2px solid #7a70d3b8;
  color: inherit;
  border-radius: 2px;
  padding: 0;
  font: inherit;
  text-align: inherit;
  white-space: inherit;
}
.anchor-mark:hover,
.connectable-highlight:hover {
  background: #dad5ffcc;
  cursor: crosshair;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 16%, transparent);
}
.paper-resize {
  position: absolute;
  right: 7px;
  bottom: 6px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #9a9db4;
  cursor: nwse-resize;
  touch-action: none;
  font-size: 1.2rem;
  line-height: 1;
}
.paper-resize:hover,
.paper-resize:focus-visible {
  background: #efedff;
  color: #5d56ba;
}
.topic-card {
  position: absolute;
  width: 238px;
  min-height: 112px;
  background: #fff;
  border: 1px solid #d6dced;
  border-left: 4px solid #766ed9;
  border-radius: 12px;
  box-shadow: 0 7px 20px #27395316;
  color: #283247;
  padding: 13px 15px 12px;
  cursor: grab;
  user-select: none;
}
.topic-card:active {
  cursor: grabbing;
}
.topic-card.selected {
  box-shadow: 0 0 0 3px #aca7ee, 0 10px 24px #27395323;
  border-color: #837bdb;
}
.topic-card:hover {
  box-shadow: 0 10px 24px #27395322;
}
.topic-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #98a1ae;
  font-size: .67rem;
  margin-top: 6px;
}
.collapse-button {
  border: 0;
  border-radius: 5px;
  background: #f0f1fb;
  color: #7069bf;
  font-size: .65rem;
}
.zoom-controls {
  position: absolute;
  left: 21px;
  bottom: 27px;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e3e7ef;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 4px 15px #27395312;
  color: #68768b;
}
.zoom-controls button {
  border: 0;
  background: transparent;
  color: #627086;
  width: 33px;
  height: 34px;
  font-size: 1.15rem;
}
.zoom-controls button:hover {
  color: #4c49b9;
}
.zoom-value {
  font-size: .75rem;
  width: 41px;
  text-align: center;
}
.details-panel {
  position: absolute;
  z-index: 9;
  top: 18px;
  right: 18px;
  bottom: 92px;
  width: 320px;
  overflow: auto;
  border: 1px solid #e2e6ed;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 18px 45px #27395325;
  padding: 19px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.panel-close {
  border: 0;
  background: transparent;
  color: #7d8899;
  font-size: 1.35rem;
}
.details-panel label {
  display: block;
  margin: 14px 0 7px;
  color: #8a94a0;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .11em;
}
.details-panel input,
.details-panel select,
.details-panel textarea {
  width: 100%;
  border: 1px solid #d5dce8;
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
  color: #2c3846;
  font-size: .82rem;
}
.details-panel textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}
.source-quote {
  background: #f7f6ff;
  border-left: 3px solid #9189e0;
  padding: 12px;
  margin-top: 18px;
  border-radius: 0 8px 8px 0;
}
.source-quote.unresolved {
  background: #fff6ec;
  border-left-color: #dc9f57;
}
.source-label {
  color: #746eb9;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .06em;
}
.source-quote p {
  font: italic .8rem/1.5 Georgia, serif;
  color: #5b6070;
  margin: 6px 0 0;
}
.panel-action,
.panel-secondary {
  width: 100%;
  margin-top: 9px;
  font-size: .78rem;
  padding: 10px;
}
.panel-secondary {
  border: 1px solid #d9dce9;
  border-radius: 9px;
  background: white;
  color: #6562a9;
  font-weight: 620;
}
.panel-secondary:hover {
  background: #f7f6ff;
}
.panel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 13px;
}
.remove-branch {
  margin-top: 20px;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: #aa6a6a;
  font-size: .75rem;
}
.remove-branch:hover {
  text-decoration: underline;
}
.passage-toolbar {
  position: absolute;
  z-index: 25;
  top: 74px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid #dadbee;
  border-radius: 12px;
  padding: 7px 8px 7px 15px;
  box-shadow: 0 9px 25px #28395325;
  white-space: nowrap;
  font-size: .78rem;
  color: #657188;
}
.passage-create {
  padding: 8px 11px;
  font-size: .76rem;
}
.passage-close {
  border: 0;
  background: transparent;
  color: #929aab;
  font-size: 1.2rem;
  padding: 1px 6px;
}
#toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: #29374d;
  border-radius: 9px;
  padding: 10px 15px;
  color: white;
  font-size: .8rem;
  box-shadow: 0 8px 25px #27395335;
}
#toast:empty {
  display: none;
}
@media (max-width: 850px) {
  .details-panel {
    width: 290px;
  }
}
@media (max-width: 620px) {
  .home-header {
    padding: 0 12px;
  }
  .home-main {
    padding: 55px 20px;
  }
  .workspace-list {
    grid-template-columns: 1fr;
  }
  .create-form {
    flex-direction: column;
  }
  .home-secondary-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }
  .home-tag {
    display: none;
  }
  .details-panel {
    top: auto;
    bottom: 130px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: 45%;
  }
  .passage-toolbar {
    max-width: calc(100vw - 20px);
    white-space: normal;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
.header-icon {
  display: grid;
  place-items: center;
  flex: none;
  font-size: 1rem;
}
.header-icon.active {
  background: #f0efff;
  color: #534fc0;
  border-color: #d7d3ff;
}
.paper-heading {
  padding: 16px 25px;
}
.paper-scroll {
  padding: 20px 28px 42px;
  min-height: 350px;
}
.markdown-preview {
  font:
    .92rem/1.7 Georgia,
    "Times New Roman",
    serif;
  color: #303946;
  overflow-wrap: anywhere;
}
.markdown-preview:empty::before {
  content: "Select Edit to start writing.";
  color: #a0a8b2;
  font-style: italic;
}
.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3,
.markdown-preview h4,
.markdown-preview h5,
.markdown-preview h6 {
  line-height: 1.27;
  color: #27303d;
  scroll-margin: 20px;
}
.markdown-preview h1 {
  font-size: 2.12rem;
  letter-spacing: -.035em;
  margin: 0 0 18px;
}
.markdown-preview h2 {
  font-size: 1.38rem;
  margin: 28px 0 12px;
  border-top: 1px solid #edf0f4;
  padding-top: 22px;
}
.markdown-preview h3 {
  font-size: 1.12rem;
  margin: 23px 0 9px;
}
.markdown-preview h4,
.markdown-preview h5,
.markdown-preview h6 {
  font-size: .98rem;
  margin: 20px 0 8px;
}
.markdown-preview p {
  margin: 0 0 16px;
}
.markdown-preview ul,
.markdown-preview ol {
  padding-left: 1.5em;
  margin: 0 0 16px;
}
.markdown-preview blockquote {
  border-left: 3px solid #b8b3e9;
  color: #60697a;
  margin: 16px 0;
  padding: 2px 0 2px 15px;
}
.markdown-preview code {
  font:
    .82em ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  background: #f2f3f8;
  border-radius: 4px;
  padding: 2px 4px;
}
.markdown-preview pre {
  background: #f2f3f8;
  border-radius: 8px;
  padding: 12px;
  overflow-x: auto;
}
.markdown-preview pre code {
  padding: 0;
}
.markdown-preview table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
  font:
    .82rem/1.5 ui-sans-serif,
    system-ui,
    sans-serif;
}
.markdown-preview th,
.markdown-preview td {
  border: 1px solid #dfe4ec;
  padding: 6px 9px;
  text-align: left;
}
.markdown-preview .katex-display {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 3px 0;
}
.markdown-preview *::selection {
  background: #d5d2ff;
}
.markdown-preview .arrived,
.anchor-mark.arrived {
  background: #eae6ff;
  box-shadow: 0 0 0 7px #eae6ff;
  border-radius: 3px;
}
.markdown-editor {
  display: block;
  width: 100%;
  min-height: 350px;
  resize: none;
  overflow: hidden;
  border: 0;
  outline: 0;
  padding: 0;
  color: #303946;
  background: transparent;
  font:
    .86rem/1.7 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  tab-size: 2;
}
.markdown-editor:focus-visible {
  outline: none;
}
.anchor-mark {
  cursor: pointer;
}
.outline-panel {
  position: absolute;
  z-index: 9;
  left: 18px;
  top: 18px;
  bottom: 86px;
  width: 245px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e1e5ec;
  border-radius: 13px;
  box-shadow: 0 10px 32px #24364f20;
  padding: 15px 8px;
}
.outline-heading {
  padding: 4px 12px 13px;
  color: #7979a4;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
}
.outline-row {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #475267;
  text-align: left;
  padding: 8px 10px;
  font-size: .78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.outline-row:hover,
.outline-row:focus-visible {
  background: #f2f1ff;
  color: #4d49b1;
}
.outline-empty {
  color: #929ba8;
  font-size: .76rem;
  padding: 4px 12px;
  line-height: 1.5;
}
.topic-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: 26px;
  overflow: visible;
}
.topic-footer {
  flex: none;
}
.resize-grip {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: nwse-resize;
  touch-action: none;
  color: #a2a9bb;
}
.resize-grip:hover,
.resize-grip:focus-visible {
  background: #eeeaff;
  color: #5752bc;
}
.resize-grip::before,
.resize-grip::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform: rotate(-45deg);
  transform-origin: center;
  opacity: .5;
}
.resize-grip::before {
  width: 15px;
  right: 3px;
  bottom: 8px;
}
.resize-grip::after {
  width: 8px;
  right: 4px;
  bottom: 4px;
}
.paper-resize {
  width: 24px;
  height: 24px;
  font-size: initial;
}
@media (max-width: 620px) {
  .outline-panel {
    left: 12px;
    width: min(245px, calc(100vw - 24px));
    bottom: 125px;
  }
}
.workspace-shell {
  position: relative;
  height: 100vh;
}
.canvas-shell {
  height: 100vh;
}
.workspace-chrome {
  position: absolute;
  z-index: 22;
  inset: 16px 18px auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  pointer-events: none;
}
.workspace-chrome .header-left-group {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  max-width: min(675px, 78vw);
}
.workspace-chrome .header-home,
.workspace-chrome .header-left,
.workspace-chrome .header-right {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 43px;
  padding: 4px 6px;
  border: 1px solid #e5e7ee;
  border-radius: 12px;
  background: rgb(255 255 255 / 55%);
  box-shadow: 0 3px 16px #222a3e12;
  -webkit-backdrop-filter: blur(21px);
  backdrop-filter: blur(21px);
}
.workspace-chrome .header-home {
  flex: none;
}
.workspace-chrome .header-left {
  min-width: 0;
  max-width: min(620px, 72vw);
}
.workspace-chrome .header-right {
  flex: none;
}
.workspace-chrome .header-left .save-menu {
  left: 0;
  right: auto;
}
.document-menu-control {
  position: relative;
  min-width: 0;
  max-width: min(330px, 42vw);
}
.document-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 9px);
  left: 0;
  width: 210px;
  display: grid;
  padding: 5px;
  border: 1px solid #e1e4eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 34px #26364f24;
  color: #3f495a;
}
.document-menu-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  padding: 9px 10px;
  text-align: left;
  font-size: .77rem;
}
.document-menu-option[aria-checked=true]::after {
  content: "\2713";
  margin-left: auto;
  color: var(--accent);
  font-weight: 800;
}
.document-menu-option.submenu-trigger::after {
  content: "\203a";
  margin-left: auto;
  color: #8992a0;
  font-size: 1rem;
  line-height: .7;
}
.document-menu-option:hover,
.document-menu-option:focus-visible {
  background: #f1f0fb;
  color: #4e4ab2;
}
.document-menu-separator {
  height: 1px;
  margin: 4px 5px;
  background: #edf0f4;
}
.document-menu-heading {
  padding: 7px 10px 3px;
  color: #777f8d;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.document-menu-subheading {
  padding: 7px 10px 2px;
  color: #9299a5;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.document-menu-submenu {
  position: relative;
}
.document-menu-submenu::after {
  content: "";
  position: absolute;
  z-index: 40;
  top: -5px;
  left: 100%;
  width: 6px;
  height: calc(100% + 10px);
}
.document-submenu {
  display: none;
  position: absolute;
  z-index: 41;
  top: -5px;
  left: calc(100% + 5px);
  width: 145px;
  padding: 5px;
  border: 1px solid #e1e4eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 34px #26364f24;
}
.document-menu-submenu.open .document-submenu,
.document-menu-submenu:hover .document-submenu {
  display: grid;
}
.document-menu-submenu.open > .document-menu-option {
  background: #f1f0fb;
  color: #4e4ab2;
}
.document-menu-choice {
  text-transform: capitalize;
}
.document-menu-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 5px 3px 10px;
  color: #7c8797;
  font-size: .72rem;
}
.document-menu-label {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.document-save-status {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  padding: 7px 8px;
  font-size: .72rem;
}
.document-save-status:hover,
.document-save-status:focus-visible {
  background: #f1f0fb;
  color: #4e4ab2;
}
.document-save-status[data-state=dirty] {
  color: #9a6b31;
}
.document-save-status[data-state=error] {
  color: #ae4d58;
}
.workspace-chrome .workspace-title {
  display: block;
  max-width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: .87rem;
  font-weight: 650;
  color: #333b49;
  padding: 0 10px 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.document-title-input {
  display: block;
  width: 100%;
  min-width: 120px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-size: .87rem;
  font-weight: 650;
  padding: 4px 7px;
  outline: 0;
}
.workspace-chrome .header-icon {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 7px;
  color: #626b7b;
  background: transparent;
}
.workspace-chrome .header-icon:hover {
  background: #f2f3f7;
  color: #4d4ab1;
}
.workspace-chrome .header-icon.active {
  background: #efedff;
  color: #5652bb;
}
.workspace-chrome .header-icon:disabled {
  opacity: .38;
}
.canvas-viewport {
  background-image: radial-gradient(#d7dce5 .8px, transparent .8px);
  background-color: #fdfdfd;
}
.paper {
  z-index: 1;
  border: 1px solid #e4e6ec;
  border-radius: 12px;
  box-shadow: 0 12px 34px #24304b12, 0 2px 5px #24304b07;
}
.paper-heading {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 31px;
  padding: 0;
  border: 0;
  background: transparent;
}
.paper-scroll {
  padding: 53px 32px 42px;
}
.paper-label {
  color: #9199a6;
  font-size: .67rem;
  font-weight: 650;
  letter-spacing: .025em;
}
.markdown-preview h1 {
  padding-right: 48px;
}
.connectors {
  z-index: 2;
}
.anchor-connectors {
  z-index: 4;
}
.connectors path.branch-line {
  stroke: #a49bcc;
  stroke-width: 1.8;
  stroke-opacity: .72;
}
.connectors path.cross-line {
  stroke: #aab1bc;
  stroke-width: 1.7;
  stroke-opacity: .72;
}
.connectors path.edge-preview {
  stroke: #8e87bd;
  stroke-width: 1.8;
  stroke-dasharray: 6 5;
  opacity: .78;
}
.connectors .origin-dot {
  fill: #8f83c8;
  opacity: .72;
}
.topic-card {
  z-index: 3;
  border: 1px solid #dddfe9;
  border-radius: 10px;
  box-shadow: 0 5px 17px #28324b15;
  padding: 12px 14px 24px;
}
.topic-card.selected {
  z-index: 4;
  border-color: #8880ce;
  box-shadow: 0 0 0 2px #aca3e6, 0 8px 21px #28324b1c;
}
.topic-card.edge-target {
  border-color: #746dcb;
  box-shadow: 0 0 0 3px #aca3e6;
}
.link-grip {
  position: absolute;
  z-index: 5;
  right: -13px;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid #c9c5e9;
  border-radius: 50%;
  background: #fff;
  color: #7069ba;
  font-size: .9rem;
  line-height: 1;
  box-shadow: 0 2px 7px #26364f20;
  opacity: 0;
  cursor: crosshair;
  touch-action: none;
}
.topic-card:hover .link-grip,
.topic-card.selected .link-grip,
.link-grip:focus-visible {
  opacity: 1;
}
.edge-label-chip {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  transform: translate(-50%, -50%);
  padding: 1px 3px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  white-space: nowrap;
}
.edge-label-chip button {
  border: 0;
  background: transparent;
  color: #6d7585;
}
.edge-label-chip:not(.active) {
  opacity: .32;
  pointer-events: none;
}
.edge-label-chip.active {
  border-color: var(--accent);
  background: #fffffff2;
  box-shadow: 0 2px 8px #28324b20;
  opacity: 1;
  pointer-events: auto;
}
.edge-type-button {
  padding: 3px 4px;
  font-size: .82rem;
  line-height: 1;
  font-weight: 700;
  color: var(--accent) !important;
}
.edge-type-button:hover,
.edge-type-button:focus-visible {
  background: var(--accent-soft);
  border-radius: 4px;
}
.edge-label-name {
  padding: 3px 5px;
  font-size: .7rem;
  font-weight: 650;
}
.edge-label-name:hover {
  color: #514db4;
}
.edge-label-remove {
  padding: 0 3px;
  font-size: .9rem;
  opacity: 0;
}
.edge-label-chip:hover .edge-label-remove,
.edge-label-remove:focus-visible {
  opacity: 1;
}
.edge-label-input {
  width: 110px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #3f495a;
  padding: 3px 5px;
  font-size: .7rem;
}
.node-content {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 8px 0 2px;
  overflow: hidden;
  cursor: text;
  user-select: text;
  font:
    .73rem/1.45 Georgia,
    "Times New Roman",
    serif;
  color: #697486;
}
.topic-card.selected .node-content {
  overflow: auto;
  overscroll-behavior: contain;
}
.topic-card.content-overflow:not(.selected) .node-content::after {
  content: "\2026";
  position: absolute;
  right: 0;
  bottom: 0;
  padding-left: 15px;
  background:
    linear-gradient(
      90deg,
      #fff0,
      #fff 35%);
  color: #8b93a3;
  pointer-events: none;
}
.node-content:empty::before {
  content: "Add content\2026";
  color: #a0a8b2;
}
.node-markdown-editor {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  resize: none;
  overflow: auto;
  border: 0;
  border-radius: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font:
    .72rem/1.45 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  tab-size: 2;
}
.node-markdown-editor:focus,
.node-markdown-editor:focus-visible {
  outline: 0;
  box-shadow: none;
  background: transparent;
}
.topic-card.editing-node-content .node-content {
  flex: 1 1 0;
  overflow: hidden;
}
.node-actions {
  position: absolute;
  z-index: 12;
  top: calc(100% + 9px);
  left: -2px;
  display: grid;
  gap: 4px;
  min-width: max-content;
  padding: 5px;
  border: 1px solid #dddfe9;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px #28324b26;
  cursor: default;
}
.node-actions-row {
  display: flex;
  align-items: center;
  gap: 3px;
}
.node-actions-row.secondary {
  border-top: 1px solid #eceef3;
  padding-top: 4px;
}
.node-action {
  min-height: 29px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #555d6c;
  padding: 6px 8px;
  font-size: .7rem;
  font-weight: 650;
  white-space: nowrap;
}
.node-action:hover,
.node-action:focus-visible,
.node-source-control.open > .node-action {
  background: #f1f0fb;
  color: var(--accent);
}
.node-action.primary {
  background: var(--accent);
  color: #fff;
}
.node-action.primary:hover,
.node-action.primary:focus-visible {
  background: color-mix(in srgb, var(--accent) 85%, black);
  color: #fff;
}
.node-action.warning {
  color: #9a641f;
}
.node-action.destructive {
  margin-left: auto;
  color: #a34d56;
}
.node-action.destructive:hover,
.node-action.destructive:focus-visible {
  background: #fff0f1;
  color: #963640;
}
.node-source-control {
  position: relative;
}
.node-source-menu {
  display: none;
  position: absolute;
  z-index: 14;
  left: 0;
  top: calc(100% + 7px);
  width: 220px;
  max-height: 210px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #dddfe9;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 9px 25px #28324b2b;
}
.node-source-control.open .node-source-menu {
  display: grid;
}
.node-source-item {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #4e5665;
  padding: 8px 9px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .7rem;
}
.node-source-item:hover,
.node-source-item:focus-visible {
  background: #f1f0fb;
  color: var(--accent);
}
.node-content h1,
.node-content h2,
.node-content h3,
.node-content h4,
.node-content h5,
.node-content h6 {
  margin: 5px 0 4px;
  padding: 0;
  border: 0;
  font:
    700 .85rem/1.25 ui-sans-serif,
    system-ui,
    sans-serif;
}
.node-content h1:first-child,
.node-content h2:first-child,
.node-content h3:first-child {
  margin-top: 0;
}
.node-content p,
.node-content ul,
.node-content ol,
.node-content blockquote {
  margin: 0 0 6px;
}
.node-content .katex-display {
  margin: 7px 0;
}
.details-markdown {
  min-height: 180px !important;
  font:
    .78rem/1.55 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace !important;
}
.topic-footer {
  margin-top: auto;
  min-height: 15px;
  color: #969eac;
}
.zoom-controls {
  left: 18px;
  bottom: 18px;
  gap: 2px;
  border-radius: 10px;
  box-shadow: 0 3px 14px #26364f15;
}
.zoom-controls button {
  width: 32px;
}
.zoom-value {
  width: 38px;
}
.zoom-divider {
  height: 20px;
  width: 1px;
  background: #e7e9ef;
  margin: 0 3px;
}
.zoom-controls .fit-button {
  width: auto;
  min-width: 37px;
  padding: 0 9px;
  font-size: .73rem;
  font-weight: 650;
}
.outline-panel {
  top: 70px;
  bottom: 76px;
  border-radius: 11px;
  box-shadow: 0 8px 26px #24364f17;
}
.details-panel {
  top: 70px;
  bottom: 18px;
  border-radius: 11px;
  box-shadow: 0 10px 32px #24364f1c;
}
.passage-toolbar {
  position: fixed;
  top: auto;
  left: auto;
  transform: none;
  gap: 2px;
  padding: 4px;
  border-radius: 9px;
  box-shadow: 0 7px 20px #27395328;
}
.passage-create {
  padding: 7px 10px;
  border-radius: 6px;
  font-size: .74rem;
}
.passage-close {
  font-size: 1rem;
}
.context-menu {
  position: fixed;
  z-index: 35;
  min-width: 190px;
  max-width: min(270px, calc(100vw - 16px));
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  display: grid;
  padding: 5px;
  border: 1px solid #e1e4eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 34px #26364f24;
}
.context-option {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #3f495a;
  padding: 8px 10px;
  text-align: left;
  font-size: .77rem;
}
.context-option:hover,
.context-option:focus-visible {
  background: #f1f0fb;
  color: #4e4ab2;
}
.context-option.destructive {
  color: #a34d56;
}
.context-option.destructive:hover,
.context-option.destructive:focus-visible {
  background: #fff0f1;
  color: #9d3440;
}
.context-separator {
  height: 1px;
  margin: 4px 5px;
  background: #edf0f4;
}
.save-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 31px;
  border-radius: 7px;
  color: #7c8797;
  white-space: nowrap;
}
.save-control:hover,
.save-control:focus-within {
  background: #f3f4f8;
}
.save-control[data-state=dirty] {
  color: #9a6b31;
}
.save-control[data-state=error] {
  color: #ae4d58;
}
.save-main,
.save-mode-button {
  border: 0;
  background: transparent;
  color: inherit;
  height: 29px;
}
.save-main {
  padding: 0 4px 0 9px;
  font-size: .72rem;
}
.save-mode-button {
  min-width: 22px;
  padding: 0;
  display: grid;
  place-items: center;
}
.save-mode-button::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.save-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 9px);
  right: 0;
  width: 190px;
  display: grid;
  padding: 5px;
  border: 1px solid #e1e4eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 34px #26364f24;
  color: #3f495a;
}
.save-menu-option {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  padding: 9px 10px;
  text-align: left;
  font-size: .77rem;
  white-space: pre;
}
.save-menu-option:hover,
.save-menu-option:focus-visible {
  background: #f1f0fb;
  color: #4e4ab2;
}
.save-menu-separator {
  height: 1px;
  margin: 4px 5px;
  background: #edf0f4;
}
.home .save-control {
  border: 1px solid #e4e7ef;
  background: #fff;
}
.workspace-chrome .save-control {
  flex: none;
}
.selection-toolbar {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 12px;
  border: 1px solid #dcddec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 20px #2739531e;
  color: #586178;
  font-size: .76rem;
  white-space: nowrap;
}
.selection-toolbar button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 7px 9px;
  color: #615caa;
  font-size: .74rem;
}
.selection-toolbar button:hover {
  background: #f1f0fb;
}
.selection-toolbar .selection-delete {
  color: #a34d56;
}
.selection-toolbar .selection-delete:hover {
  background: #fff0f1;
}
.graph-focus-toolbar {
  position: absolute;
  z-index: 18;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100vw - 180px);
  padding: 5px 6px 5px 11px;
  border: 1px solid #dcddec;
  border-radius: 10px;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 6px 20px #27395324;
  color: #586178;
  font-size: .72rem;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.graph-focus-label {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 650;
}
.graph-focus-toolbar select,
.graph-focus-toolbar input {
  height: 29px;
  border: 1px solid #d7dae3;
  border-radius: 6px;
  background: #fff;
  color: #4d5667;
  font-size: .71rem;
}
.graph-focus-toolbar select {
  padding: 0 25px 0 8px;
}
.graph-focus-depth {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #7a8290;
}
.graph-focus-depth input {
  width: 48px;
  padding: 0 4px 0 7px;
}
.graph-focus-exit {
  width: 29px;
  height: 29px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #747c89;
  font-size: 1rem;
}
.graph-focus-exit:hover,
.graph-focus-exit:focus-visible {
  background: #f1f0fb;
  color: var(--accent);
}
.graph-focus-active .topic-card,
.graph-focus-active .paper,
.graph-focus-active .connectors path,
.graph-focus-active .edge-label-chip {
  transition: opacity .36s cubic-bezier(.22, 1, .36, 1);
}
.graph-focus-active .focus-muted {
  opacity: .1 !important;
  pointer-events: none !important;
}
.graph-focus-active .topic-card.focus-related {
  z-index: 7;
  opacity: 1;
}
.graph-focus-active .connectors path.focus-related,
.graph-focus-active .edge-label-chip.focus-related {
  opacity: 1;
}
.graph-focus-active .app-watermark {
  opacity: .012;
}
.workspace-shell.graph-focus-active > .workspace-chrome,
.workspace-shell.graph-focus-active .zoom-controls,
.workspace-shell.graph-focus-active .outline-panel,
.workspace-shell.graph-focus-active .details-panel,
.workspace-shell.graph-focus-active .sources-panel,
.workspace-shell.graph-focus-active .ai-panel,
.workspace-shell.graph-focus-active .passage-toolbar,
.workspace-shell.graph-focus-active .selection-toolbar {
  opacity: .1;
  pointer-events: none;
  transition: opacity .36s cubic-bezier(.22, 1, .36, 1);
}
.workspace-shell.graph-focus-active .graph-focus-toolbar {
  opacity: 1;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .graph-focus-active .topic-card,
  .graph-focus-active .paper,
  .graph-focus-active .connectors path,
  .graph-focus-active .edge-label-chip,
  .workspace-shell.graph-focus-active > .workspace-chrome,
  .workspace-shell.graph-focus-active .zoom-controls,
  .workspace-shell.graph-focus-active .outline-panel,
  .workspace-shell.graph-focus-active .details-panel,
  .workspace-shell.graph-focus-active .sources-panel,
  .workspace-shell.graph-focus-active .ai-panel,
  .workspace-shell.graph-focus-active .passage-toolbar,
  .workspace-shell.graph-focus-active .selection-toolbar {
    transition: none;
  }
}
:root[data-dark=true] .graph-focus-toolbar {
  background: rgb(27 27 27 / 92%);
  color: #e7eaf0;
  border-color: #444;
}
:root[data-dark=true] .graph-focus-toolbar select,
:root[data-dark=true] .graph-focus-toolbar input {
  background: #242424;
  color: #e7eaf0;
  border-color: #4b4b4b;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme=auto] .graph-focus-toolbar {
    background: rgb(27 27 27 / 92%);
    color: #e7eaf0;
    border-color: #444;
  }
  :root[data-theme=auto] .graph-focus-toolbar select,
  :root[data-theme=auto] .graph-focus-toolbar input {
    background: #242424;
    color: #e7eaf0;
    border-color: #4b4b4b;
  }
}
@media (max-width: 620px) {
  .workspace-chrome {
    inset: 10px 10px auto;
    gap: 6px;
  }
  .workspace-chrome .header-left-group {
    max-width: calc(100vw - 100px);
    gap: 5px;
  }
  .workspace-chrome .header-left {
    max-width: none;
    flex: 1 1 auto;
  }
  .workspace-chrome .header-right {
    gap: 0;
  }
  .document-menu {
    width: min(210px, calc(100vw - 20px));
  }
  .document-submenu {
    position: static;
    width: auto;
    margin: 0 5px 4px;
    box-shadow: none;
  }
  .workspace-chrome .workspace-title {
    display: block;
    max-width: 120px;
    padding: 0 5px;
    font-size: .76rem;
  }
  .outline-panel {
    top: 62px;
    bottom: 75px;
  }
  .details-panel {
    top: auto;
    bottom: 64px;
  }
  .zoom-controls {
    bottom: 12px;
  }
}
@media (max-width: 620px) {
  .graph-focus-toolbar {
    left: 8px;
    right: 8px;
    bottom: 57px;
    transform: none;
    max-width: none;
    overflow-x: auto;
  }
  .graph-focus-label {
    max-width: 125px;
  }
}
.outline-panel {
  bottom: auto;
  max-height: min(420px, calc(100vh - 155px));
}
.details-panel {
  bottom: auto;
  max-height: calc(100vh - 88px);
}
.outline-row {
  transition: background-color .15s ease, color .15s ease;
}
:root[data-dark=true] .outline-panel,
:root[data-dark=true] .source-quote,
:root[data-dark=true] .appearance-menu,
:root[data-dark=true] .save-menu,
:root[data-dark=true] .document-menu,
:root[data-dark=true] .context-menu,
:root[data-dark=true] .edge-label-chip,
:root[data-dark=true] .selection-toolbar,
:root[data-dark=true] .passage-toolbar {
  background: #222;
  color: #e7e7eb;
  border-color: #454545;
}
:root[data-dark=true] .outline-heading,
:root[data-dark=true] .panel-eyebrow,
:root[data-dark=true] .source-label {
  color: #aaa8f2;
}
:root[data-dark=true] .outline-row,
:root[data-dark=true] .edge-label-chip button,
:root[data-dark=true] .edge-label-input {
  color: #d3d5dc;
}
:root[data-dark=true] .outline-row:hover,
:root[data-dark=true] .outline-row:focus-visible,
:root[data-dark=true] .appearance-option:hover,
:root[data-dark=true] .context-option:hover,
:root[data-dark=true] .save-menu-option:hover,
:root[data-dark=true] .document-menu-option:hover {
  background: #33313e;
  color: #f2efff;
}
:root[data-dark=true] .markdown-preview .arrived,
:root[data-dark=true] .anchor-mark.arrived {
  background: var(--accent-soft);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent-soft) 80%, transparent);
}
:root[data-dark=true] .source-quote {
  background: color-mix(in srgb, var(--accent) 16%, #222);
  border-left-color: var(--accent);
}
:root[data-dark=true] .source-quote.unresolved {
  background: #342a23;
  border-left-color: #dfa75e;
}
:root[data-dark=true] .source-quote p {
  color: #d5d2df;
}
:root[data-dark=true] .panel-secondary,
:root[data-dark=true] .collapse-button {
  background: #303036;
  color: #e6e2ff;
  border-color: #5a5864;
}
:root[data-dark=true] .panel-secondary:hover,
:root[data-dark=true] .collapse-button:hover {
  background: #3b3948;
}
:root[data-dark=true] .details-panel label,
:root[data-dark=true] .appearance-menu label,
:root[data-dark=true] .paper-label {
  color: #acafbb;
}
:root[data-dark=true] .markdown-preview h2,
:root[data-dark=true] .markdown-preview th,
:root[data-dark=true] .markdown-preview td {
  border-color: #444;
}
:root[data-dark=true] .markdown-preview code,
:root[data-dark=true] .markdown-preview pre {
  background: #303035;
  color: #e9e7ef;
}
:root[data-dark=true] .markdown-preview blockquote {
  color: #bfc2cb;
}
:root[data-dark=true] .topic-card.content-overflow:not(.selected) .node-content::after {
  background:
    linear-gradient(
      90deg,
      #1b1b1b00,
      #1b1b1b 35%);
}
:root[data-dark=true] .workspace-chrome .header-home,
:root[data-dark=true] .workspace-chrome .header-left,
:root[data-dark=true] .workspace-chrome .header-right {
  background: rgb(27 27 27 / 55%);
  border-color: #454545;
}
:root[data-dark=true] .zoom-controls button,
:root[data-dark=true] .workspace-chrome .header-icon,
:root[data-dark=true] .panel-close {
  color: #bdc0ca;
}
:root[data-dark=true] .workspace-chrome .header-icon:hover,
:root[data-dark=true] .zoom-controls button:hover {
  background: #34343b;
  color: #f0edff;
}
:root[data-dark=true] .workspace-chrome .header-icon.active {
  background: #383451;
  color: #e4ddff;
}
:root[data-dark=true] .zoom-divider,
:root[data-dark=true] .context-separator,
:root[data-dark=true] .save-menu-separator,
:root[data-dark=true] .document-menu-separator {
  background: #454545;
}
:root[data-dark=true] .document-menu-status,
:root[data-dark=true] .document-menu-heading,
:root[data-dark=true] .document-menu-subheading {
  color: #acafbb;
}
:root[data-dark=true] .document-submenu {
  background: #222;
  border-color: #454545;
}
:root[data-dark=true] .document-menu-submenu.open > .document-menu-option {
  background: #33313e;
  color: #f2efff;
}
:root[data-dark=true] .document-save-status:hover,
:root[data-dark=true] .document-save-status:focus-visible {
  background: #33313e;
  color: #f2efff;
}
:root[data-dark=true] .link-grip {
  background: #292932;
  border-color: #8f89bb;
  color: #dedaff;
}
:root[data-dark=true] .connectors path.branch-line,
:root[data-dark=true] .connectors path.cross-line,
:root[data-dark=true] .connectors path.edge-preview {
  stroke: color-mix(in srgb, var(--accent) 70%, white);
  stroke-opacity: .82;
}
:root[data-dark=true] .topic-card.selected,
:root[data-dark=true] .topic-card.edge-target {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent), 0 8px 21px #0005;
}
:root[data-dark=true] .node-actions,
:root[data-dark=true] .node-source-menu {
  background: #222;
  color: #e7e7eb;
  border-color: #454545;
}
:root[data-dark=true] .node-markdown-editor,
:root[data-dark=true] .node-markdown-editor:focus,
:root[data-dark=true] .node-markdown-editor:focus-visible {
  background: transparent;
  color: inherit;
}
:root[data-dark=true] .markdown-editor,
:root[data-dark=true] .document-title-input,
:root[data-dark=true] .edge-label-input,
:root[data-dark=true] .ai-chat-composer .ai-question,
:root[data-dark=true] .ai-chat-composer .chat-context-select {
  background: transparent;
  color: inherit;
}
:root[data-dark=true] .node-actions-row.secondary {
  border-color: #454545;
}
:root[data-dark=true] .node-action,
:root[data-dark=true] .node-source-item {
  color: #d3d5dc;
}
:root[data-dark=true] .node-action:hover,
:root[data-dark=true] .node-action:focus-visible,
:root[data-dark=true] .node-source-control.open > .node-action,
:root[data-dark=true] .node-source-item:hover,
:root[data-dark=true] .node-source-item:focus-visible {
  background: #33313e;
  color: #f2efff;
}
:root[data-dark=true] .node-action.primary {
  background: var(--accent);
  color: #fff;
}
:root[data-dark=true] .node-action.warning {
  color: #f0bd72;
}
:root[data-dark=true] .node-action.destructive {
  color: #ee9aa2;
}
:root[data-dark=true] .node-action.destructive:hover,
:root[data-dark=true] .node-action.destructive:focus-visible {
  background: #4a282c;
  color: #ffc1c7;
}
@media (max-width: 620px) {
  .outline-panel {
    bottom: auto;
    max-height: min(340px, calc(100vh - 140px));
  }
  .details-panel {
    bottom: 64px;
    max-height: 50vh;
  }
}
.topic-card {
  padding: 11px 13px 19px;
}
.node-content {
  flex: 1 1 auto;
  margin: 5px 0 0;
}
.node-content > :first-child {
  margin-right: 22px;
}
.node-content p:last-child,
.node-content ul:last-child,
.node-content ol:last-child {
  margin-bottom: 0;
}
.topic-footer {
  margin-top: 5px;
}
.node-resize {
  right: 3px;
  bottom: 3px;
}
.zoom-menu {
  position: relative;
  height: 34px;
}
.zoom-controls .zoom-value {
  width: 47px;
  height: 34px;
  font-size: .75rem;
  font-weight: 650;
}
.zoom-controls .zoom-value:hover,
.zoom-controls .zoom-value[aria-expanded=true] {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}
.zoom-presets {
  display: none;
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  min-width: 100px;
  padding: 5px;
  border: 1px solid #dce1e9;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 10px 26px #0003;
}
.zoom-menu.open .zoom-presets {
  display: grid;
}
.zoom-controls .zoom-preset {
  width: 100%;
  height: 31px;
  border-radius: 5px;
  font-size: .76rem;
  text-align: left;
  padding: 0 10px;
}
.zoom-controls .zoom-preset:hover,
.zoom-controls .zoom-preset:focus-visible {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}
:root[data-dark=true] .zoom-presets {
  background: #242424;
  border-color: #454545;
}
.connectors .line-start {
  stop-color: var(--accent);
  stop-opacity: .08;
}
.connectors .line-end {
  stop-color: var(--accent);
  stop-opacity: .85;
}
:root[data-dark=true] .connectors .line-start,
:root[data-dark=true] .connectors .line-end {
  stop-color: color-mix(in srgb, var(--accent) 70%, white);
}
.connectors .connector-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 12;
  pointer-events: stroke;
  cursor: pointer;
}
.connectors .connector-hit:hover,
.connectors .connector-hit:focus-visible {
  stroke: color-mix(in srgb, var(--accent) 20%, transparent);
  outline: none;
}
.connectors .edge-preview {
  pointer-events: none;
}
.connectors .edge-preview-port {
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 2;
  pointer-events: none;
}
.connectors {
  --solid-connector-color: var(--accent);
}
.connectors path.cross-line {
  stroke: var(--solid-connector-color);
  stroke-opacity: .78;
  stroke-dasharray: 7 6;
}
.connectors path.cross-line.one-way {
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-opacity: .72;
  stroke-dasharray: none;
}
:root[data-dark=true] .connectors {
  --solid-connector-color: color-mix(in srgb, var(--accent) 70%, white);
}
:root[data-dark=true] .connectors path.cross-line {
  stroke: var(--solid-connector-color);
  stroke-opacity: .78;
}
.connection-handle {
  position: absolute;
  z-index: 7;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), 0 3px 9px #0005;
  transform: translate(-50%, -50%);
  cursor: grab;
  touch-action: none;
}
.connection-handle:hover,
.connection-handle:focus-visible,
.connection-handle.dragging {
  outline: none;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 30%, transparent), 0 3px 9px #0005;
}
.connection-handle.dragging {
  cursor: grabbing;
}
.entry-form {
  flex-direction: column;
  gap: 10px;
}
.entry-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 3px;
}
.entry-tab {
  border: 1px solid #dfe3ec;
  background: #fff;
  color: #626b7b;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: .78rem;
  font-weight: 650;
}
.entry-tab[aria-selected=true] {
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, white);
}
.entry-paste {
  min-height: 150px;
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #cdd5e3;
  border-radius: 11px;
  background: #fff;
  resize: vertical;
  font:
    .84rem/1.5 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.entry-file {
  width: 100%;
  border: 1px dashed #c7ccda;
  border-radius: 10px;
  padding: 14px;
  font-size: .8rem;
}
.entry-form > button[type=submit] {
  align-self: flex-start;
}
.entry-form [hidden] {
  display: none;
}
.source-toggle {
  align-self: center;
  flex: none;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #646b7b;
  padding: 7px 9px;
  font-size: .72rem;
  font-weight: 700;
}
.source-toggle:hover,
.source-toggle.active {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}
.sources-panel {
  position: absolute;
  z-index: 20;
  top: 70px;
  right: 18px;
  bottom: 18px;
  width: min(1040px, calc(100vw - 36px));
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #dce1e9;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 15px 50px #0003;
}
.sources-sidebar {
  min-width: 0;
  overflow-y: auto;
  padding: 14px;
  border-right: 1px solid #e4e7ed;
  background: #f7f8fa;
}
.sources-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 13px;
}
.sources-heading strong {
  font-size: .86rem;
}
.source-list-item {
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 9px 8px;
  font-size: .78rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.source-list-item:hover,
.source-list-item.active {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}
.source-add-heading {
  margin: 21px 0 9px;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .11em;
  color: #848c9a;
}
.source-add-text {
  display: grid;
  gap: 7px;
}
.source-add-text input,
.source-add-text textarea,
.source-file-input {
  min-width: 0;
  width: 100%;
  border: 1px solid #d7dce5;
  border-radius: 7px;
  background: #fff;
  color: inherit;
  padding: 8px;
  font-size: .72rem;
}
.source-add-text textarea {
  min-height: 85px;
  resize: vertical;
}
.source-add-text .panel-action {
  margin: 0;
}
.source-file-input {
  margin-top: 10px;
}
.source-reader {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #f2f3f5;
}
.source-reader-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 15px 19px;
  background: #fff;
  border-bottom: 1px solid #e4e7ed;
}
.source-reader-heading strong {
  font-size: .92rem;
}
.source-reader-heading small {
  color: #7e8795;
  font-size: .7rem;
}
.source-empty {
  max-width: 440px;
  margin: auto;
  padding: 24px;
  color: #687486;
  text-align: center;
  line-height: 1.6;
}
.source-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 20px;
}
.source-text-surface {
  position: relative;
  max-width: 720px;
  min-height: 100%;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 4px 20px #0002;
}
.source-text {
  position: relative;
  z-index: 2;
  padding: 32px 38px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #20252e;
  font: .96rem/1.68 Georgia, serif;
  user-select: text;
}
.source-page-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px;
  background: #fff;
  border-bottom: 1px solid #e4e7ed;
  font-size: .75rem;
}
.source-page-controls button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  padding: 5px 9px;
}
.source-page-controls button:hover {
  background: #edf0f5;
}
.source-page-controls input {
  width: 52px;
  padding: 4px;
  border: 1px solid #d7dce5;
  border-radius: 5px;
  text-align: center;
}
.pdf-page-surface {
  position: relative;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 4px 20px #0003;
}
.pdf-page-surface canvas {
  display: block;
}
.pdf-page-surface .textLayer {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: clip;
  line-height: 1;
  letter-spacing: normal;
  word-spacing: normal;
  transform-origin: 0 0;
  user-select: text;
  --min-font-size: 1;
  --text-scale-factor: calc(var(--total-scale-factor) * var(--min-font-size));
  --min-font-size-inv: calc(1 / var(--min-font-size));
}
.pdf-page-surface .textLayer :is(span, br) {
  position: absolute;
  color: transparent;
  white-space: pre;
  cursor: text;
  transform-origin: 0 0;
  user-select: text;
}
.pdf-page-surface .textLayer > :not(.markedContent),
.pdf-page-surface .textLayer .markedContent span:not(.markedContent) {
  z-index: 1;
  --font-height: 0;
  font-size: calc(var(--text-scale-factor) * var(--font-height));
  --scale-x: 1;
  --rotate: 0deg;
  transform: rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv));
}
.pdf-page-surface .textLayer .markedContent {
  display: contents;
}
.pdf-page-surface .textLayer ::selection {
  background: color-mix(in srgb, var(--accent) 35%, transparent);
  color: transparent;
}
.source-passage-highlight {
  position: absolute;
  z-index: 1;
  background: color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 2px;
  pointer-events: none;
}
.source-selection-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 15px;
  background: #fff;
}
.source-selection-actions:not(:empty) {
  padding-block: 8px;
  border-bottom: 1px solid #e4e7ed;
}
.source-selection-actions .panel-action,
.source-selection-actions .panel-secondary {
  width: auto;
  margin: 0;
  white-space: nowrap;
}
.source-selection-actions select {
  max-width: 180px;
  min-width: 100px;
  border: 1px solid #d7dce5;
  border-radius: 6px;
  padding: 8px;
  font-size: .75rem;
}
.source-selection-quote {
  flex: 1 1 140px;
  min-width: 0;
  color: #636c7b;
  font: italic .75rem Georgia, serif;
}
.source-error {
  max-width: 500px;
  margin: 30px auto;
  padding: 20px;
  border: 1px solid #d5a68a;
  border-radius: 9px;
  background: #fff8f3;
  color: #5b4034;
  line-height: 1.5;
}
.source-error input {
  max-width: 100%;
}
.source-hint {
  color: #98663f;
  font-size: .72rem;
}
.source-ref {
  display: block;
  width: 100%;
  margin: 6px 0;
  border: 1px solid #d7dce5;
  border-radius: 8px;
  background: #f7f8fa;
  color: inherit;
  padding: 9px;
  text-align: left;
  white-space: pre-line;
  font-size: .72rem;
  line-height: 1.45;
}
.source-ref:hover {
  border-color: var(--accent);
}
:root[data-dark=true] .entry-tab,
:root[data-dark=true] .entry-paste,
:root[data-dark=true] .entry-file,
:root[data-dark=true] .sources-panel,
:root[data-dark=true] .source-reader-heading,
:root[data-dark=true] .source-page-controls,
:root[data-dark=true] .source-selection-actions,
:root[data-dark=true] .source-add-text input,
:root[data-dark=true] .source-add-text textarea,
:root[data-dark=true] .source-file-input,
:root[data-dark=true] .source-ref {
  background: #242424;
  color: #e7e7eb;
  border-color: #484848;
}
:root[data-dark=true] .sources-sidebar {
  background: #1c1c1c;
  border-color: #484848;
}
:root[data-dark=true] .source-reader {
  background: #161616;
}
:root[data-dark=true] .source-reader-heading small,
:root[data-dark=true] .source-toggle,
:root[data-dark=true] .source-empty {
  color: #aeb3bf;
}
:root[data-dark=true] .source-error {
  background: #332820;
  border-color: #856046;
  color: #f0ddd0;
}
:root[data-dark=true] .entry-tab[aria-selected=true] {
  background: color-mix(in srgb, var(--accent) 25%, #242424);
  color: #f2f0ff;
}
@media (max-width: 720px) {
  .sources-panel {
    top: 63px;
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .sources-sidebar {
    max-height: 190px;
    border-right: 0;
    border-bottom: 1px solid #e4e7ed;
  }
  .source-add-text {
    grid-template-columns: 1fr 1fr;
  }
  .source-add-text textarea {
    grid-column: 1 / -1;
  }
  .source-scroll {
    padding: 10px;
  }
  .source-text {
    padding: 20px;
  }
  .workspace-chrome .source-toggle {
    padding: 6px 4px;
    font-size: .66rem;
  }
}
.paper-ai-action {
  margin-left: 12px;
  padding: 3px 6px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--accent);
  font-size: .69rem;
  cursor: pointer;
}
.paper-ai-action:hover {
  background: var(--accent-soft);
}
.ai-panel {
  position: absolute;
  z-index: 28;
  top: 70px;
  right: 18px;
  bottom: 18px;
  width: min(450px, calc(100vw - 36px));
  overflow: auto;
  padding: 18px;
  border: 1px solid #dce1e9;
  border-radius: 12px;
  background: #fff;
  color: #20252e;
  box-shadow: 0 15px 50px #0003;
}
.ai-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ai-heading h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}
.ai-panel .panel-action,
.ai-panel .panel-secondary {
  width: auto;
  margin: 5px 6px 5px 0;
}
.ai-muted {
  font-size: .75rem;
  line-height: 1.5;
  color: #687486;
  overflow-wrap: anywhere;
}
.ai-context {
  max-height: 130px;
  overflow: auto;
  padding: 10px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  font-size: .78rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ai-question,
.ai-diff,
.model-settings-card input,
.model-settings-card textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid #cdd5e3;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font-size: .82rem;
  line-height: 1.45;
}
.ai-question {
  min-height: 110px;
  resize: vertical;
}
.ai-diff {
  min-height: 155px;
  max-height: 300px;
  margin: 5px 0;
  resize: vertical;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  white-space: pre;
}
.ai-output {
  max-height: 40vh;
  overflow: auto;
  border: 1px solid #dce1e9;
  border-radius: 8px;
  padding: 13px;
  font-size: .82rem;
  user-select: text;
}
.ai-output h1 {
  font-size: 1.25rem;
}
.ai-output h2 {
  font-size: 1.06rem;
}
.ai-error {
  color: #9c3d36;
  font-size: .8rem;
  line-height: 1.5;
}
.ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.ai-chat-context {
  margin: 0 0 12px;
  padding: 8px 10px;
  border: 1px solid #e5e8ef;
  border-radius: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: calc(100vh - 330px);
  overflow-y: auto;
  padding: 2px 2px 12px;
}
.ai-message {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: .82rem;
  line-height: 1.5;
}
.ai-message-user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ai-message-assistant {
  align-self: flex-start;
  background: #f3f4f8;
  border: 1px solid #e1e4eb;
  border-bottom-left-radius: 4px;
}
.ai-message-label {
  margin-bottom: 4px;
  font-size: .64rem;
  font-weight: 750;
  letter-spacing: .05em;
  opacity: .72;
}
.ai-message p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ai-message .ai-output {
  max-height: none;
  border: 0;
  padding: 0;
  background: transparent;
}
.ai-message .ai-output p:last-child {
  margin-bottom: 0;
}
.ai-chat-action {
  margin-top: 8px;
  padding: 6px 9px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: transparent;
  color: var(--accent);
  font-size: .72rem;
}
.ai-chat-action:hover {
  background: var(--accent-soft);
}
.ai-message-status {
  display: inline-block;
  margin-top: 7px;
  color: #5d806e;
  font-size: .7rem;
}
.ai-chat-thinking {
  color: #687486;
  font-style: italic;
}
.ai-chat-streaming::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -.15em;
  background: currentColor;
  animation: chat-stream-cursor .8s steps(1) infinite;
}
@keyframes chat-stream-cursor {
  50% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ai-chat-streaming::after {
    animation: none;
  }
}
.ai-chat-composer {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  margin: 8px -2px -2px;
  padding: 10px 2px 2px;
  background: #fff;
}
.ai-chat-composer .ai-question {
  min-height: 48px;
  max-height: 130px;
  resize: vertical;
}
.ai-chat-composer .panel-action {
  flex: none;
  margin: 0;
}
:root[data-dark=true] .ai-message-assistant {
  background: #303038;
  border-color: #48484f;
}
:root[data-dark=true] .ai-chat-composer {
  background: #242424;
}
:root[data-dark=true] .ai-chat-context {
  border-color: #48484f;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme=dark] .ai-message-assistant,
  :root[data-theme=auto] .ai-message-assistant {
    background: #303038;
    border-color: #48484f;
  }
  :root[data-theme=dark] .ai-chat-composer,
  :root[data-theme=auto] .ai-chat-composer {
    background: #20242d;
  }
  :root[data-theme=dark] .ai-chat-context,
  :root[data-theme=auto] .ai-chat-context {
    border-color: #48484f;
  }
}
.model-settings-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 15px;
  background: #101522a8;
}
.model-settings-card {
  box-sizing: border-box;
  width: min(590px, 100%);
  max-height: min(800px, 95vh);
  overflow: auto;
  padding: 24px;
  border-radius: 14px;
  background: #fff;
  color: #20252e;
  box-shadow: 0 20px 80px #0005;
}
.model-settings-card > p {
  font-size: .82rem;
  line-height: 1.55;
}
.model-settings-card label {
  display: block;
  margin: 13px 0 5px;
  color: #687486;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .07em;
}
.model-settings-card textarea {
  min-height: 90px;
  resize: vertical;
}
.model-settings-card input {
  display: block;
}
.ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 15px;
}
.ai-actions button {
  width: auto;
  margin: 0;
}
.ai-status {
  min-height: 1.2em;
}
.ai-history-item {
  display: block;
  width: 100%;
  margin: 6px 0;
  padding: 11px;
  border: 1px solid #dce1e9;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: left;
  font-size: .78rem;
  cursor: pointer;
}
.ai-history-item:hover {
  border-color: var(--accent);
}
:root[data-dark=true] .ai-panel,
:root[data-dark=true] .model-settings-card {
  background: #242424;
  color: #e7e7eb;
  border-color: #484848;
}
:root[data-dark=true] .ai-question,
:root[data-dark=true] .ai-diff,
:root[data-dark=true] .model-settings-card input,
:root[data-dark=true] .model-settings-card textarea,
:root[data-dark=true] .ai-output {
  background: #202024;
  color: #e7e7eb;
  border-color: #484848;
}
:root[data-dark=true] .ai-muted,
:root[data-dark=true] .model-settings-card label {
  color: #aeb3bf;
}
.ai-panel {
  top: 70px;
  right: 16px;
  bottom: 16px;
  width: min(500px, calc(100vw - 32px));
  padding: 0;
  overflow: hidden;
  border-color: #e7e4df;
  border-radius: 16px;
  box-shadow: 0 18px 55px #1e24301f;
  display: flex;
  flex-direction: column;
}
.ai-panel > .ai-heading {
  flex: none;
  min-height: 64px;
  padding: 18px 22px 12px;
  border-bottom: 1px solid #eeeae5;
}
.ai-heading h2 {
  margin: 0;
  color: #30302f;
  font-size: .98rem;
  font-weight: 650;
  letter-spacing: -.01em;
}
.ai-panel > .ai-heading .panel-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.2rem;
}
.ai-panel > .ai-heading .panel-close:hover {
  background: #f1efec;
  color: #3f3d3a;
}
.ai-panel > .ai-chat-toolbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px 4px;
}
.ai-chat-toolbar .ai-chat-context {
  flex: 1;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
  color: #817c76;
  font-size: .68rem;
  background: transparent;
}
.ai-new-chat {
  flex: none;
  border: 0;
  background: transparent;
  color: #77716b;
  font-size: .7rem;
  padding: 5px 7px;
  border-radius: 6px;
}
.ai-new-chat:hover {
  background: #f3f1ee;
  color: #4f4a45;
}
.ai-chat-messages {
  flex: 1;
  max-height: none;
  min-height: 0;
  padding: 24px 22px 20px;
  gap: 23px;
  scrollbar-color: #c9c5bf transparent;
}
.ai-chat-welcome {
  margin: auto;
  max-width: 290px;
  padding: 20px 0 38px;
  text-align: center;
  color: #76716c;
}
.ai-chat-welcome-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 15px;
  border-radius: 13px;
  background: #f0eee9;
  color: #876b4c;
  font-size: 1.45rem;
}
.ai-chat-welcome h3 {
  margin: 0 0 8px;
  color: #3e3b38;
  font: 600 1.25rem/1.25 Georgia, serif;
  letter-spacing: -.02em;
}
.ai-chat-welcome p {
  margin: 0;
  font-size: .78rem;
  line-height: 1.55;
}
.ai-message {
  max-width: 88%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #383632;
  font-size: .85rem;
  line-height: 1.62;
}
.ai-message-user {
  align-self: flex-end;
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 15px 15px 4px 15px;
  background: #f1efec;
  color: #35322f;
}
.ai-message-assistant {
  align-self: flex-start;
}
.ai-message-label {
  margin-bottom: 7px;
  color: #8a837b;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ai-message-user .ai-message-label {
  display: none;
}
.ai-message .ai-output {
  font-size: .86rem;
  line-height: 1.65;
}
.ai-message .ai-output h1,
.ai-message .ai-output h2,
.ai-message .ai-output h3 {
  color: #35322f;
}
.ai-message .ai-output h1 {
  font-size: 1.18rem;
}
.ai-message .ai-output h2 {
  font-size: 1.02rem;
}
.ai-chat-action {
  margin-top: 11px;
  padding: 6px 10px;
  border-color: #d9d1c7;
  color: #765a3c;
  background: #faf8f5;
}
.ai-chat-action:hover {
  background: #f1ebe4;
}
.ai-message-status {
  color: #71806e;
}
.ai-chat-composer {
  position: relative;
  bottom: auto;
  flex: none;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px;
  margin: 0 16px 16px;
  padding: 9px 9px 9px 14px;
  border: 1px solid #dcd8d2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 12px #36302a0b;
}
.ai-chat-composer:focus-within {
  border-color: #b9aa9a;
  box-shadow: 0 0 0 3px #b9aa9a20;
}
.ai-chat-composer .ai-question {
  grid-column: 1 / -1;
  min-height: 42px;
  max-height: 125px;
  padding: 3px 2px;
  border: 0;
  resize: none;
  background: transparent;
  font-size: .84rem;
  line-height: 1.5;
}
.ai-chat-composer .ai-question:focus {
  outline: none;
}
.ai-chat-composer .ai-question::placeholder {
  color: #9a948d;
}
.ai-chat-composer .panel-action {
  grid-column: 2;
  grid-row: 2;
  width: 31px;
  height: 31px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: #353330;
  font-size: 0;
}
.ai-chat-composer .panel-action::after {
  content: "\2191";
  font-size: 1rem;
  line-height: 1;
}
.ai-chat-composer .panel-action:hover {
  background: #171614;
}
.ai-chat-composer .panel-action:disabled {
  background: #bdb9b3;
}
.ai-chat-composer-hint {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  color: #aaa49d;
  font-size: .62rem;
}
.ai-panel > .ai-error,
.ai-panel > .ai-muted:not(.ai-chat-context) {
  margin-left: 22px;
  margin-right: 22px;
}
:root[data-dark=true] .ai-panel {
  border-color: #3e3d3b;
  background: #232321;
}
:root[data-dark=true] .ai-panel > .ai-heading {
  border-color: #3e3d3b;
}
:root[data-dark=true] .ai-heading h2,
:root[data-dark=true] .ai-message {
  color: #e7e4df;
}
:root[data-dark=true] .ai-message-user {
  background: #383734;
  color: #e7e4df;
}
:root[data-dark=true] .ai-chat-welcome-mark {
  background: #39352f;
}
:root[data-dark=true] .ai-chat-welcome h3 {
  color: #e7e4df;
}
:root[data-dark=true] .ai-chat-composer {
  border-color: #4a4844;
  background: #2c2b29;
}
:root[data-dark=true] .ai-chat-composer .panel-action {
  background: #e8e5df;
  color: #272522;
}
@media (max-width: 620px) {
  .ai-panel {
    top: 62px;
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
  }
  .ai-chat-messages {
    padding-left: 16px;
    padding-right: 16px;
  }
  .ai-panel > .ai-heading,
  .ai-panel > .ai-chat-toolbar {
    padding-left: 16px;
    padding-right: 16px;
  }
}
.ai-panel {
  width: min(365px, calc(100vw - 32px));
  background: #fbfaf8;
  border-color: #dedbd5;
}
.ai-panel > .chat-page-heading {
  flex: none;
  min-height: 58px;
  padding: 9px 14px;
  gap: 8px;
  border-bottom: 1px solid #e9e5df;
}
.chat-heading-left,
.chat-heading-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.chat-heading-left {
  flex: 1;
}
.ai-panel > .chat-page-heading h2 {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0 0 0 4px;
  font-size: .88rem;
}
.chat-header-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #706960;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
.chat-header-icon:hover,
.chat-header-icon:focus-visible {
  background: #eeeae4;
  color: #37322d;
}
.chat-heading-actions .panel-close {
  flex: none;
}
.ai-panel > .ai-chat-toolbar {
  padding: 8px 16px 5px;
  justify-content: space-between;
}
.chat-toolbar-label {
  color: #90877d;
  font-size: .67rem;
}
.ai-chat-composer .chat-context-control {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  color: #8e857c;
  font-size: .67rem;
  cursor: pointer;
}
.ai-chat-composer .chat-context-select {
  width: auto;
  max-width: 120px;
  height: 27px;
  min-height: 27px;
  padding: 0;
  border: 0;
  border-radius: 0;
  appearance: none;
  background: transparent;
  color: #63594e;
  font-family: inherit;
  font-size: .67rem;
  font-weight: 650;
  cursor: pointer;
}
.ai-chat-composer .chat-context-select:focus-visible {
  outline: 2px solid #8c7359;
  outline-offset: 2px;
  border-radius: 2px;
}
.chat-context-chevron {
  margin-left: -2px;
  color: #63594e;
  font-size: .9rem;
  line-height: 1;
  pointer-events: none;
}
.chat-passage {
  display: flex;
  align-items: start;
  gap: 8px;
  padding: 8px;
  border-radius: 7px;
  background: #f6f2ec;
  color: #625b54;
}
.chat-passage span {
  flex: 1;
}
.chat-text-button {
  border: 0;
  background: transparent;
  color: #7b654f;
  font-size: .69rem;
  cursor: pointer;
}
.chat-text-button:hover {
  text-decoration: underline;
}
.ai-chat-messages {
  gap: 15px;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 12px 16px 10px;
}
.ai-chat-welcome {
  margin: min(48px, 8vh) auto 0;
  padding: 0;
}
.ai-chat-welcome-mark {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
}
.ai-chat-welcome h3 {
  margin-bottom: 5px;
  font-size: 1.12rem;
}
.ai-message {
  max-width: 94%;
}
.ai-message-user {
  max-width: 86%;
}
.ai-message .ai-output {
  overflow: visible;
  max-height: none;
}
.chat-message-context {
  display: block;
  margin-top: 7px;
  color: #9b9288;
  font-size: .61rem;
  line-height: 1.4;
}
.ai-message-user .chat-message-context {
  color: #77716a;
}
.ai-message-assistant {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.chat-proposal {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 13px 0;
  padding: 12px;
  border: 1px solid #ded7cd;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 2px 8px #4b3d2d0c;
  container-type: inline-size;
}
.chat-proposal-heading {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: .7rem;
}
.chat-proposal-heading strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #443b33;
}
.chat-proposal-heading span {
  color: #8c7d6c;
  white-space: nowrap;
}
.chat-proposal label {
  display: block;
  margin-top: 11px;
  color: #8b8176;
  font-size: .61rem;
  font-weight: 750;
  letter-spacing: .08em;
}
.chat-diff-summary {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 13px 0 0;
  padding: 8px 10px;
  border: 1px solid #e3e1dd;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: #f5f4f2;
  color: #625d57;
  font-size: .66rem;
  font-weight: 650;
}
.chat-diff-counts {
  display: flex;
  gap: 9px;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
.chat-diff-removed-count {
  color: #ad4949;
}
.chat-diff-added-count {
  color: #307e55;
}
.chat-diff-mount {
  max-width: 100%;
  min-width: 0;
}
.chat-diff-view {
  max-height: 340px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #e3e1dd;
  border-radius: 0 0 7px 7px;
  background: #fff;
  font:
    .68rem/1.5 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  scrollbar-width: thin;
}
.chat-diff-line {
  display: grid;
  grid-template-columns: 2.2em 2.2em 1.2em minmax(0, 1fr);
  min-width: 0;
}
.chat-diff-line > span {
  padding: 2px 3px;
}
.chat-diff-number {
  background: #f8f8f7;
  color: #aaa39b;
  text-align: right;
  user-select: none;
}
.chat-diff-sign {
  color: #aaa39b;
  text-align: center;
  user-select: none;
}
.chat-diff-code {
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-diff-removed {
  background: #fceceb;
}
.chat-diff-removed .chat-diff-number,
.chat-diff-removed .chat-diff-sign {
  background: #f8dcd9;
  color: #a64040;
}
.chat-diff-added {
  background: #eaf7ef;
}
.chat-diff-added .chat-diff-number,
.chat-diff-added .chat-diff-sign {
  background: #d6eedf;
  color: #28754d;
}
.chat-diff-editor {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 160px;
  max-height: 300px;
  margin: 7px 0;
  padding: 9px;
  border: 1px solid #d5cec5;
  border-radius: 7px;
  resize: vertical;
  font:
    .7rem/1.5 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
.chat-diff-editor[hidden] {
  display: none;
}
.chat-diff-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 9px;
  margin-top: 10px;
}
.chat-diff-actions button {
  margin: 0;
}
@container (max-width: 260px) {
  .chat-diff-line {
    grid-template-columns: 1.7em 1.7em 1em minmax(0, 1fr);
  }
  .chat-diff-view {
    font-size: .61rem;
  }
}
.chat-review-button,
.chat-apply-button,
.chat-new-button {
  margin: 11px 8px 0 0;
  padding: 7px 11px;
  border: 1px solid #cabaa8;
  border-radius: 7px;
  background: #f9f6f1;
  color: #5e4730;
  font-size: .71rem;
  font-weight: 650;
  cursor: pointer;
}
.chat-apply-button {
  background: #4a4036;
  border-color: #4a4036;
  color: #fff;
}
.chat-review-button:hover,
.chat-new-button:hover {
  background: #f0e9e0;
}
.chat-apply-button:hover {
  background: #302922;
}
.chat-config-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin: 0 16px 6px;
  padding: 6px 9px;
  border-radius: 8px;
  background: #f4ece0;
  color: #69543c;
  font-size: .68rem;
}
.chat-error {
  margin: 3px 16px 6px;
}
.ai-chat-composer {
  gap: 3px;
  margin: 0 16px 16px;
  padding: 7px 8px 7px 10px;
  border-radius: 13px;
}
.ai-chat-composer .chat-pending-summary {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin: -1px -2px 5px;
  padding: 6px 7px 7px;
  border-bottom: 1px solid #ebe7e1;
  color: #625d57;
  font-size: .66rem;
  font-weight: 650;
}
.chat-pending-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-pending-counts {
  display: inline-flex;
  gap: 6px;
  margin-left: auto;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  white-space: nowrap;
}
.chat-apply-all {
  flex: none;
  margin-left: 2px;
  padding: 5px 9px;
  border: 1px solid #4a4036;
  border-radius: 999px;
  background: #4a4036;
  color: #fff;
  font: 650 .65rem/1 inherit;
  cursor: pointer;
}
.chat-apply-all:hover,
.chat-apply-all:focus-visible {
  background: #302922;
  border-color: #302922;
}
.ai-chat-composer .ai-question {
  grid-row: 2;
  min-height: 31px;
  max-height: 100px;
  padding: 2px 1px;
  font-size: .8rem;
}
.ai-chat-composer .chat-context-control {
  grid-row: 3;
}
.ai-chat-composer .panel-action {
  grid-row: 3;
  width: 28px;
  height: 28px;
}
.chat-history-list {
  overflow-y: auto;
  padding: 12px 16px;
}
.chat-history-list .chat-new-button {
  margin: 0 0 12px;
}
.chat-history-row {
  display: block;
  width: 100%;
  margin-bottom: 5px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #4e4841;
  text-align: left;
  font-size: .76rem;
  cursor: pointer;
}
.chat-history-row:hover,
.chat-history-row.active {
  border-color: #e2d9ce;
  background: #f3eee8;
}
.ai-panel .chat-settings {
  flex: 1;
  width: 100%;
  max-height: none;
  overflow: auto;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.chat-settings .ai-actions {
  gap: 6px;
}
.chat-settings .ai-actions button {
  margin: 0;
}
:root[data-dark=true] .ai-panel {
  background: #242321;
}
:root[data-dark=true] .chat-header-icon {
  color: #c5bcb1;
}
:root[data-dark=true] .chat-header-icon:hover,
:root[data-dark=true] .chat-header-icon:focus-visible {
  background: #3b3833;
  color: #f1ebe4;
}
:root[data-dark=true] .chat-proposal {
  background: #2d2b28;
  border-color: #4a453e;
}
:root[data-dark=true] .chat-diff-summary {
  background: #373531;
  border-color: #514d46;
  color: #d8d1c8;
}
:root[data-dark=true] .chat-diff-view {
  background: #262522;
  border-color: #514d46;
}
:root[data-dark=true] .chat-diff-number {
  background: #302e2a;
  color: #989087;
}
:root[data-dark=true] .chat-diff-removed {
  background: #432c2a;
}
:root[data-dark=true] .chat-diff-removed .chat-diff-number,
:root[data-dark=true] .chat-diff-removed .chat-diff-sign {
  background: #56332f;
  color: #f0aaa3;
}
:root[data-dark=true] .chat-diff-added {
  background: #263d31;
}
:root[data-dark=true] .chat-diff-added .chat-diff-number,
:root[data-dark=true] .chat-diff-added .chat-diff-sign {
  background: #315440;
  color: #9de0b2;
}
:root[data-dark=true] .chat-diff-editor {
  background: #292724;
  border-color: #625a50;
  color: #eee7dd;
}
:root[data-dark=true] .ai-chat-composer .chat-context-control {
  color: #aaa39a;
}
:root[data-dark=true] .ai-chat-composer .chat-context-select,
:root[data-dark=true] .chat-context-chevron {
  color: #f1e8dd;
}
:root[data-dark=true] .chat-proposal-heading strong,
:root[data-dark=true] .chat-history-row {
  color: #e5ded5;
}
:root[data-dark=true] .chat-passage,
:root[data-dark=true] .chat-history-row:hover,
:root[data-dark=true] .chat-history-row.active {
  background: #38342e;
  color: #ded3c7;
}
:root[data-dark=true] .chat-config-notice {
  background: #42372b;
  color: #e6d5bb;
}
:root[data-dark=true] .ai-chat-composer .chat-pending-summary {
  border-color: #494640;
  color: #ded6cc;
}
:root[data-dark=true] .chat-apply-all {
  border-color: #e8e1d8;
  background: #e8e1d8;
  color: #292622;
}
:root[data-dark=true] .chat-apply-all:hover,
:root[data-dark=true] .chat-apply-all:focus-visible {
  background: #fff;
  border-color: #fff;
}
@media (max-width: 620px) {
  .ai-panel {
    width: calc(100vw - 16px);
  }
}
.ai-panel {
  box-sizing: border-box;
  max-width: calc(100vw - 32px);
}
.ai-panel::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  bottom: 0;
  width: 8px;
  cursor: ew-resize;
  touch-action: none;
}
@media (max-width: 620px) {
  .ai-panel {
    max-width: calc(100vw - 16px);
  }
}
:root[data-theme=dark] .workspace-chrome .header-home,
:root[data-theme=dark] .workspace-chrome .header-left,
:root[data-theme=dark] .workspace-chrome .header-right {
  background: rgb(27 27 27 / 55%);
}
@media (prefers-color-scheme: dark) {
  :root[data-theme=auto] .workspace-chrome .header-home,
  :root[data-theme=auto] .workspace-chrome .header-left,
  :root[data-theme=auto] .workspace-chrome .header-right {
    background: rgb(27 27 27 / 55%);
  }
}
.zoom-controls {
  background: rgb(255 255 255 / 55%);
  -webkit-backdrop-filter: blur(21px);
  backdrop-filter: blur(21px);
}
:root[data-dark=true] .zoom-controls,
:root[data-theme=dark] .zoom-controls {
  background: rgb(27 27 27 / 55%);
}
@media (prefers-color-scheme: dark) {
  :root[data-theme=auto] .zoom-controls {
    background: rgb(27 27 27 / 55%);
  }
}
