#evaluations-prototype .eval-inline { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#evaluations-prototype .eval-comparison-controls { margin: 18px 0; }
#evaluations-prototype .eval-config-panel { margin-bottom: 14px; }
#evaluations-prototype .eval-config-body { padding: 16px; }
#evaluations-prototype .eval-config-body > p { margin: 12px 0 0; }
#evaluations-prototype .eval-model-actions { gap: 12px; }
#evaluations-prototype .eval-selection-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
#evaluations-prototype .eval-selection-bar[hidden] { display: none; }
#eval-list table th:first-child { width: 40px; }
#eval-list table td:last-child { min-width: 140px; }
#eval-list table td:last-child .action-button { margin: 3px 0; }
#eval-list .project-title-button:disabled { cursor: default; }
#eval-list .project-title-button:disabled:hover { color: inherit; text-decoration: none; }
#eval-list .project-title-button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 2px; }
#evaluations-prototype .eval-row-actions { display: flex; flex-wrap: wrap; gap: 4px 8px; }
#evaluations-prototype .eval-row-actions > .button-primary { padding: 6px 10px; font-size: 12px; }
#evaluations-prototype .eval-data-dialog { padding: 20px; width: min(1180px, calc(100vw - 32px)); }
#evaluations-prototype .eval-run-picker { margin: 16px 0; }
#evaluations-prototype .eval-response-table { table-layout: fixed; min-width: 1000px; width: 100%; }
#evaluations-prototype .eval-response-table th:first-child { width: 120px; }
#evaluations-prototype .eval-response-table td { vertical-align: top; }
#evaluations-prototype .eval-response-table .status-badge { display: inline-block; margin-top: 8px; }
#evaluations-prototype .eval-response-cell { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
#eval-publish-judge { margin-top: 12px; }
#evaluations-prototype .eval-config { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px 16px; font-size: 12px; }
#evaluations-prototype .eval-config dt { color: var(--muted); }
#evaluations-prototype .eval-config dd { margin: 0; overflow-wrap: anywhere; }
#evaluations-prototype .eval-excerpt { max-width: 420px; white-space: normal; line-height: 1.5; }
#evaluations-prototype .eval-responses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
#evaluations-prototype .eval-response, #evaluations-prototype .eval-preview-box { border: 1px solid var(--border); border-radius: 8px; padding: 16px; }
#evaluations-prototype .eval-response h3 { font-size: 13px; }
#evaluations-prototype .eval-response p, #evaluations-prototype .eval-source p, #eval-preview p { font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
#evaluations-prototype .eval-source { padding: 16px; background: var(--surface-soft); border-radius: 8px; }
#evaluations-prototype summary { cursor: pointer; font-size: 12px; font-weight: 650; }
#evaluations-prototype .eval-form-section { border: 0; border-top: 1px solid var(--border); padding: 18px 0 12px; margin: 16px 0 0; min-width: 0; }
#evaluations-prototype .eval-form-section > legend { padding-right: 12px; font-weight: 650; font-size: 13px; }
#evaluations-prototype .eval-form-section .check-field { margin-top: 10px; }
#evaluations-prototype #eval-preview-count { font-size: 11px; color: var(--muted); align-self: center; }
@media (max-width: 720px) { #evaluations-prototype .eval-responses { grid-template-columns: 1fr; } #evaluations-prototype .eval-selection-bar, #evaluations-prototype .eval-selection-bar .hero-actions, #evaluations-prototype .eval-comparison-controls .hero-actions { flex-wrap: wrap; } }

#eval-inspection .rl-rows-table { min-width: 620px; }
#eval-inspection .rl-rows-table th:first-child { width: 44px; }
#eval-inspection .rl-rows-table th:last-child { width: 100px; }
#eval-inspection .rl-inspection-section > header { flex-wrap: wrap; }
#eval-mapping { margin: 16px 0; }
#eval-fixed-instruction { margin-top: 14px; }
@media (max-width: 720px) { #evaluations-prototype .rl-column-roles { grid-template-columns: 1fr; } }

#eval-judge-details { margin-top: 14px; }
#eval-judge-config { margin-top: 14px; }
#eval-judge-toml { max-height: 360px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }

#eval-file-field .action-group { flex-wrap: wrap; gap: 12px; }
#eval-file-name { overflow-wrap: anywhere; margin: 0; }

/* Native dialog keeps this RL Lab drawer above the evaluation form. */
#eval-row-reader { margin: 0 0 0 auto; padding: 0; height: 100dvh; max-height: 100dvh; max-width: 100vw; border: 0; border-left: 1px solid var(--border); border-radius: 0; overflow: hidden; }
#eval-row-reader:not([open]) { display: none; }
#eval-row-reader .drawer-header { flex-shrink: 0; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
#eval-row-reader .drawer-header > div:first-child { min-width: 0; flex: 1 1 200px; overflow-wrap: anywhere; }

#eval-judge-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; margin: 16px 0; }
#eval-judge-summary dt { color: var(--muted); font-size: 11px; margin-bottom: 6px; }
#eval-judge-summary dd { margin: 0; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }

#evaluations-prototype .status-badge.eval-judge-error-count { display: block; width: fit-content; margin-top: 6px; }
#evaluations-prototype .eval-run-progress { display: grid; gap: 8px; padding: 12px 16px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-soft); font-size: 12px; }
#evaluations-prototype .eval-run-progress progress { width: 100%; height: 8px; accent-color: var(--primary); }

#evaluations-prototype .eval-approval { display: grid; gap: 6px; min-width: 110px; }
#evaluations-prototype .eval-approval progress { width: 100%; height: 8px; accent-color: var(--eval-approval-color); }
#evaluations-prototype .eval-approval-low { --eval-approval-color: var(--red); }
#evaluations-prototype .eval-approval-medium { --eval-approval-color: var(--amber); }
#evaluations-prototype .eval-approval-high { --eval-approval-color: var(--green); }
#evaluations-prototype .eval-approval > strong { color: var(--eval-approval-color); }
