*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:#f4f5f0;color:#293226;font:14px/1.5 Arial,"Malgun Gothic",sans-serif}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:1px solid #c5cbbd;background:#fff;border-radius:8px;padding:9px 14px;color:inherit}button:hover{background:#edf0e7}button:disabled{opacity:.5;cursor:not-allowed}input,select,textarea{border:1px solid #bac3b0;border-radius:7px;background:#fff;padding:10px;color:#283222}input:focus,textarea:focus,select:focus{outline:2px solid #799065;outline-offset:1px}.primary{background:#344b2f;color:white;border-color:#344b2f}.primary:hover{background:#49643d}.admin-header{padding:25px max(25px,5vw);background:#e9eddc;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #ccd2c0}.admin-header h1{font-size:26px;margin:5px 0}.admin-header small{font-size:10px;letter-spacing:1.5px}.admin-header nav{display:flex;align-items:center;gap:20px}.admin-header a{color:#3c5034;text-decoration:none}main{max-width:1300px;margin:30px auto;padding:0 25px}.login-card{max-width:420px;margin:60px auto;background:white;padding:30px;border-radius:16px;border:1px solid #d0d7c8}.login-card label{display:block;margin:20px 0 7px}.login-card input,.login-card button{width:100%;margin-bottom:15px}.stats{display:flex;gap:18px;margin-bottom:30px}.stats>div{flex:1;background:white;border:1px solid #d6dccf;border-radius:12px;padding:20px}.stats strong{display:block;font-size:30px}.stats span{color:#637258}.tabs{display:flex;gap:8px;margin-bottom:22px}.tabs .selected{background:#344b2f;color:white}.controls{display:flex;gap:12px;flex-wrap:wrap}.controls input[type=search]{flex:1;min-width:220px}.hint{font-size:13px;color:#67765d}.table-wrap{overflow-x:auto;background:white;border:1px solid #d6dccf;border-radius:12px;margin-top:15px}table{border-collapse:collapse;width:100%;text-align:left}th{background:#edf1e6;font-size:12px;white-space:nowrap}th,td{padding:13px 15px;border-bottom:1px solid #e2e6dc}td small{display:block;color:#738069;font-size:11px;margin-top:5px}.product-cell{display:flex;align-items:center;gap:15px;min-width:220px}.product-cell img{width:58px;height:58px;object-fit:contain;border:1px solid #e0e5d9;border-radius:8px;flex-shrink:0}.product-cell strong{font-size:13px;max-width:330px}.no-photo{display:inline-flex;width:58px;height:58px;align-items:center;justify-content:center;flex-shrink:0;background:#f2f4ed;color:#8a967f;font-size:10px;border-radius:8px}.price-input{width:100px;padding:8px}.badge{display:inline-block;white-space:nowrap;font-size:11px;background:#eee;padding:5px 10px;border-radius:20px}.badge.shown{background:#e1edd9;color:#34562a}.brand-row{display:flex;align-items:center;gap:12px;padding:14px 20px;background:white;border-bottom:1px solid #e0e6da}.brand-row strong{flex:1}.brand-row span{font-size:12px;color:#79856f}dialog{width:min(570px,94vw);max-height:92vh;overflow:auto;border:1px solid #becab2;border-radius:16px;padding:25px;background:#fafcf7;color:inherit}dialog::backdrop{background:#23301b99}dialog label{display:block;margin:13px 0 6px}dialog input:not([type=checkbox]),dialog select,dialog textarea{display:block;width:100%;margin-top:6px}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head h2{margin:0}.dialog-head button{font-size:24px;border:0;background:none}.checkbox{display:flex;align-items:center;gap:8px}.dialog-actions{display:flex;justify-content:space-between;margin-top:24px}.danger{color:#9d3e35;border-color:#ddbeb5}#editPreview{max-width:140px;max-height:140px;object-fit:contain;border:1px solid #cfd7c7;border-radius:8px;margin-top:10px}#message{position:sticky;bottom:15px;padding:14px 18px;border-radius:10px;background:#e9efdf;color:#344a29}#message:empty{display:none}#dialogMessage{color:#8a4936}details{font-size:12px;margin-top:8px}summary{cursor:pointer}@media(max-width:650px){.admin-header{padding:18px;align-items:flex-start}.admin-header h1{font-size:21px}.admin-header nav{flex-direction:column;gap:8px;font-size:12px}main{padding:0 12px;margin-top:20px}.stats{gap:8px}.stats>div{padding:12px}.stats strong{font-size:25px}.stats span{font-size:11px}.controls{gap:8px}.controls input[type=search]{min-width:100%;}.controls select{flex:1;width:100%}.brand-row{padding:12px 8px;gap:6px}.brand-row button{font-size:11px;padding:7px}.brand-row span{display:none}.product-cell{min-width:200px}th,td{padding:10px}.login-card{margin-top:30px}}
