.autopilot-workflow { overflow: hidden; }
.autopilot-head,
.autopilot-result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.autopilot-head { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.autopilot-title { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 850; }
.autopilot-subtitle,
.autopilot-result-meta,
.autopilot-row-meta { color: #64748b; font-size: 11px; line-height: 1.4; margin-top: 3px; overflow-wrap: anywhere; }
.autopilot-head-actions,
.autopilot-result-actions,
.autopilot-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.autopilot-config { padding: 14px 20px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.autopilot-config-head,
.autopilot-config-actions { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; min-width: 0; }
.autopilot-config-head > div,
.autopilot-config-actions > * { min-width: 0; }
.autopilot-config-core { display: grid; grid-template-columns: .8fr 1.5fr .75fr .9fr .8fr; gap: 0; margin-top: 12px; border-block: 1px solid #dbe3ec; }
.autopilot-config-control { min-width: 0; margin: 0; padding: 10px 12px; border: 0; border-right: 1px solid #dbe3ec; color: #475569; font-size: 10px; font-weight: 800; }
.autopilot-config-control:last-child { border-right: 0; }
.autopilot-config-control > span:first-child,
.autopilot-config-advanced-grid label > span { display: block; margin-bottom: 5px; color: #64748b; font-size: 10px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.autopilot-toggle .form-switch { display: flex; align-items: center; gap: 7px; min-height: 31px; margin: 0; padding-left: 2.5em; color: #334155; font-size: 11px; }
.autopilot-market-options legend { float: none; width: auto; margin: 0 0 5px; color: #64748b; font-size: 10px; font-weight: 800; }
.autopilot-market-options label { display: inline-flex; align-items: center; gap: 3px; margin: 3px 10px 2px 0; color: #334155; font-size: 10.5px; font-weight: 650; white-space: normal; }
.autopilot-config input,
.autopilot-config select { min-width: 0; }
.autopilot-config fieldset:disabled { opacity: .72; }
.autopilot-config-advanced { margin-top: 9px; }
.autopilot-config-advanced summary { width: fit-content; color: #475569; cursor: pointer; font-size: 11px; font-weight: 800; }
.autopilot-config-advanced-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #dbe3ec; }
.autopilot-config-advanced-grid label { min-width: 0; margin: 0; }
.autopilot-exploration-control { grid-column: 1 / -1; min-width: 0; padding: 10px 0 2px; border-block: 1px solid #dbe3ec; }
.autopilot-exploration-head,
.autopilot-exploration-result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; min-width: 0; }
.autopilot-exploration-head > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.autopilot-exploration-head .form-switch { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; min-height: 24px; margin: 0; padding-left: 2.5em; color: #334155; font-size: 11px; font-weight: 800; }
.autopilot-exploration-fields { display: grid; grid-template-columns: minmax(150px, .35fr) minmax(0, 1fr); gap: 10px 14px; align-items: end; margin-top: 9px; }
.autopilot-exploration-fields label { min-width: 0; }
.autopilot-exploration-fields label > span:first-child { display: block; margin-bottom: 5px; color: #64748b; font-size: 10px; font-weight: 800; line-height: 1.25; }
.autopilot-exploration-note { min-width: 0; padding-bottom: 5px; color: #64748b; font-size: 10.5px; line-height: 1.4; overflow-wrap: anywhere; }
.autopilot-exploration-confirm { display: flex; align-items: flex-start; gap: 6px; min-width: 0; margin: 8px 0 9px; padding: 8px 10px; border-left: 3px solid #d97706; background: #fffbeb; color: #92400e; font-size: 10.5px; line-height: 1.45; overflow-wrap: anywhere; }
.autopilot-exploration-confirm input { flex: 0 0 auto; margin-top: 2px; }
.autopilot-source-policy { grid-column: 1 / -1; min-width: 0; padding-bottom: 2px; border-bottom: 1px solid #dbe3ec; }
.autopilot-source-policy-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; min-width: 0; }
.autopilot-source-policy-head > div { min-width: 0; }
.autopilot-source-policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 9px; border-block: 1px solid #dbe3ec; }
.autopilot-source-option { min-width: 0; margin: 0; padding: 9px 10px; border: 0; border-right: 1px solid #dbe3ec; border-bottom: 1px solid #dbe3ec; }
.autopilot-source-option:nth-child(2n) { border-right: 0; }
.autopilot-source-option:last-child { border-right: 0; }
.autopilot-source-option:nth-last-child(-n + 2) { border-bottom: 0; }
.autopilot-source-option legend { float: none; display: flex; align-items: baseline; gap: 6px; width: 100%; min-width: 0; margin: 0 0 6px; color: #334155; font-size: 10.5px; line-height: 1.25; }
.autopilot-source-option legend strong { flex: 0 0 auto; font-weight: 850; }
.autopilot-source-option legend span { min-width: 0; color: #64748b; font-size: 9px; font-weight: 650; overflow-wrap: anywhere; }
.autopilot-source-segments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; border: 1px solid #cbd5e1; border-radius: 6px; overflow: hidden; }
.autopilot-source-segments label { position: relative; min-width: 0; cursor: pointer; }
.autopilot-source-segments input { position: absolute; width: 1px; height: 1px; margin: -1px; opacity: 0; overflow: hidden; }
.autopilot-source-segments label span { display: block; min-width: 0; margin: 0; padding: 6px 5px; border-right: 1px solid #cbd5e1; background: #fff; color: #64748b; font-size: 9.5px; font-weight: 750; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.autopilot-source-segments label:last-child span { border-right: 0; }
.autopilot-source-segments input[value="default"]:checked + span { background: #eef2f7; color: #334155; }
.autopilot-source-segments input[value="allow"]:checked + span { background: #f0fdf4; color: #166534; }
.autopilot-source-segments input[value="exclude"]:checked + span { background: #fef2f2; color: #b91c1c; }
.autopilot-source-segments input:focus-visible + span { position: relative; z-index: 1; outline: 2px solid #2563eb; outline-offset: -2px; }
.autopilot-source-segments input:disabled + span { cursor: default; }
.autopilot-config-actions { align-items: center; margin-top: 11px; color: #64748b; font-size: 10.5px; line-height: 1.4; overflow-wrap: anywhere; }
.autopilot-config-actions > span:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.autopilot-config-review { display: grid; grid-template-columns: 1fr minmax(260px, .8fr); gap: 14px; align-items: center; margin-top: 12px; padding: 10px 12px; border-left: 3px solid #2563eb; background: #eff6ff; }
.autopilot-config-confirm { min-width: 0; color: #1e40af; font-size: 10.5px; line-height: 1.4; overflow-wrap: anywhere; }
.autopilot-config-confirm label { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 7px; }
.autopilot-config-confirm input { flex: 0 0 auto; margin-top: 2px; }
.autopilot-config-confirm .btn { width: 100%; }
.autopilot-body { padding: 16px 20px 18px; }
.autopilot-policy-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.autopilot-policy-item,
.autopilot-summary-item { min-width: 0; padding: 10px 12px; border-right: 1px solid #e2e8f0; }
.autopilot-policy-item:last-child,
.autopilot-summary-item:last-child { border: 0; }
.autopilot-policy-label,
.autopilot-summary-label,
.autopilot-row-label { color: #64748b; font-size: 10px; font-weight: 800; line-height: 1.2; }
.autopilot-policy-value { margin-top: 4px; font-size: 13px; font-weight: 850; overflow-wrap: anywhere; }
.autopilot-status { display: flex; gap: 8px; margin-top: 10px; padding: 9px 11px; border-left: 3px solid #94a3b8; background: #f8fafc; color: #475569; font-size: 11px; line-height: 1.4; }
.autopilot-status.loading { border-color: #2563eb; background: #eff6ff; color: #1e40af; }
.autopilot-status.ready { border-color: #16a34a; background: #f0fdf4; color: #166534; }
.autopilot-status.attention { border-color: #d97706; background: #fffbeb; color: #92400e; }
.autopilot-status.error { border-color: #dc2626; background: #fef2f2; color: #b91c1c; }
.autopilot-runs { min-width: 0; margin-top: 14px; padding-block: 13px; border-block: 1px solid #dbe3ec; }
.autopilot-runs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; min-width: 0; }
.autopilot-runs-head > div { min-width: 0; }
.autopilot-runs-head .autopilot-result-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.autopilot-runs-head .btn { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; white-space: nowrap; }
.autopilot-runs-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 10px; border-block: 1px solid #e2e8f0; }
.autopilot-runs-summary-item { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; min-width: 0; padding: 8px 11px; border-right: 1px solid #e2e8f0; color: #64748b; font-size: 10px; font-weight: 750; }
.autopilot-runs-summary-item:last-child { border-right: 0; }
.autopilot-runs-summary-item span { min-width: 0; overflow-wrap: anywhere; }
.autopilot-runs-summary-item strong { flex: 0 0 auto; color: #334155; font-size: 15px; font-weight: 850; font-variant-numeric: tabular-nums; }
.autopilot-runs-summary-item strong.loading { color: #1d4ed8; }
.autopilot-runs-summary-item strong.completed { color: #15803d; }
.autopilot-runs-summary-item strong.skipped { color: #64748b; }
.autopilot-runs-summary-item strong.retry { color: #b45309; }
.autopilot-runs-state { display: flex; align-items: center; gap: 7px; min-width: 0; margin-top: 9px; padding: 9px 10px; border-left: 3px solid #2563eb; background: #eff6ff; color: #1e40af; font-size: 10.5px; line-height: 1.4; overflow-wrap: anywhere; }
.autopilot-runs-state > span { min-width: 0; }
.autopilot-runs-state.empty { border-color: #94a3b8; background: #f8fafc; color: #475569; }
.autopilot-runs-state.error { border-color: #dc2626; background: #fef2f2; color: #b91c1c; }
.autopilot-runs-list { min-width: 0; margin-top: 8px; border-top: 1px solid #e5e7eb; }
.autopilot-run-row { display: grid; grid-template-columns: minmax(112px, .48fr) repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; min-width: 0; padding: 10px 4px; border-bottom: 1px solid #e5e7eb; }
.autopilot-run-row > div { min-width: 0; }
.autopilot-run-primary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.autopilot-run-dot { flex: 0 0 auto; width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; background: #94a3b8; box-shadow: 0 0 0 1px #94a3b8; }
.autopilot-run-row.status-loading .autopilot-run-dot { background: #2563eb; box-shadow: 0 0 0 1px #2563eb; }
.autopilot-run-row.status-completed .autopilot-run-dot { background: #16a34a; box-shadow: 0 0 0 1px #16a34a; }
.autopilot-run-row.status-skipped .autopilot-run-dot { background: #64748b; box-shadow: 0 0 0 1px #64748b; }
.autopilot-run-row.status-retry .autopilot-run-dot { background: #d97706; box-shadow: 0 0 0 1px #d97706; }
.autopilot-run-group { min-width: 0; }
.autopilot-run-metrics { display: flex; flex-wrap: wrap; gap: 4px 9px; min-width: 0; margin-top: 5px; color: #334155; font-size: 10px; line-height: 1.35; }
.autopilot-run-metrics span { white-space: normal; overflow-wrap: anywhere; }
.autopilot-run-metrics .positive { color: #166534; font-weight: 800; }
.autopilot-run-metrics .review { color: #9a3412; font-weight: 800; }
.autopilot-run-metrics .blocked { color: #b91c1c; font-weight: 800; }
.autopilot-run-context { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px 12px; min-width: 0; margin: 0; padding: 9px 0 0; border-top: 1px dashed #dbe3ec; }
.autopilot-run-context > div { min-width: 0; }
.autopilot-run-context dt { color: #64748b; font-size: 9.5px; font-weight: 800; line-height: 1.25; }
.autopilot-run-context dd { min-width: 0; margin: 3px 0 0; color: #334155; font-size: 10px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.autopilot-run-context code { color: inherit; font-size: inherit; }
.autopilot-chip.loading { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.autopilot-chip.completed { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.autopilot-chip.skipped { border-color: #cbd5e1; background: #f8fafc; color: #475569; }
.autopilot-chip.retry { border-color: #fed7aa; background: #fff7ed; color: #9a3412; }
.autopilot-chip.positive { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.autopilot-recommendations { min-width: 0; margin-top: 14px; padding-block: 13px; border-block: 1px solid #dbe3ec; }
.autopilot-recommendations-head,
.autopilot-recommendation-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; min-width: 0; }
.autopilot-recommendations-head > div { min-width: 0; }
.autopilot-recommendations-head .autopilot-result-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.autopilot-recommendations-head .btn { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; white-space: nowrap; }
.autopilot-recommendation-toolbar { align-items: end; margin-top: 10px; }
.autopilot-recommendation-filters { display: grid; grid-template-columns: repeat(2, minmax(128px, 190px)); gap: 8px; min-width: 0; }
.autopilot-recommendation-filters label { min-width: 0; margin: 0; }
.autopilot-recommendation-filters label > span { display: block; margin-bottom: 4px; color: #64748b; font-size: 10px; font-weight: 800; }
.autopilot-recommendation-safety { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; padding-bottom: 6px; color: #166534; font-size: 10px; font-weight: 800; }
.autopilot-recommendation-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 10px; border-block: 1px solid #e2e8f0; }
.autopilot-recommendation-summary-item { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; min-width: 0; padding: 8px 11px; border-right: 1px solid #e2e8f0; color: #64748b; font-size: 10px; font-weight: 750; }
.autopilot-recommendation-summary-item:last-child { border-right: 0; }
.autopilot-recommendation-summary-item strong { flex: 0 0 auto; color: #334155; font-size: 15px; font-weight: 850; font-variant-numeric: tabular-nums; }
.autopilot-recommendation-summary-item strong.loading { color: #1d4ed8; }
.autopilot-recommendation-summary-item strong.review { color: #9a3412; }
.autopilot-recommendation-summary-item strong.ready { color: #15803d; }
.autopilot-recommendation-summary-item strong.risk { color: #b91c1c; }
.autopilot-recommendation-state { display: flex; align-items: center; gap: 7px; min-width: 0; margin-top: 9px; padding: 9px 10px; border-left: 3px solid #2563eb; background: #eff6ff; color: #1e40af; font-size: 10.5px; line-height: 1.4; overflow-wrap: anywhere; }
.autopilot-recommendation-state.empty { border-color: #94a3b8; background: #f8fafc; color: #475569; }
.autopilot-recommendation-state.error { border-color: #dc2626; background: #fef2f2; color: #b91c1c; }
.autopilot-recommendation-list { min-width: 0; margin-top: 8px; border-top: 1px solid #e5e7eb; }
.autopilot-recommendation-row { display: grid; grid-template-columns: minmax(190px, .9fr) minmax(220px, 1.2fr) minmax(250px, .9fr); gap: 14px; align-items: center; min-width: 0; padding: 11px 4px 11px 9px; border-bottom: 1px solid #e5e7eb; border-left: 3px solid #94a3b8; }
.autopilot-recommendation-row.kind-pause_review { border-left-color: #dc2626; }
.autopilot-recommendation-row.kind-reprice_review,
.autopilot-recommendation-row.kind-content_review { border-left-color: #d97706; }
.autopilot-recommendation-row.kind-keep_scale { border-left-color: #16a34a; }
.autopilot-recommendation-row > div { min-width: 0; }
.autopilot-recommendation-title { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; }
.autopilot-recommendation-reasons .autopilot-insight-list { margin-top: 5px; }
.autopilot-recommendation-action-cell { display: flex; justify-content: flex-end; }
.autopilot-recommendation-action-cell[tabindex="-1"]:focus { outline: 2px solid #0f172a; outline-offset: 3px; }
.autopilot-recommendation-actions { display: grid; grid-template-columns: repeat(3, minmax(58px, auto)); gap: 5px; min-width: 0; }
.autopilot-recommendation-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 32px; white-space: nowrap; }
.autopilot-operation-draft { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 5px 7px; width: 100%; min-height: 48px; color: #64748b; font-size: 10px; font-weight: 750; line-height: 1.4; text-align: right; overflow-wrap: anywhere; }
.autopilot-operation-draft > span:last-child { flex-basis: 100%; }
.autopilot-operation-draft .btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 40px; white-space: normal; }
.autopilot-operation-draft .btn:focus-visible { outline: 2px solid #0f172a; outline-offset: 2px; }
.autopilot-operation-draft.ready { color: #166534; }
.autopilot-operation-draft.target-selection { align-items: stretch; min-width: min(100%, 250px); }
.autopilot-operation-targets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; }
.autopilot-operation-targets legend { width: 100%; margin: 0 0 3px; color: #475569; font-size: 10px; font-weight: 800; text-align: inherit; }
.autopilot-operation-target-choice { position: relative; display: block; min-width: 0; margin: 0; cursor: pointer; }
.autopilot-operation-target-choice input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.autopilot-operation-target-choice span { display: flex; align-items: center; justify-content: center; min-height: 34px; padding: 5px 7px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #334155; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.autopilot-operation-target-choice input:checked + span { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; box-shadow: inset 0 0 0 1px #2563eb; }
.autopilot-operation-target-choice input:focus-visible + span { outline: 2px solid #0f172a; outline-offset: 2px; }
.autopilot-operation-draft.target-setup,
.autopilot-operation-draft.stale,
.autopilot-operation-draft.expired { color: #9a3412; }
.autopilot-operation-draft.error { color: #b91c1c; }
.autopilot-recommendations[aria-busy="true"] .autopilot-recommendation-list { opacity: .68; }
.autopilot-recommendation-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; margin-top: 10px; }
.autopilot-recommendation-pagination[hidden] { display: none; }
.autopilot-recommendation-pagination .btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; }
.autopilot-recommendation-pagination .btn:focus-visible { outline: 2px solid #0f172a; outline-offset: 2px; }
.autopilot-recommendation-pagination > span { min-width: 72px; color: #475569; font-size: 10.5px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.autopilot-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; border-block: 1px solid #e2e8f0; }
.autopilot-summary-value { margin-top: 4px; font-size: 20px; font-weight: 850; }
.autopilot-summary-value.ready { color: #15803d; }
.autopilot-summary-value.rejected { color: #b45309; }
.autopilot-result-head { margin-top: 16px; }
.autopilot-result-title,
.autopilot-row-title { font-size: 12px; font-weight: 850; line-height: 1.35; overflow-wrap: anywhere; }
.autopilot-list { margin-top: 8px; border-top: 1px solid #e5e7eb; }
.autopilot-row { display: grid; grid-template-columns: 1.4fr 1fr .9fr .8fr; gap: 12px; padding: 11px 4px; border-bottom: 1px solid #e5e7eb; }
.autopilot-row > div { min-width: 0; }
.autopilot-row-copy { color: #334155; font-size: 11px; line-height: 1.4; margin-top: 4px; overflow-wrap: anywhere; }
.autopilot-exploration-result { min-width: 0; margin-top: 14px; padding-top: 14px; border-top: 2px solid #fed7aa; }
.autopilot-exploration-result-head > div { min-width: 0; }
.autopilot-row.exploration { padding-inline: 8px; border-left: 3px solid #d97706; background: #fffdf7; }
.autopilot-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; border: 1px solid #dbeafe; border-radius: 999px; background: #eff6ff; color: #1d4ed8; padding: 3px 7px; font-size: 10px; font-weight: 750; white-space: normal; overflow-wrap: anywhere; }
.autopilot-chip.ready { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.autopilot-chip.review { border-color: #fed7aa; background: #fff7ed; color: #9a3412; }
.autopilot-chip.risk { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.autopilot-empty { padding: 16px; border: 1px dashed #cbd5e1; border-radius: 8px; color: #64748b; font-size: 11px; text-align: center; }
.autopilot-insight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e2e8f0; }
.autopilot-insight-item { min-width: 0; }
.autopilot-insight-title { display: flex; align-items: center; gap: 5px; color: #334155; font-size: 11px; font-weight: 850; }
.autopilot-insight-list { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; margin-top: 7px; }
.autopilot-safety-note { display: flex; align-items: flex-start; gap: 7px; min-width: 0; margin-top: 10px; padding: 9px 11px; border-left: 3px solid #d97706; background: #fffbeb; color: #92400e; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.autopilot-apply-band { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; margin-top: 14px; padding: 12px 14px; border: 1px solid #fed7aa; border-left: 4px solid #d97706; border-radius: 8px; background: #fffbeb; }
.autopilot-apply-title { color: #92400e; font-size: 12px; font-weight: 850; }
.autopilot-apply-detail,
.autopilot-apply-check { color: #a16207; font-size: 10.5px; line-height: 1.4; }
.autopilot-apply-action { min-width: 190px; }
.autopilot-apply-action .btn { width: 100%; }

@media (max-width: 992px) {
    .autopilot-policy-grid,
    .autopilot-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .autopilot-config-core { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .autopilot-config-control { border-bottom: 1px solid #dbe3ec; }
    .autopilot-config-advanced-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .autopilot-runs-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .autopilot-runs-summary-item:nth-child(2n) { border-right: 0; }
    .autopilot-runs-summary-item:nth-child(-n + 2) { border-bottom: 1px solid #e2e8f0; }
    .autopilot-run-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .autopilot-run-context { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .autopilot-recommendation-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .autopilot-recommendation-summary-item:nth-child(2n) { border-right: 0; }
    .autopilot-recommendation-summary-item:nth-child(-n + 2) { border-bottom: 1px solid #e2e8f0; }
    .autopilot-recommendation-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .autopilot-recommendation-action-cell { grid-column: 1 / -1; justify-content: flex-start; }
    .autopilot-operation-draft { justify-content: flex-start; text-align: left; }
}

@media (max-width: 768px) {
    .autopilot-head,
    .autopilot-result-head { display: block; }
    .autopilot-head-actions { margin-top: 8px; }
    .autopilot-head-actions,
    .autopilot-result-actions { width: 100%; }
    .autopilot-head-actions .btn,
    .autopilot-result-actions .btn { flex: 1 1 180px; min-width: 0; white-space: normal; }
    .autopilot-insight-grid { grid-template-columns: 1fr; }
    .autopilot-apply-band { grid-template-columns: 1fr; }
    .autopilot-apply-action { min-width: 0; }
    .autopilot-config-head,
    .autopilot-config-actions { display: block; }
    .autopilot-config-head .autopilot-chip-row,
    .autopilot-config-actions > span:last-child { justify-content: flex-start; margin-top: 8px; }
    .autopilot-config-actions .btn { flex: 1 1 150px; min-width: 0; white-space: normal; }
    .autopilot-config-review { grid-template-columns: 1fr; }
    .autopilot-exploration-head { flex-wrap: wrap; }
    .autopilot-exploration-fields { grid-template-columns: 1fr; }
    .autopilot-exploration-result-head { display: block; }
    .autopilot-exploration-result-head > .autopilot-chip { margin-top: 8px; }
    .autopilot-source-policy-head { flex-wrap: wrap; }
    .autopilot-source-policy-grid { grid-template-columns: 1fr; }
    .autopilot-source-option { border-right: 0; }
    .autopilot-source-option:nth-last-child(2) { border-bottom: 1px solid #dbe3ec; }
    .autopilot-run-row { grid-template-columns: 1fr; gap: 9px; }
    .autopilot-run-context { grid-template-columns: 1fr; }
    .autopilot-recommendation-toolbar { display: block; }
    .autopilot-recommendation-safety { margin-top: 8px; }
    .autopilot-recommendation-row { grid-template-columns: 1fr; gap: 9px; }
    .autopilot-recommendation-action-cell { grid-column: auto; }
}

@media (max-width: 576px) {
    .autopilot-workflow .btn { min-height: 44px; }
    .autopilot-head,
    .autopilot-body,
    .autopilot-config { padding-left: 12px; padding-right: 12px; }
    .autopilot-policy-grid,
    .autopilot-summary-grid,
    .autopilot-row,
    .autopilot-config-core,
    .autopilot-config-advanced-grid { grid-template-columns: 1fr; }
    .autopilot-policy-item,
    .autopilot-summary-item { border-right: 0; border-bottom: 1px solid #e2e8f0; }
    .autopilot-config-control { border-right: 0; }
    .autopilot-runs-head { display: block; }
    .autopilot-runs-head .btn { width: 100%; justify-content: center; margin-top: 8px; white-space: normal; }
    .autopilot-runs-summary-item { padding-inline: 8px; }
    .autopilot-recommendations-head { display: block; }
    .autopilot-recommendations-head .btn { width: 100%; justify-content: center; margin-top: 8px; white-space: normal; }
    .autopilot-recommendation-filters { grid-template-columns: 1fr; }
    .autopilot-recommendation-actions { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .autopilot-recommendation-actions .btn { min-width: 0; padding-inline: 6px; white-space: normal; }
    .autopilot-recommendation-pagination .btn { width: 44px; height: 44px; }
    .autopilot-operation-draft .btn { width: 100%; min-height: 44px; }
    .autopilot-operation-targets { grid-template-columns: 1fr; }
    .autopilot-operation-target-choice span { min-height: 44px; }
    .autopilot-recommendation-summary-item { padding-inline: 8px; }
}
