body:not([data-tool="image-check"]) .image-check-panel { display: none !important; }
body[data-tool="image-check"] .editor-panel,
body[data-tool="image-check"] .results-panel,
body[data-tool="image-check"] .thumb-editor-panel,
body[data-tool="image-check"] .thumb-results-panel,
body[data-tool="image-check"] .view-toolbar { display: none !important; }
.image-check-panel { grid-column: 1; grid-row: 5; min-width: 0; }
.image-check-panel[hidden] { display: none !important; }
.image-check-content { padding: 24px; }
.image-check-modes { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 24px; border: 0; }
.image-check-modes legend { font-size: 12px; color: #a7bed1; margin-bottom: 10px; }
.image-check-modes label { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 150px; padding: 14px; border: 1px solid #425a73; border-radius: 10px; cursor: pointer; background: #0b1422; }
.image-check-modes label:has(input:checked) { border-color: var(--teal); background: #153244; }
.image-check-modes input { accent-color: var(--teal); }
.image-check-modes small { display: block; color: #a7bed1; margin-top: 5px; font-size: 11px; }
.image-category-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.image-category-header h3 { font-size: 16px; margin: 0 0 14px; }
#image-category-count { color: #a7bed1; font-size: 12px; }
.image-category-row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.image-category-row input { min-width: 0; width: 100%; padding: 12px; border: 1px solid #425a73; border-radius: 8px; background: #0b1422; color: #f2f7fc; font: inherit; }
.image-category-row input:focus-visible { outline: 2px solid var(--teal); }
.image-category-row button { flex: 0 0 auto; }
#image-category-add { margin-top: 4px; }
.image-check-label { display: block; margin-bottom: 12px; font-size: 16px; font-weight: 700; }
#image-check-query { width: 100%; box-sizing: border-box; resize: vertical; min-height: 105px; border: 1px solid #425a73; background: #0b1422; color: #f2f7fc; padding: 14px; border-radius: 10px; font: inherit; line-height: 1.7; }
#image-check-query:focus { outline: 2px solid var(--teal); outline-offset: 2px; }
.image-check-hint { font-size: 12px; color: #a7bed1; line-height: 1.8; overflow-wrap: anywhere; }
.image-check-drop { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 14px; margin: 20px 0 14px; background: #0d1d2c; border: 1px dashed #518398; border-radius: 12px; color: #e8f7ff; font: inherit; cursor: pointer; }
.image-check-drop .icon { width: 30px; height: 30px; color: var(--teal); }
.image-check-drop span { font-size: 12px; color: #a7bed1; }
.image-check-drop.is-dragging, .image-check-drop:focus-visible { border-color: var(--teal); background: #173448; outline: 2px solid var(--teal); }
.image-check-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.image-check-actions .primary-button { flex: 1; }
#image-check-message { color: #ffcf88; line-height: 1.7; }
.image-check-result { margin: 24px 0 16px; padding: 18px; background: #091622; border: 1px solid #356074; border-radius: 12px; }
.image-check-verdict { display: flex; gap: 22px; align-items: center; }
#image-check-answer { font-size: 48px; color: #d8ff1e; line-height: 1.2; }
.image-check-result[data-mode="classify"] .image-check-verdict { align-items: flex-start; flex-direction: column; gap: 12px; }
.image-check-result[data-mode="classify"] #image-check-answer { font-size: 28px; overflow-wrap: anywhere; max-width: 100%; white-space: pre-wrap; }
#image-classification-confidences { margin-top: 22px; }
#image-classification-confidences[hidden], #image-check-classification-fields[hidden], #image-check-detection-fields[hidden] { display: none !important; }
.category-confidence-row { padding: 13px 0; border-top: 1px solid #293e51; }
.category-confidence-row.is-selected { color: #d8ff1e; }
.category-confidence-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; font-size: 14px; }
.category-confidence-label { overflow-wrap: anywhere; white-space: pre-wrap; min-width: 0; }
.category-confidence-value { font-variant-numeric: tabular-nums; white-space: nowrap; }
.category-confidence-bar { height: 6px; background: #203349; border-radius: 4px; margin-top: 10px; overflow: hidden; }
.category-confidence-bar span { display: block; height: 100%; background: #66cad7; }
.is-selected .category-confidence-bar span { background: #d8ff1e; }
.image-check-result[data-answer="No"] #image-check-answer { color: #c1d3ea; }
#image-check-explanation { margin: 0 0 8px; overflow-wrap: anywhere; line-height: 1.7; white-space: pre-wrap; }
#image-check-run-info { color: #a7bed1; line-height: 1.7; }
.image-check-preview { background: #07101b; border: 1px solid #34475c; border-radius: 10px; overflow: hidden; margin-top: 18px; }
.image-check-preview svg { display: block; width: 100%; max-height: 70vh; }
.image-check-box { fill: #d8ff1e18; stroke: #d8ff1e; stroke-width: 3; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 2px #000); }
@media (max-width: 700px) { .image-check-content { padding: 18px; } .image-check-verdict { gap: 14px; } #image-check-answer { font-size: 38px; } }
