/* Scope video search, verification and report tools to this module. */
.vt-workspace { --vt-line: #dae4ee; --vt-ink: #213b59; --vt-muted: #5a6e84; margin-bottom: 12px; color: var(--vt-ink); background: #fff; border: 1px solid var(--vt-line); border-radius: 12px; padding: 12px 14px; font-size: 12px; min-width: 0; }
.vt-workspace [hidden] { display: none !important; }
.vt-workspace :is(input,select,textarea,button) { font: inherit; max-width: 100%; }
.vt-workspace :is(input:not([type=checkbox]),select,textarea) { color: #1f3955; background: #fff; border: 1px solid #c6d4e4; border-radius: 6px; padding: 7px 9px; min-width: 0; box-sizing: border-box; }
.vt-workspace input[type=checkbox] { accent-color: #275b92; vertical-align: middle; }
.vt-workspace :is(button,summary) { cursor: pointer; }
.vt-workspace button { color: #285780; border: 1px solid #cbd8e7; border-radius: 6px; background: #f8fafd; padding: 6px 9px; box-shadow: none; }
.vt-workspace button:hover { background: #eaf2fb; border-color: #8ba6c6; }
.vt-workspace button[aria-pressed=true] { background: #e4eefb; border-color: #7397c0; color: #173e6d; }
.vt-workspace :is(button,input,select,textarea,summary):focus-visible { outline: 2px solid #356fac; outline-offset: 3px; }
.vt-workspace :is(h3,h4,p) { margin: 0; }
.vt-workspace h3 { font-size: 16px; }
.vt-workspace h4 { font-size: 13px; }
.vt-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 8px; }
.vt-head > strong { font-size: 14px; }
#vt-cap-summary { color: var(--vt-muted); font-size: 11px; }
.vt-page-context { display: flex; align-items: center; justify-content: space-between; gap: 9px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 8px !important; border-bottom: 1px solid var(--vt-line); color: var(--vt-muted); }
.vt-page-context strong { color: var(--vt-ink); overflow-wrap: anywhere; }
.vt-feature-panel > .vt-page-detail { margin-top: 0; padding-top: 0; border-top: 0; }
.vt-page-detail > summary { font-size: 13px; font-weight: 650; color: var(--vt-ink); }
.vt-search-row { display: flex; align-items: center; gap: 7px; margin: 5px 0; }
.vt-search-row > input, .vt-query { flex: 1; min-width: 80px; }
.vt-query input { width: 100%; }
.vt-search-row button { white-space: nowrap; }
.vt-search-row select { max-width: 160px; }
.vt-status { color: var(--vt-muted); line-height: 1.6; font-size: 11px; }
.vt-status:empty { display: none; }
.vt-status[data-error=true] { color: #a33e3b; }
.vt-panel { min-width: 0; }
.vt-workspace[data-mode=analysis] .vt-results { max-height: min(60dvh,720px); }
.vt-workspace[data-mode=chat] .vt-chat-messages { min-height: 260px; max-height: 52dvh; }
.vt-workspace[data-mode=processing] .vt-provider-frames { max-height: 45dvh; }
.vt-workspace[data-mode=compare] .vt-compare-grid video { max-height: 52dvh; }
.vt-plan { display: flex; flex-wrap: wrap; gap: 5px; margin: 5px 0; }
.vt-plan:empty { display: none; }
.vt-plan span, .vt-source { font-size: 11px; background: #edf3fa; color: #3e6082; padding: 3px 7px; border-radius: 5px; }
.vt-details { margin-top: 7px; border-top: 1px solid #e5edf5; padding-top: 6px; }
.vt-details > summary { color: #426182; font-size: 11px; padding: 2px 0; }
.vt-details[open] > summary { margin-bottom: 9px; }
.vt-details > p { margin-bottom: 9px; color: var(--vt-muted); line-height: 1.65; }
.vt-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(115px,1fr)); gap: 8px; margin: 9px 0; }
.vt-fields label, .vt-annotation > label { display: flex; flex-direction: column; gap: 5px; color: #4a637e; }
.vt-fields :is(input,select) { width: 100%; }
.vt-asset-checks { display: flex; flex-wrap: wrap; gap: 9px 15px; margin-bottom: 8px; }
.vt-inline { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 9px 0; }
.vt-inline > span { color: var(--vt-muted); line-height: 1.6; }
.vt-inline > input { min-width: 80px; }
.vt-muted { color: var(--vt-muted); line-height: 1.65; font-size: 11px; }
.vt-results { display: grid; gap: 7px; margin-top: 8px; max-height: 350px; overflow: auto; scrollbar-width: thin; }
.vt-results:empty { display: none; }
.vt-result-heading { font-weight: 650; color: #3e5e80; }
.vt-result { padding: 10px; border: 1px solid #dce6f1; border-radius: 8px; background: #f8fbff; display: flex; gap: 10px; align-items: center; }
.vt-result > div:first-child { flex: 1; min-width: 0; }
.vt-result strong, .vt-result small, .vt-result p { display: block; overflow-wrap: anywhere; }
.vt-result small { color: var(--vt-muted); line-height: 1.6; font-size: 11px; margin-top: 4px; }
.vt-result .vt-result-thumb { order: -1; flex: 0 0 128px; width: 128px; min-height: 76px; padding: 0; overflow: hidden; background: #17283f; color: #e1ebfa; border-color: #cbd9e8; font-size: 11px; }
.vt-result-thumb img { width: 100%; height: auto; display: block; }
.vt-result .vt-result-basis { color: #5f6774; }
.vt-result p { margin: 5px 0; line-height: 1.6; }
.vt-result-actions { display: flex; flex-direction: column; gap: 4px; }
.vt-result-actions button { padding: 4px 7px; font-size: 11px; white-space: nowrap; }
.vt-preview { margin-top: 10px; padding: 9px; border: 1px solid #ccdceb; border-radius: 8px; background: #f5f8fc; }
.vt-preview canvas { width: 100%; max-height: 480px; object-fit: contain; background: #111d2c; display: block; }
.vt-preview .vt-inline { margin-top: 0; }
.vt-preview .vt-muted { margin-top: 7px; }
.vt-object-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: 7px; max-height: 240px; overflow: auto; }
.vt-object-list button { display: flex; flex-direction: column; gap: 5px; text-align: left; }
.vt-object-list small, .vt-object-list span { color: var(--vt-muted); font-size: 11px; overflow-wrap: anywhere; }
.vt-annotation { margin-top: 12px; padding: 10px; background: #f7fafd; border: 1px solid #dde7f1; border-radius: 8px; }
.vt-annotation > button { margin-top: 8px; }
.vt-annotation canvas, .vt-reference canvas { display: block; width: 100%; max-width: 720px; max-height: 430px; object-fit: contain; touch-action: none; cursor: crosshair; background: #102034; }
.vt-reference label { display: block; margin: 7px 0; color: var(--vt-muted); }
.vt-reference input { width: 250px; }
.vt-cap { display: grid; grid-template-columns: 150px 150px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid #e7edf4; }
.vt-cap small { color: var(--vt-muted); line-height: 1.6; }
.vt-report-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(190px,1fr); gap: 12px; margin-top: 12px; }
.vt-report-layout textarea { width: 100%; min-height: 360px; resize: vertical; line-height: 1.75; }
.vt-report-layout aside { border-left: 1px solid #dce5f0; padding-left: 12px; min-width: 0; }
.vt-report-layout aside h4 { margin-bottom: 8px; }
#vt-report-sources { margin-bottom: 14px; max-height: 250px; overflow: auto; }
#vt-report-sources button { width: 100%; display: block; text-align: left; margin-bottom: 5px; }
#vt-report-sources small { display: block; margin-top: 4px; font-size: 10px; color: var(--vt-muted); }
.vt-version { display: flex; gap: 5px; margin-bottom: 5px; }
.vt-version button { font-size: 10px; padding: 5px; }
.vt-version button:first-child { flex: 1; overflow-wrap: anywhere; text-align: left; }
.vt-chat-messages { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; margin: 12px 0; background: #f2f6fb; border-radius: 8px; min-height: 120px; max-height: 340px; overflow: auto; }
.vt-message { max-width: 90%; padding: 10px; border: 1px solid #d7e3f0; border-radius: 8px; background: #fff; }
.vt-message.vt-user { align-self: flex-end; background: #e5eef9; }
.vt-message small { font-size: 10px; color: var(--vt-muted); }
.vt-message p { white-space: pre-wrap; line-height: 1.75; margin-top: 4px; overflow-wrap: anywhere; }
.vt-message button { margin-top: 5px; }
.vt-evidence-item { display: grid; grid-template-columns: minmax(140px,1fr) 110px minmax(120px,1fr); align-items: center; gap: 8px; border: 1px solid #dce7f1; padding: 10px; border-radius: 8px; margin-bottom: 8px; }
.vt-evidence-item small { display: block; color: var(--vt-muted); font-size: 11px; margin-top: 5px; }
.vt-evidence-item label > :is(input,select) { width: 100%; }
.vt-evidence-item > .vt-inline { grid-column: 1/-1; margin: 0; }
.vt-compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.vt-compare-grid label { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.vt-compare-grid video { width: 100%; max-height: 360px; background: #101c2e; border-radius: 8px; }
#vt-compare-offset { width: 100px; }
.vt-story { padding: 10px 10px 10px 14px; border: 1px solid #d9e4f1; border-left: 3px solid #668db5; margin: 10px 0; border-radius: 5px; }
.vt-story small { display: block; color: var(--vt-muted); margin: 5px 0; }
.vt-story p { line-height: 1.65; }
.vt-provider-frames { display: grid; grid-template-columns: repeat(auto-fill,minmax(110px,1fr)); gap: 8px; margin: 10px 0; max-height: 320px; overflow: auto; }
.vt-provider-frames > .vt-muted { grid-column: 1/-1; }
.vt-provider-frames label { display: grid; grid-template-columns: 18px 1fr; gap: 5px; align-items: center; padding: 6px; border: 1px solid #d8e4f0; border-radius: 6px; background: #f5f9fe; }
.vt-provider-frames img { width: 100%; max-height: 90px; object-fit: contain; background: #15233a; grid-column: 1/-1; grid-row: 1; }
.vt-provider-frames span { font-size: 11px; }
.vt-provider-run { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid #dbe5f0; }
.vt-provider-run small { display: block; color: var(--vt-muted); margin: 5px 0; }
.vt-provider-run p { color: #a53a37; font-size: 11px; overflow-wrap: anywhere; }
.vt-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media(max-width:1200px) { .vt-head { gap: 5px; } #vt-cap-summary { font-size: 10px; } .vt-cap { grid-template-columns: 120px 110px 1fr; } }
@media(max-width:760px) { .vt-workspace { padding: 10px; } .vt-search-row { flex-wrap: wrap; } .vt-query { flex-basis: 100%; } .vt-search-row select { max-width: none; } .vt-report-layout,.vt-compare-grid { grid-template-columns: 1fr; } .vt-report-layout aside { border-left: 0; padding: 0; } .vt-cap { grid-template-columns: 1fr 1fr; } .vt-cap small { grid-column: 1/-1; } .vt-result { align-items: stretch; flex-direction: column; } .vt-result .vt-result-thumb { flex-basis: auto; width: 160px; } .vt-result-actions { flex-direction: row; flex-wrap: wrap; } .vt-evidence-item { grid-template-columns: 1fr; } }
