:root{--green:#254e47;--green2:#356c60;--dark:#1e2e2b;--muted:#6e7d79;--line:#e1e7e2;--bg:#f7f8f3;--white:#fff;--soft:#eef4ee;--red:#b8443d;--redbg:#fff1ed;--amber:#b97825;--amberbg:#fff7e8;--shadow:0 10px 32px rgba(29,52,43,.045)}
*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;color:var(--dark);background:var(--bg);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.6}a{color:inherit;text-decoration:none}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(26px,4vw,36px);letter-spacing:-.05em;line-height:1.16;margin-bottom:10px}h2{font-size:19px;letter-spacing:-.025em;margin-bottom:0}h3{font-size:15px}.small{font-size:13px}.micro{font-size:12px;color:var(--muted)}.muted{color:var(--muted)}.eyebrow{font-size:11px;letter-spacing:.135em;font-weight:780;color:#4a806e;margin-bottom:11px}.topbar{position:sticky;top:0;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);z-index:30}.topbar-inner{max-width:1150px;margin:0 auto;min-height:75px;display:flex;align-items:center;gap:25px;padding:0 25px}.brand{display:flex;align-items:center;gap:11px;white-space:nowrap;border:0;background:transparent;color:var(--dark);font-size:20px;letter-spacing:-.055em;padding:0}.brand img{width:37px;height:37px;border-radius:11px}.brand strong{font-weight:820}.desktop-nav{display:flex;align-items:center;gap:4px;margin-left:auto}.nav-button{background:transparent;border:0;border-radius:10px;padding:11px 12px;color:#64706a;font-size:13px;font-weight:670}.nav-button.active,.nav-button:hover{color:var(--green);background:#eff4ed}.top-add{white-space:nowrap;margin-left:13px}.layout{max-width:1150px;margin:0 auto;padding:40px 25px 90px}.page-intro{margin-bottom:28px}.slim-intro{margin-bottom:27px}.hero-title{display:flex;justify-content:space-between;align-items:center;gap:16px}.hero-title .muted{margin-bottom:0}.hero-add{display:none}.btn{border:1px solid transparent;border-radius:10px;padding:12px 17px;min-height:45px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:720;font-size:13px;white-space:nowrap;transition:background .15s,transform .15s;text-align:center}.btn:active{transform:scale(.987)}.btn.primary{background:var(--green);color:white}.btn.primary:hover{background:var(--green2)}.btn.secondary{background:#f1f5ef;border-color:#d9e4d9;color:var(--green)}.btn.secondary:hover{background:#e6eee5}.btn.ghost{background:white;border-color:var(--line);color:var(--muted)}.btn.wide{width:100%}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:24px}.stat-card{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:23px 23px 19px;min-height:134px;box-shadow:var(--shadow);position:relative;overflow:hidden}.stat-number{font-size:39px;letter-spacing:-.07em;font-weight:800;line-height:1.18}.stat-label{font-size:13px;font-weight:680;color:#60726e;margin-top:9px}.stat-icon{position:absolute;right:20px;top:17px;font-size:21px;opacity:.53}.stat-card.danger .stat-number{color:var(--red)}.stat-card.warning .stat-number{color:var(--amber)}.content-grid{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(270px,1fr);gap:20px}.panel{background:var(--white);border:1px solid var(--line);border-radius:17px;padding:25px;box-shadow:var(--shadow)}.panel-head{display:flex;justify-content:space-between;align-items:start;gap:14px;margin-bottom:22px}.panel-head .muted{margin:5px 0 0}.text-button{border:0;background:transparent;color:var(--green);font-size:12px;font-weight:740;white-space:nowrap;padding:5px 0}.product-list{display:flex;flex-direction:column}.product-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #eef1ed}.product-row:last-child{border-bottom:0}.product-symbol{height:43px;width:43px;display:grid;place-items:center;flex:none;border-radius:12px;background:#eff4ec;font-size:21px}.product-info{min-width:0;flex:1}.product-name{font-size:14px;font-weight:730;overflow-wrap:anywhere}.product-details{font-size:12px;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}.product-badge{font-size:12px;font-weight:770;border-radius:9px;padding:7px 9px;white-space:nowrap;background:var(--soft);color:var(--green)}.product-badge.danger{background:var(--redbg);color:var(--red)}.product-badge.warning{background:var(--amberbg);color:var(--amber)}.row-actions{display:flex;gap:6px;align-items:center;margin-left:2px}.icon-small{border:1px solid var(--line);background:#fff;color:var(--green);height:33px;min-width:33px;border-radius:9px;font-size:15px;display:grid;place-items:center}.row-actions .icon-small:hover{background:var(--soft)}.compact-action{border:1px solid var(--line);background:white;color:var(--green);border-radius:8px;font-size:11px;font-weight:750;padding:8px}.tip-panel{background:#eef4ea}.tip-icon{font-size:27px;color:var(--green);margin-bottom:14px}.tip-panel h2{font-size:20px}.tip-panel p{font-size:14px;color:#506b5f;margin-top:14px}.tip-divider{border-top:1px solid #dbe5d7;margin:23px 0}.mini-summary{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;font-size:13px;color:#648078}.mini-summary strong{color:var(--dark)}.tip-panel>.btn{margin-top:15px}.loading,.empty{text-align:center;color:var(--muted);padding:35px 10px}.empty-icon{font-size:34px;display:block;margin-bottom:10px}.toolbar{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:16px}.searchbox{min-width:230px;flex:1;position:relative}.searchbox span{position:absolute;left:14px;top:7px;color:#739085;font-size:26px}.searchbox input{padding-left:42px}.toolbar select{min-width:135px;max-width:185px}.chip-row{display:flex;gap:8px;margin-bottom:8px}.chip{border:1px solid #dfe7de;border-radius:999px;background:white;color:#66766e;font-size:12px;font-weight:690;padding:8px 13px}.chip.active{background:var(--green);color:#fff;border-color:var(--green)}input:not([type=checkbox]):not([type=file]),select,textarea{width:100%;border:1px solid #d6dfd8;border-radius:9px;padding:12px 13px;background:#fff;color:var(--dark);outline:none;min-height:45px}input:focus,select:focus,textarea:focus{border-color:#5d9180;box-shadow:0 0 0 3px rgba(77,132,111,.12)}input[type=checkbox]{width:18px;height:18px;accent-color:var(--green);flex:none}textarea{resize:vertical}.form-layout{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(240px,.75fr);gap:20px;align-items:start}.edit-form{display:flex;flex-direction:column;gap:18px}.form-section-title{font-size:14px;font-weight:810;letter-spacing:-.01em;margin-top:7px;padding-bottom:10px;border-bottom:1px solid var(--line)}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field>label,.form-stack>label{font-size:12px;font-weight:760;color:#53655d}.optional{font-size:11px;font-weight:480;color:#89938c}.required{color:var(--red)}.help{font-size:11px;line-height:1.5;color:#8a978e;margin:0}.two-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.input-with-action{display:flex;gap:8px}.input-with-action>input{min-width:0;flex:1}.input-with-action>.btn{flex:none}.form-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding-top:20px;margin-top:5px}.form-tip{background:#f0f6ed}.form-tip p{font-size:13px;color:#536d5e;margin-top:14px}.warning-note{border-top:1px solid #dae6d8;padding-top:16px}.screen-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr);gap:20px;align-items:start}.screen-frame{padding:20px;background:#e9eae4;border-radius:13px}.screen-frame img{width:100%;height:auto;aspect-ratio:800/480;background:#fff;display:block;object-fit:contain;box-shadow:0 9px 20px #2431291b}.screen-panel>.help{margin-top:15px}.check-row{display:flex;gap:10px;align-items:center;color:#465e54;font-size:13px}.buttons-stack{display:flex;flex-direction:column;gap:9px;margin-top:15px}.auth-screen{min-height:100dvh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 80% 20%,#d7e5d5,transparent 53%),var(--bg)}.login-card{width:100%;max-width:435px;background:#fff;padding:43px;border:1px solid #dce5dc;border-radius:23px;box-shadow:0 18px 75px #2c4e3c17}.login-mark img{width:66px;height:66px;border-radius:18px;margin-bottom:23px}.login-card h1{font-size:35px}.login-card .muted{margin-bottom:26px}.login-card .micro{text-align:center;margin:22px 0 0}.form-stack{display:flex;flex-direction:column;gap:11px}.form-stack .btn{margin-top:9px}.bottom-nav{display:none}.overlay{position:fixed;inset:0;background:#14251dc4;z-index:70;display:grid;place-items:center;padding:16px;overflow:auto}.modal{max-height:95dvh;overflow:auto;background:#fff;width:min(100%,520px);padding:23px;border-radius:17px}.modal-head{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-bottom:20px}.modal-head h2{font-size:23px}.modal-head .eyebrow{margin-bottom:5px}.icon-button{border:0;background:#f0f5f0;border-radius:9px;width:38px;height:38px;font-size:18px;color:var(--green)}.scanner-reader{width:100%;min-height:180px;border-radius:11px;overflow:hidden;background:#f3f6f1}.scanner-reader video{border-radius:10px}.scanner-fallback{margin-top:18px;border-top:1px solid var(--line);padding-top:18px}.scanner-fallback .help{margin-top:10px}.toast{position:fixed;z-index:100;bottom:30px;left:50%;transform:translateX(-50%);background:var(--dark);color:#fff;padding:13px 20px;border-radius:11px;box-shadow:0 10px 35px #102b2640;font-size:13px;font-weight:650;max-width:min(95vw,560px);text-align:center}.toast.error{background:#a83835}.status-expired{opacity:.55}.status-expired .product-name{text-decoration:line-through}
@media(max-width:970px){.desktop-nav{display:none}.top-add{margin-left:auto}.content-grid,.screen-layout{grid-template-columns:1fr 1fr}.form-layout{grid-template-columns:1.6fr 1fr}}
@media(max-width:730px){.topbar-inner{min-height:62px;padding:0 17px}.brand{font-size:19px}.brand img{width:34px;height:34px}.top-add{display:none}.layout{padding:24px 15px 105px}.page-intro{margin-bottom:20px}.hero-add{display:inline-flex;padding:10px 15px;min-height:40px}h1{font-size:27px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:15px}.stat-card{padding:17px;min-height:105px}.stat-number{font-size:34px}.stat-icon{right:16px;top:12px}.stat-label{font-size:12px;margin-top:6px}.content-grid,.form-layout,.screen-layout{grid-template-columns:1fr;gap:15px}.panel{padding:18px;border-radius:14px}.tip-panel{order:2}.panel-head{margin-bottom:12px}.product-row{gap:8px}.product-symbol{width:38px;height:38px;font-size:19px}.product-badge{font-size:11px;padding:5px 6px}.row-actions{gap:4px}.compact-action{font-size:11px;padding:7px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:50;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -5px 20px #142b210b}.bottom-button{border:0;background:transparent;min-height:64px;display:flex;flex-direction:column;gap:0;align-items:center;justify-content:center;color:#76877b;font-size:10px;font-weight:700}.bottom-button.active{color:var(--green)}.bottom-icon{font-size:25px;line-height:29px}.plus-icon{display:grid;place-items:center;background:var(--green);color:white;width:33px;height:33px;border-radius:10px;margin-bottom:2px;font-size:26px}.bottom-button.active .plus-icon{background:#3c7965}.form-tip{order:2}.input-with-action>.btn{padding:8px 10px}.toolbar{gap:8px}.searchbox{flex-basis:100%}.toolbar select{flex:1;max-width:none}.toast{bottom:85px}.login-card{padding:30px 25px}}
@media(max-width:380px){.two-cols{grid-template-columns:1fr}.product-symbol{display:none}.product-row{gap:6px}.product-badge{font-size:10px}.row-actions{flex-direction:column}}
