:root {
    --batch-blue: #0a84ff;
    --batch-blue-hover: #3b9dff;
    --batch-blue-soft: #64a8ff;
    --batch-card: rgba(255, 255, 255, 0.045);
    --batch-border: rgba(10, 132, 255, 0.34);
}

.welcome-batch-btn {
    --welcome-action-accent: #0a84ff;
    --welcome-action-hover-color: #e7f4ff;
    --welcome-action-hover-bg: rgba(27, 45, 68, 0.78);
}

.batch-mode-overlay {
    z-index: 2350;
}

.batch-mode-content {
    --modal-accent: var(--batch-blue);
    --ui-scroll-thumb: var(--batch-blue-soft);
    --ui-scroll-thumb-hover: #8fc1ff;
    --ui-scroll-track: rgba(20, 40, 64, 0.92);
    position: relative;
    width: min(1344px, 96vw);
    height: min(900px, 94vh);
    max-height: 94vh;
    padding: 20px 22px 18px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 14px;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid rgba(10, 132, 255, 0.48);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(24, 27, 34, 0.68), rgba(18, 21, 28, 0.64));
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48), 0 0 34px rgba(10, 132, 255, 0.1);
}

:where(.batch-mode-content, .batch-mode-content *, .batch-person-editor, .batch-person-editor *) { scrollbar-color: var(--ui-scroll-thumb) var(--ui-scroll-track); }
:where(.batch-mode-content, .batch-mode-content *, .batch-person-editor, .batch-person-editor *)::-webkit-scrollbar { width: 10px; height: 10px; }
:where(.batch-mode-content, .batch-mode-content *, .batch-person-editor, .batch-person-editor *)::-webkit-scrollbar-track { background: var(--ui-scroll-track); border-radius: 6px; }
:where(.batch-mode-content, .batch-mode-content *, .batch-person-editor, .batch-person-editor *)::-webkit-scrollbar-thumb { min-height: 34px; border: 2px solid var(--ui-scroll-track); border-radius: 6px; background: var(--ui-scroll-thumb); }
:where(.batch-mode-content, .batch-mode-content *, .batch-person-editor, .batch-person-editor *)::-webkit-scrollbar-thumb:hover { background: var(--ui-scroll-thumb-hover); }

.batch-crop-card { --modal-accent: #ff9f0a; }
.batch-layout-card { --modal-accent: #BF5AF2; }
.batch-cover-card { --modal-accent: #32aec6; }

.batch-mode-content :is(button, select, input).is-pointer-focus:focus,
.batch-mode-content :is(button, select, input).is-pointer-focus:focus-visible {
    outline: none !important;
}

.batch-mode-header {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.batch-mode-heading {
    margin: 0;
    color: var(--batch-blue-soft);
}

.batch-mode-heading svg {
    width: 24px;
    height: 24px;
}

.batch-person-entry { margin-left: auto; white-space: nowrap; }
.batch-person-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.batch-person-heading .batch-section-title { margin: 0; }
.batch-person-editor-overlay { z-index: 2450; }
.batch-person-editor {
    --modal-accent: var(--batch-blue);
    --ui-scroll-thumb: var(--batch-blue-soft);
    --ui-scroll-thumb-hover: #8fc1ff;
    --ui-scroll-track: rgba(20, 40, 64, .92);
    width: min(900px, 94vw); max-height: 90vh; padding: 22px;
    display: flex; flex-direction: column; flex-wrap: nowrap; gap: 12px; overflow: hidden;
    border-color: var(--batch-border); border-radius: 14px;
    background: var(--panel-bg);
}
.batch-person-tools { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.batch-person-tools > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.batch-person-tools > div > span { color: var(--batch-blue-soft); font-size: 13px; }
.batch-person-empty-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #90949d; }
.batch-person-empty-check input { accent-color: var(--batch-blue); }
.batch-person-sequence { display: flex; gap: 12px; flex-wrap: wrap; }
.batch-person-sequence[hidden] { display: none; }
.batch-person-sequence label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--batch-blue-soft); }
.batch-person-sequence input { width: 100px; }
.batch-person-sequence label:first-child input { width: 180px; }
.batch-person-editor input[type="text"], .batch-person-editor input[type="number"] {
    min-width: 0; height: 36px; padding: 0 10px; box-sizing: border-box;
    border: 1px solid var(--batch-border); border-radius: 8px; background: var(--panel-bg);
    color: var(--text); font-size: 14px;
}
.batch-person-editor input:focus { border-color: var(--batch-blue-soft); outline-color: var(--batch-blue-soft); }
.batch-person-columns, .batch-person-row { display: grid; grid-template-columns: 48px minmax(100px, 1fr) minmax(110px, 1fr) minmax(110px, 1fr); gap: 12px; align-items: center; }
.batch-person-columns { padding: 0 13px; margin-right: 10px; color: var(--batch-blue-soft); font-size: 13px; text-align: left; }
.batch-person-list { min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-gutter: stable; display: flex; flex-direction: column; gap: 8px; }
.batch-person-row { flex: 0 0 auto; padding: 8px 12px; background: var(--batch-card); border: 1px solid var(--batch-border); border-radius: 12px; }
.batch-person-row img { width: 48px; height: 62px; object-fit: contain; background: var(--panel-bg); border-radius: 8px; }
.batch-person-source { min-width: 0; overflow-wrap: anywhere; color: #90949d; font-size: 13px; }
.batch-person-message { margin: 0; color: #90949d; font-size: 12px; line-height: 1.5; }
.batch-person-message.is-error { color: #ff8a83; }
.batch-person-footer { display: flex; justify-content: flex-end; gap: 10px; padding-top: 12px; border-top: 1px solid var(--batch-border); }
.batch-person-footer .btn { min-width: 120px; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding-top: 0; padding-bottom: 0; line-height: 1; }
@media (max-width: 680px) {
    .batch-person-editor { padding: 16px; }
    .batch-person-columns, .batch-person-row { grid-template-columns: 48px minmax(80px, 1fr) minmax(100px, 1fr) minmax(100px, 1fr); gap: 8px; }
}

.batch-number-confirmation {
    min-width: 0;
    min-height: 46px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    box-sizing: border-box;
    border: 1px solid rgba(10, 132, 255, 0.16);
    border-radius: 10px;
    background: rgba(8, 11, 17, 0.2);
}

.batch-name-field {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #aeb2bb;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.batch-name-field input {
    width: min(280px, 32vw);
    height: 34px;
    box-sizing: border-box;
    border: 1px solid rgba(10, 132, 255, 0.28);
    border-radius: 8px;
    color: #eef8ff;
    background: rgba(8, 11, 17, 0.42);
    font: inherit;
    font-size: 13px;
}

.batch-name-field input:hover { border-color: rgba(100, 168, 255, 0.52); }
.batch-name-field input:focus-visible {
    border-color: #64a8ff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(100, 168, 255, 0.2);
}

.batch-name-field input:disabled {
    color: #8e9299;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(8, 11, 17, 0.16);
}

.batch-number-confirmation.is-locked {
    border-color: rgba(255, 255, 255, 0.08);
}

.batch-prefix-toggle.switch-row {
    --switch-accent: var(--batch-blue);
    width: auto;
    min-height: 34px;
    justify-content: flex-start;
    gap: 7px;
    padding: 0 7px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    color: #c7d8ea;
    background: rgba(8, 11, 17, 0.22);
    font-size: 12px;
}

.batch-prefix-toggle.switch-row.is-disabled {
    color: #8e9299;
    opacity: 1;
}

.batch-prefix-toggle.switch-row.is-disabled .switch-control {
    opacity: 0.72;
}

.batch-prefix-toggle .switch-control {
    width: 38px;
    height: 22px;
    flex-basis: 38px;
}

.batch-prefix-toggle .switch-control::after {
    width: 16px;
    height: 16px;
}

.batch-prefix-toggle input[type="checkbox"]:checked + .switch-control::after {
    transform: translateX(16px);
}


.batch-item-count {
    padding: 5px 10px;
    border: 1px solid rgba(10, 132, 255, 0.28);
    border-radius: 999px;
    color: #a9cdf7;
    background: rgba(10, 132, 255, 0.08);
    font-size: 13px;
    font-weight: 800;
}

.batch-mode-close,
.batch-inspector-close {
    width: 36px;
    min-width: 36px;
    height: 36px;
    margin-left: auto;
    border: 0;
    border-radius: 50%;
    color: #d1d1d6;
    background: rgba(0, 0, 0, 0.2);
}

.batch-mode-close:hover,
.batch-mode-close:focus-visible,
.batch-inspector-close:hover,
.batch-inspector-close:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.batch-mode-close svg,
.batch-inspector-close svg {
    width: 16px;
    height: 16px;
}

.batch-step-tabs {
    min-height: 46px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
}

.batch-step-tabs button {
    position: relative;
    min-width: 0;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #aeb2bb;
    background: transparent;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.batch-step-tabs button > span:first-child {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 12px;
}

.batch-step-tabs button:hover:not(:disabled) {
    color: #dbeeff;
    background: rgba(10, 132, 255, 0.09);
}

.batch-step-tabs button.active {
    color: var(--ink-on-accent);
    border-color: var(--batch-blue);
    background: var(--batch-blue);
    box-shadow: inset 0 0 0 1px rgba(10, 132, 255, 0.12), 0 0 14px rgba(10, 132, 255, 0.09);
}

.batch-step-tabs button.active > span:first-child {
    color: var(--batch-blue);
    border-color: var(--ink-on-accent);
    background: var(--ink-on-accent);
}

.batch-step-tabs button:hover:not(:disabled) > span:first-child { color: #fff; border-color: #fff; }

.batch-step-tabs button:focus-visible {
    outline: 2px solid rgba(100, 168, 255, 0.72);
    outline-offset: 1px;
    box-shadow: inset 0 0 0 1px rgba(10, 132, 255, 0.18), 0 0 14px rgba(10, 132, 255, 0.16);
}

.batch-step-tabs button:focus:not(:focus-visible),
.batch-filter-tabs button:focus:not(:focus-visible) {
    outline: none;
}

.batch-filter-tabs button:focus-visible {
    outline: 2px solid rgba(100, 168, 255, 0.72);
    outline-offset: 1px;
}

.batch-step-tabs button.is-pointer-focus:focus,
.batch-step-tabs button.is-pointer-focus:focus-visible,
.batch-filter-tabs button.is-pointer-focus:focus,
.batch-filter-tabs button.is-pointer-focus:focus-visible {
    outline: none;
}

.batch-step-tabs button:disabled {
    opacity: 0.42;
    cursor: default;
}

.batch-step-tabs .batch-step-warning-badge {
    position: absolute;
    z-index: 2;
    top: 3px;
    right: 8px;
    width: 18px;
    height: 18px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid #ff453a;
    border-radius: 50%;
    color: #fff;
    background: #ff453a;
    box-shadow: 0 0 0 2px rgba(255, 69, 58, 0.12), 0 0 8px rgba(255, 69, 58, 0.24);
    pointer-events: none;
}

.batch-step-tabs .batch-step-warning-badge[hidden] { display: none; }
.batch-step-tabs .batch-step-warning-badge svg {
    width: 13px;
    height: 13px;
}

.batch-mode-body {
    position: relative;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.batch-step-panel {
    width: 100%;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
}

.batch-step-panel[hidden] {
    display: none !important;
}

.batch-import-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.batch-dropzone {
    min-height: 136px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    box-sizing: border-box;
    border: 1px dashed rgba(10, 132, 255, 0.5);
    border-radius: 12px;
    color: #c8d9eb;
    background: linear-gradient(180deg, rgba(10, 132, 255, 0.075), rgba(10, 132, 255, 0.025));
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.batch-dropzone.has-items {
    min-height: 68px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 9px 14px;
}

.batch-dropzone.has-items .batch-dropzone-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
}

.batch-dropzone.has-items .batch-dropzone-copy {
    flex: 1 1 auto;
    align-items: flex-start;
    text-align: left;
}

.batch-dropzone.has-items .batch-dropzone-copy strong {
    font-size: 15px;
}

.batch-dropzone.has-items .batch-dropzone-copy span {
    font-size: 12px;
}

.batch-dropzone:not(.has-items) .batch-dropzone-icon {
    display: none;
}

.batch-dropzone.has-items .batch-dropzone-empty-actions,
.batch-dropzone:not(.has-items) .batch-dropzone-filled-actions {
    display: none;
}

.batch-dropzone.is-dragging {
    border-color: #7bb8ff;
    background: rgba(10, 132, 255, 0.14);
    transform: scale(0.997);
}

.batch-dropzone-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #8ec4ff;
    background: rgba(10, 132, 255, 0.13);
}

.batch-dropzone-icon svg {
    width: 25px;
    height: 25px;
}

.batch-dropzone-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.batch-dropzone-copy > strong {
    color: #edf7ff;
    font-size: 18px;
    line-height: 1.25;
}

.interface-font-huninn .batch-dropzone-copy > strong,
.interface-font-iansui .batch-dropzone-copy > strong {
    font-weight: 400;
}

.batch-dropzone-copy > span {
    color: #a7abb4;
    font-size: 14px;
}

.batch-dropzone-actions,
.batch-inspector-actions,
.batch-mode-footer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.batch-layout-appearance { position: relative; min-width: 0; margin-top: 12px; }
.batch-appearance-toolbar { display: grid; grid-template-columns: repeat(4, minmax(76px,1fr)) 128px; gap: 8px; align-items: center; }
.batch-appearance-summary { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #d9b7ee; }
.batch-appearance-summary { grid-column: 1 / 4; }
.batch-appearance-toolbar .simple-layout-appearance-toggle { grid-column: 4; justify-self: end; width: 88px; max-width: 100%; min-height: 32px; }
.batch-appearance-toolbar .batch-split-specs-option { grid-column: 5; min-height: 32px; margin: 0; }
.batch-appearance-panel { position: absolute; display: block; grid-template-rows: none; top: auto; bottom: auto; left: 0; right: auto; width: min(640px, calc(100% - 32px)); min-width: 0; max-width: calc(100% - 32px); box-sizing: border-box; overflow: visible; z-index: 32; }
select[data-line-width-control][hidden] { display: none; }
.batch-saving-dashboard { display: flex; flex-direction: column; gap: 20px; padding: 24px; margin: 0; }
.batch-saving-dashboard[hidden], .batch-completion-list[hidden], .batch-output-groups[hidden] { display: none; }
.batch-saving-person { display: flex; align-items: center; gap: 16px; }
.batch-saving-person img { width: 64px; height: 82px; object-fit: contain; background: var(--list-photo-thumb-matte); border-radius: 8px; }
.batch-saving-person strong { display: block; font-size: 20px; }
.batch-saving-person span { display: block; margin-top: 8px; color: #aeaeb2; font-size: 15px; }
.batch-saving-dashboard progress { width: 100%; height: 8px; accent-color: #3CAE4E; }
.batch-saving-counts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.batch-saving-counts > div { border: 1px solid var(--batch-border); border-radius: 8px; padding: 12px; background: var(--batch-card); }
.batch-saving-counts span, .batch-saving-counts strong { display: block; }
.batch-saving-counts strong { margin-top: 8px; font-size: 22px; }
.batch-saving-counts [data-kind="crop"] { color: #ff9f0a; }
.batch-saving-counts [data-kind="layout"] { color: #BF5AF2; }
.batch-saving-counts [data-kind="cover"] { color: #32aec6; }
.batch-completion-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 12px; }
.batch-completion-result { display: flex; align-items: center; gap: 10px; border: 1px solid rgba(60,174,78,.3); border-radius: 8px; padding: 10px; background: var(--batch-card); min-width: 0; }
.batch-completion-result img { width: 36px; height: 46px; flex: 0 0 auto; object-fit: contain; background: var(--list-photo-thumb-matte); }
.batch-completion-copy { min-width: 0; flex: 1; }
.batch-completion-heading { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.batch-completion-heading strong { min-width: 0; flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.batch-completion-heading.has-customer-name strong { max-width: 70%; }
.batch-completion-heading .batch-completion-name { min-width: 0; flex: 1 1 0; margin: 0; font-size: 12px; font-weight: 400; color: #aeaeb2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.batch-completion-heading .batch-completion-name[hidden] { display: none; }
.batch-completion-detail { display: block; margin-top: 4px; color: #aeaeb2; font-size: 12px; overflow-wrap: anywhere; }
.batch-result-check { color: #3CAE4E; }
.batch-result-check svg { width: 20px; height: 20px; stroke: currentColor; }

.batch-dropzone-actions {
    margin-top: 2px;
}

.batch-dropzone-empty-actions .btn {
    min-width: 140px;
    min-height: 40px;
    margin: 0;
    border-radius: 8px;
}

.batch-dropzone.has-items .batch-dropzone-actions {
    margin-top: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.batch-primary-btn,
.batch-export-btn {
    border-color: #278ff8;
    color: #06111d;
    background: var(--batch-blue);
}

.batch-primary-btn:hover:not(:disabled),
.batch-primary-btn:focus-visible:not(:disabled),
.batch-export-btn:hover:not(:disabled),
.batch-export-btn:focus-visible:not(:disabled) {
    border-color: #74b8ff;
    background: var(--batch-blue-hover);
    box-shadow: 0 0 16px rgba(10, 132, 255, 0.22);
}

.batch-mode-footer .batch-primary-btn:focus-visible:not(:disabled) {
    outline: 2px solid rgba(100, 168, 255, 0.82);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.16), 0 0 16px rgba(10, 132, 255, 0.24);
}

.batch-mode-footer .batch-primary-btn:focus:not(:focus-visible) {
    outline: none;
}

.batch-secondary-btn,
.batch-back-btn {
    border-color: rgba(10, 132, 255, 0.42);
    color: #b9dcff;
    background: rgba(10, 132, 255, 0.09);
}

.batch-secondary-btn:hover:not(:disabled),
.batch-secondary-btn:focus-visible:not(:disabled) {
    border-color: rgba(97, 173, 255, 0.72);
    color: #eff8ff;
    background: rgba(10, 132, 255, 0.17);
}

.batch-danger-btn {
    border-color: rgba(255, 69, 58, 0.5);
    color: #ff8a83;
    background: rgba(255, 69, 58, 0.07);
}

.batch-primary-btn:disabled,
.batch-export-btn:disabled {
    opacity: 0.42;
    filter: saturate(0.45);
    cursor: default;
    box-shadow: none;
}

.batch-subfolder-choice {
    position: absolute;
    inset: 0;
    z-index: 12;
    display: grid;
    place-items: center;
    padding: 24px;
    box-sizing: border-box;
    background: rgba(8, 11, 17, 0.72);
    backdrop-filter: blur(var(--glass-blur-nested));
    -webkit-backdrop-filter: blur(var(--glass-blur-nested));
}

.batch-subfolder-choice[hidden] {
    display: none;
}

.batch-subfolder-choice-card {
    width: min(440px, 100%);
    padding: 24px;
    box-sizing: border-box;
    border: 1px solid rgba(89, 166, 255, 0.58);
    border-radius: 14px;
    color: #eef7ff;
    background: linear-gradient(180deg, rgba(31, 39, 55, 0.86), rgba(22, 27, 38, 0.83));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42), 0 0 24px rgba(10, 132, 255, 0.12);
}

.batch-subfolder-choice-card > strong {
    display: block;
    color: #80bdff;
    font-size: 20px;
}

.batch-subfolder-choice-card > p {
    margin: 9px 0 18px;
    color: #b5bbc6;
    line-height: 1.6;
}

.batch-subfolder-choice-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.batch-source-list {
    min-height: 0;
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 8px;
    padding-right: 6px;
    overflow-y: auto;
    scrollbar-color: rgba(10, 132, 255, 0.68) rgba(10, 132, 255, 0.08);
}

.batch-source-item {
    min-height: 74px;
    display: grid;
    grid-template-columns: var(--list-photo-thumb-width) minmax(0, 1fr) 38px;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    padding: 6px 8px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
}

.batch-source-item img {
    width: var(--list-photo-thumb-width);
    height: var(--list-photo-thumb-height);
    display: block;
    box-sizing: border-box;
    object-fit: contain;
    object-position: center;
    border: 1px solid rgba(10, 132, 255, 0.38);
    border-radius: 8px;
    background: var(--list-photo-thumb-matte);
}

.batch-source-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.batch-source-info input {
    width: min(420px, 100%);
    height: 34px;
    padding: 0 10px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #f4f5f7;
    background: rgba(0, 0, 0, 0.24);
    font: inherit;
    font-weight: 800;
}

.batch-source-info input:focus {
    border-color: #69afff;
    outline: 2px solid rgba(10, 132, 255, 0.18);
    outline-offset: 1px;
}

.batch-source-info span {
    overflow: hidden;
    color: #90949d;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.batch-remove-item {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: #ff756d;
    background: transparent;
    cursor: pointer;
}

.batch-remove-item:hover,
.batch-remove-item:focus-visible {
    color: #ffaaa5;
    background: rgba(255, 69, 58, 0.1);
}

.batch-remove-item.is-confirming { color: #fff; background: rgba(255, 69, 58, 0.82); }

.batch-remove-item svg {
    width: 19px;
    height: 19px;
}

.batch-recipe-panel {
    display: block;
}

.batch-recipe-columns {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(650px, 1.2fr) minmax(540px, 1fr);
    gap: 14px;
}

.batch-recipe-column {
    min-height: 0;
    padding-right: 6px;
    overflow-y: auto;
    scrollbar-color: rgba(10, 132, 255, 0.68) rgba(10, 132, 255, 0.08);
}

.batch-recipe-card,
.batch-recipe-summary {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: var(--batch-card);
}

.batch-recipe-card + .batch-recipe-card {
    margin-top: 12px;
}

.batch-recipe-card h3 {
    margin: 0 0 12px;
    font-size: 17px;
}

.batch-section-title {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 900;
}

.batch-section-title svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.batch-crop-card { --select-accent: #ff9f0a; }
.batch-layout-card { --select-accent: #BF5AF2; }
.batch-cover-card { --select-accent: #32aec6; }
.batch-crop-card h3 { color: #ffb340; }
.batch-layout-card h3 { color: #ca71f4; }
.batch-cover-card h3 { color: #49bfd5; }

.batch-spec-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.batch-spec-card {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 30px 132px auto;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.batch-spec-card.has-crop:not(.has-layout-count) {
    border-color: rgba(255, 159, 10, 0.52);
    background: rgba(255, 159, 10, 0.085);
    box-shadow: inset 3px 0 0 rgba(255, 159, 10, 0.78);
}

.batch-spec-card.has-layout-count:not(.has-crop) {
    border-color: rgba(191, 90, 242, 0.52);
    background: rgba(191, 90, 242, 0.08);
    box-shadow: inset -3px 0 0 rgba(191, 90, 242, 0.78);
}

.batch-spec-card.has-crop.has-layout-count {
    border-color: rgba(221, 119, 126, 0.62);
    background: linear-gradient(90deg, rgba(255, 159, 10, 0.09), rgba(191, 90, 242, 0.09));
    box-shadow: inset 3px 0 0 rgba(255, 159, 10, 0.82), inset -3px 0 0 rgba(191, 90, 242, 0.82);
}

.batch-spec-card-copy {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.batch-spec-card-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.batch-spec-card-identity .batch-spec-delete-custom {
    width: 30px;
    min-width: 30px;
    min-height: 34px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #ff756d;
    background: transparent;
    cursor: pointer;
}

.batch-spec-card-identity .batch-spec-delete-custom:hover,
.batch-spec-card-identity .batch-spec-delete-custom:focus-visible {
    border-color: rgba(255, 69, 58, 0.58);
    color: #ff8a84;
    background: rgba(255, 69, 58, 0.11);
    outline: 2px solid rgba(255, 69, 58, 0.16);
}

.batch-spec-card-identity .batch-spec-delete-custom:disabled { opacity: 0.36; cursor: default; }

.batch-spec-delete-custom svg { width: 17px; height: 17px; }

.batch-spec-card-copy strong {
    min-width: 0;
    font-size: 18px;
    overflow: hidden;
    color: #f4f5f7;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.batch-spec-card-copy > span { flex: 0 0 auto; color: #9b9fa8; font-size: 12px; white-space: nowrap; }
.batch-spec-tool-btn { --select-accent: #ff9f0a; width: 30px; min-width: 30px; height: 30px; padding: 4px; }
.batch-spec-tool-btn svg { width: 20px; height: 20px; }

.batch-crop-check {
    width: 132px;
    justify-self: stretch;
}

.batch-count-stepper { justify-self: end; }

.batch-crop-check,
.batch-count-stepper {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #d1d1d6;
    font-size: 13px;
    font-weight: 800;
}

.batch-crop-check .simple-crop-toggle-label {
    width: 100%;
    min-height: 34px;
    padding-inline: 8px;
    gap: 6px;
    box-sizing: border-box;
}

.batch-crop-check input:not(:checked) + .simple-crop-toggle-label {
    border-color: rgba(255, 159, 10, 0.65);
    color: #ff9f0a;
    background: rgba(255, 159, 10, 0.10);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.batch-crop-check:hover input:not(:checked) + .simple-crop-toggle-label {
    border-color: #ff9f0a;
    color: #ffb340;
    background: rgba(255, 159, 10, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 0 14px rgba(255, 159, 10, 0.14);
}

.batch-crop-check .simple-crop-toggle-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}
.batch-count-stepper {
    min-height: 34px;
    padding: 3px 0 3px 6px;
    border: 0;
    color: #e5c9f3;
    background: transparent;
}

.batch-count-stepper > span { white-space: nowrap; }

.batch-count-button {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(202, 113, 244, 0.48);
    border-radius: 7px;
    color: #ebc8ff;
    background: rgba(191, 90, 242, 0.13);
    font: inherit;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 19px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    cursor: pointer;
}

.batch-count-button:hover:not(:disabled),
.batch-count-button:focus-visible:not(:disabled) {
    border-color: #d586fa;
    color: #fff;
    background: rgba(191, 90, 242, 0.27);
    outline: 2px solid rgba(191, 90, 242, 0.18);
}

.batch-count-button:disabled {
    opacity: 0.34;
    cursor: default;
}

.batch-count-stepper > .batch-count-value {
    --modal-accent: #d586fa;
    width: 34px;
    flex: 0 0 34px;
    height: 27px;
    padding: 0 3px;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #f3e8fa;
    background: rgba(0, 0, 0, 0.18);
    text-align: center;
    font: inherit;
    font-weight: 900;
}

.batch-count-stepper > .batch-count-value:focus,
.batch-count-stepper > .batch-count-value:focus-visible {
    border-color: rgba(213, 134, 250, 0.78);
    outline: 2px solid rgba(191, 90, 242, 0.28);
    outline-offset: 1px;
    box-shadow: 0 0 10px rgba(191, 90, 242, 0.18);
}

.batch-count-value::-webkit-inner-spin-button,
.batch-count-value::-webkit-outer-spin-button { appearance: none; margin: 0; }

.batch-spec-card select.batch-flexible-spec-select {
    border-color: rgba(255, 159, 10, 0.62);
    color: #ffe0aa;
    background: rgba(255, 159, 10, 0.11);
}

.batch-spec-card select.batch-flexible-spec-select:hover,
.batch-spec-card select.batch-flexible-spec-select:focus-visible {
    border-color: #ffb340;
    outline: 2px solid rgba(255, 159, 10, 0.18);
}

.batch-paper-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(76px, 1fr)) 128px;
    gap: 8px;
}
.batch-paper-row + .batch-paper-row { margin-top: 8px; }

.batch-paper-row > button,
.batch-cover-options button {
    min-height: 46px;
    border: 1px solid rgba(191, 90, 242, 0.28);
    border-radius: 8px;
    color: #d9c6e5;
    background: rgba(191, 90, 242, 0.055);
    font: inherit;
    cursor: pointer;
}

.batch-paper-row > button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.batch-paper-row > button span { color: #a995b5; font-size: 11px; }
.batch-paper-row > button:hover,
.batch-cover-options button:hover {
    border-color: #ca71f4;
    color: #f4dcff;
    background: rgba(191, 90, 242, 0.18);
}
.batch-paper-row > button.active { border-color: var(--accent-purple); color: var(--ink-on-accent); background: var(--accent-purple); box-shadow: var(--glow-purple-soft); }
.batch-paper-row > button.active span { color: inherit; }
.batch-paper-row > button.active:hover:not(:disabled) { border-color: #ca71f4; background: #ca71f4; }

.batch-paper-row > button:focus-visible {
    border-color: #ca71f4;
    outline-color: rgba(202, 113, 244, 0.72);
}

.batch-unlimited-toggle {
    position: relative;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #dec8e8;
    font-size: 13px;
    font-weight: 800;
}

.batch-unlimited-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
}

.batch-unlimited-toggle .switch-control {
    width: 44px;
    height: 24px;
    flex: 0 0 44px;
    position: relative;
    border: 1px solid rgba(191, 90, 242, 0.44);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
}

.batch-unlimited-toggle .switch-control::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #c7c7cc;
    transition: transform 0.15s ease, background 0.15s ease;
}

.batch-unlimited-toggle input:checked + .switch-control {
    border-color: #BF5AF2;
    background: #BF5AF2;
    box-shadow: 0 0 10px rgba(191, 90, 242, 0.28);
}
.batch-unlimited-toggle input:checked + .switch-control::after { transform: translateX(20px); background: #1c1c1e; }
.batch-unlimited-toggle.is-disabled {
    opacity: 0.44;
    cursor: default;
}
.batch-unlimited-toggle.is-disabled .switch-control { box-shadow: none; }

.batch-appearance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
}

.batch-appearance-grid label,
.batch-inspector-spec-field {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #d8b5ea;
    font-size: 12px;
    font-weight: 800;
}

.batch-appearance-grid label > span {
    flex: 0 0 auto;
    white-space: nowrap;
    writing-mode: horizontal-tb;
}

.batch-appearance-grid select,
.batch-spec-card select,
.batch-inspector-spec-field select {
    min-width: 0;
    height: 34px;
    flex: 1 1 auto;
    padding: 0 8px;
    border: 1px solid rgba(191, 90, 242, 0.3);
    border-radius: 8px;
    color: #f3eef5;
    background: #202024;
    font: inherit;
}

.batch-appearance-grid input[type="color"] {
    width: 36px;
    min-width: 36px;
    height: 34px;
    padding: 2px;
    border: 1px solid rgba(191, 90, 242, 0.34);
    border-radius: 8px;
    background: #252529;
}

.batch-cut-extension-toggle {
    min-height: 34px;
    box-sizing: border-box;
    justify-content: space-between;
    padding: 0 3px 0 7px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #d8b5ea;
}
.batch-cut-extension-toggle .switch-control {
    transform: none;
    transform-origin: right center;
}
.batch-cut-extension-toggle:has(input:focus-visible) {
    outline: 2px solid rgba(202,113,244,0.68);
    outline-offset: 1px;
    box-shadow: none;
}
.batch-cut-extension-toggle.is-disabled { opacity: 0.48; }

.batch-cover-options {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.batch-cover-options button {
    border-color: rgba(50, 174, 198, 0.3);
    color: #b9e2ea;
    background: rgba(50, 174, 198, 0.055);
}

.batch-cover-options button:hover {
    border-color: #49bfd5;
    color: #e0f9ff;
    background: rgba(50, 174, 198, 0.17);
}
.batch-cover-options button.active { border-color: var(--accent-blue); color: var(--ink-on-accent); background: var(--accent-blue); }
.batch-cover-options button.active:hover:not(:disabled) { border-color: var(--accent-blue-hover); background: var(--accent-blue-hover); }

.batch-cover-options button:focus-visible {
    border-color: #49bfd5;
    outline: 2px solid rgba(50, 174, 198, 0.28);
    outline-offset: 2px;
    box-shadow: 0 0 14px rgba(50, 174, 198, 0.12);
}

.batch-cover-settings {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.batch-cover-control-row {
    min-width: 0;
    display: grid;
    align-items: center;
    gap: 8px;
}

.batch-cover-color-row {
    grid-template-columns: minmax(190px, 1.2fr) max-content 42px max-content 58px 58px;
}

.batch-cover-options-row {
    grid-template-columns: 88px repeat(2, minmax(0, 1fr));
}

.batch-cover-control-row > label {
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    color: #a8d8e2;
    font-size: 12px;
    font-weight: 800;
}

.batch-cover-control-row > label > span { flex: 0 0 auto; white-space: nowrap; }

.batch-cover-settings input[type="date"],
.batch-cover-settings select {
    width: 100%;
    height: 36px;
    min-width: 0;
    padding: 0 9px;
    box-sizing: border-box;
    border: 1px solid rgba(50, 174, 198, 0.34);
    border-radius: 8px;
    color: #edfaff;
    background: #202528;
    font: inherit;
}

.batch-cover-date-field { width: 100%; max-width: 230px; justify-self: stretch; }
.batch-cover-date-field input { flex: 1 1 auto; }
.batch-cover-date-field .sunny-date-field { width: auto; min-width: 0; flex: 1 1 auto; }

.batch-cover-control-row .sunny-select-shell {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
}

.batch-cover-options-row > label {
    width: 100%;
}

.batch-cover-color-field {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.batch-cover-select-field {
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr);
}

.batch-cover-color-field input[type="color"] {
    width: 42px;
    min-width: 42px;
    height: 36px;
    padding: 2px;
    box-sizing: border-box;
    border: 1px solid rgba(50, 174, 198, 0.34);
    border-radius: 8px;
    background: #202528;
}

.batch-cover-action {
    height: 36px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(50, 174, 198, 0.38);
    border-radius: 8px;
    color: #bdebf4;
    background: rgba(50, 174, 198, 0.065);
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
    cursor: pointer;
}

.batch-cover-action:hover:not(:disabled),
.batch-cover-action:focus-visible:not(:disabled) {
    border-color: #49bfd5;
    color: #effcff;
    background: rgba(50, 174, 198, 0.17);
    outline: 2px solid rgba(50, 174, 198, 0.14);
}

.batch-cover-action:disabled { opacity: 0.38; cursor: default; }
.batch-cover-swap { width: 42px; padding: 0; }
.batch-cover-swap svg { width: 16px; height: 16px; flex: 0 0 auto; }
.batch-cover-reset { color: #d6d6da; border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); }

.batch-cover-preview-btn {
    width: 88px;
    min-width: 88px;
}

.batch-cover-animation-toggle {
    min-height: 36px;
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start;
    gap: 8px !important;
}

.batch-cover-animation-toggle input {
    position: absolute;
    opacity: 0;
}

.batch-cover-animation-toggle .switch-control {
    width: 44px;
    height: 24px;
    position: relative;
    display: inline-block;
    flex: 0 0 44px;
    border: 1px solid rgba(50, 174, 198, 0.44);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
}

.batch-cover-animation-toggle .switch-control::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #c7c7cc;
    transition: transform 0.15s ease, background 0.15s ease;
}

.batch-cover-animation-toggle input:checked + .switch-control { border-color: #32aec6; background: #32aec6; box-shadow: 0 0 10px rgba(50, 174, 198, 0.26); }
.batch-cover-animation-toggle input:checked + .switch-control::after { transform: translateX(20px); background: #1c1c1e; }
.batch-cover-settings.is-disabled { opacity: 0.46; }
.batch-cover-settings .sunny-color-swatch-btn:disabled {
    cursor: default;
    filter: none;
    box-shadow: none;
}

.batch-recipe-summary {
    height: max-content;
    margin-top: 12px;
    border-color: var(--batch-border);
    background: rgba(10, 132, 255, 0.065);
}

.batch-recipe-summary > strong { display: inline-flex; align-items: center; gap: 8px; color: #83bdff; font-size: 17px; }
.batch-recipe-summary > strong > svg { width: 22px; height: 22px; flex: 0 0 auto; }
.batch-recipe-summary small { color: #9ca3ad; line-height: 1.6; }

.batch-summary-details {
    display: grid;
    gap: 9px;
    margin: 12px 0;
    color: #edf6ff;
    line-height: 1.55;
}

.batch-summary-details.has-previews {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.8fr);
    align-items: center;
    gap: 16px;
}
#batchRecipeSummary.has-previews { grid-template-columns: minmax(0, 1fr); }
#batchRecipeSummary .batch-summary-thumbnails { display: flex; flex-wrap: wrap; align-items: stretch; }
#batchRecipeSummary .batch-summary-thumbnail { flex: 0 1 112px; width: 112px; max-width: 100%; box-sizing: border-box; }

.batch-summary-copy {
    min-width: 0;
    display: grid;
    gap: 9px;
}

.batch-summary-thumbnails {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(54px, 1fr));
    align-items: stretch;
    gap: 6px;
}

.batch-summary-thumbnail {
    min-width: 0;
    margin: 0;
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    border: 1px solid rgba(10, 132, 255, 0.22);
    border-radius: 7px;
    background: rgba(10, 132, 255, 0.055);
}

.batch-summary-thumbnail.is-crop { border-color: rgba(255, 159, 10, 0.28); background: rgba(255, 159, 10, 0.055); }
.batch-summary-thumbnail.is-layout { border-color: rgba(191, 90, 242, 0.28); background: rgba(191, 90, 242, 0.055); }
.batch-summary-thumbnail.is-cover { border-color: rgba(50, 174, 198, 0.32); background: rgba(50, 174, 198, 0.065); }
.batch-summary-thumbnail canvas,
.batch-summary-thumbnail img {
    display: block;
    width: 100%;
    height: 58px;
    object-fit: contain;
}
.batch-summary-thumbnail.is-cover canvas {
    width: auto;
    max-width: 100%;
    height: 58px;
}
.batch-summary-thumbnail canvas.batch-photo-placeholder {
    width: auto;
    max-width: 100%;
    height: 58px;
}
.batch-photo-placeholder {
    width: auto;
    max-width: 100%;
    height: 58px;
    box-sizing: border-box;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 179, 64, 0.62);
    border-radius: 5px;
    color: #ffb340;
    background: #3a260e;
    box-shadow: inset 0 0 0 1px rgba(255, 209, 139, 0.06);
}
.batch-photo-placeholder[data-tone="1"] { background: #4a3010; }
.batch-photo-placeholder[data-tone="2"] { background: #5a3812; }
.batch-photo-placeholder[data-tone="3"] { background: #6a4114; }
.batch-summary-thumbnail .layout-favorite-thumbnail,
.batch-summary-thumbnail .layout-favorite-thumbnail canvas {
    width: 100%;
    height: 58px;
}
.batch-summary-thumbnail .layout-favorite-thumbnail.is-batch-summary {
    position: relative;
    overflow: hidden;
}
.batch-summary-thumbnail figcaption {
    width: 100%;
    overflow: hidden;
    color: #bedbfa;
    font-size: 9px;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.batch-summary-thumbnail.is-crop figcaption { color: #ffd18b; }
.batch-summary-thumbnail.is-layout figcaption { color: #e3bdff; }
.batch-summary-thumbnail.is-cover figcaption { color: #aeeaf5; }

.batch-summary-group {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 8px;
}

.batch-summary-group > strong {
    color: #9fcfff;
    font-size: 13px;
}

.batch-summary-values {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.batch-summary-values span { overflow-wrap: anywhere; }

.batch-review-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.batch-review-toolbar {
    min-height: 40px;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 12px;
}

.batch-review-toolbar > span {
    color: #a6aab2;
    text-align: right;
    font-size: 13px;
    font-weight: 800;
}

.batch-auto-position-status {
    min-width: 0;
    padding: 7px 10px;
    border: 1px solid rgba(10, 132, 255, 0.22);
    border-radius: 8px;
    color: #9fcfff !important;
    background: rgba(10, 132, 255, 0.06);
    text-align: left !important;
    white-space: nowrap;
}

.batch-auto-position-status.is-active {
    border-color: rgba(100, 168, 255, 0.54);
    background: rgba(10, 132, 255, 0.13);
}

.batch-review-spec-bar {
    min-width: 0;
    min-height: 38px;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.batch-review-spec-bar[hidden] { display: none; }

.batch-review-spec-bar > span {
    color: #ffb340;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.batch-review-spec-tabs {
    min-width: 0;
    display: flex;
    gap: 6px;
    padding: 2px 2px 5px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 159, 10, 0.62) rgba(255, 159, 10, 0.08);
}

.batch-review-spec-tabs button {
    flex: 0 0 auto;
    min-width: max-content;
    max-width: 180px;
    height: 34px;
    padding: 0 13px;
    overflow: hidden;
    border: 1px solid rgba(255, 159, 10, 0.28);
    border-radius: 7px;
    color: #c7b9a4;
    background: rgba(255, 159, 10, 0.055);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.14s ease, border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.batch-review-spec-tabs button:hover {
    border-color: rgba(255, 179, 64, 0.58);
    color: #fff2dc;
    background: rgba(255, 159, 10, 0.13);
}

.batch-review-spec-tabs button.active {
    border-color: var(--accent-orange);
    color: var(--ink-on-accent);
    background: var(--accent-orange);
    box-shadow: inset 0 0 0 1px rgba(255, 179, 64, 0.12), 0 0 12px rgba(255, 159, 10, 0.1);
}

.batch-review-spec-tabs button:focus-visible {
    outline: 2px solid rgba(255, 179, 64, 0.82);
    outline-offset: 1px;
}

.batch-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.batch-filter-tabs {
    display: inline-flex;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
}

.batch-filter-tabs button {
    height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    color: #a7abb4;
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.batch-filter-tabs button.active {
    color: var(--ink-on-accent);
    background: var(--batch-blue);
}

.batch-review-grid {
    min-height: 0;
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(170px, 1fr));
    align-content: start;
    gap: 12px;
    padding: 2px 6px 12px 2px;
    overflow-y: auto;
    scrollbar-color: rgba(10, 132, 255, 0.68) rgba(10, 132, 255, 0.08);
}

.batch-review-empty {
    grid-column: 1 / -1;
    min-height: 160px;
    display: grid;
    place-items: center;
    padding: 24px;
    border: 1px dashed rgba(10, 132, 255, 0.28);
    border-radius: 12px;
    color: #aeb4bd;
    background: rgba(10, 132, 255, 0.035);
    text-align: center;
}

.batch-review-card {
    min-width: 0;
    min-height: calc(clamp(210px, 30vh, 280px) + 37px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.batch-review-card:hover,
.batch-review-card:focus-visible {
    border-color: rgba(10, 132, 255, 0.7);
    background: rgba(10, 132, 255, 0.07);
    outline: none;
    transform: translateY(-1px);
}

.batch-review-card.is-warning { border-color: rgba(255, 159, 10, 0.5); }
.batch-review-card.is-error { border-color: rgba(255, 69, 58, 0.56); }
.batch-review-card.is-ready { border-color: rgba(60, 174, 78, 0.46); }

.batch-review-photo {
    position: relative;
    height: clamp(210px, 30vh, 280px);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.24);
}

.batch-review-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.batch-review-photo.has-positioned-preview img {
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.batch-review-guides {
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
}

.batch-review-guide {
    position: absolute;
    display: block;
    opacity: 0.92;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.72));
}

.batch-review-guide.is-horizontal {
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-1px);
    background: #3cae4e;
}

.batch-review-guide.is-horizontal.is-top {
    background: #3cae4e;
}

.batch-review-guide.is-horizontal.is-chin {
    height: 0;
    border-top: 2px solid #3cae4e;
    background: transparent;
}

.batch-review-guide.is-vertical {
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 1px dashed rgba(100, 216, 230, 0.92);
}

.batch-review-card.is-processing .batch-review-photo img {
    opacity: 0.48;
    filter: saturate(0.65);
}

.batch-review-card.is-processing .batch-review-photo::before {
    content: '';
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -22px 0 0 -16px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #64a8ff;
    border-radius: 50%;
    animation: batch-positioning-spin 0.72s linear infinite;
}

.batch-review-card.is-processing .batch-review-photo::after {
    content: '定位中';
    position: absolute;
    z-index: 2;
    top: calc(50% + 22px);
    left: 0;
    right: 0;
    color: #e8f4ff;
    text-align: center;
    font-size: 12px;
    font-weight: 900;
}

@keyframes batch-positioning-spin { to { transform: rotate(360deg); } }

.batch-review-warning {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    color: #fff;
    filter: none;
    cursor: default;
}

.batch-review-warning svg { width: 18px; height: 18px; }
.batch-review-warning:hover { transform: none; }

.batch-review-warning.is-confirmed {
    border-color: var(--batch-blue);
    background: var(--batch-blue);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.14), 0 0 12px rgba(10, 132, 255, 0.28);
}

.batch-review-warning.is-confirmed:hover,
.batch-review-warning.is-confirmed:focus-visible {
    box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.18), 0 0 16px rgba(10, 132, 255, 0.4);
}

.batch-review-warning-tooltip {
    position: absolute;
    z-index: 4;
    top: calc(100% + 7px);
    right: 0;
    width: max-content;
    min-width: 158px;
    max-width: 220px;
    box-sizing: border-box;
    padding: 7px 9px;
    border: 1px solid rgba(255, 159, 10, 0.48);
    border-radius: 7px;
    color: #fff3dd;
    background: rgba(30, 24, 20, 0.97);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.38);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-3px);
    transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
}

.batch-review-warning:hover .batch-review-warning-tooltip,
.batch-review-warning:focus-visible .batch-review-warning-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.batch-review-warning:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.82);
    outline-offset: 2px;
}

.batch-review-inspect {
    position: absolute;
    z-index: 2;
    inset: auto 10px 10px;
    height: 36px;
    border: 1px solid rgba(115, 183, 255, 0.65);
    border-radius: 8px;
    color: #eef8ff;
    background: rgb(13, 36, 61);
    font: inherit;
    font-weight: 800;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.14s ease, transform 0.14s ease, background 0.07s ease;
}

.batch-review-card:hover .batch-review-inspect,
.batch-review-card:focus-within .batch-review-inspect {
    opacity: 1;
    transform: translateY(0);
}

.batch-review-copy {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px;
}

.batch-review-copy strong {
    overflow: hidden;
    color: #f4f5f7;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.batch-review-copy span {
    color: #9ca1aa;
    font-size: 11px;
    white-space: nowrap;
}

.batch-inspector {
    --select-accent: #ff9f0a;
    --modal-accent: #ff9f0a;
    position: absolute;
    z-index: 8;
    isolation: isolate;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 36vw);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 159, 10, 0.72);
    border-radius: 12px;
    background: rgba(24, 24, 26, 0.82);
    backdrop-filter: blur(var(--glass-blur-floating));
    -webkit-backdrop-filter: blur(var(--glass-blur-floating));
    box-shadow: -18px 0 36px rgba(0, 0, 0, 0.42), 0 0 22px rgba(255, 159, 10, 0.07);
    opacity: 0;
    pointer-events: none;
    transform: translateX(24px);
    transition: opacity 0.17s ease, transform 0.19s ease;
}

.batch-inspector.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.batch-inspector-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.batch-inspector.is-dragging .batch-inspector-head { cursor: grabbing; }
.batch-inspector-head .batch-inspector-close { cursor: pointer; }

.batch-inspector-head > div {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.batch-inspector-head strong {
    overflow: hidden;
    color: #f2f2f7;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.batch-inspector-head span {
    color: #aeaeb2;
    font-size: 12px;
    line-height: 1.45;
}

.batch-inspector-settings-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
}

.batch-inspector-spec-field { color: #ffc56d; white-space: nowrap; }
.batch-inspector-spec-field > span { flex: 0 0 auto; white-space: nowrap; }
.batch-inspector-spec-field select { border-color: rgba(255, 159, 10, 0.46); }

.batch-inspector-sensitivity {
    min-width: 112px;
    height: 26px;
    align-self: center;
    justify-content: center;
    margin-left: auto;
    flex: 0 0 auto;
}

.batch-inspector-mode {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}
.batch-inspector-mode .simple-spec-inspector-lock { flex: 0 0 auto; }
.batch-inspector-mode .simple-spec-inspector-mode-hint { font-size: 11px; }
.batch-review-card.is-position-locked {
    border-color: #ff453a;
    box-shadow: 0 0 0 2px rgba(255,69,58,0.16), 0 0 14px rgba(255,69,58,0.24);
}
.batch-review-card.is-position-locked .batch-review-warning {
    right: auto;
    left: 6px;
}
.batch-review-lock-badge { top: 6px; right: 6px; }

.batch-inspector-sensitivity > span:first-child,
.batch-inspector-sensitivity strong { font-size: 12px; }

.batch-inspector-canvas-wrap {
    position: relative;
    min-height: 0;
    flex: 1 1 260px;
    display: grid;
    place-items: center;
    padding: 10px;
    border: 1px solid rgba(255, 159, 10, 0.28);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.34);
    overflow: hidden;
}

.batch-inspector-canvas-wrap canvas {
    display: block;
    position: absolute;
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    object-fit: contain;
    cursor: grab;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.36);
}

.batch-inspector-canvas-wrap canvas.is-dragging { cursor: grabbing; }

.batch-inspector-controls {
    display: grid;
    grid-template-columns: repeat(9, minmax(34px, 1fr));
    gap: 6px;
}

.batch-inspector-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    min-width: 0;
    padding: 0 4px;
    border: 1px solid rgba(255, 159, 10, 0.34);
    border-radius: 8px;
    color: #ffd18b;
    background: rgba(255, 159, 10, 0.07);
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.batch-inspector-controls button svg {
    display: block;
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.batch-inspector-controls button:hover,
.batch-inspector-controls button:focus-visible {
    border-color: rgba(255, 190, 92, 0.8);
    color: #fff;
    background: rgba(255, 159, 10, 0.17);
    outline: 2px solid rgba(255, 159, 10, 0.14);
}

.batch-inspector-actions { align-items: stretch; }
.batch-inspector-actions .btn { flex: 1 1 0; min-width: 0; }
.batch-inspector-actions .batch-secondary-btn {
    border-color: rgba(255, 159, 10, 0.42);
    color: #ffd18b;
    background: rgba(255, 159, 10, 0.08);
}
.batch-inspector-actions .batch-secondary-btn:hover,
.batch-inspector-actions .batch-secondary-btn:focus-visible {
    border-color: #ffb340;
    color: #fff4e1;
    background: rgba(255, 159, 10, 0.17);
}
.batch-inspector-actions .batch-primary-btn {
    border-color: #f29a17;
    color: #1b1002;
    background: #ff9f0a;
}
.batch-inspector-actions .batch-primary-btn:hover,
.batch-inspector-actions .batch-primary-btn:focus-visible { background: #ffb340; }

.batch-output-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 6px 12px 4px;
    overflow-y: auto;
}

.batch-output-heading {
    min-height: 42px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 4px;
}

.batch-output-heading h3 {
    margin: 0;
    color: #82baff;
    font-size: 20px;
}

.batch-output-heading span {
    padding: 4px 9px;
    border: 1px solid rgba(10, 132, 255, 0.34);
    border-radius: 999px;
    color: #bedbfa;
    background: rgba(10, 132, 255, 0.09);
    font-size: 12px;
    font-weight: 850;
}

.batch-output-blocker {
    flex: 0 0 auto;
    padding: 10px 14px;
    border: 1px solid rgba(255, 159, 10, 0.48);
    border-radius: 10px;
    color: #ffd18b;
    background: rgba(255, 159, 10, 0.09);
    font-size: 13px;
    font-weight: 800;
}

.batch-output-blocker[hidden] { display: none; }

.batch-output-groups {
    min-height: 0;
    flex: 0 0 auto;
    display: grid;
    gap: 10px;
}

.batch-output-kind {
    --output-kind-accent: 10, 132, 255;
    min-height: 136px;
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) minmax(270px, 1fr);
    grid-template-areas: "heading previews location";
    align-items: stretch;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(var(--output-kind-accent), 0.34);
    border-radius: 12px;
    background: rgba(var(--output-kind-accent), 0.055);
    box-shadow: inset 3px 0 0 rgba(var(--output-kind-accent), 0.72);
}

.batch-output-kind.is-crop { --output-kind-accent: 255, 159, 10; }
.batch-output-kind.is-layout { --output-kind-accent: 191, 90, 242; }
.batch-output-kind.is-cover { --output-kind-accent: 50, 174, 198; }

.batch-output-kind > header {
    grid-area: heading;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
}

.batch-output-kind > header strong {
    color: rgb(var(--output-kind-accent));
    font-size: 18px;
}

.batch-output-kind > header span {
    color: #b7bcc5;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.batch-output-preview-list {
    grid-area: previews;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(74px, 96px));
    align-content: center;
    gap: 7px;
    overflow-x: hidden;
    overflow-y: auto;
}

.batch-output-preview-list .batch-summary-thumbnail {
    min-height: 96px;
    padding: 6px;
    border-radius: 9px;
}

.batch-output-preview-list .batch-summary-thumbnail canvas,
.batch-output-preview-list .batch-summary-thumbnail img,
.batch-output-preview-list .batch-summary-thumbnail .batch-photo-placeholder,
.batch-output-preview-list .batch-summary-thumbnail .layout-favorite-thumbnail,
.batch-output-preview-list .batch-summary-thumbnail .layout-favorite-thumbnail canvas {
    height: 64px;
}

.batch-output-preview-list .batch-summary-thumbnail .batch-photo-placeholder,
.batch-output-preview-list .batch-summary-thumbnail.is-cover canvas {
    width: auto;
    max-width: 100%;
}

.batch-output-preview-list .batch-summary-thumbnail figcaption { font-size: 10px; }

.batch-output-preview-missing,
.batch-output-not-used {
    min-height: 88px;
    display: grid;
    place-items: center;
    padding: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.13);
    border-radius: 9px;
    color: #92969e;
    background: rgba(0, 0, 0, 0.12);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.batch-output-not-used {
    grid-area: previews;
    display: none;
}

.batch-output-location {
    grid-area: location;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.batch-destination-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.batch-destination-modes .btn-mini { min-width: 0; min-height: 32px; margin: 0; }
.batch-destination-modes .btn-mini.active {
    color: var(--ink-on-accent);
    border-color: var(--batch-blue);
    background: var(--batch-blue);
}
.batch-destination-modes .btn-mini.active:hover:not(:disabled) { background: var(--batch-blue-hover); border-color: var(--batch-blue-hover); }
.batch-destination-modes .btn-mini[aria-busy="true"] { opacity: 1; color: var(--ink-on-accent); border-color: var(--batch-blue); background: var(--batch-blue); cursor: wait; }
.batch-output-location .batch-save-case-folder { --switch-accent: var(--batch-blue); min-height: 32px; justify-content: space-between; gap: 10px; }
.batch-output-location .batch-save-case-folder > span:first-child { color: #c5e1ff; font-size: 12px; }
.batch-output-kind.is-disabled .batch-save-case-folder > span:first-child { color: #777b83; }

.batch-output-location > span {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 3px;
    overflow: hidden;
    color: #989da6;
    font-size: 12px;
    white-space: nowrap;
}

.batch-output-location > span strong {
    min-width: 0;
    overflow: hidden;
    color: #dfeeff;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.batch-output-kind.has-custom-path .batch-output-location > span strong { color: #c5e1ff; }

.batch-output-kind.is-disabled {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.025);
    box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.13);
}

.batch-output-kind.is-disabled > header strong,
.batch-output-kind.is-disabled .batch-output-location > span,
.batch-output-kind.is-disabled .batch-output-location > span strong { color: #777b83; }
.batch-output-kind.is-disabled .batch-output-preview-list { display: none; }
.batch-output-kind.is-disabled .batch-output-not-used { display: grid; }
.batch-output-kind.is-disabled [data-batch-destination-button] {
    color: #777b83;
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: none;
}

.batch-output-kind.has-output-error {
    border-color: rgba(255, 69, 58, 0.5);
    background: rgba(255, 69, 58, 0.065);
    box-shadow: inset 3px 0 0 rgba(255, 69, 58, 0.64);
}

.batch-completion-state {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 18px;
    border: 1px solid rgba(72, 197, 90, 0.55);
    border-radius: 10px;
    color: #d9ffe0;
    background: rgba(60, 174, 78, 0.11);
    box-shadow: inset 0 0 18px rgba(60, 174, 78, 0.06);
}
.batch-completion-state[hidden] { display: none; }
.batch-completion-check {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #07150a;
    background: #48c55a;
    box-shadow: 0 0 14px rgba(72, 197, 90, 0.22);
}
.batch-completion-check svg { width: 21px; height: 21px; }
.batch-completion-check path {
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.batch-completion-state > div { display: flex; flex-direction: column; gap: 2px; }
.batch-completion-state strong { color: #effff2; font-size: 17px; }
.batch-completion-state span:not(.batch-completion-check) { color: #b9eec1; font-size: 13px; }

.batch-export-progress {
    min-height: 26px;
    margin: 0;
    color: #9fcfff;
    font-weight: 800;
}

.batch-mode-footer {
    min-height: 46px;
    flex: 0 0 auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.batch-footer-spacer { flex: 1 1 auto; }
.batch-mode-footer .btn { min-width: 150px; min-height: 44px; margin: 0; }
.batch-back-btn { color: #e4e4e7; background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.17); }
.batch-export-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #3cae4e; border-color: #48c55a; color: #061409; }
.batch-export-btn[hidden] { display: none; }
.batch-export-btn .ui-download-simple-icon { width: 19px; height: 19px; }
.batch-export-btn:hover:not(:disabled),
.batch-export-btn:focus-visible:not(:disabled) { background: #48c55a; border-color: #62d579; box-shadow: 0 0 16px rgba(60, 174, 78, 0.23); }
.batch-export-btn.is-complete .ui-download-simple-icon { display: none; }
.batch-restart-btn[hidden] { display: none; }

@media (min-width: 1240px) {
    .batch-source-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .batch-source-info input { width: 100%; }
}

.batch-mode-content.is-processing .batch-step-tabs,
.batch-mode-content.is-exporting .batch-step-tabs {
    pointer-events: none;
}

@media (max-width: 1320px) {
    .batch-review-grid { grid-template-columns: repeat(4, minmax(160px, 1fr)); }
    .batch-inspector { width: min(390px, 42vw); }
}

@media (max-width: 1040px) {
    .batch-mode-content { width: 98vw; padding: 16px; }
    .batch-recipe-panel { overflow-y: auto; }
    .batch-recipe-columns { height: auto; grid-template-columns: 1fr; }
    .batch-recipe-column { overflow: visible; padding-right: 0; }
    .batch-review-grid { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
    .batch-review-toolbar { grid-template-columns: 1fr auto; }
    .batch-review-toolbar > span { text-align: left; }
    .batch-filter-tabs { grid-column: 1; grid-row: 1; }
    .batch-auto-position-status { grid-column: 1; grid-row: 2; }
    #batchReviewSummary { grid-column: 1; grid-row: 3; }
    .batch-review-toolbar > .btn { grid-column: 2; grid-row: 1 / span 3; }
    .batch-inspector { width: min(380px, 52vw); }
    .batch-spec-grid { grid-template-columns: 1fr; }
    .batch-source-list { grid-template-columns: 1fr; }
    .batch-name-field input { width: min(240px, 30vw); }
}

@media (max-width: 1280px) {
    .batch-recipe-panel { overflow-y: auto; }
    .batch-recipe-columns { height: auto; grid-template-columns: 1fr; }
    .batch-recipe-column { overflow: visible; padding-right: 0; }
}

.batch-spec-tool-overlay { z-index: 2800; }
.batch-spec-tool-dialog { width: min(440px, 94vw); max-height: 90vh; padding: 0; border: 0; background: transparent; box-shadow: none; }
.batch-spec-tool-dialog #specToolPanel { display: flex; position: relative; inset: auto; width: 100%; max-width: none; transform: none; }
.batch-spec-tool-dialog #specToolPanel .spec-tool-content { max-height: calc(90vh - 32px); }

@media (max-width: 900px) {
    .batch-output-kind {
        min-height: 0;
        grid-template-columns: 1fr;
        grid-template-areas:
            "heading"
            "previews"
            "location";
        gap: 10px;
    }
    .batch-output-kind > header {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
    }
    .batch-output-preview-list { min-height: 98px; max-height: 190px; }
    .batch-output-location {
        padding: 10px 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.09);
        border-left: 0;
    }
}

@media (max-width: 760px) {
    .batch-number-confirmation {
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
    }
    .batch-name-field { justify-content: space-between; }
    .batch-name-field input { width: min(280px, 62vw); }
    .batch-prefix-toggle.switch-row {
        width: 100%;
        align-self: stretch;
        justify-content: space-between;
    }

    .batch-inspector-controls {
        grid-template-columns: repeat(5, minmax(34px, 1fr));
    }

    .batch-cover-color-row {
        grid-template-columns: 1fr;
    }
    .batch-cover-options-row {
        grid-template-columns: 1fr;
    }
    .batch-summary-details.has-previews { grid-template-columns: 1fr; }
}
