.sgc-root {
  --sgc-blue: #2563eb;
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2147483000;
  font-family: Inter, system-ui, sans-serif;
  color: #0f172a;
}
.sgc-root * {
  box-sizing: border-box;
}
.sgc-launcher {
  position: relative;
  bottom: 82px;
  width: 58px;
  min-width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid #ffffff33;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed 68%, #ec4899);
  box-shadow: 0 18px 45px #2563eb61;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
  font:
    900 13px/1 Inter,
    sans-serif;
}
.sgc-launcher-icon {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #03071240;
  font-size: 23px;
  animation: sgc-float 5.5s ease-in-out infinite;
}
.sgc-launcher-badge {
  position: absolute;
  right: -3px;
  top: -4px;
  width: 22px;
  height: 22px;
  border: 3px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f97316;
  font:
    900 11px/1 Inter,
    sans-serif;
}
.sgc-launcher-label {
  display: none !important;
}
.sgc-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(390px, calc(100vw - 28px));
  height: min(650px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #94a3b84d;
  border-radius: 24px;
  background: #f8fafc;
  box-shadow: 0 32px 90px #0206175c;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.97);
  transform-origin: bottom right;
  transition: 0.2s;
}
.sgc-open .sgc-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.sgc-open .sgc-launcher {
  visibility: hidden;
  opacity: 0;
}
.sgc-header {
  min-height: 78px;
  padding: 14px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #1d4ed8 58%, #7c3aed);
}
.sgc-avatar {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #ffffff1f;
  font-size: 24px;
}
.sgc-header strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
}
.sgc-header span {
  display: flex;
  gap: 6px;
  margin-top: 5px;
  color: #dbeafe;
  font-size: 11px;
  font-weight: 700;
}
.sgc-header span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
}
.sgc-close {
  margin-left: auto;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: #ffffff1a;
  color: #fff;
  cursor: pointer;
  font-size: 28px;
}
.sgc-messages {
  flex: 1;
  min-height: 0;
  padding: 18px 14px 10px;
  overflow-y: auto;
}
.sgc-message-row {
  display: flex;
  margin-bottom: 11px;
}
.sgc-bubble {
  max-width: 86%;
  padding: 11px 13px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.55;
  box-shadow: 0 5px 18px #0f172a0f;
}
.sgc-bot .sgc-bubble,
.sgc-typing .sgc-bubble {
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 5px;
  background: #fff;
  color: #334155;
}
.sgc-user {
  justify-content: flex-end;
}
.sgc-user .sgc-bubble {
  border-bottom-right-radius: 5px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
}
.sgc-typing .sgc-bubble {
  color: #64748b;
  font-style: italic;
}
.sgc-action {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 11px;
  background: #ecfdf5;
  color: #047857 !important;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid #a7f3d0;
}
.sgc-card,
.sgc-aggregate {
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid #dbe4f0;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 24px #0f172a14;
}
.sgc-card-top {
  display: flex;
  align-items: center;
  gap: 11px;
}
.sgc-card-image {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}
.sgc-card-heading {
  min-width: 0;
}
.sgc-card-title {
  display: block;
  color: #0f172a !important;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.25;
  text-decoration: none;
}
.sgc-card-meta {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sgc-card-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 11px;
}
.sgc-detail {
  padding: 8px;
  border-radius: 10px;
  background: #f1f5f9;
}
.sgc-detail span,
.sgc-detail strong {
  display: block;
}
.sgc-detail span {
  color: #64748b;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}
.sgc-detail strong {
  margin-top: 3px;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 950;
}
.sgc-requirements {
  margin-top: 9px;
  border-top: 1px solid #e2e8f0;
}
.sgc-requirements summary,
.sgc-aggregate-list summary {
  padding: 9px 1px 3px;
  color: #475569;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}
.sgc-requirements-body p {
  margin: 3px 0;
  color: #64748b;
  font-size: 10px;
}
.sgc-view {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 9px;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8 !important;
  font-size: 11px;
  font-weight: 950;
  text-decoration: none;
}
.sgc-aggregate {
  border-color: #c7d2fe;
  background: linear-gradient(145deg, #fff, #eef2ff);
}
.sgc-aggregate-summary {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 8px;
}
.sgc-aggregate-total,
.sgc-aggregate-count {
  padding: 11px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e0e7ff;
}
.sgc-aggregate-total span,
.sgc-aggregate-count span {
  display: block;
  color: #64748b;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}
.sgc-aggregate-total strong,
.sgc-aggregate-count strong {
  display: block;
  margin-top: 4px;
  color: #1d4ed8;
  font-size: 17px;
  font-weight: 950;
}
.sgc-aggregate-body {
  max-height: 190px;
  overflow-y: auto;
  border-top: 1px solid #dbeafe;
}
.sgc-aggregate-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 2px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155 !important;
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
}
.sgc-aggregate-row strong {
  flex: 0 0 auto;
  color: #1d4ed8;
}
.sgc-suggestions {
  padding: 5px 12px 8px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
}
.sgc-suggestions:empty {
  display: none;
}
.sgc-chip {
  flex: 0 0 auto;
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  cursor: pointer;
  font:
    850 10px/1 Inter,
    sans-serif;
}
.sgc-form {
  margin: 0 11px 8px;
  padding: 5px;
  display: flex;
  gap: 7px;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  background: #fff;
}
.sgc-input {
  width: 100%;
  height: 42px;
  padding: 0 8px;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: #0f172a !important;
  box-shadow: none !important;
  font:
    600 13px/1 Inter,
    sans-serif;
}
.sgc-send {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  cursor: pointer;
  font-size: 17px;
}
.sgc-human {
  display: block;
  padding: 0 12px 10px;
  text-align: center;
  color: #64748b !important;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}
@keyframes sgc-float {
  0%,
  100% {
    transform: none;
  }
  20% {
    transform: translateY(-3px) rotate(-7deg);
  }
  40% {
    transform: rotate(6deg);
  }
}
@media (max-width: 640px) {
  .sgc-root {
    right: 12px;
    bottom: 12px;
  }
  .sgc-panel {
    position: fixed;
    inset: 74px 8px 8px;
    width: auto;
    height: auto;
    border-radius: 20px;
  }
  .sgc-launcher {
    bottom: 82px;
    width: 56px;
    min-width: 56px;
    height: 56px;
    padding: 0;
  }
  .sgc-launcher-label {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sgc-root * {
    animation: none !important;
    transition: none !important;
  }
}
