/* Five Out assistant: floating chat panel. Uses the page's design tokens. */
.fx-fab{position:fixed;right:20px;bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:40;display:flex;align-items:center;gap:9px;border:0;border-radius:999px;padding:12px 18px 12px 14px;background:var(--team);color:#fff;font:600 15px/1 var(--body);cursor:pointer;box-shadow:0 10px 30px -10px rgba(13,21,32,.55),0 2px 6px rgba(13,21,32,.18)}
.fx-fab:hover{filter:brightness(1.08)}
.fx-fab i{display:grid;grid-template-columns:repeat(3,5px);gap:2.5px}.fx-fab i b{width:5px;height:5px;border-radius:50%;background:#fff}.fx-fab i b:nth-child(5){background:none;box-shadow:inset 0 0 0 1.3px #fff}
.fx-fab[aria-expanded="true"]{display:none}
.fx-panel{position:fixed;right:20px;bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:41;width:min(420px,calc(100vw - 24px));height:min(640px,calc(100vh - 110px));display:flex;flex-direction:column;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:20px;box-shadow:0 30px 80px -24px rgba(5,9,14,.55),var(--shadow);overflow:hidden}
.fx-panel[hidden]{display:none!important}
.fx-head{display:flex;align-items:center;gap:10px;padding:14px 14px 12px 18px;border-bottom:1px solid var(--line);border-top:4px solid var(--team)}
.fx-head h2{font:800 19px/1.1 var(--disp);letter-spacing:-.02em;margin:0}
.fx-head p{margin:2px 0 0;font-size:12px;color:var(--muted)}
.fx-head .fx-sp{flex:1}
.fx-icon{border:0;background:var(--soft2);color:var(--ink);width:32px;height:32px;border-radius:999px;cursor:pointer;font-size:17px;line-height:1;display:grid;place-items:center}
.fx-icon:hover{background:var(--line)}
.fx-log{flex:1;overflow-y:auto;padding:16px 16px 6px;display:flex;flex-direction:column;gap:12px;scroll-behavior:smooth}
.fx-msg{max-width:92%;font-size:14.5px;line-height:1.5;overflow-wrap:anywhere}
.fx-msg.u{align-self:flex-end;background:var(--team);color:#fff;padding:9px 13px;border-radius:16px 16px 4px 16px;white-space:pre-wrap}
.fx-msg.a{align-self:flex-start;background:var(--soft);padding:10px 14px;border-radius:16px 16px 16px 4px}
.fx-msg.a p{margin:0 0 8px}.fx-msg.a p:last-child,.fx-msg.a ul:last-child,.fx-msg.a ol:last-child,.fx-msg.a .fx-tw:last-child{margin-bottom:0}
.fx-msg.a ul,.fx-msg.a ol{margin:0 0 8px;padding-left:20px}.fx-msg.a li{margin:2px 0}
.fx-msg.a h4{font:700 15px/1.25 var(--disp);margin:10px 0 6px}.fx-msg.a h4:first-child{margin-top:0}
.fx-msg.a code{font-size:.9em;background:var(--soft2);padding:1px 5px;border-radius:5px}
.fx-tw{overflow-x:auto;margin:0 0 8px}
.fx-msg.a table{border-collapse:collapse;font-size:13px;min-width:100%}
.fx-msg.a th,.fx-msg.a td{padding:5px 8px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}
.fx-msg.a th:first-child,.fx-msg.a td:first-child{text-align:left}
.fx-msg.a th{color:var(--muted);font-weight:600;font-size:12px}
.fx-msg.err{align-self:flex-start;color:var(--bad);background:var(--soft);padding:9px 13px;border-radius:14px;font-size:14px}
.fx-status{align-self:flex-start;display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);padding:2px 4px}
.fx-dots{display:inline-flex;gap:3px}.fx-dots b{width:5px;height:5px;border-radius:50%;background:var(--team);animation:fxp 1s infinite ease-in-out}
.fx-dots b:nth-child(2){animation-delay:.15s}.fx-dots b:nth-child(3){animation-delay:.3s}
@keyframes fxp{0%,80%,100%{opacity:.25;transform:scale(.8)}40%{opacity:1;transform:scale(1)}}
.fx-intro{font-size:14px;color:var(--muted);margin:0}
.fx-intro strong{color:var(--ink);font:700 16px/1.3 var(--disp);display:block;margin-bottom:4px}
.fx-sugg{display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.fx-sugg button{border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:7px 12px;cursor:pointer;font-size:13.5px;text-align:left}
.fx-sugg button:hover{border-color:var(--team)}
.fx-form{display:flex;gap:8px;align-items:flex-end;padding:10px 12px 12px;border-top:1px solid var(--line)}
.fx-form textarea{flex:1;resize:none;border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:14px;padding:10px 12px;font:inherit;font-size:14.5px;line-height:1.4;max-height:120px;min-height:42px}
.fx-form textarea:focus{outline:2px solid var(--team);outline-offset:0;border-color:transparent}
.fx-send{border:0;background:var(--team);color:#fff;width:42px;height:42px;border-radius:999px;cursor:pointer;display:grid;place-items:center;flex:none}
.fx-send:disabled{opacity:.45;cursor:default}
.fx-foot{font-size:11px;color:var(--muted);text-align:center;padding:0 12px 10px;margin-top:-4px}
@media (max-width:560px){
  .fx-panel{right:0;left:0;bottom:0;width:100%;height:calc(100dvh - 64px);border-radius:20px 20px 0 0;border-bottom:0}
  .fx-fab{right:14px;bottom:calc(14px + env(safe-area-inset-bottom,0px))}
}
@media (prefers-reduced-motion:reduce){.fx-dots b{animation:none;opacity:.7}.fx-log{scroll-behavior:auto}}
