/* Ask (app/askbot.py): one quiet button in the corner, and the panel it opens. Colours come from site.css. */
.askfab{position:fixed;inset-inline-end:16px;bottom:16px;z-index:35;display:inline-flex;align-items:center;gap:8px;padding:10px 16px 10px 14px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--accent);font:700 15px/1 "Cairo Web",system-ui,sans-serif;box-shadow:var(--shadow);cursor:pointer}
.askfab:hover{border-color:var(--accent)}
.askfab svg{width:20px;min-width:20px;height:20px;flex:none}
body.appon .askfab,body.gpon .askfab{bottom:84px}
.askfab[hidden],.askpanel[hidden]{display:none!important}
.askpanel{position:fixed;inset-inline-end:16px;bottom:16px;z-index:45;width:min(380px,calc(100vw - 32px));height:min(560px,calc(100vh - 32px));display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 10px 40px rgba(16,40,32,.18);overflow:hidden}
@media (max-width:600px){.askpanel{inset:auto 0 0 0;width:100%;height:min(86vh,620px);border-radius:16px 16px 0 0}}
.askhead{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;border-bottom:1px solid var(--line);font-weight:700}
.askhead button{border:0;background:none;font-size:22px;line-height:1;color:var(--muted);cursor:pointer;padding:4px 8px}
.asklog{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px}
.askmsg{max-width:88%;padding:9px 12px;border-radius:14px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.6}
.askmsg.me{align-self:flex-end;background:var(--tint);color:var(--fg)}
.askmsg.bot{align-self:flex-start;background:var(--soft)}
.askmsg.err{align-self:flex-start;background:#fdecea;color:var(--err)}
.askmsg a.askgo{display:inline-block;margin-top:8px;padding:7px 14px;border-radius:999px;background:var(--accent);color:#fff;text-decoration:none;font-weight:700}
.askmsg pre{white-space:pre-wrap;margin:6px 0 0;font:inherit;max-height:220px;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:8px;padding:8px}
.askfiles{display:flex;flex-wrap:wrap;gap:6px;padding:0 14px}
.askfiles span{display:inline-flex;align-items:center;gap:4px;max-width:100%;padding:3px 6px 3px 10px;border:1px solid var(--line);border-radius:999px;font-size:13px;color:var(--muted)}
.askfiles span b{font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:180px}
.askfiles button{border:0;background:none;color:var(--muted);cursor:pointer;font-size:15px;padding:0 4px}
.askform{display:flex;align-items:flex-end;gap:6px;padding:10px 12px;border-top:1px solid var(--line)}
.askform textarea{flex:1;resize:none;min-height:42px;max-height:120px;padding:9px 10px;border:1px solid var(--line);border-radius:12px;font:inherit;font-size:15px}
.askform textarea:focus{outline:2px solid var(--accent);outline-offset:-1px}
.askform .askclip,.askform .asksend{flex:none;width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;border:1px solid var(--line);background:#fff;color:var(--accent);cursor:pointer}
.askform .asksend{background:var(--accent);border-color:var(--accent);color:#fff}
.askform .askclip,.askform .asksend{padding:0;min-width:42px}
.askform svg{flex:none;width:20px;min-width:20px;height:20px}
[dir=rtl] .askform .asksend svg{transform:scaleX(-1)}
.asknote{margin:0;padding:0 14px 10px;font-size:12px;color:var(--muted)}
.askwait{opacity:.7}
/* the file buttons of result.js, without its long help line, which belongs on the tool pages */
.asklog .result{margin-top:8px}.asklog .result .hint{display:none}.asklog .result-btns{display:flex;flex-wrap:wrap;gap:6px}
