.agent-test-shell {
  grid-template-columns: minmax(340px, .72fr) minmax(560px, 1.28fr);
  align-items: stretch;
}

.agent-console {
  min-height: 820px;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.agent-test-shell,
.agent-test-shell .page-copy,
.agent-test-shell .page-title,
.agent-test-shell .page-lead {
  min-width: 0;
}

.agent-test-shell .page-title,
.agent-test-shell .page-lead {
  overflow-wrap: break-word;
}

.agent-console .widget-stage {
  min-height: 720px;
  padding: 86px clamp(16px, 2.4vw, 34px) 34px;
  overflow: visible;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.voice-inline-host {
  width: min(100%, 560px);
  min-height: 650px;
  margin-inline: auto;
  overflow: visible;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.voice-inline-host chat-widget {
  display: block;
  width: min(100%, 520px) !important;
  max-width: 100% !important;
  margin-inline: auto !important;
}

@media (max-width: 1100px) {
  .agent-test-shell {
    grid-template-columns: 1fr;
  }

  .agent-console {
    min-height: 760px;
  }

  .agent-console .widget-stage {
    min-height: 680px;
    padding-top: 78px;
  }

  .voice-inline-host {
    min-height: 610px;
  }
}

@media (max-width: 640px) {
  .agent-test-shell {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .agent-test-shell > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .agent-test-shell .page-copy {
    width: 100%;
    max-width: 100%;
  }

  .agent-test-shell .page-lead {
    max-width: 100%;
  }

  .agent-test-shell .page-action-row,
  .agent-test-shell .detail-stack,
  .agent-test-shell .info-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .agent-test-shell .page-action-row .btn {
    min-width: 0;
    white-space: normal;
  }

  .agent-console {
    min-height: 700px;
  }

  .agent-console .widget-stage {
    min-height: 610px;
    padding: 70px 12px 24px;
  }

  .voice-inline-host {
    width: 100%;
    min-height: 560px;
  }
}
