@import url("/ui/vendor/css/style.css");

.status-pill.in_progress {
  background: var(--warning-bg);
  color: var(--warning);
  font-size: 0;
  gap: 0;
}
.status-pill.in_progress::after {
  content: "In progress";
  font-size: 0.75rem;
  margin-left: 0.375rem;
}
.test-item.in_progress { border-left-color: var(--warning); }

.options-grid {
  flex-direction: column !important;
  gap: 0.35rem !important;
}
.option-chip {
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0.15rem 0 !important;
  background: none !important;
  color: var(--text) !important;
  font-weight: 400 !important;
  align-items: flex-start !important;
  line-height: 1.4;
}
.option-chip input {
  display: inline-block !important;
  width: 18px;
  height: 18px;
  margin-top: 0.05rem;
  accent-color: var(--brand);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .container,
  .container--wide { padding: 1.75rem 1rem 2rem; }

  .page-title { font-size: 1.4rem; }
  .card { padding: 1.25rem; }
  .modal-overlay { padding: 0; align-items: stretch; }
  .modal {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .modal-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--surface);
    padding: 1rem 1.15rem;
  }
  .modal-body { padding: 1.15rem; }
  .modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: var(--surface);
    padding: 0.9rem 1.15rem;
  }

  .modal-split { gap: 1rem; }
  .present-wrapper { min-height: 150px !important; }
  .logs-box { height: 40vh; min-height: 150px; }

  .btn {
    min-height: 48px;
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
  }
  .modal-footer .btn,
  .btn-run,
  #launchBtn,
  .btn-row .btn,
  .btn-row--space .btn { width: 100%; }
  #launchBtn { font-size: 1.15rem !important; }
  .modal-close {
    width: 40px;
    height: 40px;
    font-size: 1.35rem;
  }

  .test-header { padding: 1rem 1.1rem; }
  .test-name { font-size: 1rem; }
  .btn-run { margin-top: 0.5rem; }
  .tests-header { align-items: flex-start; }

  .input,
  input,
  select,
  textarea {
    font-size: 16px;
    min-height: 46px;
  }
  input[type="checkbox"] { min-height: 0; }
  .checkbox-label { padding: 0.35rem 0; }

  pre,
  code,
  .log-line,
  .detail-row code { white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
  table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .summary-grid { grid-template-columns: 1fr; }
}

@media (min-width: 641px) and (max-width: 820px) {
  .modal { max-width: 94vw; }
  .modal-split { grid-template-columns: 1fr; }
}
