.adaptation-workspace { margin-top: 12px; }
.adaptation-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.adaptation-filters .field { min-width: 180px; flex: 1 1 200px; }
.adaptation-message { min-height: 22px; margin: 4px 0; color: var(--warning, #ad6200); font-size: 13px; }
.adaptation-source-facts { margin:4px 0 0; overflow-wrap:anywhere; color:#606266; font-size:12px; line-height:18px; }
#adapt-training-origin { margin-bottom:18px; padding-bottom:12px; border-bottom:1px solid #e4e7ed; }
#adapt-training-status { margin:0 0 8px; overflow-wrap:anywhere; line-height:22px; color:#606266; }
.adaptation-count { margin: 10px 0 0; color: var(--gray-600, #666); font-size: 13px; }
.adaptation-editor, .adaptation-detail { margin-top: 12px; }
.adaptation-editor .action-group { margin-top: 16px; }
.reference-dialog.reference-wide > #adapt-editor { display:flex; flex-direction:column; overflow:hidden; }
#adapt-form { display:flex; flex:1 1 auto; flex-direction:column; min-height:0; overflow:hidden; }
.adaptation-form-body { flex:1 1 auto; min-height:0; overflow:auto; padding-right:4px; }
.adaptation-form-body > .reference-actions { margin-bottom:18px; }
.adaptation-form-body > .field { margin-top:20px; }
#adapt-scheduling { flex:1 1 220px; min-width:0; }
#adapt-scheduling-status { overflow-wrap:anywhere; color:#606266; line-height:22px; }
#adapt-form .adaptation-form-footer { flex:0 0 auto; display:flex; justify-content:flex-end; gap:8px; margin-top:8px; padding-top:12px; border-top:1px solid #e4e7ed; }
.adaptation-form-footer .btn { flex:none; white-space:nowrap; }
#adapt-editor-message { flex:0 0 auto; overflow-wrap:anywhere; }
.adaptation-detail .desc { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 8px 16px; }
.adaptation-detail .desc dt { color: var(--gray-600, #666); }
.adaptation-detail .desc dd { margin: 0; overflow-wrap: anywhere; }
.adaptation-detail .action-group { margin-top: 16px; flex-wrap: wrap; }
.adaptation-resource-summary, #adapt-resource-fields { display:grid; grid-template-columns:132px minmax(0,1fr); gap:8px 16px; margin:0 0 18px; }
.adaptation-resource-summary dt, #adapt-resource-fields dt { margin:0; color:#606266; line-height:22px; }
.adaptation-resource-summary dd, #adapt-resource-fields dd { margin:0; overflow-wrap:anywhere; line-height:22px; }
#adapt-resource-form > .field { margin-bottom:16px; }
.reference-dialog.reference-wide > #adapt-resource-detail { display:flex; flex-direction:column; overflow:hidden; }
.adaptation-resource-body { flex:1 1 auto; min-height:0; overflow:auto; }
.adaptation-resource-footer { flex:0 0 auto; justify-content:flex-end; margin-top:12px; padding-top:12px; border-top:1px solid #e4e7ed; }
.reference-dialog > #adapt-compatibility-form,
.reference-dialog > #adapt-release-form,
.reference-dialog > #adapt-candidate-form,
.reference-dialog > #adapt-evaluation-form,
.reference-dialog > #adapt-precision-form,
.reference-dialog > #adapt-rebase-form,
.reference-dialog > #adapt-source-check-form,
.reference-dialog.reference-wide > #adapt-precision-report,
.reference-dialog.reference-wide > #adapt-input-form,
.reference-dialog.reference-wide > #adapt-input-report,
.reference-dialog.reference-wide > #adapt-label-form,
.reference-dialog.reference-wide > #adapt-label-report,
.reference-dialog.reference-wide > #adapt-evaluation-history,
.reference-dialog.reference-wide > #adapt-compatibility-history,
.reference-dialog.reference-wide > #adapt-compatibility-report { display:flex; flex-direction:column; min-height:0; overflow:hidden; }
#adapt-compatibility-checks td { white-space:normal; overflow-wrap:anywhere; vertical-align:top; }
#adapt-compatibility-report table { table-layout:fixed; min-width:0; width:100%; }
#adapt-compatibility-report th:first-child { width:110px; }
#adapt-compatibility-report th:nth-child(2) { width:75px; }
#adapt-compatibility-report h3 { font-size:15px; margin:16px 0 12px; }
#adapt-compatibility-history table { min-width:650px; }
#adapt-resource-detail table { min-width:850px; }
#adapt-release-rows td { white-space:normal; overflow-wrap:anywhere; max-width:260px; }
#adapt-release-rows td:nth-child(2) { white-space:nowrap; min-width:80px; }
#adapt-evaluation-form .field { margin-bottom:16px; }
#adapt-evaluation-data-status { overflow-wrap:anywhere; line-height:22px; }
#adapt-evaluation-history table { min-width:760px; }
#adapt-evaluation-history h3 { font-size:15px; margin:16px 0 12px; }
#adapt-evaluation-form { max-height:calc(100dvh - 220px); }
#adapt-input-form .field { margin-bottom:16px; min-width:0; }
#adapt-input-form h3, #adapt-input-report h3 { font-size:15px; margin:16px 0 12px; }
#adapt-input-report table { min-width:620px; }
#adapt-input-report td { white-space:normal; overflow-wrap:anywhere; vertical-align:top; }
#adapt-label-form .field { margin-bottom:16px; min-width:0; }
#adapt-label-form h3, #adapt-label-report h3 { font-size:15px; margin:16px 0 12px; }
#adapt-label-data-status { overflow-wrap:anywhere; line-height:22px; }
#adapt-label-report table { min-width:640px; }
#adapt-label-report td { white-space:normal; overflow-wrap:anywhere; vertical-align:top; }
#adapt-precision-report table { min-width:620px; }
#adapt-precision-report h3 { font-size:15px; margin:16px 0 12px; }
#adapt-precision-form { max-height:calc(100dvh - 180px); }
#adapt-source-check-summary { overflow-wrap:anywhere; line-height:22px; margin-bottom:16px; }
#adapt-source-check-file { max-width:100%; }
@media (max-width: 600px) {
  .adaptation-filters .field { flex-basis: 100%; }
  .adaptation-detail .desc { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .adaptation-detail .desc dd { margin-bottom: 8px; }
  .adaptation-resource-summary, #adapt-resource-fields { grid-template-columns:minmax(0,1fr); gap:4px; }
  .adaptation-resource-summary dd, #adapt-resource-fields dd { margin-bottom:8px; }
  #adapt-compatibility-report th:first-child { width:84px; }
  #adapt-compatibility-report th:nth-child(2) { width:60px; }
}
