/* Seattle AI Works — welcome agent widget. Palette matches site: paper/ink/steel/amber. */
#saw-wa-launcher {
  position: fixed; bottom: 26px; right: 26px; z-index: 10000;
  width: 58px; height: 58px; border-radius: 50%;
  background: #22333d; color: #c9a24b; border: 1px solid #35474f;
  box-shadow: 0 10px 34px rgba(29, 44, 53, 0.35);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
#saw-wa-launcher:hover { transform: scale(1.07); box-shadow: 0 14px 40px rgba(29, 44, 53, 0.45); }
#saw-wa-launcher svg { width: 26px; height: 26px; }

#saw-wa-window {
  position: fixed; bottom: 98px; right: 26px; z-index: 10000;
  width: 380px; height: 560px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 130px);
  border-radius: 14px; background: #f4efe4;
  border: 1px solid #cdc1a4; box-shadow: 0 18px 60px rgba(29, 44, 53, 0.35);
  display: none; flex-direction: column; overflow: hidden;
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #22333d;
}
#saw-wa-window.open { display: flex; }

#saw-wa-header {
  padding: 14px 16px; background: #22333d; color: #f0eee7;
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
#saw-wa-header-info { display: flex; align-items: center; gap: 11px; }
#saw-wa-avatar {
  width: 34px; height: 34px; border-radius: 9px; background: #2c505f; color: #c9a24b;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em;
}
#saw-wa-title { display: flex; flex-direction: column; line-height: 1.25; }
#saw-wa-title span:first-child { font-weight: 700; font-size: 14.5px; }
#saw-wa-title span:last-child { font-size: 12px; color: #93a6ad; }
#saw-wa-close {
  background: none; border: 0; color: #93a6ad; cursor: pointer; padding: 6px;
  border-radius: 6px; display: flex;
}
#saw-wa-close:hover { color: #f0eee7; background: rgba(255, 255, 255, 0.08); }

#saw-wa-messages {
  flex: 1; overflow-y: auto; padding: 16px 14px 8px;
  display: flex; flex-direction: column; gap: 10px;
}
.saw-wa-msg { display: flex; }
.saw-wa-msg.user { justify-content: flex-end; }
.saw-wa-bubble {
  max-width: 82%; padding: 10px 13px; border-radius: 12px;
  font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word;
}
.saw-wa-msg.agent .saw-wa-bubble {
  background: #ece5d4; border: 1px solid #ddd3bc; border-bottom-left-radius: 4px;
}
.saw-wa-msg.user .saw-wa-bubble {
  background: #2c505f; color: #f0eee7; border-bottom-right-radius: 4px;
}

#saw-wa-typing { display: none; padding: 6px 13px; gap: 5px; }
#saw-wa-typing.visible { display: flex; }
#saw-wa-typing span {
  width: 7px; height: 7px; border-radius: 50%; background: #5c6d75;
  animation: saw-wa-blink 1.2s infinite;
}
#saw-wa-typing span:nth-child(2) { animation-delay: 0.18s; }
#saw-wa-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes saw-wa-blink { 0%, 70%, 100% { opacity: 0.25; } 35% { opacity: 1; } }

#saw-wa-input-area {
  display: flex; gap: 8px; padding: 12px; border-top: 1px solid #ddd3bc;
  background: #f4efe4; flex-shrink: 0;
}
#saw-wa-input {
  flex: 1; resize: none; border: 1px solid #cdc1a4; border-radius: 9px;
  padding: 10px 12px; font: inherit; font-size: 14.5px; background: #fff;
  color: #22333d; outline: none;
}
#saw-wa-input:focus { border-color: #3d6478; }
#saw-wa-send {
  width: 42px; border: 0; border-radius: 9px; background: #c9a24b; color: #22333d;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
#saw-wa-send:hover { background: #d4af5e; }
#saw-wa-send svg { width: 18px; height: 18px; }

.saw-wa-form {
  background: #ece5d4; border: 1px solid #ddd3bc; border-radius: 12px;
  border-bottom-left-radius: 4px; padding: 14px; width: 86%;
  display: flex; flex-direction: column; gap: 9px;
}
.saw-wa-form label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12.5px; font-weight: 600; color: #465860;
}
.saw-wa-form input {
  border: 1px solid #cdc1a4; border-radius: 7px; padding: 8px 10px;
  font: inherit; font-size: 14px; background: #fff; color: #22333d; outline: none;
}
.saw-wa-form input:focus { border-color: #3d6478; }
.saw-wa-form button {
  margin-top: 3px; border: 0; border-radius: 8px; background: #c9a24b; color: #22333d;
  font: inherit; font-weight: 700; font-size: 14px; padding: 10px; cursor: pointer;
}
.saw-wa-form button:hover { background: #d4af5e; }
.saw-wa-form button:disabled { opacity: 0.6; cursor: default; }
.saw-wa-formnote { font-size: 11.5px; color: #5c6d75; margin: 2px 0 0; }

@media (max-width: 480px) {
  #saw-wa-window { right: 16px; bottom: 92px; height: 70dvh; }
  #saw-wa-launcher { right: 16px; bottom: 20px; }
}
