.g19-telegram-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(25rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid #d6c5a3;
  border-radius: 16px;
  background: #fffaf1;
  color: #2d261e;
  box-shadow: 0 16px 55px #18150d55;
}
.g19-telegram-dialog::backdrop { background: #17140fb0; }
.g19-telegram-panel { position: relative; padding: 2rem 1.5rem 1.5rem; text-align: center; }
.g19-telegram-panel .g19-telegram-title {
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: clamp(1.3rem, 5vw, 1.65rem);
  line-height: 1.25;
}
.g19-telegram-handle, .g19-telegram-help { margin: .65rem 0; color: #524638; }
.g19-telegram-qr {
  display: block;
  width: min(15rem, 100%);
  height: auto;
  margin: .9rem auto .65rem;
  background: white;
}
.g19-telegram-panel .g19-telegram-dismiss {
  position: absolute;
  top: .35rem;
  right: .45rem;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.5rem;
  cursor: pointer;
}
.g19-telegram-panel .g19-telegram-open {
  display: inline-flex;
  min-height: 44px;
  margin-top: .5rem;
  padding: .55rem 1rem;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #433625;
  color: #fffaf1;
  text-decoration: none;
}
.g19-telegram-panel :is(a, button):focus-visible { outline: 2px solid #8f6428; outline-offset: 3px; }
