/* Chat Widget Container */
#dg-chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  font-family: inherit;
  pointer-events: none;
  --dg-chat-keyboard-offset: 0px;
  --dg-chat-panel-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  --dg-chat-panel-border: rgba(255, 255, 255, 0.11);
  --dg-chat-text: #e7ecff;
  --dg-chat-muted: #a9b2d0;
  --dg-chat-neon: #00e5ff;
  --dg-chat-neon-blue: #3a86ff;
  --dg-chat-purple: #7c5cfc;
  --dg-chat-accent: #14f195;
}

@property --dg-chat-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes dg-chat-neon-rotate {
  0% {
    --dg-chat-angle: 0deg;
  }

  100% {
    --dg-chat-angle: 360deg;
  }
}

#dg-chat-widget.open {
  pointer-events: auto;
}

/* Launcher Button */
.dg-chat-launcher {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(31, 34, 41, 0.92), rgba(31, 34, 41, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(0, 229, 255, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease, border-color 0.25s ease;
  pointer-events: auto;
  z-index: 10;
  overflow: hidden;
}

.dg-chat-launcher::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02) 32%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, rgba(0, 229, 255, 0.14), rgba(106, 0, 255, 0.14));
  pointer-events: none;
}

.dg-chat-launcher::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.dg-chat-launcher:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 24px rgba(0, 229, 255, 0.12);
}

.dg-chat-launcher i {
  position: relative;
  z-index: 1;
  color: #e7ecff;
  font-size: 26px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 229, 255, 0.14);
}

#dg-chat-badge {
  top: -6px !important;
  right: -6px !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(255, 77, 79, 0.96), rgba(255, 102, 140, 0.92)) !important;
  box-shadow: 0 8px 18px rgba(255, 77, 79, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

/* Setup Panel & Main Window */
.dg-chat-window {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 360px;
  max-height: min(580px, calc(100vh - 120px));
  background: linear-gradient(180deg, rgba(31, 34, 41, 0.94), rgba(31, 34, 41, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(0, 229, 255, 0.04);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.dg-chat-window::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(0, 229, 255, 0.08), transparent 34%),
    radial-gradient(circle at bottom right, rgba(124, 92, 252, 0.1), transparent 32%);
  pointer-events: none;
}

#dg-chat-widget.open .dg-chat-window {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Header */
.dg-chat-header {
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.dg-chat-header-main {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dg-chat-header-info h4 {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45), 0 0 12px rgba(0, 229, 255, 0.08);
}

.dg-chat-header-info p {
  margin: 5px 0 0;
  color: rgba(169, 178, 208, 0.9);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.dg-chat-icon-btn {
  color: var(--dg-chat-muted) !important;
  cursor: pointer;
  font-size: 18px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  appearance: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dg-chat-icon-btn--close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
}

#dg-chat-close::before,
#dg-chat-close::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  display: block;
  top: 50%;
  left: 50%;
  transform-origin: center;
}

#dg-chat-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

#dg-chat-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

#dg-chat-back:hover,
#dg-chat-close:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
}

/* Auth / Setup View */
.dg-chat-setup {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px 20px;
  gap: 14px;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}

.dg-chat-setup h3 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.42), 0 0 14px rgba(0, 229, 255, 0.08);
}

.dg-chat-setup p {
  color: rgba(169, 178, 208, 0.92);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.dg-chat-setup-primary {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dg-chat-setup-secondary {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dg-chat-panel {
  background: var(--dg-chat-panel-bg);
  border: 1px solid var(--dg-chat-panel-border);
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 18px;
}

.dg-chat-intro-card {
  background:
    radial-gradient(circle at top right, rgba(0, 229, 255, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.dg-chat-intro-card p {
  margin-bottom: 8px;
}

.dg-chat-schedule-card {
  padding: 14px;
}

.dg-chat-restore-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dg-chat-restore-panel h3 {
  margin: 0;
}

.dg-chat-restore-panel p {
  margin: 0;
}

.dg-chat-restore-link {
  margin-top: auto;
  align-self: center;
  background: transparent;
  border: none;
  color: rgba(169, 178, 208, 0.62);
  font-size: 11px;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 4px 0 0;
}

.dg-chat-restore-link:hover {
  color: rgba(169, 178, 208, 0.9);
}

.dg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  isolation: isolate;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.92), rgba(58, 134, 255, 0.9));
  color: #fff;
  border: 1px solid transparent;
  padding: 13px 16px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.dg-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.dg-btn::before,
.dg-email-input-group button::before,
.dg-chat-input-area button::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--dg-chat-angle), rgba(0, 229, 255, 0.98), rgba(58, 134, 255, 0.92), rgba(125, 211, 252, 0.94), rgba(0, 229, 255, 0.98));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.72;
  pointer-events: none;
  animation: dg-chat-neon-rotate 3s linear infinite;
  z-index: -1;
}

.dg-btn:hover::before,
.dg-email-input-group button:hover::before,
.dg-chat-input-area button:hover::before {
  opacity: 1;
  filter: brightness(1.14);
}

.dg-btn:focus-visible,
.dg-input:focus-visible,
.dg-chat-input-area input:focus-visible,
.dg-email-input-group input:focus-visible,
.dg-chat-input-area button:focus-visible,
.dg-email-input-group button:focus-visible,
.dg-email-add-more:focus-visible,
.dg-chat-restore-link:focus-visible,
.dg-chat-icon-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12);
}

.dg-btn--full {
  width: 100%;
}

.dg-btn--primary {
  color: #0a1322;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.98), rgba(58, 134, 255, 0.92));
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.24), 0 16px 32px rgba(0, 229, 255, 0.18), 0 8px 18px rgba(58, 134, 255, 0.22);
}

.dg-btn--primary:hover {
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.32), 0 18px 34px rgba(0, 229, 255, 0.22), 0 10px 22px rgba(58, 134, 255, 0.26);
}

.dg-btn--outline {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(0, 229, 255, 0.28);
  color: var(--dg-chat-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 0 14px rgba(0, 229, 255, 0.12);
}

.dg-btn--outline:hover {
  border-color: rgba(0, 229, 255, 0.42);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(58, 134, 255, 0.08));
}

.dg-btn--ghost {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(58, 134, 255, 0.1));
  border-color: rgba(0, 229, 255, 0.24);
  color: var(--dg-chat-text);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.12);
}

.dg-btn--ghost:hover {
  border-color: rgba(0, 229, 255, 0.36);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.18), 0 12px 24px rgba(0, 0, 0, 0.2);
}

.dg-chat-divider {
  text-align: center;
  color: #a9b2d0;
  font-size: 12px;
  margin: -2px 0;
  position: relative;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dg-chat-divider::before,
.dg-chat-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 24px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12));
}

.dg-chat-divider::before {
  left: 0;
}

.dg-chat-divider::after {
  right: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent);
}

.dg-chat-error {
  color: #ff7a86;
  font-size: 12px;
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 122, 134, 0.22);
  background: rgba(255, 77, 79, 0.08);
}

.dg-input {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 13px 14px;
  border-radius: 14px;
  outline: none;
  width: 100%;
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dg-input:focus {
  border-color: #00e5ff;
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.08);
}

/* Active Chat View */
.dg-chat-active {
  flex: 1;
  display: none;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.dg-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background:
    radial-gradient(circle at top right, rgba(0, 229, 255, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.dg-chat-messages::-webkit-scrollbar,
.dg-chat-setup::-webkit-scrollbar {
  width: 6px;
}
.dg-chat-messages::-webkit-scrollbar-track,
.dg-chat-setup::-webkit-scrollbar-track {
  background: transparent;
}
.dg-chat-messages::-webkit-scrollbar-thumb,
.dg-chat-setup::-webkit-scrollbar-thumb {
  background: rgba(124, 92, 252, 0.5); /* Use neon purple matching site style */
  border-radius: 10px;
}
.dg-chat-messages::-webkit-scrollbar-thumb:hover,
.dg-chat-setup::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 229, 255, 0.8); /* Cyan on hover */
}

.dg-msg {
  max-width: 86%;
  padding: 13px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.18);
}

.dg-msg strong {
  color: #fff;
}

.dg-msg a {
  color: var(--dg-chat-neon);
  text-decoration-color: rgba(0, 229, 255, 0.35);
  text-underline-offset: 2px;
}

.dg-msg.staff {
  align-self: flex-start;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(17, 21, 30, 0.92));
  color: #e7ecff;
  border-bottom-left-radius: 6px;
}

.dg-msg.client {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.95), rgba(0, 229, 255, 0.78));
  color: #f7fbff;
  border-color: rgba(255, 255, 255, 0.16);
  border-bottom-right-radius: 6px;
  box-shadow: 0 16px 28px rgba(67, 40, 146, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dg-msg.client a {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

.dg-msg.system {
  align-self: center;
  width: min(100%, 300px);
  text-align: center;
  border-radius: 16px;
  border-bottom-left-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  color: rgba(231, 236, 255, 0.92);
  font-size: 13px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.dg-msg.system.pending {
  border-style: dashed;
  border-color: rgba(0, 229, 255, 0.24);
  color: rgba(231, 236, 255, 0.88);
}

.dg-email-prompt {
  align-self: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px;
  border-radius: 16px;
  width: min(100%, 320px);
  text-align: left;
  margin-top: 4px;
  margin-bottom: 12px;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dg-email-prompt p {
  margin: 0 0 8px;
  font-size: 12px;
  color: #a9b2d0;
  line-height: 1.45;
}

.dg-email-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.dg-email-list-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(169, 178, 208, 0.82);
}

.dg-email-pill {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 13px;
  padding: 8px 10px;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.12);
  border-radius: 10px;
}

.dg-email-pill strong {
  color: var(--dg-chat-neon);
  word-break: break-all;
}

.dg-email-input-group {
  display: flex;
  gap: 8px;
}

.dg-email-input-group input {
  flex: 1;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  color: #fff;
  outline: none;
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dg-email-input-group button {
  position: relative;
  isolation: isolate;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.96), rgba(58, 134, 255, 0.9));
  color: #0a1322;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: bold;
  cursor: pointer;
  font-size: 13px;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.2), 0 12px 22px rgba(0, 229, 255, 0.16);
}

.dg-email-add-more {
  color: var(--dg-chat-neon);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 10px;
  border: 1px dashed rgba(0, 229, 255, 0.28);
  border-radius: 12px;
  text-align: center;
  margin-top: 8px;
  background: rgba(0, 229, 255, 0.04);
}

.dg-email-success {
  font-size: 13px;
  color: #14f195;
  margin: 0;
}

.dg-chat-input-area {
  padding: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(0, 0, 0, 0.12));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

.dg-chat-input-area input {
  flex: 1;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 12px 16px;
  color: #fff;
  outline: none;
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dg-chat-input-area input::placeholder,
.dg-input::placeholder,
.dg-email-input-group input::placeholder {
  color: rgba(169, 178, 208, 0.62);
}

.dg-chat-input-area input:focus {
  border-color: rgba(0, 229, 255, 0.48);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.08);
}

.dg-chat-input-area button {
  position: relative;
  isolation: isolate;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.28), rgba(58, 134, 255, 0.24));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.14), 0 10px 22px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dg-chat-input-area button i {
  font-size: 15px;
}

.dg-chat-input-area button:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 229, 255, 0.34);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2), 0 14px 26px rgba(0, 0, 0, 0.32);
}

html.gpu-blur .dg-chat-launcher {
  background: linear-gradient(180deg, rgba(31, 34, 41, 0.34), rgba(31, 34, 41, 0.24));
  backdrop-filter: blur(8px) saturate(155%);
  -webkit-backdrop-filter: blur(8px) saturate(155%);
}

html.gpu-blur .dg-chat-window {
  background: linear-gradient(180deg, rgba(31, 34, 41, 0.3), rgba(31, 34, 41, 0.22));
  backdrop-filter: blur(10px) saturate(155%);
  -webkit-backdrop-filter: blur(10px) saturate(155%);
}

@media (max-width: 768px) {
  #dg-chat-widget {
    right: 16px;
    bottom: 16px;
  }

  .dg-chat-window {
    position: fixed;
    right: 8px;
    left: 8px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px + var(--dg-chat-keyboard-offset, 0px));
    width: auto;
    max-height: min(78dvh, 680px);
    border-radius: 22px;
  }

  .dg-chat-launcher {
    width: 72px;
    height: 72px;
    border-radius: 50%;
  }

  .dg-chat-messages {
    padding: 16px;
  }

  .dg-chat-setup {
    padding: 16px;
  }

  .dg-chat-panel {
    padding: 16px;
    border-radius: 16px;
  }

  .dg-msg {
    max-width: 90%;
  }

  .dg-chat-input-area {
    padding: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .dg-chat-input-area input,
  .dg-email-input-group input,
  .dg-input {
    font-size: 16px;
  }

  .dg-email-input-group {
    flex-direction: column;
  }

  .dg-email-input-group button {
    width: 100%;
    min-height: 44px;
    font-size: 16px;
  }

  .dg-chat-input-area button {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }
}
