/* Fylcora M6I — Extract PDF Images */
.extract-images-workspace *, .extract-images-workspace *::before, .extract-images-workspace *::after { box-sizing: border-box; }
.extract-images-workspace { min-width: 0; }
.xi-dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; min-height: 270px; border: 2px dashed #aaa7ff; border-radius: 17px; background: #f9f8ff; cursor: pointer; padding: 35px 18px; }
.xi-dropzone.xi-over { background: #efedff; border-color: #4f46e5; }
.xi-dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; left: -9999px; }
.xi-dropzone h2 { font-size: 20px; margin: 0; color: #172442; }
.xi-dropzone p { margin: 0; color: #657391; }
.xi-dropzone .file-pick-visual { margin-top: 6px; }
.xi-file { margin: 24px 0; display: flex; gap: 13px; align-items: center; padding: 15px; border: 1px solid #dae2f4; border-radius: 15px; background: #f7f9ff; min-width: 0; }
.xi-file-icon { width: 49px; height: 49px; display: grid; place-items: center; border-radius: 12px; color: #5144ed; background: #eae8ff; font-weight: 800; font-size: 13px; flex: none; }
.xi-file-info { flex: 1; display: flex; flex-direction: column; min-width: 0; gap: 4px; }
.xi-file-info strong { color: #142442; overflow-wrap: anywhere; }
.xi-file-info small { color: #627293; }
.xi-section-heading h2, .xi-results-header h2 { font-size: 20px; margin: 0 0 7px; color: #172442; }
.xi-section-heading p, .xi-results-header p { margin: 0 0 14px; color: #627293; font-size: 14px; }
.xi-scope { margin: 18px 0; border: 0; padding: 0; min-width: 0; }
.xi-scope legend { font-weight: 750; color: #172442; margin-bottom: 10px; }
.xi-option { display: flex; align-items: flex-start; padding: 13px 15px; border: 1px solid #d9e0f3; border-radius: 13px; gap: 12px; margin: 8px 0; cursor: pointer; background: #fafbff; }
.xi-option:has(input:checked) { border-color: #8d83ff; background: #f0edff; }
.xi-option input { flex: none; accent-color: #5144e7; width: 19px; height: 19px; margin-top: 3px; }
.xi-option span { display: flex; flex-direction: column; gap: 5px; }
.xi-option strong { color: #142442; }
.xi-option small { color: #63708d; line-height: 1.4; }
.xi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.xi-field { margin-bottom: 16px; min-width: 0; }
.xi-field label { display: block; font-weight: 750; margin-bottom: 8px; color: #172442; }
.xi-field input:not([type=range]), .xi-field select { width: 100%; height: 49px; border: 1px solid #cedaf2; border-radius: 10px; padding: 0 13px; color: #192744; background: #fff; font: inherit; min-width: 0; }
.xi-field input[type=range] { width: 100%; accent-color: #5144e7; }
.xi-actions { margin: 12px 0; }
.xi-actions .btn { flex: 1; }
.xi-actions .btn-primary:not(:disabled):hover, .xi-zip-row .btn-primary:not(:disabled):hover { background: #4338ca; color: #fff; }
.xi-actions .btn-primary:disabled, .xi-zip-row .btn-primary:disabled { background: #e4e7f2; color: #63718f; opacity: 1; cursor: not-allowed; }
.xi-results-header { border-top: 1px solid #e3e8f4; padding-top: 23px; margin-top: 22px; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; }
.xi-results-header p { margin-bottom: 0; }
.xi-count { color: #5144e7; background: #efedff; border-radius: 20px; padding: 4px 10px; font-size: 14px; }
.xi-bulk { display: flex; flex-wrap: wrap; gap: 7px; }
.xi-image-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 18px; }
.xi-image { min-width: 0; padding: 12px; border: 1px solid #dce3f4; border-radius: 15px; background: #fafbff; display: flex; flex-direction: column; gap: 10px; }
.xi-thumb { height: 150px; border: 1px solid #e1e6f4; border-radius: 9px; background: linear-gradient(45deg, #f0f2f8 25%, transparent 25%),linear-gradient(-45deg, #f0f2f8 25%, transparent 25%),linear-gradient(45deg, transparent 75%, #f0f2f8 75%),linear-gradient(-45deg, transparent 75%, #f0f2f8 75%); background-size: 14px 14px; background-position: 0 0, 0 7px, 7px -7px, -7px 0; display: grid; place-items: center; overflow: hidden; }
.xi-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.xi-check { display: flex; align-items: flex-start; gap: 9px; min-width: 0; cursor: pointer; }
.xi-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: #5144e7; flex: none; }
.xi-check span { display: flex; flex-direction: column; min-width: 0; gap: 5px; }
.xi-check strong { font-size: 13px; color: #172442; overflow-wrap: anywhere; }
.xi-check small { font-size: 12px; color: #657391; }
.xi-individual { text-align: center; text-decoration: none; color: #4338ca; font-weight: 700; }
.xi-zip-row { margin-top: 16px; }
.xi-zip-row .btn { width: 100%; }
.xi-result { margin-top: 14px; padding: 13px 15px; border: 1px solid #bce7d4; background: #effaf5; color: #146347; border-radius: 10px; }
.xi-empty { margin-top: 18px; padding: 18px; border: 1px solid #d6dfef; background: #f6f8fc; border-radius: 13px; }
.xi-empty strong { color: #172442; }
.xi-empty p { color: #5e708c; line-height: 1.55; margin-bottom: 0; }
.xi-warning { margin: 20px 0 0; padding: 14px; border-radius: 12px; border: 1px solid #f0d9a7; background: #fff9eb; color: #765726; line-height: 1.65; font-size: 13px; }
.extract-images-workspace .status-note.error { color: #b42318; }
@media(max-width: 700px) { .xi-grid, .xi-image-grid { grid-template-columns: minmax(0, 1fr); } .xi-file { padding: 11px; gap: 10px; } .xi-dropzone { min-height: 225px; } .xi-results-header { display: block; } .xi-bulk { margin-top: 12px; } .xi-actions { display: flex; flex-direction: column; } .xi-actions .btn { width: 100%; } .xi-file .small-ghost { padding: 9px; } }
