/* SkyNet 64: the floating "Ask the Assistant" button and its chat panel. Present on every page.
   Palette matches the global menu (#061b3c navy, #ffcc29 gold). Scoped under .assistant so it never
   touches other page styles. */
.sk-assistant { position: fixed; right: 18px; bottom: 18px; z-index: 1000; font-family: inherit; }
.assistant-launch {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: #061b3c; color: #fff; border: 2px solid #ffcc29; border-radius: 28px;
  padding: 10px 16px; font-size: 15px; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.28);
}
.assistant-launch:hover { background: #0a2a5c; }
.assistant-launch:focus-visible { outline: 3px solid #ffcc29; outline-offset: 2px; }
.assistant-launch-icon { font-size: 18px; line-height: 1; }
.assistant-panel {
  position: absolute; right: 0; bottom: 56px; width: min(360px, calc(100vw - 36px));
  max-height: min(70vh, 540px); display: flex; flex-direction: column;
  background: #fff; color: #11223a; border: 1px solid #c9d4e4; border-top: 4px solid #ffcc29;
  border-radius: 10px; box-shadow: 0 10px 34px rgba(0,0,0,.30); overflow: hidden;
}
.assistant-panel[hidden] { display: none; }
.assistant-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: #061b3c; color: #fff; }
.assistant-head strong { font-size: 15px; }
.assistant-close { background: none; border: 0; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }
.assistant-close:focus-visible { outline: 2px solid #ffcc29; }
.assistant-tabs { display: flex; border-bottom: 1px solid #e2e8f2; }
.assistant-tab { flex: 1; background: #eef2f8; border: 0; border-bottom: 3px solid transparent; padding: 9px 6px; cursor: pointer; font-size: 13px; font-weight: 600; color: #35496a; }
.assistant-tab[aria-selected="true"] { background: #fff; border-bottom-color: #ffcc29; color: #061b3c; }
.assistant-intro { margin: 0; padding: 9px 12px; font-size: 12px; color: #4a5c78; background: #f7f9fc; }
.assistant-log { flex: 1 1 auto; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.assistant-msg { padding: 8px 10px; border-radius: 8px; font-size: 14px; white-space: pre-wrap; word-wrap: break-word; }
.assistant-msg.you { align-self: flex-end; background: #061b3c; color: #fff; max-width: 85%; }
.assistant-msg.ai { align-self: flex-start; background: #eef2f8; color: #11223a; max-width: 92%; }
.assistant-msg.note { align-self: stretch; background: #fff6d8; color: #5b4a00; border: 1px solid #ffe08a; font-size: 13px; }
.assistant-msg.err { align-self: stretch; background: #fdecea; color: #7a1c12; border: 1px solid #f5c2bd; font-size: 13px; }
.assistant-form { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-top: 1px solid #e2e8f2; }
.assistant-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.assistant-form textarea { width: 100%; resize: vertical; border: 1px solid #c3cfe0; border-radius: 6px; padding: 8px; font: inherit; font-size: 14px; box-sizing: border-box; }
.assistant-form textarea:focus-visible { outline: 2px solid #061b3c; }
.assistant-send { align-self: flex-end; background: #061b3c; color: #fff; border: 0; border-radius: 6px; padding: 8px 18px; font-weight: 600; cursor: pointer; }
.assistant-send:hover { background: #0a2a5c; }
.assistant-send:disabled { opacity: .55; cursor: default; }
.assistant-send:focus-visible { outline: 3px solid #ffcc29; outline-offset: 2px; }
@media (max-width: 520px) { .assistant-launch-text { display: none; } .sk-assistant { right: 12px; bottom: 12px; } }
