* { box-sizing: border-box; }
body { margin: 0; background: #f4f6f9; color: #233247; font: 14px/1.5 Arial, sans-serif; }
.scanner-test { max-width: 680px; margin: 0 auto; padding: 16px; }
h1 { font-size: 25px; margin: 0; } h2 { font-size: 20px; }
p { margin: 6px 0; color: #62738a; } a { color: #245fa4; }
.heading { display: flex; align-items: center; justify-content: space-between; }
.heading > * { margin-right: 8px; }
#status { border-radius: 8px; padding: 12px; background: #fff1da; font-weight: bold; margin: 12px 0; }
#status.ready { background: #dff5e8; color: #195d3b; }
label { color: #64748b; display: block; }
input, select, button { font: inherit; border: 1px solid #ccd6e2; border-radius: 6px; padding: 8px 12px; background: white; color: #233247; }
input { width: 100%; margin-top: 4px; }
input:focus { outline: 2px solid #5d9fe0; }
button { min-height: 44px; cursor: pointer; }
.result { background: white; border: 1px solid #d8e1e9; border-radius: 12px; padding: 16px; margin-top: 12px; }
.code { font: bold 32px monospace; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: break-word; margin: 12px 0; }
.metrics { font-size: 19px; }
.pending { padding: 12px 0; word-wrap: break-word; white-space: pre-wrap; min-height: 48px; }
.note { font-size: 12px; margin-top: 12px; }
#history { padding: 0; list-style: none; }
#history li { background: white; border: 1px solid #d8e1e9; border-radius: 8px; margin-bottom: 8px; padding: 12px; }
.history-code { font: bold 22px monospace; white-space: pre-wrap; word-wrap: break-word; margin-bottom: 8px; }
#history small { color: #64748b; }
input { min-height: 48px; font-size: 20px; }
.focus-diagnostics { margin: 16px 0; padding: 12px; background: white; border: 1px solid #d8e1e9; border-radius: 8px; }
.focus-diagnostics p { word-wrap: break-word; }
#input-focus-state { font-weight: bold; color: #233247; }
#event-history { padding-left: 18px; max-height: 220px; overflow: auto; font: 12px/1.5 monospace; }
#event-history li { word-wrap: break-word; }
