/* Each answer owns its contents bar and scroll area. No page-fixed overlay. */
/* Give the former 160px search-address panel's space back to the report. */
.report-reader{display:flex;flex-direction:column;min-width:0;max-height:clamp(280px,calc(100vh - 140px),920px);max-height:clamp(280px,calc(100dvh - 140px),920px);border:1px solid #d8e7ed;border-radius:10px;background:#fff;margin:12px 0 4px;isolation:isolate}
.report-reader+.evidence-sources{margin-top:8px}
.report-reader>.report-directory{flex:none;margin:0;border:0;border-bottom:1px solid #d8e7ed;border-radius:9px 9px 0 0;background:#f4f9fb;padding:0}
.report-reader>.report-directory>summary{cursor:pointer;padding:10px 13px;font-weight:600;line-height:1.65;overflow-wrap:anywhere}
.report-reader>.report-directory>summary:focus-visible{outline:2px solid #3f83a7;outline-offset:-3px;border-radius:9px}
.report-reader>.report-directory nav{display:block;max-height:min(22vh,180px);max-height:min(22dvh,180px);overflow-y:auto;overscroll-behavior-y:contain;margin:0;padding:0 13px 10px;scrollbar-gutter:stable}
.report-reader>.report-directory nav>ul{margin:0;padding:0;list-style:none}
.report-reader .report-directory .text-button{display:block;width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere;padding:5px 4px}
.report-scroll{flex:1 1 auto;min-height:0;min-width:0;overflow:auto;scrollbar-gutter:stable;padding:0 12px 10px;scroll-padding-top:8px;border-radius:0 0 9px 9px;-webkit-overflow-scrolling:touch}
.report-scroll:focus-visible{outline:2px solid #3f83a7;outline-offset:-3px}
.report-scroll .report-section{scroll-margin-top:8px}
.report-scroll>.report-section:first-child{border-top:0}
@media(max-width:720px){
 .report-reader{max-height:clamp(260px,calc(100vh - 140px),800px);max-height:clamp(260px,calc(100dvh - 140px),800px)}
 .report-reader>.report-directory>summary{padding:10px;font-size:13px}
 .report-reader>.report-directory nav{padding:0 8px 8px}
 .report-reader .report-directory nav button{min-height:40px;padding:7px 5px}
 .report-scroll{padding:0 8px 8px}
}
@media print{
 .report-reader{display:block;max-height:none;border:0;isolation:auto}
 .report-scroll{overflow:visible;max-height:none;padding:0}
 .report-reader>.report-directory{display:none}
}

/* Keep the header and footer in the document flow. The browser scrolls the case and its margins. */
@media screen{
 .case-layout{
  --case-topbar:56px;
  --case-bottom:10px;
  padding-block:0 var(--case-bottom);
 }
 .case-center{
  display:flex;flex-direction:column;
  min-height:calc(100vh - var(--case-topbar) - var(--case-bottom));
  min-height:calc(100dvh - var(--case-topbar) - var(--case-bottom));
 }
 .case-center>.case-header{position:sticky;top:var(--case-topbar);flex:none}
 .case-center>.chat{position:relative;min-width:0;min-height:0;flex:1 0 auto}
 .case-center>.chat-composer,.case-center>.case-frozen-controls{position:sticky;bottom:var(--case-bottom);flex:none}
 .case-frozen-controls{display:flow-root;z-index:12;background:var(--bg)}
 .report-scroll,.citation-trigger{position:relative}
}
@media screen and (max-width:720px){
 .case-layout{--case-topbar:52px;--case-bottom:0px}
 .case-frozen-controls{padding-bottom:env(safe-area-inset-bottom,0px)}
}
@supports (height:100dvh){
 @media screen {
  .app:has(.case-layout),.main:has(> #view > .case-layout){min-height:100dvh}
 }
}
.md-table-wrap{max-width:100%;min-width:0;overflow-x:auto;margin:.6em 0}
.md-table-wrap:focus-visible{outline:2px solid #3f83a7;outline-offset:-2px}
.md-table-wrap>.md-table,.bubble .md-table-wrap>.md-table{
 display:table;width:100%;max-width:none;margin:0;overflow:visible;
}
.md-table-wrap th,.md-table-wrap td{white-space:normal;overflow-wrap:anywhere}
.md-verbatim{max-width:100%;overflow:auto;white-space:pre;font-family:ui-monospace,monospace}
.md-verbatim>code{font:inherit;background:none;padding:0}
@media print{.md-table-wrap,.md-verbatim{overflow:visible}.md-verbatim{white-space:pre-wrap}}
