*{box-sizing:border-box}body{margin:0;background:#eef4ef;color:#153b30;font:16px system-ui,-apple-system,sans-serif}main{max-width:620px;margin:auto;padding:max(14px,env(safe-area-inset-top)) 14px max(20px,env(safe-area-inset-bottom));display:grid;gap:12px}header,.controls,.totals{display:flex;gap:8px;align-items:center;justify-content:space-between}.brand{font-size:21px;font-weight:800;line-height:1.1}.brand small{display:block;font-size:10px;letter-spacing:2px;margin:4px 0 0 29px}.budget,.cart,.camera{padding:14px;border-radius:19px;background:white;box-shadow:0 2px 10px #123b2510}.budget{background:#07543e;color:white}.budget input{background:#ffffff24;color:white;border-color:#ffffff50}.budget input::placeholder{color:#d1eadf}.totals{margin:13px 0}.totals>div{flex:1;font-size:13px}.totals strong{display:block;font-size:clamp(20px,5vw,29px);color:#fff;letter-spacing:-1px}.totals>div:nth-child(2) strong{color:#b9f6ce}.track{height:8px;background:#ffffff35;border-radius:99px;overflow:hidden}.track div{height:100%;width:0;background:#9af1ba;transition:width .2s}.budget p{font-size:13px;margin:8px 0 0}.view{position:relative;height:clamp(180px,34vh,310px);background:#14231e;border-radius:12px;overflow:hidden}video{width:100%;height:100%;object-fit:cover;display:block}#roi{position:absolute;left:10%;top:25%;width:80%;height:50%;border:2px solid #9cf4b9;border-radius:12px;box-shadow:0 0 0 200px #0004;pointer-events:none}#cameraOff{position:absolute;inset:0;display:grid;place-content:center;text-align:center;color:white;background:#14231e}#cameraOff p{font-size:12px}#status{min-height:22px;margin:8px 0;font-size:13px;font-weight:600}.controls{flex-wrap:wrap}.controls button{flex:1}button{border:0;background:#087b56;color:white;font:600 14px system-ui;padding:12px 14px;min-height:44px;border-radius:12px;cursor:pointer}button.light{background:#dcece2;color:#154d38}button.danger{background:#ad2424}button:disabled{opacity:.45}button[hidden],#cameraOff[hidden]{display:none}.wide{width:100%}label{display:block;font-size:13px;font-weight:600}input,select{display:block;width:100%;border:1px solid #b8ccc0;border-radius:10px;padding:11px;margin:5px 0 10px;background:white;color:#173c30;font:16px system-ui;min-width:0}h2{font-size:18px;margin:0 0 12px}h2 span{font-size:12px;color:#63796c}.item{display:flex;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid #e4ebe6}.item .info{flex:1;min-width:0;overflow-wrap:anywhere}.item small{display:block;color:#547264}.item button{padding:8px;min-height:38px}.item strong{display:block}.note{font-size:12px;color:#62776b;line-height:1.5}dialog{width:min(94vw,460px);max-height:85dvh;overflow:auto;border:0;border-radius:19px;padding:20px;color:#153b30;box-shadow:0 10px 60px #0004}dialog::backdrop{background:#0008}.qty input{flex:1;text-align:center;margin:0}.qty button{flex:0 0 48px}#subtotal{font-size:23px;display:block;color:#087b56}#historyList{max-height:55vh;overflow:auto}.historyEntry{padding:9px 0;border-bottom:1px solid #ddd}.historyEntry p{margin:4px 0;font-size:13px}.empty{color:#62776b;padding:12px 0;font-size:14px}
