.flo-root {
  position: fixed;
  z-index: 2147483000;
  font-family: inherit;
  color: #142e34;
  pointer-events: none;
}
.flo-root > * {
  pointer-events: auto;
}
.flo-root[hidden],
.flo-panel[hidden],
.flo-panel__props[hidden] {
  display: none !important;
}
.flo-pos-bottom-left {
  left: 18px;
  bottom: 18px;
}
.flo-pos-bottom-right {
  right: 18px;
  bottom: 18px;
}
.flo-launcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #142e34;
  background: #fff57d;
  color: #142e34;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(20, 46, 52, 0.18);
}
.flo-launcher__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2e5d63;
}
.flo-panel {
  position: absolute;
  bottom: 56px;
  width: min(380px, calc(100vw - 36px));
  max-height: min(560px, calc(100vh - 100px));
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(20, 46, 52, 0.14);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(20, 46, 52, 0.2);
  overflow: hidden;
}
.flo-pos-bottom-left .flo-panel { left: 0; }
.flo-pos-bottom-right .flo-panel { right: 0; }
.flo-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: linear-gradient(135deg, #e8f7f8, #fffef5);
  border-bottom: 1px solid rgba(20, 46, 52, 0.08);
  flex-shrink: 0;
}
.flo-panel__close {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #5b6b6e;
  padding: 4px 8px;
  margin: -4px -4px -4px 0;
  z-index: 2;
}
.flo-panel__messages {
  flex: 1;
  overflow: auto;
  padding: 12px 14px;
  display: grid;
  gap: 10px;
  background: #fafbfb;
  min-height: 120px;
}
.flo-msg {
  max-width: 92%;
  padding: 8px 11px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-wrap;
  display: grid;
  gap: 6px;
}
.flo-msg--bot {
  background: #fff;
  border: 1px solid #e3e8ea;
  justify-self: start;
}
.flo-msg--user {
  background: #2e5d63;
  color: #fff;
  justify-self: end;
}
.flo-msg__text {
  white-space: pre-wrap;
}
.flo-speak {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #c5d2d6;
  background: #f4f8fa;
  color: #142e34;
  cursor: pointer;
  font-size: 0.7rem;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.flo-speak:hover {
  background: #fff57d;
  border-color: #142e34;
}
.flo-speak.is-playing,
.flo-speak.is-loading {
  background: #2e5d63;
  color: #fff;
  border-color: #2e5d63;
}
.flo-speak:disabled {
  opacity: 0.7;
  cursor: wait;
}
.flo-panel__props {
  display: grid;
  gap: 8px;
  padding: 0 14px 10px;
  max-height: 180px;
  overflow: auto;
  flex-shrink: 0;
}
.flo-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e3e8ea;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.flo-card img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  background: #eef2f3;
}
.flo-card__body {
  padding: 6px 8px 6px 0;
  font-size: 0.8rem;
}
.flo-card__body strong { display: block; font-size: 0.85rem; }
.flo-panel__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px 14px 14px;
  border-top: 1px solid #eef1f2;
  flex-shrink: 0;
}
.flo-panel__form input {
  width: 100%;
  border: 1px solid #cfe7ec;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}
.flo-btn {
  border: 1px solid #142e34;
  background: #fff57d;
  color: #142e34;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}
.flo-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}
