.result-publish-heading { margin-bottom: 12px; }
.result-workflow-steps { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin:0 0 12px; }
.result-workflow-steps article { display:flex; align-items:center; gap:10px; min-height:58px; padding:9px 12px; border:1px solid #d6d7d5; border-radius:7px; background:#f7f7f6; color:#616562; }
.result-workflow-steps article.active { border-color:#e2bd00; background:#fff9dc; color:#171917; }
.result-workflow-steps article.complete { border-color:#9bdbc2; background:#ecf8f2; color:#095c42; }
.result-workflow-steps article>b { display:grid; place-items:center; width:27px; height:27px; border-radius:50%; background:#e3e4e2; }
.result-workflow-steps article.active>b { background:#f8cf08; }
.result-workflow-steps article.complete>b { background:#cceedd; }
.result-workflow-steps span { display:flex; flex-direction:column; line-height:1.1; }
.result-workflow-steps small { margin-top:4px; font-size:.72rem; }
.result-source-upload { border-top:3px solid #f1ca00; }
.result-upload-controls { display:grid; grid-template-columns:1.2fr .8fr 1.6fr auto; gap:10px; align-items:end; }
.result-upload-controls label { display:flex; flex-direction:column; gap:5px; font-weight:700; }
.result-upload-controls select,.result-upload-controls input { min-height:38px; }
.result-source-rule { margin:12px 0 0; padding:9px 11px; border-left:3px solid #f1ca00; background:#f5f5f3; }
.result-import-layout { display:grid; grid-template-columns:minmax(235px,285px) minmax(0,1fr); gap:12px; margin-top:12px; align-items:start; }
.result-import-queue { position:sticky; top:12px; padding:12px; }
.result-import-queue>button { width:100%; display:flex; justify-content:space-between; align-items:flex-start; gap:8px; text-align:left; padding:10px; border:1px solid transparent; border-top-color:#dededb; background:transparent; }
.result-import-queue>button:hover,.result-import-queue>button.active { background:#fff9dc; border-color:#e2bd00; }
.result-import-queue>button span:first-child { min-width:0; display:flex; flex-direction:column; }
.result-import-queue>button strong { overflow-wrap:anywhere; }
.result-import-queue>button small { margin-top:4px; color:#676b68; }
.result-import-main { display:grid; gap:12px; min-width:0; }
.result-check-kpis { display:grid; grid-template-columns:repeat(5,1fr); border:1px solid #dddeda; border-radius:6px; overflow:hidden; }
.result-check-kpis span { padding:9px 12px; border-right:1px solid #dddeda; background:#fafafa; }
.result-check-kpis span:last-child { border:0; }
.result-check-kpis b { display:block; font-size:1.25rem; }
.result-check-kpis .good { background:#edf8f3; color:#096044; }
.result-check-kpis .bad { background:#fff0ef; color:#a1221d; }
.result-review-table { max-height:560px; }
.result-review-table table { min-width:1320px; }
.result-review-table th { position:sticky; top:0; z-index:2; background:#fff; }
.result-review-table input:not([type=checkbox]),.result-review-table select { min-width:94px; width:100%; }
.result-review-table td:nth-child(5) { min-width:195px; }
.result-review-table td:nth-child(11) { min-width:260px; }
.result-review-table tr.unmatched td { background:#fff2f0; }
.result-review-table tr.excluded td { opacity:.55; background:#f4f4f3; }
.result-review-table td small { display:block; margin-top:4px; }
.result-review-save { display:flex; align-items:center; gap:12px; margin-top:10px; }
.result-publish-panel { display:flex; justify-content:space-between; gap:24px; align-items:center; border-left:4px solid #c3483e; }
.result-publish-panel.ready { border-left-color:#12936a; background:#f5fbf8; }
.result-publish-panel p { margin-bottom:0; }
.result-publish-action { display:grid; gap:9px; justify-items:end; min-width:min(100%,430px); }
.result-publish-action label:not(.approval-check) { width:100%; display:grid; gap:4px; font-weight:700; }
.approval-check { display:flex; gap:7px; align-items:flex-start; }
.result-pdf-preview summary,.manual-results-panel>summary { cursor:pointer; font-weight:800; padding:4px; }
.result-pdf-preview iframe { width:100%; height:720px; border:1px solid #d4d5d2; margin-top:10px; }
.manual-results-panel { margin-top:12px; }
.manual-results-panel[open]>summary { margin-bottom:14px; }

@media (max-width: 1000px) {
  .result-upload-controls { grid-template-columns:1fr 1fr; }
  .result-import-layout { grid-template-columns:1fr; }
  .result-import-queue { position:static; }
  .result-publish-panel { align-items:flex-start; flex-direction:column; }
  .result-publish-action { width:100%; justify-items:start; }
}
@media (max-width: 680px) {
  .result-workflow-steps { grid-template-columns:1fr 1fr; }
  .result-upload-controls,.result-check-kpis { grid-template-columns:1fr; }
  .result-check-kpis span { border-right:0; border-bottom:1px solid #dddeda; }
}
