:root{--ink:#2b1d17;--muted:#7a6b61;--accent:#a65f32;--canvas:#f7f1e8;--card:rgba(255,251,245,.86)}
*{box-sizing:border-box}html{background:#e9dfd2}body{margin:0;background:radial-gradient(circle at 78% -10%,rgba(201,128,68,.2),transparent 32%),radial-gradient(circle at 0 45%,rgba(124,143,91,.07),transparent 24%),var(--canvas);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}.app-shell{min-height:100svh;width:min(100%,480px);margin:0 auto;padding:max(28px,env(safe-area-inset-top)) 20px 116px;position:relative}.topbar,.section-row,.summary-heading,.summary-meta,.product-card,.bottom-bar,.sheet-header,.product-detail,.stock-control,.edit-card,.missing-item,.money-wrap{display:flex;align-items:center}.topbar{justify-content:space-between;gap:12px;margin-bottom:24px}.eyebrow{margin:0 0 5px;font-size:11px;font-weight:740;letter-spacing:.13em;color:#8a8d95}h1,h2,h3,p{margin-top:0}h1{margin-bottom:0;font-size:clamp(31px,9vw,39px);letter-spacing:-.05em;line-height:1}h2{margin-bottom:0;font-size:21px;letter-spacing:-.03em}.missing-list-button{flex:0 0 auto;display:flex;align-items:center;gap:6px;min-height:40px;padding:0 12px;border:0;border-radius:14px;background:rgba(255,250,243,.86);color:#71442c;box-shadow:0 8px 24px rgba(84,53,35,.08),inset 0 0 0 1px rgba(110,70,44,.07);font-size:11px;font-weight:680}.missing-list-button span{font-size:16px;color:#b86e3e}.summary-card{background:linear-gradient(145deg,#38251d,#68402d);color:#fff;border-radius:28px;padding:22px;box-shadow:0 18px 45px rgba(77,45,29,.22),inset 0 1px rgba(255,255,255,.13);position:relative;overflow:hidden}.summary-card:before{content:"";position:absolute;z-index:2;top:0;left:13%;width:74%;height:2px;border-radius:0 0 8px 8px;background:linear-gradient(90deg,transparent,#ffd2a0 22%,#ff9f57 50%,#ffd2a0 78%,transparent);box-shadow:0 2px 8px rgba(255,159,87,.8),0 7px 25px rgba(255,132,55,.42);animation:led-breathe 3.6s ease-in-out infinite}.summary-card:after{content:"";position:absolute;width:190px;height:190px;right:-80px;top:-110px;border-radius:50%;background:#c98249;opacity:.35}.summary-heading{justify-content:space-between;color:#ddcfc4;font-size:13px;position:relative;z-index:1}.trend{color:#cfe1bd;background:rgba(150,184,117,.15);padding:5px 9px;border-radius:999px;font-size:11px;font-weight:650}.trend.warning{color:#ffd09a;background:rgba(218,139,67,.18)}.summary-card>strong{display:block;font-size:clamp(28px,8vw,34px);letter-spacing:-.045em;margin:10px 0 22px;position:relative;z-index:1}.summary-meta{gap:10px;color:#ddcfc4;font-size:12px;position:relative;z-index:1}.summary-meta b{color:#fff}.meta-dot{width:3px;height:3px;border-radius:50%;background:#a68d7c}.section-row{justify-content:space-between;margin:32px 2px 16px;gap:10px}.unit-label{color:#8a776a;font-size:10px;background:rgba(255,250,243,.78);padding:7px 9px;border-radius:10px;white-space:nowrap}.search-box{height:48px;border-radius:16px;background:rgba(255,251,245,.82);display:flex;align-items:center;gap:9px;padding:0 15px;color:#9a887c;box-shadow:inset 0 0 0 1px rgba(83,53,35,.045)}.search-box>span{font-size:23px;transform:rotate(-20deg)}.search-box input{width:100%;border:0;outline:0;background:transparent;color:var(--ink);font-size:15px}.provider-filters{display:flex;gap:7px;margin:11px -20px 0;padding:0 20px 3px;overflow-x:auto;scrollbar-width:none}.provider-filters::-webkit-scrollbar{display:none}.provider-filters button{flex:0 0 auto;height:32px;padding:0 12px;border:0;border-radius:11px;background:rgba(255,251,245,.72);color:#88766a;font-size:11px;font-weight:620;box-shadow:inset 0 0 0 1px rgba(83,53,35,.045)}.provider-filters button.active{background:#5b3828;color:#fff8f0;box-shadow:0 7px 16px rgba(82,48,30,.16)}.product-list,.edit-list,.missing-list{display:grid;gap:9px}.product-list{margin-top:12px}.product-card,.edit-card{width:100%;text-align:left;border:0;padding:14px;border-radius:20px;background:var(--card);box-shadow:0 8px 26px rgba(86,55,37,.045),inset 0 0 0 1px rgba(255,255,255,.78);transition:transform .2s ease}.product-card:active,.edit-card:active{transform:scale(.985)}.product-icon{flex:0 0 auto;width:46px;height:46px;display:grid;place-items:center;border-radius:15px;font-weight:750;overflow:hidden}.product-icon img{width:100%;height:100%;display:block;object-fit:cover}.product-icon.amber{background:#f5e4c7;color:#96602b}.product-icon.blue{background:#eee4d8;color:#735642}.product-icon.green{background:#e4ead6;color:#61733c}.product-icon.violet{background:#eadfdc;color:#825b52}.product-icon.rose{background:#f4ddd4;color:#a6533d}.product-copy,.edit-copy{display:grid;gap:3px;margin-left:12px;min-width:0;flex:1}.product-copy strong,.edit-copy strong{font-size:15px;letter-spacing:-.015em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-copy small,.edit-copy em{color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-copy em,.edit-copy small{color:#a08f83;font-size:10px;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stock-count{display:flex;align-items:baseline;min-width:49px;justify-content:flex-end}.stock-count strong{font-size:18px}.stock-count small{color:var(--muted);font-size:10px;margin-left:3px}.stock-count.is-low strong,.stock-count.is-low small{color:#b5532f}.chevron{margin-left:8px;color:#b4b6bc;font-size:24px}.bottom-bar{position:fixed;z-index:20;left:50%;bottom:max(14px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(calc(100% - 32px),448px);height:72px;padding:8px 28px;justify-content:space-between;border-radius:25px;background:rgba(255,250,243,.9);border:1px solid rgba(255,255,255,.78);box-shadow:0 16px 44px rgba(84,53,35,.18);backdrop-filter:blur(24px)}.nav-item{width:74px;border:0;background:transparent;color:#858993;display:grid;gap:3px;place-items:center;font-size:10px}.nav-item span{font-size:20px}.nav-item.active{color:var(--accent);font-weight:650}.add-button{width:52px;height:52px;margin-top:-32px;border:0;border-radius:18px;color:#fff;background:linear-gradient(145deg,#c78149,#95512c);font-size:29px;font-weight:300;box-shadow:0 12px 26px rgba(142,75,38,.3),inset 0 1px rgba(255,255,255,.35)}.scrim{position:fixed;z-index:50;inset:0;display:flex;justify-content:center;align-items:flex-end;background:rgba(17,22,31,.28);backdrop-filter:blur(8px);animation:fade-in .2s ease}.sheet{width:min(100%,500px);max-height:92svh;overflow:auto;padding:10px 20px max(26px,env(safe-area-inset-bottom));border-radius:32px 32px 0 0;background:rgba(250,246,240,.98);box-shadow:0 -20px 60px rgba(70,43,29,.19);animation:slide-up .35s cubic-bezier(.2,.8,.2,1)}.sheet-handle{width:38px;height:5px;margin:0 auto 17px;border-radius:10px;background:#d1d3d8}.sheet-header{justify-content:space-between;margin-bottom:23px}.sheet-header h2{font-size:25px}.close-button{width:34px;height:34px;padding:0 0 2px;border:0;border-radius:50%;background:#e8e9ec;color:#696d76;font-size:23px}.sheet form{display:grid;gap:14px}.field{display:grid;gap:7px;color:#5e626b;font-size:12px;font-weight:650}.field input,.field select,.money-wrap{width:100%;height:52px;border:0;outline:0;border-radius:16px;background:#fff;color:var(--ink);padding:0 15px;font-size:16px;font-weight:530;box-shadow:inset 0 0 0 1px rgba(20,24,35,.055)}.field input:focus,.field select:focus,.money-wrap:focus-within{box-shadow:inset 0 0 0 2px rgba(166,95,50,.62),0 0 0 4px rgba(166,95,50,.09)}.form-row{display:grid;grid-template-columns:1fr 108px;gap:10px}.unit-field select{appearance:none}.conversion{margin:-5px 3px 0;color:#6b788b;font-size:11px}.money-wrap{gap:7px}.money-wrap b{color:#8d9199}.money-wrap input{height:auto;padding:0;box-shadow:none;border-radius:0}.money-wrap small{color:#9b9ea5;font-size:10px}.field-help{color:#999ca3;font-size:10px;font-weight:450;line-height:1.4}.primary-button{height:54px;margin-top:4px;border:0;border-radius:17px;background:linear-gradient(145deg,#c78149,#95512c);color:#fff;font-size:15px;font-weight:680;box-shadow:0 13px 26px rgba(142,75,38,.24),inset 0 1px rgba(255,255,255,.3)}.primary-button:disabled{opacity:.42;box-shadow:none}.form-danger-button{height:48px;border:0;border-radius:15px;background:#fae9ea;color:#c5454d;font-size:13px;font-weight:620}.image-picker{display:grid;justify-items:center;gap:7px;margin:-2px 0 2px}.image-upload{width:96px;height:96px;position:relative;display:grid;place-items:center;overflow:hidden;border:1px dashed rgba(142,75,38,.34);border-radius:25px;background:linear-gradient(145deg,#fffaf3,#f0e2d1);color:#9b5d36;cursor:pointer}.image-upload input{position:absolute;width:1px;height:1px;opacity:0}.image-upload img{width:100%;height:100%;object-fit:cover}.image-placeholder{display:grid;justify-items:center;gap:4px}.image-placeholder b{width:29px;height:29px;display:grid;place-items:center;border-radius:11px;background:rgba(166,95,50,.12);font-size:22px;font-weight:380}.image-placeholder small{font-size:10px;font-weight:680}.image-uploading{position:absolute;inset:0;display:grid;place-items:center;color:#fff;background:rgba(53,32,22,.62);font-size:11px;font-weight:680}.remove-image{border:0;background:transparent;color:#a6533d;font-size:11px;font-weight:620}.product-detail{flex-wrap:wrap;gap:7px;margin-bottom:28px}.product-detail span{padding:7px 9px;border-radius:10px;background:#eceef2;color:#696e77;font-size:11px}.stock-control{justify-content:center;gap:25px}.stock-control button{width:54px;height:54px;border:0;border-radius:18px;background:#f0dfcf;color:var(--accent);font-size:30px}.stock-control button:last-child{color:#fff;background:var(--accent)}.stock-control div{min-width:96px;display:grid;place-items:center}.stock-control strong{font-size:45px;line-height:1}.stock-control span{color:var(--muted);font-size:11px}.stock-note{color:#9699a0;text-align:center;font-size:11px;margin:15px 0 29px}.stock-actions{display:grid;gap:9px}.stock-actions button{height:48px;border:0;border-radius:15px;background:#f0dfcf;color:#7a4529;font-size:13px;font-weight:620}.stock-actions .danger-button{background:#fae9ea;color:#c5454d}.editor-view{padding-top:5px}.edit-provider-filters{margin-top:0;margin-bottom:15px}.editor-count,.missing-summary{margin:0 2px 9px;color:#8a8d95;font-size:11px;font-weight:680;text-transform:uppercase;letter-spacing:.08em}.edit-pill{margin-left:8px;padding:7px 9px;border-radius:10px;color:var(--accent);background:#f0dfcf;font-size:10px;font-weight:680}.missing-filters{margin-top:-4px;margin-bottom:16px}.missing-item{padding:12px;border-radius:18px;background:var(--card);box-shadow:inset 0 0 0 1px rgba(83,53,35,.045)}.missing-item .product-icon{width:42px;height:42px}.missing-item>div{flex:1;min-width:0;display:grid;gap:3px;margin-left:11px}.missing-item>div strong,.missing-item>div small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.missing-item>div strong{font-size:14px}.missing-item>div small{color:#8e7c70;font-size:10px}.missing-amount{min-width:50px;display:grid;justify-items:end;gap:2px;color:#a85732}.missing-amount b{font-size:18px}.missing-amount small{color:#9b8779;font-size:9px;text-transform:uppercase}.missing-copy{width:100%;margin-top:17px}.empty-state{padding:42px 24px;text-align:center;color:#91949b}.empty-state>span{display:block;font-size:29px;margin-bottom:8px}.empty-state h3{color:#51545b;font-size:15px;margin-bottom:5px}.empty-state p{max-width:260px;margin:0 auto;font-size:12px;line-height:1.5}.toast{position:fixed;z-index:80;top:max(18px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;padding:10px 15px 10px 10px;border-radius:999px;color:#fff;background:rgba(24,29,37,.92);box-shadow:0 12px 30px rgba(0,0,0,.18);font-size:12px;white-space:nowrap}.toast span{width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#27a466}.loading{min-height:70svh;display:grid;place-items:center;align-content:center;gap:14px;color:#8b786c}.loading span{width:30px;height:30px;border:3px solid #ead8c5;border-top-color:#a65f32;border-radius:50%;animation:spin .8s linear infinite}.loading p{font-size:12px}.error-card{margin-top:25vh;padding:24px;border-radius:24px;background:#fff8f1;text-align:center;box-shadow:0 15px 40px rgba(84,53,35,.1)}.error-card h2{margin-bottom:8px}.error-card p{color:#7a6b61;font-size:13px;line-height:1.5}.error-card button{border:0;border-radius:14px;padding:12px 18px;background:#a65f32;color:#fff;font-weight:650}
@keyframes fade-in{from{opacity:0}}@keyframes slide-up{from{transform:translateY(30%);opacity:.5}}@keyframes led-breathe{0%,100%{opacity:.64}50%{opacity:1}}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:700px){body{padding:30px 0}.app-shell{min-height:calc(100svh - 60px);border-radius:40px;box-shadow:0 30px 80px rgba(73,47,32,.13);background:rgba(249,245,239,.92);overflow:hidden}.sheet{margin-bottom:22px;border-radius:32px}}
@media(max-width:360px){.app-shell{padding-left:15px;padding-right:15px}.unit-label{display:none}.bottom-bar{padding-inline:20px}.missing-list-button{width:42px;padding:0;justify-content:center;font-size:0}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
