.ipc-crop-batch-dialog { width: min(1180px, calc(100vw - 36px)); height: min(850px, calc(100vh - 36px)); min-height: 620px; }
.ipc-crop-toolbar { min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid rgba(39,52,73,.09); background: #fff; }
.ipc-crop-mode { display: inline-flex; align-items: center; gap: 8px; color: #59687a; font-size: 12px; }
.ipc-crop-mode select { height: 34px; padding: 0 30px 0 11px; border: 1px solid rgba(39,52,73,.13); border-radius: 9px; background: #fff; color: #35455a; font: inherit; cursor: pointer; }
.ipc-crop-mode-hint { color: #87919e; font-size: 11px; }
.ipc-crop-toolbar .ipc-secondary { min-height: 34px; margin-left: auto; padding: 0 13px; }
.ipc-crop-toolbar .ipc-secondary + .ipc-secondary { margin-left: 0; }
.ipc-secondary.danger { color: #b24a50; }
.ipc-crop-body { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #f2f5f8; }
.ipc-crop-batch-overlay.is-dragging .ipc-crop-body::after { content: "松开即可添加图片"; position: absolute; inset: 16px; z-index: 20; display: grid; place-items: center; border: 2px dashed #d3a315; border-radius: 16px; background: rgba(255,249,226,.94); color: #5c4a17; font-size: 18px; font-weight: 750; pointer-events: none; }
.ipc-crop-empty { position: absolute; inset: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1.5px dashed rgba(72,91,113,.25); border-radius: 16px; background: #fff; color: #273449; cursor: pointer; }
.ipc-crop-empty[hidden], .ipc-crop-list-view[hidden] { display: none; }
.ipc-crop-empty:hover { border-color: rgba(79,131,184,.55); background: #fafdff; }
.ipc-crop-empty strong { margin-top: 22px; font-size: 18px; }
.ipc-crop-empty small { margin-top: 8px; color: #7d8896; font-size: 12px; }
.ipc-crop-empty-icon { position: relative; width: 92px; height: 68px; }
.ipc-crop-empty-icon i { position: absolute; width: 58px; height: 48px; border: 4px solid #fff; border-radius: 11px; background: linear-gradient(180deg,#c6eafa 0 58%,#62b89c 59%); box-shadow: 0 9px 18px rgba(39,52,73,.14); }
.ipc-crop-empty-icon i:first-child { left: 5px; top: 15px; transform: rotate(-8deg); }
.ipc-crop-empty-icon i:nth-child(2) { right: 5px; top: 3px; transform: rotate(7deg); background: linear-gradient(180deg,#ddcfef 0 58%,#a77caf 59%); }
.ipc-crop-empty-icon b { position: absolute; right: 0; bottom: 0; z-index: 3; width: 30px; height: 30px; display: grid; place-items: center; border: 4px solid #fff; border-radius: 50%; background: #ffda67; color: #443711; font-size: 20px; line-height: 1; box-shadow: 0 5px 10px rgba(39,52,73,.15); }
.ipc-crop-list-view { height: 100%; display: flex; flex-direction: column; min-height: 0; }
.ipc-crop-summary { min-height: 46px; display: flex; align-items: center; gap: 12px; padding: 10px 20px 8px; color: #7c8795; font-size: 12px; }
.ipc-crop-summary strong { color: #344459; font-size: 13px; }
.ipc-crop-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: max-content; align-content: start; align-items: start; gap: 12px; padding: 0 18px 18px; overflow: auto; }
.ipc-crop-item { position: relative; min-width: 0; align-self: start; overflow: hidden; border: 1px solid rgba(39,52,73,.1); border-radius: 12px; background: #fff; box-shadow: 0 6px 16px rgba(39,52,73,.06); }
.ipc-crop-thumb { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; background: #e8edf1; color: #8b95a1; font-size: 11px; }
.ipc-crop-thumb img { width: 100%; height: 100%; display: block; object-fit: contain; }
.ipc-crop-item.status-processing .ipc-crop-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg,transparent 25%,rgba(255,255,255,.45) 45%,transparent 65%); background-size: 220% 100%; animation: ipc-crop-processing 1.2s linear infinite; }
.ipc-crop-item.status-done { border-color: rgba(65,163,127,.4); }
.ipc-crop-item.status-kept { border-color: rgba(216,168,45,.42); }
.ipc-crop-item.status-failed { border-color: rgba(210,75,82,.42); }
.ipc-crop-item-copy { padding: 9px 10px 10px; }
.ipc-crop-item-copy strong { display: block; overflow: hidden; color: #344459; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ipc-crop-item-copy span { display: block; min-height: 16px; margin-top: 4px; overflow: hidden; color: #84909e; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ipc-crop-item.status-done .ipc-crop-item-copy span { color: #3f9a79; }
.ipc-crop-item.status-kept .ipc-crop-item-copy span { color: #a17817; }
.ipc-crop-item.status-failed .ipc-crop-item-copy span { color: #c24e55; }
.ipc-crop-item-actions { position: absolute; right: 6px; top: 6px; display: flex; gap: 4px; }
.ipc-crop-item-actions button { min-width: 28px; height: 26px; padding: 0 7px; border: 1px solid rgba(39,52,73,.12); border-radius: 7px; background: rgba(255,255,255,.93); color: #596a7e; font: inherit; font-size: 10px; cursor: pointer; box-shadow: 0 3px 9px rgba(39,52,73,.11); }
.ipc-crop-item-actions button:disabled { opacity: .4; cursor: default; }
.ipc-crop-item-actions [data-item-remove] { width: 27px; min-width: 27px; padding: 0; color: #bd4b52; font-size: 16px; }
.ipc-crop-footer { min-height: 76px; display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid rgba(39,52,73,.09); background: #fff; }
.ipc-crop-progress { flex: 1; min-width: 180px; }
.ipc-crop-progress > div { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: #758191; font-size: 11px; }
.ipc-crop-progress > div b { color: #44556b; font-variant-numeric: tabular-nums; }
.ipc-crop-progress > i { display: block; height: 6px; overflow: hidden; border-radius: 999px; background: #e7ebef; }
.ipc-crop-progress > i em { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#74b6df,#62b89c); transition: width .2s ease; }
@keyframes ipc-crop-processing { from { background-position: 130% 0; } to { background-position: -130% 0; } }
html.theme-dark .ipc-crop-toolbar, html.theme-dark .ipc-crop-footer { background: #252b33; border-color: rgba(255,255,255,.08); }
html.theme-dark .ipc-crop-body { background: #1d2228; }
html.theme-dark .ipc-crop-mode { color: #cbd5df; }
html.theme-dark .ipc-crop-mode select { background: #303740; color: #e5edf5; border-color: rgba(255,255,255,.12); }
html.theme-dark .ipc-crop-mode-hint, html.theme-dark .ipc-crop-summary { color: #929daa; }
html.theme-dark .ipc-crop-summary strong, html.theme-dark .ipc-crop-item-copy strong { color: #e3ebf3; }
html.theme-dark .ipc-crop-empty, html.theme-dark .ipc-crop-item { background: #292f37; color: #eef4fb; border-color: rgba(255,255,255,.1); }
html.theme-dark .ipc-crop-thumb { background: #20252b; }
html.theme-dark .ipc-crop-progress > i { background: #3a424c; }
@media (max-width: 760px) {
  .ipc-crop-batch-dialog { width: 100vw; height: 100vh; min-height: 0; border-radius: 0; }
  .ipc-crop-toolbar { flex-wrap: wrap; }
  .ipc-crop-mode-hint { width: 100%; order: 5; }
  .ipc-crop-toolbar .ipc-secondary { margin-left: 0; }
  .ipc-crop-grid { grid-template-columns: repeat(2, minmax(0,1fr)); padding: 0 10px 12px; }
  .ipc-crop-footer { flex-wrap: wrap; }
  .ipc-crop-progress { width: 100%; flex-basis: 100%; }
}
