.indigo-widget-launcher {
  position: fixed;
  right: 14px;
  bottom: 10px;
  width: 326px;
  height: 40px;
  border: none;
  border-radius: 5px 30px 0 0;
  background: linear-gradient(90deg, #230099 0%, #3A00FF 100%);
  color: #fff;
  box-shadow: -3px 3px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 99998;
  padding: 0 14px;
  text-align: center;
}
.indigo-widget-launcher span {
  display: block;
  padding-right: 28px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 40px;
  color: #fff;
}
.indigo-widget-launcher i {
  position: absolute;
  right: 0;
  top: 0;
  width: 27px;
  height: 28px;
  background: #15FF00;
  border-radius: 0 30px;
}
.indigo-widget-launcher.hidden { display: none; }

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@600;700&display=swap');

.indigo-widget-panel {
  position: fixed;
  right: 14px;
  bottom: 10px;
  width: 336px;
  height: 495px;
  background: #fff;
  border: 1px solid rgba(215, 215, 215, 0.1);
  border-radius: 5px 30px 0 0;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 99998;
}
.indigo-widget-panel.open { display: flex; }

.indigo-widget-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 70px;
  padding: 15px 16px;
  background: linear-gradient(90deg, #230099 0%, #3A00FF 100%);
  color: #fff;
}
.indigo-widget-head::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 27px;
  height: 28px;
  background: #15FF00;
  border-radius: 0 30px;
}
.indigo-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  border: none;
}
.indigo-head-name { font-family: Manrope, system-ui, sans-serif; font-weight: 600; font-size: 14px; line-height: 19px; }
.indigo-head-sub { font-family: Manrope, system-ui, sans-serif; font-weight: 600; font-size: 12px; line-height: 16px; color: rgba(255,255,255,.6); }
.indigo-close {
  margin-left: auto;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.indigo-widget-feed {
  flex: 1;
  overflow: auto;
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
}
.indigo-b {
  max-width: 250px;
  padding: 10px 12px;
  border-radius: 15px;
  border: none;
  background: #F1F0F0;
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 19px;
  white-space: pre-wrap;
  color: #343E48;
}
.indigo-b.client {
  align-self: flex-end;
  background: #E8F1FF;
}
.indigo-b.manager { align-self: flex-start; }

.indigo-media { display: flex; flex-direction: column; gap: 6px; }
.indigo-media a { color: #0a64df; text-decoration: none; font-size: 13px; }
.indigo-media-image-link { display: inline-block; }
.indigo-media-download { font-family: Manrope, system-ui, sans-serif; font-weight: 600; font-size: 12px; }
.indigo-media-name { font-family: Manrope, system-ui, sans-serif; font-weight: 600; font-size: 12px; color: #7C8791; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.indigo-media-image {
  display: block;
  max-width: 220px;
  max-height: 220px;
  border-radius: 10px;
  border: 1px solid #d8dee8;
  object-fit: cover;
}

.indigo-composer {
  position: sticky;
  bottom: 0;
  padding: 8px 10px 10px;
  border-top: 1px solid #D8DEE3;
  display: flex;
  gap: 8px;
  align-items: center;
  background: #fff;
  min-height: 60px;
}
.indigo-input {
  flex: 1;
  height: 40px;
  min-height: 40px;
  max-height: 96px;
  resize: none;
  border: none;
  border-radius: 20px;
  padding: 10px 14px;
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 19px;
  color: #7C8791;
  background: #F1F0F0;
  outline: none;
}
.indigo-input::placeholder{color:#7C8791}
.indigo-attach,
.indigo-send {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: #F1F0F0;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #A3AAB5;
  font-size: 18px;
  flex: 0 0 auto;
}
.indigo-file {
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #7C8791;
  padding: 0 12px 4px;
  background: #fff;
}
.indigo-composer input[type="file"]{display:none !important}
.indigo-hidden { display: none; }

@media (max-width: 460px) {
  .indigo-widget-panel {
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .indigo-widget-head {
    min-height: 54px;
    padding: 10px 12px;
  }
  .indigo-widget-head::after { display: none; }
  .indigo-avatar { display: none; }
  .indigo-close { font-size: 28px; margin-right: 4px; }
  .indigo-widget-feed { padding: 10px 8px 6px; }
  .indigo-b { font-size: 15px; }
  .indigo-composer {
    padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
  }
  .indigo-input {
    min-height: 38px;
    font-size: 16px;
  }
  .indigo-widget-launcher {
    right: 8px;
    bottom: calc(6px + env(safe-area-inset-bottom));
    width: min(326px, calc(100vw - 16px));
    height: 40px;
  }
}
