:root { --bg:#0b1120; --card:#111c33; --fg:#e8eef7; --muted:#8ea2c0; --accent:#14b8a6; }
* { box-sizing: border-box; }
body { margin:0; font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  background:var(--bg); color:var(--fg); }
header { padding:16px 20px; background:var(--card); position:sticky; top:0; }
h1 { margin:0; font-size:1.25rem; letter-spacing:.02em; }
h2 { margin:0; font-size:1.1rem; }
main { padding:20px; max-width:520px; margin:0 auto; display:grid; gap:20px; }
section { background:var(--card); border-radius:14px; padding:18px; display:grid; gap:12px; }
label { color:var(--muted); font-size:.85rem; }
#viewfinder { width:100%; border-radius:12px; background:#000; aspect-ratio:4/3; object-fit:cover; }
input[type=search], input[type=date], input[type=number], input[type=text],
#barcodeInput, select {
  width:100%; padding:12px; border-radius:10px; border:1px solid #24324f;
  background:#0e1830; color:var(--fg); font-size:1rem; }
#results { list-style:none; margin:0; padding:0; display:grid; gap:6px; max-height:40vh; overflow:auto; }
#results li { padding:12px; background:#0e1830; border-radius:10px; cursor:pointer; }
#results li:active { background:#16233f; }
.camera-btn { display:flex; align-items:center; justify-content:center; gap:8px;
  padding:18px; border:1px dashed var(--accent); border-radius:12px; color:var(--fg);
  cursor:pointer; font-size:1.05rem; }
.actions { display:flex; gap:10px; }
button { flex:1; padding:14px; border:none; border-radius:10px; font-size:1rem; cursor:pointer;
  background:#24324f; color:var(--fg); }
button.primary { background:var(--accent); color:#052018; font-weight:600; }
.status,.raw,.conf { color:var(--muted); font-size:.9rem; }
.done { text-align:center; color:var(--accent); font-size:1.2rem; }
