/* 一键抠图 (cutout.js, 2026-10-04): task list, 新建任务 dialog, batch page, framing editor - dark tokens from theme-dark.css */
.cut-grow{flex:1}
.cut-head{margin-bottom:12px}
/* list */
.cut-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:14px}
.cut-filters input,.cut-filters select{height:34px;padding:0 10px;min-width:130px}
.cut-dates{display:inline-flex;align-items:center;gap:6px;color:var(--muted)}
.cut-dates input{min-width:140px}
.cut-table-wrap{overflow-x:auto}
.cut-table{width:100%;border-collapse:collapse;font-size:13px}
.cut-table th{text-align:left;font-weight:500;color:var(--muted);padding:10px 12px;border-bottom:1px solid var(--line);background:var(--subtle);white-space:nowrap}
.cut-table td{padding:14px 12px;border-bottom:1px solid var(--line);vertical-align:middle}
.cut-table tr:hover td{background:rgba(255,255,255,.02)}
.cut-pv{width:96px}
.cut-pv a{display:block}
.cut-pv img.thumb{width:80px;height:80px;object-fit:cover;border-radius:6px;display:block}
.cut-note-btn{background:none;border:1px dashed var(--border);color:var(--muted);border-radius:6px;padding:2px 8px;font:inherit;font-size:12px;cursor:pointer;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cut-note-btn:hover{color:var(--text);border-color:var(--text)}
.cut-batch{margin-top:8px;font-variant-numeric:tabular-nums;color:var(--text)}
.cut-meta{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted)}
.cut-ops{white-space:nowrap}
.cut-ops a,.link-btn{display:block;background:none;border:0;padding:3px 0;color:var(--blue);font:inherit;font-size:13px;cursor:pointer;text-decoration:none;text-align:left}
.cut-ops a:hover,.link-btn:hover{text-decoration:underline}
#cut-queue{margin:10px 0 0}
/* progress chips */
.cut-steps{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.cut-step{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:4px;background:var(--subtle);border:1px solid var(--line);color:var(--muted);font-size:12px;white-space:nowrap}
.cut-step svg,.cut-big svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.4}
.cut-step.ok{color:var(--green);border-color:rgba(141,214,174,.35)}
.cut-step.run{color:var(--blue);border-color:rgba(141,187,255,.45);animation:cutpulse 1.6s ease-in-out infinite}
.cut-step.bad{color:var(--danger);border-color:rgba(255,146,146,.4)}
@keyframes cutpulse{50%{opacity:.55}}
.cut-arrow{color:var(--muted)}
.cut-warn{color:var(--amber)}
/* dialogs */
.cut-dlg{width:min(1180px,calc(100vw - 32px));max-height:calc(100vh - 32px);padding:0;border:1px solid var(--border);border-radius:12px;background:var(--bg);color:var(--text)}
.cut-dlg[open]{display:flex;flex-direction:column}
.cut-dlg::backdrop{background:rgba(0,0,0,.6)}
.cut-dlg-head{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid var(--line)}
.cut-dlg-head h2{margin:0;font-size:16px}
.cut-dlg-body{padding:16px 20px;overflow:auto;flex:1}
.cut-dlg-body h3{font-size:13px;margin:4px 0 10px;color:var(--text)}
.cut-dlg-foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 20px;border-top:1px solid var(--line)}
.cut-dlg-foot .form-error{margin:0}
.cut-upload{border:1px dashed var(--border);border-radius:10px;padding:22px;text-align:center;margin-bottom:18px}
.cut-upload.drag{border-color:var(--blue);background:rgba(141,187,255,.06)}
.cut-upload p{margin:8px 0 0}
.cut-files{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:12px}
.cut-file{position:relative;width:92px;font-size:11px;color:var(--muted)}
.cut-file img{width:92px;height:92px;object-fit:cover;border-radius:6px;display:block;border:1px solid var(--line)}
.cut-file span{display:block;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cut-thumb-x{position:absolute;right:3px;top:3px;width:20px;height:20px;border-radius:50%;border:0;background:rgba(0,0,0,.7);color:#fff;font-size:14px;line-height:20px;cursor:pointer;padding:0}
.cut-thumb-x:hover{background:var(--danger);color:#111}
.cut-flows{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(320px,100%),1fr));gap:10px;margin-bottom:12px}
.cut-flow{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:14px 16px;border:1px solid var(--line);border-radius:8px;background:var(--subtle);color:var(--text);cursor:pointer;text-align:left;font:inherit}
.cut-flow strong{font-size:14px}
.cut-flow .cut-steps{flex-wrap:nowrap}
.cut-flow.sel{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue)}
.cut-note-area{width:100%;min-height:64px;padding:8px}
.cut-note-actions{justify-content:flex-end;margin-top:10px;gap:8px}
/* batch page */
.cut-stepper{display:flex;align-items:center;gap:10px;padding:14px 18px;margin:-4px 0 14px;background:var(--subtle);border:1px solid var(--line);border-radius:10px;flex-wrap:wrap}
.cut-big{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:14px}
.cut-big i{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;border:1px solid currentColor;font-style:normal;font-size:12px}
.cut-big.ok{color:var(--text)}.cut-big.ok i{background:var(--text);color:var(--bg);border-color:var(--text)}
.cut-big.run{color:var(--amber)}.cut-big.run i{background:var(--amber);color:#111;border-color:var(--amber)}
.cut-big.bad{color:var(--danger)}
.cut-line{flex:0 1 80px;height:1px;background:var(--border)}
.cut-bar{display:flex;align-items:center;gap:8px;margin-bottom:12px;flex-wrap:wrap}
.cut-info-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 28px;font-size:13px;color:var(--muted);padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:14px}
.cut-info-row em.ok{font-style:normal;color:var(--green);margin-left:6px}
.cut-info-row .btn{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cut-hint{font-size:13px;padding:10px 14px;border-radius:8px;background:var(--amber-soft);color:var(--amber);margin:0 0 14px}
.cut-hint.blue{background:rgba(141,187,255,.08);color:var(--blue)}
.cut-hint.red{background:rgba(255,146,146,.08);color:var(--danger)}
.cut-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(420px,100%),1fr));gap:14px}
.cut-card{display:grid;grid-template-columns:1fr auto 1fr;grid-template-rows:auto auto;gap:6px 10px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--subtle)}
.cut-card-col{min-width:0;align-self:start}
.cut-lab{display:flex;gap:8px;align-items:baseline;font-size:12px;color:var(--text);margin-bottom:6px;min-width:0}
.cut-lab>span:first-child{flex-shrink:0;white-space:nowrap}
.cut-iname{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cut-orig{position:relative;display:flex;justify-content:center;align-items:center;height:190px;background:#0c0d0f;border-radius:6px;overflow:hidden}
.cut-orig img{max-width:100%;max-height:190px;display:block}
.cut-orig .cut-layer{pointer-events:none}
.cut-chev{color:var(--muted);font-size:22px;padding-top:24px;align-self:center}
.cut-res{display:flex;flex-direction:column;gap:6px;max-height:260px;overflow:auto}
.cut-res.empty{height:190px;align-items:center;justify-content:center;font-size:13px;color:var(--muted);background:#0c0d0f;border-radius:6px;text-align:center;padding:10px}
.cut-one{margin:0}
.cut-one .cut-check{height:190px}
.cut-one figcaption{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:12px;color:var(--muted);margin-top:4px}
.cut-one figcaption a{color:var(--blue);text-decoration:none}
.cut-acts{grid-column:1/-1;display:flex;gap:8px;justify-content:flex-end}
.cut-spin{width:14px;height:14px;border:2px solid var(--border);border-top-color:var(--blue);border-radius:50%;display:inline-block;animation:cutspin 1s linear infinite;margin-right:6px;vertical-align:-2px}
@keyframes cutspin{to{transform:rotate(360deg)}}
.cut-check{display:block;width:100%;border-radius:6px;border:1px solid var(--line);
  background-color:#fff;background-image:linear-gradient(45deg,#d9d9d9 25%,transparent 25%),linear-gradient(-45deg,#d9d9d9 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#d9d9d9 75%),linear-gradient(-45deg,transparent 75%,#d9d9d9 75%);
  background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}
.cut-check img{width:100%;height:100%;object-fit:contain;display:block}
.cut-check.cut-mini{width:80px;height:80px}
/* framing editor */
.cut-edit-body{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:16px}
.cut-stage{position:relative;min-height:360px;height:calc(100vh - 220px);display:flex;align-items:center;justify-content:center;background:#0c0d0f;border-radius:10px;overflow:hidden;user-select:none;touch-action:none;outline:none}
.cut-stage img{max-width:100%;max-height:100%;display:block;pointer-events:none}
.cut-layer{position:absolute;left:0;top:0}
.cut-stage .cut-layer{cursor:crosshair}
.cut-box{position:absolute;border:2px solid #4cc38a;background:rgba(76,195,138,.08);cursor:move;transform-origin:center}
.cut-box.sel{border-color:#8dbbff;background:rgba(141,187,255,.12)}
.cut-box.static{cursor:default}
.cut-num{position:absolute;left:-2px;top:-20px;background:#4cc38a;color:#0b0c0e;font-size:11px;font-weight:700;padding:0 6px;border-radius:4px}
.cut-box.sel .cut-num{background:#8dbbff}
.cut-h{position:absolute;width:12px;height:12px;background:#fff;border:2px solid #4cc38a;border-radius:2px}
.cut-box.sel .cut-h{border-color:#8dbbff}
.cut-h.nw{left:-7px;top:-7px;cursor:nwse-resize}.cut-h.se{right:-7px;bottom:-7px;cursor:nwse-resize}
.cut-h.ne{right:-7px;top:-7px;cursor:nesw-resize}.cut-h.sw{left:-7px;bottom:-7px;cursor:nesw-resize}
.cut-rot{position:absolute;left:50%;top:-30px;width:14px;height:14px;margin-left:-7px;border-radius:50%;background:#fff;border:2px solid #8dbbff;cursor:grab}
.cut-rot::after{content:"";position:absolute;left:5px;top:12px;width:0;height:14px;border-left:2px solid #8dbbff}
.cut-side h3{display:flex;justify-content:space-between;align-items:baseline;margin:0 0 10px}
.cut-count{font-size:12px;color:var(--muted);font-weight:400}
.cut-list{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.cut-item{display:flex;align-items:center;gap:8px;padding:6px 8px;border:1px solid var(--line);border-radius:8px}
.cut-item.sel{border-color:var(--blue)}
.cut-item-name{flex:1;text-align:left;background:none;border:0;color:var(--text);cursor:pointer;font:inherit;padding:0}
.cut-item-name small{display:block;color:var(--muted);font-size:11px}
.cut-item label{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--muted)}
.cut-item input{width:58px;padding:3px 5px}
@media (max-width:900px){.cut-grid{grid-template-columns:1fr}.cut-edit-body{grid-template-columns:1fr}.cut-stage{height:60vh}
 .cut-filters input,.cut-filters select{min-width:0;flex:1 1 130px}.cut-card{grid-template-columns:1fr}.cut-chev{display:none}}
/* result / original viewer (2026-10-05: click opens a dialog instead of a new tab) */
.cut-one .cut-check,.cut-orig[data-view]{cursor:zoom-in}
.cut-view-body{flex:1;display:flex;align-items:center;gap:8px;padding:12px;min-height:0}
.cut-view-stage{position:relative;flex:1;height:calc(100vh - 190px);min-height:300px;display:flex;align-items:center;justify-content:center;border-radius:8px;overflow:hidden}
.cut-view-stage img{max-width:100%;max-height:100%;object-fit:contain;display:block}
.cut-view-stage .cut-layer{pointer-events:none}
.cut-view-stage.bg-check{background-color:#fff;background-image:linear-gradient(45deg,#d9d9d9 25%,transparent 25%),linear-gradient(-45deg,#d9d9d9 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#d9d9d9 75%),linear-gradient(-45deg,transparent 75%,#d9d9d9 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}
.cut-view-stage.bg-white{background:#fff}
.cut-view-stage.bg-black,.cut-view-stage.bg-dark{background:#0c0d0f}
.cut-view-nav{flex:0 0 40px;height:72px;border:1px solid var(--line);border-radius:8px;background:var(--subtle);color:var(--text);font-size:26px;cursor:pointer}
.cut-view-nav:hover:not(:disabled){border-color:var(--text)}
.cut-view-nav:disabled{opacity:.3;cursor:default}
.cut-view-bgs{display:inline-flex;gap:4px}
.cut-view-bgs[hidden],#cv-dl[hidden]{display:none}
.cut-view-bgs .btn[aria-pressed="true"]{border-color:var(--blue);color:var(--blue)}
@media (max-width:900px){.cut-view-nav{flex-basis:30px}.cut-view-stage{height:60vh}}

.cut-flow-group{font-size:12px;color:var(--muted);margin:6px 0 8px}

.cut-orig[data-view]:focus-visible,.cut-check:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
#cf-owner{min-width:150px}

/* 修边编辑器 (cutout-edit.js, 2026-10-06) */
#cv-edit[hidden]{display:none}
.cut-one figcaption .link-btn{display:inline;padding:0;font-size:12px}
.cut-edit-st{display:inline-flex;align-items:center;color:var(--blue)}
.cut-mask-dlg{width:min(1560px,calc(100vw - 24px));height:calc(100vh - 24px);max-height:none}
.cme-top{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:6px 12px;padding:8px 16px;border-bottom:1px solid var(--line)}
.cme-top-l,.cme-top-r{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.cme-top-r{justify-content:flex-end}
.cme-hand svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;display:block}
.cme-sep{width:1px;height:22px;background:var(--line);margin:0 4px}
.cme-seg{display:inline-flex;align-items:center;gap:4px}
.cme-seg .btn[aria-pressed="true"]{border-color:var(--blue);color:var(--blue);background:rgba(141,187,255,.1)}
.cme-zoom{min-width:52px;text-align:center;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.cme-body{flex:1;min-height:0;display:grid;grid-template-columns:232px minmax(0,1fr)}
.cme-tools{display:flex;flex-direction:column;gap:16px;padding:14px;overflow:auto;border-right:1px solid var(--line);background:var(--bg)}
.cme-group{display:flex;flex-direction:column;gap:8px}
.cme-label{font-size:12px;color:var(--muted)}
.cme-modes{display:grid;grid-template-columns:1fr 1fr}
.cme-modes .btn{justify-content:center;padding-left:4px;padding-right:4px}
.cme-wide{width:100%;justify-content:center}
.cme-toolgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.cme-row{display:flex;gap:6px;align-items:stretch}
.cme-row .btn{flex:1;justify-content:center}
.cme-tool{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 2px 6px;min-width:58px;border:1px solid var(--line);border-radius:8px;background:var(--subtle);color:var(--text);font:inherit;font-size:12px;cursor:pointer}
.cme-tool svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
.cme-tool:hover:not(:disabled){border-color:var(--border)}
.cme-tool[aria-pressed="true"]{border-color:var(--blue);color:var(--blue);background:rgba(141,187,255,.1)}
.cme-tool:disabled{opacity:.42;cursor:default}
.cme-tool:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.cme-opt{display:grid;grid-template-columns:auto minmax(0,1fr) 58px;align-items:center;gap:8px;font-size:12px;color:var(--muted)}
.cme-opt[hidden]{display:none}
.cme-opt input[type=range]{width:100%;min-width:0;accent-color:var(--blue)}
.cme-opt input[type=number]{width:58px;padding:3px 5px}
.cme-opt input[type=color]{width:100%;height:28px;padding:0 2px;border:1px solid var(--line);border-radius:6px;background:var(--subtle);cursor:pointer}
.cme-tip{margin:0;font-size:12px;line-height:1.5;color:var(--muted)}
.cme-hint{margin-top:auto;padding-top:10px;border-top:1px solid var(--line)}
.cme-stage{display:flex;flex-direction:column;min-height:0;min-width:0;background:#0c0d0f}
.cme-heads{display:grid;grid-template-columns:1fr 1fr;gap:8px;flex:0 0 auto}
.cme-stage.single .cme-heads{grid-template-columns:1fr}
.cme-stage.single .cme-head-orig{display:none}
.cme-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:38px;padding:4px 10px;background:var(--subtle);border-bottom:1px solid var(--line);font-size:13px;color:var(--text);min-width:0}
.cme-bgs{flex-wrap:wrap;justify-content:flex-end}
.cme-bgs .light-note{font-size:12px;margin-right:2px}
.cme-wrap{position:relative;flex:1;min-height:0;overflow:hidden}
.cme-wrap canvas{position:absolute;left:0;top:0;width:100%;height:100%;display:block;touch-action:none;outline:none;cursor:crosshair}
.cme-wrap canvas.cme-ui{pointer-events:none}
.cme-check{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:12px;color:var(--text);cursor:pointer}
.cme-check[hidden]{display:none}
.cme-check input{accent-color:var(--blue);margin:0}
.cme-check small{flex-basis:100%;color:var(--muted);font-size:11px}
.cme-msg{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:24px;text-align:center;font-size:14px;color:var(--muted);pointer-events:none}
.cme-msg[hidden]{display:none}
.cme-msg.err{color:var(--danger)}
.cut-mask-dlg .cut-dlg-foot .form-error{max-width:60%}
@media (max-width:900px){
 .cut-mask-dlg{width:calc(100vw - 16px);height:calc(100vh - 16px)}
 .cme-top{display:flex;flex-wrap:wrap;padding:6px 10px}.cme-sep{display:none}
 .cme-top-r{margin-left:auto}
 .cme-body{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(240px,1fr)}
 .cme-tools{flex-direction:row;gap:14px;overflow-x:auto;max-height:170px;border-right:0;border-bottom:1px solid var(--line);padding:10px}
 .cme-group{flex:0 0 auto;width:200px}
 .cme-hint{display:none}
 .cut-mask-dlg .cut-dlg-foot .form-error{max-width:100%}}

/* 2026-10-06 site update notice (app.js checkSiteVersion) */
.site-update-note{position:fixed;right:16px;bottom:16px;z-index:50;max-width:min(360px,calc(100vw - 32px));padding:10px 14px;border-radius:8px;border:1px solid var(--blue);background:var(--subtle);color:var(--text);font-size:13px;box-shadow:0 4px 18px rgba(0,0,0,.4)}

/* 2026-10-06 framed-box preview in the result column (before processing) */
.cut-res.cut-framed{display:flex;flex-direction:column;align-items:stretch;gap:6px}
.cut-crop-box{height:190px;display:flex;align-items:center;justify-content:center;background:#0c0d0f;border-radius:6px;border:1px solid var(--line);cursor:zoom-in;overflow:hidden}
.cut-crop-box:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.cut-crop{display:block;max-width:100%;max-height:180px;width:auto;height:auto}
.cut-crop-cap{margin:0;font-size:12px;color:var(--muted);text-align:center}

.cut-file.cut-more{display:flex;align-items:center;justify-content:center;height:92px;border:1px dashed var(--line);border-radius:6px;font-size:12px}

/* 2026-10-06 result card: size line + buttons, no notes, no inner scrolling for one print */
.cut-res{max-height:none;overflow:visible}
.cut-one figcaption{flex-direction:column;align-items:stretch;gap:6px}
.cut-one .cut-size{font-size:12px;color:var(--muted)}
.cut-one .cut-btns{display:flex;gap:8px}
.cut-one .cut-btns .btn{flex:1;justify-content:center;text-align:center;text-decoration:none}

/* 抠图结果卡片 · 灵图样式 (2026-10-06): only the picture; hover / keyboard focus shows size, eye (viewer) and 下载 / 修边 bar */
.cut-hov{position:relative;border-radius:6px;overflow:hidden}
.cut-hov .cut-check{border-radius:6px}
.cut-hov .cut-check:focus-visible{outline-offset:-2px}
.cut-ov{opacity:0;pointer-events:none;transition:opacity .15s ease}
.cut-hov:hover .cut-ov{opacity:1;pointer-events:auto}
.cut-hov:has(:focus-visible) .cut-ov{opacity:1;pointer-events:auto}
.cut-dim{position:absolute;right:6px;top:6px;padding:2px 7px;border-radius:4px;background:rgba(0,0,0,.62);color:#fff;font-size:11px;line-height:1.5;font-variant-numeric:tabular-nums;white-space:nowrap;max-width:calc(100% - 12px);overflow:hidden;text-overflow:ellipsis}
.cut-eye{position:absolute;left:50%;top:50%;width:42px;height:42px;margin:-21px 0 0 -21px;padding:0;border:0;border-radius:50%;background:rgba(0,0,0,.6);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}
.cut-eye:hover{background:rgba(0,0,0,.78)}
.cut-eye svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
.cut-hbar{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 8px;background:rgba(10,11,13,.74)}
.cut-hbtn{display:inline-flex;align-items:center;padding:3px 10px;border:0;border-radius:4px;background:none;color:#fff;font:inherit;font-size:13px;line-height:1.5;cursor:pointer;text-decoration:none}
.cut-hbtn:hover{background:rgba(255,255,255,.14)}
.cut-hbtn:focus-visible,.cut-eye:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
.cut-hbtn.off{color:rgba(255,255,255,.38);cursor:not-allowed}
.cut-hbtn.off:hover{background:none}
.cut-tags{position:absolute;left:6px;top:6px;display:flex;flex-direction:column;align-items:flex-start;gap:4px;max-width:calc(100% - 12px);pointer-events:none}
.cut-tag{display:inline-flex;align-items:center;max-width:100%;padding:2px 7px;border-radius:4px;background:rgba(0,0,0,.68);font-size:11px;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cut-tag.blue{color:var(--blue)}.cut-tag.red{color:var(--danger)}
.cut-tag .cut-spin{width:10px;height:10px;border-width:2px;margin-right:5px}
.cut-hov:hover .cut-tags{top:30px}
.cut-hov:has(:focus-visible) .cut-tags{top:30px}
@media (hover:none){.cut-hbar.cut-ov{opacity:1;pointer-events:auto}}
/* 2026-10-08 精细版: green 精细版 tag; a third bar button (精细重画 / 用快速版 / 用精细版) - narrow cards drop the long words,
   very narrow ones wrap instead of overflowing */
.cut-tag.green{color:var(--green)}
.cut-hov{container-type:inline-size}
.cut-hbar{flex-wrap:wrap;gap:2px 4px;padding:5px 6px}
.cut-hbtn{padding:3px 8px;white-space:nowrap}
@container (max-width:180px){.cut-hbtn .cut-lg{display:none}.cut-hbtn{padding:3px 6px}}
.cut-rf-info{display:inline-flex;align-items:center;color:var(--blue)}
/* 点选 tool waiting state */
.cme-tool.busy{color:var(--blue);border-color:var(--blue)}

/* 2026-10-07 下载所选: tick boxes on finished images, 全选 + 下载所选 at the top right */
.cut-all{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);margin-right:8px;cursor:pointer;user-select:none}
.cut-all input,.cut-pick input{width:16px;height:16px;accent-color:var(--accent,#5b8cff);cursor:pointer;margin:0}
.cut-pick{display:inline-flex;align-items:center;margin-right:6px;cursor:pointer}
.cut-card.picked{outline:2px solid var(--accent,#5b8cff);outline-offset:-2px}
#cb-dlsel{margin-right:8px}
#cb-dlsel[aria-disabled="true"]{opacity:.55;cursor:default}

/* the batch toolbar (全选 / 下载所选 / 下载全部) stays at the top while scrolling a long batch */
.cut-bar{position:sticky;top:0;z-index:6;background:var(--bg);padding:8px 0;box-shadow:0 6px 8px -8px rgba(0,0,0,.6)}


/* 2026-10-08 原图小 tag (tiny photo area; the reason is in the tooltip) */
.cut-tag.yellow{color:#e8b339}


/* 2026-10-28 裁片任务列表（batches.js）：进度条与批次详情横幅 */
.sb-progress{width:180px;height:6px;border-radius:3px;background:var(--subtle);overflow:hidden;margin-bottom:6px}
.sb-progress span{display:block;height:100%;background:var(--green)}
.batch-banner{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px}
.batch-banner span{flex:1;color:var(--muted)}
.sb-progress{border:0;appearance:none;-webkit-appearance:none}
.sb-progress::-webkit-progress-bar{background:var(--subtle);border-radius:3px}
.sb-progress::-webkit-progress-value{background:var(--green);border-radius:3px}
.sb-progress::-moz-progress-bar{background:var(--green)}
.batch-banner{margin-bottom:12px}
