:root{--blue:#0f6fff;--blue-dark:#0c4fc2;--ink:#152236;--muted:#718096;--line:#e5eaf1;--bg:#f4f7fb;--green:#17a673;--orange:#e9a23b;--red:#d94a4a;--radius:18px}*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.topbar{position:sticky;top:0;z-index:20;height:70px;padding:10px 16px;display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.brand{display:flex;gap:10px;align-items:center;text-decoration:none;color:var(--ink)}.brand-mark{width:38px;height:38px;border-radius:13px;background:linear-gradient(145deg,var(--blue),#64a8ff);display:grid;place-items:center;color:#fff;font-weight:900}.brand span:last-child{display:flex;flex-direction:column;line-height:1.05}.brand small{margin-top:5px;color:var(--muted);font-size:10px}.top-action{background:#eaf3ff;color:var(--blue);padding:10px 13px;border-radius:12px;text-decoration:none;font-weight:800;font-size:13px}.container{width:min(760px,100%);margin:0 auto;padding:18px 14px 80px}.hero{background:linear-gradient(140deg,#0c5edb,#178cff);color:#fff;border-radius:24px;padding:22px;margin-bottom:16px;box-shadow:0 16px 38px rgba(15,111,255,.2)}.hero.compact{padding:20px}.hero h1,.page-heading h1{margin:4px 0 7px;font-size:28px}.hero p,.page-heading p{margin:0;opacity:.86;line-height:1.45}.eyebrow{font-size:10px;letter-spacing:.12em;font-weight:900;color:#69819d}.hero .eyebrow{color:#d9ebff}.action-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.action-card{min-height:126px;padding:18px;border-radius:20px;text-decoration:none;color:#fff;display:flex;flex-direction:column;box-shadow:0 8px 20px rgba(26,48,82,.12)}.action-card.primary{background:linear-gradient(145deg,#147bff,#0759d8)}.action-card.green{background:linear-gradient(145deg,#28bf8c,#159b70)}.action-icon{font-size:28px;margin-bottom:12px}.action-card small{margin-top:4px;color:rgba(255,255,255,.8)}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0}.stat{background:#fff;border:1px solid var(--line);border-radius:15px;padding:12px 8px;text-align:center}.stat strong{display:block;font-size:21px;color:var(--blue)}.stat span{font-size:10px;color:var(--muted)}.stat.warning strong{color:var(--orange)}.searchbar{display:flex;gap:8px;margin:14px 0}.searchbar input{flex:1}.searchbar button,.scan-button,.secondary{border:0;background:#eaf3ff;color:var(--blue);font-weight:800;border-radius:12px;padding:0 14px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:20px 2px 10px}.section-title h2{margin:0;font-size:18px}.section-title>span{color:var(--muted);font-size:13px}.item-card{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:18px;margin-bottom:10px;padding:11px;text-decoration:none;color:var(--ink)}.thumb{width:62px;height:62px;flex:0 0 62px;background:#eef3f8;border-radius:14px;display:grid;place-items:center;overflow:hidden;font-size:25px}.thumb img{width:100%;height:100%;object-fit:cover}.item-main{min-width:0;flex:1}.item-main strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item-main small{display:block;color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item-code{font-size:10px;font-weight:900;color:var(--blue);letter-spacing:.04em}.badges{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}.badge{font-size:9px;padding:4px 7px;border-radius:999px;background:#eef2f6;color:#5d6b7a;font-weight:800}.badge.pending{background:#fff3de;color:#a96a10}.badge.ok{background:#e5f8f0;color:#11875d}.chevron{font-size:24px;color:#a4b0bd}.empty-state{text-align:center;background:#fff;border:1px dashed #cad4e0;border-radius:20px;padding:35px 20px}.empty-state>span{font-size:42px}.empty-state h3{margin:8px 0 4px}.empty-state p{color:var(--muted)}.button{display:inline-flex;align-items:center;justify-content:center;background:var(--blue);border:0;color:#fff;text-decoration:none;font-weight:900;border-radius:14px;padding:14px 18px;font-size:15px}.button.full,.secondary.full{width:100%}.page-heading{padding:4px 3px 16px}.back-link{text-decoration:none;color:var(--blue);font-weight:800;font-size:13px;display:inline-block;margin-bottom:12px}.form-card,.detail-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:16px;margin-bottom:14px;box-shadow:0 6px 18px rgba(31,47,70,.04)}.field{margin-bottom:14px}.field label,.photo-field>label:first-child{display:block;font-size:12px;font-weight:850;margin-bottom:7px;color:#3a4b60}.field small{color:var(--muted);font-size:10px;display:block;margin-top:5px}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:10px}input,select,textarea{width:100%;border:1px solid #d7dfea;background:#fff;color:var(--ink);border-radius:12px;padding:12px;font:inherit;font-size:14px;outline:none}input:focus,select:focus,textarea:focus{border-color:#69a9ff;box-shadow:0 0 0 3px rgba(15,111,255,.1)}.input-action{display:flex;gap:7px}.input-action input{min-width:0}.scan-button{white-space:nowrap;font-size:11px}.highlight-field{padding:12px;background:#f3f8ff;border:1px solid #d9eaff;border-radius:16px}.photo-field{margin-bottom:16px}.photo-drop{height:190px;border:1px dashed #abc7e8;border-radius:18px;background:#f5f9fe;display:grid;place-items:center;overflow:hidden;cursor:pointer}.photo-drop img{width:100%;height:100%;object-fit:cover}.photo-drop span{display:flex;flex-direction:column;align-items:center;gap:5px;color:var(--blue);font-size:30px}.photo-drop strong{font-size:14px}.photo-drop small{font-size:10px;color:var(--muted)}.readonly-status{min-height:44px;border:1px solid #eadfc9;background:#fffaf1;border-radius:12px;padding:12px;font-size:11px;color:#835a18;display:flex;align-items:center;gap:7px}.dot{width:8px;height:8px;border-radius:50%;display:inline-block}.dot.orange{background:var(--orange)}.section-divider{display:flex;align-items:center;gap:8px;color:#7990aa;font-size:10px;font-weight:900;letter-spacing:.08em;margin:20px 0 14px}.section-divider:after{content:"";height:1px;background:var(--line);flex:1}.sticky-actions{position:sticky;bottom:10px;padding-top:6px}.flash{border-radius:14px;padding:12px 14px;margin-bottom:12px;font-size:13px}.flash.success{background:#e8f8f1;color:#137a57}.flash.error{background:#fff0f0;color:#a43e3e}.flash ul{margin:7px 0 0;padding-left:18px}.detail-photo{border-radius:22px;overflow:hidden;margin-bottom:14px;background:#fff;border:1px solid var(--line)}.detail-photo img{display:block;width:100%;max-height:380px;object-fit:contain}.detail-row{display:flex;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid #edf0f4}.detail-row:last-child{border:0}.detail-row span{color:var(--muted);font-size:12px}.detail-row strong{text-align:right;font-size:13px}.text-ok{color:var(--green)}.text-warning{color:#aa6c11}.scanner{position:fixed;inset:0;z-index:100;background:rgba(4,14,28,.78);padding:16px;display:grid;place-items:center}.scanner[hidden]{display:none}.scanner-card{width:min(520px,100%);background:#fff;border-radius:24px;padding:14px}.scanner-head{display:flex;align-items:center;justify-content:space-between;padding:4px 3px 12px}.icon-button{border:0;background:#eef2f6;width:35px;height:35px;border-radius:50%;font-size:24px}.camera-wrap{height:min(55vh,430px);background:#0c1118;border-radius:18px;overflow:hidden;position:relative}.camera-wrap video{width:100%;height:100%;object-fit:cover}.scan-frame{position:absolute;inset:24% 12%;border:2px solid #fff;border-radius:18px;box-shadow:0 0 0 999px rgba(0,0,0,.18)}#scanner-status{text-align:center;color:var(--muted);font-size:12px;min-height:18px}.secondary{padding:13px}.form-actions{margin-top:8px}@media(max-width:480px){.stats-grid{grid-template-columns:1fr 1fr}.two-cols{grid-template-columns:1fr 1fr}.container{padding-left:11px;padding-right:11px}.hero h1,.page-heading h1{font-size:25px}.scan-button{padding:0 10px}}
