.gc-launch,
.gc-panel,
.gc-fallback-shade {
  --gc-ink: #211746;
  --gc-accent: #5945c8;
  --gc-mint: #acedd5;
  --gc-paper: #f9f8fc;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.gc-launch,
.gc-panel button,
.gc-panel a,
.gc-panel textarea {
  font-family: inherit;
  letter-spacing: normal;
}

.gc-launch {
  position: fixed;
  z-index: 90;
  right: max(26px, env(safe-area-inset-right));
  bottom: max(23px, env(safe-area-inset-bottom));
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 19px 0 16px;
  border: 1px solid #4b3a73;
  border-radius: 99px;
  background: var(--gc-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  box-shadow: 0 4px 20px #24174738, 0 1px 4px #2117461c;
  cursor: pointer;
}
.gc-launch:hover { background: #37265f; }
.gc-launch svg { width: 25px; height: 25px; flex: none; }
.gc-launch:focus-visible,
.gc-panel :is(button, a, textarea):focus-visible {
  outline: 3px solid #8a74ed;
  outline-offset: 3px;
}
.gc-panel,
.gc-panel * { box-sizing: border-box; }
.gc-panel [hidden],
.gc-fallback-shade[hidden] { display: none !important; }
.gc-panel:not([open]) { display: none; }
.gc-panel[open] {
  position: fixed;
  z-index: 102;
  inset: auto max(22px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) auto;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: min(438px, calc(100vw - 28px));
  height: min(664px, calc(100vh - 40px));
  height: min(664px, calc(100dvh - 40px));
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #e1ddeb;
  border-radius: 21px;
  background: #fff;
  color: var(--gc-ink);
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
  box-shadow: 0 19px 70px #21174642, 0 2px 12px #2117461a;
}
.gc-panel::backdrop { background: #21174627; }
.gc-fallback-shade {
  position: fixed;
  z-index: 100;
  inset: 0;
  background: #21174627;
}
.gc-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--gc-ink);
  color: #fff;
}
.gc-badge {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 13px;
  background: var(--gc-mint);
  color: var(--gc-ink);
}
.gc-badge svg { width: 29px; height: 29px; }
.gc-head-copy { flex: 1; min-width: 0; }
.gc-panel .gc-title {
  margin: 0;
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.025em;
}
.gc-brand { display: block; color: #d6d0e7; font-size: 11.8px; line-height: 1.5; }
.gc-panel button { cursor: pointer; }
.gc-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #fff;
}
.gc-close:hover { background: #ffffff19; }
.gc-close svg { width: 22px; height: 22px; }
.gc-scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #cdc7dc transparent;
  padding: 24px 19px 18px;
  background: var(--gc-paper);
}
.gc-welcome { padding: 4px 3px 13px; }
.gc-panel .gc-welcome-title {
  margin: 0 0 7px;
  font-family: inherit;
  font-size: 23px;
  line-height: 1.22;
  font-weight: 700;
  color: var(--gc-ink);
  letter-spacing: -.042em;
}
.gc-panel .gc-scope { margin: 0; color: #595269; font-size: 13px; line-height: 1.6; }
.gc-welcome.gc-compact { padding: 0 3px 16px; }
.gc-welcome.gc-compact .gc-welcome-title { display: none; }
.gc-welcome.gc-compact .gc-scope { font-size: 12px; }
.gc-choices { display: grid; gap: 8px; margin-top: 21px; }
.gc-choice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid #ded9ec;
  border-radius: 12px;
  background: #fff;
  color: var(--gc-ink);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}
.gc-choice svg, .gc-source svg { width: 17px; height: 17px; flex: none; }
.gc-choice svg { color: var(--gc-accent); }
.gc-choice:hover { border-color: #9382ce; background: #f6f3ff; }
.gc-log, .gc-turn { display: flex; flex-direction: column; }
.gc-log { gap: 20px; }
.gc-turn { gap: 10px; }
.gc-panel .gc-question {
  align-self: flex-end;
  max-width: 88%;
  margin: 0;
  padding: 10px 13px;
  border-radius: 15px 15px 4px 15px;
  background: #32205a;
  color: white;
  font-size: 13.5px;
  line-height: 1.52;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.gc-answer {
  padding: 14px 15px;
  border: 1px solid #e6e1ef;
  border-radius: 4px 15px 15px;
  background: white;
  color: #342e42;
  font-size: 13.5px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.gc-panel .gc-answer-intro { margin: 0; color: #302740; font-size: inherit; line-height: inherit; }
.gc-panel .gc-steps { display: grid; gap: 8px; margin: 11px 0 1px; padding: 0 0 0 20px; list-style: decimal; }
.gc-steps li { margin: 0; padding-inline-start: 2px; }
.gc-steps li::marker { color: var(--gc-accent); font-weight: 700; }
.gc-sources { margin-top: 13px; padding-top: 10px; border-top: 1px solid #ebe7f2; }
.gc-panel .gc-sources-title { margin: 0 0 4px; color: #696276; font-size: 11.5px; font-weight: 650; }
.gc-panel .gc-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  color: #4f39ad;
  font-size: 12.6px;
  font-weight: 650;
  line-height: 1.45;
  text-decoration: none;
}
.gc-panel .gc-source:hover span { text-decoration: underline; text-underline-offset: 2px; }
.gc-wait { color: #625a74; font-size: 13px; }
.gc-form { flex: 0 0 auto; margin: 0; padding: 12px 14px; border-top: 1px solid #e7e3ee; background: white; }
.gc-entry { display: flex; align-items: flex-end; gap: 7px; padding: 5px; border: 1px solid #d7d1e4; border-radius: 14px; background: #fff; }
.gc-entry:focus-within { border-color: #8b78d3; box-shadow: 0 0 0 2px #5945c813; }
.gc-panel .gc-input {
  display: block;
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 36px;
  max-height: 100px;
  margin: 0;
  padding: 7px 8px;
  box-shadow: none;
  border: none;
  border-radius: 8px;
  resize: none;
  background: transparent;
  color: var(--gc-ink);
  font-size: 14px;
  line-height: 22px;
}
.gc-panel .gc-input:focus-visible { outline: 0; }
.gc-input::placeholder { color: #746d80; opacity: 1; }
.gc-submit {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: var(--gc-accent);
  color: #fff;
}
.gc-submit:disabled { background: #e7e3ee; color: #877f97; cursor: default; }
.gc-submit:not(:disabled):hover { background: #4632a9; }
.gc-submit svg { width: 20px; height: 20px; }
.gc-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px) {
  .gc-launch {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(15px, env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
    padding: 0;
  }
  .gc-launch-label { display: none; }
  .gc-launch svg { width: 27px; height: 27px; }
  .gc-panel[open] {
    inset: auto 0 0;
    width: 100%;
    height: min(720px, 94vh);
    height: min(720px, 94dvh);
    border-radius: 19px 19px 0 0;
  }
  .gc-is-open { overflow: hidden; }
  .gc-head { padding: 13px 14px; }
  .gc-scroll { padding: 18px 13px; }
  .gc-form { padding: 9px max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); }
  .gc-panel .gc-input { font-size: 16px; }
}
@media print {
  .gc-launch, .gc-panel, .gc-fallback-shade { display: none !important; }
}
.gc-privacy { display: grid; gap: 1px; margin: 7px 3px 0; }
.gc-ai-label { display: inline-flex; align-items: center; gap: 6px; width: fit-content; color: #484054; font-size: 11.8px; font-weight: 650; cursor: pointer; }
.gc-ai-choice { width: 15px; height: 15px; margin: 0; padding: 0; accent-color: var(--gc-accent); }
.gc-ai-choice:focus-visible { outline: 2px solid #8a74ed; outline-offset: 2px; }
.gc-panel .gc-ai-note { margin: 0 0 0 21px; color: #655d72; font-size: 10.7px; line-height: 1.4; }
.gc-mode { display: block; margin-top: 9px; color: #6b6279; font-size: 11px; line-height: 1.5; }

.gc-panel[dir="rtl"], .gc-panel[dir="rtl"] .gc-choice { text-align: start; }
.gc-panel[dir="rtl"] :is(.gc-choice, .gc-source) svg { transform: scaleX(-1); }
.gc-panel[dir="rtl"] .gc-steps { padding: 0; padding-inline-start: 20px; }
.gc-panel[dir="rtl"] .gc-ai-note { margin: 0; margin-inline-start: 21px; }
.gc-panel[dir="rtl"] .gc-question { border-radius: 15px 15px 15px 4px; }
.gc-panel[dir="rtl"] .gc-answer { border-radius: 15px 4px 15px 15px; }
.gc-panel[dir="rtl"] :is(.gc-title, .gc-welcome-title) { letter-spacing: normal; }
.gc-launch[dir="rtl"] { right: auto; left: max(26px, env(safe-area-inset-left)); }
@media (min-width: 601px) {
  .gc-panel[open][dir="rtl"] { inset: auto auto max(20px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left)); }
}
@media (max-width: 600px) {
  .gc-launch[dir="rtl"] { left: max(14px, env(safe-area-inset-left)); }
}
