:root{--sf-gold:#f5b82e;--sf-gold2:#ffd45a;--sf-navy:#0b1724;--sf-blue:#183f59;--sf-line:#e4e9ee;--sf-muted:#667789}
.sf-ai-launcher{position:fixed;right:22px;bottom:22px;z-index:9998;display:flex;align-items:center;gap:10px;border:0;cursor:pointer;color:#111;background:linear-gradient(135deg,#fff3c9,#f5b82e);box-shadow:0 14px 38px rgba(0,0,0,.24);font-weight:800;border-radius:999px;padding:9px 16px 9px 9px;transition:.2s transform,.2s box-shadow;font-family:inherit}.sf-ai-launcher:hover,.sf-ai-launcher.is-open{transform:translateY(-2px);box-shadow:0 18px 44px rgba(0,0,0,.28)}.sf-ai-launcher .sf-ai-mark{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#091523;overflow:hidden;box-shadow:inset 0 0 0 2px rgba(245,184,46,.5)}.sf-ai-launcher .sf-ai-mark img{width:34px;height:34px;object-fit:contain}.sf-ai-launcher small{display:block;font-size:11px;opacity:.7;line-height:1.1}.sf-ai-launcher strong{display:block;font-size:15px;line-height:1.2}
.sf-ai-panel{position:fixed;right:22px;bottom:84px;z-index:9999;width:min(445px,calc(100vw - 28px));height:min(720px,calc(100vh - 105px));background:#fff;border:1px solid rgba(11,23,36,.12);border-radius:26px;box-shadow:0 28px 80px rgba(0,0,0,.30);overflow:hidden;display:none;flex-direction:column;font-family:inherit}.sf-ai-panel.open{display:flex;animation:sfAiIn .2s ease-out}@keyframes sfAiIn{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
.sf-ai-head{background:linear-gradient(135deg,#081522,#1b3b50);color:#fff;padding:14px 16px;display:flex;align-items:center;gap:11px}.sf-ai-avatar{width:44px;height:44px;border-radius:14px;background:#07111d;display:grid;place-items:center;border:1px solid rgba(245,184,46,.65);overflow:hidden}.sf-ai-avatar img{width:32px;height:32px;object-fit:contain}.sf-ai-head h3{margin:0;font-size:18px}.sf-ai-head p{margin:2px 0 0;color:#c9d8e0;font-size:11px}.sf-ai-live-dot{width:9px;height:9px;background:#3bd17f;border-radius:50%;margin-left:auto;box-shadow:0 0 0 4px rgba(59,209,127,.12)}.sf-ai-close{border:0;background:rgba(255,255,255,.08);color:#fff;width:32px;height:32px;border-radius:50%;cursor:pointer;font-size:20px;margin-left:5px}
.sf-ai-hero{display:grid;grid-template-columns:128px 1fr;gap:14px;align-items:center;padding:13px 15px 12px;background:linear-gradient(180deg,#fffdf8,#f7fafc);border-bottom:1px solid var(--sf-line)}.sf-ai-mascot{height:122px;border-radius:18px;overflow:hidden;background:#dce8ec;box-shadow:0 8px 22px rgba(17,49,65,.12)}.sf-ai-mascot img{width:100%;height:100%;object-fit:cover;object-position:50% 30%}.sf-ai-welcome{display:flex;flex-direction:column;gap:5px}.sf-ai-welcome strong{font-size:22px;color:var(--sf-navy);line-height:1.1}.sf-ai-welcome span{font-size:14px;line-height:1.45;color:#29465a;font-weight:700}.sf-ai-welcome small{font-size:11px;line-height:1.45;color:#71818d}
.sf-ai-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px;background:#fff}.sf-ai-action{min-height:52px;border:1px solid #e1e7eb;background:#fff;border-radius:14px;display:grid;grid-template-columns:30px 1fr 12px;align-items:center;gap:8px;text-align:left;padding:8px 10px;color:#18334a;font:700 11px/1.25 inherit;cursor:pointer;transition:.18s}.sf-ai-action:hover{border-color:#e1b84d;background:#fffaf0;transform:translateY(-1px)}.sf-ai-action svg{width:23px;height:23px;fill:none;stroke:#a9760f;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.sf-ai-action b{font-size:20px;color:#9a6f13;font-weight:500}
.sf-ai-messages{flex:1;min-height:95px;overflow:auto;padding:7px 13px;background:linear-gradient(#fbfcfd,#fff)}.sf-ai-msg{display:flex;margin:0 0 10px}.sf-ai-msg.user{justify-content:flex-end}.sf-ai-bubble{max-width:87%;padding:10px 12px;border-radius:15px 15px 15px 5px;background:#eef3f6;color:#1b2a36;font-size:12px;line-height:1.5;white-space:pre-wrap}.sf-ai-msg.user .sf-ai-bubble{background:#0d2030;color:#fff;border-radius:15px 15px 5px 15px}.sf-ai-bubble a{color:#9a6d0a;font-weight:800}.sf-ai-msg.user .sf-ai-bubble a{color:#ffd45a}
.sf-ai-input{border-top:1px solid var(--sf-line);padding:9px;background:#fff;display:flex;gap:8px}.sf-ai-input textarea{resize:none;min-height:42px;max-height:90px;flex:1;border:1px solid #d7e0e6;border-radius:14px;padding:10px 12px;font:inherit;font-size:12px;outline:none}.sf-ai-input textarea:focus{border-color:var(--sf-gold);box-shadow:0 0 0 3px rgba(245,184,46,.13)}.sf-ai-send{width:46px;border:0;border-radius:13px;background:var(--sf-navy);color:#fff;cursor:pointer;display:grid;place-items:center}.sf-ai-send svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.sf-ai-note{font-size:8.5px;color:#8996a0;text-align:center;padding:0 12px 8px}.sf-ai-typing{display:inline-flex;gap:4px}.sf-ai-typing i{width:6px;height:6px;border-radius:50%;background:#9aa4b1;animation:sfDot 1s infinite}.sf-ai-typing i:nth-child(2){animation-delay:.15s}.sf-ai-typing i:nth-child(3){animation-delay:.3s}@keyframes sfDot{50%{opacity:.25;transform:translateY(-2px)}}
@media(max-width:560px){.sf-ai-launcher{right:14px;bottom:14px}.sf-ai-launcher>div:last-child{display:none}.sf-ai-panel{right:10px;bottom:72px;width:calc(100vw - 20px);height:min(700px,calc(100vh - 88px));border-radius:20px}.sf-ai-hero{grid-template-columns:105px 1fr}.sf-ai-mascot{height:105px}.sf-ai-actions{gap:6px;padding:9px}.sf-ai-action{min-height:48px;font-size:10px}.sf-ai-welcome strong{font-size:19px}}
/* Forge focused-conversation update */
.sf-ai-launcher .sf-ai-mark{width:52px;height:52px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 2px rgba(245,184,46,.75)}
.sf-ai-launcher .sf-ai-mark img{width:100%;height:100%;object-fit:cover}
.sf-ai-avatar{border-radius:50%;background:#fff;width:46px;height:46px}
.sf-ai-avatar img{width:100%;height:100%;object-fit:cover}
.sf-ai-panel{height:min(690px,calc(100vh - 105px))}
.sf-ai-messages{padding:12px 15px}
@media(max-width:560px){
  .sf-ai-launcher{right:10px;bottom:10px;padding:5px 14px 5px 5px;gap:8px;min-height:56px}
  .sf-ai-launcher .sf-ai-mark{width:50px;height:50px}
  .sf-ai-launcher>div:last-child{display:block}
  .sf-ai-launcher small{font-size:9px}
  .sf-ai-launcher strong{font-size:14px}
  .sf-ai-panel{right:8px;bottom:76px;width:calc(100vw - 16px);height:min(560px,calc(100vh - 128px));border-radius:18px}
  .sf-ai-head{padding:10px 12px;gap:9px}
  .sf-ai-avatar{width:40px;height:40px}
  .sf-ai-head h3{font-size:16px}
  .sf-ai-head p{font-size:9px}
  .sf-ai-close{width:30px;height:30px;font-size:18px}
  .sf-ai-hero{grid-template-columns:78px 1fr;gap:10px;padding:10px 11px}
  .sf-ai-mascot{height:78px;border-radius:14px}
  .sf-ai-welcome strong{font-size:17px}
  .sf-ai-welcome span{font-size:11px;line-height:1.3}
  .sf-ai-welcome small{font-size:9px;line-height:1.3}
  .sf-ai-messages{padding:10px 11px}
  .sf-ai-bubble{max-width:90%;font-size:11px;line-height:1.45;padding:9px 10px}
  .sf-ai-input{padding:7px;gap:6px}
  .sf-ai-input textarea{min-height:40px;padding:9px 10px;font-size:11px}
  .sf-ai-send{width:42px;border-radius:12px}
  .sf-ai-note{font-size:7.5px;padding-bottom:6px}
}


/* Forge mobile optimisation */
@media(max-width:560px){
  .sf-ai-launcher{right:10px!important;bottom:10px!important;min-height:48px!important;padding:4px 11px 4px 4px!important;gap:6px!important}
  .sf-ai-launcher .sf-ai-mark{width:42px!important;height:42px!important}
  .sf-ai-launcher .sf-ai-mark img{width:100%!important;height:100%!important}
  .sf-ai-launcher small{font-size:8px!important}
  .sf-ai-launcher strong{font-size:12px!important}
  .sf-ai-panel{right:6px!important;bottom:64px!important;width:calc(100vw - 12px)!important;height:min(620px,calc(100vh - 76px))!important;border-radius:18px!important}
}
