
.chat-bubble p {
  margin: 5px 0;
}

.chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  margin-top: 10px;
}

.chat-attachment-control input {
  max-width: 160px;
  min-height: 36px;
  padding: 6px;
}

.emoji-row {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
}

.emoji-row button {
  min-height: 28px;
  width: 34px;
  padding: 0;
  background: #ffffff;
  box-shadow: none;
}

.file-popover {
  position: fixed;
  z-index: 80;
  width: 280px;
  padding: 12px;
  border: 1px solid #dbe6f5;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(7, 24, 46, 0.18);
}

.close-popover {
  float: right;
  min-height: 24px;
  width: 24px;
  padding: 0;
  background: #f1f5f9;
  color: #1d2940;
  box-shadow: none;
}

.testing-macro-deck {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

#testingView {
  height: 100%;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
}

#testingView .execution-panel:first-child {
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  gap: 8px;
  padding: 16px;
}

#testingUploadForm {
  grid-template-columns: minmax(140px, 0.8fr) minmax(220px, 1.25fr) minmax(190px, 1fr) minmax(220px, 1.2fr);
  gap: 8px;
  align-items: end;
  overflow: visible;
}

#testingUploadForm button {
  min-height: 38px;
}

#testingEntitySelect {
  position: relative;
  z-index: 95;
  width: 100%;
  pointer-events: auto;
}

.testing-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 8px;
}

.testing-telemetry-grid article {
  min-height: 70px;
  padding: 10px;
  border: 1px solid #dfe6f2;
  border-radius: 12px;
  background: #ffffff;
}

.testing-telemetry-grid strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
}

.testing-telemetry-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.testing-log-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.testing-log-grid section {
  min-height: 0;
  border: 1px solid #dfe6f2;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.testing-log-grid h4 {
  margin: 0;
  padding: 9px 10px;
  background: #f8fafd;
  color: #50617d;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.testing-log-list {
  max-height: 180px;
  overflow-y: auto;
  display: grid;
  gap: 6px;
  padding: 8px;
}

.testing-log-row {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 8px;
  padding: 7px;
  border-radius: 9px;
  background: #f8fafc;
  font-size: 11px;
}

.testing-log-row p {
  grid-column: 1 / -1;
  margin: 0;
  color: #50617d;
}

.test-progress {
  display: grid;
  gap: 6px;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef7;
}

.progress-track div {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #1f64ff, #13c8dc);
  transition: width 180ms ease;
}

.testing-popover {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  max-width: 420px;
  padding: 14px;
  border-radius: 14px;
  color: #062112;
  background: #dcfce7;
  box-shadow: 0 18px 45px rgba(7, 24, 46, 0.18);
}

.testing-popover.failed {
  color: #3b0712;
  background: #ffe4e6;
}

.testing-popover p {
  margin: 6px 0 0;
}

.wide-field {
  grid-column: 1 / -1;
}
