/* SP batch workspace — approved A layout. */
.ac-dialog{inset:0 0 0 auto;width:calc(100vw - 228px);height:100dvh;max-width:none;max-height:100dvh;margin:0 0 0 auto;padding:0;border:0;border-left:1px solid var(--line);border-radius:0;color:var(--ink);background:var(--paper);box-shadow:0 0 80px #102c3220}
.ac-dialog[open]{display:flex;flex-direction:column}
.ac-dialog::backdrop{background:#102c3226}
.ac-header,.ac-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 28px;background:white;flex-shrink:0}
.ac-header{border-bottom:1px solid var(--line)}
.ac-header h2{font-size:25px;letter-spacing:-.6px;margin:7px 0}
.ac-header-description{margin:0;color:var(--muted);font-size:11px;line-height:1.6}
.ac-header .eyebrow{font-size:9px;margin:0}
.ac-nav{display:flex;flex-shrink:0;align-items:center;gap:26px;padding:13px 28px;background:#fff;border-bottom:1px solid var(--line)}
.ac-nav a{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;text-decoration:none}
.ac-nav a:hover{color:var(--accent)}
.ac-nav b{width:21px;height:21px;display:grid;place-items:center;border:1px solid #d5e2da;border-radius:50%;font-size:10px;font-weight:500;color:var(--accent)}
.ac-footer{flex-direction:row;justify-content:flex-end;flex-wrap:wrap;border-top:1px solid var(--line);margin:0;padding:12px 28px}
.ac-body{padding:20px 28px 28px;overflow:auto;min-height:0;flex:1;scroll-behavior:smooth}
.ac-layout{display:grid;grid-template-columns:minmax(0,1fr) 258px;gap:20px;align-items:start;max-width:1500px;margin:auto}
.ac-main{min-width:0}
.ac-main>section{padding:20px;background:#fff;border:1px solid var(--line);border-radius:10px;margin-bottom:18px;scroll-margin-top:16px}
.ac-main h3{font-size:15px;margin:0 0 16px;display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.ac-main .panel-heading{align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.ac-main .panel-heading h3{margin-bottom:0}
.ac-main .panel-heading p{font-size:10px;margin:7px 0 0}
.ac-step-num{color:#8ca797;font-size:11px;font-weight:400;letter-spacing:.3px}
.ac-mode-note{font-size:10px;color:var(--muted);margin:0 0 13px}
.ac-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:16px 0}
.ac-field{font-size:11px;color:#718278;display:flex;flex-direction:column;gap:7px;margin:0;min-width:0;font-weight:450}
.ac-field input,.ac-field select,.ac-field textarea{width:100%;font:inherit;color:var(--ink);min-width:0}
.ac-field input,.ac-field select{padding:10px}
.ac-field textarea{resize:vertical;border:1px solid #d8e1de;border-radius:7px;padding:10px 12px;background:white;min-height:84px}
.ac-field textarea:focus{outline:2px solid #6ab4a3;border-color:transparent}
.ac-field small{font-weight:400}
.ac-check{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:400;line-height:1.6;margin:9px 0;color:#52695b}
.ac-check input{width:15px;height:15px;flex-shrink:0;accent-color:var(--accent)}
.ac-span{grid-column:1/-1}
.ac-row{padding:16px;border:1px solid var(--line);border-radius:8px;margin-top:14px;background:#fcfdfb;min-width:0}
.ac-row h3{font-size:12px;margin:0}
.ac-row code{color:#809b8b;font-size:10px;font-weight:400}
.ac-row .panel-heading{margin-bottom:10px}
.ac-row .actions{gap:5px}
.ac-row .actions button{font-size:10px;padding:5px 7px;background:transparent}
.ac-row-grid,.ac-auto-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.ac-row-grid input,.ac-row-grid select,.ac-auto-grid input{padding:8px;font-size:11px}
.ac-row fieldset{border:1px solid var(--line);border-radius:7px;padding:10px;min-width:0}
.ac-row legend{font-size:10px;color:var(--muted)}
.ac-auto-grid{margin:0}
.ac-auto-grid .ac-check{font-size:10px}
.ac-main details{margin-top:16px}
.ac-main summary{cursor:pointer;color:var(--accent);font-size:11px;padding:6px 0;line-height:1.7}
.ac-main pre{max-width:520px;max-height:300px;overflow:auto;font-size:11px;background:var(--paper);padding:12px;border-radius:7px;white-space:pre-wrap;overflow-wrap:anywhere}
.ac-search{display:flex;gap:10px;align-items:end;margin:16px 0}
.ac-search .ac-field{flex:1}
.ac-search button{flex-shrink:0;font-size:11px}
.ac-selection-line{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#f5f9f5;padding:5px 12px;font-size:10px;color:var(--muted);border-radius:6px}
.ac-selection-line .ac-check{font-size:10px;margin:7px 0}
.ac-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0;max-height:480px;overflow:auto;overscroll-behavior:contain;padding:1px}
.ac-product{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:8px;padding:11px;cursor:pointer;margin:0;min-width:0;font-weight:400}
.ac-product:hover{border-color:#a3bfae}
.ac-product.selected{background:#f5faf6;border-color:#91bba7}
.ac-product input{width:15px;height:15px;flex-shrink:0;accent-color:var(--accent);margin:0;padding:0}
.ac-product-image{width:54px;height:65px;flex-shrink:0;display:grid;place-items:center;background:#f5f7f2;border-radius:5px;overflow:hidden;position:relative}
.ac-product-image img{width:100%;height:100%;object-fit:contain}
.ac-image-placeholder{font-size:25px;color:#c1cdbf;display:grid;place-items:center;width:100%;height:100%}
.ac-image-error img{display:none}
.ac-image-error::after{content:'暂无图片';font-size:9px;color:#9ba99a}
.ac-product-info{min-width:0;display:flex;flex-direction:column;gap:4px}
.ac-product-info strong{font-size:11px;font-weight:550;line-height:1.65;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ac-product-id{font-family:ui-monospace,monospace;font-size:9px;color:#7e8f80;line-height:1.8;overflow-wrap:anywhere}
.ac-product-type{font-size:9px;color:#789478}
.ac-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:10px;color:var(--muted)}
.ac-pagination button{padding:6px 9px;font-size:10px}
.ac-pagination .actions{gap:8px}
.ac-product-empty{padding:30px 12px;font-size:12px;color:var(--muted);grid-column:1/-1;line-height:1.9}
.ac-product-empty button{margin-top:12px}
.ac-summary{position:sticky;top:0;min-width:0}
.ac-summary-panel{padding:20px;background:white;border:1px solid var(--line);border-radius:10px;max-height:calc(100dvh - 255px);overflow:auto;overscroll-behavior:contain}
.ac-summary h3{font-size:14px;margin:0 0 8px}
.ac-summary p.small{font-size:10px;margin:0;line-height:1.7}
.ac-summary-count{font-size:35px;letter-spacing:-1.2px;margin:20px 0 12px;font-weight:550;font-variant-numeric:tabular-nums}
.ac-summary-count small{font-size:10px;color:var(--muted);font-weight:400;letter-spacing:0}
.ac-summary-stats{margin:0}
.ac-summary-stats>div{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #edf1ec;font-size:10px}
.ac-summary-stats dt{color:var(--muted)}
.ac-summary-stats dd{margin:0;text-align:right;font-weight:550;max-width:55%;overflow-wrap:anywhere}
.ac-summary-stats .badge{font-weight:400;font-size:10px}
.ac-summary h4{font-size:11px;margin:20px 0 13px}
.ac-selected-list{max-height:245px;overflow:auto;overscroll-behavior:contain}
.ac-selected-item{display:flex;align-items:center;gap:8px;margin-bottom:13px}
.ac-selected-item>.ac-product-image{width:31px;height:37px}
.ac-selected-item>div{flex:1;min-width:0}
.ac-selected-item strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:10px;font-weight:450;line-height:1.5}
.ac-selected-item small{display:block;font-size:9px;color:#7c907d;overflow-wrap:anywhere;line-height:1.7}
.ac-selected-item button{background:none;border:0;color:#97a597;padding:4px;font-size:15px}
.ac-budget-note{font-size:10px;line-height:1.9;padding:11px;background:#fcf7ed;color:#967a47;border-radius:6px;margin:16px 0}
.ac-summary .primary{width:100%;font-size:11px;padding:12px 8px}
.ac-summary-foot{font-size:9px;color:#97a397;text-align:center;margin:10px 0 0;line-height:1.6}
.ac-job-list{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}
.ac-job-row{border-top:1px solid var(--line);padding:14px 0;font-size:12px}
.ac-wrap{flex-wrap:wrap}
#ac-feedback:not(:empty){padding:10px 28px;background:var(--accent-light);color:var(--accent);font-size:12px;flex-shrink:0;overflow-wrap:anywhere;max-height:90px;overflow:auto}
#ac-feedback.error{background:#faeaea;color:var(--danger)}
.ac-dialog button:disabled{cursor:not-allowed}
.ac-dialog .notice{margin-bottom:16px}
.ac-business-fields{display:grid;grid-template-columns:minmax(100px,1fr) minmax(160px,2fr);gap:8px 14px;min-width:290px;max-width:600px;font-size:12px;line-height:1.7;white-space:normal}
.ac-business-fields dt{color:var(--muted)}
.ac-business-fields dd{margin:0;overflow-wrap:anywhere}
.ac-capabilities{margin-bottom:18px;padding:12px 20px;background:#fff;border:1px solid var(--line);border-radius:8px}
@media(max-width:1250px){.ac-layout{grid-template-columns:minmax(0,1fr) 230px;gap:14px}.ac-header,.ac-footer{padding-left:20px;padding-right:20px}.ac-body{padding:18px 20px}.ac-nav{padding-left:20px;gap:20px}.ac-product-grid{grid-template-columns:1fr}.ac-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ac-auto-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ac-summary-panel{padding:16px}}
@media(max-width:1000px){.ac-dialog{width:100vw}.ac-layout{grid-template-columns:minmax(0,1fr) 245px}.ac-row .actions{flex-wrap:wrap}}
@media(max-width:760px){.ac-layout{grid-template-columns:1fr}.ac-summary{position:static;grid-row:2}.ac-summary-panel{max-height:none}.ac-selected-list{max-height:220px}.ac-header,.ac-footer{padding:14px 16px}.ac-header h2{font-size:21px}.ac-header-description{font-size:10px}.ac-nav{padding:10px 16px;gap:14px;flex-wrap:wrap}.ac-nav a{font-size:10px;gap:5px}.ac-nav b{width:18px;height:18px;font-size:9px}.ac-body{padding:14px}.ac-main>section{padding:16px}.ac-row{padding:12px}.ac-row .actions button{padding:5px}.ac-main pre{max-width:100%}.ac-footer{gap:8px}.ac-footer button{font-size:11px;padding:10px}.ac-pagination{flex-wrap:wrap}}
@media(max-width:480px){.ac-grid{grid-template-columns:1fr}.ac-row-grid,.ac-auto-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ac-product-grid{max-height:430px}.ac-product-image{width:50px;height:60px}.ac-footer button{flex:1;padding:10px 6px}.ac-nav{gap:10px}.ac-nav b{display:none}.ac-business-fields{min-width:260px;grid-template-columns:95px minmax(160px,1fr)}.ac-search{gap:8px}.ac-body .table-wrap{max-width:100%;overflow-x:auto}.ac-header>.secondary{padding:8px 10px}.ac-header .eyebrow{font-size:8px}}

.ac-product-parent{background:#f6f7f5;border-style:dashed;cursor:default}
.ac-product-parent .ac-product-image{opacity:.6}
.ac-parent-note{font-size:10px;color:#9a6d2e;line-height:1.6}
/* Compact strategy editing and independent background task feedback. */
.ac-strategy{border:1px solid var(--line);border-radius:8px;margin:9px 0;background:white;overflow:visible}
.ac-strategy.expanded{border-color:#8fb8a8;box-shadow:0 0 0 1px #8fb8a822}
.ac-strategy-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px}
.ac-strategy-headline{display:flex;align-items:center;gap:11px;min-width:0;flex:1}
.ac-strategy-title{flex:1;min-width:0}
.ac-strategy-title strong{font-size:12px;font-weight:550;display:block}
.ac-strategy-title code{font-size:9px;color:#8b9f91;margin-left:5px;font-weight:400}
.ac-strategy-title small,.ac-strategy-money small{display:block;font-size:10px;color:var(--muted);margin-top:5px;line-height:1.5}
.ac-strategy-money{min-width:125px;text-align:right;font-variant-numeric:tabular-nums}
.ac-strategy-money strong{font-size:12px;font-weight:550}
.ac-strategy-money strong small{display:inline;font-size:9px}
.ac-strategy-bar .actions{gap:5px}
.ac-strategy-bar .actions button{font-size:10px;padding:6px 8px}
.ac-strategy .ac-row{border:0;border-top:1px solid var(--line);border-radius:0;margin:0;padding:14px;background:#fafcf9}
.ac-row-menu{position:relative;margin:0!important}
.ac-row-menu summary{list-style:none;padding:5px 8px;line-height:1!important;color:var(--muted)}
.ac-row-menu>div{position:absolute;right:0;top:25px;z-index:3;display:grid;gap:4px;background:white;border:1px solid var(--line);padding:7px;border-radius:7px;box-shadow:0 5px 16px #17362a15;min-width:76px}
.ac-add-end{margin-top:12px}
.ac-add-end button{width:100%;border-style:dashed;font-size:11px;padding:10px}
.ac-strategy-overview{display:grid;gap:7px;max-height:300px;overflow:auto}
.ac-strategy-overview button{text-align:left;display:grid;gap:5px;background:#f8faf7;border:1px solid var(--line);border-radius:6px;padding:10px;cursor:pointer;width:100%}
.ac-strategy-overview button:hover{border-color:#9fbba9}
.ac-strategy-overview strong{font-size:11px;font-weight:550}
.ac-strategy-overview span{font-size:10px;color:#526b5c}
.ac-strategy-overview small{font-size:9px;color:var(--muted);line-height:1.6}
.ac-selected-details{margin:16px 0;font-size:11px}
.ac-selected-details summary{color:var(--accent);cursor:pointer;margin:12px 0;font-size:11px}
.ac-selected-details h4{display:none}
.ac-secondary-details{padding:5px 14px;background:transparent;border:0;margin-bottom:8px}
.ac-library{padding:12px 18px;background:white;border:1px solid var(--line);border-radius:8px;margin-bottom:18px}
.ac-library>summary{font-size:12px}
.ac-library>p{margin:10px 0}
.ac-library>.actions{margin:12px 0}
.ac-footer{justify-content:space-between}
.ac-nav button{border:0;background:none;padding:0;display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;cursor:pointer}
.ac-background-status{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#edf7f1;border-bottom:1px solid #d7e7dd;padding:12px 28px;flex-shrink:0}
.ac-background-status>div:first-child{min-width:0;flex:1}
.ac-background-status strong{font-size:12px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ac-background-status .small{font-size:10px;color:#668371}
.ac-background-status.attention{background:#fff6e9;border-color:#ead7b5}
.ac-background-status .actions button{font-size:11px;padding:8px 11px}
.ac-progress{height:4px;background:#dce8df;border-radius:10px;overflow:hidden;margin:9px 0 5px;max-width:420px}
.ac-progress span{height:100%;display:block;background:#268675;transition:width .25s}
.ac-background-status.attention .ac-progress span{background:#bd934f}
.ac-confirm-dialog{width:min(980px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);padding:0;border:1px solid var(--line);border-radius:12px;color:var(--ink);background:#fff;box-shadow:0 20px 90px #17372c40}
.ac-confirm-dialog[open]{display:flex;flex-direction:column}
.ac-confirm-dialog::backdrop{background:#17382f77;backdrop-filter:blur(3px)}
.ac-confirm-dialog header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--line);gap:15px;flex-shrink:0}
.ac-confirm-dialog header h2{font-size:21px;margin:0 0 6px}
.ac-confirm-dialog header p{margin:0}
.ac-confirm-content{overflow:auto;padding:20px 24px;min-height:0;font-size:12px}
.ac-confirm-dialog footer{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;gap:12px;padding:14px 24px;margin:0;border-top:1px solid var(--line);background:white;flex-shrink:0}
.ac-confirm-content details{font-size:11px}
.ac-confirm-content .notice{margin:12px 0;font-size:11px}
.ac-confirm-content table{font-size:11px}
.ac-confirm-content td{white-space:normal;overflow-wrap:anywhere}
#ac-confirm-error:not(:empty){padding:12px 24px;background:#faeeee;color:var(--danger);font-size:12px}
.ac-task-center{position:absolute;z-index:8;right:0;top:0;bottom:0;width:min(520px,100%);background:#fff;border-left:1px solid var(--line);box-shadow:-15px 0 60px #15362a20;overflow:auto;padding:20px}
.ac-task-heading{display:flex;justify-content:space-between;align-items:start;gap:12px;background:#fff;border-bottom:1px solid var(--line);padding-bottom:15px;margin-bottom:15px}
.ac-task-heading h3{font-size:19px;margin:0}
.ac-task-heading p{font-size:10px;margin:8px 0 0}
.ac-task-list{display:grid;gap:7px;max-height:200px;overflow:auto;margin-bottom:20px}
.ac-task-list button{text-align:left;display:flex;justify-content:space-between;gap:10px;padding:11px;border:1px solid var(--line);border-radius:7px;background:#fafcf9;cursor:pointer}
.ac-task-list button.selected{border-color:#7fae98;background:#f0f7f1}
.ac-task-list strong{font-size:11px;font-weight:550}
.ac-task-list span{font-size:10px;color:var(--muted);white-space:nowrap}
.ac-task-center .ac-job-row{padding:12px 0;font-size:11px}
.ac-job-line{display:flex;justify-content:space-between;align-items:center;gap:12px}
.ac-job-line strong{font-size:11px;font-weight:550}
.ac-job-line span{font-size:10px;white-space:nowrap}
.ac-task-center .error{font-size:11px;line-height:1.8;overflow-wrap:anywhere}
.ac-task-center details{margin:8px 0;font-size:10px}
.ac-task-center details summary{cursor:pointer;color:var(--accent);padding:5px 0}
.ac-task-center pre{font-size:10px;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--paper);padding:12px;border-radius:6px}
@media(max-width:1250px){.ac-strategy-headline{flex-wrap:wrap;gap:7px}.ac-strategy-money{min-width:0;text-align:left;flex-basis:100%;margin-left:20px}.ac-strategy-money small{display:inline;margin-left:4px}.ac-strategy-bar{align-items:start}.ac-summary-panel{max-height:calc(100dvh - 270px)}}
@media(max-width:760px){.ac-header .actions{gap:6px}.ac-header .actions button{font-size:10px;padding:8px}.ac-header-description,.ac-header .eyebrow{display:none}.ac-header h2{font-size:19px;margin:0}.ac-background-status{padding:10px 14px;align-items:start;gap:8px}.ac-background-status .actions{flex-direction:column;gap:5px}.ac-background-status .actions button{padding:6px 8px;font-size:10px}.ac-summary-panel{max-height:none}.ac-strategy-bar{gap:7px}.ac-strategy-title strong{font-size:11px}.ac-strategy-bar .actions{gap:3px}.ac-strategy-bar .actions button{padding:5px;font-size:10px}.ac-footer>.actions{gap:6px}.ac-footer button{font-size:10px;padding:9px}.ac-confirm-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.ac-confirm-dialog header{padding:15px;align-items:start}.ac-confirm-dialog header h2{font-size:17px}.ac-confirm-content{padding:14px}.ac-confirm-dialog footer{padding:12px;gap:8px}.ac-confirm-dialog footer button{font-size:11px}.ac-task-center{padding:16px}.ac-task-list button{flex-wrap:wrap}.ac-nav button{font-size:10px}}

.ac-strategy-overview{max-height:360px}
.ac-strategy-overview strong{line-height:1.5}
.ac-preflight-notices{margin:14px 0;padding:10px 13px;border:1px solid #ead9b9;border-radius:7px;background:#fffaf0;color:#94723d}
.ac-preflight-notices summary{cursor:pointer;font-size:12px}
.ac-preflight-notices p{line-height:1.8;font-size:11px}

#ac-task-feedback:not(:empty){padding:11px 13px;background:#fbefed;color:var(--danger);border-radius:6px;margin-bottom:13px;font-size:11px;line-height:1.7;overflow-wrap:anywhere}

/* Inline quick strategy generator, shared with the sticky footer entry. */
.ac-quick{margin:14px 0;padding:18px;border:1px solid var(--line);border-radius:10px;background:#f7faf8}
.ac-quick h4{margin:0;font-size:14px}
.ac-quick fieldset{margin:14px 0;padding:12px;border:1px solid var(--line);border-radius:8px;min-width:0}
.ac-quick legend{font-size:11px;padding:0 5px}
.ac-quick-checks{display:flex;flex-wrap:wrap;gap:12px 20px}
.ac-quick-range{grid-template-columns:repeat(2,minmax(0,1fr))}
.ac-quick [data-ac-action="quick-generate"]{background:var(--green,#27684a);color:white;border-color:transparent}
.ac-quick [data-ac-action="quick-generate"]:disabled{opacity:.45;cursor:not-allowed}
.ac-quick-receipt{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0;padding:10px 12px;background:#eef6f0;border-radius:8px;font-size:12px}
@media(max-width:760px){#ac-strategies>.panel-heading{flex-wrap:wrap;gap:10px}.ac-quick{padding:12px}.ac-quick .ac-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ac-quick .ac-grid>.ac-field:first-child:last-child{grid-column:1/-1}.ac-footer>.actions{flex-wrap:wrap}.ac-quick-receipt{font-size:11px}}
