/* A fading reading boundary behind the fixed AI tools, without fading controls. */
.ai-tcm-page{
  --ai-dock-fade-height:56px;
  padding-bottom:calc(260px + var(--ai-safe-bottom))!important;
}
.ai-tcm-page .ai-tools-panel{
  isolation:isolate;
  overflow:visible;
  background:transparent;
  opacity:1;
}
.ai-tcm-page .ai-tools-panel::before{
  content:"";
  position:absolute;
  z-index:-1;
  top:calc(-1 * var(--ai-dock-fade-height));
  right:0;
  bottom:-2px;
  left:0;
  background:linear-gradient(to bottom,rgba(255,249,241,0) 0%,rgba(255,249,241,.76) 50%,rgba(255,249,241,1) 78%,rgba(255,249,241,1) 100%);
  pointer-events:none;
}
.ai-tcm-page .ai-tool-strip{position:relative;z-index:1}
.ai-tcm-page .ai-tool-pill{opacity:1}
.ai-tcm-page .ai-message{scroll-margin-bottom:calc(260px + var(--ai-safe-bottom))}
.ai-tcm-page .x-ai-next{display:flex;flex-wrap:wrap;gap:7px;max-width:100%;margin:8px 0 0}
.ai-tcm-page .x-ai-next button{flex:0 0 auto;white-space:nowrap;line-height:1.4;min-height:30px}
