*{box-sizing:border-box}:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Arial,sans-serif;color:#172033;background:#f5f7fb}body{margin:0;background:#f5f7fb}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px}.login-card{display:grid;gap:14px;width:min(420px,100%);padding:28px;border:1px solid #e5e7eb;border-radius:20px;background:#fff;box-shadow:0 20px 60px #0f172a1f}.login-card span,.admin-header span{color:#64748b;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.login-card h1,.admin-header h1{margin:0;color:#111827}.login-card p,.admin-header p{margin:0;color:#64748b}.login-card label,.edit-card label{display:grid;gap:6px;color:#475569;font-size:13px;font-weight:700}.login-card input,.search-row input,.search-row select,.edit-card input{border:1px solid #d1d5db;border-radius:10px;padding:10px 12px;background:#fff;outline:0}.admin-shell{width:min(1680px,calc(100% - 32px));margin:0 auto;padding:24px 0 40px}.admin-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px;border:1px solid #e5e7eb;border-radius:16px;background:#fff;box-shadow:0 1px 2px #0f172a0d}.admin-header h1{margin-top:6px;font-size:30px}.toolbar,.table-card{margin-top:16px;border:1px solid #e5e7eb;border-radius:16px;background:#fff;box-shadow:0 1px 2px #0f172a0d}.toolbar{display:grid;gap:12px;padding:16px}.search-row,.batch-row,.form-actions,.pager,.actions{display:flex;flex-wrap:wrap;gap:8px}.search-row input{flex:1 1 260px}.search-row select{flex:0 0 170px}button,.button-link{display:inline-flex;align-items:center;justify-content:center;border:1px solid #d1d5db;border-radius:10px;padding:9px 12px;color:#1f2937;background:#fff;font-weight:700;text-decoration:none}button:hover,.button-link:hover,.pager button.active,button.primary{border-color:#2563eb;color:#fff;background:#2563eb}button.danger{border-color:#fecaca;color:#b91c1c}button.danger:hover{border-color:#dc2626;color:#fff;background:#dc2626}.toast{position:fixed;top:18px;left:50%;z-index:90;width:min(560px,calc(100% - 32px));transform:translate(-50%);border:1px solid #bfdbfe;border-radius:14px;padding:13px 18px;color:#1d4ed8;background:#eff6ff;box-shadow:0 18px 44px #0f172a2e;text-align:center;font-weight:800}.toast.success{border-color:#bbf7d0;color:#166534;background:#f0fdf4}.toast.error{border-color:#fecaca;color:#b91c1c;background:#fef2f2}.sync-progress{position:fixed;right:18px;bottom:18px;z-index:85;display:grid;gap:8px;width:min(360px,calc(100% - 36px));border:1px solid #bfdbfe;border-radius:16px;padding:14px;color:#1e3a8a;background:#eff6ff;box-shadow:0 18px 44px #0f172a2e}.sync-progress span{color:#475569;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sync-progress progress{width:100%;height:10px}.confirm-layer,.edit-layer{position:fixed;inset:0;z-index:70;display:flex;align-items:flex-start;justify-content:center;padding:76px 18px 24px;background:#0f172a47}.edit-layer{z-index:75;justify-content:flex-end;padding-top:18px}.confirm-card{width:min(460px,calc(100% - 32px));border:1px solid #e5e7eb;border-radius:16px;padding:20px;background:#fff;box-shadow:0 20px 60px #0f172a33}.confirm-card h2{margin:0 0 8px;font-size:20px}.confirm-card p{margin:0;color:#475569;line-height:1.6}.confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.table-card{padding:16px;overflow:auto}.table-title{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px}.table-title span,small{color:#64748b}table{width:100%;border-collapse:collapse;min-width:1320px}th,td{padding:11px 10px;border-bottom:1px solid #eef2f7;text-align:left;vertical-align:middle}th{color:#64748b;font-size:12px;text-transform:uppercase;white-space:nowrap}td strong,td small{display:block}.product-cell{max-width:360px}.product-name{display:-webkit-box;overflow:hidden;color:#111827;font-weight:800;line-height:1.35;text-decoration:none;-webkit-line-clamp:2;-webkit-box-orient:vertical}.product-name:hover{color:#2563eb}.thumb{width:64px;height:64px;object-fit:cover;border:1px solid #e5e7eb;border-radius:10px;background:#f8fafc}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:4px 9px;color:#475569;background:#f1f5f9;font-size:12px;font-weight:800;white-space:nowrap}.badge.ok,.badge.synced{color:#166534;background:#dcfce7}.badge.muted,.badge.not_synced{color:#475569;background:#e2e8f0}.badge.syncing{color:#1d4ed8;background:#dbeafe}.badge.failed{color:#b91c1c;background:#fee2e2}.error{max-width:260px;color:#b91c1c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.edit-card{display:grid;gap:14px;width:min(520px,100%);height:calc(100vh - 36px);overflow:auto;border:1px solid #e5e7eb;border-radius:18px;padding:18px;background:#fff;box-shadow:0 20px 60px #0f172a33}.edit-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.edit-head h2{margin:0}.edit-card fieldset{display:grid;gap:12px;margin:0;padding:0;border:0}.edit-card .check{display:flex;align-items:center}.pager{align-items:center;justify-content:center;margin-top:14px}.pager button{min-width:40px}.pager-ellipsis{padding:9px 4px;color:#64748b;font-weight:800}@media(max-width:1050px){.admin-header{display:grid}.search-row select{flex:1 1 180px}.edit-layer{justify-content:center}}
