#ere-ai-bubble{position:fixed;right:20px;bottom:20px;z-index:9990;font-family:inherit}

.ere-ai-bubble-align{position:relative;height:0;z-index:1;pointer-events:none}

#ere-ai-bubble.ere-ai-bubble--docked{position:static;pointer-events:none}
#ere-ai-bubble.ere-ai-bubble--docked .ere-ai-bubble-panel{position:absolute;top:20px;right:calc(var(--bs-gutter-x, 1.5rem) / 2);bottom:auto;left:auto;height:550px;pointer-events:auto}

#ere-ai-bubble.ere-ai-bubble--docked.ere-ai-bubble--open .ere-ai-bubble-toggle{display:none}
#ere-ai-bubble.ere-ai-bubble--docked .ere-ai-bubble-toggle{position:absolute;top:20px;right:calc(var(--bs-gutter-x, 1.5rem) / 2);pointer-events:auto}

.ere-ai-bubble--open .ere-ai-bubble-toggle{display:none}

.ere-ai-bubble-panel{position:fixed;right:20px;bottom:20px;z-index:9991;display:flex;flex-direction:column;height:min(532px,calc(100vh - 40px));max-height:calc(100vh - 40px);font-size:14px;line-height:1.5}
.ere-ai-bubble-panel *{box-sizing:border-box}

button.ere-ai-bubble-resize,#ere-ai-bubble .ere-ai-bubble-resize{position:absolute;top:0;left:0;z-index:2;width:22px;height:22px;padding:0;border:0;background:none;cursor:nwse-resize!important;touch-action:none;opacity:.45;transition:opacity .15s ease}
.ere-ai-bubble-resize::before{content:"";position:absolute;top:5px;left:5px;width:10px;height:10px;border-left:2px solid #4a6b86;border-top:2px solid #4a6b86;border-top-left-radius:3px}
.ere-ai-bubble-resize:hover,.ere-ai-bubble-resize:focus-visible{opacity:1}
.ere-ai-bubble-resize:focus-visible{outline:2px solid rgb(23 105 170 / .45);outline-offset:1px;border-radius:4px}

.ere-ai-bubble-panel--resizing,.ere-ai-bubble-panel--resizing *{user-select:none;-webkit-user-select:none}
.ere-ai-bubble-panel--resizing{transition:none}

#ere-ai-bubble.ere-ai-bubble--docked .ere-ai-bubble-resize{display:none}
.ere-ai-bubble-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}

.ere-ai-bubble-identity{display:flex;align-items:center;gap:10px;min-width:0;flex:1 1 auto}
.ere-ai-bubble-identity .ere-ai-bubble-avatar{background:#1769aa;box-shadow:none}
.ere-ai-bubble-titles{min-width:0;flex:1 1 auto}

.ere-ai-bubble-header h2{margin:0;font-size:16px;line-height:1.2;font-weight:700;white-space:nowrap}

/* Matt, 2026-11-20: "also add this line here" — the drawer's "Ask Eva" title
 * carries the house gold rule, the small-title 26x3 accent. The Eva surface is
 * site-wide, so no page-scoped --ere-gold token resolves here: the literal
 * #f5ba00 is deliberate, the value every other sheet's token holds. */
.ere-ai-bubble-header h2::after{content:"";display:block;width:26px;height:3px;margin-top:8px;border-radius:2px;background:#f5ba00}

.ere-ai-bubble-header{flex-wrap:wrap}
.ere-ai-bubble-header .ere-ai-status{flex:1 1 100%;margin-top:6px}

.ere-ai-bubble-close{width:32px;height:32px;flex:0 0 auto;border:1px solid rgb(255 255 255 / .7);border-radius:8px;background:rgb(255 255 255 / .5);color:#4a5f76;font-size:19px;line-height:1;cursor:pointer}
.ere-ai-bubble-close:hover{background:rgb(255 255 255 / .8);border-color:#7da8ca}
.ere-ai-bubble-close:focus-visible{outline:3px solid rgb(43 126 190 / .25);outline-offset:1px}

.ere-ai-bubble-controls{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.ere-ai-bubble-controls .ere-ai-button{min-height:32px;padding:5px 10px;font-size:12px;white-space:nowrap}

.ere-ai-bubble-controls .ere-ai-icon-button{width:32px;height:32px;min-height:32px;padding:0}

.ere-ai-bubble-panel .ere-ai-text-form{margin-top:10px}

.ere-ai-bubble-panel .ere-ai-text-form input{font:inherit;font-size:14px}

#ere-ai-bubble .ere-ai-bubble-search,
#ere-ai-bubble .ere-ai-bubble-search:link,
#ere-ai-bubble .ere-ai-bubble-search:visited,
#ere-ai-bubble .ere-ai-bubble-search:hover,
#ere-ai-bubble .ere-ai-bubble-search:active,
#ere-ai-bubble .ere-ai-bubble-search:focus{color:#fff;-webkit-text-fill-color:#fff;text-decoration:none}
.ere-ai-bubble-search{display:block;margin-top:0;padding:8px 14px;border-radius:12px;background:#1f9d55;border:1px solid #1f9d55;font-size:14px;font-weight:700;line-height:1.35;text-align:center;text-decoration:none;box-shadow:0 2px 6px rgb(31 157 85 / .28);transition:background-color .15s ease,border-color .15s ease,color .15s ease}
#ere-ai-bubble .ere-ai-bubble-search:hover{background:#2bb86a;border-color:#2bb86a}
#ere-ai-bubble .ere-ai-bubble-search:active{background:#25a45e;border-color:#25a45e}
#ere-ai-bubble .ere-ai-bubble-search:focus-visible{outline:3px solid rgb(31 157 85 / .35);outline-offset:2px}

.ere-ai-message--action{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px;padding:9px 11px;border:1px solid #c9e0f3;border-radius:9px;background:#eff6fc;color:#2c4f70;font-size:12.5px;line-height:1.45}
#ere-ai-bubble .ere-ai-message--action{max-width:100%;padding:9px 11px;border:1px solid #c9e0f3;border-radius:9px;background:#eff6fc;color:#2c4f70;font-size:12.5px;line-height:1.45;box-shadow:none;white-space:normal}
.ere-ai-message--action .ere-ai-button{min-height:30px;padding:4px 10px;font-size:12px}
.ere-ai-message__action-text{flex:1 1 180px;min-width:0}

#ere-ai-bubble .ere-ai-pane{max-height:none;overflow:visible}

.ere-ai-bubble-trial{margin:8px 0 0;color:#536b82;font-size:12px;font-weight:600}

.ere-ai-bubble-trial a{color:inherit;text-decoration:underline;text-underline-offset:2px;font-weight:600}

.ere-ai-bubble-panel [hidden]{display:none!important}
@media(max-width:600px){
  #ere-ai-bubble{right:12px;bottom:12px}

  .ere-ai-bubble-panel{right:8px;bottom:8px;height:min(532px,calc(100vh - 16px));max-height:calc(100vh - 16px)}
  
  #ere-ai-bubble.ere-ai-bubble--docked .ere-ai-bubble-panel{position:fixed;top:auto;right:calc(var(--bs-gutter-x, 1.5rem) / 2);bottom:8px;left:auto;height:min(532px,calc(100vh - 16px));max-height:calc(100vh - 16px)}
  #ere-ai-bubble.ere-ai-bubble--docked .ere-ai-bubble-toggle{position:fixed;top:auto;right:12px;bottom:12px}
  
  .ere-ai-bubble-resize{display:none}
  .ere-ai-bubble-header{flex-wrap:wrap}
  .ere-ai-bubble-controls{flex:1 1 100%}
  .ere-ai-bubble-controls .ere-ai-button{flex:1 1 auto;min-height:40px}
  
  .ere-ai-bubble-controls .ere-ai-icon-button{flex:0 0 auto;width:40px;height:40px;min-height:40px}
  
  .ere-ai-bubble-panel .ere-ai-text-form input{font-size:16px;height:44px}
  .ere-ai-bubble-panel .ere-ai-button--send{min-height:44px}
}

@media(max-width:600px),(max-height:520px){
  #ere-ai-bubble,#ere-ai-bubble-toggle,#ere-ai-bubble-panel,#ere-ai-search{display:none!important}
}
