:root { --ink: #0d0d0d; --lime: #c8f060; --light: #f5f4f0; --grey: #6b6b6b; --red: #c0392b; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.4 Roboto, system-ui, sans-serif; background: var(--light); color: var(--ink); padding-bottom: env(safe-area-inset-bottom); }
.bar { position: sticky; top: 0; z-index: 5; background: var(--ink); color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; }
.bar .logo { width: 22px; height: 22px; filter: invert(1); }
.bar strong { letter-spacing: .12em; font-size: 14px; }
.bar nav { margin-left: auto; display: flex; gap: 4px; }
.bar nav button { background: transparent; color: #fff; border: 1px solid #333; padding: 6px 10px; border-radius: 999px; font-size: 13px; }
.bar nav button.on { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.panel, .tab { padding: 14px; max-width: 560px; margin: 0 auto; }
h1 { font-size: 22px; }
label { display: block; margin: 10px 0; font-size: 14px; color: var(--grey); }
input, select { width: 100%; font-size: 16px; padding: 12px; border: 1px solid #ccc; border-radius: 10px; background: #fff; }
button { font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; }
button.primary { background: var(--ink); color: #fff; }
button.lime { background: var(--lime); border-color: var(--lime); }
button.danger { border-color: var(--red); color: var(--red); }
button:disabled { opacity: .5; }
.wide { width: 100%; margin-top: 10px; }
.row { display: flex; gap: 8px; margin: 10px 0; }
.row > input { flex: 1; }
.reader { width: 100%; border-radius: 12px; overflow: hidden; background: #000; display: none; }
.reader.live { display: block; min-height: 240px; }
.reader video { width: 100% !important; display: block; }
.msg { min-height: 1.2em; color: var(--grey); font-size: 14px; }
.msg.err { color: var(--red); }
.hint { color: var(--grey); font-size: 14px; }
.card { background: #fff; border: 1px solid #e3e2dc; border-radius: 14px; padding: 14px; margin-top: 10px; }
.card .top { display: flex; gap: 12px; }
.card img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; background: var(--light); }
.card h2 { font-size: 17px; margin: 0 0 4px; }
.meta { color: var(--grey); font-size: 13px; }
.stock { display: flex; align-items: center; justify-content: space-between; margin: 14px 0; padding: 12px; background: var(--light); border-radius: 12px; }
.stock .n { font-size: 40px; font-weight: 900; }
.pill { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--light); }
.pill.in { background: var(--lime); }
.pill.out { background: #f3d5d1; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.list { list-style: none; padding: 0; margin: 10px 0; }
.list li { background: #fff; border: 1px solid #e3e2dc; border-radius: 10px; padding: 10px 12px; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.list li small { color: var(--grey); display: block; }
.pick { width: 100%; text-align: left; margin-bottom: 6px; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; z-index: 9; }
#label { display: none; }
@media print {
	body > *:not(#label) { display: none !important; }
	#label { display: block; text-align: center; font: 12px Roboto, sans-serif; }
	#label .name { font-weight: 700; }
	#label .price { font-size: 16px; font-weight: 900; }
	@page { size: 50mm 30mm; margin: 2mm; }
}
.sub { font-size: 15px; margin: 18px 0 6px; }
.check { display: flex; gap: 8px; align-items: center; color: var(--ink); }
.check input { width: auto; }
.filter { margin-bottom: 6px; }
.conf { font-size: 11px; padding: 1px 6px; border-radius: 999px; background: var(--light); margin-left: 4px; }
.conf.high { background: var(--lime); }
.todo { cursor: pointer; }
