.inoowi-ai-open {
  position: fixed; right: 22px; bottom: 22px; z-index: 9997;
  background: #142f3d; color: #fff; border: 2px solid #c7e64a; border-radius: 999px;
  padding: 12px 17px; font: 700 12px Arial, sans-serif; cursor: pointer; box-shadow: 0 8px 25px #0003;
}
.inoowi-ai-panel {
  position: fixed; right: 22px; bottom: 82px; z-index: 9998; display: flex; flex-direction: column;
  width: min(420px, calc(100vw - 28px)); height: min(565px, calc(100dvh - 96px));
  background: #f6f4ed; color: #142f3d; border: 1px solid #142f3d; box-shadow: 0 18px 55px #0005;
  font: 14px/1.4 Arial, sans-serif; box-sizing: border-box;
}
.inoowi-ai-panel[hidden] { display: none; }
.inoowi-ai-head {
  background: #142f3d; color: #fff; padding: 9px 15px; display: flex;
  align-items: center; justify-content: space-between; position: static;
}
.inoowi-ai-head strong { color: #e1f488; }
.inoowi-ai-head button {
  background: transparent; border: 0; color: #fff; font-size: 22px;
  padding: 3px 7px; cursor: pointer; min-width: 34px;
}
.inoowi-ai-log { flex: 1; min-height: 0; overflow: auto; padding: 12px; }
.inoowi-ai-msg { padding: 10px 12px; margin: 0 0 8px; max-width: 93%; overflow-wrap: anywhere; }
.inoowi-ai-msg p { margin: 0; white-space: pre-wrap; }
.inoowi-ai-msg.bot { background: #fff; border: 1px solid #d6dad6; }
.inoowi-ai-msg.me { background: #c7e64a; margin-left: auto; width: fit-content; }
.inoowi-ai-links { margin: 6px 0 0; padding: 0 0 0 18px; }
.inoowi-ai-links a, .inoowi-ai-note a { color: inherit; text-decoration: underline; }
.inoowi-ai-compose { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 0; }
.inoowi-ai-compose textarea {
  width: 100%; box-sizing: border-box; resize: none; min-height: 52px;
  font: inherit; border: 1px solid #c8cfca; background: #fff; color: #142f3d; padding: 9px;
}
.inoowi-ai-compose button {
  color: #fff; background: #881733; border: 0; padding: 0 12px; font: 700 13px Arial, sans-serif; cursor: pointer;
}
.inoowi-ai-compose button:disabled { opacity: .65; cursor: wait; }
.inoowi-ai-options {
  display: flex; justify-content: space-between; align-items: center;
  gap: 7px; padding: 6px 10px 0; font-size: 12px;
}
.inoowi-ai-options label { display: flex; align-items: center; gap: 5px; }
.inoowi-ai-options button { padding: 5px; border: 0; background: transparent; color: #881733; text-decoration: underline; cursor: pointer; }
.inoowi-ai-note { margin: 0; padding: 3px 10px 8px; color: #425763; font-size: 11px; }
.inoowi-ai-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
@media (max-width: 500px) {
  .inoowi-ai-open, .inoowi-ai-panel { right: 14px; }
  .inoowi-ai-panel { bottom: 76px; }
}
