:root{font-family:Segoe UI,Roboto,Arial,sans-serif;color:#243c31;background:#f6f7f2;font-synthesis:none;--green:#185c45;--muted:#738278;--line:#e3e8df}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus,select:focus,textarea:focus{outline:2px solid #a5c9a8;outline-offset:2px}button{border:0;background:none;color:inherit}.shell{max-width:1200px;margin:auto;display:grid;grid-template-columns:220px 1fr;min-height:100dvh}.side{padding:32px 23px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:8px;background:#fff}.brand{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:750;line-height:1.15;margin-bottom:40px}.brand img{width:43px}.side button{text-align:left;padding:14px 15px;border-radius:12px;color:#69786e}.side button.active{background:#edf4e9;color:var(--green);font-weight:650}.side .foot{margin-top:auto;font-size:12px;line-height:1.7;color:var(--muted);padding:20px 10px}.main{padding:36px 42px 100px;min-width:0}.top{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:34px}.eyebrow{font-size:11px;letter-spacing:2px;text-transform:uppercase;font-weight:700;color:var(--muted)}h1{font-size:32px;letter-spacing:-1px;margin:8px 0}h2{font-size:19px;letter-spacing:-.3px;margin:0 0 15px}h3{font-size:15px;margin:0 0 5px}p{line-height:1.6}.muted,small{color:var(--muted);font-size:13px}.badge{display:inline-flex;align-items:center;gap:6px;border-radius:20px;background:#eaf0e5;padding:8px 12px;font-size:11px;white-space:nowrap}.dot{width:6px;height:6px;border-radius:100%;background:#4f9164}.hero{background:var(--green);color:#fff;border-radius:22px;padding:26px 28px;margin-bottom:24px;display:flex;align-items:center;justify-content:space-between;gap:15px}.hero p{color:#ccdecf;font-size:13px;margin:8px 0 0}.hero .amount{font-size:30px;font-weight:700}.hero .eyebrow{color:#c3d8c6}.hero img{width:76px;opacity:.95}.stats{display:flex;gap:28px;margin-top:20px;font-size:13px}.stats strong{display:block;font-size:20px;margin-bottom:4px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:20px 0}.btn{border-radius:10px;padding:11px 16px;background:var(--green);color:white;font-weight:600;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px}.btn.secondary{background:#eaf0e5;color:var(--green)}.btn.light{background:#fff;color:var(--green)}.btn.danger{background:#fcece7;color:#aa4233}.actions{display:flex;gap:8px;flex-wrap:wrap}.panel{background:white;border:1px solid var(--line);border-radius:17px;padding:21px;margin:15px 0}.empty{text-align:center;padding:44px 20px;background:#fff;border:1px dashed #d4dfd0;border-radius:17px}.empty img{width:68px;margin-bottom:15px}.empty p{max-width:350px;margin:10px auto 22px;color:var(--muted);font-size:14px}.category{font-size:11px;text-transform:uppercase;letter-spacing:1.8px;color:var(--muted);margin:28px 0 10px}.item{display:flex;align-items:center;gap:13px;background:white;border:1px solid var(--line);border-radius:12px;margin:8px 0;padding:15px}.check{width:26px;height:26px;flex-shrink:0;border:1.5px solid #bdccbc;border-radius:8px;padding:0}.check.checked{background:var(--green);color:#fff;border-color:var(--green)}.item .detail{flex:1;min-width:0;cursor:pointer}.item .name{font-size:14px;font-weight:650;overflow-wrap:anywhere}.item.done .name{text-decoration:line-through;color:#95a192}.item .price{font-size:14px;font-weight:650}.item img{width:38px;height:38px;object-fit:cover;border-radius:7px}.item .meta{font-size:12px;color:var(--muted);margin-top:5px}.priority{color:#aa721e}.tabs{display:flex;gap:8px;margin:18px 0}.tabs button{padding:9px 13px;border-radius:20px;font-size:12px;background:#e9ede5}.tabs .active{background:var(--green);color:white}select,input,textarea{width:100%;border:1px solid #dbe2d5;border-radius:9px;background:#fff;padding:12px;color:#243c31}input[type=checkbox]{width:auto}label{display:block;font-size:12px;font-weight:600;margin:15px 0 6px}label.inline{display:flex;gap:8px;align-items:center}.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.select-list{max-width:250px;font-weight:600}.progress{height:5px;background:#477b5e;border-radius:4px;margin-top:18px;overflow:hidden}.progress span{display:block;height:100%;background:#d8e8a7}.warn{color:#a56821;font-size:12px;line-height:1.6}.error{color:#b14035}.pill{font-size:11px;background:#f0f3e9;border-radius:5px;padding:4px 7px}.quote{display:flex;justify-content:space-between;gap:14px;padding:14px 0;border-bottom:1px solid var(--line)}.quote:last-child{border:0}.quote strong{display:block;margin-bottom:5px}.best{border:1.5px solid #8ab887;background:#f9fcf5}.history{font-size:13px;line-height:1.7}dialog{border:0;border-radius:20px;padding:27px;width:min(94vw,510px);max-height:90dvh;box-shadow:0 25px 100px #16372333;color:#243c31}dialog::backdrop{background:#132b2266;backdrop-filter:blur(3px)}dialog .close{float:right;font-size:24px;margin:-8px -5px 0 0}.form-actions{display:flex;gap:9px;margin-top:24px}.form-actions .btn{flex:1}#toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);background:#203f30;color:white;border-radius:12px;padding:12px 20px;max-width:90vw;font-size:13px;z-index:10;display:none}.onboarding{max-width:600px;margin:30px auto}.onboarding>img{width:70px}.onboarding h1{font-size:37px}.connect{font-size:12px;line-height:1.7;word-break:break-all;background:#f0f3eb;border-radius:10px;padding:15px}.intro{color:var(--muted)}.danger-text{color:#ae4038}.mobile-brand{display:none}.search{max-width:260px}.split-note{font-size:12px;color:#7e896e}a{color:var(--green)}@media(max-width:800px){.shell{display:block}.side{position:fixed;bottom:0;left:0;right:0;z-index:5;display:flex;flex-direction:row;justify-content:space-around;border:0;border-top:1px solid var(--line);padding:9px 3px max(9px,env(safe-area-inset-bottom));gap:0}.side .brand,.side .foot{display:none}.side button{font-size:11px;padding:10px 7px}.main{padding:22px 19px 110px}.top{margin-bottom:22px}h1{font-size:27px}.hero{padding:22px}.hero .amount{font-size:27px}.hero img{width:57px}.mobile-brand{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--green);font-weight:700;margin-bottom:22px}.mobile-brand img{width:26px}.badge{font-size:10px;padding:7px 9px}.stats{gap:22px}.onboarding{margin-top:0}.onboarding h1{font-size:31px}.search{max-width:100%}.item{padding:13px 11px}.row{gap:9px}.top .actions .btn{padding:9px;font-size:12px}}@media(prefers-reduced-motion:no-preference){.panel,.item,.hero{animation:enter .22s ease-out}@keyframes enter{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}}
:root .barcode-button{width:100%;margin-top:8px;font-size:12px}button:disabled{opacity:.55;cursor:wait}
:root .photo-picker{border:0;padding:0;margin:18px 0}.photo-picker legend{font-size:12px;font-weight:600;margin-bottom:9px}.photo-picker [data-photo-preview] img{display:block;width:115px;height:115px;object-fit:cover;border-radius:12px;margin-top:12px;border:1px solid var(--line)}.photo-picker [data-photo-status]{display:block;font-size:11px;line-height:1.5;margin-top:8px}
@media(max-width:800px){.side{position:fixed!important;inset:auto 0 0;z-index:1000;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;min-height:70px;padding:8px 5px calc(8px + env(safe-area-inset-bottom,0px));background:#fff;box-shadow:0 -3px 18px #243c310b}.side button{min-width:0;min-height:48px;padding:8px 3px;text-align:center;line-height:1.4;overflow-wrap:anywhere}.main{padding-bottom:calc(115px + env(safe-area-inset-bottom,0px))}html{scroll-padding-bottom:110px}}
.product-heading{display:flex;align-items:center;gap:15px}.product-heading img{width:64px;height:64px;object-fit:cover;border-radius:12px;flex-shrink:0}.product-heading h2{margin:0 0 5px}.product-tags{margin-top:14px}.reference-price{padding:13px 0 18px}.reference-price strong{display:block;font-size:22px;color:var(--green)}.reference-price small{display:block;margin-top:5px;line-height:1.6}.history-filters{margin:20px 0}.voided{opacity:.65;border-style:dashed}.product-card .actions{gap:7px}.product-card .btn{font-size:12px}

.item-actions{display:flex;flex-direction:column;align-items:flex-end;gap:9px;flex-shrink:0}.delete-list-item{color:#a74336;font-size:12px;border:1px solid #edd7d1;border-radius:7px;padding:7px 10px;min-height:34px;background:#fff9f6}.delete-list-item:hover{background:#fbe9e4}
.product-photo-zoom{display:block;padding:0;flex-shrink:0;border-radius:8px;cursor:zoom-in}.product-photo-zoom img{display:block}[data-photo-preview] img{cursor:zoom-in}dialog.photo-zoom{position:fixed;inset:0;margin:0;width:100vw;max-width:none;height:100dvh;max-height:none;border-radius:0;padding:calc(16px + env(safe-area-inset-top,0px)) 16px calc(16px + env(safe-area-inset-bottom,0px));background:#000;color:#fff;overflow:auto}dialog.photo-zoom[open]{display:flex;flex-direction:column;gap:16px}.photo-zoom-header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-shrink:0}.photo-zoom-header h2{font-size:17px;margin:0;overflow-wrap:anywhere}.photo-zoom-header button{min-height:48px;padding:10px 16px;border-radius:10px;background:#242424;color:#fff;white-space:nowrap}.photo-zoom-image{display:block;width:100%;height:0;min-height:0;flex:1;object-fit:contain;background:#000;touch-action:pinch-zoom}
