.frame-viewer{width:min(1440px,96vw);max-width:96vw;max-height:94dvh;padding:0;border:1px solid #b8cce4;border-radius:14px;background:#f5f8fd;color:#18365b;box-shadow:0 18px 65px #07162c66;overflow:auto}
.frame-viewer::backdrop{background:#07162cd9}.frame-viewer header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;background:#102b50;color:white}.frame-viewer header strong{font-size:16px;overflow-wrap:anywhere}.frame-viewer button{border:1px solid #b6cbe5;background:white;color:#193f70;border-radius:7px;padding:8px 12px;font:inherit;font-size:13px;cursor:pointer}.frame-viewer button:disabled{opacity:.55;cursor:wait}.frame-viewer button:focus-visible,.fv-viewport:focus-visible{outline:3px solid #2875df;outline-offset:2px}.fv-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 16px}.fv-toolbar label{font-size:13px}.fv-toolbar output{min-width:48px;text-align:center;font-variant-numeric:tabular-nums}.fv-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:0}.fv-viewport{height:min(65vh,760px);background:#09172a;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;cursor:grab;touch-action:none}.fv-viewport:active{cursor:grabbing}.fv-viewport canvas{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;transform-origin:center;flex-shrink:0}.fv-viewport canvas[hidden]{display:none}.fv-viewport>p{color:#e7f0ff;padding:20px}.fv-layout aside{padding:16px;max-height:65vh;overflow:auto;font-size:14px;line-height:1.65}.fv-layout aside small{font-size:12px;color:#49647f}.fv-layout aside article{border-bottom:1px solid #cfdded;padding:12px 0}.fv-layout aside p{margin:6px 0 12px}.fv-layout aside article small{overflow-wrap:anywhere}@media(max-width:760px){.fv-layout{grid-template-columns:1fr}.fv-viewport{height:46vh}.fv-layout aside{max-height:26vh}.frame-viewer header{padding:12px}.fv-toolbar{padding:10px}}
/* Source frames shared by saved records, review cards and dialogue results. */
.main .record-frame-row { display:grid; grid-template-columns:190px minmax(0,1fr); align-items:start; gap:16px; }
.main .record-frame-row > .record-entry-body { min-width:0; width:100%; }
.main .record-frame { margin:0; min-width:0; width:100%; color:#365575; font-size:12px; }
.main .record-frame-picture { display:block; width:100%; margin:0; padding:0; overflow:hidden; border:1px solid #c7d8e9; border-radius:8px; background:#eef4fb; cursor:zoom-in; text-align:left; color:#1a426e; }
.record-frame-visual { display:block; position:relative; aspect-ratio:16/9; width:100%; background:#0d2038; overflow:hidden; }
.record-frame-visual img { display:block; width:100%; height:100%; object-fit:contain; }
.record-frame-visual svg { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.record-frame-visual rect { fill:none; stroke:#ff3030; stroke-width:.75; }
.record-frame-loading { display:flex; align-items:center; justify-content:center; position:absolute; inset:0; padding:8px; color:#e4efff; font-size:12px; text-align:center; }
.main .record-frame-open { display:block; padding:5px 8px; font-size:12px; line-height:1.5; }
.main .record-frame figcaption { display:flex; align-items:center; justify-content:space-between; gap:8px; padding-top:5px; font-size:12px; line-height:1.5; font-variant-numeric:tabular-nums; }
.main .record-frame-source { border:0; border-radius:3px; padding:2px 0; margin:0; background:none; color:#205fa7; cursor:pointer; font-size:12px; }
.main .record-frame-picture:hover { border-color:#3981d3; }
.main .record-frame :is(button):focus-visible { outline:3px solid #2875df; outline-offset:2px; }
.main .record-frame-row.vt-evidence-item > .record-entry-body { display:grid; grid-template-columns:minmax(140px,1fr) 110px; gap:9px; align-items:center; }
.vt-evidence-item .record-entry-body > label:nth-of-type(2),.vt-evidence-item .record-entry-body > .vt-inline { grid-column:1/-1; }
.main .record-frame-row.vt-story { padding:14px; border-left-width:1px; border-radius:9px; }
.main .wb-mark-list .record-entry-body { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.main .wb-mark-list .record-entry-body > div { flex-basis:100%; min-width:0; }
.main .wb-mark-list .record-entry-body button { font-size:12px; }
.main .vt-chat-text-matches { display:grid; gap:10px; }
.main .vt-chat-match.record-frame-row { grid-template-columns:140px minmax(0,1fr); gap:10px; align-items:center; }
.main .vt-chat-match .record-entry-body > button { width:100%; white-space:normal; text-align:left; line-height:1.6; margin:0; font-size:13px; }
.main .vt-message.vt-assistant { max-width:100%; }
.vt-chat-frame-gallery { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin-top:12px; }
.main .vt-chat-object-shot { min-width:0; max-width:240px; }
.vt-chat-object-shot > strong { display:block; margin-top:7px; font-size:13px; }
.main .vt-chat-object-shot > p { font-size:12px; line-height:1.6; margin-top:4px; }
.main .review-inbox .ri-item .record-entry-body > header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.main .review-inbox .ri-item .record-entry-body > footer { display:flex; flex-wrap:wrap; gap:7px; margin-top:11px; }
.main .kb-record > .record-frame { margin:10px 0; }
.main .record-frame-top > .record-frame { max-width:100%; }
@media(max-width:760px) {
  .main .record-frame-row { grid-template-columns:1fr; gap:12px; }
  .main .record-frame-row > .record-frame { width:min(100%,320px); }
  .main .record-frame-row.vt-evidence-item > .record-entry-body { grid-template-columns:1fr; }
  .main .vt-chat-match.record-frame-row { grid-template-columns:1fr; }
  .main .vt-chat-match > .record-frame { width:min(100%,260px); }
  .vt-chat-frame-gallery { grid-template-columns:1fr; }
}
.main .search-result.record-frame-row .record-entry-body { display:grid; grid-template-columns:82px minmax(0,1fr) auto; align-items:start; gap:12px; }
.main .vt-report-source { margin-bottom:14px; }
.main .vt-report-source > .record-frame { width:100%; margin-bottom:6px; }
@media(max-width:760px) { .main .search-result.record-frame-row .record-entry-body { grid-template-columns:1fr; } }
