body.scan { grid-template-columns: 320px 1fr; grid-template-areas: "top top" "left stage" "foot foot"; }
.navbtn { display: inline-block; padding: 7px 12px; font-size: .82rem; color: var(--muted); text-decoration: none; }
.navbtn + .navbtn { border-left: 1px solid var(--line2); }
.navbtn.on { background: var(--blue); color: #fff; }
.grid4 { display: grid !important; grid-template-columns: repeat(4, 1fr); }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.btns button, .filebtn, .ghost { background: #0f1830; border: 1px solid var(--line2); border-radius: 4px; padding: 8px 6px; font-size: .82rem; text-align: center; cursor: pointer; }
.btns button:hover:not(:disabled), .filebtn:hover, .ghost:hover { border-color: var(--hi); }
.btns button:disabled { opacity: .4; cursor: default; }
.btns button.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.btns.two { margin-top: 6px; }
.ghost { width: 100%; }
.help { font-size: .83rem; color: var(--muted); margin: 0 0 8px; }
.next { font: 500 .85rem var(--mono); color: var(--ok); margin: 0 0 10px; min-height: 1.2em; }
h3 { font: 600 .82rem var(--body); margin: 14px 0 8px; color: #c6d0e4; }
.hits { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .86rem; }
.hits li { display: flex; align-items: center; gap: 8px; }
.hits li i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.hits li em { font-style: normal; font: 500 .66rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #ff6b7d; border: 1px solid #ff6b7d; border-radius: 3px; padding: 0 4px; }
.hits li.none { color: var(--muted); }
.privacy { font: 400 .74rem var(--mono); color: #5d6a88; margin: 0; }
.stage #view { width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: none; }
.status { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; max-width: 90%; text-align: center; font: 500 .8rem var(--mono); color: var(--text); background: rgba(10,16,32,.85); border: 1px solid var(--line2); border-radius: 4px; padding: 7px 12px; pointer-events: none; }
@media (max-width: 900px) {
  body.scan { grid-template-columns: 1fr; grid-template-areas: "top" "stage" "left" "foot"; grid-template-rows: 58px 66vh auto auto; overflow: auto; }
  body.scan .views { display: inline-flex; }
}
