:root {
  --gg2gm-brand: #eb7d3d;
  --gg2gm-font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --gg2gm-base-font-size: 16px;
  --gg2gm-title-size: 18px;
  --gg2gm-subtitle-size: 11.5px;
  --gg2gm-message-size: 14px;
  --gg2gm-launcher-size: 18px;
  --gg2gm-resource-title-size: 13px;
  --gg2gm-resource-cta-size: 12px;
  --gg2gm-base-font-weight: 400;
  --gg2gm-title-font-weight: 800;
  --gg2gm-subtitle-font-weight: 400;
  --gg2gm-message-font-weight: 400;
  --gg2gm-launcher-font-weight: 900;
  --gg2gm-resource-title-font-weight: 800;
  --gg2gm-resource-cta-font-weight: 700;
  --gg2gm-starter-prompt-font-weight: 700;
  --gg2gm-starter-button-font-weight: 700;
  --gg2gm-brown: #321f12;
  --gg2gm-brown-2: #3b2517;
  --gg2gm-header-bg: #321f12;
  --gg2gm-header-bg-end: #3b2517;
  --gg2gm-header-text: #ffffff;
  --gg2gm-ink: #171d2a;
  --gg2gm-muted: #748096;
  --gg2gm-border: #e2e4e7;
  --gg2gm-soft: #f5f7f9;
  --gg2gm-panel: #ffffff;
  --gg2gm-messages-bg: #ffffff;
  --gg2gm-assistant-bg: #ffffff;
  --gg2gm-user-bg: #1d222e;
  --gg2gm-user-text: #ffffff;
  --gg2gm-launcher-bg: #e97837;
  --gg2gm-launcher-text: #2a170d;
  --gg2gm-launcher-icon-bg: #352015;
  --gg2gm-launcher-icon-text: #ffffff;
  --gg2gm-input-bg: #ffffff;
  --gg2gm-input-text: #171d2a;
  --gg2gm-send-bg: #e97837;
  --gg2gm-send-text: #ffffff;
  --gg2gm-resource-bg: #f8fafc;
  --gg2gm-resource-cta: #b9541b;
  --gg2gm-resource-cta-hover: #7f3512;
  --gg2gm-starter-prompt-bg: #f4f2f1;
  --gg2gm-starter-prompt-text: #171d2a;
  --gg2gm-starter-button-bg: #ffffff;
  --gg2gm-starter-button-text: #333a43;
  --gg2gm-starter-button-border: #ded8d2;
  --gg2gm-panel-width: 424px;
  --gg2gm-panel-height: 624px;
  --gg2gm-panel-radius: 24px;
  --gg2gm-message-radius: 18px;
  --gg2gm-side-offset: 24px;
  --gg2gm-bottom-offset: 24px;
  --gg2gm-navy: #1d222e;
  --gg2gm-green: #31c778;
  --gg2gm-shadow: 0 26px 72px rgba(27, 18, 12, .22), 0 8px 24px rgba(15, 23, 42, .10);
}

.gg2gm-ai {
  position: fixed;
  right: var(--gg2gm-side-offset);
  bottom: var(--gg2gm-bottom-offset);
  z-index: 999999;
  color: var(--gg2gm-ink);
  font-family: var(--gg2gm-font-family);
  font-size: var(--gg2gm-base-font-size);
  font-weight: var(--gg2gm-base-font-weight);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.gg2gm-ai.is-position-left {
  right: auto;
  left: var(--gg2gm-side-offset);
}

.gg2gm-ai,
.gg2gm-ai * {
  box-sizing: border-box;
  min-width: 0;
}

.gg2gm-ai button,
.gg2gm-ai textarea {
  font: inherit;
}

.gg2gm-ai__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.gg2gm-ai__launcher {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 108px;
  min-height: 64px;
  margin: 0;
  padding: 8px 24px 8px 9px;
  overflow: visible;
  border: 1px solid rgba(82, 38, 16, .2);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .16), transparent 46%),
    linear-gradient(135deg, #f18a49 0%, var(--gg2gm-launcher-bg) 58%, #d96228 100%);
  color: var(--gg2gm-launcher-text);
  box-shadow:
    0 22px 48px rgba(51, 26, 13, .3),
    0 7px 18px rgba(122, 53, 20, .2),
    inset 0 1px 0 rgba(255, 255, 255, .4);
  cursor: pointer;
  font-size: var(--gg2gm-launcher-size);
  font-weight: var(--gg2gm-launcher-font-weight);
  letter-spacing: -.035em;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, opacity .18s ease;
}

.gg2gm-ai__launcher::before {
  position: absolute;
  z-index: -1;
  inset: -7px;
  border: 1px solid rgba(240, 132, 67, .3);
  border-radius: inherit;
  opacity: .75;
  content: "";
  transition: inset .18s ease, opacity .18s ease;
}

.gg2gm-ai__launcher::after {
  position: absolute;
  z-index: -2;
  inset: 10px 8px -9px;
  border-radius: inherit;
  background: rgba(225, 104, 42, .34);
  filter: blur(13px);
  content: "";
}

.gg2gm-ai__launcher-text {
  position: relative;
  top: -1px;
  font-weight: 900 !important;
  line-height: 1;
  letter-spacing: -.035em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .2);
}

.gg2gm-ai__launcher:hover {
  filter: saturate(1.05) brightness(1.03);
  transform: translateY(-3px);
  box-shadow:
    0 28px 58px rgba(51, 26, 13, .34),
    0 9px 22px rgba(122, 53, 20, .23),
    inset 0 1px 0 rgba(255, 255, 255, .46);
}

.gg2gm-ai__launcher:hover::before {
  inset: -9px;
  opacity: 1;
}

.gg2gm-ai__launcher:active {
  transform: translateY(-1px) scale(.98);
}

.gg2gm-ai.is-open .gg2gm-ai__launcher {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.gg2gm-ai__launcher-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: linear-gradient(145deg, #2a170d, var(--gg2gm-launcher-icon-bg));
  color: var(--gg2gm-launcher-icon-text);
  box-shadow:
    0 8px 18px rgba(56, 26, 12, .28),
    inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: transform .18s ease;
}

.gg2gm-ai__launcher:hover .gg2gm-ai__launcher-icon {
  transform: rotate(-3deg) scale(1.03);
}

.gg2gm-ai__launcher-icon svg {
  width: 23px;
  height: 23px;
}

.gg2gm-ai__launcher-status {
  position: absolute;
  right: -1px;
  bottom: 2px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--gg2gm-launcher-bg);
  border-radius: 50%;
  background: var(--gg2gm-green);
  box-shadow: 0 0 0 2px rgba(49, 199, 120, .17);
}

.gg2gm-ai__panel {
  display: none;
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(var(--gg2gm-panel-width), calc(100vw - 28px));
  height: min(var(--gg2gm-panel-height), calc(100vh - 34px));
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(50, 31, 18, .24);
  border-radius: var(--gg2gm-panel-radius);
  background: var(--gg2gm-panel);
  box-shadow: var(--gg2gm-shadow);
  contain: layout paint;
  transform-origin: bottom right;
  animation: gg2gm-panel-in .22s ease both;
}

.gg2gm-ai.is-position-left .gg2gm-ai__panel {
  right: auto;
  left: 0;
  transform-origin: bottom left;
}

.gg2gm-ai.is-open .gg2gm-ai__panel {
  display: grid;
}

@keyframes gg2gm-panel-in {
  from { opacity: 0; transform: translateY(14px) scale(.982); }
  to { opacity: 1; transform: none; }
}

.gg2gm-ai__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 96px;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--gg2gm-header-bg) 0%, var(--gg2gm-header-bg-end) 100%);
  color: var(--gg2gm-header-text);
}

.gg2gm-ai__identity {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  flex: 1;
}

.gg2gm-ai__avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #f2f5f7;
  color: #171d28;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.gg2gm-ai__avatar svg {
  width: 25px;
  height: 25px;
}

.gg2gm-ai__avatar i {
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--gg2gm-brown);
  border-radius: 50%;
  background: var(--gg2gm-green);
}

.gg2gm-ai__identity-copy {
  min-width: 0;
  overflow: hidden;
}

.gg2gm-ai__title {
  display: block;
  overflow: hidden;
  color: var(--gg2gm-header-text);
  font-size: var(--gg2gm-title-size);
  font-weight: var(--gg2gm-title-font-weight);
  line-height: 1.18;
  letter-spacing: -.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gg2gm-ai__status {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: var(--gg2gm-header-text);
  font-size: var(--gg2gm-subtitle-size);
  font-weight: var(--gg2gm-subtitle-font-weight);
  opacity: .76;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gg2gm-ai__header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.gg2gm-ai__close,
.gg2gm-ai__reset,
.gg2gm-ai__expand {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: rgba(255, 255, 255, .06);
  color: var(--gg2gm-header-text);
  box-shadow: none;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.gg2gm-ai__close:hover,
.gg2gm-ai__reset:hover,
.gg2gm-ai__expand:hover {
  background: rgba(255, 255, 255, .13);
  transform: scale(1.03);
}

.gg2gm-ai__close svg,
.gg2gm-ai__reset svg,
.gg2gm-ai__expand svg {
  width: 21px;
  height: 21px;
}

.gg2gm-ai__expand-close { display: none; }
.gg2gm-ai.is-expanded .gg2gm-ai__expand-open { display: none; }
.gg2gm-ai.is-expanded .gg2gm-ai__expand-close { display: block; }

@media (min-width: 601px) {
  .gg2gm-ai.is-expanded .gg2gm-ai__panel {
    position: fixed;
    right: max(24px, var(--gg2gm-side-offset));
    bottom: max(24px, var(--gg2gm-bottom-offset));
    left: auto;
    width: min(760px, calc(100vw - 48px));
    height: calc(100vh - 48px);
    max-height: 920px;
    transform-origin: bottom right;
  }

  .gg2gm-ai.is-expanded.is-position-left .gg2gm-ai__panel {
    right: auto;
    left: max(24px, var(--gg2gm-side-offset));
    transform-origin: bottom left;
  }
}

.gg2gm-ai__messages {
  min-height: 0;
  padding: 21px 20px 26px;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--gg2gm-messages-bg);
  scrollbar-color: #b7bec8 transparent;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

.gg2gm-ai__messages::-webkit-scrollbar { width: 7px; }
.gg2gm-ai__messages::-webkit-scrollbar-thumb { border-radius: 999px; background: #b7bec8; }
.gg2gm-ai__messages::-webkit-scrollbar-track { background: transparent; }

.gg2gm-ai__intro { display: block; }
.gg2gm-ai.has-conversation .gg2gm-ai__intro { display: none; }

.gg2gm-ai__welcome-card {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--gg2gm-border);
  border-radius: 19px;
  background: var(--gg2gm-assistant-bg);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .035);
}

.gg2gm-ai__welcome-icon,
.gg2gm-ai__assistant-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #d9e0e8;
  border-radius: 50%;
  background: #edf1f5;
  color: #171d28;
}

.gg2gm-ai__welcome-icon {
  width: 43px;
  height: 43px;
}

.gg2gm-ai__welcome-icon svg {
  width: 24px;
  height: 24px;
}

.gg2gm-ai__welcome-text {
  margin: 2px 0 0;
  color: var(--gg2gm-ink);
  font-size: var(--gg2gm-message-size);
  font-weight: var(--gg2gm-message-font-weight);
  line-height: 1.58;
  letter-spacing: -.012em;
  overflow-wrap: anywhere;
}

.gg2gm-ai__starter {
  padding: 18px 0 2px;
}

.gg2gm-ai__starter[hidden],
.gg2gm-ai__starter-title[hidden] {
  display: none;
}

.gg2gm-ai__starter-title {
  display: inline-block;
  max-width: calc(100% - 48px);
  margin: 0 0 14px 48px;
  padding: 12px 15px;
  border-radius: 14px;
  background: var(--gg2gm-starter-prompt-bg);
  color: var(--gg2gm-starter-prompt-text);
  font-size: 13.5px;
  font-weight: var(--gg2gm-starter-prompt-font-weight);
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.gg2gm-ai__suggestions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
}

.gg2gm-ai__suggestions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 10px 12px;
  border: 1.5px solid var(--gg2gm-starter-button-border);
  border-radius: 14px;
  background: var(--gg2gm-starter-button-bg);
  color: var(--gg2gm-starter-button-text) !important;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: var(--gg2gm-starter-button-font-weight);
  line-height: 1.34;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.gg2gm-ai .gg2gm-ai__suggestions button:hover,
.gg2gm-ai .gg2gm-ai__suggestions button:focus,
.gg2gm-ai .gg2gm-ai__suggestions button:focus-visible,
.gg2gm-ai .gg2gm-ai__suggestions button:active {
  color: var(--gg2gm-starter-button-text) !important;
}

.gg2gm-ai__suggestions button:hover {
  border-color: var(--gg2gm-brand);
  background: var(--gg2gm-starter-button-bg);
  box-shadow: 0 7px 18px rgba(15, 23, 42, .055);
  transform: translateY(-1px);
}

.gg2gm-ai__suggestion-icon {
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1;
}

.gg2gm-ai__suggestion-label {
  min-width: 0;
  color: inherit !important;
}

.gg2gm-ai__suggestions button:disabled {
  opacity: .48;
  cursor: not-allowed;
  transform: none;
}

.gg2gm-ai__conversation {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.gg2gm-ai__message {
  width: 100%;
  max-width: 100%;
  color: var(--gg2gm-ink);
  font-size: var(--gg2gm-message-size);
  font-weight: var(--gg2gm-message-font-weight);
  line-height: 1.6;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.gg2gm-ai__message--user {
  align-self: flex-end;
  width: auto;
  max-width: 84%;
  padding: 16px 19px;
  border-radius: 23px 23px 7px 23px;
  background: var(--gg2gm-user-bg);
  color: var(--gg2gm-user-text);
  box-shadow: 0 13px 28px rgba(29, 34, 46, .14);
  white-space: pre-wrap;
}

.gg2gm-ai__message-copy {
  display: block;
}

.gg2gm-ai__message-time {
  display: block;
  margin-top: 7px;
  color: inherit;
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  opacity: .72;
  text-align: right;
}

.gg2gm-ai__message--assistant > .gg2gm-ai__message-time {
  color: var(--gg2gm-muted);
}

.gg2gm-ai__assistant-block { width: 100%; }

.gg2gm-ai__assistant-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding-left: 2px;
  color: #202735;
  font-size: 13.5px;
  font-weight: 800;
}

.gg2gm-ai__assistant-meta strong {
  font: inherit;
  font-weight: 800;
}

.gg2gm-ai__assistant-avatar {
  width: 37px;
  height: 37px;
}

.gg2gm-ai__assistant-avatar svg {
  width: 19px;
  height: 19px;
}

.gg2gm-ai__message--assistant {
  padding: 16px 17px;
  border: 1px solid #dbe2ea;
  border-radius: var(--gg2gm-message-radius);
  background: var(--gg2gm-assistant-bg);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .045);
}

.gg2gm-ai__message--typing {
  display: block;
  width: auto;
  max-width: 100%;
  min-width: 0;
  min-height: 18px;
  padding: 2px 2px 4px;
  overflow: visible;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.gg2gm-ai__thinking-content {
  position: static !important;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  float: none !important;
  clear: both;
}

.gg2gm-ai__thinking-indicator {
  display: block;
  width: 100%;
  min-width: 0;
}

.gg2gm-ai__thinking-label {
  position: static !important;
  display: block;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  color: var(--gg2gm-muted);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.45;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .14s ease, transform .14s ease;
}

.gg2gm-ai__thinking-label.is-updating {
  opacity: 0;
  transform: translateY(3px);
}

.gg2gm-ai__answer {
  color: var(--gg2gm-ink);
}

.gg2gm-ai__answer-intro {
  margin: 0 0 13px;
  color: var(--gg2gm-ink);
  font-size: calc(var(--gg2gm-message-size) + 1px);
  font-weight: var(--gg2gm-message-font-weight);
  line-height: 1.45;
}

.gg2gm-ai__answer p {
  margin: 0 0 11px;
  color: inherit;
  font-size: var(--gg2gm-message-size);
  line-height: 1.64;
}

.gg2gm-ai__answer p:last-child {
  margin-bottom: 0;
}

.gg2gm-ai__answer--summary p {
  margin: 0;
  line-height: 1.58;
}

.gg2gm-ai__resource-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 1px 8px;
}

.gg2gm-ai__resource-heading strong {
  color: #222936;
  font-size: 12px;
  font-weight: 820;
}

.gg2gm-ai__resource-heading span {
  color: #8a94a4;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.gg2gm-ai__resource {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  margin-top: 10px;
  padding: 11px 12px;
  overflow: hidden;
  border: 1px solid var(--gg2gm-border);
  border-radius: 15px;
  background: var(--gg2gm-resource-bg);
  color: inherit;
  text-decoration: none;
  white-space: normal;
  opacity: 0;
  transform: translateY(7px);
  animation: gg2gm-resource-in .34s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: calc(var(--gg2gm-card-order, 0) * 55ms);
  transition: transform .2s cubic-bezier(.22, 1, .36, 1), border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.gg2gm-ai__resource:hover {
  border-color: #c8d0da;
  background: #fff;
  box-shadow: 0 9px 22px rgba(15, 23, 42, .065);
  transform: translateY(-1px);
}

.gg2gm-ai__resource-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: #e9edf3;
  color: #59677b;
  margin-top: 2px;
}

.gg2gm-ai__resource-icon svg {
  width: 19px;
  height: 19px;
}

.gg2gm-ai__resource-icon img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.gg2gm-ai__resource--format-video .gg2gm-ai__resource-icon {
  background: #fff0f1;
  color: #e62117;
}

.gg2gm-ai__resource--format-video .gg2gm-ai__resource-icon svg {
  width: 23px;
  height: 23px;
}

.gg2gm-ai__resource--format-podcast .gg2gm-ai__resource-icon {
  background: #f3efff;
  color: #6f45c7;
}

.gg2gm-ai__resource--format-audio_program .gg2gm-ai__resource-icon,
.gg2gm-ai__resource--format-audio .gg2gm-ai__resource-icon {
  background: #fff3e9;
  color: #c85d12;
}

.gg2gm-ai__resource--format-course {
  border-color: rgba(49, 95, 159, .34);
  background: linear-gradient(135deg, #f4f8ff 0%, #ffffff 76%);
  box-shadow: 0 10px 24px rgba(49, 95, 159, .075);
}

.gg2gm-ai__resource--format-course::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #315f9f;
}

.gg2gm-ai__resource--format-course:hover {
  border-color: rgba(49, 95, 159, .52);
  box-shadow: 0 14px 30px rgba(49, 95, 159, .12);
}

.gg2gm-ai__resource--format-course .gg2gm-ai__resource-icon {
  background: #e8f0ff;
  color: #315f9f;
  box-shadow: inset 0 0 0 1px rgba(49, 95, 159, .1);
}

.gg2gm-ai__resource--format-course .gg2gm-ai__resource-icon svg {
  width: 22px;
  height: 22px;
}

.gg2gm-ai__resource--format-article .gg2gm-ai__resource-icon,
.gg2gm-ai__resource--format-page .gg2gm-ai__resource-icon,
.gg2gm-ai__resource--format-post .gg2gm-ai__resource-icon,
.gg2gm-ai__resource--format-guide .gg2gm-ai__resource-icon,
.gg2gm-ai__resource--format-resource .gg2gm-ai__resource-icon {
  background: #edf5ff;
  color: #2f6fae;
}

.gg2gm-ai__resource-copy {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.gg2gm-ai__resource-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 3px;
}

.gg2gm-ai__resource-priority {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.gg2gm-ai__resource-priority--course {
  background: rgba(49, 95, 159, .11);
  color: #315f9f;
}

.gg2gm-ai__resource-priority--service {
  background: rgba(185, 84, 27, .11);
  color: #a84a16;
}

.gg2gm-ai__resource-type {
  display: block;
  margin-bottom: 2px;
  color: #8a94a4;
  font-size: 9.5px;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gg2gm-ai__resource-title {
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

.gg2gm-ai__resource-title {
  color: var(--gg2gm-ink);
  font-size: var(--gg2gm-resource-title-size);
  font-weight: var(--gg2gm-resource-title-font-weight);
  line-height: 1.36;
}

.gg2gm-ai__resource-description {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: var(--gg2gm-muted);
  font-size: 11.5px;
  font-weight: 450;
  line-height: 1.45;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.gg2gm-ai__resource-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: var(--gg2gm-resource-cta);
  font-size: var(--gg2gm-resource-cta-size);
  font-weight: var(--gg2gm-resource-cta-font-weight);
  line-height: 1.3;
  transition: color .18s ease;
}

.gg2gm-ai__resource-cta span {
  display: inline-block;
  transition: transform .18s ease;
}

.gg2gm-ai__resource:hover .gg2gm-ai__resource-cta,
.gg2gm-ai__resource:focus-visible .gg2gm-ai__resource-cta {
  color: var(--gg2gm-resource-cta-hover);
}

.gg2gm-ai__resource:hover .gg2gm-ai__resource-cta span,
.gg2gm-ai__resource:focus-visible .gg2gm-ai__resource-cta span {
  transform: translateX(3px);
}

.gg2gm-ai__resource--service {
  border-color: rgba(185, 84, 27, .38);
  background: linear-gradient(135deg, #fff6ef 0%, #ffffff 76%);
  box-shadow: 0 10px 24px rgba(185, 84, 27, .075);
}

.gg2gm-ai__resource--service::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #b9541b;
}

.gg2gm-ai__resource--service:hover {
  border-color: rgba(185, 84, 27, .56);
  box-shadow: 0 14px 30px rgba(185, 84, 27, .12);
}

.gg2gm-ai__resource--service .gg2gm-ai__resource-icon {
  background: rgba(235, 125, 61, .13);
  color: #b9541b;
}

.gg2gm-ai__resource--service .gg2gm-ai__resource-type {
  color: #b9541b;
}

.gg2gm-ai__next-step {
  margin-top: 17px;
  padding: 15px;
  border: 1px solid #e8ddd6;
  border-radius: 19px;
  background: linear-gradient(180deg, #fffbf8 0%, #ffffff 100%);
  box-shadow: 0 8px 22px rgba(50, 31, 18, .035);
}

.gg2gm-ai__next-step-copy {
  display: block;
  margin-bottom: 12px;
}

.gg2gm-ai__next-step-copy strong {
  display: block;
  color: var(--gg2gm-ink);
  font-size: 14.5px;
  font-weight: 830;
  line-height: 1.35;
  letter-spacing: -.014em;
}

.gg2gm-ai__next-step-copy span {
  display: block;
  margin-top: 4px;
  color: var(--gg2gm-muted);
  font-size: 11.75px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.gg2gm-ai__apply {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  width: 100%;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid var(--gg2gm-brand);
  border-radius: 15px;
  background: var(--gg2gm-brand);
  color: #fff;
  box-shadow: 0 8px 18px rgba(185, 84, 27, .16);
  text-align: left;
  text-decoration: none;
  transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
}

.gg2gm-ai__apply:hover {
  color: #fff;
  box-shadow: 0 11px 24px rgba(185, 84, 27, .21);
  filter: brightness(.97);
  transform: translateY(-1px);
}

.gg2gm-ai__next-step--medium {
  border-color: rgba(235, 125, 61, .32);
  background: linear-gradient(145deg, #fff9f4 0%, #ffffff 78%);
  box-shadow: 0 11px 27px rgba(185, 84, 27, .075);
}

.gg2gm-ai__apply--medium {
  border-color: #e47836;
  background: linear-gradient(135deg, #f58a49 0%, #e97332 100%);
  box-shadow: 0 11px 25px rgba(217, 91, 32, .23), 0 0 0 3px rgba(235, 125, 61, .06);
}

.gg2gm-ai__next-step--high,
.gg2gm-ai__next-step--priority {
  border-color: rgba(235, 125, 61, .48);
  background: linear-gradient(145deg, #fff5ec 0%, #fffdfb 62%, #ffffff 100%);
  box-shadow: 0 14px 34px rgba(185, 84, 27, .12);
}

.gg2gm-ai__apply--high,
.gg2gm-ai__apply--priority {
  position: relative;
  overflow: hidden;
  border-color: #d96524;
  background: linear-gradient(135deg, #f48642 0%, #e96f2e 52%, #d95b20 100%);
  box-shadow: 0 13px 30px rgba(217, 91, 32, .30), 0 0 0 4px rgba(235, 125, 61, .09);
  animation: gg2gm-apply-priority-pulse 2.8s ease-in-out 2;
}

.gg2gm-ai__apply--high::after,
.gg2gm-ai__apply--priority::after {
  content: '';
  position: absolute;
  top: -35%;
  bottom: -35%;
  left: -42%;
  width: 28%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-18deg);
  animation: gg2gm-apply-priority-shine 2.8s ease-in-out 2;
}

.gg2gm-ai__apply--high .gg2gm-ai__apply-arrow,
.gg2gm-ai__apply--priority .gg2gm-ai__apply-arrow {
  animation: gg2gm-apply-arrow-nudge 1.4s ease-in-out 4;
}


@keyframes gg2gm-apply-priority-pulse {
  0%, 100% { box-shadow: 0 13px 30px rgba(217, 91, 32, .26), 0 0 0 4px rgba(235, 125, 61, .08); transform: translateY(0); }
  50% { box-shadow: 0 18px 38px rgba(217, 91, 32, .38), 0 0 0 7px rgba(235, 125, 61, .13); transform: translateY(-1px); }
}

@keyframes gg2gm-apply-priority-shine {
  0%, 20% { left: -42%; opacity: 0; }
  38% { opacity: 1; }
  68%, 100% { left: 118%; opacity: 0; }
}

@keyframes gg2gm-apply-arrow-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

.gg2gm-ai__apply-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .16);
}

.gg2gm-ai__apply-icon svg { width: 18px; height: 18px; }
.gg2gm-ai__apply-copy { display: block; min-width: 0; }
.gg2gm-ai__apply-copy strong { display: block; color: #fff; font-size: 13.25px; font-weight: 850; line-height: 1.2; }
.gg2gm-ai__apply-copy small { display: block; margin-top: 3px; color: rgba(255, 255, 255, .82); font-size: 9.75px; font-weight: 680; line-height: 1.2; letter-spacing: .025em; }
.gg2gm-ai__apply-arrow { display: grid; place-items: center; color: #fff; }
.gg2gm-ai__apply-arrow svg { width: 17px; height: 17px; }

.gg2gm-ai__privacy-note {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  color: #7b6d65;
  font-size: 10px;
  line-height: 1.42;
  text-align: center;
  overflow-wrap: anywhere;
}

.gg2gm-ai__privacy-note > svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  margin-top: 1px;
}

.gg2gm-ai__privacy-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.gg2gm-ai__privacy-link:hover { color: var(--gg2gm-brown); }

.gg2gm-ai__safety {
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid #f1c9c9;
  border-radius: 15px;
  background: #fff7f7;
  color: #8f2e2e;
  font-size: 11.75px;
  white-space: normal;
}

.gg2gm-ai__safety strong,
.gg2gm-ai__safety span {
  display: block;
}

.gg2gm-ai__safety span {
  margin-top: 4px;
  line-height: 1.5;
}

.gg2gm-ai__response-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.gg2gm-ai__response-actions button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 31px;
  padding: 6px 10px;
  border: 1px solid #d7dee7;
  border-radius: 999px;
  background: #fff;
  color: #59677b;
  cursor: pointer;
  font-size: 10.75px;
  font-weight: 700;
}

.gg2gm-ai__response-actions button:hover {
  border-color: #c4cdd8;
  background: #f5f7fa;
  color: var(--gg2gm-ink);
}

.gg2gm-ai__response-actions svg {
  width: 13px;
  height: 13px;
}

.gg2gm-ai__feedback {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: #3f4b60;
  font-size: 11.75px;
  white-space: normal;
}

.gg2gm-ai__feedback button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid #d7dee7;
  border-radius: 999px;
  background: #fff;
  color: #49566a;
  cursor: pointer;
  line-height: 1;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.gg2gm-ai__feedback button:hover {
  border-color: #c4cdd8;
  background: #f1f4f7;
  color: var(--gg2gm-ink);
}

.gg2gm-ai__feedback svg { width: 14px; height: 14px; }

.gg2gm-ai__composer-wrap {
  position: relative;
  padding: 14px 20px 13px;
  border-top: 1px solid #ece2dc;
  background: var(--gg2gm-panel);
}

.gg2gm-ai__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 62px;
  padding: 6px 7px 6px 17px;
  overflow: hidden;
  border: 2px solid #98948f;
  border-radius: 999px;
  background: var(--gg2gm-input-bg);
  box-shadow: 0 5px 14px rgba(15, 23, 42, .03);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.gg2gm-ai__form:focus-within {
  border-color: var(--gg2gm-brown);
  box-shadow: 0 0 0 4px rgba(50, 31, 18, .085);
}

.gg2gm-ai__form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  max-height: 110px;
  margin: 0 !important;
  padding: 9px 0 !important;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: var(--gg2gm-input-text) !important;
  box-shadow: none !important;
  font-size: var(--gg2gm-message-size);
  line-height: 1.45;
  resize: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.gg2gm-ai__form textarea::placeholder { color: #8994a6; opacity: 1; }

.gg2gm-ai__form button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--gg2gm-send-bg);
  color: var(--gg2gm-send-text);
  box-shadow: 0 9px 22px rgba(29, 34, 46, .18);
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease, background .18s ease;
}

.gg2gm-ai__form button:hover { background: var(--gg2gm-send-bg); filter: brightness(1.12); transform: translateY(-1px); }
.gg2gm-ai__form button:disabled { background: #90939a; opacity: .72; cursor: not-allowed; transform: none; }
.gg2gm-ai__form button svg { width: 22px; height: 22px; }

.gg2gm-ai__typing {
  position: static !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  width: 31px;
  min-width: 31px;
  min-height: 14px;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  transform: none !important;
}

.gg2gm-ai__typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9aa3b1;
  animation: gg2gm-bounce 1s infinite;
}

.gg2gm-ai__typing i:nth-child(2) { animation-delay: .15s; }
.gg2gm-ai__typing i:nth-child(3) { animation-delay: .3s; }

@keyframes gg2gm-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

.gg2gm-ai__launcher:focus-visible,
.gg2gm-ai__close:focus-visible,
.gg2gm-ai__reset:focus-visible,
.gg2gm-ai__expand:focus-visible,
.gg2gm-ai__form button:focus-visible,
.gg2gm-ai__suggestions button:focus-visible,
.gg2gm-ai__feedback button:focus-visible,
.gg2gm-ai__resource:focus-visible,
.gg2gm-ai__apply:focus-visible {
  outline: 3px solid rgba(235, 125, 61, .34);
  outline-offset: 3px;
}

.gg2gm-ai__response-actions button:focus-visible {
  outline: 3px solid rgba(235, 125, 61, .34);
  outline-offset: 2px;
}

@media (max-height: 720px) and (min-width: 601px) {
  .gg2gm-ai__panel { height: calc(100vh - 24px); }
  .gg2gm-ai__header { min-height: 100px; padding-block: 18px; }
  .gg2gm-ai__messages { padding-top: 19px; padding-bottom: 22px; }
  .gg2gm-ai__composer-wrap { padding-top: 14px; padding-bottom: 13px; }
}

@media (max-width: 600px) {
  body.gg2gm-ai-lock-scroll { overflow: hidden !important; }
  .gg2gm-ai { right: 8px; bottom: 8px; }
  .gg2gm-ai.is-position-left { right: auto; left: 8px; }
  .gg2gm-ai__launcher { min-width: 101px; min-height: 60px; padding: 7px 21px 7px 8px; }
  .gg2gm-ai__launcher-icon { width: 44px; height: 44px; }
  .gg2gm-ai__launcher-text { display: inline; }
  .gg2gm-ai__panel { position: fixed; inset: 0; width: auto; height: auto; border: 0; border-radius: 0; }
  .gg2gm-ai__header { min-height: 100px; padding: 19px 17px; }
  .gg2gm-ai__avatar { width: 51px; height: 51px; }
  .gg2gm-ai__avatar svg { width: 26px; height: 26px; }
  .gg2gm-ai__title { font-size: 20.5px; }
  .gg2gm-ai__status { font-size: 12px; }
  .gg2gm-ai__close,
  .gg2gm-ai__reset,
  .gg2gm-ai__expand { width: 42px; height: 42px; flex-basis: 42px; }
  .gg2gm-ai__messages { padding: 19px 15px 24px; }
  .gg2gm-ai__welcome-card { grid-template-columns: 43px minmax(0, 1fr); gap: 12px; padding: 17px; }
  .gg2gm-ai__welcome-icon { width: 43px; height: 43px; }
  .gg2gm-ai__welcome-text { font-size: 14.25px; }
  .gg2gm-ai__starter { padding-top: 18px; }
  .gg2gm-ai__starter-title { margin-left: 44px; max-width: calc(100% - 44px); }
  .gg2gm-ai__suggestions { gap: 9px; }
  .gg2gm-ai__suggestions button { min-height: 54px; padding: 9px 10px; font-size: 12.25px; }
  .gg2gm-ai__message--user { max-width: 89%; padding: 14px 16px; font-size: 13.75px; }
  .gg2gm-ai__message--assistant { padding: 16px; }
  .gg2gm-ai__composer-wrap { padding: 14px 14px 13px; }
  .gg2gm-ai__form { min-height: 66px; grid-template-columns: minmax(0, 1fr) 49px; padding-left: 16px; }
  .gg2gm-ai__form button { width: 49px; height: 49px; }
  .gg2gm-ai__resource { grid-template-columns: 39px minmax(0, 1fr); gap: 10px; padding: 11px; }
  .gg2gm-ai__resource-icon { width: 39px; height: 39px; }
}

@media (max-width: 390px) {
  .gg2gm-ai__thinking-content {
    grid-template-columns: minmax(0, 1fr) 31px;
    gap: 10px;
  }

  .gg2gm-ai__thinking-label {
    font-size: 11.5px;
  }
}

@media (max-width: 365px) {
  .gg2gm-ai__suggestions { grid-template-columns: 1fr; }
}



/* Mobile visual-viewport and keyboard safety.
 * Keeps the header/close control visible when the on-screen keyboard opens.
 */
@media (max-width: 600px) {
  html.gg2gm-ai-lock-scroll,
  body.gg2gm-ai-lock-scroll {
    width: 100% !important;
    height: 100% !important;
    overscroll-behavior: none !important;
  }

  body.gg2gm-ai-lock-scroll {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    overflow: hidden !important;
  }

  .gg2gm-ai__panel {
    top: var(--gg2gm-visual-top, 0px);
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: var(--gg2gm-visual-height, 100dvh);
    min-height: 0;
    max-height: var(--gg2gm-visual-height, 100dvh);
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border-radius: 0;
    transform: translateZ(0);
  }

  .gg2gm-ai__header {
    position: relative;
    z-index: 30;
    flex: 0 0 auto;
    min-height: 88px;
    padding-top: max(15px, env(safe-area-inset-top));
    padding-right: 15px;
    padding-bottom: 15px;
    padding-left: 15px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
  }

  .gg2gm-ai__close,
  .gg2gm-ai__reset,
  .gg2gm-ai__expand {
    position: relative;
    z-index: 35;
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    touch-action: manipulation;
  }

  .gg2gm-ai__expand {
    display: none;
  }

  .gg2gm-ai__messages {
    min-height: 0;
    overscroll-behavior-y: contain;
    scroll-padding-top: 16px;
    scroll-padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
  }

  .gg2gm-ai__composer-wrap {
    position: relative;
    z-index: 25;
    flex: 0 0 auto;
    padding-bottom: max(13px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -8px 28px rgba(15, 23, 42, .045);
  }

  .gg2gm-ai__form textarea {
    font-size: 16px; /* Prevents iOS Safari input zoom. */
  }

  .gg2gm-ai.is-keyboard-open .gg2gm-ai__header {
    min-height: 72px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .gg2gm-ai.is-keyboard-open .gg2gm-ai__avatar {
    width: 44px;
    height: 44px;
  }

  .gg2gm-ai.is-keyboard-open .gg2gm-ai__avatar svg {
    width: 23px;
    height: 23px;
  }

  .gg2gm-ai.is-keyboard-open .gg2gm-ai__title {
    font-size: 18px;
  }

  .gg2gm-ai.is-keyboard-open .gg2gm-ai__status {
    margin-top: 2px;
    font-size: 11px;
  }

  .gg2gm-ai.is-keyboard-open .gg2gm-ai__messages {
    padding-top: 12px;
    padding-bottom: 14px;
  }

  .gg2gm-ai.is-keyboard-open .gg2gm-ai__composer-wrap {
    padding-top: 9px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }

}

@media (prefers-reduced-motion: reduce) {
  .gg2gm-ai__apply--priority,
  .gg2gm-ai__apply--priority::after,
  .gg2gm-ai__apply--priority .gg2gm-ai__apply-arrow,
  .gg2gm-ai__apply--high,
  .gg2gm-ai__apply--high::after,
  .gg2gm-ai__apply--high .gg2gm-ai__apply-arrow { animation: none !important; }
  .gg2gm-ai * { animation: none !important; transition: none !important; }
}

@keyframes gg2gm-resource-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.gg2gm-ai__assistant-block,
.gg2gm-ai__message--user {
  animation: gg2gm-message-in .28s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes gg2gm-message-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .gg2gm-ai__assistant-block,
  .gg2gm-ai__message--user,
  .gg2gm-ai__resource {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

/* 1.9.27 approved compact chatbot redesign. */
.gg2gm-ai__panel {
  width: min(var(--gg2gm-panel-width), 424px, calc(100vw - 28px));
  height: min(var(--gg2gm-panel-height), 624px, calc(100vh - 34px));
  border-color: rgba(50, 31, 18, .18);
  box-shadow: 0 30px 90px rgba(37, 22, 14, .22), 0 8px 30px rgba(30, 33, 40, .11);
}

.gg2gm-ai__header {
  gap: 12px;
  min-height: 94px;
  padding: 18px;
  background:
    radial-gradient(circle at 86% -20%, rgba(233, 120, 55, .34), transparent 46%),
    linear-gradient(135deg, var(--gg2gm-header-bg), var(--gg2gm-header-bg-end));
}

.gg2gm-ai__reset {
  display: none;
}

.gg2gm-ai.has-conversation .gg2gm-ai__reset {
  display: grid;
}

.gg2gm-ai__identity {
  gap: 12px;
}

.gg2gm-ai__avatar {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: #f6f0e9;
}

.gg2gm-ai__avatar svg {
  width: 22px;
  height: 22px;
}

.gg2gm-ai__avatar i {
  width: 12px;
  height: 12px;
  border-width: 3px;
}

.gg2gm-ai__title {
  font-size: min(var(--gg2gm-title-size), 18px);
}

.gg2gm-ai__status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: min(var(--gg2gm-subtitle-size), 11.5px);
  opacity: .72;
}

.gg2gm-ai__status::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gg2gm-green);
  content: "";
}

.gg2gm-ai__header-actions {
  gap: 5px;
}

.gg2gm-ai__close,
.gg2gm-ai__reset,
.gg2gm-ai__expand {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
}

.gg2gm-ai__close svg,
.gg2gm-ai__reset svg,
.gg2gm-ai__expand svg {
  width: 20px;
  height: 20px;
}

.gg2gm-ai__messages {
  padding: 22px 20px;
  background: linear-gradient(180deg, var(--gg2gm-messages-bg) 0%, #fbfaf8 100%);
}

.gg2gm-ai__section-label {
  margin: 0 0 14px;
  color: #a14c21;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.gg2gm-ai__welcome-card {
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.gg2gm-ai__welcome-icon {
  width: 40px;
  height: 40px;
  border-color: #e0d8d0;
  background: #f7f3ed;
  color: var(--gg2gm-brown);
}

.gg2gm-ai__welcome-icon svg {
  width: 22px;
  height: 22px;
}

.gg2gm-ai__welcome-text {
  margin-top: 0;
  color: #28303b;
  font-size: min(var(--gg2gm-message-size), 14px);
  line-height: 1.62;
}

.gg2gm-ai__starter {
  padding: 16px 0 2px;
}

.gg2gm-ai__suggestions {
  gap: 8px;
}

.gg2gm-ai__suggestions button {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) 14px;
  justify-content: initial;
  gap: 8px;
  min-height: 64px;
  padding: 10px;
  border-width: 1px;
  border-color: var(--gg2gm-starter-button-border);
  border-radius: 15px;
  font-size: 12px;
  line-height: 1.3;
  text-align: left;
}

.gg2gm-ai__suggestions button::after {
  color: #9a9da2;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  content: "›";
}

.gg2gm-ai__suggestion-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: #f7eee6;
  color: #9f4a1f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.gg2gm-ai__suggestion-label {
  align-self: center;
}

.gg2gm-ai__composer-wrap {
  padding: 14px 16px 10px;
  border-top-color: #e9e5e1;
}

.gg2gm-ai__form {
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
  min-height: 54px;
  padding: 6px 6px 6px 15px;
  border: 1px solid #d7d3cf;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(35, 27, 20, .05);
}

.gg2gm-ai__form:focus-within {
  border-color: #c36b37;
  box-shadow: 0 0 0 3px rgba(233, 120, 55, .12);
}

.gg2gm-ai__form textarea {
  min-height: 36px;
  padding: 8px 0 7px !important;
  font-size: min(var(--gg2gm-message-size), 13.5px);
}

.gg2gm-ai__form button {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(185, 84, 27, .18);
}

.gg2gm-ai__form button:disabled {
  background: var(--gg2gm-send-bg);
  opacity: .38;
}

.gg2gm-ai__form button svg {
  width: 19px;
  height: 19px;
}

.gg2gm-ai__composer-note {
  margin: 7px 4px 0;
  color: #888e96;
  font-size: 9.5px;
  line-height: 1.35;
  text-align: center;
}

@media (max-width: 600px) {
  .gg2gm-ai__panel {
    width: 100%;
    height: var(--gg2gm-visual-height, 100dvh);
  }

  .gg2gm-ai__header {
    min-height: 82px;
    padding-top: max(14px, env(safe-area-inset-top));
    padding-right: 13px;
    padding-bottom: 14px;
    padding-left: 13px;
  }

  .gg2gm-ai__reset {
    display: grid;
  }

  .gg2gm-ai__close,
  .gg2gm-ai__reset,
  .gg2gm-ai__expand {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .gg2gm-ai__messages {
    padding: 20px 16px;
  }

  .gg2gm-ai__composer-wrap {
    padding: 12px 14px max(10px, env(safe-area-inset-bottom));
  }

  .gg2gm-ai__form {
    grid-template-columns: minmax(0, 1fr) 42px;
    min-height: 58px;
  }

  .gg2gm-ai__form button {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 365px) {
  .gg2gm-ai__suggestions {
    grid-template-columns: 1fr;
  }
}

/* 2026-08 launcher + first-screen refinement */
.gg2gm-ai__status { display: none !important; }

.gg2gm-ai__launcher {
  gap: 10px;
  min-width: 132px;
  min-height: 62px;
  padding: 7px 20px 7px 8px;
  border-color: rgba(255,255,255,.14);
  background: linear-gradient(145deg, #173b31 0%, #0f2f28 100%);
  color: #fff;
  box-shadow: 0 18px 42px rgba(18,47,40,.28), 0 6px 16px rgba(18,47,40,.18);
}
.gg2gm-ai__launcher::before { border-color: rgba(23,59,49,.18); }
.gg2gm-ai__launcher::after { background: rgba(18,47,40,.24); }
.gg2gm-ai__launcher-text { font-size: 17px; font-weight: 750 !important; letter-spacing: -.02em; text-shadow: none; }
.gg2gm-ai__launcher-icon {
  width: 47px;
  height: 47px;
  background: rgba(255,255,255,.07);
  color: #fff4e6;
  border-color: rgba(255,255,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 5px 14px rgba(0,0,0,.15);
}
.gg2gm-ai__launcher-icon svg { width: 27px; height: 27px; }
.gg2gm-ai__launcher-status { width: 13px; height: 13px; right: -1px; bottom: 1px; border: 2px solid #16392f; background: #2fc56f; }

.gg2gm-ai__welcome-card {
  border: 0;
  border-radius: 18px;
  background: #f7f4ee;
  box-shadow: none;
}
.gg2gm-ai__welcome-icon,
.gg2gm-ai__assistant-avatar,
.gg2gm-ai__avatar {
  background: #173b31;
  color: #fff4e6;
  border-color: rgba(255,255,255,.16);
}
.gg2gm-ai__welcome-text { font-size: 15px; font-weight: 600; line-height: 1.5; }

.gg2gm-ai__starter { padding-top: 22px; }
.gg2gm-ai__starter-title {
  display: block;
  max-width: none;
  margin: 0 0 13px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--gg2gm-ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}
.gg2gm-ai__starter-title::after {
  display: block;
  margin-top: 4px;
  color: var(--gg2gm-muted);
  content: "Select one to get personalized guidance.";
  font-size: 12px;
  font-weight: 500;
}
.gg2gm-ai__suggestions { grid-template-columns: minmax(0,1fr); gap: 9px; }
.gg2gm-ai__suggestions button {
  justify-content: flex-start;
  min-height: 58px;
  padding: 9px 14px 9px 10px;
  border: 1px solid #e4ded6;
  border-radius: 15px;
  background: #fff;
  text-align: left;
  box-shadow: 0 5px 16px rgba(24,29,42,.035);
}
.gg2gm-ai__suggestions button::after {
  margin-left: auto;
  color: #788078;
  content: "›";
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}
.gg2gm-ai__suggestion-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: #eef4f0;
  color: #234c40;
  font-size: 18px;
  font-weight: 700;
}
.gg2gm-ai__suggestion-label { font-size: 13.5px; font-weight: 700; }

/* --------------------------------------------------------------------------
 * 1.9.32 — compact launcher + improved header actions
 * This block intentionally wins over saved legacy UI color settings so the
 * public widget matches the approved green / ivory concept on both domains.
 * -------------------------------------------------------------------------- */
.gg2gm-ai {
  --gg2gm-mock-green: #153b32;
  --gg2gm-mock-green-deep: #0d2e27;
  --gg2gm-mock-cream: #fbf8f1;
  --gg2gm-mock-cream-2: #f5efe4;
  --gg2gm-mock-gold: #d5c39e;
  --gg2gm-mock-ink: #15251f;
  --gg2gm-mock-muted: #77756e;
  --gg2gm-mock-line: #e6dece;
  --gg2gm-panel-width: 450px !important;
  --gg2gm-panel-height: 700px !important;
  --gg2gm-panel-radius: 28px !important;
}

/* Launcher: speech label + circular bot icon, not a pill. */
.gg2gm-ai__launcher {
  width: 80px !important;
  min-width: 80px !important;
  height: 80px !important;
  min-height: 80px !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  filter: none !important;
}
.gg2gm-ai__launcher::before {
  display: none !important;
}
.gg2gm-ai__launcher::after {
  position: absolute !important;
  z-index: -1 !important;
  inset: 8px !important;
  display: block !important;
  border-radius: 50% !important;
  background: rgba(9,38,32,.22) !important;
  filter: blur(17px) !important;
  content: "" !important;
}
.gg2gm-ai__launcher:hover {
  transform: translateY(-3px) !important;
  filter: none !important;
  box-shadow: none !important;
}
.gg2gm-ai__launcher-icon {
  position: absolute !important;
  inset: 0 !important;
  width: 80px !important;
  height: 80px !important;
  border: 3px solid rgba(255,255,255,.78) !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg, #1d4b40 0%, var(--gg2gm-mock-green-deep) 100%) !important;
  color: #fff3dc !important;
  box-shadow: 0 18px 42px rgba(8,34,28,.30), inset 0 0 0 1px rgba(213,195,158,.32) !important;
}
.gg2gm-ai__launcher-icon svg {
  width: 38px !important;
  height: 38px !important;
}
.gg2gm-ai__launcher-status {
  right: 0 !important;
  bottom: 1px !important;
  width: 18px !important;
  height: 18px !important;
  border: 3px solid #f7f4ec !important;
  background: #28c64f !important;
  box-shadow: 0 0 0 2px rgba(16,61,50,.16) !important;
}
.gg2gm-ai__launcher-text {
  position: absolute !important;
  right: -4px !important;
  bottom: calc(100% + 13px) !important;
  top: auto !important;
  display: block !important;
  width: max-content !important;
  min-width: 128px !important;
  padding: 11px 18px !important;
  border: 1px solid rgba(213,195,158,.23) !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg, #19453a 0%, #10342c 100%) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(8,34,28,.22) !important;
  font-size: 16px !important;
  font-weight: 650 !important;
  line-height: 1.1 !important;
  letter-spacing: -.015em !important;
  text-align: center !important;
  text-shadow: none !important;
}
.gg2gm-ai__launcher-text::after {
  position: absolute;
  right: 32px;
  bottom: -9px;
  width: 18px;
  height: 18px;
  background: #12382f;
  content: "";
  transform: rotate(45deg);
}

/* Panel shell */
.gg2gm-ai__panel {
  border: 1px solid rgba(213,195,158,.75) !important;
  border-radius: 28px !important;
  background: var(--gg2gm-mock-cream) !important;
  box-shadow: 0 30px 80px rgba(9,32,27,.28), 0 10px 28px rgba(0,0,0,.10) !important;
}
.gg2gm-ai__header {
  min-height: 112px !important;
  padding: 22px 25px !important;
  border-bottom: 1px solid rgba(213,195,158,.30) !important;
  background: linear-gradient(135deg, #174238 0%, #0e3029 100%) !important;
  color: #fff8ea !important;
}
.gg2gm-ai__reset,
.gg2gm-ai__expand {
  display: none !important;
}
.gg2gm-ai__identity {
  gap: 16px !important;
}
.gg2gm-ai__avatar {
  width: 64px !important;
  height: 64px !important;
  border: 2px solid var(--gg2gm-mock-gold) !important;
  background: rgba(8,40,33,.70) !important;
  color: #fff1d6 !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12) !important;
}
.gg2gm-ai__avatar svg {
  width: 34px !important;
  height: 34px !important;
}
.gg2gm-ai__avatar i {
  right: -1px !important;
  bottom: 1px !important;
  width: 17px !important;
  height: 17px !important;
  border: 3px solid #153b32 !important;
  background: #2bc960 !important;
}
.gg2gm-ai__title {
  color: #fff8e9 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 27px !important;
  font-weight: 600 !important;
  letter-spacing: -.025em !important;
}
.gg2gm-ai__status { display: none !important; }
.gg2gm-ai__header-actions { margin-left: auto !important; }
.gg2gm-ai__close {
  width: 44px !important;
  height: 44px !important;
  flex-basis: 44px !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #fff3dc !important;
}
.gg2gm-ai__close:hover { background: rgba(255,255,255,.08) !important; }
.gg2gm-ai__close svg { width: 27px !important; height: 27px !important; }

/* First screen */
.gg2gm-ai__messages {
  padding: 24px 25px 18px !important;
  background: var(--gg2gm-mock-cream) !important;
}
.gg2gm-ai__welcome-card {
  display: grid !important;
  grid-template-columns: 48px minmax(0,1fr) !important;
  gap: 13px !important;
  align-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.gg2gm-ai__welcome-icon {
  width: 48px !important;
  height: 48px !important;
  border: 1px solid rgba(213,195,158,.65) !important;
  background: var(--gg2gm-mock-green) !important;
  color: #fff1d8 !important;
  box-shadow: 0 7px 18px rgba(11,42,35,.14) !important;
}
.gg2gm-ai__welcome-icon svg { width: 27px !important; height: 27px !important; }
.gg2gm-ai__welcome-text {
  margin: 0 !important;
  padding: 15px 18px !important;
  border: 1px solid #e8dfcf !important;
  border-radius: 18px !important;
  background: #f6f0e5 !important;
  color: #16231f !important;
  box-shadow: 0 7px 18px rgba(56,43,28,.05) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
}
.gg2gm-ai__starter {
  margin-top: 22px !important;
  padding: 20px !important;
  border: 1px solid #e7dece !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,.46) !important;
  box-shadow: 0 8px 24px rgba(57,43,29,.04) !important;
}
.gg2gm-ai__starter-title {
  display: block !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: var(--gg2gm-mock-green-deep) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 21px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}
.gg2gm-ai__starter-title::after { display: none !important; }
.gg2gm-ai__starter-subtitle {
  display: block !important;
  margin: 6px 0 15px !important;
  color: #817e76 !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}
.gg2gm-ai__suggestions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 9px !important;
}
.gg2gm-ai__suggestions button {
  justify-content: flex-start !important;
  min-height: 62px !important;
  padding: 9px 14px 9px 10px !important;
  border: 1px solid #e4dac9 !important;
  border-radius: 17px !important;
  background: rgba(255,255,255,.82) !important;
  color: #18241f !important;
  box-shadow: 0 5px 13px rgba(56,43,28,.045) !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  text-align: left !important;
}
.gg2gm-ai__suggestions button:hover {
  border-color: #cdbd9c !important;
  background: #fffdf8 !important;
  box-shadow: 0 8px 18px rgba(56,43,28,.075) !important;
  transform: translateY(-1px) !important;
}
.gg2gm-ai__suggestions button::after {
  margin-left: auto !important;
  color: #4f625a !important;
  content: "›" !important;
  font-family: Georgia, serif !important;
  font-size: 27px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
}
.gg2gm-ai__suggestion-icon {
  width: 42px !important;
  height: 42px !important;
  flex: 0 0 42px !important;
  border-radius: 50% !important;
  background: #eef2e8 !important;
  color: #315647 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 20px !important;
  font-weight: 600 !important;
}
.gg2gm-ai__suggestions button:nth-child(2) .gg2gm-ai__suggestion-icon { background:#f3e5d0 !important; color:#8d5d38 !important; }
.gg2gm-ai__suggestions button:nth-child(3) .gg2gm-ai__suggestion-icon { background:#e8eadf !important; color:#506147 !important; }
.gg2gm-ai__suggestions button:nth-child(4) .gg2gm-ai__suggestion-icon { background:#f2e0cf !important; color:#8d5636 !important; }
.gg2gm-ai__suggestion-label { font-size: 14px !important; font-weight: 650 !important; }

/* Composer */
.gg2gm-ai__composer-wrap {
  padding: 12px 19px 18px !important;
  border-top: 1px solid #e8dfd0 !important;
  background: var(--gg2gm-mock-cream) !important;
}
.gg2gm-ai__form {
  display: grid !important;
  grid-template-columns: 30px minmax(0,1fr) 48px !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 62px !important;
  padding: 6px 7px 6px 13px !important;
  border: 1px solid #ddd3c3 !important;
  border-radius: 24px !important;
  background: #fffdf9 !important;
  box-shadow: 0 5px 15px rgba(56,43,28,.04) !important;
}
.gg2gm-ai__form:focus-within {
  border-color: #c8b48d !important;
  box-shadow: 0 0 0 3px rgba(200,180,141,.15) !important;
}
.gg2gm-ai__composer-icon {
  display: grid !important;
  place-items: center !important;
  width: 28px !important;
  height: 28px !important;
  color: #8d8a82 !important;
}
.gg2gm-ai__composer-icon svg { width: 22px !important; height: 22px !important; }
.gg2gm-ai__form textarea {
  min-height: 38px !important;
  padding: 8px 0 !important;
  background: transparent !important;
  color: #1d2b25 !important;
  font-size: 14px !important;
}
.gg2gm-ai__form textarea::placeholder { color: #8d8d88 !important; opacity: 1 !important; }
.gg2gm-ai__form button {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: var(--gg2gm-mock-green) !important;
  color: #fff8ea !important;
  box-shadow: 0 8px 18px rgba(11,48,40,.19) !important;
}
.gg2gm-ai__form button:disabled { background: var(--gg2gm-mock-green) !important; opacity: .42 !important; }
.gg2gm-ai__form button svg { width: 23px !important; height: 23px !important; }
.gg2gm-ai__composer-note { display: none !important; }

/* Conversation states inherit the same visual system. */
.gg2gm-ai__assistant-avatar { background: var(--gg2gm-mock-green) !important; color:#fff1d8 !important; border-color:#d9c8a8 !important; }
.gg2gm-ai__message--assistant { border-color:#e5dccb !important; background:#fffdf8 !important; }
.gg2gm-ai__message--user { background:var(--gg2gm-mock-green) !important; color:#fff !important; }

@media (max-width: 600px) {
  .gg2gm-ai {
    --gg2gm-side-offset: 16px !important;
    --gg2gm-bottom-offset: 18px !important;
  }
  .gg2gm-ai__launcher {
    width: 66px !important;
    min-width: 66px !important;
    height: 66px !important;
    min-height: 66px !important;
  }
  .gg2gm-ai__launcher-icon { width:66px !important; height:66px !important; }
  .gg2gm-ai__launcher-icon svg { width:31px !important; height:31px !important; }
  .gg2gm-ai__launcher-status { width:16px !important; height:16px !important; border-width:3px !important; }
  .gg2gm-ai__launcher-text {
    right: -3px !important;
    bottom: calc(100% + 10px) !important;
    min-width: 118px !important;
    padding: 10px 15px !important;
    font-size: 15px !important;
  }
  .gg2gm-ai__launcher-text::after { right: 28px !important; }
  .gg2gm-ai__panel {
    position: fixed !important;
    right: 12px !important;
    bottom: 12px !important;
    left: 12px !important;
    width: auto !important;
    height: min(720px, calc(var(--gg2gm-visual-height, 100dvh) - 24px)) !important;
    max-height: calc(var(--gg2gm-visual-height, 100dvh) - 24px) !important;
    border-radius: 24px !important;
  }
  .gg2gm-ai__header { min-height:92px !important; padding:16px 18px !important; }
  .gg2gm-ai__header-actions { gap: 8px !important; }
  .gg2gm-ai__reset,
  .gg2gm-ai__expand,
  .gg2gm-ai__close { width: 40px !important; height: 40px !important; flex-basis: 40px !important; border-radius: 12px !important; }
  .gg2gm-ai__reset svg,
  .gg2gm-ai__expand svg,
  .gg2gm-ai__close svg { width: 20px !important; height: 20px !important; }
  .gg2gm-ai__avatar { width:54px !important; height:54px !important; }
  .gg2gm-ai__avatar svg { width:29px !important; height:29px !important; }
  .gg2gm-ai__title { font-size:24px !important; }
  .gg2gm-ai__messages { padding:18px 17px 14px !important; }
  .gg2gm-ai__starter { margin-top:18px !important; padding:16px !important; }
  .gg2gm-ai__starter-title { font-size:19px !important; }
  .gg2gm-ai__suggestions button { min-height:58px !important; }
  .gg2gm-ai__composer-wrap { padding:10px 14px max(14px, env(safe-area-inset-bottom)) !important; }
}

/* --------------------------------------------------------------------------
 * 1.9.32 — final compact launcher and restored header buttons
 * Appended late so it wins over earlier mockup-match rules.
 * -------------------------------------------------------------------------- */
.gg2gm-ai__header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-left: auto !important;
}
.gg2gm-ai__reset,
.gg2gm-ai__expand,
.gg2gm-ai__close {
  display: inline-grid !important;
  place-items: center !important;
  width: 44px !important;
  height: 44px !important;
  flex: 0 0 44px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.10) !important;
  color: #fff3dc !important;
  backdrop-filter: blur(6px) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06) !important;
}
.gg2gm-ai__reset:hover,
.gg2gm-ai__expand:hover,
.gg2gm-ai__close:hover {
  background: rgba(255,255,255,.16) !important;
  border-color: rgba(255,255,255,.22) !important;
  transform: translateY(-1px) !important;
}
.gg2gm-ai__reset svg,
.gg2gm-ai__expand svg,
.gg2gm-ai__close svg {
  width: 22px !important;
  height: 22px !important;
}
.gg2gm-ai:not(.has-conversation) .gg2gm-ai__reset {
  opacity: .56 !important;
}
.gg2gm-ai:not(.has-conversation) .gg2gm-ai__reset:hover {
  transform: none !important;
}
.gg2gm-ai__expand-close { display: none !important; }
.gg2gm-ai.is-expanded .gg2gm-ai__expand-open { display: none !important; }
.gg2gm-ai.is-expanded .gg2gm-ai__expand-close { display: block !important; }

@media (max-width: 600px) {
  .gg2gm-ai__header-actions { gap: 8px !important; }
  .gg2gm-ai__reset,
  .gg2gm-ai__expand,
  .gg2gm-ai__close {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
    border-radius: 12px !important;
  }
  .gg2gm-ai__reset svg,
  .gg2gm-ai__expand svg,
  .gg2gm-ai__close svg {
    width: 20px !important;
    height: 20px !important;
  }
}

/* --------------------------------------------------------------------------
 * 1.9.33 — main screen matched to approved mockup
 * -------------------------------------------------------------------------- */
.gg2gm-ai__panel {
  width: min(456px, calc(100vw - 28px)) !important;
  height: min(716px, calc(100vh - 34px)) !important;
  overflow: hidden !important;
  border: 1px solid rgba(213,195,158,.78) !important;
  border-radius: 30px !important;
  background: #fbf8f1 !important;
  box-shadow: 0 34px 90px rgba(8,30,25,.32), 0 10px 34px rgba(0,0,0,.11) !important;
}

.gg2gm-ai__header {
  position: relative !important;
  z-index: 2 !important;
  min-height: 126px !important;
  padding: 20px 25px 34px !important;
  overflow: visible !important;
  border-bottom: 0 !important;
  background: linear-gradient(140deg, #17463a 0%, #0d3028 100%) !important;
  color: #fff5df !important;
}
.gg2gm-ai__header::after {
  position: absolute !important;
  z-index: -1 !important;
  right: -5% !important;
  bottom: -18px !important;
  left: -5% !important;
  height: 40px !important;
  border-radius: 0 0 50% 50% / 0 0 100% 100% !important;
  background: #fbf8f1 !important;
  content: "" !important;
}
.gg2gm-ai__identity {
  gap: 18px !important;
}
.gg2gm-ai__avatar {
  width: 72px !important;
  height: 72px !important;
  flex: 0 0 72px !important;
  border: 2px solid #d4be91 !important;
  background: linear-gradient(145deg, #17453a, #0c2e27) !important;
  color: #fff0d3 !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 9px 22px rgba(0,0,0,.14) !important;
}
.gg2gm-ai__avatar svg {
  width: 39px !important;
  height: 39px !important;
}
.gg2gm-ai__avatar i {
  right: 0 !important;
  bottom: 2px !important;
  width: 18px !important;
  height: 18px !important;
  border: 3px solid #173f35 !important;
  background: #32c763 !important;
}
.gg2gm-ai__title {
  color: #fff5df !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 32px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: -.03em !important;
}
.gg2gm-ai__header-actions {
  gap: 8px !important;
}
.gg2gm-ai__reset,
.gg2gm-ai__expand,
.gg2gm-ai__close {
  width: 42px !important;
  height: 42px !important;
  flex: 0 0 42px !important;
  border-color: transparent !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
}
.gg2gm-ai__reset:hover,
.gg2gm-ai__expand:hover,
.gg2gm-ai__close:hover {
  border-color: rgba(255,255,255,.08) !important;
  background: rgba(255,255,255,.08) !important;
}
.gg2gm-ai__close svg { width: 27px !important; height: 27px !important; }
.gg2gm-ai__reset svg,
.gg2gm-ai__expand svg { width: 21px !important; height: 21px !important; }

.gg2gm-ai__messages {
  padding: 30px 25px 18px !important;
  background: #fbf8f1 !important;
}
.gg2gm-ai__intro {
  display: block !important;
}
.gg2gm-ai__welcome-card {
  display: grid !important;
  grid-template-columns: 50px minmax(0,1fr) !important;
  gap: 14px !important;
  align-items: center !important;
  margin: 0 0 20px !important;
}
.gg2gm-ai__welcome-icon {
  width: 50px !important;
  height: 50px !important;
  border: 1px solid rgba(213,195,158,.72) !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg,#18463b,#0e3029) !important;
  color: #fff1d8 !important;
  box-shadow: 0 8px 20px rgba(10,42,35,.16) !important;
}
.gg2gm-ai__welcome-icon svg { width: 28px !important; height: 28px !important; }
.gg2gm-ai__welcome-text {
  position: relative !important;
  margin: 0 !important;
  padding: 16px 20px !important;
  border: 1px solid #e4dac9 !important;
  border-radius: 18px !important;
  background: #f7f1e7 !important;
  color: #16241f !important;
  box-shadow: 0 8px 20px rgba(55,43,31,.06) !important;
  font-size: 15.5px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
}
.gg2gm-ai__welcome-text::before {
  position: absolute !important;
  top: 50% !important;
  left: -8px !important;
  width: 15px !important;
  height: 15px !important;
  border-left: 1px solid #e4dac9 !important;
  border-bottom: 1px solid #e4dac9 !important;
  background: #f7f1e7 !important;
  content: "" !important;
  transform: translateY(-50%) rotate(45deg) !important;
}

.gg2gm-ai__starter {
  margin: 0 !important;
  padding: 20px 18px 18px !important;
  border: 1px solid #e1d7c6 !important;
  border-radius: 23px !important;
  background: rgba(255,255,255,.46) !important;
  box-shadow: 0 8px 26px rgba(52,40,29,.055) !important;
}
.gg2gm-ai__starter-title {
  margin: 0 !important;
  color: #12342c !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  line-height: 1.18 !important;
  letter-spacing: -.018em !important;
}
.gg2gm-ai__starter-subtitle {
  margin: 7px 0 15px !important;
  color: #77756f !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}
.gg2gm-ai__suggestions {
  gap: 9px !important;
}
.gg2gm-ai__suggestions button {
  min-height: 64px !important;
  padding: 9px 15px 9px 10px !important;
  border: 1px solid #e1d8c9 !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.86) !important;
  color: #17251f !important;
  box-shadow: 0 5px 14px rgba(56,43,29,.045) !important;
}
.gg2gm-ai__suggestion-icon {
  width: 44px !important;
  height: 44px !important;
  flex: 0 0 44px !important;
  font-size: 20px !important;
}
.gg2gm-ai__suggestion-label {
  font-size: 14.5px !important;
  font-weight: 650 !important;
}
.gg2gm-ai__suggestions button::after {
  font-size: 29px !important;
}

.gg2gm-ai__composer-wrap {
  padding: 12px 18px 16px !important;
  border-top: 0 !important;
  background: #fbf8f1 !important;
}
.gg2gm-ai__form {
  min-height: 66px !important;
  padding: 6px 7px 6px 14px !important;
  border: 1px solid #ddd3c3 !important;
  border-radius: 25px !important;
  background: #fffdf9 !important;
  box-shadow: 0 5px 16px rgba(54,42,29,.05) !important;
}
.gg2gm-ai__form textarea {
  font-size: 14.5px !important;
}
.gg2gm-ai__form button {
  width: 50px !important;
  height: 50px !important;
  background: linear-gradient(145deg,#18463b,#0e3029) !important;
}

@media (max-width: 600px) {
  .gg2gm-ai__panel {
    right: 10px !important;
    bottom: 10px !important;
    left: 10px !important;
    height: min(716px, calc(var(--gg2gm-visual-height,100dvh) - 20px)) !important;
    max-height: calc(var(--gg2gm-visual-height,100dvh) - 20px) !important;
    border-radius: 26px !important;
  }
  .gg2gm-ai__header {
    min-height: 108px !important;
    padding: 16px 18px 30px !important;
  }
  .gg2gm-ai__avatar {
    width: 58px !important;
    height: 58px !important;
    flex-basis: 58px !important;
  }
  .gg2gm-ai__avatar svg { width: 31px !important; height: 31px !important; }
  .gg2gm-ai__title { font-size: 27px !important; }
  .gg2gm-ai__reset,
  .gg2gm-ai__expand,
  .gg2gm-ai__close {
    width: 36px !important;
    height: 36px !important;
    flex-basis: 36px !important;
  }
  .gg2gm-ai__messages { padding: 26px 16px 13px !important; }
  .gg2gm-ai__welcome-card { grid-template-columns: 44px minmax(0,1fr) !important; gap: 11px !important; margin-bottom: 17px !important; }
  .gg2gm-ai__welcome-icon { width:44px !important; height:44px !important; }
  .gg2gm-ai__welcome-icon svg { width:24px !important; height:24px !important; }
  .gg2gm-ai__welcome-text { padding:13px 15px !important; font-size:14px !important; }
  .gg2gm-ai__starter { padding:17px 14px 15px !important; border-radius:20px !important; }
  .gg2gm-ai__starter-title { font-size:19px !important; }
  .gg2gm-ai__starter-subtitle { font-size:12.5px !important; }
  .gg2gm-ai__suggestions button { min-height:58px !important; padding:8px 12px 8px 9px !important; }
  .gg2gm-ai__suggestion-icon { width:40px !important; height:40px !important; flex-basis:40px !important; }
  .gg2gm-ai__suggestion-label { font-size:13.5px !important; }
  .gg2gm-ai__composer-wrap { padding:10px 12px max(12px,env(safe-area-inset-bottom)) !important; }
}


/* --------------------------------------------------------------------------
 * 1.9.34 — smaller headings and upgraded starter icons
 * -------------------------------------------------------------------------- */
.gg2gm-ai__title {
  font-size: 28px !important;
  letter-spacing: -.025em !important;
}
.gg2gm-ai__welcome-text {
  font-size: 14.5px !important;
  line-height: 1.4 !important;
}
.gg2gm-ai__starter-title {
  font-size: 19px !important;
  line-height: 1.14 !important;
}
.gg2gm-ai__starter-subtitle {
  font-size: 12.5px !important;
}
.gg2gm-ai__suggestion-icon {
  font-size: 0 !important;
}
.gg2gm-ai__suggestion-icon svg {
  width: 24px !important;
  height: 24px !important;
  display: block !important;
}
.gg2gm-ai__suggestion-label {
  font-size: 14px !important;
}
@media (max-width: 600px) {
  .gg2gm-ai__title { font-size: 24px !important; }
  .gg2gm-ai__welcome-text { font-size: 13.5px !important; }
  .gg2gm-ai__starter-title { font-size: 17px !important; }
  .gg2gm-ai__starter-subtitle { font-size: 12px !important; }
  .gg2gm-ai__suggestion-icon svg { width: 22px !important; height: 22px !important; }
  .gg2gm-ai__suggestion-label { font-size: 13px !important; }
}


/* --------------------------------------------------------------------------
 * 1.9.35 — premium thin-line starter icons
 * -------------------------------------------------------------------------- */
.gg2gm-ai__suggestion-icon {
  background: #f3f1e8 !important;
  border: 1px solid rgba(32,77,63,.08) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7) !important;
}
.gg2gm-ai__suggestion-icon svg {
  width: 23px !important;
  height: 23px !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
.gg2gm-ai__suggestions button:nth-child(1) .gg2gm-ai__suggestion-icon {
  background:#edf3ec !important;
  color:#315c4d !important;
}
.gg2gm-ai__suggestions button:nth-child(2) .gg2gm-ai__suggestion-icon {
  background:#f5e9d7 !important;
  color:#9a693f !important;
}
.gg2gm-ai__suggestions button:nth-child(3) .gg2gm-ai__suggestion-icon {
  background:#eef0e7 !important;
  color:#526248 !important;
}
.gg2gm-ai__suggestions button:nth-child(4) .gg2gm-ai__suggestion-icon {
  background:#f6e6d8 !important;
  color:#8e5a3d !important;
}
@media (max-width: 600px) {
  .gg2gm-ai__suggestion-icon svg {
    width: 21px !important;
    height: 21px !important;
  }
}


/* --------------------------------------------------------------------------
 * 1.9.38 — remove starter icons beside text
 * -------------------------------------------------------------------------- */
.gg2gm-ai__suggestion-icon {
  display: none !important;
}
.gg2gm-ai__suggestions button {
  padding-left: 18px !important;
}
@media (max-width: 600px) {
  .gg2gm-ai__suggestions button {
    padding-left: 14px !important;
  }
}

/* --------------------------------------------------------------------------
 * 1.9.39 — fix iconless starter row wrapping
 * -------------------------------------------------------------------------- */
.gg2gm-ai__suggestions button {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  min-height: 58px !important;
  padding: 10px 16px 10px 18px !important;
  text-align: left !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}
.gg2gm-ai__suggestion-label {
  display: block !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  line-height: 1.25 !important;
}
.gg2gm-ai__suggestions button::after {
  flex: 0 0 auto !important;
  margin-left: auto !important;
}
@media (max-width: 600px) {
  .gg2gm-ai__suggestions button {
    min-height: 56px !important;
    padding: 9px 13px 9px 15px !important;
  }
  .gg2gm-ai__suggestion-label {
    font-size: 13px !important;
  }
}
