/* Support chat. Colours come from tokens.css, so a theme change recolors the launcher and the panel. */
.aw-support-launcher,
.aw-support-panel,
.aw-support-send {
  font-family: var(--sans);
}
.aw-support-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent-fill, var(--accent));
  color: var(--on-accent, #fff);
  box-shadow: var(--glow);
  cursor: pointer;
}
.aw-support-launcher:hover { background: var(--accent-hover); }
.aw-support-launcher svg { width: 26px; height: 26px; margin: 0 auto; }
.aw-support-panel {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: min(360px, calc(100vw - 24px));
  height: min(480px, calc(100vh - 120px));
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: var(--bg-1);
  color: var(--bone);
  box-shadow: var(--glow);
  overflow: hidden;
}
.aw-support-panel[hidden] { display: none; }
.aw-support-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  background: var(--accent-fill, var(--accent));
  color: var(--on-accent, #fff);
}
.aw-support-head strong { font-weight: 600; font-size: 0.95rem; }
.aw-support-head span { display: block; font: 500 0.75rem/1.3 var(--sans); opacity: 0.9; }
.aw-support-close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.aw-support-log {
  flex: 1;
  overflow: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  user-select: text;
}
.aw-support-msg {
  max-width: 90%;
  padding: 8px 10px;
  border-radius: var(--radius);
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.92rem;
  line-height: 1.45;
}
.aw-support-msg.user {
  align-self: flex-end;
  background: var(--accent-dim);
  color: var(--bone);
}
.aw-support-msg.assistant {
  align-self: flex-start;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.aw-support-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
}
.aw-support-form textarea {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  resize: none;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-0);
  color: var(--bone);
  padding: 8px 10px;
  font: 400 0.92rem/1.4 var(--sans);
  user-select: text;
}
.aw-support-send {
  align-self: flex-end;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent-fill, var(--accent));
  color: var(--on-accent, #fff);
  font-weight: 600;
  cursor: pointer;
}
.aw-support-send:hover { background: var(--accent-hover); }
.aw-support-send:disabled { opacity: 0.6; cursor: default; }
