/* Capture Verification Harness (G2.2, disposable) */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #111; color: #eee; font: 16px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
body { padding-bottom: env(safe-area-inset-bottom); }
.banner { background: #b00020; color: #fff; font-weight: 700; text-align: center; padding: calc(env(safe-area-inset-top) + 6px) 8px 6px; font-size: 13px; letter-spacing: .02em; }
.statusbar { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 6px 10px; font-size: 12px; background: #1d1d1d; color: #bbb; }
.statusbar .s-ok { color: #7ddc84; } .statusbar .s-bad { color: #ff7a7a; } .statusbar .s-mid { color: #ffd166; }
.alert { background: #ffd166; color: #111; padding: 8px 10px; font-weight: 600; }
.tabs { display: flex; background: #1a1a1a; border-bottom: 1px solid #333; }
.tab { flex: 1; background: none; border: 0; color: #aaa; padding: 12px 4px; font-size: 14px; }
.tab.active { color: #fff; border-bottom: 3px solid #4da3ff; font-weight: 600; }
main { padding: 10px; }
.panel h2 { font-size: 15px; margin: 18px 0 6px; color: #9cc9ff; }
.unitline { font-size: 18px; margin: 6px 0 10px; }
.big, .mid, .small { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; color: #fff; background: #333; text-align: center; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.big { width: 100%; min-height: 96px; font-size: 26px; font-weight: 700; margin: 6px 0 10px; }
.mid { flex: 1; min-height: 60px; font-size: 18px; font-weight: 600; }
.small { min-height: 44px; padding: 0 12px; font-size: 15px; }
.primary { background: #1f6feb; } .primary:active { background: #1558c0; }
.save { background: #2e7d32; } .warn { background: #8a5a00; } .danger { background: #b00020; }
button:disabled { opacity: .4; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.radios label, .inline { display: inline-flex; gap: 6px; align-items: center; font-size: 15px; }
.block { display: block; margin: 8px 0; font-size: 14px; }
.block input { display: block; width: 100%; margin-top: 4px; font-size: 18px; padding: 8px; border-radius: 8px; border: 1px solid #555; background: #222; color: #fff; }
select { font-size: 15px; padding: 6px; background: #222; color: #fff; border: 1px solid #555; border-radius: 8px; }
.msg { min-height: 1.4em; font-size: 15px; margin: 6px 0; }
.msg.ok { color: #7ddc84; } .msg.err { color: #ff7a7a; font-weight: 700; } .msg.info { color: #ccc; }
.runlabel { font-size: 13px; color: #ffd166; }
pre { white-space: pre-wrap; word-break: break-word; font: 12px/1.3 ui-monospace, Menlo, Consolas, monospace; background: #1a1a1a; padding: 8px; border-radius: 8px; max-height: 50vh; overflow: auto; }
details { margin-top: 10px; } summary { color: #9cc9ff; font-size: 14px; }
.note { font-size: 13px; color: #bbb; }
.viewfinder { position: relative; width: 100%; background: #000; border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 4; }
.viewfinder video { width: 100%; height: 100%; object-fit: contain; display: block; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity .12s; }
.flash.on { opacity: .6; transition: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
