:root{font-family:"Microsoft YaHei",system-ui,sans-serif;color:#20352c;background:#f5f7f6;font-size:15px;--green:#245c43;--line:#e1e7e3;--muted:#718078}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;min-height:44px;padding:10px 18px;border:1px solid transparent;border-radius:7px;transition:background .15s,opacity .15s}button:disabled{opacity:.48;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #9cbcab;outline-offset:3px}input,select{width:100%;min-height:44px;padding:10px 12px;border:1px solid #ccd6d0;border-radius:6px;background:#fff;color:inherit;margin-top:7px}input:focus,select:focus{outline:2px solid #afc9b9;outline-offset:1px}input[readonly]{background:#f1f4f2;color:#66776b}label{display:block;font-size:14px;font-weight:500}label small{display:block;margin-top:6px;color:var(--muted);font-weight:400;font-size:12px;line-height:1.6}.primary{background:var(--green);color:#fff}.primary:hover:not(:disabled){background:#194932}.secondary{background:white;color:#294937;border-color:#cfdad3}.secondary:hover:not(:disabled){background:#eef4ef}.muted{color:var(--muted);line-height:1.65}.eyebrow{font-size:12px;color:var(--muted);letter-spacing:.04em;margin:0 0 10px}h1{font-size:29px;line-height:1.3;margin:0;font-weight:650}h2{font-size:23px;margin:0}h3{font-size:17px;margin:0 0 14px}.brand-mark{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:10px;background:#dceadd;color:var(--green);font-size:24px;font-weight:700;flex-shrink:0}.app-shell{display:grid;grid-template-columns:222px minmax(0,1fr);min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--line);padding:30px 18px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.sidebar-brand{display:flex;gap:10px;align-items:center;margin-bottom:45px}.sidebar-brand strong{font-size:16px;display:block}.sidebar-brand small{display:block;font-size:11px;color:var(--muted);margin-top:6px}.nav-label{font-size:12px;color:var(--muted);padding-left:14px;margin:0 0 12px}.nav-item{display:block;width:100%;background:transparent;text-align:left;margin-bottom:6px;color:#52655a}.nav-item:hover{background:#f4f7f4}.nav-item.active{background:#e7f0e9;color:#245c43;font-weight:600}.sidebar-bottom{margin-top:auto;padding:22px 12px 0;border-top:1px solid var(--line);color:var(--muted)}.sidebar-bottom small{display:block;font-size:12px}.logout{padding:10px 0;background:transparent;color:#556d5f}.main-content{padding:40px clamp(22px,4vw,64px);min-width:0}.page-header{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:32px}.page-header .muted{margin:12px 0 0;font-size:14px}.count{display:inline-block;vertical-align:middle;font-size:14px;background:#e3ebe5;color:#45624e;border-radius:6px;padding:4px 9px;font-weight:500;margin-left:8px}.header-actions{display:flex;gap:12px;flex-wrap:wrap}.catalog-section{background:white;border:1px solid var(--line);border-radius:9px;overflow:hidden}.toolbar{display:flex;align-items:flex-end;gap:18px;padding:24px;border-bottom:1px solid var(--line);flex-wrap:wrap}.filter-category{width:180px}.filter-search{flex:1;min-width:200px;max-width:460px}.list-caption{display:flex;justify-content:space-between;gap:12px;padding:20px 24px 14px;font-size:13px;color:#617568}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{font-size:12px;font-weight:500;color:#718078;background:#f8faf8;padding:13px 20px;border-bottom:1px solid var(--line)}td{padding:18px 20px;border-bottom:1px solid #eef1ee;font-size:14px}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafcfb}.product-cell{display:flex;align-items:center;gap:14px;min-width:220px}.product-cell img{width:56px;height:64px;object-fit:contain;border:1px solid #edf0ed;border-radius:5px;background:white}.product-name{font-weight:600;white-space:normal;min-width:140px;max-width:290px;line-height:1.5}.subtext{font-size:12px;color:var(--muted);margin-top:6px}.price-cell{font-weight:600;font-variant-numeric:tabular-nums}.badge{display:inline-block;padding:4px 10px;border-radius:4px;background:#f0f2f0;color:#738075;font-size:12px}.badge.on{background:#e7f3e9;color:#2d7445}.edit-button{min-height:38px;background:transparent;color:var(--green);padding:8px 12px}.edit-button:hover{background:#eaf3ec}.empty{text-align:center;padding:64px 20px;color:#657969}.empty p{font-size:14px}.message{background:#eef4ed;color:#355641;padding:12px 16px;border-radius:6px;line-height:1.6;font-size:14px}.message.error{background:#fff0eb;color:#9b4530}.login-panel{max-width:400px;margin:12vh auto;padding:30px}.login-panel .brand-mark{margin-bottom:24px}.login-panel h1{font-size:26px}.login-panel form{margin-top:30px}.login-panel button{width:100%;margin-top:20px}dialog{padding:0;border:0;border-radius:12px;width:min(820px,calc(100vw - 32px));max-height:90vh;overflow:hidden;color:inherit;box-shadow:0 24px 80px #14291e33}dialog[open]{display:flex;flex-direction:column;animation:appear .15s ease-out}dialog::backdrop{background:#17291f66;backdrop-filter:blur(2px)}.wide-dialog{width:min(1000px,calc(100vw - 32px))}.dialog-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px 28px;border-bottom:1px solid var(--line);flex-shrink:0}.dialog-header .eyebrow{margin-bottom:6px}.icon-button{font-size:25px;color:#687c70;background:transparent;padding:2px;width:44px}.icon-button:hover{background:#f0f4f1}dialog form{display:flex;flex-direction:column;min-height:0}.dialog-body{padding:26px 28px;overflow-y:auto;min-height:0}.dialog-body>.message{margin-top:0}.dialog-footer{display:flex;justify-content:flex-end;gap:12px;padding:18px 28px;border-top:1px solid var(--line);background:#fff;flex-shrink:0}.product-editor{display:grid;grid-template-columns:190px minmax(0,1fr);gap:30px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:20px 18px}.full-width{grid-column:1/-1}.image-preview{width:100%;height:220px;display:flex;align-items:center;justify-content:center;border:1px dashed #c5d5c8;border-radius:8px;background:#f7faf6;color:#8b9c8d;font-size:13px;overflow:hidden}.image-preview img{width:100%;height:100%;object-fit:contain}.image-editor button{width:100%;margin-top:14px}.image-editor p{font-size:12px}.import-step{padding:0 0 26px;margin-bottom:24px;border-bottom:1px solid var(--line)}.import-step:last-child{border:0;margin-bottom:0;padding-bottom:0}.import-step label{margin:18px 0 12px}.text-link{color:var(--green);font-weight:600;text-decoration:underline;text-underline-offset:4px}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:13px;line-height:1.7}#previewRows table{font-size:12px}[hidden]{display:none!important}@keyframes appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(max-width:950px){.app-shell{grid-template-columns:180px minmax(0,1fr)}.sidebar{padding:24px 12px}.sidebar-brand{gap:8px}.sidebar-brand strong{font-size:14px}.brand-mark{width:34px;height:36px;font-size:20px}.main-content{padding:28px 20px}.page-header{align-items:flex-start;flex-direction:column}.toolbar{padding:18px}.list-caption{padding:18px}.list-caption .muted{display:none}}@media(max-width:640px){.app-shell{display:block}.sidebar{height:auto;position:static;padding:16px;border-right:0;border-bottom:1px solid var(--line)}.sidebar-brand{margin:0 0 16px}.nav-label{display:none}.sidebar nav{display:flex;gap:6px;overflow-x:auto}.nav-item{width:auto;white-space:nowrap;margin:0}.sidebar-bottom{display:flex;align-items:center;justify-content:space-between;margin:14px 0 0;padding:8px 0 0}.main-content{padding:24px 14px}.page-header{gap:18px;margin-bottom:24px}.header-actions{width:100%}.header-actions button{flex:1;padding:10px 12px}.filter-category,.filter-search{width:100%;max-width:none}.toolbar{gap:14px}.toolbar>button{width:100%}.product-editor{grid-template-columns:1fr;gap:24px}.image-editor{max-width:230px;margin:auto}.image-preview{height:170px}.dialog-header,.dialog-body,.dialog-footer{padding:18px}.fields{gap:16px 12px}h1{font-size:25px}dialog{max-height:94vh}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
