.vlm-page { max-width: 1560px; margin: 0 auto; padding: 30px 24px 72px; }
.vlm-source-note { align-items: flex-start; background: var(--purple-100); border-left: 3px solid var(--purple-700); color: var(--purple-950); display: flex; gap: 9px; margin: 20px 0; padding: 12px 14px; }
.vlm-source-note svg { flex: 0 0 auto; height: 16px; margin-top: 2px; width: 16px; }
.vlm-source-note p { font-size: 13px; line-height: 1.5; margin: 0; }
.vlm-controls { align-items: end; display: grid; gap: 10px; grid-template-columns: minmax(215px, 1.7fr) repeat(6, minmax(130px, .9fr)); margin: 22px 0; }
.vlm-search { min-width: 0; }
.vlm-overview { display: grid; gap: 10px; grid-template-columns: repeat(5, minmax(135px, 1fr)); margin: 0 0 20px; }
.vlm-stat { background: #fff; border: 1px solid var(--line); min-height: 115px; padding: 15px; }
.vlm-stat strong { color: var(--purple-800); display: block; font-size: 26px; line-height: 1.1; }
.vlm-stat span { color: var(--ink); display: block; font-size: 12px; font-weight: 700; margin-top: 7px; }
.vlm-stat small { color: var(--muted); display: block; font-size: 10px; line-height: 1.35; margin-top: 4px; }
.vlm-summary-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.vlm-section, .vlm-review { background: #fff; border: 1px solid var(--line); min-width: 0; }
.vlm-section-heading, .vlm-review-heading, .vlm-target-heading, .vlm-detail-header { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 15px; justify-content: space-between; padding: 14px 16px; }
.vlm-section-heading h2, .vlm-review-heading h2, .vlm-target-heading h2, .vlm-detail-header h2 { font-size: 17px; margin: 2px 0 0; }
.vlm-section-heading > span, .vlm-target-heading > span, .vlm-question-panel-heading > span, .vlm-dimension > div > span { color: var(--muted); font-size: 11px; text-align: right; }
.table-scroll { overflow-x: auto; }
.vlm-table { border-collapse: collapse; min-width: 670px; width: 100%; }
.vlm-table th, .vlm-table td { border-bottom: 1px solid var(--line); font-size: 12px; padding: 11px 12px; text-align: left; vertical-align: top; }
.vlm-table tr:last-child td { border-bottom: 0; }
.vlm-table th { background: var(--mist); color: var(--muted); font-size: 10px; text-transform: uppercase; }
.vlm-table td strong, .vlm-table td code { display: block; }
.vlm-table td code { color: var(--purple-700); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; margin-top: 4px; }
.muted-inline { color: var(--muted); font-size: 10px; }
.vlm-review { margin-top: 18px; }
.vlm-review-heading { flex-wrap: wrap; }
.vlm-export-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.vlm-review-grid { align-items: start; display: grid; grid-template-columns: minmax(285px, .42fr) minmax(0, 1fr); }
.vlm-targets { border-right: 1px solid var(--line); max-height: 1050px; overflow: auto; position: sticky; top: 72px; }
.vlm-target-heading { background: var(--mist); position: sticky; top: 0; z-index: 1; }
.vlm-target-list { display: grid; }
.vlm-target { background: #fff; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; display: grid; gap: 3px; grid-template-columns: 1fr auto; padding: 12px 14px; text-align: left; }
.vlm-target:hover { background: var(--purple-100); }
.vlm-target.selected { background: var(--purple-100); border-left: 3px solid var(--purple-700); padding-left: 11px; }
.vlm-target-id { color: var(--purple-800); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vlm-target-model { color: var(--ink); font-size: 12px; grid-column: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vlm-target > span:not(.vlm-target-id):not(.vlm-target-model) { color: var(--muted); font-size: 10px; grid-column: 1; }
.vlm-target strong { color: var(--purple-800); font-size: 13px; grid-column: 2; grid-row: 1; }
.vlm-target small { color: var(--muted); font-size: 10px; grid-column: 1 / -1; }
.vlm-detail { min-width: 0; }
.vlm-detail-header { align-items: start; }
.vlm-detail-header p { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 6px 0 0; }
.vlm-run-badge { border: 1px solid var(--purple-150); color: var(--purple-800); font-size: 11px; font-weight: 700; padding: 6px 8px; white-space: nowrap; }
.vlm-detail-grid { align-items: start; display: grid; grid-template-columns: minmax(290px, .8fr) minmax(440px, 1.2fr); }
.vlm-media-panel { background: var(--mist); border-right: 1px solid var(--line); min-width: 0; }
.vlm-media-panel .initial-frame { background: var(--purple-100); }
.vlm-media-panel .initial-frame img { height: 100%; object-fit: contain; width: 100%; }
.vlm-prompt, .vlm-output { border-top: 1px solid var(--line); padding: 15px; }
.vlm-prompt > p:last-child { font-size: 14px; line-height: 1.55; margin: 0; }
.vlm-video-wrap { background: #171020; border: 1px solid #322249; }
.vlm-video-wrap video { background: #171020; display: block; max-height: 440px; width: 100%; }
.vlm-video-wrap a { align-items: center; color: #e4d9fa; display: inline-flex; font-size: 11px; gap: 6px; padding: 8px 10px; }
.vlm-video-wrap a svg { height: 13px; width: 13px; }
.vlm-questions-panel { min-width: 0; }
.vlm-question-panel-heading { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 14px 15px; }
.vlm-question-panel-heading h3 { font-size: 14px; margin: 0; }
.vlm-dimension { border-bottom: 1px solid var(--line); padding: 14px; }
.vlm-dimension:last-child { border-bottom: 0; }
.vlm-dimension > div { align-items: center; display: flex; justify-content: space-between; margin-bottom: 9px; }
.vlm-dimension h3 { font-size: 13px; margin: 0; }
.vlm-question-card { border: 1px solid var(--line); margin-top: 9px; padding: 12px; }
.vlm-question-top { align-items: center; display: flex; flex-wrap: wrap; gap: 7px; justify-content: space-between; }
.answer-badge, .confidence-badge { border: 1px solid currentColor; font-size: 10px; font-weight: 750; padding: 4px 7px; }
.answer-yes { background: #eef8f0; color: #397b50; }
.answer-no { background: #fff0ef; color: #a4443d; }
.answer-uncertain { background: #fff8e9; color: #966d24; }
.answer-missing { background: #f3f1f5; color: #6e6678; }
.confidence-high { color: #397b50; }
.confidence-medium { color: #966d24; }
.confidence-low, .confidence-unknown { color: #7e6577; }
.vlm-question { font-size: 14px; line-height: 1.5; margin: 11px 0 8px; }
.vlm-question-meta { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-size: 10px; gap: 7px; }
.vlm-question-meta code { color: var(--purple-800); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.vlm-evidence { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 9px; }
.vlm-evidence > span { align-items: center; color: var(--muted); display: inline-flex; font-size: 10px; gap: 5px; }
.vlm-evidence svg { height: 12px; width: 12px; }
.vlm-evidence p { color: var(--ink); font-size: 12px; line-height: 1.45; margin: 6px 0 0; }
.vlm-evidence .empty-note { color: var(--muted); font-style: italic; }
.vlm-empty-detail { align-items: center; color: var(--muted); display: grid; justify-items: center; min-height: 360px; padding: 32px; text-align: center; }
.vlm-empty-detail > span { color: var(--purple-700); }
.vlm-empty-detail svg { height: 28px; width: 28px; }
.vlm-empty-detail h2 { color: var(--purple-800); font-size: 17px; margin: 11px 0 5px; }
.vlm-empty-detail p { font-size: 13px; line-height: 1.5; margin: 0; max-width: 390px; }

@media (max-width: 1320px) {
  .vlm-controls { grid-template-columns: minmax(220px, 1.7fr) repeat(3, minmax(130px, 1fr)); }
}
@media (max-width: 1060px) {
  .vlm-overview { grid-template-columns: repeat(3, minmax(135px, 1fr)); }
  .vlm-summary-grid { grid-template-columns: 1fr; }
  .vlm-detail-grid { grid-template-columns: minmax(270px, .85fr) minmax(390px, 1.15fr); }
}
@media (max-width: 760px) {
  .vlm-page { padding: 24px 16px 50px; }
  .vlm-controls, .vlm-overview { grid-template-columns: 1fr 1fr; }
  .vlm-controls .vlm-search { grid-column: 1 / -1; }
  .vlm-overview .vlm-stat:first-child { grid-column: 1 / -1; }
  .vlm-review-grid, .vlm-detail-grid { grid-template-columns: 1fr; }
  .vlm-targets { border-bottom: 1px solid var(--line); border-right: 0; max-height: 430px; position: static; }
  .vlm-target-heading { position: static; }
  .vlm-media-panel { border-bottom: 1px solid var(--line); border-right: 0; }
  .vlm-detail-header { flex-direction: column; }
  .vlm-run-badge { align-self: flex-start; }
}
