:root { color-scheme:light; font-family:"DM Sans",-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; color:#20242b; background:#faf8f5; -webkit-font-smoothing:antialiased; }
* { box-sizing:border-box; }
body { margin:0; min-height:100svh; }
a { text-decoration:none; color:inherit; }
button { color:inherit; font:inherit; cursor:pointer; }
:is(a,button,[tabindex]):focus-visible { outline:3px solid #328af0; outline-offset:4px; }
[hidden] { display:none !important; }
.masthead { max-width:1536px; margin:auto; height:80px; padding:0 clamp(20px,4.8vw,80px); display:flex; align-items:center; justify-content:space-between; }
.brand-group,.brand,.repo,.install,.try,.chat-brand { display:inline-flex; align-items:center; }
.brand-group { gap:10px; }
.brand { gap:9px; font-weight:750; font-size:24px; line-height:1; letter-spacing:-1.25px; }
.repo { justify-content:center; width:34px; height:34px; border-radius:8px; color:#62676e; }
.repo:hover { background:#eae7e3; color:#151719; }
.install { border:1px solid #d5d2ce; border-radius:30px; gap:9px; padding:8px 15px; font-size:13px; font-weight:600; background:#fff9; }
.install:hover { background:white; border-color:#aba9a5; }
.desk { max-width:1390px; margin:0 auto; padding:clamp(28px,5.3vh,76px) clamp(20px,4.8vw,76px) clamp(40px,7vh,95px); display:grid; grid-template-columns:minmax(225px,.69fr) minmax(0,1.55fr); gap:clamp(30px,5vw,88px); align-items:start; }
.intro { position:sticky; top:44px; padding-block:clamp(15px,4vh,60px); }
.mascot { width:clamp(100px,10.2vw,148px); aspect-ratio:1.04; overflow:hidden; position:relative; border-radius:25%; box-shadow:0 8px 18px -11px #32476480; }
.mascot img { display:block; position:absolute; max-width:none; width:159%; height:auto; left:-29.5%; top:-13.4%; }
.intro h1 { font-size:clamp(32px,3.15vw,48px); line-height:1.26; letter-spacing:-.064em; margin:29px 0 14px; font-weight:720; color:#1b2028; }
.intro h1 span { color:#2383d9; }
.intro p { font-size:15px; line-height:1.8; color:#61666e; margin:0; }
.try { margin-top:26px; border:0; gap:9px; border-radius:11px; background:#181e27; color:white; padding:13px 20px; font-weight:600; font-size:14px; transition:background .16s,transform .16s; }
.try:hover { background:#303946; transform:translateY(-1px); }
.reader { min-width:0; background:#fff; border:1px solid #dedcd7; border-radius:21px; box-shadow:0 3px 8px #30281a05,0 22px 54px -33px #493a202e; }
.reader-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:19px clamp(18px,2.6vw,36px); border-bottom:1px solid #eae9e6; }
.chat-brand { gap:8px; font-size:17px; font-weight:650; letter-spacing:-.6px; }
.excerpt-label { color:#70757b; font-size:12px; }
.example-tabs { display:flex; flex-wrap:wrap; gap:6px; margin:22px clamp(16px,2.6vw,36px) 0; }
.example-tabs button { padding:6px 12px; font-size:12px; border:1px solid transparent; background:none; border-radius:99px; color:#5a6067; }
.example-tabs button:hover { background:#f4f4f2; }
.example-tabs button[aria-selected=true] { border-color:#c8d9ec; background:#edf5fd; color:#235479; }
.thread { min-width:0; padding:clamp(22px,2.5vw,40px) clamp(16px,2.6vw,36px) clamp(24px,2.7vw,40px); display:grid; gap:20px; }
.question { justify-self:end; max-width:88%; padding:10px 16px; border-radius:16px 16px 4px 16px; background:#f1f2f2; font-size:14px; line-height:1.65; white-space:pre-line; overflow-wrap:anywhere; margin:0; }
.reply { display:grid; gap:14px; min-width:0; font-size:14px; line-height:1.68; }
.reply p,.reply h2,.reply h3 { margin:0; overflow-wrap:anywhere; }
.reply h2 { font-size:20px; line-height:1.4; letter-spacing:-.03em; }
.reply h3 { font-size:16px; line-height:1.4; }
.reply [data-d-component]:is(div,figure,table) { min-width:0; }
.reply figure { margin:0; }
.reply svg,.reply img { display:block; max-width:100%; height:auto; }
.component { padding:18px; border:1px solid #e1e3e4; border-radius:13px; background:#fff; }
.table-scroll { overflow-x:auto; }
.reply table { width:100%; border-collapse:collapse; font-size:13px; }
.reply th,.reply td { padding:9px 10px; text-align:left; vertical-align:top; border-bottom:1px solid #e6e7e9; }
.reply th { font-weight:600; background:#f4f6f8; }
@media (max-width:780px) {
  .masthead { height:62px; }
  .desk { display:flex; flex-direction:column; gap:22px; padding-top:14px; }
  .intro { width:100%; position:static; display:flex; gap:16px; align-items:center; padding:0; }
  .mascot { width:clamp(65px,12vw,94px); flex:none; }
  .intro-copy { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:4px 14px; width:100%; }
  .intro h1 { margin:0; font-size:clamp(21px,3.6vw,28px); }
  .intro h1 br,.wide-only { display:none; }
  .intro p { font-size:12px; line-height:1.55; }
  .try { margin:0; grid-column:2; grid-row:1 / span 2; padding:10px 12px; }
  .reader { width:100%; }
}
@media (max-width:520px) {
  .desk { gap:18px; padding-inline:12px; }
  .intro { padding:8px 5px; }
  .intro-copy { display:block; }
  .intro h1 { font-size:22px; }
  .intro p { margin-top:4px; }
  .try { margin-top:9px; padding:6px 11px; font-size:12px; }
  .reader { border-radius:16px; }
  .reader-head { padding-block:14px; }
  .question { max-width:95%; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }
.excerpt-label { padding:5px 0 5px 8px; }
.excerpt-label:hover,.reply a:hover { text-decoration:underline; }
.reply { font-size:16px; line-height:1.625; gap:13px; color:#181a1c; }
.reply > :is(h2,h3) { margin-top:14px; }
.reply [data-d-component] { min-width:0; }
.reply hr { border:0; width:100%; height:1px; margin:5px 0; background:#e5e5e5; }
.reply ul { margin:0; padding-left:1.5em; }
.reply .note { display:block; }
.reply .equation { text-align:center; padding:10px 0; overflow-x:auto; }
.reply img[data-d-component=svg] { width:100%; }
.reply a { color:#286ca3; }
.reply .citation { display:inline-block; font-size:11px; line-height:1.5; color:#62666c; background:#f4f4f3; margin-left:3px; padding:0 5px; border-radius:6px; vertical-align:middle; }
.reply :is(th,td) { overflow-wrap:anywhere; }
.reply [data-d-component=box] > svg,.reply [data-d-component=row] > svg { flex-shrink:0; }
@media (max-width:520px) { .reply { font-size:15px; } .reply h2 { font-size:18px; } }
