.batch-results-page { min-width: 0; max-width: 1440px; margin: 0 auto; }
.batch-results-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.results-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 24px; }
.results-header h1 { margin: 0 0 10px; }
.results-header p { margin: 0; color: var(--color-muted); line-height: 1.6; max-width: 65ch; }
.results-header .tool { white-space: nowrap; padding: 11px 16px; text-decoration: none; font-size: 14px; }
.result-summary { display: flex; gap: 12px 24px; flex-wrap: wrap; padding: 16px 0; border-block: 1px solid var(--color-line); color: var(--color-muted); font-size: 14px; }
.result-summary b { color: var(--color-ink); font-variant-numeric: tabular-nums; margin-right: 4px; }
.result-run-note { font-size: 13px; line-height: 1.6; color: var(--color-muted); margin: 12px 0 0; }
.results-toolbar { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 24px 0 16px; }
.results-toolbar label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; }
.results-toolbar label:first-child { flex: 1 1 260px; }
.results-toolbar label:nth-child(2) { flex: 0 1 235px; }
.results-toolbar input, .results-toolbar select { box-sizing: border-box; width: 100%; min-height: 44px; margin: 0; padding: 10px 12px; font: inherit; font-weight: 400; }
#result-visible { padding-bottom: 13px; font-size: 13px; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.results-table-wrap { border: 1px solid var(--color-line); border-radius: 12px; background: var(--color-surface); overflow: hidden; }
.batch-results-table { border: 0 !important; border-radius: 0 !important; table-layout: fixed; margin: 0; width: 100%; }
.batch-results-table > thead > tr > th { background: var(--color-canvas); padding: 14px 18px; font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.batch-results-table > thead > tr > th:first-child { width: 112px; }
.batch-results-table > thead > tr > th:nth-child(2) { width: 26%; }
.batch-results-table > thead > tr > th:nth-child(4) { width: 24%; }
.batch-results-table > tbody > .result-row > td { padding: 20px 18px 10px; border: 0; vertical-align: top; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; }
.result-photo a { display: block; width: 96px; height: 80px; border-radius: 8px; overflow: hidden; background: var(--color-canvas); }
.result-photo img { display: block; width: 96px; height: 80px; object-fit: contain; }
.result-no-photo { display: grid; height: 100%; place-items: center; color: var(--color-muted); font-size: 12px; }
.result-title { display: block; color: var(--color-ink); font-weight: 600; text-decoration: none; line-height: 1.5; }
.result-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.result-id { display: block; color: var(--color-muted); font-size: 12px; margin-top: 7px; font-variant-numeric: tabular-nums; }
.result-ai > strong { display: block; margin-bottom: 8px; font-weight: 600; }
.result-facts { margin: 0; font-size: 13px; line-height: 1.55; }
.result-facts > div { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 7px; margin-top: 4px; }
.result-facts dt { color: var(--color-muted); }
.result-facts dd { margin: 0; }
.result-badge { display: inline-block; padding: 4px 9px; border-radius: 6px; font-weight: 600; font-size: 12px; }
.state-published { background: #e5f6ec; color: #17603b; }
.state-review { background: #fff0ce; color: #785510; }
.state-skipped, .state-pending { background: #edf1f5; color: #465b70; }
.state-error { background: #fdecec; color: #a42d2d; }
.state-retry { background: #e8f2fc; color: #225b92; }
.result-preliminary { display: block; font-size: 11px; color: var(--color-muted); margin-bottom: 6px; }
.result-retry { margin: 10px 0 0; }
.result-retry button { font-size: 12px; padding: 9px 12px; min-height: 40px; }
.result-outcome p { margin: 9px 0 0; color: var(--color-muted); font-size: 13px; line-height: 1.6; }
.batch-results-table > tbody > .result-details-row > td { padding: 0 18px 16px; border-bottom: 1px solid var(--color-line); }
.batch-results-table > tbody:last-child > .result-details-row > td { border-bottom: 0; }
.result-details { margin: 0; }
.result-details > summary { padding: 10px 0 2px; font-size: 13px; color: var(--color-accent); font-weight: 600; cursor: pointer; width: fit-content; min-height: 32px; }
.result-details > summary > span { color: var(--color-muted); font-weight: 400; margin-left: 7px; }
.result-details-body { margin-top: 16px; padding: 20px; border: 1px solid var(--color-line); border-radius: 8px; background: var(--color-canvas); }
.result-details-body > section + section { margin-top: 28px; }
.result-details-body h3 { font-size: 15px !important; font-weight: 600 !important; margin: 0 0 12px; }
.result-fields-scroll { overflow-x: auto; border: 1px solid var(--color-line); border-radius: 8px; }
.result-fields { border: 0 !important; border-radius: 0 !important; table-layout: fixed; margin: 0; min-width: 520px; font-size: 13px; }
.result-fields th, .result-fields td { white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px; line-height: 1.6; }
.result-fields thead th { font-size: 12px; text-transform: none; letter-spacing: 0; background: var(--color-canvas); }
.result-fields th:first-child { width: 20%; }
.result-fields tbody th { font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.result-fields small { display: block; color: var(--color-muted); font-size: 11px; font-weight: 400; margin-top: 4px; }
.result-fields .field-changed { background: #eef6ff; }
.result-technical, .result-stage pre { font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; max-width: 100%; }
.result-technical { color: var(--color-muted); margin: 0; }
.result-empty-note { color: var(--color-muted); font-size: 13px; line-height: 1.6; }
.result-stage { margin: 0; border-top: 1px solid var(--color-line); }
.result-stage > summary { padding: 13px 0; font-size: 13px; cursor: pointer; }
.result-stage pre { margin: 0 0 16px; padding: 16px; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 6px; max-height: 420px; overflow: auto; }
.result-debug-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.result-debug-tools button { font-size: 12px; padding: 9px 12px; min-height: 40px; }
.copy-status { color: var(--color-muted); font-size: 12px; }
.results-empty { padding: 28px; color: var(--color-muted); text-align: center; font-size: 14px; }
.result-item[hidden], .results-empty[hidden] { display: none !important; }
.batch-results-page :is(summary,button,a,pre):focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 3px; }
@media (max-width: 1100px) {
  .batch-results-table > thead > tr > th, .batch-results-table > tbody > .result-row > td { padding-left: 12px; padding-right: 12px; }
  .batch-results-table > thead > tr > th:first-child { width: 92px; }
  .result-photo a, .result-photo img { width: 76px; height: 72px; }
}
@media (max-width: 760px) {
  .results-header { flex-direction: column; gap: 16px; }
  .results-header h1 { font-size: 24px; }
  .results-header p { font-size: 14px; }
  .result-summary { gap: 10px 18px; font-size: 13px; }
  .results-toolbar { gap: 12px; }
  .results-toolbar label:first-child, .results-toolbar label:nth-child(2) { flex-basis: 100%; }
  #result-visible { padding: 0; }
  .batch-results-table, .batch-results-table > tbody { display: block; }
  .batch-results-table > thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .batch-results-table > tbody > .result-row { display: grid; grid-template-columns: 56px minmax(0,1fr); column-gap: 12px; padding: 16px 12px 8px; }
  .batch-results-table > tbody > .result-row > td { padding: 0; }
  .result-photo { grid-column: 1; grid-row: 1 / 4; }
  .result-photo a, .result-photo img { width: 56px; height: 64px; }
  .result-product, .result-ai, .result-outcome { grid-column: 2; }
  .result-ai { margin-top: 16px; }
  .result-outcome { margin-top: 16px; }
  .result-facts > div { grid-template-columns: 1fr; gap: 0; margin-top: 6px; }
  .result-facts dt { font-size: 11px; }
  .result-no-photo { font-size: 10px; }
  .result-details-row, .result-details-row > td { display: block; }
  .batch-results-table > tbody > .result-details-row > td { padding: 0 12px 14px; }
  .result-details-body { padding: 12px; }
  .result-fields { min-width: 460px; }
  .result-fields-scroll { max-width: 100%; }
}
