/* Execution and result views. Keep all selectors inside the runs namespace. */
.tc-console .wr-result-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 20px;
}

.tc-console .wr-result-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--tc-border);
  border-radius: 6px;
  background: #fff;
}

.tc-console .wr-result-card span { color: #626b74; font-size: 13px; }
.tc-console #wbExecution #wbExecutionModule {
  box-sizing: border-box;
  width: min(100%, 420px);
  min-height: 38px;
  margin: 6px 0 12px;
  padding: 7px 10px;
  border: 1px solid var(--tc-control-border, var(--tc-border));
  border-radius: 6px;
  background: #fff;
  color: var(--tc-text);
  font: 16px/1.35 var(--tc-font-family);
}
.tc-console #wbExecution #wbExecutionSummary {
  min-width: 0;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
  font-weight: 600;
}
.tc-console #wbExecution #executionControls { margin: 0 0 16px; }
.tc-console #wbExecution .run-row {
  grid-template-columns: minmax(140px, 1.2fr) minmax(130px, 1fr) auto auto auto;
  align-items: end;
}
.tc-console #wbExecution #flowProbe { margin-right: 4px; }
.tc-console #wbExecution #wbRunSource { min-width: 0; overflow-wrap: anywhere; }
.tc-console #wbExecution #executionSlot > .card.panel { padding: 16px; }
.tc-console #wbExecution [data-wb="run-selected"] {
  border-color: var(--tc-blue);
  background: var(--tc-blue);
  color: #fff;
}
.tc-console #wbExecution [data-wb="run-selected"]:hover { background: #0b5ed7; }
.tc-console .wr-result-card strong { font-size: 24px; line-height: 1.2; }
.tc-console .wr-result-card.wr-pass { border-top: 3px solid #198754; }
.tc-console .wr-result-card.wr-fail { border-top: 3px solid #dc3545; }
.tc-console .wr-result-card.wr-error { border-top: 3px solid #fd7e14; }
.tc-console .wr-results-list { min-width: 0; }
.tc-console .wr-run-id { margin-top: 4px; color: #626b74; font-size: 12px; overflow-wrap: anywhere; }
.tc-console .wr-trial-detail { width: 100%; padding: 20px; border: 1px solid var(--tc-border); border-radius: 6px; background: #fff; }
.tc-console .wr-trial-detail > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--tc-border); }
.tc-console .wr-trial-detail > header > div { min-width: 0; overflow-wrap: anywhere; }
.tc-console .wr-trial-detail > header h2 { margin: 0; font-size: 18px; line-height: 1.35; }
.tc-console .wr-trial-detail > header p { margin: 4px 0; color: var(--tc-muted-on-canvas); font-size: 13px; }
.tc-console .wr-trial-detail code { overflow-wrap: anywhere; }
.tc-console .wr-trial-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.tc-console .wr-trial-meta > div { min-width: 0; padding: 12px; border: 1px solid var(--tc-border); border-radius: 6px; background: #fff; }
.tc-console .wr-trial-meta dt { color: var(--tc-muted-on-canvas); font-size: 12px; }
.tc-console .wr-trial-meta dd { margin: 4px 0 0; overflow-wrap: anywhere; font-weight: 600; }
.tc-console .wr-trial-content { min-width: 0; padding-top: 16px; color: var(--tc-text); font-size: 13px; overflow-wrap: anywhere; }
.tc-console .wr-trial-content h3 { margin: 20px 0 8px; font-size: 15px; }
.tc-console .wr-trial-content dl,
.tc-console .wr-trial-content dd { min-width: 0; overflow-wrap: anywhere; }
.tc-console .wr-trial-content pre.log { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; max-height: 70vh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.tc-console .wr-trial-detail .wb-detail-tabs { display: flex; gap: 24px; margin: 16px 0 0; overflow-x: auto; border-bottom: 1px solid var(--tc-border); }
.tc-console .wr-trial-detail .wb-detail-tabs [role="tab"] { flex: 0 0 auto; min-height: 40px; padding: 8px 2px 10px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--tc-muted-on-canvas); font-size: 13px; font-weight: 500; }
.tc-console .wr-trial-detail .wb-detail-tabs [role="tab"][aria-selected="true"] { border-bottom-color: var(--tc-blue); background: transparent; color: var(--tc-blue); font-weight: 700; }
.tc-console .wr-trial-detail .wb-detail-tabs [role="tab"]:hover { background: transparent; color: var(--tc-blue); }
.tc-console .wr-trial-content video { display: block; width: min(100%, 720px); max-height: 70vh; margin-bottom: 12px; background: #111; }
.tc-console .wb-video-player { min-width: 0; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--tc-border); overflow-wrap: anywhere; }
.tc-console .wb-video-player video { display: block; width: 100%; max-height: 55vh; margin: 12px 0; background: #111; }
.tc-console .wb-video-player #wbVideoSteps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tc-console .wb-video-player .wb-video-step[aria-current="true"] { border-color: var(--tc-blue); color: var(--tc-blue); }
.tc-console #wbVideoAccess { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.tc-console #wbVideoToken { box-sizing: border-box; width: min(100%, 360px); min-height: 38px; padding: 7px 10px; border: 1px solid var(--tc-control-border, var(--tc-border)); border-radius: 6px; font: 16px/1.35 var(--tc-font-family); }
.tc-console #wbVideoAccess label { flex-basis: 100%; color: var(--tc-muted-on-canvas); font-size: 13px; }
.tc-console #wbVideoSegment { min-width: min(100%, 240px); }
.tc-console .wr-back { margin-bottom: 8px; }
.tc-console [data-console-page="results"] #issuePanel { display: none !important; }
.tc-console [data-console-page="results"] > .console-page-head > [data-console-back] { display: none !important; }

@media (max-width: 760px) {
  .tc-console #wbExecution .run-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tc-console #wbExecution #runTcBtn,
  .tc-console #wbExecution #cancelRunBtn { width: 100%; }
  .tc-console .wr-trial-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-console .wr-trial-detail { padding: 14px; }
  .tc-console .wr-trial-detail > header { flex-direction: column; }
  .tc-console .wr-trial-meta { gap: 8px; }
}
