:root{color:#171717;font-synthesis:none;--yellow:#ffc400;--border:#eaeaea;--muted:#666;background:#f5f5f4;font-family:Inter,Noto Sans Thai,system-ui,sans-serif}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;color:inherit}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,summary:focus-visible,a:focus-visible{outline-offset:3px;outline:3px solid #9e7300}p,h1,h2{margin:0}.app{width:min(100%,560px);min-height:100dvh;padding:calc(22px + env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));background:#fff;margin:auto}.camera-focus{padding-top:calc(12px + env(safe-area-inset-top))}.camera-focus .header{margin-bottom:10px}.camera-focus h1{font-size:1.95rem}.camera-focus .header p{margin-top:3px;font-size:.76rem}.header{justify-content:space-between;align-items:center;gap:8px;margin-bottom:22px;display:flex}h1{letter-spacing:-.075em;font-size:2.55rem;font-weight:850;line-height:1}h1 span{color:#171717}.header p{color:var(--muted);margin-top:5px;font-size:.9rem}.route{white-space:nowrap;border:1px solid var(--border);letter-spacing:.035em;border-radius:999px;align-items:center;gap:7px;padding:7px 11px;font-size:.72rem;font-weight:750;display:flex}.flag{font-size:1rem}.arrow{color:#666}.modes{border:1px solid var(--border);background:#f4f4f3;border-radius:15px;grid-template-columns:repeat(3,1fr);gap:4px;margin-bottom:15px;padding:4px;display:grid}.camera-focus .modes{margin-bottom:8px}.modes button{background:0 0;border:0;border-radius:10px;justify-content:center;align-items:center;gap:6px;min-height:44px;padding:10px 2px;font-size:.89rem;font-weight:700;display:flex}.modes svg{flex-shrink:0;width:18px;height:18px}.modes button[aria-pressed=true]{background:var(--yellow)}.camera{isolation:isolate;color:#fff;background:#1e201f;border-radius:18px 18px 0 0;place-items:center;height:clamp(280px,56svh,560px);min-height:280px;display:grid;position:relative;overflow:hidden}.camera video{object-fit:cover;opacity:0;width:100%;height:100%;position:absolute;inset:0}.camera.ready video{opacity:1}.frame{pointer-events:none;position:absolute;inset:26% 9%}.camera.menu .frame{inset:12% 9%}.frame i{border:solid var(--yellow);border-width:0;width:25px;height:25px;position:absolute}.frame i:first-child{border-width:2px 0 0 2px;border-top-left-radius:9px;top:0;left:0}.frame i:nth-child(2){border-width:2px 2px 0 0;border-top-right-radius:9px;top:0;right:0}.frame i:nth-child(3){border-width:0 0 2px 2px;border-bottom-left-radius:9px;bottom:0;left:0}.frame i:nth-child(4){border-width:0 2px 2px 0;border-bottom-right-radius:9px;bottom:0;right:0}.camera:not(.ready) .frame{opacity:.75;inset:14px}.aim{color:#fff;background:#171717d9;border-radius:999px;padding:4px 10px;font-size:.8rem;position:absolute;bottom:9px}.camera-empty{text-align:center;justify-items:center;gap:7px;max-width:100%;padding:22px 28px;display:grid;position:relative}.camera-empty p{font-weight:750}.camera-empty small{color:#ddd;font-size:.8rem}.camera-icon{border:1px solid #555;border-radius:50%;place-items:center;width:46px;height:46px;display:grid}.yellow{background:var(--yellow);color:#171717;border:0;border-radius:10px;min-height:44px;margin-top:5px;padding:0 18px;font-weight:750}.actions{background:#1e201f;border-radius:0 0 18px 18px;grid-template-columns:1.2fr 1fr;gap:8px;padding:8px;display:grid}.actions button,.entry button,.candidate,footer button{border:1px solid var(--border);background:#fff;border-radius:10px;min-height:44px;padding:6px 11px;font-weight:650}.actions button{color:#fff;background:#343735;border-color:#535653;justify-content:center;align-items:center;gap:7px;display:flex}.actions .scan-button:not(:disabled){background:var(--yellow);border-color:var(--yellow);color:#171717}.actions button:focus-visible{outline-color:#fff}.scan-status{color:var(--muted);min-height:37px;padding:8px 0;font-size:.82rem}.result{border:1px solid var(--border);border-radius:17px;margin-bottom:10px;padding:15px}.result-heading{justify-content:space-between;align-items:center;gap:8px;display:flex}h2{font-size:1rem;font-weight:750}.currency-tag{background:#fff5cb;border-radius:6px;padding:3px 6px;font-size:.72rem;font-weight:750}.amount{letter-spacing:-.057em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:9px 0 14px;font-size:clamp(2.65rem,11vw,4rem);font-weight:820;line-height:1.1;display:block}.amount span{margin-right:5px;font-size:.68em}.result label,.muted,.choice p{color:var(--muted);font-size:.85rem}.entry{gap:7px;margin:5px 0 8px;display:flex}.entry input{color:#171717;background:#fafafa;border:1px solid #dedede;border-radius:10px;width:100%;min-width:0;min-height:44px;padding:0 10px;font-size:1rem}.error{color:#983520;font-size:.85rem}.choice{margin:0 0 11px}.source{white-space:pre-line}.chips{flex-wrap:wrap;gap:6px;margin-top:6px;display:flex}.candidate[aria-pressed=true]{background:#fff5cb;border-color:#e8ad00}.menu-list{margin:5px 0 0;padding:0;list-style:none}.menu-list li{border-top:1px solid var(--border);overflow-wrap:anywhere;justify-items:start;gap:4px;padding:10px 0;display:grid}.menu-list span{color:var(--muted)}footer{color:var(--muted);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding-top:6px;font-size:.77rem;display:flex}footer a{color:inherit}.rate{align-items:baseline;gap:6px;display:flex}.rate small{font-size:inherit;display:block}.dot{background:#a0a09b;border-radius:50%;flex:none;width:7px;height:7px}.dot.fresh{background:#23854f}.install{width:100%;padding-top:3px}summary{cursor:pointer;min-height:27px}@media (width<=355px){.modes button{font-size:.75rem}.modes svg{width:15px}.app{padding-left:12px;padding-right:12px}}@media (orientation:landscape) and (height<=500px){.camera{height:62svh;min-height:220px}}
