/* Ask AI launcher and panel */
.gbnf-ask-btn{position:fixed;left:16px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:9000;display:inline-flex;align-items:center;gap:8px;padding:11px 18px;border-radius:999px;border:1px solid #f4d58d66;background:#0b1020;color:#f4d58d;font:600 15px/1 Inter,system-ui,sans-serif;box-shadow:0 8px 24px #0b10204d;cursor:pointer}
.gbnf-ask-btn[hidden]{display:none}
.gbnf-ask-btn:hover{background:#151c35}
.gbnf-ask-btn span{color:#f4d58d}
.gbnf-ask{position:fixed;left:16px;bottom:calc(76px + env(safe-area-inset-bottom));z-index:9001;width:min(380px,calc(100vw - 32px));height:min(560px,calc(100vh - 110px));display:flex;flex-direction:column;background:#fffdf8;color:#1a1f33;border:1px solid #e6dcc4;border-radius:18px;box-shadow:0 18px 50px #0b102040;font:15px/1.5 Inter,system-ui,sans-serif;overflow:hidden}
.gbnf-ask[hidden]{display:none}
.gbnf-ask-head{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;background:#0b1020;color:#fff}
.gbnf-ask-title{display:flex;flex-direction:column}.gbnf-ask-title strong{color:#f4d58d;font-size:16px}.gbnf-ask-title span{font-size:12px;opacity:.75}
.gbnf-ask-x{background:none;border:0;color:#fff;font-size:26px;line-height:1;cursor:pointer;padding:0 4px}
.gbnf-ask-log{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px}
.gbnf-ask-msg{max-width:88%;padding:10px 13px;border-radius:14px;white-space:normal;overflow-wrap:anywhere}
.gbnf-ask-msg.ai{align-self:flex-start;background:#f3ecdb;border-bottom-left-radius:4px}
.gbnf-ask-msg.me{align-self:flex-end;background:#0b1020;color:#fff;border-bottom-right-radius:4px}
.gbnf-ask-msg a{color:#8a5a12;font-weight:600}
.gbnf-ask-msg.typing{opacity:.6}
.gbnf-ask-chips{display:flex;flex-wrap:wrap;gap:6px;padding:0 14px 10px}
.gbnf-ask-chip{border:1px solid #d9c79c;background:#fff;border-radius:999px;padding:6px 11px;font:13px/1.3 inherit;cursor:pointer;text-align:left}
.gbnf-ask-chip:hover{background:#fbf3de}
.gbnf-ask-form{display:flex;gap:8px;padding:10px 12px;border-top:1px solid #eee3c8}
.gbnf-ask-form input{flex:1;min-width:0;font:inherit;padding:10px 12px;border:1px solid #d9c79c;border-radius:12px}
.gbnf-ask-form button{border:0;border-radius:12px;padding:0 16px;background:#d4a94f;color:#0b1020;font-weight:700;cursor:pointer}
.gbnf-ask-form button:disabled{opacity:.5}
.gbnf-ask-foot{margin:0;padding:0 14px 10px;font-size:11px;color:#7a7360}
@media (max-width:640px){
  .gbnf-ask{left:0;right:0;bottom:0;width:100%;height:calc(100% - 56px);border-radius:18px 18px 0 0}
  .gbnf-ask-btn{left:12px;padding:10px 15px;font-size:14px}
  html.gbnf-ask-open .gbnf-ask-btn{display:none}
}
/* Inside a legacy, sit beside the sidebar rather than on top of it */
@media (min-width:861px){html.gbnf-in-app .gbnf-ask-btn,html.gbnf-in-app .gbnf-ask{left:276px}}
