*{box-sizing:border-box}body{margin:0;background:#f3f6fa;color:#172b4d;font-family:Inter,system-ui,Arial,sans-serif}button,input,select,textarea{font:inherit}button{border:0;border-radius:12px;padding:13px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700;cursor:pointer;min-height:46px}.app{max-width:760px;margin:auto;min-height:100vh;padding-bottom:82px}header{background:#172b4d;color:#fff;padding:15px 18px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:3}.logo{font-size:18px;letter-spacing:.08em}.logo small{font-size:10px;display:block;letter-spacing:.12em;opacity:.7}header>div>small{font-size:11px;opacity:.75}.light{background:#edf2f7;color:#243b53}.primary{background:#1769aa;color:#fff}.full{width:100%}main{padding:16px 15px;max-width:640px;margin:auto}h1{font-size:25px;margin:8px 0}h2{margin:8px 0 4px;font-size:22px}h3{font-size:16px;margin:10px 0}.muted{color:#718096;font-size:13px}.tiny{font-size:11px}.card{background:#fff;border:1px solid #e4eaf1;border-radius:17px;padding:16px;margin:14px 0;box-shadow:0 3px 12px #172b4d08}label{display:block;font-size:13px;font-weight:700;margin:14px 0;color:#40536b}input,select,textarea{display:block;width:100%;margin-top:7px;border:1px solid #cbd5e1;border-radius:10px;padding:12px;background:#fff;color:#172b4d;min-height:47px}textarea{min-height:88px}.login{max-width:400px;margin:12vh auto;padding:24px}.login h1{margin-top:35px}.login small{color:#718096}.err{color:#b42318}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:15px 0}.stats>div{background:#fff;border:1px solid #e3e9f0;border-radius:14px;padding:13px;display:flex;flex-direction:column;gap:5px}.stats b{font-size:24px}.stats small{font-size:11px;color:#718096}.line{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #edf1f5;font-size:13px}.between{display:flex;justify-content:space-between;align-items:center;gap:10px}.result,.menuitem{width:100%;background:#fff;border:1px solid #e1e8ef;border-radius:12px;margin:6px 0;display:flex;flex-direction:column;align-items:flex-start;text-align:left}.result span,.result small{font-size:12px;color:#718096;font-weight:400}.scanbtn{min-height:62px;font-size:17px;margin:12px 0}.pair{display:grid;grid-template-columns:100px 1fr;gap:9px;font-size:12px;margin-top:12px}.pair span{color:#718096}.good{color:#15803d;font-size:12px;font-weight:800}.tag{background:#e8f2fb;color:#1769aa;border-radius:20px;padding:6px 10px;font-size:11px;font-weight:800}.choice{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px}.choice button{background:#f1f5f9;color:#40536b;font-size:11px;padding:8px}.choice button.chosen{background:#dbeafe;color:#075b9a;outline:2px solid #60a5fa}.bottom{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #dfe6ee;display:flex;justify-content:space-around;padding:7px 3px calc(7px + env(safe-area-inset-bottom));z-index:4}.bottom button{background:transparent;color:#64748b;flex:1;display:flex;flex-direction:column;gap:3px;padding:5px 2px;min-height:52px}.bottom button.active{color:#1769aa}.bottom small{font-size:10px}.toast{position:sticky;top:66px;margin:8px 12px;background:#fff4d6;border:1px solid #f3d78c;border-radius:10px;padding:11px;z-index:5;font-size:13px}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000b;z-index:9;display:flex;align-items:flex-end}.sheet{background:#fff;border-radius:20px 20px 0 0;width:100%;padding:18px 16px 28px;max-height:90vh;overflow:auto}#camera{width:100%;margin:12px 0}.menuitem{flex-direction:row;justify-content:flex-start}.bottom svg{stroke-width:2.2}@media(min-width:700px){main{padding:24px}.app{box-shadow:0 0 30px #172b4d12}.bottom{max-width:760px;margin:auto;left:50%;transform:translate(-50%)}}
