.tc-console .workspace {
  display: block;
  min-width: 0;
}

.tc-console .wb-shell-error { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding: 10px 12px; }
.tc-console .wb-shell-error[hidden] { display: none; }
.tc-console #wbModuleState { margin: 0 0 12px; color: var(--tc-muted-on-canvas); font-size: 13px; }

.tc-console .wb-app-manage { margin: 12px 8px 0 0; }
.tc-console .wb-module-heading-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.tc-console .panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--tc-border);
  border-radius: 8px;
  background: var(--tc-panel);
  box-shadow: none;
}

.tc-console .panel-head {
  padding: 20px;
  border-bottom: 1px solid var(--tc-border);
  background: var(--tc-panel);
}

.tc-console .panel-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.tc-console .panel-head p {
  margin: 6px 0 0;
  color: var(--tc-muted-on-canvas);
  font-size: 13px;
  line-height: 1.5;
}

.tc-console .tc-table-card {
  width: 100%;
  min-width: 0;
}

.tc-console .table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.tc-console .tc-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: auto;
  color: var(--tc-text);
  font-size: 12px;
}

.tc-console .tc-table th,
.tc-console .tc-table td {
  padding: 12px;
  border-bottom: 1px solid var(--tc-border);
  text-align: left;
  vertical-align: middle;
}

.tc-console .tc-table th {
  background: #f8f9fa;
  color: #495057;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.tc-console .tc-table td {
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.tc-console .tc-table tbody tr:last-child td { border-bottom: 0; }
.tc-console .tc-table tbody tr.tc-card { transition: background-color .12s ease; }
.tc-console .tc-table tbody tr.tc-card:hover { background: #f8f9fa; }
.tc-console .tc-table tbody tr.tc-card.active { background: var(--tc-selected-bg); }
.tc-console .tc-table tbody tr.tc-card:focus-visible { outline: 2px solid var(--tc-blue); outline-offset: -2px; }
.tc-console .tc-table .status { white-space: nowrap; }
.tc-console .tc-row-actions { white-space: nowrap; }
.tc-console .tc-row-actions .btn { margin: 2px 2px 2px 0; }

.tc-console .tc-id-link,
.tc-console .tc-title-link {
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tc-selected-text);
  font: inherit;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-align: left;
  cursor: pointer;
}

.tc-console .tc-title-link { font-size: 14px; }
.tc-console .tc-id-link:hover,
.tc-console .tc-title-link:hover { text-decoration: underline; }
.tc-console .tc-id-link:focus-visible,
.tc-console .tc-title-link:focus-visible { outline: 2px solid var(--tc-blue); outline-offset: 2px; }

.tc-console .tc-table .empty {
  padding: 36px 20px;
  color: var(--tc-muted-on-canvas);
  text-align: center;
}

.tc-console .issue {
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow-wrap: anywhere;
}

.tc-console .issue-header {
  padding: 20px;
  border-bottom: 1px solid var(--tc-border);
}

.tc-console .issue-header h2 {
  margin: 0;
  color: var(--tc-text);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.tc-console .issue-num { color: var(--tc-muted-on-canvas); font-weight: 400; }
.tc-console .issue-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  color: var(--tc-muted-on-canvas);
  font-size: 12px;
}
.tc-console .depth-breadcrumb { gap: 6px; }
.tc-console .crumb {
  border: 1px solid var(--tc-border);
  border-radius: 6px;
  background: #f8f9fa;
  color: #495057;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.tc-console .sep { color: var(--tc-muted-on-canvas); }

.tc-console .tabs {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 16px;
  border-bottom: 1px solid var(--tc-border);
  background: #fff;
}

.tc-console .tab {
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #495057;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.tc-console .tab:hover { color: var(--tc-selected-text); background: #f8f9fa; }
.tc-console .tab.active { border-bottom-color: var(--tc-blue); color: var(--tc-selected-text); }
.tc-console .trial-count-btn { margin: 4px 0 4px auto; }
.tc-console .issue-body { min-width: 0; padding: 20px; }
.tc-console .issue-body > *,
.tc-console .md,
.tc-console .trial-detail-view { min-width: 0; max-width: 100%; }
.tc-console .issue-body { overflow-wrap: anywhere; }
.tc-console .md h3 { margin: 24px 0 10px; font-size: 17px; font-weight: 700; }
.tc-console .md h3:first-child { margin-top: 0; }
.tc-console .md p,
.tc-console .md li { line-height: 1.6; overflow-wrap: anywhere; }
.tc-console .md ul,
.tc-console .md ol { padding-left: 22px; }
.tc-console .md li { margin: 6px 0; }

.tc-console .step-table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 10px 0 20px;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 13px;
  overscroll-behavior-x: contain;
}

.tc-console .step-table th,
.tc-console .step-table td {
  min-width: 64px;
  padding: 9px 10px;
  border: 1px solid var(--tc-border);
  color: var(--tc-text);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.tc-console .step-table th {
  background: #f8f9fa;
  color: #495057;
  font-size: 12px;
  font-weight: 600;
  white-space: normal;
}

.tc-console .step-table td { white-space: pre-wrap; }
.tc-console .step-table td.step-id { white-space: nowrap; overflow-wrap: normal; }
.tc-console .step-id { color: #59418c; font-weight: 700; }
.tc-console .callout { border-left-color: #0d6efd; background: #e7f1ff; color: #263447; }
.tc-console .validation { gap: 10px; padding: 10px 0; border-bottom: 1px solid #e9ecef; }
.tc-console .empty { padding: 36px 20px; color: var(--tc-muted-on-canvas); }

.tc-console .trial-log-panel {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--tc-border);
  background: #f8f9fa;
}

.tc-console .trial-log-panel > *,
.tc-console .trial-log-detail,
.tc-console .trial-log-detail pre,
.tc-console .trial-log-detail code { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }

.tc-console .trial-log-list {
  display: flex;
  min-width: 0;
  max-height: 300px;
  flex-direction: column;
  gap: 7px;
  overflow: auto;
  overscroll-behavior: contain;
}

.tc-console .trial-entry-btn {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--tc-border);
  border-radius: 6px;
  background: #fff;
  color: var(--tc-text);
  text-align: left;
  overflow-wrap: anywhere;
}

.tc-console .trial-entry-btn:hover,
.tc-console .trial-entry-btn.active { border-color: #9ec5fe; background: var(--tc-selected-bg); }
.tc-console .trial-log-detail { min-width: 0; border: 1px solid var(--tc-border); border-radius: 7px; background: #fff; color: var(--tc-text); overflow-wrap: anywhere; }
.tc-console .trial-log-detail h3 { font-size: 15px; }
.tc-console .trial-reason { border-left-color: var(--tc-red); background: #fbeaec; overflow-wrap: anywhere; }
.tc-console .trial-detail-view { display: flex; flex-direction: column; gap: 16px; }
.tc-console .trial-detail-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tc-console .trial-detail-meta-item { min-width: 0; border: 1px solid var(--tc-border); border-radius: 7px; background: #f8f9fa; overflow-wrap: anywhere; }
.tc-console .trial-detail-meta-label { color: var(--tc-muted-on-canvas); }
.tc-console .trial-full-log {
  max-width: 100%;
  max-height: 520px;
  overflow: auto;
  border: 1px solid #343a40;
  border-radius: 8px;
  background: #212529;
  color: #f8f9fa;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.tc-console .trial-explanation,
.tc-console .candidate-assessment {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--tc-border);
  border-radius: 8px;
  background: #fff;
}

.tc-console .trial-explanation-head,
.tc-console .candidate-assessment-head,
.tc-console .trial-event-head { gap: 10px; flex-wrap: wrap; }
.tc-console .trial-explanation-head strong,
.tc-console .candidate-assessment-head strong { color: var(--tc-text); font-size: 14px; }
.tc-console .trial-explanation-head span,
.tc-console .trial-explanation-summary b,
.tc-console .trial-event-evidence summary { color: var(--tc-muted-on-canvas); }
.tc-console .trial-explanation-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tc-console .trial-explanation-summary > div,
.tc-console .trial-detail-meta-item { border-color: #e9ecef; }
.tc-console .trial-event { min-width: 0; border: 1px solid #e9ecef; border-radius: 7px; background: #fff; overflow-wrap: anywhere; }
.tc-console .trial-event-title { font-size: 13px; }
.tc-console .trial-event-description { font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.tc-console .trial-event-evidence pre,
.tc-console .ai-static-code,
.tc-console pre.raw-md {
  max-width: 100%;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
}

.tc-console .candidate-verdict { background: #fff1e1; color: #8a4b08; }
.tc-console .candidate-verdict.existing { background: var(--tc-selected-bg); color: var(--tc-selected-text); }
.tc-console .candidate-verdict.new { background: #dff3e4; color: #146c43; }
.tc-console .similarity-row { min-width: 0; border-bottom-color: #e9ecef; overflow-wrap: anywhere; }
.tc-console .ai-detail-panel { min-width: 0; border-color: var(--tc-border); border-radius: 8px; background: #fff; }
.tc-console .ai-detail-head { background: #f8f9fa; border-bottom-color: var(--tc-border); }
.tc-console .ai-detail-sub,
.tc-console .ai-detail-label,
.tc-console .v-desc,
.tc-console .ai-static-meta { color: var(--tc-muted-on-canvas); }
.tc-console .ai-detail-grid { min-width: 0; }
.tc-console .ai-detail-item { min-width: 0; border-color: #e9ecef; }
.tc-console .ai-detail-value { overflow-wrap: anywhere; word-break: normal; }
.tc-console .ai-static-candidate { min-width: 0; border-color: var(--tc-border); border-radius: 7px; background: #f8f9fa; }
.tc-console .ai-static-candidate summary { overflow-wrap: anywhere; }
.tc-console .raw-actions { flex-wrap: wrap; }
.tc-console pre.raw-md { min-height: 320px; border-radius: 8px; }
.tc-console .footer-note { color: var(--tc-muted-on-canvas); }

@media (max-width: 767.98px) {
  .tc-console .issue-header { padding: 16px; }
  .tc-console .issue-header h2 { font-size: 20px; }
  .tc-console .issue-body { padding: 16px; }
  .tc-console .tabs { padding: 0 8px; }
  .tc-console .tab { min-height: 42px; padding: 9px 8px; font-size: 12px; }
  .tc-console .trial-count-btn { margin-left: 4px; }
  .tc-console .trial-log-panel { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .tc-console .trial-log-list { max-height: 240px; }
  .tc-console .trial-detail-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-console .trial-explanation-summary { grid-template-columns: minmax(0, 1fr); }
  .tc-console .similarity-grid { grid-template-columns: minmax(0, 1fr); }
  .tc-console .ai-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .tc-console .ai-detail-item { border-right: 0; }
  .tc-console .issue-actions { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .tc-console .tc-table tbody tr.tc-card { transition: none; }
}

/* Workbench module and case views. */
.tc-console #testCasePanel .paste-zone { display: none; }
.tc-console .wb-dashboard-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 16px; margin-bottom: 18px; }
.tc-console .wb-card { min-width: 0; padding: 20px; border: 1px solid var(--tc-border); border-radius: 8px; background: #fff; }
.tc-console .wb-dashboard-stats .wb-card { display: flex; flex-direction: column; gap: 8px; }
.tc-console .wb-dashboard-stats small { color: #626b74; }
.tc-console .wb-dashboard-stats strong { font-size: 28px; }
.tc-console .wb-dashboard-chart { display: flex; height: 290px; min-height: 0; flex-direction: column; box-sizing: border-box; margin-bottom: 14px; }
.tc-console .wb-dashboard-chart h2 { margin: 0 0 16px; font-size: 16px; }
.tc-console .wb-dashboard-bars { display: flex; min-height: 0; flex: 1 1 0; align-items: stretch; gap: 16px; overflow-x: auto; }
.tc-console .wb-dashboard-bar { display: grid; min-width: 72px; flex: 1 0 72px; grid-template-rows: 20px 1fr 22px; justify-items: center; gap: 5px; }
.tc-console .wb-dashboard-bar > b { grid-row: 1; }
.tc-console .wb-dashboard-bar > .wb-bar { grid-row: 2; }
.tc-console .wb-dashboard-bar > .link { grid-row: 3; }
.tc-console .wb-dashboard-bar > b { font-size: 10px; font-weight: 600; }
.tc-console .wb-dashboard-bar .link { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-console .wb-dashboard-bar .link { font-size: 11px; }
.tc-console .wb-dashboard-bar .wb-bar { display: flex; width: 40px; height: 100%; align-items: end; border-radius: 6px 6px 0 0; background: transparent; }
.tc-console .wb-dashboard-bar .wb-bar i { width: 100%; min-height: 3px; }
.tc-console .wb-dashboard-recent { margin-bottom: 20px; }
.tc-console .wb-dashboard-recent > summary { cursor: pointer; font-weight: 700; }
.tc-console .wb-dashboard-recent[open] > .wb-recent { margin-top: 14px; }
.tc-console .wb-bar-row { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(60px, 2fr) 36px; align-items: center; gap: 10px; min-height: 36px; }
.tc-console .wb-bar { height: 8px; overflow: hidden; border-radius: 8px; background: #e9ecef; }
.tc-console .wb-bar i { display: block; height: 100%; border-radius: inherit; background: var(--tc-blue); }
.tc-console .wb-recent { display: grid; gap: 6px; }
.tc-console .wb-recent-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--tc-border); background: transparent; color: inherit; text-align: left; }
.tc-console .wb-recent-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-console .wb-recent-row small { grid-column: 1 / -1; color: #626b74; }
.tc-console .wb-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tc-console .wb-case-summary { display: flex; min-width: 0; flex: 1 1 320px; flex-direction: column; gap: 4px; }
.tc-console .wb-case-summary span { color: #626b74; font-size: 13px; }
.tc-console .wb-title { max-width: 100%; padding: 0; text-align: left; font-weight: 600; white-space: normal; }
.tc-console .danger { border-color: #dc3545; color: #b02a37; }

@media (max-width: 500px) {
  .tc-console .wb-card { padding: 14px; }
  .tc-console .wb-bar-row { grid-template-columns: minmax(84px, 1fr) minmax(44px, 1fr) 30px; gap: 6px; }
}
.tc-console .wb-module-list table { width: 100%; min-width: 760px; border-collapse: collapse; }
.tc-console .wb-module-list th, .tc-console .wb-module-list td { padding: 12px; border-bottom: 1px solid var(--tc-border); text-align: left; vertical-align: middle; }
.tc-console .wb-module-list th { background: #f8f9fa; white-space: nowrap; }
.tc-console .wb-module-list td { overflow-wrap: anywhere; }
.tc-console .wb-module-create { display: block; margin: 14px 0; }
.tc-console .wb-module-heading-card { display: block; width: 100%; padding: 22px 24px; border: 1px solid var(--tc-border); border-radius: 8px; background: #fff; }
.tc-console .wb-module-primary-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.tc-console .wb-module-title { min-width: 0; }
.tc-console .wb-module-title h1 { margin: 0; font-size: 20px; }
.tc-console .wb-module-title p { margin: 5px 0 0; color: #626b74; font-size: 13px; }
.tc-console .wb-module-metadata { display: flex; gap: 8px 18px; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--tc-border); font-size: 12px; }
.tc-console .wb-module-metadata dt { color: #626b74; }
.tc-console .wb-module-metadata dd { margin: 0; font-weight: 600; }
.tc-console .wb-module-extra { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--tc-border); }
.tc-console .wb-module-extra > summary { color: #495057; cursor: pointer; font-size: 12px; font-weight: 600; }
.tc-console .wb-module-extra-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 16px; padding-top: 12px; }
.tc-console .wb-module-extra-body dl { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 5px 10px; margin: 0; font-size: 12px; }
.tc-console .wb-module-extra-body dt { color: #626b74; }
.tc-console .wb-module-extra-body dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.tc-console .wb-module-detail-head { width: 100%; }
.tc-console #wbSets > .console-page-head:has(.wb-module-detail-head) { display: block; }
.tc-console .wb-module-back { margin-bottom: 12px; }
.tc-console .wb-module-heading-card h1 { margin: 0; font-size: 22px; }
.tc-console .wb-module-heading-card p { margin: 5px 0 10px; color: #626b74; }
.tc-console .wb-module-heading-card .wb-module-title h1 { font-size: 20px; }
.tc-console .wb-module-heading-card .wb-module-title p { margin: 5px 0 0; }
.tc-console .wb-module-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-console .wb-module-heading-card dl { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 6px 10px; margin: 0; }
.tc-console .wb-module-heading-card dt { color: #626b74; }
.tc-console .wb-module-heading-card dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.tc-console .wb-module-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.tc-console .wb-case-summary-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.tc-console .wb-case-summary-cards .wb-card { display: flex; min-width: 0; flex-direction: column; justify-content: center; gap: 6px; padding: 12px 14px; }
.tc-console .wb-case-summary-cards small { color: #626b74; }
.tc-console .wb-case-summary-cards > .wb-card:first-child strong { font-size: 24px; }
.tc-console .wb-priority-bar { display: flex; height: 12px; overflow: hidden; border-radius: 8px; background: #e9ecef; }
.tc-console .wb-priority-segment { min-width: 0; height: 100%; }
.tc-console .wb-priority-segment.p1, .tc-console .wb-priority-dot.p1 { background: #0d6efd; }
.tc-console .wb-priority-segment.p2, .tc-console .wb-priority-dot.p2 { background: #198754; }
.tc-console .wb-priority-segment.p3, .tc-console .wb-priority-dot.p3 { background: #fd7e14; }
.tc-console .wb-priority-segment.p4, .tc-console .wb-priority-dot.p4 { background: #6f42c1; }
.tc-console .wb-priority-segment.p5, .tc-console .wb-priority-dot.p5 { background: #20c997; }
.tc-console .wb-priority-segment.unset, .tc-console .wb-priority-dot.unset { background: #adb5bd; }
.tc-console .wb-priority-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: #495057; font-size: 12px; }
.tc-console .wb-priority-legend span { display: inline-flex; align-items: center; gap: 5px; }
.tc-console .wb-priority-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; }
.tc-console #wbCaseAuthoring { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.tc-console #wbSets .wb-selection { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.tc-console #testCasePanel .wb-case-card-head,
.tc-console #testCasePanel .wb-case-card-filters { padding: 12px 16px; }
.tc-console #testCasePanel .wb-case-card-head { border-bottom: 1px solid var(--tc-border); }
.tc-console #testCasePanel .wb-case-card-filters { display: flex; flex-wrap: wrap; gap: 10px; border-bottom: 1px solid var(--tc-border); }
.tc-console #testCasePanel .wb-case-card-filters > * { min-width: 0; }
@media (max-width: 800px) {
  .tc-console .wb-module-primary-row { flex-direction: column; gap: 12px; }
  .tc-console .wb-module-extra-body { grid-template-columns: minmax(0, 1fr); }
  .tc-console .wb-module-heading-actions { justify-content: flex-start; }
  .tc-console .wb-case-summary-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 500px) {
}
.tc-console #wbModules #wbModuleStats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 14px 0; }
.tc-console #wbModules #wbModuleStats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tc-console #wbModules #wbModuleStats .card.stat { min-width: 0; padding: 16px; border: 1px solid var(--tc-border); border-radius: 8px; background: #fff; }
.tc-console #wbModules #wbModuleStats small { color: #626b74; }
.tc-console #wbModules #wbModuleStats h2 { margin: 6px 0 0; font-size: 23px; }
.tc-console #wbModules #wbModuleStats .subline { display: block; margin-top: 4px; color: #626b74; }
.tc-console .wb-module-distribution { display: flex; min-width: 0; flex-direction: column; gap: 9px; }
.tc-console .wb-module-distribution > p { margin: 0; color: #626b74; font-size: 12px; }
.tc-console .wb-module-dist-row { display: grid; grid-template-columns: 28px minmax(40px, 1fr) 62px; align-items: center; gap: 8px; }
.tc-console .wb-module-dist-row > b { text-align: right; }
.tc-console .wb-module-dist-track { height: 8px; overflow: hidden; border-radius: 8px; background: #edf0f2; }
.tc-console .wb-module-dist-track i { display: block; height: 100%; border-radius: inherit; background: var(--tc-blue); }
.tc-console .wb-module-dist-track.ios i { background: #8b6bc4; }
.tc-console .wb-module-dist-stack { display: flex; width: 100%; margin: 2px 0; background: #edf0f2; }
.tc-console .wb-module-dist-stack i { height: 100%; border-radius: 0; }
.tc-console .wb-module-dist-stack .appium, .tc-console .wb-module-dist-legend .appium { background: var(--tc-green); }
.tc-console .wb-module-dist-stack .android, .tc-console .wb-module-dist-legend .android { background: #0d6efd; }
.tc-console .wb-module-dist-stack .ios, .tc-console .wb-module-dist-legend .ios { background: #8b6bc4; }
.tc-console .wb-module-dist-stack .empty { width: 100%; background: #edf0f2; }
.tc-console .wb-module-dist-legend { display: flex; flex-wrap: wrap; gap: 5px 14px; color: #495057; font-size: 12px; }
.tc-console .wb-module-dist-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.tc-console .wb-module-dist-legend i { width: 9px; height: 9px; border-radius: 50%; }
@media (max-width: 600px) {
  .tc-console #wbModules #wbModuleStats { grid-template-columns: minmax(0, 1fr); }
}
.tc-console .wb-priority-segment.other, .tc-console .wb-priority-dot.other { background: #495057; }

#wbSets.wb-module-detail { display: flex; flex-direction: column; gap: 24px; padding: 0; }
#wbSets.wb-module-detail[hidden] { display: none; }
#wbSets.wb-module-detail > #caseSummarySlot { display: none; }
#wbSets.wb-module-detail > .console-page-head { display: block; margin: 0; }
#wbSets.wb-module-detail .wb-module-detail-head { display: grid; gap: 24px; }
#wbSets.wb-module-detail .wb-module-back { justify-self: start; min-height: 0; margin: 0; padding: 0; border: 0; background: transparent; color: #6c757d; font-size: 13px; line-height: 1.4; text-align: left; }
#wbSets.wb-module-detail .wb-module-back:hover { color: #495057; text-decoration: underline; }
#wbSets.wb-module-detail .wb-module-heading-card { display: flex; flex-direction: column; gap: 16px; box-sizing: border-box; padding: 24px; border-radius: 8px; }
#wbSets.wb-module-detail .wb-module-primary-row { align-items: flex-start; gap: 24px; }
#wbSets.wb-module-detail .wb-module-title h1 { font-size: 26px; line-height: 1.25; }
#wbSets.wb-module-detail .wb-module-title p { margin-top: 6px; font-size: 14px; line-height: 1.45; }
#wbSets.wb-module-detail .wb-module-badges { gap: 8px; }
#wbSets.wb-module-detail .wb-module-badges > * { font-size: 12px; }
#wbSets.wb-module-detail .wb-detail-info { display: inline-flex; align-items: center; min-height: 0; padding: 4px 10px; border: 0; border-radius: 12px; background: #e7f1ff; color: #0d6efd; font-size: 12px; line-height: 16px; }
#wbSets.wb-module-detail .wb-detail-info.platform { background: #e9ecef; color: #495057; }
#wbSets.wb-module-detail .wb-detail-info:focus-visible { outline: 2px solid #0d6efd; outline-offset: 2px; }
#wbSets.wb-module-detail .wb-module-metadata { display: grid; grid-template-columns: 200px max-content max-content; gap: 40px; margin: 0; padding-top: 16px; border-top: 1px solid #dee2e6; }
#wbSets.wb-module-detail .wb-module-metadata > div { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
#wbSets.wb-module-detail .wb-module-metadata dt { color: #6c757d; font-size: 12px; }
#wbSets.wb-module-detail .wb-module-metadata dd { font-size: 18px; white-space: nowrap; }
#wbSets.wb-module-detail .wb-module-extra { display: none; }
#wbSets.wb-module-detail .wb-case-summary-cards { gap: 16px; margin: 0; }
#wbSets.wb-module-detail .wb-case-summary-cards .wb-card { min-width: 0; min-height: 112px; gap: 12px; padding: 20px; border: 1px solid #dee2e6; border-radius: 8px; background: #fff; }
#wbSets.wb-module-detail .wb-case-summary-cards .wb-priority-card { gap: 20px; }
#wbSets.wb-module-detail .wb-case-summary-cards small { font-size: 13px; }
#wbSets.wb-module-detail .wb-case-summary-cards > .wb-card:first-child strong { font-size: 28px; line-height: 1.2; }
#wbSets.wb-module-detail .wb-priority-card > small { font-size: 14px; }
#wbSets.wb-module-detail .wb-priority-bar { height: 14px; }
#wbSets.wb-module-detail .wb-priority-legend { gap: 6px 16px; font-size: 11px; }
#wbSets.wb-module-detail .wb-priority-dot { width: 8px; height: 8px; flex-basis: 8px; }
#wbSets.wb-module-detail .wb-priority-legend span:has(.wb-priority-dot.p1) { color: #dc3545; }
#wbSets.wb-module-detail .wb-priority-legend span:has(.wb-priority-dot.p2) { color: #fd7e14; }
#wbSets.wb-module-detail .wb-priority-legend span:has(.wb-priority-dot.p3) { color: #0d6efd; }
#wbSets.wb-module-detail .wb-priority-legend span:has(.wb-priority-dot.p4) { color: #6c757d; }
#wbSets.wb-module-detail .wb-priority-segment.p1, #wbSets.wb-module-detail .wb-priority-dot.p1 { background: #dc3545; }
#wbSets.wb-module-detail .wb-priority-segment.p2, #wbSets.wb-module-detail .wb-priority-dot.p2 { background: #fd7e14; }
#wbSets.wb-module-detail .wb-priority-segment.p3, #wbSets.wb-module-detail .wb-priority-dot.p3 { background: #0d6efd; }
#wbSets.wb-module-detail .wb-priority-segment.p4, #wbSets.wb-module-detail .wb-priority-dot.p4 { background: #6c757d; }
#wbSets.wb-module-detail #wbCaseAuthoring { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
#wbSets.wb-module-detail #wbCaseAuthoring > .btn { box-sizing: border-box; min-height: 0; height: 34px; padding: 8px 16px; border-radius: 6px; font-size: 13px; line-height: 16px; }
#wbSets.wb-module-detail #wbCaseAuthoring [data-wb="new-tc"] img { width: 14px; height: 14px; vertical-align: -3px; }
#wbSets.wb-module-detail #wbCaseAuthoring [data-wb="new-tc"] { border-color: #0d6efd; background: #0d6efd; color: #fff; }
#wbSets.wb-module-detail #wbCaseAuthoring [data-wb="import"] { border-color: #27ae60; background: #27ae60; color: #fff; }
#wbSets.wb-module-detail #wbCaseAuthoring [data-wb="export"] { border-color: #e58617; background: #e58617; color: #fff; }
@media (max-width: 800px) {
  #wbSets.wb-module-detail { gap: 20px; padding: 0; }
  #wbSets.wb-module-detail .wb-module-primary-row { flex-direction: column; gap: 12px; }
  #wbSets.wb-module-detail .wb-module-metadata { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  #wbSets.wb-module-detail .wb-case-summary-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 500px) {
  #wbSets.wb-module-detail { gap: 16px; padding: 0; }
  #wbSets.wb-module-detail .wb-module-heading-card { padding: 20px; }
  #wbSets.wb-module-detail .wb-module-title h1 { font-size: 23px; }
  #wbSets.wb-module-detail .wb-module-metadata { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  #wbSets.wb-module-detail #wbCaseAuthoring > .btn { flex: 1 1 calc(50% - 8px); }
}

/* Test case filters keep text search separate from the optional metadata filters. */
.tc-console #wbSets > .wb-case-search { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
.tc-console #wbSets > .wb-case-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.tc-console #wbSets > .wb-case-filters > .filter-select { flex: 1 1 180px; min-width: 0; }
.tc-console .tc-table { min-width: 1180px; table-layout: fixed; }
.tc-console .tc-table th:nth-child(1), .tc-console .tc-table td:nth-child(1) { width: 4%; min-width: 42px; white-space: nowrap; }
.tc-console .tc-table th:nth-child(2), .tc-console .tc-table td:nth-child(2) { width: 10%; min-width: 88px; }
.tc-console .tc-table th:nth-child(3), .tc-console .tc-table td:nth-child(3) { width: 20%; min-width: 160px; }
.tc-console .tc-table th:nth-child(4), .tc-console .tc-table td:nth-child(4) { width: 18%; min-width: 120px; white-space: normal; overflow-wrap: anywhere; }
.tc-console .tc-table th:nth-child(5), .tc-console .tc-table td:nth-child(5) { width: 8%; min-width: 70px; }
.tc-console .tc-table th:nth-child(6), .tc-console .tc-table td:nth-child(6) { width: 8%; min-width: 70px; }
.tc-console .tc-table th:nth-child(7), .tc-console .tc-table td:nth-child(7) { width: 11%; min-width: 90px; }
.tc-console .tc-table th:nth-child(8), .tc-console .tc-table td:nth-child(8) { width: 9%; min-width: 95px; white-space: nowrap; }
.tc-console .tc-table th:nth-child(9), .tc-console .tc-table td:nth-child(9) { width: 12%; min-width: 125px; white-space: nowrap; }
.tc-console .wb-link-search { display: block; width: 100%; margin: 12px 0; }
.tc-console .wb-link-row:not([hidden]) { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--tc-border); }
.tc-console .wb-link-row[hidden] { display: none; }
.tc-console .wb-link-row input[type="checkbox"] { flex: 0 0 auto; margin: 2px 0 0; }

/* Module inventory follows the module-only Figma card and pager styles. */
.tc-console #wbModules .wb-module-table-card { display: flex; min-width: 0; flex-direction: column; gap: 16px; padding: 20px; border: 1px solid #dee2e6; border-radius: 8px; background: #fff; }
.tc-console #wbModules .wb-module-table-head { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; }
.tc-console #wbModules .wb-module-table-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.tc-console #wbModules .wb-module-head-actions { display: flex; align-items: center; gap: 8px; }
.tc-console #wbModules [data-wb="delete-selected-modules"] { box-sizing: border-box; height: 32px; min-height: 32px; padding: 6px 14px; border: 1px solid #db3645; border-radius: 6px; background: #db3645; color: #fff; font-size: 13px; line-height: 1.35; }
.tc-console #wbModules [data-wb="delete-selected-modules"]:hover:not(:disabled) { border-color: #bb2d3b; background: #bb2d3b; }
.tc-console #wbModules [data-wb="delete-selected-modules"]:disabled { opacity: .55; cursor: not-allowed; }
.tc-console #wbModules .wb-module-list { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; border: 0; border-radius: 0; background: #fff; overscroll-behavior-x: contain; }
.tc-console #wbModules .wb-module-list > table { width: 100%; min-width: 840px; table-layout: fixed; border-collapse: collapse; }
.tc-console #wbModules .wb-module-list th,
.tc-console #wbModules .wb-module-list td { box-sizing: border-box; padding: 12px; border-bottom: 1px solid #dee2e6; text-align: left; vertical-align: middle; }
.tc-console #wbModules .wb-module-list th { background: #f8f9fa; color: #495057; font-size: 12px; font-weight: 700; white-space: nowrap; }
.tc-console #wbModules .wb-module-list td { color: #212529; font-size: 13px; overflow-wrap: anywhere; }
.tc-console #wbModules .wb-module-list th:nth-child(2),
.tc-console #wbModules .wb-module-list td:nth-child(2) { width: 180px; }
.tc-console #wbModules .wb-module-list th:nth-child(3),
.tc-console #wbModules .wb-module-list td:nth-child(3) { width: 220px; }
.tc-console #wbModules .wb-module-list th:nth-child(4),
.tc-console #wbModules .wb-module-list td:nth-child(4) { width: 120px; }
.tc-console #wbModules .wb-module-list th:nth-child(5),
.tc-console #wbModules .wb-module-list td:nth-child(5) { width: 140px; }
.tc-console #wbModules .wb-module-list th:last-child { text-align: center; }
.tc-console #wbModules .wb-module-list tbody tr:last-child td { border-bottom: 0; }
.tc-console #wbModules .wb-module-list th:first-child .wb-module-select-label { min-height: 16px; }
.tc-console #wbModules .wb-module-list td:first-child .wb-module-select-label { min-height: 24px; }
.tc-console #wbModules .wb-module-list th:first-child .wb-module-select-label,
.tc-console #wbModules .wb-module-list td:first-child .wb-module-select-label { display: inline-flex; width: 24px; min-width: 24px; align-items: center; justify-content: center; vertical-align: middle; cursor: pointer; }
.tc-console #wbModules .wb-module-name { display: flex; min-width: 0; align-items: center; gap: 8px; white-space: nowrap; }
.tc-console #wbModules .wb-module-list input[type="checkbox"] { width: 16px; height: 16px; flex: 0 0 16px; margin: 0; accent-color: var(--tc-blue); }
.tc-console #wbModules .wb-module-list td:first-child .link { display: inline-block; min-width: 0; max-width: 100%; overflow: hidden; color: #0d6efd; font-size: 13px; font-weight: 500; text-overflow: ellipsis; vertical-align: middle; white-space: nowrap; }
.tc-console #wbModules .wb-module-actions { display: flex; justify-content: center; }
.tc-console #wbModules .wb-module-actions .btn,
.tc-console #wbModules .wb-module-list td:last-child .btn { box-sizing: border-box; height: 28px; min-height: 28px; padding: 4px 12px; border: 1px solid #3878f5; border-radius: 4px; background: #3878f5; color: #fff; font-size: 12px; line-height: 1.35; }
.tc-console #wbModules .wb-module-actions .btn:hover,
.tc-console #wbModules .wb-module-list td:last-child .btn:hover { border-color: #2864d8; background: #2864d8; }
.tc-console #wbModules .wb-module-pager { display: flex; box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 12px; border-top: 1px solid #dee2e6; color: #626b74; font-size: 13px; }
.tc-console #wbModules .wb-module-pager-left { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 16px; }
.tc-console #wbModules .wb-module-page-sizes { display: inline-flex; min-width: 0; align-items: center; gap: 0; }
.tc-console #wbModules .wb-module-page-sizes > span { margin-left: 8px; }
.tc-console #wbModules .wb-module-pages { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; }
.tc-console #wbModules .wb-module-pager button { min-width: 31px; min-height: 31px; padding: 4px 8px; border: 1px solid #dee2e6; background: #fff; color: #495057; font: inherit; line-height: 1.25; cursor: pointer; }
.tc-console #wbModules .wb-module-page-sizes button:first-of-type,
.tc-console #wbModules .wb-module-pages button:first-of-type { border-radius: 5px 0 0 5px; }
.tc-console #wbModules .wb-module-page-sizes button:last-of-type,
.tc-console #wbModules .wb-module-pages button:last-of-type { border-radius: 0 5px 5px 0; }
.tc-console #wbModules .wb-module-page-sizes button + button,
.tc-console #wbModules .wb-module-pages button + button { border-left: 0; }
.tc-console #wbModules .wb-module-page-sizes button[aria-pressed="true"],
.tc-console #wbModules .wb-module-pages button[aria-current="page"] { border-color: #0d6efd; background: #0d6efd; color: #fff; }
.tc-console #wbModules .wb-module-pager button:disabled { background: #f8f9fa; color: #adb5bd; cursor: not-allowed; }
.tc-console #wbModules .wb-module-pager button:focus-visible,
.tc-console #wbModules .wb-module-list input[type="checkbox"]:focus-visible,
.tc-console #wbModules [data-wb="delete-selected-modules"]:focus-visible { outline: 2px solid #0d6efd; outline-offset: 2px; }

@media (max-width: 767.98px) {
  .tc-console #wbSets > .wb-case-search { grid-template-columns: minmax(0, 1fr); }
  .tc-console #wbSets > .wb-case-filters > .filter-select { flex-basis: 100%; width: 100%; }
}

/* Keep wide workbench tables scrollable inside their card instead of widening the page. */
.tc-console .wb-table {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--tc-border);
  border-radius: 8px;
  background: #fff;
  overscroll-behavior-x: contain;
}
.tc-console .wb-table > table {
  width: 100%;
  border-collapse: collapse;
  color: var(--tc-text);
}
.tc-console .wb-table > table th,
.tc-console .wb-table > table td {
  padding: 12px;
  border-bottom: 1px solid var(--tc-border);
  text-align: left;
  vertical-align: middle;
}
.tc-console .wb-table > table th {
  background: #f8f9fa;
  color: #495057;
  font-weight: 600;
  white-space: nowrap;
}
.tc-console .wb-table > table tbody tr:last-child td { border-bottom: 0; }
.tc-console .wb-module-list > table { min-width: 760px; }

.tc-console [data-console-page="overview"] .tc-project-greeting { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.tc-console [data-console-page="overview"] .tc-project-greeting h1 { margin: 0; color: var(--tc-text); font-size: 24px; font-weight: 700; line-height: 29px; }
.tc-console [data-console-page="overview"] .tc-project-greeting p { margin: 0; color: var(--tc-muted); font-size: 14px; font-weight: 400; line-height: 17px; }
