:root{--red:#cf1020;--red-dark:#a30d19;--red-deep:#740812;--red-soft:#fff1f1;--red-line:#f6c9cc;--ink:#1d1a1a;--muted:#6b6464;--line:#eee7e6;--bg:#fbf8f7;--card:#fff;--radius:16px;--shadow:0 1px 2px #3c14140f, 0 6px 18px #3c14140f;--s-red:#d92d20;--s-red-bg:#fef3f2;--s-red-text:#b42318;--s-red-line:#fecdca;--s-yellow:#f79009;--s-yellow-bg:#fffaeb;--s-yellow-text:#93370d;--s-yellow-line:#fedf89;--s-green:#12b76a;--s-green-bg:#ecfdf3;--s-green-text:#05603a;--s-green-line:#a6f4c5;--s-grey:#98a2b3;--s-grey-bg:#f2f4f7;--s-grey-text:#475467;--s-grey-line:#d0d5dd;--appbar-h:calc(54px + env(safe-area-inset-top));--tabbar-h:64px}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html{-webkit-text-size-adjust:100%}body{background:var(--bg);color:var(--ink);margin:0;font:16px/1.4 -apple-system,BlinkMacSystemFont,SF Pro Text,Segoe UI,Roboto,system-ui,sans-serif}h1{letter-spacing:-.01em;overflow-wrap:anywhere;margin:6px 0 12px;font-size:26px;font-weight:800;line-height:1.15}h2{letter-spacing:-.005em;margin:22px 0 8px;font-size:18px;font-weight:800}h3{margin:0 0 4px;font-size:16px}a{color:var(--red-dark)}p{margin:8px 0}.muted{color:var(--muted)}.small{font-size:13px}button,input,select{font-family:inherit}.shell{min-height:100dvh}.appbar{z-index:20;padding:env(safe-area-inset-top) 16px 0;height:var(--appbar-h);background:linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);color:#fff;letter-spacing:-.01em;align-items:center;gap:10px;font-size:18px;font-weight:800;display:flex;position:sticky;top:0;box-shadow:0 2px 10px #73081240}.appbar img{border-radius:8px;width:30px;height:30px;box-shadow:0 0 0 2px #ffffff59}.content{padding-bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 20px)}.page{max-width:760px;margin:0 auto;padding:14px 16px 24px;animation:.25s ease-out rise}@keyframes rise{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}.login-wrap{background:linear-gradient(180deg, var(--red) 0%, var(--red-dark) 46%, var(--bg) 46%);min-height:100dvh;padding:calc(36px + env(safe-area-inset-top)) 16px 24px}.login{max-width:420px;margin:0 auto;padding:0}.login-logo{color:#fff;flex-direction:column;align-items:center;gap:10px;margin-bottom:22px;display:flex}.login-logo img{border-radius:20px;width:72px;height:72px;box-shadow:0 8px 24px #0000004d,0 0 0 3px #ffffff59}.login-logo h1{color:#fff;margin:0;font-size:28px}.login .card{padding:22px 18px;box-shadow:0 14px 40px #3c141438}.tabbar{z-index:20;-webkit-backdrop-filter:blur(14px);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);background:#fffffff5;display:flex;position:fixed;bottom:0;left:0;right:0}.tabbar a{min-height:var(--tabbar-h);color:#8a8282;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:3px;padding:6px 0 4px;font-size:11.5px;font-weight:700;text-decoration:none;transition:color .15s;display:flex;position:relative}.tabbar a svg{stroke:currentColor;fill:none;stroke-width:1.9px;stroke-linecap:round;stroke-linejoin:round;width:24px;height:24px}.tabbar a.active{color:var(--red)}.tabbar a.active:before{content:"";background:var(--red);border-radius:0 0 3px 3px;width:28px;height:3px;position:absolute;top:0}.tabbar a:active{transform:scale(.94)}.brand{display:none}.back{color:var(--red-dark);align-items:center;gap:4px;padding:8px 0;font-weight:700;text-decoration:none;display:inline-flex}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);margin:12px 0;padding:16px}.card.ok{background:var(--s-green-bg);border-color:var(--s-green-line)}.card h2:first-child{margin-top:0}.btn{border:1.5px solid var(--line);background:var(--card);min-height:50px;color:var(--ink);cursor:pointer;border-radius:14px;justify-content:center;align-items:center;padding:0 20px;font-size:16px;font-weight:700;text-decoration:none;transition:transform .1s,box-shadow .15s;display:inline-flex}.btn:active{transform:scale(.97)}.btn-primary{background:linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);color:#fff;border-color:#0000;box-shadow:0 6px 16px #cf102047}.btn:disabled{opacity:.5;cursor:default;box-shadow:none}.form .btn-primary,.preview .btn-primary{width:100%}.actions{flex-wrap:wrap;gap:10px;margin-top:12px;display:flex}.actions .btn{flex:140px}.form{flex-direction:column;gap:14px;display:flex}label{flex-direction:column;gap:6px;font-size:14px;font-weight:700;display:flex}input,select{width:100%;min-height:50px;color:var(--ink);background:#fff;border:1.5px solid #ddd3d2;border-radius:14px;padding:10px 14px;font-size:16px;font-weight:400;transition:border-color .15s,box-shadow .15s}input:focus,select:focus{border-color:var(--red);outline:none;box-shadow:0 0 0 4px #cf10201f}input[type=file]{background:var(--red-soft);border:2px dashed var(--red-line);padding:8px}input[type=file]::file-selector-button{background:var(--red);color:#fff;cursor:pointer;border:0;border-radius:10px;min-height:36px;margin-right:12px;padding:0 16px;font-size:15px;font-weight:700}fieldset{border:1.5px solid var(--line);border-radius:14px;margin:0;padding:12px}legend{padding:0 6px;font-size:14px;font-weight:700}.form-error,.warn{color:var(--s-red-text);background:var(--s-red-bg);border:1px solid var(--s-red-line);border-radius:12px;margin:8px 0 0;padding:10px 12px}.warn{color:var(--s-yellow-text);background:var(--s-yellow-bg);border-color:var(--s-yellow-line)}.form-ok{color:var(--s-green-text);margin:0;font-weight:700}.check{flex-direction:row;align-items:center;gap:12px;font-size:16px}.check input[type=checkbox],.radio input[type=radio]{appearance:none;min-height:0;box-shadow:none;border:0;flex:none;margin:0;padding:0}.check input[type=checkbox]{background:#d9d1d0;border-radius:15px;width:50px;height:30px;transition:background .2s;position:relative}.check input[type=checkbox]:after{content:"";background:#fff;border-radius:50%;width:24px;height:24px;transition:transform .2s;position:absolute;top:3px;left:3px;box-shadow:0 1px 4px #0000004d}.check input[type=checkbox]:checked{background:var(--red)}.check input[type=checkbox]:checked:after{transform:translate(20px)}.check input:focus-visible,.radio input:focus-visible{outline-offset:2px;outline:3px solid #cf102059}.radio{border:1.5px solid var(--s-yellow-line);background:#fff;border-radius:12px;flex-direction:row;align-items:flex-start;gap:12px;padding:12px;font-size:15px;font-weight:500}.radio input[type=radio]{background:#fff;border:2px solid #c4b9b8;border-radius:50%;width:26px;height:26px;margin-top:1px}.radio input[type=radio]:checked{border-color:var(--red);background:radial-gradient(circle, var(--red) 0 8px, #fff 9px)}.chips{flex-wrap:wrap;gap:8px;margin-top:8px;display:flex}.chip{border:1.5px solid var(--line);min-height:40px;color:var(--ink);cursor:pointer;white-space:nowrap;background:#fff;border-radius:20px;align-items:center;gap:6px;padding:0 16px;font-size:14.5px;font-weight:700;transition:background .15s,color .15s;display:inline-flex}.chip:active{transform:scale(.96)}.chip-on{background:var(--red);border-color:var(--red);color:#fff}.chip .n{background:#00000014;border-radius:10px;padding:1px 7px;font-size:12px;font-weight:800}.chip-on .n{background:#ffffff40}.tag{background:var(--s-grey-bg);color:var(--s-grey-text);border-radius:10px;margin-left:8px;padding:2px 9px;font-size:12px;font-weight:700;display:inline-block}.tag-warn{background:var(--s-yellow-bg);color:var(--s-yellow-text)}.badge{white-space:nowrap;border:1px solid;border-radius:999px;align-items:center;gap:5px;padding:3px 10px 3px 7px;font-size:13px;font-weight:800;display:inline-flex}.badge-big{padding:6px 16px 6px 11px;font-size:17px;background:#fff!important}.badge-big svg{width:24px;height:24px}.badge-red{color:var(--s-red-text);background:var(--s-red-bg);border-color:var(--s-red-line)}.badge-yellow{color:var(--s-yellow-text);background:var(--s-yellow-bg);border-color:var(--s-yellow-line)}.badge-green{color:var(--s-green-text);background:var(--s-green-bg);border-color:var(--s-green-line)}.badge-nosales{color:var(--s-grey-text);background:var(--s-grey-bg);border-color:var(--s-grey-line)}.meter{background:linear-gradient(90deg, var(--s-red-line) 0 var(--t1), var(--s-yellow-line) var(--t1) var(--t2), var(--s-green-line) var(--t2) 100%);border-radius:6px;height:10px;position:relative;overflow:hidden}.meter>span{border-radius:6px;transition:width .5s cubic-bezier(.2,.8,.2,1);position:absolute;top:0;bottom:0;left:0}.meter-red>span{background:var(--s-red)}.meter-yellow>span{background:var(--s-yellow)}.meter-green>span{background:var(--s-green)}.meter-nosales{background:repeating-linear-gradient(90deg, var(--s-grey-line) 0 6px, transparent 6px 10px)}.meter-big{background:#ffffff8c;border-radius:9px;height:16px}.meter-big>span{border-radius:9px}.asof{color:var(--muted);margin:0 0 12px;font-size:14px}.stale{color:var(--red-dark);font-weight:700}.hot{color:#fff;background:radial-gradient(120% 140% at 100% 0%, #ff4d57 0%, #ff4d5700 55%), linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);border-radius:20px;margin:4px 0 14px;padding:18px 16px 16px;position:relative;overflow:hidden;box-shadow:0 10px 28px #a00c1952}.hot:after{content:"";pointer-events:none;background:#ffffff14;border-radius:50%;width:160px;height:160px;position:absolute;bottom:-50px;right:-40px}.hot h2{color:#fff;opacity:.9;text-transform:uppercase;letter-spacing:.06em;margin:0;font-size:15px;font-weight:700}.hot-total{opacity:.92;margin:2px 0 12px;font-size:15px}.hot-grid{z-index:1;grid-template-columns:1fr 1fr;gap:10px;display:grid;position:relative}.hot-cell{color:#fff;background:#ffffff29;border:1px solid #ffffff4d;border-radius:14px;flex-direction:column;gap:6px;padding:12px 14px;text-decoration:none;transition:transform .1s;display:flex}.hot-cell:active{transform:scale(.97)}.hot-num{letter-spacing:-.02em;font-size:44px;font-weight:900;line-height:1}.hot-label{align-items:flex-start;gap:6px;font-size:14px;font-weight:700;line-height:1.2;display:flex}.hot-label svg{stroke:currentColor;fill:none;stroke-width:2.4px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:18px;height:18px}.hot-ok{z-index:1;margin:6px 0 2px;font-size:17px;font-weight:700;position:relative}.hot-link{z-index:1;color:#fff;margin-top:12px;font-weight:800;display:inline-block;position:relative}.toolbar{top:var(--appbar-h);z-index:10;-webkit-backdrop-filter:blur(10px);background:#fbf8f7f0;margin:0 -16px 8px;padding:8px 16px 6px;position:sticky}.search{position:relative}.search svg{width:20px;height:20px;stroke:var(--muted);fill:none;stroke-width:2px;stroke-linecap:round;pointer-events:none;position:absolute;top:50%;left:14px;transform:translateY(-50%)}.search input{border-radius:26px;padding-left:44px;padding-right:96px}.search .more{background:var(--red-soft);min-height:38px;color:var(--red-dark);cursor:pointer;border:0;border-radius:19px;padding:0 14px;font-size:14px;font-weight:800;position:absolute;top:6px;right:6px}.search .more[aria-expanded=true]{background:var(--red);color:#fff}.status-chips{scrollbar-width:none;-webkit-overflow-scrolling:touch;gap:8px;margin:0 -16px;padding:10px 16px 4px;display:flex;overflow-x:auto}.status-chips::-webkit-scrollbar{display:none}.filter-panel{grid-template-columns:1fr;gap:8px;margin-top:10px;display:grid}.count{color:var(--muted);grid-column:1/-1;padding:4px 2px;font-size:13px}.list{flex-direction:column;gap:10px;margin:6px 0;padding:0;list-style:none;display:flex}.list .card{margin:0}.row{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);color:inherit;flex-direction:column;gap:10px;padding:14px 14px 12px;text-decoration:none;transition:transform .1s;display:flex}.row:active{transform:scale(.985)}.row-top{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.row-name{overflow-wrap:anywhere;-webkit-line-clamp:4;-webkit-box-orient:vertical;font-size:16px;font-weight:800;line-height:1.25;display:-webkit-box;overflow:hidden}.row-months{text-align:right;flex:none;line-height:1}.row-months b{letter-spacing:-.02em;font-size:28px;font-weight:900;display:block}.row-months small{color:var(--muted);font-size:12px;font-weight:700}.row-bottom{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.row-stock{font-size:15px;font-weight:600}.row-avg{color:var(--muted);font-size:14px;font-weight:600}.row-cat{color:var(--red-dark);background:var(--red-soft);border-radius:8px;align-self:flex-start;padding:2px 8px;font-size:12px;font-weight:700}.row-meta{flex-direction:column;align-items:flex-start;gap:4px;display:flex}.hero{color:var(--ink);box-shadow:var(--shadow);border:0;border-radius:22px;flex-direction:column;gap:10px;margin:8px 0 12px;padding:18px 16px;display:flex}.hero-red{background:linear-gradient(160deg,#ffe3e0 0%,#ffc9c3 100%)}.hero-yellow{background:linear-gradient(160deg,#fff3cf 0%,#fedf89 100%)}.hero-green{background:linear-gradient(160deg,#dcfae6 0%,#a6f4c5 100%)}.hero-nosales{background:linear-gradient(160deg,#f2f4f7 0%,#d0d5dd 100%)}.hero-num{letter-spacing:-.03em;font-size:64px;font-weight:900;line-height:.95}.hero-num small{letter-spacing:0;margin-left:6px;font-size:22px;font-weight:800}.hero .muted{color:#1d1a1ab3;font-weight:600}.note{margin:2px 0 0;font-weight:700}.tiles{grid-template-columns:1fr 1fr;gap:10px;margin:12px 0;display:grid}.tile{background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:14px;flex-direction:column;gap:2px;min-width:0;padding:12px 14px;display:flex}.tile .k{color:var(--muted);font-size:12.5px;font-weight:700}.tile .v{letter-spacing:-.01em;overflow-wrap:anywhere;font-size:22px;font-weight:900}.tile-wide{grid-column:1/-1}.tile-accent{background:var(--red-soft);border-color:var(--red-line)}.wh{border-bottom:1px solid var(--line);grid-template-columns:1fr 1fr 1fr;gap:6px 10px;padding:12px 0;display:grid}.wh:last-of-type{border-bottom:0}.wh-name{grid-column:1/-1;font-weight:800}.wh div{flex-direction:column;display:flex}.wh .k{color:var(--muted);font-size:12px;font-weight:700}.wh .v{font-size:16px;font-weight:800}.wh.excluded{opacity:.62}.facts{flex-direction:column;gap:8px;margin:8px 0;padding-left:18px;display:flex}.wh-list{flex-direction:column;gap:2px;margin:4px 0;padding-left:18px;display:flex}.choice{border:2px solid var(--s-yellow-line);background:var(--s-yellow-bg);border-radius:14px;flex-direction:column;gap:10px;margin:14px 0;padding:12px;display:flex}.choice legend{padding:0 4px;font-size:15px;font-weight:800}.history{flex-direction:column;gap:10px;margin:8px 0;padding:0;list-style:none;display:flex}.history .card{margin:0}.prod{flex-direction:column;gap:8px;display:flex}.prod-name{overflow-wrap:anywhere;font-weight:800}.cat-edit{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.cat-edit input{flex:180px;width:auto}.filters{flex-direction:column;gap:8px;margin:8px 0;display:flex}details>summary{cursor:pointer;padding:8px 0}.state{text-align:center;color:var(--muted);flex-direction:column;align-items:center;gap:12px;padding:36px 16px;display:flex}.state-title{color:var(--ink);margin:0;font-size:19px;font-weight:800}.state-error{color:var(--s-red-text);background:var(--s-red-bg);border:1px solid var(--s-red-line);border-radius:var(--radius);margin:12px 0}.spinner{border:3px solid var(--red-line);border-top-color:var(--red);border-radius:50%;width:30px;height:30px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}@media (width>=900px){:root{--appbar-h:58px}.appbar{display:none}.shell{flex-direction:column;display:flex}.tabbar{background:linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);-webkit-backdrop-filter:none;backdrop-filter:none;border:0;order:-1;align-items:stretch;gap:4px;padding:0 max(24px,50vw - 480px);position:sticky;top:0;bottom:auto;box-shadow:0 2px 10px #73081240}.brand{color:#fff;align-items:center;gap:10px;margin-right:auto;font-size:18px;font-weight:800;display:flex}.brand img{border-radius:8px;width:30px;height:30px;box-shadow:0 0 0 2px #ffffff59}.tabbar a{color:#fffc;flex-direction:row;flex:none;gap:8px;min-height:58px;padding:0 18px;font-size:15px}.tabbar a svg{width:20px;height:20px}.tabbar a:hover{color:#fff}.tabbar a.active{color:#fff;box-shadow:inset 0 -3px #fff}.tabbar a.active:before{display:none}.content{flex:1;padding-bottom:32px}.page{max-width:960px;padding-top:22px}h1{font-size:30px}.toolbar{margin:0 0 8px;padding-left:0;padding-right:0}.status-chips{flex-wrap:wrap;margin:0;padding-left:0;padding-right:0}.filter-panel{grid-template-columns:1fr 1fr}.list{grid-template-columns:1fr 1fr;display:grid}.hero-num{font-size:72px}.tiles{grid-template-columns:repeat(3,1fr)}.login-wrap{padding-top:12vh}}.excluded td{color:var(--muted)}.prefs{flex-direction:column;gap:12px;margin-top:14px;display:flex}.prefs h3{margin:0}
