/* Scoped host corrections for the existing Glasst chat; no provider transport changes. */
[data-chat-open][data-gcu-unread="true"], #gi-chat-open[data-gcu-unread="true"], #chat-open[data-gcu-unread="true"] {
  box-shadow: 0 0 0 3px #86ce9d;
}
#gc-root[data-gcu-managed="true"] #gc-btn { display: none !important; }
#gc-root[data-gcu-managed="true"] #gc-panel {
  left: auto; right: auto;
  inset-inline-end: 20px;
  bottom: calc(88px + var(--gcu-bottom, 0px));
  width: min(390px, calc(100% - 32px));
  max-width: calc(100% - 32px);
  height: min(560px, calc(var(--gcu-height, 100dvh) - 110px));
  max-height: calc(var(--gcu-height, 100dvh) - 24px);
  min-height: 0;
}
#gc-root[data-gcu-managed="true"] #gc-h {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
  padding: 12px;
}
#gc-root[data-gcu-managed="true"] #gc-h > div { min-width: 0; }
#gc-root[data-gcu-managed="true"] #gc-h small { display: block; line-height: 1.5; }
#gc-root[data-gcu-managed="true"] #gc-h .x {
  margin: 0;
  padding: 10px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  opacity: 1;
}
#gc-root[data-gcu-managed="true"] #gc-m { min-height: 0; overscroll-behavior: contain; }
#gc-root[data-gcu-managed="true"] #gc-f { flex: none; align-items: flex-end; padding: 10px; }
#gc-root[data-gcu-managed="true"] #gc-f textarea {
  width: 0;
  min-width: 0;
  min-height: 44px;
  font-size: 16px;
  line-height: 1.4;
}
#gc-root[data-gcu-managed="true"] #gc-f button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
}
#gc-root[data-gcu-managed="true"] #gc-q { flex: none; }
#gc-root[data-gcu-managed="true"] #gc-q button { min-height: 44px; padding: 9px 12px; font-size: 14px; }
#gc-root[data-gcu-managed="true"] #gc-ft { flex: none; font-size: 12px; }
#gc-root[data-gcu-managed="true"] :is(button, a, textarea):focus-visible {
  outline: 2px solid #0f766e;
  outline-offset: 3px;
}
#gc-root[data-gcu-managed="true"] #gc-h .x:focus-visible { outline-color: #fff; outline-offset: -3px; }
#gc-root[data-gcu-managed="true"][data-gcu-compact="true"] #gc-panel {
  inset: auto;
  left: var(--gcu-left, 0px);
  top: var(--gcu-top, 0px);
  width: var(--gcu-width, 100%);
  height: var(--gcu-height, 100dvh);
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #fff;
}
@media (prefers-reduced-motion: reduce) {
  #gc-root[data-gcu-managed="true"] .gc-typing i { animation: none; opacity: .6; }
}
