.agent-callout {
  display: flex;
  align-items:flex-start; 
  gap: 14px;
  width: 100%;
  max-width: 100%;
  margin: 10 auto 14px;
  margin-bottom: 50px;
}

.agent-callout-small {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  margin: 10 auto 14px;
  margin-bottom: 10px;
}

.agent-image {
  width: auto;
  height: 140px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  object-fit: contain;
}


.agent-image-big {
  width: auto;
  height: 200px;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  object-fit: contain;
  align-self: start;
}

.speech-bubble {
  position: relative;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 8px 10px;
  height: auto;
  box-sizing: border-box;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.2rem;
  font-family: "Share Tech Mono", monospace;
  line-height: 1.35;
  color: #fff;
  text-align: left;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

.agent-image-dialog {
  width: 80px;
  height: auto;
  flex-shrink: 0;
  margin-right: 12px;
  z-index: 0;
  border-radius: 8px;
  object-fit: contain;
}

.dialog-callout .speech-bubble {
  font-size: 1.05rem;
  padding: 7px 9px;
  z-index: 1;
}

/* Keep dialog page untouched while shrinking agent UI on all other pages. */
body:not(.dialog-page) .agent-callout {
  gap: 11px;
  margin-bottom: 40px;
}

body:not(.dialog-page) .agent-callout-small {
  gap: 11px;
  margin-bottom: 8px;
}

body:not(.dialog-page) .agent-image {
  height: 112px;
}

body:not(.dialog-page) .agent-image-big {
  height: 160px;
}

body:not(.dialog-page) .speech-bubble {
  font-size: 0.96rem;
  padding: 6px 8px;
}

@keyframes screen-flicker {
  0% {
    opacity: 0.97;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.1);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.05);
  }
  100% {
    opacity: 0.98;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.08);
  }
}

.dialog-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100svh;
  padding: 20px;
}

.dialog-container {
  width: min(100%, 520px);
  min-height: auto;
  padding: 18px;
}

.dialog-callout {
  margin-bottom: 16px;
}

@media (max-width: 768px) {
}

@media (max-width: 480px) {
  .dialog-page {
    padding: 10px;
  }

  .dialog-page .container {
    width: 100%;
    min-height: auto;
    padding: 14px;
  }

  .speech-bubble {
    font-size: 0.92rem;
    padding: 10px;
  }
}