/* Manual starts: selection, transparent commission and durable background progress. */
.manual-selection-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:14px 22px; padding:16px 18px; margin:18px 0; border:1px solid #dce1e8; border-radius:12px; background:#f8fafc; }
.manual-selection-toolbar > p { width:100%; margin:0; color:#536174; font-size:12px; line-height:1.7; }
.manual-select-visible { display:flex; align-items:center; gap:9px; margin:0; font-size:12px; cursor:pointer; }
.manual-selection-summary { display:grid; gap:3px; min-width:0; }
.manual-selection-summary strong { font-size:12px; }
.manual-selection-summary small { font-size:11px; color:#536174; }
.manual-selection-actions { display:flex; gap:14px; align-items:center; margin-left:auto; }
.manual-card-select { display:flex; align-items:center; gap:7px; font-size:11px; margin:0 0 10px; cursor:pointer; grid-column:1 / -1; }
.prompt-card .prompt-card-header:has(.manual-card-select) { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 14px; }
.prompt-card .prompt-card-header > .status { align-self:start; }
.manual-card-select input,.manual-select-visible input,.manual-check-cell input { width:16px; height:16px; flex:0 0 16px; accent-color:#242b36; margin:0; cursor:pointer; }
.manual-check-cell { width:45px; padding-left:16px!important; padding-right:12px!important; text-align:center; }
.manual-jobs-bar { position:fixed; z-index:45; right:24px; bottom:max(24px,env(safe-area-inset-bottom)); width:min(420px,calc(100% - 32px)); max-height:calc(100dvh - 110px); margin:0; border:1px solid #dce1e8; background:#fff; border-radius:14px; overflow:auto; box-shadow:0 8px 36px #20293624,0 2px 6px #2029360c; }
.manual-job-notice { display:flex; gap:14px; padding:16px 18px; align-items:center; }
.manual-job-notice + .manual-job-notice { border-top:1px solid #dce1e8; }
.manual-job-notice > div { flex:1; min-width:0; }
.manual-job-notice strong { display:block; font-size:13px; }
.manual-job-notice p { font-size:12px; color:#536174; line-height:1.65; margin:4px 0 0; }
.manual-job-notice .button { flex-shrink:0; }
.manual-jobs-bar .manual-job-notice { display:grid; grid-template-columns:20px minmax(0,1fr); align-items:start; gap:8px 12px; padding:18px; }
.manual-jobs-bar .manual-job-notice > :first-child { margin-top:2px; width:20px; height:20px; }
.manual-jobs-bar .manual-job-notice p { overflow-wrap:anywhere; }
.manual-jobs-bar .manual-job-notice strong { padding-right:16px; }
.manual-dock-toggle { position:absolute; right:7px; top:7px; width:28px; height:28px; padding:5px; color:#637083; }
.manual-dock-toggle svg.ui-icon { width:14px; height:14px; }
.manual-jobs-bar.manual-jobs-collapsed { width:auto; max-width:calc(100% - 24px); }
.manual-job-chip { display:flex; align-items:center; gap:10px; width:100%; border:0; background:#fff; padding:13px 16px; text-align:left; font-size:12px; font-weight:600; color:#263446; }
.manual-job-chip:hover { background:#f4f6f9; }
.manual-jobs-bar .manual-job-actions { grid-column:2; display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; margin-top:4px; }
.manual-jobs-bar .manual-job-actions .button { margin:0; }
.manual-job-warning { background:#fff9ef; }
.manual-saving-state { display:grid; justify-items:center; gap:14px; padding:28px 18px; border:1px solid #dce3ed; border-radius:12px; background:#f7f9fc; text-align:center; }
.manual-saving-state .manual-spinner { width:32px; height:32px; border-width:3px; }
.manual-saving-state h3 { margin:0; color:#263446; font-size:17px; }
.manual-saving-state p { margin:0; color:#536174; font-size:13px; overflow-wrap:anywhere; }
.manual-saving-warning { border-color:#ead8b9; background:#fff9ef; }
body:has(dialog[open]) .manual-jobs-bar { visibility:hidden; }
#manual-jobs-bar:not([hidden]) ~ .toast-region { top:76px; bottom:auto; }
.manual-selection-actions button[aria-busy="true"] { cursor:default; }
.manual-spinner { display:inline-block; width:18px; height:18px; flex:0 0 18px; border:2px solid #d0d7e2; border-top-color:#344256; border-radius:50%; animation:manual-turn .9s linear infinite; vertical-align:middle; }
@keyframes manual-turn { to { transform:rotate(360deg); } }
#confirm-extra { margin:22px 0; min-width:0; }
.manual-cost-summary { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:16px; background:#f4f6f9; border:1px solid #e2e6ed; border-radius:10px; }
.manual-cost-summary > div { display:grid; gap:6px; }
.manual-cost-summary span { font-size:12px; color:#536174; }
.manual-cost-summary strong { font-size:20px; color:#202936; }
.manual-cost-details { margin-top:16px; }
.manual-cost-details > summary { font-weight:600; font-size:13px; padding:10px 0; cursor:pointer; }
.manual-preview-items { display:grid; gap:0; margin-top:8px; }
.manual-preview-items article { display:flex; justify-content:space-between; gap:16px; padding:15px 0; border-bottom:1px solid #e2e6ed; font-size:12px; }
.manual-preview-items article > div { display:grid; gap:5px; min-width:0; }
.manual-preview-items article > strong { flex-shrink:0; }
.manual-preview-items :is(span,small) { color:#536174; line-height:1.6; overflow-wrap:anywhere; }
.manual-progress-modal { width:min(850px,calc(100vw - 28px)); }
.manual-progress-modal .modal-body { display:grid; gap:18px; min-width:0; }
.manual-progress-modal .modal-body > p { margin:0; line-height:1.7; color:#536174; font-size:13px; }
.manual-progress-lead { display:flex; align-items:center; gap:11px; }
.manual-progress-lead strong { color:#202936; }
.manual-progress-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border:1px solid #e2e6ed; border-radius:10px; padding:16px; gap:15px; }
.manual-progress-metrics > span { display:grid; gap:7px; font-size:12px; color:#536174; }
.manual-progress-metrics strong { color:#202936; font-size:24px; }
.manual-progress-metrics small { font-size:11px; line-height:1.6; overflow-wrap:anywhere; }
.manual-progress-summary { font-weight:600; }
.manual-progress-resume { display:grid; justify-items:start; gap:10px; padding:16px; border:1px solid #dce3ed; border-radius:10px; background:#f7f9fc; }
.manual-progress-resume .button { white-space:normal; text-align:left; }
.manual-progress-resume p,.manual-progress-technical p { margin:0; font-size:12px; line-height:1.7; color:#536174; overflow-wrap:anywhere; }
.manual-progress-technical { border-top:1px solid #e2e6ed; padding-top:14px; }
.manual-progress-technical summary { cursor:pointer; font-size:12px; font-weight:600; color:#536174; }
.manual-progress-technical p { margin-top:10px; }
.manual-progress-items { display:grid; gap:12px; }
.manual-progress-items article { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.8fr) auto; align-items:center; gap:16px; border:1px solid #e2e6ed; border-radius:10px; padding:15px; }
.manual-progress-items article > div { min-width:0; display:grid; gap:7px; font-size:12px; }
.manual-progress-items article :is(span,small) { overflow-wrap:anywhere; }
.manual-progress-items article small { color:#536174; font-size:11px; }
.model-api-version { display:grid; gap:3px; margin-top:7px; font-size:10px; line-height:1.55; color:#5b6473; }
.model-api-version > span { display:block; min-width:0; overflow-wrap:anywhere; }
.model-api-version code { font:inherit; color:#414c5d; }
.model-alias-note { font-size:9px; }
.manual-jobs-bar[hidden],#confirm-extra[hidden] { display:none!important; }
@media (prefers-reduced-motion:reduce) { .manual-spinner { animation:none; border-top-color:#344256; border-right-color:#344256; } }
@media(max-width:720px) {
  .manual-jobs-bar { right:12px; bottom:max(12px,env(safe-area-inset-bottom)); width:calc(100% - 24px); max-height:55dvh; }
  .manual-jobs-bar .manual-job-notice { padding:14px; }
  .manual-selection-toolbar { padding:14px; gap:14px; }
  .manual-selection-actions { width:100%; margin-left:0; justify-content:space-between; flex-wrap:wrap; }
  .manual-selection-actions .button { flex:1; white-space:normal; min-height:40px; }
  .manual-job-notice { flex-wrap:wrap; padding:14px; gap:12px; }
  .manual-job-notice > div { flex-basis:calc(100% - 32px); }
  .manual-job-notice .button { margin-left:30px; }
  .manual-progress-items article { grid-template-columns:minmax(0,1fr); gap:13px; }
  .manual-progress-items article > div:last-child { display:flex; flex-wrap:wrap; gap:16px; }
  .manual-progress-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); padding:12px; gap:14px; }
  .manual-progress-metrics > span { font-size:11px; }
  .manual-progress-metrics strong { font-size:21px; }
  .manual-cost-summary { align-items:flex-start; flex-direction:column; gap:10px; }
  .manual-preview-items article { flex-wrap:wrap; gap:8px; }
  .manual-preview-items article > div { flex-basis:100%; }
  .manual-progress-modal .modal-footer { flex-wrap:wrap; }
  .manual-progress-modal .modal-footer .button { white-space:normal; }
}
