:root{font-family:Tahoma,Arial,sans-serif;color:#16211f;background:#e9f0ed;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}html,body,#root{width:100%;min-height:100%;margin:0}body{overflow-x:hidden}button,input{font:inherit}.app-shell{min-height:100dvh;display:grid;place-items:center;padding:18px;background:linear-gradient(135deg,rgba(15,118,110,.11),transparent 42%),linear-gradient(315deg,rgba(21,94,117,.12),transparent 40%),#eef3f1}.scanner-card{width:min(100%,430px);height:min(880px,calc(100dvh - 36px));min-height:640px;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:14px;padding:16px;border:1px solid rgba(22,33,31,.08);border-radius:22px;background:#fff;box-shadow:0 22px 60px #14262229;animation:scannerEnter .52s ease both}.welcome-screen{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:grid;align-content:center;justify-items:center;gap:14px;padding:28px;color:#11211f;text-align:center;background:linear-gradient(145deg,rgba(15,118,110,.2),transparent 44%),linear-gradient(315deg,rgba(21,94,117,.18),transparent 42%),#f5faf8;animation:welcomeIn .62s cubic-bezier(.2,.8,.2,1) both;will-change:opacity,transform}.welcome-screen.leaving{pointer-events:none;animation:welcomeOut .52s cubic-bezier(.4,0,.2,1) both}.welcome-mark{width:86px;height:86px;display:grid;place-items:center;border-radius:24px;color:#fff;background:#0f766e;box-shadow:0 18px 38px #0f766e47;font-size:2.8rem;font-weight:900;animation:welcomeItemIn .62s 80ms cubic-bezier(.2,.8,.2,1) both}.welcome-kicker{margin:10px 0 0;color:#60736f;font-weight:800;animation:welcomeItemIn .62s .18s cubic-bezier(.2,.8,.2,1) both}.welcome-title{width:min(100%,420px);margin:0;font-size:clamp(2.2rem,8vw,4rem);line-height:1.15;animation:welcomeTitleIn .7s .26s cubic-bezier(.2,.8,.2,1) both}.welcome-message{width:min(100%,420px);margin-bottom:10px;color:#40534f;font-size:1.1rem;line-height:1.8;animation:welcomeItemIn .62s .38s cubic-bezier(.2,.8,.2,1) both}.welcome-screen .primary-button{width:min(100%,360px);animation:welcomeButtonIn .62s .5s cubic-bezier(.2,.8,.2,1) both}@keyframes welcomeIn{0%{opacity:0;transform:scale(1.02)}to{opacity:1;transform:scale(1)}}@keyframes welcomeOut{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-18px) scale(.985)}}@keyframes welcomeItemIn{0%{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}@keyframes welcomeTitleIn{0%{opacity:0;transform:translateY(22px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes welcomeButtonIn{0%{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes scannerEnter{0%{opacity:0;transform:translateY(16px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}.top-bar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:2px 2px 0}.top-bar p{margin:0 0 6px;color:#0f766e;font-size:.86rem;font-weight:800}.top-bar h1{margin:0;font-size:1.22rem;line-height:1.35}.state-pill{flex:0 0 auto;min-width:58px;padding:8px 12px;border-radius:999px;color:#546965;text-align:center;background:#edf3f1;font-size:.82rem;font-weight:800}.state-pill.active{color:#076357;background:#d7f5ef}.camera-box{position:relative;min-height:0;overflow:hidden;border-radius:18px;background:#101615;box-shadow:inset 0 0 0 1px #ffffff14}.camera-view{width:100%;height:100%;object-fit:cover;display:block}.scan-frame{position:absolute;inset:50% auto auto 50%;width:min(78%,310px);height:178px;transform:translate(-50%,-50%);border-radius:16px;box-shadow:0 0 0 999px #00000059}.scan-frame:before,.scan-frame:after,.scan-frame i:before,.scan-frame i:after{content:"";position:absolute;width:34px;height:34px;border-color:#27ddb5;border-style:solid}.scan-frame:before{top:0;right:0;border-width:4px 4px 0 0;border-top-right-radius:16px}.scan-frame:after{top:0;left:0;border-width:4px 0 0 4px;border-top-left-radius:16px}.scan-frame i:before{right:0;bottom:0;border-width:0 4px 4px 0;border-bottom-right-radius:16px}.scan-frame i:after{left:0;bottom:0;border-width:0 0 4px 4px;border-bottom-left-radius:16px}.scan-frame span{position:absolute;left:10%;right:10%;top:50%;height:2px;background:#27ddb5;box-shadow:0 0 18px #27ddb5}.camera-status{position:absolute;left:14px;right:14px;bottom:14px;display:grid;gap:4px;padding:12px 14px;color:#fff;background:#091211c7;border:1px solid rgba(255,255,255,.14);border-radius:12px;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.camera-status strong{font-size:.98rem}.camera-status small{min-height:18px;overflow:hidden;color:#ffffffc2;direction:ltr;text-align:right;text-overflow:ellipsis;white-space:nowrap}.control-row{display:grid;grid-template-columns:minmax(0,1fr) 64px 64px;gap:10px}button{min-height:52px;border:0;border-radius:12px;padding:0 16px;cursor:pointer;font-weight:800}button:disabled{cursor:not-allowed;opacity:.45}.primary-button{color:#fff;background:#0f766e;box-shadow:0 10px 24px #0f766e3d}.icon-button{display:grid;place-items:center;color:#102320;background:#e4ece9}.icon-button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.sound-button{color:#0f766e;background:#dff4ee}.sound-button.muted{color:#7c2d12;background:#ffeadf}.manual-form{display:grid;grid-template-columns:minmax(0,1fr) 74px;gap:10px}.manual-form input{min-width:0;height:52px;border:1px solid #cddbd7;border-radius:12px;padding:0 14px;color:#16211f;background:#f9fbfa;direction:ltr;text-align:right}.manual-form button{color:#0f766e;background:#dff4ee}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10;display:grid;place-items:end center;padding:18px;background:#09100f75}.product-picker{position:relative;width:min(100%,430px);padding:16px;border-radius:24px 24px 18px 18px;background:#fff;box-shadow:0 -18px 60px #0000003d}.picker-handle{width:46px;height:5px;margin:2px auto 16px;border-radius:999px;background:#d8e2df}.close-button{position:absolute;top:14px;left:14px;width:38px;min-height:38px;padding:0;border-radius:50%;color:#314542;background:#eef3f1;font-size:1.35rem;line-height:1}.picker-label{margin:0 0 8px;color:#0f766e;font-size:.86rem;font-weight:800}.product-picker h2{margin:0 38px 16px 0;color:#14211f;font-size:1.55rem;line-height:1.35}.price-box{display:grid;gap:6px;padding:18px;border-radius:16px;background:#edf7f4}.price-box span{color:#5d716d;font-weight:700}.price-box strong{color:#0f766e;direction:ltr;text-align:right;font-size:3rem;line-height:1}.product-list{max-height:min(42dvh,360px);display:grid;gap:10px;margin:0 0 16px;overflow-y:auto;padding-left:2px}.product-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;padding:14px;border:1px solid #dfe9e6;border-radius:16px;background:#f8fbfa}.product-item span{display:block;margin-bottom:5px;color:#6b7f7a;font-size:.78rem;font-weight:800}.product-item h3{margin:0;color:#14211f;font-size:1rem;line-height:1.45}.product-item strong{color:#0f766e;direction:ltr;text-align:left;font-size:1.55rem;line-height:1;white-space:nowrap}.product-meta{margin:14px 0 16px}.product-meta div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid #eef2f1}.product-meta dt{color:#627570;font-weight:700}.product-meta dd{margin:0;color:#172522;direction:ltr;font-weight:800}@media(max-width:520px){.app-shell{padding:0;place-items:stretch}.scanner-card{width:100%;height:100dvh;min-height:0;border:0;border-radius:0;box-shadow:none}.camera-box{border-radius:16px}.modal-backdrop{padding:0}.product-picker{width:100%;border-radius:24px 24px 0 0;padding-bottom:max(16px,env(safe-area-inset-bottom))}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:1ms!important;animation-iteration-count:1!important;transition-duration:1ms!important;scroll-behavior:auto!important}}
