.visual-investigation{display:grid;gap:.7rem;min-width:0;max-width:100%}
.visual-investigation h3,.visual-investigation h4,.visual-investigation p{margin:.2rem 0;overflow-wrap:anywhere}
.vi-source-picture{margin:0 auto;max-width:620px;width:100%;text-align:center}
.vi-source-picture img{display:block;margin:auto;width:100%;height:auto;max-height:300px;object-fit:contain}
.vi-comparison,.vi-after-targets{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:.8rem;min-width:0}
.vi-comparison figure,.vi-after-target figure{margin:0;min-width:0;text-align:center}
.vi-comparison img{width:100%;max-height:250px;object-fit:contain}.vi-comparison figcaption,.vi-after-target figcaption{font-weight:750;padding:.4rem}
.vi-order,.vi-bank{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(145px,100%),1fr));gap:.6rem;min-width:0}
.vi-order{counter-reset:order}.vi-slot,.vi-card,.vi-placed-card{display:grid;align-content:start;gap:.35rem;min-width:0;max-width:100%;min-height:74px;border:2px solid #bad0df;border-radius:12px;padding:.65rem;background:#fff;color:#16324f;font:700 .9rem/1.4 system-ui;cursor:pointer;overflow-wrap:anywhere;white-space:normal}
.vi-slot{border-style:dashed;background:#f3f8fb}.vi-slot img,.vi-card img,.vi-placed-card img,.vi-after-target img{display:block;width:100%;height:120px;object-fit:contain}
.vi-card:disabled{opacity:.55}.visual-investigation .is-selected{outline:3px solid #2a7197;outline-offset:1px;background:#e6f3fc}
.vi-after-target,.vi-question,.vi-scene-zone{padding:.7rem;border:1px solid #bdd3e1;border-radius:12px;background:#f8fbfd;min-width:0}
.vi-after-target>.vi-slot{width:100%;margin-top:.5rem}.vi-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr));gap:.5rem}
.vi-options button{min-height:48px;white-space:normal;overflow-wrap:anywhere;max-width:100%;text-align:left}.vi-options button img{max-width:100%;height:90px;object-fit:contain}
.vi-question{margin:.6rem 0}.vi-question>img{max-width:100%;max-height:120px}.vi-question-state{font-size:.8rem;color:#496779}
.vi-scene-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:.6rem}.vi-scene-zone{min-height:160px;background:#edf5ef;border-style:dashed}
.vi-scene-zone>button{min-height:44px;width:100%;white-space:normal}.vi-scene-zone .vi-placed-card{margin-top:.5rem;width:100%}
.vi-energy-scene .vi-scene-board{grid-template-columns:minmax(0,1fr)}.vi-energy-scene .vi-scene-zone{min-height:100px;border-bottom:6px solid #71946a}.vi-energy-scene .vi-placed-card img{height:64px}.vi-energy-scene .vi-placed-card{grid-template-columns:70px minmax(0,1fr);align-items:center}
.vi-pair-editor,.vi-extra-editor{display:grid;gap:.6rem;min-width:0;max-width:100%;padding:.8rem;border:1px solid #bad0df;border-radius:12px}
.vi-pair-editor img,.vi-extra-editor img{max-width:100%;height:130px;object-fit:contain}.vi-extra-editor[hidden],.vi-scene-question[hidden]{display:none!important}
.visual-investigation .shared-activity-controls{flex-wrap:wrap}.visual-investigation button:focus-visible{outline:3px solid #d99c35;outline-offset:3px}
@media print{.vi-comparison{grid-template-columns:1fr 1fr}.vi-comparison img{max-height:1.7in}.vi-extra-editor,.vi-pair-editor{display:none!important}}

.visual-investigation-print>img,.visual-investigation-print>section>img{display:block;max-width:100%;width:2in;height:1.1in;object-fit:contain}
