/* 选项确认（确认单）· app/web/confirm.js */
.plan.cf { padding: 12px 16px 14px; }
.cf-head { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; padding-bottom: 6px; }
.cf-head b { font-size: 14.5px; font-weight: 600; }
.cf-head .dim { font-size: 12.5px; }
.cf-steps { display: flex; gap: 6px; list-style: none; margin: 4px 0 6px; padding: 0; font-size: 12px; color: var(--muted); counter-reset: cfs; flex-wrap: wrap; }
.cf-steps li { counter-increment: cfs; display: flex; align-items: center; gap: 5px; }
.cf-steps li::before { content: counter(cfs); width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); font-size: 11px; }
.cf-steps li + li::after { content: none; }
.cf-steps li:not(:last-child) { padding-right: 6px; border-right: 1px solid var(--line); }
.cf-steps li.on { color: var(--ink); font-weight: 600; }
.cf-steps li.on::before { background: var(--accent); color: var(--bg); }
.cf-steps li.done::before { content: "✓"; background: var(--accent-soft); color: var(--accent); }
.cf-steps li.skip { text-decoration: line-through; opacity: .6; }
.cf-row { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.cf-g { flex: 0 0 34px; color: var(--muted); font-size: 13px; padding-top: 6px; }
.cf-vals { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; flex: 1; }
.cf-chip { display: inline-flex; align-items: baseline; gap: 6px; max-width: 100%; border: 1px solid var(--line); background: var(--bg-1, var(--bg)); color: var(--ink);
  border-radius: 8px; padding: 4px 9px; font: inherit; font-size: 13px; cursor: pointer; text-align: left; transition: background .15s, border-color .15s; }
.cf-chip small { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.cf-chip span { overflow-wrap: anywhere; }
.cf-chip:hover, .cf-chip.open { border-color: var(--accent); }
.cf-chip.open { background: var(--accent-soft); }
.cf-chip.ro { cursor: default; background: transparent; border-style: dashed; }
.cf-chip.ro:hover { border-color: var(--line); }
.cf-chip.miss { border-color: var(--warn); }
.cf-chip.miss::after, .cf-chip.check::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); align-self: center; }
.cf-chip.check span { text-decoration: underline dashed var(--warn); text-underline-offset: 3px; }
.cf-chip.warn { border-color: var(--warn); }
.cf-chip.flash { animation: cfFlash 1.6s ease-out 2; }
@keyframes cfFlash { 0% { background: var(--accent-soft); border-color: var(--accent); } 100% { background: transparent; } }
.cf-src { font-style: normal; font-size: 11px; color: var(--muted); border-bottom: 1px dashed var(--muted); white-space: nowrap; }
.cf-cost { font-style: normal; font-size: 11px; color: var(--warn-ink); white-space: nowrap; }
.cf-editor { margin: 4px 0 6px 46px; border: 1px solid var(--accent); border-radius: 10px; padding: 8px 12px 10px; background: var(--bg-1, var(--bg)); }
.cf-ed-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.cf-ed-h .icon-btn { margin-left: auto; }
.cf-opts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cf-opt { border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 12.5px; cursor: pointer; }
.cf-opt i { font-style: normal; color: var(--muted); font-size: 11px; margin-left: 4px; }
.cf-opt i.cf-mark { margin-left: 0; }
.cf-opt:hover { border-color: var(--accent); }
.cf-opt.on { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.cf-opt.on i { color: inherit; opacity: .8; }
.cf-opt:disabled { opacity: .4; cursor: default; }
.cf-numv { min-width: 26px; text-align: center; font-size: 14px; }
.cf-sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.cf-inline { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.cf-inline input { font: inherit; font-size: 13px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); min-width: 0; }
.cf-inline input[type="text"] { flex: 1; min-width: 160px; }
.cf-inline input[type="number"] { width: 72px; }
.cf-note { font-size: 12px; color: var(--muted); margin-top: 6px; }
.cf-note.warn { color: var(--warn-ink); }
.cf-more { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.cf-more summary { cursor: pointer; color: var(--muted); padding: 2px 0 6px; }
.cf-more .cf-editor { margin-left: 0; }
.cf-diff { font-size: 12.5px; color: var(--muted); padding: 6px 0; }
.chatpage:not(.empty-chat):has(#chatConfirm:not([hidden])) .composer-wrap { display: flex; flex-direction: column; max-height: 66%; }
.chatpage:has(#chatConfirm:not([hidden])) .chat-log > .quick { display: none; }
.chatpage .composer-wrap > :not(#chatConfirm) { flex-shrink: 0; }
.chatpage:has(#chatConfirm:not([hidden])) #composer textarea { max-height: clamp(28px, calc(100vh - 470px), 120px); }
#chatConfirm { display: flex; flex-direction: column; width: 100%; min-height: 0; margin-bottom: 8px; }
.cf-asks { display: flex; flex-direction: column; gap: 6px; min-height: 0; max-height: min(320px, 40vh); margin: 0; padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--line)); border-radius: 14px; background: var(--bg-2); }
.cf-asks-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 13.5px; margin-bottom: 4px; }
.cf-asks-h .dim { font-size: 12px; }
.cf-asks .cf-asks-h { margin: 0; flex: none; }
.cf-ask-head { display: flex; flex-direction: column; gap: 6px; flex: none; }
.cf-ask-tabs { display: flex; gap: 4px; flex: none; overflow-x: auto; }
.cf-ask-tabs button[aria-current="step"] { background: var(--accent-soft); color: var(--accent); }
.cf-ask-body { min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; padding: 2px; }
.cf-ask { border: 0; margin: 0; padding: 0; font-size: 13px; min-width: 0; }
.cf-ask legend { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 0; margin-bottom: 4px; }
.cf-ask-hint { margin: 0 0 6px; font-size: 12px; }
.cf-ask-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.cf-ask-options .cf-opt { border-radius: 8px; padding: 6px 8px; text-align: left; min-height: 34px; }
.cf-ask-options .cf-opt span { overflow-wrap: anywhere; }
.cf-ask-options .cf-opt.on { background: var(--accent-soft); color: var(--accent); }
.cf-ask-options .cf-opt.single.on .cf-mark { box-shadow: inset 0 0 0 2px var(--accent-soft); }
.cf-badge { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--bg-3); color: var(--muted); }
.cf-badge.multi { background: var(--accent-soft); color: var(--accent); }
.cf-ask-tools, .cf-asks-act { display: flex; gap: 6px; align-items: center; justify-content: flex-end; font-size: 12px; }
.cf-ask-tools { margin-top: 2px; }
.cf-asks-act { flex: none; }
.cf-ask-tools > span:first-child { flex: 1; }
.cf-ask-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cf-ask-footer { display: flex; align-items: flex-start; gap: 8px; flex: none; }
.cf-ask-note { flex: 1; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 8px; color: var(--muted); }
.cf-ask-note span { padding-top: 5px; }
.cf-ask-note textarea { min-width: 0; min-height: 32px; max-height: 80px; resize: vertical; padding: 5px 8px; font: inherit;
  border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); color: var(--ink); }
.cf-ask-note textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: -1px; }
@media (max-width: 860px) {
  .cf-ask-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cf-ask-note { display: block; }
  .cf-ask-note span { display: none; }
  .cf-ask-note textarea { width: 100%; }
}
@media (max-height: 560px) {
  .chatpage:not(.empty-chat):has(#chatConfirm:not([hidden])) .composer-wrap { max-height: calc(100% - 82px); padding-top: 6px; }
  .chatpage:has(#chatConfirm:not([hidden])) :is(#chatTasks, #wizBar) { display: none; }
  .chatpage:has(#chatConfirm:not([hidden])) .chat-head { min-height: 42px; padding-block: 4px; }
  .cf-asks { max-height: min(235px, 50vh); padding: 8px; gap: 4px; }
  .cf-ask-head { flex-direction: row; align-items: center; }
  .cf-ask-head:has(.cf-ask-tabs) .cf-asks-h :is(b, .cf-ask-total) { display: none; }
  .cf-ask-tabs { min-width: 0; flex: 1; }
  .cf-ask-options .cf-opt { min-height: 30px; padding-block: 4px; }
}
.cf-mark { width: 12px; height: 12px; border: 1.5px solid currentColor; opacity: .55; display: inline-block; margin-right: 6px; vertical-align: -1px; box-sizing: border-box; flex: 0 0 auto; }
.cf-opt { display: inline-flex; align-items: center; }
.cf-opt.single .cf-mark { border-radius: 50%; }
.cf-opt.multi .cf-mark { border-radius: 3px; }
.cf-opt.on .cf-mark { opacity: 1; background: currentColor; box-shadow: inset 0 0 0 2px var(--accent); }
.cf-opt.multi.on .cf-mark { background: none; box-shadow: none; position: relative; }
.cf-opt.multi.on .cf-mark::after { content: ""; position: absolute; left: 3px; top: 0; width: 3px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cf-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cf-appr { border-bottom: 0; }
.cf-pick { padding-top: 4px; }
.cf-pick-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 4px 0 8px; font-size: 13px; }
.cf-pick-h .dim { font-size: 12px; }
.cf-wait { display: flex; gap: 8px; align-items: center; padding: 10px 0; font-size: 13px; }
.cf-wait .spin { width: 14px; height: 14px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: cfSpin .8s linear infinite; }
@keyframes cfSpin { to { transform: rotate(360deg); } }
.cf-evs { margin: 0 0 6px; padding-left: 22px; font-size: 12px; color: var(--muted); }
.cf-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cf-news { display: flex; gap: 10px; align-items: flex-start; padding: 8px 2px; border-bottom: 1px solid var(--line); background: transparent; }
.cf-news.drag { opacity: .5; }
.cf-news.over { box-shadow: inset 0 2px 0 var(--accent); }
.cf-news.dup { background: var(--warn-soft); }
.cf-no { flex: 0 0 22px; height: 22px; border-radius: 6px; background: var(--bg-3); display: grid; place-items: center; font-size: 12px; cursor: grab; }
.cf-nt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cf-nt b { font-weight: 500; font-size: 13.5px; cursor: text; overflow-wrap: anywhere; }
.cf-nt b:hover { text-decoration: underline dotted; }
.cf-nt small { color: var(--muted); font-size: 11.5px; }
.cf-nt small.warn { color: var(--warn-ink); }
.cf-nt input { font: inherit; font-size: 13.5px; padding: 3px 6px; border: 1px solid var(--accent); border-radius: 6px; background: var(--bg); color: var(--ink); }
.cf-ops { display: flex; gap: 2px; flex: 0 0 auto; }
.cf-spare, .cf-warns { margin-top: 8px; font-size: 13px; }
.cf-spare summary, .cf-warns summary { cursor: pointer; color: var(--muted); }
.cf-spare ul, .cf-warns ul { list-style: none; margin: 6px 0 0; padding: 0; }
.cf-spare li { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.cf-spare li span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.cf-spare li small { color: var(--muted); font-size: 11.5px; }
.cf-warns li { font-size: 12px; color: var(--muted); padding: 2px 0; }
.cf-run { margin-top: 8px; font-size: 12.5px; }
.cf-run summary { cursor: pointer; color: var(--muted); }
.cf-run .cf-vals { margin-top: 6px; }
.cf-run .warn { color: var(--warn-ink); }
@media (max-width: 640px) {
  .cf-row { flex-direction: column; gap: 4px; }
  .cf-g { padding-top: 0; }
  .cf-editor { margin-left: 0; }
  .cf-chip { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .cf-chip.flash, .cf-wait .spin { animation: none; }
}

.cf-budget { font-size: 12.5px; margin-top: 8px; }
.cf-budget.ok { color: var(--muted); padding: 2px 0; }

/* PG-11：字段旁的动作（例如「编辑台词与画面」） */
.cf-chip .cf-act { font-style: normal; font-size: 11.5px; color: var(--accent, #5B6CF0); white-space: nowrap; }

/* PG-11 收尾：文字脚本 */
.cf-script .cf-shots { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 10px; }
.cf-script .cf-shots li { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 6px; }
.cf-script .cf-shot-h { display: flex; gap: 8px; align-items: baseline; }
.cf-script textarea { width: 100%; box-sizing: border-box; resize: vertical; font: inherit; }
.cf-script .cf-inline input { flex: 1; min-width: 0; }
