/* Trace-answer workspace (tools/templates/trace-challenge.mjs, assets/trace-challenge.mjs).
   The answer sheet takes the editor's place, on the card colours rather than the code screen. */
/* The answer sheet wants more of the column than code does (assets/v3/workbench.mjs reads this default). */
.trace-workspace .coding-pane { --wb-ed-default: 72fr; --wb-co-default: 28fr; }
/* Scroll page: a trace result is a short table, so its card does not need a full window. */
@media (min-width: 761px) { :root[data-wb-flow="page"] .trace-workspace .test-card { min-height: var(--wb-page-co, 40dvh); } }
.ta-card { background: var(--card); border-color: var(--rule); color: var(--ink); }
.ta-card .editor-card-header { border-bottom-color: var(--rule); }
.ta-card .editor-card-header #save-status { color: var(--muted); }
.ta-card .text-button { color: var(--ink); }

.ta-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 12px 14px 14px; }
.ta-property { margin: 0 0 10px; }
.ta-property code { display: inline-block; max-width: 100%; padding: 3px 8px; border: 1px solid var(--rule-strong); border-radius: var(--r-chip); background: var(--paper); font: 500 14px var(--mono); }
.ta-sheet { width: 100%; border-collapse: collapse; font: 400 var(--fs-sm)/1.35 var(--sans); }
.ta-sheet th, .ta-sheet td { padding: 5px 8px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.ta-sheet thead th { color: var(--ink-2); font-weight: 600; font-size: 13px; }
.ta-sheet tbody th { font-weight: 500; }
.ta-lane { display: block; font: 600 13px var(--mono); color: var(--ink); }
.ta-start { display: block; color: var(--muted); font-size: 12.5px; }
.ta-sheet select { width: 100%; min-width: 9.5em; min-height: 32px; padding: 3px 8px; border: 1px solid var(--rule-strong); border-radius: var(--r-ctl); background: var(--paper); color: var(--ink); font: 500 13.5px var(--sans); }
.ta-sheet select:disabled { color: var(--muted); background: var(--paper-2); }
.ta-sheet select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ta-mark { width: 5.5em; white-space: nowrap; font-weight: 600; font-size: 13px; }
.ta-mark.pass { color: var(--good); }
.ta-mark.fail { color: var(--bad); }
.ta-hint { margin: 4px 0 10px; padding: 10px 12px; border-left: 3px solid var(--warn); background: var(--paper-2); color: var(--ink); font: 400 var(--fs-sm)/1.45 var(--sans); }
.trace-workspace .threads-blank .diagram-viewport { overflow-x: auto; }
@media (max-width: 760px) {
  .trace-workspace .coding-pane { grid-template-rows: auto auto auto; }
  :root[data-wb-max="editor"] .trace-workspace .coding-pane, :root[data-wb-console="collapsed"] .trace-workspace .coding-pane { grid-template-rows: auto auto auto; }
  .ta-sheet, .ta-sheet tbody, .ta-sheet tr, .ta-sheet th, .ta-sheet td { display: block; width: 100%; }
  .ta-sheet thead { display: none; }
  .ta-sheet tr { padding: 8px 0; border-bottom: 1px solid var(--rule); }
  .ta-sheet th, .ta-sheet td { padding: 4px 0; border: 0; }
  .ta-mark { width: auto; }
}
