@import url('/css/style.css') layer(store);
@layer panel {
*,*::before,*::after{box-sizing:border-box} [hidden]{display:none!important} body{margin:0;background:#f5f4f0;color:#252923;font:14px/1.5 Inter,system-ui,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{min-height:42px;border:1px solid #d7d9d0;background:#fff;border-radius:7px;padding:9px 15px;color:#30362e;cursor:pointer;font-weight:600}button:hover{background:#eeefe9}button:disabled{opacity:.5;cursor:not-allowed}button.primary{background:#e96523;color:#fff;border-color:#e96523}button.primary:hover{background:#cf531a}a{color:#445c3c;text-decoration:none}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:Inter,system-ui,sans-serif;color:#1c261d;line-height:1.2}h1{font-size:30px;letter-spacing:-1px}h2{font-size:24px;letter-spacing:-.5px}h3{font-size:16px}.muted,small{color:#737a70}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:#7f8b72;display:block;margin-bottom:12px}.brand{color:#ef712f;display:flex;gap:12px;align-items:center;font-size:35px;font-weight:900;letter-spacing:-3px}.brand span{font-size:9px;line-height:1.5;letter-spacing:1.5px;color:#e4e9de;font-weight:400}.brand strong{font-size:15px;font-weight:800}.login-screen{min-height:100dvh;display:grid;grid-template-columns:1.05fr 1fr}.login-brand{background:#1d281e;color:#c5cdbc;display:flex;flex-direction:column;justify-content:space-between;padding:55px 64px;position:relative;overflow:hidden}.login-brand:after{content:'';width:500px;height:500px;border:80px solid #65794e13;position:absolute;bottom:-180px;right:-200px;border-radius:50%;pointer-events:none}.login-brand h1{font-size:clamp(30px,3.2vw,48px);line-height:1.15;color:#f2f4e9;margin-bottom:24px}.login-brand p{font-size:16px}.login-brand small{color:#9da992}.login-wrap{display:grid;place-items:center;padding:50px 24px}.login-form{width:100%;max-width:360px}.login-form h2{font-size:32px}.login-form p{color:#71796b}.login-form label{margin:24px 0}.login-form button{width:100%;display:flex;justify-content:space-between;margin-bottom:20px}.login-form .muted{font-size:12px;line-height:1.6}.app{display:grid;grid-template-columns:240px 1fr;min-height:100dvh}.sidebar{background:#1c261e;padding:32px 18px;position:fixed;inset:0 auto 0 0;width:240px;display:flex;flex-direction:column;color:#9caa94}.sidebar .brand{margin:0 12px 48px}.nav-label{font-size:9px;letter-spacing:1.8px;margin:0 16px 12px}.sidebar nav{display:grid;gap:6px}.sidebar nav button{color:#b4c0ad;text-align:left;border:0;background:transparent;display:flex;gap:13px;font-size:17px;padding:12px 16px}.sidebar nav button span{font-size:12px}.sidebar nav button.active{background:#33412e;color:#e9efe0}.sidebar nav button.active:before{content:'';position:absolute;left:0;width:3px;height:26px;background:#ee712b}.sidebar-bottom{margin-top:auto;border-top:1px solid #33412e;padding:24px 12px 0;display:grid;gap:12px}.sidebar-bottom a{font-size:12px;color:#b2c1a7}.sidebar-bottom button{background:transparent;color:#a1af97;border:0;padding:0;text-align:left;font-size:12px}.workspace{grid-column:2;min-width:0}.topbar{height:85px;background:#fcfcf9;border-bottom:1px solid #e5e7df;display:flex;justify-content:space-between;align-items:center;padding:0 40px;gap:20px}.breadcrumb{font-size:12px;color:#858b7f}.breadcrumb span{margin:0 12px;color:#c3c8bc}.breadcrumb strong{color:#48523e;font-weight:500}.user{display:flex;gap:10px;align-items:center;font-size:11px}.user strong,.user small{display:block;max-width:220px;overflow:hidden;text-overflow:ellipsis}.avatar{width:34px;height:34px;border-radius:50%;background:#e9ecdf;display:grid;place-items:center;color:#5b6b47;font-weight:700}.icon-button{border:0;background:transparent;padding:5px 12px;font-size:18px}.user .logout{color:#7b8671}main{padding:36px 40px;min-height:calc(100dvh - 145px)}.page-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin-bottom:25px}.page-head h1{margin-bottom:8px}.page-head p{color:#838a7b;font-size:12px;margin:0}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.actions button{font-size:12px}.count-pill{font-size:12px;background:#e6eadd;color:#677654;border:1px solid #d8dfcb;border-radius:20px;padding:3px 9px;vertical-align:middle;letter-spacing:0}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:24px}.stat{background:#fcfcf9;border:1px solid #e1e5d9;border-radius:9px;padding:18px 22px;display:flex;justify-content:space-between;align-items:center}.stat span{font-size:11px;color:#7e8874}.stat strong{font-size:24px;font-weight:600;color:#3d5031}.stat.warning strong{color:#c2702e}.stat.danger strong{color:#ad5043}.category-tabs{display:flex;gap:8px;margin:0 0 22px;overflow:auto;padding:2px 0 8px}.category-tabs button{white-space:nowrap;background:transparent;border:1px solid #dce0d2;border-radius:20px;padding:7px 14px;min-height:34px;font-size:11px;font-weight:500;color:#738164}.category-tabs button.active{background:#e4e9db;border-color:#b9c7a5;color:#3d512e}.category-tabs b{font-size:10px;margin-left:7px;color:#9caa8c}.panel{background:#fff;border:1px solid #e0e4d8;border-radius:10px;overflow:hidden}.filters{display:flex;gap:10px;flex-wrap:wrap;padding:18px;border-bottom:1px solid #e8ebe2}.filters input{flex:1;min-width:180px}.filters select{width:auto;min-width:125px}.filters input,.filters select{min-height:39px;padding:8px 12px;font-size:11px;background:#fcfcfa}.filter-extra{display:flex;gap:10px;flex-wrap:wrap;width:100%}.filter-extra select{flex:1}.filter-extra button{font-size:11px}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px}thead{background:#f8f9f4;text-align:left;color:#7f8a73;font-size:10px;letter-spacing:.4px}th{padding:13px 12px;font-weight:500;white-space:nowrap}td{border-top:1px solid #eef0e9;padding:17px 12px;vertical-align:middle}th:first-child,td:first-child{padding-left:20px;width:40px}tbody tr:hover{background:#fcfdf9}input[type=checkbox]{width:17px;height:17px;accent-color:#5b733f;cursor:pointer}.product-cell{display:flex;gap:12px;align-items:center;min-width:180px}.product-thumb{height:48px;width:48px;object-fit:cover;border:1px solid #eaede3;border-radius:6px;background:#f2f3eb}.product-cell strong{display:block;font-size:12px;line-height:1.4;max-width:220px}.product-cell small{font-size:10px;display:block;margin-top:4px}.price{font-weight:600;white-space:nowrap}.old-price{display:block;font-size:10px;color:#97a18b;text-decoration:line-through}.badge{display:inline-flex;gap:5px;align-items:center;background:#edf3e6;color:#52713d;border-radius:20px;padding:4px 8px;font-size:10px;white-space:nowrap}.badge.off{background:#f4e8e4;color:#ac5e4c}.badge.promo{background:#fff0db;color:#ad792c}.badge.neutral{background:#f0f0eb;color:#8a8e81}.stock-low{color:#c17d30}.stock-zero{color:#b45143}.row-actions{display:flex;gap:3px;white-space:nowrap}.row-actions button{min-width:32px;min-height:34px;padding:5px 8px;border:0;background:transparent;color:#849071;font-size:15px}.row-actions button:hover{background:#edf1e5}.row-actions .danger{color:#af6b5c}.star{color:#b2baa4;background:none;border:0;font-size:19px;padding:5px 9px}.star.on{color:#e6a137}.pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 20px;border-top:1px solid #e8ece1;font-size:11px;color:#89937d;flex-wrap:wrap}.pagination button{padding:4px 12px;min-height:32px;font-size:12px}.pagination select{padding:5px;width:auto;min-height:32px}.bulk{background:#edf2e4;padding:12px 18px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:#4f6540;font-size:12px}.bulk select{width:auto}.bulk button{font-size:12px}.workspace-footer{font-size:9px;letter-spacing:1px;color:#9aa38f;display:flex;justify-content:space-between;padding:16px 40px;border-top:1px solid #e3e7db}.workspace-footer span{letter-spacing:0}.empty{padding:60px 20px;text-align:center;color:#89967b}.error{color:#ad4936;font-size:12px;white-space:pre-line}.notice{background:#f2f5e9;border:1px solid #dce4cf;padding:14px 18px;border-radius:7px;color:#6c7d58;font-size:12px;margin-bottom:20px}label{display:grid;gap:7px;font-size:12px;font-weight:600;color:#59664c}input:not([type=checkbox]),select,textarea{width:100%;border:1px solid #d9dfce;border-radius:6px;background:#fff;padding:10px 12px;color:#2c3826;min-height:43px}textarea{resize:vertical;min-height:85px}input:focus,select:focus,textarea:focus{outline:2px solid #9eb684;outline-offset:1px}input[readonly]{background:#f3f5ec}.check-label{display:flex;align-items:center;gap:10px;font-weight:500;min-height:42px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.full{grid-column:1/-1}.form-section{grid-column:1/-1;border-top:1px solid #e5e9dd;padding-top:20px;margin-top:3px}.form-section h3{margin-bottom:5px}.form-section p{font-size:11px;color:#929d86;margin-bottom:0}.field-help{font-size:10px;font-weight:400;color:#919d85;line-height:1.5}dialog{border:0;border-radius:12px;padding:0;width:min(800px,94vw);max-height:92dvh;color:#344329;background:#fafbf6;box-shadow:0 20px 100px #16210e40}dialog::backdrop{background:#131e14a8;backdrop-filter:blur(2px)}.dialog-head{padding:24px 28px;border-bottom:1px solid #e0e6d6;display:flex;justify-content:space-between;align-items:center}.dialog-head .eyebrow{margin-bottom:6px}.dialog-head h2{margin:0;font-size:23px}.dialog-body{padding:26px 28px;max-height:65dvh;overflow:auto}.dialog-foot{border-top:1px solid #e2e8d8;padding:18px 28px;background:#f6f8f0}.dialog-foot>div{display:flex;justify-content:flex-end;gap:10px}.dialog-foot .error:empty{display:none}.dialog-foot button{font-size:12px}.confirm-body{padding:30px;max-width:500px}.confirm-body .actions{justify-content:flex-end;margin-top:30px}.confirm-body p{color:#768767;font-size:13px}#confirmDialog{width:min(490px,92vw)}#confirmYes{background:#b8513a;border-color:#b8513a}.image-editor{display:grid;grid-template-columns:100px 1fr;gap:16px;align-items:center}.image-editor img{height:100px;width:100px;object-fit:cover;border-radius:8px;background:#e9edde;border:1px dashed #c3cfb4}.image-editor .actions{margin:10px 0}.image-editor label{font-size:11px}.media-grid,.category-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:18px}.media-card,.category-card{background:#fff;border:1px solid #dde4d3;border-radius:10px;padding:16px;overflow:hidden}.media-card img{width:100%;height:155px;object-fit:cover;border-radius:6px;background:#edf1e5}.media-card strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;margin:12px 0 4px}.media-card .actions{margin-top:12px}.category-card .category-icon{font-size:27px;height:48px;display:block}.category-card img{width:100%;height:110px;object-fit:cover;border-radius:5px;margin-bottom:12px}.category-card h3{margin:5px 0}.category-card p{font-size:12px;color:#92a17f}.category-card footer{display:flex;justify-content:space-between;align-items:center;margin-top:18px}.category-card button{font-size:11px}.import-area{display:grid;gap:20px}.import-area .preview{max-height:380px;overflow:auto}.import-area .preview table{background:#fff}.import-area .preview td{font-size:11px;padding:10px}.import-area input[type=file]{background:#fff}.import-summary{display:flex;gap:20px;flex-wrap:wrap;font-size:13px}.import-summary strong{font-size:22px;display:block}.audit-detail{max-width:700px;white-space:pre-wrap;overflow-wrap:anywhere;background:#f1f4e9;padding:18px;border-radius:8px;font-size:11px}.mobile-nav,.mobile-products{display:none}.more-nav{display:grid;gap:8px;margin-bottom:20px}.more-nav button{text-align:left}.more-actions{position:relative}.more-actions summary{list-style:none;cursor:pointer;min-height:42px;display:flex;align-items:center;border:1px solid #d7d9d0;padding:9px 15px;background:#fff;border-radius:7px;font-weight:600;font-size:12px}.more-actions>div{position:absolute;right:0;top:48px;z-index:10;background:#fff;border:1px solid #dbe3ce;border-radius:8px;box-shadow:0 9px 30px #25371520;padding:6px;width:225px;display:grid;gap:4px}.more-actions button{text-align:left;border:0;font-size:12px}.toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%) translateY(30px);opacity:0;background:#24351f;color:#fff;padding:14px 22px;border-radius:8px;font-size:12px;z-index:9999;max-width:90vw;pointer-events:none;transition:.2s}.toast.visible{opacity:1;transform:translateX(-50%)}.switch{border:0;background:#b0b6a7;width:36px;min-height:22px;height:22px;border-radius:20px;padding:2px;display:inline-flex;align-items:center}.switch:after{content:'';width:18px;height:18px;background:#fff;border-radius:50%;box-shadow:0 1px 3px #0002}.switch[aria-checked=true]{background:#6e8e50;justify-content:flex-end}.switch:hover{filter:brightness(.95)}.account-box{background:#fff;border:1px solid #dce4d1;padding:26px;border-radius:10px;max-width:600px}.account-box label{margin-bottom:18px}
@media(min-width:1400px){main{max-width:1650px;margin:auto}.page-head{margin-bottom:30px}}
@media(max-width:1100px){.app{grid-template-columns:205px 1fr}.sidebar{width:205px;padding:26px 12px}.sidebar .brand{font-size:29px}.brand strong{font-size:13px}.topbar{padding:0 24px}main{padding:28px 24px}.workspace-footer{padding:16px 24px}.stats{gap:10px}.stat{padding:15px}.desktop-table th,.desktop-table td{padding:12px 8px}}
@media(max-width:850px){.login-brand{padding:38px 30px}.login-brand h1{font-size:32px}.app{display:block}.sidebar{display:none}.topbar{height:67px;padding:0 18px}.breadcrumb{font-size:11px}.user strong{max-width:115px;font-size:10px}.user small{font-size:9px}.avatar{display:none}main{padding:24px 16px 100px;min-height:calc(100dvh - 67px)}.page-head{align-items:flex-start;gap:10px;flex-wrap:wrap}.page-head h1{font-size:27px}.page-head>.actions{width:100%;margin-top:5px}.page-head>.actions>.primary{flex:1}.stats{gap:8px;margin-bottom:18px}.stat{display:block;padding:13px 11px}.stat span{font-size:9px;display:block;margin-bottom:7px}.stat strong{font-size:22px}.category-tabs{margin-bottom:12px}.filters{padding:13px;gap:8px}.filters input{flex:1 1 100%}.filters select{flex:1;min-width:100px;font-size:11px}.filter-extra{gap:8px}.filter-extra select{min-width:90px}.desktop-table{display:none}.mobile-products{display:grid;gap:0}.mobile-product{padding:18px 14px;border-bottom:1px solid #e9eede}.mobile-product-head{display:flex;gap:12px;align-items:flex-start}.mobile-product-head .product-thumb{width:55px;height:55px}.mobile-product-head>.info{flex:1;min-width:0}.mobile-product-head strong{font-size:13px;display:block}.mobile-product-head small{display:block;font-size:10px;margin-top:4px}.mobile-product-meta{display:flex;justify-content:space-between;align-items:center;margin:15px 0 12px;font-size:13px}.mobile-product-tools{display:flex;align-items:center;justify-content:space-between;gap:8px}.mobile-product-tools .row-actions{gap:8px}.mobile-product-tools .row-actions button{background:#f4f6ed;min-height:39px;min-width:39px}.stock-detail{font-size:10px;margin-top:4px;color:#8b997b}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:#fcfdf8;border-top:1px solid #dfe6d2;z-index:20;padding:7px 8px max(8px,env(safe-area-inset-bottom));justify-content:space-around}.mobile-nav button{border:0;background:transparent;display:grid;gap:3px;font-size:20px;color:#9aab87;padding:4px 8px;min-width:55px;min-height:47px}.mobile-nav span{font-size:9px;font-weight:500}.mobile-nav button.active{color:#3f6428}#mobileNew{color:#e46724}.workspace-footer{display:none}.form-grid{gap:15px}.dialog-body{padding:20px 18px;max-height:65dvh}.dialog-head{padding:20px 18px}.dialog-foot{padding:16px 18px}.dialog-foot>div button{flex:1;min-height:46px}dialog{width:100%;max-width:100%;max-height:96dvh;border-radius:15px 15px 0 0;margin:auto 0 0}.toast{bottom:90px}.category-grid{grid-template-columns:1fr 1fr;gap:10px}.category-card{padding:14px}.category-card h3{font-size:14px}.category-card footer{gap:7px;flex-wrap:wrap}.media-grid{grid-template-columns:1fr 1fr;gap:10px}.media-card{padding:11px}.media-card img{height:120px}.media-card button{padding:7px 10px;min-height:40px;font-size:11px}.bulk{padding:12px;gap:8px}.bulk select{flex:1;font-size:11px}.pagination{padding:14px;font-size:10px}.pagination>span{width:100%}.account-box{padding:20px}.table-scroll:not(.desktop-table){border:1px solid #e1e8d5;border-radius:8px}}
@media(max-width:520px){.login-screen{display:block}.login-brand{padding:24px;min-height:180px;gap:25px}.login-brand h1{font-size:23px;margin-bottom:0}.login-brand p,.login-brand small,.login-brand .eyebrow{display:none}.login-brand .brand{font-size:28px}.login-wrap{padding:35px 24px}.login-form h2{font-size:29px}.form-grid{grid-template-columns:1fr}.full,.form-section{grid-column:1}.dialog-head h2{font-size:20px}.image-editor{grid-template-columns:80px 1fr}.image-editor img{width:80px;height:80px}.image-editor .actions button{font-size:10px;padding:7px 10px}.user .logout{padding-right:0}}
}

/* Preserve the complete catalog originals, including their captions. */
.product-thumb[src$=".png"],.media-card img[src$=".png"],#imagePreview[src$=".png"]{object-fit:contain;background:#fff}
