/* Export-only stationery. Chat modes and live weather remain owned by the chat UI. */
.longshot-render-stage{
  --ls-ink:#293544;--ls-muted:#626873;--ls-accent:#735625;
  --ls-ai:rgba(253,251,246,.95);--ls-human:rgba(233,235,239,.95);
  --ls-line:rgba(82,91,106,.18);--ls-mark:rgba(130,106,71,.12);
}
body[data-mood="qing"] .longshot-render-stage{--ls-ink:#243d37;--ls-accent:#3d6151;--ls-human:rgba(231,238,221,.96);--ls-mark:rgba(71,106,93,.12);}
body[data-mood="yue"] .longshot-render-stage{--ls-ink:#382836;--ls-accent:#854d69;--ls-human:rgba(245,224,229,.96);--ls-mark:rgba(133,77,105,.12);}
body[data-mood="zhuan"] .longshot-render-stage{--ls-ink:#243d58;--ls-accent:#505982;--ls-human:rgba(224,236,245,.97);--ls-mark:rgba(80,89,130,.12);}
body[data-mood="yi"] .longshot-render-stage{--ls-ink:#343942;--ls-accent:#965a5b;--ls-human:rgba(245,237,220,.97);--ls-mark:rgba(150,90,91,.11);}
body[data-mood="jing"] .longshot-render-stage{--ls-accent:#e3bde8;--ls-mark:rgba(219,188,230,.15);}
body[data-mood="moonlight"] .longshot-render-stage{--ls-accent:#c6d5ef;--ls-mark:rgba(166,191,232,.15);}
body[data-mood="desire"] .longshot-render-stage{--ls-accent:#efbdd8;--ls-mark:rgba(234,174,206,.15);}
body[data-mood="rage"] .longshot-render-stage{--ls-accent:#f4b5b3;--ls-mark:rgba(248,160,157,.15);}
body[data-mood="rage2"] .longshot-render-stage{--ls-ink:#421f25;--ls-accent:#782831;--ls-ai:rgba(255,238,230,.94);--ls-human:rgba(255,217,212,.95);--ls-mark:rgba(138,38,40,.13);}
body[data-mood="vuoto"] .longshot-render-stage{--ls-accent:#e0e0e0;--ls-mark:rgba(204,204,204,.14);}
body:is([data-mood="jing"],[data-mood="moonlight"],[data-mood="desire"],[data-mood="rage"],[data-mood="vuoto"]) .longshot-render-stage:not(.longshot-paper){
  --ls-ink:#f3edf3;--ls-muted:#c4becb;--ls-ai:rgba(26,24,35,.94);--ls-human:rgba(55,45,65,.95);--ls-line:rgba(222,202,232,.22);
}
body[data-mood="moonlight"] .longshot-render-stage:not(.longshot-paper){--ls-ai:rgba(13,24,44,.95);--ls-human:rgba(31,46,66,.96);}
body[data-mood="desire"] .longshot-render-stage:not(.longshot-paper){--ls-ai:rgba(37,15,31,.95);--ls-human:rgba(64,29,49,.96);}
body[data-mood="rage"] .longshot-render-stage:not(.longshot-paper){--ls-ai:rgba(40,17,21,.95);--ls-human:rgba(65,29,32,.96);}
body[data-mood="vuoto"] .longshot-render-stage:not(.longshot-paper){--ls-ai:rgba(28,28,29,.96);--ls-human:rgba(48,48,49,.96);}
html body .longshot-render-stage.longshot-paper{--ls-ink:#293544;--ls-muted:#626873;--ls-ai:rgba(255,255,255,.62);--ls-line:transparent;}
body[data-mood="jing"] .longshot-render-stage.longshot-paper{--ls-accent:#675177;--ls-human:#eee8f1;--ls-mark:rgba(103,81,119,.11);}
body[data-mood="moonlight"] .longshot-render-stage.longshot-paper{--ls-accent:#2d4b83;--ls-human:#e8edf4;--ls-mark:rgba(45,75,131,.11);}
body[data-mood="desire"] .longshot-render-stage.longshot-paper{--ls-accent:#832d5f;--ls-human:#f4e7ed;--ls-mark:rgba(131,45,95,.11);}
body[data-mood="rage"] .longshot-render-stage.longshot-paper{--ls-accent:#8d1925;--ls-human:#f5e7e5;--ls-mark:rgba(141,25,37,.11);}
body[data-mood="rage2"] .longshot-render-stage.longshot-paper{--ls-accent:#8d1a1e;--ls-human:#f5e7e3;--ls-mark:rgba(141,26,30,.11);}
body[data-mood="vuoto"] .longshot-render-stage.longshot-paper{--ls-accent:#525252;--ls-human:#ececea;--ls-mark:rgba(82,82,82,.10);}

html body .longshot-render-stage .row:is(.ai,.human){padding:0 5px!important;margin-top:18px!important;}
html body .longshot-render-stage .row:is(.ai,.human) > .bubble{
  position:relative;isolation:isolate;box-sizing:border-box;
  background:var(--ls-ai)!important;color:var(--ls-ink)!important;
  border:1px solid var(--ls-line)!important;border-radius:14px!important;
  padding:20px 19px 17px!important;max-width:100%!important;
  box-shadow:none!important;filter:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
html body .longshot-render-stage .row.human > .bubble{
  background:var(--ls-human)!important;width:fit-content;max-width:86%!important;
}
html body .longshot-render-stage .txt,
html body .longshot-render-stage .txt :is(.md-bold,h1,h2,h3,h4,h5,h6),
html body .longshot-render-stage .inner-voice-block,
html body .longshot-render-stage .think-text{color:var(--ls-ink)!important;text-shadow:none!important;animation:none!important;}
html body[data-mood] .longshot-render-stage .row .bubble .txt :is(.md-strong,.md-hl),
html body .longshot-render-stage .txt :is(.md-strong,.md-hl){
  color:var(--ls-accent)!important;background:var(--ls-mark)!important;text-shadow:none!important;
  box-shadow:none!important;filter:none!important;animation:none!important;
  -webkit-box-decoration-break:clone;box-decoration-break:clone;
}
html body .longshot-render-stage .txt :is(blockquote,.md-quote){
  color:var(--ls-muted)!important;background:var(--ls-mark)!important;border-left-color:var(--ls-accent)!important;
}
html body .longshot-render-stage :is(.msg-time,.time,.meta,.ticks,.inner-voice-label,.think-label){color:var(--ls-muted)!important;}
html body .longshot-render-stage .txt :is(a,.md-link){color:var(--ls-accent)!important;}
html body .longshot-render-stage .txt :is(th,td){border-color:var(--ls-line)!important;}
html body .longshot-render-stage .txt .inner-voice-block{border-color:var(--ls-accent)!important;}
html body .longshot-render-stage .row .bubble::before,
html body .longshot-render-stage .row .bubble::after,
html body .longshot-render-stage .assistant-msg::before,
html body .longshot-render-stage .assistant-msg::after{content:none!important;}
.longshot-corner{position:absolute!important;right:-9px!important;top:-17px!important;width:38px!important;height:52px!important;object-fit:contain!important;max-width:none!important;margin:0!important;pointer-events:none;}
body[data-mood="jing"] .longshot-corner{width:56px!important;height:112px!important;left:-14px!important;right:auto!important;top:-14px!important;}
body[data-mood="jing"] .row.human .longshot-corner{left:auto!important;right:-8px!important;top:-10px!important;width:50px!important;height:86px!important;}
html body[data-mood="yi"] .longshot-render-stage:not(.longshot-paper) .row.ai > .bubble{
  background-image:linear-gradient(rgba(253,252,246,.91),rgba(253,252,246,.91)),url("assets/botanical-v2/paper.webp")!important;background-size:auto,240px 240px!important;
}
/* Plain/mixed modes remain unboxed, including legacy night modes on white paper. */
html[data-msg-style="plain"] body .longshot-render-stage .row:is(.ai,.human) > .bubble,
html[data-msg-style="plain"] body[data-mood] .longshot-render-stage .row:is(.ai,.human) > .bubble,
html[data-msg-style="mine"] body[data-mood] .longshot-render-stage .row.ai > .bubble,
html:not([data-msg-style]) body:not(:is([data-mood="qing"],[data-mood="yue"],[data-mood="zhuan"],[data-mood="yi"],[data-mood="jing"])) .longshot-render-stage .row:is(.ai,.human) > .bubble,
html[data-msg-style="mine"] body .longshot-render-stage .row.ai > .bubble{
  background:transparent!important;border:0!important;border-radius:0!important;padding:10px 4px!important;max-width:100%!important;box-shadow:none!important;
}
.longshot-render-stage .longshot-skin-background::before,
.longshot-render-stage .longshot-skin-background::after{content:none!important;}
/* Flat legacy night themes need a quiet reading field too. */
html:is([data-msg-style="plain"],[data-msg-style="mine"]) body .longshot-render-stage .longshot-skin-background{opacity:.26!important;}
.longshot-pager{display:flex;align-items:center;justify-content:center;gap:18px;padding:9px 12px;background:var(--panel-bg,#fbfaf7);color:var(--text);flex:none;}
.longshot-pager[hidden]{display:none;}
.longshot-pager button{font:inherit;border:1px solid currentColor;border-radius:18px;background:transparent;color:inherit;padding:5px 13px;}
.longshot-pager button:disabled{opacity:.35;}
html body .longshot-render-stage.longshot-paper .txt :is(th,td){border-color:rgba(82,91,106,.22)!important;}
html body .longshot-render-stage .think-text{opacity:1!important;}
html body .longshot-render-stage .txt :is(.fx-glow,.fx-shake,.fx-glitch){animation:none!important;text-shadow:none!important;}
/* Split fragments keep their measured margins inside the unit and join without repeated rims. */
.longshot-render-stage [data-longshot-message-unit]{display:flow-root!important;}
html body .longshot-render-stage [data-longshot-cut-top]{margin-top:0!important;padding-top:0!important;border-top:0!important;border-top-left-radius:0!important;border-top-right-radius:0!important;}
html body .longshot-render-stage [data-longshot-cut-bottom]{margin-bottom:0!important;padding-bottom:0!important;border-bottom:0!important;border-bottom-left-radius:0!important;border-bottom-right-radius:0!important;}
